diff --git a/.gitignore b/.gitignore index bc3c72ed97..dee211dc2e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ .* *.pyc +vendor/* +composer.phar + diff --git a/CREDITS b/CREDITS index 3c084e0442..aba40df179 100644 --- a/CREDITS +++ b/CREDITS @@ -2,6 +2,9 @@ CREDITS ======= +<<<<<<< HEAD +Version 2.5.3 +======= Version 2.5.2 Albert Santoni (albert.santoni@sourcefabric.org) @@ -16,6 +19,7 @@ Robbt E Version 2.5.1 +>>>>>>> 2.5.x Albert Santoni (albert.santoni@sourcefabric.org) Role: Developer Team Lead diff --git a/VERSION b/VERSION index 5a1ef0b728..b7fd8620d4 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ PRODUCT_ID=Airtime -PRODUCT_RELEASE=2.5.0 +PRODUCT_RELEASE=2.5.3 diff --git a/airtime_mvc/application/Bootstrap.php b/airtime_mvc/application/Bootstrap.php index a7910dadf7..5fa4f0e4fa 100644 --- a/airtime_mvc/application/Bootstrap.php +++ b/airtime_mvc/application/Bootstrap.php @@ -3,14 +3,21 @@ $CC_CONFIG = Config::getConfig(); require_once __DIR__."/configs/ACL.php"; -require_once 'propel/runtime/lib/Propel.php'; +if (!@include_once('propel/propel1/runtime/lib/Propel.php')) +{ + die('Error: Propel not found. Did you install Airtime\'s third-party dependencies with composer? (Check the README.)'); +} Propel::init(__DIR__."/configs/airtime-conf-production.php"); +//Composer's autoloader +require_once 'autoload.php'; + require_once __DIR__."/configs/constants.php"; require_once 'Preference.php'; require_once 'Locale.php'; require_once "DateHelper.php"; +require_once "FileDataHelper.php"; require_once "HTTPHelper.php"; require_once "OsPath.php"; require_once "Database.php"; @@ -19,6 +26,7 @@ require_once __DIR__.'/forms/helpers/ValidationTypes.php'; require_once __DIR__.'/forms/helpers/CustomDecorators.php'; require_once __DIR__.'/controllers/plugins/RabbitMqPlugin.php'; +require_once __DIR__.'/controllers/plugins/Maintenance.php'; require_once (APPLICATION_PATH."/logging/Logging.php"); Logging::setLogPath('/var/log/airtime/zendphp.log'); @@ -63,13 +71,28 @@ protected function _initGlobals() } $view->headScript()->appendScript("var userType = '$userType';"); } + + /** + * Create a global namespace to hold a session token for CSRF prevention + */ + protected function _initCsrfNamespace() { + $csrf_namespace = new Zend_Session_Namespace('csrf_namespace'); + // Check if the token exists + if (!$csrf_namespace->authtoken) { + // If we don't have a token, regenerate it and set a 2 hour timeout + // Should we log the user out here if the token is expired? + $csrf_namespace->authtoken = sha1(uniqid(rand(),1)); + $csrf_namespace->setExpirationSeconds(2*60*60); + } + } /** * Ideally, globals should be written to a single js file once * from a php init function. This will save us from having to * reinitialize them every request */ - private function _initTranslationGlobals($view) { + protected function _initTranslationGlobals() { + $view = $this->getResource('view'); $view->headScript()->appendScript("var PRODUCT_NAME = '" . PRODUCT_NAME . "';"); $view->headScript()->appendScript("var USER_MANUAL_URL = '" . USER_MANUAL_URL . "';"); $view->headScript()->appendScript("var COMPANY_NAME = '" . COMPANY_NAME . "';"); @@ -215,5 +238,11 @@ protected function _initRouter() 'action' => 'password-change', ))); } + + public function _initPlugins() + { + $front = Zend_Controller_Front::getInstance(); + $front->registerPlugin(new Zend_Controller_Plugin_Maintenance()); + } } diff --git a/airtime_mvc/application/cloud_storage/Amazon_S3.php b/airtime_mvc/application/cloud_storage/Amazon_S3.php new file mode 100644 index 0000000000..978e1ba073 --- /dev/null +++ b/airtime_mvc/application/cloud_storage/Amazon_S3.php @@ -0,0 +1,62 @@ +setBucket($securityCredentials['bucket']); + $this->setAccessKey($securityCredentials['api_key']); + $this->setSecretKey($securityCredentials['api_key_secret']); + + $this->s3Client = S3Client::factory(array( + 'key' => $securityCredentials['api_key'], + 'secret' => $securityCredentials['api_key_secret'], + 'region' => $securityCredentials['region'] + )); + } + + public function getAbsoluteFilePath($resourceId) + { + return $this->s3Client->getObjectUrl($this->getBucket(), $resourceId); + } + + public function getSignedURL($resourceId) + { + return $this->s3Client->getObjectUrl($this->getBucket(), $resourceId, '+60 minutes'); + } + + public function getFileSize($resourceId) + { + $obj = $this->s3Client->getObject(array( + 'Bucket' => $this->getBucket(), + 'Key' => $resourceId, + )); + if (isset($obj["ContentLength"])) { + return (int)$obj["ContentLength"]; + } else { + return 0; + } + } + + public function deletePhysicalFile($resourceId) + { + $bucket = $this->getBucket(); + + if ($this->s3Client->doesObjectExist($bucket, $resourceId)) { + + $result = $this->s3Client->deleteObject(array( + 'Bucket' => $bucket, + 'Key' => $resourceId, + )); + } else { + throw new Exception("ERROR: Could not locate file to delete."); + } + } +} diff --git a/airtime_mvc/application/cloud_storage/ProxyStorageBackend.php b/airtime_mvc/application/cloud_storage/ProxyStorageBackend.php new file mode 100644 index 0000000000..651063367e --- /dev/null +++ b/airtime_mvc/application/cloud_storage/ProxyStorageBackend.php @@ -0,0 +1,49 @@ +storageBackend = new $storageBackend($CC_CONFIG[$storageBackend]); + } + + public function getAbsoluteFilePath($resourceId) + { + return $this->storageBackend->getAbsoluteFilePath($resourceId); + } + + public function getSignedURL($resourceId) + { + return $this->storageBackend->getSignedURL($resourceId); + } + + public function getFileSize($resourceId) + { + return $this->storageBackend->getFileSize($resourceId); + } + + public function deletePhysicalFile($resourceId) + { + $this->storageBackend->deletePhysicalFile($resourceId); + } + +} diff --git a/airtime_mvc/application/cloud_storage/StorageBackend.php b/airtime_mvc/application/cloud_storage/StorageBackend.php new file mode 100644 index 0000000000..84a9a8d72e --- /dev/null +++ b/airtime_mvc/application/cloud_storage/StorageBackend.php @@ -0,0 +1,55 @@ +bucket; + } + + protected function setBucket($bucket) + { + $this->bucket = $bucket; + } + + protected function getAccessKey() + { + return $this->accessKey; + } + + protected function setAccessKey($accessKey) + { + $this->accessKey = $accessKey; + } + + protected function getSecretKey() + { + return $this->secretKey; + } + + protected function setSecretKey($secretKey) + { + $this->secretKey = $secretKey; + } +} diff --git a/airtime_mvc/application/common/FileDataHelper.php b/airtime_mvc/application/common/FileDataHelper.php new file mode 100644 index 0000000000..6ebe610e80 --- /dev/null +++ b/airtime_mvc/application/common/FileDataHelper.php @@ -0,0 +1,28 @@ +getParam("timezone", null) ); } + + public static function getStationUrl() + { + $scheme = "http"; + if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') { + $scheme = "https"; + } + $CC_CONFIG = Config::getConfig(); + $baseUrl = $CC_CONFIG['baseUrl']; + $baseDir = $CC_CONFIG['baseDir']; + $basePort = $CC_CONFIG['basePort']; + if (empty($baseDir)) { + $baseDir = "/"; + } + $stationUrl = "$scheme://${baseUrl}:${basePort}${baseDir}"; + + return $stationUrl; + } } diff --git a/airtime_mvc/application/configs/ACL.php b/airtime_mvc/application/configs/ACL.php index 83cba4b081..f1ae5a21c0 100644 --- a/airtime_mvc/application/configs/ACL.php +++ b/airtime_mvc/application/configs/ACL.php @@ -28,7 +28,11 @@ ->add(new Zend_Acl_Resource('usersettings')) ->add(new Zend_Acl_Resource('audiopreview')) ->add(new Zend_Acl_Resource('webstream')) - ->add(new Zend_Acl_Resource('locale')); + ->add(new Zend_Acl_Resource('locale')) + ->add(new Zend_Acl_Resource('upgrade')) + ->add(new Zend_Acl_Resource('downgrade')) + ->add(new Zend_Acl_Resource('rest:media')) + ->add(new Zend_Acl_Resource('billing')); /** Creating permissions */ $ccAcl->allow('G', 'index') @@ -42,6 +46,10 @@ ->allow('G', 'audiopreview') ->allow('G', 'webstream') ->allow('G', 'locale') + ->allow('G', 'upgrade') + ->allow('G', 'downgrade') + ->allow('G', 'rest:media', 'get') + ->allow('H', 'rest:media') ->allow('H', 'preference', 'is-import-in-progress') ->allow('H', 'usersettings') ->allow('H', 'plupload') diff --git a/airtime_mvc/application/configs/airtime-conf-production.php b/airtime_mvc/application/configs/airtime-conf-production.php index aaef0e371c..429dfa9e0d 100644 --- a/airtime_mvc/application/configs/airtime-conf-production.php +++ b/airtime_mvc/application/configs/airtime-conf-production.php @@ -28,7 +28,7 @@ ), 'default' => 'airtime', ), - 'generator_version' => '1.5.2', + 'generator_version' => '1.7.0', ); $conf['classmap'] = include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'classmap-airtime-conf.php'); return $conf; diff --git a/airtime_mvc/application/configs/airtime-conf.php b/airtime_mvc/application/configs/airtime-conf.php index aa69b61561..b23a373343 100644 --- a/airtime_mvc/application/configs/airtime-conf.php +++ b/airtime_mvc/application/configs/airtime-conf.php @@ -1,6 +1,6 @@ array ( @@ -12,9 +12,17 @@ 'dsn' => 'pgsql:host=localhost;port=5432;dbname=airtime;user=airtime;password=airtime', ), ), + 'airtime_test' => + array ( + 'adapter' => 'pgsql', + 'connection' => + array ( + 'dsn' => 'pgsql:host=localhost;port=5432;dbname=airtime_test;user=airtime;password=airtime', + ), + ), 'default' => 'airtime', ), - 'generator_version' => '1.5.2', + 'generator_version' => '1.7.0', ); $conf['classmap'] = include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'classmap-airtime-conf.php'); return $conf; \ No newline at end of file diff --git a/airtime_mvc/application/configs/application.ini b/airtime_mvc/application/configs/application.ini index c342ebda71..79f4f9c789 100644 --- a/airtime_mvc/application/configs/application.ini +++ b/airtime_mvc/application/configs/application.ini @@ -6,14 +6,19 @@ bootstrap.class = "Bootstrap" appnamespace = "Application" resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" resources.frontController.params.displayExceptions = 0 +resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" +resources.frontController.plugins.putHandler = "Zend_Controller_Plugin_PutHandler" +;load everything in the modules directory including models resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/" +resources.modules[] = "" resources.view[] = -resources.db.adapter = "Pdo_Pgsql" -resources.db.params.charset = "utf8" -resources.db.params.host = "localhost" -resources.db.params.username = "airtime" -resources.db.params.password = "airtime" -resources.db.params.dbname = "airtime" +; These are no longer needed. They are specified in /etc/airtime/airtime.conf: +;resources.db.adapter = "Pdo_Pgsql" +;resources.db.params.charset = "utf8" +;resources.db.params.host = "localhost" +;resources.db.params.username = "airtime" +;resources.db.params.password = "airtime" +;resources.db.params.dbname = "airtime" [staging : production] diff --git a/airtime_mvc/application/configs/classmap-airtime-conf.php b/airtime_mvc/application/configs/classmap-airtime-conf.php index fb42846811..814429f76d 100644 --- a/airtime_mvc/application/configs/classmap-airtime-conf.php +++ b/airtime_mvc/application/configs/classmap-airtime-conf.php @@ -1,242 +1,242 @@ 'airtime/map/CcMusicDirsTableMap.php', - 'CcMusicDirsPeer' => 'airtime/CcMusicDirsPeer.php', - 'CcMusicDirs' => 'airtime/CcMusicDirs.php', - 'CcMusicDirsQuery' => 'airtime/CcMusicDirsQuery.php', - 'BaseCcMusicDirsPeer' => 'airtime/om/BaseCcMusicDirsPeer.php', - 'BaseCcMusicDirs' => 'airtime/om/BaseCcMusicDirs.php', - 'BaseCcMusicDirsQuery' => 'airtime/om/BaseCcMusicDirsQuery.php', - 'CcFilesTableMap' => 'airtime/map/CcFilesTableMap.php', - 'CcFilesPeer' => 'airtime/CcFilesPeer.php', - 'CcFiles' => 'airtime/CcFiles.php', - 'CcFilesQuery' => 'airtime/CcFilesQuery.php', - 'BaseCcFilesPeer' => 'airtime/om/BaseCcFilesPeer.php', + 'BaseCcBlock' => 'airtime/om/BaseCcBlock.php', + 'BaseCcBlockPeer' => 'airtime/om/BaseCcBlockPeer.php', + 'BaseCcBlockQuery' => 'airtime/om/BaseCcBlockQuery.php', + 'BaseCcBlockcontents' => 'airtime/om/BaseCcBlockcontents.php', + 'BaseCcBlockcontentsPeer' => 'airtime/om/BaseCcBlockcontentsPeer.php', + 'BaseCcBlockcontentsQuery' => 'airtime/om/BaseCcBlockcontentsQuery.php', + 'BaseCcBlockcriteria' => 'airtime/om/BaseCcBlockcriteria.php', + 'BaseCcBlockcriteriaPeer' => 'airtime/om/BaseCcBlockcriteriaPeer.php', + 'BaseCcBlockcriteriaQuery' => 'airtime/om/BaseCcBlockcriteriaQuery.php', + 'BaseCcCountry' => 'airtime/om/BaseCcCountry.php', + 'BaseCcCountryPeer' => 'airtime/om/BaseCcCountryPeer.php', + 'BaseCcCountryQuery' => 'airtime/om/BaseCcCountryQuery.php', 'BaseCcFiles' => 'airtime/om/BaseCcFiles.php', + 'BaseCcFilesPeer' => 'airtime/om/BaseCcFilesPeer.php', 'BaseCcFilesQuery' => 'airtime/om/BaseCcFilesQuery.php', - 'CcPermsTableMap' => 'airtime/map/CcPermsTableMap.php', - 'CcPermsPeer' => 'airtime/CcPermsPeer.php', - 'CcPerms' => 'airtime/CcPerms.php', - 'CcPermsQuery' => 'airtime/CcPermsQuery.php', - 'BaseCcPermsPeer' => 'airtime/om/BaseCcPermsPeer.php', + 'BaseCcListenerCount' => 'airtime/om/BaseCcListenerCount.php', + 'BaseCcListenerCountPeer' => 'airtime/om/BaseCcListenerCountPeer.php', + 'BaseCcListenerCountQuery' => 'airtime/om/BaseCcListenerCountQuery.php', + 'BaseCcLiveLog' => 'airtime/om/BaseCcLiveLog.php', + 'BaseCcLiveLogPeer' => 'airtime/om/BaseCcLiveLogPeer.php', + 'BaseCcLiveLogQuery' => 'airtime/om/BaseCcLiveLogQuery.php', + 'BaseCcLoginAttempts' => 'airtime/om/BaseCcLoginAttempts.php', + 'BaseCcLoginAttemptsPeer' => 'airtime/om/BaseCcLoginAttemptsPeer.php', + 'BaseCcLoginAttemptsQuery' => 'airtime/om/BaseCcLoginAttemptsQuery.php', + 'BaseCcMountName' => 'airtime/om/BaseCcMountName.php', + 'BaseCcMountNamePeer' => 'airtime/om/BaseCcMountNamePeer.php', + 'BaseCcMountNameQuery' => 'airtime/om/BaseCcMountNameQuery.php', + 'BaseCcMusicDirs' => 'airtime/om/BaseCcMusicDirs.php', + 'BaseCcMusicDirsPeer' => 'airtime/om/BaseCcMusicDirsPeer.php', + 'BaseCcMusicDirsQuery' => 'airtime/om/BaseCcMusicDirsQuery.php', 'BaseCcPerms' => 'airtime/om/BaseCcPerms.php', + 'BaseCcPermsPeer' => 'airtime/om/BaseCcPermsPeer.php', 'BaseCcPermsQuery' => 'airtime/om/BaseCcPermsQuery.php', - 'CcShowTableMap' => 'airtime/map/CcShowTableMap.php', - 'CcShowPeer' => 'airtime/CcShowPeer.php', - 'CcShow' => 'airtime/CcShow.php', - 'CcShowQuery' => 'airtime/CcShowQuery.php', - 'BaseCcShowPeer' => 'airtime/om/BaseCcShowPeer.php', - 'BaseCcShow' => 'airtime/om/BaseCcShow.php', - 'BaseCcShowQuery' => 'airtime/om/BaseCcShowQuery.php', - 'CcShowInstancesTableMap' => 'airtime/map/CcShowInstancesTableMap.php', - 'CcShowInstancesPeer' => 'airtime/CcShowInstancesPeer.php', - 'CcShowInstances' => 'airtime/CcShowInstances.php', - 'CcShowInstancesQuery' => 'airtime/CcShowInstancesQuery.php', - 'BaseCcShowInstancesPeer' => 'airtime/om/BaseCcShowInstancesPeer.php', - 'BaseCcShowInstances' => 'airtime/om/BaseCcShowInstances.php', - 'BaseCcShowInstancesQuery' => 'airtime/om/BaseCcShowInstancesQuery.php', - 'CcShowDaysTableMap' => 'airtime/map/CcShowDaysTableMap.php', - 'CcShowDaysPeer' => 'airtime/CcShowDaysPeer.php', - 'CcShowDays' => 'airtime/CcShowDays.php', - 'CcShowDaysQuery' => 'airtime/CcShowDaysQuery.php', - 'BaseCcShowDaysPeer' => 'airtime/om/BaseCcShowDaysPeer.php', - 'BaseCcShowDays' => 'airtime/om/BaseCcShowDays.php', - 'BaseCcShowDaysQuery' => 'airtime/om/BaseCcShowDaysQuery.php', - 'CcShowRebroadcastTableMap' => 'airtime/map/CcShowRebroadcastTableMap.php', - 'CcShowRebroadcastPeer' => 'airtime/CcShowRebroadcastPeer.php', - 'CcShowRebroadcast' => 'airtime/CcShowRebroadcast.php', - 'CcShowRebroadcastQuery' => 'airtime/CcShowRebroadcastQuery.php', - 'BaseCcShowRebroadcastPeer' => 'airtime/om/BaseCcShowRebroadcastPeer.php', - 'BaseCcShowRebroadcast' => 'airtime/om/BaseCcShowRebroadcast.php', - 'BaseCcShowRebroadcastQuery' => 'airtime/om/BaseCcShowRebroadcastQuery.php', - 'CcShowHostsTableMap' => 'airtime/map/CcShowHostsTableMap.php', - 'CcShowHostsPeer' => 'airtime/CcShowHostsPeer.php', - 'CcShowHosts' => 'airtime/CcShowHosts.php', - 'CcShowHostsQuery' => 'airtime/CcShowHostsQuery.php', - 'BaseCcShowHostsPeer' => 'airtime/om/BaseCcShowHostsPeer.php', - 'BaseCcShowHosts' => 'airtime/om/BaseCcShowHosts.php', - 'BaseCcShowHostsQuery' => 'airtime/om/BaseCcShowHostsQuery.php', - 'CcPlaylistTableMap' => 'airtime/map/CcPlaylistTableMap.php', - 'CcPlaylistPeer' => 'airtime/CcPlaylistPeer.php', - 'CcPlaylist' => 'airtime/CcPlaylist.php', - 'CcPlaylistQuery' => 'airtime/CcPlaylistQuery.php', - 'BaseCcPlaylistPeer' => 'airtime/om/BaseCcPlaylistPeer.php', 'BaseCcPlaylist' => 'airtime/om/BaseCcPlaylist.php', + 'BaseCcPlaylistPeer' => 'airtime/om/BaseCcPlaylistPeer.php', 'BaseCcPlaylistQuery' => 'airtime/om/BaseCcPlaylistQuery.php', - 'CcPlaylistcontentsTableMap' => 'airtime/map/CcPlaylistcontentsTableMap.php', - 'CcPlaylistcontentsPeer' => 'airtime/CcPlaylistcontentsPeer.php', - 'CcPlaylistcontents' => 'airtime/CcPlaylistcontents.php', - 'CcPlaylistcontentsQuery' => 'airtime/CcPlaylistcontentsQuery.php', - 'BaseCcPlaylistcontentsPeer' => 'airtime/om/BaseCcPlaylistcontentsPeer.php', 'BaseCcPlaylistcontents' => 'airtime/om/BaseCcPlaylistcontents.php', + 'BaseCcPlaylistcontentsPeer' => 'airtime/om/BaseCcPlaylistcontentsPeer.php', 'BaseCcPlaylistcontentsQuery' => 'airtime/om/BaseCcPlaylistcontentsQuery.php', - 'CcBlockTableMap' => 'airtime/map/CcBlockTableMap.php', - 'CcBlockPeer' => 'airtime/CcBlockPeer.php', - 'CcBlock' => 'airtime/CcBlock.php', - 'CcBlockQuery' => 'airtime/CcBlockQuery.php', - 'BaseCcBlockPeer' => 'airtime/om/BaseCcBlockPeer.php', - 'BaseCcBlock' => 'airtime/om/BaseCcBlock.php', - 'BaseCcBlockQuery' => 'airtime/om/BaseCcBlockQuery.php', - 'CcBlockcontentsTableMap' => 'airtime/map/CcBlockcontentsTableMap.php', - 'CcBlockcontentsPeer' => 'airtime/CcBlockcontentsPeer.php', - 'CcBlockcontents' => 'airtime/CcBlockcontents.php', - 'CcBlockcontentsQuery' => 'airtime/CcBlockcontentsQuery.php', - 'BaseCcBlockcontentsPeer' => 'airtime/om/BaseCcBlockcontentsPeer.php', - 'BaseCcBlockcontents' => 'airtime/om/BaseCcBlockcontents.php', - 'BaseCcBlockcontentsQuery' => 'airtime/om/BaseCcBlockcontentsQuery.php', - 'CcBlockcriteriaTableMap' => 'airtime/map/CcBlockcriteriaTableMap.php', - 'CcBlockcriteriaPeer' => 'airtime/CcBlockcriteriaPeer.php', - 'CcBlockcriteria' => 'airtime/CcBlockcriteria.php', - 'CcBlockcriteriaQuery' => 'airtime/CcBlockcriteriaQuery.php', - 'BaseCcBlockcriteriaPeer' => 'airtime/om/BaseCcBlockcriteriaPeer.php', - 'BaseCcBlockcriteria' => 'airtime/om/BaseCcBlockcriteria.php', - 'BaseCcBlockcriteriaQuery' => 'airtime/om/BaseCcBlockcriteriaQuery.php', - 'CcPrefTableMap' => 'airtime/map/CcPrefTableMap.php', - 'CcPrefPeer' => 'airtime/CcPrefPeer.php', - 'CcPref' => 'airtime/CcPref.php', - 'CcPrefQuery' => 'airtime/CcPrefQuery.php', - 'BaseCcPrefPeer' => 'airtime/om/BaseCcPrefPeer.php', + 'BaseCcPlayoutHistory' => 'airtime/om/BaseCcPlayoutHistory.php', + 'BaseCcPlayoutHistoryMetaData' => 'airtime/om/BaseCcPlayoutHistoryMetaData.php', + 'BaseCcPlayoutHistoryMetaDataPeer' => 'airtime/om/BaseCcPlayoutHistoryMetaDataPeer.php', + 'BaseCcPlayoutHistoryMetaDataQuery' => 'airtime/om/BaseCcPlayoutHistoryMetaDataQuery.php', + 'BaseCcPlayoutHistoryPeer' => 'airtime/om/BaseCcPlayoutHistoryPeer.php', + 'BaseCcPlayoutHistoryQuery' => 'airtime/om/BaseCcPlayoutHistoryQuery.php', + 'BaseCcPlayoutHistoryTemplate' => 'airtime/om/BaseCcPlayoutHistoryTemplate.php', + 'BaseCcPlayoutHistoryTemplateField' => 'airtime/om/BaseCcPlayoutHistoryTemplateField.php', + 'BaseCcPlayoutHistoryTemplateFieldPeer' => 'airtime/om/BaseCcPlayoutHistoryTemplateFieldPeer.php', + 'BaseCcPlayoutHistoryTemplateFieldQuery' => 'airtime/om/BaseCcPlayoutHistoryTemplateFieldQuery.php', + 'BaseCcPlayoutHistoryTemplatePeer' => 'airtime/om/BaseCcPlayoutHistoryTemplatePeer.php', + 'BaseCcPlayoutHistoryTemplateQuery' => 'airtime/om/BaseCcPlayoutHistoryTemplateQuery.php', 'BaseCcPref' => 'airtime/om/BaseCcPref.php', + 'BaseCcPrefPeer' => 'airtime/om/BaseCcPrefPeer.php', 'BaseCcPrefQuery' => 'airtime/om/BaseCcPrefQuery.php', - 'CcScheduleTableMap' => 'airtime/map/CcScheduleTableMap.php', - 'CcSchedulePeer' => 'airtime/CcSchedulePeer.php', - 'CcSchedule' => 'airtime/CcSchedule.php', - 'CcScheduleQuery' => 'airtime/CcScheduleQuery.php', - 'BaseCcSchedulePeer' => 'airtime/om/BaseCcSchedulePeer.php', 'BaseCcSchedule' => 'airtime/om/BaseCcSchedule.php', + 'BaseCcSchedulePeer' => 'airtime/om/BaseCcSchedulePeer.php', 'BaseCcScheduleQuery' => 'airtime/om/BaseCcScheduleQuery.php', - 'CcSessTableMap' => 'airtime/map/CcSessTableMap.php', - 'CcSessPeer' => 'airtime/CcSessPeer.php', - 'CcSess' => 'airtime/CcSess.php', - 'CcSessQuery' => 'airtime/CcSessQuery.php', - 'BaseCcSessPeer' => 'airtime/om/BaseCcSessPeer.php', + 'BaseCcServiceRegister' => 'airtime/om/BaseCcServiceRegister.php', + 'BaseCcServiceRegisterPeer' => 'airtime/om/BaseCcServiceRegisterPeer.php', + 'BaseCcServiceRegisterQuery' => 'airtime/om/BaseCcServiceRegisterQuery.php', 'BaseCcSess' => 'airtime/om/BaseCcSess.php', + 'BaseCcSessPeer' => 'airtime/om/BaseCcSessPeer.php', 'BaseCcSessQuery' => 'airtime/om/BaseCcSessQuery.php', - 'CcSmembTableMap' => 'airtime/map/CcSmembTableMap.php', - 'CcSmembPeer' => 'airtime/CcSmembPeer.php', - 'CcSmemb' => 'airtime/CcSmemb.php', - 'CcSmembQuery' => 'airtime/CcSmembQuery.php', - 'BaseCcSmembPeer' => 'airtime/om/BaseCcSmembPeer.php', + 'BaseCcShow' => 'airtime/om/BaseCcShow.php', + 'BaseCcShowDays' => 'airtime/om/BaseCcShowDays.php', + 'BaseCcShowDaysPeer' => 'airtime/om/BaseCcShowDaysPeer.php', + 'BaseCcShowDaysQuery' => 'airtime/om/BaseCcShowDaysQuery.php', + 'BaseCcShowHosts' => 'airtime/om/BaseCcShowHosts.php', + 'BaseCcShowHostsPeer' => 'airtime/om/BaseCcShowHostsPeer.php', + 'BaseCcShowHostsQuery' => 'airtime/om/BaseCcShowHostsQuery.php', + 'BaseCcShowInstances' => 'airtime/om/BaseCcShowInstances.php', + 'BaseCcShowInstancesPeer' => 'airtime/om/BaseCcShowInstancesPeer.php', + 'BaseCcShowInstancesQuery' => 'airtime/om/BaseCcShowInstancesQuery.php', + 'BaseCcShowPeer' => 'airtime/om/BaseCcShowPeer.php', + 'BaseCcShowQuery' => 'airtime/om/BaseCcShowQuery.php', + 'BaseCcShowRebroadcast' => 'airtime/om/BaseCcShowRebroadcast.php', + 'BaseCcShowRebroadcastPeer' => 'airtime/om/BaseCcShowRebroadcastPeer.php', + 'BaseCcShowRebroadcastQuery' => 'airtime/om/BaseCcShowRebroadcastQuery.php', 'BaseCcSmemb' => 'airtime/om/BaseCcSmemb.php', + 'BaseCcSmembPeer' => 'airtime/om/BaseCcSmembPeer.php', 'BaseCcSmembQuery' => 'airtime/om/BaseCcSmembQuery.php', - 'CcSubjsTableMap' => 'airtime/map/CcSubjsTableMap.php', - 'CcSubjsPeer' => 'airtime/CcSubjsPeer.php', - 'CcSubjs' => 'airtime/CcSubjs.php', - 'CcSubjsQuery' => 'airtime/CcSubjsQuery.php', - 'BaseCcSubjsPeer' => 'airtime/om/BaseCcSubjsPeer.php', + 'BaseCcStreamSetting' => 'airtime/om/BaseCcStreamSetting.php', + 'BaseCcStreamSettingPeer' => 'airtime/om/BaseCcStreamSettingPeer.php', + 'BaseCcStreamSettingQuery' => 'airtime/om/BaseCcStreamSettingQuery.php', 'BaseCcSubjs' => 'airtime/om/BaseCcSubjs.php', + 'BaseCcSubjsPeer' => 'airtime/om/BaseCcSubjsPeer.php', 'BaseCcSubjsQuery' => 'airtime/om/BaseCcSubjsQuery.php', - 'CcSubjsTokenTableMap' => 'airtime/map/CcSubjsTokenTableMap.php', - 'CcSubjsTokenPeer' => 'airtime/CcSubjsTokenPeer.php', - 'CcSubjsToken' => 'airtime/CcSubjsToken.php', - 'CcSubjsTokenQuery' => 'airtime/CcSubjsTokenQuery.php', - 'BaseCcSubjsTokenPeer' => 'airtime/om/BaseCcSubjsTokenPeer.php', 'BaseCcSubjsToken' => 'airtime/om/BaseCcSubjsToken.php', + 'BaseCcSubjsTokenPeer' => 'airtime/om/BaseCcSubjsTokenPeer.php', 'BaseCcSubjsTokenQuery' => 'airtime/om/BaseCcSubjsTokenQuery.php', - 'CcCountryTableMap' => 'airtime/map/CcCountryTableMap.php', - 'CcCountryPeer' => 'airtime/CcCountryPeer.php', + 'BaseCcTimestamp' => 'airtime/om/BaseCcTimestamp.php', + 'BaseCcTimestampPeer' => 'airtime/om/BaseCcTimestampPeer.php', + 'BaseCcTimestampQuery' => 'airtime/om/BaseCcTimestampQuery.php', + 'BaseCcWebstream' => 'airtime/om/BaseCcWebstream.php', + 'BaseCcWebstreamMetadata' => 'airtime/om/BaseCcWebstreamMetadata.php', + 'BaseCcWebstreamMetadataPeer' => 'airtime/om/BaseCcWebstreamMetadataPeer.php', + 'BaseCcWebstreamMetadataQuery' => 'airtime/om/BaseCcWebstreamMetadataQuery.php', + 'BaseCcWebstreamPeer' => 'airtime/om/BaseCcWebstreamPeer.php', + 'BaseCcWebstreamQuery' => 'airtime/om/BaseCcWebstreamQuery.php', + 'BaseCloudFile' => 'airtime/om/BaseCloudFile.php', + 'BaseCloudFilePeer' => 'airtime/om/BaseCloudFilePeer.php', + 'BaseCloudFileQuery' => 'airtime/om/BaseCloudFileQuery.php', + 'CcBlock' => 'airtime/CcBlock.php', + 'CcBlockPeer' => 'airtime/CcBlockPeer.php', + 'CcBlockQuery' => 'airtime/CcBlockQuery.php', + 'CcBlockTableMap' => 'airtime/map/CcBlockTableMap.php', + 'CcBlockcontents' => 'airtime/CcBlockcontents.php', + 'CcBlockcontentsPeer' => 'airtime/CcBlockcontentsPeer.php', + 'CcBlockcontentsQuery' => 'airtime/CcBlockcontentsQuery.php', + 'CcBlockcontentsTableMap' => 'airtime/map/CcBlockcontentsTableMap.php', + 'CcBlockcriteria' => 'airtime/CcBlockcriteria.php', + 'CcBlockcriteriaPeer' => 'airtime/CcBlockcriteriaPeer.php', + 'CcBlockcriteriaQuery' => 'airtime/CcBlockcriteriaQuery.php', + 'CcBlockcriteriaTableMap' => 'airtime/map/CcBlockcriteriaTableMap.php', 'CcCountry' => 'airtime/CcCountry.php', + 'CcCountryPeer' => 'airtime/CcCountryPeer.php', 'CcCountryQuery' => 'airtime/CcCountryQuery.php', - 'BaseCcCountryPeer' => 'airtime/om/BaseCcCountryPeer.php', - 'BaseCcCountry' => 'airtime/om/BaseCcCountry.php', - 'BaseCcCountryQuery' => 'airtime/om/BaseCcCountryQuery.php', - 'CcStreamSettingTableMap' => 'airtime/map/CcStreamSettingTableMap.php', - 'CcStreamSettingPeer' => 'airtime/CcStreamSettingPeer.php', - 'CcStreamSetting' => 'airtime/CcStreamSetting.php', - 'CcStreamSettingQuery' => 'airtime/CcStreamSettingQuery.php', - 'BaseCcStreamSettingPeer' => 'airtime/om/BaseCcStreamSettingPeer.php', - 'BaseCcStreamSetting' => 'airtime/om/BaseCcStreamSetting.php', - 'BaseCcStreamSettingQuery' => 'airtime/om/BaseCcStreamSettingQuery.php', - 'CcLoginAttemptsTableMap' => 'airtime/map/CcLoginAttemptsTableMap.php', - 'CcLoginAttemptsPeer' => 'airtime/CcLoginAttemptsPeer.php', - 'CcLoginAttempts' => 'airtime/CcLoginAttempts.php', - 'CcLoginAttemptsQuery' => 'airtime/CcLoginAttemptsQuery.php', - 'BaseCcLoginAttemptsPeer' => 'airtime/om/BaseCcLoginAttemptsPeer.php', - 'BaseCcLoginAttempts' => 'airtime/om/BaseCcLoginAttempts.php', - 'BaseCcLoginAttemptsQuery' => 'airtime/om/BaseCcLoginAttemptsQuery.php', - 'CcServiceRegisterTableMap' => 'airtime/map/CcServiceRegisterTableMap.php', - 'CcServiceRegisterPeer' => 'airtime/CcServiceRegisterPeer.php', - 'CcServiceRegister' => 'airtime/CcServiceRegister.php', - 'CcServiceRegisterQuery' => 'airtime/CcServiceRegisterQuery.php', - 'BaseCcServiceRegisterPeer' => 'airtime/om/BaseCcServiceRegisterPeer.php', - 'BaseCcServiceRegister' => 'airtime/om/BaseCcServiceRegister.php', - 'BaseCcServiceRegisterQuery' => 'airtime/om/BaseCcServiceRegisterQuery.php', - 'CcLiveLogTableMap' => 'airtime/map/CcLiveLogTableMap.php', - 'CcLiveLogPeer' => 'airtime/CcLiveLogPeer.php', + 'CcCountryTableMap' => 'airtime/map/CcCountryTableMap.php', + 'CcFiles' => 'airtime/CcFiles.php', + 'CcFilesPeer' => 'airtime/CcFilesPeer.php', + 'CcFilesQuery' => 'airtime/CcFilesQuery.php', + 'CcFilesTableMap' => 'airtime/map/CcFilesTableMap.php', + 'CcListenerCount' => 'airtime/CcListenerCount.php', + 'CcListenerCountPeer' => 'airtime/CcListenerCountPeer.php', + 'CcListenerCountQuery' => 'airtime/CcListenerCountQuery.php', + 'CcListenerCountTableMap' => 'airtime/map/CcListenerCountTableMap.php', 'CcLiveLog' => 'airtime/CcLiveLog.php', + 'CcLiveLogPeer' => 'airtime/CcLiveLogPeer.php', 'CcLiveLogQuery' => 'airtime/CcLiveLogQuery.php', - 'BaseCcLiveLogPeer' => 'airtime/om/BaseCcLiveLogPeer.php', - 'BaseCcLiveLog' => 'airtime/om/BaseCcLiveLog.php', - 'BaseCcLiveLogQuery' => 'airtime/om/BaseCcLiveLogQuery.php', - 'CcWebstreamTableMap' => 'airtime/map/CcWebstreamTableMap.php', - 'CcWebstreamPeer' => 'airtime/CcWebstreamPeer.php', - 'CcWebstream' => 'airtime/CcWebstream.php', - 'CcWebstreamQuery' => 'airtime/CcWebstreamQuery.php', - 'BaseCcWebstreamPeer' => 'airtime/om/BaseCcWebstreamPeer.php', - 'BaseCcWebstream' => 'airtime/om/BaseCcWebstream.php', - 'BaseCcWebstreamQuery' => 'airtime/om/BaseCcWebstreamQuery.php', - 'CcWebstreamMetadataTableMap' => 'airtime/map/CcWebstreamMetadataTableMap.php', - 'CcWebstreamMetadataPeer' => 'airtime/CcWebstreamMetadataPeer.php', - 'CcWebstreamMetadata' => 'airtime/CcWebstreamMetadata.php', - 'CcWebstreamMetadataQuery' => 'airtime/CcWebstreamMetadataQuery.php', - 'BaseCcWebstreamMetadataPeer' => 'airtime/om/BaseCcWebstreamMetadataPeer.php', - 'BaseCcWebstreamMetadata' => 'airtime/om/BaseCcWebstreamMetadata.php', - 'BaseCcWebstreamMetadataQuery' => 'airtime/om/BaseCcWebstreamMetadataQuery.php', - 'CcMountNameTableMap' => 'airtime/map/CcMountNameTableMap.php', - 'CcMountNamePeer' => 'airtime/CcMountNamePeer.php', + 'CcLiveLogTableMap' => 'airtime/map/CcLiveLogTableMap.php', + 'CcLoginAttempts' => 'airtime/CcLoginAttempts.php', + 'CcLoginAttemptsPeer' => 'airtime/CcLoginAttemptsPeer.php', + 'CcLoginAttemptsQuery' => 'airtime/CcLoginAttemptsQuery.php', + 'CcLoginAttemptsTableMap' => 'airtime/map/CcLoginAttemptsTableMap.php', 'CcMountName' => 'airtime/CcMountName.php', + 'CcMountNamePeer' => 'airtime/CcMountNamePeer.php', 'CcMountNameQuery' => 'airtime/CcMountNameQuery.php', - 'BaseCcMountNamePeer' => 'airtime/om/BaseCcMountNamePeer.php', - 'BaseCcMountName' => 'airtime/om/BaseCcMountName.php', - 'BaseCcMountNameQuery' => 'airtime/om/BaseCcMountNameQuery.php', - 'CcTimestampTableMap' => 'airtime/map/CcTimestampTableMap.php', - 'CcTimestampPeer' => 'airtime/CcTimestampPeer.php', - 'CcTimestamp' => 'airtime/CcTimestamp.php', - 'CcTimestampQuery' => 'airtime/CcTimestampQuery.php', - 'BaseCcTimestampPeer' => 'airtime/om/BaseCcTimestampPeer.php', - 'BaseCcTimestamp' => 'airtime/om/BaseCcTimestamp.php', - 'BaseCcTimestampQuery' => 'airtime/om/BaseCcTimestampQuery.php', - 'CcListenerCountTableMap' => 'airtime/map/CcListenerCountTableMap.php', - 'CcListenerCountPeer' => 'airtime/CcListenerCountPeer.php', - 'CcListenerCount' => 'airtime/CcListenerCount.php', - 'CcListenerCountQuery' => 'airtime/CcListenerCountQuery.php', - 'BaseCcListenerCountPeer' => 'airtime/om/BaseCcListenerCountPeer.php', - 'BaseCcListenerCount' => 'airtime/om/BaseCcListenerCount.php', - 'BaseCcListenerCountQuery' => 'airtime/om/BaseCcListenerCountQuery.php', - 'CcLocaleTableMap' => 'airtime/map/CcLocaleTableMap.php', - 'CcLocalePeer' => 'airtime/CcLocalePeer.php', - 'CcLocale' => 'airtime/CcLocale.php', - 'CcLocaleQuery' => 'airtime/CcLocaleQuery.php', - 'BaseCcLocalePeer' => 'airtime/om/BaseCcLocalePeer.php', - 'BaseCcLocale' => 'airtime/om/BaseCcLocale.php', - 'BaseCcLocaleQuery' => 'airtime/om/BaseCcLocaleQuery.php', - 'CcPlayoutHistoryTableMap' => 'airtime/map/CcPlayoutHistoryTableMap.php', - 'CcPlayoutHistoryPeer' => 'airtime/CcPlayoutHistoryPeer.php', + 'CcMountNameTableMap' => 'airtime/map/CcMountNameTableMap.php', + 'CcMusicDirs' => 'airtime/CcMusicDirs.php', + 'CcMusicDirsPeer' => 'airtime/CcMusicDirsPeer.php', + 'CcMusicDirsQuery' => 'airtime/CcMusicDirsQuery.php', + 'CcMusicDirsTableMap' => 'airtime/map/CcMusicDirsTableMap.php', + 'CcPerms' => 'airtime/CcPerms.php', + 'CcPermsPeer' => 'airtime/CcPermsPeer.php', + 'CcPermsQuery' => 'airtime/CcPermsQuery.php', + 'CcPermsTableMap' => 'airtime/map/CcPermsTableMap.php', + 'CcPlaylist' => 'airtime/CcPlaylist.php', + 'CcPlaylistPeer' => 'airtime/CcPlaylistPeer.php', + 'CcPlaylistQuery' => 'airtime/CcPlaylistQuery.php', + 'CcPlaylistTableMap' => 'airtime/map/CcPlaylistTableMap.php', + 'CcPlaylistcontents' => 'airtime/CcPlaylistcontents.php', + 'CcPlaylistcontentsPeer' => 'airtime/CcPlaylistcontentsPeer.php', + 'CcPlaylistcontentsQuery' => 'airtime/CcPlaylistcontentsQuery.php', + 'CcPlaylistcontentsTableMap' => 'airtime/map/CcPlaylistcontentsTableMap.php', 'CcPlayoutHistory' => 'airtime/CcPlayoutHistory.php', - 'CcPlayoutHistoryQuery' => 'airtime/CcPlayoutHistoryQuery.php', - 'BaseCcPlayoutHistoryPeer' => 'airtime/om/BaseCcPlayoutHistoryPeer.php', - 'BaseCcPlayoutHistory' => 'airtime/om/BaseCcPlayoutHistory.php', - 'BaseCcPlayoutHistoryQuery' => 'airtime/om/BaseCcPlayoutHistoryQuery.php', - 'CcPlayoutHistoryMetaDataTableMap' => 'airtime/map/CcPlayoutHistoryMetaDataTableMap.php', - 'CcPlayoutHistoryMetaDataPeer' => 'airtime/CcPlayoutHistoryMetaDataPeer.php', 'CcPlayoutHistoryMetaData' => 'airtime/CcPlayoutHistoryMetaData.php', + 'CcPlayoutHistoryMetaDataPeer' => 'airtime/CcPlayoutHistoryMetaDataPeer.php', 'CcPlayoutHistoryMetaDataQuery' => 'airtime/CcPlayoutHistoryMetaDataQuery.php', - 'BaseCcPlayoutHistoryMetaDataPeer' => 'airtime/om/BaseCcPlayoutHistoryMetaDataPeer.php', - 'BaseCcPlayoutHistoryMetaData' => 'airtime/om/BaseCcPlayoutHistoryMetaData.php', - 'BaseCcPlayoutHistoryMetaDataQuery' => 'airtime/om/BaseCcPlayoutHistoryMetaDataQuery.php', - 'CcPlayoutHistoryTemplateTableMap' => 'airtime/map/CcPlayoutHistoryTemplateTableMap.php', - 'CcPlayoutHistoryTemplatePeer' => 'airtime/CcPlayoutHistoryTemplatePeer.php', + 'CcPlayoutHistoryMetaDataTableMap' => 'airtime/map/CcPlayoutHistoryMetaDataTableMap.php', + 'CcPlayoutHistoryPeer' => 'airtime/CcPlayoutHistoryPeer.php', + 'CcPlayoutHistoryQuery' => 'airtime/CcPlayoutHistoryQuery.php', + 'CcPlayoutHistoryTableMap' => 'airtime/map/CcPlayoutHistoryTableMap.php', 'CcPlayoutHistoryTemplate' => 'airtime/CcPlayoutHistoryTemplate.php', - 'CcPlayoutHistoryTemplateQuery' => 'airtime/CcPlayoutHistoryTemplateQuery.php', - 'BaseCcPlayoutHistoryTemplatePeer' => 'airtime/om/BaseCcPlayoutHistoryTemplatePeer.php', - 'BaseCcPlayoutHistoryTemplate' => 'airtime/om/BaseCcPlayoutHistoryTemplate.php', - 'BaseCcPlayoutHistoryTemplateQuery' => 'airtime/om/BaseCcPlayoutHistoryTemplateQuery.php', - 'CcPlayoutHistoryTemplateFieldTableMap' => 'airtime/map/CcPlayoutHistoryTemplateFieldTableMap.php', - 'CcPlayoutHistoryTemplateFieldPeer' => 'airtime/CcPlayoutHistoryTemplateFieldPeer.php', 'CcPlayoutHistoryTemplateField' => 'airtime/CcPlayoutHistoryTemplateField.php', + 'CcPlayoutHistoryTemplateFieldPeer' => 'airtime/CcPlayoutHistoryTemplateFieldPeer.php', 'CcPlayoutHistoryTemplateFieldQuery' => 'airtime/CcPlayoutHistoryTemplateFieldQuery.php', - 'BaseCcPlayoutHistoryTemplateFieldPeer' => 'airtime/om/BaseCcPlayoutHistoryTemplateFieldPeer.php', - 'BaseCcPlayoutHistoryTemplateField' => 'airtime/om/BaseCcPlayoutHistoryTemplateField.php', - 'BaseCcPlayoutHistoryTemplateFieldQuery' => 'airtime/om/BaseCcPlayoutHistoryTemplateFieldQuery.php', + 'CcPlayoutHistoryTemplateFieldTableMap' => 'airtime/map/CcPlayoutHistoryTemplateFieldTableMap.php', + 'CcPlayoutHistoryTemplatePeer' => 'airtime/CcPlayoutHistoryTemplatePeer.php', + 'CcPlayoutHistoryTemplateQuery' => 'airtime/CcPlayoutHistoryTemplateQuery.php', + 'CcPlayoutHistoryTemplateTableMap' => 'airtime/map/CcPlayoutHistoryTemplateTableMap.php', + 'CcPref' => 'airtime/CcPref.php', + 'CcPrefPeer' => 'airtime/CcPrefPeer.php', + 'CcPrefQuery' => 'airtime/CcPrefQuery.php', + 'CcPrefTableMap' => 'airtime/map/CcPrefTableMap.php', + 'CcSchedule' => 'airtime/CcSchedule.php', + 'CcSchedulePeer' => 'airtime/CcSchedulePeer.php', + 'CcScheduleQuery' => 'airtime/CcScheduleQuery.php', + 'CcScheduleTableMap' => 'airtime/map/CcScheduleTableMap.php', + 'CcServiceRegister' => 'airtime/CcServiceRegister.php', + 'CcServiceRegisterPeer' => 'airtime/CcServiceRegisterPeer.php', + 'CcServiceRegisterQuery' => 'airtime/CcServiceRegisterQuery.php', + 'CcServiceRegisterTableMap' => 'airtime/map/CcServiceRegisterTableMap.php', + 'CcSess' => 'airtime/CcSess.php', + 'CcSessPeer' => 'airtime/CcSessPeer.php', + 'CcSessQuery' => 'airtime/CcSessQuery.php', + 'CcSessTableMap' => 'airtime/map/CcSessTableMap.php', + 'CcShow' => 'airtime/CcShow.php', + 'CcShowDays' => 'airtime/CcShowDays.php', + 'CcShowDaysPeer' => 'airtime/CcShowDaysPeer.php', + 'CcShowDaysQuery' => 'airtime/CcShowDaysQuery.php', + 'CcShowDaysTableMap' => 'airtime/map/CcShowDaysTableMap.php', + 'CcShowHosts' => 'airtime/CcShowHosts.php', + 'CcShowHostsPeer' => 'airtime/CcShowHostsPeer.php', + 'CcShowHostsQuery' => 'airtime/CcShowHostsQuery.php', + 'CcShowHostsTableMap' => 'airtime/map/CcShowHostsTableMap.php', + 'CcShowInstances' => 'airtime/CcShowInstances.php', + 'CcShowInstancesPeer' => 'airtime/CcShowInstancesPeer.php', + 'CcShowInstancesQuery' => 'airtime/CcShowInstancesQuery.php', + 'CcShowInstancesTableMap' => 'airtime/map/CcShowInstancesTableMap.php', + 'CcShowPeer' => 'airtime/CcShowPeer.php', + 'CcShowQuery' => 'airtime/CcShowQuery.php', + 'CcShowRebroadcast' => 'airtime/CcShowRebroadcast.php', + 'CcShowRebroadcastPeer' => 'airtime/CcShowRebroadcastPeer.php', + 'CcShowRebroadcastQuery' => 'airtime/CcShowRebroadcastQuery.php', + 'CcShowRebroadcastTableMap' => 'airtime/map/CcShowRebroadcastTableMap.php', + 'CcShowTableMap' => 'airtime/map/CcShowTableMap.php', + 'CcSmemb' => 'airtime/CcSmemb.php', + 'CcSmembPeer' => 'airtime/CcSmembPeer.php', + 'CcSmembQuery' => 'airtime/CcSmembQuery.php', + 'CcSmembTableMap' => 'airtime/map/CcSmembTableMap.php', + 'CcStreamSetting' => 'airtime/CcStreamSetting.php', + 'CcStreamSettingPeer' => 'airtime/CcStreamSettingPeer.php', + 'CcStreamSettingQuery' => 'airtime/CcStreamSettingQuery.php', + 'CcStreamSettingTableMap' => 'airtime/map/CcStreamSettingTableMap.php', + 'CcSubjs' => 'airtime/CcSubjs.php', + 'CcSubjsPeer' => 'airtime/CcSubjsPeer.php', + 'CcSubjsQuery' => 'airtime/CcSubjsQuery.php', + 'CcSubjsTableMap' => 'airtime/map/CcSubjsTableMap.php', + 'CcSubjsToken' => 'airtime/CcSubjsToken.php', + 'CcSubjsTokenPeer' => 'airtime/CcSubjsTokenPeer.php', + 'CcSubjsTokenQuery' => 'airtime/CcSubjsTokenQuery.php', + 'CcSubjsTokenTableMap' => 'airtime/map/CcSubjsTokenTableMap.php', + 'CcTimestamp' => 'airtime/CcTimestamp.php', + 'CcTimestampPeer' => 'airtime/CcTimestampPeer.php', + 'CcTimestampQuery' => 'airtime/CcTimestampQuery.php', + 'CcTimestampTableMap' => 'airtime/map/CcTimestampTableMap.php', + 'CcWebstream' => 'airtime/CcWebstream.php', + 'CcWebstreamMetadata' => 'airtime/CcWebstreamMetadata.php', + 'CcWebstreamMetadataPeer' => 'airtime/CcWebstreamMetadataPeer.php', + 'CcWebstreamMetadataQuery' => 'airtime/CcWebstreamMetadataQuery.php', + 'CcWebstreamMetadataTableMap' => 'airtime/map/CcWebstreamMetadataTableMap.php', + 'CcWebstreamPeer' => 'airtime/CcWebstreamPeer.php', + 'CcWebstreamQuery' => 'airtime/CcWebstreamQuery.php', + 'CcWebstreamTableMap' => 'airtime/map/CcWebstreamTableMap.php', + 'CloudFile' => 'airtime/CloudFile.php', + 'CloudFilePeer' => 'airtime/CloudFilePeer.php', + 'CloudFileQuery' => 'airtime/CloudFileQuery.php', + 'CloudFileTableMap' => 'airtime/map/CloudFileTableMap.php', ); \ No newline at end of file diff --git a/airtime_mvc/application/configs/conf.php b/airtime_mvc/application/configs/conf.php index 903b845c2e..6b6273a228 100644 --- a/airtime_mvc/application/configs/conf.php +++ b/airtime_mvc/application/configs/conf.php @@ -25,6 +25,19 @@ public static function loadConfig() { $filename = isset($_SERVER['AIRTIME_CONF']) ? $_SERVER['AIRTIME_CONF'] : "/etc/airtime/airtime.conf"; } + // Parse separate conf file for cloud storage values + $cloudStorageConfig = isset($_SERVER['CLOUD_STORAGE_CONF']) ? $_SERVER['CLOUD_STORAGE_CONF'] : "/etc/airtime-saas/cloud_storage.conf"; + $cloudStorageValues = parse_ini_file($cloudStorageConfig, true); + + $supportedStorageBackends = array('amazon_S3'); + foreach ($supportedStorageBackends as $backend) { + $CC_CONFIG[$backend] = $cloudStorageValues[$backend]; + } + + // Tells us where file uploads will be uploaded to. + // It will either be set to a cloud storage backend or local file storage. + $CC_CONFIG["current_backend"] = $cloudStorageValues["current_backend"]["storage_backend"]; + $values = parse_ini_file($filename, true); // Name of the web server user @@ -35,6 +48,11 @@ public static function loadConfig() { $CC_CONFIG['baseUrl'] = $values['general']['base_url']; $CC_CONFIG['basePort'] = $values['general']['base_port']; $CC_CONFIG['phpDir'] = $values['general']['airtime_dir']; + if (isset($values['general']['dev_env'])) { + $CC_CONFIG['dev_env'] = $values['general']['dev_env']; + } else { + $CC_CONFIG['dev_env'] = 'production'; + } $CC_CONFIG['cache_ahead_hours'] = $values['general']['cache_ahead_hours']; diff --git a/airtime_mvc/application/controllers/ApiController.php b/airtime_mvc/application/controllers/ApiController.php index 2ee20b3e7e..c5d76cf064 100644 --- a/airtime_mvc/application/controllers/ApiController.php +++ b/airtime_mvc/application/controllers/ApiController.php @@ -87,26 +87,19 @@ public function versionAction() */ public function getMediaAction() { + // Close the session so other HTTP requests can be completed while + // tracks are read for previewing or downloading. + session_write_close(); + $fileId = $this->_getParam("file"); $media = Application_Model_StoredFile::RecallById($fileId); if ($media != null) { - - $filepath = $media->getFilePath(); // Make sure we don't have some wrong result beecause of caching clearstatcache(); - 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); - } + + if ($media->getPropelOrm()->isValidPhysicalFile()) { + $filename = $media->getPropelOrm()->getFilename(); //Download user left clicks a track and selects Download. if ("true" == $this->_getParam('download')) { @@ -114,13 +107,13 @@ public function getMediaAction() //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. - header('Content-Disposition: attachment; filename="'.$file_base_name.'"'); + header('Content-Disposition: attachment; filename="'.$filename.'"'); } else { - //user clicks play button for track and downloads it. - header('Content-Disposition: inline; filename="'.$file_base_name.'"'); + //user clicks play button for track preview + header('Content-Disposition: inline; filename="'.$filename.'"'); } - $this->smartReadFile($filepath, $media->getPropelOrm()->getDbMime()); + $this->smartReadFile($media); exit; } else { header ("HTTP/1.1 404 Not Found"); @@ -142,12 +135,13 @@ public function getMediaAction() * @link https://groups.google.com/d/msg/jplayer/nSM2UmnSKKA/Hu76jDZS4xcJ * @link http://php.net/manual/en/function.readfile.php#86244 */ - public function smartReadFile($location, $mimeType = 'audio/mp3') + public function smartReadFile($media) { - $size= filesize($location); - $time= date('r', filemtime($location)); + $filepath = $media->getFilePath(); + $size= $media->getFileSize(); + $mimeType = $media->getPropelOrm()->getDbMime(); - $fm = @fopen($location, 'rb'); + $fm = @fopen($filepath, 'rb'); if (!$fm) { header ("HTTP/1.1 505 Internal server error"); @@ -180,20 +174,18 @@ public function smartReadFile($location, $mimeType = 'audio/mp3') header("Content-Range: bytes $begin-$end/$size"); } header("Content-Transfer-Encoding: binary"); - header("Last-Modified: $time"); //We can have multiple levels of output buffering. Need to //keep looping until all have been disabled!!! //http://www.php.net/manual/en/function.ob-end-flush.php while (@ob_end_flush()); - $cur = $begin; - fseek($fm, $begin, 0); - - while (!feof($fm) && $cur <= $end && (connection_status() == 0)) { - echo fread($fm, min(1024 * 16, ($end - $cur) + 1)); - $cur += 1024 * 16; + // NOTE: We can't use fseek here because it does not work with streams + // (a.k.a. Files stored in the cloud) + while(!feof($fm) && (connection_status() == 0)) { + echo fread($fm, 1024 * 8); } + fclose($fm); } //Used by the SaaS monitoring @@ -677,6 +669,8 @@ public function recordedShowsAction() public function uploadFileAction() { + Logging::error("FIXME: Change the show recorder to use the File Upload API and remove this function."); // Albert - April 3, 2014 + /** $upload_dir = ini_get("upload_tmp_dir"); $tempFilePath = Application_Model_StoredFile::uploadFile($upload_dir); $tempFileName = basename($tempFilePath); @@ -688,7 +682,7 @@ public function uploadFileAction() $this->_helper->json->sendJson( array("jsonrpc" => "2.0", "error" => array("code" => $result['code'], "message" => $result['message'])) ); - } + }*/ } public function uploadRecordedAction() diff --git a/airtime_mvc/application/controllers/AudiopreviewController.php b/airtime_mvc/application/controllers/AudiopreviewController.php index 9247dc924c..a4e94b85c2 100644 --- a/airtime_mvc/application/controllers/AudiopreviewController.php +++ b/airtime_mvc/application/controllers/AudiopreviewController.php @@ -46,8 +46,8 @@ public function audioPreviewAction() } if ($type == "audioclip") { - $uri = $baseUrl."api/get-media/file/".$audioFileID; $media = Application_Model_StoredFile::RecallById($audioFileID); + $uri = $baseUrl."api/get-media/file/".$audioFileID; $mime = $media->getPropelOrm()->getDbMime(); } elseif ($type == "stream") { $webstream = CcWebstreamQuery::create()->findPk($audioFileID); diff --git a/airtime_mvc/application/controllers/IndexController.php b/airtime_mvc/application/controllers/IndexController.php index 8dcdb3a643..232623bc93 100644 --- a/airtime_mvc/application/controllers/IndexController.php +++ b/airtime_mvc/application/controllers/IndexController.php @@ -18,4 +18,9 @@ public function mainAction() $this->_helper->layout->setLayout('layout'); } + public function maintenanceAction() + { + $this->getResponse()->setHttpResponseCode(503); + } + } diff --git a/airtime_mvc/application/controllers/LibraryController.php b/airtime_mvc/application/controllers/LibraryController.php index 2102a662ea..657d84325f 100644 --- a/airtime_mvc/application/controllers/LibraryController.php +++ b/airtime_mvc/application/controllers/LibraryController.php @@ -77,10 +77,6 @@ public function indexAction() $obj_sess = new Zend_Session_Namespace(UI_PLAYLISTCONTROLLER_OBJ_SESSNAME); if (isset($obj_sess->id)) { - $objInfo = Application_Model_Library::getObjInfo($obj_sess->type); - Logging::info($obj_sess->id); - Logging::info($obj_sess->type); - $objInfo = Application_Model_Library::getObjInfo($obj_sess->type); $obj = new $objInfo['className']($obj_sess->id); $userInfo = Zend_Auth::getInstance()->getStorage()->read(); @@ -193,7 +189,6 @@ public function contextMenuAction() $obj_sess = new Zend_Session_Namespace(UI_PLAYLISTCONTROLLER_OBJ_SESSNAME); if ($type === "audioclip") { - $file = Application_Model_StoredFile::RecallById($id); $menu["play"]["mime"] = $file->getPropelOrm()->getDbMime(); @@ -218,7 +213,11 @@ public function contextMenuAction() $menu["edit"] = array("name"=> _("Edit Metadata"), "icon" => "edit", "url" => $baseUrl."library/edit-file-md/id/{$id}"); } - $url = $file->getRelativeFileUrl($baseUrl).'/download/true'; + // It's important that we always return the parent id (cc_files id) + // and not the cloud_file id (if applicable) for track download. + // Our application logic (StoredFile.php) will determine if the track + // is a cloud_file and handle it appropriately. + $url = $baseUrl."api/get-media/file/".$id.".".$file->getFileExtension().'/download/true'; $menu["download"] = array("name" => _("Download"), "icon" => "download", "url" => $url); } elseif ($type === "playlist" || $type === "block") { if ($type === 'playlist') { @@ -353,7 +352,6 @@ public function deleteAction() foreach ($files as $id) { $file = Application_Model_StoredFile::RecallById($id); - if (isset($file)) { try { $res = $file->delete(); @@ -361,8 +359,8 @@ public function deleteAction() $message = $noPermissionMsg; } catch (Exception $e) { //could throw a scheduled in future exception. - $message = _("Could not delete some scheduled files."); - Logging::debug($e->getMessage()); + $message = _("Could not delete file(s)."); + Logging::info($message.": ".$e->getMessage()); } } } @@ -447,22 +445,11 @@ public function editFileMdAction() $serialized[$j["name"]] = $j["value"]; } - if ($form->isValid($serialized)) { - - $formValues = $this->_getParam('data', null); - $formdata = array(); - foreach ($formValues as $val) { - $formdata[$val["name"]] = $val["value"]; - } - $file->setDbColMetadata($formdata); - - $data = $file->getMetadata(); - - // set MDATA_KEY_FILEPATH - $data['MDATA_KEY_FILEPATH'] = $file->getFilePath(); - Logging::info($data['MDATA_KEY_FILEPATH']); - Application_Model_RabbitMq::SendMessageToMediaMonitor("md_update", $data); + // Sanitize any wildly incorrect metadata before it goes to be validated. + FileDataHelper::sanitizeData($serialized); + if ($form->isValid($serialized)) { + $file->setDbColMetadata($serialized); $this->_redirect('Library'); } } @@ -483,7 +470,7 @@ public function getFileMetadataAction() $md = $file->getMetadata(); foreach ($md as $key => $value) { - if ($key == 'MDATA_KEY_DIRECTORY') { + if ($key == 'MDATA_KEY_DIRECTORY' && !is_null($value)) { $musicDir = Application_Model_MusicDir::getDirByPK($value); $md['MDATA_KEY_FILEPATH'] = Application_Common_OsPath::join($musicDir->getDirectory(), $md['MDATA_KEY_FILEPATH']); } diff --git a/airtime_mvc/application/controllers/LoginController.php b/airtime_mvc/application/controllers/LoginController.php index c808c2aee0..7566adb6fd 100644 --- a/airtime_mvc/application/controllers/LoginController.php +++ b/airtime_mvc/application/controllers/LoginController.php @@ -98,6 +98,9 @@ public function logoutAction() { $auth = Zend_Auth::getInstance(); $auth->clearIdentity(); + // Unset all session variables relating to CSRF prevention on logout + $csrf_namespace = new Zend_Session_Namespace('csrf_namespace'); + $csrf_namespace->unsetAll(); $this->_redirect('showbuilder/index'); } diff --git a/airtime_mvc/application/controllers/PluploadController.php b/airtime_mvc/application/controllers/PluploadController.php index 4fdaa131b4..7c808140c7 100644 --- a/airtime_mvc/application/controllers/PluploadController.php +++ b/airtime_mvc/application/controllers/PluploadController.php @@ -2,12 +2,11 @@ class PluploadController extends Zend_Controller_Action { - public function init() { $ajaxContext = $this->_helper->getHelper('AjaxContext'); - $ajaxContext->addActionContext('upload', 'json') - ->addActionContext('copyfile', 'json') + $ajaxContext->addActionContext('upload', 'json') + ->addActionContext('recent-uploads', 'json') ->initContext(); } @@ -18,16 +17,24 @@ public function indexAction() $baseUrl = Application_Common_OsPath::getBaseDir(); $locale = Application_Model_Preference::GetLocale(); + $this->view->headScript()->appendFile($baseUrl.'js/datatables/js/jquery.dataTables.js?'.$CC_CONFIG['airtime_version'], 'text/javascript'); $this->view->headScript()->appendFile($baseUrl.'js/plupload/plupload.full.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript'); $this->view->headScript()->appendFile($baseUrl.'js/plupload/jquery.plupload.queue.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript'); $this->view->headScript()->appendFile($baseUrl.'js/airtime/library/plupload.js?'.$CC_CONFIG['airtime_version'],'text/javascript'); $this->view->headScript()->appendFile($baseUrl.'js/plupload/i18n/'.$locale.'.js?'.$CC_CONFIG['airtime_version'],'text/javascript'); $this->view->headLink()->appendStylesheet($baseUrl.'css/plupload.queue.css?'.$CC_CONFIG['airtime_version']); + $this->view->headLink()->appendStylesheet($baseUrl.'css/addmedia.css?'.$CC_CONFIG['airtime_version']); + + $this->view->quotaLimitReached = false; + if (Application_Model_Systemstatus::isDiskOverQuota()) { + $this->view->quotaLimitReached = true; + } + //Because uploads are done via AJAX (and we're not using Zend form for those), we manually add the CSRF + //token in here. $csrf_namespace = new Zend_Session_Namespace('csrf_namespace'); - $csrf_namespace->setExpirationSeconds(5*60*60); - $csrf_namespace->authtoken = sha1(uniqid(rand(),1)); + //The CSRF token is generated in Bootstrap.php $csrf_element = new Zend_Form_Element_Hidden('csrf'); $csrf_element->setValue($csrf_namespace->authtoken)->setRequired('true')->removeDecorator('HtmlTag')->removeDecorator('Label'); @@ -53,16 +60,58 @@ public function uploadAction() } } - public function copyfileAction() + public function recentUploadsAction() { - $upload_dir = ini_get("upload_tmp_dir") . DIRECTORY_SEPARATOR . "plupload"; - $filename = $this->_getParam('name'); - $tempname = $this->_getParam('tempname'); - $result = Application_Model_StoredFile::copyFileToStor($upload_dir, - $filename, $tempname); - if (!is_null($result)) - $this->_helper->json->sendJson(array("jsonrpc" => "2.0", "error" => $result)); + $request = $this->getRequest(); + + $filter = $request->getParam('uploadFilter', "all"); + $limit = intval($request->getParam('iDisplayLength', 10)); + $rowStart = intval($request->getParam('iDisplayStart', 0)); + + $recentUploadsQuery = CcFilesQuery::create(); + //old propel 1.5 to reuse this query item (for counts/finds) + $recentUploadsQuery->keepQuery(true); + + //Hide deleted files + $recentUploadsQuery->filterByDbFileExists(true); + + $numTotalRecentUploads = $recentUploadsQuery->count(); + $numTotalDisplayUploads = $numTotalRecentUploads; + + if ($filter == "pending") { + $recentUploadsQuery->filterByDbImportStatus(1); + $numTotalDisplayUploads = $recentUploadsQuery->count(); + } else if ($filter == "failed") { + $recentUploadsQuery->filterByDbImportStatus(2); + $numTotalDisplayUploads = $recentUploadsQuery->count(); + //TODO: Consider using array('min' => 200)) or something if we have multiple errors codes for failure. + } + + $recentUploads = $recentUploadsQuery + ->orderByDbUtime(Criteria::DESC) + ->offset($rowStart) + ->limit($limit) + ->find(); + + $uploadsArray = array(); + $utcTimezone = new DateTimeZone("UTC"); + $displayTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone()); + + foreach ($recentUploads as $upload) + { + $upload = $upload->toArray(BasePeer::TYPE_FIELDNAME); + //TODO: $this->sanitizeResponse($upload)); + $upload['utime'] = new DateTime($upload['utime'], $utcTimezone); + $upload['utime']->setTimeZone($displayTimezone); + $upload['utime'] = $upload['utime']->format('Y-m-d H:i:s'); - $this->_helper->json->sendJson(array("jsonrpc" => "2.0")); + //TODO: Invoke sanitization here (MediaController's removeBlacklist stuff) + array_push($uploadsArray, $upload); + } + + $this->view->sEcho = intval($request->getParam('sEcho')); + $this->view->iTotalDisplayRecords = $numTotalDisplayUploads; + $this->view->iTotalRecords = $numTotalRecentUploads; + $this->view->files = $uploadsArray; } } diff --git a/airtime_mvc/application/controllers/SystemstatusController.php b/airtime_mvc/application/controllers/SystemstatusController.php index 496dae6255..dfc2d019b6 100644 --- a/airtime_mvc/application/controllers/SystemstatusController.php +++ b/airtime_mvc/application/controllers/SystemstatusController.php @@ -16,7 +16,7 @@ public function indexAction() $services = array( "pypo"=>Application_Model_Systemstatus::GetPypoStatus(), "liquidsoap"=>Application_Model_Systemstatus::GetLiquidsoapStatus(), - "media-monitor"=>Application_Model_Systemstatus::GetMediaMonitorStatus(), + //"media-monitor"=>Application_Model_Systemstatus::GetMediaMonitorStatus(), ); $partitions = Application_Model_Systemstatus::GetDiskInfo(); diff --git a/airtime_mvc/application/controllers/UpgradeController.php b/airtime_mvc/application/controllers/UpgradeController.php new file mode 100644 index 0000000000..4c8ada0887 --- /dev/null +++ b/airtime_mvc/application/controllers/UpgradeController.php @@ -0,0 +1,115 @@ +view->layout()->disableLayout(); + $this->_helper->viewRenderer->setNoRender(true); + + if (!$this->verifyAuth()) { + return; + } + + if (!$this->verifyAirtimeVersion()) { + return; + } + + $con = Propel::getConnection(); + $con->beginTransaction(); + try { + //Disable Airtime UI + //create a temporary maintenance notification file + //when this file is on the server, zend framework redirects all + //requests to the maintenance page and sets a 503 response code + $maintenanceFile = isset($_SERVER['AIRTIME_BASE']) ? $_SERVER['AIRTIME_BASE']."maintenance.txt" : "/tmp/maintenance.txt"; + $file = fopen($maintenanceFile, 'w'); + fclose($file); + + //Begin upgrade + + //Update disk_usage value in cc_pref + $musicDir = CcMusicDirsQuery::create() + ->filterByType('stor') + ->filterByExists(true) + ->findOne(); + $storPath = $musicDir->getDirectory(); + + $freeSpace = disk_free_space($storPath); + $totalSpace = disk_total_space($storPath); + + Application_Model_Preference::setDiskUsage($totalSpace - $freeSpace); + + //TODO: clear out the cache + + $con->commit(); + + //update system_version in cc_pref and change some columns in cc_files + $airtimeConf = isset($_SERVER['AIRTIME_CONF']) ? $_SERVER['AIRTIME_CONF'] : "/etc/airtime/airtime.conf"; + $values = parse_ini_file($airtimeConf, true); + + $username = $values['database']['dbuser']; + $password = $values['database']['dbpass']; + $host = $values['database']['host']; + $database = $values['database']['dbname']; + $dir = __DIR__; + + passthru("export PGPASSWORD=$password && psql -h $host -U $username -q -f $dir/upgrade_sql/airtime_$airtime_upgrade_version/upgrade.sql $database 2>&1 | grep -v \"will create implicit index\""); + + //delete maintenance.txt to give users access back to Airtime + unlink($maintenanceFile); + + $this->getResponse() + ->setHttpResponseCode(200) + ->appendBody("Upgrade to Airtime 2.5.3 OK"); + + } catch(Exception $e) { + $con->rollback(); + unlink($maintenanceFile); + $this->getResponse() + ->setHttpResponseCode(400) + ->appendBody($e->getMessage()); + } + } + + private function verifyAuth() + { + //The API key is passed in via HTTP "basic authentication": + //http://en.wikipedia.org/wiki/Basic_access_authentication + + $CC_CONFIG = Config::getConfig(); + + //Decode the API key that was passed to us in the HTTP request. + $authHeader = $this->getRequest()->getHeader("Authorization"); + + $encodedRequestApiKey = substr($authHeader, strlen("Basic ")); + $encodedStoredApiKey = base64_encode($CC_CONFIG["apiKey"][0] . ":"); + + if ($encodedRequestApiKey !== $encodedStoredApiKey) + { + $this->getResponse() + ->setHttpResponseCode(401) + ->appendBody("Error: Incorrect API key."); + return false; + } + return true; + } + + private function verifyAirtimeVersion() + { + $pref = CcPrefQuery::create() + ->filterByKeystr('system_version') + ->findOne(); + $airtime_version = $pref->getValStr(); + + if (!in_array($airtime_version, array('2.5.1', '2.5.2'))) { + $this->getResponse() + ->setHttpResponseCode(400) + ->appendBody("Upgrade to Airtime 2.5.3 FAILED. You must be using Airtime 2.5.1 or 2.5.2 to upgrade."); + return false; + } + return true; + } +} diff --git a/airtime_mvc/application/controllers/WebstreamController.php b/airtime_mvc/application/controllers/WebstreamController.php index 8eb9a2ac5b..1d94923c31 100644 --- a/airtime_mvc/application/controllers/WebstreamController.php +++ b/airtime_mvc/application/controllers/WebstreamController.php @@ -88,7 +88,7 @@ public function deleteAction() public function isAuthorized($webstream_id) { $user = Application_Model_User::getCurrentUser(); - if ($user->isUserType(array(UTYPE_ADMIN, UTYPE_PROGRAM_MANAGER))) { + if ($user->isUserType(array(UTYPE_SUPERADMIN, UTYPE_ADMIN, UTYPE_PROGRAM_MANAGER))) { return true; } diff --git a/airtime_mvc/application/controllers/plugins/Acl_plugin.php b/airtime_mvc/application/controllers/plugins/Acl_plugin.php index 2771b1121a..d4577e4711 100644 --- a/airtime_mvc/application/controllers/plugins/Acl_plugin.php +++ b/airtime_mvc/application/controllers/plugins/Acl_plugin.php @@ -110,33 +110,63 @@ public function preDispatch(Zend_Controller_Request_Abstract $request) { $controller = strtolower($request->getControllerName()); Application_Model_Auth::pinSessionToClient(Zend_Auth::getInstance()); - - if (in_array($controller, array("api", "auth", "locale"))) { + + if (in_array($controller, array("api", "auth", "locale", "upgrade"))) { $this->setRoleName("G"); } elseif (!Zend_Auth::getInstance()->hasIdentity()) { - if ($controller !== 'login') { - - if ($request->isXmlHttpRequest()) { - - $url = 'http://'.$request->getHttpHost().'/login'; - $json = Zend_Json::encode(array('auth' => false, 'url' => $url)); - - // Prepare response + // If we don't have an identity and we're making a RESTful request, + // we need to do API key verification + if ($request->getModuleName() == "rest") { + if (!$this->verifyAuth()) { + $this->getResponse()->sendResponse(); + die(); + } + } + else //Non-REST, regular Airtime web app requests + { + //Redirect you to the login screen since you have no session. + if ($controller !== 'login') { + + if ($request->isXmlHttpRequest()) { + + $url = 'http://'.$request->getHttpHost().'/login'; + $json = Zend_Json::encode(array('auth' => false, 'url' => $url)); + + // Prepare response + $this->getResponse() + ->setHttpResponseCode(401) + ->setBody($json) + ->sendResponse(); + + //redirectAndExit() cleans up, sends the headers and stops the script + Zend_Controller_Action_HelperBroker::getStaticHelper('redirector')->redirectAndExit(); + } else { + $r = Zend_Controller_Action_HelperBroker::getStaticHelper('redirector'); + $r->gotoSimpleAndExit('index', 'login', $request->getModuleName()); + } + } + } + } else { //We have a session/identity. + // If we have an identity and we're making a RESTful request, + // we need to check the CSRF token + if ($_SERVER['REQUEST_METHOD'] != "GET" && $request->getModuleName() == "rest") { + $token = $request->getParam("csrf_token"); + $tokenValid = $this->verifyCSRFToken($token); + + if (!$tokenValid) { + $csrf_namespace = new Zend_Session_Namespace('csrf_namespace'); + $csrf_namespace->authtoken = sha1(openssl_random_pseudo_bytes(128)); + + Logging::warn("Invalid CSRF token: $token"); $this->getResponse() ->setHttpResponseCode(401) - ->setBody($json) + ->appendBody("ERROR: CSRF token mismatch.") ->sendResponse(); - - //redirectAndExit() cleans up, sends the headers and stops the script - Zend_Controller_Action_HelperBroker::getStaticHelper('redirector')->redirectAndExit(); - } else { - $r = Zend_Controller_Action_HelperBroker::getStaticHelper('redirector'); - $r->gotoSimpleAndExit('index', 'login', $request->getModuleName()); - } + die(); + } } - } else { - + $userInfo = Zend_Auth::getInstance()->getStorage()->read(); $this->setRoleName($userInfo->type); @@ -162,6 +192,38 @@ public function preDispatch(Zend_Controller_Request_Abstract $request) } } + private function verifyAuth() { + if ($this->verifyAPIKey()) { + return true; + } + + $this->getResponse() + ->setHttpResponseCode(401) + ->appendBody("ERROR: Incorrect API key."); + return false; + } + + private function verifyCSRFToken($token) { + $current_namespace = new Zend_Session_Namespace('csrf_namespace'); + $observed_csrf_token = $token; + $expected_csrf_token = $current_namespace->authtoken; + + return ($observed_csrf_token == $expected_csrf_token); + } + + private function verifyAPIKey() { + // The API key is passed in via HTTP "basic authentication": + // http://en.wikipedia.org/wiki/Basic_access_authentication + $CC_CONFIG = Config::getConfig(); + + // Decode the API key that was passed to us in the HTTP request. + $authHeader = $this->getRequest()->getHeader("Authorization"); + $encodedRequestApiKey = substr($authHeader, strlen("Basic ")); + $encodedStoredApiKey = base64_encode($CC_CONFIG["apiKey"][0] . ":"); + + return ($encodedRequestApiKey === $encodedStoredApiKey); + } + /** * Deny Access Function * Redirects to errorPage, this can be called from an action using the action helper diff --git a/airtime_mvc/application/controllers/plugins/Maintenance.php b/airtime_mvc/application/controllers/plugins/Maintenance.php new file mode 100644 index 0000000000..f6baf62017 --- /dev/null +++ b/airtime_mvc/application/controllers/plugins/Maintenance.php @@ -0,0 +1,15 @@ +setModuleName('default') + ->setControllerName('index') + ->setActionName('maintenance') + ->setDispatched(true); + } + } +} \ No newline at end of file diff --git a/airtime_mvc/application/controllers/upgrade_sql/airtime_2.5.3/upgrade.sql b/airtime_mvc/application/controllers/upgrade_sql/airtime_2.5.3/upgrade.sql new file mode 100644 index 0000000000..6c79809839 --- /dev/null +++ b/airtime_mvc/application/controllers/upgrade_sql/airtime_2.5.3/upgrade.sql @@ -0,0 +1,6 @@ +DELETE FROM cc_pref WHERE keystr = 'system_version'; +INSERT INTO cc_pref (keystr, valstr) VALUES ('system_version', '2.5.3'); + +ALTER TABLE cc_files DROP COLUMN state; +ALTER TABLE cc_files ADD import_status integer default 1; -- Default is "pending" +UPDATE cc_files SET import_status=0; -- Existing files are already "imported" diff --git a/airtime_mvc/application/forms/EditAudioMD.php b/airtime_mvc/application/forms/EditAudioMD.php index cbb45af02b..9fc41e3149 100644 --- a/airtime_mvc/application/forms/EditAudioMD.php +++ b/airtime_mvc/application/forms/EditAudioMD.php @@ -15,39 +15,62 @@ public function startForm($p_id) 'value' => $p_id )); // Add title field - $this->addElement('text', 'track_title', array( + /*$this->addElement('text', 'track_title', array( 'label' => _('Title:'), 'class' => 'input_text', 'filters' => array('StringTrim'), - )); + ));*/ + $track_title = new Zend_Form_Element_Text('track_title'); + $track_title->class = 'input_text'; + $track_title->setLabel(_('Title:')) + ->setFilters(array('StringTrim')) + ->setValidators(array( + new Zend_Validate_StringLength(array('max' => 512)) + )); + $this->addElement($track_title); // Add artist field - $this->addElement('text', 'artist_name', array( + /*$this->addElement('text', 'artist_name', array( 'label' => _('Creator:'), 'class' => 'input_text', 'filters' => array('StringTrim'), - )); + ));*/ + $artist_name = new Zend_Form_Element_Text('artist_name'); + $artist_name->class = 'input_text'; + $artist_name->setLabel(_('Creator:')) + ->setFilters(array('StringTrim')) + ->setValidators(array( + new Zend_Validate_StringLength(array('max' => 512)) + )); + $this->addElement($artist_name); // Add album field - $this->addElement('text', 'album_title', array( - 'label' => _('Album:'), - 'class' => 'input_text', - 'filters' => array('StringTrim') - )); + $album_title = new Zend_Form_Element_Text('album_title'); + $album_title->class = 'input_text'; + $album_title->setLabel(_('Album:')) + ->setFilters(array('StringTrim')) + ->setValidators(array( + new Zend_Validate_StringLength(array('max' => 512)) + ));; + $this->addElement($album_title); // Add track number field - $this->addElement('text', 'track_number', array( - 'label' => _('Track:'), - 'class' => 'input_text', - 'filters' => array('StringTrim'), - )); + $track_number = new Zend_Form_Element('track_number'); + $track_number->class = 'input_text'; + $track_number->setLabel('Track Number:') + ->setFilters(array('StringTrim')) + ->setValidators(array(new Zend_Validate_Int())); + $this->addElement($track_number); // Add genre field - $this->addElement('text', 'genre', array( - 'label' => _('Genre:'), - 'class' => 'input_text', - 'filters' => array('StringTrim') - )); + $genre = new Zend_Form_Element('genre'); + $genre->class = 'input_text'; + $genre->setLabel(_('Genre:')) + ->setFilters(array('StringTrim')) + ->setValidators(array( + new Zend_Validate_StringLength(array('max' => 64)) + )); + $this->addElement($genre); // Add year field $year = new Zend_Form_Element_Text('year'); @@ -63,32 +86,44 @@ public function startForm($p_id) $this->addElement($year); // Add label field - $this->addElement('text', 'label', array( - 'label' => _('Label:'), - 'class' => 'input_text', - 'filters' => array('StringTrim') - )); + $label = new Zend_Form_Element('label'); + $label->class = 'input_text'; + $label->setLabel(_('Label:')) + ->setFilters(array('StringTrim')) + ->setValidators(array( + new Zend_Validate_StringLength(array('max' => 512)) + )); + $this->addElement($label); // Add composer field - $this->addElement('text', 'composer', array( - 'label' => _('Composer:'), - 'class' => 'input_text', - 'filters' => array('StringTrim') - )); + $composer = new Zend_Form_Element('composer'); + $composer->class = 'input_text'; + $composer->setLabel(_('Composer:')) + ->setFilters(array('StringTrim')) + ->setValidators(array( + new Zend_Validate_StringLength(array('max' => 512)) + )); + $this->addElement($composer); // Add conductor field - $this->addElement('text', 'conductor', array( - 'label' => _('Conductor:'), - 'class' => 'input_text', - 'filters' => array('StringTrim') - )); + $conductor = new Zend_Form_Element('conductor'); + $conductor->class = 'input_text'; + $conductor->setLabel(_('Conductor:')) + ->setFilters(array('StringTrim')) + ->setValidators(array( + new Zend_Validate_StringLength(array('max' => 512)) + )); + $this->addElement($conductor); // Add mood field - $this->addElement('text', 'mood', array( - 'label' => _('Mood:'), - 'class' => 'input_text', - 'filters' => array('StringTrim') - )); + $mood = new Zend_Form_Element('mood'); + $mood->class = 'input_text'; + $mood->setLabel(_('Mood:')) + ->setFilters(array('StringTrim')) + ->setValidators(array( + new Zend_Validate_StringLength(array('max' => 64)) + )); + $this->addElement($mood); // Add bmp field $bpm = new Zend_Form_Element_Text('bpm'); @@ -101,32 +136,44 @@ public function startForm($p_id) $this->addElement($bpm); // Add copyright field - $this->addElement('text', 'copyright', array( - 'label' => _('Copyright:'), - 'class' => 'input_text', - 'filters' => array('StringTrim') - )); + $copyright = new Zend_Form_Element('copyright'); + $copyright->class = 'input_text'; + $copyright->setLabel(_('Copyright:')) + ->setFilters(array('StringTrim')) + ->setValidators(array( + new Zend_Validate_StringLength(array('max' => 512)) + )); + $this->addElement($copyright); // Add isrc number field - $this->addElement('text', 'isrc_number', array( - 'label' => _('ISRC Number:'), - 'class' => 'input_text', - 'filters' => array('StringTrim') - )); + $isrc_number = new Zend_Form_Element('isrc_number'); + $isrc_number->class = 'input_text'; + $isrc_number->setLabel(_('ISRC Number:')) + ->setFilters(array('StringTrim')) + ->setValidators(array( + new Zend_Validate_StringLength(array('max' => 512)) + )); + $this->addElement($isrc_number); // Add website field - $this->addElement('text', 'info_url', array( - 'label' => _('Website:'), - 'class' => 'input_text', - 'filters' => array('StringTrim') - )); + $info_url = new Zend_Form_Element('info_url'); + $info_url->class = 'input_text'; + $info_url->setLabel(_('Website:')) + ->setFilters(array('StringTrim')) + ->setValidators(array( + new Zend_Validate_StringLength(array('max' => 512)) + )); + $this->addElement($info_url); // Add language field - $this->addElement('text', 'language', array( - 'label' => _('Language:'), - 'class' => 'input_text', - 'filters' => array('StringTrim') - )); + $language = new Zend_Form_Element('language'); + $language->class = 'input_text'; + $language->setLabel(_('Language:')) + ->setFilters(array('StringTrim')) + ->setValidators(array( + new Zend_Validate_StringLength(array('max' => 512)) + )); + $this->addElement($language); // Add the submit button $this->addElement('button', 'editmdsave', array( diff --git a/airtime_mvc/application/models/Auth.php b/airtime_mvc/application/models/Auth.php index 34e36bbe43..e09d386921 100644 --- a/airtime_mvc/application/models/Auth.php +++ b/airtime_mvc/application/models/Auth.php @@ -75,8 +75,17 @@ public function checkToken($user_id, $token, $action) */ public static function getAuthAdapter() { - $dbAdapter = Zend_Db_Table::getDefaultAdapter(); - $authAdapter = new Zend_Auth_Adapter_DbTable($dbAdapter); + $CC_CONFIG = Config::getConfig(); + + // Database config + $db = Zend_Db::factory('PDO_' . $CC_CONFIG['dsn']['phptype'], array( + 'host' => $CC_CONFIG['dsn']['hostspec'], + 'username' => $CC_CONFIG['dsn']['username'], + 'password' => $CC_CONFIG['dsn']['password'], + 'dbname' => $CC_CONFIG['dsn']['database'] + )); + Zend_Db_Table_Abstract::setDefaultAdapter($db); + $authAdapter = new Zend_Auth_Adapter_DbTable($db); $authAdapter->setTableName('cc_subjs') ->setIdentityColumn('login') diff --git a/airtime_mvc/application/models/MusicDir.php b/airtime_mvc/application/models/MusicDir.php index 08b2b26495..80f6cbe25e 100644 --- a/airtime_mvc/application/models/MusicDir.php +++ b/airtime_mvc/application/models/MusicDir.php @@ -301,7 +301,9 @@ public static function addWatchedDir($p_path, $userAddedWatchedDir=true, $nested public static function getDirByPK($pk) { $dir = CcMusicDirsQuery::create()->findPK($pk); - + if (!$dir) { + return null; + } $mus_dir = new Application_Model_MusicDir($dir); return $mus_dir; diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index e568e01595..f4a9ed9de4 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -1390,4 +1390,25 @@ public static function SetHistoryFileTemplate($value) { public static function GetHistoryFileTemplate() { return self::getValue("history_file_template"); } + + public static function getDiskUsage() + { + $val = self::getValue("disk_usage"); + return (strlen($val) == 0) ? 0 : $val; + } + + public static function setDiskUsage($value) + { + self::setValue("disk_usage", $value); + } + + public static function updateDiskUsage($filesize) + { + $currentDiskUsage = self::getDiskUsage(); + if (empty($currentDiskUsage)) { + $currentDiskUsage = 0; + } + + self::setDiskUsage($currentDiskUsage + $filesize); + } } diff --git a/airtime_mvc/application/models/RabbitMq.php b/airtime_mvc/application/models/RabbitMq.php index 371fab0b9d..6918abc06e 100644 --- a/airtime_mvc/application/models/RabbitMq.php +++ b/airtime_mvc/application/models/RabbitMq.php @@ -13,7 +13,7 @@ public static function PushSchedule() self::$doPush = true; } - private static function sendMessage($exchange, $data) + private static function sendMessage($exchange, $exchangeType, $autoDeleteExchange, $data, $queue="") { $CC_CONFIG = Config::getConfig(); @@ -31,7 +31,9 @@ private static function sendMessage($exchange, $data) $channel->access_request($CC_CONFIG["rabbitmq"]["vhost"], false, false, true, true); - $channel->exchange_declare($exchange, 'direct', false, true); + //I'm pretty sure we DON'T want to autodelete ANY exchanges but I'm keeping the code + //the way it is just so I don't accidentally break anything when I add the Analyzer code in. -- Albert, March 13, 2014 + $channel->exchange_declare($exchange, $exchangeType, false, true, $autoDeleteExchange); $msg = new AMQPMessage($data, array('content_type' => 'text/plain')); @@ -46,7 +48,7 @@ public static function SendMessageToPypo($event_type, $md) $exchange = 'airtime-pypo'; $data = json_encode($md, JSON_FORCE_OBJECT); - self::sendMessage($exchange, $data); + self::sendMessage($exchange, 'direct', true, $data); } public static function SendMessageToMediaMonitor($event_type, $md) @@ -55,7 +57,7 @@ public static function SendMessageToMediaMonitor($event_type, $md) $exchange = 'airtime-media-monitor'; $data = json_encode($md); - self::sendMessage($exchange, $data); + self::sendMessage($exchange, 'direct', true, $data); } public static function SendMessageToShowRecorder($event_type) @@ -74,6 +76,27 @@ public static function SendMessageToShowRecorder($event_type) } $data = json_encode($temp); - self::sendMessage($exchange, $data); + self::sendMessage($exchange, 'direct', true, $data); + } + + public static function SendMessageToAnalyzer($tmpFilePath, $importedStorageDirectory, $originalFilename, + $callbackUrl, $apiKey, $currentStorageBackend) + { + $exchange = 'airtime-uploads'; + + $data['tmp_file_path'] = $tmpFilePath; + $data['current_storage_backend'] = $currentStorageBackend; + $data['import_directory'] = $importedStorageDirectory; + $data['original_filename'] = $originalFilename; + $data['callback_url'] = $callbackUrl; + $data['api_key'] = $apiKey; + // Pass station name to the analyzer so we can set it with the file's metadata + // and prefix the object name with it before uploading it to the cloud. This + // isn't a requirement for cloud storage, but put there as a safeguard, since + // all Airtime Pro stations will share the same bucket. + $data['station_domain'] = $stationDomain = Application_Model_Preference::GetStationName(); + + $jsonData = json_encode($data); + self::sendMessage($exchange, 'topic', false, $jsonData, 'airtime-uploads'); } } diff --git a/airtime_mvc/application/models/Schedule.php b/airtime_mvc/application/models/Schedule.php index 334aac4f10..53f156b244 100644 --- a/airtime_mvc/application/models/Schedule.php +++ b/airtime_mvc/application/models/Schedule.php @@ -761,7 +761,20 @@ private static function createInputHarborKickTimes(&$data, $range_start, $range_ } } - private static function createFileScheduleEvent(&$data, $item, $media_id, $uri) + /** + * + * Appends schedule "events" to an array of schedule events that gets + * sent to PYPO. Each schedule event contains information PYPO and + * Liquidsoap need for playout. + * + * @param Array $data array to be filled with schedule info - $item(s) + * @param Array $item schedule info about one track + * @param Integer $media_id scheduled item's cc_files id + * @param String $uri path to the scheduled item's physical location + * @param Integer $filsize The file's file size in bytes + * + */ + private static function createFileScheduleEvent(&$data, $item, $media_id, $uri, $filesize) { $start = self::AirtimeTimeToPypoTime($item["start"]); $end = self::AirtimeTimeToPypoTime($item["end"]); @@ -775,13 +788,16 @@ private static function createFileScheduleEvent(&$data, $item, $media_id, $uri) $replay_gain = is_null($item["replay_gain"]) ? "0": $item["replay_gain"]; $replay_gain += Application_Model_Preference::getReplayGainModifier(); - if ( !Application_Model_Preference::GetEnableReplayGain() ) { + if (!Application_Model_Preference::GetEnableReplayGain() ) { $replay_gain = 0; } + $fileMetadata = CcFiles::sanitizeResponse(CcFilesQuery::create()->findPk($media_id)); + $schedule_item = array( 'id' => $media_id, 'type' => 'file', + 'metadata' => $fileMetadata, 'row_id' => $item["id"], 'uri' => $uri, 'fade_in' => Application_Model_Schedule::WallTimeToMillisecs($item["fade_in"]), @@ -793,6 +809,7 @@ private static function createFileScheduleEvent(&$data, $item, $media_id, $uri) 'show_name' => $item["show_name"], 'replay_gain' => $replay_gain, 'independent_event' => $independent_event, + 'filesize' => $filesize, ); if ($schedule_item['cue_in'] > $schedule_item['cue_out']) { @@ -925,8 +942,13 @@ private static function createScheduledEvents(&$data, $range_start, $range_end) //row is from "file" $media_id = $item['file_id']; $storedFile = Application_Model_StoredFile::RecallById($media_id); - $uri = $storedFile->getFilePath(); - self::createFileScheduleEvent($data, $item, $media_id, $uri); + $file = $storedFile->getPropelOrm(); + $uri = $file->getAbsoluteFilePath(); + + $baseUrl = Application_Common_OsPath::getBaseDir(); + $filesize = $file->getFileSize(); + + self::createFileScheduleEvent($data, $item, $media_id, $uri, $filesize); } elseif (!is_null($item['stream_id'])) { //row is type "webstream" diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index 2c97d41d34..8a9cee9a0c 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -97,7 +97,7 @@ public function setLastPlayedTime($p_now) } public static function createWithFile($f, $con) { - $storedFile = new Application_Model_StoredFile($f, $con); + $storedFile = new Application_Model_StoredFile($f, $con); return $storedFile; } @@ -210,6 +210,13 @@ public function setDbColMetadata($p_md=null) if ($dbColumn == "track_title" && (is_null($mdValue) || $mdValue == "")) { continue; } + + // Bpm gets POSTed as a string type. With Propel 1.6 this value + // was casted to an integer type before saving it to the db. But + // Propel 1.7 does not do this + if ($dbColumn == "bpm") { + $mdValue = (int) $mdValue; + } # TODO : refactor string evals if (isset($this->_dbMD[$dbColumn])) { $propelColumn = $this->_dbMD[$dbColumn]; @@ -346,19 +353,31 @@ public function getPlaylists() return array(); } } + + /** + * Check if the file (on disk) corresponding to this class exists or not. + * @return boolean true if the file exists, false otherwise. + */ + public function existsOnDisk() + { + $exists = false; + try { + $filePath = $this->getFilePath(); + $exists = (file_exists($this->getFilePath()) && !is_dir($filePath)); + } catch (Exception $e) { + return false; + } + return $exists; + } /** - * Delete stored virtual file - * - * @param boolean $p_deleteFile + * Deletes the physical file from the local file system or from the cloud * */ public function delete() { - - $filepath = $this->getFilePath(); // Check if the file is scheduled to be played in the future - if (Application_Model_Schedule::IsFileScheduledInTheFuture($this->getId())) { + if (Application_Model_Schedule::IsFileScheduledInTheFuture($this->_file->getCcFileId())) { throw new DeleteScheduledFileException(); } @@ -368,29 +387,37 @@ public function delete() if (!$isAdminOrPM && $this->getFileOwnerId() != $user->getId()) { throw new FileNoPermissionException(); } + $file_id = $this->_file->getDbId(); + Logging::info("User ".$user->getLogin()." is deleting file: ".$this->_file->getDbTrackTitle()." - file id: ".$file_id); - $music_dir = Application_Model_MusicDir::getDirByPK($this->_file->getDbDirectory()); - $type = $music_dir->getType(); - - if (file_exists($filepath) && $type == "stor") { - $data = array("filepath" => $filepath, "delete" => 1); - try { - Application_Model_RabbitMq::SendMessageToMediaMonitor("file_delete", $data); - } catch (Exception $e) { - Logging::error($e->getMessage()); - return; - } + $filesize = $this->_file->getFileSize(); + if ($filesize <= 0) { + throw new Exception("Cannot delete file with filesize ".$filesize); } + //Delete the physical file from either the local stor directory + //or from the cloud + $this->_file->deletePhysicalFile(); - // set hidden flag to true - $this->_file->setDbHidden(true); - $this->_file->save(); + //Update the user's disk usage + Application_Model_Preference::updateDiskUsage(-1 * $filesize); + + //Explicitly update any playlist's and block's length that contain + //the file getting deleted + self::updateBlockAndPlaylistLength($this->_file->getDbId()); + + //delete the file record from cc_files (and cloud_file, if applicable) + $this->_file->delete(); + } - // need to explicitly update any playlist's and block's length - // that contains the file getting deleted - $fileId = $this->_file->getDbId(); - $plRows = CcPlaylistcontentsQuery::create()->filterByDbFileId()->find(); + /* + * This function is meant to be called when a file is getting + * deleted from the library. It re-calculates the length of + * all blocks and playlists that contained the deleted file. + */ + private static function updateBlockAndPlaylistLength($fileId) + { + $plRows = CcPlaylistcontentsQuery::create()->filterByDbFileId($fileId)->find(); foreach ($plRows as $row) { $pl = CcPlaylistQuery::create()->filterByDbId($row->getDbPlaylistId($fileId))->findOne(); $pl->setDbLength($pl->computeDbLength(Propel::getConnection(CcPlaylistPeer::DATABASE_NAME))); @@ -453,7 +480,7 @@ public function getFileExtension() $mime = $this->_file->getDbMime(); - if ($mime == "audio/ogg" || $mime == "application/ogg") { + if ($mime == "audio/ogg" || $mime == "application/ogg" || $mime == "audio/vorbis") { return "ogg"; } elseif ($mime == "audio/mp3" || $mime == "audio/mpeg") { return "mp3"; @@ -467,18 +494,15 @@ public function getFileExtension() } /** - * Get real filename of raw media data + * Get the absolute filepath * * @return string */ public function getFilePath() { - $music_dir = Application_Model_MusicDir::getDirByPK($this-> - _file->getDbDirectory()); - $directory = $music_dir->getDirectory(); - $filepath = $this->_file->getDbFilepath(); - - return Application_Common_OsPath::join($directory, $filepath); + assert($this->_file); + + return $this->_file->getURLForTrackPreviewOrDownload(); } /** @@ -530,7 +554,21 @@ public function getRelativeFileUrl($baseUrl) { return $baseUrl."api/get-media/file/".$this->getId().".".$this->getFileExtension(); } + + public function getResourceId() + { + return $this->_file->getResourceId(); + } + public function getFileSize() + { + $filesize = $this->_file->getFileSize(); + if ($filesize <= 0) { + throw new Exception ("Could not determine filesize for file id: ".$this->_file->getDbId().". Filesize: ".$filesize); + } + return $filesize; + } + public static function Insert($md, $con) { // save some work by checking if filepath is given right away @@ -569,8 +607,23 @@ public static function RecallById($p_id=null, $con=null) { } if (isset($p_id)) { - $f = CcFilesQuery::create()->findPK(intval($p_id), $con); - return is_null($f) ? null : self::createWithFile($f, $con); + $p_id = intval($p_id); + + $storedFile = CcFilesQuery::create()->findPK($p_id, $con); + if (is_null($storedFile)) { + throw new Exception("Could not recall file with id: ".$p_id); + } + + //Attempt to get the cloud file object and return it. If no cloud + //file object is found then we are dealing with a regular stored + //object so return that + $cloudFile = CloudFileQuery::create()->findOneByCcFileId($p_id); + + if (is_null($cloudFile)) { + return self::createWithFile($storedFile, $con); + } else { + return self::createWithFile($cloudFile, $con); + } } else { throw new Exception("No arguments passed to RecallById"); } @@ -578,8 +631,7 @@ public static function RecallById($p_id=null, $con=null) { public function getName() { - $info = pathinfo($this->getFilePath()); - return $info['filename']; + return $this->_file->getFilename(); } /** @@ -874,168 +926,67 @@ public static function searchLibraryFiles($datatables) return $results; } - public static function uploadFile($p_targetDir) - { - // HTTP headers for no cache etc - header('Content-type: text/plain; charset=UTF-8'); - header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); - header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - header("Cache-Control: no-store, no-cache, must-revalidate"); - header("Cache-Control: post-check=0, pre-check=0", false); - header("Pragma: no-cache"); - - // Settings - $cleanupTargetDir = false; // Remove old files - $maxFileAge = 60 * 60; // Temp file age in seconds - - // 5 minutes execution time - @set_time_limit(5 * 60); - // usleep(5000); - - // Get parameters - $chunk = isset($_REQUEST["chunk"]) ? $_REQUEST["chunk"] : 0; - $chunks = isset($_REQUEST["chunks"]) ? $_REQUEST["chunks"] : 0; - $fileName = isset($_REQUEST["name"]) ? $_REQUEST["name"] : ''; - # TODO : should not log __FILE__ itself. there is general logging for - # this - Logging::info(__FILE__.":uploadFile(): filename=$fileName to $p_targetDir"); - // Clean the fileName for security reasons - //this needs fixing for songs not in ascii. - //$fileName = preg_replace('/[^\w\._]+/', '', $fileName); - - // Create target dir - if (!file_exists($p_targetDir)) - @mkdir($p_targetDir); - - // Remove old temp files - if (is_dir($p_targetDir) && ($dir = opendir($p_targetDir))) { - while (($file = readdir($dir)) !== false) { - $filePath = $p_targetDir . DIRECTORY_SEPARATOR . $file; - - // Remove temp files if they are older than the max age - if (preg_match('/\.tmp$/', $file) && (filemtime($filePath) < time() - $maxFileAge)) - @unlink($filePath); - } - - closedir($dir); - } else - die('{"jsonrpc" : "2.0", "error" : {"code": 100, "message": _("Failed to open temp directory.")}, "id" : "id"}'); - - // Look for the content type header - if (isset($_SERVER["HTTP_CONTENT_TYPE"])) - $contentType = $_SERVER["HTTP_CONTENT_TYPE"]; - - if (isset($_SERVER["CONTENT_TYPE"])) - $contentType = $_SERVER["CONTENT_TYPE"]; - - // create temp file name (CC-3086) - // we are not using mktemp command anymore. - // plupload support unique_name feature. - $tempFilePath= $p_targetDir . DIRECTORY_SEPARATOR . $fileName; - - // Old IBM code... - if (strpos($contentType, "multipart") !== false) { - if (isset($_FILES['file']['tmp_name']) && is_uploaded_file($_FILES['file']['tmp_name'])) { - // Open temp file - $out = fopen($tempFilePath, $chunk == 0 ? "wb" : "ab"); - if ($out) { - // Read binary input stream and append it to temp file - $in = fopen($_FILES['file']['tmp_name'], "rb"); - - if ($in) { - while (($buff = fread($in, 4096))) - fwrite($out, $buff); - } else - die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": _("Failed to open input stream.")}, "id" : "id"}'); - - fclose($out); - unlink($_FILES['file']['tmp_name']); - } else - die('{"jsonrpc" : "2.0", "error" : {"code": 102, "message": _("Failed to open output stream.")}, "id" : "id"}'); - } else - die('{"jsonrpc" : "2.0", "error" : {"code": 103, "message": _("Failed to move uploaded file.")}, "id" : "id"}'); - } else { - // Open temp file - $out = fopen($tempFilePath, $chunk == 0 ? "wb" : "ab"); - if ($out) { - // Read binary input stream and append it to temp file - $in = fopen("php://input", "rb"); - - if ($in) { - while (($buff = fread($in, 4096))) - fwrite($out, $buff); - } else - die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": _("Failed to open input stream.")}, "id" : "id"}'); - - fclose($out); - } else - die('{"jsonrpc" : "2.0", "error" : {"code": 102, "message": _("Failed to open output stream.")}, "id" : "id"}'); - } - - return $tempFilePath; - } - - /** - * Check, using disk_free_space, the space available in the $destination_folder folder to see if it has - * enough space to move the $audio_file into and report back to the user if not. - **/ - public static function isEnoughDiskSpaceToCopy($destination_folder, $audio_file) - { - //check to see if we have enough space in the /organize directory to copy the file - $freeSpace = disk_free_space($destination_folder); - $fileSize = filesize($audio_file); - - return $freeSpace >= $fileSize; - } - - public static function copyFileToStor($p_targetDir, $fileName, $tempname) + /** + * Copy a newly uploaded audio file from its temporary upload directory + * on the local disk (like /tmp) over to Airtime's "stor" directory, + * which is where all ingested music/media live. + * + * This is done in PHP here on the web server rather than in airtime_analyzer because + * the airtime_analyzer might be running on a different physical computer than the web server, + * and it probably won't have access to the web server's /tmp folder. The stor/organize directory + * is, however, both accessible to the machines running airtime_analyzer and the web server + * on Airtime Pro. + * + * The file is actually copied to "stor/organize", which is a staging directory where files go + * before they're processed by airtime_analyzer, which then moves them to "stor/imported" in the final + * step. + * + * TODO: Implement better error handling here... + * + * @param string $tempFilePath + * @param string $originalFilename + * @throws Exception + * @return Ambigous + */ + public static function copyFileToStor($tempFilePath, $originalFilename) { - $audio_file = $p_targetDir . DIRECTORY_SEPARATOR . $tempname; + $audio_file = $tempFilePath; Logging::info('copyFileToStor: moving file '.$audio_file); - + $storDir = Application_Model_MusicDir::getStorDir(); $stor = $storDir->getDirectory(); // check if "organize" dir exists and if not create one if (!file_exists($stor."/organize")) { if (!mkdir($stor."/organize", 0777)) { - return array( - "code" => 109, - "message" => _("Failed to create 'organize' directory.")); + throw new Exception("Failed to create organize directory."); } } - + if (chmod($audio_file, 0644) === false) { Logging::info("Warning: couldn't change permissions of $audio_file to 0644"); } - - // Check if we have enough space before copying - if (!self::isEnoughDiskSpaceToCopy($stor, $audio_file)) { - $freeSpace = disk_free_space($stor); - $fileSize = filesize($audio_file); - - return array("code" => 107, - "message" => sprintf(_("The file was not uploaded, there is " - ."%s MB of disk space left and the file you are " - ."uploading has a size of %s MB."), $freeSpace, $fileSize)); - } - + // Check if liquidsoap can play this file + // TODO: Move this to airtime_analyzer + /* if (!self::liquidsoapFilePlayabilityTest($audio_file)) { return array( - "code" => 110, - "message" => _("This file appears to be corrupted and will not " - ."be added to media library.")); - } + "code" => 110, + "message" => _("This file appears to be corrupted and will not " + ."be added to media library.")); + }*/ + // Did all the checks for real, now trying to copy $audio_stor = Application_Common_OsPath::join($stor, "organize", - $fileName); + $originalFilename); $user = Application_Model_User::getCurrentUser(); if (is_null($user)) { $uid = Application_Model_User::getFirstAdminId(); } else { $uid = $user->getId(); } + /* $id_file = "$audio_stor.identifier"; if (file_put_contents($id_file, $uid) === false) { Logging::info("Could not write file to identify user: '$uid'"); @@ -1044,8 +995,9 @@ public static function copyFileToStor($p_targetDir, $fileName, $tempname) written)"); } else { Logging::info("Successfully written identification file for - uploaded '$audio_stor'"); - } + uploaded '$audio_stor'"); + }*/ + //if the uploaded file is not UTF-8 encoded, let's encode it. Assuming source //encoding is ISO-8859-1 $audio_stor = mb_detect_encoding($audio_stor, "UTF-8") == "UTF-8" ? $audio_stor : utf8_encode($audio_stor); @@ -1058,19 +1010,15 @@ public static function copyFileToStor($p_targetDir, $fileName, $tempname) //the file wasn't uploaded and they should check if there . //is enough disk space . unlink($audio_file); //remove the file after failed rename - unlink($id_file); // Also remove the identifier file - - return array( - "code" => 108, - "message" => _("The file was not uploaded, this error can occur if the computer " - ."hard drive does not have enough disk space or the stor " - ."directory does not have correct write permissions.")); + //unlink($id_file); // Also remove the identifier file + + throw new Exception("The file was not uploaded, this error can occur if the computer " + ."hard drive does not have enough disk space or the stor " + ."directory does not have correct write permissions."); } - // Now that we successfully added this file, we will add another tag - // file that will identify the user that owns it - return null; + return $audio_stor; } - + /* * Pass the file through Liquidsoap and test if it is readable. Return True if readable, and False otherwise. */ diff --git a/airtime_mvc/application/models/Systemstatus.php b/airtime_mvc/application/models/Systemstatus.php index 4a0480a048..05e69bc345 100644 --- a/airtime_mvc/application/models/Systemstatus.php +++ b/airtime_mvc/application/models/Systemstatus.php @@ -235,4 +235,16 @@ public static function GetDiskInfo() return array_values($partitions); } + + public static function isDiskOverQuota() + { + $diskInfo = self::GetDiskInfo(); + $diskInfo = $diskInfo[0]; + $diskUsage = $diskInfo->totalSpace - $diskInfo->totalFreeSpace; + if ($diskUsage >= $diskInfo->totalSpace) { + return true; + } + + return false; + } } diff --git a/airtime_mvc/application/models/airtime/CcFiles.php b/airtime_mvc/application/models/airtime/CcFiles.php index f49c9154ab..04a9e3b958 100644 --- a/airtime_mvc/application/models/airtime/CcFiles.php +++ b/airtime_mvc/application/models/airtime/CcFiles.php @@ -11,9 +11,288 @@ * * @package propel.generator.campcaster */ + +class InvalidMetadataException extends Exception +{ +} + +class FileNotFoundException extends Exception +{ +} + +class OverDiskQuotaException extends Exception +{ + +} + class CcFiles extends BaseCcFiles { - - public function getCueLength() + + const MUSIC_DIRS_STOR_PK = 1; + + + //fields that are not modifiable via our RESTful API + private static $blackList = array( + 'id', + 'directory', + 'filepath', + 'file_exists', + 'mtime', + 'utime', + 'lptime', + 'silan_check', + 'soundcloud_id', + 'is_scheduled', + 'is_playlist' + ); + + //fields we should never expose through our RESTful API + private static $privateFields = array( + 'file_exists', + 'silan_check', + 'is_scheduled', + 'is_playlist' + ); + + /** + * Retrieve a sanitized version of the file metadata, suitable for public access. + * @param $fileId + */ + public static function getSantiziedFileById($fileId) + { + $file = CcFilesQuery::create()->findPk($fileId); + if ($file) { + return CcFiles::sanitizeResponse($file); + } else { + throw new FileNotFoundException(); + } + } + + /** Used to create a CcFiles object from an array containing metadata and a file uploaded by POST. + * This is used by our Media REST API! + * @param $fileArray An array containing metadata for a CcFiles object. + * @throws Exception + */ + public static function createFromUpload($fileArray) + { + if (Application_Model_Systemstatus::isDiskOverQuota()) { + throw new OverDiskQuotaException(); + } + + $file = new CcFiles(); + + try{ + $fileArray = self::removeBlacklistedFields($fileArray); + + /*if (!self::validateFileArray($fileArray)) + { + $file->setDbTrackTitle($_FILES["file"]["name"]); + $file->setDbUtime(new DateTime("now", new DateTimeZone("UTC"))); + $file->save(); + return CcFiles::sanitizeResponse($file);*/ + self::validateFileArray($fileArray); + + /* If full_path is set, the post request came from ftp. + * Users are allowed to upload folders via ftp. If this is the case + * we need to include the folder name with the file name, otherwise + * files won't get removed from the organize folder. + */ + if (isset($fileArray["full_path"])) { + $fullPath = $fileArray["full_path"]; + $basePath = isset($_SERVER['AIRTIME_BASE']) ? $_SERVER['AIRTIME_BASE']."/srv/airtime/stor/organize/" : "/srv/airtime/stor/organize/"; + //$relativePath is the folder name(if one) + track name, that was uploaded via ftp + $relativePath = substr($fullPath, strlen($basePath)-1); + } else { + $relativePath = $_FILES["file"]["name"]; + } + + + $file->fromArray($fileArray); + $file->setDbOwnerId(self::getOwnerId()); + $now = new DateTime("now", new DateTimeZone("UTC")); + $file->setDbTrackTitle($_FILES["file"]["name"]); + $file->setDbUtime($now); + $file->setDbHidden(true); + $file->save(); + + $callbackUrl = Application_Common_HTTPHelper::getStationUrl() . "/rest/media/" . $file->getPrimaryKey(); + + Application_Service_MediaService::processUploadedFile($callbackUrl, $relativePath, self::getOwnerId()); + return CcFiles::sanitizeResponse($file); + + } catch (Exception $e) { + $file->setDbImportStatus(2); + $file->setDbHidden(true); + throw $e; + } + } + + /** Update a file with metadata specified in an array. + * @param $fileId The ID of the file to update in the DB. + * @param $fileArray An associative array containing metadata. Replaces those fields if they exist. + * @return array A sanitized version of the file metadata array. + * @throws Exception + * @throws FileNotFoundException + * @throws PropelException + */ + public static function updateFromArray($fileId, $fileArray) + { + $file = CcFilesQuery::create()->findPk($fileId); + + // Since we check for this value when deleting files, set it first + $file->setDbDirectory(self::MUSIC_DIRS_STOR_PK); + + $fileArray = self::removeBlacklistedFields($fileArray); + $fileArray = self::stripTimeStampFromYearTag($fileArray); + + self::validateFileArray($fileArray); + if ($file && isset($requestData["resource_id"])) { + + $file->fromArray($fileArray, BasePeer::TYPE_FIELDNAME); + + //store the original filename + $file->setDbFilepath($fileArray["filename"]); + + $fileSizeBytes = $fileArray["filesize"]; + if (!isset($fileSizeBytes) || $fileSizeBytes === false) + { + $file->setDbImportStatus(2)->save(); + throw new FileNotFoundException(); + } + $cloudFile = new CloudFile(); + $cloudFile->setStorageBackend($fileArray["storage_backend"]); + $cloudFile->setResourceId($fileArray["resource_id"]); + $cloudFile->setCcFiles($file); + $cloudFile->save(); + + Application_Model_Preference::updateDiskUsage($fileSizeBytes); + + $now = new DateTime("now", new DateTimeZone("UTC")); + $file->setDbMtime($now); + $file->save(); + + } else if ($file) { + + $file->fromArray($fileArray, BasePeer::TYPE_FIELDNAME); + + //Our RESTful API takes "full_path" as a field, which we then split and translate to match + //our internal schema. Internally, file path is stored relative to a directory, with the directory + //as a foreign key to cc_music_dirs. + if (isset($fileArray["full_path"])) { + $fileSizeBytes = filesize($fileArray["full_path"]); + if (!isset($fileSizeBytes) || $fileSizeBytes === false) + { + $file->setDbImportStatus(self::IMPORT_STATUS_FAILED)->save(); + throw new FileNotFoundException(); + } + Application_Model_Preference::updateDiskUsage($fileSizeBytes); + + $fullPath = $fileArray["full_path"]; + $storDir = Application_Model_MusicDir::getStorDir()->getDirectory(); + $pos = strpos($fullPath, $storDir); + + if ($pos !== FALSE) + { + assert($pos == 0); //Path must start with the stor directory path + + $filePathRelativeToStor = substr($fullPath, strlen($storDir)); + $file->setDbFilepath($filePathRelativeToStor); + } + } + + $now = new DateTime("now", new DateTimeZone("UTC")); + $file->setDbMtime($now); + $file->save(); + + /* $this->removeEmptySubFolders( + isset($_SERVER['AIRTIME_BASE']) ? $_SERVER['AIRTIME_BASE']."/srv/airtime/stor/organize/" : "/srv/airtime/stor/organize/"); */ + } else { + $file->setDbImportStatus(self::IMPORT_STATUS_FAILED)->save(); + throw new FileNotFoundException(); + } + + return CcFiles::sanitizeResponse($file); + } + + /** Delete a file from the database and disk (or cloud). + * @param $id The file ID + * @throws DeleteScheduledFileException + * @throws Exception + * @throws FileNoPermissionException + * @throws FileNotFoundException + * @throws PropelException + */ + public static function deleteById($id) + { + $file = CcFilesQuery::create()->findPk($id); + if ($file) { + $con = Propel::getConnection(); + $storedFile = new Application_Model_StoredFile($file, $con); + if ($storedFile->existsOnDisk()) { + $storedFile->delete(); //TODO: This checks your session permissions... Make it work without a session? + } + $file->delete(); + } else { + throw new FileNotFoundException(); + } + + } + + public static function getDownloadUrl($id) + { + $file = CcFilesQuery::create()->findPk($id); + if ($file) { + $con = Propel::getConnection(); + $storedFile = new Application_Model_StoredFile($file, $con); + $baseDir = Application_Common_OsPath::getBaseDir(); + + return $storedFile->getRelativeFileUrl($baseDir) . '/download/true'; + } + else { + throw new FileNotFoundException(); + } + } + + private static function validateFileArray(&$fileArray) + { + // Sanitize any wildly incorrect metadata before it goes to be validated + FileDataHelper::sanitizeData($fileArray); + + // EditAudioMD form is used here for validation + $fileForm = new Application_Form_EditAudioMD(); + $fileForm->startForm(0); //The file ID doesn't matter here + $fileForm->populate($fileArray); + + /* + * Here we are truncating metadata of any characters greater than the + * max string length set in the database. In the rare case a track's + * genre is more than 64 chars, for example, we don't want to reject + * tracks for that reason + */ + foreach($fileArray as $tag => &$value) { + if ($fileForm->getElement($tag)) { + $stringLengthValidator = $fileForm->getElement($tag)->getValidator('StringLength'); + //$stringLengthValidator will be false if the StringLength validator doesn't exist on the current element + //in which case we don't have to truncate the extra characters + if ($stringLengthValidator) { + $value = substr($value, 0, $stringLengthValidator->getMax()); + } + + $value = self::stripInvalidUtf8Characters($value); + } + } + + if (!$fileForm->isValidPartial($fileArray)) { + $errors = $fileForm->getErrors(); + $messages = $fileForm->getMessages(); + Logging::error($messages); + throw new Exception("Data validation failed: $errors - $messages"); + } + + return true; + } + + + public function getCueLength() { $cuein = $this->getDbCuein(); $cueout = $this->getDbCueout(); @@ -46,4 +325,174 @@ public function reassignTo($user) $this->save(); } + /** + * + * Strips out the private fields we do not want to send back in API responses + * @param $file a CcFiles object + */ + //TODO: rename this function? + public static function sanitizeResponse($file) + { + $response = $file->toArray(BasePeer::TYPE_FIELDNAME); + + foreach (self::$privateFields as $key) { + unset($response[$key]); + } + + return $response; + } + + /** + * + * Strips out fields from incoming request data that should never be modified + * from outside of Airtime + * @param array $data + */ + private static function removeBlacklistedFields($data) + { + foreach (self::$blackList as $key) { + unset($data[$key]); + } + + return $data; + } + + + private static function getOwnerId() + { + try { + if (Zend_Auth::getInstance()->hasIdentity()) { + $service_user = new Application_Service_UserService(); + return $service_user->getCurrentUser()->getDbId(); + } else { + $defaultOwner = CcSubjsQuery::create() + ->filterByDbType('A') + ->orderByDbId() + ->findOne(); + if (!$defaultOwner) { + // what to do if there is no admin user? + // should we handle this case? + return null; + } + return $defaultOwner->getDbId(); + } + } catch(Exception $e) { + Logging::info($e->getMessage()); + } + } + /* + * It's possible that the year tag will be a timestamp but Airtime doesn't support this. + * The year field in cc_files can only be 16 chars max. + * + * This functions strips the year field of it's timestamp, if one, and leaves just the year + */ + private static function stripTimeStampFromYearTag($metadata) + { + if (isset($metadata["year"])) { + if (preg_match("/^(\d{4})-(\d{2})-(\d{2})(?:\s+(\d{2}):(\d{2}):(\d{2}))?$/", $metadata["year"])) { + $metadata["year"] = substr($metadata["year"], 0, 4); + } + } + return $metadata; + } + + private static function stripInvalidUtf8Characters($string) + { + //Remove invalid UTF-8 characters + //reject overly long 2 byte sequences, as well as characters above U+10000 and replace with ? + $string = preg_replace('/[\x00-\x08\x10\x0B\x0C\x0E-\x19\x7F]'. + '|[\x00-\x7F][\x80-\xBF]+'. + '|([\xC0\xC1]|[\xF0-\xFF])[\x80-\xBF]*'. + '|[\xC2-\xDF]((?![\x80-\xBF])|[\x80-\xBF]{2,})'. + '|[\xE0-\xEF](([\x80-\xBF](?![\x80-\xBF]))|(?![\x80-\xBF]{2})|[\x80-\xBF]{3,})/S', + '?', $string ); + + //reject overly long 3 byte sequences and UTF-16 surrogates and replace with ? + $string = preg_replace('/\xE0[\x80-\x9F][\x80-\xBF]'. + '|\xED[\xA0-\xBF][\x80-\xBF]/S','?', $string ); + + //Do a final encoding conversion to + $string = mb_convert_encoding($string, 'UTF-8', 'UTF-8'); + return $string; + } + + private function removeEmptySubFolders($path) + { + exec("find $path -empty -type d -delete"); + } + + /** + * Returns the file size in bytes. + */ + public function getFileSize() + { + return filesize($this->getAbsoluteFilePath()); + } + + public function getFilename() + { + $info = pathinfo($this->getAbsoluteFilePath()); + return $info['filename']; + } + + /** + * Returns the file's absolute file path stored on disk. + */ + public function getURLForTrackPreviewOrDownload() + { + return $this->getAbsoluteFilePath(); + } + + /** + * Returns the file's absolute file path stored on disk. + */ + public function getAbsoluteFilePath() + { + $music_dir = Application_Model_MusicDir::getDirByPK($this->getDbDirectory()); + if (!$music_dir) { + throw new Exception("Invalid music_dir for file in database."); + } + $directory = $music_dir->getDirectory(); + $filepath = $this->getDbFilepath(); + + return Application_Common_OsPath::join($directory, $filepath); + } + + /** + * Checks if the file is a regular file that can be previewed and downloaded. + */ + public function isValidPhysicalFile() + { + return is_file($this->getAbsoluteFilePath()); + } + + /** + * + * Deletes the file from the stor directory on disk. + */ + public function deletePhysicalFile() + { + $filepath = $this->getAbsoluteFilePath(); + if (file_exists($filepath)) { + unlink($filepath); + } else { + throw new Exception("Could not locate file ".$filepath); + } + } + + /** + * + * This function refers to the file's Amazon S3 resource id. + * Returns null because cc_files are stored on local disk. + */ + public function getResourceId() + { + return null; + } + + public function getCcFileId() + { + return $this->id; + } + } // CcFiles diff --git a/airtime_mvc/application/models/airtime/CloudFile.php b/airtime_mvc/application/models/airtime/CloudFile.php new file mode 100644 index 0000000000..c6fe79a912 --- /dev/null +++ b/airtime_mvc/application/models/airtime/CloudFile.php @@ -0,0 +1,96 @@ +proxyStorageBackend == null) { + $this->proxyStorageBackend = new ProxyStorageBackend($this->getStorageBackend()); + } + return $this->proxyStorageBackend->getSignedURL($this->getResourceId()); + } + + /** + * + * Returns a url to the file's object on Amazon S3. + */ + public function getAbsoluteFilePath() + { + if ($this->proxyStorageBackend == null) { + $this->proxyStorageBackend = new ProxyStorageBackend($this->getStorageBackend()); + } + return $this->proxyStorageBackend->getAbsoluteFilePath($this->getResourceId()); + } + + /** + * Returns the file size in bytes. + */ + public function getFileSize() + { + if ($this->proxyStorageBackend == null) { + $this->proxyStorageBackend = new ProxyStorageBackend($this->getStorageBackend()); + } + return $this->proxyStorageBackend->getFileSize($this->getResourceId()); + } + + public function getFilename() + { + return $this->getDbFilepath(); + } + + /** + * Checks if the file is a regular file that can be previewed and downloaded. + */ + public function isValidPhysicalFile() + { + // We don't need to check if the cloud file is a valid file because + // before it is imported the Analyzer runs it through Liquidsoap + // to check its playability. If Liquidsoap can't play the file it + // does not get imported into the Airtime library. + return true; + } + + /** + * + * Deletes the file from cloud storage + */ + public function deletePhysicalFile() + { + if ($this->proxyStorageBackend == null) { + $this->proxyStorageBackend = new ProxyStorageBackend($this->getStorageBackend()); + } + $this->proxyStorageBackend->deletePhysicalFile($this->getResourceId()); + } + + /** + * + * Deletes the cc_file and cloud_file entries from the database. + */ + public function delete(PropelPDO $con = NULL) + { + CcFilesQuery::create()->findPk($this->getCcFileId())->delete(); + parent::delete(); + } +} diff --git a/airtime_mvc/application/models/airtime/CloudFilePeer.php b/airtime_mvc/application/models/airtime/CloudFilePeer.php new file mode 100644 index 0000000000..8732198600 --- /dev/null +++ b/airtime_mvc/application/models/airtime/CloudFilePeer.php @@ -0,0 +1,18 @@ +setName('cc_block'); - $this->setPhpName('CcBlock'); - $this->setClassname('CcBlock'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_block_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('NAME', 'DbName', 'VARCHAR', true, 255, ''); - $this->addColumn('MTIME', 'DbMtime', 'TIMESTAMP', false, 6, null); - $this->addColumn('UTIME', 'DbUtime', 'TIMESTAMP', false, 6, null); - $this->addForeignKey('CREATOR_ID', 'DbCreatorId', 'INTEGER', 'cc_subjs', 'ID', false, null, null); - $this->addColumn('DESCRIPTION', 'DbDescription', 'VARCHAR', false, 512, null); - $this->addColumn('LENGTH', 'DbLength', 'VARCHAR', false, null, '00:00:00'); - $this->addColumn('TYPE', 'DbType', 'VARCHAR', false, 7, 'static'); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_block'); + $this->setPhpName('CcBlock'); + $this->setClassname('CcBlock'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_block_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('name', 'DbName', 'VARCHAR', true, 255, ''); + $this->addColumn('mtime', 'DbMtime', 'TIMESTAMP', false, 6, null); + $this->addColumn('utime', 'DbUtime', 'TIMESTAMP', false, 6, null); + $this->addForeignKey('creator_id', 'DbCreatorId', 'INTEGER', 'cc_subjs', 'id', false, null, null); + $this->addColumn('description', 'DbDescription', 'VARCHAR', false, 512, null); + $this->addColumn('length', 'DbLength', 'VARCHAR', false, null, '00:00:00'); + $this->addColumn('type', 'DbType', 'VARCHAR', false, 7, 'static'); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('creator_id' => 'id', ), 'CASCADE', null); - $this->addRelation('CcPlaylistcontents', 'CcPlaylistcontents', RelationMap::ONE_TO_MANY, array('id' => 'block_id', ), 'CASCADE', null); - $this->addRelation('CcBlockcontents', 'CcBlockcontents', RelationMap::ONE_TO_MANY, array('id' => 'block_id', ), 'CASCADE', null); - $this->addRelation('CcBlockcriteria', 'CcBlockcriteria', RelationMap::ONE_TO_MANY, array('id' => 'block_id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('creator_id' => 'id', ), 'CASCADE', null); + $this->addRelation('CcPlaylistcontents', 'CcPlaylistcontents', RelationMap::ONE_TO_MANY, array('id' => 'block_id', ), 'CASCADE', null, 'CcPlaylistcontentss'); + $this->addRelation('CcBlockcontents', 'CcBlockcontents', RelationMap::ONE_TO_MANY, array('id' => 'block_id', ), 'CASCADE', null, 'CcBlockcontentss'); + $this->addRelation('CcBlockcriteria', 'CcBlockcriteria', RelationMap::ONE_TO_MANY, array('id' => 'block_id', ), 'CASCADE', null, 'CcBlockcriterias'); + } // buildRelations() - /** - * - * Gets the list of behaviors registered for this table - * - * @return array Associative array (name => parameters) of behaviors - */ - public function getBehaviors() - { - return array( - 'aggregate_column' => array('name' => 'length', 'expression' => 'SUM(cliplength)', 'foreign_table' => 'cc_blockcontents', ), - ); - } // getBehaviors() + /** + * + * Gets the list of behaviors registered for this table + * + * @return array Associative array (name => parameters) of behaviors + */ + public function getBehaviors() + { + return array( + 'aggregate_column' => array ( + 'name' => 'length', + 'expression' => 'SUM(cliplength)', + 'condition' => NULL, + 'foreign_table' => 'cc_blockcontents', + 'foreign_schema' => NULL, +), + ); + } // getBehaviors() } // CcBlockTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcBlockcontentsTableMap.php b/airtime_mvc/application/models/airtime/map/CcBlockcontentsTableMap.php index ec74e8b7e0..da16caa4c4 100644 --- a/airtime_mvc/application/models/airtime/map/CcBlockcontentsTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcBlockcontentsTableMap.php @@ -14,63 +14,67 @@ * * @package propel.generator.airtime.map */ -class CcBlockcontentsTableMap extends TableMap { +class CcBlockcontentsTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcBlockcontentsTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcBlockcontentsTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_blockcontents'); - $this->setPhpName('CcBlockcontents'); - $this->setClassname('CcBlockcontents'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_blockcontents_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addForeignKey('BLOCK_ID', 'DbBlockId', 'INTEGER', 'cc_block', 'ID', false, null, null); - $this->addForeignKey('FILE_ID', 'DbFileId', 'INTEGER', 'cc_files', 'ID', false, null, null); - $this->addColumn('POSITION', 'DbPosition', 'INTEGER', false, null, null); - $this->addColumn('TRACKOFFSET', 'DbTrackOffset', 'REAL', true, null, 0); - $this->addColumn('CLIPLENGTH', 'DbCliplength', 'VARCHAR', false, null, '00:00:00'); - $this->addColumn('CUEIN', 'DbCuein', 'VARCHAR', false, null, '00:00:00'); - $this->addColumn('CUEOUT', 'DbCueout', 'VARCHAR', false, null, '00:00:00'); - $this->addColumn('FADEIN', 'DbFadein', 'TIME', false, null, '00:00:00'); - $this->addColumn('FADEOUT', 'DbFadeout', 'TIME', false, null, '00:00:00'); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_blockcontents'); + $this->setPhpName('CcBlockcontents'); + $this->setClassname('CcBlockcontents'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_blockcontents_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addForeignKey('block_id', 'DbBlockId', 'INTEGER', 'cc_block', 'id', false, null, null); + $this->addForeignKey('file_id', 'DbFileId', 'INTEGER', 'cc_files', 'id', false, null, null); + $this->addColumn('position', 'DbPosition', 'INTEGER', false, null, null); + $this->addColumn('trackoffset', 'DbTrackOffset', 'REAL', true, null, 0); + $this->addColumn('cliplength', 'DbCliplength', 'VARCHAR', false, null, '00:00:00'); + $this->addColumn('cuein', 'DbCuein', 'VARCHAR', false, null, '00:00:00'); + $this->addColumn('cueout', 'DbCueout', 'VARCHAR', false, null, '00:00:00'); + $this->addColumn('fadein', 'DbFadein', 'TIME', false, null, '00:00:00'); + $this->addColumn('fadeout', 'DbFadeout', 'TIME', false, null, '00:00:00'); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcFiles', 'CcFiles', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'CASCADE', null); - $this->addRelation('CcBlock', 'CcBlock', RelationMap::MANY_TO_ONE, array('block_id' => 'id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcFiles', 'CcFiles', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'CASCADE', null); + $this->addRelation('CcBlock', 'CcBlock', RelationMap::MANY_TO_ONE, array('block_id' => 'id', ), 'CASCADE', null); + } // buildRelations() - /** - * - * Gets the list of behaviors registered for this table - * - * @return array Associative array (name => parameters) of behaviors - */ - public function getBehaviors() - { - return array( - 'aggregate_column_relation' => array('foreign_table' => 'cc_block', 'update_method' => 'updateDbLength', ), - ); - } // getBehaviors() + /** + * + * Gets the list of behaviors registered for this table + * + * @return array Associative array (name => parameters) of behaviors + */ + public function getBehaviors() + { + return array( + 'aggregate_column_relation' => array ( + 'foreign_table' => 'cc_block', + 'update_method' => 'updateDbLength', +), + ); + } // getBehaviors() } // CcBlockcontentsTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcBlockcriteriaTableMap.php b/airtime_mvc/application/models/airtime/map/CcBlockcriteriaTableMap.php index 6565bf259b..cf4a5e2ec9 100644 --- a/airtime_mvc/application/models/airtime/map/CcBlockcriteriaTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcBlockcriteriaTableMap.php @@ -14,45 +14,46 @@ * * @package propel.generator.airtime.map */ -class CcBlockcriteriaTableMap extends TableMap { +class CcBlockcriteriaTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcBlockcriteriaTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcBlockcriteriaTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_blockcriteria'); - $this->setPhpName('CcBlockcriteria'); - $this->setClassname('CcBlockcriteria'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_blockcriteria_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('CRITERIA', 'DbCriteria', 'VARCHAR', true, 32, null); - $this->addColumn('MODIFIER', 'DbModifier', 'VARCHAR', true, 16, null); - $this->addColumn('VALUE', 'DbValue', 'VARCHAR', true, 512, null); - $this->addColumn('EXTRA', 'DbExtra', 'VARCHAR', false, 512, null); - $this->addForeignKey('BLOCK_ID', 'DbBlockId', 'INTEGER', 'cc_block', 'ID', true, null, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_blockcriteria'); + $this->setPhpName('CcBlockcriteria'); + $this->setClassname('CcBlockcriteria'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_blockcriteria_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('criteria', 'DbCriteria', 'VARCHAR', true, 32, null); + $this->addColumn('modifier', 'DbModifier', 'VARCHAR', true, 16, null); + $this->addColumn('value', 'DbValue', 'VARCHAR', true, 512, null); + $this->addColumn('extra', 'DbExtra', 'VARCHAR', false, 512, null); + $this->addForeignKey('block_id', 'DbBlockId', 'INTEGER', 'cc_block', 'id', true, null, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcBlock', 'CcBlock', RelationMap::MANY_TO_ONE, array('block_id' => 'id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcBlock', 'CcBlock', RelationMap::MANY_TO_ONE, array('block_id' => 'id', ), 'CASCADE', null); + } // buildRelations() } // CcBlockcriteriaTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcCountryTableMap.php b/airtime_mvc/application/models/airtime/map/CcCountryTableMap.php index b839d03596..b016f703de 100644 --- a/airtime_mvc/application/models/airtime/map/CcCountryTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcCountryTableMap.php @@ -14,39 +14,40 @@ * * @package propel.generator.airtime.map */ -class CcCountryTableMap extends TableMap { +class CcCountryTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcCountryTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcCountryTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_country'); - $this->setPhpName('CcCountry'); - $this->setClassname('CcCountry'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(false); - // columns - $this->addPrimaryKey('ISOCODE', 'DbIsoCode', 'CHAR', true, 3, null); - $this->addColumn('NAME', 'DbName', 'VARCHAR', true, 255, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_country'); + $this->setPhpName('CcCountry'); + $this->setClassname('CcCountry'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(false); + // columns + $this->addPrimaryKey('isocode', 'DbIsoCode', 'CHAR', true, 3, null); + $this->addColumn('name', 'DbName', 'VARCHAR', true, 255, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + } // buildRelations() } // CcCountryTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcFilesTableMap.php b/airtime_mvc/application/models/airtime/map/CcFilesTableMap.php index 6f9f414ddb..fa50a21ef7 100644 --- a/airtime_mvc/application/models/airtime/map/CcFilesTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcFilesTableMap.php @@ -14,116 +14,118 @@ * * @package propel.generator.airtime.map */ -class CcFilesTableMap extends TableMap { +class CcFilesTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcFilesTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcFilesTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_files'); - $this->setPhpName('CcFiles'); - $this->setClassname('CcFiles'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_files_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('NAME', 'DbName', 'VARCHAR', true, 255, ''); - $this->addColumn('MIME', 'DbMime', 'VARCHAR', true, 255, ''); - $this->addColumn('FTYPE', 'DbFtype', 'VARCHAR', true, 128, ''); - $this->addForeignKey('DIRECTORY', 'DbDirectory', 'INTEGER', 'cc_music_dirs', 'ID', false, null, null); - $this->addColumn('FILEPATH', 'DbFilepath', 'LONGVARCHAR', false, null, ''); - $this->addColumn('STATE', 'DbState', 'VARCHAR', true, 128, 'empty'); - $this->addColumn('CURRENTLYACCESSING', 'DbCurrentlyaccessing', 'INTEGER', true, null, 0); - $this->addForeignKey('EDITEDBY', 'DbEditedby', 'INTEGER', 'cc_subjs', 'ID', false, null, null); - $this->addColumn('MTIME', 'DbMtime', 'TIMESTAMP', false, 6, null); - $this->addColumn('UTIME', 'DbUtime', 'TIMESTAMP', false, 6, null); - $this->addColumn('LPTIME', 'DbLPtime', 'TIMESTAMP', false, 6, null); - $this->addColumn('MD5', 'DbMd5', 'CHAR', false, 32, null); - $this->addColumn('TRACK_TITLE', 'DbTrackTitle', 'VARCHAR', false, 512, null); - $this->addColumn('ARTIST_NAME', 'DbArtistName', 'VARCHAR', false, 512, null); - $this->addColumn('BIT_RATE', 'DbBitRate', 'INTEGER', false, null, null); - $this->addColumn('SAMPLE_RATE', 'DbSampleRate', 'INTEGER', false, null, null); - $this->addColumn('FORMAT', 'DbFormat', 'VARCHAR', false, 128, null); - $this->addColumn('LENGTH', 'DbLength', 'VARCHAR', false, null, '00:00:00'); - $this->addColumn('ALBUM_TITLE', 'DbAlbumTitle', 'VARCHAR', false, 512, null); - $this->addColumn('GENRE', 'DbGenre', 'VARCHAR', false, 64, null); - $this->addColumn('COMMENTS', 'DbComments', 'LONGVARCHAR', false, null, null); - $this->addColumn('YEAR', 'DbYear', 'VARCHAR', false, 16, null); - $this->addColumn('TRACK_NUMBER', 'DbTrackNumber', 'INTEGER', false, null, null); - $this->addColumn('CHANNELS', 'DbChannels', 'INTEGER', false, null, null); - $this->addColumn('URL', 'DbUrl', 'VARCHAR', false, 1024, null); - $this->addColumn('BPM', 'DbBpm', 'INTEGER', false, null, null); - $this->addColumn('RATING', 'DbRating', 'VARCHAR', false, 8, null); - $this->addColumn('ENCODED_BY', 'DbEncodedBy', 'VARCHAR', false, 255, null); - $this->addColumn('DISC_NUMBER', 'DbDiscNumber', 'VARCHAR', false, 8, null); - $this->addColumn('MOOD', 'DbMood', 'VARCHAR', false, 64, null); - $this->addColumn('LABEL', 'DbLabel', 'VARCHAR', false, 512, null); - $this->addColumn('COMPOSER', 'DbComposer', 'VARCHAR', false, 512, null); - $this->addColumn('ENCODER', 'DbEncoder', 'VARCHAR', false, 64, null); - $this->addColumn('CHECKSUM', 'DbChecksum', 'VARCHAR', false, 256, null); - $this->addColumn('LYRICS', 'DbLyrics', 'LONGVARCHAR', false, null, null); - $this->addColumn('ORCHESTRA', 'DbOrchestra', 'VARCHAR', false, 512, null); - $this->addColumn('CONDUCTOR', 'DbConductor', 'VARCHAR', false, 512, null); - $this->addColumn('LYRICIST', 'DbLyricist', 'VARCHAR', false, 512, null); - $this->addColumn('ORIGINAL_LYRICIST', 'DbOriginalLyricist', 'VARCHAR', false, 512, null); - $this->addColumn('RADIO_STATION_NAME', 'DbRadioStationName', 'VARCHAR', false, 512, null); - $this->addColumn('INFO_URL', 'DbInfoUrl', 'VARCHAR', false, 512, null); - $this->addColumn('ARTIST_URL', 'DbArtistUrl', 'VARCHAR', false, 512, null); - $this->addColumn('AUDIO_SOURCE_URL', 'DbAudioSourceUrl', 'VARCHAR', false, 512, null); - $this->addColumn('RADIO_STATION_URL', 'DbRadioStationUrl', 'VARCHAR', false, 512, null); - $this->addColumn('BUY_THIS_URL', 'DbBuyThisUrl', 'VARCHAR', false, 512, null); - $this->addColumn('ISRC_NUMBER', 'DbIsrcNumber', 'VARCHAR', false, 512, null); - $this->addColumn('CATALOG_NUMBER', 'DbCatalogNumber', 'VARCHAR', false, 512, null); - $this->addColumn('ORIGINAL_ARTIST', 'DbOriginalArtist', 'VARCHAR', false, 512, null); - $this->addColumn('COPYRIGHT', 'DbCopyright', 'VARCHAR', false, 512, null); - $this->addColumn('REPORT_DATETIME', 'DbReportDatetime', 'VARCHAR', false, 32, null); - $this->addColumn('REPORT_LOCATION', 'DbReportLocation', 'VARCHAR', false, 512, null); - $this->addColumn('REPORT_ORGANIZATION', 'DbReportOrganization', 'VARCHAR', false, 512, null); - $this->addColumn('SUBJECT', 'DbSubject', 'VARCHAR', false, 512, null); - $this->addColumn('CONTRIBUTOR', 'DbContributor', 'VARCHAR', false, 512, null); - $this->addColumn('LANGUAGE', 'DbLanguage', 'VARCHAR', false, 512, null); - $this->addColumn('FILE_EXISTS', 'DbFileExists', 'BOOLEAN', false, null, true); - $this->addColumn('SOUNDCLOUD_ID', 'DbSoundcloudId', '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_LINK_TO_FILE', 'DbSoundcloudLinkToFile', 'VARCHAR', false, 4096, null); - $this->addColumn('SOUNDCLOUD_UPLOAD_TIME', 'DbSoundCloundUploadTime', 'TIMESTAMP', false, 6, null); - $this->addColumn('REPLAY_GAIN', 'DbReplayGain', 'NUMERIC', false, null, null); - $this->addForeignKey('OWNER_ID', 'DbOwnerId', 'INTEGER', 'cc_subjs', 'ID', false, null, null); - $this->addColumn('CUEIN', 'DbCuein', 'VARCHAR', false, null, '00:00:00'); - $this->addColumn('CUEOUT', 'DbCueout', 'VARCHAR', false, null, '00:00:00'); - $this->addColumn('SILAN_CHECK', 'DbSilanCheck', 'BOOLEAN', false, null, false); - $this->addColumn('HIDDEN', 'DbHidden', 'BOOLEAN', false, null, false); - $this->addColumn('IS_SCHEDULED', 'DbIsScheduled', 'BOOLEAN', false, null, false); - $this->addColumn('IS_PLAYLIST', 'DbIsPlaylist', 'BOOLEAN', false, null, false); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_files'); + $this->setPhpName('CcFiles'); + $this->setClassname('CcFiles'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_files_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('name', 'DbName', 'VARCHAR', true, 255, ''); + $this->addColumn('mime', 'DbMime', 'VARCHAR', true, 255, ''); + $this->addColumn('ftype', 'DbFtype', 'VARCHAR', true, 128, ''); + $this->addForeignKey('directory', 'DbDirectory', 'INTEGER', 'cc_music_dirs', 'id', false, null, null); + $this->addColumn('filepath', 'DbFilepath', 'LONGVARCHAR', false, null, ''); + $this->addColumn('import_status', 'DbImportStatus', 'INTEGER', true, null, 1); + $this->addColumn('currentlyaccessing', 'DbCurrentlyaccessing', 'INTEGER', true, null, 0); + $this->addForeignKey('editedby', 'DbEditedby', 'INTEGER', 'cc_subjs', 'id', false, null, null); + $this->addColumn('mtime', 'DbMtime', 'TIMESTAMP', false, 6, null); + $this->addColumn('utime', 'DbUtime', 'TIMESTAMP', false, 6, null); + $this->addColumn('lptime', 'DbLPtime', 'TIMESTAMP', false, 6, null); + $this->addColumn('md5', 'DbMd5', 'CHAR', false, 32, null); + $this->addColumn('track_title', 'DbTrackTitle', 'VARCHAR', false, 512, null); + $this->addColumn('artist_name', 'DbArtistName', 'VARCHAR', false, 512, null); + $this->addColumn('bit_rate', 'DbBitRate', 'INTEGER', false, null, null); + $this->addColumn('sample_rate', 'DbSampleRate', 'INTEGER', false, null, null); + $this->addColumn('format', 'DbFormat', 'VARCHAR', false, 128, null); + $this->addColumn('length', 'DbLength', 'VARCHAR', false, null, '00:00:00'); + $this->addColumn('album_title', 'DbAlbumTitle', 'VARCHAR', false, 512, null); + $this->addColumn('genre', 'DbGenre', 'VARCHAR', false, 64, null); + $this->addColumn('comments', 'DbComments', 'LONGVARCHAR', false, null, null); + $this->addColumn('year', 'DbYear', 'VARCHAR', false, 16, null); + $this->addColumn('track_number', 'DbTrackNumber', 'INTEGER', false, null, null); + $this->addColumn('channels', 'DbChannels', 'INTEGER', false, null, null); + $this->addColumn('url', 'DbUrl', 'VARCHAR', false, 1024, null); + $this->addColumn('bpm', 'DbBpm', 'INTEGER', false, null, null); + $this->addColumn('rating', 'DbRating', 'VARCHAR', false, 8, null); + $this->addColumn('encoded_by', 'DbEncodedBy', 'VARCHAR', false, 255, null); + $this->addColumn('disc_number', 'DbDiscNumber', 'VARCHAR', false, 8, null); + $this->addColumn('mood', 'DbMood', 'VARCHAR', false, 64, null); + $this->addColumn('label', 'DbLabel', 'VARCHAR', false, 512, null); + $this->addColumn('composer', 'DbComposer', 'VARCHAR', false, 512, null); + $this->addColumn('encoder', 'DbEncoder', 'VARCHAR', false, 64, null); + $this->addColumn('checksum', 'DbChecksum', 'VARCHAR', false, 256, null); + $this->addColumn('lyrics', 'DbLyrics', 'LONGVARCHAR', false, null, null); + $this->addColumn('orchestra', 'DbOrchestra', 'VARCHAR', false, 512, null); + $this->addColumn('conductor', 'DbConductor', 'VARCHAR', false, 512, null); + $this->addColumn('lyricist', 'DbLyricist', 'VARCHAR', false, 512, null); + $this->addColumn('original_lyricist', 'DbOriginalLyricist', 'VARCHAR', false, 512, null); + $this->addColumn('radio_station_name', 'DbRadioStationName', 'VARCHAR', false, 512, null); + $this->addColumn('info_url', 'DbInfoUrl', 'VARCHAR', false, 512, null); + $this->addColumn('artist_url', 'DbArtistUrl', 'VARCHAR', false, 512, null); + $this->addColumn('audio_source_url', 'DbAudioSourceUrl', 'VARCHAR', false, 512, null); + $this->addColumn('radio_station_url', 'DbRadioStationUrl', 'VARCHAR', false, 512, null); + $this->addColumn('buy_this_url', 'DbBuyThisUrl', 'VARCHAR', false, 512, null); + $this->addColumn('isrc_number', 'DbIsrcNumber', 'VARCHAR', false, 512, null); + $this->addColumn('catalog_number', 'DbCatalogNumber', 'VARCHAR', false, 512, null); + $this->addColumn('original_artist', 'DbOriginalArtist', 'VARCHAR', false, 512, null); + $this->addColumn('copyright', 'DbCopyright', 'VARCHAR', false, 512, null); + $this->addColumn('report_datetime', 'DbReportDatetime', 'VARCHAR', false, 32, null); + $this->addColumn('report_location', 'DbReportLocation', 'VARCHAR', false, 512, null); + $this->addColumn('report_organization', 'DbReportOrganization', 'VARCHAR', false, 512, null); + $this->addColumn('subject', 'DbSubject', 'VARCHAR', false, 512, null); + $this->addColumn('contributor', 'DbContributor', 'VARCHAR', false, 512, null); + $this->addColumn('language', 'DbLanguage', 'VARCHAR', false, 512, null); + $this->addColumn('file_exists', 'DbFileExists', 'BOOLEAN', false, null, true); + $this->addColumn('soundcloud_id', 'DbSoundcloudId', '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_link_to_file', 'DbSoundcloudLinkToFile', 'VARCHAR', false, 4096, null); + $this->addColumn('soundcloud_upload_time', 'DbSoundCloundUploadTime', 'TIMESTAMP', false, 6, null); + $this->addColumn('replay_gain', 'DbReplayGain', 'NUMERIC', false, null, null); + $this->addForeignKey('owner_id', 'DbOwnerId', 'INTEGER', 'cc_subjs', 'id', false, null, null); + $this->addColumn('cuein', 'DbCuein', 'VARCHAR', false, null, '00:00:00'); + $this->addColumn('cueout', 'DbCueout', 'VARCHAR', false, null, '00:00:00'); + $this->addColumn('silan_check', 'DbSilanCheck', 'BOOLEAN', false, null, false); + $this->addColumn('hidden', 'DbHidden', 'BOOLEAN', false, null, false); + $this->addColumn('is_scheduled', 'DbIsScheduled', 'BOOLEAN', false, null, false); + $this->addColumn('is_playlist', 'DbIsPlaylist', 'BOOLEAN', false, null, false); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('FkOwner', 'CcSubjs', RelationMap::MANY_TO_ONE, array('owner_id' => 'id', ), null, null); - $this->addRelation('CcSubjsRelatedByDbEditedby', 'CcSubjs', RelationMap::MANY_TO_ONE, array('editedby' => 'id', ), null, 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('CcPlaylistcontents', 'CcPlaylistcontents', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null); - $this->addRelation('CcBlockcontents', 'CcBlockcontents', 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('CcPlayoutHistory', 'CcPlayoutHistory', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('FkOwner', 'CcSubjs', RelationMap::MANY_TO_ONE, array('owner_id' => 'id', ), null, null); + $this->addRelation('CcSubjsRelatedByDbEditedby', 'CcSubjs', RelationMap::MANY_TO_ONE, array('editedby' => 'id', ), null, null); + $this->addRelation('CcMusicDirs', 'CcMusicDirs', RelationMap::MANY_TO_ONE, array('directory' => 'id', ), null, null); + $this->addRelation('CloudFile', 'CloudFile', RelationMap::ONE_TO_MANY, array('id' => 'cc_file_id', ), 'CASCADE', null, 'CloudFiles'); + $this->addRelation('CcShowInstances', 'CcShowInstances', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null, 'CcShowInstancess'); + $this->addRelation('CcPlaylistcontents', 'CcPlaylistcontents', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null, 'CcPlaylistcontentss'); + $this->addRelation('CcBlockcontents', 'CcBlockcontents', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null, 'CcBlockcontentss'); + $this->addRelation('CcSchedule', 'CcSchedule', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null, 'CcSchedules'); + $this->addRelation('CcPlayoutHistory', 'CcPlayoutHistory', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null, 'CcPlayoutHistorys'); + } // buildRelations() } // CcFilesTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcListenerCountTableMap.php b/airtime_mvc/application/models/airtime/map/CcListenerCountTableMap.php index 2b9476a756..c3592f15df 100644 --- a/airtime_mvc/application/models/airtime/map/CcListenerCountTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcListenerCountTableMap.php @@ -14,44 +14,45 @@ * * @package propel.generator.airtime.map */ -class CcListenerCountTableMap extends TableMap { +class CcListenerCountTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcListenerCountTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcListenerCountTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_listener_count'); - $this->setPhpName('CcListenerCount'); - $this->setClassname('CcListenerCount'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_listener_count_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addForeignKey('TIMESTAMP_ID', 'DbTimestampId', 'INTEGER', 'cc_timestamp', 'ID', true, null, null); - $this->addForeignKey('MOUNT_NAME_ID', 'DbMountNameId', 'INTEGER', 'cc_mount_name', 'ID', true, null, null); - $this->addColumn('LISTENER_COUNT', 'DbListenerCount', 'INTEGER', true, null, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_listener_count'); + $this->setPhpName('CcListenerCount'); + $this->setClassname('CcListenerCount'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_listener_count_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addForeignKey('timestamp_id', 'DbTimestampId', 'INTEGER', 'cc_timestamp', 'id', true, null, null); + $this->addForeignKey('mount_name_id', 'DbMountNameId', 'INTEGER', 'cc_mount_name', 'id', true, null, null); + $this->addColumn('listener_count', 'DbListenerCount', 'INTEGER', true, null, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcTimestamp', 'CcTimestamp', RelationMap::MANY_TO_ONE, array('timestamp_id' => 'id', ), 'CASCADE', null); - $this->addRelation('CcMountName', 'CcMountName', RelationMap::MANY_TO_ONE, array('mount_name_id' => 'id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcTimestamp', 'CcTimestamp', RelationMap::MANY_TO_ONE, array('timestamp_id' => 'id', ), 'CASCADE', null); + $this->addRelation('CcMountName', 'CcMountName', RelationMap::MANY_TO_ONE, array('mount_name_id' => 'id', ), 'CASCADE', null); + } // buildRelations() } // CcListenerCountTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcLiveLogTableMap.php b/airtime_mvc/application/models/airtime/map/CcLiveLogTableMap.php index 4c8c2f0889..d907f347e1 100644 --- a/airtime_mvc/application/models/airtime/map/CcLiveLogTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcLiveLogTableMap.php @@ -14,42 +14,43 @@ * * @package propel.generator.airtime.map */ -class CcLiveLogTableMap extends TableMap { +class CcLiveLogTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcLiveLogTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcLiveLogTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_live_log'); - $this->setPhpName('CcLiveLog'); - $this->setClassname('CcLiveLog'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_live_log_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('STATE', 'DbState', 'VARCHAR', true, 32, null); - $this->addColumn('START_TIME', 'DbStartTime', 'TIMESTAMP', true, null, null); - $this->addColumn('END_TIME', 'DbEndTime', 'TIMESTAMP', false, null, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_live_log'); + $this->setPhpName('CcLiveLog'); + $this->setClassname('CcLiveLog'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_live_log_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('state', 'DbState', 'VARCHAR', true, 32, null); + $this->addColumn('start_time', 'DbStartTime', 'TIMESTAMP', true, null, null); + $this->addColumn('end_time', 'DbEndTime', 'TIMESTAMP', false, null, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + } // buildRelations() } // CcLiveLogTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcLocaleTableMap.php b/airtime_mvc/application/models/airtime/map/CcLocaleTableMap.php index e6b51fc129..5d58c66756 100644 --- a/airtime_mvc/application/models/airtime/map/CcLocaleTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcLocaleTableMap.php @@ -14,41 +14,42 @@ * * @package propel.generator.airtime.map */ -class CcLocaleTableMap extends TableMap { +class CcLocaleTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcLocaleTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcLocaleTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_locale'); - $this->setPhpName('CcLocale'); - $this->setClassname('CcLocale'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_locale_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('LOCALE_CODE', 'DbLocaleCode', 'VARCHAR', true, 16, null); - $this->addColumn('LOCALE_LANG', 'DbLocaleLang', 'VARCHAR', true, 128, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_locale'); + $this->setPhpName('CcLocale'); + $this->setClassname('CcLocale'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_locale_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('locale_code', 'DbLocaleCode', 'VARCHAR', true, 16, null); + $this->addColumn('locale_lang', 'DbLocaleLang', 'VARCHAR', true, 128, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + } // buildRelations() } // CcLocaleTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcLoginAttemptsTableMap.php b/airtime_mvc/application/models/airtime/map/CcLoginAttemptsTableMap.php index 32ce737430..21b6b8d346 100644 --- a/airtime_mvc/application/models/airtime/map/CcLoginAttemptsTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcLoginAttemptsTableMap.php @@ -14,39 +14,40 @@ * * @package propel.generator.airtime.map */ -class CcLoginAttemptsTableMap extends TableMap { +class CcLoginAttemptsTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcLoginAttemptsTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcLoginAttemptsTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_login_attempts'); - $this->setPhpName('CcLoginAttempts'); - $this->setClassname('CcLoginAttempts'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(false); - // columns - $this->addPrimaryKey('IP', 'DbIP', 'VARCHAR', true, 32, null); - $this->addColumn('ATTEMPTS', 'DbAttempts', 'INTEGER', false, null, 0); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_login_attempts'); + $this->setPhpName('CcLoginAttempts'); + $this->setClassname('CcLoginAttempts'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(false); + // columns + $this->addPrimaryKey('ip', 'DbIP', 'VARCHAR', true, 32, null); + $this->addColumn('attempts', 'DbAttempts', 'INTEGER', false, null, 0); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + } // buildRelations() } // CcLoginAttemptsTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcMountNameTableMap.php b/airtime_mvc/application/models/airtime/map/CcMountNameTableMap.php index f07bc54036..d9bca27f08 100644 --- a/airtime_mvc/application/models/airtime/map/CcMountNameTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcMountNameTableMap.php @@ -14,41 +14,42 @@ * * @package propel.generator.airtime.map */ -class CcMountNameTableMap extends TableMap { +class CcMountNameTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcMountNameTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcMountNameTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_mount_name'); - $this->setPhpName('CcMountName'); - $this->setClassname('CcMountName'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_mount_name_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('MOUNT_NAME', 'DbMountName', 'VARCHAR', true, 255, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_mount_name'); + $this->setPhpName('CcMountName'); + $this->setClassname('CcMountName'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_mount_name_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('mount_name', 'DbMountName', 'VARCHAR', true, null, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcListenerCount', 'CcListenerCount', RelationMap::ONE_TO_MANY, array('id' => 'mount_name_id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcListenerCount', 'CcListenerCount', RelationMap::ONE_TO_MANY, array('id' => 'mount_name_id', ), 'CASCADE', null, 'CcListenerCounts'); + } // buildRelations() } // CcMountNameTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcMusicDirsTableMap.php b/airtime_mvc/application/models/airtime/map/CcMusicDirsTableMap.php index 5af51394e3..ca02ed7d91 100644 --- a/airtime_mvc/application/models/airtime/map/CcMusicDirsTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcMusicDirsTableMap.php @@ -14,44 +14,45 @@ * * @package propel.generator.airtime.map */ -class CcMusicDirsTableMap extends TableMap { +class CcMusicDirsTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcMusicDirsTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcMusicDirsTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_music_dirs'); - $this->setPhpName('CcMusicDirs'); - $this->setClassname('CcMusicDirs'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_music_dirs_id_seq'); - // columns - $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); - $this->addColumn('DIRECTORY', 'Directory', 'LONGVARCHAR', false, null, null); - $this->addColumn('TYPE', 'Type', 'VARCHAR', false, 255, null); - $this->addColumn('EXISTS', 'Exists', 'BOOLEAN', false, null, true); - $this->addColumn('WATCHED', 'Watched', 'BOOLEAN', false, null, true); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_music_dirs'); + $this->setPhpName('CcMusicDirs'); + $this->setClassname('CcMusicDirs'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_music_dirs_id_seq'); + // columns + $this->addPrimaryKey('id', 'Id', 'INTEGER', true, null, null); + $this->addColumn('directory', 'Directory', 'LONGVARCHAR', false, null, null); + $this->addColumn('type', 'Type', 'VARCHAR', false, 255, null); + $this->addColumn('exists', 'Exists', 'BOOLEAN', false, null, true); + $this->addColumn('watched', 'Watched', 'BOOLEAN', false, null, true); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcFiles', 'CcFiles', RelationMap::ONE_TO_MANY, array('id' => 'directory', ), null, null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcFiles', 'CcFiles', RelationMap::ONE_TO_MANY, array('id' => 'directory', ), null, null, 'CcFiless'); + } // buildRelations() } // CcMusicDirsTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcPermsTableMap.php b/airtime_mvc/application/models/airtime/map/CcPermsTableMap.php index 481d17c96d..ea9833a631 100644 --- a/airtime_mvc/application/models/airtime/map/CcPermsTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcPermsTableMap.php @@ -14,43 +14,44 @@ * * @package propel.generator.airtime.map */ -class CcPermsTableMap extends TableMap { +class CcPermsTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcPermsTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcPermsTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_perms'); - $this->setPhpName('CcPerms'); - $this->setClassname('CcPerms'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(false); - // columns - $this->addPrimaryKey('PERMID', 'Permid', 'INTEGER', true, null, null); - $this->addForeignKey('SUBJ', 'Subj', 'INTEGER', 'cc_subjs', 'ID', false, null, null); - $this->addColumn('ACTION', 'Action', 'VARCHAR', false, 20, null); - $this->addColumn('OBJ', 'Obj', 'INTEGER', false, null, null); - $this->addColumn('TYPE', 'Type', 'CHAR', false, 1, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_perms'); + $this->setPhpName('CcPerms'); + $this->setClassname('CcPerms'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(false); + // columns + $this->addPrimaryKey('permid', 'Permid', 'INTEGER', true, null, null); + $this->addForeignKey('subj', 'Subj', 'INTEGER', 'cc_subjs', 'id', false, null, null); + $this->addColumn('action', 'Action', 'VARCHAR', false, 20, null); + $this->addColumn('obj', 'Obj', 'INTEGER', false, null, null); + $this->addColumn('type', 'Type', 'CHAR', false, 1, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('subj' => 'id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('subj' => 'id', ), 'CASCADE', null); + } // buildRelations() } // CcPermsTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcPlaylistTableMap.php b/airtime_mvc/application/models/airtime/map/CcPlaylistTableMap.php index 8dba50bbd4..e14663e130 100644 --- a/airtime_mvc/application/models/airtime/map/CcPlaylistTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcPlaylistTableMap.php @@ -14,60 +14,67 @@ * * @package propel.generator.airtime.map */ -class CcPlaylistTableMap extends TableMap { +class CcPlaylistTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcPlaylistTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcPlaylistTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_playlist'); - $this->setPhpName('CcPlaylist'); - $this->setClassname('CcPlaylist'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_playlist_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('NAME', 'DbName', 'VARCHAR', true, 255, ''); - $this->addColumn('MTIME', 'DbMtime', 'TIMESTAMP', false, 6, null); - $this->addColumn('UTIME', 'DbUtime', 'TIMESTAMP', false, 6, null); - $this->addForeignKey('CREATOR_ID', 'DbCreatorId', 'INTEGER', 'cc_subjs', 'ID', false, null, null); - $this->addColumn('DESCRIPTION', 'DbDescription', 'VARCHAR', false, 512, null); - $this->addColumn('LENGTH', 'DbLength', 'VARCHAR', false, null, '00:00:00'); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_playlist'); + $this->setPhpName('CcPlaylist'); + $this->setClassname('CcPlaylist'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_playlist_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('name', 'DbName', 'VARCHAR', true, 255, ''); + $this->addColumn('mtime', 'DbMtime', 'TIMESTAMP', false, 6, null); + $this->addColumn('utime', 'DbUtime', 'TIMESTAMP', false, 6, null); + $this->addForeignKey('creator_id', 'DbCreatorId', 'INTEGER', 'cc_subjs', 'id', false, null, null); + $this->addColumn('description', 'DbDescription', 'VARCHAR', false, 512, null); + $this->addColumn('length', 'DbLength', 'VARCHAR', false, null, '00:00:00'); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('creator_id' => 'id', ), 'CASCADE', null); - $this->addRelation('CcPlaylistcontents', 'CcPlaylistcontents', RelationMap::ONE_TO_MANY, array('id' => 'playlist_id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('creator_id' => 'id', ), 'CASCADE', null); + $this->addRelation('CcPlaylistcontents', 'CcPlaylistcontents', RelationMap::ONE_TO_MANY, array('id' => 'playlist_id', ), 'CASCADE', null, 'CcPlaylistcontentss'); + } // buildRelations() - /** - * - * Gets the list of behaviors registered for this table - * - * @return array Associative array (name => parameters) of behaviors - */ - public function getBehaviors() - { - return array( - 'aggregate_column' => array('name' => 'length', 'expression' => 'SUM(cliplength)', 'foreign_table' => 'cc_playlistcontents', ), - ); - } // getBehaviors() + /** + * + * Gets the list of behaviors registered for this table + * + * @return array Associative array (name => parameters) of behaviors + */ + public function getBehaviors() + { + return array( + 'aggregate_column' => array ( + 'name' => 'length', + 'expression' => 'SUM(cliplength)', + 'condition' => NULL, + 'foreign_table' => 'cc_playlistcontents', + 'foreign_schema' => NULL, +), + ); + } // getBehaviors() } // CcPlaylistTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcPlaylistcontentsTableMap.php b/airtime_mvc/application/models/airtime/map/CcPlaylistcontentsTableMap.php index 3122f64d5f..25edcd6e87 100644 --- a/airtime_mvc/application/models/airtime/map/CcPlaylistcontentsTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcPlaylistcontentsTableMap.php @@ -14,67 +14,71 @@ * * @package propel.generator.airtime.map */ -class CcPlaylistcontentsTableMap extends TableMap { +class CcPlaylistcontentsTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcPlaylistcontentsTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcPlaylistcontentsTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_playlistcontents'); - $this->setPhpName('CcPlaylistcontents'); - $this->setClassname('CcPlaylistcontents'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_playlistcontents_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addForeignKey('PLAYLIST_ID', 'DbPlaylistId', 'INTEGER', 'cc_playlist', 'ID', false, null, null); - $this->addForeignKey('FILE_ID', 'DbFileId', 'INTEGER', 'cc_files', 'ID', false, null, null); - $this->addForeignKey('BLOCK_ID', 'DbBlockId', 'INTEGER', 'cc_block', 'ID', false, null, null); - $this->addColumn('STREAM_ID', 'DbStreamId', 'INTEGER', false, null, null); - $this->addColumn('TYPE', 'DbType', 'SMALLINT', true, null, 0); - $this->addColumn('POSITION', 'DbPosition', 'INTEGER', false, null, null); - $this->addColumn('TRACKOFFSET', 'DbTrackOffset', 'REAL', true, null, 0); - $this->addColumn('CLIPLENGTH', 'DbCliplength', 'VARCHAR', false, null, '00:00:00'); - $this->addColumn('CUEIN', 'DbCuein', 'VARCHAR', false, null, '00:00:00'); - $this->addColumn('CUEOUT', 'DbCueout', 'VARCHAR', false, null, '00:00:00'); - $this->addColumn('FADEIN', 'DbFadein', 'TIME', false, null, '00:00:00'); - $this->addColumn('FADEOUT', 'DbFadeout', 'TIME', false, null, '00:00:00'); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_playlistcontents'); + $this->setPhpName('CcPlaylistcontents'); + $this->setClassname('CcPlaylistcontents'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_playlistcontents_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addForeignKey('playlist_id', 'DbPlaylistId', 'INTEGER', 'cc_playlist', 'id', false, null, null); + $this->addForeignKey('file_id', 'DbFileId', 'INTEGER', 'cc_files', 'id', false, null, null); + $this->addForeignKey('block_id', 'DbBlockId', 'INTEGER', 'cc_block', 'id', false, null, null); + $this->addColumn('stream_id', 'DbStreamId', 'INTEGER', false, null, null); + $this->addColumn('type', 'DbType', 'SMALLINT', true, null, 0); + $this->addColumn('position', 'DbPosition', 'INTEGER', false, null, null); + $this->addColumn('trackoffset', 'DbTrackOffset', 'REAL', true, null, 0); + $this->addColumn('cliplength', 'DbCliplength', 'VARCHAR', false, null, '00:00:00'); + $this->addColumn('cuein', 'DbCuein', 'VARCHAR', false, null, '00:00:00'); + $this->addColumn('cueout', 'DbCueout', 'VARCHAR', false, null, '00:00:00'); + $this->addColumn('fadein', 'DbFadein', 'TIME', false, null, '00:00:00'); + $this->addColumn('fadeout', 'DbFadeout', 'TIME', false, null, '00:00:00'); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcFiles', 'CcFiles', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'CASCADE', null); - $this->addRelation('CcBlock', 'CcBlock', RelationMap::MANY_TO_ONE, array('block_id' => 'id', ), 'CASCADE', null); - $this->addRelation('CcPlaylist', 'CcPlaylist', RelationMap::MANY_TO_ONE, array('playlist_id' => 'id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcFiles', 'CcFiles', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'CASCADE', null); + $this->addRelation('CcBlock', 'CcBlock', RelationMap::MANY_TO_ONE, array('block_id' => 'id', ), 'CASCADE', null); + $this->addRelation('CcPlaylist', 'CcPlaylist', RelationMap::MANY_TO_ONE, array('playlist_id' => 'id', ), 'CASCADE', null); + } // buildRelations() - /** - * - * Gets the list of behaviors registered for this table - * - * @return array Associative array (name => parameters) of behaviors - */ - public function getBehaviors() - { - return array( - 'aggregate_column_relation' => array('foreign_table' => 'cc_playlist', 'update_method' => 'updateDbLength', ), - ); - } // getBehaviors() + /** + * + * Gets the list of behaviors registered for this table + * + * @return array Associative array (name => parameters) of behaviors + */ + public function getBehaviors() + { + return array( + 'aggregate_column_relation' => array ( + 'foreign_table' => 'cc_playlist', + 'update_method' => 'updateDbLength', +), + ); + } // getBehaviors() } // CcPlaylistcontentsTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryMetaDataTableMap.php b/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryMetaDataTableMap.php index 8e937f6e52..76a68db354 100644 --- a/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryMetaDataTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryMetaDataTableMap.php @@ -14,43 +14,44 @@ * * @package propel.generator.airtime.map */ -class CcPlayoutHistoryMetaDataTableMap extends TableMap { +class CcPlayoutHistoryMetaDataTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcPlayoutHistoryMetaDataTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcPlayoutHistoryMetaDataTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_playout_history_metadata'); - $this->setPhpName('CcPlayoutHistoryMetaData'); - $this->setClassname('CcPlayoutHistoryMetaData'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_playout_history_metadata_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addForeignKey('HISTORY_ID', 'DbHistoryId', 'INTEGER', 'cc_playout_history', 'ID', true, null, null); - $this->addColumn('KEY', 'DbKey', 'VARCHAR', true, 128, null); - $this->addColumn('VALUE', 'DbValue', 'VARCHAR', true, 128, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_playout_history_metadata'); + $this->setPhpName('CcPlayoutHistoryMetaData'); + $this->setClassname('CcPlayoutHistoryMetaData'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_playout_history_metadata_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addForeignKey('history_id', 'DbHistoryId', 'INTEGER', 'cc_playout_history', 'id', true, null, null); + $this->addColumn('key', 'DbKey', 'VARCHAR', true, 128, null); + $this->addColumn('value', 'DbValue', 'VARCHAR', true, 128, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcPlayoutHistory', 'CcPlayoutHistory', RelationMap::MANY_TO_ONE, array('history_id' => 'id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcPlayoutHistory', 'CcPlayoutHistory', RelationMap::MANY_TO_ONE, array('history_id' => 'id', ), 'CASCADE', null); + } // buildRelations() } // CcPlayoutHistoryMetaDataTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryTableMap.php b/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryTableMap.php index 23696f18da..93b3cd8a09 100644 --- a/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryTableMap.php @@ -14,46 +14,47 @@ * * @package propel.generator.airtime.map */ -class CcPlayoutHistoryTableMap extends TableMap { +class CcPlayoutHistoryTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcPlayoutHistoryTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcPlayoutHistoryTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_playout_history'); - $this->setPhpName('CcPlayoutHistory'); - $this->setClassname('CcPlayoutHistory'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_playout_history_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addForeignKey('FILE_ID', 'DbFileId', 'INTEGER', 'cc_files', 'ID', false, null, null); - $this->addColumn('STARTS', 'DbStarts', 'TIMESTAMP', true, null, null); - $this->addColumn('ENDS', 'DbEnds', 'TIMESTAMP', false, null, null); - $this->addForeignKey('INSTANCE_ID', 'DbInstanceId', 'INTEGER', 'cc_show_instances', 'ID', false, null, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_playout_history'); + $this->setPhpName('CcPlayoutHistory'); + $this->setClassname('CcPlayoutHistory'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_playout_history_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addForeignKey('file_id', 'DbFileId', 'INTEGER', 'cc_files', 'id', false, null, null); + $this->addColumn('starts', 'DbStarts', 'TIMESTAMP', true, null, null); + $this->addColumn('ends', 'DbEnds', 'TIMESTAMP', false, null, null); + $this->addForeignKey('instance_id', 'DbInstanceId', 'INTEGER', 'cc_show_instances', 'id', false, null, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcFiles', 'CcFiles', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'CASCADE', null); - $this->addRelation('CcShowInstances', 'CcShowInstances', RelationMap::MANY_TO_ONE, array('instance_id' => 'id', ), 'SET NULL', null); - $this->addRelation('CcPlayoutHistoryMetaData', 'CcPlayoutHistoryMetaData', RelationMap::ONE_TO_MANY, array('id' => 'history_id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcFiles', 'CcFiles', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'CASCADE', null); + $this->addRelation('CcShowInstances', 'CcShowInstances', RelationMap::MANY_TO_ONE, array('instance_id' => 'id', ), 'SET NULL', null); + $this->addRelation('CcPlayoutHistoryMetaData', 'CcPlayoutHistoryMetaData', RelationMap::ONE_TO_MANY, array('id' => 'history_id', ), 'CASCADE', null, 'CcPlayoutHistoryMetaDatas'); + } // buildRelations() } // CcPlayoutHistoryTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryTemplateFieldTableMap.php b/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryTemplateFieldTableMap.php index f68db26a1f..495f7f1f2f 100644 --- a/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryTemplateFieldTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryTemplateFieldTableMap.php @@ -14,46 +14,47 @@ * * @package propel.generator.airtime.map */ -class CcPlayoutHistoryTemplateFieldTableMap extends TableMap { +class CcPlayoutHistoryTemplateFieldTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcPlayoutHistoryTemplateFieldTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcPlayoutHistoryTemplateFieldTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_playout_history_template_field'); - $this->setPhpName('CcPlayoutHistoryTemplateField'); - $this->setClassname('CcPlayoutHistoryTemplateField'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_playout_history_template_field_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addForeignKey('TEMPLATE_ID', 'DbTemplateId', 'INTEGER', 'cc_playout_history_template', 'ID', true, null, null); - $this->addColumn('NAME', 'DbName', 'VARCHAR', true, 128, null); - $this->addColumn('LABEL', 'DbLabel', 'VARCHAR', true, 128, null); - $this->addColumn('TYPE', 'DbType', 'VARCHAR', true, 128, null); - $this->addColumn('IS_FILE_MD', 'DbIsFileMD', 'BOOLEAN', true, null, false); - $this->addColumn('POSITION', 'DbPosition', 'INTEGER', true, null, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_playout_history_template_field'); + $this->setPhpName('CcPlayoutHistoryTemplateField'); + $this->setClassname('CcPlayoutHistoryTemplateField'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_playout_history_template_field_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addForeignKey('template_id', 'DbTemplateId', 'INTEGER', 'cc_playout_history_template', 'id', true, null, null); + $this->addColumn('name', 'DbName', 'VARCHAR', true, 128, null); + $this->addColumn('label', 'DbLabel', 'VARCHAR', true, 128, null); + $this->addColumn('type', 'DbType', 'VARCHAR', true, 128, null); + $this->addColumn('is_file_md', 'DbIsFileMD', 'BOOLEAN', true, null, false); + $this->addColumn('position', 'DbPosition', 'INTEGER', true, null, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcPlayoutHistoryTemplate', 'CcPlayoutHistoryTemplate', RelationMap::MANY_TO_ONE, array('template_id' => 'id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcPlayoutHistoryTemplate', 'CcPlayoutHistoryTemplate', RelationMap::MANY_TO_ONE, array('template_id' => 'id', ), 'CASCADE', null); + } // buildRelations() } // CcPlayoutHistoryTemplateFieldTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryTemplateTableMap.php b/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryTemplateTableMap.php index e5aea573d7..78be57d283 100644 --- a/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryTemplateTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcPlayoutHistoryTemplateTableMap.php @@ -14,42 +14,43 @@ * * @package propel.generator.airtime.map */ -class CcPlayoutHistoryTemplateTableMap extends TableMap { +class CcPlayoutHistoryTemplateTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcPlayoutHistoryTemplateTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcPlayoutHistoryTemplateTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_playout_history_template'); - $this->setPhpName('CcPlayoutHistoryTemplate'); - $this->setClassname('CcPlayoutHistoryTemplate'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_playout_history_template_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('NAME', 'DbName', 'VARCHAR', true, 128, null); - $this->addColumn('TYPE', 'DbType', 'VARCHAR', true, 35, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_playout_history_template'); + $this->setPhpName('CcPlayoutHistoryTemplate'); + $this->setClassname('CcPlayoutHistoryTemplate'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_playout_history_template_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('name', 'DbName', 'VARCHAR', true, 128, null); + $this->addColumn('type', 'DbType', 'VARCHAR', true, 35, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcPlayoutHistoryTemplateField', 'CcPlayoutHistoryTemplateField', RelationMap::ONE_TO_MANY, array('id' => 'template_id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcPlayoutHistoryTemplateField', 'CcPlayoutHistoryTemplateField', RelationMap::ONE_TO_MANY, array('id' => 'template_id', ), 'CASCADE', null, 'CcPlayoutHistoryTemplateFields'); + } // buildRelations() } // CcPlayoutHistoryTemplateTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcPrefTableMap.php b/airtime_mvc/application/models/airtime/map/CcPrefTableMap.php index 1d22a122d4..843264a50d 100644 --- a/airtime_mvc/application/models/airtime/map/CcPrefTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcPrefTableMap.php @@ -14,43 +14,44 @@ * * @package propel.generator.airtime.map */ -class CcPrefTableMap extends TableMap { +class CcPrefTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcPrefTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcPrefTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_pref'); - $this->setPhpName('CcPref'); - $this->setClassname('CcPref'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_pref_id_seq'); - // columns - $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); - $this->addForeignKey('SUBJID', 'Subjid', 'INTEGER', 'cc_subjs', 'ID', false, null, null); - $this->addColumn('KEYSTR', 'Keystr', 'VARCHAR', false, 255, null); - $this->addColumn('VALSTR', 'Valstr', 'LONGVARCHAR', false, null, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_pref'); + $this->setPhpName('CcPref'); + $this->setClassname('CcPref'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_pref_id_seq'); + // columns + $this->addPrimaryKey('id', 'Id', 'INTEGER', true, null, null); + $this->addForeignKey('subjid', 'Subjid', 'INTEGER', 'cc_subjs', 'id', false, null, null); + $this->addColumn('keystr', 'Keystr', 'VARCHAR', false, 255, null); + $this->addColumn('valstr', 'Valstr', 'LONGVARCHAR', false, null, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('subjid' => 'id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('subjid' => 'id', ), 'CASCADE', null); + } // buildRelations() } // CcPrefTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcScheduleTableMap.php b/airtime_mvc/application/models/airtime/map/CcScheduleTableMap.php index 54d25cdb87..6c0cec7c04 100644 --- a/airtime_mvc/application/models/airtime/map/CcScheduleTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcScheduleTableMap.php @@ -14,57 +14,58 @@ * * @package propel.generator.airtime.map */ -class CcScheduleTableMap extends TableMap { +class CcScheduleTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcScheduleTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcScheduleTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_schedule'); - $this->setPhpName('CcSchedule'); - $this->setClassname('CcSchedule'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_schedule_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('STARTS', 'DbStarts', 'TIMESTAMP', true, null, null); - $this->addColumn('ENDS', 'DbEnds', 'TIMESTAMP', true, null, null); - $this->addForeignKey('FILE_ID', 'DbFileId', 'INTEGER', 'cc_files', 'ID', false, null, null); - $this->addForeignKey('STREAM_ID', 'DbStreamId', 'INTEGER', 'cc_webstream', 'ID', false, null, null); - $this->addColumn('CLIP_LENGTH', 'DbClipLength', 'VARCHAR', false, null, '00:00:00'); - $this->addColumn('FADE_IN', 'DbFadeIn', 'TIME', false, null, '00:00:00'); - $this->addColumn('FADE_OUT', 'DbFadeOut', 'TIME', false, null, '00:00:00'); - $this->addColumn('CUE_IN', 'DbCueIn', 'VARCHAR', true, null, null); - $this->addColumn('CUE_OUT', 'DbCueOut', 'VARCHAR', true, null, null); - $this->addColumn('MEDIA_ITEM_PLAYED', 'DbMediaItemPlayed', 'BOOLEAN', false, null, false); - $this->addForeignKey('INSTANCE_ID', 'DbInstanceId', 'INTEGER', 'cc_show_instances', 'ID', true, null, null); - $this->addColumn('PLAYOUT_STATUS', 'DbPlayoutStatus', 'SMALLINT', true, null, 1); - $this->addColumn('BROADCASTED', 'DbBroadcasted', 'SMALLINT', true, null, 0); - $this->addColumn('POSITION', 'DbPosition', 'INTEGER', true, null, 0); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_schedule'); + $this->setPhpName('CcSchedule'); + $this->setClassname('CcSchedule'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_schedule_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('starts', 'DbStarts', 'TIMESTAMP', true, null, null); + $this->addColumn('ends', 'DbEnds', 'TIMESTAMP', true, null, null); + $this->addForeignKey('file_id', 'DbFileId', 'INTEGER', 'cc_files', 'id', false, null, null); + $this->addForeignKey('stream_id', 'DbStreamId', 'INTEGER', 'cc_webstream', 'id', false, null, null); + $this->addColumn('clip_length', 'DbClipLength', 'VARCHAR', false, null, '00:00:00'); + $this->addColumn('fade_in', 'DbFadeIn', 'TIME', false, null, '00:00:00'); + $this->addColumn('fade_out', 'DbFadeOut', 'TIME', false, null, '00:00:00'); + $this->addColumn('cue_in', 'DbCueIn', 'VARCHAR', true, null, null); + $this->addColumn('cue_out', 'DbCueOut', 'VARCHAR', true, null, null); + $this->addColumn('media_item_played', 'DbMediaItemPlayed', 'BOOLEAN', false, null, false); + $this->addForeignKey('instance_id', 'DbInstanceId', 'INTEGER', 'cc_show_instances', 'id', true, null, null); + $this->addColumn('playout_status', 'DbPlayoutStatus', 'SMALLINT', true, null, 1); + $this->addColumn('broadcasted', 'DbBroadcasted', 'SMALLINT', true, null, 0); + $this->addColumn('position', 'DbPosition', 'INTEGER', true, null, 0); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcShowInstances', 'CcShowInstances', RelationMap::MANY_TO_ONE, array('instance_id' => 'id', ), 'CASCADE', null); - $this->addRelation('CcFiles', 'CcFiles', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'CASCADE', null); - $this->addRelation('CcWebstream', 'CcWebstream', RelationMap::MANY_TO_ONE, array('stream_id' => 'id', ), 'CASCADE', null); - $this->addRelation('CcWebstreamMetadata', 'CcWebstreamMetadata', RelationMap::ONE_TO_MANY, array('id' => 'instance_id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcShowInstances', 'CcShowInstances', RelationMap::MANY_TO_ONE, array('instance_id' => 'id', ), 'CASCADE', null); + $this->addRelation('CcFiles', 'CcFiles', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'CASCADE', null); + $this->addRelation('CcWebstream', 'CcWebstream', RelationMap::MANY_TO_ONE, array('stream_id' => 'id', ), 'CASCADE', null); + $this->addRelation('CcWebstreamMetadata', 'CcWebstreamMetadata', RelationMap::ONE_TO_MANY, array('id' => 'instance_id', ), 'CASCADE', null, 'CcWebstreamMetadatas'); + } // buildRelations() } // CcScheduleTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcServiceRegisterTableMap.php b/airtime_mvc/application/models/airtime/map/CcServiceRegisterTableMap.php index f4eae5e606..d6e6d7b860 100644 --- a/airtime_mvc/application/models/airtime/map/CcServiceRegisterTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcServiceRegisterTableMap.php @@ -14,39 +14,40 @@ * * @package propel.generator.airtime.map */ -class CcServiceRegisterTableMap extends TableMap { +class CcServiceRegisterTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcServiceRegisterTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcServiceRegisterTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_service_register'); - $this->setPhpName('CcServiceRegister'); - $this->setClassname('CcServiceRegister'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(false); - // columns - $this->addPrimaryKey('NAME', 'DbName', 'VARCHAR', true, 32, null); - $this->addColumn('IP', 'DbIp', 'VARCHAR', true, 18, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_service_register'); + $this->setPhpName('CcServiceRegister'); + $this->setClassname('CcServiceRegister'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(false); + // columns + $this->addPrimaryKey('name', 'DbName', 'VARCHAR', true, 32, null); + $this->addColumn('ip', 'DbIp', 'VARCHAR', true, 18, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + } // buildRelations() } // CcServiceRegisterTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcSessTableMap.php b/airtime_mvc/application/models/airtime/map/CcSessTableMap.php index 66605b4eb7..c1ced09344 100644 --- a/airtime_mvc/application/models/airtime/map/CcSessTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcSessTableMap.php @@ -14,42 +14,43 @@ * * @package propel.generator.airtime.map */ -class CcSessTableMap extends TableMap { +class CcSessTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcSessTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcSessTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_sess'); - $this->setPhpName('CcSess'); - $this->setClassname('CcSess'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(false); - // columns - $this->addPrimaryKey('SESSID', 'Sessid', 'CHAR', true, 32, null); - $this->addForeignKey('USERID', 'Userid', 'INTEGER', 'cc_subjs', 'ID', false, null, null); - $this->addColumn('LOGIN', 'Login', 'VARCHAR', false, 255, null); - $this->addColumn('TS', 'Ts', 'TIMESTAMP', false, null, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_sess'); + $this->setPhpName('CcSess'); + $this->setClassname('CcSess'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(false); + // columns + $this->addPrimaryKey('sessid', 'Sessid', 'CHAR', true, 32, null); + $this->addForeignKey('userid', 'Userid', 'INTEGER', 'cc_subjs', 'id', false, null, null); + $this->addColumn('login', 'Login', 'VARCHAR', false, 255, null); + $this->addColumn('ts', 'Ts', 'TIMESTAMP', false, null, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('userid' => 'id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('userid' => 'id', ), 'CASCADE', null); + } // buildRelations() } // CcSessTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcShowDaysTableMap.php b/airtime_mvc/application/models/airtime/map/CcShowDaysTableMap.php index 7d6b8a10e5..dcfa0391d7 100644 --- a/airtime_mvc/application/models/airtime/map/CcShowDaysTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcShowDaysTableMap.php @@ -14,50 +14,51 @@ * * @package propel.generator.airtime.map */ -class CcShowDaysTableMap extends TableMap { +class CcShowDaysTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcShowDaysTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcShowDaysTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_show_days'); - $this->setPhpName('CcShowDays'); - $this->setClassname('CcShowDays'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_show_days_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('FIRST_SHOW', 'DbFirstShow', 'DATE', true, null, null); - $this->addColumn('LAST_SHOW', 'DbLastShow', 'DATE', false, null, null); - $this->addColumn('START_TIME', 'DbStartTime', 'TIME', true, null, null); - $this->addColumn('TIMEZONE', 'DbTimezone', 'VARCHAR', true, 255, null); - $this->addColumn('DURATION', 'DbDuration', 'VARCHAR', true, 255, null); - $this->addColumn('DAY', 'DbDay', 'TINYINT', false, null, null); - $this->addColumn('REPEAT_TYPE', 'DbRepeatType', 'TINYINT', true, null, null); - $this->addColumn('NEXT_POP_DATE', 'DbNextPopDate', 'DATE', false, null, null); - $this->addForeignKey('SHOW_ID', 'DbShowId', 'INTEGER', 'cc_show', 'ID', true, null, null); - $this->addColumn('RECORD', 'DbRecord', 'TINYINT', false, null, 0); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_show_days'); + $this->setPhpName('CcShowDays'); + $this->setClassname('CcShowDays'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_show_days_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('first_show', 'DbFirstShow', 'DATE', true, null, null); + $this->addColumn('last_show', 'DbLastShow', 'DATE', false, null, null); + $this->addColumn('start_time', 'DbStartTime', 'TIME', true, null, null); + $this->addColumn('timezone', 'DbTimezone', 'VARCHAR', true, null, null); + $this->addColumn('duration', 'DbDuration', 'VARCHAR', true, null, null); + $this->addColumn('day', 'DbDay', 'TINYINT', false, null, null); + $this->addColumn('repeat_type', 'DbRepeatType', 'TINYINT', true, null, null); + $this->addColumn('next_pop_date', 'DbNextPopDate', 'DATE', false, null, null); + $this->addForeignKey('show_id', 'DbShowId', 'INTEGER', 'cc_show', 'id', true, null, null); + $this->addColumn('record', 'DbRecord', 'TINYINT', false, null, 0); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcShow', 'CcShow', RelationMap::MANY_TO_ONE, array('show_id' => 'id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcShow', 'CcShow', RelationMap::MANY_TO_ONE, array('show_id' => 'id', ), 'CASCADE', null); + } // buildRelations() } // CcShowDaysTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcShowHostsTableMap.php b/airtime_mvc/application/models/airtime/map/CcShowHostsTableMap.php index c76efdbd37..752c36665e 100644 --- a/airtime_mvc/application/models/airtime/map/CcShowHostsTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcShowHostsTableMap.php @@ -14,43 +14,44 @@ * * @package propel.generator.airtime.map */ -class CcShowHostsTableMap extends TableMap { +class CcShowHostsTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcShowHostsTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcShowHostsTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_show_hosts'); - $this->setPhpName('CcShowHosts'); - $this->setClassname('CcShowHosts'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_show_hosts_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addForeignKey('SHOW_ID', 'DbShow', 'INTEGER', 'cc_show', 'ID', true, null, null); - $this->addForeignKey('SUBJS_ID', 'DbHost', 'INTEGER', 'cc_subjs', 'ID', true, null, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_show_hosts'); + $this->setPhpName('CcShowHosts'); + $this->setClassname('CcShowHosts'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_show_hosts_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addForeignKey('show_id', 'DbShow', 'INTEGER', 'cc_show', 'id', true, null, null); + $this->addForeignKey('subjs_id', 'DbHost', 'INTEGER', 'cc_subjs', 'id', true, null, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcShow', 'CcShow', RelationMap::MANY_TO_ONE, array('show_id' => 'id', ), 'CASCADE', null); - $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('subjs_id' => 'id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcShow', 'CcShow', RelationMap::MANY_TO_ONE, array('show_id' => 'id', ), 'CASCADE', null); + $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('subjs_id' => 'id', ), 'CASCADE', null); + } // buildRelations() } // CcShowHostsTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcShowInstancesTableMap.php b/airtime_mvc/application/models/airtime/map/CcShowInstancesTableMap.php index c55e860802..153c4dbbf2 100644 --- a/airtime_mvc/application/models/airtime/map/CcShowInstancesTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcShowInstancesTableMap.php @@ -14,56 +14,57 @@ * * @package propel.generator.airtime.map */ -class CcShowInstancesTableMap extends TableMap { +class CcShowInstancesTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcShowInstancesTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcShowInstancesTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_show_instances'); - $this->setPhpName('CcShowInstances'); - $this->setClassname('CcShowInstances'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_show_instances_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('STARTS', 'DbStarts', 'TIMESTAMP', true, null, null); - $this->addColumn('ENDS', 'DbEnds', 'TIMESTAMP', true, null, null); - $this->addForeignKey('SHOW_ID', 'DbShowId', 'INTEGER', 'cc_show', 'ID', true, null, null); - $this->addColumn('RECORD', 'DbRecord', 'TINYINT', false, null, 0); - $this->addColumn('REBROADCAST', 'DbRebroadcast', 'TINYINT', false, null, 0); - $this->addForeignKey('INSTANCE_ID', 'DbOriginalShow', 'INTEGER', 'cc_show_instances', 'ID', false, null, null); - $this->addForeignKey('FILE_ID', 'DbRecordedFile', 'INTEGER', 'cc_files', 'ID', false, null, null); - $this->addColumn('TIME_FILLED', 'DbTimeFilled', 'VARCHAR', false, null, '00:00:00'); - $this->addColumn('CREATED', 'DbCreated', 'TIMESTAMP', true, null, null); - $this->addColumn('LAST_SCHEDULED', 'DbLastScheduled', 'TIMESTAMP', false, null, null); - $this->addColumn('MODIFIED_INSTANCE', 'DbModifiedInstance', 'BOOLEAN', true, null, false); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_show_instances'); + $this->setPhpName('CcShowInstances'); + $this->setClassname('CcShowInstances'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_show_instances_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('starts', 'DbStarts', 'TIMESTAMP', true, null, null); + $this->addColumn('ends', 'DbEnds', 'TIMESTAMP', true, null, null); + $this->addForeignKey('show_id', 'DbShowId', 'INTEGER', 'cc_show', 'id', true, null, null); + $this->addColumn('record', 'DbRecord', 'TINYINT', false, null, 0); + $this->addColumn('rebroadcast', 'DbRebroadcast', 'TINYINT', false, null, 0); + $this->addForeignKey('instance_id', 'DbOriginalShow', 'INTEGER', 'cc_show_instances', 'id', false, null, null); + $this->addForeignKey('file_id', 'DbRecordedFile', 'INTEGER', 'cc_files', 'id', false, null, null); + $this->addColumn('time_filled', 'DbTimeFilled', 'VARCHAR', false, null, '00:00:00'); + $this->addColumn('created', 'DbCreated', 'TIMESTAMP', true, null, null); + $this->addColumn('last_scheduled', 'DbLastScheduled', 'TIMESTAMP', false, null, null); + $this->addColumn('modified_instance', 'DbModifiedInstance', 'BOOLEAN', true, null, false); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcShow', 'CcShow', RelationMap::MANY_TO_ONE, array('show_id' => 'id', ), 'CASCADE', null); - $this->addRelation('CcShowInstancesRelatedByDbOriginalShow', 'CcShowInstances', RelationMap::MANY_TO_ONE, array('instance_id' => 'id', ), 'CASCADE', null); - $this->addRelation('CcFiles', 'CcFiles', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'CASCADE', null); - $this->addRelation('CcShowInstancesRelatedByDbId', 'CcShowInstances', RelationMap::ONE_TO_MANY, array('id' => 'instance_id', ), 'CASCADE', null); - $this->addRelation('CcSchedule', 'CcSchedule', RelationMap::ONE_TO_MANY, array('id' => 'instance_id', ), 'CASCADE', null); - $this->addRelation('CcPlayoutHistory', 'CcPlayoutHistory', RelationMap::ONE_TO_MANY, array('id' => 'instance_id', ), 'SET NULL', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcShow', 'CcShow', RelationMap::MANY_TO_ONE, array('show_id' => 'id', ), 'CASCADE', null); + $this->addRelation('CcShowInstancesRelatedByDbOriginalShow', 'CcShowInstances', RelationMap::MANY_TO_ONE, array('instance_id' => 'id', ), 'CASCADE', null); + $this->addRelation('CcFiles', 'CcFiles', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'CASCADE', null); + $this->addRelation('CcShowInstancesRelatedByDbId', 'CcShowInstances', RelationMap::ONE_TO_MANY, array('id' => 'instance_id', ), 'CASCADE', null, 'CcShowInstancessRelatedByDbId'); + $this->addRelation('CcSchedule', 'CcSchedule', RelationMap::ONE_TO_MANY, array('id' => 'instance_id', ), 'CASCADE', null, 'CcSchedules'); + $this->addRelation('CcPlayoutHistory', 'CcPlayoutHistory', RelationMap::ONE_TO_MANY, array('id' => 'instance_id', ), 'SET NULL', null, 'CcPlayoutHistorys'); + } // buildRelations() } // CcShowInstancesTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcShowRebroadcastTableMap.php b/airtime_mvc/application/models/airtime/map/CcShowRebroadcastTableMap.php index 60a9ba9808..55b557b4fe 100644 --- a/airtime_mvc/application/models/airtime/map/CcShowRebroadcastTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcShowRebroadcastTableMap.php @@ -14,43 +14,44 @@ * * @package propel.generator.airtime.map */ -class CcShowRebroadcastTableMap extends TableMap { +class CcShowRebroadcastTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcShowRebroadcastTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcShowRebroadcastTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_show_rebroadcast'); - $this->setPhpName('CcShowRebroadcast'); - $this->setClassname('CcShowRebroadcast'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_show_rebroadcast_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('DAY_OFFSET', 'DbDayOffset', 'VARCHAR', true, 255, null); - $this->addColumn('START_TIME', 'DbStartTime', 'TIME', true, null, null); - $this->addForeignKey('SHOW_ID', 'DbShowId', 'INTEGER', 'cc_show', 'ID', true, null, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_show_rebroadcast'); + $this->setPhpName('CcShowRebroadcast'); + $this->setClassname('CcShowRebroadcast'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_show_rebroadcast_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('day_offset', 'DbDayOffset', 'VARCHAR', true, null, null); + $this->addColumn('start_time', 'DbStartTime', 'TIME', true, null, null); + $this->addForeignKey('show_id', 'DbShowId', 'INTEGER', 'cc_show', 'id', true, null, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcShow', 'CcShow', RelationMap::MANY_TO_ONE, array('show_id' => 'id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcShow', 'CcShow', RelationMap::MANY_TO_ONE, array('show_id' => 'id', ), 'CASCADE', null); + } // buildRelations() } // CcShowRebroadcastTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcShowTableMap.php b/airtime_mvc/application/models/airtime/map/CcShowTableMap.php index 8a26866704..96087d4ba7 100644 --- a/airtime_mvc/application/models/airtime/map/CcShowTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcShowTableMap.php @@ -14,55 +14,56 @@ * * @package propel.generator.airtime.map */ -class CcShowTableMap extends TableMap { +class CcShowTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcShowTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcShowTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_show'); - $this->setPhpName('CcShow'); - $this->setClassname('CcShow'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_show_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('NAME', 'DbName', 'VARCHAR', true, 255, ''); - $this->addColumn('URL', 'DbUrl', 'VARCHAR', false, 255, ''); - $this->addColumn('GENRE', 'DbGenre', 'VARCHAR', false, 255, ''); - $this->addColumn('DESCRIPTION', 'DbDescription', 'VARCHAR', false, 512, null); - $this->addColumn('COLOR', 'DbColor', 'VARCHAR', false, 6, null); - $this->addColumn('BACKGROUND_COLOR', 'DbBackgroundColor', 'VARCHAR', false, 6, null); - $this->addColumn('LIVE_STREAM_USING_AIRTIME_AUTH', 'DbLiveStreamUsingAirtimeAuth', 'BOOLEAN', false, null, false); - $this->addColumn('LIVE_STREAM_USING_CUSTOM_AUTH', 'DbLiveStreamUsingCustomAuth', 'BOOLEAN', false, null, false); - $this->addColumn('LIVE_STREAM_USER', 'DbLiveStreamUser', 'VARCHAR', false, 255, null); - $this->addColumn('LIVE_STREAM_PASS', 'DbLiveStreamPass', 'VARCHAR', false, 255, null); - $this->addColumn('LINKED', 'DbLinked', 'BOOLEAN', true, null, false); - $this->addColumn('IS_LINKABLE', 'DbIsLinkable', 'BOOLEAN', true, null, true); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_show'); + $this->setPhpName('CcShow'); + $this->setClassname('CcShow'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_show_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('name', 'DbName', 'VARCHAR', true, 255, ''); + $this->addColumn('url', 'DbUrl', 'VARCHAR', false, 255, ''); + $this->addColumn('genre', 'DbGenre', 'VARCHAR', false, 255, ''); + $this->addColumn('description', 'DbDescription', 'VARCHAR', false, 512, null); + $this->addColumn('color', 'DbColor', 'VARCHAR', false, 6, null); + $this->addColumn('background_color', 'DbBackgroundColor', 'VARCHAR', false, 6, null); + $this->addColumn('live_stream_using_airtime_auth', 'DbLiveStreamUsingAirtimeAuth', 'BOOLEAN', false, null, false); + $this->addColumn('live_stream_using_custom_auth', 'DbLiveStreamUsingCustomAuth', 'BOOLEAN', false, null, false); + $this->addColumn('live_stream_user', 'DbLiveStreamUser', 'VARCHAR', false, 255, null); + $this->addColumn('live_stream_pass', 'DbLiveStreamPass', 'VARCHAR', false, 255, null); + $this->addColumn('linked', 'DbLinked', 'BOOLEAN', true, null, false); + $this->addColumn('is_linkable', 'DbIsLinkable', 'BOOLEAN', true, null, true); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcShowInstances', 'CcShowInstances', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null); - $this->addRelation('CcShowDays', 'CcShowDays', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null); - $this->addRelation('CcShowRebroadcast', 'CcShowRebroadcast', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null); - $this->addRelation('CcShowHosts', 'CcShowHosts', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcShowInstances', 'CcShowInstances', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null, 'CcShowInstancess'); + $this->addRelation('CcShowDays', 'CcShowDays', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null, 'CcShowDayss'); + $this->addRelation('CcShowRebroadcast', 'CcShowRebroadcast', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null, 'CcShowRebroadcasts'); + $this->addRelation('CcShowHosts', 'CcShowHosts', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null, 'CcShowHostss'); + } // buildRelations() } // CcShowTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcSmembTableMap.php b/airtime_mvc/application/models/airtime/map/CcSmembTableMap.php index 236cdd0166..4067e5e47e 100644 --- a/airtime_mvc/application/models/airtime/map/CcSmembTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcSmembTableMap.php @@ -14,42 +14,43 @@ * * @package propel.generator.airtime.map */ -class CcSmembTableMap extends TableMap { +class CcSmembTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcSmembTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcSmembTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_smemb'); - $this->setPhpName('CcSmemb'); - $this->setClassname('CcSmemb'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(false); - // columns - $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); - $this->addColumn('UID', 'Uid', 'INTEGER', true, null, 0); - $this->addColumn('GID', 'Gid', 'INTEGER', true, null, 0); - $this->addColumn('LEVEL', 'Level', 'INTEGER', true, null, 0); - $this->addColumn('MID', 'Mid', 'INTEGER', false, null, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_smemb'); + $this->setPhpName('CcSmemb'); + $this->setClassname('CcSmemb'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(false); + // columns + $this->addPrimaryKey('id', 'Id', 'INTEGER', true, null, null); + $this->addColumn('uid', 'Uid', 'INTEGER', true, null, 0); + $this->addColumn('gid', 'Gid', 'INTEGER', true, null, 0); + $this->addColumn('level', 'Level', 'INTEGER', true, null, 0); + $this->addColumn('mid', 'Mid', 'INTEGER', false, null, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + } // buildRelations() } // CcSmembTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcStreamSettingTableMap.php b/airtime_mvc/application/models/airtime/map/CcStreamSettingTableMap.php index d401ce096b..a0638089e2 100644 --- a/airtime_mvc/application/models/airtime/map/CcStreamSettingTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcStreamSettingTableMap.php @@ -14,40 +14,41 @@ * * @package propel.generator.airtime.map */ -class CcStreamSettingTableMap extends TableMap { +class CcStreamSettingTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcStreamSettingTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcStreamSettingTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_stream_setting'); - $this->setPhpName('CcStreamSetting'); - $this->setClassname('CcStreamSetting'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(false); - // columns - $this->addPrimaryKey('KEYNAME', 'DbKeyName', 'VARCHAR', true, 64, null); - $this->addColumn('VALUE', 'DbValue', 'VARCHAR', false, 255, null); - $this->addColumn('TYPE', 'DbType', 'VARCHAR', true, 16, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_stream_setting'); + $this->setPhpName('CcStreamSetting'); + $this->setClassname('CcStreamSetting'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(false); + // columns + $this->addPrimaryKey('keyname', 'DbKeyName', 'VARCHAR', true, 64, null); + $this->addColumn('value', 'DbValue', 'VARCHAR', false, 255, null); + $this->addColumn('type', 'DbType', 'VARCHAR', true, 16, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + } // buildRelations() } // CcStreamSettingTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcSubjsTableMap.php b/airtime_mvc/application/models/airtime/map/CcSubjsTableMap.php index d4f83529a2..8ffb5bf4fe 100644 --- a/airtime_mvc/application/models/airtime/map/CcSubjsTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcSubjsTableMap.php @@ -14,60 +14,61 @@ * * @package propel.generator.airtime.map */ -class CcSubjsTableMap extends TableMap { +class CcSubjsTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcSubjsTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcSubjsTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_subjs'); - $this->setPhpName('CcSubjs'); - $this->setClassname('CcSubjs'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_subjs_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('LOGIN', 'DbLogin', 'VARCHAR', true, 255, ''); - $this->addColumn('PASS', 'DbPass', 'VARCHAR', true, 255, ''); - $this->addColumn('TYPE', 'DbType', 'CHAR', true, 1, 'U'); - $this->addColumn('FIRST_NAME', 'DbFirstName', 'VARCHAR', true, 255, ''); - $this->addColumn('LAST_NAME', 'DbLastName', 'VARCHAR', true, 255, ''); - $this->addColumn('LASTLOGIN', 'DbLastlogin', 'TIMESTAMP', false, null, null); - $this->addColumn('LASTFAIL', 'DbLastfail', 'TIMESTAMP', false, null, null); - $this->addColumn('SKYPE_CONTACT', 'DbSkypeContact', 'VARCHAR', false, 255, null); - $this->addColumn('JABBER_CONTACT', 'DbJabberContact', 'VARCHAR', false, 255, null); - $this->addColumn('EMAIL', 'DbEmail', 'VARCHAR', false, 255, null); - $this->addColumn('CELL_PHONE', 'DbCellPhone', 'VARCHAR', false, 255, null); - $this->addColumn('LOGIN_ATTEMPTS', 'DbLoginAttempts', 'INTEGER', false, null, 0); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_subjs'); + $this->setPhpName('CcSubjs'); + $this->setClassname('CcSubjs'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_subjs_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('login', 'DbLogin', 'VARCHAR', true, 255, ''); + $this->addColumn('pass', 'DbPass', 'VARCHAR', true, 255, ''); + $this->addColumn('type', 'DbType', 'CHAR', true, 1, 'U'); + $this->addColumn('first_name', 'DbFirstName', 'VARCHAR', true, 255, ''); + $this->addColumn('last_name', 'DbLastName', 'VARCHAR', true, 255, ''); + $this->addColumn('lastlogin', 'DbLastlogin', 'TIMESTAMP', false, null, null); + $this->addColumn('lastfail', 'DbLastfail', 'TIMESTAMP', false, null, null); + $this->addColumn('skype_contact', 'DbSkypeContact', 'VARCHAR', false, null, null); + $this->addColumn('jabber_contact', 'DbJabberContact', 'VARCHAR', false, null, null); + $this->addColumn('email', 'DbEmail', 'VARCHAR', false, null, null); + $this->addColumn('cell_phone', 'DbCellPhone', 'VARCHAR', false, null, null); + $this->addColumn('login_attempts', 'DbLoginAttempts', 'INTEGER', false, null, 0); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcFilesRelatedByDbOwnerId', 'CcFiles', RelationMap::ONE_TO_MANY, array('id' => 'owner_id', ), null, null); - $this->addRelation('CcFilesRelatedByDbEditedby', '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); - $this->addRelation('CcPlaylist', 'CcPlaylist', RelationMap::ONE_TO_MANY, array('id' => 'creator_id', ), 'CASCADE', null); - $this->addRelation('CcBlock', 'CcBlock', RelationMap::ONE_TO_MANY, array('id' => 'creator_id', ), 'CASCADE', null); - $this->addRelation('CcPref', 'CcPref', RelationMap::ONE_TO_MANY, array('id' => 'subjid', ), 'CASCADE', null); - $this->addRelation('CcSess', 'CcSess', RelationMap::ONE_TO_MANY, array('id' => 'userid', ), 'CASCADE', null); - $this->addRelation('CcSubjsToken', 'CcSubjsToken', RelationMap::ONE_TO_MANY, array('id' => 'user_id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcFilesRelatedByDbOwnerId', 'CcFiles', RelationMap::ONE_TO_MANY, array('id' => 'owner_id', ), null, null, 'CcFilessRelatedByDbOwnerId'); + $this->addRelation('CcFilesRelatedByDbEditedby', 'CcFiles', RelationMap::ONE_TO_MANY, array('id' => 'editedby', ), null, null, 'CcFilessRelatedByDbEditedby'); + $this->addRelation('CcPerms', 'CcPerms', RelationMap::ONE_TO_MANY, array('id' => 'subj', ), 'CASCADE', null, 'CcPermss'); + $this->addRelation('CcShowHosts', 'CcShowHosts', RelationMap::ONE_TO_MANY, array('id' => 'subjs_id', ), 'CASCADE', null, 'CcShowHostss'); + $this->addRelation('CcPlaylist', 'CcPlaylist', RelationMap::ONE_TO_MANY, array('id' => 'creator_id', ), 'CASCADE', null, 'CcPlaylists'); + $this->addRelation('CcBlock', 'CcBlock', RelationMap::ONE_TO_MANY, array('id' => 'creator_id', ), 'CASCADE', null, 'CcBlocks'); + $this->addRelation('CcPref', 'CcPref', RelationMap::ONE_TO_MANY, array('id' => 'subjid', ), 'CASCADE', null, 'CcPrefs'); + $this->addRelation('CcSess', 'CcSess', RelationMap::ONE_TO_MANY, array('id' => 'userid', ), 'CASCADE', null, 'CcSesss'); + $this->addRelation('CcSubjsToken', 'CcSubjsToken', RelationMap::ONE_TO_MANY, array('id' => 'user_id', ), 'CASCADE', null, 'CcSubjsTokens'); + } // buildRelations() } // CcSubjsTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcSubjsTokenTableMap.php b/airtime_mvc/application/models/airtime/map/CcSubjsTokenTableMap.php index 2aeb7ad64f..b33c8d0914 100644 --- a/airtime_mvc/application/models/airtime/map/CcSubjsTokenTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcSubjsTokenTableMap.php @@ -14,44 +14,45 @@ * * @package propel.generator.airtime.map */ -class CcSubjsTokenTableMap extends TableMap { +class CcSubjsTokenTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcSubjsTokenTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcSubjsTokenTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_subjs_token'); - $this->setPhpName('CcSubjsToken'); - $this->setClassname('CcSubjsToken'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_subjs_token_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addForeignKey('USER_ID', 'DbUserId', 'INTEGER', 'cc_subjs', 'ID', true, null, null); - $this->addColumn('ACTION', 'DbAction', 'VARCHAR', true, 255, null); - $this->addColumn('TOKEN', 'DbToken', 'VARCHAR', true, 40, null); - $this->addColumn('CREATED', 'DbCreated', 'TIMESTAMP', true, null, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_subjs_token'); + $this->setPhpName('CcSubjsToken'); + $this->setClassname('CcSubjsToken'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_subjs_token_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addForeignKey('user_id', 'DbUserId', 'INTEGER', 'cc_subjs', 'id', true, null, null); + $this->addColumn('action', 'DbAction', 'VARCHAR', true, 255, null); + $this->addColumn('token', 'DbToken', 'VARCHAR', true, 40, null); + $this->addColumn('created', 'DbCreated', 'TIMESTAMP', true, null, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('user_id' => 'id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('user_id' => 'id', ), 'CASCADE', null); + } // buildRelations() } // CcSubjsTokenTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcTimestampTableMap.php b/airtime_mvc/application/models/airtime/map/CcTimestampTableMap.php index 6df327d362..fcc8544a76 100644 --- a/airtime_mvc/application/models/airtime/map/CcTimestampTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcTimestampTableMap.php @@ -14,41 +14,42 @@ * * @package propel.generator.airtime.map */ -class CcTimestampTableMap extends TableMap { +class CcTimestampTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcTimestampTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcTimestampTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_timestamp'); - $this->setPhpName('CcTimestamp'); - $this->setClassname('CcTimestamp'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_timestamp_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('TIMESTAMP', 'DbTimestamp', 'TIMESTAMP', true, null, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_timestamp'); + $this->setPhpName('CcTimestamp'); + $this->setClassname('CcTimestamp'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_timestamp_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('timestamp', 'DbTimestamp', 'TIMESTAMP', true, null, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcListenerCount', 'CcListenerCount', RelationMap::ONE_TO_MANY, array('id' => 'timestamp_id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcListenerCount', 'CcListenerCount', RelationMap::ONE_TO_MANY, array('id' => 'timestamp_id', ), 'CASCADE', null, 'CcListenerCounts'); + } // buildRelations() } // CcTimestampTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcWebstreamMetadataTableMap.php b/airtime_mvc/application/models/airtime/map/CcWebstreamMetadataTableMap.php index 305d8189ab..38e4b71a26 100644 --- a/airtime_mvc/application/models/airtime/map/CcWebstreamMetadataTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcWebstreamMetadataTableMap.php @@ -14,43 +14,44 @@ * * @package propel.generator.airtime.map */ -class CcWebstreamMetadataTableMap extends TableMap { +class CcWebstreamMetadataTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcWebstreamMetadataTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcWebstreamMetadataTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_webstream_metadata'); - $this->setPhpName('CcWebstreamMetadata'); - $this->setClassname('CcWebstreamMetadata'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_webstream_metadata_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addForeignKey('INSTANCE_ID', 'DbInstanceId', 'INTEGER', 'cc_schedule', 'ID', true, null, null); - $this->addColumn('START_TIME', 'DbStartTime', 'TIMESTAMP', true, null, null); - $this->addColumn('LIQUIDSOAP_DATA', 'DbLiquidsoapData', 'VARCHAR', true, 1024, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_webstream_metadata'); + $this->setPhpName('CcWebstreamMetadata'); + $this->setClassname('CcWebstreamMetadata'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_webstream_metadata_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addForeignKey('instance_id', 'DbInstanceId', 'INTEGER', 'cc_schedule', 'id', true, null, null); + $this->addColumn('start_time', 'DbStartTime', 'TIMESTAMP', true, null, null); + $this->addColumn('liquidsoap_data', 'DbLiquidsoapData', 'VARCHAR', true, 1024, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcSchedule', 'CcSchedule', RelationMap::MANY_TO_ONE, array('instance_id' => 'id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcSchedule', 'CcSchedule', RelationMap::MANY_TO_ONE, array('instance_id' => 'id', ), 'CASCADE', null); + } // buildRelations() } // CcWebstreamMetadataTableMap diff --git a/airtime_mvc/application/models/airtime/map/CcWebstreamTableMap.php b/airtime_mvc/application/models/airtime/map/CcWebstreamTableMap.php index c4b28a5164..e76fbbd8ac 100644 --- a/airtime_mvc/application/models/airtime/map/CcWebstreamTableMap.php +++ b/airtime_mvc/application/models/airtime/map/CcWebstreamTableMap.php @@ -14,49 +14,50 @@ * * @package propel.generator.airtime.map */ -class CcWebstreamTableMap extends TableMap { +class CcWebstreamTableMap extends TableMap +{ - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = 'airtime.map.CcWebstreamTableMap'; + /** + * The (dot-path) name of this class + */ + const CLASS_NAME = 'airtime.map.CcWebstreamTableMap'; - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - $this->setName('cc_webstream'); - $this->setPhpName('CcWebstream'); - $this->setClassname('CcWebstream'); - $this->setPackage('airtime'); - $this->setUseIdGenerator(true); - $this->setPrimaryKeyMethodInfo('cc_webstream_id_seq'); - // columns - $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); - $this->addColumn('NAME', 'DbName', 'VARCHAR', true, 255, null); - $this->addColumn('DESCRIPTION', 'DbDescription', 'VARCHAR', true, 255, null); - $this->addColumn('URL', 'DbUrl', 'VARCHAR', true, 512, null); - $this->addColumn('LENGTH', 'DbLength', 'VARCHAR', true, null, '00:00:00'); - $this->addColumn('CREATOR_ID', 'DbCreatorId', 'INTEGER', true, null, null); - $this->addColumn('MTIME', 'DbMtime', 'TIMESTAMP', true, 6, null); - $this->addColumn('UTIME', 'DbUtime', 'TIMESTAMP', true, 6, null); - $this->addColumn('LPTIME', 'DbLPtime', 'TIMESTAMP', false, 6, null); - $this->addColumn('MIME', 'DbMime', 'VARCHAR', false, 255, null); - // validators - } // initialize() + /** + * Initialize the table attributes, columns and validators + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('cc_webstream'); + $this->setPhpName('CcWebstream'); + $this->setClassname('CcWebstream'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cc_webstream_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('name', 'DbName', 'VARCHAR', true, 255, null); + $this->addColumn('description', 'DbDescription', 'VARCHAR', true, 255, null); + $this->addColumn('url', 'DbUrl', 'VARCHAR', true, 512, null); + $this->addColumn('length', 'DbLength', 'VARCHAR', true, null, '00:00:00'); + $this->addColumn('creator_id', 'DbCreatorId', 'INTEGER', true, null, null); + $this->addColumn('mtime', 'DbMtime', 'TIMESTAMP', true, 6, null); + $this->addColumn('utime', 'DbUtime', 'TIMESTAMP', true, 6, null); + $this->addColumn('lptime', 'DbLPtime', 'TIMESTAMP', false, 6, null); + $this->addColumn('mime', 'DbMime', 'VARCHAR', false, null, null); + // validators + } // initialize() - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - { - $this->addRelation('CcSchedule', 'CcSchedule', RelationMap::ONE_TO_MANY, array('id' => 'stream_id', ), 'CASCADE', null); - } // buildRelations() + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcSchedule', 'CcSchedule', RelationMap::ONE_TO_MANY, array('id' => 'stream_id', ), 'CASCADE', null, 'CcSchedules'); + } // buildRelations() } // CcWebstreamTableMap diff --git a/airtime_mvc/application/models/airtime/map/CloudFileTableMap.php b/airtime_mvc/application/models/airtime/map/CloudFileTableMap.php new file mode 100644 index 0000000000..5f9702bf2a --- /dev/null +++ b/airtime_mvc/application/models/airtime/map/CloudFileTableMap.php @@ -0,0 +1,72 @@ +setName('cloud_file'); + $this->setPhpName('CloudFile'); + $this->setClassname('CloudFile'); + $this->setPackage('airtime'); + $this->setUseIdGenerator(true); + $this->setPrimaryKeyMethodInfo('cloud_file_id_seq'); + // columns + $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); + $this->addColumn('storage_backend', 'StorageBackend', 'VARCHAR', true, 512, null); + $this->addColumn('resource_id', 'ResourceId', 'LONGVARCHAR', true, null, null); + $this->addForeignKey('cc_file_id', 'CcFileId', 'INTEGER', 'cc_files', 'id', false, null, null); + // validators + } // initialize() + + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('CcFiles', 'CcFiles', RelationMap::MANY_TO_ONE, array('cc_file_id' => 'id', ), 'CASCADE', null); + } // buildRelations() + + /** + * + * Gets the list of behaviors registered for this table + * + * @return array Associative array (name => parameters) of behaviors + */ + public function getBehaviors() + { + return array( + 'delegate' => array ( + 'to' => 'cc_files', +), + ); + } // getBehaviors() + +} // CloudFileTableMap diff --git a/airtime_mvc/application/models/airtime/om/BaseCcBlock.php b/airtime_mvc/application/models/airtime/om/BaseCcBlock.php index f9c900c819..236d3542d6 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcBlock.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcBlock.php @@ -4,1780 +4,2341 @@ /** * Base class that represents a row from the 'cc_block' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcBlock extends BaseObject implements Persistent +abstract class BaseCcBlock extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcBlockPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcBlockPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the name field. - * Note: this column has a database default value of: '' - * @var string - */ - protected $name; - - /** - * The value for the mtime field. - * @var string - */ - protected $mtime; - - /** - * The value for the utime field. - * @var string - */ - protected $utime; - - /** - * The value for the creator_id field. - * @var int - */ - protected $creator_id; - - /** - * The value for the description field. - * @var string - */ - protected $description; - - /** - * The value for the length field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $length; - - /** - * The value for the type field. - * Note: this column has a database default value of: 'static' - * @var string - */ - protected $type; - - /** - * @var CcSubjs - */ - protected $aCcSubjs; - - /** - * @var array CcPlaylistcontents[] Collection to store aggregation of CcPlaylistcontents objects. - */ - protected $collCcPlaylistcontentss; - - /** - * @var array CcBlockcontents[] Collection to store aggregation of CcBlockcontents objects. - */ - protected $collCcBlockcontentss; - - /** - * @var array CcBlockcriteria[] Collection to store aggregation of CcBlockcriteria objects. - */ - protected $collCcBlockcriterias; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - 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->name = ''; - $this->length = '00:00:00'; - $this->type = 'static'; - } - - /** - * Initializes internal state of BaseCcBlock object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [name] column value. - * - * @return string - */ - public function getDbName() - { - return $this->name; - } - - /** - * Get the [optionally formatted] temporal [mtime] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbMtime($format = 'Y-m-d H:i:s') - { - if ($this->mtime === null) { - return null; - } - - - - try { - $dt = new DateTime($this->mtime); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->mtime, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [utime] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbUtime($format = 'Y-m-d H:i:s') - { - if ($this->utime === null) { - return null; - } - - - - try { - $dt = new DateTime($this->utime); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->utime, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [creator_id] column value. - * - * @return int - */ - public function getDbCreatorId() - { - return $this->creator_id; - } - - /** - * Get the [description] column value. - * - * @return string - */ - public function getDbDescription() - { - return $this->description; - } - - /** - * Get the [length] column value. - * - * @return string - */ - public function getDbLength() - { - return $this->length; - } - - /** - * Get the [type] column value. - * - * @return string - */ - public function getDbType() - { - return $this->type; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcBlock The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcBlockPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [name] column. - * - * @param string $v new value - * @return CcBlock The current object (for fluent API support) - */ - public function setDbName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->name !== $v || $this->isNew()) { - $this->name = $v; - $this->modifiedColumns[] = CcBlockPeer::NAME; - } - - return $this; - } // setDbName() - - /** - * Sets the value of [mtime] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcBlock The current object (for fluent API support) - */ - public function setDbMtime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->mtime !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->mtime !== null && $tmpDt = new DateTime($this->mtime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->mtime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcBlockPeer::MTIME; - } - } // if either are not null - - return $this; - } // setDbMtime() - - /** - * Sets the value of [utime] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcBlock The current object (for fluent API support) - */ - public function setDbUtime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->utime !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->utime !== null && $tmpDt = new DateTime($this->utime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->utime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcBlockPeer::UTIME; - } - } // if either are not null - - return $this; - } // setDbUtime() - - /** - * Set the value of [creator_id] column. - * - * @param int $v new value - * @return CcBlock The current object (for fluent API support) - */ - public function setDbCreatorId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->creator_id !== $v) { - $this->creator_id = $v; - $this->modifiedColumns[] = CcBlockPeer::CREATOR_ID; - } - - if ($this->aCcSubjs !== null && $this->aCcSubjs->getDbId() !== $v) { - $this->aCcSubjs = null; - } - - return $this; - } // setDbCreatorId() - - /** - * Set the value of [description] column. - * - * @param string $v new value - * @return CcBlock The current object (for fluent API support) - */ - public function setDbDescription($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->description !== $v) { - $this->description = $v; - $this->modifiedColumns[] = CcBlockPeer::DESCRIPTION; - } - - return $this; - } // setDbDescription() - - /** - * Set the value of [length] column. - * - * @param string $v new value - * @return CcBlock The current object (for fluent API support) - */ - public function setDbLength($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->length !== $v || $this->isNew()) { - $this->length = $v; - $this->modifiedColumns[] = CcBlockPeer::LENGTH; - } - - return $this; - } // setDbLength() - - /** - * Set the value of [type] column. - * - * @param string $v new value - * @return CcBlock The current object (for fluent API support) - */ - public function setDbType($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->type !== $v || $this->isNew()) { - $this->type = $v; - $this->modifiedColumns[] = CcBlockPeer::TYPE; - } - - return $this; - } // setDbType() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->name !== '') { - return false; - } - - if ($this->length !== '00:00:00') { - return false; - } - - if ($this->type !== 'static') { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->mtime = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->utime = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->creator_id = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; - $this->description = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; - $this->length = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; - $this->type = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 8; // 8 = CcBlockPeer::NUM_COLUMNS - CcBlockPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcBlock object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcSubjs !== null && $this->creator_id !== $this->aCcSubjs->getDbId()) { - $this->aCcSubjs = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcBlockPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcSubjs = null; - $this->collCcPlaylistcontentss = null; - - $this->collCcBlockcontentss = null; - - $this->collCcBlockcriterias = null; - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcBlockQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcBlockPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcSubjs !== null) { - if ($this->aCcSubjs->isModified() || $this->aCcSubjs->isNew()) { - $affectedRows += $this->aCcSubjs->save($con); - } - $this->setCcSubjs($this->aCcSubjs); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcBlockPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcBlockPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcBlockPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcBlockPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - if ($this->collCcPlaylistcontentss !== null) { - foreach ($this->collCcPlaylistcontentss as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcBlockcontentss !== null) { - foreach ($this->collCcBlockcontentss as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcBlockcriterias !== null) { - foreach ($this->collCcBlockcriterias as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcSubjs !== null) { - if (!$this->aCcSubjs->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcSubjs->getValidationFailures()); - } - } - - - if (($retval = CcBlockPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - if ($this->collCcPlaylistcontentss !== null) { - foreach ($this->collCcPlaylistcontentss as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcBlockcontentss !== null) { - foreach ($this->collCcBlockcontentss as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcBlockcriterias !== null) { - foreach ($this->collCcBlockcriterias as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcBlockPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbName(); - break; - case 2: - return $this->getDbMtime(); - break; - case 3: - return $this->getDbUtime(); - break; - case 4: - return $this->getDbCreatorId(); - break; - case 5: - return $this->getDbDescription(); - break; - case 6: - return $this->getDbLength(); - break; - case 7: - return $this->getDbType(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcBlockPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbName(), - $keys[2] => $this->getDbMtime(), - $keys[3] => $this->getDbUtime(), - $keys[4] => $this->getDbCreatorId(), - $keys[5] => $this->getDbDescription(), - $keys[6] => $this->getDbLength(), - $keys[7] => $this->getDbType(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcSubjs) { - $result['CcSubjs'] = $this->aCcSubjs->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcBlockPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbName($value); - break; - case 2: - $this->setDbMtime($value); - break; - case 3: - $this->setDbUtime($value); - break; - case 4: - $this->setDbCreatorId($value); - break; - case 5: - $this->setDbDescription($value); - break; - case 6: - $this->setDbLength($value); - break; - case 7: - $this->setDbType($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcBlockPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbMtime($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbUtime($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbCreatorId($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setDbDescription($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setDbLength($arr[$keys[6]]); - if (array_key_exists($keys[7], $arr)) $this->setDbType($arr[$keys[7]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcBlockPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcBlockPeer::ID)) $criteria->add(CcBlockPeer::ID, $this->id); - if ($this->isColumnModified(CcBlockPeer::NAME)) $criteria->add(CcBlockPeer::NAME, $this->name); - if ($this->isColumnModified(CcBlockPeer::MTIME)) $criteria->add(CcBlockPeer::MTIME, $this->mtime); - if ($this->isColumnModified(CcBlockPeer::UTIME)) $criteria->add(CcBlockPeer::UTIME, $this->utime); - if ($this->isColumnModified(CcBlockPeer::CREATOR_ID)) $criteria->add(CcBlockPeer::CREATOR_ID, $this->creator_id); - if ($this->isColumnModified(CcBlockPeer::DESCRIPTION)) $criteria->add(CcBlockPeer::DESCRIPTION, $this->description); - if ($this->isColumnModified(CcBlockPeer::LENGTH)) $criteria->add(CcBlockPeer::LENGTH, $this->length); - if ($this->isColumnModified(CcBlockPeer::TYPE)) $criteria->add(CcBlockPeer::TYPE, $this->type); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcBlockPeer::DATABASE_NAME); - $criteria->add(CcBlockPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcBlock (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbName($this->name); - $copyObj->setDbMtime($this->mtime); - $copyObj->setDbUtime($this->utime); - $copyObj->setDbCreatorId($this->creator_id); - $copyObj->setDbDescription($this->description); - $copyObj->setDbLength($this->length); - $copyObj->setDbType($this->type); - - if ($deepCopy) { - // important: temporarily setNew(false) because this affects the behavior of - // the getter/setter methods for fkey referrer objects. - $copyObj->setNew(false); - - foreach ($this->getCcPlaylistcontentss() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcPlaylistcontents($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcBlockcontentss() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcBlockcontents($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcBlockcriterias() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcBlockcriteria($relObj->copy($deepCopy)); - } - } - - } // if ($deepCopy) - - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcBlock Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcBlockPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcBlockPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcSubjs object. - * - * @param CcSubjs $v - * @return CcBlock The current object (for fluent API support) - * @throws PropelException - */ - public function setCcSubjs(CcSubjs $v = null) - { - if ($v === null) { - $this->setDbCreatorId(NULL); - } else { - $this->setDbCreatorId($v->getDbId()); - } - - $this->aCcSubjs = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcSubjs object, it will not be re-added. - if ($v !== null) { - $v->addCcBlock($this); - } - - return $this; - } - - - /** - * Get the associated CcSubjs object - * - * @param PropelPDO Optional Connection object. - * @return CcSubjs The associated CcSubjs object. - * @throws PropelException - */ - public function getCcSubjs(PropelPDO $con = null) - { - if ($this->aCcSubjs === null && ($this->creator_id !== null)) { - $this->aCcSubjs = CcSubjsQuery::create()->findPk($this->creator_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcSubjs->addCcBlocks($this); - */ - } - return $this->aCcSubjs; - } - - /** - * Clears out the collCcPlaylistcontentss 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 addCcPlaylistcontentss() - */ - public function clearCcPlaylistcontentss() - { - $this->collCcPlaylistcontentss = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcPlaylistcontentss collection. - * - * By default this just sets the collCcPlaylistcontentss collection to an empty array (like clearcollCcPlaylistcontentss()); - * 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 initCcPlaylistcontentss() - { - $this->collCcPlaylistcontentss = new PropelObjectCollection(); - $this->collCcPlaylistcontentss->setModel('CcPlaylistcontents'); - } - - /** - * Gets an array of CcPlaylistcontents 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 CcBlock 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 CcPlaylistcontents[] List of CcPlaylistcontents objects - * @throws PropelException - */ - public function getCcPlaylistcontentss($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcPlaylistcontentss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlaylistcontentss) { - // return empty collection - $this->initCcPlaylistcontentss(); - } else { - $collCcPlaylistcontentss = CcPlaylistcontentsQuery::create(null, $criteria) - ->filterByCcBlock($this) - ->find($con); - if (null !== $criteria) { - return $collCcPlaylistcontentss; - } - $this->collCcPlaylistcontentss = $collCcPlaylistcontentss; - } - } - return $this->collCcPlaylistcontentss; - } - - /** - * Returns the number of related CcPlaylistcontents objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcPlaylistcontents objects. - * @throws PropelException - */ - public function countCcPlaylistcontentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcPlaylistcontentss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlaylistcontentss) { - return 0; - } else { - $query = CcPlaylistcontentsQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcBlock($this) - ->count($con); - } - } else { - return count($this->collCcPlaylistcontentss); - } - } - - /** - * Method called to associate a CcPlaylistcontents object to this object - * through the CcPlaylistcontents foreign key attribute. - * - * @param CcPlaylistcontents $l CcPlaylistcontents - * @return void - * @throws PropelException - */ - public function addCcPlaylistcontents(CcPlaylistcontents $l) - { - if ($this->collCcPlaylistcontentss === null) { - $this->initCcPlaylistcontentss(); - } - if (!$this->collCcPlaylistcontentss->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcPlaylistcontentss[]= $l; - $l->setCcBlock($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcBlock is new, it will return - * an empty collection; or if this CcBlock has previously - * been saved, it will retrieve related CcPlaylistcontentss from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcBlock. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcPlaylistcontents[] List of CcPlaylistcontents objects - */ - public function getCcPlaylistcontentssJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcPlaylistcontentsQuery::create(null, $criteria); - $query->joinWith('CcFiles', $join_behavior); - - return $this->getCcPlaylistcontentss($query, $con); - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcBlock is new, it will return - * an empty collection; or if this CcBlock has previously - * been saved, it will retrieve related CcPlaylistcontentss from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcBlock. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcPlaylistcontents[] List of CcPlaylistcontents objects - */ - public function getCcPlaylistcontentssJoinCcPlaylist($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcPlaylistcontentsQuery::create(null, $criteria); - $query->joinWith('CcPlaylist', $join_behavior); - - return $this->getCcPlaylistcontentss($query, $con); - } - - /** - * Clears out the collCcBlockcontentss 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 addCcBlockcontentss() - */ - public function clearCcBlockcontentss() - { - $this->collCcBlockcontentss = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcBlockcontentss collection. - * - * By default this just sets the collCcBlockcontentss collection to an empty array (like clearcollCcBlockcontentss()); - * 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 initCcBlockcontentss() - { - $this->collCcBlockcontentss = new PropelObjectCollection(); - $this->collCcBlockcontentss->setModel('CcBlockcontents'); - } - - /** - * Gets an array of CcBlockcontents 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 CcBlock 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 CcBlockcontents[] List of CcBlockcontents objects - * @throws PropelException - */ - public function getCcBlockcontentss($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcBlockcontentss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcBlockcontentss) { - // return empty collection - $this->initCcBlockcontentss(); - } else { - $collCcBlockcontentss = CcBlockcontentsQuery::create(null, $criteria) - ->filterByCcBlock($this) - ->find($con); - if (null !== $criteria) { - return $collCcBlockcontentss; - } - $this->collCcBlockcontentss = $collCcBlockcontentss; - } - } - return $this->collCcBlockcontentss; - } - - /** - * Returns the number of related CcBlockcontents objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcBlockcontents objects. - * @throws PropelException - */ - public function countCcBlockcontentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcBlockcontentss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcBlockcontentss) { - return 0; - } else { - $query = CcBlockcontentsQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcBlock($this) - ->count($con); - } - } else { - return count($this->collCcBlockcontentss); - } - } - - /** - * Method called to associate a CcBlockcontents object to this object - * through the CcBlockcontents foreign key attribute. - * - * @param CcBlockcontents $l CcBlockcontents - * @return void - * @throws PropelException - */ - public function addCcBlockcontents(CcBlockcontents $l) - { - if ($this->collCcBlockcontentss === null) { - $this->initCcBlockcontentss(); - } - if (!$this->collCcBlockcontentss->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcBlockcontentss[]= $l; - $l->setCcBlock($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcBlock is new, it will return - * an empty collection; or if this CcBlock has previously - * been saved, it will retrieve related CcBlockcontentss from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcBlock. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcBlockcontents[] List of CcBlockcontents objects - */ - public function getCcBlockcontentssJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcBlockcontentsQuery::create(null, $criteria); - $query->joinWith('CcFiles', $join_behavior); - - return $this->getCcBlockcontentss($query, $con); - } - - /** - * Clears out the collCcBlockcriterias 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 addCcBlockcriterias() - */ - public function clearCcBlockcriterias() - { - $this->collCcBlockcriterias = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcBlockcriterias collection. - * - * By default this just sets the collCcBlockcriterias collection to an empty array (like clearcollCcBlockcriterias()); - * 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 initCcBlockcriterias() - { - $this->collCcBlockcriterias = new PropelObjectCollection(); - $this->collCcBlockcriterias->setModel('CcBlockcriteria'); - } - - /** - * Gets an array of CcBlockcriteria 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 CcBlock 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 CcBlockcriteria[] List of CcBlockcriteria objects - * @throws PropelException - */ - public function getCcBlockcriterias($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcBlockcriterias || null !== $criteria) { - if ($this->isNew() && null === $this->collCcBlockcriterias) { - // return empty collection - $this->initCcBlockcriterias(); - } else { - $collCcBlockcriterias = CcBlockcriteriaQuery::create(null, $criteria) - ->filterByCcBlock($this) - ->find($con); - if (null !== $criteria) { - return $collCcBlockcriterias; - } - $this->collCcBlockcriterias = $collCcBlockcriterias; - } - } - return $this->collCcBlockcriterias; - } - - /** - * Returns the number of related CcBlockcriteria objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcBlockcriteria objects. - * @throws PropelException - */ - public function countCcBlockcriterias(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcBlockcriterias || null !== $criteria) { - if ($this->isNew() && null === $this->collCcBlockcriterias) { - return 0; - } else { - $query = CcBlockcriteriaQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcBlock($this) - ->count($con); - } - } else { - return count($this->collCcBlockcriterias); - } - } - - /** - * Method called to associate a CcBlockcriteria object to this object - * through the CcBlockcriteria foreign key attribute. - * - * @param CcBlockcriteria $l CcBlockcriteria - * @return void - * @throws PropelException - */ - public function addCcBlockcriteria(CcBlockcriteria $l) - { - if ($this->collCcBlockcriterias === null) { - $this->initCcBlockcriterias(); - } - if (!$this->collCcBlockcriterias->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcBlockcriterias[]= $l; - $l->setCcBlock($this); - } - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->name = null; - $this->mtime = null; - $this->utime = null; - $this->creator_id = null; - $this->description = null; - $this->length = null; - $this->type = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - if ($this->collCcPlaylistcontentss) { - foreach ((array) $this->collCcPlaylistcontentss as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcBlockcontentss) { - foreach ((array) $this->collCcBlockcontentss as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcBlockcriterias) { - foreach ((array) $this->collCcBlockcriterias as $o) { - $o->clearAllReferences($deep); - } - } - } // if ($deep) - - $this->collCcPlaylistcontentss = null; - $this->collCcBlockcontentss = null; - $this->collCcBlockcriterias = null; - $this->aCcSubjs = null; - } - - // aggregate_column behavior - - /** - * Computes the value of the aggregate column length - * - * @param PropelPDO $con A connection object - * - * @return mixed The scalar result from the aggregate query - */ - public function computeDbLength(PropelPDO $con) - { - $stmt = $con->prepare('SELECT SUM(cliplength) FROM "cc_blockcontents" WHERE cc_blockcontents.BLOCK_ID = :p1'); - $stmt->bindValue(':p1', $this->getDbId()); - $stmt->execute(); - return $stmt->fetchColumn(); - } - - /** - * Updates the aggregate column length - * - * @param PropelPDO $con A connection object - */ - public function updateDbLength(PropelPDO $con) - { - $this->setDbLength($this->computeDbLength($con)); - $this->save($con); - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcBlock + /** + * Peer class name + */ + const PEER = 'CcBlockPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcBlockPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the name field. + * Note: this column has a database default value of: '' + * @var string + */ + protected $name; + + /** + * The value for the mtime field. + * @var string + */ + protected $mtime; + + /** + * The value for the utime field. + * @var string + */ + protected $utime; + + /** + * The value for the creator_id field. + * @var int + */ + protected $creator_id; + + /** + * The value for the description field. + * @var string + */ + protected $description; + + /** + * The value for the length field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $length; + + /** + * The value for the type field. + * Note: this column has a database default value of: 'static' + * @var string + */ + protected $type; + + /** + * @var CcSubjs + */ + protected $aCcSubjs; + + /** + * @var PropelObjectCollection|CcPlaylistcontents[] Collection to store aggregation of CcPlaylistcontents objects. + */ + protected $collCcPlaylistcontentss; + protected $collCcPlaylistcontentssPartial; + + /** + * @var PropelObjectCollection|CcBlockcontents[] Collection to store aggregation of CcBlockcontents objects. + */ + protected $collCcBlockcontentss; + protected $collCcBlockcontentssPartial; + + /** + * @var PropelObjectCollection|CcBlockcriteria[] Collection to store aggregation of CcBlockcriteria objects. + */ + protected $collCcBlockcriterias; + protected $collCcBlockcriteriasPartial; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccPlaylistcontentssScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccBlockcontentssScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccBlockcriteriasScheduledForDeletion = null; + + /** + * 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->name = ''; + $this->length = '00:00:00'; + $this->type = 'static'; + } + + /** + * Initializes internal state of BaseCcBlock object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [name] column value. + * + * @return string + */ + public function getDbName() + { + + return $this->name; + } + + /** + * Get the [optionally formatted] temporal [mtime] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbMtime($format = 'Y-m-d H:i:s') + { + if ($this->mtime === null) { + return null; + } + + + try { + $dt = new DateTime($this->mtime); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->mtime, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [utime] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbUtime($format = 'Y-m-d H:i:s') + { + if ($this->utime === null) { + return null; + } + + + try { + $dt = new DateTime($this->utime); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->utime, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [creator_id] column value. + * + * @return int + */ + public function getDbCreatorId() + { + + return $this->creator_id; + } + + /** + * Get the [description] column value. + * + * @return string + */ + public function getDbDescription() + { + + return $this->description; + } + + /** + * Get the [length] column value. + * + * @return string + */ + public function getDbLength() + { + + return $this->length; + } + + /** + * Get the [type] column value. + * + * @return string + */ + public function getDbType() + { + + return $this->type; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcBlock The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcBlockPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [name] column. + * + * @param string $v new value + * @return CcBlock The current object (for fluent API support) + */ + public function setDbName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->name !== $v) { + $this->name = $v; + $this->modifiedColumns[] = CcBlockPeer::NAME; + } + + + return $this; + } // setDbName() + + /** + * Sets the value of [mtime] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcBlock The current object (for fluent API support) + */ + public function setDbMtime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->mtime !== null || $dt !== null) { + $currentDateAsString = ($this->mtime !== null && $tmpDt = new DateTime($this->mtime)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->mtime = $newDateAsString; + $this->modifiedColumns[] = CcBlockPeer::MTIME; + } + } // if either are not null + + + return $this; + } // setDbMtime() + + /** + * Sets the value of [utime] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcBlock The current object (for fluent API support) + */ + public function setDbUtime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->utime !== null || $dt !== null) { + $currentDateAsString = ($this->utime !== null && $tmpDt = new DateTime($this->utime)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->utime = $newDateAsString; + $this->modifiedColumns[] = CcBlockPeer::UTIME; + } + } // if either are not null + + + return $this; + } // setDbUtime() + + /** + * Set the value of [creator_id] column. + * + * @param int $v new value + * @return CcBlock The current object (for fluent API support) + */ + public function setDbCreatorId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->creator_id !== $v) { + $this->creator_id = $v; + $this->modifiedColumns[] = CcBlockPeer::CREATOR_ID; + } + + if ($this->aCcSubjs !== null && $this->aCcSubjs->getDbId() !== $v) { + $this->aCcSubjs = null; + } + + + return $this; + } // setDbCreatorId() + + /** + * Set the value of [description] column. + * + * @param string $v new value + * @return CcBlock The current object (for fluent API support) + */ + public function setDbDescription($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->description !== $v) { + $this->description = $v; + $this->modifiedColumns[] = CcBlockPeer::DESCRIPTION; + } + + + return $this; + } // setDbDescription() + + /** + * Set the value of [length] column. + * + * @param string $v new value + * @return CcBlock The current object (for fluent API support) + */ + public function setDbLength($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->length !== $v) { + $this->length = $v; + $this->modifiedColumns[] = CcBlockPeer::LENGTH; + } + + + return $this; + } // setDbLength() + + /** + * Set the value of [type] column. + * + * @param string $v new value + * @return CcBlock The current object (for fluent API support) + */ + public function setDbType($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->type !== $v) { + $this->type = $v; + $this->modifiedColumns[] = CcBlockPeer::TYPE; + } + + + return $this; + } // setDbType() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->name !== '') { + return false; + } + + if ($this->length !== '00:00:00') { + return false; + } + + if ($this->type !== 'static') { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->mtime = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->utime = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->creator_id = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; + $this->description = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; + $this->length = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; + $this->type = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 8; // 8 = CcBlockPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcBlock object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcSubjs !== null && $this->creator_id !== $this->aCcSubjs->getDbId()) { + $this->aCcSubjs = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcBlockPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcSubjs = null; + $this->collCcPlaylistcontentss = null; + + $this->collCcBlockcontentss = null; + + $this->collCcBlockcriterias = null; + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcBlockQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + // aggregate_column behavior + if (null !== $this->collCcBlockcontentss) { + $this->setDbLength($this->computeDbLength($con)); + if ($this->isModified()) { + $this->save($con); + } + } + + CcBlockPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcSubjs !== null) { + if ($this->aCcSubjs->isModified() || $this->aCcSubjs->isNew()) { + $affectedRows += $this->aCcSubjs->save($con); + } + $this->setCcSubjs($this->aCcSubjs); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + if ($this->ccPlaylistcontentssScheduledForDeletion !== null) { + if (!$this->ccPlaylistcontentssScheduledForDeletion->isEmpty()) { + CcPlaylistcontentsQuery::create() + ->filterByPrimaryKeys($this->ccPlaylistcontentssScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccPlaylistcontentssScheduledForDeletion = null; + } + } + + if ($this->collCcPlaylistcontentss !== null) { + foreach ($this->collCcPlaylistcontentss as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccBlockcontentssScheduledForDeletion !== null) { + if (!$this->ccBlockcontentssScheduledForDeletion->isEmpty()) { + CcBlockcontentsQuery::create() + ->filterByPrimaryKeys($this->ccBlockcontentssScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccBlockcontentssScheduledForDeletion = null; + } + } + + if ($this->collCcBlockcontentss !== null) { + foreach ($this->collCcBlockcontentss as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccBlockcriteriasScheduledForDeletion !== null) { + if (!$this->ccBlockcriteriasScheduledForDeletion->isEmpty()) { + CcBlockcriteriaQuery::create() + ->filterByPrimaryKeys($this->ccBlockcriteriasScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccBlockcriteriasScheduledForDeletion = null; + } + } + + if ($this->collCcBlockcriterias !== null) { + foreach ($this->collCcBlockcriterias as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcBlockPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcBlockPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_block_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcBlockPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcBlockPeer::NAME)) { + $modifiedColumns[':p' . $index++] = '"name"'; + } + if ($this->isColumnModified(CcBlockPeer::MTIME)) { + $modifiedColumns[':p' . $index++] = '"mtime"'; + } + if ($this->isColumnModified(CcBlockPeer::UTIME)) { + $modifiedColumns[':p' . $index++] = '"utime"'; + } + if ($this->isColumnModified(CcBlockPeer::CREATOR_ID)) { + $modifiedColumns[':p' . $index++] = '"creator_id"'; + } + if ($this->isColumnModified(CcBlockPeer::DESCRIPTION)) { + $modifiedColumns[':p' . $index++] = '"description"'; + } + if ($this->isColumnModified(CcBlockPeer::LENGTH)) { + $modifiedColumns[':p' . $index++] = '"length"'; + } + if ($this->isColumnModified(CcBlockPeer::TYPE)) { + $modifiedColumns[':p' . $index++] = '"type"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_block" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"name"': + $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); + break; + case '"mtime"': + $stmt->bindValue($identifier, $this->mtime, PDO::PARAM_STR); + break; + case '"utime"': + $stmt->bindValue($identifier, $this->utime, PDO::PARAM_STR); + break; + case '"creator_id"': + $stmt->bindValue($identifier, $this->creator_id, PDO::PARAM_INT); + break; + case '"description"': + $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); + break; + case '"length"': + $stmt->bindValue($identifier, $this->length, PDO::PARAM_STR); + break; + case '"type"': + $stmt->bindValue($identifier, $this->type, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcSubjs !== null) { + if (!$this->aCcSubjs->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcSubjs->getValidationFailures()); + } + } + + + if (($retval = CcBlockPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + if ($this->collCcPlaylistcontentss !== null) { + foreach ($this->collCcPlaylistcontentss as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcBlockcontentss !== null) { + foreach ($this->collCcBlockcontentss as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcBlockcriterias !== null) { + foreach ($this->collCcBlockcriterias as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcBlockPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbName(); + break; + case 2: + return $this->getDbMtime(); + break; + case 3: + return $this->getDbUtime(); + break; + case 4: + return $this->getDbCreatorId(); + break; + case 5: + return $this->getDbDescription(); + break; + case 6: + return $this->getDbLength(); + break; + case 7: + return $this->getDbType(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcBlock'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcBlock'][$this->getPrimaryKey()] = true; + $keys = CcBlockPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbName(), + $keys[2] => $this->getDbMtime(), + $keys[3] => $this->getDbUtime(), + $keys[4] => $this->getDbCreatorId(), + $keys[5] => $this->getDbDescription(), + $keys[6] => $this->getDbLength(), + $keys[7] => $this->getDbType(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcSubjs) { + $result['CcSubjs'] = $this->aCcSubjs->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->collCcPlaylistcontentss) { + $result['CcPlaylistcontentss'] = $this->collCcPlaylistcontentss->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcBlockcontentss) { + $result['CcBlockcontentss'] = $this->collCcBlockcontentss->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcBlockcriterias) { + $result['CcBlockcriterias'] = $this->collCcBlockcriterias->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcBlockPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbName($value); + break; + case 2: + $this->setDbMtime($value); + break; + case 3: + $this->setDbUtime($value); + break; + case 4: + $this->setDbCreatorId($value); + break; + case 5: + $this->setDbDescription($value); + break; + case 6: + $this->setDbLength($value); + break; + case 7: + $this->setDbType($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcBlockPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbMtime($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbUtime($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbCreatorId($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDbDescription($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setDbLength($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setDbType($arr[$keys[7]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcBlockPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcBlockPeer::ID)) $criteria->add(CcBlockPeer::ID, $this->id); + if ($this->isColumnModified(CcBlockPeer::NAME)) $criteria->add(CcBlockPeer::NAME, $this->name); + if ($this->isColumnModified(CcBlockPeer::MTIME)) $criteria->add(CcBlockPeer::MTIME, $this->mtime); + if ($this->isColumnModified(CcBlockPeer::UTIME)) $criteria->add(CcBlockPeer::UTIME, $this->utime); + if ($this->isColumnModified(CcBlockPeer::CREATOR_ID)) $criteria->add(CcBlockPeer::CREATOR_ID, $this->creator_id); + if ($this->isColumnModified(CcBlockPeer::DESCRIPTION)) $criteria->add(CcBlockPeer::DESCRIPTION, $this->description); + if ($this->isColumnModified(CcBlockPeer::LENGTH)) $criteria->add(CcBlockPeer::LENGTH, $this->length); + if ($this->isColumnModified(CcBlockPeer::TYPE)) $criteria->add(CcBlockPeer::TYPE, $this->type); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcBlockPeer::DATABASE_NAME); + $criteria->add(CcBlockPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcBlock (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbName($this->getDbName()); + $copyObj->setDbMtime($this->getDbMtime()); + $copyObj->setDbUtime($this->getDbUtime()); + $copyObj->setDbCreatorId($this->getDbCreatorId()); + $copyObj->setDbDescription($this->getDbDescription()); + $copyObj->setDbLength($this->getDbLength()); + $copyObj->setDbType($this->getDbType()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + foreach ($this->getCcPlaylistcontentss() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcPlaylistcontents($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcBlockcontentss() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcBlockcontents($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcBlockcriterias() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcBlockcriteria($relObj->copy($deepCopy)); + } + } + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcBlock Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcBlockPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcBlockPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcSubjs object. + * + * @param CcSubjs $v + * @return CcBlock The current object (for fluent API support) + * @throws PropelException + */ + public function setCcSubjs(CcSubjs $v = null) + { + if ($v === null) { + $this->setDbCreatorId(NULL); + } else { + $this->setDbCreatorId($v->getDbId()); + } + + $this->aCcSubjs = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcSubjs object, it will not be re-added. + if ($v !== null) { + $v->addCcBlock($this); + } + + + return $this; + } + + + /** + * Get the associated CcSubjs object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcSubjs The associated CcSubjs object. + * @throws PropelException + */ + public function getCcSubjs(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcSubjs === null && ($this->creator_id !== null) && $doQuery) { + $this->aCcSubjs = CcSubjsQuery::create()->findPk($this->creator_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcSubjs->addCcBlocks($this); + */ + } + + return $this->aCcSubjs; + } + + + /** + * Initializes a collection based on the name of a relation. + * Avoids crafting an 'init[$relationName]s' method name + * that wouldn't work when StandardEnglishPluralizer is used. + * + * @param string $relationName The name of the relation to initialize + * @return void + */ + public function initRelation($relationName) + { + if ('CcPlaylistcontents' == $relationName) { + $this->initCcPlaylistcontentss(); + } + if ('CcBlockcontents' == $relationName) { + $this->initCcBlockcontentss(); + } + if ('CcBlockcriteria' == $relationName) { + $this->initCcBlockcriterias(); + } + } + + /** + * Clears out the collCcPlaylistcontentss 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 CcBlock The current object (for fluent API support) + * @see addCcPlaylistcontentss() + */ + public function clearCcPlaylistcontentss() + { + $this->collCcPlaylistcontentss = null; // important to set this to null since that means it is uninitialized + $this->collCcPlaylistcontentssPartial = null; + + return $this; + } + + /** + * reset is the collCcPlaylistcontentss collection loaded partially + * + * @return void + */ + public function resetPartialCcPlaylistcontentss($v = true) + { + $this->collCcPlaylistcontentssPartial = $v; + } + + /** + * Initializes the collCcPlaylistcontentss collection. + * + * By default this just sets the collCcPlaylistcontentss collection to an empty array (like clearcollCcPlaylistcontentss()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcPlaylistcontentss($overrideExisting = true) + { + if (null !== $this->collCcPlaylistcontentss && !$overrideExisting) { + return; + } + $this->collCcPlaylistcontentss = new PropelObjectCollection(); + $this->collCcPlaylistcontentss->setModel('CcPlaylistcontents'); + } + + /** + * Gets an array of CcPlaylistcontents 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 CcBlock 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 PropelObjectCollection|CcPlaylistcontents[] List of CcPlaylistcontents objects + * @throws PropelException + */ + public function getCcPlaylistcontentss($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcPlaylistcontentssPartial && !$this->isNew(); + if (null === $this->collCcPlaylistcontentss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlaylistcontentss) { + // return empty collection + $this->initCcPlaylistcontentss(); + } else { + $collCcPlaylistcontentss = CcPlaylistcontentsQuery::create(null, $criteria) + ->filterByCcBlock($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcPlaylistcontentssPartial && count($collCcPlaylistcontentss)) { + $this->initCcPlaylistcontentss(false); + + foreach ($collCcPlaylistcontentss as $obj) { + if (false == $this->collCcPlaylistcontentss->contains($obj)) { + $this->collCcPlaylistcontentss->append($obj); + } + } + + $this->collCcPlaylistcontentssPartial = true; + } + + $collCcPlaylistcontentss->getInternalIterator()->rewind(); + + return $collCcPlaylistcontentss; + } + + if ($partial && $this->collCcPlaylistcontentss) { + foreach ($this->collCcPlaylistcontentss as $obj) { + if ($obj->isNew()) { + $collCcPlaylistcontentss[] = $obj; + } + } + } + + $this->collCcPlaylistcontentss = $collCcPlaylistcontentss; + $this->collCcPlaylistcontentssPartial = false; + } + } + + return $this->collCcPlaylistcontentss; + } + + /** + * Sets a collection of CcPlaylistcontents objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccPlaylistcontentss A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcBlock The current object (for fluent API support) + */ + public function setCcPlaylistcontentss(PropelCollection $ccPlaylistcontentss, PropelPDO $con = null) + { + $ccPlaylistcontentssToDelete = $this->getCcPlaylistcontentss(new Criteria(), $con)->diff($ccPlaylistcontentss); + + + $this->ccPlaylistcontentssScheduledForDeletion = $ccPlaylistcontentssToDelete; + + foreach ($ccPlaylistcontentssToDelete as $ccPlaylistcontentsRemoved) { + $ccPlaylistcontentsRemoved->setCcBlock(null); + } + + $this->collCcPlaylistcontentss = null; + foreach ($ccPlaylistcontentss as $ccPlaylistcontents) { + $this->addCcPlaylistcontents($ccPlaylistcontents); + } + + $this->collCcPlaylistcontentss = $ccPlaylistcontentss; + $this->collCcPlaylistcontentssPartial = false; + + return $this; + } + + /** + * Returns the number of related CcPlaylistcontents objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcPlaylistcontents objects. + * @throws PropelException + */ + public function countCcPlaylistcontentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcPlaylistcontentssPartial && !$this->isNew(); + if (null === $this->collCcPlaylistcontentss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlaylistcontentss) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcPlaylistcontentss()); + } + $query = CcPlaylistcontentsQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcBlock($this) + ->count($con); + } + + return count($this->collCcPlaylistcontentss); + } + + /** + * Method called to associate a CcPlaylistcontents object to this object + * through the CcPlaylistcontents foreign key attribute. + * + * @param CcPlaylistcontents $l CcPlaylistcontents + * @return CcBlock The current object (for fluent API support) + */ + public function addCcPlaylistcontents(CcPlaylistcontents $l) + { + if ($this->collCcPlaylistcontentss === null) { + $this->initCcPlaylistcontentss(); + $this->collCcPlaylistcontentssPartial = true; + } + + if (!in_array($l, $this->collCcPlaylistcontentss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcPlaylistcontents($l); + + if ($this->ccPlaylistcontentssScheduledForDeletion and $this->ccPlaylistcontentssScheduledForDeletion->contains($l)) { + $this->ccPlaylistcontentssScheduledForDeletion->remove($this->ccPlaylistcontentssScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcPlaylistcontents $ccPlaylistcontents The ccPlaylistcontents object to add. + */ + protected function doAddCcPlaylistcontents($ccPlaylistcontents) + { + $this->collCcPlaylistcontentss[]= $ccPlaylistcontents; + $ccPlaylistcontents->setCcBlock($this); + } + + /** + * @param CcPlaylistcontents $ccPlaylistcontents The ccPlaylistcontents object to remove. + * @return CcBlock The current object (for fluent API support) + */ + public function removeCcPlaylistcontents($ccPlaylistcontents) + { + if ($this->getCcPlaylistcontentss()->contains($ccPlaylistcontents)) { + $this->collCcPlaylistcontentss->remove($this->collCcPlaylistcontentss->search($ccPlaylistcontents)); + if (null === $this->ccPlaylistcontentssScheduledForDeletion) { + $this->ccPlaylistcontentssScheduledForDeletion = clone $this->collCcPlaylistcontentss; + $this->ccPlaylistcontentssScheduledForDeletion->clear(); + } + $this->ccPlaylistcontentssScheduledForDeletion[]= $ccPlaylistcontents; + $ccPlaylistcontents->setCcBlock(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcBlock is new, it will return + * an empty collection; or if this CcBlock has previously + * been saved, it will retrieve related CcPlaylistcontentss from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcBlock. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcPlaylistcontents[] List of CcPlaylistcontents objects + */ + public function getCcPlaylistcontentssJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcPlaylistcontentsQuery::create(null, $criteria); + $query->joinWith('CcFiles', $join_behavior); + + return $this->getCcPlaylistcontentss($query, $con); + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcBlock is new, it will return + * an empty collection; or if this CcBlock has previously + * been saved, it will retrieve related CcPlaylistcontentss from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcBlock. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcPlaylistcontents[] List of CcPlaylistcontents objects + */ + public function getCcPlaylistcontentssJoinCcPlaylist($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcPlaylistcontentsQuery::create(null, $criteria); + $query->joinWith('CcPlaylist', $join_behavior); + + return $this->getCcPlaylistcontentss($query, $con); + } + + /** + * Clears out the collCcBlockcontentss 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 CcBlock The current object (for fluent API support) + * @see addCcBlockcontentss() + */ + public function clearCcBlockcontentss() + { + $this->collCcBlockcontentss = null; // important to set this to null since that means it is uninitialized + $this->collCcBlockcontentssPartial = null; + + return $this; + } + + /** + * reset is the collCcBlockcontentss collection loaded partially + * + * @return void + */ + public function resetPartialCcBlockcontentss($v = true) + { + $this->collCcBlockcontentssPartial = $v; + } + + /** + * Initializes the collCcBlockcontentss collection. + * + * By default this just sets the collCcBlockcontentss collection to an empty array (like clearcollCcBlockcontentss()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcBlockcontentss($overrideExisting = true) + { + if (null !== $this->collCcBlockcontentss && !$overrideExisting) { + return; + } + $this->collCcBlockcontentss = new PropelObjectCollection(); + $this->collCcBlockcontentss->setModel('CcBlockcontents'); + } + + /** + * Gets an array of CcBlockcontents 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 CcBlock 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 PropelObjectCollection|CcBlockcontents[] List of CcBlockcontents objects + * @throws PropelException + */ + public function getCcBlockcontentss($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcBlockcontentssPartial && !$this->isNew(); + if (null === $this->collCcBlockcontentss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcBlockcontentss) { + // return empty collection + $this->initCcBlockcontentss(); + } else { + $collCcBlockcontentss = CcBlockcontentsQuery::create(null, $criteria) + ->filterByCcBlock($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcBlockcontentssPartial && count($collCcBlockcontentss)) { + $this->initCcBlockcontentss(false); + + foreach ($collCcBlockcontentss as $obj) { + if (false == $this->collCcBlockcontentss->contains($obj)) { + $this->collCcBlockcontentss->append($obj); + } + } + + $this->collCcBlockcontentssPartial = true; + } + + $collCcBlockcontentss->getInternalIterator()->rewind(); + + return $collCcBlockcontentss; + } + + if ($partial && $this->collCcBlockcontentss) { + foreach ($this->collCcBlockcontentss as $obj) { + if ($obj->isNew()) { + $collCcBlockcontentss[] = $obj; + } + } + } + + $this->collCcBlockcontentss = $collCcBlockcontentss; + $this->collCcBlockcontentssPartial = false; + } + } + + return $this->collCcBlockcontentss; + } + + /** + * Sets a collection of CcBlockcontents objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccBlockcontentss A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcBlock The current object (for fluent API support) + */ + public function setCcBlockcontentss(PropelCollection $ccBlockcontentss, PropelPDO $con = null) + { + $ccBlockcontentssToDelete = $this->getCcBlockcontentss(new Criteria(), $con)->diff($ccBlockcontentss); + + + $this->ccBlockcontentssScheduledForDeletion = $ccBlockcontentssToDelete; + + foreach ($ccBlockcontentssToDelete as $ccBlockcontentsRemoved) { + $ccBlockcontentsRemoved->setCcBlock(null); + } + + $this->collCcBlockcontentss = null; + foreach ($ccBlockcontentss as $ccBlockcontents) { + $this->addCcBlockcontents($ccBlockcontents); + } + + $this->collCcBlockcontentss = $ccBlockcontentss; + $this->collCcBlockcontentssPartial = false; + + return $this; + } + + /** + * Returns the number of related CcBlockcontents objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcBlockcontents objects. + * @throws PropelException + */ + public function countCcBlockcontentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcBlockcontentssPartial && !$this->isNew(); + if (null === $this->collCcBlockcontentss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcBlockcontentss) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcBlockcontentss()); + } + $query = CcBlockcontentsQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcBlock($this) + ->count($con); + } + + return count($this->collCcBlockcontentss); + } + + /** + * Method called to associate a CcBlockcontents object to this object + * through the CcBlockcontents foreign key attribute. + * + * @param CcBlockcontents $l CcBlockcontents + * @return CcBlock The current object (for fluent API support) + */ + public function addCcBlockcontents(CcBlockcontents $l) + { + if ($this->collCcBlockcontentss === null) { + $this->initCcBlockcontentss(); + $this->collCcBlockcontentssPartial = true; + } + + if (!in_array($l, $this->collCcBlockcontentss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcBlockcontents($l); + + if ($this->ccBlockcontentssScheduledForDeletion and $this->ccBlockcontentssScheduledForDeletion->contains($l)) { + $this->ccBlockcontentssScheduledForDeletion->remove($this->ccBlockcontentssScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcBlockcontents $ccBlockcontents The ccBlockcontents object to add. + */ + protected function doAddCcBlockcontents($ccBlockcontents) + { + $this->collCcBlockcontentss[]= $ccBlockcontents; + $ccBlockcontents->setCcBlock($this); + } + + /** + * @param CcBlockcontents $ccBlockcontents The ccBlockcontents object to remove. + * @return CcBlock The current object (for fluent API support) + */ + public function removeCcBlockcontents($ccBlockcontents) + { + if ($this->getCcBlockcontentss()->contains($ccBlockcontents)) { + $this->collCcBlockcontentss->remove($this->collCcBlockcontentss->search($ccBlockcontents)); + if (null === $this->ccBlockcontentssScheduledForDeletion) { + $this->ccBlockcontentssScheduledForDeletion = clone $this->collCcBlockcontentss; + $this->ccBlockcontentssScheduledForDeletion->clear(); + } + $this->ccBlockcontentssScheduledForDeletion[]= $ccBlockcontents; + $ccBlockcontents->setCcBlock(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcBlock is new, it will return + * an empty collection; or if this CcBlock has previously + * been saved, it will retrieve related CcBlockcontentss from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcBlock. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcBlockcontents[] List of CcBlockcontents objects + */ + public function getCcBlockcontentssJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcBlockcontentsQuery::create(null, $criteria); + $query->joinWith('CcFiles', $join_behavior); + + return $this->getCcBlockcontentss($query, $con); + } + + /** + * Clears out the collCcBlockcriterias 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 CcBlock The current object (for fluent API support) + * @see addCcBlockcriterias() + */ + public function clearCcBlockcriterias() + { + $this->collCcBlockcriterias = null; // important to set this to null since that means it is uninitialized + $this->collCcBlockcriteriasPartial = null; + + return $this; + } + + /** + * reset is the collCcBlockcriterias collection loaded partially + * + * @return void + */ + public function resetPartialCcBlockcriterias($v = true) + { + $this->collCcBlockcriteriasPartial = $v; + } + + /** + * Initializes the collCcBlockcriterias collection. + * + * By default this just sets the collCcBlockcriterias collection to an empty array (like clearcollCcBlockcriterias()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcBlockcriterias($overrideExisting = true) + { + if (null !== $this->collCcBlockcriterias && !$overrideExisting) { + return; + } + $this->collCcBlockcriterias = new PropelObjectCollection(); + $this->collCcBlockcriterias->setModel('CcBlockcriteria'); + } + + /** + * Gets an array of CcBlockcriteria 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 CcBlock 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 PropelObjectCollection|CcBlockcriteria[] List of CcBlockcriteria objects + * @throws PropelException + */ + public function getCcBlockcriterias($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcBlockcriteriasPartial && !$this->isNew(); + if (null === $this->collCcBlockcriterias || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcBlockcriterias) { + // return empty collection + $this->initCcBlockcriterias(); + } else { + $collCcBlockcriterias = CcBlockcriteriaQuery::create(null, $criteria) + ->filterByCcBlock($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcBlockcriteriasPartial && count($collCcBlockcriterias)) { + $this->initCcBlockcriterias(false); + + foreach ($collCcBlockcriterias as $obj) { + if (false == $this->collCcBlockcriterias->contains($obj)) { + $this->collCcBlockcriterias->append($obj); + } + } + + $this->collCcBlockcriteriasPartial = true; + } + + $collCcBlockcriterias->getInternalIterator()->rewind(); + + return $collCcBlockcriterias; + } + + if ($partial && $this->collCcBlockcriterias) { + foreach ($this->collCcBlockcriterias as $obj) { + if ($obj->isNew()) { + $collCcBlockcriterias[] = $obj; + } + } + } + + $this->collCcBlockcriterias = $collCcBlockcriterias; + $this->collCcBlockcriteriasPartial = false; + } + } + + return $this->collCcBlockcriterias; + } + + /** + * Sets a collection of CcBlockcriteria objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccBlockcriterias A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcBlock The current object (for fluent API support) + */ + public function setCcBlockcriterias(PropelCollection $ccBlockcriterias, PropelPDO $con = null) + { + $ccBlockcriteriasToDelete = $this->getCcBlockcriterias(new Criteria(), $con)->diff($ccBlockcriterias); + + + $this->ccBlockcriteriasScheduledForDeletion = $ccBlockcriteriasToDelete; + + foreach ($ccBlockcriteriasToDelete as $ccBlockcriteriaRemoved) { + $ccBlockcriteriaRemoved->setCcBlock(null); + } + + $this->collCcBlockcriterias = null; + foreach ($ccBlockcriterias as $ccBlockcriteria) { + $this->addCcBlockcriteria($ccBlockcriteria); + } + + $this->collCcBlockcriterias = $ccBlockcriterias; + $this->collCcBlockcriteriasPartial = false; + + return $this; + } + + /** + * Returns the number of related CcBlockcriteria objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcBlockcriteria objects. + * @throws PropelException + */ + public function countCcBlockcriterias(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcBlockcriteriasPartial && !$this->isNew(); + if (null === $this->collCcBlockcriterias || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcBlockcriterias) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcBlockcriterias()); + } + $query = CcBlockcriteriaQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcBlock($this) + ->count($con); + } + + return count($this->collCcBlockcriterias); + } + + /** + * Method called to associate a CcBlockcriteria object to this object + * through the CcBlockcriteria foreign key attribute. + * + * @param CcBlockcriteria $l CcBlockcriteria + * @return CcBlock The current object (for fluent API support) + */ + public function addCcBlockcriteria(CcBlockcriteria $l) + { + if ($this->collCcBlockcriterias === null) { + $this->initCcBlockcriterias(); + $this->collCcBlockcriteriasPartial = true; + } + + if (!in_array($l, $this->collCcBlockcriterias->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcBlockcriteria($l); + + if ($this->ccBlockcriteriasScheduledForDeletion and $this->ccBlockcriteriasScheduledForDeletion->contains($l)) { + $this->ccBlockcriteriasScheduledForDeletion->remove($this->ccBlockcriteriasScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcBlockcriteria $ccBlockcriteria The ccBlockcriteria object to add. + */ + protected function doAddCcBlockcriteria($ccBlockcriteria) + { + $this->collCcBlockcriterias[]= $ccBlockcriteria; + $ccBlockcriteria->setCcBlock($this); + } + + /** + * @param CcBlockcriteria $ccBlockcriteria The ccBlockcriteria object to remove. + * @return CcBlock The current object (for fluent API support) + */ + public function removeCcBlockcriteria($ccBlockcriteria) + { + if ($this->getCcBlockcriterias()->contains($ccBlockcriteria)) { + $this->collCcBlockcriterias->remove($this->collCcBlockcriterias->search($ccBlockcriteria)); + if (null === $this->ccBlockcriteriasScheduledForDeletion) { + $this->ccBlockcriteriasScheduledForDeletion = clone $this->collCcBlockcriterias; + $this->ccBlockcriteriasScheduledForDeletion->clear(); + } + $this->ccBlockcriteriasScheduledForDeletion[]= clone $ccBlockcriteria; + $ccBlockcriteria->setCcBlock(null); + } + + return $this; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->name = null; + $this->mtime = null; + $this->utime = null; + $this->creator_id = null; + $this->description = null; + $this->length = null; + $this->type = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->collCcPlaylistcontentss) { + foreach ($this->collCcPlaylistcontentss as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcBlockcontentss) { + foreach ($this->collCcBlockcontentss as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcBlockcriterias) { + foreach ($this->collCcBlockcriterias as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->aCcSubjs instanceof Persistent) { + $this->aCcSubjs->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + if ($this->collCcPlaylistcontentss instanceof PropelCollection) { + $this->collCcPlaylistcontentss->clearIterator(); + } + $this->collCcPlaylistcontentss = null; + if ($this->collCcBlockcontentss instanceof PropelCollection) { + $this->collCcBlockcontentss->clearIterator(); + } + $this->collCcBlockcontentss = null; + if ($this->collCcBlockcriterias instanceof PropelCollection) { + $this->collCcBlockcriterias->clearIterator(); + } + $this->collCcBlockcriterias = null; + $this->aCcSubjs = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcBlockPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + + // aggregate_column behavior + + /** + * Computes the value of the aggregate column length * + * @param PropelPDO $con A connection object + * + * @return mixed The scalar result from the aggregate query + */ + public function computeDbLength(PropelPDO $con) + { + $stmt = $con->prepare('SELECT SUM(cliplength) FROM "cc_blockcontents" WHERE cc_blockcontents.block_id = :p1'); + $stmt->bindValue(':p1', $this->getDbId()); + $stmt->execute(); + + return $stmt->fetchColumn(); + } + + /** + * Updates the aggregate column length * + * @param PropelPDO $con A connection object + */ + public function updateDbLength(PropelPDO $con) + { + $this->setDbLength($this->computeDbLength($con)); + $this->save($con); + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcBlockPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcBlockPeer.php index 48003ffc56..403a647470 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcBlockPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcBlockPeer.php @@ -4,1005 +4,1031 @@ /** * Base static class for performing query and update operations on the 'cc_block' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcBlockPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_block'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcBlock'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcBlock'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcBlockTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 8; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_block.ID'; - - /** the column name for the NAME field */ - const NAME = 'cc_block.NAME'; - - /** the column name for the MTIME field */ - const MTIME = 'cc_block.MTIME'; - - /** the column name for the UTIME field */ - const UTIME = 'cc_block.UTIME'; - - /** the column name for the CREATOR_ID field */ - const CREATOR_ID = 'cc_block.CREATOR_ID'; - - /** the column name for the DESCRIPTION field */ - const DESCRIPTION = 'cc_block.DESCRIPTION'; - - /** the column name for the LENGTH field */ - const LENGTH = 'cc_block.LENGTH'; - - /** the column name for the TYPE field */ - const TYPE = 'cc_block.TYPE'; - - /** - * An identiy map to hold any loaded instances of CcBlock objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcBlock[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbMtime', 'DbUtime', 'DbCreatorId', 'DbDescription', 'DbLength', 'DbType', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbMtime', 'dbUtime', 'dbCreatorId', 'dbDescription', 'dbLength', 'dbType', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::NAME, self::MTIME, self::UTIME, self::CREATOR_ID, self::DESCRIPTION, self::LENGTH, self::TYPE, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'MTIME', 'UTIME', 'CREATOR_ID', 'DESCRIPTION', 'LENGTH', 'TYPE', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'mtime', 'utime', 'creator_id', 'description', 'length', 'type', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbMtime' => 2, 'DbUtime' => 3, 'DbCreatorId' => 4, 'DbDescription' => 5, 'DbLength' => 6, 'DbType' => 7, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbMtime' => 2, 'dbUtime' => 3, 'dbCreatorId' => 4, 'dbDescription' => 5, 'dbLength' => 6, 'dbType' => 7, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::NAME => 1, self::MTIME => 2, self::UTIME => 3, self::CREATOR_ID => 4, self::DESCRIPTION => 5, self::LENGTH => 6, self::TYPE => 7, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'MTIME' => 2, 'UTIME' => 3, 'CREATOR_ID' => 4, 'DESCRIPTION' => 5, 'LENGTH' => 6, 'TYPE' => 7, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'mtime' => 2, 'utime' => 3, 'creator_id' => 4, 'description' => 5, 'length' => 6, 'type' => 7, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcBlockPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcBlockPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcBlockPeer::ID); - $criteria->addSelectColumn(CcBlockPeer::NAME); - $criteria->addSelectColumn(CcBlockPeer::MTIME); - $criteria->addSelectColumn(CcBlockPeer::UTIME); - $criteria->addSelectColumn(CcBlockPeer::CREATOR_ID); - $criteria->addSelectColumn(CcBlockPeer::DESCRIPTION); - $criteria->addSelectColumn(CcBlockPeer::LENGTH); - $criteria->addSelectColumn(CcBlockPeer::TYPE); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.NAME'); - $criteria->addSelectColumn($alias . '.MTIME'); - $criteria->addSelectColumn($alias . '.UTIME'); - $criteria->addSelectColumn($alias . '.CREATOR_ID'); - $criteria->addSelectColumn($alias . '.DESCRIPTION'); - $criteria->addSelectColumn($alias . '.LENGTH'); - $criteria->addSelectColumn($alias . '.TYPE'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcBlockPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcBlockPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcBlock - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcBlockPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcBlockPeer::populateObjects(CcBlockPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcBlockPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcBlock $value A CcBlock object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcBlock $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcBlock object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcBlock) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcBlock object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcBlock Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_block - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - // Invalidate objects in CcPlaylistcontentsPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcPlaylistcontentsPeer::clearInstancePool(); - // Invalidate objects in CcBlockcontentsPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcBlockcontentsPeer::clearInstancePool(); - // Invalidate objects in CcBlockcriteriaPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcBlockcriteriaPeer::clearInstancePool(); - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcBlockPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcBlockPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcBlockPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcBlockPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcBlock object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcBlockPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcBlockPeer::NUM_COLUMNS; - } else { - $cls = CcBlockPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcBlockPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcSubjs table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcBlockPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcBlockPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcBlockPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcBlock objects pre-filled with their CcSubjs objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcBlock objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcBlockPeer::addSelectColumns($criteria); - $startcol = (CcBlockPeer::NUM_COLUMNS - CcBlockPeer::NUM_LAZY_LOAD_COLUMNS); - CcSubjsPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcBlockPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcBlockPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcBlockPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcBlockPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcBlockPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcBlock) to $obj2 (CcSubjs) - $obj2->addCcBlock($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcBlockPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcBlockPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcBlockPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcBlock objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcBlock objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcBlockPeer::addSelectColumns($criteria); - $startcol2 = (CcBlockPeer::NUM_COLUMNS - CcBlockPeer::NUM_LAZY_LOAD_COLUMNS); - - CcSubjsPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcSubjsPeer::NUM_COLUMNS - CcSubjsPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcBlockPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcBlockPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcBlockPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcBlockPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcBlockPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcSubjs rows - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcBlock) to the collection in $obj2 (CcSubjs) - $obj2->addCcBlock($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcBlockPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcBlockPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcBlockTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcBlockPeer::CLASS_DEFAULT : CcBlockPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcBlock or Criteria object. - * - * @param mixed $values Criteria or CcBlock object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcBlock object - } - - if ($criteria->containsKey(CcBlockPeer::ID) && $criteria->keyContainsValue(CcBlockPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcBlockPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcBlock or Criteria object. - * - * @param mixed $values Criteria or CcBlock object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcBlockPeer::ID); - $value = $criteria->remove(CcBlockPeer::ID); - if ($value) { - $selectCriteria->add(CcBlockPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcBlockPeer::TABLE_NAME); - } - - } else { // $values is CcBlock object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_block table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcBlockPeer::TABLE_NAME, $con, CcBlockPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcBlockPeer::clearInstancePool(); - CcBlockPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcBlock or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcBlock object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcBlockPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcBlock) { // it's a model object - // invalidate the cache for this single object - CcBlockPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcBlockPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcBlockPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcBlockPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcBlock object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcBlock $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcBlock $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcBlockPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcBlockPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcBlockPeer::DATABASE_NAME, CcBlockPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcBlock - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcBlockPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcBlockPeer::DATABASE_NAME); - $criteria->add(CcBlockPeer::ID, $pk); - - $v = CcBlockPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcBlockPeer::DATABASE_NAME); - $criteria->add(CcBlockPeer::ID, $pks, Criteria::IN); - $objs = CcBlockPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcBlockPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_block'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcBlock'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcBlockTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 8; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 8; + + /** the column name for the id field */ + const ID = 'cc_block.id'; + + /** the column name for the name field */ + const NAME = 'cc_block.name'; + + /** the column name for the mtime field */ + const MTIME = 'cc_block.mtime'; + + /** the column name for the utime field */ + const UTIME = 'cc_block.utime'; + + /** the column name for the creator_id field */ + const CREATOR_ID = 'cc_block.creator_id'; + + /** the column name for the description field */ + const DESCRIPTION = 'cc_block.description'; + + /** the column name for the length field */ + const LENGTH = 'cc_block.length'; + + /** the column name for the type field */ + const TYPE = 'cc_block.type'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcBlock objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcBlock[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcBlockPeer::$fieldNames[CcBlockPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbMtime', 'DbUtime', 'DbCreatorId', 'DbDescription', 'DbLength', 'DbType', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbMtime', 'dbUtime', 'dbCreatorId', 'dbDescription', 'dbLength', 'dbType', ), + BasePeer::TYPE_COLNAME => array (CcBlockPeer::ID, CcBlockPeer::NAME, CcBlockPeer::MTIME, CcBlockPeer::UTIME, CcBlockPeer::CREATOR_ID, CcBlockPeer::DESCRIPTION, CcBlockPeer::LENGTH, CcBlockPeer::TYPE, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'MTIME', 'UTIME', 'CREATOR_ID', 'DESCRIPTION', 'LENGTH', 'TYPE', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'mtime', 'utime', 'creator_id', 'description', 'length', 'type', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcBlockPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbMtime' => 2, 'DbUtime' => 3, 'DbCreatorId' => 4, 'DbDescription' => 5, 'DbLength' => 6, 'DbType' => 7, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbMtime' => 2, 'dbUtime' => 3, 'dbCreatorId' => 4, 'dbDescription' => 5, 'dbLength' => 6, 'dbType' => 7, ), + BasePeer::TYPE_COLNAME => array (CcBlockPeer::ID => 0, CcBlockPeer::NAME => 1, CcBlockPeer::MTIME => 2, CcBlockPeer::UTIME => 3, CcBlockPeer::CREATOR_ID => 4, CcBlockPeer::DESCRIPTION => 5, CcBlockPeer::LENGTH => 6, CcBlockPeer::TYPE => 7, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'MTIME' => 2, 'UTIME' => 3, 'CREATOR_ID' => 4, 'DESCRIPTION' => 5, 'LENGTH' => 6, 'TYPE' => 7, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'mtime' => 2, 'utime' => 3, 'creator_id' => 4, 'description' => 5, 'length' => 6, 'type' => 7, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcBlockPeer::getFieldNames($toType); + $key = isset(CcBlockPeer::$fieldKeys[$fromType][$name]) ? CcBlockPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcBlockPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcBlockPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcBlockPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcBlockPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcBlockPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcBlockPeer::ID); + $criteria->addSelectColumn(CcBlockPeer::NAME); + $criteria->addSelectColumn(CcBlockPeer::MTIME); + $criteria->addSelectColumn(CcBlockPeer::UTIME); + $criteria->addSelectColumn(CcBlockPeer::CREATOR_ID); + $criteria->addSelectColumn(CcBlockPeer::DESCRIPTION); + $criteria->addSelectColumn(CcBlockPeer::LENGTH); + $criteria->addSelectColumn(CcBlockPeer::TYPE); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.name'); + $criteria->addSelectColumn($alias . '.mtime'); + $criteria->addSelectColumn($alias . '.utime'); + $criteria->addSelectColumn($alias . '.creator_id'); + $criteria->addSelectColumn($alias . '.description'); + $criteria->addSelectColumn($alias . '.length'); + $criteria->addSelectColumn($alias . '.type'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcBlockPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcBlockPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcBlockPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcBlock + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcBlockPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcBlockPeer::populateObjects(CcBlockPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcBlockPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcBlockPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcBlock $obj A CcBlock object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcBlockPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcBlock object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcBlock) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcBlock object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcBlockPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcBlock Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcBlockPeer::$instances[$key])) { + return CcBlockPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcBlockPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcBlockPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_block + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + // Invalidate objects in CcPlaylistcontentsPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcPlaylistcontentsPeer::clearInstancePool(); + // Invalidate objects in CcBlockcontentsPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcBlockcontentsPeer::clearInstancePool(); + // Invalidate objects in CcBlockcriteriaPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcBlockcriteriaPeer::clearInstancePool(); + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcBlockPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcBlockPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcBlockPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcBlockPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcBlock object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcBlockPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcBlockPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcBlockPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcBlockPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcSubjs table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcBlockPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcBlockPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcBlockPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcBlockPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcBlock objects pre-filled with their CcSubjs objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcBlock objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcBlockPeer::DATABASE_NAME); + } + + CcBlockPeer::addSelectColumns($criteria); + $startcol = CcBlockPeer::NUM_HYDRATE_COLUMNS; + CcSubjsPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcBlockPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcBlockPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcBlockPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcBlockPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcBlockPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcBlock) to $obj2 (CcSubjs) + $obj2->addCcBlock($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcBlockPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcBlockPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcBlockPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcBlockPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcBlock objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcBlock objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcBlockPeer::DATABASE_NAME); + } + + CcBlockPeer::addSelectColumns($criteria); + $startcol2 = CcBlockPeer::NUM_HYDRATE_COLUMNS; + + CcSubjsPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcSubjsPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcBlockPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcBlockPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcBlockPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcBlockPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcBlockPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcSubjs rows + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcBlock) to the collection in $obj2 (CcSubjs) + $obj2->addCcBlock($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcBlockPeer::DATABASE_NAME)->getTable(CcBlockPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcBlockPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcBlockPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcBlockTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcBlockPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcBlock or Criteria object. + * + * @param mixed $values Criteria or CcBlock object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcBlock object + } + + if ($criteria->containsKey(CcBlockPeer::ID) && $criteria->keyContainsValue(CcBlockPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcBlockPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcBlockPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcBlock or Criteria object. + * + * @param mixed $values Criteria or CcBlock object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcBlockPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcBlockPeer::ID); + $value = $criteria->remove(CcBlockPeer::ID); + if ($value) { + $selectCriteria->add(CcBlockPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcBlockPeer::TABLE_NAME); + } + + } else { // $values is CcBlock object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcBlockPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_block table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcBlockPeer::TABLE_NAME, $con, CcBlockPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcBlockPeer::clearInstancePool(); + CcBlockPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcBlock or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcBlock object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcBlockPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcBlock) { // it's a model object + // invalidate the cache for this single object + CcBlockPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcBlockPeer::DATABASE_NAME); + $criteria->add(CcBlockPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcBlockPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcBlockPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcBlockPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcBlock object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcBlock $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcBlockPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcBlockPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcBlockPeer::DATABASE_NAME, CcBlockPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcBlock + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcBlockPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcBlockPeer::DATABASE_NAME); + $criteria->add(CcBlockPeer::ID, $pk); + + $v = CcBlockPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcBlock[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcBlockPeer::DATABASE_NAME); + $criteria->add(CcBlockPeer::ID, $pks, Criteria::IN); + $objs = CcBlockPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcBlockPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcBlockQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcBlockQuery.php index 100efd61e8..5ffad787a7 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcBlockQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcBlockQuery.php @@ -4,643 +4,861 @@ /** * Base class that represents a query for the 'cc_block' table. * - * * - * @method CcBlockQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcBlockQuery orderByDbName($order = Criteria::ASC) Order by the name column - * @method CcBlockQuery orderByDbMtime($order = Criteria::ASC) Order by the mtime column - * @method CcBlockQuery orderByDbUtime($order = Criteria::ASC) Order by the utime column - * @method CcBlockQuery orderByDbCreatorId($order = Criteria::ASC) Order by the creator_id column - * @method CcBlockQuery orderByDbDescription($order = Criteria::ASC) Order by the description column - * @method CcBlockQuery orderByDbLength($order = Criteria::ASC) Order by the length column - * @method CcBlockQuery orderByDbType($order = Criteria::ASC) Order by the type column * - * @method CcBlockQuery groupByDbId() Group by the id column - * @method CcBlockQuery groupByDbName() Group by the name column - * @method CcBlockQuery groupByDbMtime() Group by the mtime column - * @method CcBlockQuery groupByDbUtime() Group by the utime column - * @method CcBlockQuery groupByDbCreatorId() Group by the creator_id column - * @method CcBlockQuery groupByDbDescription() Group by the description column - * @method CcBlockQuery groupByDbLength() Group by the length column - * @method CcBlockQuery groupByDbType() Group by the type column + * @method CcBlockQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcBlockQuery orderByDbName($order = Criteria::ASC) Order by the name column + * @method CcBlockQuery orderByDbMtime($order = Criteria::ASC) Order by the mtime column + * @method CcBlockQuery orderByDbUtime($order = Criteria::ASC) Order by the utime column + * @method CcBlockQuery orderByDbCreatorId($order = Criteria::ASC) Order by the creator_id column + * @method CcBlockQuery orderByDbDescription($order = Criteria::ASC) Order by the description column + * @method CcBlockQuery orderByDbLength($order = Criteria::ASC) Order by the length column + * @method CcBlockQuery orderByDbType($order = Criteria::ASC) Order by the type column * - * @method CcBlockQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcBlockQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcBlockQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcBlockQuery groupByDbId() Group by the id column + * @method CcBlockQuery groupByDbName() Group by the name column + * @method CcBlockQuery groupByDbMtime() Group by the mtime column + * @method CcBlockQuery groupByDbUtime() Group by the utime column + * @method CcBlockQuery groupByDbCreatorId() Group by the creator_id column + * @method CcBlockQuery groupByDbDescription() Group by the description column + * @method CcBlockQuery groupByDbLength() Group by the length column + * @method CcBlockQuery groupByDbType() Group by the type column * - * @method CcBlockQuery leftJoinCcSubjs($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSubjs relation - * @method CcBlockQuery rightJoinCcSubjs($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSubjs relation - * @method CcBlockQuery innerJoinCcSubjs($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSubjs relation + * @method CcBlockQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcBlockQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcBlockQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcBlockQuery leftJoinCcPlaylistcontents($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPlaylistcontents relation - * @method CcBlockQuery rightJoinCcPlaylistcontents($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPlaylistcontents relation - * @method CcBlockQuery innerJoinCcPlaylistcontents($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPlaylistcontents relation + * @method CcBlockQuery leftJoinCcSubjs($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSubjs relation + * @method CcBlockQuery rightJoinCcSubjs($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSubjs relation + * @method CcBlockQuery innerJoinCcSubjs($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSubjs relation * - * @method CcBlockQuery leftJoinCcBlockcontents($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcBlockcontents relation - * @method CcBlockQuery rightJoinCcBlockcontents($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcBlockcontents relation - * @method CcBlockQuery innerJoinCcBlockcontents($relationAlias = '') Adds a INNER JOIN clause to the query using the CcBlockcontents relation + * @method CcBlockQuery leftJoinCcPlaylistcontents($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcPlaylistcontents relation + * @method CcBlockQuery rightJoinCcPlaylistcontents($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcPlaylistcontents relation + * @method CcBlockQuery innerJoinCcPlaylistcontents($relationAlias = null) Adds a INNER JOIN clause to the query using the CcPlaylistcontents relation * - * @method CcBlockQuery leftJoinCcBlockcriteria($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcBlockcriteria relation - * @method CcBlockQuery rightJoinCcBlockcriteria($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcBlockcriteria relation - * @method CcBlockQuery innerJoinCcBlockcriteria($relationAlias = '') Adds a INNER JOIN clause to the query using the CcBlockcriteria relation + * @method CcBlockQuery leftJoinCcBlockcontents($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcBlockcontents relation + * @method CcBlockQuery rightJoinCcBlockcontents($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcBlockcontents relation + * @method CcBlockQuery innerJoinCcBlockcontents($relationAlias = null) Adds a INNER JOIN clause to the query using the CcBlockcontents relation * - * @method CcBlock findOne(PropelPDO $con = null) Return the first CcBlock matching the query - * @method CcBlock findOneOrCreate(PropelPDO $con = null) Return the first CcBlock matching the query, or a new CcBlock object populated from the query conditions when no match is found + * @method CcBlockQuery leftJoinCcBlockcriteria($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcBlockcriteria relation + * @method CcBlockQuery rightJoinCcBlockcriteria($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcBlockcriteria relation + * @method CcBlockQuery innerJoinCcBlockcriteria($relationAlias = null) Adds a INNER JOIN clause to the query using the CcBlockcriteria relation * - * @method CcBlock findOneByDbId(int $id) Return the first CcBlock filtered by the id column - * @method CcBlock findOneByDbName(string $name) Return the first CcBlock filtered by the name column - * @method CcBlock findOneByDbMtime(string $mtime) Return the first CcBlock filtered by the mtime column - * @method CcBlock findOneByDbUtime(string $utime) Return the first CcBlock filtered by the utime column - * @method CcBlock findOneByDbCreatorId(int $creator_id) Return the first CcBlock filtered by the creator_id column - * @method CcBlock findOneByDbDescription(string $description) Return the first CcBlock filtered by the description column - * @method CcBlock findOneByDbLength(string $length) Return the first CcBlock filtered by the length column - * @method CcBlock findOneByDbType(string $type) Return the first CcBlock filtered by the type column + * @method CcBlock findOne(PropelPDO $con = null) Return the first CcBlock matching the query + * @method CcBlock findOneOrCreate(PropelPDO $con = null) Return the first CcBlock matching the query, or a new CcBlock object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcBlock objects filtered by the id column - * @method array findByDbName(string $name) Return CcBlock objects filtered by the name column - * @method array findByDbMtime(string $mtime) Return CcBlock objects filtered by the mtime column - * @method array findByDbUtime(string $utime) Return CcBlock objects filtered by the utime column - * @method array findByDbCreatorId(int $creator_id) Return CcBlock objects filtered by the creator_id column - * @method array findByDbDescription(string $description) Return CcBlock objects filtered by the description column - * @method array findByDbLength(string $length) Return CcBlock objects filtered by the length column - * @method array findByDbType(string $type) Return CcBlock objects filtered by the type column + * @method CcBlock findOneByDbName(string $name) Return the first CcBlock filtered by the name column + * @method CcBlock findOneByDbMtime(string $mtime) Return the first CcBlock filtered by the mtime column + * @method CcBlock findOneByDbUtime(string $utime) Return the first CcBlock filtered by the utime column + * @method CcBlock findOneByDbCreatorId(int $creator_id) Return the first CcBlock filtered by the creator_id column + * @method CcBlock findOneByDbDescription(string $description) Return the first CcBlock filtered by the description column + * @method CcBlock findOneByDbLength(string $length) Return the first CcBlock filtered by the length column + * @method CcBlock findOneByDbType(string $type) Return the first CcBlock filtered by the type column + * + * @method array findByDbId(int $id) Return CcBlock objects filtered by the id column + * @method array findByDbName(string $name) Return CcBlock objects filtered by the name column + * @method array findByDbMtime(string $mtime) Return CcBlock objects filtered by the mtime column + * @method array findByDbUtime(string $utime) Return CcBlock objects filtered by the utime column + * @method array findByDbCreatorId(int $creator_id) Return CcBlock objects filtered by the creator_id column + * @method array findByDbDescription(string $description) Return CcBlock objects filtered by the description column + * @method array findByDbLength(string $length) Return CcBlock objects filtered by the length column + * @method array findByDbType(string $type) Return CcBlock objects filtered by the type column * * @package propel.generator.airtime.om */ abstract class BaseCcBlockQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcBlockQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcBlock'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcBlockQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcBlockQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcBlockQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcBlockQuery) { + return $criteria; + } + $query = new CcBlockQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcBlock|CcBlock[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcBlockPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcBlockPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcBlock A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcBlock A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "name", "mtime", "utime", "creator_id", "description", "length", "type" FROM "cc_block" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcBlock(); + $obj->hydrate($row); + CcBlockPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcBlock|CcBlock[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcBlock[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcBlockQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcBlockPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcBlockQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcBlockPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcBlockPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcBlockPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcBlockPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the name column + * + * Example usage: + * + * $query->filterByDbName('fooValue'); // WHERE name = 'fooValue' + * $query->filterByDbName('%fooValue%'); // WHERE name LIKE '%fooValue%' + * + * + * @param string $dbName 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 CcBlockQuery The current query, for fluid interface + */ + public function filterByDbName($dbName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbName)) { + $dbName = str_replace('*', '%', $dbName); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcBlockPeer::NAME, $dbName, $comparison); + } + + /** + * Filter the query on the mtime column + * + * Example usage: + * + * $query->filterByDbMtime('2011-03-14'); // WHERE mtime = '2011-03-14' + * $query->filterByDbMtime('now'); // WHERE mtime = '2011-03-14' + * $query->filterByDbMtime(array('max' => 'yesterday')); // WHERE mtime < '2011-03-13' + * + * + * @param mixed $dbMtime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockQuery The current query, for fluid interface + */ + public function filterByDbMtime($dbMtime = null, $comparison = null) + { + if (is_array($dbMtime)) { + $useMinMax = false; + if (isset($dbMtime['min'])) { + $this->addUsingAlias(CcBlockPeer::MTIME, $dbMtime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbMtime['max'])) { + $this->addUsingAlias(CcBlockPeer::MTIME, $dbMtime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcBlockPeer::MTIME, $dbMtime, $comparison); + } + + /** + * Filter the query on the utime column + * + * Example usage: + * + * $query->filterByDbUtime('2011-03-14'); // WHERE utime = '2011-03-14' + * $query->filterByDbUtime('now'); // WHERE utime = '2011-03-14' + * $query->filterByDbUtime(array('max' => 'yesterday')); // WHERE utime < '2011-03-13' + * + * + * @param mixed $dbUtime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockQuery The current query, for fluid interface + */ + public function filterByDbUtime($dbUtime = null, $comparison = null) + { + if (is_array($dbUtime)) { + $useMinMax = false; + if (isset($dbUtime['min'])) { + $this->addUsingAlias(CcBlockPeer::UTIME, $dbUtime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbUtime['max'])) { + $this->addUsingAlias(CcBlockPeer::UTIME, $dbUtime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcBlockPeer::UTIME, $dbUtime, $comparison); + } + + /** + * Filter the query on the creator_id column + * + * Example usage: + * + * $query->filterByDbCreatorId(1234); // WHERE creator_id = 1234 + * $query->filterByDbCreatorId(array(12, 34)); // WHERE creator_id IN (12, 34) + * $query->filterByDbCreatorId(array('min' => 12)); // WHERE creator_id >= 12 + * $query->filterByDbCreatorId(array('max' => 12)); // WHERE creator_id <= 12 + * + * + * @see filterByCcSubjs() + * + * @param mixed $dbCreatorId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockQuery The current query, for fluid interface + */ + public function filterByDbCreatorId($dbCreatorId = null, $comparison = null) + { + if (is_array($dbCreatorId)) { + $useMinMax = false; + if (isset($dbCreatorId['min'])) { + $this->addUsingAlias(CcBlockPeer::CREATOR_ID, $dbCreatorId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbCreatorId['max'])) { + $this->addUsingAlias(CcBlockPeer::CREATOR_ID, $dbCreatorId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcBlockPeer::CREATOR_ID, $dbCreatorId, $comparison); + } + + /** + * Filter the query on the description column + * + * Example usage: + * + * $query->filterByDbDescription('fooValue'); // WHERE description = 'fooValue' + * $query->filterByDbDescription('%fooValue%'); // WHERE description LIKE '%fooValue%' + * + * + * @param string $dbDescription 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 CcBlockQuery The current query, for fluid interface + */ + public function filterByDbDescription($dbDescription = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbDescription)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbDescription)) { + $dbDescription = str_replace('*', '%', $dbDescription); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcBlockPeer::DESCRIPTION, $dbDescription, $comparison); + } + + /** + * Filter the query on the length column + * + * Example usage: + * + * $query->filterByDbLength('fooValue'); // WHERE length = 'fooValue' + * $query->filterByDbLength('%fooValue%'); // WHERE length LIKE '%fooValue%' + * + * + * @param string $dbLength 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 CcBlockQuery The current query, for fluid interface + */ + public function filterByDbLength($dbLength = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLength)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLength)) { + $dbLength = str_replace('*', '%', $dbLength); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcBlockPeer::LENGTH, $dbLength, $comparison); + } + + /** + * Filter the query on the type column + * + * Example usage: + * + * $query->filterByDbType('fooValue'); // WHERE type = 'fooValue' + * $query->filterByDbType('%fooValue%'); // WHERE type LIKE '%fooValue%' + * + * + * @param string $dbType 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 CcBlockQuery The current query, for fluid interface + */ + public function filterByDbType($dbType = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbType)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbType)) { + $dbType = str_replace('*', '%', $dbType); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcBlockPeer::TYPE, $dbType, $comparison); + } + + /** + * Filter the query by a related CcSubjs object + * + * @param CcSubjs|PropelObjectCollection $ccSubjs The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcSubjs($ccSubjs, $comparison = null) + { + if ($ccSubjs instanceof CcSubjs) { + return $this + ->addUsingAlias(CcBlockPeer::CREATOR_ID, $ccSubjs->getDbId(), $comparison); + } elseif ($ccSubjs instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcBlockPeer::CREATOR_ID, $ccSubjs->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcSubjs() only accepts arguments of type CcSubjs or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcSubjs relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcBlockQuery The current query, for fluid interface + */ + public function joinCcSubjs($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcSubjs'); + + // 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, 'CcSubjs'); + } + + return $this; + } + + /** + * Use the CcSubjs relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query + */ + public function useCcSubjsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcSubjs($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); + } + + /** + * Filter the query by a related CcPlaylistcontents object + * + * @param CcPlaylistcontents|PropelObjectCollection $ccPlaylistcontents the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcPlaylistcontents($ccPlaylistcontents, $comparison = null) + { + if ($ccPlaylistcontents instanceof CcPlaylistcontents) { + return $this + ->addUsingAlias(CcBlockPeer::ID, $ccPlaylistcontents->getDbBlockId(), $comparison); + } elseif ($ccPlaylistcontents instanceof PropelObjectCollection) { + return $this + ->useCcPlaylistcontentsQuery() + ->filterByPrimaryKeys($ccPlaylistcontents->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcPlaylistcontents() only accepts arguments of type CcPlaylistcontents or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcPlaylistcontents relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcBlockQuery The current query, for fluid interface + */ + public function joinCcPlaylistcontents($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcPlaylistcontents'); + + // 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, 'CcPlaylistcontents'); + } + + return $this; + } + + /** + * Use the CcPlaylistcontents relation CcPlaylistcontents 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 CcPlaylistcontentsQuery A secondary query class using the current class as primary query + */ + public function useCcPlaylistcontentsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcPlaylistcontents($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcPlaylistcontents', 'CcPlaylistcontentsQuery'); + } + + /** + * Filter the query by a related CcBlockcontents object + * + * @param CcBlockcontents|PropelObjectCollection $ccBlockcontents the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcBlockcontents($ccBlockcontents, $comparison = null) + { + if ($ccBlockcontents instanceof CcBlockcontents) { + return $this + ->addUsingAlias(CcBlockPeer::ID, $ccBlockcontents->getDbBlockId(), $comparison); + } elseif ($ccBlockcontents instanceof PropelObjectCollection) { + return $this + ->useCcBlockcontentsQuery() + ->filterByPrimaryKeys($ccBlockcontents->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcBlockcontents() only accepts arguments of type CcBlockcontents or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcBlockcontents relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcBlockQuery The current query, for fluid interface + */ + public function joinCcBlockcontents($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcBlockcontents'); + + // 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, 'CcBlockcontents'); + } + + return $this; + } + + /** + * Use the CcBlockcontents relation CcBlockcontents 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 CcBlockcontentsQuery A secondary query class using the current class as primary query + */ + public function useCcBlockcontentsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcBlockcontents($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcBlockcontents', 'CcBlockcontentsQuery'); + } + + /** + * Filter the query by a related CcBlockcriteria object + * + * @param CcBlockcriteria|PropelObjectCollection $ccBlockcriteria the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcBlockcriteria($ccBlockcriteria, $comparison = null) + { + if ($ccBlockcriteria instanceof CcBlockcriteria) { + return $this + ->addUsingAlias(CcBlockPeer::ID, $ccBlockcriteria->getDbBlockId(), $comparison); + } elseif ($ccBlockcriteria instanceof PropelObjectCollection) { + return $this + ->useCcBlockcriteriaQuery() + ->filterByPrimaryKeys($ccBlockcriteria->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcBlockcriteria() only accepts arguments of type CcBlockcriteria or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcBlockcriteria relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcBlockQuery The current query, for fluid interface + */ + public function joinCcBlockcriteria($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcBlockcriteria'); + + // 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, 'CcBlockcriteria'); + } + + return $this; + } + + /** + * Use the CcBlockcriteria relation CcBlockcriteria 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 CcBlockcriteriaQuery A secondary query class using the current class as primary query + */ + public function useCcBlockcriteriaQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcBlockcriteria($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcBlockcriteria', 'CcBlockcriteriaQuery'); + } + + /** + * Exclude object from result + * + * @param CcBlock $ccBlock Object to remove from the list of results + * + * @return CcBlockQuery The current query, for fluid interface + */ + public function prune($ccBlock = null) + { + if ($ccBlock) { + $this->addUsingAlias(CcBlockPeer::ID, $ccBlock->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcBlockQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcBlock', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcBlockQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcBlockQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcBlockQuery) { - return $criteria; - } - $query = new CcBlockQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcBlock|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcBlockPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcBlockPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcBlockPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcBlockPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the name column - * - * @param string $dbName 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 CcBlockQuery The current query, for fluid interface - */ - public function filterByDbName($dbName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbName)) { - $dbName = str_replace('*', '%', $dbName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcBlockPeer::NAME, $dbName, $comparison); - } - - /** - * Filter the query on the mtime column - * - * @param string|array $dbMtime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function filterByDbMtime($dbMtime = null, $comparison = null) - { - if (is_array($dbMtime)) { - $useMinMax = false; - if (isset($dbMtime['min'])) { - $this->addUsingAlias(CcBlockPeer::MTIME, $dbMtime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbMtime['max'])) { - $this->addUsingAlias(CcBlockPeer::MTIME, $dbMtime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcBlockPeer::MTIME, $dbMtime, $comparison); - } - - /** - * Filter the query on the utime column - * - * @param string|array $dbUtime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function filterByDbUtime($dbUtime = null, $comparison = null) - { - if (is_array($dbUtime)) { - $useMinMax = false; - if (isset($dbUtime['min'])) { - $this->addUsingAlias(CcBlockPeer::UTIME, $dbUtime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbUtime['max'])) { - $this->addUsingAlias(CcBlockPeer::UTIME, $dbUtime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcBlockPeer::UTIME, $dbUtime, $comparison); - } - - /** - * Filter the query on the creator_id column - * - * @param int|array $dbCreatorId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function filterByDbCreatorId($dbCreatorId = null, $comparison = null) - { - if (is_array($dbCreatorId)) { - $useMinMax = false; - if (isset($dbCreatorId['min'])) { - $this->addUsingAlias(CcBlockPeer::CREATOR_ID, $dbCreatorId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbCreatorId['max'])) { - $this->addUsingAlias(CcBlockPeer::CREATOR_ID, $dbCreatorId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcBlockPeer::CREATOR_ID, $dbCreatorId, $comparison); - } - - /** - * Filter the query on the description column - * - * @param string $dbDescription 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 CcBlockQuery The current query, for fluid interface - */ - public function filterByDbDescription($dbDescription = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbDescription)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbDescription)) { - $dbDescription = str_replace('*', '%', $dbDescription); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcBlockPeer::DESCRIPTION, $dbDescription, $comparison); - } - - /** - * Filter the query on the length column - * - * @param string $dbLength 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 CcBlockQuery The current query, for fluid interface - */ - public function filterByDbLength($dbLength = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLength)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLength)) { - $dbLength = str_replace('*', '%', $dbLength); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcBlockPeer::LENGTH, $dbLength, $comparison); - } - - /** - * Filter the query on the type column - * - * @param string $dbType 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 CcBlockQuery The current query, for fluid interface - */ - public function filterByDbType($dbType = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbType)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbType)) { - $dbType = str_replace('*', '%', $dbType); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcBlockPeer::TYPE, $dbType, $comparison); - } - - /** - * Filter the query by a related CcSubjs object - * - * @param CcSubjs $ccSubjs the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function filterByCcSubjs($ccSubjs, $comparison = null) - { - return $this - ->addUsingAlias(CcBlockPeer::CREATOR_ID, $ccSubjs->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcSubjs relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function joinCcSubjs($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcSubjs'); - - // 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, 'CcSubjs'); - } - - return $this; - } - - /** - * Use the CcSubjs relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query - */ - public function useCcSubjsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcSubjs($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); - } - - /** - * Filter the query by a related CcPlaylistcontents object - * - * @param CcPlaylistcontents $ccPlaylistcontents the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function filterByCcPlaylistcontents($ccPlaylistcontents, $comparison = null) - { - return $this - ->addUsingAlias(CcBlockPeer::ID, $ccPlaylistcontents->getDbBlockId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcPlaylistcontents relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function joinCcPlaylistcontents($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcPlaylistcontents'); - - // 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, 'CcPlaylistcontents'); - } - - return $this; - } - - /** - * Use the CcPlaylistcontents relation CcPlaylistcontents 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 CcPlaylistcontentsQuery A secondary query class using the current class as primary query - */ - public function useCcPlaylistcontentsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcPlaylistcontents($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcPlaylistcontents', 'CcPlaylistcontentsQuery'); - } - - /** - * Filter the query by a related CcBlockcontents object - * - * @param CcBlockcontents $ccBlockcontents the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function filterByCcBlockcontents($ccBlockcontents, $comparison = null) - { - return $this - ->addUsingAlias(CcBlockPeer::ID, $ccBlockcontents->getDbBlockId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcBlockcontents relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function joinCcBlockcontents($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcBlockcontents'); - - // 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, 'CcBlockcontents'); - } - - return $this; - } - - /** - * Use the CcBlockcontents relation CcBlockcontents 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 CcBlockcontentsQuery A secondary query class using the current class as primary query - */ - public function useCcBlockcontentsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcBlockcontents($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcBlockcontents', 'CcBlockcontentsQuery'); - } - - /** - * Filter the query by a related CcBlockcriteria object - * - * @param CcBlockcriteria $ccBlockcriteria the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function filterByCcBlockcriteria($ccBlockcriteria, $comparison = null) - { - return $this - ->addUsingAlias(CcBlockPeer::ID, $ccBlockcriteria->getDbBlockId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcBlockcriteria relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function joinCcBlockcriteria($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcBlockcriteria'); - - // 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, 'CcBlockcriteria'); - } - - return $this; - } - - /** - * Use the CcBlockcriteria relation CcBlockcriteria 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 CcBlockcriteriaQuery A secondary query class using the current class as primary query - */ - public function useCcBlockcriteriaQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcBlockcriteria($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcBlockcriteria', 'CcBlockcriteriaQuery'); - } - - /** - * Exclude object from result - * - * @param CcBlock $ccBlock Object to remove from the list of results - * - * @return CcBlockQuery The current query, for fluid interface - */ - public function prune($ccBlock = null) - { - if ($ccBlock) { - $this->addUsingAlias(CcBlockPeer::ID, $ccBlock->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcBlockQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcBlockcontents.php b/airtime_mvc/application/models/airtime/om/BaseCcBlockcontents.php index f2e6fb6d10..ec32bc9c82 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcBlockcontents.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcBlockcontents.php @@ -4,1459 +4,1611 @@ /** * Base class that represents a row from the 'cc_blockcontents' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcBlockcontents extends BaseObject implements Persistent +abstract class BaseCcBlockcontents extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcBlockcontentsPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcBlockcontentsPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the block_id field. - * @var int - */ - protected $block_id; - - /** - * The value for the file_id field. - * @var int - */ - protected $file_id; - - /** - * The value for the position field. - * @var int - */ - protected $position; - - /** - * The value for the trackoffset field. - * Note: this column has a database default value of: 0 - * @var double - */ - protected $trackoffset; - - /** - * The value for the cliplength field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $cliplength; - - /** - * The value for the cuein field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $cuein; - - /** - * The value for the cueout field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $cueout; - - /** - * The value for the fadein field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $fadein; - - /** - * The value for the fadeout field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $fadeout; - - /** - * @var CcFiles - */ - protected $aCcFiles; - - /** - * @var CcBlock - */ - protected $aCcBlock; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - // aggregate_column_relation behavior - protected $oldCcBlock; - - /** - * 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->trackoffset = 0; - $this->cliplength = '00:00:00'; - $this->cuein = '00:00:00'; - $this->cueout = '00:00:00'; - $this->fadein = '00:00:00'; - $this->fadeout = '00:00:00'; - } - - /** - * Initializes internal state of BaseCcBlockcontents object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [block_id] column value. - * - * @return int - */ - public function getDbBlockId() - { - return $this->block_id; - } - - /** - * Get the [file_id] column value. - * - * @return int - */ - public function getDbFileId() - { - return $this->file_id; - } - - /** - * Get the [position] column value. - * - * @return int - */ - public function getDbPosition() - { - return $this->position; - } - - /** - * Get the [trackoffset] column value. - * - * @return double - */ - public function getDbTrackOffset() - { - return $this->trackoffset; - } - - /** - * Get the [cliplength] column value. - * - * @return string - */ - public function getDbCliplength() - { - return $this->cliplength; - } - - /** - * Get the [cuein] column value. - * - * @return string - */ - public function getDbCuein() - { - return $this->cuein; - } - - /** - * Get the [cueout] column value. - * - * @return string - */ - public function getDbCueout() - { - return $this->cueout; - } - - /** - * Get the [optionally formatted] temporal [fadein] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbFadein($format = '%X') - { - if ($this->fadein === null) { - return null; - } - - - - try { - $dt = new DateTime($this->fadein); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->fadein, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [fadeout] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbFadeout($format = '%X') - { - if ($this->fadeout === null) { - return null; - } - - - - try { - $dt = new DateTime($this->fadeout); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->fadeout, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcBlockcontents The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcBlockcontentsPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [block_id] column. - * - * @param int $v new value - * @return CcBlockcontents The current object (for fluent API support) - */ - public function setDbBlockId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->block_id !== $v) { - $this->block_id = $v; - $this->modifiedColumns[] = CcBlockcontentsPeer::BLOCK_ID; - } - - if ($this->aCcBlock !== null && $this->aCcBlock->getDbId() !== $v) { - $this->aCcBlock = null; - } - - return $this; - } // setDbBlockId() - - /** - * Set the value of [file_id] column. - * - * @param int $v new value - * @return CcBlockcontents The current object (for fluent API support) - */ - public function setDbFileId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->file_id !== $v) { - $this->file_id = $v; - $this->modifiedColumns[] = CcBlockcontentsPeer::FILE_ID; - } - - if ($this->aCcFiles !== null && $this->aCcFiles->getDbId() !== $v) { - $this->aCcFiles = null; - } - - return $this; - } // setDbFileId() - - /** - * Set the value of [position] column. - * - * @param int $v new value - * @return CcBlockcontents The current object (for fluent API support) - */ - public function setDbPosition($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->position !== $v) { - $this->position = $v; - $this->modifiedColumns[] = CcBlockcontentsPeer::POSITION; - } - - return $this; - } // setDbPosition() - - /** - * Set the value of [trackoffset] column. - * - * @param double $v new value - * @return CcBlockcontents The current object (for fluent API support) - */ - public function setDbTrackOffset($v) - { - if ($v !== null) { - $v = (double) $v; - } - - if ($this->trackoffset !== $v || $this->isNew()) { - $this->trackoffset = $v; - $this->modifiedColumns[] = CcBlockcontentsPeer::TRACKOFFSET; - } - - return $this; - } // setDbTrackOffset() - - /** - * Set the value of [cliplength] column. - * - * @param string $v new value - * @return CcBlockcontents The current object (for fluent API support) - */ - public function setDbCliplength($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->cliplength !== $v || $this->isNew()) { - $this->cliplength = $v; - $this->modifiedColumns[] = CcBlockcontentsPeer::CLIPLENGTH; - } - - return $this; - } // setDbCliplength() - - /** - * Set the value of [cuein] column. - * - * @param string $v new value - * @return CcBlockcontents The current object (for fluent API support) - */ - public function setDbCuein($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->cuein !== $v || $this->isNew()) { - $this->cuein = $v; - $this->modifiedColumns[] = CcBlockcontentsPeer::CUEIN; - } - - return $this; - } // setDbCuein() - - /** - * Set the value of [cueout] column. - * - * @param string $v new value - * @return CcBlockcontents The current object (for fluent API support) - */ - public function setDbCueout($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->cueout !== $v || $this->isNew()) { - $this->cueout = $v; - $this->modifiedColumns[] = CcBlockcontentsPeer::CUEOUT; - } - - return $this; - } // setDbCueout() - - /** - * Sets the value of [fadein] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcBlockcontents The current object (for fluent API support) - */ - public function setDbFadein($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->fadein !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->fadein !== null && $tmpDt = new DateTime($this->fadein)) ? $tmpDt->format('H:i:s') : null; - $newNorm = ($dt !== null) ? $dt->format('H:i:s') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - || ($dt->format('H:i:s') === '00:00:00') // or the entered value matches the default - ) - { - $this->fadein = ($dt ? $dt->format('H:i:s') : null); - $this->modifiedColumns[] = CcBlockcontentsPeer::FADEIN; - } - } // if either are not null - - return $this; - } // setDbFadein() - - /** - * Sets the value of [fadeout] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcBlockcontents The current object (for fluent API support) - */ - public function setDbFadeout($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->fadeout !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->fadeout !== null && $tmpDt = new DateTime($this->fadeout)) ? $tmpDt->format('H:i:s') : null; - $newNorm = ($dt !== null) ? $dt->format('H:i:s') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - || ($dt->format('H:i:s') === '00:00:00') // or the entered value matches the default - ) - { - $this->fadeout = ($dt ? $dt->format('H:i:s') : null); - $this->modifiedColumns[] = CcBlockcontentsPeer::FADEOUT; - } - } // if either are not null - - return $this; - } // setDbFadeout() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->trackoffset !== 0) { - return false; - } - - if ($this->cliplength !== '00:00:00') { - return false; - } - - if ($this->cuein !== '00:00:00') { - return false; - } - - if ($this->cueout !== '00:00:00') { - return false; - } - - if ($this->fadein !== '00:00:00') { - return false; - } - - if ($this->fadeout !== '00:00:00') { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->block_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; - $this->file_id = ($row[$startcol + 2] !== null) ? (int) $row[$startcol + 2] : null; - $this->position = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; - $this->trackoffset = ($row[$startcol + 4] !== null) ? (double) $row[$startcol + 4] : null; - $this->cliplength = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; - $this->cuein = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; - $this->cueout = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null; - $this->fadein = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; - $this->fadeout = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 10; // 10 = CcBlockcontentsPeer::NUM_COLUMNS - CcBlockcontentsPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcBlockcontents object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcBlock !== null && $this->block_id !== $this->aCcBlock->getDbId()) { - $this->aCcBlock = null; - } - if ($this->aCcFiles !== null && $this->file_id !== $this->aCcFiles->getDbId()) { - $this->aCcFiles = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcBlockcontentsPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcFiles = null; - $this->aCcBlock = null; - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcBlockcontentsQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - // aggregate_column_relation behavior - $this->updateRelatedCcBlock($con); - CcBlockcontentsPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcFiles !== null) { - if ($this->aCcFiles->isModified() || $this->aCcFiles->isNew()) { - $affectedRows += $this->aCcFiles->save($con); - } - $this->setCcFiles($this->aCcFiles); - } - - if ($this->aCcBlock !== null) { - if ($this->aCcBlock->isModified() || $this->aCcBlock->isNew()) { - $affectedRows += $this->aCcBlock->save($con); - } - $this->setCcBlock($this->aCcBlock); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcBlockcontentsPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcBlockcontentsPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcBlockcontentsPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcBlockcontentsPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcFiles !== null) { - if (!$this->aCcFiles->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcFiles->getValidationFailures()); - } - } - - if ($this->aCcBlock !== null) { - if (!$this->aCcBlock->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcBlock->getValidationFailures()); - } - } - - - if (($retval = CcBlockcontentsPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcBlockcontentsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbBlockId(); - break; - case 2: - return $this->getDbFileId(); - break; - case 3: - return $this->getDbPosition(); - break; - case 4: - return $this->getDbTrackOffset(); - break; - case 5: - return $this->getDbCliplength(); - break; - case 6: - return $this->getDbCuein(); - break; - case 7: - return $this->getDbCueout(); - break; - case 8: - return $this->getDbFadein(); - break; - case 9: - return $this->getDbFadeout(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcBlockcontentsPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbBlockId(), - $keys[2] => $this->getDbFileId(), - $keys[3] => $this->getDbPosition(), - $keys[4] => $this->getDbTrackOffset(), - $keys[5] => $this->getDbCliplength(), - $keys[6] => $this->getDbCuein(), - $keys[7] => $this->getDbCueout(), - $keys[8] => $this->getDbFadein(), - $keys[9] => $this->getDbFadeout(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcFiles) { - $result['CcFiles'] = $this->aCcFiles->toArray($keyType, $includeLazyLoadColumns, true); - } - if (null !== $this->aCcBlock) { - $result['CcBlock'] = $this->aCcBlock->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcBlockcontentsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbBlockId($value); - break; - case 2: - $this->setDbFileId($value); - break; - case 3: - $this->setDbPosition($value); - break; - case 4: - $this->setDbTrackOffset($value); - break; - case 5: - $this->setDbCliplength($value); - break; - case 6: - $this->setDbCuein($value); - break; - case 7: - $this->setDbCueout($value); - break; - case 8: - $this->setDbFadein($value); - break; - case 9: - $this->setDbFadeout($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcBlockcontentsPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbBlockId($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbFileId($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbPosition($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbTrackOffset($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setDbCliplength($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setDbCuein($arr[$keys[6]]); - if (array_key_exists($keys[7], $arr)) $this->setDbCueout($arr[$keys[7]]); - if (array_key_exists($keys[8], $arr)) $this->setDbFadein($arr[$keys[8]]); - if (array_key_exists($keys[9], $arr)) $this->setDbFadeout($arr[$keys[9]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcBlockcontentsPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcBlockcontentsPeer::ID)) $criteria->add(CcBlockcontentsPeer::ID, $this->id); - if ($this->isColumnModified(CcBlockcontentsPeer::BLOCK_ID)) $criteria->add(CcBlockcontentsPeer::BLOCK_ID, $this->block_id); - if ($this->isColumnModified(CcBlockcontentsPeer::FILE_ID)) $criteria->add(CcBlockcontentsPeer::FILE_ID, $this->file_id); - if ($this->isColumnModified(CcBlockcontentsPeer::POSITION)) $criteria->add(CcBlockcontentsPeer::POSITION, $this->position); - if ($this->isColumnModified(CcBlockcontentsPeer::TRACKOFFSET)) $criteria->add(CcBlockcontentsPeer::TRACKOFFSET, $this->trackoffset); - if ($this->isColumnModified(CcBlockcontentsPeer::CLIPLENGTH)) $criteria->add(CcBlockcontentsPeer::CLIPLENGTH, $this->cliplength); - if ($this->isColumnModified(CcBlockcontentsPeer::CUEIN)) $criteria->add(CcBlockcontentsPeer::CUEIN, $this->cuein); - if ($this->isColumnModified(CcBlockcontentsPeer::CUEOUT)) $criteria->add(CcBlockcontentsPeer::CUEOUT, $this->cueout); - if ($this->isColumnModified(CcBlockcontentsPeer::FADEIN)) $criteria->add(CcBlockcontentsPeer::FADEIN, $this->fadein); - if ($this->isColumnModified(CcBlockcontentsPeer::FADEOUT)) $criteria->add(CcBlockcontentsPeer::FADEOUT, $this->fadeout); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcBlockcontentsPeer::DATABASE_NAME); - $criteria->add(CcBlockcontentsPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcBlockcontents (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbBlockId($this->block_id); - $copyObj->setDbFileId($this->file_id); - $copyObj->setDbPosition($this->position); - $copyObj->setDbTrackOffset($this->trackoffset); - $copyObj->setDbCliplength($this->cliplength); - $copyObj->setDbCuein($this->cuein); - $copyObj->setDbCueout($this->cueout); - $copyObj->setDbFadein($this->fadein); - $copyObj->setDbFadeout($this->fadeout); - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcBlockcontents Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcBlockcontentsPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcBlockcontentsPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcFiles object. - * - * @param CcFiles $v - * @return CcBlockcontents The current object (for fluent API support) - * @throws PropelException - */ - public function setCcFiles(CcFiles $v = null) - { - if ($v === null) { - $this->setDbFileId(NULL); - } else { - $this->setDbFileId($v->getDbId()); - } - - $this->aCcFiles = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcFiles object, it will not be re-added. - if ($v !== null) { - $v->addCcBlockcontents($this); - } - - return $this; - } - - - /** - * Get the associated CcFiles object - * - * @param PropelPDO Optional Connection object. - * @return CcFiles The associated CcFiles object. - * @throws PropelException - */ - public function getCcFiles(PropelPDO $con = null) - { - if ($this->aCcFiles === null && ($this->file_id !== null)) { - $this->aCcFiles = CcFilesQuery::create()->findPk($this->file_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcFiles->addCcBlockcontentss($this); - */ - } - return $this->aCcFiles; - } - - /** - * Declares an association between this object and a CcBlock object. - * - * @param CcBlock $v - * @return CcBlockcontents The current object (for fluent API support) - * @throws PropelException - */ - public function setCcBlock(CcBlock $v = null) - { - // aggregate_column_relation behavior - if (null !== $this->aCcBlock && $v !== $this->aCcBlock) { - $this->oldCcBlock = $this->aCcBlock; - } - if ($v === null) { - $this->setDbBlockId(NULL); - } else { - $this->setDbBlockId($v->getDbId()); - } - - $this->aCcBlock = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcBlock object, it will not be re-added. - if ($v !== null) { - $v->addCcBlockcontents($this); - } - - return $this; - } - - - /** - * Get the associated CcBlock object - * - * @param PropelPDO Optional Connection object. - * @return CcBlock The associated CcBlock object. - * @throws PropelException - */ - public function getCcBlock(PropelPDO $con = null) - { - if ($this->aCcBlock === null && ($this->block_id !== null)) { - $this->aCcBlock = CcBlockQuery::create()->findPk($this->block_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcBlock->addCcBlockcontentss($this); - */ - } - return $this->aCcBlock; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->block_id = null; - $this->file_id = null; - $this->position = null; - $this->trackoffset = null; - $this->cliplength = null; - $this->cuein = null; - $this->cueout = null; - $this->fadein = null; - $this->fadeout = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - $this->aCcFiles = null; - $this->aCcBlock = null; - } - - // aggregate_column_relation behavior - - /** - * Update the aggregate column in the related CcBlock object - * - * @param PropelPDO $con A connection object - */ - protected function updateRelatedCcBlock(PropelPDO $con) - { - if ($ccBlock = $this->getCcBlock()) { - $ccBlock->updateDbLength($con); - } - if ($this->oldCcBlock) { - $this->oldCcBlock->updateDbLength($con); - $this->oldCcBlock = null; - } - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcBlockcontents + /** + * Peer class name + */ + const PEER = 'CcBlockcontentsPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcBlockcontentsPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the block_id field. + * @var int + */ + protected $block_id; + + /** + * The value for the file_id field. + * @var int + */ + protected $file_id; + + /** + * The value for the position field. + * @var int + */ + protected $position; + + /** + * The value for the trackoffset field. + * Note: this column has a database default value of: 0 + * @var double + */ + protected $trackoffset; + + /** + * The value for the cliplength field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $cliplength; + + /** + * The value for the cuein field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $cuein; + + /** + * The value for the cueout field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $cueout; + + /** + * The value for the fadein field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $fadein; + + /** + * The value for the fadeout field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $fadeout; + + /** + * @var CcFiles + */ + protected $aCcFiles; + + /** + * @var CcBlock + */ + protected $aCcBlock; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + // aggregate_column_relation behavior + protected $oldCcBlock; + + /** + * 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->trackoffset = 0; + $this->cliplength = '00:00:00'; + $this->cuein = '00:00:00'; + $this->cueout = '00:00:00'; + $this->fadein = '00:00:00'; + $this->fadeout = '00:00:00'; + } + + /** + * Initializes internal state of BaseCcBlockcontents object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [block_id] column value. + * + * @return int + */ + public function getDbBlockId() + { + + return $this->block_id; + } + + /** + * Get the [file_id] column value. + * + * @return int + */ + public function getDbFileId() + { + + return $this->file_id; + } + + /** + * Get the [position] column value. + * + * @return int + */ + public function getDbPosition() + { + + return $this->position; + } + + /** + * Get the [trackoffset] column value. + * + * @return double + */ + public function getDbTrackOffset() + { + + return $this->trackoffset; + } + + /** + * Get the [cliplength] column value. + * + * @return string + */ + public function getDbCliplength() + { + + return $this->cliplength; + } + + /** + * Get the [cuein] column value. + * + * @return string + */ + public function getDbCuein() + { + + return $this->cuein; + } + + /** + * Get the [cueout] column value. + * + * @return string + */ + public function getDbCueout() + { + + return $this->cueout; + } + + /** + * Get the [optionally formatted] temporal [fadein] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbFadein($format = '%X') + { + if ($this->fadein === null) { + return null; + } + + + try { + $dt = new DateTime($this->fadein); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->fadein, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [fadeout] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbFadeout($format = '%X') + { + if ($this->fadeout === null) { + return null; + } + + + try { + $dt = new DateTime($this->fadeout); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->fadeout, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcBlockcontents The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcBlockcontentsPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [block_id] column. + * + * @param int $v new value + * @return CcBlockcontents The current object (for fluent API support) + */ + public function setDbBlockId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->block_id !== $v) { + $this->block_id = $v; + $this->modifiedColumns[] = CcBlockcontentsPeer::BLOCK_ID; + } + + if ($this->aCcBlock !== null && $this->aCcBlock->getDbId() !== $v) { + $this->aCcBlock = null; + } + + + return $this; + } // setDbBlockId() + + /** + * Set the value of [file_id] column. + * + * @param int $v new value + * @return CcBlockcontents The current object (for fluent API support) + */ + public function setDbFileId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->file_id !== $v) { + $this->file_id = $v; + $this->modifiedColumns[] = CcBlockcontentsPeer::FILE_ID; + } + + if ($this->aCcFiles !== null && $this->aCcFiles->getDbId() !== $v) { + $this->aCcFiles = null; + } + + + return $this; + } // setDbFileId() + + /** + * Set the value of [position] column. + * + * @param int $v new value + * @return CcBlockcontents The current object (for fluent API support) + */ + public function setDbPosition($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->position !== $v) { + $this->position = $v; + $this->modifiedColumns[] = CcBlockcontentsPeer::POSITION; + } + + + return $this; + } // setDbPosition() + + /** + * Set the value of [trackoffset] column. + * + * @param double $v new value + * @return CcBlockcontents The current object (for fluent API support) + */ + public function setDbTrackOffset($v) + { + if ($v !== null && is_numeric($v)) { + $v = (double) $v; + } + + if ($this->trackoffset !== $v) { + $this->trackoffset = $v; + $this->modifiedColumns[] = CcBlockcontentsPeer::TRACKOFFSET; + } + + + return $this; + } // setDbTrackOffset() + + /** + * Set the value of [cliplength] column. + * + * @param string $v new value + * @return CcBlockcontents The current object (for fluent API support) + */ + public function setDbCliplength($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->cliplength !== $v) { + $this->cliplength = $v; + $this->modifiedColumns[] = CcBlockcontentsPeer::CLIPLENGTH; + } + + + return $this; + } // setDbCliplength() + + /** + * Set the value of [cuein] column. + * + * @param string $v new value + * @return CcBlockcontents The current object (for fluent API support) + */ + public function setDbCuein($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->cuein !== $v) { + $this->cuein = $v; + $this->modifiedColumns[] = CcBlockcontentsPeer::CUEIN; + } + + + return $this; + } // setDbCuein() + + /** + * Set the value of [cueout] column. + * + * @param string $v new value + * @return CcBlockcontents The current object (for fluent API support) + */ + public function setDbCueout($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->cueout !== $v) { + $this->cueout = $v; + $this->modifiedColumns[] = CcBlockcontentsPeer::CUEOUT; + } + + + return $this; + } // setDbCueout() + + /** + * Sets the value of [fadein] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcBlockcontents The current object (for fluent API support) + */ + public function setDbFadein($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->fadein !== null || $dt !== null) { + $currentDateAsString = ($this->fadein !== null && $tmpDt = new DateTime($this->fadein)) ? $tmpDt->format('H:i:s') : null; + $newDateAsString = $dt ? $dt->format('H:i:s') : null; + if ( ($currentDateAsString !== $newDateAsString) // normalized values don't match + || ($dt->format('H:i:s') === '00:00:00') // or the entered value matches the default + ) { + $this->fadein = $newDateAsString; + $this->modifiedColumns[] = CcBlockcontentsPeer::FADEIN; + } + } // if either are not null + + + return $this; + } // setDbFadein() + + /** + * Sets the value of [fadeout] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcBlockcontents The current object (for fluent API support) + */ + public function setDbFadeout($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->fadeout !== null || $dt !== null) { + $currentDateAsString = ($this->fadeout !== null && $tmpDt = new DateTime($this->fadeout)) ? $tmpDt->format('H:i:s') : null; + $newDateAsString = $dt ? $dt->format('H:i:s') : null; + if ( ($currentDateAsString !== $newDateAsString) // normalized values don't match + || ($dt->format('H:i:s') === '00:00:00') // or the entered value matches the default + ) { + $this->fadeout = $newDateAsString; + $this->modifiedColumns[] = CcBlockcontentsPeer::FADEOUT; + } + } // if either are not null + + + return $this; + } // setDbFadeout() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->trackoffset !== 0) { + return false; + } + + if ($this->cliplength !== '00:00:00') { + return false; + } + + if ($this->cuein !== '00:00:00') { + return false; + } + + if ($this->cueout !== '00:00:00') { + return false; + } + + if ($this->fadein !== '00:00:00') { + return false; + } + + if ($this->fadeout !== '00:00:00') { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->block_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; + $this->file_id = ($row[$startcol + 2] !== null) ? (int) $row[$startcol + 2] : null; + $this->position = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; + $this->trackoffset = ($row[$startcol + 4] !== null) ? (double) $row[$startcol + 4] : null; + $this->cliplength = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; + $this->cuein = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; + $this->cueout = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null; + $this->fadein = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; + $this->fadeout = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 10; // 10 = CcBlockcontentsPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcBlockcontents object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcBlock !== null && $this->block_id !== $this->aCcBlock->getDbId()) { + $this->aCcBlock = null; + } + if ($this->aCcFiles !== null && $this->file_id !== $this->aCcFiles->getDbId()) { + $this->aCcFiles = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcBlockcontentsPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcFiles = null; + $this->aCcBlock = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcBlockcontentsQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + // aggregate_column_relation behavior + $this->updateRelatedCcBlock($con); + CcBlockcontentsPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcFiles !== null) { + if ($this->aCcFiles->isModified() || $this->aCcFiles->isNew()) { + $affectedRows += $this->aCcFiles->save($con); + } + $this->setCcFiles($this->aCcFiles); + } + + if ($this->aCcBlock !== null) { + if ($this->aCcBlock->isModified() || $this->aCcBlock->isNew()) { + $affectedRows += $this->aCcBlock->save($con); + } + $this->setCcBlock($this->aCcBlock); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcBlockcontentsPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcBlockcontentsPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_blockcontents_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcBlockcontentsPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcBlockcontentsPeer::BLOCK_ID)) { + $modifiedColumns[':p' . $index++] = '"block_id"'; + } + if ($this->isColumnModified(CcBlockcontentsPeer::FILE_ID)) { + $modifiedColumns[':p' . $index++] = '"file_id"'; + } + if ($this->isColumnModified(CcBlockcontentsPeer::POSITION)) { + $modifiedColumns[':p' . $index++] = '"position"'; + } + if ($this->isColumnModified(CcBlockcontentsPeer::TRACKOFFSET)) { + $modifiedColumns[':p' . $index++] = '"trackoffset"'; + } + if ($this->isColumnModified(CcBlockcontentsPeer::CLIPLENGTH)) { + $modifiedColumns[':p' . $index++] = '"cliplength"'; + } + if ($this->isColumnModified(CcBlockcontentsPeer::CUEIN)) { + $modifiedColumns[':p' . $index++] = '"cuein"'; + } + if ($this->isColumnModified(CcBlockcontentsPeer::CUEOUT)) { + $modifiedColumns[':p' . $index++] = '"cueout"'; + } + if ($this->isColumnModified(CcBlockcontentsPeer::FADEIN)) { + $modifiedColumns[':p' . $index++] = '"fadein"'; + } + if ($this->isColumnModified(CcBlockcontentsPeer::FADEOUT)) { + $modifiedColumns[':p' . $index++] = '"fadeout"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_blockcontents" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"block_id"': + $stmt->bindValue($identifier, $this->block_id, PDO::PARAM_INT); + break; + case '"file_id"': + $stmt->bindValue($identifier, $this->file_id, PDO::PARAM_INT); + break; + case '"position"': + $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); + break; + case '"trackoffset"': + $stmt->bindValue($identifier, $this->trackoffset, PDO::PARAM_STR); + break; + case '"cliplength"': + $stmt->bindValue($identifier, $this->cliplength, PDO::PARAM_STR); + break; + case '"cuein"': + $stmt->bindValue($identifier, $this->cuein, PDO::PARAM_STR); + break; + case '"cueout"': + $stmt->bindValue($identifier, $this->cueout, PDO::PARAM_STR); + break; + case '"fadein"': + $stmt->bindValue($identifier, $this->fadein, PDO::PARAM_STR); + break; + case '"fadeout"': + $stmt->bindValue($identifier, $this->fadeout, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcFiles !== null) { + if (!$this->aCcFiles->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcFiles->getValidationFailures()); + } + } + + if ($this->aCcBlock !== null) { + if (!$this->aCcBlock->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcBlock->getValidationFailures()); + } + } + + + if (($retval = CcBlockcontentsPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcBlockcontentsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbBlockId(); + break; + case 2: + return $this->getDbFileId(); + break; + case 3: + return $this->getDbPosition(); + break; + case 4: + return $this->getDbTrackOffset(); + break; + case 5: + return $this->getDbCliplength(); + break; + case 6: + return $this->getDbCuein(); + break; + case 7: + return $this->getDbCueout(); + break; + case 8: + return $this->getDbFadein(); + break; + case 9: + return $this->getDbFadeout(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcBlockcontents'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcBlockcontents'][$this->getPrimaryKey()] = true; + $keys = CcBlockcontentsPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbBlockId(), + $keys[2] => $this->getDbFileId(), + $keys[3] => $this->getDbPosition(), + $keys[4] => $this->getDbTrackOffset(), + $keys[5] => $this->getDbCliplength(), + $keys[6] => $this->getDbCuein(), + $keys[7] => $this->getDbCueout(), + $keys[8] => $this->getDbFadein(), + $keys[9] => $this->getDbFadeout(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcFiles) { + $result['CcFiles'] = $this->aCcFiles->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aCcBlock) { + $result['CcBlock'] = $this->aCcBlock->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcBlockcontentsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbBlockId($value); + break; + case 2: + $this->setDbFileId($value); + break; + case 3: + $this->setDbPosition($value); + break; + case 4: + $this->setDbTrackOffset($value); + break; + case 5: + $this->setDbCliplength($value); + break; + case 6: + $this->setDbCuein($value); + break; + case 7: + $this->setDbCueout($value); + break; + case 8: + $this->setDbFadein($value); + break; + case 9: + $this->setDbFadeout($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcBlockcontentsPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbBlockId($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbFileId($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbPosition($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbTrackOffset($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDbCliplength($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setDbCuein($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setDbCueout($arr[$keys[7]]); + if (array_key_exists($keys[8], $arr)) $this->setDbFadein($arr[$keys[8]]); + if (array_key_exists($keys[9], $arr)) $this->setDbFadeout($arr[$keys[9]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcBlockcontentsPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcBlockcontentsPeer::ID)) $criteria->add(CcBlockcontentsPeer::ID, $this->id); + if ($this->isColumnModified(CcBlockcontentsPeer::BLOCK_ID)) $criteria->add(CcBlockcontentsPeer::BLOCK_ID, $this->block_id); + if ($this->isColumnModified(CcBlockcontentsPeer::FILE_ID)) $criteria->add(CcBlockcontentsPeer::FILE_ID, $this->file_id); + if ($this->isColumnModified(CcBlockcontentsPeer::POSITION)) $criteria->add(CcBlockcontentsPeer::POSITION, $this->position); + if ($this->isColumnModified(CcBlockcontentsPeer::TRACKOFFSET)) $criteria->add(CcBlockcontentsPeer::TRACKOFFSET, $this->trackoffset); + if ($this->isColumnModified(CcBlockcontentsPeer::CLIPLENGTH)) $criteria->add(CcBlockcontentsPeer::CLIPLENGTH, $this->cliplength); + if ($this->isColumnModified(CcBlockcontentsPeer::CUEIN)) $criteria->add(CcBlockcontentsPeer::CUEIN, $this->cuein); + if ($this->isColumnModified(CcBlockcontentsPeer::CUEOUT)) $criteria->add(CcBlockcontentsPeer::CUEOUT, $this->cueout); + if ($this->isColumnModified(CcBlockcontentsPeer::FADEIN)) $criteria->add(CcBlockcontentsPeer::FADEIN, $this->fadein); + if ($this->isColumnModified(CcBlockcontentsPeer::FADEOUT)) $criteria->add(CcBlockcontentsPeer::FADEOUT, $this->fadeout); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcBlockcontentsPeer::DATABASE_NAME); + $criteria->add(CcBlockcontentsPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcBlockcontents (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbBlockId($this->getDbBlockId()); + $copyObj->setDbFileId($this->getDbFileId()); + $copyObj->setDbPosition($this->getDbPosition()); + $copyObj->setDbTrackOffset($this->getDbTrackOffset()); + $copyObj->setDbCliplength($this->getDbCliplength()); + $copyObj->setDbCuein($this->getDbCuein()); + $copyObj->setDbCueout($this->getDbCueout()); + $copyObj->setDbFadein($this->getDbFadein()); + $copyObj->setDbFadeout($this->getDbFadeout()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcBlockcontents Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcBlockcontentsPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcBlockcontentsPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcFiles object. + * + * @param CcFiles $v + * @return CcBlockcontents The current object (for fluent API support) + * @throws PropelException + */ + public function setCcFiles(CcFiles $v = null) + { + if ($v === null) { + $this->setDbFileId(NULL); + } else { + $this->setDbFileId($v->getDbId()); + } + + $this->aCcFiles = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcFiles object, it will not be re-added. + if ($v !== null) { + $v->addCcBlockcontents($this); + } + + + return $this; + } + + + /** + * Get the associated CcFiles object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcFiles The associated CcFiles object. + * @throws PropelException + */ + public function getCcFiles(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcFiles === null && ($this->file_id !== null) && $doQuery) { + $this->aCcFiles = CcFilesQuery::create()->findPk($this->file_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcFiles->addCcBlockcontentss($this); + */ + } + + return $this->aCcFiles; + } + + /** + * Declares an association between this object and a CcBlock object. + * + * @param CcBlock $v + * @return CcBlockcontents The current object (for fluent API support) + * @throws PropelException + */ + public function setCcBlock(CcBlock $v = null) + { + // aggregate_column_relation behavior + if (null !== $this->aCcBlock && $v !== $this->aCcBlock) { + $this->oldCcBlock = $this->aCcBlock; + } + if ($v === null) { + $this->setDbBlockId(NULL); + } else { + $this->setDbBlockId($v->getDbId()); + } + + $this->aCcBlock = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcBlock object, it will not be re-added. + if ($v !== null) { + $v->addCcBlockcontents($this); + } + + + return $this; + } + + + /** + * Get the associated CcBlock object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcBlock The associated CcBlock object. + * @throws PropelException + */ + public function getCcBlock(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcBlock === null && ($this->block_id !== null) && $doQuery) { + $this->aCcBlock = CcBlockQuery::create()->findPk($this->block_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcBlock->addCcBlockcontentss($this); + */ + } + + return $this->aCcBlock; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->block_id = null; + $this->file_id = null; + $this->position = null; + $this->trackoffset = null; + $this->cliplength = null; + $this->cuein = null; + $this->cueout = null; + $this->fadein = null; + $this->fadeout = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcFiles instanceof Persistent) { + $this->aCcFiles->clearAllReferences($deep); + } + if ($this->aCcBlock instanceof Persistent) { + $this->aCcBlock->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcFiles = null; + $this->aCcBlock = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcBlockcontentsPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + + // aggregate_column_relation behavior + + /** + * Update the aggregate column in the related CcBlock object + * + * @param PropelPDO $con A connection object + */ + protected function updateRelatedCcBlock(PropelPDO $con) + { + if ($ccBlock = $this->getCcBlock()) { + if (!$ccBlock->isAlreadyInSave()) { + $ccBlock->updateDbLength($con); + } + } + if ($this->oldCcBlock) { + $this->oldCcBlock->updateDbLength($con); + $this->oldCcBlock = null; + } + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcBlockcontentsPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcBlockcontentsPeer.php index 6cdb1e2656..e3917377c6 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcBlockcontentsPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcBlockcontentsPeer.php @@ -4,1393 +4,1425 @@ /** * Base static class for performing query and update operations on the 'cc_blockcontents' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcBlockcontentsPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_blockcontents'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcBlockcontents'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcBlockcontents'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcBlockcontentsTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 10; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_blockcontents.ID'; - - /** the column name for the BLOCK_ID field */ - const BLOCK_ID = 'cc_blockcontents.BLOCK_ID'; - - /** the column name for the FILE_ID field */ - const FILE_ID = 'cc_blockcontents.FILE_ID'; - - /** the column name for the POSITION field */ - const POSITION = 'cc_blockcontents.POSITION'; - - /** the column name for the TRACKOFFSET field */ - const TRACKOFFSET = 'cc_blockcontents.TRACKOFFSET'; - - /** the column name for the CLIPLENGTH field */ - const CLIPLENGTH = 'cc_blockcontents.CLIPLENGTH'; - - /** the column name for the CUEIN field */ - const CUEIN = 'cc_blockcontents.CUEIN'; - - /** the column name for the CUEOUT field */ - const CUEOUT = 'cc_blockcontents.CUEOUT'; - - /** the column name for the FADEIN field */ - const FADEIN = 'cc_blockcontents.FADEIN'; - - /** the column name for the FADEOUT field */ - const FADEOUT = 'cc_blockcontents.FADEOUT'; - - /** - * An identiy map to hold any loaded instances of CcBlockcontents objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcBlockcontents[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbBlockId', 'DbFileId', 'DbPosition', 'DbTrackOffset', 'DbCliplength', 'DbCuein', 'DbCueout', 'DbFadein', 'DbFadeout', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbBlockId', 'dbFileId', 'dbPosition', 'dbTrackOffset', 'dbCliplength', 'dbCuein', 'dbCueout', 'dbFadein', 'dbFadeout', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::BLOCK_ID, self::FILE_ID, self::POSITION, self::TRACKOFFSET, self::CLIPLENGTH, self::CUEIN, self::CUEOUT, self::FADEIN, self::FADEOUT, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'BLOCK_ID', 'FILE_ID', 'POSITION', 'TRACKOFFSET', 'CLIPLENGTH', 'CUEIN', 'CUEOUT', 'FADEIN', 'FADEOUT', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'block_id', 'file_id', 'position', 'trackoffset', 'cliplength', 'cuein', 'cueout', 'fadein', 'fadeout', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbBlockId' => 1, 'DbFileId' => 2, 'DbPosition' => 3, 'DbTrackOffset' => 4, 'DbCliplength' => 5, 'DbCuein' => 6, 'DbCueout' => 7, 'DbFadein' => 8, 'DbFadeout' => 9, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbBlockId' => 1, 'dbFileId' => 2, 'dbPosition' => 3, 'dbTrackOffset' => 4, 'dbCliplength' => 5, 'dbCuein' => 6, 'dbCueout' => 7, 'dbFadein' => 8, 'dbFadeout' => 9, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::BLOCK_ID => 1, self::FILE_ID => 2, self::POSITION => 3, self::TRACKOFFSET => 4, self::CLIPLENGTH => 5, self::CUEIN => 6, self::CUEOUT => 7, self::FADEIN => 8, self::FADEOUT => 9, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'BLOCK_ID' => 1, 'FILE_ID' => 2, 'POSITION' => 3, 'TRACKOFFSET' => 4, 'CLIPLENGTH' => 5, 'CUEIN' => 6, 'CUEOUT' => 7, 'FADEIN' => 8, 'FADEOUT' => 9, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'block_id' => 1, 'file_id' => 2, 'position' => 3, 'trackoffset' => 4, 'cliplength' => 5, 'cuein' => 6, 'cueout' => 7, 'fadein' => 8, 'fadeout' => 9, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcBlockcontentsPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcBlockcontentsPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcBlockcontentsPeer::ID); - $criteria->addSelectColumn(CcBlockcontentsPeer::BLOCK_ID); - $criteria->addSelectColumn(CcBlockcontentsPeer::FILE_ID); - $criteria->addSelectColumn(CcBlockcontentsPeer::POSITION); - $criteria->addSelectColumn(CcBlockcontentsPeer::TRACKOFFSET); - $criteria->addSelectColumn(CcBlockcontentsPeer::CLIPLENGTH); - $criteria->addSelectColumn(CcBlockcontentsPeer::CUEIN); - $criteria->addSelectColumn(CcBlockcontentsPeer::CUEOUT); - $criteria->addSelectColumn(CcBlockcontentsPeer::FADEIN); - $criteria->addSelectColumn(CcBlockcontentsPeer::FADEOUT); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.BLOCK_ID'); - $criteria->addSelectColumn($alias . '.FILE_ID'); - $criteria->addSelectColumn($alias . '.POSITION'); - $criteria->addSelectColumn($alias . '.TRACKOFFSET'); - $criteria->addSelectColumn($alias . '.CLIPLENGTH'); - $criteria->addSelectColumn($alias . '.CUEIN'); - $criteria->addSelectColumn($alias . '.CUEOUT'); - $criteria->addSelectColumn($alias . '.FADEIN'); - $criteria->addSelectColumn($alias . '.FADEOUT'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcBlockcontentsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcBlockcontentsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcBlockcontents - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcBlockcontentsPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcBlockcontentsPeer::populateObjects(CcBlockcontentsPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcBlockcontentsPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcBlockcontents $value A CcBlockcontents object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcBlockcontents $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcBlockcontents object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcBlockcontents) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcBlockcontents object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcBlockcontents Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_blockcontents - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcBlockcontentsPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcBlockcontentsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcBlockcontentsPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcBlockcontentsPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcBlockcontents object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcBlockcontentsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcBlockcontentsPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcBlockcontentsPeer::NUM_COLUMNS; - } else { - $cls = CcBlockcontentsPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcBlockcontentsPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcFiles table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcBlockcontentsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcBlockcontentsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcBlockcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcBlock table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcBlock(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcBlockcontentsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcBlockcontentsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcBlockcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcBlockcontents objects pre-filled with their CcFiles objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcBlockcontents objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcBlockcontentsPeer::addSelectColumns($criteria); - $startcol = (CcBlockcontentsPeer::NUM_COLUMNS - CcBlockcontentsPeer::NUM_LAZY_LOAD_COLUMNS); - CcFilesPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcBlockcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcBlockcontentsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcBlockcontentsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcBlockcontentsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcBlockcontentsPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcFilesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcFilesPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcBlockcontents) to $obj2 (CcFiles) - $obj2->addCcBlockcontents($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcBlockcontents objects pre-filled with their CcBlock objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcBlockcontents objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcBlock(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcBlockcontentsPeer::addSelectColumns($criteria); - $startcol = (CcBlockcontentsPeer::NUM_COLUMNS - CcBlockcontentsPeer::NUM_LAZY_LOAD_COLUMNS); - CcBlockPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcBlockcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcBlockcontentsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcBlockcontentsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcBlockcontentsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcBlockcontentsPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcBlockPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcBlockPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcBlockPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcBlockcontents) to $obj2 (CcBlock) - $obj2->addCcBlockcontents($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcBlockcontentsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcBlockcontentsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcBlockcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $criteria->addJoin(CcBlockcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcBlockcontents objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcBlockcontents objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcBlockcontentsPeer::addSelectColumns($criteria); - $startcol2 = (CcBlockcontentsPeer::NUM_COLUMNS - CcBlockcontentsPeer::NUM_LAZY_LOAD_COLUMNS); - - CcFilesPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcBlockPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcBlockPeer::NUM_COLUMNS - CcBlockPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcBlockcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $criteria->addJoin(CcBlockcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcBlockcontentsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcBlockcontentsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcBlockcontentsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcBlockcontentsPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcFiles rows - - $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcFilesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcFilesPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcBlockcontents) to the collection in $obj2 (CcFiles) - $obj2->addCcBlockcontents($obj1); - } // if joined row not null - - // Add objects for joined CcBlock rows - - $key3 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcBlockPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcBlockPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcBlockPeer::addInstanceToPool($obj3, $key3); - } // if obj3 loaded - - // Add the $obj1 (CcBlockcontents) to the collection in $obj3 (CcBlock) - $obj3->addCcBlockcontents($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcFiles table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcBlockcontentsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcBlockcontentsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcBlockcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcBlock table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcBlock(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcBlockcontentsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcBlockcontentsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcBlockcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcBlockcontents objects pre-filled with all related objects except CcFiles. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcBlockcontents objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcBlockcontentsPeer::addSelectColumns($criteria); - $startcol2 = (CcBlockcontentsPeer::NUM_COLUMNS - CcBlockcontentsPeer::NUM_LAZY_LOAD_COLUMNS); - - CcBlockPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcBlockPeer::NUM_COLUMNS - CcBlockPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcBlockcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcBlockcontentsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcBlockcontentsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcBlockcontentsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcBlockcontentsPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcBlock rows - - $key2 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcBlockPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcBlockPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcBlockPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcBlockcontents) to the collection in $obj2 (CcBlock) - $obj2->addCcBlockcontents($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcBlockcontents objects pre-filled with all related objects except CcBlock. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcBlockcontents objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcBlock(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcBlockcontentsPeer::addSelectColumns($criteria); - $startcol2 = (CcBlockcontentsPeer::NUM_COLUMNS - CcBlockcontentsPeer::NUM_LAZY_LOAD_COLUMNS); - - CcFilesPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcBlockcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcBlockcontentsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcBlockcontentsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcBlockcontentsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcBlockcontentsPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcFiles rows - - $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcFilesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcFilesPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcBlockcontents) to the collection in $obj2 (CcFiles) - $obj2->addCcBlockcontents($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcBlockcontentsPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcBlockcontentsPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcBlockcontentsTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcBlockcontentsPeer::CLASS_DEFAULT : CcBlockcontentsPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcBlockcontents or Criteria object. - * - * @param mixed $values Criteria or CcBlockcontents object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcBlockcontents object - } - - if ($criteria->containsKey(CcBlockcontentsPeer::ID) && $criteria->keyContainsValue(CcBlockcontentsPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcBlockcontentsPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcBlockcontents or Criteria object. - * - * @param mixed $values Criteria or CcBlockcontents object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcBlockcontentsPeer::ID); - $value = $criteria->remove(CcBlockcontentsPeer::ID); - if ($value) { - $selectCriteria->add(CcBlockcontentsPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcBlockcontentsPeer::TABLE_NAME); - } - - } else { // $values is CcBlockcontents object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_blockcontents table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcBlockcontentsPeer::TABLE_NAME, $con, CcBlockcontentsPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcBlockcontentsPeer::clearInstancePool(); - CcBlockcontentsPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcBlockcontents or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcBlockcontents object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcBlockcontentsPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcBlockcontents) { // it's a model object - // invalidate the cache for this single object - CcBlockcontentsPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcBlockcontentsPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcBlockcontentsPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcBlockcontentsPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcBlockcontents object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcBlockcontents $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcBlockcontents $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcBlockcontentsPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcBlockcontentsPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcBlockcontentsPeer::DATABASE_NAME, CcBlockcontentsPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcBlockcontents - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcBlockcontentsPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcBlockcontentsPeer::DATABASE_NAME); - $criteria->add(CcBlockcontentsPeer::ID, $pk); - - $v = CcBlockcontentsPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcBlockcontentsPeer::DATABASE_NAME); - $criteria->add(CcBlockcontentsPeer::ID, $pks, Criteria::IN); - $objs = CcBlockcontentsPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcBlockcontentsPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_blockcontents'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcBlockcontents'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcBlockcontentsTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 10; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 10; + + /** the column name for the id field */ + const ID = 'cc_blockcontents.id'; + + /** the column name for the block_id field */ + const BLOCK_ID = 'cc_blockcontents.block_id'; + + /** the column name for the file_id field */ + const FILE_ID = 'cc_blockcontents.file_id'; + + /** the column name for the position field */ + const POSITION = 'cc_blockcontents.position'; + + /** the column name for the trackoffset field */ + const TRACKOFFSET = 'cc_blockcontents.trackoffset'; + + /** the column name for the cliplength field */ + const CLIPLENGTH = 'cc_blockcontents.cliplength'; + + /** the column name for the cuein field */ + const CUEIN = 'cc_blockcontents.cuein'; + + /** the column name for the cueout field */ + const CUEOUT = 'cc_blockcontents.cueout'; + + /** the column name for the fadein field */ + const FADEIN = 'cc_blockcontents.fadein'; + + /** the column name for the fadeout field */ + const FADEOUT = 'cc_blockcontents.fadeout'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcBlockcontents objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcBlockcontents[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcBlockcontentsPeer::$fieldNames[CcBlockcontentsPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbBlockId', 'DbFileId', 'DbPosition', 'DbTrackOffset', 'DbCliplength', 'DbCuein', 'DbCueout', 'DbFadein', 'DbFadeout', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbBlockId', 'dbFileId', 'dbPosition', 'dbTrackOffset', 'dbCliplength', 'dbCuein', 'dbCueout', 'dbFadein', 'dbFadeout', ), + BasePeer::TYPE_COLNAME => array (CcBlockcontentsPeer::ID, CcBlockcontentsPeer::BLOCK_ID, CcBlockcontentsPeer::FILE_ID, CcBlockcontentsPeer::POSITION, CcBlockcontentsPeer::TRACKOFFSET, CcBlockcontentsPeer::CLIPLENGTH, CcBlockcontentsPeer::CUEIN, CcBlockcontentsPeer::CUEOUT, CcBlockcontentsPeer::FADEIN, CcBlockcontentsPeer::FADEOUT, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'BLOCK_ID', 'FILE_ID', 'POSITION', 'TRACKOFFSET', 'CLIPLENGTH', 'CUEIN', 'CUEOUT', 'FADEIN', 'FADEOUT', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'block_id', 'file_id', 'position', 'trackoffset', 'cliplength', 'cuein', 'cueout', 'fadein', 'fadeout', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcBlockcontentsPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbBlockId' => 1, 'DbFileId' => 2, 'DbPosition' => 3, 'DbTrackOffset' => 4, 'DbCliplength' => 5, 'DbCuein' => 6, 'DbCueout' => 7, 'DbFadein' => 8, 'DbFadeout' => 9, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbBlockId' => 1, 'dbFileId' => 2, 'dbPosition' => 3, 'dbTrackOffset' => 4, 'dbCliplength' => 5, 'dbCuein' => 6, 'dbCueout' => 7, 'dbFadein' => 8, 'dbFadeout' => 9, ), + BasePeer::TYPE_COLNAME => array (CcBlockcontentsPeer::ID => 0, CcBlockcontentsPeer::BLOCK_ID => 1, CcBlockcontentsPeer::FILE_ID => 2, CcBlockcontentsPeer::POSITION => 3, CcBlockcontentsPeer::TRACKOFFSET => 4, CcBlockcontentsPeer::CLIPLENGTH => 5, CcBlockcontentsPeer::CUEIN => 6, CcBlockcontentsPeer::CUEOUT => 7, CcBlockcontentsPeer::FADEIN => 8, CcBlockcontentsPeer::FADEOUT => 9, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'BLOCK_ID' => 1, 'FILE_ID' => 2, 'POSITION' => 3, 'TRACKOFFSET' => 4, 'CLIPLENGTH' => 5, 'CUEIN' => 6, 'CUEOUT' => 7, 'FADEIN' => 8, 'FADEOUT' => 9, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'block_id' => 1, 'file_id' => 2, 'position' => 3, 'trackoffset' => 4, 'cliplength' => 5, 'cuein' => 6, 'cueout' => 7, 'fadein' => 8, 'fadeout' => 9, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcBlockcontentsPeer::getFieldNames($toType); + $key = isset(CcBlockcontentsPeer::$fieldKeys[$fromType][$name]) ? CcBlockcontentsPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcBlockcontentsPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcBlockcontentsPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcBlockcontentsPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcBlockcontentsPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcBlockcontentsPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcBlockcontentsPeer::ID); + $criteria->addSelectColumn(CcBlockcontentsPeer::BLOCK_ID); + $criteria->addSelectColumn(CcBlockcontentsPeer::FILE_ID); + $criteria->addSelectColumn(CcBlockcontentsPeer::POSITION); + $criteria->addSelectColumn(CcBlockcontentsPeer::TRACKOFFSET); + $criteria->addSelectColumn(CcBlockcontentsPeer::CLIPLENGTH); + $criteria->addSelectColumn(CcBlockcontentsPeer::CUEIN); + $criteria->addSelectColumn(CcBlockcontentsPeer::CUEOUT); + $criteria->addSelectColumn(CcBlockcontentsPeer::FADEIN); + $criteria->addSelectColumn(CcBlockcontentsPeer::FADEOUT); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.block_id'); + $criteria->addSelectColumn($alias . '.file_id'); + $criteria->addSelectColumn($alias . '.position'); + $criteria->addSelectColumn($alias . '.trackoffset'); + $criteria->addSelectColumn($alias . '.cliplength'); + $criteria->addSelectColumn($alias . '.cuein'); + $criteria->addSelectColumn($alias . '.cueout'); + $criteria->addSelectColumn($alias . '.fadein'); + $criteria->addSelectColumn($alias . '.fadeout'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcBlockcontentsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcBlockcontentsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcBlockcontents + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcBlockcontentsPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcBlockcontentsPeer::populateObjects(CcBlockcontentsPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcBlockcontentsPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcBlockcontents $obj A CcBlockcontents object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcBlockcontentsPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcBlockcontents object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcBlockcontents) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcBlockcontents object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcBlockcontentsPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcBlockcontents Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcBlockcontentsPeer::$instances[$key])) { + return CcBlockcontentsPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcBlockcontentsPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcBlockcontentsPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_blockcontents + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcBlockcontentsPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcBlockcontentsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcBlockcontentsPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcBlockcontentsPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcBlockcontents object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcBlockcontentsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcBlockcontentsPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcBlockcontentsPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcBlockcontentsPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcBlockcontentsPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcFiles table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcBlockcontentsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcBlockcontentsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcBlockcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcBlock table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcBlock(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcBlockcontentsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcBlockcontentsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcBlockcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcBlockcontents objects pre-filled with their CcFiles objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcBlockcontents objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); + } + + CcBlockcontentsPeer::addSelectColumns($criteria); + $startcol = CcBlockcontentsPeer::NUM_HYDRATE_COLUMNS; + CcFilesPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcBlockcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcBlockcontentsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcBlockcontentsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcBlockcontentsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcBlockcontentsPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcBlockcontents) to $obj2 (CcFiles) + $obj2->addCcBlockcontents($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcBlockcontents objects pre-filled with their CcBlock objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcBlockcontents objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcBlock(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); + } + + CcBlockcontentsPeer::addSelectColumns($criteria); + $startcol = CcBlockcontentsPeer::NUM_HYDRATE_COLUMNS; + CcBlockPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcBlockcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcBlockcontentsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcBlockcontentsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcBlockcontentsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcBlockcontentsPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcBlockPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcBlockPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcBlockPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcBlockcontents) to $obj2 (CcBlock) + $obj2->addCcBlockcontents($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcBlockcontentsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcBlockcontentsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcBlockcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $criteria->addJoin(CcBlockcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcBlockcontents objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcBlockcontents objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); + } + + CcBlockcontentsPeer::addSelectColumns($criteria); + $startcol2 = CcBlockcontentsPeer::NUM_HYDRATE_COLUMNS; + + CcFilesPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcFilesPeer::NUM_HYDRATE_COLUMNS; + + CcBlockPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcBlockPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcBlockcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $criteria->addJoin(CcBlockcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcBlockcontentsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcBlockcontentsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcBlockcontentsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcBlockcontentsPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcFiles rows + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcBlockcontents) to the collection in $obj2 (CcFiles) + $obj2->addCcBlockcontents($obj1); + } // if joined row not null + + // Add objects for joined CcBlock rows + + $key3 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcBlockPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcBlockPeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcBlockPeer::addInstanceToPool($obj3, $key3); + } // if obj3 loaded + + // Add the $obj1 (CcBlockcontents) to the collection in $obj3 (CcBlock) + $obj3->addCcBlockcontents($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcFiles table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcBlockcontentsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcBlockcontentsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcBlockcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcBlock table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcBlock(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcBlockcontentsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcBlockcontentsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcBlockcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcBlockcontents objects pre-filled with all related objects except CcFiles. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcBlockcontents objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); + } + + CcBlockcontentsPeer::addSelectColumns($criteria); + $startcol2 = CcBlockcontentsPeer::NUM_HYDRATE_COLUMNS; + + CcBlockPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcBlockPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcBlockcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcBlockcontentsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcBlockcontentsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcBlockcontentsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcBlockcontentsPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcBlock rows + + $key2 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcBlockPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcBlockPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcBlockPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcBlockcontents) to the collection in $obj2 (CcBlock) + $obj2->addCcBlockcontents($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcBlockcontents objects pre-filled with all related objects except CcBlock. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcBlockcontents objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcBlock(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); + } + + CcBlockcontentsPeer::addSelectColumns($criteria); + $startcol2 = CcBlockcontentsPeer::NUM_HYDRATE_COLUMNS; + + CcFilesPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcFilesPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcBlockcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcBlockcontentsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcBlockcontentsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcBlockcontentsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcBlockcontentsPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcFiles rows + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcBlockcontents) to the collection in $obj2 (CcFiles) + $obj2->addCcBlockcontents($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcBlockcontentsPeer::DATABASE_NAME)->getTable(CcBlockcontentsPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcBlockcontentsPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcBlockcontentsPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcBlockcontentsTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcBlockcontentsPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcBlockcontents or Criteria object. + * + * @param mixed $values Criteria or CcBlockcontents object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcBlockcontents object + } + + if ($criteria->containsKey(CcBlockcontentsPeer::ID) && $criteria->keyContainsValue(CcBlockcontentsPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcBlockcontentsPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcBlockcontents or Criteria object. + * + * @param mixed $values Criteria or CcBlockcontents object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcBlockcontentsPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcBlockcontentsPeer::ID); + $value = $criteria->remove(CcBlockcontentsPeer::ID); + if ($value) { + $selectCriteria->add(CcBlockcontentsPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcBlockcontentsPeer::TABLE_NAME); + } + + } else { // $values is CcBlockcontents object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_blockcontents table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcBlockcontentsPeer::TABLE_NAME, $con, CcBlockcontentsPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcBlockcontentsPeer::clearInstancePool(); + CcBlockcontentsPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcBlockcontents or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcBlockcontents object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcBlockcontentsPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcBlockcontents) { // it's a model object + // invalidate the cache for this single object + CcBlockcontentsPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcBlockcontentsPeer::DATABASE_NAME); + $criteria->add(CcBlockcontentsPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcBlockcontentsPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcBlockcontentsPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcBlockcontentsPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcBlockcontents object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcBlockcontents $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcBlockcontentsPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcBlockcontentsPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcBlockcontentsPeer::DATABASE_NAME, CcBlockcontentsPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcBlockcontents + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcBlockcontentsPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcBlockcontentsPeer::DATABASE_NAME); + $criteria->add(CcBlockcontentsPeer::ID, $pk); + + $v = CcBlockcontentsPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcBlockcontents[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcBlockcontentsPeer::DATABASE_NAME); + $criteria->add(CcBlockcontentsPeer::ID, $pks, Criteria::IN); + $objs = CcBlockcontentsPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcBlockcontentsPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcBlockcontentsQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcBlockcontentsQuery.php index f648e36404..868c0b2417 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcBlockcontentsQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcBlockcontentsQuery.php @@ -4,672 +4,900 @@ /** * Base class that represents a query for the 'cc_blockcontents' table. * - * * - * @method CcBlockcontentsQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcBlockcontentsQuery orderByDbBlockId($order = Criteria::ASC) Order by the block_id column - * @method CcBlockcontentsQuery orderByDbFileId($order = Criteria::ASC) Order by the file_id column - * @method CcBlockcontentsQuery orderByDbPosition($order = Criteria::ASC) Order by the position column - * @method CcBlockcontentsQuery orderByDbTrackOffset($order = Criteria::ASC) Order by the trackoffset column - * @method CcBlockcontentsQuery orderByDbCliplength($order = Criteria::ASC) Order by the cliplength column - * @method CcBlockcontentsQuery orderByDbCuein($order = Criteria::ASC) Order by the cuein column - * @method CcBlockcontentsQuery orderByDbCueout($order = Criteria::ASC) Order by the cueout column - * @method CcBlockcontentsQuery orderByDbFadein($order = Criteria::ASC) Order by the fadein column - * @method CcBlockcontentsQuery orderByDbFadeout($order = Criteria::ASC) Order by the fadeout column * - * @method CcBlockcontentsQuery groupByDbId() Group by the id column - * @method CcBlockcontentsQuery groupByDbBlockId() Group by the block_id column - * @method CcBlockcontentsQuery groupByDbFileId() Group by the file_id column - * @method CcBlockcontentsQuery groupByDbPosition() Group by the position column - * @method CcBlockcontentsQuery groupByDbTrackOffset() Group by the trackoffset column - * @method CcBlockcontentsQuery groupByDbCliplength() Group by the cliplength column - * @method CcBlockcontentsQuery groupByDbCuein() Group by the cuein column - * @method CcBlockcontentsQuery groupByDbCueout() Group by the cueout column - * @method CcBlockcontentsQuery groupByDbFadein() Group by the fadein column - * @method CcBlockcontentsQuery groupByDbFadeout() Group by the fadeout column + * @method CcBlockcontentsQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcBlockcontentsQuery orderByDbBlockId($order = Criteria::ASC) Order by the block_id column + * @method CcBlockcontentsQuery orderByDbFileId($order = Criteria::ASC) Order by the file_id column + * @method CcBlockcontentsQuery orderByDbPosition($order = Criteria::ASC) Order by the position column + * @method CcBlockcontentsQuery orderByDbTrackOffset($order = Criteria::ASC) Order by the trackoffset column + * @method CcBlockcontentsQuery orderByDbCliplength($order = Criteria::ASC) Order by the cliplength column + * @method CcBlockcontentsQuery orderByDbCuein($order = Criteria::ASC) Order by the cuein column + * @method CcBlockcontentsQuery orderByDbCueout($order = Criteria::ASC) Order by the cueout column + * @method CcBlockcontentsQuery orderByDbFadein($order = Criteria::ASC) Order by the fadein column + * @method CcBlockcontentsQuery orderByDbFadeout($order = Criteria::ASC) Order by the fadeout column * - * @method CcBlockcontentsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcBlockcontentsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcBlockcontentsQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcBlockcontentsQuery groupByDbId() Group by the id column + * @method CcBlockcontentsQuery groupByDbBlockId() Group by the block_id column + * @method CcBlockcontentsQuery groupByDbFileId() Group by the file_id column + * @method CcBlockcontentsQuery groupByDbPosition() Group by the position column + * @method CcBlockcontentsQuery groupByDbTrackOffset() Group by the trackoffset column + * @method CcBlockcontentsQuery groupByDbCliplength() Group by the cliplength column + * @method CcBlockcontentsQuery groupByDbCuein() Group by the cuein column + * @method CcBlockcontentsQuery groupByDbCueout() Group by the cueout column + * @method CcBlockcontentsQuery groupByDbFadein() Group by the fadein column + * @method CcBlockcontentsQuery groupByDbFadeout() Group by the fadeout column * - * @method CcBlockcontentsQuery leftJoinCcFiles($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFiles relation - * @method CcBlockcontentsQuery rightJoinCcFiles($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFiles relation - * @method CcBlockcontentsQuery innerJoinCcFiles($relationAlias = '') Adds a INNER JOIN clause to the query using the CcFiles relation + * @method CcBlockcontentsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcBlockcontentsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcBlockcontentsQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcBlockcontentsQuery leftJoinCcBlock($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcBlock relation - * @method CcBlockcontentsQuery rightJoinCcBlock($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcBlock relation - * @method CcBlockcontentsQuery innerJoinCcBlock($relationAlias = '') Adds a INNER JOIN clause to the query using the CcBlock relation + * @method CcBlockcontentsQuery leftJoinCcFiles($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcFiles relation + * @method CcBlockcontentsQuery rightJoinCcFiles($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcFiles relation + * @method CcBlockcontentsQuery innerJoinCcFiles($relationAlias = null) Adds a INNER JOIN clause to the query using the CcFiles relation * - * @method CcBlockcontents findOne(PropelPDO $con = null) Return the first CcBlockcontents matching the query - * @method CcBlockcontents findOneOrCreate(PropelPDO $con = null) Return the first CcBlockcontents matching the query, or a new CcBlockcontents object populated from the query conditions when no match is found + * @method CcBlockcontentsQuery leftJoinCcBlock($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcBlock relation + * @method CcBlockcontentsQuery rightJoinCcBlock($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcBlock relation + * @method CcBlockcontentsQuery innerJoinCcBlock($relationAlias = null) Adds a INNER JOIN clause to the query using the CcBlock relation * - * @method CcBlockcontents findOneByDbId(int $id) Return the first CcBlockcontents filtered by the id column - * @method CcBlockcontents findOneByDbBlockId(int $block_id) Return the first CcBlockcontents filtered by the block_id column - * @method CcBlockcontents findOneByDbFileId(int $file_id) Return the first CcBlockcontents filtered by the file_id column - * @method CcBlockcontents findOneByDbPosition(int $position) Return the first CcBlockcontents filtered by the position column - * @method CcBlockcontents findOneByDbTrackOffset(double $trackoffset) Return the first CcBlockcontents filtered by the trackoffset column - * @method CcBlockcontents findOneByDbCliplength(string $cliplength) Return the first CcBlockcontents filtered by the cliplength column - * @method CcBlockcontents findOneByDbCuein(string $cuein) Return the first CcBlockcontents filtered by the cuein column - * @method CcBlockcontents findOneByDbCueout(string $cueout) Return the first CcBlockcontents filtered by the cueout column - * @method CcBlockcontents findOneByDbFadein(string $fadein) Return the first CcBlockcontents filtered by the fadein column - * @method CcBlockcontents findOneByDbFadeout(string $fadeout) Return the first CcBlockcontents filtered by the fadeout column + * @method CcBlockcontents findOne(PropelPDO $con = null) Return the first CcBlockcontents matching the query + * @method CcBlockcontents findOneOrCreate(PropelPDO $con = null) Return the first CcBlockcontents matching the query, or a new CcBlockcontents object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcBlockcontents objects filtered by the id column - * @method array findByDbBlockId(int $block_id) Return CcBlockcontents objects filtered by the block_id column - * @method array findByDbFileId(int $file_id) Return CcBlockcontents objects filtered by the file_id column - * @method array findByDbPosition(int $position) Return CcBlockcontents objects filtered by the position column - * @method array findByDbTrackOffset(double $trackoffset) Return CcBlockcontents objects filtered by the trackoffset column - * @method array findByDbCliplength(string $cliplength) Return CcBlockcontents objects filtered by the cliplength column - * @method array findByDbCuein(string $cuein) Return CcBlockcontents objects filtered by the cuein column - * @method array findByDbCueout(string $cueout) Return CcBlockcontents objects filtered by the cueout column - * @method array findByDbFadein(string $fadein) Return CcBlockcontents objects filtered by the fadein column - * @method array findByDbFadeout(string $fadeout) Return CcBlockcontents objects filtered by the fadeout column + * @method CcBlockcontents findOneByDbBlockId(int $block_id) Return the first CcBlockcontents filtered by the block_id column + * @method CcBlockcontents findOneByDbFileId(int $file_id) Return the first CcBlockcontents filtered by the file_id column + * @method CcBlockcontents findOneByDbPosition(int $position) Return the first CcBlockcontents filtered by the position column + * @method CcBlockcontents findOneByDbTrackOffset(double $trackoffset) Return the first CcBlockcontents filtered by the trackoffset column + * @method CcBlockcontents findOneByDbCliplength(string $cliplength) Return the first CcBlockcontents filtered by the cliplength column + * @method CcBlockcontents findOneByDbCuein(string $cuein) Return the first CcBlockcontents filtered by the cuein column + * @method CcBlockcontents findOneByDbCueout(string $cueout) Return the first CcBlockcontents filtered by the cueout column + * @method CcBlockcontents findOneByDbFadein(string $fadein) Return the first CcBlockcontents filtered by the fadein column + * @method CcBlockcontents findOneByDbFadeout(string $fadeout) Return the first CcBlockcontents filtered by the fadeout column + * + * @method array findByDbId(int $id) Return CcBlockcontents objects filtered by the id column + * @method array findByDbBlockId(int $block_id) Return CcBlockcontents objects filtered by the block_id column + * @method array findByDbFileId(int $file_id) Return CcBlockcontents objects filtered by the file_id column + * @method array findByDbPosition(int $position) Return CcBlockcontents objects filtered by the position column + * @method array findByDbTrackOffset(double $trackoffset) Return CcBlockcontents objects filtered by the trackoffset column + * @method array findByDbCliplength(string $cliplength) Return CcBlockcontents objects filtered by the cliplength column + * @method array findByDbCuein(string $cuein) Return CcBlockcontents objects filtered by the cuein column + * @method array findByDbCueout(string $cueout) Return CcBlockcontents objects filtered by the cueout column + * @method array findByDbFadein(string $fadein) Return CcBlockcontents objects filtered by the fadein column + * @method array findByDbFadeout(string $fadeout) Return CcBlockcontents objects filtered by the fadeout column * * @package propel.generator.airtime.om */ abstract class BaseCcBlockcontentsQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcBlockcontentsQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcBlockcontents'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcBlockcontentsQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcBlockcontentsQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcBlockcontentsQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcBlockcontentsQuery) { + return $criteria; + } + $query = new CcBlockcontentsQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcBlockcontents|CcBlockcontents[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcBlockcontentsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcBlockcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcBlockcontents A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcBlockcontents A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "block_id", "file_id", "position", "trackoffset", "cliplength", "cuein", "cueout", "fadein", "fadeout" FROM "cc_blockcontents" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcBlockcontents(); + $obj->hydrate($row); + CcBlockcontentsPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcBlockcontents|CcBlockcontents[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcBlockcontents[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcBlockcontentsQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcBlockcontentsPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcBlockcontentsQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcBlockcontentsPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockcontentsQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcBlockcontentsPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcBlockcontentsPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcBlockcontentsPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the block_id column + * + * Example usage: + * + * $query->filterByDbBlockId(1234); // WHERE block_id = 1234 + * $query->filterByDbBlockId(array(12, 34)); // WHERE block_id IN (12, 34) + * $query->filterByDbBlockId(array('min' => 12)); // WHERE block_id >= 12 + * $query->filterByDbBlockId(array('max' => 12)); // WHERE block_id <= 12 + * + * + * @see filterByCcBlock() + * + * @param mixed $dbBlockId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockcontentsQuery The current query, for fluid interface + */ + public function filterByDbBlockId($dbBlockId = null, $comparison = null) + { + if (is_array($dbBlockId)) { + $useMinMax = false; + if (isset($dbBlockId['min'])) { + $this->addUsingAlias(CcBlockcontentsPeer::BLOCK_ID, $dbBlockId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbBlockId['max'])) { + $this->addUsingAlias(CcBlockcontentsPeer::BLOCK_ID, $dbBlockId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcBlockcontentsPeer::BLOCK_ID, $dbBlockId, $comparison); + } + + /** + * Filter the query on the file_id column + * + * Example usage: + * + * $query->filterByDbFileId(1234); // WHERE file_id = 1234 + * $query->filterByDbFileId(array(12, 34)); // WHERE file_id IN (12, 34) + * $query->filterByDbFileId(array('min' => 12)); // WHERE file_id >= 12 + * $query->filterByDbFileId(array('max' => 12)); // WHERE file_id <= 12 + * + * + * @see filterByCcFiles() + * + * @param mixed $dbFileId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockcontentsQuery The current query, for fluid interface + */ + public function filterByDbFileId($dbFileId = null, $comparison = null) + { + if (is_array($dbFileId)) { + $useMinMax = false; + if (isset($dbFileId['min'])) { + $this->addUsingAlias(CcBlockcontentsPeer::FILE_ID, $dbFileId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbFileId['max'])) { + $this->addUsingAlias(CcBlockcontentsPeer::FILE_ID, $dbFileId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcBlockcontentsPeer::FILE_ID, $dbFileId, $comparison); + } + + /** + * Filter the query on the position column + * + * Example usage: + * + * $query->filterByDbPosition(1234); // WHERE position = 1234 + * $query->filterByDbPosition(array(12, 34)); // WHERE position IN (12, 34) + * $query->filterByDbPosition(array('min' => 12)); // WHERE position >= 12 + * $query->filterByDbPosition(array('max' => 12)); // WHERE position <= 12 + * + * + * @param mixed $dbPosition The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockcontentsQuery The current query, for fluid interface + */ + public function filterByDbPosition($dbPosition = null, $comparison = null) + { + if (is_array($dbPosition)) { + $useMinMax = false; + if (isset($dbPosition['min'])) { + $this->addUsingAlias(CcBlockcontentsPeer::POSITION, $dbPosition['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbPosition['max'])) { + $this->addUsingAlias(CcBlockcontentsPeer::POSITION, $dbPosition['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcBlockcontentsPeer::POSITION, $dbPosition, $comparison); + } + + /** + * Filter the query on the trackoffset column + * + * Example usage: + * + * $query->filterByDbTrackOffset(1234); // WHERE trackoffset = 1234 + * $query->filterByDbTrackOffset(array(12, 34)); // WHERE trackoffset IN (12, 34) + * $query->filterByDbTrackOffset(array('min' => 12)); // WHERE trackoffset >= 12 + * $query->filterByDbTrackOffset(array('max' => 12)); // WHERE trackoffset <= 12 + * + * + * @param mixed $dbTrackOffset The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockcontentsQuery The current query, for fluid interface + */ + public function filterByDbTrackOffset($dbTrackOffset = null, $comparison = null) + { + if (is_array($dbTrackOffset)) { + $useMinMax = false; + if (isset($dbTrackOffset['min'])) { + $this->addUsingAlias(CcBlockcontentsPeer::TRACKOFFSET, $dbTrackOffset['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbTrackOffset['max'])) { + $this->addUsingAlias(CcBlockcontentsPeer::TRACKOFFSET, $dbTrackOffset['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcBlockcontentsPeer::TRACKOFFSET, $dbTrackOffset, $comparison); + } + + /** + * Filter the query on the cliplength column + * + * Example usage: + * + * $query->filterByDbCliplength('fooValue'); // WHERE cliplength = 'fooValue' + * $query->filterByDbCliplength('%fooValue%'); // WHERE cliplength LIKE '%fooValue%' + * + * + * @param string $dbCliplength 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 CcBlockcontentsQuery The current query, for fluid interface + */ + public function filterByDbCliplength($dbCliplength = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbCliplength)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbCliplength)) { + $dbCliplength = str_replace('*', '%', $dbCliplength); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcBlockcontentsPeer::CLIPLENGTH, $dbCliplength, $comparison); + } + + /** + * Filter the query on the cuein column + * + * Example usage: + * + * $query->filterByDbCuein('fooValue'); // WHERE cuein = 'fooValue' + * $query->filterByDbCuein('%fooValue%'); // WHERE cuein LIKE '%fooValue%' + * + * + * @param string $dbCuein 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 CcBlockcontentsQuery The current query, for fluid interface + */ + public function filterByDbCuein($dbCuein = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbCuein)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbCuein)) { + $dbCuein = str_replace('*', '%', $dbCuein); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcBlockcontentsPeer::CUEIN, $dbCuein, $comparison); + } + + /** + * Filter the query on the cueout column + * + * Example usage: + * + * $query->filterByDbCueout('fooValue'); // WHERE cueout = 'fooValue' + * $query->filterByDbCueout('%fooValue%'); // WHERE cueout LIKE '%fooValue%' + * + * + * @param string $dbCueout 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 CcBlockcontentsQuery The current query, for fluid interface + */ + public function filterByDbCueout($dbCueout = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbCueout)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbCueout)) { + $dbCueout = str_replace('*', '%', $dbCueout); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcBlockcontentsPeer::CUEOUT, $dbCueout, $comparison); + } + + /** + * Filter the query on the fadein column + * + * Example usage: + * + * $query->filterByDbFadein('2011-03-14'); // WHERE fadein = '2011-03-14' + * $query->filterByDbFadein('now'); // WHERE fadein = '2011-03-14' + * $query->filterByDbFadein(array('max' => 'yesterday')); // WHERE fadein < '2011-03-13' + * + * + * @param mixed $dbFadein The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockcontentsQuery The current query, for fluid interface + */ + public function filterByDbFadein($dbFadein = null, $comparison = null) + { + if (is_array($dbFadein)) { + $useMinMax = false; + if (isset($dbFadein['min'])) { + $this->addUsingAlias(CcBlockcontentsPeer::FADEIN, $dbFadein['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbFadein['max'])) { + $this->addUsingAlias(CcBlockcontentsPeer::FADEIN, $dbFadein['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcBlockcontentsPeer::FADEIN, $dbFadein, $comparison); + } + + /** + * Filter the query on the fadeout column + * + * Example usage: + * + * $query->filterByDbFadeout('2011-03-14'); // WHERE fadeout = '2011-03-14' + * $query->filterByDbFadeout('now'); // WHERE fadeout = '2011-03-14' + * $query->filterByDbFadeout(array('max' => 'yesterday')); // WHERE fadeout < '2011-03-13' + * + * + * @param mixed $dbFadeout The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockcontentsQuery The current query, for fluid interface + */ + public function filterByDbFadeout($dbFadeout = null, $comparison = null) + { + if (is_array($dbFadeout)) { + $useMinMax = false; + if (isset($dbFadeout['min'])) { + $this->addUsingAlias(CcBlockcontentsPeer::FADEOUT, $dbFadeout['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbFadeout['max'])) { + $this->addUsingAlias(CcBlockcontentsPeer::FADEOUT, $dbFadeout['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcBlockcontentsPeer::FADEOUT, $dbFadeout, $comparison); + } + + /** + * Filter the query by a related CcFiles object + * + * @param CcFiles|PropelObjectCollection $ccFiles The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockcontentsQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcFiles($ccFiles, $comparison = null) + { + if ($ccFiles instanceof CcFiles) { + return $this + ->addUsingAlias(CcBlockcontentsPeer::FILE_ID, $ccFiles->getDbId(), $comparison); + } elseif ($ccFiles instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcBlockcontentsPeer::FILE_ID, $ccFiles->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcFiles() only accepts arguments of type CcFiles or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcFiles relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcBlockcontentsQuery The current query, for fluid interface + */ + public function joinCcFiles($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcFiles'); + + // 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, 'CcFiles'); + } + + return $this; + } + + /** + * Use the CcFiles relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query + */ + public function useCcFilesQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcFiles($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcFiles', 'CcFilesQuery'); + } + + /** + * Filter the query by a related CcBlock object + * + * @param CcBlock|PropelObjectCollection $ccBlock The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockcontentsQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcBlock($ccBlock, $comparison = null) + { + if ($ccBlock instanceof CcBlock) { + return $this + ->addUsingAlias(CcBlockcontentsPeer::BLOCK_ID, $ccBlock->getDbId(), $comparison); + } elseif ($ccBlock instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcBlockcontentsPeer::BLOCK_ID, $ccBlock->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcBlock() only accepts arguments of type CcBlock or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcBlock relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcBlockcontentsQuery The current query, for fluid interface + */ + public function joinCcBlock($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcBlock'); + + // 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, 'CcBlock'); + } + + return $this; + } + + /** + * Use the CcBlock relation CcBlock 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 CcBlockQuery A secondary query class using the current class as primary query + */ + public function useCcBlockQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcBlock($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcBlock', 'CcBlockQuery'); + } + + /** + * Exclude object from result + * + * @param CcBlockcontents $ccBlockcontents Object to remove from the list of results + * + * @return CcBlockcontentsQuery The current query, for fluid interface + */ + public function prune($ccBlockcontents = null) + { + if ($ccBlockcontents) { + $this->addUsingAlias(CcBlockcontentsPeer::ID, $ccBlockcontents->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } + + /** + * Code to execute before every DELETE statement + * + * @param PropelPDO $con The connection object used by the query + */ + protected function basePreDelete(PropelPDO $con) + { + // aggregate_column_relation behavior + $this->findRelatedCcBlocks($con); + + return $this->preDelete($con); + } + + /** + * Code to execute after every DELETE statement + * + * @param int $affectedRows the number of deleted rows + * @param PropelPDO $con The connection object used by the query + */ + protected function basePostDelete($affectedRows, PropelPDO $con) + { + // aggregate_column_relation behavior + $this->updateRelatedCcBlocks($con); + + return $this->postDelete($affectedRows, $con); + } + + /** + * Code to execute before every UPDATE statement + * + * @param array $values The associative array of columns and values for the update + * @param PropelPDO $con The connection object used by the query + * @param boolean $forceIndividualSaves If false (default), the resulting call is a BasePeer::doUpdate(), otherwise it is a series of save() calls on all the found objects + */ + protected function basePreUpdate(&$values, PropelPDO $con, $forceIndividualSaves = false) + { + // aggregate_column_relation behavior + $this->findRelatedCcBlocks($con); + + return $this->preUpdate($values, $con, $forceIndividualSaves); + } + + /** + * Code to execute after every UPDATE statement + * + * @param int $affectedRows the number of updated rows + * @param PropelPDO $con The connection object used by the query + */ + protected function basePostUpdate($affectedRows, PropelPDO $con) + { + // aggregate_column_relation behavior + $this->updateRelatedCcBlocks($con); + + return $this->postUpdate($affectedRows, $con); + } + + // aggregate_column_relation behavior + + /** + * Finds the related CcBlock objects and keep them for later + * + * @param PropelPDO $con A connection object + */ + protected function findRelatedCcBlocks($con) + { + $criteria = clone $this; + if ($this->useAliasInSQL) { + $alias = $this->getModelAlias(); + $criteria->removeAlias($alias); + } else { + $alias = ''; + } + $this->ccBlocks = CcBlockQuery::create() + ->joinCcBlockcontents($alias) + ->mergeWith($criteria) + ->find($con); + } + + protected function updateRelatedCcBlocks($con) + { + foreach ($this->ccBlocks as $ccBlock) { + $ccBlock->updateDbLength($con); + } + $this->ccBlocks = array(); + } - /** - * Initializes internal state of BaseCcBlockcontentsQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcBlockcontents', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcBlockcontentsQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcBlockcontentsQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcBlockcontentsQuery) { - return $criteria; - } - $query = new CcBlockcontentsQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcBlockcontents|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcBlockcontentsPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcBlockcontentsQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcBlockcontentsPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcBlockcontentsQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcBlockcontentsPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockcontentsQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcBlockcontentsPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the block_id column - * - * @param int|array $dbBlockId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockcontentsQuery The current query, for fluid interface - */ - public function filterByDbBlockId($dbBlockId = null, $comparison = null) - { - if (is_array($dbBlockId)) { - $useMinMax = false; - if (isset($dbBlockId['min'])) { - $this->addUsingAlias(CcBlockcontentsPeer::BLOCK_ID, $dbBlockId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbBlockId['max'])) { - $this->addUsingAlias(CcBlockcontentsPeer::BLOCK_ID, $dbBlockId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcBlockcontentsPeer::BLOCK_ID, $dbBlockId, $comparison); - } - - /** - * Filter the query on the file_id column - * - * @param int|array $dbFileId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockcontentsQuery The current query, for fluid interface - */ - public function filterByDbFileId($dbFileId = null, $comparison = null) - { - if (is_array($dbFileId)) { - $useMinMax = false; - if (isset($dbFileId['min'])) { - $this->addUsingAlias(CcBlockcontentsPeer::FILE_ID, $dbFileId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbFileId['max'])) { - $this->addUsingAlias(CcBlockcontentsPeer::FILE_ID, $dbFileId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcBlockcontentsPeer::FILE_ID, $dbFileId, $comparison); - } - - /** - * Filter the query on the position column - * - * @param int|array $dbPosition The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockcontentsQuery The current query, for fluid interface - */ - public function filterByDbPosition($dbPosition = null, $comparison = null) - { - if (is_array($dbPosition)) { - $useMinMax = false; - if (isset($dbPosition['min'])) { - $this->addUsingAlias(CcBlockcontentsPeer::POSITION, $dbPosition['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbPosition['max'])) { - $this->addUsingAlias(CcBlockcontentsPeer::POSITION, $dbPosition['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcBlockcontentsPeer::POSITION, $dbPosition, $comparison); - } - - /** - * Filter the query on the trackoffset column - * - * @param double|array $dbTrackOffset The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockcontentsQuery The current query, for fluid interface - */ - public function filterByDbTrackOffset($dbTrackOffset = null, $comparison = null) - { - if (is_array($dbTrackOffset)) { - $useMinMax = false; - if (isset($dbTrackOffset['min'])) { - $this->addUsingAlias(CcBlockcontentsPeer::TRACKOFFSET, $dbTrackOffset['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbTrackOffset['max'])) { - $this->addUsingAlias(CcBlockcontentsPeer::TRACKOFFSET, $dbTrackOffset['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcBlockcontentsPeer::TRACKOFFSET, $dbTrackOffset, $comparison); - } - - /** - * Filter the query on the cliplength column - * - * @param string $dbCliplength 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 CcBlockcontentsQuery The current query, for fluid interface - */ - public function filterByDbCliplength($dbCliplength = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbCliplength)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbCliplength)) { - $dbCliplength = str_replace('*', '%', $dbCliplength); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcBlockcontentsPeer::CLIPLENGTH, $dbCliplength, $comparison); - } - - /** - * Filter the query on the cuein column - * - * @param string $dbCuein 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 CcBlockcontentsQuery The current query, for fluid interface - */ - public function filterByDbCuein($dbCuein = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbCuein)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbCuein)) { - $dbCuein = str_replace('*', '%', $dbCuein); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcBlockcontentsPeer::CUEIN, $dbCuein, $comparison); - } - - /** - * Filter the query on the cueout column - * - * @param string $dbCueout 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 CcBlockcontentsQuery The current query, for fluid interface - */ - public function filterByDbCueout($dbCueout = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbCueout)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbCueout)) { - $dbCueout = str_replace('*', '%', $dbCueout); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcBlockcontentsPeer::CUEOUT, $dbCueout, $comparison); - } - - /** - * Filter the query on the fadein column - * - * @param string|array $dbFadein The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockcontentsQuery The current query, for fluid interface - */ - public function filterByDbFadein($dbFadein = null, $comparison = null) - { - if (is_array($dbFadein)) { - $useMinMax = false; - if (isset($dbFadein['min'])) { - $this->addUsingAlias(CcBlockcontentsPeer::FADEIN, $dbFadein['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbFadein['max'])) { - $this->addUsingAlias(CcBlockcontentsPeer::FADEIN, $dbFadein['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcBlockcontentsPeer::FADEIN, $dbFadein, $comparison); - } - - /** - * Filter the query on the fadeout column - * - * @param string|array $dbFadeout The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockcontentsQuery The current query, for fluid interface - */ - public function filterByDbFadeout($dbFadeout = null, $comparison = null) - { - if (is_array($dbFadeout)) { - $useMinMax = false; - if (isset($dbFadeout['min'])) { - $this->addUsingAlias(CcBlockcontentsPeer::FADEOUT, $dbFadeout['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbFadeout['max'])) { - $this->addUsingAlias(CcBlockcontentsPeer::FADEOUT, $dbFadeout['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcBlockcontentsPeer::FADEOUT, $dbFadeout, $comparison); - } - - /** - * Filter the query by a related CcFiles object - * - * @param CcFiles $ccFiles the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockcontentsQuery The current query, for fluid interface - */ - public function filterByCcFiles($ccFiles, $comparison = null) - { - return $this - ->addUsingAlias(CcBlockcontentsPeer::FILE_ID, $ccFiles->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcFiles relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcBlockcontentsQuery The current query, for fluid interface - */ - public function joinCcFiles($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcFiles'); - - // 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, 'CcFiles'); - } - - return $this; - } - - /** - * Use the CcFiles relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query - */ - public function useCcFilesQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcFiles($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcFiles', 'CcFilesQuery'); - } - - /** - * Filter the query by a related CcBlock object - * - * @param CcBlock $ccBlock the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockcontentsQuery The current query, for fluid interface - */ - public function filterByCcBlock($ccBlock, $comparison = null) - { - return $this - ->addUsingAlias(CcBlockcontentsPeer::BLOCK_ID, $ccBlock->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcBlock relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcBlockcontentsQuery The current query, for fluid interface - */ - public function joinCcBlock($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcBlock'); - - // 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, 'CcBlock'); - } - - return $this; - } - - /** - * Use the CcBlock relation CcBlock 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 CcBlockQuery A secondary query class using the current class as primary query - */ - public function useCcBlockQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcBlock($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcBlock', 'CcBlockQuery'); - } - - /** - * Exclude object from result - * - * @param CcBlockcontents $ccBlockcontents Object to remove from the list of results - * - * @return CcBlockcontentsQuery The current query, for fluid interface - */ - public function prune($ccBlockcontents = null) - { - if ($ccBlockcontents) { - $this->addUsingAlias(CcBlockcontentsPeer::ID, $ccBlockcontents->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - - /** - * Code to execute before every DELETE statement - * - * @param PropelPDO $con The connection object used by the query - */ - protected function basePreDelete(PropelPDO $con) - { - // aggregate_column_relation behavior - $this->findRelatedCcBlocks($con); - - return $this->preDelete($con); - } - - /** - * Code to execute after every DELETE statement - * - * @param int $affectedRows the number of deleted rows - * @param PropelPDO $con The connection object used by the query - */ - protected function basePostDelete($affectedRows, PropelPDO $con) - { - // aggregate_column_relation behavior - $this->updateRelatedCcBlocks($con); - - return $this->postDelete($affectedRows, $con); - } - - /** - * Code to execute before every UPDATE statement - * - * @param array $values The associatiove array of columns and values for the update - * @param PropelPDO $con The connection object used by the query - * @param boolean $forceIndividualSaves If false (default), the resulting call is a BasePeer::doUpdate(), ortherwise it is a series of save() calls on all the found objects - */ - protected function basePreUpdate(&$values, PropelPDO $con, $forceIndividualSaves = false) - { - // aggregate_column_relation behavior - $this->findRelatedCcBlocks($con); - - return $this->preUpdate($values, $con, $forceIndividualSaves); - } - - /** - * Code to execute after every UPDATE statement - * - * @param int $affectedRows the number of udated rows - * @param PropelPDO $con The connection object used by the query - */ - protected function basePostUpdate($affectedRows, PropelPDO $con) - { - // aggregate_column_relation behavior - $this->updateRelatedCcBlocks($con); - - return $this->postUpdate($affectedRows, $con); - } - - // aggregate_column_relation behavior - - /** - * Finds the related CcBlock objects and keep them for later - * - * @param PropelPDO $con A connection object - */ - protected function findRelatedCcBlocks($con) - { - $criteria = clone $this; - if ($this->useAliasInSQL) { - $alias = $this->getModelAlias(); - $criteria->removeAlias($alias); - } else { - $alias = ''; - } - $this->ccBlocks = CcBlockQuery::create() - ->joinCcBlockcontents($alias) - ->mergeWith($criteria) - ->find($con); - } - - protected function updateRelatedCcBlocks($con) - { - foreach ($this->ccBlocks as $ccBlock) { - $ccBlock->updateDbLength($con); - } - $this->ccBlocks = array(); - } - -} // BaseCcBlockcontentsQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcBlockcriteria.php b/airtime_mvc/application/models/airtime/om/BaseCcBlockcriteria.php index 2982a3b868..069a8f96ef 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcBlockcriteria.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcBlockcriteria.php @@ -4,998 +4,1160 @@ /** * Base class that represents a row from the 'cc_blockcriteria' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcBlockcriteria extends BaseObject implements Persistent +abstract class BaseCcBlockcriteria extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcBlockcriteriaPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcBlockcriteriaPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the criteria field. - * @var string - */ - protected $criteria; - - /** - * The value for the modifier field. - * @var string - */ - protected $modifier; - - /** - * The value for the value field. - * @var string - */ - protected $value; - - /** - * The value for the extra field. - * @var string - */ - protected $extra; - - /** - * The value for the block_id field. - * @var int - */ - protected $block_id; - - /** - * @var CcBlock - */ - protected $aCcBlock; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [criteria] column value. - * - * @return string - */ - public function getDbCriteria() - { - return $this->criteria; - } - - /** - * Get the [modifier] column value. - * - * @return string - */ - public function getDbModifier() - { - return $this->modifier; - } - - /** - * Get the [value] column value. - * - * @return string - */ - public function getDbValue() - { - return $this->value; - } - - /** - * Get the [extra] column value. - * - * @return string - */ - public function getDbExtra() - { - return $this->extra; - } - - /** - * Get the [block_id] column value. - * - * @return int - */ - public function getDbBlockId() - { - return $this->block_id; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcBlockcriteria The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcBlockcriteriaPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [criteria] column. - * - * @param string $v new value - * @return CcBlockcriteria The current object (for fluent API support) - */ - public function setDbCriteria($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->criteria !== $v) { - $this->criteria = $v; - $this->modifiedColumns[] = CcBlockcriteriaPeer::CRITERIA; - } - - return $this; - } // setDbCriteria() - - /** - * Set the value of [modifier] column. - * - * @param string $v new value - * @return CcBlockcriteria The current object (for fluent API support) - */ - public function setDbModifier($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->modifier !== $v) { - $this->modifier = $v; - $this->modifiedColumns[] = CcBlockcriteriaPeer::MODIFIER; - } - - return $this; - } // setDbModifier() - - /** - * Set the value of [value] column. - * - * @param string $v new value - * @return CcBlockcriteria The current object (for fluent API support) - */ - public function setDbValue($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->value !== $v) { - $this->value = $v; - $this->modifiedColumns[] = CcBlockcriteriaPeer::VALUE; - } - - return $this; - } // setDbValue() - - /** - * Set the value of [extra] column. - * - * @param string $v new value - * @return CcBlockcriteria The current object (for fluent API support) - */ - public function setDbExtra($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->extra !== $v) { - $this->extra = $v; - $this->modifiedColumns[] = CcBlockcriteriaPeer::EXTRA; - } - - return $this; - } // setDbExtra() - - /** - * Set the value of [block_id] column. - * - * @param int $v new value - * @return CcBlockcriteria The current object (for fluent API support) - */ - public function setDbBlockId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->block_id !== $v) { - $this->block_id = $v; - $this->modifiedColumns[] = CcBlockcriteriaPeer::BLOCK_ID; - } - - if ($this->aCcBlock !== null && $this->aCcBlock->getDbId() !== $v) { - $this->aCcBlock = null; - } - - return $this; - } // setDbBlockId() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->criteria = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->modifier = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->value = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->extra = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; - $this->block_id = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 6; // 6 = CcBlockcriteriaPeer::NUM_COLUMNS - CcBlockcriteriaPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcBlockcriteria object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcBlock !== null && $this->block_id !== $this->aCcBlock->getDbId()) { - $this->aCcBlock = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcBlockcriteriaPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcBlock = null; - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcBlockcriteriaQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcBlockcriteriaPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcBlock !== null) { - if ($this->aCcBlock->isModified() || $this->aCcBlock->isNew()) { - $affectedRows += $this->aCcBlock->save($con); - } - $this->setCcBlock($this->aCcBlock); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcBlockcriteriaPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcBlockcriteriaPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcBlockcriteriaPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcBlockcriteriaPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcBlock !== null) { - if (!$this->aCcBlock->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcBlock->getValidationFailures()); - } - } - - - if (($retval = CcBlockcriteriaPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcBlockcriteriaPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbCriteria(); - break; - case 2: - return $this->getDbModifier(); - break; - case 3: - return $this->getDbValue(); - break; - case 4: - return $this->getDbExtra(); - break; - case 5: - return $this->getDbBlockId(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcBlockcriteriaPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbCriteria(), - $keys[2] => $this->getDbModifier(), - $keys[3] => $this->getDbValue(), - $keys[4] => $this->getDbExtra(), - $keys[5] => $this->getDbBlockId(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcBlock) { - $result['CcBlock'] = $this->aCcBlock->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcBlockcriteriaPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbCriteria($value); - break; - case 2: - $this->setDbModifier($value); - break; - case 3: - $this->setDbValue($value); - break; - case 4: - $this->setDbExtra($value); - break; - case 5: - $this->setDbBlockId($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcBlockcriteriaPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbCriteria($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbModifier($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbValue($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbExtra($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setDbBlockId($arr[$keys[5]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcBlockcriteriaPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcBlockcriteriaPeer::ID)) $criteria->add(CcBlockcriteriaPeer::ID, $this->id); - if ($this->isColumnModified(CcBlockcriteriaPeer::CRITERIA)) $criteria->add(CcBlockcriteriaPeer::CRITERIA, $this->criteria); - if ($this->isColumnModified(CcBlockcriteriaPeer::MODIFIER)) $criteria->add(CcBlockcriteriaPeer::MODIFIER, $this->modifier); - if ($this->isColumnModified(CcBlockcriteriaPeer::VALUE)) $criteria->add(CcBlockcriteriaPeer::VALUE, $this->value); - if ($this->isColumnModified(CcBlockcriteriaPeer::EXTRA)) $criteria->add(CcBlockcriteriaPeer::EXTRA, $this->extra); - if ($this->isColumnModified(CcBlockcriteriaPeer::BLOCK_ID)) $criteria->add(CcBlockcriteriaPeer::BLOCK_ID, $this->block_id); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcBlockcriteriaPeer::DATABASE_NAME); - $criteria->add(CcBlockcriteriaPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcBlockcriteria (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbCriteria($this->criteria); - $copyObj->setDbModifier($this->modifier); - $copyObj->setDbValue($this->value); - $copyObj->setDbExtra($this->extra); - $copyObj->setDbBlockId($this->block_id); - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcBlockcriteria Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcBlockcriteriaPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcBlockcriteriaPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcBlock object. - * - * @param CcBlock $v - * @return CcBlockcriteria The current object (for fluent API support) - * @throws PropelException - */ - public function setCcBlock(CcBlock $v = null) - { - if ($v === null) { - $this->setDbBlockId(NULL); - } else { - $this->setDbBlockId($v->getDbId()); - } - - $this->aCcBlock = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcBlock object, it will not be re-added. - if ($v !== null) { - $v->addCcBlockcriteria($this); - } - - return $this; - } - - - /** - * Get the associated CcBlock object - * - * @param PropelPDO Optional Connection object. - * @return CcBlock The associated CcBlock object. - * @throws PropelException - */ - public function getCcBlock(PropelPDO $con = null) - { - if ($this->aCcBlock === null && ($this->block_id !== null)) { - $this->aCcBlock = CcBlockQuery::create()->findPk($this->block_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcBlock->addCcBlockcriterias($this); - */ - } - return $this->aCcBlock; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->criteria = null; - $this->modifier = null; - $this->value = null; - $this->extra = null; - $this->block_id = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - $this->aCcBlock = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcBlockcriteria + /** + * Peer class name + */ + const PEER = 'CcBlockcriteriaPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcBlockcriteriaPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the criteria field. + * @var string + */ + protected $criteria; + + /** + * The value for the modifier field. + * @var string + */ + protected $modifier; + + /** + * The value for the value field. + * @var string + */ + protected $value; + + /** + * The value for the extra field. + * @var string + */ + protected $extra; + + /** + * The value for the block_id field. + * @var int + */ + protected $block_id; + + /** + * @var CcBlock + */ + protected $aCcBlock; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [criteria] column value. + * + * @return string + */ + public function getDbCriteria() + { + + return $this->criteria; + } + + /** + * Get the [modifier] column value. + * + * @return string + */ + public function getDbModifier() + { + + return $this->modifier; + } + + /** + * Get the [value] column value. + * + * @return string + */ + public function getDbValue() + { + + return $this->value; + } + + /** + * Get the [extra] column value. + * + * @return string + */ + public function getDbExtra() + { + + return $this->extra; + } + + /** + * Get the [block_id] column value. + * + * @return int + */ + public function getDbBlockId() + { + + return $this->block_id; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcBlockcriteria The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcBlockcriteriaPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [criteria] column. + * + * @param string $v new value + * @return CcBlockcriteria The current object (for fluent API support) + */ + public function setDbCriteria($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->criteria !== $v) { + $this->criteria = $v; + $this->modifiedColumns[] = CcBlockcriteriaPeer::CRITERIA; + } + + + return $this; + } // setDbCriteria() + + /** + * Set the value of [modifier] column. + * + * @param string $v new value + * @return CcBlockcriteria The current object (for fluent API support) + */ + public function setDbModifier($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->modifier !== $v) { + $this->modifier = $v; + $this->modifiedColumns[] = CcBlockcriteriaPeer::MODIFIER; + } + + + return $this; + } // setDbModifier() + + /** + * Set the value of [value] column. + * + * @param string $v new value + * @return CcBlockcriteria The current object (for fluent API support) + */ + public function setDbValue($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->value !== $v) { + $this->value = $v; + $this->modifiedColumns[] = CcBlockcriteriaPeer::VALUE; + } + + + return $this; + } // setDbValue() + + /** + * Set the value of [extra] column. + * + * @param string $v new value + * @return CcBlockcriteria The current object (for fluent API support) + */ + public function setDbExtra($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->extra !== $v) { + $this->extra = $v; + $this->modifiedColumns[] = CcBlockcriteriaPeer::EXTRA; + } + + + return $this; + } // setDbExtra() + + /** + * Set the value of [block_id] column. + * + * @param int $v new value + * @return CcBlockcriteria The current object (for fluent API support) + */ + public function setDbBlockId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->block_id !== $v) { + $this->block_id = $v; + $this->modifiedColumns[] = CcBlockcriteriaPeer::BLOCK_ID; + } + + if ($this->aCcBlock !== null && $this->aCcBlock->getDbId() !== $v) { + $this->aCcBlock = null; + } + + + return $this; + } // setDbBlockId() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->criteria = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->modifier = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->value = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->extra = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; + $this->block_id = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 6; // 6 = CcBlockcriteriaPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcBlockcriteria object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcBlock !== null && $this->block_id !== $this->aCcBlock->getDbId()) { + $this->aCcBlock = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcBlockcriteriaPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcBlock = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcBlockcriteriaQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcBlockcriteriaPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcBlock !== null) { + if ($this->aCcBlock->isModified() || $this->aCcBlock->isNew()) { + $affectedRows += $this->aCcBlock->save($con); + } + $this->setCcBlock($this->aCcBlock); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcBlockcriteriaPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcBlockcriteriaPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_blockcriteria_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcBlockcriteriaPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcBlockcriteriaPeer::CRITERIA)) { + $modifiedColumns[':p' . $index++] = '"criteria"'; + } + if ($this->isColumnModified(CcBlockcriteriaPeer::MODIFIER)) { + $modifiedColumns[':p' . $index++] = '"modifier"'; + } + if ($this->isColumnModified(CcBlockcriteriaPeer::VALUE)) { + $modifiedColumns[':p' . $index++] = '"value"'; + } + if ($this->isColumnModified(CcBlockcriteriaPeer::EXTRA)) { + $modifiedColumns[':p' . $index++] = '"extra"'; + } + if ($this->isColumnModified(CcBlockcriteriaPeer::BLOCK_ID)) { + $modifiedColumns[':p' . $index++] = '"block_id"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_blockcriteria" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"criteria"': + $stmt->bindValue($identifier, $this->criteria, PDO::PARAM_STR); + break; + case '"modifier"': + $stmt->bindValue($identifier, $this->modifier, PDO::PARAM_STR); + break; + case '"value"': + $stmt->bindValue($identifier, $this->value, PDO::PARAM_STR); + break; + case '"extra"': + $stmt->bindValue($identifier, $this->extra, PDO::PARAM_STR); + break; + case '"block_id"': + $stmt->bindValue($identifier, $this->block_id, PDO::PARAM_INT); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcBlock !== null) { + if (!$this->aCcBlock->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcBlock->getValidationFailures()); + } + } + + + if (($retval = CcBlockcriteriaPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcBlockcriteriaPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbCriteria(); + break; + case 2: + return $this->getDbModifier(); + break; + case 3: + return $this->getDbValue(); + break; + case 4: + return $this->getDbExtra(); + break; + case 5: + return $this->getDbBlockId(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcBlockcriteria'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcBlockcriteria'][$this->getPrimaryKey()] = true; + $keys = CcBlockcriteriaPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbCriteria(), + $keys[2] => $this->getDbModifier(), + $keys[3] => $this->getDbValue(), + $keys[4] => $this->getDbExtra(), + $keys[5] => $this->getDbBlockId(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcBlock) { + $result['CcBlock'] = $this->aCcBlock->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcBlockcriteriaPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbCriteria($value); + break; + case 2: + $this->setDbModifier($value); + break; + case 3: + $this->setDbValue($value); + break; + case 4: + $this->setDbExtra($value); + break; + case 5: + $this->setDbBlockId($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcBlockcriteriaPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbCriteria($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbModifier($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbValue($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbExtra($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDbBlockId($arr[$keys[5]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcBlockcriteriaPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcBlockcriteriaPeer::ID)) $criteria->add(CcBlockcriteriaPeer::ID, $this->id); + if ($this->isColumnModified(CcBlockcriteriaPeer::CRITERIA)) $criteria->add(CcBlockcriteriaPeer::CRITERIA, $this->criteria); + if ($this->isColumnModified(CcBlockcriteriaPeer::MODIFIER)) $criteria->add(CcBlockcriteriaPeer::MODIFIER, $this->modifier); + if ($this->isColumnModified(CcBlockcriteriaPeer::VALUE)) $criteria->add(CcBlockcriteriaPeer::VALUE, $this->value); + if ($this->isColumnModified(CcBlockcriteriaPeer::EXTRA)) $criteria->add(CcBlockcriteriaPeer::EXTRA, $this->extra); + if ($this->isColumnModified(CcBlockcriteriaPeer::BLOCK_ID)) $criteria->add(CcBlockcriteriaPeer::BLOCK_ID, $this->block_id); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcBlockcriteriaPeer::DATABASE_NAME); + $criteria->add(CcBlockcriteriaPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcBlockcriteria (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbCriteria($this->getDbCriteria()); + $copyObj->setDbModifier($this->getDbModifier()); + $copyObj->setDbValue($this->getDbValue()); + $copyObj->setDbExtra($this->getDbExtra()); + $copyObj->setDbBlockId($this->getDbBlockId()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcBlockcriteria Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcBlockcriteriaPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcBlockcriteriaPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcBlock object. + * + * @param CcBlock $v + * @return CcBlockcriteria The current object (for fluent API support) + * @throws PropelException + */ + public function setCcBlock(CcBlock $v = null) + { + if ($v === null) { + $this->setDbBlockId(NULL); + } else { + $this->setDbBlockId($v->getDbId()); + } + + $this->aCcBlock = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcBlock object, it will not be re-added. + if ($v !== null) { + $v->addCcBlockcriteria($this); + } + + + return $this; + } + + + /** + * Get the associated CcBlock object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcBlock The associated CcBlock object. + * @throws PropelException + */ + public function getCcBlock(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcBlock === null && ($this->block_id !== null) && $doQuery) { + $this->aCcBlock = CcBlockQuery::create()->findPk($this->block_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcBlock->addCcBlockcriterias($this); + */ + } + + return $this->aCcBlock; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->criteria = null; + $this->modifier = null; + $this->value = null; + $this->extra = null; + $this->block_id = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcBlock instanceof Persistent) { + $this->aCcBlock->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcBlock = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcBlockcriteriaPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcBlockcriteriaPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcBlockcriteriaPeer.php index a523024ad2..00024dfa6c 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcBlockcriteriaPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcBlockcriteriaPeer.php @@ -4,986 +4,1012 @@ /** * Base static class for performing query and update operations on the 'cc_blockcriteria' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcBlockcriteriaPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_blockcriteria'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcBlockcriteria'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcBlockcriteria'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcBlockcriteriaTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 6; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_blockcriteria.ID'; - - /** the column name for the CRITERIA field */ - const CRITERIA = 'cc_blockcriteria.CRITERIA'; - - /** the column name for the MODIFIER field */ - const MODIFIER = 'cc_blockcriteria.MODIFIER'; - - /** the column name for the VALUE field */ - const VALUE = 'cc_blockcriteria.VALUE'; - - /** the column name for the EXTRA field */ - const EXTRA = 'cc_blockcriteria.EXTRA'; - - /** the column name for the BLOCK_ID field */ - const BLOCK_ID = 'cc_blockcriteria.BLOCK_ID'; - - /** - * An identiy map to hold any loaded instances of CcBlockcriteria objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcBlockcriteria[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbCriteria', 'DbModifier', 'DbValue', 'DbExtra', 'DbBlockId', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbCriteria', 'dbModifier', 'dbValue', 'dbExtra', 'dbBlockId', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::CRITERIA, self::MODIFIER, self::VALUE, self::EXTRA, self::BLOCK_ID, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'CRITERIA', 'MODIFIER', 'VALUE', 'EXTRA', 'BLOCK_ID', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'criteria', 'modifier', 'value', 'extra', 'block_id', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbCriteria' => 1, 'DbModifier' => 2, 'DbValue' => 3, 'DbExtra' => 4, 'DbBlockId' => 5, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbCriteria' => 1, 'dbModifier' => 2, 'dbValue' => 3, 'dbExtra' => 4, 'dbBlockId' => 5, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::CRITERIA => 1, self::MODIFIER => 2, self::VALUE => 3, self::EXTRA => 4, self::BLOCK_ID => 5, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'CRITERIA' => 1, 'MODIFIER' => 2, 'VALUE' => 3, 'EXTRA' => 4, 'BLOCK_ID' => 5, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'criteria' => 1, 'modifier' => 2, 'value' => 3, 'extra' => 4, 'block_id' => 5, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcBlockcriteriaPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcBlockcriteriaPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcBlockcriteriaPeer::ID); - $criteria->addSelectColumn(CcBlockcriteriaPeer::CRITERIA); - $criteria->addSelectColumn(CcBlockcriteriaPeer::MODIFIER); - $criteria->addSelectColumn(CcBlockcriteriaPeer::VALUE); - $criteria->addSelectColumn(CcBlockcriteriaPeer::EXTRA); - $criteria->addSelectColumn(CcBlockcriteriaPeer::BLOCK_ID); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.CRITERIA'); - $criteria->addSelectColumn($alias . '.MODIFIER'); - $criteria->addSelectColumn($alias . '.VALUE'); - $criteria->addSelectColumn($alias . '.EXTRA'); - $criteria->addSelectColumn($alias . '.BLOCK_ID'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcBlockcriteriaPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcBlockcriteriaPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcBlockcriteria - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcBlockcriteriaPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcBlockcriteriaPeer::populateObjects(CcBlockcriteriaPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcBlockcriteriaPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcBlockcriteria $value A CcBlockcriteria object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcBlockcriteria $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcBlockcriteria object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcBlockcriteria) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcBlockcriteria object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcBlockcriteria Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_blockcriteria - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcBlockcriteriaPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcBlockcriteriaPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcBlockcriteriaPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcBlockcriteriaPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcBlockcriteria object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcBlockcriteriaPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcBlockcriteriaPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcBlockcriteriaPeer::NUM_COLUMNS; - } else { - $cls = CcBlockcriteriaPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcBlockcriteriaPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcBlock table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcBlock(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcBlockcriteriaPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcBlockcriteriaPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcBlockcriteriaPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcBlockcriteria objects pre-filled with their CcBlock objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcBlockcriteria objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcBlock(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcBlockcriteriaPeer::addSelectColumns($criteria); - $startcol = (CcBlockcriteriaPeer::NUM_COLUMNS - CcBlockcriteriaPeer::NUM_LAZY_LOAD_COLUMNS); - CcBlockPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcBlockcriteriaPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcBlockcriteriaPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcBlockcriteriaPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcBlockcriteriaPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcBlockcriteriaPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcBlockPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcBlockPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcBlockPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcBlockcriteria) to $obj2 (CcBlock) - $obj2->addCcBlockcriteria($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcBlockcriteriaPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcBlockcriteriaPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcBlockcriteriaPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcBlockcriteria objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcBlockcriteria objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcBlockcriteriaPeer::addSelectColumns($criteria); - $startcol2 = (CcBlockcriteriaPeer::NUM_COLUMNS - CcBlockcriteriaPeer::NUM_LAZY_LOAD_COLUMNS); - - CcBlockPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcBlockPeer::NUM_COLUMNS - CcBlockPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcBlockcriteriaPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcBlockcriteriaPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcBlockcriteriaPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcBlockcriteriaPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcBlockcriteriaPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcBlock rows - - $key2 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcBlockPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcBlockPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcBlockPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcBlockcriteria) to the collection in $obj2 (CcBlock) - $obj2->addCcBlockcriteria($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcBlockcriteriaPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcBlockcriteriaPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcBlockcriteriaTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcBlockcriteriaPeer::CLASS_DEFAULT : CcBlockcriteriaPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcBlockcriteria or Criteria object. - * - * @param mixed $values Criteria or CcBlockcriteria object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcBlockcriteria object - } - - if ($criteria->containsKey(CcBlockcriteriaPeer::ID) && $criteria->keyContainsValue(CcBlockcriteriaPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcBlockcriteriaPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcBlockcriteria or Criteria object. - * - * @param mixed $values Criteria or CcBlockcriteria object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcBlockcriteriaPeer::ID); - $value = $criteria->remove(CcBlockcriteriaPeer::ID); - if ($value) { - $selectCriteria->add(CcBlockcriteriaPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcBlockcriteriaPeer::TABLE_NAME); - } - - } else { // $values is CcBlockcriteria object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_blockcriteria table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcBlockcriteriaPeer::TABLE_NAME, $con, CcBlockcriteriaPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcBlockcriteriaPeer::clearInstancePool(); - CcBlockcriteriaPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcBlockcriteria or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcBlockcriteria object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcBlockcriteriaPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcBlockcriteria) { // it's a model object - // invalidate the cache for this single object - CcBlockcriteriaPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcBlockcriteriaPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcBlockcriteriaPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcBlockcriteriaPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcBlockcriteria object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcBlockcriteria $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcBlockcriteria $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcBlockcriteriaPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcBlockcriteriaPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcBlockcriteriaPeer::DATABASE_NAME, CcBlockcriteriaPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcBlockcriteria - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcBlockcriteriaPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcBlockcriteriaPeer::DATABASE_NAME); - $criteria->add(CcBlockcriteriaPeer::ID, $pk); - - $v = CcBlockcriteriaPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcBlockcriteriaPeer::DATABASE_NAME); - $criteria->add(CcBlockcriteriaPeer::ID, $pks, Criteria::IN); - $objs = CcBlockcriteriaPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcBlockcriteriaPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_blockcriteria'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcBlockcriteria'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcBlockcriteriaTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 6; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 6; + + /** the column name for the id field */ + const ID = 'cc_blockcriteria.id'; + + /** the column name for the criteria field */ + const CRITERIA = 'cc_blockcriteria.criteria'; + + /** the column name for the modifier field */ + const MODIFIER = 'cc_blockcriteria.modifier'; + + /** the column name for the value field */ + const VALUE = 'cc_blockcriteria.value'; + + /** the column name for the extra field */ + const EXTRA = 'cc_blockcriteria.extra'; + + /** the column name for the block_id field */ + const BLOCK_ID = 'cc_blockcriteria.block_id'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcBlockcriteria objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcBlockcriteria[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcBlockcriteriaPeer::$fieldNames[CcBlockcriteriaPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbCriteria', 'DbModifier', 'DbValue', 'DbExtra', 'DbBlockId', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbCriteria', 'dbModifier', 'dbValue', 'dbExtra', 'dbBlockId', ), + BasePeer::TYPE_COLNAME => array (CcBlockcriteriaPeer::ID, CcBlockcriteriaPeer::CRITERIA, CcBlockcriteriaPeer::MODIFIER, CcBlockcriteriaPeer::VALUE, CcBlockcriteriaPeer::EXTRA, CcBlockcriteriaPeer::BLOCK_ID, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'CRITERIA', 'MODIFIER', 'VALUE', 'EXTRA', 'BLOCK_ID', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'criteria', 'modifier', 'value', 'extra', 'block_id', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcBlockcriteriaPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbCriteria' => 1, 'DbModifier' => 2, 'DbValue' => 3, 'DbExtra' => 4, 'DbBlockId' => 5, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbCriteria' => 1, 'dbModifier' => 2, 'dbValue' => 3, 'dbExtra' => 4, 'dbBlockId' => 5, ), + BasePeer::TYPE_COLNAME => array (CcBlockcriteriaPeer::ID => 0, CcBlockcriteriaPeer::CRITERIA => 1, CcBlockcriteriaPeer::MODIFIER => 2, CcBlockcriteriaPeer::VALUE => 3, CcBlockcriteriaPeer::EXTRA => 4, CcBlockcriteriaPeer::BLOCK_ID => 5, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'CRITERIA' => 1, 'MODIFIER' => 2, 'VALUE' => 3, 'EXTRA' => 4, 'BLOCK_ID' => 5, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'criteria' => 1, 'modifier' => 2, 'value' => 3, 'extra' => 4, 'block_id' => 5, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcBlockcriteriaPeer::getFieldNames($toType); + $key = isset(CcBlockcriteriaPeer::$fieldKeys[$fromType][$name]) ? CcBlockcriteriaPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcBlockcriteriaPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcBlockcriteriaPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcBlockcriteriaPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcBlockcriteriaPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcBlockcriteriaPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcBlockcriteriaPeer::ID); + $criteria->addSelectColumn(CcBlockcriteriaPeer::CRITERIA); + $criteria->addSelectColumn(CcBlockcriteriaPeer::MODIFIER); + $criteria->addSelectColumn(CcBlockcriteriaPeer::VALUE); + $criteria->addSelectColumn(CcBlockcriteriaPeer::EXTRA); + $criteria->addSelectColumn(CcBlockcriteriaPeer::BLOCK_ID); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.criteria'); + $criteria->addSelectColumn($alias . '.modifier'); + $criteria->addSelectColumn($alias . '.value'); + $criteria->addSelectColumn($alias . '.extra'); + $criteria->addSelectColumn($alias . '.block_id'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcBlockcriteriaPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcBlockcriteriaPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcBlockcriteriaPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcBlockcriteria + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcBlockcriteriaPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcBlockcriteriaPeer::populateObjects(CcBlockcriteriaPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcBlockcriteriaPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcBlockcriteriaPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcBlockcriteria $obj A CcBlockcriteria object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcBlockcriteriaPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcBlockcriteria object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcBlockcriteria) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcBlockcriteria object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcBlockcriteriaPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcBlockcriteria Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcBlockcriteriaPeer::$instances[$key])) { + return CcBlockcriteriaPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcBlockcriteriaPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcBlockcriteriaPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_blockcriteria + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcBlockcriteriaPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcBlockcriteriaPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcBlockcriteriaPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcBlockcriteriaPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcBlockcriteria object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcBlockcriteriaPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcBlockcriteriaPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcBlockcriteriaPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcBlockcriteriaPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcBlockcriteriaPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcBlock table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcBlock(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcBlockcriteriaPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcBlockcriteriaPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcBlockcriteriaPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcBlockcriteriaPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcBlockcriteria objects pre-filled with their CcBlock objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcBlockcriteria objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcBlock(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcBlockcriteriaPeer::DATABASE_NAME); + } + + CcBlockcriteriaPeer::addSelectColumns($criteria); + $startcol = CcBlockcriteriaPeer::NUM_HYDRATE_COLUMNS; + CcBlockPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcBlockcriteriaPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcBlockcriteriaPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcBlockcriteriaPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcBlockcriteriaPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcBlockcriteriaPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcBlockPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcBlockPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcBlockPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcBlockcriteria) to $obj2 (CcBlock) + $obj2->addCcBlockcriteria($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcBlockcriteriaPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcBlockcriteriaPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcBlockcriteriaPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcBlockcriteriaPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcBlockcriteria objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcBlockcriteria objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcBlockcriteriaPeer::DATABASE_NAME); + } + + CcBlockcriteriaPeer::addSelectColumns($criteria); + $startcol2 = CcBlockcriteriaPeer::NUM_HYDRATE_COLUMNS; + + CcBlockPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcBlockPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcBlockcriteriaPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcBlockcriteriaPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcBlockcriteriaPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcBlockcriteriaPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcBlockcriteriaPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcBlock rows + + $key2 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcBlockPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcBlockPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcBlockPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcBlockcriteria) to the collection in $obj2 (CcBlock) + $obj2->addCcBlockcriteria($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcBlockcriteriaPeer::DATABASE_NAME)->getTable(CcBlockcriteriaPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcBlockcriteriaPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcBlockcriteriaPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcBlockcriteriaTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcBlockcriteriaPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcBlockcriteria or Criteria object. + * + * @param mixed $values Criteria or CcBlockcriteria object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcBlockcriteria object + } + + if ($criteria->containsKey(CcBlockcriteriaPeer::ID) && $criteria->keyContainsValue(CcBlockcriteriaPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcBlockcriteriaPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcBlockcriteriaPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcBlockcriteria or Criteria object. + * + * @param mixed $values Criteria or CcBlockcriteria object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcBlockcriteriaPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcBlockcriteriaPeer::ID); + $value = $criteria->remove(CcBlockcriteriaPeer::ID); + if ($value) { + $selectCriteria->add(CcBlockcriteriaPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcBlockcriteriaPeer::TABLE_NAME); + } + + } else { // $values is CcBlockcriteria object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcBlockcriteriaPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_blockcriteria table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcBlockcriteriaPeer::TABLE_NAME, $con, CcBlockcriteriaPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcBlockcriteriaPeer::clearInstancePool(); + CcBlockcriteriaPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcBlockcriteria or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcBlockcriteria object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcBlockcriteriaPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcBlockcriteria) { // it's a model object + // invalidate the cache for this single object + CcBlockcriteriaPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcBlockcriteriaPeer::DATABASE_NAME); + $criteria->add(CcBlockcriteriaPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcBlockcriteriaPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcBlockcriteriaPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcBlockcriteriaPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcBlockcriteria object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcBlockcriteria $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcBlockcriteriaPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcBlockcriteriaPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcBlockcriteriaPeer::DATABASE_NAME, CcBlockcriteriaPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcBlockcriteria + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcBlockcriteriaPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcBlockcriteriaPeer::DATABASE_NAME); + $criteria->add(CcBlockcriteriaPeer::ID, $pk); + + $v = CcBlockcriteriaPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcBlockcriteria[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcBlockcriteriaPeer::DATABASE_NAME); + $criteria->add(CcBlockcriteriaPeer::ID, $pks, Criteria::IN); + $objs = CcBlockcriteriaPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcBlockcriteriaPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcBlockcriteriaQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcBlockcriteriaQuery.php index 9baabbd742..c91212458c 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcBlockcriteriaQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcBlockcriteriaQuery.php @@ -4,369 +4,533 @@ /** * Base class that represents a query for the 'cc_blockcriteria' table. * - * * - * @method CcBlockcriteriaQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcBlockcriteriaQuery orderByDbCriteria($order = Criteria::ASC) Order by the criteria column - * @method CcBlockcriteriaQuery orderByDbModifier($order = Criteria::ASC) Order by the modifier column - * @method CcBlockcriteriaQuery orderByDbValue($order = Criteria::ASC) Order by the value column - * @method CcBlockcriteriaQuery orderByDbExtra($order = Criteria::ASC) Order by the extra column - * @method CcBlockcriteriaQuery orderByDbBlockId($order = Criteria::ASC) Order by the block_id column * - * @method CcBlockcriteriaQuery groupByDbId() Group by the id column - * @method CcBlockcriteriaQuery groupByDbCriteria() Group by the criteria column - * @method CcBlockcriteriaQuery groupByDbModifier() Group by the modifier column - * @method CcBlockcriteriaQuery groupByDbValue() Group by the value column - * @method CcBlockcriteriaQuery groupByDbExtra() Group by the extra column - * @method CcBlockcriteriaQuery groupByDbBlockId() Group by the block_id column + * @method CcBlockcriteriaQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcBlockcriteriaQuery orderByDbCriteria($order = Criteria::ASC) Order by the criteria column + * @method CcBlockcriteriaQuery orderByDbModifier($order = Criteria::ASC) Order by the modifier column + * @method CcBlockcriteriaQuery orderByDbValue($order = Criteria::ASC) Order by the value column + * @method CcBlockcriteriaQuery orderByDbExtra($order = Criteria::ASC) Order by the extra column + * @method CcBlockcriteriaQuery orderByDbBlockId($order = Criteria::ASC) Order by the block_id column * - * @method CcBlockcriteriaQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcBlockcriteriaQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcBlockcriteriaQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcBlockcriteriaQuery groupByDbId() Group by the id column + * @method CcBlockcriteriaQuery groupByDbCriteria() Group by the criteria column + * @method CcBlockcriteriaQuery groupByDbModifier() Group by the modifier column + * @method CcBlockcriteriaQuery groupByDbValue() Group by the value column + * @method CcBlockcriteriaQuery groupByDbExtra() Group by the extra column + * @method CcBlockcriteriaQuery groupByDbBlockId() Group by the block_id column * - * @method CcBlockcriteriaQuery leftJoinCcBlock($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcBlock relation - * @method CcBlockcriteriaQuery rightJoinCcBlock($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcBlock relation - * @method CcBlockcriteriaQuery innerJoinCcBlock($relationAlias = '') Adds a INNER JOIN clause to the query using the CcBlock relation + * @method CcBlockcriteriaQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcBlockcriteriaQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcBlockcriteriaQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcBlockcriteria findOne(PropelPDO $con = null) Return the first CcBlockcriteria matching the query - * @method CcBlockcriteria findOneOrCreate(PropelPDO $con = null) Return the first CcBlockcriteria matching the query, or a new CcBlockcriteria object populated from the query conditions when no match is found + * @method CcBlockcriteriaQuery leftJoinCcBlock($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcBlock relation + * @method CcBlockcriteriaQuery rightJoinCcBlock($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcBlock relation + * @method CcBlockcriteriaQuery innerJoinCcBlock($relationAlias = null) Adds a INNER JOIN clause to the query using the CcBlock relation * - * @method CcBlockcriteria findOneByDbId(int $id) Return the first CcBlockcriteria filtered by the id column - * @method CcBlockcriteria findOneByDbCriteria(string $criteria) Return the first CcBlockcriteria filtered by the criteria column - * @method CcBlockcriteria findOneByDbModifier(string $modifier) Return the first CcBlockcriteria filtered by the modifier column - * @method CcBlockcriteria findOneByDbValue(string $value) Return the first CcBlockcriteria filtered by the value column - * @method CcBlockcriteria findOneByDbExtra(string $extra) Return the first CcBlockcriteria filtered by the extra column - * @method CcBlockcriteria findOneByDbBlockId(int $block_id) Return the first CcBlockcriteria filtered by the block_id column + * @method CcBlockcriteria findOne(PropelPDO $con = null) Return the first CcBlockcriteria matching the query + * @method CcBlockcriteria findOneOrCreate(PropelPDO $con = null) Return the first CcBlockcriteria matching the query, or a new CcBlockcriteria object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcBlockcriteria objects filtered by the id column - * @method array findByDbCriteria(string $criteria) Return CcBlockcriteria objects filtered by the criteria column - * @method array findByDbModifier(string $modifier) Return CcBlockcriteria objects filtered by the modifier column - * @method array findByDbValue(string $value) Return CcBlockcriteria objects filtered by the value column - * @method array findByDbExtra(string $extra) Return CcBlockcriteria objects filtered by the extra column - * @method array findByDbBlockId(int $block_id) Return CcBlockcriteria objects filtered by the block_id column + * @method CcBlockcriteria findOneByDbCriteria(string $criteria) Return the first CcBlockcriteria filtered by the criteria column + * @method CcBlockcriteria findOneByDbModifier(string $modifier) Return the first CcBlockcriteria filtered by the modifier column + * @method CcBlockcriteria findOneByDbValue(string $value) Return the first CcBlockcriteria filtered by the value column + * @method CcBlockcriteria findOneByDbExtra(string $extra) Return the first CcBlockcriteria filtered by the extra column + * @method CcBlockcriteria findOneByDbBlockId(int $block_id) Return the first CcBlockcriteria filtered by the block_id column + * + * @method array findByDbId(int $id) Return CcBlockcriteria objects filtered by the id column + * @method array findByDbCriteria(string $criteria) Return CcBlockcriteria objects filtered by the criteria column + * @method array findByDbModifier(string $modifier) Return CcBlockcriteria objects filtered by the modifier column + * @method array findByDbValue(string $value) Return CcBlockcriteria objects filtered by the value column + * @method array findByDbExtra(string $extra) Return CcBlockcriteria objects filtered by the extra column + * @method array findByDbBlockId(int $block_id) Return CcBlockcriteria objects filtered by the block_id column * * @package propel.generator.airtime.om */ abstract class BaseCcBlockcriteriaQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcBlockcriteriaQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcBlockcriteria'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcBlockcriteriaQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcBlockcriteriaQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcBlockcriteriaQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcBlockcriteriaQuery) { + return $criteria; + } + $query = new CcBlockcriteriaQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcBlockcriteria|CcBlockcriteria[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcBlockcriteriaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcBlockcriteriaPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcBlockcriteria A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcBlockcriteria A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "criteria", "modifier", "value", "extra", "block_id" FROM "cc_blockcriteria" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcBlockcriteria(); + $obj->hydrate($row); + CcBlockcriteriaPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcBlockcriteria|CcBlockcriteria[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcBlockcriteria[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcBlockcriteriaQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcBlockcriteriaPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcBlockcriteriaQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcBlockcriteriaPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockcriteriaQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcBlockcriteriaPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcBlockcriteriaPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcBlockcriteriaPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the criteria column + * + * Example usage: + * + * $query->filterByDbCriteria('fooValue'); // WHERE criteria = 'fooValue' + * $query->filterByDbCriteria('%fooValue%'); // WHERE criteria LIKE '%fooValue%' + * + * + * @param string $dbCriteria 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 CcBlockcriteriaQuery The current query, for fluid interface + */ + public function filterByDbCriteria($dbCriteria = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbCriteria)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbCriteria)) { + $dbCriteria = str_replace('*', '%', $dbCriteria); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcBlockcriteriaPeer::CRITERIA, $dbCriteria, $comparison); + } + + /** + * Filter the query on the modifier column + * + * Example usage: + * + * $query->filterByDbModifier('fooValue'); // WHERE modifier = 'fooValue' + * $query->filterByDbModifier('%fooValue%'); // WHERE modifier LIKE '%fooValue%' + * + * + * @param string $dbModifier 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 CcBlockcriteriaQuery The current query, for fluid interface + */ + public function filterByDbModifier($dbModifier = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbModifier)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbModifier)) { + $dbModifier = str_replace('*', '%', $dbModifier); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcBlockcriteriaPeer::MODIFIER, $dbModifier, $comparison); + } + + /** + * Filter the query on the value column + * + * Example usage: + * + * $query->filterByDbValue('fooValue'); // WHERE value = 'fooValue' + * $query->filterByDbValue('%fooValue%'); // WHERE value LIKE '%fooValue%' + * + * + * @param string $dbValue 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 CcBlockcriteriaQuery The current query, for fluid interface + */ + public function filterByDbValue($dbValue = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbValue)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbValue)) { + $dbValue = str_replace('*', '%', $dbValue); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcBlockcriteriaPeer::VALUE, $dbValue, $comparison); + } + + /** + * Filter the query on the extra column + * + * Example usage: + * + * $query->filterByDbExtra('fooValue'); // WHERE extra = 'fooValue' + * $query->filterByDbExtra('%fooValue%'); // WHERE extra LIKE '%fooValue%' + * + * + * @param string $dbExtra 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 CcBlockcriteriaQuery The current query, for fluid interface + */ + public function filterByDbExtra($dbExtra = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbExtra)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbExtra)) { + $dbExtra = str_replace('*', '%', $dbExtra); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcBlockcriteriaPeer::EXTRA, $dbExtra, $comparison); + } + + /** + * Filter the query on the block_id column + * + * Example usage: + * + * $query->filterByDbBlockId(1234); // WHERE block_id = 1234 + * $query->filterByDbBlockId(array(12, 34)); // WHERE block_id IN (12, 34) + * $query->filterByDbBlockId(array('min' => 12)); // WHERE block_id >= 12 + * $query->filterByDbBlockId(array('max' => 12)); // WHERE block_id <= 12 + * + * + * @see filterByCcBlock() + * + * @param mixed $dbBlockId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockcriteriaQuery The current query, for fluid interface + */ + public function filterByDbBlockId($dbBlockId = null, $comparison = null) + { + if (is_array($dbBlockId)) { + $useMinMax = false; + if (isset($dbBlockId['min'])) { + $this->addUsingAlias(CcBlockcriteriaPeer::BLOCK_ID, $dbBlockId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbBlockId['max'])) { + $this->addUsingAlias(CcBlockcriteriaPeer::BLOCK_ID, $dbBlockId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcBlockcriteriaPeer::BLOCK_ID, $dbBlockId, $comparison); + } + + /** + * Filter the query by a related CcBlock object + * + * @param CcBlock|PropelObjectCollection $ccBlock The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcBlockcriteriaQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcBlock($ccBlock, $comparison = null) + { + if ($ccBlock instanceof CcBlock) { + return $this + ->addUsingAlias(CcBlockcriteriaPeer::BLOCK_ID, $ccBlock->getDbId(), $comparison); + } elseif ($ccBlock instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcBlockcriteriaPeer::BLOCK_ID, $ccBlock->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcBlock() only accepts arguments of type CcBlock or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcBlock relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcBlockcriteriaQuery The current query, for fluid interface + */ + public function joinCcBlock($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcBlock'); + + // 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, 'CcBlock'); + } + + return $this; + } + + /** + * Use the CcBlock relation CcBlock 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 CcBlockQuery A secondary query class using the current class as primary query + */ + public function useCcBlockQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcBlock($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcBlock', 'CcBlockQuery'); + } + + /** + * Exclude object from result + * + * @param CcBlockcriteria $ccBlockcriteria Object to remove from the list of results + * + * @return CcBlockcriteriaQuery The current query, for fluid interface + */ + public function prune($ccBlockcriteria = null) + { + if ($ccBlockcriteria) { + $this->addUsingAlias(CcBlockcriteriaPeer::ID, $ccBlockcriteria->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcBlockcriteriaQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcBlockcriteria', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcBlockcriteriaQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcBlockcriteriaQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcBlockcriteriaQuery) { - return $criteria; - } - $query = new CcBlockcriteriaQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcBlockcriteria|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcBlockcriteriaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcBlockcriteriaQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcBlockcriteriaPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcBlockcriteriaQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcBlockcriteriaPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockcriteriaQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcBlockcriteriaPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the criteria column - * - * @param string $dbCriteria 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 CcBlockcriteriaQuery The current query, for fluid interface - */ - public function filterByDbCriteria($dbCriteria = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbCriteria)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbCriteria)) { - $dbCriteria = str_replace('*', '%', $dbCriteria); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcBlockcriteriaPeer::CRITERIA, $dbCriteria, $comparison); - } - - /** - * Filter the query on the modifier column - * - * @param string $dbModifier 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 CcBlockcriteriaQuery The current query, for fluid interface - */ - public function filterByDbModifier($dbModifier = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbModifier)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbModifier)) { - $dbModifier = str_replace('*', '%', $dbModifier); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcBlockcriteriaPeer::MODIFIER, $dbModifier, $comparison); - } - - /** - * Filter the query on the value column - * - * @param string $dbValue 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 CcBlockcriteriaQuery The current query, for fluid interface - */ - public function filterByDbValue($dbValue = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbValue)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbValue)) { - $dbValue = str_replace('*', '%', $dbValue); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcBlockcriteriaPeer::VALUE, $dbValue, $comparison); - } - - /** - * Filter the query on the extra column - * - * @param string $dbExtra 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 CcBlockcriteriaQuery The current query, for fluid interface - */ - public function filterByDbExtra($dbExtra = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbExtra)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbExtra)) { - $dbExtra = str_replace('*', '%', $dbExtra); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcBlockcriteriaPeer::EXTRA, $dbExtra, $comparison); - } - - /** - * Filter the query on the block_id column - * - * @param int|array $dbBlockId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockcriteriaQuery The current query, for fluid interface - */ - public function filterByDbBlockId($dbBlockId = null, $comparison = null) - { - if (is_array($dbBlockId)) { - $useMinMax = false; - if (isset($dbBlockId['min'])) { - $this->addUsingAlias(CcBlockcriteriaPeer::BLOCK_ID, $dbBlockId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbBlockId['max'])) { - $this->addUsingAlias(CcBlockcriteriaPeer::BLOCK_ID, $dbBlockId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcBlockcriteriaPeer::BLOCK_ID, $dbBlockId, $comparison); - } - - /** - * Filter the query by a related CcBlock object - * - * @param CcBlock $ccBlock the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcBlockcriteriaQuery The current query, for fluid interface - */ - public function filterByCcBlock($ccBlock, $comparison = null) - { - return $this - ->addUsingAlias(CcBlockcriteriaPeer::BLOCK_ID, $ccBlock->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcBlock relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcBlockcriteriaQuery The current query, for fluid interface - */ - public function joinCcBlock($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcBlock'); - - // 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, 'CcBlock'); - } - - return $this; - } - - /** - * Use the CcBlock relation CcBlock 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 CcBlockQuery A secondary query class using the current class as primary query - */ - public function useCcBlockQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcBlock($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcBlock', 'CcBlockQuery'); - } - - /** - * Exclude object from result - * - * @param CcBlockcriteria $ccBlockcriteria Object to remove from the list of results - * - * @return CcBlockcriteriaQuery The current query, for fluid interface - */ - public function prune($ccBlockcriteria = null) - { - if ($ccBlockcriteria) { - $this->addUsingAlias(CcBlockcriteriaPeer::ID, $ccBlockcriteria->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcBlockcriteriaQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcCountry.php b/airtime_mvc/application/models/airtime/om/BaseCcCountry.php index 3f92c5493d..dee0b4a903 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcCountry.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcCountry.php @@ -4,705 +4,811 @@ /** * Base class that represents a row from the 'cc_country' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcCountry extends BaseObject implements Persistent +abstract class BaseCcCountry extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcCountryPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcCountryPeer - */ - protected static $peer; - - /** - * The value for the isocode field. - * @var string - */ - protected $isocode; - - /** - * The value for the name field. - * @var string - */ - protected $name; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [isocode] column value. - * - * @return string - */ - public function getDbIsoCode() - { - return $this->isocode; - } - - /** - * Get the [name] column value. - * - * @return string - */ - public function getDbName() - { - return $this->name; - } - - /** - * Set the value of [isocode] column. - * - * @param string $v new value - * @return CcCountry The current object (for fluent API support) - */ - public function setDbIsoCode($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->isocode !== $v) { - $this->isocode = $v; - $this->modifiedColumns[] = CcCountryPeer::ISOCODE; - } - - return $this; - } // setDbIsoCode() - - /** - * Set the value of [name] column. - * - * @param string $v new value - * @return CcCountry The current object (for fluent API support) - */ - public function setDbName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->name !== $v) { - $this->name = $v; - $this->modifiedColumns[] = CcCountryPeer::NAME; - } - - return $this; - } // setDbName() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->isocode = ($row[$startcol + 0] !== null) ? (string) $row[$startcol + 0] : null; - $this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 2; // 2 = CcCountryPeer::NUM_COLUMNS - CcCountryPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcCountry object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcCountryPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcCountryQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcCountryPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows = 1; - $this->setNew(false); - } else { - $affectedRows = CcCountryPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - if (($retval = CcCountryPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcCountryPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbIsoCode(); - break; - case 1: - return $this->getDbName(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) - { - $keys = CcCountryPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbIsoCode(), - $keys[1] => $this->getDbName(), - ); - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcCountryPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbIsoCode($value); - break; - case 1: - $this->setDbName($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcCountryPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbIsoCode($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcCountryPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcCountryPeer::ISOCODE)) $criteria->add(CcCountryPeer::ISOCODE, $this->isocode); - if ($this->isColumnModified(CcCountryPeer::NAME)) $criteria->add(CcCountryPeer::NAME, $this->name); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcCountryPeer::DATABASE_NAME); - $criteria->add(CcCountryPeer::ISOCODE, $this->isocode); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return string - */ - public function getPrimaryKey() - { - return $this->getDbIsoCode(); - } - - /** - * Generic method to set the primary key (isocode column). - * - * @param string $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbIsoCode($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbIsoCode(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcCountry (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbIsoCode($this->isocode); - $copyObj->setDbName($this->name); - - $copyObj->setNew(true); - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcCountry Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcCountryPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcCountryPeer(); - } - return self::$peer; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->isocode = null; - $this->name = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcCountry + /** + * Peer class name + */ + const PEER = 'CcCountryPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcCountryPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the isocode field. + * @var string + */ + protected $isocode; + + /** + * The value for the name field. + * @var string + */ + protected $name; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [isocode] column value. + * + * @return string + */ + public function getDbIsoCode() + { + + return $this->isocode; + } + + /** + * Get the [name] column value. + * + * @return string + */ + public function getDbName() + { + + return $this->name; + } + + /** + * Set the value of [isocode] column. + * + * @param string $v new value + * @return CcCountry The current object (for fluent API support) + */ + public function setDbIsoCode($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->isocode !== $v) { + $this->isocode = $v; + $this->modifiedColumns[] = CcCountryPeer::ISOCODE; + } + + + return $this; + } // setDbIsoCode() + + /** + * Set the value of [name] column. + * + * @param string $v new value + * @return CcCountry The current object (for fluent API support) + */ + public function setDbName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->name !== $v) { + $this->name = $v; + $this->modifiedColumns[] = CcCountryPeer::NAME; + } + + + return $this; + } // setDbName() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->isocode = ($row[$startcol + 0] !== null) ? (string) $row[$startcol + 0] : null; + $this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 2; // 2 = CcCountryPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcCountry object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcCountryPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcCountryQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcCountryPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcCountryPeer::ISOCODE)) { + $modifiedColumns[':p' . $index++] = '"isocode"'; + } + if ($this->isColumnModified(CcCountryPeer::NAME)) { + $modifiedColumns[':p' . $index++] = '"name"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_country" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"isocode"': + $stmt->bindValue($identifier, $this->isocode, PDO::PARAM_STR); + break; + case '"name"': + $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + if (($retval = CcCountryPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcCountryPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbIsoCode(); + break; + case 1: + return $this->getDbName(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array()) + { + if (isset($alreadyDumpedObjects['CcCountry'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcCountry'][$this->getPrimaryKey()] = true; + $keys = CcCountryPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbIsoCode(), + $keys[1] => $this->getDbName(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcCountryPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbIsoCode($value); + break; + case 1: + $this->setDbName($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcCountryPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbIsoCode($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcCountryPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcCountryPeer::ISOCODE)) $criteria->add(CcCountryPeer::ISOCODE, $this->isocode); + if ($this->isColumnModified(CcCountryPeer::NAME)) $criteria->add(CcCountryPeer::NAME, $this->name); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcCountryPeer::DATABASE_NAME); + $criteria->add(CcCountryPeer::ISOCODE, $this->isocode); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return string + */ + public function getPrimaryKey() + { + return $this->getDbIsoCode(); + } + + /** + * Generic method to set the primary key (isocode column). + * + * @param string $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbIsoCode($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbIsoCode(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcCountry (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbName($this->getDbName()); + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbIsoCode(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcCountry Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcCountryPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcCountryPeer(); + } + + return self::$peer; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->isocode = null; + $this->name = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcCountryPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcCountryPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcCountryPeer.php index ee16e55bf3..2970e29e07 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcCountryPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcCountryPeer.php @@ -4,728 +4,750 @@ /** * Base static class for performing query and update operations on the 'cc_country' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcCountryPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_country'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcCountry'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcCountry'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcCountryTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 2; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ISOCODE field */ - const ISOCODE = 'cc_country.ISOCODE'; - - /** the column name for the NAME field */ - const NAME = 'cc_country.NAME'; - - /** - * An identiy map to hold any loaded instances of CcCountry objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcCountry[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbIsoCode', 'DbName', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbIsoCode', 'dbName', ), - BasePeer::TYPE_COLNAME => array (self::ISOCODE, self::NAME, ), - BasePeer::TYPE_RAW_COLNAME => array ('ISOCODE', 'NAME', ), - BasePeer::TYPE_FIELDNAME => array ('isocode', 'name', ), - BasePeer::TYPE_NUM => array (0, 1, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbIsoCode' => 0, 'DbName' => 1, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbIsoCode' => 0, 'dbName' => 1, ), - BasePeer::TYPE_COLNAME => array (self::ISOCODE => 0, self::NAME => 1, ), - BasePeer::TYPE_RAW_COLNAME => array ('ISOCODE' => 0, 'NAME' => 1, ), - BasePeer::TYPE_FIELDNAME => array ('isocode' => 0, 'name' => 1, ), - BasePeer::TYPE_NUM => array (0, 1, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcCountryPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcCountryPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcCountryPeer::ISOCODE); - $criteria->addSelectColumn(CcCountryPeer::NAME); - } else { - $criteria->addSelectColumn($alias . '.ISOCODE'); - $criteria->addSelectColumn($alias . '.NAME'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcCountryPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcCountryPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcCountry - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcCountryPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcCountryPeer::populateObjects(CcCountryPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcCountryPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcCountry $value A CcCountry object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcCountry $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbIsoCode(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcCountry object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcCountry) { - $key = (string) $value->getDbIsoCode(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcCountry object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcCountry Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_country - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (string) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcCountryPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcCountryPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcCountryPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcCountryPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcCountry object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcCountryPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcCountryPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcCountryPeer::NUM_COLUMNS; - } else { - $cls = CcCountryPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcCountryPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcCountryPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcCountryPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcCountryTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcCountryPeer::CLASS_DEFAULT : CcCountryPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcCountry or Criteria object. - * - * @param mixed $values Criteria or CcCountry object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcCountry object - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcCountry or Criteria object. - * - * @param mixed $values Criteria or CcCountry object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcCountryPeer::ISOCODE); - $value = $criteria->remove(CcCountryPeer::ISOCODE); - if ($value) { - $selectCriteria->add(CcCountryPeer::ISOCODE, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcCountryPeer::TABLE_NAME); - } - - } else { // $values is CcCountry object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_country table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcCountryPeer::TABLE_NAME, $con, CcCountryPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcCountryPeer::clearInstancePool(); - CcCountryPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcCountry or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcCountry object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcCountryPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcCountry) { // it's a model object - // invalidate the cache for this single object - CcCountryPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcCountryPeer::ISOCODE, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcCountryPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcCountryPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcCountry object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcCountry $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcCountry $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcCountryPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcCountryPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcCountryPeer::DATABASE_NAME, CcCountryPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param string $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcCountry - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcCountryPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcCountryPeer::DATABASE_NAME); - $criteria->add(CcCountryPeer::ISOCODE, $pk); - - $v = CcCountryPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcCountryPeer::DATABASE_NAME); - $criteria->add(CcCountryPeer::ISOCODE, $pks, Criteria::IN); - $objs = CcCountryPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcCountryPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_country'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcCountry'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcCountryTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 2; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 2; + + /** the column name for the isocode field */ + const ISOCODE = 'cc_country.isocode'; + + /** the column name for the name field */ + const NAME = 'cc_country.name'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcCountry objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcCountry[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcCountryPeer::$fieldNames[CcCountryPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbIsoCode', 'DbName', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbIsoCode', 'dbName', ), + BasePeer::TYPE_COLNAME => array (CcCountryPeer::ISOCODE, CcCountryPeer::NAME, ), + BasePeer::TYPE_RAW_COLNAME => array ('ISOCODE', 'NAME', ), + BasePeer::TYPE_FIELDNAME => array ('isocode', 'name', ), + BasePeer::TYPE_NUM => array (0, 1, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcCountryPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbIsoCode' => 0, 'DbName' => 1, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbIsoCode' => 0, 'dbName' => 1, ), + BasePeer::TYPE_COLNAME => array (CcCountryPeer::ISOCODE => 0, CcCountryPeer::NAME => 1, ), + BasePeer::TYPE_RAW_COLNAME => array ('ISOCODE' => 0, 'NAME' => 1, ), + BasePeer::TYPE_FIELDNAME => array ('isocode' => 0, 'name' => 1, ), + BasePeer::TYPE_NUM => array (0, 1, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcCountryPeer::getFieldNames($toType); + $key = isset(CcCountryPeer::$fieldKeys[$fromType][$name]) ? CcCountryPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcCountryPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcCountryPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcCountryPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcCountryPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcCountryPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcCountryPeer::ISOCODE); + $criteria->addSelectColumn(CcCountryPeer::NAME); + } else { + $criteria->addSelectColumn($alias . '.isocode'); + $criteria->addSelectColumn($alias . '.name'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcCountryPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcCountryPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcCountryPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcCountry + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcCountryPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcCountryPeer::populateObjects(CcCountryPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcCountryPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcCountryPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcCountry $obj A CcCountry object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbIsoCode(); + } // if key === null + CcCountryPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcCountry object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcCountry) { + $key = (string) $value->getDbIsoCode(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcCountry object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcCountryPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcCountry Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcCountryPeer::$instances[$key])) { + return CcCountryPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcCountryPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcCountryPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_country + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (string) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcCountryPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcCountryPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcCountryPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcCountryPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcCountry object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcCountryPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcCountryPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcCountryPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcCountryPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcCountryPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcCountryPeer::DATABASE_NAME)->getTable(CcCountryPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcCountryPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcCountryPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcCountryTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcCountryPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcCountry or Criteria object. + * + * @param mixed $values Criteria or CcCountry object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcCountry object + } + + + // Set the correct dbName + $criteria->setDbName(CcCountryPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcCountry or Criteria object. + * + * @param mixed $values Criteria or CcCountry object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcCountryPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcCountryPeer::ISOCODE); + $value = $criteria->remove(CcCountryPeer::ISOCODE); + if ($value) { + $selectCriteria->add(CcCountryPeer::ISOCODE, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcCountryPeer::TABLE_NAME); + } + + } else { // $values is CcCountry object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcCountryPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_country table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcCountryPeer::TABLE_NAME, $con, CcCountryPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcCountryPeer::clearInstancePool(); + CcCountryPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcCountry or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcCountry object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcCountryPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcCountry) { // it's a model object + // invalidate the cache for this single object + CcCountryPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcCountryPeer::DATABASE_NAME); + $criteria->add(CcCountryPeer::ISOCODE, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcCountryPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcCountryPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcCountryPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcCountry object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcCountry $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcCountryPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcCountryPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcCountryPeer::DATABASE_NAME, CcCountryPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param string $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcCountry + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcCountryPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcCountryPeer::DATABASE_NAME); + $criteria->add(CcCountryPeer::ISOCODE, $pk); + + $v = CcCountryPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcCountry[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcCountryPeer::DATABASE_NAME); + $criteria->add(CcCountryPeer::ISOCODE, $pks, Criteria::IN); + $objs = CcCountryPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcCountryPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcCountryQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcCountryQuery.php index 4e634ea19e..85fd27e757 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcCountryQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcCountryQuery.php @@ -4,193 +4,293 @@ /** * Base class that represents a query for the 'cc_country' table. * - * * - * @method CcCountryQuery orderByDbIsoCode($order = Criteria::ASC) Order by the isocode column - * @method CcCountryQuery orderByDbName($order = Criteria::ASC) Order by the name column * - * @method CcCountryQuery groupByDbIsoCode() Group by the isocode column - * @method CcCountryQuery groupByDbName() Group by the name column + * @method CcCountryQuery orderByDbIsoCode($order = Criteria::ASC) Order by the isocode column + * @method CcCountryQuery orderByDbName($order = Criteria::ASC) Order by the name column * - * @method CcCountryQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcCountryQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcCountryQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcCountryQuery groupByDbIsoCode() Group by the isocode column + * @method CcCountryQuery groupByDbName() Group by the name column * - * @method CcCountry findOne(PropelPDO $con = null) Return the first CcCountry matching the query - * @method CcCountry findOneOrCreate(PropelPDO $con = null) Return the first CcCountry matching the query, or a new CcCountry object populated from the query conditions when no match is found + * @method CcCountryQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcCountryQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcCountryQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcCountry findOneByDbIsoCode(string $isocode) Return the first CcCountry filtered by the isocode column - * @method CcCountry findOneByDbName(string $name) Return the first CcCountry filtered by the name column + * @method CcCountry findOne(PropelPDO $con = null) Return the first CcCountry matching the query + * @method CcCountry findOneOrCreate(PropelPDO $con = null) Return the first CcCountry matching the query, or a new CcCountry object populated from the query conditions when no match is found * - * @method array findByDbIsoCode(string $isocode) Return CcCountry objects filtered by the isocode column - * @method array findByDbName(string $name) Return CcCountry objects filtered by the name column + * @method CcCountry findOneByDbName(string $name) Return the first CcCountry filtered by the name column + * + * @method array findByDbIsoCode(string $isocode) Return CcCountry objects filtered by the isocode column + * @method array findByDbName(string $name) Return CcCountry objects filtered by the name column * * @package propel.generator.airtime.om */ abstract class BaseCcCountryQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcCountryQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcCountry'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcCountryQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcCountryQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcCountryQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcCountryQuery) { + return $criteria; + } + $query = new CcCountryQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcCountry|CcCountry[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcCountryPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcCountryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcCountry A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbIsoCode($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcCountry A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "isocode", "name" FROM "cc_country" WHERE "isocode" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_STR); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcCountry(); + $obj->hydrate($row); + CcCountryPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcCountry|CcCountry[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcCountry[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcCountryQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcCountryPeer::ISOCODE, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcCountryQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcCountryPeer::ISOCODE, $keys, Criteria::IN); + } + + /** + * Filter the query on the isocode column + * + * Example usage: + * + * $query->filterByDbIsoCode('fooValue'); // WHERE isocode = 'fooValue' + * $query->filterByDbIsoCode('%fooValue%'); // WHERE isocode LIKE '%fooValue%' + * + * + * @param string $dbIsoCode 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 CcCountryQuery The current query, for fluid interface + */ + public function filterByDbIsoCode($dbIsoCode = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbIsoCode)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbIsoCode)) { + $dbIsoCode = str_replace('*', '%', $dbIsoCode); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcCountryPeer::ISOCODE, $dbIsoCode, $comparison); + } + + /** + * Filter the query on the name column + * + * Example usage: + * + * $query->filterByDbName('fooValue'); // WHERE name = 'fooValue' + * $query->filterByDbName('%fooValue%'); // WHERE name LIKE '%fooValue%' + * + * + * @param string $dbName 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 CcCountryQuery The current query, for fluid interface + */ + public function filterByDbName($dbName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbName)) { + $dbName = str_replace('*', '%', $dbName); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcCountryPeer::NAME, $dbName, $comparison); + } + + /** + * Exclude object from result + * + * @param CcCountry $ccCountry Object to remove from the list of results + * + * @return CcCountryQuery The current query, for fluid interface + */ + public function prune($ccCountry = null) + { + if ($ccCountry) { + $this->addUsingAlias(CcCountryPeer::ISOCODE, $ccCountry->getDbIsoCode(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcCountryQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcCountry', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcCountryQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcCountryQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcCountryQuery) { - return $criteria; - } - $query = new CcCountryQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcCountry|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcCountryPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcCountryQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcCountryPeer::ISOCODE, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcCountryQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcCountryPeer::ISOCODE, $keys, Criteria::IN); - } - - /** - * Filter the query on the isocode column - * - * @param string $dbIsoCode 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 CcCountryQuery The current query, for fluid interface - */ - public function filterByDbIsoCode($dbIsoCode = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbIsoCode)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbIsoCode)) { - $dbIsoCode = str_replace('*', '%', $dbIsoCode); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcCountryPeer::ISOCODE, $dbIsoCode, $comparison); - } - - /** - * Filter the query on the name column - * - * @param string $dbName 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 CcCountryQuery The current query, for fluid interface - */ - public function filterByDbName($dbName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbName)) { - $dbName = str_replace('*', '%', $dbName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcCountryPeer::NAME, $dbName, $comparison); - } - - /** - * Exclude object from result - * - * @param CcCountry $ccCountry Object to remove from the list of results - * - * @return CcCountryQuery The current query, for fluid interface - */ - public function prune($ccCountry = null) - { - if ($ccCountry) { - $this->addUsingAlias(CcCountryPeer::ISOCODE, $ccCountry->getDbIsoCode(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcCountryQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcFiles.php b/airtime_mvc/application/models/airtime/om/BaseCcFiles.php index 38d147c07f..e10a0946f9 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcFiles.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcFiles.php @@ -4,5469 +4,7086 @@ /** * Base class that represents a row from the 'cc_files' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcFiles extends BaseObject implements Persistent +abstract class BaseCcFiles extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcFilesPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcFilesPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the name field. - * Note: this column has a database default value of: '' - * @var string - */ - protected $name; - - /** - * The value for the mime field. - * Note: this column has a database default value of: '' - * @var string - */ - protected $mime; - - /** - * The value for the ftype field. - * Note: this column has a database default value of: '' - * @var string - */ - protected $ftype; - - /** - * The value for the directory field. - * @var int - */ - protected $directory; - - /** - * The value for the filepath field. - * Note: this column has a database default value of: '' - * @var string - */ - protected $filepath; - - /** - * The value for the state field. - * Note: this column has a database default value of: 'empty' - * @var string - */ - protected $state; - - /** - * The value for the currentlyaccessing field. - * Note: this column has a database default value of: 0 - * @var int - */ - protected $currentlyaccessing; - - /** - * The value for the editedby field. - * @var int - */ - protected $editedby; - - /** - * The value for the mtime field. - * @var string - */ - protected $mtime; - - /** - * The value for the utime field. - * @var string - */ - protected $utime; - - /** - * The value for the lptime field. - * @var string - */ - protected $lptime; - - /** - * The value for the md5 field. - * @var string - */ - protected $md5; - - /** - * The value for the track_title field. - * @var string - */ - protected $track_title; - - /** - * The value for the artist_name field. - * @var string - */ - protected $artist_name; - - /** - * The value for the bit_rate field. - * @var int - */ - protected $bit_rate; - - /** - * The value for the sample_rate field. - * @var int - */ - protected $sample_rate; - - /** - * The value for the format field. - * @var string - */ - protected $format; - - /** - * The value for the length field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $length; - - /** - * The value for the album_title field. - * @var string - */ - protected $album_title; - - /** - * The value for the genre field. - * @var string - */ - protected $genre; - - /** - * The value for the comments field. - * @var string - */ - protected $comments; - - /** - * The value for the year field. - * @var string - */ - protected $year; - - /** - * The value for the track_number field. - * @var int - */ - protected $track_number; - - /** - * The value for the channels field. - * @var int - */ - protected $channels; - - /** - * The value for the url field. - * @var string - */ - protected $url; - - /** - * The value for the bpm field. - * @var int - */ - protected $bpm; - - /** - * The value for the rating field. - * @var string - */ - protected $rating; - - /** - * The value for the encoded_by field. - * @var string - */ - protected $encoded_by; - - /** - * The value for the disc_number field. - * @var string - */ - protected $disc_number; - - /** - * The value for the mood field. - * @var string - */ - protected $mood; - - /** - * The value for the label field. - * @var string - */ - protected $label; - - /** - * The value for the composer field. - * @var string - */ - protected $composer; - - /** - * The value for the encoder field. - * @var string - */ - protected $encoder; - - /** - * The value for the checksum field. - * @var string - */ - protected $checksum; - - /** - * The value for the lyrics field. - * @var string - */ - protected $lyrics; - - /** - * The value for the orchestra field. - * @var string - */ - protected $orchestra; - - /** - * The value for the conductor field. - * @var string - */ - protected $conductor; - - /** - * The value for the lyricist field. - * @var string - */ - protected $lyricist; - - /** - * The value for the original_lyricist field. - * @var string - */ - protected $original_lyricist; - - /** - * The value for the radio_station_name field. - * @var string - */ - protected $radio_station_name; - - /** - * The value for the info_url field. - * @var string - */ - protected $info_url; - - /** - * The value for the artist_url field. - * @var string - */ - protected $artist_url; - - /** - * The value for the audio_source_url field. - * @var string - */ - protected $audio_source_url; - - /** - * The value for the radio_station_url field. - * @var string - */ - protected $radio_station_url; - - /** - * The value for the buy_this_url field. - * @var string - */ - protected $buy_this_url; - - /** - * The value for the isrc_number field. - * @var string - */ - protected $isrc_number; - - /** - * The value for the catalog_number field. - * @var string - */ - protected $catalog_number; - - /** - * The value for the original_artist field. - * @var string - */ - protected $original_artist; - - /** - * The value for the copyright field. - * @var string - */ - protected $copyright; - - /** - * The value for the report_datetime field. - * @var string - */ - protected $report_datetime; - - /** - * The value for the report_location field. - * @var string - */ - protected $report_location; - - /** - * The value for the report_organization field. - * @var string - */ - protected $report_organization; - - /** - * The value for the subject field. - * @var string - */ - protected $subject; - - /** - * The value for the contributor field. - * @var string - */ - protected $contributor; - - /** - * The value for the language field. - * @var string - */ - protected $language; - - /** - * The value for the file_exists field. - * Note: this column has a database default value of: true - * @var boolean - */ - protected $file_exists; - - /** - * The value for the soundcloud_id field. - * @var int - */ - protected $soundcloud_id; - - /** - * The value for the soundcloud_error_code field. - * @var int - */ - protected $soundcloud_error_code; - - /** - * The value for the soundcloud_error_msg field. - * @var string - */ - protected $soundcloud_error_msg; - - /** - * The value for the soundcloud_link_to_file field. - * @var string - */ - protected $soundcloud_link_to_file; - - /** - * The value for the soundcloud_upload_time field. - * @var string - */ - protected $soundcloud_upload_time; - - /** - * The value for the replay_gain field. - * @var string - */ - protected $replay_gain; - - /** - * The value for the owner_id field. - * @var int - */ - protected $owner_id; - - /** - * The value for the cuein field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $cuein; - - /** - * The value for the cueout field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $cueout; - - /** - * The value for the silan_check field. - * Note: this column has a database default value of: false - * @var boolean - */ - protected $silan_check; - - /** - * The value for the hidden field. - * Note: this column has a database default value of: false - * @var boolean - */ - protected $hidden; - - /** - * The value for the is_scheduled field. - * Note: this column has a database default value of: false - * @var boolean - */ - protected $is_scheduled; - - /** - * The value for the is_playlist field. - * Note: this column has a database default value of: false - * @var boolean - */ - protected $is_playlist; - - /** - * @var CcSubjs - */ - protected $aFkOwner; - - /** - * @var CcSubjs - */ - protected $aCcSubjsRelatedByDbEditedby; - - /** - * @var CcMusicDirs - */ - protected $aCcMusicDirs; - - /** - * @var array CcShowInstances[] Collection to store aggregation of CcShowInstances objects. - */ - protected $collCcShowInstancess; - - /** - * @var array CcPlaylistcontents[] Collection to store aggregation of CcPlaylistcontents objects. - */ - protected $collCcPlaylistcontentss; - - /** - * @var array CcBlockcontents[] Collection to store aggregation of CcBlockcontents objects. - */ - protected $collCcBlockcontentss; - - /** - * @var array CcSchedule[] Collection to store aggregation of CcSchedule objects. - */ - protected $collCcSchedules; - - /** - * @var array CcPlayoutHistory[] Collection to store aggregation of CcPlayoutHistory objects. - */ - protected $collCcPlayoutHistorys; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - 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->name = ''; - $this->mime = ''; - $this->ftype = ''; - $this->filepath = ''; - $this->state = 'empty'; - $this->currentlyaccessing = 0; - $this->length = '00:00:00'; - $this->file_exists = true; - $this->cuein = '00:00:00'; - $this->cueout = '00:00:00'; - $this->silan_check = false; - $this->hidden = false; - $this->is_scheduled = false; - $this->is_playlist = false; - } - - /** - * Initializes internal state of BaseCcFiles object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [name] column value. - * - * @return string - */ - public function getDbName() - { - return $this->name; - } - - /** - * Get the [mime] column value. - * - * @return string - */ - public function getDbMime() - { - return $this->mime; - } - - /** - * Get the [ftype] column value. - * - * @return string - */ - public function getDbFtype() - { - return $this->ftype; - } - - /** - * Get the [directory] column value. - * - * @return int - */ - public function getDbDirectory() - { - return $this->directory; - } - - /** - * Get the [filepath] column value. - * - * @return string - */ - public function getDbFilepath() - { - return $this->filepath; - } - - /** - * Get the [state] column value. - * - * @return string - */ - public function getDbState() - { - return $this->state; - } - - /** - * Get the [currentlyaccessing] column value. - * - * @return int - */ - public function getDbCurrentlyaccessing() - { - return $this->currentlyaccessing; - } - - /** - * Get the [editedby] column value. - * - * @return int - */ - public function getDbEditedby() - { - return $this->editedby; - } - - /** - * Get the [optionally formatted] temporal [mtime] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbMtime($format = 'Y-m-d H:i:s') - { - if ($this->mtime === null) { - return null; - } - - - - try { - $dt = new DateTime($this->mtime); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->mtime, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [utime] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbUtime($format = 'Y-m-d H:i:s') - { - if ($this->utime === null) { - return null; - } - - - - try { - $dt = new DateTime($this->utime); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->utime, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [lptime] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbLPtime($format = 'Y-m-d H:i:s') - { - if ($this->lptime === null) { - return null; - } - - - - try { - $dt = new DateTime($this->lptime); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->lptime, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [md5] column value. - * - * @return string - */ - public function getDbMd5() - { - return $this->md5; - } - - /** - * Get the [track_title] column value. - * - * @return string - */ - public function getDbTrackTitle() - { - return $this->track_title; - } - - /** - * Get the [artist_name] column value. - * - * @return string - */ - public function getDbArtistName() - { - return $this->artist_name; - } - - /** - * Get the [bit_rate] column value. - * - * @return int - */ - public function getDbBitRate() - { - return $this->bit_rate; - } - - /** - * Get the [sample_rate] column value. - * - * @return int - */ - public function getDbSampleRate() - { - return $this->sample_rate; - } - - /** - * Get the [format] column value. - * - * @return string - */ - public function getDbFormat() - { - return $this->format; - } - - /** - * Get the [length] column value. - * - * @return string - */ - public function getDbLength() - { - return $this->length; - } - - /** - * Get the [album_title] column value. - * - * @return string - */ - public function getDbAlbumTitle() - { - return $this->album_title; - } - - /** - * Get the [genre] column value. - * - * @return string - */ - public function getDbGenre() - { - return $this->genre; - } - - /** - * Get the [comments] column value. - * - * @return string - */ - public function getDbComments() - { - return $this->comments; - } - - /** - * Get the [year] column value. - * - * @return string - */ - public function getDbYear() - { - return $this->year; - } - - /** - * Get the [track_number] column value. - * - * @return int - */ - public function getDbTrackNumber() - { - return $this->track_number; - } - - /** - * Get the [channels] column value. - * - * @return int - */ - public function getDbChannels() - { - return $this->channels; - } - - /** - * Get the [url] column value. - * - * @return string - */ - public function getDbUrl() - { - return $this->url; - } - - /** - * Get the [bpm] column value. - * - * @return int - */ - public function getDbBpm() - { - return $this->bpm; - } - - /** - * Get the [rating] column value. - * - * @return string - */ - public function getDbRating() - { - return $this->rating; - } - - /** - * Get the [encoded_by] column value. - * - * @return string - */ - public function getDbEncodedBy() - { - return $this->encoded_by; - } - - /** - * Get the [disc_number] column value. - * - * @return string - */ - public function getDbDiscNumber() - { - return $this->disc_number; - } - - /** - * Get the [mood] column value. - * - * @return string - */ - public function getDbMood() - { - return $this->mood; - } - - /** - * Get the [label] column value. - * - * @return string - */ - public function getDbLabel() - { - return $this->label; - } - - /** - * Get the [composer] column value. - * - * @return string - */ - public function getDbComposer() - { - return $this->composer; - } - - /** - * Get the [encoder] column value. - * - * @return string - */ - public function getDbEncoder() - { - return $this->encoder; - } - - /** - * Get the [checksum] column value. - * - * @return string - */ - public function getDbChecksum() - { - return $this->checksum; - } - - /** - * Get the [lyrics] column value. - * - * @return string - */ - public function getDbLyrics() - { - return $this->lyrics; - } - - /** - * Get the [orchestra] column value. - * - * @return string - */ - public function getDbOrchestra() - { - return $this->orchestra; - } - - /** - * Get the [conductor] column value. - * - * @return string - */ - public function getDbConductor() - { - return $this->conductor; - } - - /** - * Get the [lyricist] column value. - * - * @return string - */ - public function getDbLyricist() - { - return $this->lyricist; - } - - /** - * Get the [original_lyricist] column value. - * - * @return string - */ - public function getDbOriginalLyricist() - { - return $this->original_lyricist; - } - - /** - * Get the [radio_station_name] column value. - * - * @return string - */ - public function getDbRadioStationName() - { - return $this->radio_station_name; - } - - /** - * Get the [info_url] column value. - * - * @return string - */ - public function getDbInfoUrl() - { - return $this->info_url; - } - - /** - * Get the [artist_url] column value. - * - * @return string - */ - public function getDbArtistUrl() - { - return $this->artist_url; - } - - /** - * Get the [audio_source_url] column value. - * - * @return string - */ - public function getDbAudioSourceUrl() - { - return $this->audio_source_url; - } - - /** - * Get the [radio_station_url] column value. - * - * @return string - */ - public function getDbRadioStationUrl() - { - return $this->radio_station_url; - } - - /** - * Get the [buy_this_url] column value. - * - * @return string - */ - public function getDbBuyThisUrl() - { - return $this->buy_this_url; - } - - /** - * Get the [isrc_number] column value. - * - * @return string - */ - public function getDbIsrcNumber() - { - return $this->isrc_number; - } - - /** - * Get the [catalog_number] column value. - * - * @return string - */ - public function getDbCatalogNumber() - { - return $this->catalog_number; - } - - /** - * Get the [original_artist] column value. - * - * @return string - */ - public function getDbOriginalArtist() - { - return $this->original_artist; - } - - /** - * Get the [copyright] column value. - * - * @return string - */ - public function getDbCopyright() - { - return $this->copyright; - } - - /** - * Get the [report_datetime] column value. - * - * @return string - */ - public function getDbReportDatetime() - { - return $this->report_datetime; - } - - /** - * Get the [report_location] column value. - * - * @return string - */ - public function getDbReportLocation() - { - return $this->report_location; - } - - /** - * Get the [report_organization] column value. - * - * @return string - */ - public function getDbReportOrganization() - { - return $this->report_organization; - } - - /** - * Get the [subject] column value. - * - * @return string - */ - public function getDbSubject() - { - return $this->subject; - } - - /** - * Get the [contributor] column value. - * - * @return string - */ - public function getDbContributor() - { - return $this->contributor; - } - - /** - * Get the [language] column value. - * - * @return string - */ - public function getDbLanguage() - { - return $this->language; - } - - /** - * Get the [file_exists] column value. - * - * @return boolean - */ - public function getDbFileExists() - { - return $this->file_exists; - } - - /** - * Get the [soundcloud_id] column value. - * - * @return int - */ - public function getDbSoundcloudId() - { - return $this->soundcloud_id; - } - - /** - * Get the [soundcloud_error_code] column value. - * - * @return int - */ - public function getDbSoundcloudErrorCode() - { - return $this->soundcloud_error_code; - } - - /** - * Get the [soundcloud_error_msg] column value. - * - * @return string - */ - public function getDbSoundcloudErrorMsg() - { - return $this->soundcloud_error_msg; - } - - /** - * Get the [soundcloud_link_to_file] column value. - * - * @return string - */ - public function getDbSoundcloudLinkToFile() - { - return $this->soundcloud_link_to_file; - } - - /** - * Get the [optionally formatted] temporal [soundcloud_upload_time] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbSoundCloundUploadTime($format = 'Y-m-d H:i:s') - { - if ($this->soundcloud_upload_time === null) { - return null; - } - - - - try { - $dt = new DateTime($this->soundcloud_upload_time); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->soundcloud_upload_time, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [replay_gain] column value. - * - * @return string - */ - public function getDbReplayGain() - { - return $this->replay_gain; - } - - /** - * Get the [owner_id] column value. - * - * @return int - */ - public function getDbOwnerId() - { - return $this->owner_id; - } - - /** - * Get the [cuein] column value. - * - * @return string - */ - public function getDbCuein() - { - return $this->cuein; - } - - /** - * Get the [cueout] column value. - * - * @return string - */ - public function getDbCueout() - { - return $this->cueout; - } - - /** - * Get the [silan_check] column value. - * - * @return boolean - */ - public function getDbSilanCheck() - { - return $this->silan_check; - } - - /** - * Get the [hidden] column value. - * - * @return boolean - */ - public function getDbHidden() - { - return $this->hidden; - } - - /** - * Get the [is_scheduled] column value. - * - * @return boolean - */ - public function getDbIsScheduled() - { - return $this->is_scheduled; - } - - /** - * Get the [is_playlist] column value. - * - * @return boolean - */ - public function getDbIsPlaylist() - { - return $this->is_playlist; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcFilesPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [name] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->name !== $v || $this->isNew()) { - $this->name = $v; - $this->modifiedColumns[] = CcFilesPeer::NAME; - } - - return $this; - } // setDbName() - - /** - * Set the value of [mime] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbMime($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->mime !== $v || $this->isNew()) { - $this->mime = $v; - $this->modifiedColumns[] = CcFilesPeer::MIME; - } - - return $this; - } // setDbMime() - - /** - * Set the value of [ftype] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbFtype($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->ftype !== $v || $this->isNew()) { - $this->ftype = $v; - $this->modifiedColumns[] = CcFilesPeer::FTYPE; - } - - return $this; - } // setDbFtype() - - /** - * Set the value of [directory] column. - * - * @param int $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbDirectory($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->directory !== $v) { - $this->directory = $v; - $this->modifiedColumns[] = CcFilesPeer::DIRECTORY; - } - - if ($this->aCcMusicDirs !== null && $this->aCcMusicDirs->getId() !== $v) { - $this->aCcMusicDirs = null; - } - - return $this; - } // setDbDirectory() - - /** - * Set the value of [filepath] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbFilepath($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->filepath !== $v || $this->isNew()) { - $this->filepath = $v; - $this->modifiedColumns[] = CcFilesPeer::FILEPATH; - } - - return $this; - } // setDbFilepath() - - /** - * Set the value of [state] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbState($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->state !== $v || $this->isNew()) { - $this->state = $v; - $this->modifiedColumns[] = CcFilesPeer::STATE; - } - - return $this; - } // setDbState() - - /** - * Set the value of [currentlyaccessing] column. - * - * @param int $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbCurrentlyaccessing($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->currentlyaccessing !== $v || $this->isNew()) { - $this->currentlyaccessing = $v; - $this->modifiedColumns[] = CcFilesPeer::CURRENTLYACCESSING; - } - - return $this; - } // setDbCurrentlyaccessing() - - /** - * Set the value of [editedby] column. - * - * @param int $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbEditedby($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->editedby !== $v) { - $this->editedby = $v; - $this->modifiedColumns[] = CcFilesPeer::EDITEDBY; - } - - if ($this->aCcSubjsRelatedByDbEditedby !== null && $this->aCcSubjsRelatedByDbEditedby->getDbId() !== $v) { - $this->aCcSubjsRelatedByDbEditedby = null; - } - - return $this; - } // setDbEditedby() - - /** - * Sets the value of [mtime] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcFiles The current object (for fluent API support) - */ - public function setDbMtime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->mtime !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->mtime !== null && $tmpDt = new DateTime($this->mtime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->mtime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcFilesPeer::MTIME; - } - } // if either are not null - - return $this; - } // setDbMtime() - - /** - * Sets the value of [utime] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcFiles The current object (for fluent API support) - */ - public function setDbUtime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->utime !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->utime !== null && $tmpDt = new DateTime($this->utime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->utime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcFilesPeer::UTIME; - } - } // if either are not null - - return $this; - } // setDbUtime() - - /** - * Sets the value of [lptime] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcFiles The current object (for fluent API support) - */ - public function setDbLPtime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->lptime !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->lptime !== null && $tmpDt = new DateTime($this->lptime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->lptime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcFilesPeer::LPTIME; - } - } // if either are not null - - return $this; - } // setDbLPtime() - - /** - * Set the value of [md5] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbMd5($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->md5 !== $v) { - $this->md5 = $v; - $this->modifiedColumns[] = CcFilesPeer::MD5; - } - - return $this; - } // setDbMd5() - - /** - * Set the value of [track_title] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbTrackTitle($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->track_title !== $v) { - $this->track_title = $v; - $this->modifiedColumns[] = CcFilesPeer::TRACK_TITLE; - } - - return $this; - } // setDbTrackTitle() - - /** - * Set the value of [artist_name] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbArtistName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->artist_name !== $v) { - $this->artist_name = $v; - $this->modifiedColumns[] = CcFilesPeer::ARTIST_NAME; - } - - return $this; - } // setDbArtistName() - - /** - * Set the value of [bit_rate] column. - * - * @param int $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbBitRate($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->bit_rate !== $v) { - $this->bit_rate = $v; - $this->modifiedColumns[] = CcFilesPeer::BIT_RATE; - } - - return $this; - } // setDbBitRate() - - /** - * Set the value of [sample_rate] column. - * - * @param int $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbSampleRate($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->sample_rate !== $v) { - $this->sample_rate = $v; - $this->modifiedColumns[] = CcFilesPeer::SAMPLE_RATE; - } - - return $this; - } // setDbSampleRate() - - /** - * Set the value of [format] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbFormat($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->format !== $v) { - $this->format = $v; - $this->modifiedColumns[] = CcFilesPeer::FORMAT; - } - - return $this; - } // setDbFormat() - - /** - * Set the value of [length] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbLength($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->length !== $v || $this->isNew()) { - $this->length = $v; - $this->modifiedColumns[] = CcFilesPeer::LENGTH; - } - - return $this; - } // setDbLength() - - /** - * Set the value of [album_title] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbAlbumTitle($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->album_title !== $v) { - $this->album_title = $v; - $this->modifiedColumns[] = CcFilesPeer::ALBUM_TITLE; - } - - return $this; - } // setDbAlbumTitle() - - /** - * Set the value of [genre] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbGenre($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->genre !== $v) { - $this->genre = $v; - $this->modifiedColumns[] = CcFilesPeer::GENRE; - } - - return $this; - } // setDbGenre() - - /** - * Set the value of [comments] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbComments($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->comments !== $v) { - $this->comments = $v; - $this->modifiedColumns[] = CcFilesPeer::COMMENTS; - } - - return $this; - } // setDbComments() - - /** - * Set the value of [year] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbYear($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->year !== $v) { - $this->year = $v; - $this->modifiedColumns[] = CcFilesPeer::YEAR; - } - - return $this; - } // setDbYear() - - /** - * Set the value of [track_number] column. - * - * @param int $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbTrackNumber($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->track_number !== $v) { - $this->track_number = $v; - $this->modifiedColumns[] = CcFilesPeer::TRACK_NUMBER; - } - - return $this; - } // setDbTrackNumber() - - /** - * Set the value of [channels] column. - * - * @param int $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbChannels($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->channels !== $v) { - $this->channels = $v; - $this->modifiedColumns[] = CcFilesPeer::CHANNELS; - } - - return $this; - } // setDbChannels() - - /** - * Set the value of [url] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbUrl($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->url !== $v) { - $this->url = $v; - $this->modifiedColumns[] = CcFilesPeer::URL; - } - - return $this; - } // setDbUrl() - - /** - * Set the value of [bpm] column. - * - * @param int $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbBpm($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->bpm !== $v) { - $this->bpm = $v; - $this->modifiedColumns[] = CcFilesPeer::BPM; - } - - return $this; - } // setDbBpm() - - /** - * Set the value of [rating] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbRating($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->rating !== $v) { - $this->rating = $v; - $this->modifiedColumns[] = CcFilesPeer::RATING; - } - - return $this; - } // setDbRating() - - /** - * Set the value of [encoded_by] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbEncodedBy($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->encoded_by !== $v) { - $this->encoded_by = $v; - $this->modifiedColumns[] = CcFilesPeer::ENCODED_BY; - } - - return $this; - } // setDbEncodedBy() - - /** - * Set the value of [disc_number] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbDiscNumber($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->disc_number !== $v) { - $this->disc_number = $v; - $this->modifiedColumns[] = CcFilesPeer::DISC_NUMBER; - } - - return $this; - } // setDbDiscNumber() - - /** - * Set the value of [mood] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbMood($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->mood !== $v) { - $this->mood = $v; - $this->modifiedColumns[] = CcFilesPeer::MOOD; - } - - return $this; - } // setDbMood() - - /** - * Set the value of [label] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbLabel($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->label !== $v) { - $this->label = $v; - $this->modifiedColumns[] = CcFilesPeer::LABEL; - } - - return $this; - } // setDbLabel() - - /** - * Set the value of [composer] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbComposer($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->composer !== $v) { - $this->composer = $v; - $this->modifiedColumns[] = CcFilesPeer::COMPOSER; - } - - return $this; - } // setDbComposer() - - /** - * Set the value of [encoder] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbEncoder($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->encoder !== $v) { - $this->encoder = $v; - $this->modifiedColumns[] = CcFilesPeer::ENCODER; - } - - return $this; - } // setDbEncoder() - - /** - * Set the value of [checksum] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbChecksum($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->checksum !== $v) { - $this->checksum = $v; - $this->modifiedColumns[] = CcFilesPeer::CHECKSUM; - } - - return $this; - } // setDbChecksum() - - /** - * Set the value of [lyrics] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbLyrics($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->lyrics !== $v) { - $this->lyrics = $v; - $this->modifiedColumns[] = CcFilesPeer::LYRICS; - } - - return $this; - } // setDbLyrics() - - /** - * Set the value of [orchestra] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbOrchestra($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->orchestra !== $v) { - $this->orchestra = $v; - $this->modifiedColumns[] = CcFilesPeer::ORCHESTRA; - } - - return $this; - } // setDbOrchestra() - - /** - * Set the value of [conductor] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbConductor($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->conductor !== $v) { - $this->conductor = $v; - $this->modifiedColumns[] = CcFilesPeer::CONDUCTOR; - } - - return $this; - } // setDbConductor() - - /** - * Set the value of [lyricist] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbLyricist($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->lyricist !== $v) { - $this->lyricist = $v; - $this->modifiedColumns[] = CcFilesPeer::LYRICIST; - } - - return $this; - } // setDbLyricist() - - /** - * Set the value of [original_lyricist] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbOriginalLyricist($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->original_lyricist !== $v) { - $this->original_lyricist = $v; - $this->modifiedColumns[] = CcFilesPeer::ORIGINAL_LYRICIST; - } - - return $this; - } // setDbOriginalLyricist() - - /** - * Set the value of [radio_station_name] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbRadioStationName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->radio_station_name !== $v) { - $this->radio_station_name = $v; - $this->modifiedColumns[] = CcFilesPeer::RADIO_STATION_NAME; - } - - return $this; - } // setDbRadioStationName() - - /** - * Set the value of [info_url] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbInfoUrl($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->info_url !== $v) { - $this->info_url = $v; - $this->modifiedColumns[] = CcFilesPeer::INFO_URL; - } - - return $this; - } // setDbInfoUrl() - - /** - * Set the value of [artist_url] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbArtistUrl($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->artist_url !== $v) { - $this->artist_url = $v; - $this->modifiedColumns[] = CcFilesPeer::ARTIST_URL; - } - - return $this; - } // setDbArtistUrl() - - /** - * Set the value of [audio_source_url] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbAudioSourceUrl($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->audio_source_url !== $v) { - $this->audio_source_url = $v; - $this->modifiedColumns[] = CcFilesPeer::AUDIO_SOURCE_URL; - } - - return $this; - } // setDbAudioSourceUrl() - - /** - * Set the value of [radio_station_url] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbRadioStationUrl($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->radio_station_url !== $v) { - $this->radio_station_url = $v; - $this->modifiedColumns[] = CcFilesPeer::RADIO_STATION_URL; - } - - return $this; - } // setDbRadioStationUrl() - - /** - * Set the value of [buy_this_url] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbBuyThisUrl($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->buy_this_url !== $v) { - $this->buy_this_url = $v; - $this->modifiedColumns[] = CcFilesPeer::BUY_THIS_URL; - } - - return $this; - } // setDbBuyThisUrl() - - /** - * Set the value of [isrc_number] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbIsrcNumber($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->isrc_number !== $v) { - $this->isrc_number = $v; - $this->modifiedColumns[] = CcFilesPeer::ISRC_NUMBER; - } - - return $this; - } // setDbIsrcNumber() - - /** - * Set the value of [catalog_number] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbCatalogNumber($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->catalog_number !== $v) { - $this->catalog_number = $v; - $this->modifiedColumns[] = CcFilesPeer::CATALOG_NUMBER; - } - - return $this; - } // setDbCatalogNumber() - - /** - * Set the value of [original_artist] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbOriginalArtist($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->original_artist !== $v) { - $this->original_artist = $v; - $this->modifiedColumns[] = CcFilesPeer::ORIGINAL_ARTIST; - } - - return $this; - } // setDbOriginalArtist() - - /** - * Set the value of [copyright] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbCopyright($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->copyright !== $v) { - $this->copyright = $v; - $this->modifiedColumns[] = CcFilesPeer::COPYRIGHT; - } - - return $this; - } // setDbCopyright() - - /** - * Set the value of [report_datetime] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbReportDatetime($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->report_datetime !== $v) { - $this->report_datetime = $v; - $this->modifiedColumns[] = CcFilesPeer::REPORT_DATETIME; - } - - return $this; - } // setDbReportDatetime() - - /** - * Set the value of [report_location] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbReportLocation($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->report_location !== $v) { - $this->report_location = $v; - $this->modifiedColumns[] = CcFilesPeer::REPORT_LOCATION; - } - - return $this; - } // setDbReportLocation() - - /** - * Set the value of [report_organization] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbReportOrganization($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->report_organization !== $v) { - $this->report_organization = $v; - $this->modifiedColumns[] = CcFilesPeer::REPORT_ORGANIZATION; - } - - return $this; - } // setDbReportOrganization() - - /** - * Set the value of [subject] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbSubject($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->subject !== $v) { - $this->subject = $v; - $this->modifiedColumns[] = CcFilesPeer::SUBJECT; - } - - return $this; - } // setDbSubject() - - /** - * Set the value of [contributor] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbContributor($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->contributor !== $v) { - $this->contributor = $v; - $this->modifiedColumns[] = CcFilesPeer::CONTRIBUTOR; - } - - return $this; - } // setDbContributor() - - /** - * Set the value of [language] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbLanguage($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->language !== $v) { - $this->language = $v; - $this->modifiedColumns[] = CcFilesPeer::LANGUAGE; - } - - return $this; - } // setDbLanguage() - - /** - * Set the value of [file_exists] column. - * - * @param boolean $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbFileExists($v) - { - if ($v !== null) { - $v = (boolean) $v; - } - - if ($this->file_exists !== $v || $this->isNew()) { - $this->file_exists = $v; - $this->modifiedColumns[] = CcFilesPeer::FILE_EXISTS; - } - - return $this; - } // setDbFileExists() - - /** - * Set the value of [soundcloud_id] column. - * - * @param int $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbSoundcloudId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->soundcloud_id !== $v) { - $this->soundcloud_id = $v; - $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_ID; - } - - return $this; - } // setDbSoundcloudId() - - /** - * Set the value of [soundcloud_error_code] column. - * - * @param int $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbSoundcloudErrorCode($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->soundcloud_error_code !== $v) { - $this->soundcloud_error_code = $v; - $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_ERROR_CODE; - } - - return $this; - } // setDbSoundcloudErrorCode() - - /** - * Set the value of [soundcloud_error_msg] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbSoundcloudErrorMsg($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->soundcloud_error_msg !== $v) { - $this->soundcloud_error_msg = $v; - $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_ERROR_MSG; - } - - return $this; - } // setDbSoundcloudErrorMsg() - - /** - * Set the value of [soundcloud_link_to_file] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbSoundcloudLinkToFile($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->soundcloud_link_to_file !== $v) { - $this->soundcloud_link_to_file = $v; - $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE; - } - - return $this; - } // setDbSoundcloudLinkToFile() - - /** - * Sets the value of [soundcloud_upload_time] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcFiles The current object (for fluent API support) - */ - public function setDbSoundCloundUploadTime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->soundcloud_upload_time !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->soundcloud_upload_time !== null && $tmpDt = new DateTime($this->soundcloud_upload_time)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->soundcloud_upload_time = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME; - } - } // if either are not null - - return $this; - } // setDbSoundCloundUploadTime() - - /** - * Set the value of [replay_gain] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbReplayGain($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->replay_gain !== $v) { - $this->replay_gain = $v; - $this->modifiedColumns[] = CcFilesPeer::REPLAY_GAIN; - } - - return $this; - } // setDbReplayGain() - - /** - * Set the value of [owner_id] column. - * - * @param int $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbOwnerId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->owner_id !== $v) { - $this->owner_id = $v; - $this->modifiedColumns[] = CcFilesPeer::OWNER_ID; - } - - if ($this->aFkOwner !== null && $this->aFkOwner->getDbId() !== $v) { - $this->aFkOwner = null; - } - - return $this; - } // setDbOwnerId() - - /** - * Set the value of [cuein] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbCuein($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->cuein !== $v || $this->isNew()) { - $this->cuein = $v; - $this->modifiedColumns[] = CcFilesPeer::CUEIN; - } - - return $this; - } // setDbCuein() - - /** - * Set the value of [cueout] column. - * - * @param string $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbCueout($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->cueout !== $v || $this->isNew()) { - $this->cueout = $v; - $this->modifiedColumns[] = CcFilesPeer::CUEOUT; - } - - return $this; - } // setDbCueout() - - /** - * Set the value of [silan_check] column. - * - * @param boolean $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbSilanCheck($v) - { - if ($v !== null) { - $v = (boolean) $v; - } - - if ($this->silan_check !== $v || $this->isNew()) { - $this->silan_check = $v; - $this->modifiedColumns[] = CcFilesPeer::SILAN_CHECK; - } - - return $this; - } // setDbSilanCheck() - - /** - * Set the value of [hidden] column. - * - * @param boolean $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbHidden($v) - { - if ($v !== null) { - $v = (boolean) $v; - } - - if ($this->hidden !== $v || $this->isNew()) { - $this->hidden = $v; - $this->modifiedColumns[] = CcFilesPeer::HIDDEN; - } - - return $this; - } // setDbHidden() - - /** - * Set the value of [is_scheduled] column. - * - * @param boolean $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbIsScheduled($v) - { - if ($v !== null) { - $v = (boolean) $v; - } - - if ($this->is_scheduled !== $v || $this->isNew()) { - $this->is_scheduled = $v; - $this->modifiedColumns[] = CcFilesPeer::IS_SCHEDULED; - } - - return $this; - } // setDbIsScheduled() - - /** - * Set the value of [is_playlist] column. - * - * @param boolean $v new value - * @return CcFiles The current object (for fluent API support) - */ - public function setDbIsPlaylist($v) - { - if ($v !== null) { - $v = (boolean) $v; - } - - if ($this->is_playlist !== $v || $this->isNew()) { - $this->is_playlist = $v; - $this->modifiedColumns[] = CcFilesPeer::IS_PLAYLIST; - } - - return $this; - } // setDbIsPlaylist() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->name !== '') { - return false; - } - - if ($this->mime !== '') { - return false; - } - - if ($this->ftype !== '') { - return false; - } - - if ($this->filepath !== '') { - return false; - } - - if ($this->state !== 'empty') { - return false; - } - - if ($this->currentlyaccessing !== 0) { - return false; - } - - if ($this->length !== '00:00:00') { - return false; - } - - if ($this->file_exists !== true) { - return false; - } - - if ($this->cuein !== '00:00:00') { - return false; - } - - if ($this->cueout !== '00:00:00') { - return false; - } - - if ($this->silan_check !== false) { - return false; - } - - if ($this->hidden !== false) { - return false; - } - - if ($this->is_scheduled !== false) { - return false; - } - - if ($this->is_playlist !== false) { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : 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) ? (int) $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->owner_id = ($row[$startcol + 63] !== null) ? (int) $row[$startcol + 63] : null; - $this->cuein = ($row[$startcol + 64] !== null) ? (string) $row[$startcol + 64] : null; - $this->cueout = ($row[$startcol + 65] !== null) ? (string) $row[$startcol + 65] : null; - $this->silan_check = ($row[$startcol + 66] !== null) ? (boolean) $row[$startcol + 66] : null; - $this->hidden = ($row[$startcol + 67] !== null) ? (boolean) $row[$startcol + 67] : null; - $this->is_scheduled = ($row[$startcol + 68] !== null) ? (boolean) $row[$startcol + 68] : null; - $this->is_playlist = ($row[$startcol + 69] !== null) ? (boolean) $row[$startcol + 69] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 70; // 70 = CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcFiles object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcMusicDirs !== null && $this->directory !== $this->aCcMusicDirs->getId()) { - $this->aCcMusicDirs = null; - } - if ($this->aCcSubjsRelatedByDbEditedby !== null && $this->editedby !== $this->aCcSubjsRelatedByDbEditedby->getDbId()) { - $this->aCcSubjsRelatedByDbEditedby = null; - } - if ($this->aFkOwner !== null && $this->owner_id !== $this->aFkOwner->getDbId()) { - $this->aFkOwner = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcFilesPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aFkOwner = null; - $this->aCcSubjsRelatedByDbEditedby = null; - $this->aCcMusicDirs = null; - $this->collCcShowInstancess = null; - - $this->collCcPlaylistcontentss = null; - - $this->collCcBlockcontentss = null; - - $this->collCcSchedules = null; - - $this->collCcPlayoutHistorys = null; - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcFilesQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcFilesPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aFkOwner !== null) { - if ($this->aFkOwner->isModified() || $this->aFkOwner->isNew()) { - $affectedRows += $this->aFkOwner->save($con); - } - $this->setFkOwner($this->aFkOwner); - } - - if ($this->aCcSubjsRelatedByDbEditedby !== null) { - if ($this->aCcSubjsRelatedByDbEditedby->isModified() || $this->aCcSubjsRelatedByDbEditedby->isNew()) { - $affectedRows += $this->aCcSubjsRelatedByDbEditedby->save($con); - } - $this->setCcSubjsRelatedByDbEditedby($this->aCcSubjsRelatedByDbEditedby); - } - - if ($this->aCcMusicDirs !== null) { - if ($this->aCcMusicDirs->isModified() || $this->aCcMusicDirs->isNew()) { - $affectedRows += $this->aCcMusicDirs->save($con); - } - $this->setCcMusicDirs($this->aCcMusicDirs); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcFilesPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcFilesPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcFilesPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcFilesPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - if ($this->collCcShowInstancess !== null) { - foreach ($this->collCcShowInstancess as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcPlaylistcontentss !== null) { - foreach ($this->collCcPlaylistcontentss as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcBlockcontentss !== null) { - foreach ($this->collCcBlockcontentss as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcSchedules !== null) { - foreach ($this->collCcSchedules as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcPlayoutHistorys !== null) { - foreach ($this->collCcPlayoutHistorys as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aFkOwner !== null) { - if (!$this->aFkOwner->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aFkOwner->getValidationFailures()); - } - } - - if ($this->aCcSubjsRelatedByDbEditedby !== null) { - if (!$this->aCcSubjsRelatedByDbEditedby->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcSubjsRelatedByDbEditedby->getValidationFailures()); - } - } - - if ($this->aCcMusicDirs !== null) { - if (!$this->aCcMusicDirs->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcMusicDirs->getValidationFailures()); - } - } - - - if (($retval = CcFilesPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - if ($this->collCcShowInstancess !== null) { - foreach ($this->collCcShowInstancess as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcPlaylistcontentss !== null) { - foreach ($this->collCcPlaylistcontentss as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcBlockcontentss !== null) { - foreach ($this->collCcBlockcontentss as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcSchedules !== null) { - foreach ($this->collCcSchedules as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcPlayoutHistorys !== null) { - foreach ($this->collCcPlayoutHistorys as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcFilesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbName(); - break; - case 2: - return $this->getDbMime(); - break; - case 3: - return $this->getDbFtype(); - break; - case 4: - return $this->getDbDirectory(); - break; - case 5: - return $this->getDbFilepath(); - break; - case 6: - return $this->getDbState(); - break; - case 7: - return $this->getDbCurrentlyaccessing(); - break; - case 8: - return $this->getDbEditedby(); - break; - case 9: - return $this->getDbMtime(); - break; - case 10: - return $this->getDbUtime(); - break; - case 11: - return $this->getDbLPtime(); - break; - case 12: - return $this->getDbMd5(); - break; - case 13: - return $this->getDbTrackTitle(); - break; - case 14: - return $this->getDbArtistName(); - break; - case 15: - return $this->getDbBitRate(); - break; - case 16: - return $this->getDbSampleRate(); - break; - case 17: - return $this->getDbFormat(); - break; - case 18: - return $this->getDbLength(); - break; - case 19: - return $this->getDbAlbumTitle(); - break; - case 20: - return $this->getDbGenre(); - break; - case 21: - return $this->getDbComments(); - break; - case 22: - return $this->getDbYear(); - break; - case 23: - return $this->getDbTrackNumber(); - break; - case 24: - return $this->getDbChannels(); - break; - case 25: - return $this->getDbUrl(); - break; - case 26: - return $this->getDbBpm(); - break; - case 27: - return $this->getDbRating(); - break; - case 28: - return $this->getDbEncodedBy(); - break; - case 29: - return $this->getDbDiscNumber(); - break; - case 30: - return $this->getDbMood(); - break; - case 31: - return $this->getDbLabel(); - break; - case 32: - return $this->getDbComposer(); - break; - case 33: - return $this->getDbEncoder(); - break; - case 34: - return $this->getDbChecksum(); - break; - case 35: - return $this->getDbLyrics(); - break; - case 36: - return $this->getDbOrchestra(); - break; - case 37: - return $this->getDbConductor(); - break; - case 38: - return $this->getDbLyricist(); - break; - case 39: - return $this->getDbOriginalLyricist(); - break; - case 40: - return $this->getDbRadioStationName(); - break; - case 41: - return $this->getDbInfoUrl(); - break; - case 42: - return $this->getDbArtistUrl(); - break; - case 43: - return $this->getDbAudioSourceUrl(); - break; - case 44: - return $this->getDbRadioStationUrl(); - break; - case 45: - return $this->getDbBuyThisUrl(); - break; - case 46: - return $this->getDbIsrcNumber(); - break; - case 47: - return $this->getDbCatalogNumber(); - break; - case 48: - return $this->getDbOriginalArtist(); - break; - case 49: - return $this->getDbCopyright(); - break; - case 50: - return $this->getDbReportDatetime(); - break; - case 51: - return $this->getDbReportLocation(); - break; - case 52: - return $this->getDbReportOrganization(); - break; - case 53: - return $this->getDbSubject(); - break; - case 54: - return $this->getDbContributor(); - break; - case 55: - return $this->getDbLanguage(); - break; - case 56: - return $this->getDbFileExists(); - break; - case 57: - return $this->getDbSoundcloudId(); - break; - case 58: - return $this->getDbSoundcloudErrorCode(); - break; - case 59: - return $this->getDbSoundcloudErrorMsg(); - break; - case 60: - return $this->getDbSoundcloudLinkToFile(); - break; - case 61: - return $this->getDbSoundCloundUploadTime(); - break; - case 62: - return $this->getDbReplayGain(); - break; - case 63: - return $this->getDbOwnerId(); - break; - case 64: - return $this->getDbCuein(); - break; - case 65: - return $this->getDbCueout(); - break; - case 66: - return $this->getDbSilanCheck(); - break; - case 67: - return $this->getDbHidden(); - break; - case 68: - return $this->getDbIsScheduled(); - break; - case 69: - return $this->getDbIsPlaylist(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcFilesPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $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(), - $keys[63] => $this->getDbOwnerId(), - $keys[64] => $this->getDbCuein(), - $keys[65] => $this->getDbCueout(), - $keys[66] => $this->getDbSilanCheck(), - $keys[67] => $this->getDbHidden(), - $keys[68] => $this->getDbIsScheduled(), - $keys[69] => $this->getDbIsPlaylist(), - ); - if ($includeForeignObjects) { - if (null !== $this->aFkOwner) { - $result['FkOwner'] = $this->aFkOwner->toArray($keyType, $includeLazyLoadColumns, true); - } - if (null !== $this->aCcSubjsRelatedByDbEditedby) { - $result['CcSubjsRelatedByDbEditedby'] = $this->aCcSubjsRelatedByDbEditedby->toArray($keyType, $includeLazyLoadColumns, true); - } - if (null !== $this->aCcMusicDirs) { - $result['CcMusicDirs'] = $this->aCcMusicDirs->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcFilesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbName($value); - break; - case 2: - $this->setDbMime($value); - break; - case 3: - $this->setDbFtype($value); - break; - case 4: - $this->setDbDirectory($value); - break; - case 5: - $this->setDbFilepath($value); - break; - case 6: - $this->setDbState($value); - break; - case 7: - $this->setDbCurrentlyaccessing($value); - break; - case 8: - $this->setDbEditedby($value); - break; - case 9: - $this->setDbMtime($value); - break; - case 10: - $this->setDbUtime($value); - break; - case 11: - $this->setDbLPtime($value); - break; - case 12: - $this->setDbMd5($value); - break; - case 13: - $this->setDbTrackTitle($value); - break; - case 14: - $this->setDbArtistName($value); - break; - case 15: - $this->setDbBitRate($value); - break; - case 16: - $this->setDbSampleRate($value); - break; - case 17: - $this->setDbFormat($value); - break; - case 18: - $this->setDbLength($value); - break; - case 19: - $this->setDbAlbumTitle($value); - break; - case 20: - $this->setDbGenre($value); - break; - case 21: - $this->setDbComments($value); - break; - case 22: - $this->setDbYear($value); - break; - case 23: - $this->setDbTrackNumber($value); - break; - case 24: - $this->setDbChannels($value); - break; - case 25: - $this->setDbUrl($value); - break; - case 26: - $this->setDbBpm($value); - break; - case 27: - $this->setDbRating($value); - break; - case 28: - $this->setDbEncodedBy($value); - break; - case 29: - $this->setDbDiscNumber($value); - break; - case 30: - $this->setDbMood($value); - break; - case 31: - $this->setDbLabel($value); - break; - case 32: - $this->setDbComposer($value); - break; - case 33: - $this->setDbEncoder($value); - break; - case 34: - $this->setDbChecksum($value); - break; - case 35: - $this->setDbLyrics($value); - break; - case 36: - $this->setDbOrchestra($value); - break; - case 37: - $this->setDbConductor($value); - break; - case 38: - $this->setDbLyricist($value); - break; - case 39: - $this->setDbOriginalLyricist($value); - break; - case 40: - $this->setDbRadioStationName($value); - break; - case 41: - $this->setDbInfoUrl($value); - break; - case 42: - $this->setDbArtistUrl($value); - break; - case 43: - $this->setDbAudioSourceUrl($value); - break; - case 44: - $this->setDbRadioStationUrl($value); - break; - case 45: - $this->setDbBuyThisUrl($value); - break; - case 46: - $this->setDbIsrcNumber($value); - break; - case 47: - $this->setDbCatalogNumber($value); - break; - case 48: - $this->setDbOriginalArtist($value); - break; - case 49: - $this->setDbCopyright($value); - break; - case 50: - $this->setDbReportDatetime($value); - break; - case 51: - $this->setDbReportLocation($value); - break; - case 52: - $this->setDbReportOrganization($value); - break; - case 53: - $this->setDbSubject($value); - break; - case 54: - $this->setDbContributor($value); - break; - case 55: - $this->setDbLanguage($value); - break; - case 56: - $this->setDbFileExists($value); - break; - case 57: - $this->setDbSoundcloudId($value); - break; - case 58: - $this->setDbSoundcloudErrorCode($value); - break; - case 59: - $this->setDbSoundcloudErrorMsg($value); - break; - case 60: - $this->setDbSoundcloudLinkToFile($value); - break; - case 61: - $this->setDbSoundCloundUploadTime($value); - break; - case 62: - $this->setDbReplayGain($value); - break; - case 63: - $this->setDbOwnerId($value); - break; - case 64: - $this->setDbCuein($value); - break; - case 65: - $this->setDbCueout($value); - break; - case 66: - $this->setDbSilanCheck($value); - break; - case 67: - $this->setDbHidden($value); - break; - case 68: - $this->setDbIsScheduled($value); - break; - case 69: - $this->setDbIsPlaylist($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcFilesPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - 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]]); - if (array_key_exists($keys[63], $arr)) $this->setDbOwnerId($arr[$keys[63]]); - if (array_key_exists($keys[64], $arr)) $this->setDbCuein($arr[$keys[64]]); - if (array_key_exists($keys[65], $arr)) $this->setDbCueout($arr[$keys[65]]); - if (array_key_exists($keys[66], $arr)) $this->setDbSilanCheck($arr[$keys[66]]); - if (array_key_exists($keys[67], $arr)) $this->setDbHidden($arr[$keys[67]]); - if (array_key_exists($keys[68], $arr)) $this->setDbIsScheduled($arr[$keys[68]]); - if (array_key_exists($keys[69], $arr)) $this->setDbIsPlaylist($arr[$keys[69]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcFilesPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcFilesPeer::ID)) $criteria->add(CcFilesPeer::ID, $this->id); - 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); - if ($this->isColumnModified(CcFilesPeer::DIRECTORY)) $criteria->add(CcFilesPeer::DIRECTORY, $this->directory); - if ($this->isColumnModified(CcFilesPeer::FILEPATH)) $criteria->add(CcFilesPeer::FILEPATH, $this->filepath); - if ($this->isColumnModified(CcFilesPeer::STATE)) $criteria->add(CcFilesPeer::STATE, $this->state); - if ($this->isColumnModified(CcFilesPeer::CURRENTLYACCESSING)) $criteria->add(CcFilesPeer::CURRENTLYACCESSING, $this->currentlyaccessing); - if ($this->isColumnModified(CcFilesPeer::EDITEDBY)) $criteria->add(CcFilesPeer::EDITEDBY, $this->editedby); - if ($this->isColumnModified(CcFilesPeer::MTIME)) $criteria->add(CcFilesPeer::MTIME, $this->mtime); - if ($this->isColumnModified(CcFilesPeer::UTIME)) $criteria->add(CcFilesPeer::UTIME, $this->utime); - if ($this->isColumnModified(CcFilesPeer::LPTIME)) $criteria->add(CcFilesPeer::LPTIME, $this->lptime); - if ($this->isColumnModified(CcFilesPeer::MD5)) $criteria->add(CcFilesPeer::MD5, $this->md5); - if ($this->isColumnModified(CcFilesPeer::TRACK_TITLE)) $criteria->add(CcFilesPeer::TRACK_TITLE, $this->track_title); - if ($this->isColumnModified(CcFilesPeer::ARTIST_NAME)) $criteria->add(CcFilesPeer::ARTIST_NAME, $this->artist_name); - if ($this->isColumnModified(CcFilesPeer::BIT_RATE)) $criteria->add(CcFilesPeer::BIT_RATE, $this->bit_rate); - if ($this->isColumnModified(CcFilesPeer::SAMPLE_RATE)) $criteria->add(CcFilesPeer::SAMPLE_RATE, $this->sample_rate); - if ($this->isColumnModified(CcFilesPeer::FORMAT)) $criteria->add(CcFilesPeer::FORMAT, $this->format); - if ($this->isColumnModified(CcFilesPeer::LENGTH)) $criteria->add(CcFilesPeer::LENGTH, $this->length); - if ($this->isColumnModified(CcFilesPeer::ALBUM_TITLE)) $criteria->add(CcFilesPeer::ALBUM_TITLE, $this->album_title); - if ($this->isColumnModified(CcFilesPeer::GENRE)) $criteria->add(CcFilesPeer::GENRE, $this->genre); - if ($this->isColumnModified(CcFilesPeer::COMMENTS)) $criteria->add(CcFilesPeer::COMMENTS, $this->comments); - if ($this->isColumnModified(CcFilesPeer::YEAR)) $criteria->add(CcFilesPeer::YEAR, $this->year); - if ($this->isColumnModified(CcFilesPeer::TRACK_NUMBER)) $criteria->add(CcFilesPeer::TRACK_NUMBER, $this->track_number); - if ($this->isColumnModified(CcFilesPeer::CHANNELS)) $criteria->add(CcFilesPeer::CHANNELS, $this->channels); - if ($this->isColumnModified(CcFilesPeer::URL)) $criteria->add(CcFilesPeer::URL, $this->url); - if ($this->isColumnModified(CcFilesPeer::BPM)) $criteria->add(CcFilesPeer::BPM, $this->bpm); - if ($this->isColumnModified(CcFilesPeer::RATING)) $criteria->add(CcFilesPeer::RATING, $this->rating); - if ($this->isColumnModified(CcFilesPeer::ENCODED_BY)) $criteria->add(CcFilesPeer::ENCODED_BY, $this->encoded_by); - if ($this->isColumnModified(CcFilesPeer::DISC_NUMBER)) $criteria->add(CcFilesPeer::DISC_NUMBER, $this->disc_number); - if ($this->isColumnModified(CcFilesPeer::MOOD)) $criteria->add(CcFilesPeer::MOOD, $this->mood); - if ($this->isColumnModified(CcFilesPeer::LABEL)) $criteria->add(CcFilesPeer::LABEL, $this->label); - if ($this->isColumnModified(CcFilesPeer::COMPOSER)) $criteria->add(CcFilesPeer::COMPOSER, $this->composer); - if ($this->isColumnModified(CcFilesPeer::ENCODER)) $criteria->add(CcFilesPeer::ENCODER, $this->encoder); - if ($this->isColumnModified(CcFilesPeer::CHECKSUM)) $criteria->add(CcFilesPeer::CHECKSUM, $this->checksum); - if ($this->isColumnModified(CcFilesPeer::LYRICS)) $criteria->add(CcFilesPeer::LYRICS, $this->lyrics); - if ($this->isColumnModified(CcFilesPeer::ORCHESTRA)) $criteria->add(CcFilesPeer::ORCHESTRA, $this->orchestra); - if ($this->isColumnModified(CcFilesPeer::CONDUCTOR)) $criteria->add(CcFilesPeer::CONDUCTOR, $this->conductor); - if ($this->isColumnModified(CcFilesPeer::LYRICIST)) $criteria->add(CcFilesPeer::LYRICIST, $this->lyricist); - if ($this->isColumnModified(CcFilesPeer::ORIGINAL_LYRICIST)) $criteria->add(CcFilesPeer::ORIGINAL_LYRICIST, $this->original_lyricist); - if ($this->isColumnModified(CcFilesPeer::RADIO_STATION_NAME)) $criteria->add(CcFilesPeer::RADIO_STATION_NAME, $this->radio_station_name); - if ($this->isColumnModified(CcFilesPeer::INFO_URL)) $criteria->add(CcFilesPeer::INFO_URL, $this->info_url); - if ($this->isColumnModified(CcFilesPeer::ARTIST_URL)) $criteria->add(CcFilesPeer::ARTIST_URL, $this->artist_url); - if ($this->isColumnModified(CcFilesPeer::AUDIO_SOURCE_URL)) $criteria->add(CcFilesPeer::AUDIO_SOURCE_URL, $this->audio_source_url); - if ($this->isColumnModified(CcFilesPeer::RADIO_STATION_URL)) $criteria->add(CcFilesPeer::RADIO_STATION_URL, $this->radio_station_url); - if ($this->isColumnModified(CcFilesPeer::BUY_THIS_URL)) $criteria->add(CcFilesPeer::BUY_THIS_URL, $this->buy_this_url); - if ($this->isColumnModified(CcFilesPeer::ISRC_NUMBER)) $criteria->add(CcFilesPeer::ISRC_NUMBER, $this->isrc_number); - if ($this->isColumnModified(CcFilesPeer::CATALOG_NUMBER)) $criteria->add(CcFilesPeer::CATALOG_NUMBER, $this->catalog_number); - if ($this->isColumnModified(CcFilesPeer::ORIGINAL_ARTIST)) $criteria->add(CcFilesPeer::ORIGINAL_ARTIST, $this->original_artist); - if ($this->isColumnModified(CcFilesPeer::COPYRIGHT)) $criteria->add(CcFilesPeer::COPYRIGHT, $this->copyright); - if ($this->isColumnModified(CcFilesPeer::REPORT_DATETIME)) $criteria->add(CcFilesPeer::REPORT_DATETIME, $this->report_datetime); - if ($this->isColumnModified(CcFilesPeer::REPORT_LOCATION)) $criteria->add(CcFilesPeer::REPORT_LOCATION, $this->report_location); - if ($this->isColumnModified(CcFilesPeer::REPORT_ORGANIZATION)) $criteria->add(CcFilesPeer::REPORT_ORGANIZATION, $this->report_organization); - 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::LANGUAGE)) $criteria->add(CcFilesPeer::LANGUAGE, $this->language); - if ($this->isColumnModified(CcFilesPeer::FILE_EXISTS)) $criteria->add(CcFilesPeer::FILE_EXISTS, $this->file_exists); - 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_MSG)) $criteria->add(CcFilesPeer::SOUNDCLOUD_ERROR_MSG, $this->soundcloud_error_msg); - if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE)) $criteria->add(CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE, $this->soundcloud_link_to_file); - if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME)) $criteria->add(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME, $this->soundcloud_upload_time); - if ($this->isColumnModified(CcFilesPeer::REPLAY_GAIN)) $criteria->add(CcFilesPeer::REPLAY_GAIN, $this->replay_gain); - if ($this->isColumnModified(CcFilesPeer::OWNER_ID)) $criteria->add(CcFilesPeer::OWNER_ID, $this->owner_id); - if ($this->isColumnModified(CcFilesPeer::CUEIN)) $criteria->add(CcFilesPeer::CUEIN, $this->cuein); - if ($this->isColumnModified(CcFilesPeer::CUEOUT)) $criteria->add(CcFilesPeer::CUEOUT, $this->cueout); - if ($this->isColumnModified(CcFilesPeer::SILAN_CHECK)) $criteria->add(CcFilesPeer::SILAN_CHECK, $this->silan_check); - if ($this->isColumnModified(CcFilesPeer::HIDDEN)) $criteria->add(CcFilesPeer::HIDDEN, $this->hidden); - if ($this->isColumnModified(CcFilesPeer::IS_SCHEDULED)) $criteria->add(CcFilesPeer::IS_SCHEDULED, $this->is_scheduled); - if ($this->isColumnModified(CcFilesPeer::IS_PLAYLIST)) $criteria->add(CcFilesPeer::IS_PLAYLIST, $this->is_playlist); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcFilesPeer::DATABASE_NAME); - $criteria->add(CcFilesPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcFiles (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbName($this->name); - $copyObj->setDbMime($this->mime); - $copyObj->setDbFtype($this->ftype); - $copyObj->setDbDirectory($this->directory); - $copyObj->setDbFilepath($this->filepath); - $copyObj->setDbState($this->state); - $copyObj->setDbCurrentlyaccessing($this->currentlyaccessing); - $copyObj->setDbEditedby($this->editedby); - $copyObj->setDbMtime($this->mtime); - $copyObj->setDbUtime($this->utime); - $copyObj->setDbLPtime($this->lptime); - $copyObj->setDbMd5($this->md5); - $copyObj->setDbTrackTitle($this->track_title); - $copyObj->setDbArtistName($this->artist_name); - $copyObj->setDbBitRate($this->bit_rate); - $copyObj->setDbSampleRate($this->sample_rate); - $copyObj->setDbFormat($this->format); - $copyObj->setDbLength($this->length); - $copyObj->setDbAlbumTitle($this->album_title); - $copyObj->setDbGenre($this->genre); - $copyObj->setDbComments($this->comments); - $copyObj->setDbYear($this->year); - $copyObj->setDbTrackNumber($this->track_number); - $copyObj->setDbChannels($this->channels); - $copyObj->setDbUrl($this->url); - $copyObj->setDbBpm($this->bpm); - $copyObj->setDbRating($this->rating); - $copyObj->setDbEncodedBy($this->encoded_by); - $copyObj->setDbDiscNumber($this->disc_number); - $copyObj->setDbMood($this->mood); - $copyObj->setDbLabel($this->label); - $copyObj->setDbComposer($this->composer); - $copyObj->setDbEncoder($this->encoder); - $copyObj->setDbChecksum($this->checksum); - $copyObj->setDbLyrics($this->lyrics); - $copyObj->setDbOrchestra($this->orchestra); - $copyObj->setDbConductor($this->conductor); - $copyObj->setDbLyricist($this->lyricist); - $copyObj->setDbOriginalLyricist($this->original_lyricist); - $copyObj->setDbRadioStationName($this->radio_station_name); - $copyObj->setDbInfoUrl($this->info_url); - $copyObj->setDbArtistUrl($this->artist_url); - $copyObj->setDbAudioSourceUrl($this->audio_source_url); - $copyObj->setDbRadioStationUrl($this->radio_station_url); - $copyObj->setDbBuyThisUrl($this->buy_this_url); - $copyObj->setDbIsrcNumber($this->isrc_number); - $copyObj->setDbCatalogNumber($this->catalog_number); - $copyObj->setDbOriginalArtist($this->original_artist); - $copyObj->setDbCopyright($this->copyright); - $copyObj->setDbReportDatetime($this->report_datetime); - $copyObj->setDbReportLocation($this->report_location); - $copyObj->setDbReportOrganization($this->report_organization); - $copyObj->setDbSubject($this->subject); - $copyObj->setDbContributor($this->contributor); - $copyObj->setDbLanguage($this->language); - $copyObj->setDbFileExists($this->file_exists); - $copyObj->setDbSoundcloudId($this->soundcloud_id); - $copyObj->setDbSoundcloudErrorCode($this->soundcloud_error_code); - $copyObj->setDbSoundcloudErrorMsg($this->soundcloud_error_msg); - $copyObj->setDbSoundcloudLinkToFile($this->soundcloud_link_to_file); - $copyObj->setDbSoundCloundUploadTime($this->soundcloud_upload_time); - $copyObj->setDbReplayGain($this->replay_gain); - $copyObj->setDbOwnerId($this->owner_id); - $copyObj->setDbCuein($this->cuein); - $copyObj->setDbCueout($this->cueout); - $copyObj->setDbSilanCheck($this->silan_check); - $copyObj->setDbHidden($this->hidden); - $copyObj->setDbIsScheduled($this->is_scheduled); - $copyObj->setDbIsPlaylist($this->is_playlist); - - if ($deepCopy) { - // important: temporarily setNew(false) because this affects the behavior of - // the getter/setter methods for fkey referrer objects. - $copyObj->setNew(false); - - foreach ($this->getCcShowInstancess() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcShowInstances($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcPlaylistcontentss() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcPlaylistcontents($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcBlockcontentss() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcBlockcontents($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcSchedules() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcSchedule($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcPlayoutHistorys() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcPlayoutHistory($relObj->copy($deepCopy)); - } - } - - } // if ($deepCopy) - - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcFiles Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcFilesPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcFilesPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcSubjs object. - * - * @param CcSubjs $v - * @return CcFiles The current object (for fluent API support) - * @throws PropelException - */ - public function setFkOwner(CcSubjs $v = null) - { - if ($v === null) { - $this->setDbOwnerId(NULL); - } else { - $this->setDbOwnerId($v->getDbId()); - } - - $this->aFkOwner = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcSubjs object, it will not be re-added. - if ($v !== null) { - $v->addCcFilesRelatedByDbOwnerId($this); - } - - return $this; - } - - - /** - * Get the associated CcSubjs object - * - * @param PropelPDO Optional Connection object. - * @return CcSubjs The associated CcSubjs object. - * @throws PropelException - */ - public function getFkOwner(PropelPDO $con = null) - { - if ($this->aFkOwner === null && ($this->owner_id !== null)) { - $this->aFkOwner = CcSubjsQuery::create()->findPk($this->owner_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aFkOwner->addCcFilessRelatedByDbOwnerId($this); - */ - } - return $this->aFkOwner; - } - - /** - * Declares an association between this object and a CcSubjs object. - * - * @param CcSubjs $v - * @return CcFiles The current object (for fluent API support) - * @throws PropelException - */ - public function setCcSubjsRelatedByDbEditedby(CcSubjs $v = null) - { - if ($v === null) { - $this->setDbEditedby(NULL); - } else { - $this->setDbEditedby($v->getDbId()); - } - - $this->aCcSubjsRelatedByDbEditedby = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcSubjs object, it will not be re-added. - if ($v !== null) { - $v->addCcFilesRelatedByDbEditedby($this); - } - - return $this; - } - - - /** - * Get the associated CcSubjs object - * - * @param PropelPDO Optional Connection object. - * @return CcSubjs The associated CcSubjs object. - * @throws PropelException - */ - public function getCcSubjsRelatedByDbEditedby(PropelPDO $con = null) - { - if ($this->aCcSubjsRelatedByDbEditedby === null && ($this->editedby !== null)) { - $this->aCcSubjsRelatedByDbEditedby = CcSubjsQuery::create()->findPk($this->editedby, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcSubjsRelatedByDbEditedby->addCcFilessRelatedByDbEditedby($this); - */ - } - return $this->aCcSubjsRelatedByDbEditedby; - } - - /** - * Declares an association between this object and a CcMusicDirs object. - * - * @param CcMusicDirs $v - * @return CcFiles The current object (for fluent API support) - * @throws PropelException - */ - public function setCcMusicDirs(CcMusicDirs $v = null) - { - if ($v === null) { - $this->setDbDirectory(NULL); - } else { - $this->setDbDirectory($v->getId()); - } - - $this->aCcMusicDirs = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcMusicDirs object, it will not be re-added. - if ($v !== null) { - $v->addCcFiles($this); - } - - return $this; - } - - - /** - * Get the associated CcMusicDirs object - * - * @param PropelPDO Optional Connection object. - * @return CcMusicDirs The associated CcMusicDirs object. - * @throws PropelException - */ - public function getCcMusicDirs(PropelPDO $con = null) - { - if ($this->aCcMusicDirs === null && ($this->directory !== null)) { - $this->aCcMusicDirs = CcMusicDirsQuery::create()->findPk($this->directory, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcMusicDirs->addCcFiless($this); - */ - } - return $this->aCcMusicDirs; - } - - /** - * Clears out the collCcShowInstancess 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 addCcShowInstancess() - */ - public function clearCcShowInstancess() - { - $this->collCcShowInstancess = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcShowInstancess collection. - * - * By default this just sets the collCcShowInstancess collection to an empty array (like clearcollCcShowInstancess()); - * 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 initCcShowInstancess() - { - $this->collCcShowInstancess = new PropelObjectCollection(); - $this->collCcShowInstancess->setModel('CcShowInstances'); - } - - /** - * Gets an array of CcShowInstances 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 CcFiles 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 CcShowInstances[] List of CcShowInstances objects - * @throws PropelException - */ - public function getCcShowInstancess($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcShowInstancess || null !== $criteria) { - if ($this->isNew() && null === $this->collCcShowInstancess) { - // return empty collection - $this->initCcShowInstancess(); - } else { - $collCcShowInstancess = CcShowInstancesQuery::create(null, $criteria) - ->filterByCcFiles($this) - ->find($con); - if (null !== $criteria) { - return $collCcShowInstancess; - } - $this->collCcShowInstancess = $collCcShowInstancess; - } - } - return $this->collCcShowInstancess; - } - - /** - * Returns the number of related CcShowInstances objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcShowInstances objects. - * @throws PropelException - */ - public function countCcShowInstancess(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcShowInstancess || null !== $criteria) { - if ($this->isNew() && null === $this->collCcShowInstancess) { - return 0; - } else { - $query = CcShowInstancesQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcFiles($this) - ->count($con); - } - } else { - return count($this->collCcShowInstancess); - } - } - - /** - * Method called to associate a CcShowInstances object to this object - * through the CcShowInstances foreign key attribute. - * - * @param CcShowInstances $l CcShowInstances - * @return void - * @throws PropelException - */ - public function addCcShowInstances(CcShowInstances $l) - { - if ($this->collCcShowInstancess === null) { - $this->initCcShowInstancess(); - } - if (!$this->collCcShowInstancess->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcShowInstancess[]= $l; - $l->setCcFiles($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcFiles is new, it will return - * an empty collection; or if this CcFiles has previously - * been saved, it will retrieve related CcShowInstancess from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcFiles. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcShowInstances[] List of CcShowInstances objects - */ - public function getCcShowInstancessJoinCcShow($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcShowInstancesQuery::create(null, $criteria); - $query->joinWith('CcShow', $join_behavior); - - return $this->getCcShowInstancess($query, $con); - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcFiles is new, it will return - * an empty collection; or if this CcFiles has previously - * been saved, it will retrieve related CcShowInstancess from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcFiles. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcShowInstances[] List of CcShowInstances objects - */ - public function getCcShowInstancessJoinCcShowInstancesRelatedByDbOriginalShow($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcShowInstancesQuery::create(null, $criteria); - $query->joinWith('CcShowInstancesRelatedByDbOriginalShow', $join_behavior); - - return $this->getCcShowInstancess($query, $con); - } - - /** - * Clears out the collCcPlaylistcontentss 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 addCcPlaylistcontentss() - */ - public function clearCcPlaylistcontentss() - { - $this->collCcPlaylistcontentss = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcPlaylistcontentss collection. - * - * By default this just sets the collCcPlaylistcontentss collection to an empty array (like clearcollCcPlaylistcontentss()); - * 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 initCcPlaylistcontentss() - { - $this->collCcPlaylistcontentss = new PropelObjectCollection(); - $this->collCcPlaylistcontentss->setModel('CcPlaylistcontents'); - } - - /** - * Gets an array of CcPlaylistcontents 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 CcFiles 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 CcPlaylistcontents[] List of CcPlaylistcontents objects - * @throws PropelException - */ - public function getCcPlaylistcontentss($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcPlaylistcontentss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlaylistcontentss) { - // return empty collection - $this->initCcPlaylistcontentss(); - } else { - $collCcPlaylistcontentss = CcPlaylistcontentsQuery::create(null, $criteria) - ->filterByCcFiles($this) - ->find($con); - if (null !== $criteria) { - return $collCcPlaylistcontentss; - } - $this->collCcPlaylistcontentss = $collCcPlaylistcontentss; - } - } - return $this->collCcPlaylistcontentss; - } - - /** - * Returns the number of related CcPlaylistcontents objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcPlaylistcontents objects. - * @throws PropelException - */ - public function countCcPlaylistcontentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcPlaylistcontentss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlaylistcontentss) { - return 0; - } else { - $query = CcPlaylistcontentsQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcFiles($this) - ->count($con); - } - } else { - return count($this->collCcPlaylistcontentss); - } - } - - /** - * Method called to associate a CcPlaylistcontents object to this object - * through the CcPlaylistcontents foreign key attribute. - * - * @param CcPlaylistcontents $l CcPlaylistcontents - * @return void - * @throws PropelException - */ - public function addCcPlaylistcontents(CcPlaylistcontents $l) - { - if ($this->collCcPlaylistcontentss === null) { - $this->initCcPlaylistcontentss(); - } - if (!$this->collCcPlaylistcontentss->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcPlaylistcontentss[]= $l; - $l->setCcFiles($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcFiles is new, it will return - * an empty collection; or if this CcFiles has previously - * been saved, it will retrieve related CcPlaylistcontentss from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcFiles. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcPlaylistcontents[] List of CcPlaylistcontents objects - */ - public function getCcPlaylistcontentssJoinCcBlock($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcPlaylistcontentsQuery::create(null, $criteria); - $query->joinWith('CcBlock', $join_behavior); - - return $this->getCcPlaylistcontentss($query, $con); - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcFiles is new, it will return - * an empty collection; or if this CcFiles has previously - * been saved, it will retrieve related CcPlaylistcontentss from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcFiles. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcPlaylistcontents[] List of CcPlaylistcontents objects - */ - public function getCcPlaylistcontentssJoinCcPlaylist($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcPlaylistcontentsQuery::create(null, $criteria); - $query->joinWith('CcPlaylist', $join_behavior); - - return $this->getCcPlaylistcontentss($query, $con); - } - - /** - * Clears out the collCcBlockcontentss 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 addCcBlockcontentss() - */ - public function clearCcBlockcontentss() - { - $this->collCcBlockcontentss = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcBlockcontentss collection. - * - * By default this just sets the collCcBlockcontentss collection to an empty array (like clearcollCcBlockcontentss()); - * 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 initCcBlockcontentss() - { - $this->collCcBlockcontentss = new PropelObjectCollection(); - $this->collCcBlockcontentss->setModel('CcBlockcontents'); - } - - /** - * Gets an array of CcBlockcontents 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 CcFiles 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 CcBlockcontents[] List of CcBlockcontents objects - * @throws PropelException - */ - public function getCcBlockcontentss($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcBlockcontentss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcBlockcontentss) { - // return empty collection - $this->initCcBlockcontentss(); - } else { - $collCcBlockcontentss = CcBlockcontentsQuery::create(null, $criteria) - ->filterByCcFiles($this) - ->find($con); - if (null !== $criteria) { - return $collCcBlockcontentss; - } - $this->collCcBlockcontentss = $collCcBlockcontentss; - } - } - return $this->collCcBlockcontentss; - } - - /** - * Returns the number of related CcBlockcontents objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcBlockcontents objects. - * @throws PropelException - */ - public function countCcBlockcontentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcBlockcontentss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcBlockcontentss) { - return 0; - } else { - $query = CcBlockcontentsQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcFiles($this) - ->count($con); - } - } else { - return count($this->collCcBlockcontentss); - } - } - - /** - * Method called to associate a CcBlockcontents object to this object - * through the CcBlockcontents foreign key attribute. - * - * @param CcBlockcontents $l CcBlockcontents - * @return void - * @throws PropelException - */ - public function addCcBlockcontents(CcBlockcontents $l) - { - if ($this->collCcBlockcontentss === null) { - $this->initCcBlockcontentss(); - } - if (!$this->collCcBlockcontentss->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcBlockcontentss[]= $l; - $l->setCcFiles($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcFiles is new, it will return - * an empty collection; or if this CcFiles has previously - * been saved, it will retrieve related CcBlockcontentss from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcFiles. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcBlockcontents[] List of CcBlockcontents objects - */ - public function getCcBlockcontentssJoinCcBlock($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcBlockcontentsQuery::create(null, $criteria); - $query->joinWith('CcBlock', $join_behavior); - - return $this->getCcBlockcontentss($query, $con); - } - - /** - * Clears out the collCcSchedules 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 addCcSchedules() - */ - public function clearCcSchedules() - { - $this->collCcSchedules = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcSchedules collection. - * - * By default this just sets the collCcSchedules collection to an empty array (like clearcollCcSchedules()); - * 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 initCcSchedules() - { - $this->collCcSchedules = new PropelObjectCollection(); - $this->collCcSchedules->setModel('CcSchedule'); - } - - /** - * Gets an array of CcSchedule 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 CcFiles 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 CcSchedule[] List of CcSchedule objects - * @throws PropelException - */ - public function getCcSchedules($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcSchedules || null !== $criteria) { - if ($this->isNew() && null === $this->collCcSchedules) { - // return empty collection - $this->initCcSchedules(); - } else { - $collCcSchedules = CcScheduleQuery::create(null, $criteria) - ->filterByCcFiles($this) - ->find($con); - if (null !== $criteria) { - return $collCcSchedules; - } - $this->collCcSchedules = $collCcSchedules; - } - } - return $this->collCcSchedules; - } - - /** - * Returns the number of related CcSchedule objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcSchedule objects. - * @throws PropelException - */ - public function countCcSchedules(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcSchedules || null !== $criteria) { - if ($this->isNew() && null === $this->collCcSchedules) { - return 0; - } else { - $query = CcScheduleQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcFiles($this) - ->count($con); - } - } else { - return count($this->collCcSchedules); - } - } - - /** - * Method called to associate a CcSchedule object to this object - * through the CcSchedule foreign key attribute. - * - * @param CcSchedule $l CcSchedule - * @return void - * @throws PropelException - */ - public function addCcSchedule(CcSchedule $l) - { - if ($this->collCcSchedules === null) { - $this->initCcSchedules(); - } - if (!$this->collCcSchedules->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcSchedules[]= $l; - $l->setCcFiles($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcFiles is new, it will return - * an empty collection; or if this CcFiles has previously - * been saved, it will retrieve related CcSchedules from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcFiles. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcSchedule[] List of CcSchedule objects - */ - public function getCcSchedulesJoinCcShowInstances($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcScheduleQuery::create(null, $criteria); - $query->joinWith('CcShowInstances', $join_behavior); - - return $this->getCcSchedules($query, $con); - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcFiles is new, it will return - * an empty collection; or if this CcFiles has previously - * been saved, it will retrieve related CcSchedules from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcFiles. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcSchedule[] List of CcSchedule objects - */ - public function getCcSchedulesJoinCcWebstream($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcScheduleQuery::create(null, $criteria); - $query->joinWith('CcWebstream', $join_behavior); - - return $this->getCcSchedules($query, $con); - } - - /** - * Clears out the collCcPlayoutHistorys 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 addCcPlayoutHistorys() - */ - public function clearCcPlayoutHistorys() - { - $this->collCcPlayoutHistorys = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcPlayoutHistorys collection. - * - * By default this just sets the collCcPlayoutHistorys collection to an empty array (like clearcollCcPlayoutHistorys()); - * 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 initCcPlayoutHistorys() - { - $this->collCcPlayoutHistorys = new PropelObjectCollection(); - $this->collCcPlayoutHistorys->setModel('CcPlayoutHistory'); - } - - /** - * Gets an array of CcPlayoutHistory 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 CcFiles 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 CcPlayoutHistory[] List of CcPlayoutHistory objects - * @throws PropelException - */ - public function getCcPlayoutHistorys($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcPlayoutHistorys || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlayoutHistorys) { - // return empty collection - $this->initCcPlayoutHistorys(); - } else { - $collCcPlayoutHistorys = CcPlayoutHistoryQuery::create(null, $criteria) - ->filterByCcFiles($this) - ->find($con); - if (null !== $criteria) { - return $collCcPlayoutHistorys; - } - $this->collCcPlayoutHistorys = $collCcPlayoutHistorys; - } - } - return $this->collCcPlayoutHistorys; - } - - /** - * Returns the number of related CcPlayoutHistory objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcPlayoutHistory objects. - * @throws PropelException - */ - public function countCcPlayoutHistorys(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcPlayoutHistorys || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlayoutHistorys) { - return 0; - } else { - $query = CcPlayoutHistoryQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcFiles($this) - ->count($con); - } - } else { - return count($this->collCcPlayoutHistorys); - } - } - - /** - * Method called to associate a CcPlayoutHistory object to this object - * through the CcPlayoutHistory foreign key attribute. - * - * @param CcPlayoutHistory $l CcPlayoutHistory - * @return void - * @throws PropelException - */ - public function addCcPlayoutHistory(CcPlayoutHistory $l) - { - if ($this->collCcPlayoutHistorys === null) { - $this->initCcPlayoutHistorys(); - } - if (!$this->collCcPlayoutHistorys->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcPlayoutHistorys[]= $l; - $l->setCcFiles($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcFiles is new, it will return - * an empty collection; or if this CcFiles has previously - * been saved, it will retrieve related CcPlayoutHistorys from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcFiles. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcPlayoutHistory[] List of CcPlayoutHistory objects - */ - public function getCcPlayoutHistorysJoinCcShowInstances($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcPlayoutHistoryQuery::create(null, $criteria); - $query->joinWith('CcShowInstances', $join_behavior); - - return $this->getCcPlayoutHistorys($query, $con); - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->name = null; - $this->mime = null; - $this->ftype = null; - $this->directory = null; - $this->filepath = null; - $this->state = null; - $this->currentlyaccessing = null; - $this->editedby = null; - $this->mtime = null; - $this->utime = null; - $this->lptime = null; - $this->md5 = null; - $this->track_title = null; - $this->artist_name = null; - $this->bit_rate = null; - $this->sample_rate = null; - $this->format = null; - $this->length = null; - $this->album_title = null; - $this->genre = null; - $this->comments = null; - $this->year = null; - $this->track_number = null; - $this->channels = null; - $this->url = null; - $this->bpm = null; - $this->rating = null; - $this->encoded_by = null; - $this->disc_number = null; - $this->mood = null; - $this->label = null; - $this->composer = null; - $this->encoder = null; - $this->checksum = null; - $this->lyrics = null; - $this->orchestra = null; - $this->conductor = null; - $this->lyricist = null; - $this->original_lyricist = null; - $this->radio_station_name = null; - $this->info_url = null; - $this->artist_url = null; - $this->audio_source_url = null; - $this->radio_station_url = null; - $this->buy_this_url = null; - $this->isrc_number = null; - $this->catalog_number = null; - $this->original_artist = null; - $this->copyright = null; - $this->report_datetime = null; - $this->report_location = null; - $this->report_organization = null; - $this->subject = null; - $this->contributor = null; - $this->language = null; - $this->file_exists = null; - $this->soundcloud_id = null; - $this->soundcloud_error_code = null; - $this->soundcloud_error_msg = null; - $this->soundcloud_link_to_file = null; - $this->soundcloud_upload_time = null; - $this->replay_gain = null; - $this->owner_id = null; - $this->cuein = null; - $this->cueout = null; - $this->silan_check = null; - $this->hidden = null; - $this->is_scheduled = null; - $this->is_playlist = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - if ($this->collCcShowInstancess) { - foreach ((array) $this->collCcShowInstancess as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcPlaylistcontentss) { - foreach ((array) $this->collCcPlaylistcontentss as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcBlockcontentss) { - foreach ((array) $this->collCcBlockcontentss as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcSchedules) { - foreach ((array) $this->collCcSchedules as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcPlayoutHistorys) { - foreach ((array) $this->collCcPlayoutHistorys as $o) { - $o->clearAllReferences($deep); - } - } - } // if ($deep) - - $this->collCcShowInstancess = null; - $this->collCcPlaylistcontentss = null; - $this->collCcBlockcontentss = null; - $this->collCcSchedules = null; - $this->collCcPlayoutHistorys = null; - $this->aFkOwner = null; - $this->aCcSubjsRelatedByDbEditedby = null; - $this->aCcMusicDirs = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcFiles + /** + * Peer class name + */ + const PEER = 'CcFilesPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcFilesPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the name field. + * Note: this column has a database default value of: '' + * @var string + */ + protected $name; + + /** + * The value for the mime field. + * Note: this column has a database default value of: '' + * @var string + */ + protected $mime; + + /** + * The value for the ftype field. + * Note: this column has a database default value of: '' + * @var string + */ + protected $ftype; + + /** + * The value for the directory field. + * @var int + */ + protected $directory; + + /** + * The value for the filepath field. + * Note: this column has a database default value of: '' + * @var string + */ + protected $filepath; + + /** + * The value for the import_status field. + * Note: this column has a database default value of: 1 + * @var int + */ + protected $import_status; + + /** + * The value for the currentlyaccessing field. + * Note: this column has a database default value of: 0 + * @var int + */ + protected $currentlyaccessing; + + /** + * The value for the editedby field. + * @var int + */ + protected $editedby; + + /** + * The value for the mtime field. + * @var string + */ + protected $mtime; + + /** + * The value for the utime field. + * @var string + */ + protected $utime; + + /** + * The value for the lptime field. + * @var string + */ + protected $lptime; + + /** + * The value for the md5 field. + * @var string + */ + protected $md5; + + /** + * The value for the track_title field. + * @var string + */ + protected $track_title; + + /** + * The value for the artist_name field. + * @var string + */ + protected $artist_name; + + /** + * The value for the bit_rate field. + * @var int + */ + protected $bit_rate; + + /** + * The value for the sample_rate field. + * @var int + */ + protected $sample_rate; + + /** + * The value for the format field. + * @var string + */ + protected $format; + + /** + * The value for the length field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $length; + + /** + * The value for the album_title field. + * @var string + */ + protected $album_title; + + /** + * The value for the genre field. + * @var string + */ + protected $genre; + + /** + * The value for the comments field. + * @var string + */ + protected $comments; + + /** + * The value for the year field. + * @var string + */ + protected $year; + + /** + * The value for the track_number field. + * @var int + */ + protected $track_number; + + /** + * The value for the channels field. + * @var int + */ + protected $channels; + + /** + * The value for the url field. + * @var string + */ + protected $url; + + /** + * The value for the bpm field. + * @var int + */ + protected $bpm; + + /** + * The value for the rating field. + * @var string + */ + protected $rating; + + /** + * The value for the encoded_by field. + * @var string + */ + protected $encoded_by; + + /** + * The value for the disc_number field. + * @var string + */ + protected $disc_number; + + /** + * The value for the mood field. + * @var string + */ + protected $mood; + + /** + * The value for the label field. + * @var string + */ + protected $label; + + /** + * The value for the composer field. + * @var string + */ + protected $composer; + + /** + * The value for the encoder field. + * @var string + */ + protected $encoder; + + /** + * The value for the checksum field. + * @var string + */ + protected $checksum; + + /** + * The value for the lyrics field. + * @var string + */ + protected $lyrics; + + /** + * The value for the orchestra field. + * @var string + */ + protected $orchestra; + + /** + * The value for the conductor field. + * @var string + */ + protected $conductor; + + /** + * The value for the lyricist field. + * @var string + */ + protected $lyricist; + + /** + * The value for the original_lyricist field. + * @var string + */ + protected $original_lyricist; + + /** + * The value for the radio_station_name field. + * @var string + */ + protected $radio_station_name; + + /** + * The value for the info_url field. + * @var string + */ + protected $info_url; + + /** + * The value for the artist_url field. + * @var string + */ + protected $artist_url; + + /** + * The value for the audio_source_url field. + * @var string + */ + protected $audio_source_url; + + /** + * The value for the radio_station_url field. + * @var string + */ + protected $radio_station_url; + + /** + * The value for the buy_this_url field. + * @var string + */ + protected $buy_this_url; + + /** + * The value for the isrc_number field. + * @var string + */ + protected $isrc_number; + + /** + * The value for the catalog_number field. + * @var string + */ + protected $catalog_number; + + /** + * The value for the original_artist field. + * @var string + */ + protected $original_artist; + + /** + * The value for the copyright field. + * @var string + */ + protected $copyright; + + /** + * The value for the report_datetime field. + * @var string + */ + protected $report_datetime; + + /** + * The value for the report_location field. + * @var string + */ + protected $report_location; + + /** + * The value for the report_organization field. + * @var string + */ + protected $report_organization; + + /** + * The value for the subject field. + * @var string + */ + protected $subject; + + /** + * The value for the contributor field. + * @var string + */ + protected $contributor; + + /** + * The value for the language field. + * @var string + */ + protected $language; + + /** + * The value for the file_exists field. + * Note: this column has a database default value of: true + * @var boolean + */ + protected $file_exists; + + /** + * The value for the soundcloud_id field. + * @var int + */ + protected $soundcloud_id; + + /** + * The value for the soundcloud_error_code field. + * @var int + */ + protected $soundcloud_error_code; + + /** + * The value for the soundcloud_error_msg field. + * @var string + */ + protected $soundcloud_error_msg; + + /** + * The value for the soundcloud_link_to_file field. + * @var string + */ + protected $soundcloud_link_to_file; + + /** + * The value for the soundcloud_upload_time field. + * @var string + */ + protected $soundcloud_upload_time; + + /** + * The value for the replay_gain field. + * @var string + */ + protected $replay_gain; + + /** + * The value for the owner_id field. + * @var int + */ + protected $owner_id; + + /** + * The value for the cuein field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $cuein; + + /** + * The value for the cueout field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $cueout; + + /** + * The value for the silan_check field. + * Note: this column has a database default value of: false + * @var boolean + */ + protected $silan_check; + + /** + * The value for the hidden field. + * Note: this column has a database default value of: false + * @var boolean + */ + protected $hidden; + + /** + * The value for the is_scheduled field. + * Note: this column has a database default value of: false + * @var boolean + */ + protected $is_scheduled; + + /** + * The value for the is_playlist field. + * Note: this column has a database default value of: false + * @var boolean + */ + protected $is_playlist; + + /** + * @var CcSubjs + */ + protected $aFkOwner; + + /** + * @var CcSubjs + */ + protected $aCcSubjsRelatedByDbEditedby; + + /** + * @var CcMusicDirs + */ + protected $aCcMusicDirs; + + /** + * @var PropelObjectCollection|CloudFile[] Collection to store aggregation of CloudFile objects. + */ + protected $collCloudFiles; + protected $collCloudFilesPartial; + + /** + * @var PropelObjectCollection|CcShowInstances[] Collection to store aggregation of CcShowInstances objects. + */ + protected $collCcShowInstancess; + protected $collCcShowInstancessPartial; + + /** + * @var PropelObjectCollection|CcPlaylistcontents[] Collection to store aggregation of CcPlaylistcontents objects. + */ + protected $collCcPlaylistcontentss; + protected $collCcPlaylistcontentssPartial; + + /** + * @var PropelObjectCollection|CcBlockcontents[] Collection to store aggregation of CcBlockcontents objects. + */ + protected $collCcBlockcontentss; + protected $collCcBlockcontentssPartial; + + /** + * @var PropelObjectCollection|CcSchedule[] Collection to store aggregation of CcSchedule objects. + */ + protected $collCcSchedules; + protected $collCcSchedulesPartial; + + /** + * @var PropelObjectCollection|CcPlayoutHistory[] Collection to store aggregation of CcPlayoutHistory objects. + */ + protected $collCcPlayoutHistorys; + protected $collCcPlayoutHistorysPartial; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $cloudFilesScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccShowInstancessScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccPlaylistcontentssScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccBlockcontentssScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccSchedulesScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccPlayoutHistorysScheduledForDeletion = null; + + /** + * 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->name = ''; + $this->mime = ''; + $this->ftype = ''; + $this->filepath = ''; + $this->import_status = 1; + $this->currentlyaccessing = 0; + $this->length = '00:00:00'; + $this->file_exists = true; + $this->cuein = '00:00:00'; + $this->cueout = '00:00:00'; + $this->silan_check = false; + $this->hidden = false; + $this->is_scheduled = false; + $this->is_playlist = false; + } + + /** + * Initializes internal state of BaseCcFiles object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [name] column value. + * + * @return string + */ + public function getDbName() + { + + return $this->name; + } + + /** + * Get the [mime] column value. + * + * @return string + */ + public function getDbMime() + { + + return $this->mime; + } + + /** + * Get the [ftype] column value. + * + * @return string + */ + public function getDbFtype() + { + + return $this->ftype; + } + + /** + * Get the [directory] column value. + * + * @return int + */ + public function getDbDirectory() + { + + return $this->directory; + } + + /** + * Get the [filepath] column value. + * + * @return string + */ + public function getDbFilepath() + { + + return $this->filepath; + } + + /** + * Get the [import_status] column value. + * + * @return int + */ + public function getDbImportStatus() + { + + return $this->import_status; + } + + /** + * Get the [currentlyaccessing] column value. + * + * @return int + */ + public function getDbCurrentlyaccessing() + { + + return $this->currentlyaccessing; + } + + /** + * Get the [editedby] column value. + * + * @return int + */ + public function getDbEditedby() + { + + return $this->editedby; + } + + /** + * Get the [optionally formatted] temporal [mtime] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbMtime($format = 'Y-m-d H:i:s') + { + if ($this->mtime === null) { + return null; + } + + + try { + $dt = new DateTime($this->mtime); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->mtime, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [utime] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbUtime($format = 'Y-m-d H:i:s') + { + if ($this->utime === null) { + return null; + } + + + try { + $dt = new DateTime($this->utime); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->utime, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [lptime] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbLPtime($format = 'Y-m-d H:i:s') + { + if ($this->lptime === null) { + return null; + } + + + try { + $dt = new DateTime($this->lptime); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->lptime, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [md5] column value. + * + * @return string + */ + public function getDbMd5() + { + + return $this->md5; + } + + /** + * Get the [track_title] column value. + * + * @return string + */ + public function getDbTrackTitle() + { + + return $this->track_title; + } + + /** + * Get the [artist_name] column value. + * + * @return string + */ + public function getDbArtistName() + { + + return $this->artist_name; + } + + /** + * Get the [bit_rate] column value. + * + * @return int + */ + public function getDbBitRate() + { + + return $this->bit_rate; + } + + /** + * Get the [sample_rate] column value. + * + * @return int + */ + public function getDbSampleRate() + { + + return $this->sample_rate; + } + + /** + * Get the [format] column value. + * + * @return string + */ + public function getDbFormat() + { + + return $this->format; + } + + /** + * Get the [length] column value. + * + * @return string + */ + public function getDbLength() + { + + return $this->length; + } + + /** + * Get the [album_title] column value. + * + * @return string + */ + public function getDbAlbumTitle() + { + + return $this->album_title; + } + + /** + * Get the [genre] column value. + * + * @return string + */ + public function getDbGenre() + { + + return $this->genre; + } + + /** + * Get the [comments] column value. + * + * @return string + */ + public function getDbComments() + { + + return $this->comments; + } + + /** + * Get the [year] column value. + * + * @return string + */ + public function getDbYear() + { + + return $this->year; + } + + /** + * Get the [track_number] column value. + * + * @return int + */ + public function getDbTrackNumber() + { + + return $this->track_number; + } + + /** + * Get the [channels] column value. + * + * @return int + */ + public function getDbChannels() + { + + return $this->channels; + } + + /** + * Get the [url] column value. + * + * @return string + */ + public function getDbUrl() + { + + return $this->url; + } + + /** + * Get the [bpm] column value. + * + * @return int + */ + public function getDbBpm() + { + + return $this->bpm; + } + + /** + * Get the [rating] column value. + * + * @return string + */ + public function getDbRating() + { + + return $this->rating; + } + + /** + * Get the [encoded_by] column value. + * + * @return string + */ + public function getDbEncodedBy() + { + + return $this->encoded_by; + } + + /** + * Get the [disc_number] column value. + * + * @return string + */ + public function getDbDiscNumber() + { + + return $this->disc_number; + } + + /** + * Get the [mood] column value. + * + * @return string + */ + public function getDbMood() + { + + return $this->mood; + } + + /** + * Get the [label] column value. + * + * @return string + */ + public function getDbLabel() + { + + return $this->label; + } + + /** + * Get the [composer] column value. + * + * @return string + */ + public function getDbComposer() + { + + return $this->composer; + } + + /** + * Get the [encoder] column value. + * + * @return string + */ + public function getDbEncoder() + { + + return $this->encoder; + } + + /** + * Get the [checksum] column value. + * + * @return string + */ + public function getDbChecksum() + { + + return $this->checksum; + } + + /** + * Get the [lyrics] column value. + * + * @return string + */ + public function getDbLyrics() + { + + return $this->lyrics; + } + + /** + * Get the [orchestra] column value. + * + * @return string + */ + public function getDbOrchestra() + { + + return $this->orchestra; + } + + /** + * Get the [conductor] column value. + * + * @return string + */ + public function getDbConductor() + { + + return $this->conductor; + } + + /** + * Get the [lyricist] column value. + * + * @return string + */ + public function getDbLyricist() + { + + return $this->lyricist; + } + + /** + * Get the [original_lyricist] column value. + * + * @return string + */ + public function getDbOriginalLyricist() + { + + return $this->original_lyricist; + } + + /** + * Get the [radio_station_name] column value. + * + * @return string + */ + public function getDbRadioStationName() + { + + return $this->radio_station_name; + } + + /** + * Get the [info_url] column value. + * + * @return string + */ + public function getDbInfoUrl() + { + + return $this->info_url; + } + + /** + * Get the [artist_url] column value. + * + * @return string + */ + public function getDbArtistUrl() + { + + return $this->artist_url; + } + + /** + * Get the [audio_source_url] column value. + * + * @return string + */ + public function getDbAudioSourceUrl() + { + + return $this->audio_source_url; + } + + /** + * Get the [radio_station_url] column value. + * + * @return string + */ + public function getDbRadioStationUrl() + { + + return $this->radio_station_url; + } + + /** + * Get the [buy_this_url] column value. + * + * @return string + */ + public function getDbBuyThisUrl() + { + + return $this->buy_this_url; + } + + /** + * Get the [isrc_number] column value. + * + * @return string + */ + public function getDbIsrcNumber() + { + + return $this->isrc_number; + } + + /** + * Get the [catalog_number] column value. + * + * @return string + */ + public function getDbCatalogNumber() + { + + return $this->catalog_number; + } + + /** + * Get the [original_artist] column value. + * + * @return string + */ + public function getDbOriginalArtist() + { + + return $this->original_artist; + } + + /** + * Get the [copyright] column value. + * + * @return string + */ + public function getDbCopyright() + { + + return $this->copyright; + } + + /** + * Get the [report_datetime] column value. + * + * @return string + */ + public function getDbReportDatetime() + { + + return $this->report_datetime; + } + + /** + * Get the [report_location] column value. + * + * @return string + */ + public function getDbReportLocation() + { + + return $this->report_location; + } + + /** + * Get the [report_organization] column value. + * + * @return string + */ + public function getDbReportOrganization() + { + + return $this->report_organization; + } + + /** + * Get the [subject] column value. + * + * @return string + */ + public function getDbSubject() + { + + return $this->subject; + } + + /** + * Get the [contributor] column value. + * + * @return string + */ + public function getDbContributor() + { + + return $this->contributor; + } + + /** + * Get the [language] column value. + * + * @return string + */ + public function getDbLanguage() + { + + return $this->language; + } + + /** + * Get the [file_exists] column value. + * + * @return boolean + */ + public function getDbFileExists() + { + + return $this->file_exists; + } + + /** + * Get the [soundcloud_id] column value. + * + * @return int + */ + public function getDbSoundcloudId() + { + + return $this->soundcloud_id; + } + + /** + * Get the [soundcloud_error_code] column value. + * + * @return int + */ + public function getDbSoundcloudErrorCode() + { + + return $this->soundcloud_error_code; + } + + /** + * Get the [soundcloud_error_msg] column value. + * + * @return string + */ + public function getDbSoundcloudErrorMsg() + { + + return $this->soundcloud_error_msg; + } + + /** + * Get the [soundcloud_link_to_file] column value. + * + * @return string + */ + public function getDbSoundcloudLinkToFile() + { + + return $this->soundcloud_link_to_file; + } + + /** + * Get the [optionally formatted] temporal [soundcloud_upload_time] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbSoundCloundUploadTime($format = 'Y-m-d H:i:s') + { + if ($this->soundcloud_upload_time === null) { + return null; + } + + + try { + $dt = new DateTime($this->soundcloud_upload_time); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->soundcloud_upload_time, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [replay_gain] column value. + * + * @return string + */ + public function getDbReplayGain() + { + + return $this->replay_gain; + } + + /** + * Get the [owner_id] column value. + * + * @return int + */ + public function getDbOwnerId() + { + + return $this->owner_id; + } + + /** + * Get the [cuein] column value. + * + * @return string + */ + public function getDbCuein() + { + + return $this->cuein; + } + + /** + * Get the [cueout] column value. + * + * @return string + */ + public function getDbCueout() + { + + return $this->cueout; + } + + /** + * Get the [silan_check] column value. + * + * @return boolean + */ + public function getDbSilanCheck() + { + + return $this->silan_check; + } + + /** + * Get the [hidden] column value. + * + * @return boolean + */ + public function getDbHidden() + { + + return $this->hidden; + } + + /** + * Get the [is_scheduled] column value. + * + * @return boolean + */ + public function getDbIsScheduled() + { + + return $this->is_scheduled; + } + + /** + * Get the [is_playlist] column value. + * + * @return boolean + */ + public function getDbIsPlaylist() + { + + return $this->is_playlist; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcFilesPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [name] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->name !== $v) { + $this->name = $v; + $this->modifiedColumns[] = CcFilesPeer::NAME; + } + + + return $this; + } // setDbName() + + /** + * Set the value of [mime] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbMime($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->mime !== $v) { + $this->mime = $v; + $this->modifiedColumns[] = CcFilesPeer::MIME; + } + + + return $this; + } // setDbMime() + + /** + * Set the value of [ftype] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbFtype($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->ftype !== $v) { + $this->ftype = $v; + $this->modifiedColumns[] = CcFilesPeer::FTYPE; + } + + + return $this; + } // setDbFtype() + + /** + * Set the value of [directory] column. + * + * @param int $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbDirectory($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->directory !== $v) { + $this->directory = $v; + $this->modifiedColumns[] = CcFilesPeer::DIRECTORY; + } + + if ($this->aCcMusicDirs !== null && $this->aCcMusicDirs->getId() !== $v) { + $this->aCcMusicDirs = null; + } + + + return $this; + } // setDbDirectory() + + /** + * Set the value of [filepath] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbFilepath($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->filepath !== $v) { + $this->filepath = $v; + $this->modifiedColumns[] = CcFilesPeer::FILEPATH; + } + + + return $this; + } // setDbFilepath() + + /** + * Set the value of [import_status] column. + * + * @param int $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbImportStatus($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->import_status !== $v) { + $this->import_status = $v; + $this->modifiedColumns[] = CcFilesPeer::IMPORT_STATUS; + } + + + return $this; + } // setDbImportStatus() + + /** + * Set the value of [currentlyaccessing] column. + * + * @param int $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbCurrentlyaccessing($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->currentlyaccessing !== $v) { + $this->currentlyaccessing = $v; + $this->modifiedColumns[] = CcFilesPeer::CURRENTLYACCESSING; + } + + + return $this; + } // setDbCurrentlyaccessing() + + /** + * Set the value of [editedby] column. + * + * @param int $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbEditedby($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->editedby !== $v) { + $this->editedby = $v; + $this->modifiedColumns[] = CcFilesPeer::EDITEDBY; + } + + if ($this->aCcSubjsRelatedByDbEditedby !== null && $this->aCcSubjsRelatedByDbEditedby->getDbId() !== $v) { + $this->aCcSubjsRelatedByDbEditedby = null; + } + + + return $this; + } // setDbEditedby() + + /** + * Sets the value of [mtime] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcFiles The current object (for fluent API support) + */ + public function setDbMtime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->mtime !== null || $dt !== null) { + $currentDateAsString = ($this->mtime !== null && $tmpDt = new DateTime($this->mtime)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->mtime = $newDateAsString; + $this->modifiedColumns[] = CcFilesPeer::MTIME; + } + } // if either are not null + + + return $this; + } // setDbMtime() + + /** + * Sets the value of [utime] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcFiles The current object (for fluent API support) + */ + public function setDbUtime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->utime !== null || $dt !== null) { + $currentDateAsString = ($this->utime !== null && $tmpDt = new DateTime($this->utime)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->utime = $newDateAsString; + $this->modifiedColumns[] = CcFilesPeer::UTIME; + } + } // if either are not null + + + return $this; + } // setDbUtime() + + /** + * Sets the value of [lptime] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcFiles The current object (for fluent API support) + */ + public function setDbLPtime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->lptime !== null || $dt !== null) { + $currentDateAsString = ($this->lptime !== null && $tmpDt = new DateTime($this->lptime)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->lptime = $newDateAsString; + $this->modifiedColumns[] = CcFilesPeer::LPTIME; + } + } // if either are not null + + + return $this; + } // setDbLPtime() + + /** + * Set the value of [md5] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbMd5($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->md5 !== $v) { + $this->md5 = $v; + $this->modifiedColumns[] = CcFilesPeer::MD5; + } + + + return $this; + } // setDbMd5() + + /** + * Set the value of [track_title] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbTrackTitle($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->track_title !== $v) { + $this->track_title = $v; + $this->modifiedColumns[] = CcFilesPeer::TRACK_TITLE; + } + + + return $this; + } // setDbTrackTitle() + + /** + * Set the value of [artist_name] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbArtistName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->artist_name !== $v) { + $this->artist_name = $v; + $this->modifiedColumns[] = CcFilesPeer::ARTIST_NAME; + } + + + return $this; + } // setDbArtistName() + + /** + * Set the value of [bit_rate] column. + * + * @param int $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbBitRate($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->bit_rate !== $v) { + $this->bit_rate = $v; + $this->modifiedColumns[] = CcFilesPeer::BIT_RATE; + } + + + return $this; + } // setDbBitRate() + + /** + * Set the value of [sample_rate] column. + * + * @param int $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbSampleRate($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->sample_rate !== $v) { + $this->sample_rate = $v; + $this->modifiedColumns[] = CcFilesPeer::SAMPLE_RATE; + } + + + return $this; + } // setDbSampleRate() + + /** + * Set the value of [format] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbFormat($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->format !== $v) { + $this->format = $v; + $this->modifiedColumns[] = CcFilesPeer::FORMAT; + } + + + return $this; + } // setDbFormat() + + /** + * Set the value of [length] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbLength($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->length !== $v) { + $this->length = $v; + $this->modifiedColumns[] = CcFilesPeer::LENGTH; + } + + + return $this; + } // setDbLength() + + /** + * Set the value of [album_title] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbAlbumTitle($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->album_title !== $v) { + $this->album_title = $v; + $this->modifiedColumns[] = CcFilesPeer::ALBUM_TITLE; + } + + + return $this; + } // setDbAlbumTitle() + + /** + * Set the value of [genre] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbGenre($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->genre !== $v) { + $this->genre = $v; + $this->modifiedColumns[] = CcFilesPeer::GENRE; + } + + + return $this; + } // setDbGenre() + + /** + * Set the value of [comments] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbComments($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->comments !== $v) { + $this->comments = $v; + $this->modifiedColumns[] = CcFilesPeer::COMMENTS; + } + + + return $this; + } // setDbComments() + + /** + * Set the value of [year] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbYear($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->year !== $v) { + $this->year = $v; + $this->modifiedColumns[] = CcFilesPeer::YEAR; + } + + + return $this; + } // setDbYear() + + /** + * Set the value of [track_number] column. + * + * @param int $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbTrackNumber($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->track_number !== $v) { + $this->track_number = $v; + $this->modifiedColumns[] = CcFilesPeer::TRACK_NUMBER; + } + + + return $this; + } // setDbTrackNumber() + + /** + * Set the value of [channels] column. + * + * @param int $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbChannels($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->channels !== $v) { + $this->channels = $v; + $this->modifiedColumns[] = CcFilesPeer::CHANNELS; + } + + + return $this; + } // setDbChannels() + + /** + * Set the value of [url] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbUrl($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->url !== $v) { + $this->url = $v; + $this->modifiedColumns[] = CcFilesPeer::URL; + } + + + return $this; + } // setDbUrl() + + /** + * Set the value of [bpm] column. + * + * @param int $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbBpm($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->bpm !== $v) { + $this->bpm = $v; + $this->modifiedColumns[] = CcFilesPeer::BPM; + } + + + return $this; + } // setDbBpm() + + /** + * Set the value of [rating] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbRating($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->rating !== $v) { + $this->rating = $v; + $this->modifiedColumns[] = CcFilesPeer::RATING; + } + + + return $this; + } // setDbRating() + + /** + * Set the value of [encoded_by] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbEncodedBy($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->encoded_by !== $v) { + $this->encoded_by = $v; + $this->modifiedColumns[] = CcFilesPeer::ENCODED_BY; + } + + + return $this; + } // setDbEncodedBy() + + /** + * Set the value of [disc_number] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbDiscNumber($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->disc_number !== $v) { + $this->disc_number = $v; + $this->modifiedColumns[] = CcFilesPeer::DISC_NUMBER; + } + + + return $this; + } // setDbDiscNumber() + + /** + * Set the value of [mood] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbMood($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->mood !== $v) { + $this->mood = $v; + $this->modifiedColumns[] = CcFilesPeer::MOOD; + } + + + return $this; + } // setDbMood() + + /** + * Set the value of [label] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbLabel($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->label !== $v) { + $this->label = $v; + $this->modifiedColumns[] = CcFilesPeer::LABEL; + } + + + return $this; + } // setDbLabel() + + /** + * Set the value of [composer] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbComposer($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->composer !== $v) { + $this->composer = $v; + $this->modifiedColumns[] = CcFilesPeer::COMPOSER; + } + + + return $this; + } // setDbComposer() + + /** + * Set the value of [encoder] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbEncoder($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->encoder !== $v) { + $this->encoder = $v; + $this->modifiedColumns[] = CcFilesPeer::ENCODER; + } + + + return $this; + } // setDbEncoder() + + /** + * Set the value of [checksum] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbChecksum($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->checksum !== $v) { + $this->checksum = $v; + $this->modifiedColumns[] = CcFilesPeer::CHECKSUM; + } + + + return $this; + } // setDbChecksum() + + /** + * Set the value of [lyrics] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbLyrics($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->lyrics !== $v) { + $this->lyrics = $v; + $this->modifiedColumns[] = CcFilesPeer::LYRICS; + } + + + return $this; + } // setDbLyrics() + + /** + * Set the value of [orchestra] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbOrchestra($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->orchestra !== $v) { + $this->orchestra = $v; + $this->modifiedColumns[] = CcFilesPeer::ORCHESTRA; + } + + + return $this; + } // setDbOrchestra() + + /** + * Set the value of [conductor] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbConductor($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->conductor !== $v) { + $this->conductor = $v; + $this->modifiedColumns[] = CcFilesPeer::CONDUCTOR; + } + + + return $this; + } // setDbConductor() + + /** + * Set the value of [lyricist] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbLyricist($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->lyricist !== $v) { + $this->lyricist = $v; + $this->modifiedColumns[] = CcFilesPeer::LYRICIST; + } + + + return $this; + } // setDbLyricist() + + /** + * Set the value of [original_lyricist] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbOriginalLyricist($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->original_lyricist !== $v) { + $this->original_lyricist = $v; + $this->modifiedColumns[] = CcFilesPeer::ORIGINAL_LYRICIST; + } + + + return $this; + } // setDbOriginalLyricist() + + /** + * Set the value of [radio_station_name] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbRadioStationName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->radio_station_name !== $v) { + $this->radio_station_name = $v; + $this->modifiedColumns[] = CcFilesPeer::RADIO_STATION_NAME; + } + + + return $this; + } // setDbRadioStationName() + + /** + * Set the value of [info_url] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbInfoUrl($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->info_url !== $v) { + $this->info_url = $v; + $this->modifiedColumns[] = CcFilesPeer::INFO_URL; + } + + + return $this; + } // setDbInfoUrl() + + /** + * Set the value of [artist_url] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbArtistUrl($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->artist_url !== $v) { + $this->artist_url = $v; + $this->modifiedColumns[] = CcFilesPeer::ARTIST_URL; + } + + + return $this; + } // setDbArtistUrl() + + /** + * Set the value of [audio_source_url] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbAudioSourceUrl($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->audio_source_url !== $v) { + $this->audio_source_url = $v; + $this->modifiedColumns[] = CcFilesPeer::AUDIO_SOURCE_URL; + } + + + return $this; + } // setDbAudioSourceUrl() + + /** + * Set the value of [radio_station_url] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbRadioStationUrl($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->radio_station_url !== $v) { + $this->radio_station_url = $v; + $this->modifiedColumns[] = CcFilesPeer::RADIO_STATION_URL; + } + + + return $this; + } // setDbRadioStationUrl() + + /** + * Set the value of [buy_this_url] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbBuyThisUrl($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->buy_this_url !== $v) { + $this->buy_this_url = $v; + $this->modifiedColumns[] = CcFilesPeer::BUY_THIS_URL; + } + + + return $this; + } // setDbBuyThisUrl() + + /** + * Set the value of [isrc_number] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbIsrcNumber($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->isrc_number !== $v) { + $this->isrc_number = $v; + $this->modifiedColumns[] = CcFilesPeer::ISRC_NUMBER; + } + + + return $this; + } // setDbIsrcNumber() + + /** + * Set the value of [catalog_number] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbCatalogNumber($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->catalog_number !== $v) { + $this->catalog_number = $v; + $this->modifiedColumns[] = CcFilesPeer::CATALOG_NUMBER; + } + + + return $this; + } // setDbCatalogNumber() + + /** + * Set the value of [original_artist] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbOriginalArtist($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->original_artist !== $v) { + $this->original_artist = $v; + $this->modifiedColumns[] = CcFilesPeer::ORIGINAL_ARTIST; + } + + + return $this; + } // setDbOriginalArtist() + + /** + * Set the value of [copyright] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbCopyright($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->copyright !== $v) { + $this->copyright = $v; + $this->modifiedColumns[] = CcFilesPeer::COPYRIGHT; + } + + + return $this; + } // setDbCopyright() + + /** + * Set the value of [report_datetime] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbReportDatetime($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->report_datetime !== $v) { + $this->report_datetime = $v; + $this->modifiedColumns[] = CcFilesPeer::REPORT_DATETIME; + } + + + return $this; + } // setDbReportDatetime() + + /** + * Set the value of [report_location] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbReportLocation($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->report_location !== $v) { + $this->report_location = $v; + $this->modifiedColumns[] = CcFilesPeer::REPORT_LOCATION; + } + + + return $this; + } // setDbReportLocation() + + /** + * Set the value of [report_organization] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbReportOrganization($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->report_organization !== $v) { + $this->report_organization = $v; + $this->modifiedColumns[] = CcFilesPeer::REPORT_ORGANIZATION; + } + + + return $this; + } // setDbReportOrganization() + + /** + * Set the value of [subject] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbSubject($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->subject !== $v) { + $this->subject = $v; + $this->modifiedColumns[] = CcFilesPeer::SUBJECT; + } + + + return $this; + } // setDbSubject() + + /** + * Set the value of [contributor] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbContributor($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->contributor !== $v) { + $this->contributor = $v; + $this->modifiedColumns[] = CcFilesPeer::CONTRIBUTOR; + } + + + return $this; + } // setDbContributor() + + /** + * Set the value of [language] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbLanguage($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->language !== $v) { + $this->language = $v; + $this->modifiedColumns[] = CcFilesPeer::LANGUAGE; + } + + + return $this; + } // setDbLanguage() + + /** + * Sets the value of the [file_exists] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbFileExists($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->file_exists !== $v) { + $this->file_exists = $v; + $this->modifiedColumns[] = CcFilesPeer::FILE_EXISTS; + } + + + return $this; + } // setDbFileExists() + + /** + * Set the value of [soundcloud_id] column. + * + * @param int $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbSoundcloudId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->soundcloud_id !== $v) { + $this->soundcloud_id = $v; + $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_ID; + } + + + return $this; + } // setDbSoundcloudId() + + /** + * Set the value of [soundcloud_error_code] column. + * + * @param int $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbSoundcloudErrorCode($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->soundcloud_error_code !== $v) { + $this->soundcloud_error_code = $v; + $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_ERROR_CODE; + } + + + return $this; + } // setDbSoundcloudErrorCode() + + /** + * Set the value of [soundcloud_error_msg] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbSoundcloudErrorMsg($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->soundcloud_error_msg !== $v) { + $this->soundcloud_error_msg = $v; + $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_ERROR_MSG; + } + + + return $this; + } // setDbSoundcloudErrorMsg() + + /** + * Set the value of [soundcloud_link_to_file] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbSoundcloudLinkToFile($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->soundcloud_link_to_file !== $v) { + $this->soundcloud_link_to_file = $v; + $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE; + } + + + return $this; + } // setDbSoundcloudLinkToFile() + + /** + * Sets the value of [soundcloud_upload_time] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcFiles The current object (for fluent API support) + */ + public function setDbSoundCloundUploadTime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->soundcloud_upload_time !== null || $dt !== null) { + $currentDateAsString = ($this->soundcloud_upload_time !== null && $tmpDt = new DateTime($this->soundcloud_upload_time)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->soundcloud_upload_time = $newDateAsString; + $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME; + } + } // if either are not null + + + return $this; + } // setDbSoundCloundUploadTime() + + /** + * Set the value of [replay_gain] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbReplayGain($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->replay_gain !== $v) { + $this->replay_gain = $v; + $this->modifiedColumns[] = CcFilesPeer::REPLAY_GAIN; + } + + + return $this; + } // setDbReplayGain() + + /** + * Set the value of [owner_id] column. + * + * @param int $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbOwnerId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->owner_id !== $v) { + $this->owner_id = $v; + $this->modifiedColumns[] = CcFilesPeer::OWNER_ID; + } + + if ($this->aFkOwner !== null && $this->aFkOwner->getDbId() !== $v) { + $this->aFkOwner = null; + } + + + return $this; + } // setDbOwnerId() + + /** + * Set the value of [cuein] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbCuein($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->cuein !== $v) { + $this->cuein = $v; + $this->modifiedColumns[] = CcFilesPeer::CUEIN; + } + + + return $this; + } // setDbCuein() + + /** + * Set the value of [cueout] column. + * + * @param string $v new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbCueout($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->cueout !== $v) { + $this->cueout = $v; + $this->modifiedColumns[] = CcFilesPeer::CUEOUT; + } + + + return $this; + } // setDbCueout() + + /** + * Sets the value of the [silan_check] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbSilanCheck($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->silan_check !== $v) { + $this->silan_check = $v; + $this->modifiedColumns[] = CcFilesPeer::SILAN_CHECK; + } + + + return $this; + } // setDbSilanCheck() + + /** + * Sets the value of the [hidden] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbHidden($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->hidden !== $v) { + $this->hidden = $v; + $this->modifiedColumns[] = CcFilesPeer::HIDDEN; + } + + + return $this; + } // setDbHidden() + + /** + * Sets the value of the [is_scheduled] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbIsScheduled($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->is_scheduled !== $v) { + $this->is_scheduled = $v; + $this->modifiedColumns[] = CcFilesPeer::IS_SCHEDULED; + } + + + return $this; + } // setDbIsScheduled() + + /** + * Sets the value of the [is_playlist] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return CcFiles The current object (for fluent API support) + */ + public function setDbIsPlaylist($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->is_playlist !== $v) { + $this->is_playlist = $v; + $this->modifiedColumns[] = CcFilesPeer::IS_PLAYLIST; + } + + + return $this; + } // setDbIsPlaylist() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->name !== '') { + return false; + } + + if ($this->mime !== '') { + return false; + } + + if ($this->ftype !== '') { + return false; + } + + if ($this->filepath !== '') { + return false; + } + + if ($this->import_status !== 1) { + return false; + } + + if ($this->currentlyaccessing !== 0) { + return false; + } + + if ($this->length !== '00:00:00') { + return false; + } + + if ($this->file_exists !== true) { + return false; + } + + if ($this->cuein !== '00:00:00') { + return false; + } + + if ($this->cueout !== '00:00:00') { + return false; + } + + if ($this->silan_check !== false) { + return false; + } + + if ($this->hidden !== false) { + return false; + } + + if ($this->is_scheduled !== false) { + return false; + } + + if ($this->is_playlist !== false) { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : 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->import_status = ($row[$startcol + 6] !== null) ? (int) $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) ? (int) $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->owner_id = ($row[$startcol + 63] !== null) ? (int) $row[$startcol + 63] : null; + $this->cuein = ($row[$startcol + 64] !== null) ? (string) $row[$startcol + 64] : null; + $this->cueout = ($row[$startcol + 65] !== null) ? (string) $row[$startcol + 65] : null; + $this->silan_check = ($row[$startcol + 66] !== null) ? (boolean) $row[$startcol + 66] : null; + $this->hidden = ($row[$startcol + 67] !== null) ? (boolean) $row[$startcol + 67] : null; + $this->is_scheduled = ($row[$startcol + 68] !== null) ? (boolean) $row[$startcol + 68] : null; + $this->is_playlist = ($row[$startcol + 69] !== null) ? (boolean) $row[$startcol + 69] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 70; // 70 = CcFilesPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcFiles object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcMusicDirs !== null && $this->directory !== $this->aCcMusicDirs->getId()) { + $this->aCcMusicDirs = null; + } + if ($this->aCcSubjsRelatedByDbEditedby !== null && $this->editedby !== $this->aCcSubjsRelatedByDbEditedby->getDbId()) { + $this->aCcSubjsRelatedByDbEditedby = null; + } + if ($this->aFkOwner !== null && $this->owner_id !== $this->aFkOwner->getDbId()) { + $this->aFkOwner = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcFilesPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aFkOwner = null; + $this->aCcSubjsRelatedByDbEditedby = null; + $this->aCcMusicDirs = null; + $this->collCloudFiles = null; + + $this->collCcShowInstancess = null; + + $this->collCcPlaylistcontentss = null; + + $this->collCcBlockcontentss = null; + + $this->collCcSchedules = null; + + $this->collCcPlayoutHistorys = null; + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcFilesQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcFilesPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aFkOwner !== null) { + if ($this->aFkOwner->isModified() || $this->aFkOwner->isNew()) { + $affectedRows += $this->aFkOwner->save($con); + } + $this->setFkOwner($this->aFkOwner); + } + + if ($this->aCcSubjsRelatedByDbEditedby !== null) { + if ($this->aCcSubjsRelatedByDbEditedby->isModified() || $this->aCcSubjsRelatedByDbEditedby->isNew()) { + $affectedRows += $this->aCcSubjsRelatedByDbEditedby->save($con); + } + $this->setCcSubjsRelatedByDbEditedby($this->aCcSubjsRelatedByDbEditedby); + } + + if ($this->aCcMusicDirs !== null) { + if ($this->aCcMusicDirs->isModified() || $this->aCcMusicDirs->isNew()) { + $affectedRows += $this->aCcMusicDirs->save($con); + } + $this->setCcMusicDirs($this->aCcMusicDirs); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + if ($this->cloudFilesScheduledForDeletion !== null) { + if (!$this->cloudFilesScheduledForDeletion->isEmpty()) { + CloudFileQuery::create() + ->filterByPrimaryKeys($this->cloudFilesScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->cloudFilesScheduledForDeletion = null; + } + } + + if ($this->collCloudFiles !== null) { + foreach ($this->collCloudFiles as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccShowInstancessScheduledForDeletion !== null) { + if (!$this->ccShowInstancessScheduledForDeletion->isEmpty()) { + CcShowInstancesQuery::create() + ->filterByPrimaryKeys($this->ccShowInstancessScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccShowInstancessScheduledForDeletion = null; + } + } + + if ($this->collCcShowInstancess !== null) { + foreach ($this->collCcShowInstancess as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccPlaylistcontentssScheduledForDeletion !== null) { + if (!$this->ccPlaylistcontentssScheduledForDeletion->isEmpty()) { + CcPlaylistcontentsQuery::create() + ->filterByPrimaryKeys($this->ccPlaylistcontentssScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccPlaylistcontentssScheduledForDeletion = null; + } + } + + if ($this->collCcPlaylistcontentss !== null) { + foreach ($this->collCcPlaylistcontentss as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccBlockcontentssScheduledForDeletion !== null) { + if (!$this->ccBlockcontentssScheduledForDeletion->isEmpty()) { + CcBlockcontentsQuery::create() + ->filterByPrimaryKeys($this->ccBlockcontentssScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccBlockcontentssScheduledForDeletion = null; + } + } + + if ($this->collCcBlockcontentss !== null) { + foreach ($this->collCcBlockcontentss as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccSchedulesScheduledForDeletion !== null) { + if (!$this->ccSchedulesScheduledForDeletion->isEmpty()) { + CcScheduleQuery::create() + ->filterByPrimaryKeys($this->ccSchedulesScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccSchedulesScheduledForDeletion = null; + } + } + + if ($this->collCcSchedules !== null) { + foreach ($this->collCcSchedules as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccPlayoutHistorysScheduledForDeletion !== null) { + if (!$this->ccPlayoutHistorysScheduledForDeletion->isEmpty()) { + CcPlayoutHistoryQuery::create() + ->filterByPrimaryKeys($this->ccPlayoutHistorysScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccPlayoutHistorysScheduledForDeletion = null; + } + } + + if ($this->collCcPlayoutHistorys !== null) { + foreach ($this->collCcPlayoutHistorys as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcFilesPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcFilesPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_files_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcFilesPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcFilesPeer::NAME)) { + $modifiedColumns[':p' . $index++] = '"name"'; + } + if ($this->isColumnModified(CcFilesPeer::MIME)) { + $modifiedColumns[':p' . $index++] = '"mime"'; + } + if ($this->isColumnModified(CcFilesPeer::FTYPE)) { + $modifiedColumns[':p' . $index++] = '"ftype"'; + } + if ($this->isColumnModified(CcFilesPeer::DIRECTORY)) { + $modifiedColumns[':p' . $index++] = '"directory"'; + } + if ($this->isColumnModified(CcFilesPeer::FILEPATH)) { + $modifiedColumns[':p' . $index++] = '"filepath"'; + } + if ($this->isColumnModified(CcFilesPeer::IMPORT_STATUS)) { + $modifiedColumns[':p' . $index++] = '"import_status"'; + } + if ($this->isColumnModified(CcFilesPeer::CURRENTLYACCESSING)) { + $modifiedColumns[':p' . $index++] = '"currentlyaccessing"'; + } + if ($this->isColumnModified(CcFilesPeer::EDITEDBY)) { + $modifiedColumns[':p' . $index++] = '"editedby"'; + } + if ($this->isColumnModified(CcFilesPeer::MTIME)) { + $modifiedColumns[':p' . $index++] = '"mtime"'; + } + if ($this->isColumnModified(CcFilesPeer::UTIME)) { + $modifiedColumns[':p' . $index++] = '"utime"'; + } + if ($this->isColumnModified(CcFilesPeer::LPTIME)) { + $modifiedColumns[':p' . $index++] = '"lptime"'; + } + if ($this->isColumnModified(CcFilesPeer::MD5)) { + $modifiedColumns[':p' . $index++] = '"md5"'; + } + if ($this->isColumnModified(CcFilesPeer::TRACK_TITLE)) { + $modifiedColumns[':p' . $index++] = '"track_title"'; + } + if ($this->isColumnModified(CcFilesPeer::ARTIST_NAME)) { + $modifiedColumns[':p' . $index++] = '"artist_name"'; + } + if ($this->isColumnModified(CcFilesPeer::BIT_RATE)) { + $modifiedColumns[':p' . $index++] = '"bit_rate"'; + } + if ($this->isColumnModified(CcFilesPeer::SAMPLE_RATE)) { + $modifiedColumns[':p' . $index++] = '"sample_rate"'; + } + if ($this->isColumnModified(CcFilesPeer::FORMAT)) { + $modifiedColumns[':p' . $index++] = '"format"'; + } + if ($this->isColumnModified(CcFilesPeer::LENGTH)) { + $modifiedColumns[':p' . $index++] = '"length"'; + } + if ($this->isColumnModified(CcFilesPeer::ALBUM_TITLE)) { + $modifiedColumns[':p' . $index++] = '"album_title"'; + } + if ($this->isColumnModified(CcFilesPeer::GENRE)) { + $modifiedColumns[':p' . $index++] = '"genre"'; + } + if ($this->isColumnModified(CcFilesPeer::COMMENTS)) { + $modifiedColumns[':p' . $index++] = '"comments"'; + } + if ($this->isColumnModified(CcFilesPeer::YEAR)) { + $modifiedColumns[':p' . $index++] = '"year"'; + } + if ($this->isColumnModified(CcFilesPeer::TRACK_NUMBER)) { + $modifiedColumns[':p' . $index++] = '"track_number"'; + } + if ($this->isColumnModified(CcFilesPeer::CHANNELS)) { + $modifiedColumns[':p' . $index++] = '"channels"'; + } + if ($this->isColumnModified(CcFilesPeer::URL)) { + $modifiedColumns[':p' . $index++] = '"url"'; + } + if ($this->isColumnModified(CcFilesPeer::BPM)) { + $modifiedColumns[':p' . $index++] = '"bpm"'; + } + if ($this->isColumnModified(CcFilesPeer::RATING)) { + $modifiedColumns[':p' . $index++] = '"rating"'; + } + if ($this->isColumnModified(CcFilesPeer::ENCODED_BY)) { + $modifiedColumns[':p' . $index++] = '"encoded_by"'; + } + if ($this->isColumnModified(CcFilesPeer::DISC_NUMBER)) { + $modifiedColumns[':p' . $index++] = '"disc_number"'; + } + if ($this->isColumnModified(CcFilesPeer::MOOD)) { + $modifiedColumns[':p' . $index++] = '"mood"'; + } + if ($this->isColumnModified(CcFilesPeer::LABEL)) { + $modifiedColumns[':p' . $index++] = '"label"'; + } + if ($this->isColumnModified(CcFilesPeer::COMPOSER)) { + $modifiedColumns[':p' . $index++] = '"composer"'; + } + if ($this->isColumnModified(CcFilesPeer::ENCODER)) { + $modifiedColumns[':p' . $index++] = '"encoder"'; + } + if ($this->isColumnModified(CcFilesPeer::CHECKSUM)) { + $modifiedColumns[':p' . $index++] = '"checksum"'; + } + if ($this->isColumnModified(CcFilesPeer::LYRICS)) { + $modifiedColumns[':p' . $index++] = '"lyrics"'; + } + if ($this->isColumnModified(CcFilesPeer::ORCHESTRA)) { + $modifiedColumns[':p' . $index++] = '"orchestra"'; + } + if ($this->isColumnModified(CcFilesPeer::CONDUCTOR)) { + $modifiedColumns[':p' . $index++] = '"conductor"'; + } + if ($this->isColumnModified(CcFilesPeer::LYRICIST)) { + $modifiedColumns[':p' . $index++] = '"lyricist"'; + } + if ($this->isColumnModified(CcFilesPeer::ORIGINAL_LYRICIST)) { + $modifiedColumns[':p' . $index++] = '"original_lyricist"'; + } + if ($this->isColumnModified(CcFilesPeer::RADIO_STATION_NAME)) { + $modifiedColumns[':p' . $index++] = '"radio_station_name"'; + } + if ($this->isColumnModified(CcFilesPeer::INFO_URL)) { + $modifiedColumns[':p' . $index++] = '"info_url"'; + } + if ($this->isColumnModified(CcFilesPeer::ARTIST_URL)) { + $modifiedColumns[':p' . $index++] = '"artist_url"'; + } + if ($this->isColumnModified(CcFilesPeer::AUDIO_SOURCE_URL)) { + $modifiedColumns[':p' . $index++] = '"audio_source_url"'; + } + if ($this->isColumnModified(CcFilesPeer::RADIO_STATION_URL)) { + $modifiedColumns[':p' . $index++] = '"radio_station_url"'; + } + if ($this->isColumnModified(CcFilesPeer::BUY_THIS_URL)) { + $modifiedColumns[':p' . $index++] = '"buy_this_url"'; + } + if ($this->isColumnModified(CcFilesPeer::ISRC_NUMBER)) { + $modifiedColumns[':p' . $index++] = '"isrc_number"'; + } + if ($this->isColumnModified(CcFilesPeer::CATALOG_NUMBER)) { + $modifiedColumns[':p' . $index++] = '"catalog_number"'; + } + if ($this->isColumnModified(CcFilesPeer::ORIGINAL_ARTIST)) { + $modifiedColumns[':p' . $index++] = '"original_artist"'; + } + if ($this->isColumnModified(CcFilesPeer::COPYRIGHT)) { + $modifiedColumns[':p' . $index++] = '"copyright"'; + } + if ($this->isColumnModified(CcFilesPeer::REPORT_DATETIME)) { + $modifiedColumns[':p' . $index++] = '"report_datetime"'; + } + if ($this->isColumnModified(CcFilesPeer::REPORT_LOCATION)) { + $modifiedColumns[':p' . $index++] = '"report_location"'; + } + if ($this->isColumnModified(CcFilesPeer::REPORT_ORGANIZATION)) { + $modifiedColumns[':p' . $index++] = '"report_organization"'; + } + if ($this->isColumnModified(CcFilesPeer::SUBJECT)) { + $modifiedColumns[':p' . $index++] = '"subject"'; + } + if ($this->isColumnModified(CcFilesPeer::CONTRIBUTOR)) { + $modifiedColumns[':p' . $index++] = '"contributor"'; + } + if ($this->isColumnModified(CcFilesPeer::LANGUAGE)) { + $modifiedColumns[':p' . $index++] = '"language"'; + } + if ($this->isColumnModified(CcFilesPeer::FILE_EXISTS)) { + $modifiedColumns[':p' . $index++] = '"file_exists"'; + } + if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_ID)) { + $modifiedColumns[':p' . $index++] = '"soundcloud_id"'; + } + if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_ERROR_CODE)) { + $modifiedColumns[':p' . $index++] = '"soundcloud_error_code"'; + } + if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_ERROR_MSG)) { + $modifiedColumns[':p' . $index++] = '"soundcloud_error_msg"'; + } + if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE)) { + $modifiedColumns[':p' . $index++] = '"soundcloud_link_to_file"'; + } + if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME)) { + $modifiedColumns[':p' . $index++] = '"soundcloud_upload_time"'; + } + if ($this->isColumnModified(CcFilesPeer::REPLAY_GAIN)) { + $modifiedColumns[':p' . $index++] = '"replay_gain"'; + } + if ($this->isColumnModified(CcFilesPeer::OWNER_ID)) { + $modifiedColumns[':p' . $index++] = '"owner_id"'; + } + if ($this->isColumnModified(CcFilesPeer::CUEIN)) { + $modifiedColumns[':p' . $index++] = '"cuein"'; + } + if ($this->isColumnModified(CcFilesPeer::CUEOUT)) { + $modifiedColumns[':p' . $index++] = '"cueout"'; + } + if ($this->isColumnModified(CcFilesPeer::SILAN_CHECK)) { + $modifiedColumns[':p' . $index++] = '"silan_check"'; + } + if ($this->isColumnModified(CcFilesPeer::HIDDEN)) { + $modifiedColumns[':p' . $index++] = '"hidden"'; + } + if ($this->isColumnModified(CcFilesPeer::IS_SCHEDULED)) { + $modifiedColumns[':p' . $index++] = '"is_scheduled"'; + } + if ($this->isColumnModified(CcFilesPeer::IS_PLAYLIST)) { + $modifiedColumns[':p' . $index++] = '"is_playlist"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_files" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"name"': + $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); + break; + case '"mime"': + $stmt->bindValue($identifier, $this->mime, PDO::PARAM_STR); + break; + case '"ftype"': + $stmt->bindValue($identifier, $this->ftype, PDO::PARAM_STR); + break; + case '"directory"': + $stmt->bindValue($identifier, $this->directory, PDO::PARAM_INT); + break; + case '"filepath"': + $stmt->bindValue($identifier, $this->filepath, PDO::PARAM_STR); + break; + case '"import_status"': + $stmt->bindValue($identifier, $this->import_status, PDO::PARAM_INT); + break; + case '"currentlyaccessing"': + $stmt->bindValue($identifier, $this->currentlyaccessing, PDO::PARAM_INT); + break; + case '"editedby"': + $stmt->bindValue($identifier, $this->editedby, PDO::PARAM_INT); + break; + case '"mtime"': + $stmt->bindValue($identifier, $this->mtime, PDO::PARAM_STR); + break; + case '"utime"': + $stmt->bindValue($identifier, $this->utime, PDO::PARAM_STR); + break; + case '"lptime"': + $stmt->bindValue($identifier, $this->lptime, PDO::PARAM_STR); + break; + case '"md5"': + $stmt->bindValue($identifier, $this->md5, PDO::PARAM_STR); + break; + case '"track_title"': + $stmt->bindValue($identifier, $this->track_title, PDO::PARAM_STR); + break; + case '"artist_name"': + $stmt->bindValue($identifier, $this->artist_name, PDO::PARAM_STR); + break; + case '"bit_rate"': + $stmt->bindValue($identifier, $this->bit_rate, PDO::PARAM_INT); + break; + case '"sample_rate"': + $stmt->bindValue($identifier, $this->sample_rate, PDO::PARAM_INT); + break; + case '"format"': + $stmt->bindValue($identifier, $this->format, PDO::PARAM_STR); + break; + case '"length"': + $stmt->bindValue($identifier, $this->length, PDO::PARAM_STR); + break; + case '"album_title"': + $stmt->bindValue($identifier, $this->album_title, PDO::PARAM_STR); + break; + case '"genre"': + $stmt->bindValue($identifier, $this->genre, PDO::PARAM_STR); + break; + case '"comments"': + $stmt->bindValue($identifier, $this->comments, PDO::PARAM_STR); + break; + case '"year"': + $stmt->bindValue($identifier, $this->year, PDO::PARAM_STR); + break; + case '"track_number"': + $stmt->bindValue($identifier, $this->track_number, PDO::PARAM_INT); + break; + case '"channels"': + $stmt->bindValue($identifier, $this->channels, PDO::PARAM_INT); + break; + case '"url"': + $stmt->bindValue($identifier, $this->url, PDO::PARAM_STR); + break; + case '"bpm"': + $stmt->bindValue($identifier, $this->bpm, PDO::PARAM_INT); + break; + case '"rating"': + $stmt->bindValue($identifier, $this->rating, PDO::PARAM_STR); + break; + case '"encoded_by"': + $stmt->bindValue($identifier, $this->encoded_by, PDO::PARAM_STR); + break; + case '"disc_number"': + $stmt->bindValue($identifier, $this->disc_number, PDO::PARAM_STR); + break; + case '"mood"': + $stmt->bindValue($identifier, $this->mood, PDO::PARAM_STR); + break; + case '"label"': + $stmt->bindValue($identifier, $this->label, PDO::PARAM_STR); + break; + case '"composer"': + $stmt->bindValue($identifier, $this->composer, PDO::PARAM_STR); + break; + case '"encoder"': + $stmt->bindValue($identifier, $this->encoder, PDO::PARAM_STR); + break; + case '"checksum"': + $stmt->bindValue($identifier, $this->checksum, PDO::PARAM_STR); + break; + case '"lyrics"': + $stmt->bindValue($identifier, $this->lyrics, PDO::PARAM_STR); + break; + case '"orchestra"': + $stmt->bindValue($identifier, $this->orchestra, PDO::PARAM_STR); + break; + case '"conductor"': + $stmt->bindValue($identifier, $this->conductor, PDO::PARAM_STR); + break; + case '"lyricist"': + $stmt->bindValue($identifier, $this->lyricist, PDO::PARAM_STR); + break; + case '"original_lyricist"': + $stmt->bindValue($identifier, $this->original_lyricist, PDO::PARAM_STR); + break; + case '"radio_station_name"': + $stmt->bindValue($identifier, $this->radio_station_name, PDO::PARAM_STR); + break; + case '"info_url"': + $stmt->bindValue($identifier, $this->info_url, PDO::PARAM_STR); + break; + case '"artist_url"': + $stmt->bindValue($identifier, $this->artist_url, PDO::PARAM_STR); + break; + case '"audio_source_url"': + $stmt->bindValue($identifier, $this->audio_source_url, PDO::PARAM_STR); + break; + case '"radio_station_url"': + $stmt->bindValue($identifier, $this->radio_station_url, PDO::PARAM_STR); + break; + case '"buy_this_url"': + $stmt->bindValue($identifier, $this->buy_this_url, PDO::PARAM_STR); + break; + case '"isrc_number"': + $stmt->bindValue($identifier, $this->isrc_number, PDO::PARAM_STR); + break; + case '"catalog_number"': + $stmt->bindValue($identifier, $this->catalog_number, PDO::PARAM_STR); + break; + case '"original_artist"': + $stmt->bindValue($identifier, $this->original_artist, PDO::PARAM_STR); + break; + case '"copyright"': + $stmt->bindValue($identifier, $this->copyright, PDO::PARAM_STR); + break; + case '"report_datetime"': + $stmt->bindValue($identifier, $this->report_datetime, PDO::PARAM_STR); + break; + case '"report_location"': + $stmt->bindValue($identifier, $this->report_location, PDO::PARAM_STR); + break; + case '"report_organization"': + $stmt->bindValue($identifier, $this->report_organization, PDO::PARAM_STR); + break; + case '"subject"': + $stmt->bindValue($identifier, $this->subject, PDO::PARAM_STR); + break; + case '"contributor"': + $stmt->bindValue($identifier, $this->contributor, PDO::PARAM_STR); + break; + case '"language"': + $stmt->bindValue($identifier, $this->language, PDO::PARAM_STR); + break; + case '"file_exists"': + $stmt->bindValue($identifier, $this->file_exists, PDO::PARAM_BOOL); + break; + case '"soundcloud_id"': + $stmt->bindValue($identifier, $this->soundcloud_id, PDO::PARAM_INT); + break; + case '"soundcloud_error_code"': + $stmt->bindValue($identifier, $this->soundcloud_error_code, PDO::PARAM_INT); + break; + case '"soundcloud_error_msg"': + $stmt->bindValue($identifier, $this->soundcloud_error_msg, PDO::PARAM_STR); + break; + case '"soundcloud_link_to_file"': + $stmt->bindValue($identifier, $this->soundcloud_link_to_file, PDO::PARAM_STR); + break; + case '"soundcloud_upload_time"': + $stmt->bindValue($identifier, $this->soundcloud_upload_time, PDO::PARAM_STR); + break; + case '"replay_gain"': + $stmt->bindValue($identifier, $this->replay_gain, PDO::PARAM_INT); + break; + case '"owner_id"': + $stmt->bindValue($identifier, $this->owner_id, PDO::PARAM_INT); + break; + case '"cuein"': + $stmt->bindValue($identifier, $this->cuein, PDO::PARAM_STR); + break; + case '"cueout"': + $stmt->bindValue($identifier, $this->cueout, PDO::PARAM_STR); + break; + case '"silan_check"': + $stmt->bindValue($identifier, $this->silan_check, PDO::PARAM_BOOL); + break; + case '"hidden"': + $stmt->bindValue($identifier, $this->hidden, PDO::PARAM_BOOL); + break; + case '"is_scheduled"': + $stmt->bindValue($identifier, $this->is_scheduled, PDO::PARAM_BOOL); + break; + case '"is_playlist"': + $stmt->bindValue($identifier, $this->is_playlist, PDO::PARAM_BOOL); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aFkOwner !== null) { + if (!$this->aFkOwner->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aFkOwner->getValidationFailures()); + } + } + + if ($this->aCcSubjsRelatedByDbEditedby !== null) { + if (!$this->aCcSubjsRelatedByDbEditedby->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcSubjsRelatedByDbEditedby->getValidationFailures()); + } + } + + if ($this->aCcMusicDirs !== null) { + if (!$this->aCcMusicDirs->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcMusicDirs->getValidationFailures()); + } + } + + + if (($retval = CcFilesPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + if ($this->collCloudFiles !== null) { + foreach ($this->collCloudFiles as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcShowInstancess !== null) { + foreach ($this->collCcShowInstancess as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcPlaylistcontentss !== null) { + foreach ($this->collCcPlaylistcontentss as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcBlockcontentss !== null) { + foreach ($this->collCcBlockcontentss as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcSchedules !== null) { + foreach ($this->collCcSchedules as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcPlayoutHistorys !== null) { + foreach ($this->collCcPlayoutHistorys as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcFilesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbName(); + break; + case 2: + return $this->getDbMime(); + break; + case 3: + return $this->getDbFtype(); + break; + case 4: + return $this->getDbDirectory(); + break; + case 5: + return $this->getDbFilepath(); + break; + case 6: + return $this->getDbImportStatus(); + break; + case 7: + return $this->getDbCurrentlyaccessing(); + break; + case 8: + return $this->getDbEditedby(); + break; + case 9: + return $this->getDbMtime(); + break; + case 10: + return $this->getDbUtime(); + break; + case 11: + return $this->getDbLPtime(); + break; + case 12: + return $this->getDbMd5(); + break; + case 13: + return $this->getDbTrackTitle(); + break; + case 14: + return $this->getDbArtistName(); + break; + case 15: + return $this->getDbBitRate(); + break; + case 16: + return $this->getDbSampleRate(); + break; + case 17: + return $this->getDbFormat(); + break; + case 18: + return $this->getDbLength(); + break; + case 19: + return $this->getDbAlbumTitle(); + break; + case 20: + return $this->getDbGenre(); + break; + case 21: + return $this->getDbComments(); + break; + case 22: + return $this->getDbYear(); + break; + case 23: + return $this->getDbTrackNumber(); + break; + case 24: + return $this->getDbChannels(); + break; + case 25: + return $this->getDbUrl(); + break; + case 26: + return $this->getDbBpm(); + break; + case 27: + return $this->getDbRating(); + break; + case 28: + return $this->getDbEncodedBy(); + break; + case 29: + return $this->getDbDiscNumber(); + break; + case 30: + return $this->getDbMood(); + break; + case 31: + return $this->getDbLabel(); + break; + case 32: + return $this->getDbComposer(); + break; + case 33: + return $this->getDbEncoder(); + break; + case 34: + return $this->getDbChecksum(); + break; + case 35: + return $this->getDbLyrics(); + break; + case 36: + return $this->getDbOrchestra(); + break; + case 37: + return $this->getDbConductor(); + break; + case 38: + return $this->getDbLyricist(); + break; + case 39: + return $this->getDbOriginalLyricist(); + break; + case 40: + return $this->getDbRadioStationName(); + break; + case 41: + return $this->getDbInfoUrl(); + break; + case 42: + return $this->getDbArtistUrl(); + break; + case 43: + return $this->getDbAudioSourceUrl(); + break; + case 44: + return $this->getDbRadioStationUrl(); + break; + case 45: + return $this->getDbBuyThisUrl(); + break; + case 46: + return $this->getDbIsrcNumber(); + break; + case 47: + return $this->getDbCatalogNumber(); + break; + case 48: + return $this->getDbOriginalArtist(); + break; + case 49: + return $this->getDbCopyright(); + break; + case 50: + return $this->getDbReportDatetime(); + break; + case 51: + return $this->getDbReportLocation(); + break; + case 52: + return $this->getDbReportOrganization(); + break; + case 53: + return $this->getDbSubject(); + break; + case 54: + return $this->getDbContributor(); + break; + case 55: + return $this->getDbLanguage(); + break; + case 56: + return $this->getDbFileExists(); + break; + case 57: + return $this->getDbSoundcloudId(); + break; + case 58: + return $this->getDbSoundcloudErrorCode(); + break; + case 59: + return $this->getDbSoundcloudErrorMsg(); + break; + case 60: + return $this->getDbSoundcloudLinkToFile(); + break; + case 61: + return $this->getDbSoundCloundUploadTime(); + break; + case 62: + return $this->getDbReplayGain(); + break; + case 63: + return $this->getDbOwnerId(); + break; + case 64: + return $this->getDbCuein(); + break; + case 65: + return $this->getDbCueout(); + break; + case 66: + return $this->getDbSilanCheck(); + break; + case 67: + return $this->getDbHidden(); + break; + case 68: + return $this->getDbIsScheduled(); + break; + case 69: + return $this->getDbIsPlaylist(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcFiles'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcFiles'][$this->getPrimaryKey()] = true; + $keys = CcFilesPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbName(), + $keys[2] => $this->getDbMime(), + $keys[3] => $this->getDbFtype(), + $keys[4] => $this->getDbDirectory(), + $keys[5] => $this->getDbFilepath(), + $keys[6] => $this->getDbImportStatus(), + $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(), + $keys[63] => $this->getDbOwnerId(), + $keys[64] => $this->getDbCuein(), + $keys[65] => $this->getDbCueout(), + $keys[66] => $this->getDbSilanCheck(), + $keys[67] => $this->getDbHidden(), + $keys[68] => $this->getDbIsScheduled(), + $keys[69] => $this->getDbIsPlaylist(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aFkOwner) { + $result['FkOwner'] = $this->aFkOwner->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aCcSubjsRelatedByDbEditedby) { + $result['CcSubjsRelatedByDbEditedby'] = $this->aCcSubjsRelatedByDbEditedby->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aCcMusicDirs) { + $result['CcMusicDirs'] = $this->aCcMusicDirs->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->collCloudFiles) { + $result['CloudFiles'] = $this->collCloudFiles->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcShowInstancess) { + $result['CcShowInstancess'] = $this->collCcShowInstancess->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcPlaylistcontentss) { + $result['CcPlaylistcontentss'] = $this->collCcPlaylistcontentss->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcBlockcontentss) { + $result['CcBlockcontentss'] = $this->collCcBlockcontentss->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcSchedules) { + $result['CcSchedules'] = $this->collCcSchedules->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcPlayoutHistorys) { + $result['CcPlayoutHistorys'] = $this->collCcPlayoutHistorys->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcFilesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbName($value); + break; + case 2: + $this->setDbMime($value); + break; + case 3: + $this->setDbFtype($value); + break; + case 4: + $this->setDbDirectory($value); + break; + case 5: + $this->setDbFilepath($value); + break; + case 6: + $this->setDbImportStatus($value); + break; + case 7: + $this->setDbCurrentlyaccessing($value); + break; + case 8: + $this->setDbEditedby($value); + break; + case 9: + $this->setDbMtime($value); + break; + case 10: + $this->setDbUtime($value); + break; + case 11: + $this->setDbLPtime($value); + break; + case 12: + $this->setDbMd5($value); + break; + case 13: + $this->setDbTrackTitle($value); + break; + case 14: + $this->setDbArtistName($value); + break; + case 15: + $this->setDbBitRate($value); + break; + case 16: + $this->setDbSampleRate($value); + break; + case 17: + $this->setDbFormat($value); + break; + case 18: + $this->setDbLength($value); + break; + case 19: + $this->setDbAlbumTitle($value); + break; + case 20: + $this->setDbGenre($value); + break; + case 21: + $this->setDbComments($value); + break; + case 22: + $this->setDbYear($value); + break; + case 23: + $this->setDbTrackNumber($value); + break; + case 24: + $this->setDbChannels($value); + break; + case 25: + $this->setDbUrl($value); + break; + case 26: + $this->setDbBpm($value); + break; + case 27: + $this->setDbRating($value); + break; + case 28: + $this->setDbEncodedBy($value); + break; + case 29: + $this->setDbDiscNumber($value); + break; + case 30: + $this->setDbMood($value); + break; + case 31: + $this->setDbLabel($value); + break; + case 32: + $this->setDbComposer($value); + break; + case 33: + $this->setDbEncoder($value); + break; + case 34: + $this->setDbChecksum($value); + break; + case 35: + $this->setDbLyrics($value); + break; + case 36: + $this->setDbOrchestra($value); + break; + case 37: + $this->setDbConductor($value); + break; + case 38: + $this->setDbLyricist($value); + break; + case 39: + $this->setDbOriginalLyricist($value); + break; + case 40: + $this->setDbRadioStationName($value); + break; + case 41: + $this->setDbInfoUrl($value); + break; + case 42: + $this->setDbArtistUrl($value); + break; + case 43: + $this->setDbAudioSourceUrl($value); + break; + case 44: + $this->setDbRadioStationUrl($value); + break; + case 45: + $this->setDbBuyThisUrl($value); + break; + case 46: + $this->setDbIsrcNumber($value); + break; + case 47: + $this->setDbCatalogNumber($value); + break; + case 48: + $this->setDbOriginalArtist($value); + break; + case 49: + $this->setDbCopyright($value); + break; + case 50: + $this->setDbReportDatetime($value); + break; + case 51: + $this->setDbReportLocation($value); + break; + case 52: + $this->setDbReportOrganization($value); + break; + case 53: + $this->setDbSubject($value); + break; + case 54: + $this->setDbContributor($value); + break; + case 55: + $this->setDbLanguage($value); + break; + case 56: + $this->setDbFileExists($value); + break; + case 57: + $this->setDbSoundcloudId($value); + break; + case 58: + $this->setDbSoundcloudErrorCode($value); + break; + case 59: + $this->setDbSoundcloudErrorMsg($value); + break; + case 60: + $this->setDbSoundcloudLinkToFile($value); + break; + case 61: + $this->setDbSoundCloundUploadTime($value); + break; + case 62: + $this->setDbReplayGain($value); + break; + case 63: + $this->setDbOwnerId($value); + break; + case 64: + $this->setDbCuein($value); + break; + case 65: + $this->setDbCueout($value); + break; + case 66: + $this->setDbSilanCheck($value); + break; + case 67: + $this->setDbHidden($value); + break; + case 68: + $this->setDbIsScheduled($value); + break; + case 69: + $this->setDbIsPlaylist($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcFilesPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + 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->setDbImportStatus($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]]); + if (array_key_exists($keys[63], $arr)) $this->setDbOwnerId($arr[$keys[63]]); + if (array_key_exists($keys[64], $arr)) $this->setDbCuein($arr[$keys[64]]); + if (array_key_exists($keys[65], $arr)) $this->setDbCueout($arr[$keys[65]]); + if (array_key_exists($keys[66], $arr)) $this->setDbSilanCheck($arr[$keys[66]]); + if (array_key_exists($keys[67], $arr)) $this->setDbHidden($arr[$keys[67]]); + if (array_key_exists($keys[68], $arr)) $this->setDbIsScheduled($arr[$keys[68]]); + if (array_key_exists($keys[69], $arr)) $this->setDbIsPlaylist($arr[$keys[69]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcFilesPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcFilesPeer::ID)) $criteria->add(CcFilesPeer::ID, $this->id); + 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); + if ($this->isColumnModified(CcFilesPeer::DIRECTORY)) $criteria->add(CcFilesPeer::DIRECTORY, $this->directory); + if ($this->isColumnModified(CcFilesPeer::FILEPATH)) $criteria->add(CcFilesPeer::FILEPATH, $this->filepath); + if ($this->isColumnModified(CcFilesPeer::IMPORT_STATUS)) $criteria->add(CcFilesPeer::IMPORT_STATUS, $this->import_status); + if ($this->isColumnModified(CcFilesPeer::CURRENTLYACCESSING)) $criteria->add(CcFilesPeer::CURRENTLYACCESSING, $this->currentlyaccessing); + if ($this->isColumnModified(CcFilesPeer::EDITEDBY)) $criteria->add(CcFilesPeer::EDITEDBY, $this->editedby); + if ($this->isColumnModified(CcFilesPeer::MTIME)) $criteria->add(CcFilesPeer::MTIME, $this->mtime); + if ($this->isColumnModified(CcFilesPeer::UTIME)) $criteria->add(CcFilesPeer::UTIME, $this->utime); + if ($this->isColumnModified(CcFilesPeer::LPTIME)) $criteria->add(CcFilesPeer::LPTIME, $this->lptime); + if ($this->isColumnModified(CcFilesPeer::MD5)) $criteria->add(CcFilesPeer::MD5, $this->md5); + if ($this->isColumnModified(CcFilesPeer::TRACK_TITLE)) $criteria->add(CcFilesPeer::TRACK_TITLE, $this->track_title); + if ($this->isColumnModified(CcFilesPeer::ARTIST_NAME)) $criteria->add(CcFilesPeer::ARTIST_NAME, $this->artist_name); + if ($this->isColumnModified(CcFilesPeer::BIT_RATE)) $criteria->add(CcFilesPeer::BIT_RATE, $this->bit_rate); + if ($this->isColumnModified(CcFilesPeer::SAMPLE_RATE)) $criteria->add(CcFilesPeer::SAMPLE_RATE, $this->sample_rate); + if ($this->isColumnModified(CcFilesPeer::FORMAT)) $criteria->add(CcFilesPeer::FORMAT, $this->format); + if ($this->isColumnModified(CcFilesPeer::LENGTH)) $criteria->add(CcFilesPeer::LENGTH, $this->length); + if ($this->isColumnModified(CcFilesPeer::ALBUM_TITLE)) $criteria->add(CcFilesPeer::ALBUM_TITLE, $this->album_title); + if ($this->isColumnModified(CcFilesPeer::GENRE)) $criteria->add(CcFilesPeer::GENRE, $this->genre); + if ($this->isColumnModified(CcFilesPeer::COMMENTS)) $criteria->add(CcFilesPeer::COMMENTS, $this->comments); + if ($this->isColumnModified(CcFilesPeer::YEAR)) $criteria->add(CcFilesPeer::YEAR, $this->year); + if ($this->isColumnModified(CcFilesPeer::TRACK_NUMBER)) $criteria->add(CcFilesPeer::TRACK_NUMBER, $this->track_number); + if ($this->isColumnModified(CcFilesPeer::CHANNELS)) $criteria->add(CcFilesPeer::CHANNELS, $this->channels); + if ($this->isColumnModified(CcFilesPeer::URL)) $criteria->add(CcFilesPeer::URL, $this->url); + if ($this->isColumnModified(CcFilesPeer::BPM)) $criteria->add(CcFilesPeer::BPM, $this->bpm); + if ($this->isColumnModified(CcFilesPeer::RATING)) $criteria->add(CcFilesPeer::RATING, $this->rating); + if ($this->isColumnModified(CcFilesPeer::ENCODED_BY)) $criteria->add(CcFilesPeer::ENCODED_BY, $this->encoded_by); + if ($this->isColumnModified(CcFilesPeer::DISC_NUMBER)) $criteria->add(CcFilesPeer::DISC_NUMBER, $this->disc_number); + if ($this->isColumnModified(CcFilesPeer::MOOD)) $criteria->add(CcFilesPeer::MOOD, $this->mood); + if ($this->isColumnModified(CcFilesPeer::LABEL)) $criteria->add(CcFilesPeer::LABEL, $this->label); + if ($this->isColumnModified(CcFilesPeer::COMPOSER)) $criteria->add(CcFilesPeer::COMPOSER, $this->composer); + if ($this->isColumnModified(CcFilesPeer::ENCODER)) $criteria->add(CcFilesPeer::ENCODER, $this->encoder); + if ($this->isColumnModified(CcFilesPeer::CHECKSUM)) $criteria->add(CcFilesPeer::CHECKSUM, $this->checksum); + if ($this->isColumnModified(CcFilesPeer::LYRICS)) $criteria->add(CcFilesPeer::LYRICS, $this->lyrics); + if ($this->isColumnModified(CcFilesPeer::ORCHESTRA)) $criteria->add(CcFilesPeer::ORCHESTRA, $this->orchestra); + if ($this->isColumnModified(CcFilesPeer::CONDUCTOR)) $criteria->add(CcFilesPeer::CONDUCTOR, $this->conductor); + if ($this->isColumnModified(CcFilesPeer::LYRICIST)) $criteria->add(CcFilesPeer::LYRICIST, $this->lyricist); + if ($this->isColumnModified(CcFilesPeer::ORIGINAL_LYRICIST)) $criteria->add(CcFilesPeer::ORIGINAL_LYRICIST, $this->original_lyricist); + if ($this->isColumnModified(CcFilesPeer::RADIO_STATION_NAME)) $criteria->add(CcFilesPeer::RADIO_STATION_NAME, $this->radio_station_name); + if ($this->isColumnModified(CcFilesPeer::INFO_URL)) $criteria->add(CcFilesPeer::INFO_URL, $this->info_url); + if ($this->isColumnModified(CcFilesPeer::ARTIST_URL)) $criteria->add(CcFilesPeer::ARTIST_URL, $this->artist_url); + if ($this->isColumnModified(CcFilesPeer::AUDIO_SOURCE_URL)) $criteria->add(CcFilesPeer::AUDIO_SOURCE_URL, $this->audio_source_url); + if ($this->isColumnModified(CcFilesPeer::RADIO_STATION_URL)) $criteria->add(CcFilesPeer::RADIO_STATION_URL, $this->radio_station_url); + if ($this->isColumnModified(CcFilesPeer::BUY_THIS_URL)) $criteria->add(CcFilesPeer::BUY_THIS_URL, $this->buy_this_url); + if ($this->isColumnModified(CcFilesPeer::ISRC_NUMBER)) $criteria->add(CcFilesPeer::ISRC_NUMBER, $this->isrc_number); + if ($this->isColumnModified(CcFilesPeer::CATALOG_NUMBER)) $criteria->add(CcFilesPeer::CATALOG_NUMBER, $this->catalog_number); + if ($this->isColumnModified(CcFilesPeer::ORIGINAL_ARTIST)) $criteria->add(CcFilesPeer::ORIGINAL_ARTIST, $this->original_artist); + if ($this->isColumnModified(CcFilesPeer::COPYRIGHT)) $criteria->add(CcFilesPeer::COPYRIGHT, $this->copyright); + if ($this->isColumnModified(CcFilesPeer::REPORT_DATETIME)) $criteria->add(CcFilesPeer::REPORT_DATETIME, $this->report_datetime); + if ($this->isColumnModified(CcFilesPeer::REPORT_LOCATION)) $criteria->add(CcFilesPeer::REPORT_LOCATION, $this->report_location); + if ($this->isColumnModified(CcFilesPeer::REPORT_ORGANIZATION)) $criteria->add(CcFilesPeer::REPORT_ORGANIZATION, $this->report_organization); + 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::LANGUAGE)) $criteria->add(CcFilesPeer::LANGUAGE, $this->language); + if ($this->isColumnModified(CcFilesPeer::FILE_EXISTS)) $criteria->add(CcFilesPeer::FILE_EXISTS, $this->file_exists); + 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_MSG)) $criteria->add(CcFilesPeer::SOUNDCLOUD_ERROR_MSG, $this->soundcloud_error_msg); + if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE)) $criteria->add(CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE, $this->soundcloud_link_to_file); + if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME)) $criteria->add(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME, $this->soundcloud_upload_time); + if ($this->isColumnModified(CcFilesPeer::REPLAY_GAIN)) $criteria->add(CcFilesPeer::REPLAY_GAIN, $this->replay_gain); + if ($this->isColumnModified(CcFilesPeer::OWNER_ID)) $criteria->add(CcFilesPeer::OWNER_ID, $this->owner_id); + if ($this->isColumnModified(CcFilesPeer::CUEIN)) $criteria->add(CcFilesPeer::CUEIN, $this->cuein); + if ($this->isColumnModified(CcFilesPeer::CUEOUT)) $criteria->add(CcFilesPeer::CUEOUT, $this->cueout); + if ($this->isColumnModified(CcFilesPeer::SILAN_CHECK)) $criteria->add(CcFilesPeer::SILAN_CHECK, $this->silan_check); + if ($this->isColumnModified(CcFilesPeer::HIDDEN)) $criteria->add(CcFilesPeer::HIDDEN, $this->hidden); + if ($this->isColumnModified(CcFilesPeer::IS_SCHEDULED)) $criteria->add(CcFilesPeer::IS_SCHEDULED, $this->is_scheduled); + if ($this->isColumnModified(CcFilesPeer::IS_PLAYLIST)) $criteria->add(CcFilesPeer::IS_PLAYLIST, $this->is_playlist); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcFilesPeer::DATABASE_NAME); + $criteria->add(CcFilesPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcFiles (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbName($this->getDbName()); + $copyObj->setDbMime($this->getDbMime()); + $copyObj->setDbFtype($this->getDbFtype()); + $copyObj->setDbDirectory($this->getDbDirectory()); + $copyObj->setDbFilepath($this->getDbFilepath()); + $copyObj->setDbImportStatus($this->getDbImportStatus()); + $copyObj->setDbCurrentlyaccessing($this->getDbCurrentlyaccessing()); + $copyObj->setDbEditedby($this->getDbEditedby()); + $copyObj->setDbMtime($this->getDbMtime()); + $copyObj->setDbUtime($this->getDbUtime()); + $copyObj->setDbLPtime($this->getDbLPtime()); + $copyObj->setDbMd5($this->getDbMd5()); + $copyObj->setDbTrackTitle($this->getDbTrackTitle()); + $copyObj->setDbArtistName($this->getDbArtistName()); + $copyObj->setDbBitRate($this->getDbBitRate()); + $copyObj->setDbSampleRate($this->getDbSampleRate()); + $copyObj->setDbFormat($this->getDbFormat()); + $copyObj->setDbLength($this->getDbLength()); + $copyObj->setDbAlbumTitle($this->getDbAlbumTitle()); + $copyObj->setDbGenre($this->getDbGenre()); + $copyObj->setDbComments($this->getDbComments()); + $copyObj->setDbYear($this->getDbYear()); + $copyObj->setDbTrackNumber($this->getDbTrackNumber()); + $copyObj->setDbChannels($this->getDbChannels()); + $copyObj->setDbUrl($this->getDbUrl()); + $copyObj->setDbBpm($this->getDbBpm()); + $copyObj->setDbRating($this->getDbRating()); + $copyObj->setDbEncodedBy($this->getDbEncodedBy()); + $copyObj->setDbDiscNumber($this->getDbDiscNumber()); + $copyObj->setDbMood($this->getDbMood()); + $copyObj->setDbLabel($this->getDbLabel()); + $copyObj->setDbComposer($this->getDbComposer()); + $copyObj->setDbEncoder($this->getDbEncoder()); + $copyObj->setDbChecksum($this->getDbChecksum()); + $copyObj->setDbLyrics($this->getDbLyrics()); + $copyObj->setDbOrchestra($this->getDbOrchestra()); + $copyObj->setDbConductor($this->getDbConductor()); + $copyObj->setDbLyricist($this->getDbLyricist()); + $copyObj->setDbOriginalLyricist($this->getDbOriginalLyricist()); + $copyObj->setDbRadioStationName($this->getDbRadioStationName()); + $copyObj->setDbInfoUrl($this->getDbInfoUrl()); + $copyObj->setDbArtistUrl($this->getDbArtistUrl()); + $copyObj->setDbAudioSourceUrl($this->getDbAudioSourceUrl()); + $copyObj->setDbRadioStationUrl($this->getDbRadioStationUrl()); + $copyObj->setDbBuyThisUrl($this->getDbBuyThisUrl()); + $copyObj->setDbIsrcNumber($this->getDbIsrcNumber()); + $copyObj->setDbCatalogNumber($this->getDbCatalogNumber()); + $copyObj->setDbOriginalArtist($this->getDbOriginalArtist()); + $copyObj->setDbCopyright($this->getDbCopyright()); + $copyObj->setDbReportDatetime($this->getDbReportDatetime()); + $copyObj->setDbReportLocation($this->getDbReportLocation()); + $copyObj->setDbReportOrganization($this->getDbReportOrganization()); + $copyObj->setDbSubject($this->getDbSubject()); + $copyObj->setDbContributor($this->getDbContributor()); + $copyObj->setDbLanguage($this->getDbLanguage()); + $copyObj->setDbFileExists($this->getDbFileExists()); + $copyObj->setDbSoundcloudId($this->getDbSoundcloudId()); + $copyObj->setDbSoundcloudErrorCode($this->getDbSoundcloudErrorCode()); + $copyObj->setDbSoundcloudErrorMsg($this->getDbSoundcloudErrorMsg()); + $copyObj->setDbSoundcloudLinkToFile($this->getDbSoundcloudLinkToFile()); + $copyObj->setDbSoundCloundUploadTime($this->getDbSoundCloundUploadTime()); + $copyObj->setDbReplayGain($this->getDbReplayGain()); + $copyObj->setDbOwnerId($this->getDbOwnerId()); + $copyObj->setDbCuein($this->getDbCuein()); + $copyObj->setDbCueout($this->getDbCueout()); + $copyObj->setDbSilanCheck($this->getDbSilanCheck()); + $copyObj->setDbHidden($this->getDbHidden()); + $copyObj->setDbIsScheduled($this->getDbIsScheduled()); + $copyObj->setDbIsPlaylist($this->getDbIsPlaylist()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + foreach ($this->getCloudFiles() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCloudFile($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcShowInstancess() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcShowInstances($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcPlaylistcontentss() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcPlaylistcontents($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcBlockcontentss() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcBlockcontents($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcSchedules() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcSchedule($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcPlayoutHistorys() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcPlayoutHistory($relObj->copy($deepCopy)); + } + } + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcFiles Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcFilesPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcFilesPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcSubjs object. + * + * @param CcSubjs $v + * @return CcFiles The current object (for fluent API support) + * @throws PropelException + */ + public function setFkOwner(CcSubjs $v = null) + { + if ($v === null) { + $this->setDbOwnerId(NULL); + } else { + $this->setDbOwnerId($v->getDbId()); + } + + $this->aFkOwner = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcSubjs object, it will not be re-added. + if ($v !== null) { + $v->addCcFilesRelatedByDbOwnerId($this); + } + + + return $this; + } + + + /** + * Get the associated CcSubjs object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcSubjs The associated CcSubjs object. + * @throws PropelException + */ + public function getFkOwner(PropelPDO $con = null, $doQuery = true) + { + if ($this->aFkOwner === null && ($this->owner_id !== null) && $doQuery) { + $this->aFkOwner = CcSubjsQuery::create()->findPk($this->owner_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aFkOwner->addCcFilessRelatedByDbOwnerId($this); + */ + } + + return $this->aFkOwner; + } + + /** + * Declares an association between this object and a CcSubjs object. + * + * @param CcSubjs $v + * @return CcFiles The current object (for fluent API support) + * @throws PropelException + */ + public function setCcSubjsRelatedByDbEditedby(CcSubjs $v = null) + { + if ($v === null) { + $this->setDbEditedby(NULL); + } else { + $this->setDbEditedby($v->getDbId()); + } + + $this->aCcSubjsRelatedByDbEditedby = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcSubjs object, it will not be re-added. + if ($v !== null) { + $v->addCcFilesRelatedByDbEditedby($this); + } + + + return $this; + } + + + /** + * Get the associated CcSubjs object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcSubjs The associated CcSubjs object. + * @throws PropelException + */ + public function getCcSubjsRelatedByDbEditedby(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcSubjsRelatedByDbEditedby === null && ($this->editedby !== null) && $doQuery) { + $this->aCcSubjsRelatedByDbEditedby = CcSubjsQuery::create()->findPk($this->editedby, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcSubjsRelatedByDbEditedby->addCcFilessRelatedByDbEditedby($this); + */ + } + + return $this->aCcSubjsRelatedByDbEditedby; + } + + /** + * Declares an association between this object and a CcMusicDirs object. + * + * @param CcMusicDirs $v + * @return CcFiles The current object (for fluent API support) + * @throws PropelException + */ + public function setCcMusicDirs(CcMusicDirs $v = null) + { + if ($v === null) { + $this->setDbDirectory(NULL); + } else { + $this->setDbDirectory($v->getId()); + } + + $this->aCcMusicDirs = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcMusicDirs object, it will not be re-added. + if ($v !== null) { + $v->addCcFiles($this); + } + + + return $this; + } + + + /** + * Get the associated CcMusicDirs object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcMusicDirs The associated CcMusicDirs object. + * @throws PropelException + */ + public function getCcMusicDirs(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcMusicDirs === null && ($this->directory !== null) && $doQuery) { + $this->aCcMusicDirs = CcMusicDirsQuery::create()->findPk($this->directory, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcMusicDirs->addCcFiless($this); + */ + } + + return $this->aCcMusicDirs; + } + + + /** + * Initializes a collection based on the name of a relation. + * Avoids crafting an 'init[$relationName]s' method name + * that wouldn't work when StandardEnglishPluralizer is used. + * + * @param string $relationName The name of the relation to initialize + * @return void + */ + public function initRelation($relationName) + { + if ('CloudFile' == $relationName) { + $this->initCloudFiles(); + } + if ('CcShowInstances' == $relationName) { + $this->initCcShowInstancess(); + } + if ('CcPlaylistcontents' == $relationName) { + $this->initCcPlaylistcontentss(); + } + if ('CcBlockcontents' == $relationName) { + $this->initCcBlockcontentss(); + } + if ('CcSchedule' == $relationName) { + $this->initCcSchedules(); + } + if ('CcPlayoutHistory' == $relationName) { + $this->initCcPlayoutHistorys(); + } + } + + /** + * Clears out the collCloudFiles 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 CcFiles The current object (for fluent API support) + * @see addCloudFiles() + */ + public function clearCloudFiles() + { + $this->collCloudFiles = null; // important to set this to null since that means it is uninitialized + $this->collCloudFilesPartial = null; + + return $this; + } + + /** + * reset is the collCloudFiles collection loaded partially + * + * @return void + */ + public function resetPartialCloudFiles($v = true) + { + $this->collCloudFilesPartial = $v; + } + + /** + * Initializes the collCloudFiles collection. + * + * By default this just sets the collCloudFiles collection to an empty array (like clearcollCloudFiles()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCloudFiles($overrideExisting = true) + { + if (null !== $this->collCloudFiles && !$overrideExisting) { + return; + } + $this->collCloudFiles = new PropelObjectCollection(); + $this->collCloudFiles->setModel('CloudFile'); + } + + /** + * Gets an array of CloudFile 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 CcFiles 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 PropelObjectCollection|CloudFile[] List of CloudFile objects + * @throws PropelException + */ + public function getCloudFiles($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCloudFilesPartial && !$this->isNew(); + if (null === $this->collCloudFiles || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCloudFiles) { + // return empty collection + $this->initCloudFiles(); + } else { + $collCloudFiles = CloudFileQuery::create(null, $criteria) + ->filterByCcFiles($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCloudFilesPartial && count($collCloudFiles)) { + $this->initCloudFiles(false); + + foreach ($collCloudFiles as $obj) { + if (false == $this->collCloudFiles->contains($obj)) { + $this->collCloudFiles->append($obj); + } + } + + $this->collCloudFilesPartial = true; + } + + $collCloudFiles->getInternalIterator()->rewind(); + + return $collCloudFiles; + } + + if ($partial && $this->collCloudFiles) { + foreach ($this->collCloudFiles as $obj) { + if ($obj->isNew()) { + $collCloudFiles[] = $obj; + } + } + } + + $this->collCloudFiles = $collCloudFiles; + $this->collCloudFilesPartial = false; + } + } + + return $this->collCloudFiles; + } + + /** + * Sets a collection of CloudFile objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $cloudFiles A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcFiles The current object (for fluent API support) + */ + public function setCloudFiles(PropelCollection $cloudFiles, PropelPDO $con = null) + { + $cloudFilesToDelete = $this->getCloudFiles(new Criteria(), $con)->diff($cloudFiles); + + + $this->cloudFilesScheduledForDeletion = $cloudFilesToDelete; + + foreach ($cloudFilesToDelete as $cloudFileRemoved) { + $cloudFileRemoved->setCcFiles(null); + } + + $this->collCloudFiles = null; + foreach ($cloudFiles as $cloudFile) { + $this->addCloudFile($cloudFile); + } + + $this->collCloudFiles = $cloudFiles; + $this->collCloudFilesPartial = false; + + return $this; + } + + /** + * Returns the number of related CloudFile objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CloudFile objects. + * @throws PropelException + */ + public function countCloudFiles(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCloudFilesPartial && !$this->isNew(); + if (null === $this->collCloudFiles || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCloudFiles) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCloudFiles()); + } + $query = CloudFileQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcFiles($this) + ->count($con); + } + + return count($this->collCloudFiles); + } + + /** + * Method called to associate a CloudFile object to this object + * through the CloudFile foreign key attribute. + * + * @param CloudFile $l CloudFile + * @return CcFiles The current object (for fluent API support) + */ + public function addCloudFile(CloudFile $l) + { + if ($this->collCloudFiles === null) { + $this->initCloudFiles(); + $this->collCloudFilesPartial = true; + } + + if (!in_array($l, $this->collCloudFiles->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCloudFile($l); + + if ($this->cloudFilesScheduledForDeletion and $this->cloudFilesScheduledForDeletion->contains($l)) { + $this->cloudFilesScheduledForDeletion->remove($this->cloudFilesScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CloudFile $cloudFile The cloudFile object to add. + */ + protected function doAddCloudFile($cloudFile) + { + $this->collCloudFiles[]= $cloudFile; + $cloudFile->setCcFiles($this); + } + + /** + * @param CloudFile $cloudFile The cloudFile object to remove. + * @return CcFiles The current object (for fluent API support) + */ + public function removeCloudFile($cloudFile) + { + if ($this->getCloudFiles()->contains($cloudFile)) { + $this->collCloudFiles->remove($this->collCloudFiles->search($cloudFile)); + if (null === $this->cloudFilesScheduledForDeletion) { + $this->cloudFilesScheduledForDeletion = clone $this->collCloudFiles; + $this->cloudFilesScheduledForDeletion->clear(); + } + $this->cloudFilesScheduledForDeletion[]= $cloudFile; + $cloudFile->setCcFiles(null); + } + + return $this; + } + + /** + * Clears out the collCcShowInstancess 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 CcFiles The current object (for fluent API support) + * @see addCcShowInstancess() + */ + public function clearCcShowInstancess() + { + $this->collCcShowInstancess = null; // important to set this to null since that means it is uninitialized + $this->collCcShowInstancessPartial = null; + + return $this; + } + + /** + * reset is the collCcShowInstancess collection loaded partially + * + * @return void + */ + public function resetPartialCcShowInstancess($v = true) + { + $this->collCcShowInstancessPartial = $v; + } + + /** + * Initializes the collCcShowInstancess collection. + * + * By default this just sets the collCcShowInstancess collection to an empty array (like clearcollCcShowInstancess()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcShowInstancess($overrideExisting = true) + { + if (null !== $this->collCcShowInstancess && !$overrideExisting) { + return; + } + $this->collCcShowInstancess = new PropelObjectCollection(); + $this->collCcShowInstancess->setModel('CcShowInstances'); + } + + /** + * Gets an array of CcShowInstances 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 CcFiles 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 PropelObjectCollection|CcShowInstances[] List of CcShowInstances objects + * @throws PropelException + */ + public function getCcShowInstancess($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcShowInstancessPartial && !$this->isNew(); + if (null === $this->collCcShowInstancess || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcShowInstancess) { + // return empty collection + $this->initCcShowInstancess(); + } else { + $collCcShowInstancess = CcShowInstancesQuery::create(null, $criteria) + ->filterByCcFiles($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcShowInstancessPartial && count($collCcShowInstancess)) { + $this->initCcShowInstancess(false); + + foreach ($collCcShowInstancess as $obj) { + if (false == $this->collCcShowInstancess->contains($obj)) { + $this->collCcShowInstancess->append($obj); + } + } + + $this->collCcShowInstancessPartial = true; + } + + $collCcShowInstancess->getInternalIterator()->rewind(); + + return $collCcShowInstancess; + } + + if ($partial && $this->collCcShowInstancess) { + foreach ($this->collCcShowInstancess as $obj) { + if ($obj->isNew()) { + $collCcShowInstancess[] = $obj; + } + } + } + + $this->collCcShowInstancess = $collCcShowInstancess; + $this->collCcShowInstancessPartial = false; + } + } + + return $this->collCcShowInstancess; + } + + /** + * Sets a collection of CcShowInstances objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccShowInstancess A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcFiles The current object (for fluent API support) + */ + public function setCcShowInstancess(PropelCollection $ccShowInstancess, PropelPDO $con = null) + { + $ccShowInstancessToDelete = $this->getCcShowInstancess(new Criteria(), $con)->diff($ccShowInstancess); + + + $this->ccShowInstancessScheduledForDeletion = $ccShowInstancessToDelete; + + foreach ($ccShowInstancessToDelete as $ccShowInstancesRemoved) { + $ccShowInstancesRemoved->setCcFiles(null); + } + + $this->collCcShowInstancess = null; + foreach ($ccShowInstancess as $ccShowInstances) { + $this->addCcShowInstances($ccShowInstances); + } + + $this->collCcShowInstancess = $ccShowInstancess; + $this->collCcShowInstancessPartial = false; + + return $this; + } + + /** + * Returns the number of related CcShowInstances objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcShowInstances objects. + * @throws PropelException + */ + public function countCcShowInstancess(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcShowInstancessPartial && !$this->isNew(); + if (null === $this->collCcShowInstancess || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcShowInstancess) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcShowInstancess()); + } + $query = CcShowInstancesQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcFiles($this) + ->count($con); + } + + return count($this->collCcShowInstancess); + } + + /** + * Method called to associate a CcShowInstances object to this object + * through the CcShowInstances foreign key attribute. + * + * @param CcShowInstances $l CcShowInstances + * @return CcFiles The current object (for fluent API support) + */ + public function addCcShowInstances(CcShowInstances $l) + { + if ($this->collCcShowInstancess === null) { + $this->initCcShowInstancess(); + $this->collCcShowInstancessPartial = true; + } + + if (!in_array($l, $this->collCcShowInstancess->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcShowInstances($l); + + if ($this->ccShowInstancessScheduledForDeletion and $this->ccShowInstancessScheduledForDeletion->contains($l)) { + $this->ccShowInstancessScheduledForDeletion->remove($this->ccShowInstancessScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcShowInstances $ccShowInstances The ccShowInstances object to add. + */ + protected function doAddCcShowInstances($ccShowInstances) + { + $this->collCcShowInstancess[]= $ccShowInstances; + $ccShowInstances->setCcFiles($this); + } + + /** + * @param CcShowInstances $ccShowInstances The ccShowInstances object to remove. + * @return CcFiles The current object (for fluent API support) + */ + public function removeCcShowInstances($ccShowInstances) + { + if ($this->getCcShowInstancess()->contains($ccShowInstances)) { + $this->collCcShowInstancess->remove($this->collCcShowInstancess->search($ccShowInstances)); + if (null === $this->ccShowInstancessScheduledForDeletion) { + $this->ccShowInstancessScheduledForDeletion = clone $this->collCcShowInstancess; + $this->ccShowInstancessScheduledForDeletion->clear(); + } + $this->ccShowInstancessScheduledForDeletion[]= $ccShowInstances; + $ccShowInstances->setCcFiles(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcFiles is new, it will return + * an empty collection; or if this CcFiles has previously + * been saved, it will retrieve related CcShowInstancess from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcFiles. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcShowInstances[] List of CcShowInstances objects + */ + public function getCcShowInstancessJoinCcShow($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcShowInstancesQuery::create(null, $criteria); + $query->joinWith('CcShow', $join_behavior); + + return $this->getCcShowInstancess($query, $con); + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcFiles is new, it will return + * an empty collection; or if this CcFiles has previously + * been saved, it will retrieve related CcShowInstancess from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcFiles. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcShowInstances[] List of CcShowInstances objects + */ + public function getCcShowInstancessJoinCcShowInstancesRelatedByDbOriginalShow($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcShowInstancesQuery::create(null, $criteria); + $query->joinWith('CcShowInstancesRelatedByDbOriginalShow', $join_behavior); + + return $this->getCcShowInstancess($query, $con); + } + + /** + * Clears out the collCcPlaylistcontentss 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 CcFiles The current object (for fluent API support) + * @see addCcPlaylistcontentss() + */ + public function clearCcPlaylistcontentss() + { + $this->collCcPlaylistcontentss = null; // important to set this to null since that means it is uninitialized + $this->collCcPlaylistcontentssPartial = null; + + return $this; + } + + /** + * reset is the collCcPlaylistcontentss collection loaded partially + * + * @return void + */ + public function resetPartialCcPlaylistcontentss($v = true) + { + $this->collCcPlaylistcontentssPartial = $v; + } + + /** + * Initializes the collCcPlaylistcontentss collection. + * + * By default this just sets the collCcPlaylistcontentss collection to an empty array (like clearcollCcPlaylistcontentss()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcPlaylistcontentss($overrideExisting = true) + { + if (null !== $this->collCcPlaylistcontentss && !$overrideExisting) { + return; + } + $this->collCcPlaylistcontentss = new PropelObjectCollection(); + $this->collCcPlaylistcontentss->setModel('CcPlaylistcontents'); + } + + /** + * Gets an array of CcPlaylistcontents 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 CcFiles 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 PropelObjectCollection|CcPlaylistcontents[] List of CcPlaylistcontents objects + * @throws PropelException + */ + public function getCcPlaylistcontentss($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcPlaylistcontentssPartial && !$this->isNew(); + if (null === $this->collCcPlaylistcontentss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlaylistcontentss) { + // return empty collection + $this->initCcPlaylistcontentss(); + } else { + $collCcPlaylistcontentss = CcPlaylistcontentsQuery::create(null, $criteria) + ->filterByCcFiles($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcPlaylistcontentssPartial && count($collCcPlaylistcontentss)) { + $this->initCcPlaylistcontentss(false); + + foreach ($collCcPlaylistcontentss as $obj) { + if (false == $this->collCcPlaylistcontentss->contains($obj)) { + $this->collCcPlaylistcontentss->append($obj); + } + } + + $this->collCcPlaylistcontentssPartial = true; + } + + $collCcPlaylistcontentss->getInternalIterator()->rewind(); + + return $collCcPlaylistcontentss; + } + + if ($partial && $this->collCcPlaylistcontentss) { + foreach ($this->collCcPlaylistcontentss as $obj) { + if ($obj->isNew()) { + $collCcPlaylistcontentss[] = $obj; + } + } + } + + $this->collCcPlaylistcontentss = $collCcPlaylistcontentss; + $this->collCcPlaylistcontentssPartial = false; + } + } + + return $this->collCcPlaylistcontentss; + } + + /** + * Sets a collection of CcPlaylistcontents objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccPlaylistcontentss A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcFiles The current object (for fluent API support) + */ + public function setCcPlaylistcontentss(PropelCollection $ccPlaylistcontentss, PropelPDO $con = null) + { + $ccPlaylistcontentssToDelete = $this->getCcPlaylistcontentss(new Criteria(), $con)->diff($ccPlaylistcontentss); + + + $this->ccPlaylistcontentssScheduledForDeletion = $ccPlaylistcontentssToDelete; + + foreach ($ccPlaylistcontentssToDelete as $ccPlaylistcontentsRemoved) { + $ccPlaylistcontentsRemoved->setCcFiles(null); + } + + $this->collCcPlaylistcontentss = null; + foreach ($ccPlaylistcontentss as $ccPlaylistcontents) { + $this->addCcPlaylistcontents($ccPlaylistcontents); + } + + $this->collCcPlaylistcontentss = $ccPlaylistcontentss; + $this->collCcPlaylistcontentssPartial = false; + + return $this; + } + + /** + * Returns the number of related CcPlaylistcontents objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcPlaylistcontents objects. + * @throws PropelException + */ + public function countCcPlaylistcontentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcPlaylistcontentssPartial && !$this->isNew(); + if (null === $this->collCcPlaylistcontentss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlaylistcontentss) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcPlaylistcontentss()); + } + $query = CcPlaylistcontentsQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcFiles($this) + ->count($con); + } + + return count($this->collCcPlaylistcontentss); + } + + /** + * Method called to associate a CcPlaylistcontents object to this object + * through the CcPlaylistcontents foreign key attribute. + * + * @param CcPlaylistcontents $l CcPlaylistcontents + * @return CcFiles The current object (for fluent API support) + */ + public function addCcPlaylistcontents(CcPlaylistcontents $l) + { + if ($this->collCcPlaylistcontentss === null) { + $this->initCcPlaylistcontentss(); + $this->collCcPlaylistcontentssPartial = true; + } + + if (!in_array($l, $this->collCcPlaylistcontentss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcPlaylistcontents($l); + + if ($this->ccPlaylistcontentssScheduledForDeletion and $this->ccPlaylistcontentssScheduledForDeletion->contains($l)) { + $this->ccPlaylistcontentssScheduledForDeletion->remove($this->ccPlaylistcontentssScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcPlaylistcontents $ccPlaylistcontents The ccPlaylistcontents object to add. + */ + protected function doAddCcPlaylistcontents($ccPlaylistcontents) + { + $this->collCcPlaylistcontentss[]= $ccPlaylistcontents; + $ccPlaylistcontents->setCcFiles($this); + } + + /** + * @param CcPlaylistcontents $ccPlaylistcontents The ccPlaylistcontents object to remove. + * @return CcFiles The current object (for fluent API support) + */ + public function removeCcPlaylistcontents($ccPlaylistcontents) + { + if ($this->getCcPlaylistcontentss()->contains($ccPlaylistcontents)) { + $this->collCcPlaylistcontentss->remove($this->collCcPlaylistcontentss->search($ccPlaylistcontents)); + if (null === $this->ccPlaylistcontentssScheduledForDeletion) { + $this->ccPlaylistcontentssScheduledForDeletion = clone $this->collCcPlaylistcontentss; + $this->ccPlaylistcontentssScheduledForDeletion->clear(); + } + $this->ccPlaylistcontentssScheduledForDeletion[]= $ccPlaylistcontents; + $ccPlaylistcontents->setCcFiles(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcFiles is new, it will return + * an empty collection; or if this CcFiles has previously + * been saved, it will retrieve related CcPlaylistcontentss from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcFiles. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcPlaylistcontents[] List of CcPlaylistcontents objects + */ + public function getCcPlaylistcontentssJoinCcBlock($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcPlaylistcontentsQuery::create(null, $criteria); + $query->joinWith('CcBlock', $join_behavior); + + return $this->getCcPlaylistcontentss($query, $con); + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcFiles is new, it will return + * an empty collection; or if this CcFiles has previously + * been saved, it will retrieve related CcPlaylistcontentss from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcFiles. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcPlaylistcontents[] List of CcPlaylistcontents objects + */ + public function getCcPlaylistcontentssJoinCcPlaylist($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcPlaylistcontentsQuery::create(null, $criteria); + $query->joinWith('CcPlaylist', $join_behavior); + + return $this->getCcPlaylistcontentss($query, $con); + } + + /** + * Clears out the collCcBlockcontentss 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 CcFiles The current object (for fluent API support) + * @see addCcBlockcontentss() + */ + public function clearCcBlockcontentss() + { + $this->collCcBlockcontentss = null; // important to set this to null since that means it is uninitialized + $this->collCcBlockcontentssPartial = null; + + return $this; + } + + /** + * reset is the collCcBlockcontentss collection loaded partially + * + * @return void + */ + public function resetPartialCcBlockcontentss($v = true) + { + $this->collCcBlockcontentssPartial = $v; + } + + /** + * Initializes the collCcBlockcontentss collection. + * + * By default this just sets the collCcBlockcontentss collection to an empty array (like clearcollCcBlockcontentss()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcBlockcontentss($overrideExisting = true) + { + if (null !== $this->collCcBlockcontentss && !$overrideExisting) { + return; + } + $this->collCcBlockcontentss = new PropelObjectCollection(); + $this->collCcBlockcontentss->setModel('CcBlockcontents'); + } + + /** + * Gets an array of CcBlockcontents 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 CcFiles 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 PropelObjectCollection|CcBlockcontents[] List of CcBlockcontents objects + * @throws PropelException + */ + public function getCcBlockcontentss($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcBlockcontentssPartial && !$this->isNew(); + if (null === $this->collCcBlockcontentss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcBlockcontentss) { + // return empty collection + $this->initCcBlockcontentss(); + } else { + $collCcBlockcontentss = CcBlockcontentsQuery::create(null, $criteria) + ->filterByCcFiles($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcBlockcontentssPartial && count($collCcBlockcontentss)) { + $this->initCcBlockcontentss(false); + + foreach ($collCcBlockcontentss as $obj) { + if (false == $this->collCcBlockcontentss->contains($obj)) { + $this->collCcBlockcontentss->append($obj); + } + } + + $this->collCcBlockcontentssPartial = true; + } + + $collCcBlockcontentss->getInternalIterator()->rewind(); + + return $collCcBlockcontentss; + } + + if ($partial && $this->collCcBlockcontentss) { + foreach ($this->collCcBlockcontentss as $obj) { + if ($obj->isNew()) { + $collCcBlockcontentss[] = $obj; + } + } + } + + $this->collCcBlockcontentss = $collCcBlockcontentss; + $this->collCcBlockcontentssPartial = false; + } + } + + return $this->collCcBlockcontentss; + } + + /** + * Sets a collection of CcBlockcontents objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccBlockcontentss A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcFiles The current object (for fluent API support) + */ + public function setCcBlockcontentss(PropelCollection $ccBlockcontentss, PropelPDO $con = null) + { + $ccBlockcontentssToDelete = $this->getCcBlockcontentss(new Criteria(), $con)->diff($ccBlockcontentss); + + + $this->ccBlockcontentssScheduledForDeletion = $ccBlockcontentssToDelete; + + foreach ($ccBlockcontentssToDelete as $ccBlockcontentsRemoved) { + $ccBlockcontentsRemoved->setCcFiles(null); + } + + $this->collCcBlockcontentss = null; + foreach ($ccBlockcontentss as $ccBlockcontents) { + $this->addCcBlockcontents($ccBlockcontents); + } + + $this->collCcBlockcontentss = $ccBlockcontentss; + $this->collCcBlockcontentssPartial = false; + + return $this; + } + + /** + * Returns the number of related CcBlockcontents objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcBlockcontents objects. + * @throws PropelException + */ + public function countCcBlockcontentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcBlockcontentssPartial && !$this->isNew(); + if (null === $this->collCcBlockcontentss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcBlockcontentss) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcBlockcontentss()); + } + $query = CcBlockcontentsQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcFiles($this) + ->count($con); + } + + return count($this->collCcBlockcontentss); + } + + /** + * Method called to associate a CcBlockcontents object to this object + * through the CcBlockcontents foreign key attribute. + * + * @param CcBlockcontents $l CcBlockcontents + * @return CcFiles The current object (for fluent API support) + */ + public function addCcBlockcontents(CcBlockcontents $l) + { + if ($this->collCcBlockcontentss === null) { + $this->initCcBlockcontentss(); + $this->collCcBlockcontentssPartial = true; + } + + if (!in_array($l, $this->collCcBlockcontentss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcBlockcontents($l); + + if ($this->ccBlockcontentssScheduledForDeletion and $this->ccBlockcontentssScheduledForDeletion->contains($l)) { + $this->ccBlockcontentssScheduledForDeletion->remove($this->ccBlockcontentssScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcBlockcontents $ccBlockcontents The ccBlockcontents object to add. + */ + protected function doAddCcBlockcontents($ccBlockcontents) + { + $this->collCcBlockcontentss[]= $ccBlockcontents; + $ccBlockcontents->setCcFiles($this); + } + + /** + * @param CcBlockcontents $ccBlockcontents The ccBlockcontents object to remove. + * @return CcFiles The current object (for fluent API support) + */ + public function removeCcBlockcontents($ccBlockcontents) + { + if ($this->getCcBlockcontentss()->contains($ccBlockcontents)) { + $this->collCcBlockcontentss->remove($this->collCcBlockcontentss->search($ccBlockcontents)); + if (null === $this->ccBlockcontentssScheduledForDeletion) { + $this->ccBlockcontentssScheduledForDeletion = clone $this->collCcBlockcontentss; + $this->ccBlockcontentssScheduledForDeletion->clear(); + } + $this->ccBlockcontentssScheduledForDeletion[]= $ccBlockcontents; + $ccBlockcontents->setCcFiles(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcFiles is new, it will return + * an empty collection; or if this CcFiles has previously + * been saved, it will retrieve related CcBlockcontentss from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcFiles. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcBlockcontents[] List of CcBlockcontents objects + */ + public function getCcBlockcontentssJoinCcBlock($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcBlockcontentsQuery::create(null, $criteria); + $query->joinWith('CcBlock', $join_behavior); + + return $this->getCcBlockcontentss($query, $con); + } + + /** + * Clears out the collCcSchedules 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 CcFiles The current object (for fluent API support) + * @see addCcSchedules() + */ + public function clearCcSchedules() + { + $this->collCcSchedules = null; // important to set this to null since that means it is uninitialized + $this->collCcSchedulesPartial = null; + + return $this; + } + + /** + * reset is the collCcSchedules collection loaded partially + * + * @return void + */ + public function resetPartialCcSchedules($v = true) + { + $this->collCcSchedulesPartial = $v; + } + + /** + * Initializes the collCcSchedules collection. + * + * By default this just sets the collCcSchedules collection to an empty array (like clearcollCcSchedules()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcSchedules($overrideExisting = true) + { + if (null !== $this->collCcSchedules && !$overrideExisting) { + return; + } + $this->collCcSchedules = new PropelObjectCollection(); + $this->collCcSchedules->setModel('CcSchedule'); + } + + /** + * Gets an array of CcSchedule 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 CcFiles 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 PropelObjectCollection|CcSchedule[] List of CcSchedule objects + * @throws PropelException + */ + public function getCcSchedules($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcSchedulesPartial && !$this->isNew(); + if (null === $this->collCcSchedules || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcSchedules) { + // return empty collection + $this->initCcSchedules(); + } else { + $collCcSchedules = CcScheduleQuery::create(null, $criteria) + ->filterByCcFiles($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcSchedulesPartial && count($collCcSchedules)) { + $this->initCcSchedules(false); + + foreach ($collCcSchedules as $obj) { + if (false == $this->collCcSchedules->contains($obj)) { + $this->collCcSchedules->append($obj); + } + } + + $this->collCcSchedulesPartial = true; + } + + $collCcSchedules->getInternalIterator()->rewind(); + + return $collCcSchedules; + } + + if ($partial && $this->collCcSchedules) { + foreach ($this->collCcSchedules as $obj) { + if ($obj->isNew()) { + $collCcSchedules[] = $obj; + } + } + } + + $this->collCcSchedules = $collCcSchedules; + $this->collCcSchedulesPartial = false; + } + } + + return $this->collCcSchedules; + } + + /** + * Sets a collection of CcSchedule objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccSchedules A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcFiles The current object (for fluent API support) + */ + public function setCcSchedules(PropelCollection $ccSchedules, PropelPDO $con = null) + { + $ccSchedulesToDelete = $this->getCcSchedules(new Criteria(), $con)->diff($ccSchedules); + + + $this->ccSchedulesScheduledForDeletion = $ccSchedulesToDelete; + + foreach ($ccSchedulesToDelete as $ccScheduleRemoved) { + $ccScheduleRemoved->setCcFiles(null); + } + + $this->collCcSchedules = null; + foreach ($ccSchedules as $ccSchedule) { + $this->addCcSchedule($ccSchedule); + } + + $this->collCcSchedules = $ccSchedules; + $this->collCcSchedulesPartial = false; + + return $this; + } + + /** + * Returns the number of related CcSchedule objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcSchedule objects. + * @throws PropelException + */ + public function countCcSchedules(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcSchedulesPartial && !$this->isNew(); + if (null === $this->collCcSchedules || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcSchedules) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcSchedules()); + } + $query = CcScheduleQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcFiles($this) + ->count($con); + } + + return count($this->collCcSchedules); + } + + /** + * Method called to associate a CcSchedule object to this object + * through the CcSchedule foreign key attribute. + * + * @param CcSchedule $l CcSchedule + * @return CcFiles The current object (for fluent API support) + */ + public function addCcSchedule(CcSchedule $l) + { + if ($this->collCcSchedules === null) { + $this->initCcSchedules(); + $this->collCcSchedulesPartial = true; + } + + if (!in_array($l, $this->collCcSchedules->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcSchedule($l); + + if ($this->ccSchedulesScheduledForDeletion and $this->ccSchedulesScheduledForDeletion->contains($l)) { + $this->ccSchedulesScheduledForDeletion->remove($this->ccSchedulesScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcSchedule $ccSchedule The ccSchedule object to add. + */ + protected function doAddCcSchedule($ccSchedule) + { + $this->collCcSchedules[]= $ccSchedule; + $ccSchedule->setCcFiles($this); + } + + /** + * @param CcSchedule $ccSchedule The ccSchedule object to remove. + * @return CcFiles The current object (for fluent API support) + */ + public function removeCcSchedule($ccSchedule) + { + if ($this->getCcSchedules()->contains($ccSchedule)) { + $this->collCcSchedules->remove($this->collCcSchedules->search($ccSchedule)); + if (null === $this->ccSchedulesScheduledForDeletion) { + $this->ccSchedulesScheduledForDeletion = clone $this->collCcSchedules; + $this->ccSchedulesScheduledForDeletion->clear(); + } + $this->ccSchedulesScheduledForDeletion[]= $ccSchedule; + $ccSchedule->setCcFiles(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcFiles is new, it will return + * an empty collection; or if this CcFiles has previously + * been saved, it will retrieve related CcSchedules from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcFiles. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcSchedule[] List of CcSchedule objects + */ + public function getCcSchedulesJoinCcShowInstances($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcScheduleQuery::create(null, $criteria); + $query->joinWith('CcShowInstances', $join_behavior); + + return $this->getCcSchedules($query, $con); + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcFiles is new, it will return + * an empty collection; or if this CcFiles has previously + * been saved, it will retrieve related CcSchedules from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcFiles. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcSchedule[] List of CcSchedule objects + */ + public function getCcSchedulesJoinCcWebstream($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcScheduleQuery::create(null, $criteria); + $query->joinWith('CcWebstream', $join_behavior); + + return $this->getCcSchedules($query, $con); + } + + /** + * Clears out the collCcPlayoutHistorys 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 CcFiles The current object (for fluent API support) + * @see addCcPlayoutHistorys() + */ + public function clearCcPlayoutHistorys() + { + $this->collCcPlayoutHistorys = null; // important to set this to null since that means it is uninitialized + $this->collCcPlayoutHistorysPartial = null; + + return $this; + } + + /** + * reset is the collCcPlayoutHistorys collection loaded partially + * + * @return void + */ + public function resetPartialCcPlayoutHistorys($v = true) + { + $this->collCcPlayoutHistorysPartial = $v; + } + + /** + * Initializes the collCcPlayoutHistorys collection. + * + * By default this just sets the collCcPlayoutHistorys collection to an empty array (like clearcollCcPlayoutHistorys()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcPlayoutHistorys($overrideExisting = true) + { + if (null !== $this->collCcPlayoutHistorys && !$overrideExisting) { + return; + } + $this->collCcPlayoutHistorys = new PropelObjectCollection(); + $this->collCcPlayoutHistorys->setModel('CcPlayoutHistory'); + } + + /** + * Gets an array of CcPlayoutHistory 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 CcFiles 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 PropelObjectCollection|CcPlayoutHistory[] List of CcPlayoutHistory objects + * @throws PropelException + */ + public function getCcPlayoutHistorys($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcPlayoutHistorysPartial && !$this->isNew(); + if (null === $this->collCcPlayoutHistorys || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlayoutHistorys) { + // return empty collection + $this->initCcPlayoutHistorys(); + } else { + $collCcPlayoutHistorys = CcPlayoutHistoryQuery::create(null, $criteria) + ->filterByCcFiles($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcPlayoutHistorysPartial && count($collCcPlayoutHistorys)) { + $this->initCcPlayoutHistorys(false); + + foreach ($collCcPlayoutHistorys as $obj) { + if (false == $this->collCcPlayoutHistorys->contains($obj)) { + $this->collCcPlayoutHistorys->append($obj); + } + } + + $this->collCcPlayoutHistorysPartial = true; + } + + $collCcPlayoutHistorys->getInternalIterator()->rewind(); + + return $collCcPlayoutHistorys; + } + + if ($partial && $this->collCcPlayoutHistorys) { + foreach ($this->collCcPlayoutHistorys as $obj) { + if ($obj->isNew()) { + $collCcPlayoutHistorys[] = $obj; + } + } + } + + $this->collCcPlayoutHistorys = $collCcPlayoutHistorys; + $this->collCcPlayoutHistorysPartial = false; + } + } + + return $this->collCcPlayoutHistorys; + } + + /** + * Sets a collection of CcPlayoutHistory objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccPlayoutHistorys A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcFiles The current object (for fluent API support) + */ + public function setCcPlayoutHistorys(PropelCollection $ccPlayoutHistorys, PropelPDO $con = null) + { + $ccPlayoutHistorysToDelete = $this->getCcPlayoutHistorys(new Criteria(), $con)->diff($ccPlayoutHistorys); + + + $this->ccPlayoutHistorysScheduledForDeletion = $ccPlayoutHistorysToDelete; + + foreach ($ccPlayoutHistorysToDelete as $ccPlayoutHistoryRemoved) { + $ccPlayoutHistoryRemoved->setCcFiles(null); + } + + $this->collCcPlayoutHistorys = null; + foreach ($ccPlayoutHistorys as $ccPlayoutHistory) { + $this->addCcPlayoutHistory($ccPlayoutHistory); + } + + $this->collCcPlayoutHistorys = $ccPlayoutHistorys; + $this->collCcPlayoutHistorysPartial = false; + + return $this; + } + + /** + * Returns the number of related CcPlayoutHistory objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcPlayoutHistory objects. + * @throws PropelException + */ + public function countCcPlayoutHistorys(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcPlayoutHistorysPartial && !$this->isNew(); + if (null === $this->collCcPlayoutHistorys || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlayoutHistorys) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcPlayoutHistorys()); + } + $query = CcPlayoutHistoryQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcFiles($this) + ->count($con); + } + + return count($this->collCcPlayoutHistorys); + } + + /** + * Method called to associate a CcPlayoutHistory object to this object + * through the CcPlayoutHistory foreign key attribute. + * + * @param CcPlayoutHistory $l CcPlayoutHistory + * @return CcFiles The current object (for fluent API support) + */ + public function addCcPlayoutHistory(CcPlayoutHistory $l) + { + if ($this->collCcPlayoutHistorys === null) { + $this->initCcPlayoutHistorys(); + $this->collCcPlayoutHistorysPartial = true; + } + + if (!in_array($l, $this->collCcPlayoutHistorys->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcPlayoutHistory($l); + + if ($this->ccPlayoutHistorysScheduledForDeletion and $this->ccPlayoutHistorysScheduledForDeletion->contains($l)) { + $this->ccPlayoutHistorysScheduledForDeletion->remove($this->ccPlayoutHistorysScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcPlayoutHistory $ccPlayoutHistory The ccPlayoutHistory object to add. + */ + protected function doAddCcPlayoutHistory($ccPlayoutHistory) + { + $this->collCcPlayoutHistorys[]= $ccPlayoutHistory; + $ccPlayoutHistory->setCcFiles($this); + } + + /** + * @param CcPlayoutHistory $ccPlayoutHistory The ccPlayoutHistory object to remove. + * @return CcFiles The current object (for fluent API support) + */ + public function removeCcPlayoutHistory($ccPlayoutHistory) + { + if ($this->getCcPlayoutHistorys()->contains($ccPlayoutHistory)) { + $this->collCcPlayoutHistorys->remove($this->collCcPlayoutHistorys->search($ccPlayoutHistory)); + if (null === $this->ccPlayoutHistorysScheduledForDeletion) { + $this->ccPlayoutHistorysScheduledForDeletion = clone $this->collCcPlayoutHistorys; + $this->ccPlayoutHistorysScheduledForDeletion->clear(); + } + $this->ccPlayoutHistorysScheduledForDeletion[]= $ccPlayoutHistory; + $ccPlayoutHistory->setCcFiles(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcFiles is new, it will return + * an empty collection; or if this CcFiles has previously + * been saved, it will retrieve related CcPlayoutHistorys from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcFiles. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcPlayoutHistory[] List of CcPlayoutHistory objects + */ + public function getCcPlayoutHistorysJoinCcShowInstances($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcPlayoutHistoryQuery::create(null, $criteria); + $query->joinWith('CcShowInstances', $join_behavior); + + return $this->getCcPlayoutHistorys($query, $con); + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->name = null; + $this->mime = null; + $this->ftype = null; + $this->directory = null; + $this->filepath = null; + $this->import_status = null; + $this->currentlyaccessing = null; + $this->editedby = null; + $this->mtime = null; + $this->utime = null; + $this->lptime = null; + $this->md5 = null; + $this->track_title = null; + $this->artist_name = null; + $this->bit_rate = null; + $this->sample_rate = null; + $this->format = null; + $this->length = null; + $this->album_title = null; + $this->genre = null; + $this->comments = null; + $this->year = null; + $this->track_number = null; + $this->channels = null; + $this->url = null; + $this->bpm = null; + $this->rating = null; + $this->encoded_by = null; + $this->disc_number = null; + $this->mood = null; + $this->label = null; + $this->composer = null; + $this->encoder = null; + $this->checksum = null; + $this->lyrics = null; + $this->orchestra = null; + $this->conductor = null; + $this->lyricist = null; + $this->original_lyricist = null; + $this->radio_station_name = null; + $this->info_url = null; + $this->artist_url = null; + $this->audio_source_url = null; + $this->radio_station_url = null; + $this->buy_this_url = null; + $this->isrc_number = null; + $this->catalog_number = null; + $this->original_artist = null; + $this->copyright = null; + $this->report_datetime = null; + $this->report_location = null; + $this->report_organization = null; + $this->subject = null; + $this->contributor = null; + $this->language = null; + $this->file_exists = null; + $this->soundcloud_id = null; + $this->soundcloud_error_code = null; + $this->soundcloud_error_msg = null; + $this->soundcloud_link_to_file = null; + $this->soundcloud_upload_time = null; + $this->replay_gain = null; + $this->owner_id = null; + $this->cuein = null; + $this->cueout = null; + $this->silan_check = null; + $this->hidden = null; + $this->is_scheduled = null; + $this->is_playlist = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->collCloudFiles) { + foreach ($this->collCloudFiles as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcShowInstancess) { + foreach ($this->collCcShowInstancess as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcPlaylistcontentss) { + foreach ($this->collCcPlaylistcontentss as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcBlockcontentss) { + foreach ($this->collCcBlockcontentss as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcSchedules) { + foreach ($this->collCcSchedules as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcPlayoutHistorys) { + foreach ($this->collCcPlayoutHistorys as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->aFkOwner instanceof Persistent) { + $this->aFkOwner->clearAllReferences($deep); + } + if ($this->aCcSubjsRelatedByDbEditedby instanceof Persistent) { + $this->aCcSubjsRelatedByDbEditedby->clearAllReferences($deep); + } + if ($this->aCcMusicDirs instanceof Persistent) { + $this->aCcMusicDirs->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + if ($this->collCloudFiles instanceof PropelCollection) { + $this->collCloudFiles->clearIterator(); + } + $this->collCloudFiles = null; + if ($this->collCcShowInstancess instanceof PropelCollection) { + $this->collCcShowInstancess->clearIterator(); + } + $this->collCcShowInstancess = null; + if ($this->collCcPlaylistcontentss instanceof PropelCollection) { + $this->collCcPlaylistcontentss->clearIterator(); + } + $this->collCcPlaylistcontentss = null; + if ($this->collCcBlockcontentss instanceof PropelCollection) { + $this->collCcBlockcontentss->clearIterator(); + } + $this->collCcBlockcontentss = null; + if ($this->collCcSchedules instanceof PropelCollection) { + $this->collCcSchedules->clearIterator(); + } + $this->collCcSchedules = null; + if ($this->collCcPlayoutHistorys instanceof PropelCollection) { + $this->collCcPlayoutHistorys->clearIterator(); + } + $this->collCcPlayoutHistorys = null; + $this->aFkOwner = null; + $this->aCcSubjsRelatedByDbEditedby = null; + $this->aCcMusicDirs = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcFilesPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcFilesPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcFilesPeer.php index dbfbeaf066..c27d654c66 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcFilesPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcFilesPeer.php @@ -4,1998 +4,2037 @@ /** * Base static class for performing query and update operations on the 'cc_files' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcFilesPeer { +abstract class BaseCcFilesPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_files'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcFiles'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcFilesTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 70; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 70; + + /** the column name for the id field */ + const ID = 'cc_files.id'; + + /** the column name for the name field */ + const NAME = 'cc_files.name'; + + /** the column name for the mime field */ + const MIME = 'cc_files.mime'; + + /** the column name for the ftype field */ + const FTYPE = 'cc_files.ftype'; + + /** the column name for the directory field */ + const DIRECTORY = 'cc_files.directory'; + + /** the column name for the filepath field */ + const FILEPATH = 'cc_files.filepath'; + + /** the column name for the import_status field */ + const IMPORT_STATUS = 'cc_files.import_status'; + + /** the column name for the currentlyaccessing field */ + const CURRENTLYACCESSING = 'cc_files.currentlyaccessing'; + + /** the column name for the editedby field */ + const EDITEDBY = 'cc_files.editedby'; + + /** the column name for the mtime field */ + const MTIME = 'cc_files.mtime'; + + /** the column name for the utime field */ + const UTIME = 'cc_files.utime'; + + /** the column name for the lptime field */ + const LPTIME = 'cc_files.lptime'; + + /** the column name for the md5 field */ + const MD5 = 'cc_files.md5'; + + /** the column name for the track_title field */ + const TRACK_TITLE = 'cc_files.track_title'; + + /** the column name for the artist_name field */ + const ARTIST_NAME = 'cc_files.artist_name'; + + /** the column name for the bit_rate field */ + const BIT_RATE = 'cc_files.bit_rate'; + + /** the column name for the sample_rate field */ + const SAMPLE_RATE = 'cc_files.sample_rate'; + + /** the column name for the format field */ + const FORMAT = 'cc_files.format'; + + /** the column name for the length field */ + const LENGTH = 'cc_files.length'; + + /** the column name for the album_title field */ + const ALBUM_TITLE = 'cc_files.album_title'; + + /** the column name for the genre field */ + const GENRE = 'cc_files.genre'; + + /** the column name for the comments field */ + const COMMENTS = 'cc_files.comments'; + + /** the column name for the year field */ + const YEAR = 'cc_files.year'; + + /** the column name for the track_number field */ + const TRACK_NUMBER = 'cc_files.track_number'; + + /** the column name for the channels field */ + const CHANNELS = 'cc_files.channels'; + + /** the column name for the url field */ + const URL = 'cc_files.url'; + + /** the column name for the bpm field */ + const BPM = 'cc_files.bpm'; + + /** the column name for the rating field */ + const RATING = 'cc_files.rating'; + + /** the column name for the encoded_by field */ + const ENCODED_BY = 'cc_files.encoded_by'; + + /** the column name for the disc_number field */ + const DISC_NUMBER = 'cc_files.disc_number'; + + /** the column name for the mood field */ + const MOOD = 'cc_files.mood'; + + /** the column name for the label field */ + const LABEL = 'cc_files.label'; + + /** the column name for the composer field */ + const COMPOSER = 'cc_files.composer'; + + /** the column name for the encoder field */ + const ENCODER = 'cc_files.encoder'; + + /** the column name for the checksum field */ + const CHECKSUM = 'cc_files.checksum'; + + /** the column name for the lyrics field */ + const LYRICS = 'cc_files.lyrics'; + + /** the column name for the orchestra field */ + const ORCHESTRA = 'cc_files.orchestra'; + + /** the column name for the conductor field */ + const CONDUCTOR = 'cc_files.conductor'; + + /** the column name for the lyricist field */ + const LYRICIST = 'cc_files.lyricist'; + + /** the column name for the original_lyricist field */ + const ORIGINAL_LYRICIST = 'cc_files.original_lyricist'; + + /** the column name for the radio_station_name field */ + const RADIO_STATION_NAME = 'cc_files.radio_station_name'; + + /** the column name for the info_url field */ + const INFO_URL = 'cc_files.info_url'; + + /** the column name for the artist_url field */ + const ARTIST_URL = 'cc_files.artist_url'; + + /** the column name for the audio_source_url field */ + const AUDIO_SOURCE_URL = 'cc_files.audio_source_url'; + + /** the column name for the radio_station_url field */ + const RADIO_STATION_URL = 'cc_files.radio_station_url'; + + /** the column name for the buy_this_url field */ + const BUY_THIS_URL = 'cc_files.buy_this_url'; + + /** the column name for the isrc_number field */ + const ISRC_NUMBER = 'cc_files.isrc_number'; + + /** the column name for the catalog_number field */ + const CATALOG_NUMBER = 'cc_files.catalog_number'; + + /** the column name for the original_artist field */ + const ORIGINAL_ARTIST = 'cc_files.original_artist'; + + /** the column name for the copyright field */ + const COPYRIGHT = 'cc_files.copyright'; + + /** the column name for the report_datetime field */ + const REPORT_DATETIME = 'cc_files.report_datetime'; + + /** the column name for the report_location field */ + const REPORT_LOCATION = 'cc_files.report_location'; - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; + /** the column name for the report_organization field */ + const REPORT_ORGANIZATION = 'cc_files.report_organization'; - /** the table name for this class */ - const TABLE_NAME = 'cc_files'; + /** the column name for the subject field */ + const SUBJECT = 'cc_files.subject'; - /** the related Propel class for this table */ - const OM_CLASS = 'CcFiles'; + /** the column name for the contributor field */ + const CONTRIBUTOR = 'cc_files.contributor'; - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcFiles'; + /** the column name for the language field */ + const LANGUAGE = 'cc_files.language'; - /** the related TableMap class for this table */ - const TM_CLASS = 'CcFilesTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 70; + /** the column name for the file_exists field */ + const FILE_EXISTS = 'cc_files.file_exists'; - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; + /** the column name for the soundcloud_id field */ + const SOUNDCLOUD_ID = 'cc_files.soundcloud_id'; - /** the column name for the ID field */ - const ID = 'cc_files.ID'; + /** the column name for the soundcloud_error_code field */ + const SOUNDCLOUD_ERROR_CODE = 'cc_files.soundcloud_error_code'; - /** the column name for the NAME field */ - const NAME = 'cc_files.NAME'; + /** the column name for the soundcloud_error_msg field */ + const SOUNDCLOUD_ERROR_MSG = 'cc_files.soundcloud_error_msg'; - /** the column name for the MIME field */ - const MIME = 'cc_files.MIME'; + /** the column name for the soundcloud_link_to_file field */ + const SOUNDCLOUD_LINK_TO_FILE = 'cc_files.soundcloud_link_to_file'; - /** the column name for the FTYPE field */ - const FTYPE = 'cc_files.FTYPE'; + /** the column name for the soundcloud_upload_time field */ + const SOUNDCLOUD_UPLOAD_TIME = 'cc_files.soundcloud_upload_time'; + + /** the column name for the replay_gain field */ + const REPLAY_GAIN = 'cc_files.replay_gain'; + + /** the column name for the owner_id field */ + const OWNER_ID = 'cc_files.owner_id'; + + /** the column name for the cuein field */ + const CUEIN = 'cc_files.cuein'; + + /** the column name for the cueout field */ + const CUEOUT = 'cc_files.cueout'; + + /** the column name for the silan_check field */ + const SILAN_CHECK = 'cc_files.silan_check'; + + /** the column name for the hidden field */ + const HIDDEN = 'cc_files.hidden'; + + /** the column name for the is_scheduled field */ + const IS_SCHEDULED = 'cc_files.is_scheduled'; + + /** the column name for the is_playlist field */ + const IS_PLAYLIST = 'cc_files.is_playlist'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcFiles objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcFiles[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcFilesPeer::$fieldNames[CcFilesPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbMime', 'DbFtype', 'DbDirectory', 'DbFilepath', 'DbImportStatus', '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', 'DbOwnerId', 'DbCuein', 'DbCueout', 'DbSilanCheck', 'DbHidden', 'DbIsScheduled', 'DbIsPlaylist', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbMime', 'dbFtype', 'dbDirectory', 'dbFilepath', 'dbImportStatus', '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', 'dbOwnerId', 'dbCuein', 'dbCueout', 'dbSilanCheck', 'dbHidden', 'dbIsScheduled', 'dbIsPlaylist', ), + BasePeer::TYPE_COLNAME => array (CcFilesPeer::ID, CcFilesPeer::NAME, CcFilesPeer::MIME, CcFilesPeer::FTYPE, CcFilesPeer::DIRECTORY, CcFilesPeer::FILEPATH, CcFilesPeer::IMPORT_STATUS, CcFilesPeer::CURRENTLYACCESSING, CcFilesPeer::EDITEDBY, CcFilesPeer::MTIME, CcFilesPeer::UTIME, CcFilesPeer::LPTIME, CcFilesPeer::MD5, CcFilesPeer::TRACK_TITLE, CcFilesPeer::ARTIST_NAME, CcFilesPeer::BIT_RATE, CcFilesPeer::SAMPLE_RATE, CcFilesPeer::FORMAT, CcFilesPeer::LENGTH, CcFilesPeer::ALBUM_TITLE, CcFilesPeer::GENRE, CcFilesPeer::COMMENTS, CcFilesPeer::YEAR, CcFilesPeer::TRACK_NUMBER, CcFilesPeer::CHANNELS, CcFilesPeer::URL, CcFilesPeer::BPM, CcFilesPeer::RATING, CcFilesPeer::ENCODED_BY, CcFilesPeer::DISC_NUMBER, CcFilesPeer::MOOD, CcFilesPeer::LABEL, CcFilesPeer::COMPOSER, CcFilesPeer::ENCODER, CcFilesPeer::CHECKSUM, CcFilesPeer::LYRICS, CcFilesPeer::ORCHESTRA, CcFilesPeer::CONDUCTOR, CcFilesPeer::LYRICIST, CcFilesPeer::ORIGINAL_LYRICIST, CcFilesPeer::RADIO_STATION_NAME, CcFilesPeer::INFO_URL, CcFilesPeer::ARTIST_URL, CcFilesPeer::AUDIO_SOURCE_URL, CcFilesPeer::RADIO_STATION_URL, CcFilesPeer::BUY_THIS_URL, CcFilesPeer::ISRC_NUMBER, CcFilesPeer::CATALOG_NUMBER, CcFilesPeer::ORIGINAL_ARTIST, CcFilesPeer::COPYRIGHT, CcFilesPeer::REPORT_DATETIME, CcFilesPeer::REPORT_LOCATION, CcFilesPeer::REPORT_ORGANIZATION, CcFilesPeer::SUBJECT, CcFilesPeer::CONTRIBUTOR, CcFilesPeer::LANGUAGE, CcFilesPeer::FILE_EXISTS, CcFilesPeer::SOUNDCLOUD_ID, CcFilesPeer::SOUNDCLOUD_ERROR_CODE, CcFilesPeer::SOUNDCLOUD_ERROR_MSG, CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE, CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME, CcFilesPeer::REPLAY_GAIN, CcFilesPeer::OWNER_ID, CcFilesPeer::CUEIN, CcFilesPeer::CUEOUT, CcFilesPeer::SILAN_CHECK, CcFilesPeer::HIDDEN, CcFilesPeer::IS_SCHEDULED, CcFilesPeer::IS_PLAYLIST, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'MIME', 'FTYPE', 'DIRECTORY', 'FILEPATH', 'IMPORT_STATUS', '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', 'OWNER_ID', 'CUEIN', 'CUEOUT', 'SILAN_CHECK', 'HIDDEN', 'IS_SCHEDULED', 'IS_PLAYLIST', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'mime', 'ftype', 'directory', 'filepath', 'import_status', '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', 'owner_id', 'cuein', 'cueout', 'silan_check', 'hidden', 'is_scheduled', 'is_playlist', ), + 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, 64, 65, 66, 67, 68, 69, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcFilesPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbMime' => 2, 'DbFtype' => 3, 'DbDirectory' => 4, 'DbFilepath' => 5, 'DbImportStatus' => 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, 'DbOwnerId' => 63, 'DbCuein' => 64, 'DbCueout' => 65, 'DbSilanCheck' => 66, 'DbHidden' => 67, 'DbIsScheduled' => 68, 'DbIsPlaylist' => 69, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbMime' => 2, 'dbFtype' => 3, 'dbDirectory' => 4, 'dbFilepath' => 5, 'dbImportStatus' => 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, 'dbOwnerId' => 63, 'dbCuein' => 64, 'dbCueout' => 65, 'dbSilanCheck' => 66, 'dbHidden' => 67, 'dbIsScheduled' => 68, 'dbIsPlaylist' => 69, ), + BasePeer::TYPE_COLNAME => array (CcFilesPeer::ID => 0, CcFilesPeer::NAME => 1, CcFilesPeer::MIME => 2, CcFilesPeer::FTYPE => 3, CcFilesPeer::DIRECTORY => 4, CcFilesPeer::FILEPATH => 5, CcFilesPeer::IMPORT_STATUS => 6, CcFilesPeer::CURRENTLYACCESSING => 7, CcFilesPeer::EDITEDBY => 8, CcFilesPeer::MTIME => 9, CcFilesPeer::UTIME => 10, CcFilesPeer::LPTIME => 11, CcFilesPeer::MD5 => 12, CcFilesPeer::TRACK_TITLE => 13, CcFilesPeer::ARTIST_NAME => 14, CcFilesPeer::BIT_RATE => 15, CcFilesPeer::SAMPLE_RATE => 16, CcFilesPeer::FORMAT => 17, CcFilesPeer::LENGTH => 18, CcFilesPeer::ALBUM_TITLE => 19, CcFilesPeer::GENRE => 20, CcFilesPeer::COMMENTS => 21, CcFilesPeer::YEAR => 22, CcFilesPeer::TRACK_NUMBER => 23, CcFilesPeer::CHANNELS => 24, CcFilesPeer::URL => 25, CcFilesPeer::BPM => 26, CcFilesPeer::RATING => 27, CcFilesPeer::ENCODED_BY => 28, CcFilesPeer::DISC_NUMBER => 29, CcFilesPeer::MOOD => 30, CcFilesPeer::LABEL => 31, CcFilesPeer::COMPOSER => 32, CcFilesPeer::ENCODER => 33, CcFilesPeer::CHECKSUM => 34, CcFilesPeer::LYRICS => 35, CcFilesPeer::ORCHESTRA => 36, CcFilesPeer::CONDUCTOR => 37, CcFilesPeer::LYRICIST => 38, CcFilesPeer::ORIGINAL_LYRICIST => 39, CcFilesPeer::RADIO_STATION_NAME => 40, CcFilesPeer::INFO_URL => 41, CcFilesPeer::ARTIST_URL => 42, CcFilesPeer::AUDIO_SOURCE_URL => 43, CcFilesPeer::RADIO_STATION_URL => 44, CcFilesPeer::BUY_THIS_URL => 45, CcFilesPeer::ISRC_NUMBER => 46, CcFilesPeer::CATALOG_NUMBER => 47, CcFilesPeer::ORIGINAL_ARTIST => 48, CcFilesPeer::COPYRIGHT => 49, CcFilesPeer::REPORT_DATETIME => 50, CcFilesPeer::REPORT_LOCATION => 51, CcFilesPeer::REPORT_ORGANIZATION => 52, CcFilesPeer::SUBJECT => 53, CcFilesPeer::CONTRIBUTOR => 54, CcFilesPeer::LANGUAGE => 55, CcFilesPeer::FILE_EXISTS => 56, CcFilesPeer::SOUNDCLOUD_ID => 57, CcFilesPeer::SOUNDCLOUD_ERROR_CODE => 58, CcFilesPeer::SOUNDCLOUD_ERROR_MSG => 59, CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE => 60, CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME => 61, CcFilesPeer::REPLAY_GAIN => 62, CcFilesPeer::OWNER_ID => 63, CcFilesPeer::CUEIN => 64, CcFilesPeer::CUEOUT => 65, CcFilesPeer::SILAN_CHECK => 66, CcFilesPeer::HIDDEN => 67, CcFilesPeer::IS_SCHEDULED => 68, CcFilesPeer::IS_PLAYLIST => 69, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'MIME' => 2, 'FTYPE' => 3, 'DIRECTORY' => 4, 'FILEPATH' => 5, 'IMPORT_STATUS' => 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, 'OWNER_ID' => 63, 'CUEIN' => 64, 'CUEOUT' => 65, 'SILAN_CHECK' => 66, 'HIDDEN' => 67, 'IS_SCHEDULED' => 68, 'IS_PLAYLIST' => 69, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'mime' => 2, 'ftype' => 3, 'directory' => 4, 'filepath' => 5, 'import_status' => 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, 'owner_id' => 63, 'cuein' => 64, 'cueout' => 65, 'silan_check' => 66, 'hidden' => 67, 'is_scheduled' => 68, 'is_playlist' => 69, ), + 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, 64, 65, 66, 67, 68, 69, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcFilesPeer::getFieldNames($toType); + $key = isset(CcFilesPeer::$fieldKeys[$fromType][$name]) ? CcFilesPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcFilesPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcFilesPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcFilesPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcFilesPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcFilesPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcFilesPeer::ID); + $criteria->addSelectColumn(CcFilesPeer::NAME); + $criteria->addSelectColumn(CcFilesPeer::MIME); + $criteria->addSelectColumn(CcFilesPeer::FTYPE); + $criteria->addSelectColumn(CcFilesPeer::DIRECTORY); + $criteria->addSelectColumn(CcFilesPeer::FILEPATH); + $criteria->addSelectColumn(CcFilesPeer::IMPORT_STATUS); + $criteria->addSelectColumn(CcFilesPeer::CURRENTLYACCESSING); + $criteria->addSelectColumn(CcFilesPeer::EDITEDBY); + $criteria->addSelectColumn(CcFilesPeer::MTIME); + $criteria->addSelectColumn(CcFilesPeer::UTIME); + $criteria->addSelectColumn(CcFilesPeer::LPTIME); + $criteria->addSelectColumn(CcFilesPeer::MD5); + $criteria->addSelectColumn(CcFilesPeer::TRACK_TITLE); + $criteria->addSelectColumn(CcFilesPeer::ARTIST_NAME); + $criteria->addSelectColumn(CcFilesPeer::BIT_RATE); + $criteria->addSelectColumn(CcFilesPeer::SAMPLE_RATE); + $criteria->addSelectColumn(CcFilesPeer::FORMAT); + $criteria->addSelectColumn(CcFilesPeer::LENGTH); + $criteria->addSelectColumn(CcFilesPeer::ALBUM_TITLE); + $criteria->addSelectColumn(CcFilesPeer::GENRE); + $criteria->addSelectColumn(CcFilesPeer::COMMENTS); + $criteria->addSelectColumn(CcFilesPeer::YEAR); + $criteria->addSelectColumn(CcFilesPeer::TRACK_NUMBER); + $criteria->addSelectColumn(CcFilesPeer::CHANNELS); + $criteria->addSelectColumn(CcFilesPeer::URL); + $criteria->addSelectColumn(CcFilesPeer::BPM); + $criteria->addSelectColumn(CcFilesPeer::RATING); + $criteria->addSelectColumn(CcFilesPeer::ENCODED_BY); + $criteria->addSelectColumn(CcFilesPeer::DISC_NUMBER); + $criteria->addSelectColumn(CcFilesPeer::MOOD); + $criteria->addSelectColumn(CcFilesPeer::LABEL); + $criteria->addSelectColumn(CcFilesPeer::COMPOSER); + $criteria->addSelectColumn(CcFilesPeer::ENCODER); + $criteria->addSelectColumn(CcFilesPeer::CHECKSUM); + $criteria->addSelectColumn(CcFilesPeer::LYRICS); + $criteria->addSelectColumn(CcFilesPeer::ORCHESTRA); + $criteria->addSelectColumn(CcFilesPeer::CONDUCTOR); + $criteria->addSelectColumn(CcFilesPeer::LYRICIST); + $criteria->addSelectColumn(CcFilesPeer::ORIGINAL_LYRICIST); + $criteria->addSelectColumn(CcFilesPeer::RADIO_STATION_NAME); + $criteria->addSelectColumn(CcFilesPeer::INFO_URL); + $criteria->addSelectColumn(CcFilesPeer::ARTIST_URL); + $criteria->addSelectColumn(CcFilesPeer::AUDIO_SOURCE_URL); + $criteria->addSelectColumn(CcFilesPeer::RADIO_STATION_URL); + $criteria->addSelectColumn(CcFilesPeer::BUY_THIS_URL); + $criteria->addSelectColumn(CcFilesPeer::ISRC_NUMBER); + $criteria->addSelectColumn(CcFilesPeer::CATALOG_NUMBER); + $criteria->addSelectColumn(CcFilesPeer::ORIGINAL_ARTIST); + $criteria->addSelectColumn(CcFilesPeer::COPYRIGHT); + $criteria->addSelectColumn(CcFilesPeer::REPORT_DATETIME); + $criteria->addSelectColumn(CcFilesPeer::REPORT_LOCATION); + $criteria->addSelectColumn(CcFilesPeer::REPORT_ORGANIZATION); + $criteria->addSelectColumn(CcFilesPeer::SUBJECT); + $criteria->addSelectColumn(CcFilesPeer::CONTRIBUTOR); + $criteria->addSelectColumn(CcFilesPeer::LANGUAGE); + $criteria->addSelectColumn(CcFilesPeer::FILE_EXISTS); + $criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_ID); + $criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_ERROR_CODE); + $criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_ERROR_MSG); + $criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE); + $criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME); + $criteria->addSelectColumn(CcFilesPeer::REPLAY_GAIN); + $criteria->addSelectColumn(CcFilesPeer::OWNER_ID); + $criteria->addSelectColumn(CcFilesPeer::CUEIN); + $criteria->addSelectColumn(CcFilesPeer::CUEOUT); + $criteria->addSelectColumn(CcFilesPeer::SILAN_CHECK); + $criteria->addSelectColumn(CcFilesPeer::HIDDEN); + $criteria->addSelectColumn(CcFilesPeer::IS_SCHEDULED); + $criteria->addSelectColumn(CcFilesPeer::IS_PLAYLIST); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.name'); + $criteria->addSelectColumn($alias . '.mime'); + $criteria->addSelectColumn($alias . '.ftype'); + $criteria->addSelectColumn($alias . '.directory'); + $criteria->addSelectColumn($alias . '.filepath'); + $criteria->addSelectColumn($alias . '.import_status'); + $criteria->addSelectColumn($alias . '.currentlyaccessing'); + $criteria->addSelectColumn($alias . '.editedby'); + $criteria->addSelectColumn($alias . '.mtime'); + $criteria->addSelectColumn($alias . '.utime'); + $criteria->addSelectColumn($alias . '.lptime'); + $criteria->addSelectColumn($alias . '.md5'); + $criteria->addSelectColumn($alias . '.track_title'); + $criteria->addSelectColumn($alias . '.artist_name'); + $criteria->addSelectColumn($alias . '.bit_rate'); + $criteria->addSelectColumn($alias . '.sample_rate'); + $criteria->addSelectColumn($alias . '.format'); + $criteria->addSelectColumn($alias . '.length'); + $criteria->addSelectColumn($alias . '.album_title'); + $criteria->addSelectColumn($alias . '.genre'); + $criteria->addSelectColumn($alias . '.comments'); + $criteria->addSelectColumn($alias . '.year'); + $criteria->addSelectColumn($alias . '.track_number'); + $criteria->addSelectColumn($alias . '.channels'); + $criteria->addSelectColumn($alias . '.url'); + $criteria->addSelectColumn($alias . '.bpm'); + $criteria->addSelectColumn($alias . '.rating'); + $criteria->addSelectColumn($alias . '.encoded_by'); + $criteria->addSelectColumn($alias . '.disc_number'); + $criteria->addSelectColumn($alias . '.mood'); + $criteria->addSelectColumn($alias . '.label'); + $criteria->addSelectColumn($alias . '.composer'); + $criteria->addSelectColumn($alias . '.encoder'); + $criteria->addSelectColumn($alias . '.checksum'); + $criteria->addSelectColumn($alias . '.lyrics'); + $criteria->addSelectColumn($alias . '.orchestra'); + $criteria->addSelectColumn($alias . '.conductor'); + $criteria->addSelectColumn($alias . '.lyricist'); + $criteria->addSelectColumn($alias . '.original_lyricist'); + $criteria->addSelectColumn($alias . '.radio_station_name'); + $criteria->addSelectColumn($alias . '.info_url'); + $criteria->addSelectColumn($alias . '.artist_url'); + $criteria->addSelectColumn($alias . '.audio_source_url'); + $criteria->addSelectColumn($alias . '.radio_station_url'); + $criteria->addSelectColumn($alias . '.buy_this_url'); + $criteria->addSelectColumn($alias . '.isrc_number'); + $criteria->addSelectColumn($alias . '.catalog_number'); + $criteria->addSelectColumn($alias . '.original_artist'); + $criteria->addSelectColumn($alias . '.copyright'); + $criteria->addSelectColumn($alias . '.report_datetime'); + $criteria->addSelectColumn($alias . '.report_location'); + $criteria->addSelectColumn($alias . '.report_organization'); + $criteria->addSelectColumn($alias . '.subject'); + $criteria->addSelectColumn($alias . '.contributor'); + $criteria->addSelectColumn($alias . '.language'); + $criteria->addSelectColumn($alias . '.file_exists'); + $criteria->addSelectColumn($alias . '.soundcloud_id'); + $criteria->addSelectColumn($alias . '.soundcloud_error_code'); + $criteria->addSelectColumn($alias . '.soundcloud_error_msg'); + $criteria->addSelectColumn($alias . '.soundcloud_link_to_file'); + $criteria->addSelectColumn($alias . '.soundcloud_upload_time'); + $criteria->addSelectColumn($alias . '.replay_gain'); + $criteria->addSelectColumn($alias . '.owner_id'); + $criteria->addSelectColumn($alias . '.cuein'); + $criteria->addSelectColumn($alias . '.cueout'); + $criteria->addSelectColumn($alias . '.silan_check'); + $criteria->addSelectColumn($alias . '.hidden'); + $criteria->addSelectColumn($alias . '.is_scheduled'); + $criteria->addSelectColumn($alias . '.is_playlist'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcFilesPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcFiles + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcFilesPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcFilesPeer::populateObjects(CcFilesPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcFilesPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcFiles $obj A CcFiles object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcFilesPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcFiles object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcFiles) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcFiles object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcFilesPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcFiles Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcFilesPeer::$instances[$key])) { + return CcFilesPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcFilesPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcFilesPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_files + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + // Invalidate objects in CloudFilePeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CloudFilePeer::clearInstancePool(); + // Invalidate objects in CcShowInstancesPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcShowInstancesPeer::clearInstancePool(); + // Invalidate objects in CcPlaylistcontentsPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcPlaylistcontentsPeer::clearInstancePool(); + // Invalidate objects in CcBlockcontentsPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcBlockcontentsPeer::clearInstancePool(); + // Invalidate objects in CcSchedulePeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcSchedulePeer::clearInstancePool(); + // Invalidate objects in CcPlayoutHistoryPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcPlayoutHistoryPeer::clearInstancePool(); + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcFilesPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcFilesPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcFilesPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcFiles object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcFilesPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcFilesPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcFilesPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcFilesPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related FkOwner table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinFkOwner(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcFilesPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcFilesPeer::OWNER_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcSubjsRelatedByDbEditedby table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcSubjsRelatedByDbEditedby(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcFilesPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcFilesPeer::EDITEDBY, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcMusicDirs table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcMusicDirs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); - /** the column name for the DIRECTORY field */ - const DIRECTORY = 'cc_files.DIRECTORY'; + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcFilesPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcFiles objects pre-filled with their CcSubjs objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcFiles objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinFkOwner(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + } + + CcFilesPeer::addSelectColumns($criteria); + $startcol = CcFilesPeer::NUM_HYDRATE_COLUMNS; + CcSubjsPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcFilesPeer::OWNER_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcFilesPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcFilesPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcFilesPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcFiles) to $obj2 (CcSubjs) + $obj2->addCcFilesRelatedByDbOwnerId($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcFiles objects pre-filled with their CcSubjs objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcFiles objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcSubjsRelatedByDbEditedby(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + } + + CcFilesPeer::addSelectColumns($criteria); + $startcol = CcFilesPeer::NUM_HYDRATE_COLUMNS; + CcSubjsPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcFilesPeer::EDITEDBY, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcFilesPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcFilesPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcFilesPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcFiles) to $obj2 (CcSubjs) + $obj2->addCcFilesRelatedByDbEditedby($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcFiles objects pre-filled with their CcMusicDirs objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcFiles objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcMusicDirs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; - /** the column name for the FILEPATH field */ - const FILEPATH = 'cc_files.FILEPATH'; + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + } - /** the column name for the STATE field */ - const STATE = 'cc_files.STATE'; + CcFilesPeer::addSelectColumns($criteria); + $startcol = CcFilesPeer::NUM_HYDRATE_COLUMNS; + CcMusicDirsPeer::addSelectColumns($criteria); - /** the column name for the CURRENTLYACCESSING field */ - const CURRENTLYACCESSING = 'cc_files.CURRENTLYACCESSING'; + $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcFilesPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcFilesPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcFilesPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcMusicDirsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcMusicDirsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcMusicDirsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcMusicDirsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded - /** the column name for the EDITEDBY field */ - const EDITEDBY = 'cc_files.EDITEDBY'; + // Add the $obj1 (CcFiles) to $obj2 (CcMusicDirs) + $obj2->addCcFiles($obj1); - /** the column name for the MTIME field */ - const MTIME = 'cc_files.MTIME'; + } // if joined row was not null - /** the column name for the UTIME field */ - const UTIME = 'cc_files.UTIME'; + $results[] = $obj1; + } + $stmt->closeCursor(); - /** the column name for the LPTIME field */ - const LPTIME = 'cc_files.LPTIME'; + return $results; + } - /** the column name for the MD5 field */ - const MD5 = 'cc_files.MD5'; - /** the column name for the TRACK_TITLE field */ - const TRACK_TITLE = 'cc_files.TRACK_TITLE'; + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); - /** the column name for the ARTIST_NAME field */ - const ARTIST_NAME = 'cc_files.ARTIST_NAME'; + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } - /** the column name for the BIT_RATE field */ - const BIT_RATE = 'cc_files.BIT_RATE'; + if (!$criteria->hasSelectClause()) { + CcFilesPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - /** the column name for the SAMPLE_RATE field */ - const SAMPLE_RATE = 'cc_files.SAMPLE_RATE'; + // Set the correct dbName + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcFilesPeer::OWNER_ID, CcSubjsPeer::ID, $join_behavior); + + $criteria->addJoin(CcFilesPeer::EDITEDBY, CcSubjsPeer::ID, $join_behavior); - /** the column name for the FORMAT field */ - const FORMAT = 'cc_files.FORMAT'; + $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); - /** the column name for the LENGTH field */ - const LENGTH = 'cc_files.LENGTH'; + $stmt = BasePeer::doCount($criteria, $con); - /** the column name for the ALBUM_TITLE field */ - const ALBUM_TITLE = 'cc_files.ALBUM_TITLE'; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); - /** the column name for the GENRE field */ - const GENRE = 'cc_files.GENRE'; + return $count; + } - /** the column name for the COMMENTS field */ - const COMMENTS = 'cc_files.COMMENTS'; + /** + * Selects a collection of CcFiles objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcFiles objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; - /** the column name for the YEAR field */ - const YEAR = 'cc_files.YEAR'; + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + } - /** the column name for the TRACK_NUMBER field */ - const TRACK_NUMBER = 'cc_files.TRACK_NUMBER'; + CcFilesPeer::addSelectColumns($criteria); + $startcol2 = CcFilesPeer::NUM_HYDRATE_COLUMNS; - /** the column name for the CHANNELS field */ - const CHANNELS = 'cc_files.CHANNELS'; + CcSubjsPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcSubjsPeer::NUM_HYDRATE_COLUMNS; - /** the column name for the URL field */ - const URL = 'cc_files.URL'; + CcSubjsPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcSubjsPeer::NUM_HYDRATE_COLUMNS; - /** the column name for the BPM field */ - const BPM = 'cc_files.BPM'; + CcMusicDirsPeer::addSelectColumns($criteria); + $startcol5 = $startcol4 + CcMusicDirsPeer::NUM_HYDRATE_COLUMNS; - /** the column name for the RATING field */ - const RATING = 'cc_files.RATING'; + $criteria->addJoin(CcFilesPeer::OWNER_ID, CcSubjsPeer::ID, $join_behavior); - /** the column name for the ENCODED_BY field */ - const ENCODED_BY = 'cc_files.ENCODED_BY'; + $criteria->addJoin(CcFilesPeer::EDITEDBY, CcSubjsPeer::ID, $join_behavior); - /** the column name for the DISC_NUMBER field */ - const DISC_NUMBER = 'cc_files.DISC_NUMBER'; + $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcFilesPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcFilesPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcFilesPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded - /** the column name for the MOOD field */ - const MOOD = 'cc_files.MOOD'; + // Add objects for joined CcSubjs rows - /** the column name for the LABEL field */ - const LABEL = 'cc_files.LABEL'; + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { - /** the column name for the COMPOSER field */ - const COMPOSER = 'cc_files.COMPOSER'; + $cls = CcSubjsPeer::getOMClass(); - /** the column name for the ENCODER field */ - const ENCODER = 'cc_files.ENCODER'; + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded - /** the column name for the CHECKSUM field */ - const CHECKSUM = 'cc_files.CHECKSUM'; + // Add the $obj1 (CcFiles) to the collection in $obj2 (CcSubjs) + $obj2->addCcFilesRelatedByDbOwnerId($obj1); + } // if joined row not null - /** the column name for the LYRICS field */ - const LYRICS = 'cc_files.LYRICS'; + // Add objects for joined CcSubjs rows - /** the column name for the ORCHESTRA field */ - const ORCHESTRA = 'cc_files.ORCHESTRA'; + $key3 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcSubjsPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcSubjsPeer::getOMClass(); - /** the column name for the CONDUCTOR field */ - const CONDUCTOR = 'cc_files.CONDUCTOR'; + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcSubjsPeer::addInstanceToPool($obj3, $key3); + } // if obj3 loaded + + // Add the $obj1 (CcFiles) to the collection in $obj3 (CcSubjs) + $obj3->addCcFilesRelatedByDbEditedby($obj1); + } // if joined row not null + + // Add objects for joined CcMusicDirs rows + + $key4 = CcMusicDirsPeer::getPrimaryKeyHashFromRow($row, $startcol4); + if ($key4 !== null) { + $obj4 = CcMusicDirsPeer::getInstanceFromPool($key4); + if (!$obj4) { + + $cls = CcMusicDirsPeer::getOMClass(); + + $obj4 = new $cls(); + $obj4->hydrate($row, $startcol4); + CcMusicDirsPeer::addInstanceToPool($obj4, $key4); + } // if obj4 loaded + + // Add the $obj1 (CcFiles) to the collection in $obj4 (CcMusicDirs) + $obj4->addCcFiles($obj1); + } // if joined row not null - /** the column name for the LYRICIST field */ - const LYRICIST = 'cc_files.LYRICIST'; + $results[] = $obj1; + } + $stmt->closeCursor(); - /** the column name for the ORIGINAL_LYRICIST field */ - const ORIGINAL_LYRICIST = 'cc_files.ORIGINAL_LYRICIST'; + return $results; + } - /** the column name for the RADIO_STATION_NAME field */ - const RADIO_STATION_NAME = 'cc_files.RADIO_STATION_NAME'; - /** the column name for the INFO_URL field */ - const INFO_URL = 'cc_files.INFO_URL'; + /** + * Returns the number of rows matching criteria, joining the related FkOwner table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptFkOwner(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcFilesPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); - /** the column name for the ARTIST_URL field */ - const ARTIST_URL = 'cc_files.ARTIST_URL'; + $stmt = BasePeer::doCount($criteria, $con); - /** the column name for the AUDIO_SOURCE_URL field */ - const AUDIO_SOURCE_URL = 'cc_files.AUDIO_SOURCE_URL'; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } - /** the column name for the RADIO_STATION_URL field */ - const RADIO_STATION_URL = 'cc_files.RADIO_STATION_URL'; - /** the column name for the BUY_THIS_URL field */ - const BUY_THIS_URL = 'cc_files.BUY_THIS_URL'; + /** + * Returns the number of rows matching criteria, joining the related CcSubjsRelatedByDbEditedby table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcSubjsRelatedByDbEditedby(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcFilesPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcMusicDirs table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcMusicDirs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); - /** the column name for the ISRC_NUMBER field */ - const ISRC_NUMBER = 'cc_files.ISRC_NUMBER'; + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } - /** the column name for the CATALOG_NUMBER field */ - const CATALOG_NUMBER = 'cc_files.CATALOG_NUMBER'; + if (!$criteria->hasSelectClause()) { + CcFilesPeer::addSelectColumns($criteria); + } - /** the column name for the ORIGINAL_ARTIST field */ - const ORIGINAL_ARTIST = 'cc_files.ORIGINAL_ARTIST'; + $criteria->clearOrderByColumns(); // ORDER BY should not affect count - /** the column name for the COPYRIGHT field */ - const COPYRIGHT = 'cc_files.COPYRIGHT'; + // Set the correct dbName + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcFilesPeer::OWNER_ID, CcSubjsPeer::ID, $join_behavior); + + $criteria->addJoin(CcFilesPeer::EDITEDBY, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcFiles objects pre-filled with all related objects except FkOwner. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcFiles objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptFkOwner(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + } + + CcFilesPeer::addSelectColumns($criteria); + $startcol2 = CcFilesPeer::NUM_HYDRATE_COLUMNS; + + CcMusicDirsPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcMusicDirsPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcFilesPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcFilesPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcFilesPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcMusicDirs rows + + $key2 = CcMusicDirsPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcMusicDirsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcMusicDirsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcMusicDirsPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcFiles) to the collection in $obj2 (CcMusicDirs) + $obj2->addCcFiles($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcFiles objects pre-filled with all related objects except CcSubjsRelatedByDbEditedby. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcFiles objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcSubjsRelatedByDbEditedby(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + } + + CcFilesPeer::addSelectColumns($criteria); + $startcol2 = CcFilesPeer::NUM_HYDRATE_COLUMNS; + + CcMusicDirsPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcMusicDirsPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcFilesPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcFilesPeer::getOMClass(); - /** the column name for the REPORT_DATETIME field */ - const REPORT_DATETIME = 'cc_files.REPORT_DATETIME'; + $obj1 = new $cls(); + $obj1->hydrate($row); + CcFilesPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded - /** the column name for the REPORT_LOCATION field */ - const REPORT_LOCATION = 'cc_files.REPORT_LOCATION'; + // Add objects for joined CcMusicDirs rows - /** the column name for the REPORT_ORGANIZATION field */ - const REPORT_ORGANIZATION = 'cc_files.REPORT_ORGANIZATION'; + $key2 = CcMusicDirsPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcMusicDirsPeer::getInstanceFromPool($key2); + if (!$obj2) { - /** the column name for the SUBJECT field */ - const SUBJECT = 'cc_files.SUBJECT'; + $cls = CcMusicDirsPeer::getOMClass(); - /** the column name for the CONTRIBUTOR field */ - const CONTRIBUTOR = 'cc_files.CONTRIBUTOR'; + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcMusicDirsPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded - /** the column name for the LANGUAGE field */ - const LANGUAGE = 'cc_files.LANGUAGE'; + // Add the $obj1 (CcFiles) to the collection in $obj2 (CcMusicDirs) + $obj2->addCcFiles($obj1); - /** the column name for the FILE_EXISTS field */ - const FILE_EXISTS = 'cc_files.FILE_EXISTS'; + } // if joined row is not null - /** the column name for the SOUNDCLOUD_ID field */ - const SOUNDCLOUD_ID = 'cc_files.SOUNDCLOUD_ID'; + $results[] = $obj1; + } + $stmt->closeCursor(); - /** the column name for the SOUNDCLOUD_ERROR_CODE field */ - const SOUNDCLOUD_ERROR_CODE = 'cc_files.SOUNDCLOUD_ERROR_CODE'; + return $results; + } - /** the column name for the SOUNDCLOUD_ERROR_MSG field */ - const SOUNDCLOUD_ERROR_MSG = 'cc_files.SOUNDCLOUD_ERROR_MSG'; - /** the column name for the SOUNDCLOUD_LINK_TO_FILE field */ - const SOUNDCLOUD_LINK_TO_FILE = 'cc_files.SOUNDCLOUD_LINK_TO_FILE'; - - /** the column name for the SOUNDCLOUD_UPLOAD_TIME field */ - const SOUNDCLOUD_UPLOAD_TIME = 'cc_files.SOUNDCLOUD_UPLOAD_TIME'; - - /** the column name for the REPLAY_GAIN field */ - const REPLAY_GAIN = 'cc_files.REPLAY_GAIN'; - - /** the column name for the OWNER_ID field */ - const OWNER_ID = 'cc_files.OWNER_ID'; - - /** the column name for the CUEIN field */ - const CUEIN = 'cc_files.CUEIN'; - - /** the column name for the CUEOUT field */ - const CUEOUT = 'cc_files.CUEOUT'; - - /** the column name for the SILAN_CHECK field */ - const SILAN_CHECK = 'cc_files.SILAN_CHECK'; - - /** the column name for the HIDDEN field */ - const HIDDEN = 'cc_files.HIDDEN'; - - /** the column name for the IS_SCHEDULED field */ - const IS_SCHEDULED = 'cc_files.IS_SCHEDULED'; - - /** the column name for the IS_PLAYLIST field */ - const IS_PLAYLIST = 'cc_files.IS_PLAYLIST'; - - /** - * An identiy map to hold any loaded instances of CcFiles objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcFiles[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - 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', 'DbOwnerId', 'DbCuein', 'DbCueout', 'DbSilanCheck', 'DbHidden', 'DbIsScheduled', 'DbIsPlaylist', ), - 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', 'dbOwnerId', 'dbCuein', 'dbCueout', 'dbSilanCheck', 'dbHidden', 'dbIsScheduled', 'dbIsPlaylist', ), - 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, self::OWNER_ID, self::CUEIN, self::CUEOUT, self::SILAN_CHECK, self::HIDDEN, self::IS_SCHEDULED, self::IS_PLAYLIST, ), - 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', 'OWNER_ID', 'CUEIN', 'CUEOUT', 'SILAN_CHECK', 'HIDDEN', 'IS_SCHEDULED', 'IS_PLAYLIST', ), - 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', 'owner_id', 'cuein', 'cueout', 'silan_check', 'hidden', 'is_scheduled', 'is_playlist', ), - 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, 64, 65, 66, 67, 68, 69, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - 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, 'DbOwnerId' => 63, 'DbCuein' => 64, 'DbCueout' => 65, 'DbSilanCheck' => 66, 'DbHidden' => 67, 'DbIsScheduled' => 68, 'DbIsPlaylist' => 69, ), - 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, 'dbOwnerId' => 63, 'dbCuein' => 64, 'dbCueout' => 65, 'dbSilanCheck' => 66, 'dbHidden' => 67, 'dbIsScheduled' => 68, 'dbIsPlaylist' => 69, ), - 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, self::OWNER_ID => 63, self::CUEIN => 64, self::CUEOUT => 65, self::SILAN_CHECK => 66, self::HIDDEN => 67, self::IS_SCHEDULED => 68, self::IS_PLAYLIST => 69, ), - 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, 'OWNER_ID' => 63, 'CUEIN' => 64, 'CUEOUT' => 65, 'SILAN_CHECK' => 66, 'HIDDEN' => 67, 'IS_SCHEDULED' => 68, 'IS_PLAYLIST' => 69, ), - 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, 'owner_id' => 63, 'cuein' => 64, 'cueout' => 65, 'silan_check' => 66, 'hidden' => 67, 'is_scheduled' => 68, 'is_playlist' => 69, ), - 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, 64, 65, 66, 67, 68, 69, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcFilesPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcFilesPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcFilesPeer::ID); - $criteria->addSelectColumn(CcFilesPeer::NAME); - $criteria->addSelectColumn(CcFilesPeer::MIME); - $criteria->addSelectColumn(CcFilesPeer::FTYPE); - $criteria->addSelectColumn(CcFilesPeer::DIRECTORY); - $criteria->addSelectColumn(CcFilesPeer::FILEPATH); - $criteria->addSelectColumn(CcFilesPeer::STATE); - $criteria->addSelectColumn(CcFilesPeer::CURRENTLYACCESSING); - $criteria->addSelectColumn(CcFilesPeer::EDITEDBY); - $criteria->addSelectColumn(CcFilesPeer::MTIME); - $criteria->addSelectColumn(CcFilesPeer::UTIME); - $criteria->addSelectColumn(CcFilesPeer::LPTIME); - $criteria->addSelectColumn(CcFilesPeer::MD5); - $criteria->addSelectColumn(CcFilesPeer::TRACK_TITLE); - $criteria->addSelectColumn(CcFilesPeer::ARTIST_NAME); - $criteria->addSelectColumn(CcFilesPeer::BIT_RATE); - $criteria->addSelectColumn(CcFilesPeer::SAMPLE_RATE); - $criteria->addSelectColumn(CcFilesPeer::FORMAT); - $criteria->addSelectColumn(CcFilesPeer::LENGTH); - $criteria->addSelectColumn(CcFilesPeer::ALBUM_TITLE); - $criteria->addSelectColumn(CcFilesPeer::GENRE); - $criteria->addSelectColumn(CcFilesPeer::COMMENTS); - $criteria->addSelectColumn(CcFilesPeer::YEAR); - $criteria->addSelectColumn(CcFilesPeer::TRACK_NUMBER); - $criteria->addSelectColumn(CcFilesPeer::CHANNELS); - $criteria->addSelectColumn(CcFilesPeer::URL); - $criteria->addSelectColumn(CcFilesPeer::BPM); - $criteria->addSelectColumn(CcFilesPeer::RATING); - $criteria->addSelectColumn(CcFilesPeer::ENCODED_BY); - $criteria->addSelectColumn(CcFilesPeer::DISC_NUMBER); - $criteria->addSelectColumn(CcFilesPeer::MOOD); - $criteria->addSelectColumn(CcFilesPeer::LABEL); - $criteria->addSelectColumn(CcFilesPeer::COMPOSER); - $criteria->addSelectColumn(CcFilesPeer::ENCODER); - $criteria->addSelectColumn(CcFilesPeer::CHECKSUM); - $criteria->addSelectColumn(CcFilesPeer::LYRICS); - $criteria->addSelectColumn(CcFilesPeer::ORCHESTRA); - $criteria->addSelectColumn(CcFilesPeer::CONDUCTOR); - $criteria->addSelectColumn(CcFilesPeer::LYRICIST); - $criteria->addSelectColumn(CcFilesPeer::ORIGINAL_LYRICIST); - $criteria->addSelectColumn(CcFilesPeer::RADIO_STATION_NAME); - $criteria->addSelectColumn(CcFilesPeer::INFO_URL); - $criteria->addSelectColumn(CcFilesPeer::ARTIST_URL); - $criteria->addSelectColumn(CcFilesPeer::AUDIO_SOURCE_URL); - $criteria->addSelectColumn(CcFilesPeer::RADIO_STATION_URL); - $criteria->addSelectColumn(CcFilesPeer::BUY_THIS_URL); - $criteria->addSelectColumn(CcFilesPeer::ISRC_NUMBER); - $criteria->addSelectColumn(CcFilesPeer::CATALOG_NUMBER); - $criteria->addSelectColumn(CcFilesPeer::ORIGINAL_ARTIST); - $criteria->addSelectColumn(CcFilesPeer::COPYRIGHT); - $criteria->addSelectColumn(CcFilesPeer::REPORT_DATETIME); - $criteria->addSelectColumn(CcFilesPeer::REPORT_LOCATION); - $criteria->addSelectColumn(CcFilesPeer::REPORT_ORGANIZATION); - $criteria->addSelectColumn(CcFilesPeer::SUBJECT); - $criteria->addSelectColumn(CcFilesPeer::CONTRIBUTOR); - $criteria->addSelectColumn(CcFilesPeer::LANGUAGE); - $criteria->addSelectColumn(CcFilesPeer::FILE_EXISTS); - $criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_ID); - $criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_ERROR_CODE); - $criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_ERROR_MSG); - $criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE); - $criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME); - $criteria->addSelectColumn(CcFilesPeer::REPLAY_GAIN); - $criteria->addSelectColumn(CcFilesPeer::OWNER_ID); - $criteria->addSelectColumn(CcFilesPeer::CUEIN); - $criteria->addSelectColumn(CcFilesPeer::CUEOUT); - $criteria->addSelectColumn(CcFilesPeer::SILAN_CHECK); - $criteria->addSelectColumn(CcFilesPeer::HIDDEN); - $criteria->addSelectColumn(CcFilesPeer::IS_SCHEDULED); - $criteria->addSelectColumn(CcFilesPeer::IS_PLAYLIST); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.NAME'); - $criteria->addSelectColumn($alias . '.MIME'); - $criteria->addSelectColumn($alias . '.FTYPE'); - $criteria->addSelectColumn($alias . '.DIRECTORY'); - $criteria->addSelectColumn($alias . '.FILEPATH'); - $criteria->addSelectColumn($alias . '.STATE'); - $criteria->addSelectColumn($alias . '.CURRENTLYACCESSING'); - $criteria->addSelectColumn($alias . '.EDITEDBY'); - $criteria->addSelectColumn($alias . '.MTIME'); - $criteria->addSelectColumn($alias . '.UTIME'); - $criteria->addSelectColumn($alias . '.LPTIME'); - $criteria->addSelectColumn($alias . '.MD5'); - $criteria->addSelectColumn($alias . '.TRACK_TITLE'); - $criteria->addSelectColumn($alias . '.ARTIST_NAME'); - $criteria->addSelectColumn($alias . '.BIT_RATE'); - $criteria->addSelectColumn($alias . '.SAMPLE_RATE'); - $criteria->addSelectColumn($alias . '.FORMAT'); - $criteria->addSelectColumn($alias . '.LENGTH'); - $criteria->addSelectColumn($alias . '.ALBUM_TITLE'); - $criteria->addSelectColumn($alias . '.GENRE'); - $criteria->addSelectColumn($alias . '.COMMENTS'); - $criteria->addSelectColumn($alias . '.YEAR'); - $criteria->addSelectColumn($alias . '.TRACK_NUMBER'); - $criteria->addSelectColumn($alias . '.CHANNELS'); - $criteria->addSelectColumn($alias . '.URL'); - $criteria->addSelectColumn($alias . '.BPM'); - $criteria->addSelectColumn($alias . '.RATING'); - $criteria->addSelectColumn($alias . '.ENCODED_BY'); - $criteria->addSelectColumn($alias . '.DISC_NUMBER'); - $criteria->addSelectColumn($alias . '.MOOD'); - $criteria->addSelectColumn($alias . '.LABEL'); - $criteria->addSelectColumn($alias . '.COMPOSER'); - $criteria->addSelectColumn($alias . '.ENCODER'); - $criteria->addSelectColumn($alias . '.CHECKSUM'); - $criteria->addSelectColumn($alias . '.LYRICS'); - $criteria->addSelectColumn($alias . '.ORCHESTRA'); - $criteria->addSelectColumn($alias . '.CONDUCTOR'); - $criteria->addSelectColumn($alias . '.LYRICIST'); - $criteria->addSelectColumn($alias . '.ORIGINAL_LYRICIST'); - $criteria->addSelectColumn($alias . '.RADIO_STATION_NAME'); - $criteria->addSelectColumn($alias . '.INFO_URL'); - $criteria->addSelectColumn($alias . '.ARTIST_URL'); - $criteria->addSelectColumn($alias . '.AUDIO_SOURCE_URL'); - $criteria->addSelectColumn($alias . '.RADIO_STATION_URL'); - $criteria->addSelectColumn($alias . '.BUY_THIS_URL'); - $criteria->addSelectColumn($alias . '.ISRC_NUMBER'); - $criteria->addSelectColumn($alias . '.CATALOG_NUMBER'); - $criteria->addSelectColumn($alias . '.ORIGINAL_ARTIST'); - $criteria->addSelectColumn($alias . '.COPYRIGHT'); - $criteria->addSelectColumn($alias . '.REPORT_DATETIME'); - $criteria->addSelectColumn($alias . '.REPORT_LOCATION'); - $criteria->addSelectColumn($alias . '.REPORT_ORGANIZATION'); - $criteria->addSelectColumn($alias . '.SUBJECT'); - $criteria->addSelectColumn($alias . '.CONTRIBUTOR'); - $criteria->addSelectColumn($alias . '.LANGUAGE'); - $criteria->addSelectColumn($alias . '.FILE_EXISTS'); - $criteria->addSelectColumn($alias . '.SOUNDCLOUD_ID'); - $criteria->addSelectColumn($alias . '.SOUNDCLOUD_ERROR_CODE'); - $criteria->addSelectColumn($alias . '.SOUNDCLOUD_ERROR_MSG'); - $criteria->addSelectColumn($alias . '.SOUNDCLOUD_LINK_TO_FILE'); - $criteria->addSelectColumn($alias . '.SOUNDCLOUD_UPLOAD_TIME'); - $criteria->addSelectColumn($alias . '.REPLAY_GAIN'); - $criteria->addSelectColumn($alias . '.OWNER_ID'); - $criteria->addSelectColumn($alias . '.CUEIN'); - $criteria->addSelectColumn($alias . '.CUEOUT'); - $criteria->addSelectColumn($alias . '.SILAN_CHECK'); - $criteria->addSelectColumn($alias . '.HIDDEN'); - $criteria->addSelectColumn($alias . '.IS_SCHEDULED'); - $criteria->addSelectColumn($alias . '.IS_PLAYLIST'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcFilesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcFiles - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcFilesPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcFilesPeer::populateObjects(CcFilesPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcFilesPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcFiles $value A CcFiles object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcFiles $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcFiles object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcFiles) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcFiles object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcFiles Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_files - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - // Invalidate objects in CcShowInstancesPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcShowInstancesPeer::clearInstancePool(); - // Invalidate objects in CcPlaylistcontentsPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcPlaylistcontentsPeer::clearInstancePool(); - // Invalidate objects in CcBlockcontentsPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcBlockcontentsPeer::clearInstancePool(); - // Invalidate objects in CcSchedulePeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcSchedulePeer::clearInstancePool(); - // Invalidate objects in CcPlayoutHistoryPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcPlayoutHistoryPeer::clearInstancePool(); - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcFilesPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcFilesPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcFilesPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcFiles object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcFilesPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcFilesPeer::NUM_COLUMNS; - } else { - $cls = CcFilesPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcFilesPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related FkOwner table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinFkOwner(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcFilesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcFilesPeer::OWNER_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcSubjsRelatedByDbEditedby table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcSubjsRelatedByDbEditedby(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcFilesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcFilesPeer::EDITEDBY, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcMusicDirs table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcMusicDirs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcFilesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcFiles objects pre-filled with their CcSubjs objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcFiles objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinFkOwner(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcFilesPeer::addSelectColumns($criteria); - $startcol = (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - CcSubjsPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcFilesPeer::OWNER_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcFilesPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcFilesPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcFilesPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcFiles) to $obj2 (CcSubjs) - $obj2->addCcFilesRelatedByDbOwnerId($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcFiles objects pre-filled with their CcSubjs objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcFiles objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcSubjsRelatedByDbEditedby(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcFilesPeer::addSelectColumns($criteria); - $startcol = (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - CcSubjsPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcFilesPeer::EDITEDBY, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcFilesPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcFilesPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcFilesPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcFiles) to $obj2 (CcSubjs) - $obj2->addCcFilesRelatedByDbEditedby($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcFiles objects pre-filled with their CcMusicDirs objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcFiles objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcMusicDirs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcFilesPeer::addSelectColumns($criteria); - $startcol = (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - CcMusicDirsPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcFilesPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcFilesPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcFilesPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcMusicDirsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcMusicDirsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcMusicDirsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcMusicDirsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcFiles) to $obj2 (CcMusicDirs) - $obj2->addCcFiles($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcFilesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcFilesPeer::OWNER_ID, CcSubjsPeer::ID, $join_behavior); - - $criteria->addJoin(CcFilesPeer::EDITEDBY, CcSubjsPeer::ID, $join_behavior); - - $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcFiles objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcFiles objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcFilesPeer::addSelectColumns($criteria); - $startcol2 = (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcSubjsPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcSubjsPeer::NUM_COLUMNS - CcSubjsPeer::NUM_LAZY_LOAD_COLUMNS); - - CcSubjsPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcSubjsPeer::NUM_COLUMNS - CcSubjsPeer::NUM_LAZY_LOAD_COLUMNS); - - CcMusicDirsPeer::addSelectColumns($criteria); - $startcol5 = $startcol4 + (CcMusicDirsPeer::NUM_COLUMNS - CcMusicDirsPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcFilesPeer::OWNER_ID, CcSubjsPeer::ID, $join_behavior); - - $criteria->addJoin(CcFilesPeer::EDITEDBY, CcSubjsPeer::ID, $join_behavior); - - $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcFilesPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcFilesPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcFilesPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcSubjs rows - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcFiles) to the collection in $obj2 (CcSubjs) - $obj2->addCcFilesRelatedByDbOwnerId($obj1); - } // if joined row not null - - // Add objects for joined CcSubjs rows - - $key3 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcSubjsPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcSubjsPeer::addInstanceToPool($obj3, $key3); - } // if obj3 loaded - - // Add the $obj1 (CcFiles) to the collection in $obj3 (CcSubjs) - $obj3->addCcFilesRelatedByDbEditedby($obj1); - } // if joined row not null - - // Add objects for joined CcMusicDirs rows - - $key4 = CcMusicDirsPeer::getPrimaryKeyHashFromRow($row, $startcol4); - if ($key4 !== null) { - $obj4 = CcMusicDirsPeer::getInstanceFromPool($key4); - if (!$obj4) { - - $cls = CcMusicDirsPeer::getOMClass(false); - - $obj4 = new $cls(); - $obj4->hydrate($row, $startcol4); - CcMusicDirsPeer::addInstanceToPool($obj4, $key4); - } // if obj4 loaded - - // Add the $obj1 (CcFiles) to the collection in $obj4 (CcMusicDirs) - $obj4->addCcFiles($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining the related FkOwner table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptFkOwner(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcFilesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcSubjsRelatedByDbEditedby table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcSubjsRelatedByDbEditedby(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcFilesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcMusicDirs table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcMusicDirs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcFilesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcFilesPeer::OWNER_ID, CcSubjsPeer::ID, $join_behavior); - - $criteria->addJoin(CcFilesPeer::EDITEDBY, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcFiles objects pre-filled with all related objects except FkOwner. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcFiles objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptFkOwner(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcFilesPeer::addSelectColumns($criteria); - $startcol2 = (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcMusicDirsPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcMusicDirsPeer::NUM_COLUMNS - CcMusicDirsPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcFilesPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcFilesPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcFilesPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcMusicDirs rows - - $key2 = CcMusicDirsPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcMusicDirsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcMusicDirsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcMusicDirsPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcFiles) to the collection in $obj2 (CcMusicDirs) - $obj2->addCcFiles($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcFiles objects pre-filled with all related objects except CcSubjsRelatedByDbEditedby. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcFiles objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcSubjsRelatedByDbEditedby(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcFilesPeer::addSelectColumns($criteria); - $startcol2 = (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcMusicDirsPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcMusicDirsPeer::NUM_COLUMNS - CcMusicDirsPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcFilesPeer::DIRECTORY, CcMusicDirsPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcFilesPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcFilesPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcFilesPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcMusicDirs rows - - $key2 = CcMusicDirsPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcMusicDirsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcMusicDirsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcMusicDirsPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcFiles) to the collection in $obj2 (CcMusicDirs) - $obj2->addCcFiles($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcFiles objects pre-filled with all related objects except CcMusicDirs. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcFiles objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcMusicDirs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcFilesPeer::addSelectColumns($criteria); - $startcol2 = (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcSubjsPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcSubjsPeer::NUM_COLUMNS - CcSubjsPeer::NUM_LAZY_LOAD_COLUMNS); - - CcSubjsPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcSubjsPeer::NUM_COLUMNS - CcSubjsPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcFilesPeer::OWNER_ID, CcSubjsPeer::ID, $join_behavior); - - $criteria->addJoin(CcFilesPeer::EDITEDBY, CcSubjsPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcFilesPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcFilesPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcFilesPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcSubjs rows - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcFiles) to the collection in $obj2 (CcSubjs) - $obj2->addCcFilesRelatedByDbOwnerId($obj1); - - } // if joined row is not null - - // Add objects for joined CcSubjs rows - - $key3 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcSubjsPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcSubjsPeer::addInstanceToPool($obj3, $key3); - } // if $obj3 already loaded - - // Add the $obj1 (CcFiles) to the collection in $obj3 (CcSubjs) - $obj3->addCcFilesRelatedByDbEditedby($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcFilesPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcFilesPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcFilesTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcFilesPeer::CLASS_DEFAULT : CcFilesPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcFiles or Criteria object. - * - * @param mixed $values Criteria or CcFiles object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcFiles object - } - - if ($criteria->containsKey(CcFilesPeer::ID) && $criteria->keyContainsValue(CcFilesPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcFilesPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcFiles or Criteria object. - * - * @param mixed $values Criteria or CcFiles object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcFilesPeer::ID); - $value = $criteria->remove(CcFilesPeer::ID); - if ($value) { - $selectCriteria->add(CcFilesPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); - } - - } else { // $values is CcFiles object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_files table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcFilesPeer::TABLE_NAME, $con, CcFilesPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcFilesPeer::clearInstancePool(); - CcFilesPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcFiles or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcFiles object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcFilesPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcFiles) { // it's a model object - // invalidate the cache for this single object - CcFilesPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcFilesPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcFilesPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcFilesPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcFiles object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcFiles $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcFiles $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcFilesPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcFilesPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcFilesPeer::DATABASE_NAME, CcFilesPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcFiles - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcFilesPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcFilesPeer::DATABASE_NAME); - $criteria->add(CcFilesPeer::ID, $pk); - - $v = CcFilesPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcFilesPeer::DATABASE_NAME); - $criteria->add(CcFilesPeer::ID, $pks, Criteria::IN); - $objs = CcFilesPeer::doSelect($criteria, $con); - } - return $objs; - } + /** + * Selects a collection of CcFiles objects pre-filled with all related objects except CcMusicDirs. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcFiles objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcMusicDirs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + } + + CcFilesPeer::addSelectColumns($criteria); + $startcol2 = CcFilesPeer::NUM_HYDRATE_COLUMNS; + + CcSubjsPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcSubjsPeer::NUM_HYDRATE_COLUMNS; + + CcSubjsPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcSubjsPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcFilesPeer::OWNER_ID, CcSubjsPeer::ID, $join_behavior); + + $criteria->addJoin(CcFilesPeer::EDITEDBY, CcSubjsPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcFilesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcFilesPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcFilesPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcFilesPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcSubjs rows + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcFiles) to the collection in $obj2 (CcSubjs) + $obj2->addCcFilesRelatedByDbOwnerId($obj1); + + } // if joined row is not null + + // Add objects for joined CcSubjs rows + + $key3 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcSubjsPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcSubjsPeer::addInstanceToPool($obj3, $key3); + } // if $obj3 already loaded + + // Add the $obj1 (CcFiles) to the collection in $obj3 (CcSubjs) + $obj3->addCcFilesRelatedByDbEditedby($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcFilesPeer::DATABASE_NAME)->getTable(CcFilesPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcFilesPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcFilesPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcFilesTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcFilesPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcFiles or Criteria object. + * + * @param mixed $values Criteria or CcFiles object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcFiles object + } + + if ($criteria->containsKey(CcFilesPeer::ID) && $criteria->keyContainsValue(CcFilesPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcFilesPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcFiles or Criteria object. + * + * @param mixed $values Criteria or CcFiles object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcFilesPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcFilesPeer::ID); + $value = $criteria->remove(CcFilesPeer::ID); + if ($value) { + $selectCriteria->add(CcFilesPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcFilesPeer::TABLE_NAME); + } + + } else { // $values is CcFiles object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_files table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcFilesPeer::TABLE_NAME, $con, CcFilesPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcFilesPeer::clearInstancePool(); + CcFilesPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcFiles or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcFiles object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcFilesPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcFiles) { // it's a model object + // invalidate the cache for this single object + CcFilesPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcFilesPeer::DATABASE_NAME); + $criteria->add(CcFilesPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcFilesPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcFilesPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcFilesPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcFiles object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcFiles $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcFilesPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcFilesPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcFilesPeer::DATABASE_NAME, CcFilesPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcFiles + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcFilesPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcFilesPeer::DATABASE_NAME); + $criteria->add(CcFilesPeer::ID, $pk); + + $v = CcFilesPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcFiles[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcFilesPeer::DATABASE_NAME); + $criteria->add(CcFilesPeer::ID, $pks, Criteria::IN); + $objs = CcFilesPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcFilesPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcFilesQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcFilesQuery.php index 50a21a3327..e0f83b6808 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcFilesQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcFilesQuery.php @@ -4,2619 +4,3479 @@ /** * Base class that represents a query for the 'cc_files' table. * - * * - * @method CcFilesQuery orderByDbId($order = Criteria::ASC) Order by the id 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 - * @method CcFilesQuery orderByDbDirectory($order = Criteria::ASC) Order by the directory column - * @method CcFilesQuery orderByDbFilepath($order = Criteria::ASC) Order by the filepath column - * @method CcFilesQuery orderByDbState($order = Criteria::ASC) Order by the state column - * @method CcFilesQuery orderByDbCurrentlyaccessing($order = Criteria::ASC) Order by the currentlyaccessing column - * @method CcFilesQuery orderByDbEditedby($order = Criteria::ASC) Order by the editedby column - * @method CcFilesQuery orderByDbMtime($order = Criteria::ASC) Order by the mtime column - * @method CcFilesQuery orderByDbUtime($order = Criteria::ASC) Order by the utime column - * @method CcFilesQuery orderByDbLPtime($order = Criteria::ASC) Order by the lptime column - * @method CcFilesQuery orderByDbMd5($order = Criteria::ASC) Order by the md5 column - * @method CcFilesQuery orderByDbTrackTitle($order = Criteria::ASC) Order by the track_title column - * @method CcFilesQuery orderByDbArtistName($order = Criteria::ASC) Order by the artist_name column - * @method CcFilesQuery orderByDbBitRate($order = Criteria::ASC) Order by the bit_rate column - * @method CcFilesQuery orderByDbSampleRate($order = Criteria::ASC) Order by the sample_rate column - * @method CcFilesQuery orderByDbFormat($order = Criteria::ASC) Order by the format column - * @method CcFilesQuery orderByDbLength($order = Criteria::ASC) Order by the length column - * @method CcFilesQuery orderByDbAlbumTitle($order = Criteria::ASC) Order by the album_title column - * @method CcFilesQuery orderByDbGenre($order = Criteria::ASC) Order by the genre column - * @method CcFilesQuery orderByDbComments($order = Criteria::ASC) Order by the comments column - * @method CcFilesQuery orderByDbYear($order = Criteria::ASC) Order by the year column - * @method CcFilesQuery orderByDbTrackNumber($order = Criteria::ASC) Order by the track_number column - * @method CcFilesQuery orderByDbChannels($order = Criteria::ASC) Order by the channels column - * @method CcFilesQuery orderByDbUrl($order = Criteria::ASC) Order by the url column - * @method CcFilesQuery orderByDbBpm($order = Criteria::ASC) Order by the bpm column - * @method CcFilesQuery orderByDbRating($order = Criteria::ASC) Order by the rating column - * @method CcFilesQuery orderByDbEncodedBy($order = Criteria::ASC) Order by the encoded_by column - * @method CcFilesQuery orderByDbDiscNumber($order = Criteria::ASC) Order by the disc_number column - * @method CcFilesQuery orderByDbMood($order = Criteria::ASC) Order by the mood column - * @method CcFilesQuery orderByDbLabel($order = Criteria::ASC) Order by the label column - * @method CcFilesQuery orderByDbComposer($order = Criteria::ASC) Order by the composer column - * @method CcFilesQuery orderByDbEncoder($order = Criteria::ASC) Order by the encoder column - * @method CcFilesQuery orderByDbChecksum($order = Criteria::ASC) Order by the checksum column - * @method CcFilesQuery orderByDbLyrics($order = Criteria::ASC) Order by the lyrics column - * @method CcFilesQuery orderByDbOrchestra($order = Criteria::ASC) Order by the orchestra column - * @method CcFilesQuery orderByDbConductor($order = Criteria::ASC) Order by the conductor column - * @method CcFilesQuery orderByDbLyricist($order = Criteria::ASC) Order by the lyricist column - * @method CcFilesQuery orderByDbOriginalLyricist($order = Criteria::ASC) Order by the original_lyricist column - * @method CcFilesQuery orderByDbRadioStationName($order = Criteria::ASC) Order by the radio_station_name column - * @method CcFilesQuery orderByDbInfoUrl($order = Criteria::ASC) Order by the info_url column - * @method CcFilesQuery orderByDbArtistUrl($order = Criteria::ASC) Order by the artist_url column - * @method CcFilesQuery orderByDbAudioSourceUrl($order = Criteria::ASC) Order by the audio_source_url column - * @method CcFilesQuery orderByDbRadioStationUrl($order = Criteria::ASC) Order by the radio_station_url column - * @method CcFilesQuery orderByDbBuyThisUrl($order = Criteria::ASC) Order by the buy_this_url column - * @method CcFilesQuery orderByDbIsrcNumber($order = Criteria::ASC) Order by the isrc_number column - * @method CcFilesQuery orderByDbCatalogNumber($order = Criteria::ASC) Order by the catalog_number column - * @method CcFilesQuery orderByDbOriginalArtist($order = Criteria::ASC) Order by the original_artist column - * @method CcFilesQuery orderByDbCopyright($order = Criteria::ASC) Order by the copyright column - * @method CcFilesQuery orderByDbReportDatetime($order = Criteria::ASC) Order by the report_datetime column - * @method CcFilesQuery orderByDbReportLocation($order = Criteria::ASC) Order by the report_location column - * @method CcFilesQuery orderByDbReportOrganization($order = Criteria::ASC) Order by the report_organization 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 orderByDbLanguage($order = Criteria::ASC) Order by the language column - * @method CcFilesQuery orderByDbFileExists($order = Criteria::ASC) Order by the file_exists 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 orderByDbSoundcloudErrorMsg($order = Criteria::ASC) Order by the soundcloud_error_msg column - * @method CcFilesQuery orderByDbSoundcloudLinkToFile($order = Criteria::ASC) Order by the soundcloud_link_to_file column - * @method CcFilesQuery orderByDbSoundCloundUploadTime($order = Criteria::ASC) Order by the soundcloud_upload_time column - * @method CcFilesQuery orderByDbReplayGain($order = Criteria::ASC) Order by the replay_gain column - * @method CcFilesQuery orderByDbOwnerId($order = Criteria::ASC) Order by the owner_id column - * @method CcFilesQuery orderByDbCuein($order = Criteria::ASC) Order by the cuein column - * @method CcFilesQuery orderByDbCueout($order = Criteria::ASC) Order by the cueout column - * @method CcFilesQuery orderByDbSilanCheck($order = Criteria::ASC) Order by the silan_check column - * @method CcFilesQuery orderByDbHidden($order = Criteria::ASC) Order by the hidden column - * @method CcFilesQuery orderByDbIsScheduled($order = Criteria::ASC) Order by the is_scheduled column - * @method CcFilesQuery orderByDbIsPlaylist($order = Criteria::ASC) Order by the is_playlist column * - * @method CcFilesQuery groupByDbId() Group by the id 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 - * @method CcFilesQuery groupByDbDirectory() Group by the directory column - * @method CcFilesQuery groupByDbFilepath() Group by the filepath column - * @method CcFilesQuery groupByDbState() Group by the state column - * @method CcFilesQuery groupByDbCurrentlyaccessing() Group by the currentlyaccessing column - * @method CcFilesQuery groupByDbEditedby() Group by the editedby column - * @method CcFilesQuery groupByDbMtime() Group by the mtime column - * @method CcFilesQuery groupByDbUtime() Group by the utime column - * @method CcFilesQuery groupByDbLPtime() Group by the lptime column - * @method CcFilesQuery groupByDbMd5() Group by the md5 column - * @method CcFilesQuery groupByDbTrackTitle() Group by the track_title column - * @method CcFilesQuery groupByDbArtistName() Group by the artist_name column - * @method CcFilesQuery groupByDbBitRate() Group by the bit_rate column - * @method CcFilesQuery groupByDbSampleRate() Group by the sample_rate column - * @method CcFilesQuery groupByDbFormat() Group by the format column - * @method CcFilesQuery groupByDbLength() Group by the length column - * @method CcFilesQuery groupByDbAlbumTitle() Group by the album_title column - * @method CcFilesQuery groupByDbGenre() Group by the genre column - * @method CcFilesQuery groupByDbComments() Group by the comments column - * @method CcFilesQuery groupByDbYear() Group by the year column - * @method CcFilesQuery groupByDbTrackNumber() Group by the track_number column - * @method CcFilesQuery groupByDbChannels() Group by the channels column - * @method CcFilesQuery groupByDbUrl() Group by the url column - * @method CcFilesQuery groupByDbBpm() Group by the bpm column - * @method CcFilesQuery groupByDbRating() Group by the rating column - * @method CcFilesQuery groupByDbEncodedBy() Group by the encoded_by column - * @method CcFilesQuery groupByDbDiscNumber() Group by the disc_number column - * @method CcFilesQuery groupByDbMood() Group by the mood column - * @method CcFilesQuery groupByDbLabel() Group by the label column - * @method CcFilesQuery groupByDbComposer() Group by the composer column - * @method CcFilesQuery groupByDbEncoder() Group by the encoder column - * @method CcFilesQuery groupByDbChecksum() Group by the checksum column - * @method CcFilesQuery groupByDbLyrics() Group by the lyrics column - * @method CcFilesQuery groupByDbOrchestra() Group by the orchestra column - * @method CcFilesQuery groupByDbConductor() Group by the conductor column - * @method CcFilesQuery groupByDbLyricist() Group by the lyricist column - * @method CcFilesQuery groupByDbOriginalLyricist() Group by the original_lyricist column - * @method CcFilesQuery groupByDbRadioStationName() Group by the radio_station_name column - * @method CcFilesQuery groupByDbInfoUrl() Group by the info_url column - * @method CcFilesQuery groupByDbArtistUrl() Group by the artist_url column - * @method CcFilesQuery groupByDbAudioSourceUrl() Group by the audio_source_url column - * @method CcFilesQuery groupByDbRadioStationUrl() Group by the radio_station_url column - * @method CcFilesQuery groupByDbBuyThisUrl() Group by the buy_this_url column - * @method CcFilesQuery groupByDbIsrcNumber() Group by the isrc_number column - * @method CcFilesQuery groupByDbCatalogNumber() Group by the catalog_number column - * @method CcFilesQuery groupByDbOriginalArtist() Group by the original_artist column - * @method CcFilesQuery groupByDbCopyright() Group by the copyright column - * @method CcFilesQuery groupByDbReportDatetime() Group by the report_datetime column - * @method CcFilesQuery groupByDbReportLocation() Group by the report_location column - * @method CcFilesQuery groupByDbReportOrganization() Group by the report_organization column - * @method CcFilesQuery groupByDbSubject() Group by the subject column - * @method CcFilesQuery groupByDbContributor() Group by the contributor column - * @method CcFilesQuery groupByDbLanguage() Group by the language column - * @method CcFilesQuery groupByDbFileExists() Group by the file_exists column - * @method CcFilesQuery groupByDbSoundcloudId() Group by the soundcloud_id column - * @method CcFilesQuery groupByDbSoundcloudErrorCode() Group by the soundcloud_error_code column - * @method CcFilesQuery groupByDbSoundcloudErrorMsg() Group by the soundcloud_error_msg column - * @method CcFilesQuery groupByDbSoundcloudLinkToFile() Group by the soundcloud_link_to_file column - * @method CcFilesQuery groupByDbSoundCloundUploadTime() Group by the soundcloud_upload_time column - * @method CcFilesQuery groupByDbReplayGain() Group by the replay_gain column - * @method CcFilesQuery groupByDbOwnerId() Group by the owner_id column - * @method CcFilesQuery groupByDbCuein() Group by the cuein column - * @method CcFilesQuery groupByDbCueout() Group by the cueout column - * @method CcFilesQuery groupByDbSilanCheck() Group by the silan_check column - * @method CcFilesQuery groupByDbHidden() Group by the hidden column - * @method CcFilesQuery groupByDbIsScheduled() Group by the is_scheduled column - * @method CcFilesQuery groupByDbIsPlaylist() Group by the is_playlist column + * @method CcFilesQuery orderByDbId($order = Criteria::ASC) Order by the id 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 + * @method CcFilesQuery orderByDbDirectory($order = Criteria::ASC) Order by the directory column + * @method CcFilesQuery orderByDbFilepath($order = Criteria::ASC) Order by the filepath column + * @method CcFilesQuery orderByDbImportStatus($order = Criteria::ASC) Order by the import_status column + * @method CcFilesQuery orderByDbCurrentlyaccessing($order = Criteria::ASC) Order by the currentlyaccessing column + * @method CcFilesQuery orderByDbEditedby($order = Criteria::ASC) Order by the editedby column + * @method CcFilesQuery orderByDbMtime($order = Criteria::ASC) Order by the mtime column + * @method CcFilesQuery orderByDbUtime($order = Criteria::ASC) Order by the utime column + * @method CcFilesQuery orderByDbLPtime($order = Criteria::ASC) Order by the lptime column + * @method CcFilesQuery orderByDbMd5($order = Criteria::ASC) Order by the md5 column + * @method CcFilesQuery orderByDbTrackTitle($order = Criteria::ASC) Order by the track_title column + * @method CcFilesQuery orderByDbArtistName($order = Criteria::ASC) Order by the artist_name column + * @method CcFilesQuery orderByDbBitRate($order = Criteria::ASC) Order by the bit_rate column + * @method CcFilesQuery orderByDbSampleRate($order = Criteria::ASC) Order by the sample_rate column + * @method CcFilesQuery orderByDbFormat($order = Criteria::ASC) Order by the format column + * @method CcFilesQuery orderByDbLength($order = Criteria::ASC) Order by the length column + * @method CcFilesQuery orderByDbAlbumTitle($order = Criteria::ASC) Order by the album_title column + * @method CcFilesQuery orderByDbGenre($order = Criteria::ASC) Order by the genre column + * @method CcFilesQuery orderByDbComments($order = Criteria::ASC) Order by the comments column + * @method CcFilesQuery orderByDbYear($order = Criteria::ASC) Order by the year column + * @method CcFilesQuery orderByDbTrackNumber($order = Criteria::ASC) Order by the track_number column + * @method CcFilesQuery orderByDbChannels($order = Criteria::ASC) Order by the channels column + * @method CcFilesQuery orderByDbUrl($order = Criteria::ASC) Order by the url column + * @method CcFilesQuery orderByDbBpm($order = Criteria::ASC) Order by the bpm column + * @method CcFilesQuery orderByDbRating($order = Criteria::ASC) Order by the rating column + * @method CcFilesQuery orderByDbEncodedBy($order = Criteria::ASC) Order by the encoded_by column + * @method CcFilesQuery orderByDbDiscNumber($order = Criteria::ASC) Order by the disc_number column + * @method CcFilesQuery orderByDbMood($order = Criteria::ASC) Order by the mood column + * @method CcFilesQuery orderByDbLabel($order = Criteria::ASC) Order by the label column + * @method CcFilesQuery orderByDbComposer($order = Criteria::ASC) Order by the composer column + * @method CcFilesQuery orderByDbEncoder($order = Criteria::ASC) Order by the encoder column + * @method CcFilesQuery orderByDbChecksum($order = Criteria::ASC) Order by the checksum column + * @method CcFilesQuery orderByDbLyrics($order = Criteria::ASC) Order by the lyrics column + * @method CcFilesQuery orderByDbOrchestra($order = Criteria::ASC) Order by the orchestra column + * @method CcFilesQuery orderByDbConductor($order = Criteria::ASC) Order by the conductor column + * @method CcFilesQuery orderByDbLyricist($order = Criteria::ASC) Order by the lyricist column + * @method CcFilesQuery orderByDbOriginalLyricist($order = Criteria::ASC) Order by the original_lyricist column + * @method CcFilesQuery orderByDbRadioStationName($order = Criteria::ASC) Order by the radio_station_name column + * @method CcFilesQuery orderByDbInfoUrl($order = Criteria::ASC) Order by the info_url column + * @method CcFilesQuery orderByDbArtistUrl($order = Criteria::ASC) Order by the artist_url column + * @method CcFilesQuery orderByDbAudioSourceUrl($order = Criteria::ASC) Order by the audio_source_url column + * @method CcFilesQuery orderByDbRadioStationUrl($order = Criteria::ASC) Order by the radio_station_url column + * @method CcFilesQuery orderByDbBuyThisUrl($order = Criteria::ASC) Order by the buy_this_url column + * @method CcFilesQuery orderByDbIsrcNumber($order = Criteria::ASC) Order by the isrc_number column + * @method CcFilesQuery orderByDbCatalogNumber($order = Criteria::ASC) Order by the catalog_number column + * @method CcFilesQuery orderByDbOriginalArtist($order = Criteria::ASC) Order by the original_artist column + * @method CcFilesQuery orderByDbCopyright($order = Criteria::ASC) Order by the copyright column + * @method CcFilesQuery orderByDbReportDatetime($order = Criteria::ASC) Order by the report_datetime column + * @method CcFilesQuery orderByDbReportLocation($order = Criteria::ASC) Order by the report_location column + * @method CcFilesQuery orderByDbReportOrganization($order = Criteria::ASC) Order by the report_organization 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 orderByDbLanguage($order = Criteria::ASC) Order by the language column + * @method CcFilesQuery orderByDbFileExists($order = Criteria::ASC) Order by the file_exists 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 orderByDbSoundcloudErrorMsg($order = Criteria::ASC) Order by the soundcloud_error_msg column + * @method CcFilesQuery orderByDbSoundcloudLinkToFile($order = Criteria::ASC) Order by the soundcloud_link_to_file column + * @method CcFilesQuery orderByDbSoundCloundUploadTime($order = Criteria::ASC) Order by the soundcloud_upload_time column + * @method CcFilesQuery orderByDbReplayGain($order = Criteria::ASC) Order by the replay_gain column + * @method CcFilesQuery orderByDbOwnerId($order = Criteria::ASC) Order by the owner_id column + * @method CcFilesQuery orderByDbCuein($order = Criteria::ASC) Order by the cuein column + * @method CcFilesQuery orderByDbCueout($order = Criteria::ASC) Order by the cueout column + * @method CcFilesQuery orderByDbSilanCheck($order = Criteria::ASC) Order by the silan_check column + * @method CcFilesQuery orderByDbHidden($order = Criteria::ASC) Order by the hidden column + * @method CcFilesQuery orderByDbIsScheduled($order = Criteria::ASC) Order by the is_scheduled column + * @method CcFilesQuery orderByDbIsPlaylist($order = Criteria::ASC) Order by the is_playlist column * - * @method CcFilesQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcFilesQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcFilesQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcFilesQuery groupByDbId() Group by the id 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 + * @method CcFilesQuery groupByDbDirectory() Group by the directory column + * @method CcFilesQuery groupByDbFilepath() Group by the filepath column + * @method CcFilesQuery groupByDbImportStatus() Group by the import_status column + * @method CcFilesQuery groupByDbCurrentlyaccessing() Group by the currentlyaccessing column + * @method CcFilesQuery groupByDbEditedby() Group by the editedby column + * @method CcFilesQuery groupByDbMtime() Group by the mtime column + * @method CcFilesQuery groupByDbUtime() Group by the utime column + * @method CcFilesQuery groupByDbLPtime() Group by the lptime column + * @method CcFilesQuery groupByDbMd5() Group by the md5 column + * @method CcFilesQuery groupByDbTrackTitle() Group by the track_title column + * @method CcFilesQuery groupByDbArtistName() Group by the artist_name column + * @method CcFilesQuery groupByDbBitRate() Group by the bit_rate column + * @method CcFilesQuery groupByDbSampleRate() Group by the sample_rate column + * @method CcFilesQuery groupByDbFormat() Group by the format column + * @method CcFilesQuery groupByDbLength() Group by the length column + * @method CcFilesQuery groupByDbAlbumTitle() Group by the album_title column + * @method CcFilesQuery groupByDbGenre() Group by the genre column + * @method CcFilesQuery groupByDbComments() Group by the comments column + * @method CcFilesQuery groupByDbYear() Group by the year column + * @method CcFilesQuery groupByDbTrackNumber() Group by the track_number column + * @method CcFilesQuery groupByDbChannels() Group by the channels column + * @method CcFilesQuery groupByDbUrl() Group by the url column + * @method CcFilesQuery groupByDbBpm() Group by the bpm column + * @method CcFilesQuery groupByDbRating() Group by the rating column + * @method CcFilesQuery groupByDbEncodedBy() Group by the encoded_by column + * @method CcFilesQuery groupByDbDiscNumber() Group by the disc_number column + * @method CcFilesQuery groupByDbMood() Group by the mood column + * @method CcFilesQuery groupByDbLabel() Group by the label column + * @method CcFilesQuery groupByDbComposer() Group by the composer column + * @method CcFilesQuery groupByDbEncoder() Group by the encoder column + * @method CcFilesQuery groupByDbChecksum() Group by the checksum column + * @method CcFilesQuery groupByDbLyrics() Group by the lyrics column + * @method CcFilesQuery groupByDbOrchestra() Group by the orchestra column + * @method CcFilesQuery groupByDbConductor() Group by the conductor column + * @method CcFilesQuery groupByDbLyricist() Group by the lyricist column + * @method CcFilesQuery groupByDbOriginalLyricist() Group by the original_lyricist column + * @method CcFilesQuery groupByDbRadioStationName() Group by the radio_station_name column + * @method CcFilesQuery groupByDbInfoUrl() Group by the info_url column + * @method CcFilesQuery groupByDbArtistUrl() Group by the artist_url column + * @method CcFilesQuery groupByDbAudioSourceUrl() Group by the audio_source_url column + * @method CcFilesQuery groupByDbRadioStationUrl() Group by the radio_station_url column + * @method CcFilesQuery groupByDbBuyThisUrl() Group by the buy_this_url column + * @method CcFilesQuery groupByDbIsrcNumber() Group by the isrc_number column + * @method CcFilesQuery groupByDbCatalogNumber() Group by the catalog_number column + * @method CcFilesQuery groupByDbOriginalArtist() Group by the original_artist column + * @method CcFilesQuery groupByDbCopyright() Group by the copyright column + * @method CcFilesQuery groupByDbReportDatetime() Group by the report_datetime column + * @method CcFilesQuery groupByDbReportLocation() Group by the report_location column + * @method CcFilesQuery groupByDbReportOrganization() Group by the report_organization column + * @method CcFilesQuery groupByDbSubject() Group by the subject column + * @method CcFilesQuery groupByDbContributor() Group by the contributor column + * @method CcFilesQuery groupByDbLanguage() Group by the language column + * @method CcFilesQuery groupByDbFileExists() Group by the file_exists column + * @method CcFilesQuery groupByDbSoundcloudId() Group by the soundcloud_id column + * @method CcFilesQuery groupByDbSoundcloudErrorCode() Group by the soundcloud_error_code column + * @method CcFilesQuery groupByDbSoundcloudErrorMsg() Group by the soundcloud_error_msg column + * @method CcFilesQuery groupByDbSoundcloudLinkToFile() Group by the soundcloud_link_to_file column + * @method CcFilesQuery groupByDbSoundCloundUploadTime() Group by the soundcloud_upload_time column + * @method CcFilesQuery groupByDbReplayGain() Group by the replay_gain column + * @method CcFilesQuery groupByDbOwnerId() Group by the owner_id column + * @method CcFilesQuery groupByDbCuein() Group by the cuein column + * @method CcFilesQuery groupByDbCueout() Group by the cueout column + * @method CcFilesQuery groupByDbSilanCheck() Group by the silan_check column + * @method CcFilesQuery groupByDbHidden() Group by the hidden column + * @method CcFilesQuery groupByDbIsScheduled() Group by the is_scheduled column + * @method CcFilesQuery groupByDbIsPlaylist() Group by the is_playlist column * - * @method CcFilesQuery leftJoinFkOwner($relationAlias = '') Adds a LEFT JOIN clause to the query using the FkOwner relation - * @method CcFilesQuery rightJoinFkOwner($relationAlias = '') Adds a RIGHT JOIN clause to the query using the FkOwner relation - * @method CcFilesQuery innerJoinFkOwner($relationAlias = '') Adds a INNER JOIN clause to the query using the FkOwner relation + * @method CcFilesQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcFilesQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcFilesQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcFilesQuery leftJoinCcSubjsRelatedByDbEditedby($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSubjsRelatedByDbEditedby relation - * @method CcFilesQuery rightJoinCcSubjsRelatedByDbEditedby($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSubjsRelatedByDbEditedby relation - * @method CcFilesQuery innerJoinCcSubjsRelatedByDbEditedby($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSubjsRelatedByDbEditedby relation + * @method CcFilesQuery leftJoinFkOwner($relationAlias = null) Adds a LEFT JOIN clause to the query using the FkOwner relation + * @method CcFilesQuery rightJoinFkOwner($relationAlias = null) Adds a RIGHT JOIN clause to the query using the FkOwner relation + * @method CcFilesQuery innerJoinFkOwner($relationAlias = null) Adds a INNER JOIN clause to the query using the FkOwner relation * - * @method CcFilesQuery leftJoinCcMusicDirs($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcMusicDirs relation - * @method CcFilesQuery rightJoinCcMusicDirs($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcMusicDirs relation - * @method CcFilesQuery innerJoinCcMusicDirs($relationAlias = '') Adds a INNER JOIN clause to the query using the CcMusicDirs relation + * @method CcFilesQuery leftJoinCcSubjsRelatedByDbEditedby($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSubjsRelatedByDbEditedby relation + * @method CcFilesQuery rightJoinCcSubjsRelatedByDbEditedby($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSubjsRelatedByDbEditedby relation + * @method CcFilesQuery innerJoinCcSubjsRelatedByDbEditedby($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSubjsRelatedByDbEditedby relation * - * @method CcFilesQuery leftJoinCcShowInstances($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShowInstances relation - * @method CcFilesQuery rightJoinCcShowInstances($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShowInstances relation - * @method CcFilesQuery innerJoinCcShowInstances($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShowInstances relation + * @method CcFilesQuery leftJoinCcMusicDirs($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcMusicDirs relation + * @method CcFilesQuery rightJoinCcMusicDirs($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcMusicDirs relation + * @method CcFilesQuery innerJoinCcMusicDirs($relationAlias = null) Adds a INNER JOIN clause to the query using the CcMusicDirs relation * - * @method CcFilesQuery leftJoinCcPlaylistcontents($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPlaylistcontents relation - * @method CcFilesQuery rightJoinCcPlaylistcontents($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPlaylistcontents relation - * @method CcFilesQuery innerJoinCcPlaylistcontents($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPlaylistcontents relation + * @method CcFilesQuery leftJoinCloudFile($relationAlias = null) Adds a LEFT JOIN clause to the query using the CloudFile relation + * @method CcFilesQuery rightJoinCloudFile($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CloudFile relation + * @method CcFilesQuery innerJoinCloudFile($relationAlias = null) Adds a INNER JOIN clause to the query using the CloudFile relation * - * @method CcFilesQuery leftJoinCcBlockcontents($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcBlockcontents relation - * @method CcFilesQuery rightJoinCcBlockcontents($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcBlockcontents relation - * @method CcFilesQuery innerJoinCcBlockcontents($relationAlias = '') Adds a INNER JOIN clause to the query using the CcBlockcontents relation + * @method CcFilesQuery leftJoinCcShowInstances($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcShowInstances relation + * @method CcFilesQuery rightJoinCcShowInstances($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcShowInstances relation + * @method CcFilesQuery innerJoinCcShowInstances($relationAlias = null) Adds a INNER JOIN clause to the query using the CcShowInstances relation * - * @method CcFilesQuery leftJoinCcSchedule($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSchedule relation - * @method CcFilesQuery rightJoinCcSchedule($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSchedule relation - * @method CcFilesQuery innerJoinCcSchedule($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSchedule relation + * @method CcFilesQuery leftJoinCcPlaylistcontents($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcPlaylistcontents relation + * @method CcFilesQuery rightJoinCcPlaylistcontents($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcPlaylistcontents relation + * @method CcFilesQuery innerJoinCcPlaylistcontents($relationAlias = null) Adds a INNER JOIN clause to the query using the CcPlaylistcontents relation * - * @method CcFilesQuery leftJoinCcPlayoutHistory($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPlayoutHistory relation - * @method CcFilesQuery rightJoinCcPlayoutHistory($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPlayoutHistory relation - * @method CcFilesQuery innerJoinCcPlayoutHistory($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPlayoutHistory relation + * @method CcFilesQuery leftJoinCcBlockcontents($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcBlockcontents relation + * @method CcFilesQuery rightJoinCcBlockcontents($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcBlockcontents relation + * @method CcFilesQuery innerJoinCcBlockcontents($relationAlias = null) Adds a INNER JOIN clause to the query using the CcBlockcontents relation * - * @method CcFiles findOne(PropelPDO $con = null) Return the first CcFiles matching the query - * @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 CcFilesQuery leftJoinCcSchedule($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSchedule relation + * @method CcFilesQuery rightJoinCcSchedule($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSchedule relation + * @method CcFilesQuery innerJoinCcSchedule($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSchedule relation * - * @method CcFiles findOneByDbId(int $id) Return the first CcFiles filtered by the id 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 - * @method CcFiles findOneByDbDirectory(int $directory) Return the first CcFiles filtered by the directory column - * @method CcFiles findOneByDbFilepath(string $filepath) Return the first CcFiles filtered by the filepath column - * @method CcFiles findOneByDbState(string $state) Return the first CcFiles filtered by the state column - * @method CcFiles findOneByDbCurrentlyaccessing(int $currentlyaccessing) Return the first CcFiles filtered by the currentlyaccessing column - * @method CcFiles findOneByDbEditedby(int $editedby) Return the first CcFiles filtered by the editedby column - * @method CcFiles findOneByDbMtime(string $mtime) Return the first CcFiles filtered by the mtime column - * @method CcFiles findOneByDbUtime(string $utime) Return the first CcFiles filtered by the utime column - * @method CcFiles findOneByDbLPtime(string $lptime) Return the first CcFiles filtered by the lptime column - * @method CcFiles findOneByDbMd5(string $md5) Return the first CcFiles filtered by the md5 column - * @method CcFiles findOneByDbTrackTitle(string $track_title) Return the first CcFiles filtered by the track_title column - * @method CcFiles findOneByDbArtistName(string $artist_name) Return the first CcFiles filtered by the artist_name column - * @method CcFiles findOneByDbBitRate(int $bit_rate) Return the first CcFiles filtered by the bit_rate column - * @method CcFiles findOneByDbSampleRate(int $sample_rate) Return the first CcFiles filtered by the sample_rate column - * @method CcFiles findOneByDbFormat(string $format) Return the first CcFiles filtered by the format column - * @method CcFiles findOneByDbLength(string $length) Return the first CcFiles filtered by the length column - * @method CcFiles findOneByDbAlbumTitle(string $album_title) Return the first CcFiles filtered by the album_title column - * @method CcFiles findOneByDbGenre(string $genre) Return the first CcFiles filtered by the genre column - * @method CcFiles findOneByDbComments(string $comments) Return the first CcFiles filtered by the comments column - * @method CcFiles findOneByDbYear(string $year) Return the first CcFiles filtered by the year column - * @method CcFiles findOneByDbTrackNumber(int $track_number) Return the first CcFiles filtered by the track_number column - * @method CcFiles findOneByDbChannels(int $channels) Return the first CcFiles filtered by the channels column - * @method CcFiles findOneByDbUrl(string $url) Return the first CcFiles filtered by the url column - * @method CcFiles findOneByDbBpm(int $bpm) Return the first CcFiles filtered by the bpm column - * @method CcFiles findOneByDbRating(string $rating) Return the first CcFiles filtered by the rating column - * @method CcFiles findOneByDbEncodedBy(string $encoded_by) Return the first CcFiles filtered by the encoded_by column - * @method CcFiles findOneByDbDiscNumber(string $disc_number) Return the first CcFiles filtered by the disc_number column - * @method CcFiles findOneByDbMood(string $mood) Return the first CcFiles filtered by the mood column - * @method CcFiles findOneByDbLabel(string $label) Return the first CcFiles filtered by the label column - * @method CcFiles findOneByDbComposer(string $composer) Return the first CcFiles filtered by the composer column - * @method CcFiles findOneByDbEncoder(string $encoder) Return the first CcFiles filtered by the encoder column - * @method CcFiles findOneByDbChecksum(string $checksum) Return the first CcFiles filtered by the checksum column - * @method CcFiles findOneByDbLyrics(string $lyrics) Return the first CcFiles filtered by the lyrics column - * @method CcFiles findOneByDbOrchestra(string $orchestra) Return the first CcFiles filtered by the orchestra column - * @method CcFiles findOneByDbConductor(string $conductor) Return the first CcFiles filtered by the conductor column - * @method CcFiles findOneByDbLyricist(string $lyricist) Return the first CcFiles filtered by the lyricist column - * @method CcFiles findOneByDbOriginalLyricist(string $original_lyricist) Return the first CcFiles filtered by the original_lyricist column - * @method CcFiles findOneByDbRadioStationName(string $radio_station_name) Return the first CcFiles filtered by the radio_station_name column - * @method CcFiles findOneByDbInfoUrl(string $info_url) Return the first CcFiles filtered by the info_url column - * @method CcFiles findOneByDbArtistUrl(string $artist_url) Return the first CcFiles filtered by the artist_url column - * @method CcFiles findOneByDbAudioSourceUrl(string $audio_source_url) Return the first CcFiles filtered by the audio_source_url column - * @method CcFiles findOneByDbRadioStationUrl(string $radio_station_url) Return the first CcFiles filtered by the radio_station_url column - * @method CcFiles findOneByDbBuyThisUrl(string $buy_this_url) Return the first CcFiles filtered by the buy_this_url column - * @method CcFiles findOneByDbIsrcNumber(string $isrc_number) Return the first CcFiles filtered by the isrc_number column - * @method CcFiles findOneByDbCatalogNumber(string $catalog_number) Return the first CcFiles filtered by the catalog_number column - * @method CcFiles findOneByDbOriginalArtist(string $original_artist) Return the first CcFiles filtered by the original_artist column - * @method CcFiles findOneByDbCopyright(string $copyright) Return the first CcFiles filtered by the copyright column - * @method CcFiles findOneByDbReportDatetime(string $report_datetime) Return the first CcFiles filtered by the report_datetime column - * @method CcFiles findOneByDbReportLocation(string $report_location) Return the first CcFiles filtered by the report_location column - * @method CcFiles findOneByDbReportOrganization(string $report_organization) Return the first CcFiles filtered by the report_organization 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 findOneByDbLanguage(string $language) Return the first CcFiles filtered by the language column - * @method CcFiles findOneByDbFileExists(boolean $file_exists) Return the first CcFiles filtered by the file_exists 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 findOneByDbSoundcloudErrorMsg(string $soundcloud_error_msg) Return the first CcFiles filtered by the soundcloud_error_msg column - * @method CcFiles findOneByDbSoundcloudLinkToFile(string $soundcloud_link_to_file) Return the first CcFiles filtered by the soundcloud_link_to_file column - * @method CcFiles findOneByDbSoundCloundUploadTime(string $soundcloud_upload_time) Return the first CcFiles filtered by the soundcloud_upload_time column - * @method CcFiles findOneByDbReplayGain(string $replay_gain) Return the first CcFiles filtered by the replay_gain column - * @method CcFiles findOneByDbOwnerId(int $owner_id) Return the first CcFiles filtered by the owner_id column - * @method CcFiles findOneByDbCuein(string $cuein) Return the first CcFiles filtered by the cuein column - * @method CcFiles findOneByDbCueout(string $cueout) Return the first CcFiles filtered by the cueout column - * @method CcFiles findOneByDbSilanCheck(boolean $silan_check) Return the first CcFiles filtered by the silan_check column - * @method CcFiles findOneByDbHidden(boolean $hidden) Return the first CcFiles filtered by the hidden column - * @method CcFiles findOneByDbIsScheduled(boolean $is_scheduled) Return the first CcFiles filtered by the is_scheduled column - * @method CcFiles findOneByDbIsPlaylist(boolean $is_playlist) Return the first CcFiles filtered by the is_playlist column + * @method CcFilesQuery leftJoinCcPlayoutHistory($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcPlayoutHistory relation + * @method CcFilesQuery rightJoinCcPlayoutHistory($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcPlayoutHistory relation + * @method CcFilesQuery innerJoinCcPlayoutHistory($relationAlias = null) Adds a INNER JOIN clause to the query using the CcPlayoutHistory relation * - * @method array findByDbId(int $id) Return CcFiles objects filtered by the id 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 - * @method array findByDbDirectory(int $directory) Return CcFiles objects filtered by the directory column - * @method array findByDbFilepath(string $filepath) Return CcFiles objects filtered by the filepath column - * @method array findByDbState(string $state) Return CcFiles objects filtered by the state column - * @method array findByDbCurrentlyaccessing(int $currentlyaccessing) Return CcFiles objects filtered by the currentlyaccessing column - * @method array findByDbEditedby(int $editedby) Return CcFiles objects filtered by the editedby column - * @method array findByDbMtime(string $mtime) Return CcFiles objects filtered by the mtime column - * @method array findByDbUtime(string $utime) Return CcFiles objects filtered by the utime column - * @method array findByDbLPtime(string $lptime) Return CcFiles objects filtered by the lptime column - * @method array findByDbMd5(string $md5) Return CcFiles objects filtered by the md5 column - * @method array findByDbTrackTitle(string $track_title) Return CcFiles objects filtered by the track_title column - * @method array findByDbArtistName(string $artist_name) Return CcFiles objects filtered by the artist_name column - * @method array findByDbBitRate(int $bit_rate) Return CcFiles objects filtered by the bit_rate column - * @method array findByDbSampleRate(int $sample_rate) Return CcFiles objects filtered by the sample_rate column - * @method array findByDbFormat(string $format) Return CcFiles objects filtered by the format column - * @method array findByDbLength(string $length) Return CcFiles objects filtered by the length column - * @method array findByDbAlbumTitle(string $album_title) Return CcFiles objects filtered by the album_title column - * @method array findByDbGenre(string $genre) Return CcFiles objects filtered by the genre column - * @method array findByDbComments(string $comments) Return CcFiles objects filtered by the comments column - * @method array findByDbYear(string $year) Return CcFiles objects filtered by the year column - * @method array findByDbTrackNumber(int $track_number) Return CcFiles objects filtered by the track_number column - * @method array findByDbChannels(int $channels) Return CcFiles objects filtered by the channels column - * @method array findByDbUrl(string $url) Return CcFiles objects filtered by the url column - * @method array findByDbBpm(int $bpm) Return CcFiles objects filtered by the bpm column - * @method array findByDbRating(string $rating) Return CcFiles objects filtered by the rating column - * @method array findByDbEncodedBy(string $encoded_by) Return CcFiles objects filtered by the encoded_by column - * @method array findByDbDiscNumber(string $disc_number) Return CcFiles objects filtered by the disc_number column - * @method array findByDbMood(string $mood) Return CcFiles objects filtered by the mood column - * @method array findByDbLabel(string $label) Return CcFiles objects filtered by the label column - * @method array findByDbComposer(string $composer) Return CcFiles objects filtered by the composer column - * @method array findByDbEncoder(string $encoder) Return CcFiles objects filtered by the encoder column - * @method array findByDbChecksum(string $checksum) Return CcFiles objects filtered by the checksum column - * @method array findByDbLyrics(string $lyrics) Return CcFiles objects filtered by the lyrics column - * @method array findByDbOrchestra(string $orchestra) Return CcFiles objects filtered by the orchestra column - * @method array findByDbConductor(string $conductor) Return CcFiles objects filtered by the conductor column - * @method array findByDbLyricist(string $lyricist) Return CcFiles objects filtered by the lyricist column - * @method array findByDbOriginalLyricist(string $original_lyricist) Return CcFiles objects filtered by the original_lyricist column - * @method array findByDbRadioStationName(string $radio_station_name) Return CcFiles objects filtered by the radio_station_name column - * @method array findByDbInfoUrl(string $info_url) Return CcFiles objects filtered by the info_url column - * @method array findByDbArtistUrl(string $artist_url) Return CcFiles objects filtered by the artist_url column - * @method array findByDbAudioSourceUrl(string $audio_source_url) Return CcFiles objects filtered by the audio_source_url column - * @method array findByDbRadioStationUrl(string $radio_station_url) Return CcFiles objects filtered by the radio_station_url column - * @method array findByDbBuyThisUrl(string $buy_this_url) Return CcFiles objects filtered by the buy_this_url column - * @method array findByDbIsrcNumber(string $isrc_number) Return CcFiles objects filtered by the isrc_number column - * @method array findByDbCatalogNumber(string $catalog_number) Return CcFiles objects filtered by the catalog_number column - * @method array findByDbOriginalArtist(string $original_artist) Return CcFiles objects filtered by the original_artist column - * @method array findByDbCopyright(string $copyright) Return CcFiles objects filtered by the copyright column - * @method array findByDbReportDatetime(string $report_datetime) Return CcFiles objects filtered by the report_datetime column - * @method array findByDbReportLocation(string $report_location) Return CcFiles objects filtered by the report_location column - * @method array findByDbReportOrganization(string $report_organization) Return CcFiles objects filtered by the report_organization 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 findByDbLanguage(string $language) Return CcFiles objects filtered by the language column - * @method array findByDbFileExists(boolean $file_exists) Return CcFiles objects filtered by the file_exists 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 findByDbSoundcloudErrorMsg(string $soundcloud_error_msg) Return CcFiles objects filtered by the soundcloud_error_msg column - * @method array findByDbSoundcloudLinkToFile(string $soundcloud_link_to_file) Return CcFiles objects filtered by the soundcloud_link_to_file column - * @method array findByDbSoundCloundUploadTime(string $soundcloud_upload_time) Return CcFiles objects filtered by the soundcloud_upload_time column - * @method array findByDbReplayGain(string $replay_gain) Return CcFiles objects filtered by the replay_gain column - * @method array findByDbOwnerId(int $owner_id) Return CcFiles objects filtered by the owner_id column - * @method array findByDbCuein(string $cuein) Return CcFiles objects filtered by the cuein column - * @method array findByDbCueout(string $cueout) Return CcFiles objects filtered by the cueout column - * @method array findByDbSilanCheck(boolean $silan_check) Return CcFiles objects filtered by the silan_check column - * @method array findByDbHidden(boolean $hidden) Return CcFiles objects filtered by the hidden column - * @method array findByDbIsScheduled(boolean $is_scheduled) Return CcFiles objects filtered by the is_scheduled column - * @method array findByDbIsPlaylist(boolean $is_playlist) Return CcFiles objects filtered by the is_playlist column + * @method CcFiles findOne(PropelPDO $con = null) Return the first CcFiles matching the query + * @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 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 + * @method CcFiles findOneByDbDirectory(int $directory) Return the first CcFiles filtered by the directory column + * @method CcFiles findOneByDbFilepath(string $filepath) Return the first CcFiles filtered by the filepath column + * @method CcFiles findOneByDbImportStatus(int $import_status) Return the first CcFiles filtered by the import_status column + * @method CcFiles findOneByDbCurrentlyaccessing(int $currentlyaccessing) Return the first CcFiles filtered by the currentlyaccessing column + * @method CcFiles findOneByDbEditedby(int $editedby) Return the first CcFiles filtered by the editedby column + * @method CcFiles findOneByDbMtime(string $mtime) Return the first CcFiles filtered by the mtime column + * @method CcFiles findOneByDbUtime(string $utime) Return the first CcFiles filtered by the utime column + * @method CcFiles findOneByDbLPtime(string $lptime) Return the first CcFiles filtered by the lptime column + * @method CcFiles findOneByDbMd5(string $md5) Return the first CcFiles filtered by the md5 column + * @method CcFiles findOneByDbTrackTitle(string $track_title) Return the first CcFiles filtered by the track_title column + * @method CcFiles findOneByDbArtistName(string $artist_name) Return the first CcFiles filtered by the artist_name column + * @method CcFiles findOneByDbBitRate(int $bit_rate) Return the first CcFiles filtered by the bit_rate column + * @method CcFiles findOneByDbSampleRate(int $sample_rate) Return the first CcFiles filtered by the sample_rate column + * @method CcFiles findOneByDbFormat(string $format) Return the first CcFiles filtered by the format column + * @method CcFiles findOneByDbLength(string $length) Return the first CcFiles filtered by the length column + * @method CcFiles findOneByDbAlbumTitle(string $album_title) Return the first CcFiles filtered by the album_title column + * @method CcFiles findOneByDbGenre(string $genre) Return the first CcFiles filtered by the genre column + * @method CcFiles findOneByDbComments(string $comments) Return the first CcFiles filtered by the comments column + * @method CcFiles findOneByDbYear(string $year) Return the first CcFiles filtered by the year column + * @method CcFiles findOneByDbTrackNumber(int $track_number) Return the first CcFiles filtered by the track_number column + * @method CcFiles findOneByDbChannels(int $channels) Return the first CcFiles filtered by the channels column + * @method CcFiles findOneByDbUrl(string $url) Return the first CcFiles filtered by the url column + * @method CcFiles findOneByDbBpm(int $bpm) Return the first CcFiles filtered by the bpm column + * @method CcFiles findOneByDbRating(string $rating) Return the first CcFiles filtered by the rating column + * @method CcFiles findOneByDbEncodedBy(string $encoded_by) Return the first CcFiles filtered by the encoded_by column + * @method CcFiles findOneByDbDiscNumber(string $disc_number) Return the first CcFiles filtered by the disc_number column + * @method CcFiles findOneByDbMood(string $mood) Return the first CcFiles filtered by the mood column + * @method CcFiles findOneByDbLabel(string $label) Return the first CcFiles filtered by the label column + * @method CcFiles findOneByDbComposer(string $composer) Return the first CcFiles filtered by the composer column + * @method CcFiles findOneByDbEncoder(string $encoder) Return the first CcFiles filtered by the encoder column + * @method CcFiles findOneByDbChecksum(string $checksum) Return the first CcFiles filtered by the checksum column + * @method CcFiles findOneByDbLyrics(string $lyrics) Return the first CcFiles filtered by the lyrics column + * @method CcFiles findOneByDbOrchestra(string $orchestra) Return the first CcFiles filtered by the orchestra column + * @method CcFiles findOneByDbConductor(string $conductor) Return the first CcFiles filtered by the conductor column + * @method CcFiles findOneByDbLyricist(string $lyricist) Return the first CcFiles filtered by the lyricist column + * @method CcFiles findOneByDbOriginalLyricist(string $original_lyricist) Return the first CcFiles filtered by the original_lyricist column + * @method CcFiles findOneByDbRadioStationName(string $radio_station_name) Return the first CcFiles filtered by the radio_station_name column + * @method CcFiles findOneByDbInfoUrl(string $info_url) Return the first CcFiles filtered by the info_url column + * @method CcFiles findOneByDbArtistUrl(string $artist_url) Return the first CcFiles filtered by the artist_url column + * @method CcFiles findOneByDbAudioSourceUrl(string $audio_source_url) Return the first CcFiles filtered by the audio_source_url column + * @method CcFiles findOneByDbRadioStationUrl(string $radio_station_url) Return the first CcFiles filtered by the radio_station_url column + * @method CcFiles findOneByDbBuyThisUrl(string $buy_this_url) Return the first CcFiles filtered by the buy_this_url column + * @method CcFiles findOneByDbIsrcNumber(string $isrc_number) Return the first CcFiles filtered by the isrc_number column + * @method CcFiles findOneByDbCatalogNumber(string $catalog_number) Return the first CcFiles filtered by the catalog_number column + * @method CcFiles findOneByDbOriginalArtist(string $original_artist) Return the first CcFiles filtered by the original_artist column + * @method CcFiles findOneByDbCopyright(string $copyright) Return the first CcFiles filtered by the copyright column + * @method CcFiles findOneByDbReportDatetime(string $report_datetime) Return the first CcFiles filtered by the report_datetime column + * @method CcFiles findOneByDbReportLocation(string $report_location) Return the first CcFiles filtered by the report_location column + * @method CcFiles findOneByDbReportOrganization(string $report_organization) Return the first CcFiles filtered by the report_organization 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 findOneByDbLanguage(string $language) Return the first CcFiles filtered by the language column + * @method CcFiles findOneByDbFileExists(boolean $file_exists) Return the first CcFiles filtered by the file_exists 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 findOneByDbSoundcloudErrorMsg(string $soundcloud_error_msg) Return the first CcFiles filtered by the soundcloud_error_msg column + * @method CcFiles findOneByDbSoundcloudLinkToFile(string $soundcloud_link_to_file) Return the first CcFiles filtered by the soundcloud_link_to_file column + * @method CcFiles findOneByDbSoundCloundUploadTime(string $soundcloud_upload_time) Return the first CcFiles filtered by the soundcloud_upload_time column + * @method CcFiles findOneByDbReplayGain(string $replay_gain) Return the first CcFiles filtered by the replay_gain column + * @method CcFiles findOneByDbOwnerId(int $owner_id) Return the first CcFiles filtered by the owner_id column + * @method CcFiles findOneByDbCuein(string $cuein) Return the first CcFiles filtered by the cuein column + * @method CcFiles findOneByDbCueout(string $cueout) Return the first CcFiles filtered by the cueout column + * @method CcFiles findOneByDbSilanCheck(boolean $silan_check) Return the first CcFiles filtered by the silan_check column + * @method CcFiles findOneByDbHidden(boolean $hidden) Return the first CcFiles filtered by the hidden column + * @method CcFiles findOneByDbIsScheduled(boolean $is_scheduled) Return the first CcFiles filtered by the is_scheduled column + * @method CcFiles findOneByDbIsPlaylist(boolean $is_playlist) Return the first CcFiles filtered by the is_playlist column + * + * @method array findByDbId(int $id) Return CcFiles objects filtered by the id 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 + * @method array findByDbDirectory(int $directory) Return CcFiles objects filtered by the directory column + * @method array findByDbFilepath(string $filepath) Return CcFiles objects filtered by the filepath column + * @method array findByDbImportStatus(int $import_status) Return CcFiles objects filtered by the import_status column + * @method array findByDbCurrentlyaccessing(int $currentlyaccessing) Return CcFiles objects filtered by the currentlyaccessing column + * @method array findByDbEditedby(int $editedby) Return CcFiles objects filtered by the editedby column + * @method array findByDbMtime(string $mtime) Return CcFiles objects filtered by the mtime column + * @method array findByDbUtime(string $utime) Return CcFiles objects filtered by the utime column + * @method array findByDbLPtime(string $lptime) Return CcFiles objects filtered by the lptime column + * @method array findByDbMd5(string $md5) Return CcFiles objects filtered by the md5 column + * @method array findByDbTrackTitle(string $track_title) Return CcFiles objects filtered by the track_title column + * @method array findByDbArtistName(string $artist_name) Return CcFiles objects filtered by the artist_name column + * @method array findByDbBitRate(int $bit_rate) Return CcFiles objects filtered by the bit_rate column + * @method array findByDbSampleRate(int $sample_rate) Return CcFiles objects filtered by the sample_rate column + * @method array findByDbFormat(string $format) Return CcFiles objects filtered by the format column + * @method array findByDbLength(string $length) Return CcFiles objects filtered by the length column + * @method array findByDbAlbumTitle(string $album_title) Return CcFiles objects filtered by the album_title column + * @method array findByDbGenre(string $genre) Return CcFiles objects filtered by the genre column + * @method array findByDbComments(string $comments) Return CcFiles objects filtered by the comments column + * @method array findByDbYear(string $year) Return CcFiles objects filtered by the year column + * @method array findByDbTrackNumber(int $track_number) Return CcFiles objects filtered by the track_number column + * @method array findByDbChannels(int $channels) Return CcFiles objects filtered by the channels column + * @method array findByDbUrl(string $url) Return CcFiles objects filtered by the url column + * @method array findByDbBpm(int $bpm) Return CcFiles objects filtered by the bpm column + * @method array findByDbRating(string $rating) Return CcFiles objects filtered by the rating column + * @method array findByDbEncodedBy(string $encoded_by) Return CcFiles objects filtered by the encoded_by column + * @method array findByDbDiscNumber(string $disc_number) Return CcFiles objects filtered by the disc_number column + * @method array findByDbMood(string $mood) Return CcFiles objects filtered by the mood column + * @method array findByDbLabel(string $label) Return CcFiles objects filtered by the label column + * @method array findByDbComposer(string $composer) Return CcFiles objects filtered by the composer column + * @method array findByDbEncoder(string $encoder) Return CcFiles objects filtered by the encoder column + * @method array findByDbChecksum(string $checksum) Return CcFiles objects filtered by the checksum column + * @method array findByDbLyrics(string $lyrics) Return CcFiles objects filtered by the lyrics column + * @method array findByDbOrchestra(string $orchestra) Return CcFiles objects filtered by the orchestra column + * @method array findByDbConductor(string $conductor) Return CcFiles objects filtered by the conductor column + * @method array findByDbLyricist(string $lyricist) Return CcFiles objects filtered by the lyricist column + * @method array findByDbOriginalLyricist(string $original_lyricist) Return CcFiles objects filtered by the original_lyricist column + * @method array findByDbRadioStationName(string $radio_station_name) Return CcFiles objects filtered by the radio_station_name column + * @method array findByDbInfoUrl(string $info_url) Return CcFiles objects filtered by the info_url column + * @method array findByDbArtistUrl(string $artist_url) Return CcFiles objects filtered by the artist_url column + * @method array findByDbAudioSourceUrl(string $audio_source_url) Return CcFiles objects filtered by the audio_source_url column + * @method array findByDbRadioStationUrl(string $radio_station_url) Return CcFiles objects filtered by the radio_station_url column + * @method array findByDbBuyThisUrl(string $buy_this_url) Return CcFiles objects filtered by the buy_this_url column + * @method array findByDbIsrcNumber(string $isrc_number) Return CcFiles objects filtered by the isrc_number column + * @method array findByDbCatalogNumber(string $catalog_number) Return CcFiles objects filtered by the catalog_number column + * @method array findByDbOriginalArtist(string $original_artist) Return CcFiles objects filtered by the original_artist column + * @method array findByDbCopyright(string $copyright) Return CcFiles objects filtered by the copyright column + * @method array findByDbReportDatetime(string $report_datetime) Return CcFiles objects filtered by the report_datetime column + * @method array findByDbReportLocation(string $report_location) Return CcFiles objects filtered by the report_location column + * @method array findByDbReportOrganization(string $report_organization) Return CcFiles objects filtered by the report_organization 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 findByDbLanguage(string $language) Return CcFiles objects filtered by the language column + * @method array findByDbFileExists(boolean $file_exists) Return CcFiles objects filtered by the file_exists 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 findByDbSoundcloudErrorMsg(string $soundcloud_error_msg) Return CcFiles objects filtered by the soundcloud_error_msg column + * @method array findByDbSoundcloudLinkToFile(string $soundcloud_link_to_file) Return CcFiles objects filtered by the soundcloud_link_to_file column + * @method array findByDbSoundCloundUploadTime(string $soundcloud_upload_time) Return CcFiles objects filtered by the soundcloud_upload_time column + * @method array findByDbReplayGain(string $replay_gain) Return CcFiles objects filtered by the replay_gain column + * @method array findByDbOwnerId(int $owner_id) Return CcFiles objects filtered by the owner_id column + * @method array findByDbCuein(string $cuein) Return CcFiles objects filtered by the cuein column + * @method array findByDbCueout(string $cueout) Return CcFiles objects filtered by the cueout column + * @method array findByDbSilanCheck(boolean $silan_check) Return CcFiles objects filtered by the silan_check column + * @method array findByDbHidden(boolean $hidden) Return CcFiles objects filtered by the hidden column + * @method array findByDbIsScheduled(boolean $is_scheduled) Return CcFiles objects filtered by the is_scheduled column + * @method array findByDbIsPlaylist(boolean $is_playlist) Return CcFiles objects filtered by the is_playlist column * * @package propel.generator.airtime.om */ abstract class BaseCcFilesQuery extends ModelCriteria { - - /** - * Initializes internal state of BaseCcFilesQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcFiles', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcFilesQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcFilesQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcFilesQuery) { - return $criteria; - } - $query = new CcFilesQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcFiles|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcFilesPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcFilesPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcFilesPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcFilesPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the name column - * - * @param string $dbName 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 filterByDbName($dbName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbName)) { - $dbName = str_replace('*', '%', $dbName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::NAME, $dbName, $comparison); - } - - /** - * Filter the query on the mime column - * - * @param string $dbMime 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 filterByDbMime($dbMime = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbMime)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbMime)) { - $dbMime = str_replace('*', '%', $dbMime); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::MIME, $dbMime, $comparison); - } - - /** - * Filter the query on the ftype column - * - * @param string $dbFtype 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 filterByDbFtype($dbFtype = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbFtype)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbFtype)) { - $dbFtype = str_replace('*', '%', $dbFtype); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::FTYPE, $dbFtype, $comparison); - } - - /** - * Filter the query on the directory column - * - * @param int|array $dbDirectory The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbDirectory($dbDirectory = null, $comparison = null) - { - if (is_array($dbDirectory)) { - $useMinMax = false; - if (isset($dbDirectory['min'])) { - $this->addUsingAlias(CcFilesPeer::DIRECTORY, $dbDirectory['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbDirectory['max'])) { - $this->addUsingAlias(CcFilesPeer::DIRECTORY, $dbDirectory['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::DIRECTORY, $dbDirectory, $comparison); - } - - /** - * Filter the query on the filepath column - * - * @param string $dbFilepath 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 filterByDbFilepath($dbFilepath = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbFilepath)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbFilepath)) { - $dbFilepath = str_replace('*', '%', $dbFilepath); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::FILEPATH, $dbFilepath, $comparison); - } - - /** - * Filter the query on the state column - * - * @param string $dbState 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 filterByDbState($dbState = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbState)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbState)) { - $dbState = str_replace('*', '%', $dbState); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::STATE, $dbState, $comparison); - } - - /** - * Filter the query on the currentlyaccessing column - * - * @param int|array $dbCurrentlyaccessing The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbCurrentlyaccessing($dbCurrentlyaccessing = null, $comparison = null) - { - if (is_array($dbCurrentlyaccessing)) { - $useMinMax = false; - if (isset($dbCurrentlyaccessing['min'])) { - $this->addUsingAlias(CcFilesPeer::CURRENTLYACCESSING, $dbCurrentlyaccessing['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbCurrentlyaccessing['max'])) { - $this->addUsingAlias(CcFilesPeer::CURRENTLYACCESSING, $dbCurrentlyaccessing['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::CURRENTLYACCESSING, $dbCurrentlyaccessing, $comparison); - } - - /** - * Filter the query on the editedby column - * - * @param int|array $dbEditedby The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbEditedby($dbEditedby = null, $comparison = null) - { - if (is_array($dbEditedby)) { - $useMinMax = false; - if (isset($dbEditedby['min'])) { - $this->addUsingAlias(CcFilesPeer::EDITEDBY, $dbEditedby['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbEditedby['max'])) { - $this->addUsingAlias(CcFilesPeer::EDITEDBY, $dbEditedby['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::EDITEDBY, $dbEditedby, $comparison); - } - - /** - * Filter the query on the mtime column - * - * @param string|array $dbMtime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbMtime($dbMtime = null, $comparison = null) - { - if (is_array($dbMtime)) { - $useMinMax = false; - if (isset($dbMtime['min'])) { - $this->addUsingAlias(CcFilesPeer::MTIME, $dbMtime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbMtime['max'])) { - $this->addUsingAlias(CcFilesPeer::MTIME, $dbMtime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::MTIME, $dbMtime, $comparison); - } - - /** - * Filter the query on the utime column - * - * @param string|array $dbUtime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbUtime($dbUtime = null, $comparison = null) - { - if (is_array($dbUtime)) { - $useMinMax = false; - if (isset($dbUtime['min'])) { - $this->addUsingAlias(CcFilesPeer::UTIME, $dbUtime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbUtime['max'])) { - $this->addUsingAlias(CcFilesPeer::UTIME, $dbUtime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::UTIME, $dbUtime, $comparison); - } - - /** - * Filter the query on the lptime column - * - * @param string|array $dbLPtime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbLPtime($dbLPtime = null, $comparison = null) - { - if (is_array($dbLPtime)) { - $useMinMax = false; - if (isset($dbLPtime['min'])) { - $this->addUsingAlias(CcFilesPeer::LPTIME, $dbLPtime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbLPtime['max'])) { - $this->addUsingAlias(CcFilesPeer::LPTIME, $dbLPtime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::LPTIME, $dbLPtime, $comparison); - } - - /** - * Filter the query on the md5 column - * - * @param string $dbMd5 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 filterByDbMd5($dbMd5 = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbMd5)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbMd5)) { - $dbMd5 = str_replace('*', '%', $dbMd5); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::MD5, $dbMd5, $comparison); - } - - /** - * Filter the query on the track_title column - * - * @param string $dbTrackTitle 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 filterByDbTrackTitle($dbTrackTitle = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbTrackTitle)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbTrackTitle)) { - $dbTrackTitle = str_replace('*', '%', $dbTrackTitle); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::TRACK_TITLE, $dbTrackTitle, $comparison); - } - - /** - * Filter the query on the artist_name column - * - * @param string $dbArtistName 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 filterByDbArtistName($dbArtistName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbArtistName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbArtistName)) { - $dbArtistName = str_replace('*', '%', $dbArtistName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::ARTIST_NAME, $dbArtistName, $comparison); - } - - /** - * Filter the query on the bit_rate column - * - * @param int|array $dbBitRate The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbBitRate($dbBitRate = null, $comparison = null) - { - if (is_array($dbBitRate)) { - $useMinMax = false; - if (isset($dbBitRate['min'])) { - $this->addUsingAlias(CcFilesPeer::BIT_RATE, $dbBitRate['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbBitRate['max'])) { - $this->addUsingAlias(CcFilesPeer::BIT_RATE, $dbBitRate['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::BIT_RATE, $dbBitRate, $comparison); - } - - /** - * Filter the query on the sample_rate column - * - * @param int|array $dbSampleRate The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbSampleRate($dbSampleRate = null, $comparison = null) - { - if (is_array($dbSampleRate)) { - $useMinMax = false; - if (isset($dbSampleRate['min'])) { - $this->addUsingAlias(CcFilesPeer::SAMPLE_RATE, $dbSampleRate['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbSampleRate['max'])) { - $this->addUsingAlias(CcFilesPeer::SAMPLE_RATE, $dbSampleRate['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::SAMPLE_RATE, $dbSampleRate, $comparison); - } - - /** - * Filter the query on the format column - * - * @param string $dbFormat 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 filterByDbFormat($dbFormat = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbFormat)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbFormat)) { - $dbFormat = str_replace('*', '%', $dbFormat); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::FORMAT, $dbFormat, $comparison); - } - - /** - * Filter the query on the length column - * - * @param string $dbLength 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 filterByDbLength($dbLength = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLength)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLength)) { - $dbLength = str_replace('*', '%', $dbLength); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::LENGTH, $dbLength, $comparison); - } - - /** - * Filter the query on the album_title column - * - * @param string $dbAlbumTitle 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 filterByDbAlbumTitle($dbAlbumTitle = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbAlbumTitle)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbAlbumTitle)) { - $dbAlbumTitle = str_replace('*', '%', $dbAlbumTitle); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::ALBUM_TITLE, $dbAlbumTitle, $comparison); - } - - /** - * Filter the query on the genre column - * - * @param string $dbGenre 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 filterByDbGenre($dbGenre = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbGenre)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbGenre)) { - $dbGenre = str_replace('*', '%', $dbGenre); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::GENRE, $dbGenre, $comparison); - } - - /** - * Filter the query on the comments column - * - * @param string $dbComments 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 filterByDbComments($dbComments = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbComments)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbComments)) { - $dbComments = str_replace('*', '%', $dbComments); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::COMMENTS, $dbComments, $comparison); - } - - /** - * Filter the query on the year column - * - * @param string $dbYear 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 filterByDbYear($dbYear = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbYear)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbYear)) { - $dbYear = str_replace('*', '%', $dbYear); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::YEAR, $dbYear, $comparison); - } - - /** - * Filter the query on the track_number column - * - * @param int|array $dbTrackNumber The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbTrackNumber($dbTrackNumber = null, $comparison = null) - { - if (is_array($dbTrackNumber)) { - $useMinMax = false; - if (isset($dbTrackNumber['min'])) { - $this->addUsingAlias(CcFilesPeer::TRACK_NUMBER, $dbTrackNumber['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbTrackNumber['max'])) { - $this->addUsingAlias(CcFilesPeer::TRACK_NUMBER, $dbTrackNumber['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::TRACK_NUMBER, $dbTrackNumber, $comparison); - } - - /** - * Filter the query on the channels column - * - * @param int|array $dbChannels The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbChannels($dbChannels = null, $comparison = null) - { - if (is_array($dbChannels)) { - $useMinMax = false; - if (isset($dbChannels['min'])) { - $this->addUsingAlias(CcFilesPeer::CHANNELS, $dbChannels['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbChannels['max'])) { - $this->addUsingAlias(CcFilesPeer::CHANNELS, $dbChannels['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::CHANNELS, $dbChannels, $comparison); - } - - /** - * Filter the query on the url column - * - * @param string $dbUrl 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 filterByDbUrl($dbUrl = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbUrl)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbUrl)) { - $dbUrl = str_replace('*', '%', $dbUrl); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::URL, $dbUrl, $comparison); - } - - /** - * Filter the query on the bpm column - * - * @param int|array $dbBpm The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbBpm($dbBpm = null, $comparison = null) - { - if (is_array($dbBpm)) { - $useMinMax = false; - if (isset($dbBpm['min'])) { - $this->addUsingAlias(CcFilesPeer::BPM, $dbBpm['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbBpm['max'])) { - $this->addUsingAlias(CcFilesPeer::BPM, $dbBpm['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::BPM, $dbBpm, $comparison); - } - - /** - * Filter the query on the rating column - * - * @param string $dbRating 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 filterByDbRating($dbRating = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbRating)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbRating)) { - $dbRating = str_replace('*', '%', $dbRating); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::RATING, $dbRating, $comparison); - } - - /** - * Filter the query on the encoded_by column - * - * @param string $dbEncodedBy 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 filterByDbEncodedBy($dbEncodedBy = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbEncodedBy)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbEncodedBy)) { - $dbEncodedBy = str_replace('*', '%', $dbEncodedBy); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::ENCODED_BY, $dbEncodedBy, $comparison); - } - - /** - * Filter the query on the disc_number column - * - * @param string $dbDiscNumber 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 filterByDbDiscNumber($dbDiscNumber = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbDiscNumber)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbDiscNumber)) { - $dbDiscNumber = str_replace('*', '%', $dbDiscNumber); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::DISC_NUMBER, $dbDiscNumber, $comparison); - } - - /** - * Filter the query on the mood column - * - * @param string $dbMood 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 filterByDbMood($dbMood = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbMood)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbMood)) { - $dbMood = str_replace('*', '%', $dbMood); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::MOOD, $dbMood, $comparison); - } - - /** - * Filter the query on the label column - * - * @param string $dbLabel 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 filterByDbLabel($dbLabel = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLabel)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLabel)) { - $dbLabel = str_replace('*', '%', $dbLabel); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::LABEL, $dbLabel, $comparison); - } - - /** - * Filter the query on the composer column - * - * @param string $dbComposer 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 filterByDbComposer($dbComposer = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbComposer)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbComposer)) { - $dbComposer = str_replace('*', '%', $dbComposer); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::COMPOSER, $dbComposer, $comparison); - } - - /** - * Filter the query on the encoder column - * - * @param string $dbEncoder 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 filterByDbEncoder($dbEncoder = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbEncoder)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbEncoder)) { - $dbEncoder = str_replace('*', '%', $dbEncoder); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::ENCODER, $dbEncoder, $comparison); - } - - /** - * Filter the query on the checksum column - * - * @param string $dbChecksum 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 filterByDbChecksum($dbChecksum = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbChecksum)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbChecksum)) { - $dbChecksum = str_replace('*', '%', $dbChecksum); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::CHECKSUM, $dbChecksum, $comparison); - } - - /** - * Filter the query on the lyrics column - * - * @param string $dbLyrics 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 filterByDbLyrics($dbLyrics = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLyrics)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLyrics)) { - $dbLyrics = str_replace('*', '%', $dbLyrics); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::LYRICS, $dbLyrics, $comparison); - } - - /** - * Filter the query on the orchestra column - * - * @param string $dbOrchestra 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 filterByDbOrchestra($dbOrchestra = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbOrchestra)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbOrchestra)) { - $dbOrchestra = str_replace('*', '%', $dbOrchestra); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::ORCHESTRA, $dbOrchestra, $comparison); - } - - /** - * Filter the query on the conductor column - * - * @param string $dbConductor 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 filterByDbConductor($dbConductor = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbConductor)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbConductor)) { - $dbConductor = str_replace('*', '%', $dbConductor); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::CONDUCTOR, $dbConductor, $comparison); - } - - /** - * Filter the query on the lyricist column - * - * @param string $dbLyricist 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 filterByDbLyricist($dbLyricist = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLyricist)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLyricist)) { - $dbLyricist = str_replace('*', '%', $dbLyricist); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::LYRICIST, $dbLyricist, $comparison); - } - - /** - * Filter the query on the original_lyricist column - * - * @param string $dbOriginalLyricist 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 filterByDbOriginalLyricist($dbOriginalLyricist = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbOriginalLyricist)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbOriginalLyricist)) { - $dbOriginalLyricist = str_replace('*', '%', $dbOriginalLyricist); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::ORIGINAL_LYRICIST, $dbOriginalLyricist, $comparison); - } - - /** - * Filter the query on the radio_station_name column - * - * @param string $dbRadioStationName 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 filterByDbRadioStationName($dbRadioStationName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbRadioStationName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbRadioStationName)) { - $dbRadioStationName = str_replace('*', '%', $dbRadioStationName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::RADIO_STATION_NAME, $dbRadioStationName, $comparison); - } - - /** - * Filter the query on the info_url column - * - * @param string $dbInfoUrl 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 filterByDbInfoUrl($dbInfoUrl = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbInfoUrl)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbInfoUrl)) { - $dbInfoUrl = str_replace('*', '%', $dbInfoUrl); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::INFO_URL, $dbInfoUrl, $comparison); - } - - /** - * Filter the query on the artist_url column - * - * @param string $dbArtistUrl 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 filterByDbArtistUrl($dbArtistUrl = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbArtistUrl)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbArtistUrl)) { - $dbArtistUrl = str_replace('*', '%', $dbArtistUrl); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::ARTIST_URL, $dbArtistUrl, $comparison); - } - - /** - * Filter the query on the audio_source_url column - * - * @param string $dbAudioSourceUrl 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 filterByDbAudioSourceUrl($dbAudioSourceUrl = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbAudioSourceUrl)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbAudioSourceUrl)) { - $dbAudioSourceUrl = str_replace('*', '%', $dbAudioSourceUrl); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::AUDIO_SOURCE_URL, $dbAudioSourceUrl, $comparison); - } - - /** - * Filter the query on the radio_station_url column - * - * @param string $dbRadioStationUrl 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 filterByDbRadioStationUrl($dbRadioStationUrl = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbRadioStationUrl)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbRadioStationUrl)) { - $dbRadioStationUrl = str_replace('*', '%', $dbRadioStationUrl); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::RADIO_STATION_URL, $dbRadioStationUrl, $comparison); - } - - /** - * Filter the query on the buy_this_url column - * - * @param string $dbBuyThisUrl 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 filterByDbBuyThisUrl($dbBuyThisUrl = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbBuyThisUrl)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbBuyThisUrl)) { - $dbBuyThisUrl = str_replace('*', '%', $dbBuyThisUrl); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::BUY_THIS_URL, $dbBuyThisUrl, $comparison); - } - - /** - * Filter the query on the isrc_number column - * - * @param string $dbIsrcNumber 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 filterByDbIsrcNumber($dbIsrcNumber = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbIsrcNumber)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbIsrcNumber)) { - $dbIsrcNumber = str_replace('*', '%', $dbIsrcNumber); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::ISRC_NUMBER, $dbIsrcNumber, $comparison); - } - - /** - * Filter the query on the catalog_number column - * - * @param string $dbCatalogNumber 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 filterByDbCatalogNumber($dbCatalogNumber = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbCatalogNumber)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbCatalogNumber)) { - $dbCatalogNumber = str_replace('*', '%', $dbCatalogNumber); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::CATALOG_NUMBER, $dbCatalogNumber, $comparison); - } - - /** - * Filter the query on the original_artist column - * - * @param string $dbOriginalArtist 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 filterByDbOriginalArtist($dbOriginalArtist = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbOriginalArtist)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbOriginalArtist)) { - $dbOriginalArtist = str_replace('*', '%', $dbOriginalArtist); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::ORIGINAL_ARTIST, $dbOriginalArtist, $comparison); - } - - /** - * Filter the query on the copyright column - * - * @param string $dbCopyright 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 filterByDbCopyright($dbCopyright = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbCopyright)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbCopyright)) { - $dbCopyright = str_replace('*', '%', $dbCopyright); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::COPYRIGHT, $dbCopyright, $comparison); - } - - /** - * Filter the query on the report_datetime column - * - * @param string $dbReportDatetime 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 filterByDbReportDatetime($dbReportDatetime = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbReportDatetime)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbReportDatetime)) { - $dbReportDatetime = str_replace('*', '%', $dbReportDatetime); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::REPORT_DATETIME, $dbReportDatetime, $comparison); - } - - /** - * Filter the query on the report_location column - * - * @param string $dbReportLocation 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 filterByDbReportLocation($dbReportLocation = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbReportLocation)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbReportLocation)) { - $dbReportLocation = str_replace('*', '%', $dbReportLocation); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::REPORT_LOCATION, $dbReportLocation, $comparison); - } - - /** - * Filter the query on the report_organization column - * - * @param string $dbReportOrganization 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 filterByDbReportOrganization($dbReportOrganization = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbReportOrganization)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbReportOrganization)) { - $dbReportOrganization = str_replace('*', '%', $dbReportOrganization); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::REPORT_ORGANIZATION, $dbReportOrganization, $comparison); - } - - /** - * Filter the query on the subject column - * - * @param string $dbSubject 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 filterByDbSubject($dbSubject = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbSubject)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbSubject)) { - $dbSubject = str_replace('*', '%', $dbSubject); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::SUBJECT, $dbSubject, $comparison); - } - - /** - * Filter the query on the contributor column - * - * @param string $dbContributor 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 filterByDbContributor($dbContributor = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbContributor)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbContributor)) { - $dbContributor = str_replace('*', '%', $dbContributor); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::CONTRIBUTOR, $dbContributor, $comparison); - } - - /** - * Filter the query on the language column - * - * @param string $dbLanguage 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 filterByDbLanguage($dbLanguage = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLanguage)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLanguage)) { - $dbLanguage = str_replace('*', '%', $dbLanguage); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::LANGUAGE, $dbLanguage, $comparison); - } - - /** - * Filter the query on the file_exists column - * - * @param boolean|string $dbFileExists 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 filterByDbFileExists($dbFileExists = null, $comparison = null) - { - if (is_string($dbFileExists)) { - $file_exists = in_array(strtolower($dbFileExists), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - } - return $this->addUsingAlias(CcFilesPeer::FILE_EXISTS, $dbFileExists, $comparison); - } - - /** - * Filter the query on the soundcloud_id column - * - * @param int|array $dbSoundcloudId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbSoundcloudId($dbSoundcloudId = null, $comparison = null) - { - if (is_array($dbSoundcloudId)) { - $useMinMax = false; - if (isset($dbSoundcloudId['min'])) { - $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_ID, $dbSoundcloudId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbSoundcloudId['max'])) { - $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_ID, $dbSoundcloudId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_ID, $dbSoundcloudId, $comparison); - } - - /** - * Filter the query on the soundcloud_error_code column - * - * @param int|array $dbSoundcloudErrorCode The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbSoundcloudErrorCode($dbSoundcloudErrorCode = null, $comparison = null) - { - if (is_array($dbSoundcloudErrorCode)) { - $useMinMax = false; - if (isset($dbSoundcloudErrorCode['min'])) { - $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_ERROR_CODE, $dbSoundcloudErrorCode['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbSoundcloudErrorCode['max'])) { - $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_ERROR_CODE, $dbSoundcloudErrorCode['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_ERROR_CODE, $dbSoundcloudErrorCode, $comparison); - } - - /** - * Filter the query on the soundcloud_error_msg column - * - * @param string $dbSoundcloudErrorMsg 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 filterByDbSoundcloudErrorMsg($dbSoundcloudErrorMsg = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbSoundcloudErrorMsg)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbSoundcloudErrorMsg)) { - $dbSoundcloudErrorMsg = str_replace('*', '%', $dbSoundcloudErrorMsg); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_ERROR_MSG, $dbSoundcloudErrorMsg, $comparison); - } - - /** - * Filter the query on the soundcloud_link_to_file column - * - * @param string $dbSoundcloudLinkToFile 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 filterByDbSoundcloudLinkToFile($dbSoundcloudLinkToFile = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbSoundcloudLinkToFile)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbSoundcloudLinkToFile)) { - $dbSoundcloudLinkToFile = str_replace('*', '%', $dbSoundcloudLinkToFile); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE, $dbSoundcloudLinkToFile, $comparison); - } - - /** - * Filter the query on the soundcloud_upload_time column - * - * @param string|array $dbSoundCloundUploadTime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbSoundCloundUploadTime($dbSoundCloundUploadTime = null, $comparison = null) - { - if (is_array($dbSoundCloundUploadTime)) { - $useMinMax = false; - if (isset($dbSoundCloundUploadTime['min'])) { - $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME, $dbSoundCloundUploadTime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbSoundCloundUploadTime['max'])) { - $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME, $dbSoundCloundUploadTime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME, $dbSoundCloundUploadTime, $comparison); - } - - /** - * Filter the query on the replay_gain column - * - * @param string|array $dbReplayGain The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbReplayGain($dbReplayGain = null, $comparison = null) - { - if (is_array($dbReplayGain)) { - $useMinMax = false; - if (isset($dbReplayGain['min'])) { - $this->addUsingAlias(CcFilesPeer::REPLAY_GAIN, $dbReplayGain['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbReplayGain['max'])) { - $this->addUsingAlias(CcFilesPeer::REPLAY_GAIN, $dbReplayGain['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::REPLAY_GAIN, $dbReplayGain, $comparison); - } - - /** - * Filter the query on the owner_id column - * - * @param int|array $dbOwnerId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByDbOwnerId($dbOwnerId = null, $comparison = null) - { - if (is_array($dbOwnerId)) { - $useMinMax = false; - if (isset($dbOwnerId['min'])) { - $this->addUsingAlias(CcFilesPeer::OWNER_ID, $dbOwnerId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbOwnerId['max'])) { - $this->addUsingAlias(CcFilesPeer::OWNER_ID, $dbOwnerId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcFilesPeer::OWNER_ID, $dbOwnerId, $comparison); - } - - /** - * Filter the query on the cuein column - * - * @param string $dbCuein 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 filterByDbCuein($dbCuein = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbCuein)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbCuein)) { - $dbCuein = str_replace('*', '%', $dbCuein); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::CUEIN, $dbCuein, $comparison); - } - - /** - * Filter the query on the cueout column - * - * @param string $dbCueout 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 filterByDbCueout($dbCueout = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbCueout)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbCueout)) { - $dbCueout = str_replace('*', '%', $dbCueout); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcFilesPeer::CUEOUT, $dbCueout, $comparison); - } - - /** - * Filter the query on the silan_check column - * - * @param boolean|string $dbSilanCheck 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 filterByDbSilanCheck($dbSilanCheck = null, $comparison = null) - { - if (is_string($dbSilanCheck)) { - $silan_check = in_array(strtolower($dbSilanCheck), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - } - return $this->addUsingAlias(CcFilesPeer::SILAN_CHECK, $dbSilanCheck, $comparison); - } - - /** - * Filter the query on the hidden column - * - * @param boolean|string $dbHidden 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 filterByDbHidden($dbHidden = null, $comparison = null) - { - if (is_string($dbHidden)) { - $hidden = in_array(strtolower($dbHidden), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - } - return $this->addUsingAlias(CcFilesPeer::HIDDEN, $dbHidden, $comparison); - } - - /** - * Filter the query on the is_scheduled column - * - * @param boolean|string $dbIsScheduled 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 filterByDbIsScheduled($dbIsScheduled = null, $comparison = null) - { - if (is_string($dbIsScheduled)) { - $is_scheduled = in_array(strtolower($dbIsScheduled), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - } - return $this->addUsingAlias(CcFilesPeer::IS_SCHEDULED, $dbIsScheduled, $comparison); - } - - /** - * Filter the query on the is_playlist column - * - * @param boolean|string $dbIsPlaylist 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 filterByDbIsPlaylist($dbIsPlaylist = null, $comparison = null) - { - if (is_string($dbIsPlaylist)) { - $is_playlist = in_array(strtolower($dbIsPlaylist), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - } - return $this->addUsingAlias(CcFilesPeer::IS_PLAYLIST, $dbIsPlaylist, $comparison); - } - - /** - * Filter the query by a related CcSubjs object - * - * @param CcSubjs $ccSubjs the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByFkOwner($ccSubjs, $comparison = null) - { - return $this - ->addUsingAlias(CcFilesPeer::OWNER_ID, $ccSubjs->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the FkOwner relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function joinFkOwner($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('FkOwner'); - - // 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, 'FkOwner'); - } - - return $this; - } - - /** - * Use the FkOwner relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query - */ - public function useFkOwnerQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinFkOwner($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'FkOwner', 'CcSubjsQuery'); - } - - /** - * Filter the query by a related CcSubjs object - * - * @param CcSubjs $ccSubjs the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByCcSubjsRelatedByDbEditedby($ccSubjs, $comparison = null) - { - return $this - ->addUsingAlias(CcFilesPeer::EDITEDBY, $ccSubjs->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcSubjsRelatedByDbEditedby relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function joinCcSubjsRelatedByDbEditedby($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcSubjsRelatedByDbEditedby'); - - // 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, 'CcSubjsRelatedByDbEditedby'); - } - - return $this; - } - - /** - * Use the CcSubjsRelatedByDbEditedby relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query - */ - public function useCcSubjsRelatedByDbEditedbyQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcSubjsRelatedByDbEditedby($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcSubjsRelatedByDbEditedby', 'CcSubjsQuery'); - } - - /** - * Filter the query by a related CcMusicDirs object - * - * @param CcMusicDirs $ccMusicDirs the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByCcMusicDirs($ccMusicDirs, $comparison = null) - { - return $this - ->addUsingAlias(CcFilesPeer::DIRECTORY, $ccMusicDirs->getId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcMusicDirs relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function joinCcMusicDirs($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcMusicDirs'); - - // 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, 'CcMusicDirs'); - } - - return $this; - } - - /** - * Use the CcMusicDirs relation CcMusicDirs 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 CcMusicDirsQuery A secondary query class using the current class as primary query - */ - public function useCcMusicDirsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcMusicDirs($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcMusicDirs', 'CcMusicDirsQuery'); - } - - /** - * Filter the query by a related CcShowInstances object - * - * @param CcShowInstances $ccShowInstances the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByCcShowInstances($ccShowInstances, $comparison = null) - { - return $this - ->addUsingAlias(CcFilesPeer::ID, $ccShowInstances->getDbRecordedFile(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcShowInstances relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function joinCcShowInstances($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcShowInstances'); - - // 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, 'CcShowInstances'); - } - - return $this; - } - - /** - * Use the CcShowInstances relation CcShowInstances 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 CcShowInstancesQuery A secondary query class using the current class as primary query - */ - public function useCcShowInstancesQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcShowInstances($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcShowInstances', 'CcShowInstancesQuery'); - } - - /** - * Filter the query by a related CcPlaylistcontents object - * - * @param CcPlaylistcontents $ccPlaylistcontents the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByCcPlaylistcontents($ccPlaylistcontents, $comparison = null) - { - return $this - ->addUsingAlias(CcFilesPeer::ID, $ccPlaylistcontents->getDbFileId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcPlaylistcontents relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function joinCcPlaylistcontents($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcPlaylistcontents'); - - // 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, 'CcPlaylistcontents'); - } - - return $this; - } - - /** - * Use the CcPlaylistcontents relation CcPlaylistcontents 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 CcPlaylistcontentsQuery A secondary query class using the current class as primary query - */ - public function useCcPlaylistcontentsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcPlaylistcontents($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcPlaylistcontents', 'CcPlaylistcontentsQuery'); - } - - /** - * Filter the query by a related CcBlockcontents object - * - * @param CcBlockcontents $ccBlockcontents the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByCcBlockcontents($ccBlockcontents, $comparison = null) - { - return $this - ->addUsingAlias(CcFilesPeer::ID, $ccBlockcontents->getDbFileId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcBlockcontents relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function joinCcBlockcontents($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcBlockcontents'); - - // 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, 'CcBlockcontents'); - } - - return $this; - } - - /** - * Use the CcBlockcontents relation CcBlockcontents 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 CcBlockcontentsQuery A secondary query class using the current class as primary query - */ - public function useCcBlockcontentsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcBlockcontents($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcBlockcontents', 'CcBlockcontentsQuery'); - } - - /** - * Filter the query by a related CcSchedule object - * - * @param CcSchedule $ccSchedule the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByCcSchedule($ccSchedule, $comparison = null) - { - return $this - ->addUsingAlias(CcFilesPeer::ID, $ccSchedule->getDbFileId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcSchedule relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function joinCcSchedule($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcSchedule'); - - // 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, 'CcSchedule'); - } - - return $this; - } - - /** - * Use the CcSchedule relation CcSchedule 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 CcScheduleQuery A secondary query class using the current class as primary query - */ - public function useCcScheduleQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcSchedule($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcSchedule', 'CcScheduleQuery'); - } - - /** - * Filter the query by a related CcPlayoutHistory object - * - * @param CcPlayoutHistory $ccPlayoutHistory the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function filterByCcPlayoutHistory($ccPlayoutHistory, $comparison = null) - { - return $this - ->addUsingAlias(CcFilesPeer::ID, $ccPlayoutHistory->getDbFileId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcPlayoutHistory relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function joinCcPlayoutHistory($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcPlayoutHistory'); - - // 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, 'CcPlayoutHistory'); - } - - return $this; - } - - /** - * Use the CcPlayoutHistory relation CcPlayoutHistory 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 CcPlayoutHistoryQuery A secondary query class using the current class as primary query - */ - public function useCcPlayoutHistoryQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcPlayoutHistory($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcPlayoutHistory', 'CcPlayoutHistoryQuery'); - } - - /** - * Exclude object from result - * - * @param CcFiles $ccFiles Object to remove from the list of results - * - * @return CcFilesQuery The current query, for fluid interface - */ - public function prune($ccFiles = null) - { - if ($ccFiles) { - $this->addUsingAlias(CcFilesPeer::ID, $ccFiles->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcFilesQuery + /** + * Initializes internal state of BaseCcFilesQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcFiles'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcFilesQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcFilesQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcFilesQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcFilesQuery) { + return $criteria; + } + $query = new CcFilesQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcFiles|CcFiles[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcFilesPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcFiles A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcFiles A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "name", "mime", "ftype", "directory", "filepath", "import_status", "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", "owner_id", "cuein", "cueout", "silan_check", "hidden", "is_scheduled", "is_playlist" FROM "cc_files" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcFiles(); + $obj->hydrate($row); + CcFilesPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcFiles|CcFiles[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcFiles[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcFilesPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcFilesPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcFilesPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcFilesPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the name column + * + * Example usage: + * + * $query->filterByDbName('fooValue'); // WHERE name = 'fooValue' + * $query->filterByDbName('%fooValue%'); // WHERE name LIKE '%fooValue%' + * + * + * @param string $dbName 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 filterByDbName($dbName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbName)) { + $dbName = str_replace('*', '%', $dbName); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::NAME, $dbName, $comparison); + } + + /** + * Filter the query on the mime column + * + * Example usage: + * + * $query->filterByDbMime('fooValue'); // WHERE mime = 'fooValue' + * $query->filterByDbMime('%fooValue%'); // WHERE mime LIKE '%fooValue%' + * + * + * @param string $dbMime 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 filterByDbMime($dbMime = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbMime)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbMime)) { + $dbMime = str_replace('*', '%', $dbMime); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::MIME, $dbMime, $comparison); + } + + /** + * Filter the query on the ftype column + * + * Example usage: + * + * $query->filterByDbFtype('fooValue'); // WHERE ftype = 'fooValue' + * $query->filterByDbFtype('%fooValue%'); // WHERE ftype LIKE '%fooValue%' + * + * + * @param string $dbFtype 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 filterByDbFtype($dbFtype = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbFtype)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbFtype)) { + $dbFtype = str_replace('*', '%', $dbFtype); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::FTYPE, $dbFtype, $comparison); + } + + /** + * Filter the query on the directory column + * + * Example usage: + * + * $query->filterByDbDirectory(1234); // WHERE directory = 1234 + * $query->filterByDbDirectory(array(12, 34)); // WHERE directory IN (12, 34) + * $query->filterByDbDirectory(array('min' => 12)); // WHERE directory >= 12 + * $query->filterByDbDirectory(array('max' => 12)); // WHERE directory <= 12 + * + * + * @see filterByCcMusicDirs() + * + * @param mixed $dbDirectory The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbDirectory($dbDirectory = null, $comparison = null) + { + if (is_array($dbDirectory)) { + $useMinMax = false; + if (isset($dbDirectory['min'])) { + $this->addUsingAlias(CcFilesPeer::DIRECTORY, $dbDirectory['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbDirectory['max'])) { + $this->addUsingAlias(CcFilesPeer::DIRECTORY, $dbDirectory['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::DIRECTORY, $dbDirectory, $comparison); + } + + /** + * Filter the query on the filepath column + * + * Example usage: + * + * $query->filterByDbFilepath('fooValue'); // WHERE filepath = 'fooValue' + * $query->filterByDbFilepath('%fooValue%'); // WHERE filepath LIKE '%fooValue%' + * + * + * @param string $dbFilepath 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 filterByDbFilepath($dbFilepath = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbFilepath)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbFilepath)) { + $dbFilepath = str_replace('*', '%', $dbFilepath); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::FILEPATH, $dbFilepath, $comparison); + } + + /** + * Filter the query on the import_status column + * + * Example usage: + * + * $query->filterByDbImportStatus(1234); // WHERE import_status = 1234 + * $query->filterByDbImportStatus(array(12, 34)); // WHERE import_status IN (12, 34) + * $query->filterByDbImportStatus(array('min' => 12)); // WHERE import_status >= 12 + * $query->filterByDbImportStatus(array('max' => 12)); // WHERE import_status <= 12 + * + * + * @param mixed $dbImportStatus The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbImportStatus($dbImportStatus = null, $comparison = null) + { + if (is_array($dbImportStatus)) { + $useMinMax = false; + if (isset($dbImportStatus['min'])) { + $this->addUsingAlias(CcFilesPeer::IMPORT_STATUS, $dbImportStatus['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbImportStatus['max'])) { + $this->addUsingAlias(CcFilesPeer::IMPORT_STATUS, $dbImportStatus['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::IMPORT_STATUS, $dbImportStatus, $comparison); + } + + /** + * Filter the query on the currentlyaccessing column + * + * Example usage: + * + * $query->filterByDbCurrentlyaccessing(1234); // WHERE currentlyaccessing = 1234 + * $query->filterByDbCurrentlyaccessing(array(12, 34)); // WHERE currentlyaccessing IN (12, 34) + * $query->filterByDbCurrentlyaccessing(array('min' => 12)); // WHERE currentlyaccessing >= 12 + * $query->filterByDbCurrentlyaccessing(array('max' => 12)); // WHERE currentlyaccessing <= 12 + * + * + * @param mixed $dbCurrentlyaccessing The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbCurrentlyaccessing($dbCurrentlyaccessing = null, $comparison = null) + { + if (is_array($dbCurrentlyaccessing)) { + $useMinMax = false; + if (isset($dbCurrentlyaccessing['min'])) { + $this->addUsingAlias(CcFilesPeer::CURRENTLYACCESSING, $dbCurrentlyaccessing['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbCurrentlyaccessing['max'])) { + $this->addUsingAlias(CcFilesPeer::CURRENTLYACCESSING, $dbCurrentlyaccessing['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::CURRENTLYACCESSING, $dbCurrentlyaccessing, $comparison); + } + + /** + * Filter the query on the editedby column + * + * Example usage: + * + * $query->filterByDbEditedby(1234); // WHERE editedby = 1234 + * $query->filterByDbEditedby(array(12, 34)); // WHERE editedby IN (12, 34) + * $query->filterByDbEditedby(array('min' => 12)); // WHERE editedby >= 12 + * $query->filterByDbEditedby(array('max' => 12)); // WHERE editedby <= 12 + * + * + * @see filterByCcSubjsRelatedByDbEditedby() + * + * @param mixed $dbEditedby The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbEditedby($dbEditedby = null, $comparison = null) + { + if (is_array($dbEditedby)) { + $useMinMax = false; + if (isset($dbEditedby['min'])) { + $this->addUsingAlias(CcFilesPeer::EDITEDBY, $dbEditedby['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbEditedby['max'])) { + $this->addUsingAlias(CcFilesPeer::EDITEDBY, $dbEditedby['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::EDITEDBY, $dbEditedby, $comparison); + } + + /** + * Filter the query on the mtime column + * + * Example usage: + * + * $query->filterByDbMtime('2011-03-14'); // WHERE mtime = '2011-03-14' + * $query->filterByDbMtime('now'); // WHERE mtime = '2011-03-14' + * $query->filterByDbMtime(array('max' => 'yesterday')); // WHERE mtime < '2011-03-13' + * + * + * @param mixed $dbMtime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbMtime($dbMtime = null, $comparison = null) + { + if (is_array($dbMtime)) { + $useMinMax = false; + if (isset($dbMtime['min'])) { + $this->addUsingAlias(CcFilesPeer::MTIME, $dbMtime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbMtime['max'])) { + $this->addUsingAlias(CcFilesPeer::MTIME, $dbMtime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::MTIME, $dbMtime, $comparison); + } + + /** + * Filter the query on the utime column + * + * Example usage: + * + * $query->filterByDbUtime('2011-03-14'); // WHERE utime = '2011-03-14' + * $query->filterByDbUtime('now'); // WHERE utime = '2011-03-14' + * $query->filterByDbUtime(array('max' => 'yesterday')); // WHERE utime < '2011-03-13' + * + * + * @param mixed $dbUtime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbUtime($dbUtime = null, $comparison = null) + { + if (is_array($dbUtime)) { + $useMinMax = false; + if (isset($dbUtime['min'])) { + $this->addUsingAlias(CcFilesPeer::UTIME, $dbUtime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbUtime['max'])) { + $this->addUsingAlias(CcFilesPeer::UTIME, $dbUtime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::UTIME, $dbUtime, $comparison); + } + + /** + * Filter the query on the lptime column + * + * Example usage: + * + * $query->filterByDbLPtime('2011-03-14'); // WHERE lptime = '2011-03-14' + * $query->filterByDbLPtime('now'); // WHERE lptime = '2011-03-14' + * $query->filterByDbLPtime(array('max' => 'yesterday')); // WHERE lptime < '2011-03-13' + * + * + * @param mixed $dbLPtime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbLPtime($dbLPtime = null, $comparison = null) + { + if (is_array($dbLPtime)) { + $useMinMax = false; + if (isset($dbLPtime['min'])) { + $this->addUsingAlias(CcFilesPeer::LPTIME, $dbLPtime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbLPtime['max'])) { + $this->addUsingAlias(CcFilesPeer::LPTIME, $dbLPtime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::LPTIME, $dbLPtime, $comparison); + } + + /** + * Filter the query on the md5 column + * + * Example usage: + * + * $query->filterByDbMd5('fooValue'); // WHERE md5 = 'fooValue' + * $query->filterByDbMd5('%fooValue%'); // WHERE md5 LIKE '%fooValue%' + * + * + * @param string $dbMd5 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 filterByDbMd5($dbMd5 = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbMd5)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbMd5)) { + $dbMd5 = str_replace('*', '%', $dbMd5); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::MD5, $dbMd5, $comparison); + } + + /** + * Filter the query on the track_title column + * + * Example usage: + * + * $query->filterByDbTrackTitle('fooValue'); // WHERE track_title = 'fooValue' + * $query->filterByDbTrackTitle('%fooValue%'); // WHERE track_title LIKE '%fooValue%' + * + * + * @param string $dbTrackTitle 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 filterByDbTrackTitle($dbTrackTitle = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbTrackTitle)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbTrackTitle)) { + $dbTrackTitle = str_replace('*', '%', $dbTrackTitle); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::TRACK_TITLE, $dbTrackTitle, $comparison); + } + + /** + * Filter the query on the artist_name column + * + * Example usage: + * + * $query->filterByDbArtistName('fooValue'); // WHERE artist_name = 'fooValue' + * $query->filterByDbArtistName('%fooValue%'); // WHERE artist_name LIKE '%fooValue%' + * + * + * @param string $dbArtistName 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 filterByDbArtistName($dbArtistName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbArtistName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbArtistName)) { + $dbArtistName = str_replace('*', '%', $dbArtistName); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::ARTIST_NAME, $dbArtistName, $comparison); + } + + /** + * Filter the query on the bit_rate column + * + * Example usage: + * + * $query->filterByDbBitRate(1234); // WHERE bit_rate = 1234 + * $query->filterByDbBitRate(array(12, 34)); // WHERE bit_rate IN (12, 34) + * $query->filterByDbBitRate(array('min' => 12)); // WHERE bit_rate >= 12 + * $query->filterByDbBitRate(array('max' => 12)); // WHERE bit_rate <= 12 + * + * + * @param mixed $dbBitRate The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbBitRate($dbBitRate = null, $comparison = null) + { + if (is_array($dbBitRate)) { + $useMinMax = false; + if (isset($dbBitRate['min'])) { + $this->addUsingAlias(CcFilesPeer::BIT_RATE, $dbBitRate['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbBitRate['max'])) { + $this->addUsingAlias(CcFilesPeer::BIT_RATE, $dbBitRate['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::BIT_RATE, $dbBitRate, $comparison); + } + + /** + * Filter the query on the sample_rate column + * + * Example usage: + * + * $query->filterByDbSampleRate(1234); // WHERE sample_rate = 1234 + * $query->filterByDbSampleRate(array(12, 34)); // WHERE sample_rate IN (12, 34) + * $query->filterByDbSampleRate(array('min' => 12)); // WHERE sample_rate >= 12 + * $query->filterByDbSampleRate(array('max' => 12)); // WHERE sample_rate <= 12 + * + * + * @param mixed $dbSampleRate The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbSampleRate($dbSampleRate = null, $comparison = null) + { + if (is_array($dbSampleRate)) { + $useMinMax = false; + if (isset($dbSampleRate['min'])) { + $this->addUsingAlias(CcFilesPeer::SAMPLE_RATE, $dbSampleRate['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbSampleRate['max'])) { + $this->addUsingAlias(CcFilesPeer::SAMPLE_RATE, $dbSampleRate['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::SAMPLE_RATE, $dbSampleRate, $comparison); + } + + /** + * Filter the query on the format column + * + * Example usage: + * + * $query->filterByDbFormat('fooValue'); // WHERE format = 'fooValue' + * $query->filterByDbFormat('%fooValue%'); // WHERE format LIKE '%fooValue%' + * + * + * @param string $dbFormat 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 filterByDbFormat($dbFormat = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbFormat)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbFormat)) { + $dbFormat = str_replace('*', '%', $dbFormat); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::FORMAT, $dbFormat, $comparison); + } + + /** + * Filter the query on the length column + * + * Example usage: + * + * $query->filterByDbLength('fooValue'); // WHERE length = 'fooValue' + * $query->filterByDbLength('%fooValue%'); // WHERE length LIKE '%fooValue%' + * + * + * @param string $dbLength 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 filterByDbLength($dbLength = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLength)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLength)) { + $dbLength = str_replace('*', '%', $dbLength); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::LENGTH, $dbLength, $comparison); + } + + /** + * Filter the query on the album_title column + * + * Example usage: + * + * $query->filterByDbAlbumTitle('fooValue'); // WHERE album_title = 'fooValue' + * $query->filterByDbAlbumTitle('%fooValue%'); // WHERE album_title LIKE '%fooValue%' + * + * + * @param string $dbAlbumTitle 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 filterByDbAlbumTitle($dbAlbumTitle = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbAlbumTitle)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbAlbumTitle)) { + $dbAlbumTitle = str_replace('*', '%', $dbAlbumTitle); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::ALBUM_TITLE, $dbAlbumTitle, $comparison); + } + + /** + * Filter the query on the genre column + * + * Example usage: + * + * $query->filterByDbGenre('fooValue'); // WHERE genre = 'fooValue' + * $query->filterByDbGenre('%fooValue%'); // WHERE genre LIKE '%fooValue%' + * + * + * @param string $dbGenre 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 filterByDbGenre($dbGenre = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbGenre)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbGenre)) { + $dbGenre = str_replace('*', '%', $dbGenre); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::GENRE, $dbGenre, $comparison); + } + + /** + * Filter the query on the comments column + * + * Example usage: + * + * $query->filterByDbComments('fooValue'); // WHERE comments = 'fooValue' + * $query->filterByDbComments('%fooValue%'); // WHERE comments LIKE '%fooValue%' + * + * + * @param string $dbComments 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 filterByDbComments($dbComments = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbComments)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbComments)) { + $dbComments = str_replace('*', '%', $dbComments); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::COMMENTS, $dbComments, $comparison); + } + + /** + * Filter the query on the year column + * + * Example usage: + * + * $query->filterByDbYear('fooValue'); // WHERE year = 'fooValue' + * $query->filterByDbYear('%fooValue%'); // WHERE year LIKE '%fooValue%' + * + * + * @param string $dbYear 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 filterByDbYear($dbYear = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbYear)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbYear)) { + $dbYear = str_replace('*', '%', $dbYear); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::YEAR, $dbYear, $comparison); + } + + /** + * Filter the query on the track_number column + * + * Example usage: + * + * $query->filterByDbTrackNumber(1234); // WHERE track_number = 1234 + * $query->filterByDbTrackNumber(array(12, 34)); // WHERE track_number IN (12, 34) + * $query->filterByDbTrackNumber(array('min' => 12)); // WHERE track_number >= 12 + * $query->filterByDbTrackNumber(array('max' => 12)); // WHERE track_number <= 12 + * + * + * @param mixed $dbTrackNumber The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbTrackNumber($dbTrackNumber = null, $comparison = null) + { + if (is_array($dbTrackNumber)) { + $useMinMax = false; + if (isset($dbTrackNumber['min'])) { + $this->addUsingAlias(CcFilesPeer::TRACK_NUMBER, $dbTrackNumber['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbTrackNumber['max'])) { + $this->addUsingAlias(CcFilesPeer::TRACK_NUMBER, $dbTrackNumber['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::TRACK_NUMBER, $dbTrackNumber, $comparison); + } + + /** + * Filter the query on the channels column + * + * Example usage: + * + * $query->filterByDbChannels(1234); // WHERE channels = 1234 + * $query->filterByDbChannels(array(12, 34)); // WHERE channels IN (12, 34) + * $query->filterByDbChannels(array('min' => 12)); // WHERE channels >= 12 + * $query->filterByDbChannels(array('max' => 12)); // WHERE channels <= 12 + * + * + * @param mixed $dbChannels The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbChannels($dbChannels = null, $comparison = null) + { + if (is_array($dbChannels)) { + $useMinMax = false; + if (isset($dbChannels['min'])) { + $this->addUsingAlias(CcFilesPeer::CHANNELS, $dbChannels['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbChannels['max'])) { + $this->addUsingAlias(CcFilesPeer::CHANNELS, $dbChannels['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::CHANNELS, $dbChannels, $comparison); + } + + /** + * Filter the query on the url column + * + * Example usage: + * + * $query->filterByDbUrl('fooValue'); // WHERE url = 'fooValue' + * $query->filterByDbUrl('%fooValue%'); // WHERE url LIKE '%fooValue%' + * + * + * @param string $dbUrl 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 filterByDbUrl($dbUrl = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbUrl)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbUrl)) { + $dbUrl = str_replace('*', '%', $dbUrl); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::URL, $dbUrl, $comparison); + } + + /** + * Filter the query on the bpm column + * + * Example usage: + * + * $query->filterByDbBpm(1234); // WHERE bpm = 1234 + * $query->filterByDbBpm(array(12, 34)); // WHERE bpm IN (12, 34) + * $query->filterByDbBpm(array('min' => 12)); // WHERE bpm >= 12 + * $query->filterByDbBpm(array('max' => 12)); // WHERE bpm <= 12 + * + * + * @param mixed $dbBpm The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbBpm($dbBpm = null, $comparison = null) + { + if (is_array($dbBpm)) { + $useMinMax = false; + if (isset($dbBpm['min'])) { + $this->addUsingAlias(CcFilesPeer::BPM, $dbBpm['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbBpm['max'])) { + $this->addUsingAlias(CcFilesPeer::BPM, $dbBpm['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::BPM, $dbBpm, $comparison); + } + + /** + * Filter the query on the rating column + * + * Example usage: + * + * $query->filterByDbRating('fooValue'); // WHERE rating = 'fooValue' + * $query->filterByDbRating('%fooValue%'); // WHERE rating LIKE '%fooValue%' + * + * + * @param string $dbRating 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 filterByDbRating($dbRating = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbRating)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbRating)) { + $dbRating = str_replace('*', '%', $dbRating); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::RATING, $dbRating, $comparison); + } + + /** + * Filter the query on the encoded_by column + * + * Example usage: + * + * $query->filterByDbEncodedBy('fooValue'); // WHERE encoded_by = 'fooValue' + * $query->filterByDbEncodedBy('%fooValue%'); // WHERE encoded_by LIKE '%fooValue%' + * + * + * @param string $dbEncodedBy 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 filterByDbEncodedBy($dbEncodedBy = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbEncodedBy)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbEncodedBy)) { + $dbEncodedBy = str_replace('*', '%', $dbEncodedBy); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::ENCODED_BY, $dbEncodedBy, $comparison); + } + + /** + * Filter the query on the disc_number column + * + * Example usage: + * + * $query->filterByDbDiscNumber('fooValue'); // WHERE disc_number = 'fooValue' + * $query->filterByDbDiscNumber('%fooValue%'); // WHERE disc_number LIKE '%fooValue%' + * + * + * @param string $dbDiscNumber 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 filterByDbDiscNumber($dbDiscNumber = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbDiscNumber)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbDiscNumber)) { + $dbDiscNumber = str_replace('*', '%', $dbDiscNumber); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::DISC_NUMBER, $dbDiscNumber, $comparison); + } + + /** + * Filter the query on the mood column + * + * Example usage: + * + * $query->filterByDbMood('fooValue'); // WHERE mood = 'fooValue' + * $query->filterByDbMood('%fooValue%'); // WHERE mood LIKE '%fooValue%' + * + * + * @param string $dbMood 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 filterByDbMood($dbMood = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbMood)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbMood)) { + $dbMood = str_replace('*', '%', $dbMood); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::MOOD, $dbMood, $comparison); + } + + /** + * Filter the query on the label column + * + * Example usage: + * + * $query->filterByDbLabel('fooValue'); // WHERE label = 'fooValue' + * $query->filterByDbLabel('%fooValue%'); // WHERE label LIKE '%fooValue%' + * + * + * @param string $dbLabel 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 filterByDbLabel($dbLabel = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLabel)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLabel)) { + $dbLabel = str_replace('*', '%', $dbLabel); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::LABEL, $dbLabel, $comparison); + } + + /** + * Filter the query on the composer column + * + * Example usage: + * + * $query->filterByDbComposer('fooValue'); // WHERE composer = 'fooValue' + * $query->filterByDbComposer('%fooValue%'); // WHERE composer LIKE '%fooValue%' + * + * + * @param string $dbComposer 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 filterByDbComposer($dbComposer = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbComposer)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbComposer)) { + $dbComposer = str_replace('*', '%', $dbComposer); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::COMPOSER, $dbComposer, $comparison); + } + + /** + * Filter the query on the encoder column + * + * Example usage: + * + * $query->filterByDbEncoder('fooValue'); // WHERE encoder = 'fooValue' + * $query->filterByDbEncoder('%fooValue%'); // WHERE encoder LIKE '%fooValue%' + * + * + * @param string $dbEncoder 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 filterByDbEncoder($dbEncoder = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbEncoder)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbEncoder)) { + $dbEncoder = str_replace('*', '%', $dbEncoder); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::ENCODER, $dbEncoder, $comparison); + } + + /** + * Filter the query on the checksum column + * + * Example usage: + * + * $query->filterByDbChecksum('fooValue'); // WHERE checksum = 'fooValue' + * $query->filterByDbChecksum('%fooValue%'); // WHERE checksum LIKE '%fooValue%' + * + * + * @param string $dbChecksum 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 filterByDbChecksum($dbChecksum = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbChecksum)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbChecksum)) { + $dbChecksum = str_replace('*', '%', $dbChecksum); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::CHECKSUM, $dbChecksum, $comparison); + } + + /** + * Filter the query on the lyrics column + * + * Example usage: + * + * $query->filterByDbLyrics('fooValue'); // WHERE lyrics = 'fooValue' + * $query->filterByDbLyrics('%fooValue%'); // WHERE lyrics LIKE '%fooValue%' + * + * + * @param string $dbLyrics 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 filterByDbLyrics($dbLyrics = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLyrics)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLyrics)) { + $dbLyrics = str_replace('*', '%', $dbLyrics); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::LYRICS, $dbLyrics, $comparison); + } + + /** + * Filter the query on the orchestra column + * + * Example usage: + * + * $query->filterByDbOrchestra('fooValue'); // WHERE orchestra = 'fooValue' + * $query->filterByDbOrchestra('%fooValue%'); // WHERE orchestra LIKE '%fooValue%' + * + * + * @param string $dbOrchestra 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 filterByDbOrchestra($dbOrchestra = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbOrchestra)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbOrchestra)) { + $dbOrchestra = str_replace('*', '%', $dbOrchestra); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::ORCHESTRA, $dbOrchestra, $comparison); + } + + /** + * Filter the query on the conductor column + * + * Example usage: + * + * $query->filterByDbConductor('fooValue'); // WHERE conductor = 'fooValue' + * $query->filterByDbConductor('%fooValue%'); // WHERE conductor LIKE '%fooValue%' + * + * + * @param string $dbConductor 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 filterByDbConductor($dbConductor = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbConductor)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbConductor)) { + $dbConductor = str_replace('*', '%', $dbConductor); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::CONDUCTOR, $dbConductor, $comparison); + } + + /** + * Filter the query on the lyricist column + * + * Example usage: + * + * $query->filterByDbLyricist('fooValue'); // WHERE lyricist = 'fooValue' + * $query->filterByDbLyricist('%fooValue%'); // WHERE lyricist LIKE '%fooValue%' + * + * + * @param string $dbLyricist 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 filterByDbLyricist($dbLyricist = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLyricist)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLyricist)) { + $dbLyricist = str_replace('*', '%', $dbLyricist); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::LYRICIST, $dbLyricist, $comparison); + } + + /** + * Filter the query on the original_lyricist column + * + * Example usage: + * + * $query->filterByDbOriginalLyricist('fooValue'); // WHERE original_lyricist = 'fooValue' + * $query->filterByDbOriginalLyricist('%fooValue%'); // WHERE original_lyricist LIKE '%fooValue%' + * + * + * @param string $dbOriginalLyricist 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 filterByDbOriginalLyricist($dbOriginalLyricist = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbOriginalLyricist)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbOriginalLyricist)) { + $dbOriginalLyricist = str_replace('*', '%', $dbOriginalLyricist); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::ORIGINAL_LYRICIST, $dbOriginalLyricist, $comparison); + } + + /** + * Filter the query on the radio_station_name column + * + * Example usage: + * + * $query->filterByDbRadioStationName('fooValue'); // WHERE radio_station_name = 'fooValue' + * $query->filterByDbRadioStationName('%fooValue%'); // WHERE radio_station_name LIKE '%fooValue%' + * + * + * @param string $dbRadioStationName 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 filterByDbRadioStationName($dbRadioStationName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbRadioStationName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbRadioStationName)) { + $dbRadioStationName = str_replace('*', '%', $dbRadioStationName); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::RADIO_STATION_NAME, $dbRadioStationName, $comparison); + } + + /** + * Filter the query on the info_url column + * + * Example usage: + * + * $query->filterByDbInfoUrl('fooValue'); // WHERE info_url = 'fooValue' + * $query->filterByDbInfoUrl('%fooValue%'); // WHERE info_url LIKE '%fooValue%' + * + * + * @param string $dbInfoUrl 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 filterByDbInfoUrl($dbInfoUrl = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbInfoUrl)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbInfoUrl)) { + $dbInfoUrl = str_replace('*', '%', $dbInfoUrl); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::INFO_URL, $dbInfoUrl, $comparison); + } + + /** + * Filter the query on the artist_url column + * + * Example usage: + * + * $query->filterByDbArtistUrl('fooValue'); // WHERE artist_url = 'fooValue' + * $query->filterByDbArtistUrl('%fooValue%'); // WHERE artist_url LIKE '%fooValue%' + * + * + * @param string $dbArtistUrl 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 filterByDbArtistUrl($dbArtistUrl = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbArtistUrl)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbArtistUrl)) { + $dbArtistUrl = str_replace('*', '%', $dbArtistUrl); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::ARTIST_URL, $dbArtistUrl, $comparison); + } + + /** + * Filter the query on the audio_source_url column + * + * Example usage: + * + * $query->filterByDbAudioSourceUrl('fooValue'); // WHERE audio_source_url = 'fooValue' + * $query->filterByDbAudioSourceUrl('%fooValue%'); // WHERE audio_source_url LIKE '%fooValue%' + * + * + * @param string $dbAudioSourceUrl 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 filterByDbAudioSourceUrl($dbAudioSourceUrl = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbAudioSourceUrl)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbAudioSourceUrl)) { + $dbAudioSourceUrl = str_replace('*', '%', $dbAudioSourceUrl); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::AUDIO_SOURCE_URL, $dbAudioSourceUrl, $comparison); + } + + /** + * Filter the query on the radio_station_url column + * + * Example usage: + * + * $query->filterByDbRadioStationUrl('fooValue'); // WHERE radio_station_url = 'fooValue' + * $query->filterByDbRadioStationUrl('%fooValue%'); // WHERE radio_station_url LIKE '%fooValue%' + * + * + * @param string $dbRadioStationUrl 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 filterByDbRadioStationUrl($dbRadioStationUrl = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbRadioStationUrl)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbRadioStationUrl)) { + $dbRadioStationUrl = str_replace('*', '%', $dbRadioStationUrl); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::RADIO_STATION_URL, $dbRadioStationUrl, $comparison); + } + + /** + * Filter the query on the buy_this_url column + * + * Example usage: + * + * $query->filterByDbBuyThisUrl('fooValue'); // WHERE buy_this_url = 'fooValue' + * $query->filterByDbBuyThisUrl('%fooValue%'); // WHERE buy_this_url LIKE '%fooValue%' + * + * + * @param string $dbBuyThisUrl 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 filterByDbBuyThisUrl($dbBuyThisUrl = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbBuyThisUrl)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbBuyThisUrl)) { + $dbBuyThisUrl = str_replace('*', '%', $dbBuyThisUrl); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::BUY_THIS_URL, $dbBuyThisUrl, $comparison); + } + + /** + * Filter the query on the isrc_number column + * + * Example usage: + * + * $query->filterByDbIsrcNumber('fooValue'); // WHERE isrc_number = 'fooValue' + * $query->filterByDbIsrcNumber('%fooValue%'); // WHERE isrc_number LIKE '%fooValue%' + * + * + * @param string $dbIsrcNumber 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 filterByDbIsrcNumber($dbIsrcNumber = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbIsrcNumber)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbIsrcNumber)) { + $dbIsrcNumber = str_replace('*', '%', $dbIsrcNumber); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::ISRC_NUMBER, $dbIsrcNumber, $comparison); + } + + /** + * Filter the query on the catalog_number column + * + * Example usage: + * + * $query->filterByDbCatalogNumber('fooValue'); // WHERE catalog_number = 'fooValue' + * $query->filterByDbCatalogNumber('%fooValue%'); // WHERE catalog_number LIKE '%fooValue%' + * + * + * @param string $dbCatalogNumber 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 filterByDbCatalogNumber($dbCatalogNumber = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbCatalogNumber)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbCatalogNumber)) { + $dbCatalogNumber = str_replace('*', '%', $dbCatalogNumber); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::CATALOG_NUMBER, $dbCatalogNumber, $comparison); + } + + /** + * Filter the query on the original_artist column + * + * Example usage: + * + * $query->filterByDbOriginalArtist('fooValue'); // WHERE original_artist = 'fooValue' + * $query->filterByDbOriginalArtist('%fooValue%'); // WHERE original_artist LIKE '%fooValue%' + * + * + * @param string $dbOriginalArtist 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 filterByDbOriginalArtist($dbOriginalArtist = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbOriginalArtist)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbOriginalArtist)) { + $dbOriginalArtist = str_replace('*', '%', $dbOriginalArtist); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::ORIGINAL_ARTIST, $dbOriginalArtist, $comparison); + } + + /** + * Filter the query on the copyright column + * + * Example usage: + * + * $query->filterByDbCopyright('fooValue'); // WHERE copyright = 'fooValue' + * $query->filterByDbCopyright('%fooValue%'); // WHERE copyright LIKE '%fooValue%' + * + * + * @param string $dbCopyright 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 filterByDbCopyright($dbCopyright = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbCopyright)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbCopyright)) { + $dbCopyright = str_replace('*', '%', $dbCopyright); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::COPYRIGHT, $dbCopyright, $comparison); + } + + /** + * Filter the query on the report_datetime column + * + * Example usage: + * + * $query->filterByDbReportDatetime('fooValue'); // WHERE report_datetime = 'fooValue' + * $query->filterByDbReportDatetime('%fooValue%'); // WHERE report_datetime LIKE '%fooValue%' + * + * + * @param string $dbReportDatetime 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 filterByDbReportDatetime($dbReportDatetime = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbReportDatetime)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbReportDatetime)) { + $dbReportDatetime = str_replace('*', '%', $dbReportDatetime); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::REPORT_DATETIME, $dbReportDatetime, $comparison); + } + + /** + * Filter the query on the report_location column + * + * Example usage: + * + * $query->filterByDbReportLocation('fooValue'); // WHERE report_location = 'fooValue' + * $query->filterByDbReportLocation('%fooValue%'); // WHERE report_location LIKE '%fooValue%' + * + * + * @param string $dbReportLocation 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 filterByDbReportLocation($dbReportLocation = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbReportLocation)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbReportLocation)) { + $dbReportLocation = str_replace('*', '%', $dbReportLocation); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::REPORT_LOCATION, $dbReportLocation, $comparison); + } + + /** + * Filter the query on the report_organization column + * + * Example usage: + * + * $query->filterByDbReportOrganization('fooValue'); // WHERE report_organization = 'fooValue' + * $query->filterByDbReportOrganization('%fooValue%'); // WHERE report_organization LIKE '%fooValue%' + * + * + * @param string $dbReportOrganization 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 filterByDbReportOrganization($dbReportOrganization = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbReportOrganization)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbReportOrganization)) { + $dbReportOrganization = str_replace('*', '%', $dbReportOrganization); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::REPORT_ORGANIZATION, $dbReportOrganization, $comparison); + } + + /** + * Filter the query on the subject column + * + * Example usage: + * + * $query->filterByDbSubject('fooValue'); // WHERE subject = 'fooValue' + * $query->filterByDbSubject('%fooValue%'); // WHERE subject LIKE '%fooValue%' + * + * + * @param string $dbSubject 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 filterByDbSubject($dbSubject = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbSubject)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbSubject)) { + $dbSubject = str_replace('*', '%', $dbSubject); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::SUBJECT, $dbSubject, $comparison); + } + + /** + * Filter the query on the contributor column + * + * Example usage: + * + * $query->filterByDbContributor('fooValue'); // WHERE contributor = 'fooValue' + * $query->filterByDbContributor('%fooValue%'); // WHERE contributor LIKE '%fooValue%' + * + * + * @param string $dbContributor 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 filterByDbContributor($dbContributor = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbContributor)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbContributor)) { + $dbContributor = str_replace('*', '%', $dbContributor); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::CONTRIBUTOR, $dbContributor, $comparison); + } + + /** + * Filter the query on the language column + * + * Example usage: + * + * $query->filterByDbLanguage('fooValue'); // WHERE language = 'fooValue' + * $query->filterByDbLanguage('%fooValue%'); // WHERE language LIKE '%fooValue%' + * + * + * @param string $dbLanguage 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 filterByDbLanguage($dbLanguage = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLanguage)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLanguage)) { + $dbLanguage = str_replace('*', '%', $dbLanguage); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::LANGUAGE, $dbLanguage, $comparison); + } + + /** + * Filter the query on the file_exists column + * + * Example usage: + * + * $query->filterByDbFileExists(true); // WHERE file_exists = true + * $query->filterByDbFileExists('yes'); // WHERE file_exists = true + * + * + * @param boolean|string $dbFileExists The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbFileExists($dbFileExists = null, $comparison = null) + { + if (is_string($dbFileExists)) { + $dbFileExists = in_array(strtolower($dbFileExists), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(CcFilesPeer::FILE_EXISTS, $dbFileExists, $comparison); + } + + /** + * Filter the query on the soundcloud_id column + * + * Example usage: + * + * $query->filterByDbSoundcloudId(1234); // WHERE soundcloud_id = 1234 + * $query->filterByDbSoundcloudId(array(12, 34)); // WHERE soundcloud_id IN (12, 34) + * $query->filterByDbSoundcloudId(array('min' => 12)); // WHERE soundcloud_id >= 12 + * $query->filterByDbSoundcloudId(array('max' => 12)); // WHERE soundcloud_id <= 12 + * + * + * @param mixed $dbSoundcloudId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbSoundcloudId($dbSoundcloudId = null, $comparison = null) + { + if (is_array($dbSoundcloudId)) { + $useMinMax = false; + if (isset($dbSoundcloudId['min'])) { + $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_ID, $dbSoundcloudId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbSoundcloudId['max'])) { + $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_ID, $dbSoundcloudId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_ID, $dbSoundcloudId, $comparison); + } + + /** + * Filter the query on the soundcloud_error_code column + * + * Example usage: + * + * $query->filterByDbSoundcloudErrorCode(1234); // WHERE soundcloud_error_code = 1234 + * $query->filterByDbSoundcloudErrorCode(array(12, 34)); // WHERE soundcloud_error_code IN (12, 34) + * $query->filterByDbSoundcloudErrorCode(array('min' => 12)); // WHERE soundcloud_error_code >= 12 + * $query->filterByDbSoundcloudErrorCode(array('max' => 12)); // WHERE soundcloud_error_code <= 12 + * + * + * @param mixed $dbSoundcloudErrorCode The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbSoundcloudErrorCode($dbSoundcloudErrorCode = null, $comparison = null) + { + if (is_array($dbSoundcloudErrorCode)) { + $useMinMax = false; + if (isset($dbSoundcloudErrorCode['min'])) { + $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_ERROR_CODE, $dbSoundcloudErrorCode['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbSoundcloudErrorCode['max'])) { + $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_ERROR_CODE, $dbSoundcloudErrorCode['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_ERROR_CODE, $dbSoundcloudErrorCode, $comparison); + } + + /** + * Filter the query on the soundcloud_error_msg column + * + * Example usage: + * + * $query->filterByDbSoundcloudErrorMsg('fooValue'); // WHERE soundcloud_error_msg = 'fooValue' + * $query->filterByDbSoundcloudErrorMsg('%fooValue%'); // WHERE soundcloud_error_msg LIKE '%fooValue%' + * + * + * @param string $dbSoundcloudErrorMsg 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 filterByDbSoundcloudErrorMsg($dbSoundcloudErrorMsg = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbSoundcloudErrorMsg)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbSoundcloudErrorMsg)) { + $dbSoundcloudErrorMsg = str_replace('*', '%', $dbSoundcloudErrorMsg); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_ERROR_MSG, $dbSoundcloudErrorMsg, $comparison); + } + + /** + * Filter the query on the soundcloud_link_to_file column + * + * Example usage: + * + * $query->filterByDbSoundcloudLinkToFile('fooValue'); // WHERE soundcloud_link_to_file = 'fooValue' + * $query->filterByDbSoundcloudLinkToFile('%fooValue%'); // WHERE soundcloud_link_to_file LIKE '%fooValue%' + * + * + * @param string $dbSoundcloudLinkToFile 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 filterByDbSoundcloudLinkToFile($dbSoundcloudLinkToFile = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbSoundcloudLinkToFile)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbSoundcloudLinkToFile)) { + $dbSoundcloudLinkToFile = str_replace('*', '%', $dbSoundcloudLinkToFile); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE, $dbSoundcloudLinkToFile, $comparison); + } + + /** + * Filter the query on the soundcloud_upload_time column + * + * Example usage: + * + * $query->filterByDbSoundCloundUploadTime('2011-03-14'); // WHERE soundcloud_upload_time = '2011-03-14' + * $query->filterByDbSoundCloundUploadTime('now'); // WHERE soundcloud_upload_time = '2011-03-14' + * $query->filterByDbSoundCloundUploadTime(array('max' => 'yesterday')); // WHERE soundcloud_upload_time < '2011-03-13' + * + * + * @param mixed $dbSoundCloundUploadTime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbSoundCloundUploadTime($dbSoundCloundUploadTime = null, $comparison = null) + { + if (is_array($dbSoundCloundUploadTime)) { + $useMinMax = false; + if (isset($dbSoundCloundUploadTime['min'])) { + $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME, $dbSoundCloundUploadTime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbSoundCloundUploadTime['max'])) { + $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME, $dbSoundCloundUploadTime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME, $dbSoundCloundUploadTime, $comparison); + } + + /** + * Filter the query on the replay_gain column + * + * Example usage: + * + * $query->filterByDbReplayGain(1234); // WHERE replay_gain = 1234 + * $query->filterByDbReplayGain(array(12, 34)); // WHERE replay_gain IN (12, 34) + * $query->filterByDbReplayGain(array('min' => 12)); // WHERE replay_gain >= 12 + * $query->filterByDbReplayGain(array('max' => 12)); // WHERE replay_gain <= 12 + * + * + * @param mixed $dbReplayGain The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbReplayGain($dbReplayGain = null, $comparison = null) + { + if (is_array($dbReplayGain)) { + $useMinMax = false; + if (isset($dbReplayGain['min'])) { + $this->addUsingAlias(CcFilesPeer::REPLAY_GAIN, $dbReplayGain['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbReplayGain['max'])) { + $this->addUsingAlias(CcFilesPeer::REPLAY_GAIN, $dbReplayGain['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::REPLAY_GAIN, $dbReplayGain, $comparison); + } + + /** + * Filter the query on the owner_id column + * + * Example usage: + * + * $query->filterByDbOwnerId(1234); // WHERE owner_id = 1234 + * $query->filterByDbOwnerId(array(12, 34)); // WHERE owner_id IN (12, 34) + * $query->filterByDbOwnerId(array('min' => 12)); // WHERE owner_id >= 12 + * $query->filterByDbOwnerId(array('max' => 12)); // WHERE owner_id <= 12 + * + * + * @see filterByFkOwner() + * + * @param mixed $dbOwnerId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbOwnerId($dbOwnerId = null, $comparison = null) + { + if (is_array($dbOwnerId)) { + $useMinMax = false; + if (isset($dbOwnerId['min'])) { + $this->addUsingAlias(CcFilesPeer::OWNER_ID, $dbOwnerId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbOwnerId['max'])) { + $this->addUsingAlias(CcFilesPeer::OWNER_ID, $dbOwnerId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcFilesPeer::OWNER_ID, $dbOwnerId, $comparison); + } + + /** + * Filter the query on the cuein column + * + * Example usage: + * + * $query->filterByDbCuein('fooValue'); // WHERE cuein = 'fooValue' + * $query->filterByDbCuein('%fooValue%'); // WHERE cuein LIKE '%fooValue%' + * + * + * @param string $dbCuein 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 filterByDbCuein($dbCuein = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbCuein)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbCuein)) { + $dbCuein = str_replace('*', '%', $dbCuein); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::CUEIN, $dbCuein, $comparison); + } + + /** + * Filter the query on the cueout column + * + * Example usage: + * + * $query->filterByDbCueout('fooValue'); // WHERE cueout = 'fooValue' + * $query->filterByDbCueout('%fooValue%'); // WHERE cueout LIKE '%fooValue%' + * + * + * @param string $dbCueout 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 filterByDbCueout($dbCueout = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbCueout)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbCueout)) { + $dbCueout = str_replace('*', '%', $dbCueout); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcFilesPeer::CUEOUT, $dbCueout, $comparison); + } + + /** + * Filter the query on the silan_check column + * + * Example usage: + * + * $query->filterByDbSilanCheck(true); // WHERE silan_check = true + * $query->filterByDbSilanCheck('yes'); // WHERE silan_check = true + * + * + * @param boolean|string $dbSilanCheck The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbSilanCheck($dbSilanCheck = null, $comparison = null) + { + if (is_string($dbSilanCheck)) { + $dbSilanCheck = in_array(strtolower($dbSilanCheck), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(CcFilesPeer::SILAN_CHECK, $dbSilanCheck, $comparison); + } + + /** + * Filter the query on the hidden column + * + * Example usage: + * + * $query->filterByDbHidden(true); // WHERE hidden = true + * $query->filterByDbHidden('yes'); // WHERE hidden = true + * + * + * @param boolean|string $dbHidden The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbHidden($dbHidden = null, $comparison = null) + { + if (is_string($dbHidden)) { + $dbHidden = in_array(strtolower($dbHidden), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(CcFilesPeer::HIDDEN, $dbHidden, $comparison); + } + + /** + * Filter the query on the is_scheduled column + * + * Example usage: + * + * $query->filterByDbIsScheduled(true); // WHERE is_scheduled = true + * $query->filterByDbIsScheduled('yes'); // WHERE is_scheduled = true + * + * + * @param boolean|string $dbIsScheduled The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbIsScheduled($dbIsScheduled = null, $comparison = null) + { + if (is_string($dbIsScheduled)) { + $dbIsScheduled = in_array(strtolower($dbIsScheduled), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(CcFilesPeer::IS_SCHEDULED, $dbIsScheduled, $comparison); + } + + /** + * Filter the query on the is_playlist column + * + * Example usage: + * + * $query->filterByDbIsPlaylist(true); // WHERE is_playlist = true + * $query->filterByDbIsPlaylist('yes'); // WHERE is_playlist = true + * + * + * @param boolean|string $dbIsPlaylist The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function filterByDbIsPlaylist($dbIsPlaylist = null, $comparison = null) + { + if (is_string($dbIsPlaylist)) { + $dbIsPlaylist = in_array(strtolower($dbIsPlaylist), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(CcFilesPeer::IS_PLAYLIST, $dbIsPlaylist, $comparison); + } + + /** + * Filter the query by a related CcSubjs object + * + * @param CcSubjs|PropelObjectCollection $ccSubjs The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByFkOwner($ccSubjs, $comparison = null) + { + if ($ccSubjs instanceof CcSubjs) { + return $this + ->addUsingAlias(CcFilesPeer::OWNER_ID, $ccSubjs->getDbId(), $comparison); + } elseif ($ccSubjs instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcFilesPeer::OWNER_ID, $ccSubjs->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByFkOwner() only accepts arguments of type CcSubjs or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the FkOwner relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function joinFkOwner($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('FkOwner'); + + // 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, 'FkOwner'); + } + + return $this; + } + + /** + * Use the FkOwner relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query + */ + public function useFkOwnerQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinFkOwner($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'FkOwner', 'CcSubjsQuery'); + } + + /** + * Filter the query by a related CcSubjs object + * + * @param CcSubjs|PropelObjectCollection $ccSubjs The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcSubjsRelatedByDbEditedby($ccSubjs, $comparison = null) + { + if ($ccSubjs instanceof CcSubjs) { + return $this + ->addUsingAlias(CcFilesPeer::EDITEDBY, $ccSubjs->getDbId(), $comparison); + } elseif ($ccSubjs instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcFilesPeer::EDITEDBY, $ccSubjs->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcSubjsRelatedByDbEditedby() only accepts arguments of type CcSubjs or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcSubjsRelatedByDbEditedby relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function joinCcSubjsRelatedByDbEditedby($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcSubjsRelatedByDbEditedby'); + + // 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, 'CcSubjsRelatedByDbEditedby'); + } + + return $this; + } + + /** + * Use the CcSubjsRelatedByDbEditedby relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query + */ + public function useCcSubjsRelatedByDbEditedbyQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcSubjsRelatedByDbEditedby($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcSubjsRelatedByDbEditedby', 'CcSubjsQuery'); + } + + /** + * Filter the query by a related CcMusicDirs object + * + * @param CcMusicDirs|PropelObjectCollection $ccMusicDirs The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcMusicDirs($ccMusicDirs, $comparison = null) + { + if ($ccMusicDirs instanceof CcMusicDirs) { + return $this + ->addUsingAlias(CcFilesPeer::DIRECTORY, $ccMusicDirs->getId(), $comparison); + } elseif ($ccMusicDirs instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcFilesPeer::DIRECTORY, $ccMusicDirs->toKeyValue('PrimaryKey', 'Id'), $comparison); + } else { + throw new PropelException('filterByCcMusicDirs() only accepts arguments of type CcMusicDirs or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcMusicDirs relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function joinCcMusicDirs($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcMusicDirs'); + + // 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, 'CcMusicDirs'); + } + + return $this; + } + + /** + * Use the CcMusicDirs relation CcMusicDirs 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 CcMusicDirsQuery A secondary query class using the current class as primary query + */ + public function useCcMusicDirsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcMusicDirs($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcMusicDirs', 'CcMusicDirsQuery'); + } + + /** + * Filter the query by a related CloudFile object + * + * @param CloudFile|PropelObjectCollection $cloudFile the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCloudFile($cloudFile, $comparison = null) + { + if ($cloudFile instanceof CloudFile) { + return $this + ->addUsingAlias(CcFilesPeer::ID, $cloudFile->getCcFileId(), $comparison); + } elseif ($cloudFile instanceof PropelObjectCollection) { + return $this + ->useCloudFileQuery() + ->filterByPrimaryKeys($cloudFile->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCloudFile() only accepts arguments of type CloudFile or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CloudFile relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function joinCloudFile($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CloudFile'); + + // 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, 'CloudFile'); + } + + return $this; + } + + /** + * Use the CloudFile relation CloudFile 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 CloudFileQuery A secondary query class using the current class as primary query + */ + public function useCloudFileQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCloudFile($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CloudFile', 'CloudFileQuery'); + } + + /** + * Filter the query by a related CcShowInstances object + * + * @param CcShowInstances|PropelObjectCollection $ccShowInstances the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcShowInstances($ccShowInstances, $comparison = null) + { + if ($ccShowInstances instanceof CcShowInstances) { + return $this + ->addUsingAlias(CcFilesPeer::ID, $ccShowInstances->getDbRecordedFile(), $comparison); + } elseif ($ccShowInstances instanceof PropelObjectCollection) { + return $this + ->useCcShowInstancesQuery() + ->filterByPrimaryKeys($ccShowInstances->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcShowInstances() only accepts arguments of type CcShowInstances or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcShowInstances relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function joinCcShowInstances($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcShowInstances'); + + // 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, 'CcShowInstances'); + } + + return $this; + } + + /** + * Use the CcShowInstances relation CcShowInstances 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 CcShowInstancesQuery A secondary query class using the current class as primary query + */ + public function useCcShowInstancesQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcShowInstances($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcShowInstances', 'CcShowInstancesQuery'); + } + + /** + * Filter the query by a related CcPlaylistcontents object + * + * @param CcPlaylistcontents|PropelObjectCollection $ccPlaylistcontents the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcPlaylistcontents($ccPlaylistcontents, $comparison = null) + { + if ($ccPlaylistcontents instanceof CcPlaylistcontents) { + return $this + ->addUsingAlias(CcFilesPeer::ID, $ccPlaylistcontents->getDbFileId(), $comparison); + } elseif ($ccPlaylistcontents instanceof PropelObjectCollection) { + return $this + ->useCcPlaylistcontentsQuery() + ->filterByPrimaryKeys($ccPlaylistcontents->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcPlaylistcontents() only accepts arguments of type CcPlaylistcontents or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcPlaylistcontents relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function joinCcPlaylistcontents($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcPlaylistcontents'); + + // 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, 'CcPlaylistcontents'); + } + + return $this; + } + + /** + * Use the CcPlaylistcontents relation CcPlaylistcontents 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 CcPlaylistcontentsQuery A secondary query class using the current class as primary query + */ + public function useCcPlaylistcontentsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcPlaylistcontents($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcPlaylistcontents', 'CcPlaylistcontentsQuery'); + } + + /** + * Filter the query by a related CcBlockcontents object + * + * @param CcBlockcontents|PropelObjectCollection $ccBlockcontents the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcBlockcontents($ccBlockcontents, $comparison = null) + { + if ($ccBlockcontents instanceof CcBlockcontents) { + return $this + ->addUsingAlias(CcFilesPeer::ID, $ccBlockcontents->getDbFileId(), $comparison); + } elseif ($ccBlockcontents instanceof PropelObjectCollection) { + return $this + ->useCcBlockcontentsQuery() + ->filterByPrimaryKeys($ccBlockcontents->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcBlockcontents() only accepts arguments of type CcBlockcontents or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcBlockcontents relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function joinCcBlockcontents($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcBlockcontents'); + + // 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, 'CcBlockcontents'); + } + + return $this; + } + + /** + * Use the CcBlockcontents relation CcBlockcontents 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 CcBlockcontentsQuery A secondary query class using the current class as primary query + */ + public function useCcBlockcontentsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcBlockcontents($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcBlockcontents', 'CcBlockcontentsQuery'); + } + + /** + * Filter the query by a related CcSchedule object + * + * @param CcSchedule|PropelObjectCollection $ccSchedule the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcSchedule($ccSchedule, $comparison = null) + { + if ($ccSchedule instanceof CcSchedule) { + return $this + ->addUsingAlias(CcFilesPeer::ID, $ccSchedule->getDbFileId(), $comparison); + } elseif ($ccSchedule instanceof PropelObjectCollection) { + return $this + ->useCcScheduleQuery() + ->filterByPrimaryKeys($ccSchedule->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcSchedule() only accepts arguments of type CcSchedule or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcSchedule relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function joinCcSchedule($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcSchedule'); + + // 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, 'CcSchedule'); + } + + return $this; + } + + /** + * Use the CcSchedule relation CcSchedule 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 CcScheduleQuery A secondary query class using the current class as primary query + */ + public function useCcScheduleQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcSchedule($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcSchedule', 'CcScheduleQuery'); + } + + /** + * Filter the query by a related CcPlayoutHistory object + * + * @param CcPlayoutHistory|PropelObjectCollection $ccPlayoutHistory the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcFilesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcPlayoutHistory($ccPlayoutHistory, $comparison = null) + { + if ($ccPlayoutHistory instanceof CcPlayoutHistory) { + return $this + ->addUsingAlias(CcFilesPeer::ID, $ccPlayoutHistory->getDbFileId(), $comparison); + } elseif ($ccPlayoutHistory instanceof PropelObjectCollection) { + return $this + ->useCcPlayoutHistoryQuery() + ->filterByPrimaryKeys($ccPlayoutHistory->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcPlayoutHistory() only accepts arguments of type CcPlayoutHistory or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcPlayoutHistory relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function joinCcPlayoutHistory($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcPlayoutHistory'); + + // 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, 'CcPlayoutHistory'); + } + + return $this; + } + + /** + * Use the CcPlayoutHistory relation CcPlayoutHistory 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 CcPlayoutHistoryQuery A secondary query class using the current class as primary query + */ + public function useCcPlayoutHistoryQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcPlayoutHistory($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcPlayoutHistory', 'CcPlayoutHistoryQuery'); + } + + /** + * Exclude object from result + * + * @param CcFiles $ccFiles Object to remove from the list of results + * + * @return CcFilesQuery The current query, for fluid interface + */ + public function prune($ccFiles = null) + { + if ($ccFiles) { + $this->addUsingAlias(CcFilesPeer::ID, $ccFiles->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcListenerCount.php b/airtime_mvc/application/models/airtime/om/BaseCcListenerCount.php index 42c435123c..bd6044c339 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcListenerCount.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcListenerCount.php @@ -4,981 +4,1133 @@ /** * Base class that represents a row from the 'cc_listener_count' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcListenerCount extends BaseObject implements Persistent +abstract class BaseCcListenerCount extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcListenerCountPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcListenerCountPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the timestamp_id field. - * @var int - */ - protected $timestamp_id; - - /** - * The value for the mount_name_id field. - * @var int - */ - protected $mount_name_id; - - /** - * The value for the listener_count field. - * @var int - */ - protected $listener_count; - - /** - * @var CcTimestamp - */ - protected $aCcTimestamp; - - /** - * @var CcMountName - */ - protected $aCcMountName; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [timestamp_id] column value. - * - * @return int - */ - public function getDbTimestampId() - { - return $this->timestamp_id; - } - - /** - * Get the [mount_name_id] column value. - * - * @return int - */ - public function getDbMountNameId() - { - return $this->mount_name_id; - } - - /** - * Get the [listener_count] column value. - * - * @return int - */ - public function getDbListenerCount() - { - return $this->listener_count; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcListenerCount The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcListenerCountPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [timestamp_id] column. - * - * @param int $v new value - * @return CcListenerCount The current object (for fluent API support) - */ - public function setDbTimestampId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->timestamp_id !== $v) { - $this->timestamp_id = $v; - $this->modifiedColumns[] = CcListenerCountPeer::TIMESTAMP_ID; - } - - if ($this->aCcTimestamp !== null && $this->aCcTimestamp->getDbId() !== $v) { - $this->aCcTimestamp = null; - } - - return $this; - } // setDbTimestampId() - - /** - * Set the value of [mount_name_id] column. - * - * @param int $v new value - * @return CcListenerCount The current object (for fluent API support) - */ - public function setDbMountNameId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->mount_name_id !== $v) { - $this->mount_name_id = $v; - $this->modifiedColumns[] = CcListenerCountPeer::MOUNT_NAME_ID; - } - - if ($this->aCcMountName !== null && $this->aCcMountName->getDbId() !== $v) { - $this->aCcMountName = null; - } - - return $this; - } // setDbMountNameId() - - /** - * Set the value of [listener_count] column. - * - * @param int $v new value - * @return CcListenerCount The current object (for fluent API support) - */ - public function setDbListenerCount($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->listener_count !== $v) { - $this->listener_count = $v; - $this->modifiedColumns[] = CcListenerCountPeer::LISTENER_COUNT; - } - - return $this; - } // setDbListenerCount() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->timestamp_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; - $this->mount_name_id = ($row[$startcol + 2] !== null) ? (int) $row[$startcol + 2] : null; - $this->listener_count = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 4; // 4 = CcListenerCountPeer::NUM_COLUMNS - CcListenerCountPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcListenerCount object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcTimestamp !== null && $this->timestamp_id !== $this->aCcTimestamp->getDbId()) { - $this->aCcTimestamp = null; - } - if ($this->aCcMountName !== null && $this->mount_name_id !== $this->aCcMountName->getDbId()) { - $this->aCcMountName = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcListenerCountPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcTimestamp = null; - $this->aCcMountName = null; - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcListenerCountQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcListenerCountPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcTimestamp !== null) { - if ($this->aCcTimestamp->isModified() || $this->aCcTimestamp->isNew()) { - $affectedRows += $this->aCcTimestamp->save($con); - } - $this->setCcTimestamp($this->aCcTimestamp); - } - - if ($this->aCcMountName !== null) { - if ($this->aCcMountName->isModified() || $this->aCcMountName->isNew()) { - $affectedRows += $this->aCcMountName->save($con); - } - $this->setCcMountName($this->aCcMountName); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcListenerCountPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcListenerCountPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcListenerCountPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcListenerCountPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcTimestamp !== null) { - if (!$this->aCcTimestamp->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcTimestamp->getValidationFailures()); - } - } - - if ($this->aCcMountName !== null) { - if (!$this->aCcMountName->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcMountName->getValidationFailures()); - } - } - - - if (($retval = CcListenerCountPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcListenerCountPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbTimestampId(); - break; - case 2: - return $this->getDbMountNameId(); - break; - case 3: - return $this->getDbListenerCount(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcListenerCountPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbTimestampId(), - $keys[2] => $this->getDbMountNameId(), - $keys[3] => $this->getDbListenerCount(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcTimestamp) { - $result['CcTimestamp'] = $this->aCcTimestamp->toArray($keyType, $includeLazyLoadColumns, true); - } - if (null !== $this->aCcMountName) { - $result['CcMountName'] = $this->aCcMountName->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcListenerCountPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbTimestampId($value); - break; - case 2: - $this->setDbMountNameId($value); - break; - case 3: - $this->setDbListenerCount($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcListenerCountPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbTimestampId($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbMountNameId($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbListenerCount($arr[$keys[3]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcListenerCountPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcListenerCountPeer::ID)) $criteria->add(CcListenerCountPeer::ID, $this->id); - if ($this->isColumnModified(CcListenerCountPeer::TIMESTAMP_ID)) $criteria->add(CcListenerCountPeer::TIMESTAMP_ID, $this->timestamp_id); - if ($this->isColumnModified(CcListenerCountPeer::MOUNT_NAME_ID)) $criteria->add(CcListenerCountPeer::MOUNT_NAME_ID, $this->mount_name_id); - if ($this->isColumnModified(CcListenerCountPeer::LISTENER_COUNT)) $criteria->add(CcListenerCountPeer::LISTENER_COUNT, $this->listener_count); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcListenerCountPeer::DATABASE_NAME); - $criteria->add(CcListenerCountPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcListenerCount (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbTimestampId($this->timestamp_id); - $copyObj->setDbMountNameId($this->mount_name_id); - $copyObj->setDbListenerCount($this->listener_count); - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcListenerCount Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcListenerCountPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcListenerCountPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcTimestamp object. - * - * @param CcTimestamp $v - * @return CcListenerCount The current object (for fluent API support) - * @throws PropelException - */ - public function setCcTimestamp(CcTimestamp $v = null) - { - if ($v === null) { - $this->setDbTimestampId(NULL); - } else { - $this->setDbTimestampId($v->getDbId()); - } - - $this->aCcTimestamp = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcTimestamp object, it will not be re-added. - if ($v !== null) { - $v->addCcListenerCount($this); - } - - return $this; - } - - - /** - * Get the associated CcTimestamp object - * - * @param PropelPDO Optional Connection object. - * @return CcTimestamp The associated CcTimestamp object. - * @throws PropelException - */ - public function getCcTimestamp(PropelPDO $con = null) - { - if ($this->aCcTimestamp === null && ($this->timestamp_id !== null)) { - $this->aCcTimestamp = CcTimestampQuery::create()->findPk($this->timestamp_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcTimestamp->addCcListenerCounts($this); - */ - } - return $this->aCcTimestamp; - } - - /** - * Declares an association between this object and a CcMountName object. - * - * @param CcMountName $v - * @return CcListenerCount The current object (for fluent API support) - * @throws PropelException - */ - public function setCcMountName(CcMountName $v = null) - { - if ($v === null) { - $this->setDbMountNameId(NULL); - } else { - $this->setDbMountNameId($v->getDbId()); - } - - $this->aCcMountName = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcMountName object, it will not be re-added. - if ($v !== null) { - $v->addCcListenerCount($this); - } - - return $this; - } - - - /** - * Get the associated CcMountName object - * - * @param PropelPDO Optional Connection object. - * @return CcMountName The associated CcMountName object. - * @throws PropelException - */ - public function getCcMountName(PropelPDO $con = null) - { - if ($this->aCcMountName === null && ($this->mount_name_id !== null)) { - $this->aCcMountName = CcMountNameQuery::create()->findPk($this->mount_name_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcMountName->addCcListenerCounts($this); - */ - } - return $this->aCcMountName; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->timestamp_id = null; - $this->mount_name_id = null; - $this->listener_count = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - $this->aCcTimestamp = null; - $this->aCcMountName = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcListenerCount + /** + * Peer class name + */ + const PEER = 'CcListenerCountPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcListenerCountPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the timestamp_id field. + * @var int + */ + protected $timestamp_id; + + /** + * The value for the mount_name_id field. + * @var int + */ + protected $mount_name_id; + + /** + * The value for the listener_count field. + * @var int + */ + protected $listener_count; + + /** + * @var CcTimestamp + */ + protected $aCcTimestamp; + + /** + * @var CcMountName + */ + protected $aCcMountName; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [timestamp_id] column value. + * + * @return int + */ + public function getDbTimestampId() + { + + return $this->timestamp_id; + } + + /** + * Get the [mount_name_id] column value. + * + * @return int + */ + public function getDbMountNameId() + { + + return $this->mount_name_id; + } + + /** + * Get the [listener_count] column value. + * + * @return int + */ + public function getDbListenerCount() + { + + return $this->listener_count; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcListenerCount The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcListenerCountPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [timestamp_id] column. + * + * @param int $v new value + * @return CcListenerCount The current object (for fluent API support) + */ + public function setDbTimestampId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->timestamp_id !== $v) { + $this->timestamp_id = $v; + $this->modifiedColumns[] = CcListenerCountPeer::TIMESTAMP_ID; + } + + if ($this->aCcTimestamp !== null && $this->aCcTimestamp->getDbId() !== $v) { + $this->aCcTimestamp = null; + } + + + return $this; + } // setDbTimestampId() + + /** + * Set the value of [mount_name_id] column. + * + * @param int $v new value + * @return CcListenerCount The current object (for fluent API support) + */ + public function setDbMountNameId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->mount_name_id !== $v) { + $this->mount_name_id = $v; + $this->modifiedColumns[] = CcListenerCountPeer::MOUNT_NAME_ID; + } + + if ($this->aCcMountName !== null && $this->aCcMountName->getDbId() !== $v) { + $this->aCcMountName = null; + } + + + return $this; + } // setDbMountNameId() + + /** + * Set the value of [listener_count] column. + * + * @param int $v new value + * @return CcListenerCount The current object (for fluent API support) + */ + public function setDbListenerCount($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->listener_count !== $v) { + $this->listener_count = $v; + $this->modifiedColumns[] = CcListenerCountPeer::LISTENER_COUNT; + } + + + return $this; + } // setDbListenerCount() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->timestamp_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; + $this->mount_name_id = ($row[$startcol + 2] !== null) ? (int) $row[$startcol + 2] : null; + $this->listener_count = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 4; // 4 = CcListenerCountPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcListenerCount object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcTimestamp !== null && $this->timestamp_id !== $this->aCcTimestamp->getDbId()) { + $this->aCcTimestamp = null; + } + if ($this->aCcMountName !== null && $this->mount_name_id !== $this->aCcMountName->getDbId()) { + $this->aCcMountName = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcListenerCountPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcTimestamp = null; + $this->aCcMountName = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcListenerCountQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcListenerCountPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcTimestamp !== null) { + if ($this->aCcTimestamp->isModified() || $this->aCcTimestamp->isNew()) { + $affectedRows += $this->aCcTimestamp->save($con); + } + $this->setCcTimestamp($this->aCcTimestamp); + } + + if ($this->aCcMountName !== null) { + if ($this->aCcMountName->isModified() || $this->aCcMountName->isNew()) { + $affectedRows += $this->aCcMountName->save($con); + } + $this->setCcMountName($this->aCcMountName); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcListenerCountPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcListenerCountPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_listener_count_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcListenerCountPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcListenerCountPeer::TIMESTAMP_ID)) { + $modifiedColumns[':p' . $index++] = '"timestamp_id"'; + } + if ($this->isColumnModified(CcListenerCountPeer::MOUNT_NAME_ID)) { + $modifiedColumns[':p' . $index++] = '"mount_name_id"'; + } + if ($this->isColumnModified(CcListenerCountPeer::LISTENER_COUNT)) { + $modifiedColumns[':p' . $index++] = '"listener_count"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_listener_count" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"timestamp_id"': + $stmt->bindValue($identifier, $this->timestamp_id, PDO::PARAM_INT); + break; + case '"mount_name_id"': + $stmt->bindValue($identifier, $this->mount_name_id, PDO::PARAM_INT); + break; + case '"listener_count"': + $stmt->bindValue($identifier, $this->listener_count, PDO::PARAM_INT); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcTimestamp !== null) { + if (!$this->aCcTimestamp->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcTimestamp->getValidationFailures()); + } + } + + if ($this->aCcMountName !== null) { + if (!$this->aCcMountName->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcMountName->getValidationFailures()); + } + } + + + if (($retval = CcListenerCountPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcListenerCountPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbTimestampId(); + break; + case 2: + return $this->getDbMountNameId(); + break; + case 3: + return $this->getDbListenerCount(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcListenerCount'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcListenerCount'][$this->getPrimaryKey()] = true; + $keys = CcListenerCountPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbTimestampId(), + $keys[2] => $this->getDbMountNameId(), + $keys[3] => $this->getDbListenerCount(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcTimestamp) { + $result['CcTimestamp'] = $this->aCcTimestamp->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aCcMountName) { + $result['CcMountName'] = $this->aCcMountName->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcListenerCountPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbTimestampId($value); + break; + case 2: + $this->setDbMountNameId($value); + break; + case 3: + $this->setDbListenerCount($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcListenerCountPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbTimestampId($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbMountNameId($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbListenerCount($arr[$keys[3]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcListenerCountPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcListenerCountPeer::ID)) $criteria->add(CcListenerCountPeer::ID, $this->id); + if ($this->isColumnModified(CcListenerCountPeer::TIMESTAMP_ID)) $criteria->add(CcListenerCountPeer::TIMESTAMP_ID, $this->timestamp_id); + if ($this->isColumnModified(CcListenerCountPeer::MOUNT_NAME_ID)) $criteria->add(CcListenerCountPeer::MOUNT_NAME_ID, $this->mount_name_id); + if ($this->isColumnModified(CcListenerCountPeer::LISTENER_COUNT)) $criteria->add(CcListenerCountPeer::LISTENER_COUNT, $this->listener_count); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcListenerCountPeer::DATABASE_NAME); + $criteria->add(CcListenerCountPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcListenerCount (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbTimestampId($this->getDbTimestampId()); + $copyObj->setDbMountNameId($this->getDbMountNameId()); + $copyObj->setDbListenerCount($this->getDbListenerCount()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcListenerCount Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcListenerCountPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcListenerCountPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcTimestamp object. + * + * @param CcTimestamp $v + * @return CcListenerCount The current object (for fluent API support) + * @throws PropelException + */ + public function setCcTimestamp(CcTimestamp $v = null) + { + if ($v === null) { + $this->setDbTimestampId(NULL); + } else { + $this->setDbTimestampId($v->getDbId()); + } + + $this->aCcTimestamp = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcTimestamp object, it will not be re-added. + if ($v !== null) { + $v->addCcListenerCount($this); + } + + + return $this; + } + + + /** + * Get the associated CcTimestamp object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcTimestamp The associated CcTimestamp object. + * @throws PropelException + */ + public function getCcTimestamp(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcTimestamp === null && ($this->timestamp_id !== null) && $doQuery) { + $this->aCcTimestamp = CcTimestampQuery::create()->findPk($this->timestamp_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcTimestamp->addCcListenerCounts($this); + */ + } + + return $this->aCcTimestamp; + } + + /** + * Declares an association between this object and a CcMountName object. + * + * @param CcMountName $v + * @return CcListenerCount The current object (for fluent API support) + * @throws PropelException + */ + public function setCcMountName(CcMountName $v = null) + { + if ($v === null) { + $this->setDbMountNameId(NULL); + } else { + $this->setDbMountNameId($v->getDbId()); + } + + $this->aCcMountName = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcMountName object, it will not be re-added. + if ($v !== null) { + $v->addCcListenerCount($this); + } + + + return $this; + } + + + /** + * Get the associated CcMountName object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcMountName The associated CcMountName object. + * @throws PropelException + */ + public function getCcMountName(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcMountName === null && ($this->mount_name_id !== null) && $doQuery) { + $this->aCcMountName = CcMountNameQuery::create()->findPk($this->mount_name_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcMountName->addCcListenerCounts($this); + */ + } + + return $this->aCcMountName; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->timestamp_id = null; + $this->mount_name_id = null; + $this->listener_count = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcTimestamp instanceof Persistent) { + $this->aCcTimestamp->clearAllReferences($deep); + } + if ($this->aCcMountName instanceof Persistent) { + $this->aCcMountName->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcTimestamp = null; + $this->aCcMountName = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcListenerCountPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcListenerCountPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcListenerCountPeer.php index dad3a53b94..22898a8dd5 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcListenerCountPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcListenerCountPeer.php @@ -4,1363 +4,1395 @@ /** * Base static class for performing query and update operations on the 'cc_listener_count' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcListenerCountPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_listener_count'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcListenerCount'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcListenerCount'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcListenerCountTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 4; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_listener_count.ID'; - - /** the column name for the TIMESTAMP_ID field */ - const TIMESTAMP_ID = 'cc_listener_count.TIMESTAMP_ID'; - - /** the column name for the MOUNT_NAME_ID field */ - const MOUNT_NAME_ID = 'cc_listener_count.MOUNT_NAME_ID'; - - /** the column name for the LISTENER_COUNT field */ - const LISTENER_COUNT = 'cc_listener_count.LISTENER_COUNT'; - - /** - * An identiy map to hold any loaded instances of CcListenerCount objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcListenerCount[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbTimestampId', 'DbMountNameId', 'DbListenerCount', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbTimestampId', 'dbMountNameId', 'dbListenerCount', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::TIMESTAMP_ID, self::MOUNT_NAME_ID, self::LISTENER_COUNT, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'TIMESTAMP_ID', 'MOUNT_NAME_ID', 'LISTENER_COUNT', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'timestamp_id', 'mount_name_id', 'listener_count', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbTimestampId' => 1, 'DbMountNameId' => 2, 'DbListenerCount' => 3, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbTimestampId' => 1, 'dbMountNameId' => 2, 'dbListenerCount' => 3, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::TIMESTAMP_ID => 1, self::MOUNT_NAME_ID => 2, self::LISTENER_COUNT => 3, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'TIMESTAMP_ID' => 1, 'MOUNT_NAME_ID' => 2, 'LISTENER_COUNT' => 3, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'timestamp_id' => 1, 'mount_name_id' => 2, 'listener_count' => 3, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcListenerCountPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcListenerCountPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcListenerCountPeer::ID); - $criteria->addSelectColumn(CcListenerCountPeer::TIMESTAMP_ID); - $criteria->addSelectColumn(CcListenerCountPeer::MOUNT_NAME_ID); - $criteria->addSelectColumn(CcListenerCountPeer::LISTENER_COUNT); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.TIMESTAMP_ID'); - $criteria->addSelectColumn($alias . '.MOUNT_NAME_ID'); - $criteria->addSelectColumn($alias . '.LISTENER_COUNT'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcListenerCountPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcListenerCountPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcListenerCount - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcListenerCountPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcListenerCountPeer::populateObjects(CcListenerCountPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcListenerCountPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcListenerCount $value A CcListenerCount object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcListenerCount $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcListenerCount object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcListenerCount) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcListenerCount object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcListenerCount Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_listener_count - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcListenerCountPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcListenerCountPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcListenerCountPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcListenerCountPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcListenerCount object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcListenerCountPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcListenerCountPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcListenerCountPeer::NUM_COLUMNS; - } else { - $cls = CcListenerCountPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcListenerCountPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcTimestamp table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcTimestamp(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcListenerCountPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcListenerCountPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcListenerCountPeer::TIMESTAMP_ID, CcTimestampPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcMountName table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcMountName(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcListenerCountPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcListenerCountPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcListenerCountPeer::MOUNT_NAME_ID, CcMountNamePeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcListenerCount objects pre-filled with their CcTimestamp objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcListenerCount objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcTimestamp(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcListenerCountPeer::addSelectColumns($criteria); - $startcol = (CcListenerCountPeer::NUM_COLUMNS - CcListenerCountPeer::NUM_LAZY_LOAD_COLUMNS); - CcTimestampPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcListenerCountPeer::TIMESTAMP_ID, CcTimestampPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcListenerCountPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcListenerCountPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcListenerCountPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcListenerCountPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcTimestampPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcTimestampPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcTimestampPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcTimestampPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcListenerCount) to $obj2 (CcTimestamp) - $obj2->addCcListenerCount($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcListenerCount objects pre-filled with their CcMountName objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcListenerCount objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcMountName(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcListenerCountPeer::addSelectColumns($criteria); - $startcol = (CcListenerCountPeer::NUM_COLUMNS - CcListenerCountPeer::NUM_LAZY_LOAD_COLUMNS); - CcMountNamePeer::addSelectColumns($criteria); - - $criteria->addJoin(CcListenerCountPeer::MOUNT_NAME_ID, CcMountNamePeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcListenerCountPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcListenerCountPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcListenerCountPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcListenerCountPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcMountNamePeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcMountNamePeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcMountNamePeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcMountNamePeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcListenerCount) to $obj2 (CcMountName) - $obj2->addCcListenerCount($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcListenerCountPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcListenerCountPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcListenerCountPeer::TIMESTAMP_ID, CcTimestampPeer::ID, $join_behavior); - - $criteria->addJoin(CcListenerCountPeer::MOUNT_NAME_ID, CcMountNamePeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcListenerCount objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcListenerCount objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcListenerCountPeer::addSelectColumns($criteria); - $startcol2 = (CcListenerCountPeer::NUM_COLUMNS - CcListenerCountPeer::NUM_LAZY_LOAD_COLUMNS); - - CcTimestampPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcTimestampPeer::NUM_COLUMNS - CcTimestampPeer::NUM_LAZY_LOAD_COLUMNS); - - CcMountNamePeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcMountNamePeer::NUM_COLUMNS - CcMountNamePeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcListenerCountPeer::TIMESTAMP_ID, CcTimestampPeer::ID, $join_behavior); - - $criteria->addJoin(CcListenerCountPeer::MOUNT_NAME_ID, CcMountNamePeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcListenerCountPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcListenerCountPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcListenerCountPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcListenerCountPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcTimestamp rows - - $key2 = CcTimestampPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcTimestampPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcTimestampPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcTimestampPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcListenerCount) to the collection in $obj2 (CcTimestamp) - $obj2->addCcListenerCount($obj1); - } // if joined row not null - - // Add objects for joined CcMountName rows - - $key3 = CcMountNamePeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcMountNamePeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcMountNamePeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcMountNamePeer::addInstanceToPool($obj3, $key3); - } // if obj3 loaded - - // Add the $obj1 (CcListenerCount) to the collection in $obj3 (CcMountName) - $obj3->addCcListenerCount($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcTimestamp table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcTimestamp(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcListenerCountPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcListenerCountPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcListenerCountPeer::MOUNT_NAME_ID, CcMountNamePeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcMountName table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcMountName(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcListenerCountPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcListenerCountPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcListenerCountPeer::TIMESTAMP_ID, CcTimestampPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcListenerCount objects pre-filled with all related objects except CcTimestamp. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcListenerCount objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcTimestamp(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcListenerCountPeer::addSelectColumns($criteria); - $startcol2 = (CcListenerCountPeer::NUM_COLUMNS - CcListenerCountPeer::NUM_LAZY_LOAD_COLUMNS); - - CcMountNamePeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcMountNamePeer::NUM_COLUMNS - CcMountNamePeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcListenerCountPeer::MOUNT_NAME_ID, CcMountNamePeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcListenerCountPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcListenerCountPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcListenerCountPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcListenerCountPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcMountName rows - - $key2 = CcMountNamePeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcMountNamePeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcMountNamePeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcMountNamePeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcListenerCount) to the collection in $obj2 (CcMountName) - $obj2->addCcListenerCount($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcListenerCount objects pre-filled with all related objects except CcMountName. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcListenerCount objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcMountName(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcListenerCountPeer::addSelectColumns($criteria); - $startcol2 = (CcListenerCountPeer::NUM_COLUMNS - CcListenerCountPeer::NUM_LAZY_LOAD_COLUMNS); - - CcTimestampPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcTimestampPeer::NUM_COLUMNS - CcTimestampPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcListenerCountPeer::TIMESTAMP_ID, CcTimestampPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcListenerCountPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcListenerCountPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcListenerCountPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcListenerCountPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcTimestamp rows - - $key2 = CcTimestampPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcTimestampPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcTimestampPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcTimestampPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcListenerCount) to the collection in $obj2 (CcTimestamp) - $obj2->addCcListenerCount($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcListenerCountPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcListenerCountPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcListenerCountTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcListenerCountPeer::CLASS_DEFAULT : CcListenerCountPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcListenerCount or Criteria object. - * - * @param mixed $values Criteria or CcListenerCount object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcListenerCount object - } - - if ($criteria->containsKey(CcListenerCountPeer::ID) && $criteria->keyContainsValue(CcListenerCountPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcListenerCountPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcListenerCount or Criteria object. - * - * @param mixed $values Criteria or CcListenerCount object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcListenerCountPeer::ID); - $value = $criteria->remove(CcListenerCountPeer::ID); - if ($value) { - $selectCriteria->add(CcListenerCountPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcListenerCountPeer::TABLE_NAME); - } - - } else { // $values is CcListenerCount object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_listener_count table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcListenerCountPeer::TABLE_NAME, $con, CcListenerCountPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcListenerCountPeer::clearInstancePool(); - CcListenerCountPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcListenerCount or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcListenerCount object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcListenerCountPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcListenerCount) { // it's a model object - // invalidate the cache for this single object - CcListenerCountPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcListenerCountPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcListenerCountPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcListenerCountPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcListenerCount object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcListenerCount $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcListenerCount $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcListenerCountPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcListenerCountPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcListenerCountPeer::DATABASE_NAME, CcListenerCountPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcListenerCount - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcListenerCountPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcListenerCountPeer::DATABASE_NAME); - $criteria->add(CcListenerCountPeer::ID, $pk); - - $v = CcListenerCountPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcListenerCountPeer::DATABASE_NAME); - $criteria->add(CcListenerCountPeer::ID, $pks, Criteria::IN); - $objs = CcListenerCountPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcListenerCountPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_listener_count'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcListenerCount'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcListenerCountTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 4; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 4; + + /** the column name for the id field */ + const ID = 'cc_listener_count.id'; + + /** the column name for the timestamp_id field */ + const TIMESTAMP_ID = 'cc_listener_count.timestamp_id'; + + /** the column name for the mount_name_id field */ + const MOUNT_NAME_ID = 'cc_listener_count.mount_name_id'; + + /** the column name for the listener_count field */ + const LISTENER_COUNT = 'cc_listener_count.listener_count'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcListenerCount objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcListenerCount[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcListenerCountPeer::$fieldNames[CcListenerCountPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbTimestampId', 'DbMountNameId', 'DbListenerCount', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbTimestampId', 'dbMountNameId', 'dbListenerCount', ), + BasePeer::TYPE_COLNAME => array (CcListenerCountPeer::ID, CcListenerCountPeer::TIMESTAMP_ID, CcListenerCountPeer::MOUNT_NAME_ID, CcListenerCountPeer::LISTENER_COUNT, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'TIMESTAMP_ID', 'MOUNT_NAME_ID', 'LISTENER_COUNT', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'timestamp_id', 'mount_name_id', 'listener_count', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcListenerCountPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbTimestampId' => 1, 'DbMountNameId' => 2, 'DbListenerCount' => 3, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbTimestampId' => 1, 'dbMountNameId' => 2, 'dbListenerCount' => 3, ), + BasePeer::TYPE_COLNAME => array (CcListenerCountPeer::ID => 0, CcListenerCountPeer::TIMESTAMP_ID => 1, CcListenerCountPeer::MOUNT_NAME_ID => 2, CcListenerCountPeer::LISTENER_COUNT => 3, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'TIMESTAMP_ID' => 1, 'MOUNT_NAME_ID' => 2, 'LISTENER_COUNT' => 3, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'timestamp_id' => 1, 'mount_name_id' => 2, 'listener_count' => 3, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcListenerCountPeer::getFieldNames($toType); + $key = isset(CcListenerCountPeer::$fieldKeys[$fromType][$name]) ? CcListenerCountPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcListenerCountPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcListenerCountPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcListenerCountPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcListenerCountPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcListenerCountPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcListenerCountPeer::ID); + $criteria->addSelectColumn(CcListenerCountPeer::TIMESTAMP_ID); + $criteria->addSelectColumn(CcListenerCountPeer::MOUNT_NAME_ID); + $criteria->addSelectColumn(CcListenerCountPeer::LISTENER_COUNT); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.timestamp_id'); + $criteria->addSelectColumn($alias . '.mount_name_id'); + $criteria->addSelectColumn($alias . '.listener_count'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcListenerCountPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcListenerCountPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcListenerCount + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcListenerCountPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcListenerCountPeer::populateObjects(CcListenerCountPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcListenerCountPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcListenerCount $obj A CcListenerCount object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcListenerCountPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcListenerCount object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcListenerCount) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcListenerCount object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcListenerCountPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcListenerCount Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcListenerCountPeer::$instances[$key])) { + return CcListenerCountPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcListenerCountPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcListenerCountPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_listener_count + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcListenerCountPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcListenerCountPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcListenerCountPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcListenerCountPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcListenerCount object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcListenerCountPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcListenerCountPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcListenerCountPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcListenerCountPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcListenerCountPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcTimestamp table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcTimestamp(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcListenerCountPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcListenerCountPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcListenerCountPeer::TIMESTAMP_ID, CcTimestampPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcMountName table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcMountName(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcListenerCountPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcListenerCountPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcListenerCountPeer::MOUNT_NAME_ID, CcMountNamePeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcListenerCount objects pre-filled with their CcTimestamp objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcListenerCount objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcTimestamp(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); + } + + CcListenerCountPeer::addSelectColumns($criteria); + $startcol = CcListenerCountPeer::NUM_HYDRATE_COLUMNS; + CcTimestampPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcListenerCountPeer::TIMESTAMP_ID, CcTimestampPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcListenerCountPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcListenerCountPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcListenerCountPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcListenerCountPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcTimestampPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcTimestampPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcTimestampPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcTimestampPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcListenerCount) to $obj2 (CcTimestamp) + $obj2->addCcListenerCount($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcListenerCount objects pre-filled with their CcMountName objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcListenerCount objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcMountName(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); + } + + CcListenerCountPeer::addSelectColumns($criteria); + $startcol = CcListenerCountPeer::NUM_HYDRATE_COLUMNS; + CcMountNamePeer::addSelectColumns($criteria); + + $criteria->addJoin(CcListenerCountPeer::MOUNT_NAME_ID, CcMountNamePeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcListenerCountPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcListenerCountPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcListenerCountPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcListenerCountPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcMountNamePeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcMountNamePeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcMountNamePeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcMountNamePeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcListenerCount) to $obj2 (CcMountName) + $obj2->addCcListenerCount($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcListenerCountPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcListenerCountPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcListenerCountPeer::TIMESTAMP_ID, CcTimestampPeer::ID, $join_behavior); + + $criteria->addJoin(CcListenerCountPeer::MOUNT_NAME_ID, CcMountNamePeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcListenerCount objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcListenerCount objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); + } + + CcListenerCountPeer::addSelectColumns($criteria); + $startcol2 = CcListenerCountPeer::NUM_HYDRATE_COLUMNS; + + CcTimestampPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcTimestampPeer::NUM_HYDRATE_COLUMNS; + + CcMountNamePeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcMountNamePeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcListenerCountPeer::TIMESTAMP_ID, CcTimestampPeer::ID, $join_behavior); + + $criteria->addJoin(CcListenerCountPeer::MOUNT_NAME_ID, CcMountNamePeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcListenerCountPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcListenerCountPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcListenerCountPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcListenerCountPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcTimestamp rows + + $key2 = CcTimestampPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcTimestampPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcTimestampPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcTimestampPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcListenerCount) to the collection in $obj2 (CcTimestamp) + $obj2->addCcListenerCount($obj1); + } // if joined row not null + + // Add objects for joined CcMountName rows + + $key3 = CcMountNamePeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcMountNamePeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcMountNamePeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcMountNamePeer::addInstanceToPool($obj3, $key3); + } // if obj3 loaded + + // Add the $obj1 (CcListenerCount) to the collection in $obj3 (CcMountName) + $obj3->addCcListenerCount($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcTimestamp table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcTimestamp(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcListenerCountPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcListenerCountPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcListenerCountPeer::MOUNT_NAME_ID, CcMountNamePeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcMountName table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcMountName(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcListenerCountPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcListenerCountPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcListenerCountPeer::TIMESTAMP_ID, CcTimestampPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcListenerCount objects pre-filled with all related objects except CcTimestamp. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcListenerCount objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcTimestamp(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); + } + + CcListenerCountPeer::addSelectColumns($criteria); + $startcol2 = CcListenerCountPeer::NUM_HYDRATE_COLUMNS; + + CcMountNamePeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcMountNamePeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcListenerCountPeer::MOUNT_NAME_ID, CcMountNamePeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcListenerCountPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcListenerCountPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcListenerCountPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcListenerCountPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcMountName rows + + $key2 = CcMountNamePeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcMountNamePeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcMountNamePeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcMountNamePeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcListenerCount) to the collection in $obj2 (CcMountName) + $obj2->addCcListenerCount($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcListenerCount objects pre-filled with all related objects except CcMountName. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcListenerCount objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcMountName(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); + } + + CcListenerCountPeer::addSelectColumns($criteria); + $startcol2 = CcListenerCountPeer::NUM_HYDRATE_COLUMNS; + + CcTimestampPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcTimestampPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcListenerCountPeer::TIMESTAMP_ID, CcTimestampPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcListenerCountPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcListenerCountPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcListenerCountPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcListenerCountPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcTimestamp rows + + $key2 = CcTimestampPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcTimestampPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcTimestampPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcTimestampPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcListenerCount) to the collection in $obj2 (CcTimestamp) + $obj2->addCcListenerCount($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcListenerCountPeer::DATABASE_NAME)->getTable(CcListenerCountPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcListenerCountPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcListenerCountPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcListenerCountTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcListenerCountPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcListenerCount or Criteria object. + * + * @param mixed $values Criteria or CcListenerCount object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcListenerCount object + } + + if ($criteria->containsKey(CcListenerCountPeer::ID) && $criteria->keyContainsValue(CcListenerCountPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcListenerCountPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcListenerCount or Criteria object. + * + * @param mixed $values Criteria or CcListenerCount object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcListenerCountPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcListenerCountPeer::ID); + $value = $criteria->remove(CcListenerCountPeer::ID); + if ($value) { + $selectCriteria->add(CcListenerCountPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcListenerCountPeer::TABLE_NAME); + } + + } else { // $values is CcListenerCount object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_listener_count table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcListenerCountPeer::TABLE_NAME, $con, CcListenerCountPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcListenerCountPeer::clearInstancePool(); + CcListenerCountPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcListenerCount or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcListenerCount object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcListenerCountPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcListenerCount) { // it's a model object + // invalidate the cache for this single object + CcListenerCountPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcListenerCountPeer::DATABASE_NAME); + $criteria->add(CcListenerCountPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcListenerCountPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcListenerCountPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcListenerCountPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcListenerCount object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcListenerCount $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcListenerCountPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcListenerCountPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcListenerCountPeer::DATABASE_NAME, CcListenerCountPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcListenerCount + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcListenerCountPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcListenerCountPeer::DATABASE_NAME); + $criteria->add(CcListenerCountPeer::ID, $pk); + + $v = CcListenerCountPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcListenerCount[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcListenerCountPeer::DATABASE_NAME); + $criteria->add(CcListenerCountPeer::ID, $pks, Criteria::IN); + $objs = CcListenerCountPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcListenerCountPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcListenerCountQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcListenerCountQuery.php index 30c702e6ef..24c5a1f1a1 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcListenerCountQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcListenerCountQuery.php @@ -4,403 +4,575 @@ /** * Base class that represents a query for the 'cc_listener_count' table. * - * * - * @method CcListenerCountQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcListenerCountQuery orderByDbTimestampId($order = Criteria::ASC) Order by the timestamp_id column - * @method CcListenerCountQuery orderByDbMountNameId($order = Criteria::ASC) Order by the mount_name_id column - * @method CcListenerCountQuery orderByDbListenerCount($order = Criteria::ASC) Order by the listener_count column * - * @method CcListenerCountQuery groupByDbId() Group by the id column - * @method CcListenerCountQuery groupByDbTimestampId() Group by the timestamp_id column - * @method CcListenerCountQuery groupByDbMountNameId() Group by the mount_name_id column - * @method CcListenerCountQuery groupByDbListenerCount() Group by the listener_count column + * @method CcListenerCountQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcListenerCountQuery orderByDbTimestampId($order = Criteria::ASC) Order by the timestamp_id column + * @method CcListenerCountQuery orderByDbMountNameId($order = Criteria::ASC) Order by the mount_name_id column + * @method CcListenerCountQuery orderByDbListenerCount($order = Criteria::ASC) Order by the listener_count column * - * @method CcListenerCountQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcListenerCountQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcListenerCountQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcListenerCountQuery groupByDbId() Group by the id column + * @method CcListenerCountQuery groupByDbTimestampId() Group by the timestamp_id column + * @method CcListenerCountQuery groupByDbMountNameId() Group by the mount_name_id column + * @method CcListenerCountQuery groupByDbListenerCount() Group by the listener_count column * - * @method CcListenerCountQuery leftJoinCcTimestamp($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcTimestamp relation - * @method CcListenerCountQuery rightJoinCcTimestamp($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcTimestamp relation - * @method CcListenerCountQuery innerJoinCcTimestamp($relationAlias = '') Adds a INNER JOIN clause to the query using the CcTimestamp relation + * @method CcListenerCountQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcListenerCountQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcListenerCountQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcListenerCountQuery leftJoinCcMountName($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcMountName relation - * @method CcListenerCountQuery rightJoinCcMountName($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcMountName relation - * @method CcListenerCountQuery innerJoinCcMountName($relationAlias = '') Adds a INNER JOIN clause to the query using the CcMountName relation + * @method CcListenerCountQuery leftJoinCcTimestamp($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcTimestamp relation + * @method CcListenerCountQuery rightJoinCcTimestamp($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcTimestamp relation + * @method CcListenerCountQuery innerJoinCcTimestamp($relationAlias = null) Adds a INNER JOIN clause to the query using the CcTimestamp relation * - * @method CcListenerCount findOne(PropelPDO $con = null) Return the first CcListenerCount matching the query - * @method CcListenerCount findOneOrCreate(PropelPDO $con = null) Return the first CcListenerCount matching the query, or a new CcListenerCount object populated from the query conditions when no match is found + * @method CcListenerCountQuery leftJoinCcMountName($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcMountName relation + * @method CcListenerCountQuery rightJoinCcMountName($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcMountName relation + * @method CcListenerCountQuery innerJoinCcMountName($relationAlias = null) Adds a INNER JOIN clause to the query using the CcMountName relation * - * @method CcListenerCount findOneByDbId(int $id) Return the first CcListenerCount filtered by the id column - * @method CcListenerCount findOneByDbTimestampId(int $timestamp_id) Return the first CcListenerCount filtered by the timestamp_id column - * @method CcListenerCount findOneByDbMountNameId(int $mount_name_id) Return the first CcListenerCount filtered by the mount_name_id column - * @method CcListenerCount findOneByDbListenerCount(int $listener_count) Return the first CcListenerCount filtered by the listener_count column + * @method CcListenerCount findOne(PropelPDO $con = null) Return the first CcListenerCount matching the query + * @method CcListenerCount findOneOrCreate(PropelPDO $con = null) Return the first CcListenerCount matching the query, or a new CcListenerCount object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcListenerCount objects filtered by the id column - * @method array findByDbTimestampId(int $timestamp_id) Return CcListenerCount objects filtered by the timestamp_id column - * @method array findByDbMountNameId(int $mount_name_id) Return CcListenerCount objects filtered by the mount_name_id column - * @method array findByDbListenerCount(int $listener_count) Return CcListenerCount objects filtered by the listener_count column + * @method CcListenerCount findOneByDbTimestampId(int $timestamp_id) Return the first CcListenerCount filtered by the timestamp_id column + * @method CcListenerCount findOneByDbMountNameId(int $mount_name_id) Return the first CcListenerCount filtered by the mount_name_id column + * @method CcListenerCount findOneByDbListenerCount(int $listener_count) Return the first CcListenerCount filtered by the listener_count column + * + * @method array findByDbId(int $id) Return CcListenerCount objects filtered by the id column + * @method array findByDbTimestampId(int $timestamp_id) Return CcListenerCount objects filtered by the timestamp_id column + * @method array findByDbMountNameId(int $mount_name_id) Return CcListenerCount objects filtered by the mount_name_id column + * @method array findByDbListenerCount(int $listener_count) Return CcListenerCount objects filtered by the listener_count column * * @package propel.generator.airtime.om */ abstract class BaseCcListenerCountQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcListenerCountQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcListenerCount'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcListenerCountQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcListenerCountQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcListenerCountQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcListenerCountQuery) { + return $criteria; + } + $query = new CcListenerCountQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcListenerCount|CcListenerCount[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcListenerCountPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcListenerCountPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcListenerCount A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcListenerCount A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "timestamp_id", "mount_name_id", "listener_count" FROM "cc_listener_count" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcListenerCount(); + $obj->hydrate($row); + CcListenerCountPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcListenerCount|CcListenerCount[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcListenerCount[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcListenerCountQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcListenerCountPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcListenerCountQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcListenerCountPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcListenerCountQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcListenerCountPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcListenerCountPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcListenerCountPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the timestamp_id column + * + * Example usage: + * + * $query->filterByDbTimestampId(1234); // WHERE timestamp_id = 1234 + * $query->filterByDbTimestampId(array(12, 34)); // WHERE timestamp_id IN (12, 34) + * $query->filterByDbTimestampId(array('min' => 12)); // WHERE timestamp_id >= 12 + * $query->filterByDbTimestampId(array('max' => 12)); // WHERE timestamp_id <= 12 + * + * + * @see filterByCcTimestamp() + * + * @param mixed $dbTimestampId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcListenerCountQuery The current query, for fluid interface + */ + public function filterByDbTimestampId($dbTimestampId = null, $comparison = null) + { + if (is_array($dbTimestampId)) { + $useMinMax = false; + if (isset($dbTimestampId['min'])) { + $this->addUsingAlias(CcListenerCountPeer::TIMESTAMP_ID, $dbTimestampId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbTimestampId['max'])) { + $this->addUsingAlias(CcListenerCountPeer::TIMESTAMP_ID, $dbTimestampId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcListenerCountPeer::TIMESTAMP_ID, $dbTimestampId, $comparison); + } + + /** + * Filter the query on the mount_name_id column + * + * Example usage: + * + * $query->filterByDbMountNameId(1234); // WHERE mount_name_id = 1234 + * $query->filterByDbMountNameId(array(12, 34)); // WHERE mount_name_id IN (12, 34) + * $query->filterByDbMountNameId(array('min' => 12)); // WHERE mount_name_id >= 12 + * $query->filterByDbMountNameId(array('max' => 12)); // WHERE mount_name_id <= 12 + * + * + * @see filterByCcMountName() + * + * @param mixed $dbMountNameId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcListenerCountQuery The current query, for fluid interface + */ + public function filterByDbMountNameId($dbMountNameId = null, $comparison = null) + { + if (is_array($dbMountNameId)) { + $useMinMax = false; + if (isset($dbMountNameId['min'])) { + $this->addUsingAlias(CcListenerCountPeer::MOUNT_NAME_ID, $dbMountNameId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbMountNameId['max'])) { + $this->addUsingAlias(CcListenerCountPeer::MOUNT_NAME_ID, $dbMountNameId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcListenerCountPeer::MOUNT_NAME_ID, $dbMountNameId, $comparison); + } + + /** + * Filter the query on the listener_count column + * + * Example usage: + * + * $query->filterByDbListenerCount(1234); // WHERE listener_count = 1234 + * $query->filterByDbListenerCount(array(12, 34)); // WHERE listener_count IN (12, 34) + * $query->filterByDbListenerCount(array('min' => 12)); // WHERE listener_count >= 12 + * $query->filterByDbListenerCount(array('max' => 12)); // WHERE listener_count <= 12 + * + * + * @param mixed $dbListenerCount The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcListenerCountQuery The current query, for fluid interface + */ + public function filterByDbListenerCount($dbListenerCount = null, $comparison = null) + { + if (is_array($dbListenerCount)) { + $useMinMax = false; + if (isset($dbListenerCount['min'])) { + $this->addUsingAlias(CcListenerCountPeer::LISTENER_COUNT, $dbListenerCount['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbListenerCount['max'])) { + $this->addUsingAlias(CcListenerCountPeer::LISTENER_COUNT, $dbListenerCount['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcListenerCountPeer::LISTENER_COUNT, $dbListenerCount, $comparison); + } + + /** + * Filter the query by a related CcTimestamp object + * + * @param CcTimestamp|PropelObjectCollection $ccTimestamp The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcListenerCountQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcTimestamp($ccTimestamp, $comparison = null) + { + if ($ccTimestamp instanceof CcTimestamp) { + return $this + ->addUsingAlias(CcListenerCountPeer::TIMESTAMP_ID, $ccTimestamp->getDbId(), $comparison); + } elseif ($ccTimestamp instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcListenerCountPeer::TIMESTAMP_ID, $ccTimestamp->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcTimestamp() only accepts arguments of type CcTimestamp or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcTimestamp relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcListenerCountQuery The current query, for fluid interface + */ + public function joinCcTimestamp($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcTimestamp'); + + // 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, 'CcTimestamp'); + } + + return $this; + } + + /** + * Use the CcTimestamp relation CcTimestamp 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 CcTimestampQuery A secondary query class using the current class as primary query + */ + public function useCcTimestampQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcTimestamp($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcTimestamp', 'CcTimestampQuery'); + } + + /** + * Filter the query by a related CcMountName object + * + * @param CcMountName|PropelObjectCollection $ccMountName The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcListenerCountQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcMountName($ccMountName, $comparison = null) + { + if ($ccMountName instanceof CcMountName) { + return $this + ->addUsingAlias(CcListenerCountPeer::MOUNT_NAME_ID, $ccMountName->getDbId(), $comparison); + } elseif ($ccMountName instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcListenerCountPeer::MOUNT_NAME_ID, $ccMountName->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcMountName() only accepts arguments of type CcMountName or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcMountName relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcListenerCountQuery The current query, for fluid interface + */ + public function joinCcMountName($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcMountName'); + + // 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, 'CcMountName'); + } + + return $this; + } + + /** + * Use the CcMountName relation CcMountName 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 CcMountNameQuery A secondary query class using the current class as primary query + */ + public function useCcMountNameQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcMountName($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcMountName', 'CcMountNameQuery'); + } + + /** + * Exclude object from result + * + * @param CcListenerCount $ccListenerCount Object to remove from the list of results + * + * @return CcListenerCountQuery The current query, for fluid interface + */ + public function prune($ccListenerCount = null) + { + if ($ccListenerCount) { + $this->addUsingAlias(CcListenerCountPeer::ID, $ccListenerCount->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcListenerCountQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcListenerCount', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcListenerCountQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcListenerCountQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcListenerCountQuery) { - return $criteria; - } - $query = new CcListenerCountQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcListenerCount|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcListenerCountPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcListenerCountQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcListenerCountPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcListenerCountQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcListenerCountPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcListenerCountQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcListenerCountPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the timestamp_id column - * - * @param int|array $dbTimestampId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcListenerCountQuery The current query, for fluid interface - */ - public function filterByDbTimestampId($dbTimestampId = null, $comparison = null) - { - if (is_array($dbTimestampId)) { - $useMinMax = false; - if (isset($dbTimestampId['min'])) { - $this->addUsingAlias(CcListenerCountPeer::TIMESTAMP_ID, $dbTimestampId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbTimestampId['max'])) { - $this->addUsingAlias(CcListenerCountPeer::TIMESTAMP_ID, $dbTimestampId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcListenerCountPeer::TIMESTAMP_ID, $dbTimestampId, $comparison); - } - - /** - * Filter the query on the mount_name_id column - * - * @param int|array $dbMountNameId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcListenerCountQuery The current query, for fluid interface - */ - public function filterByDbMountNameId($dbMountNameId = null, $comparison = null) - { - if (is_array($dbMountNameId)) { - $useMinMax = false; - if (isset($dbMountNameId['min'])) { - $this->addUsingAlias(CcListenerCountPeer::MOUNT_NAME_ID, $dbMountNameId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbMountNameId['max'])) { - $this->addUsingAlias(CcListenerCountPeer::MOUNT_NAME_ID, $dbMountNameId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcListenerCountPeer::MOUNT_NAME_ID, $dbMountNameId, $comparison); - } - - /** - * Filter the query on the listener_count column - * - * @param int|array $dbListenerCount The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcListenerCountQuery The current query, for fluid interface - */ - public function filterByDbListenerCount($dbListenerCount = null, $comparison = null) - { - if (is_array($dbListenerCount)) { - $useMinMax = false; - if (isset($dbListenerCount['min'])) { - $this->addUsingAlias(CcListenerCountPeer::LISTENER_COUNT, $dbListenerCount['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbListenerCount['max'])) { - $this->addUsingAlias(CcListenerCountPeer::LISTENER_COUNT, $dbListenerCount['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcListenerCountPeer::LISTENER_COUNT, $dbListenerCount, $comparison); - } - - /** - * Filter the query by a related CcTimestamp object - * - * @param CcTimestamp $ccTimestamp the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcListenerCountQuery The current query, for fluid interface - */ - public function filterByCcTimestamp($ccTimestamp, $comparison = null) - { - return $this - ->addUsingAlias(CcListenerCountPeer::TIMESTAMP_ID, $ccTimestamp->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcTimestamp relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcListenerCountQuery The current query, for fluid interface - */ - public function joinCcTimestamp($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcTimestamp'); - - // 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, 'CcTimestamp'); - } - - return $this; - } - - /** - * Use the CcTimestamp relation CcTimestamp 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 CcTimestampQuery A secondary query class using the current class as primary query - */ - public function useCcTimestampQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcTimestamp($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcTimestamp', 'CcTimestampQuery'); - } - - /** - * Filter the query by a related CcMountName object - * - * @param CcMountName $ccMountName the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcListenerCountQuery The current query, for fluid interface - */ - public function filterByCcMountName($ccMountName, $comparison = null) - { - return $this - ->addUsingAlias(CcListenerCountPeer::MOUNT_NAME_ID, $ccMountName->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcMountName relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcListenerCountQuery The current query, for fluid interface - */ - public function joinCcMountName($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcMountName'); - - // 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, 'CcMountName'); - } - - return $this; - } - - /** - * Use the CcMountName relation CcMountName 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 CcMountNameQuery A secondary query class using the current class as primary query - */ - public function useCcMountNameQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcMountName($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcMountName', 'CcMountNameQuery'); - } - - /** - * Exclude object from result - * - * @param CcListenerCount $ccListenerCount Object to remove from the list of results - * - * @return CcListenerCountQuery The current query, for fluid interface - */ - public function prune($ccListenerCount = null) - { - if ($ccListenerCount) { - $this->addUsingAlias(CcListenerCountPeer::ID, $ccListenerCount->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcListenerCountQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcLiveLog.php b/airtime_mvc/application/models/airtime/om/BaseCcLiveLog.php index 583630ee68..cacb87395b 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcLiveLog.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcLiveLog.php @@ -4,913 +4,989 @@ /** * Base class that represents a row from the 'cc_live_log' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcLiveLog extends BaseObject implements Persistent +abstract class BaseCcLiveLog extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcLiveLogPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcLiveLogPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the state field. - * @var string - */ - protected $state; - - /** - * The value for the start_time field. - * @var string - */ - protected $start_time; - - /** - * The value for the end_time field. - * @var string - */ - protected $end_time; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [state] column value. - * - * @return string - */ - public function getDbState() - { - return $this->state; - } - - /** - * Get the [optionally formatted] temporal [start_time] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbStartTime($format = 'Y-m-d H:i:s') - { - if ($this->start_time === null) { - return null; - } - - - - try { - $dt = new DateTime($this->start_time); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->start_time, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [end_time] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbEndTime($format = 'Y-m-d H:i:s') - { - if ($this->end_time === null) { - return null; - } - - - - try { - $dt = new DateTime($this->end_time); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->end_time, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcLiveLog The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcLiveLogPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [state] column. - * - * @param string $v new value - * @return CcLiveLog The current object (for fluent API support) - */ - public function setDbState($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->state !== $v) { - $this->state = $v; - $this->modifiedColumns[] = CcLiveLogPeer::STATE; - } - - return $this; - } // setDbState() - - /** - * Sets the value of [start_time] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcLiveLog The current object (for fluent API support) - */ - public function setDbStartTime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->start_time !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->start_time !== null && $tmpDt = new DateTime($this->start_time)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->start_time = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcLiveLogPeer::START_TIME; - } - } // if either are not null - - return $this; - } // setDbStartTime() - - /** - * Sets the value of [end_time] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcLiveLog The current object (for fluent API support) - */ - public function setDbEndTime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->end_time !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->end_time !== null && $tmpDt = new DateTime($this->end_time)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->end_time = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcLiveLogPeer::END_TIME; - } - } // if either are not null - - return $this; - } // setDbEndTime() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->state = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->start_time = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->end_time = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 4; // 4 = CcLiveLogPeer::NUM_COLUMNS - CcLiveLogPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcLiveLog object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcLiveLogPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcLiveLogQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcLiveLogPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcLiveLogPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcLiveLogPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcLiveLogPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows = 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows = CcLiveLogPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - if (($retval = CcLiveLogPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcLiveLogPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbState(); - break; - case 2: - return $this->getDbStartTime(); - break; - case 3: - return $this->getDbEndTime(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) - { - $keys = CcLiveLogPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbState(), - $keys[2] => $this->getDbStartTime(), - $keys[3] => $this->getDbEndTime(), - ); - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcLiveLogPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbState($value); - break; - case 2: - $this->setDbStartTime($value); - break; - case 3: - $this->setDbEndTime($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcLiveLogPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbState($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbStartTime($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbEndTime($arr[$keys[3]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcLiveLogPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcLiveLogPeer::ID)) $criteria->add(CcLiveLogPeer::ID, $this->id); - if ($this->isColumnModified(CcLiveLogPeer::STATE)) $criteria->add(CcLiveLogPeer::STATE, $this->state); - if ($this->isColumnModified(CcLiveLogPeer::START_TIME)) $criteria->add(CcLiveLogPeer::START_TIME, $this->start_time); - if ($this->isColumnModified(CcLiveLogPeer::END_TIME)) $criteria->add(CcLiveLogPeer::END_TIME, $this->end_time); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcLiveLogPeer::DATABASE_NAME); - $criteria->add(CcLiveLogPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcLiveLog (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbState($this->state); - $copyObj->setDbStartTime($this->start_time); - $copyObj->setDbEndTime($this->end_time); - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcLiveLog Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcLiveLogPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcLiveLogPeer(); - } - return self::$peer; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->state = null; - $this->start_time = null; - $this->end_time = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcLiveLog + /** + * Peer class name + */ + const PEER = 'CcLiveLogPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcLiveLogPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the state field. + * @var string + */ + protected $state; + + /** + * The value for the start_time field. + * @var string + */ + protected $start_time; + + /** + * The value for the end_time field. + * @var string + */ + protected $end_time; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [state] column value. + * + * @return string + */ + public function getDbState() + { + + return $this->state; + } + + /** + * Get the [optionally formatted] temporal [start_time] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbStartTime($format = 'Y-m-d H:i:s') + { + if ($this->start_time === null) { + return null; + } + + + try { + $dt = new DateTime($this->start_time); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->start_time, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [end_time] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbEndTime($format = 'Y-m-d H:i:s') + { + if ($this->end_time === null) { + return null; + } + + + try { + $dt = new DateTime($this->end_time); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->end_time, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcLiveLog The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcLiveLogPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [state] column. + * + * @param string $v new value + * @return CcLiveLog The current object (for fluent API support) + */ + public function setDbState($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->state !== $v) { + $this->state = $v; + $this->modifiedColumns[] = CcLiveLogPeer::STATE; + } + + + return $this; + } // setDbState() + + /** + * Sets the value of [start_time] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcLiveLog The current object (for fluent API support) + */ + public function setDbStartTime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->start_time !== null || $dt !== null) { + $currentDateAsString = ($this->start_time !== null && $tmpDt = new DateTime($this->start_time)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->start_time = $newDateAsString; + $this->modifiedColumns[] = CcLiveLogPeer::START_TIME; + } + } // if either are not null + + + return $this; + } // setDbStartTime() + + /** + * Sets the value of [end_time] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcLiveLog The current object (for fluent API support) + */ + public function setDbEndTime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->end_time !== null || $dt !== null) { + $currentDateAsString = ($this->end_time !== null && $tmpDt = new DateTime($this->end_time)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->end_time = $newDateAsString; + $this->modifiedColumns[] = CcLiveLogPeer::END_TIME; + } + } // if either are not null + + + return $this; + } // setDbEndTime() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->state = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->start_time = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->end_time = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 4; // 4 = CcLiveLogPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcLiveLog object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcLiveLogPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcLiveLogQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcLiveLogPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcLiveLogPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcLiveLogPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_live_log_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcLiveLogPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcLiveLogPeer::STATE)) { + $modifiedColumns[':p' . $index++] = '"state"'; + } + if ($this->isColumnModified(CcLiveLogPeer::START_TIME)) { + $modifiedColumns[':p' . $index++] = '"start_time"'; + } + if ($this->isColumnModified(CcLiveLogPeer::END_TIME)) { + $modifiedColumns[':p' . $index++] = '"end_time"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_live_log" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"state"': + $stmt->bindValue($identifier, $this->state, PDO::PARAM_STR); + break; + case '"start_time"': + $stmt->bindValue($identifier, $this->start_time, PDO::PARAM_STR); + break; + case '"end_time"': + $stmt->bindValue($identifier, $this->end_time, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + if (($retval = CcLiveLogPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcLiveLogPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbState(); + break; + case 2: + return $this->getDbStartTime(); + break; + case 3: + return $this->getDbEndTime(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array()) + { + if (isset($alreadyDumpedObjects['CcLiveLog'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcLiveLog'][$this->getPrimaryKey()] = true; + $keys = CcLiveLogPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbState(), + $keys[2] => $this->getDbStartTime(), + $keys[3] => $this->getDbEndTime(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcLiveLogPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbState($value); + break; + case 2: + $this->setDbStartTime($value); + break; + case 3: + $this->setDbEndTime($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcLiveLogPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbState($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbStartTime($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbEndTime($arr[$keys[3]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcLiveLogPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcLiveLogPeer::ID)) $criteria->add(CcLiveLogPeer::ID, $this->id); + if ($this->isColumnModified(CcLiveLogPeer::STATE)) $criteria->add(CcLiveLogPeer::STATE, $this->state); + if ($this->isColumnModified(CcLiveLogPeer::START_TIME)) $criteria->add(CcLiveLogPeer::START_TIME, $this->start_time); + if ($this->isColumnModified(CcLiveLogPeer::END_TIME)) $criteria->add(CcLiveLogPeer::END_TIME, $this->end_time); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcLiveLogPeer::DATABASE_NAME); + $criteria->add(CcLiveLogPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcLiveLog (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbState($this->getDbState()); + $copyObj->setDbStartTime($this->getDbStartTime()); + $copyObj->setDbEndTime($this->getDbEndTime()); + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcLiveLog Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcLiveLogPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcLiveLogPeer(); + } + + return self::$peer; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->state = null; + $this->start_time = null; + $this->end_time = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcLiveLogPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcLiveLogPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcLiveLogPeer.php index 0a8cb69c5b..1d564519dd 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcLiveLogPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcLiveLogPeer.php @@ -4,742 +4,764 @@ /** * Base static class for performing query and update operations on the 'cc_live_log' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcLiveLogPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_live_log'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcLiveLog'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcLiveLog'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcLiveLogTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 4; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_live_log.ID'; - - /** the column name for the STATE field */ - const STATE = 'cc_live_log.STATE'; - - /** the column name for the START_TIME field */ - const START_TIME = 'cc_live_log.START_TIME'; - - /** the column name for the END_TIME field */ - const END_TIME = 'cc_live_log.END_TIME'; - - /** - * An identiy map to hold any loaded instances of CcLiveLog objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcLiveLog[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbState', 'DbStartTime', 'DbEndTime', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbState', 'dbStartTime', 'dbEndTime', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::STATE, self::START_TIME, self::END_TIME, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'STATE', 'START_TIME', 'END_TIME', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'state', 'start_time', 'end_time', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbState' => 1, 'DbStartTime' => 2, 'DbEndTime' => 3, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbState' => 1, 'dbStartTime' => 2, 'dbEndTime' => 3, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::STATE => 1, self::START_TIME => 2, self::END_TIME => 3, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'STATE' => 1, 'START_TIME' => 2, 'END_TIME' => 3, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'state' => 1, 'start_time' => 2, 'end_time' => 3, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcLiveLogPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcLiveLogPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcLiveLogPeer::ID); - $criteria->addSelectColumn(CcLiveLogPeer::STATE); - $criteria->addSelectColumn(CcLiveLogPeer::START_TIME); - $criteria->addSelectColumn(CcLiveLogPeer::END_TIME); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.STATE'); - $criteria->addSelectColumn($alias . '.START_TIME'); - $criteria->addSelectColumn($alias . '.END_TIME'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcLiveLogPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcLiveLogPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcLiveLog - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcLiveLogPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcLiveLogPeer::populateObjects(CcLiveLogPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcLiveLogPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcLiveLog $value A CcLiveLog object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcLiveLog $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcLiveLog object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcLiveLog) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcLiveLog object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcLiveLog Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_live_log - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcLiveLogPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcLiveLogPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcLiveLogPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcLiveLogPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcLiveLog object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcLiveLogPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcLiveLogPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcLiveLogPeer::NUM_COLUMNS; - } else { - $cls = CcLiveLogPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcLiveLogPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcLiveLogPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcLiveLogPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcLiveLogTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcLiveLogPeer::CLASS_DEFAULT : CcLiveLogPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcLiveLog or Criteria object. - * - * @param mixed $values Criteria or CcLiveLog object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcLiveLog object - } - - if ($criteria->containsKey(CcLiveLogPeer::ID) && $criteria->keyContainsValue(CcLiveLogPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcLiveLogPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcLiveLog or Criteria object. - * - * @param mixed $values Criteria or CcLiveLog object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcLiveLogPeer::ID); - $value = $criteria->remove(CcLiveLogPeer::ID); - if ($value) { - $selectCriteria->add(CcLiveLogPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcLiveLogPeer::TABLE_NAME); - } - - } else { // $values is CcLiveLog object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_live_log table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcLiveLogPeer::TABLE_NAME, $con, CcLiveLogPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcLiveLogPeer::clearInstancePool(); - CcLiveLogPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcLiveLog or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcLiveLog object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcLiveLogPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcLiveLog) { // it's a model object - // invalidate the cache for this single object - CcLiveLogPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcLiveLogPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcLiveLogPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcLiveLogPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcLiveLog object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcLiveLog $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcLiveLog $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcLiveLogPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcLiveLogPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcLiveLogPeer::DATABASE_NAME, CcLiveLogPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcLiveLog - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcLiveLogPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcLiveLogPeer::DATABASE_NAME); - $criteria->add(CcLiveLogPeer::ID, $pk); - - $v = CcLiveLogPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcLiveLogPeer::DATABASE_NAME); - $criteria->add(CcLiveLogPeer::ID, $pks, Criteria::IN); - $objs = CcLiveLogPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcLiveLogPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_live_log'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcLiveLog'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcLiveLogTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 4; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 4; + + /** the column name for the id field */ + const ID = 'cc_live_log.id'; + + /** the column name for the state field */ + const STATE = 'cc_live_log.state'; + + /** the column name for the start_time field */ + const START_TIME = 'cc_live_log.start_time'; + + /** the column name for the end_time field */ + const END_TIME = 'cc_live_log.end_time'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcLiveLog objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcLiveLog[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcLiveLogPeer::$fieldNames[CcLiveLogPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbState', 'DbStartTime', 'DbEndTime', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbState', 'dbStartTime', 'dbEndTime', ), + BasePeer::TYPE_COLNAME => array (CcLiveLogPeer::ID, CcLiveLogPeer::STATE, CcLiveLogPeer::START_TIME, CcLiveLogPeer::END_TIME, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'STATE', 'START_TIME', 'END_TIME', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'state', 'start_time', 'end_time', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcLiveLogPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbState' => 1, 'DbStartTime' => 2, 'DbEndTime' => 3, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbState' => 1, 'dbStartTime' => 2, 'dbEndTime' => 3, ), + BasePeer::TYPE_COLNAME => array (CcLiveLogPeer::ID => 0, CcLiveLogPeer::STATE => 1, CcLiveLogPeer::START_TIME => 2, CcLiveLogPeer::END_TIME => 3, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'STATE' => 1, 'START_TIME' => 2, 'END_TIME' => 3, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'state' => 1, 'start_time' => 2, 'end_time' => 3, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcLiveLogPeer::getFieldNames($toType); + $key = isset(CcLiveLogPeer::$fieldKeys[$fromType][$name]) ? CcLiveLogPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcLiveLogPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcLiveLogPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcLiveLogPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcLiveLogPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcLiveLogPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcLiveLogPeer::ID); + $criteria->addSelectColumn(CcLiveLogPeer::STATE); + $criteria->addSelectColumn(CcLiveLogPeer::START_TIME); + $criteria->addSelectColumn(CcLiveLogPeer::END_TIME); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.state'); + $criteria->addSelectColumn($alias . '.start_time'); + $criteria->addSelectColumn($alias . '.end_time'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcLiveLogPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcLiveLogPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcLiveLogPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcLiveLog + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcLiveLogPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcLiveLogPeer::populateObjects(CcLiveLogPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcLiveLogPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcLiveLogPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcLiveLog $obj A CcLiveLog object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcLiveLogPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcLiveLog object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcLiveLog) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcLiveLog object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcLiveLogPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcLiveLog Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcLiveLogPeer::$instances[$key])) { + return CcLiveLogPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcLiveLogPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcLiveLogPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_live_log + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcLiveLogPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcLiveLogPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcLiveLogPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcLiveLogPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcLiveLog object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcLiveLogPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcLiveLogPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcLiveLogPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcLiveLogPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcLiveLogPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcLiveLogPeer::DATABASE_NAME)->getTable(CcLiveLogPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcLiveLogPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcLiveLogPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcLiveLogTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcLiveLogPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcLiveLog or Criteria object. + * + * @param mixed $values Criteria or CcLiveLog object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcLiveLog object + } + + if ($criteria->containsKey(CcLiveLogPeer::ID) && $criteria->keyContainsValue(CcLiveLogPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcLiveLogPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcLiveLogPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcLiveLog or Criteria object. + * + * @param mixed $values Criteria or CcLiveLog object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcLiveLogPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcLiveLogPeer::ID); + $value = $criteria->remove(CcLiveLogPeer::ID); + if ($value) { + $selectCriteria->add(CcLiveLogPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcLiveLogPeer::TABLE_NAME); + } + + } else { // $values is CcLiveLog object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcLiveLogPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_live_log table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcLiveLogPeer::TABLE_NAME, $con, CcLiveLogPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcLiveLogPeer::clearInstancePool(); + CcLiveLogPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcLiveLog or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcLiveLog object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcLiveLogPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcLiveLog) { // it's a model object + // invalidate the cache for this single object + CcLiveLogPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcLiveLogPeer::DATABASE_NAME); + $criteria->add(CcLiveLogPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcLiveLogPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcLiveLogPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcLiveLogPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcLiveLog object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcLiveLog $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcLiveLogPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcLiveLogPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcLiveLogPeer::DATABASE_NAME, CcLiveLogPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcLiveLog + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcLiveLogPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcLiveLogPeer::DATABASE_NAME); + $criteria->add(CcLiveLogPeer::ID, $pk); + + $v = CcLiveLogPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcLiveLog[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcLiveLogPeer::DATABASE_NAME); + $criteria->add(CcLiveLogPeer::ID, $pks, Criteria::IN); + $objs = CcLiveLogPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcLiveLogPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcLiveLogQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcLiveLogQuery.php index 723d568de4..c2badd5d41 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcLiveLogQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcLiveLogQuery.php @@ -4,258 +4,400 @@ /** * Base class that represents a query for the 'cc_live_log' table. * - * * - * @method CcLiveLogQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcLiveLogQuery orderByDbState($order = Criteria::ASC) Order by the state column - * @method CcLiveLogQuery orderByDbStartTime($order = Criteria::ASC) Order by the start_time column - * @method CcLiveLogQuery orderByDbEndTime($order = Criteria::ASC) Order by the end_time column * - * @method CcLiveLogQuery groupByDbId() Group by the id column - * @method CcLiveLogQuery groupByDbState() Group by the state column - * @method CcLiveLogQuery groupByDbStartTime() Group by the start_time column - * @method CcLiveLogQuery groupByDbEndTime() Group by the end_time column + * @method CcLiveLogQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcLiveLogQuery orderByDbState($order = Criteria::ASC) Order by the state column + * @method CcLiveLogQuery orderByDbStartTime($order = Criteria::ASC) Order by the start_time column + * @method CcLiveLogQuery orderByDbEndTime($order = Criteria::ASC) Order by the end_time column * - * @method CcLiveLogQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcLiveLogQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcLiveLogQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcLiveLogQuery groupByDbId() Group by the id column + * @method CcLiveLogQuery groupByDbState() Group by the state column + * @method CcLiveLogQuery groupByDbStartTime() Group by the start_time column + * @method CcLiveLogQuery groupByDbEndTime() Group by the end_time column * - * @method CcLiveLog findOne(PropelPDO $con = null) Return the first CcLiveLog matching the query - * @method CcLiveLog findOneOrCreate(PropelPDO $con = null) Return the first CcLiveLog matching the query, or a new CcLiveLog object populated from the query conditions when no match is found + * @method CcLiveLogQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcLiveLogQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcLiveLogQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcLiveLog findOneByDbId(int $id) Return the first CcLiveLog filtered by the id column - * @method CcLiveLog findOneByDbState(string $state) Return the first CcLiveLog filtered by the state column - * @method CcLiveLog findOneByDbStartTime(string $start_time) Return the first CcLiveLog filtered by the start_time column - * @method CcLiveLog findOneByDbEndTime(string $end_time) Return the first CcLiveLog filtered by the end_time column + * @method CcLiveLog findOne(PropelPDO $con = null) Return the first CcLiveLog matching the query + * @method CcLiveLog findOneOrCreate(PropelPDO $con = null) Return the first CcLiveLog matching the query, or a new CcLiveLog object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcLiveLog objects filtered by the id column - * @method array findByDbState(string $state) Return CcLiveLog objects filtered by the state column - * @method array findByDbStartTime(string $start_time) Return CcLiveLog objects filtered by the start_time column - * @method array findByDbEndTime(string $end_time) Return CcLiveLog objects filtered by the end_time column + * @method CcLiveLog findOneByDbState(string $state) Return the first CcLiveLog filtered by the state column + * @method CcLiveLog findOneByDbStartTime(string $start_time) Return the first CcLiveLog filtered by the start_time column + * @method CcLiveLog findOneByDbEndTime(string $end_time) Return the first CcLiveLog filtered by the end_time column + * + * @method array findByDbId(int $id) Return CcLiveLog objects filtered by the id column + * @method array findByDbState(string $state) Return CcLiveLog objects filtered by the state column + * @method array findByDbStartTime(string $start_time) Return CcLiveLog objects filtered by the start_time column + * @method array findByDbEndTime(string $end_time) Return CcLiveLog objects filtered by the end_time column * * @package propel.generator.airtime.om */ abstract class BaseCcLiveLogQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcLiveLogQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcLiveLog'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcLiveLogQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcLiveLogQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcLiveLogQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcLiveLogQuery) { + return $criteria; + } + $query = new CcLiveLogQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcLiveLog|CcLiveLog[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcLiveLogPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcLiveLogPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcLiveLog A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcLiveLog A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "state", "start_time", "end_time" FROM "cc_live_log" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcLiveLog(); + $obj->hydrate($row); + CcLiveLogPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcLiveLog|CcLiveLog[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcLiveLog[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcLiveLogQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcLiveLogPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcLiveLogQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { - /** - * Initializes internal state of BaseCcLiveLogQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcLiveLog', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } + return $this->addUsingAlias(CcLiveLogPeer::ID, $keys, Criteria::IN); + } - /** - * Returns a new CcLiveLogQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcLiveLogQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcLiveLogQuery) { - return $criteria; - } - $query = new CcLiveLogQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcLiveLogQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcLiveLogPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcLiveLogPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcLiveLog|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcLiveLogPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } + return $this->addUsingAlias(CcLiveLogPeer::ID, $dbId, $comparison); + } - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } + /** + * Filter the query on the state column + * + * Example usage: + * + * $query->filterByDbState('fooValue'); // WHERE state = 'fooValue' + * $query->filterByDbState('%fooValue%'); // WHERE state LIKE '%fooValue%' + * + * + * @param string $dbState 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 CcLiveLogQuery The current query, for fluid interface + */ + public function filterByDbState($dbState = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbState)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbState)) { + $dbState = str_replace('*', '%', $dbState); + $comparison = Criteria::LIKE; + } + } - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcLiveLogQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcLiveLogPeer::ID, $key, Criteria::EQUAL); - } + return $this->addUsingAlias(CcLiveLogPeer::STATE, $dbState, $comparison); + } - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcLiveLogQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcLiveLogPeer::ID, $keys, Criteria::IN); - } + /** + * Filter the query on the start_time column + * + * Example usage: + * + * $query->filterByDbStartTime('2011-03-14'); // WHERE start_time = '2011-03-14' + * $query->filterByDbStartTime('now'); // WHERE start_time = '2011-03-14' + * $query->filterByDbStartTime(array('max' => 'yesterday')); // WHERE start_time < '2011-03-13' + * + * + * @param mixed $dbStartTime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcLiveLogQuery The current query, for fluid interface + */ + public function filterByDbStartTime($dbStartTime = null, $comparison = null) + { + if (is_array($dbStartTime)) { + $useMinMax = false; + if (isset($dbStartTime['min'])) { + $this->addUsingAlias(CcLiveLogPeer::START_TIME, $dbStartTime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbStartTime['max'])) { + $this->addUsingAlias(CcLiveLogPeer::START_TIME, $dbStartTime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcLiveLogQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcLiveLogPeer::ID, $dbId, $comparison); - } + return $this->addUsingAlias(CcLiveLogPeer::START_TIME, $dbStartTime, $comparison); + } - /** - * Filter the query on the state column - * - * @param string $dbState 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 CcLiveLogQuery The current query, for fluid interface - */ - public function filterByDbState($dbState = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbState)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbState)) { - $dbState = str_replace('*', '%', $dbState); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcLiveLogPeer::STATE, $dbState, $comparison); - } + /** + * Filter the query on the end_time column + * + * Example usage: + * + * $query->filterByDbEndTime('2011-03-14'); // WHERE end_time = '2011-03-14' + * $query->filterByDbEndTime('now'); // WHERE end_time = '2011-03-14' + * $query->filterByDbEndTime(array('max' => 'yesterday')); // WHERE end_time < '2011-03-13' + * + * + * @param mixed $dbEndTime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcLiveLogQuery The current query, for fluid interface + */ + public function filterByDbEndTime($dbEndTime = null, $comparison = null) + { + if (is_array($dbEndTime)) { + $useMinMax = false; + if (isset($dbEndTime['min'])) { + $this->addUsingAlias(CcLiveLogPeer::END_TIME, $dbEndTime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbEndTime['max'])) { + $this->addUsingAlias(CcLiveLogPeer::END_TIME, $dbEndTime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } - /** - * Filter the query on the start_time column - * - * @param string|array $dbStartTime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcLiveLogQuery The current query, for fluid interface - */ - public function filterByDbStartTime($dbStartTime = null, $comparison = null) - { - if (is_array($dbStartTime)) { - $useMinMax = false; - if (isset($dbStartTime['min'])) { - $this->addUsingAlias(CcLiveLogPeer::START_TIME, $dbStartTime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbStartTime['max'])) { - $this->addUsingAlias(CcLiveLogPeer::START_TIME, $dbStartTime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcLiveLogPeer::START_TIME, $dbStartTime, $comparison); - } + return $this->addUsingAlias(CcLiveLogPeer::END_TIME, $dbEndTime, $comparison); + } - /** - * Filter the query on the end_time column - * - * @param string|array $dbEndTime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcLiveLogQuery The current query, for fluid interface - */ - public function filterByDbEndTime($dbEndTime = null, $comparison = null) - { - if (is_array($dbEndTime)) { - $useMinMax = false; - if (isset($dbEndTime['min'])) { - $this->addUsingAlias(CcLiveLogPeer::END_TIME, $dbEndTime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbEndTime['max'])) { - $this->addUsingAlias(CcLiveLogPeer::END_TIME, $dbEndTime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcLiveLogPeer::END_TIME, $dbEndTime, $comparison); - } + /** + * Exclude object from result + * + * @param CcLiveLog $ccLiveLog Object to remove from the list of results + * + * @return CcLiveLogQuery The current query, for fluid interface + */ + public function prune($ccLiveLog = null) + { + if ($ccLiveLog) { + $this->addUsingAlias(CcLiveLogPeer::ID, $ccLiveLog->getDbId(), Criteria::NOT_EQUAL); + } - /** - * Exclude object from result - * - * @param CcLiveLog $ccLiveLog Object to remove from the list of results - * - * @return CcLiveLogQuery The current query, for fluid interface - */ - public function prune($ccLiveLog = null) - { - if ($ccLiveLog) { - $this->addUsingAlias(CcLiveLogPeer::ID, $ccLiveLog->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } + return $this; + } -} // BaseCcLiveLogQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcLocale.php b/airtime_mvc/application/models/airtime/om/BaseCcLocale.php index fdd4d43d8e..651c3f1efc 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcLocale.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcLocale.php @@ -4,761 +4,881 @@ /** * Base class that represents a row from the 'cc_locale' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcLocale extends BaseObject implements Persistent +abstract class BaseCcLocale extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcLocalePeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcLocalePeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the locale_code field. - * @var string - */ - protected $locale_code; - - /** - * The value for the locale_lang field. - * @var string - */ - protected $locale_lang; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [locale_code] column value. - * - * @return string - */ - public function getDbLocaleCode() - { - return $this->locale_code; - } - - /** - * Get the [locale_lang] column value. - * - * @return string - */ - public function getDbLocaleLang() - { - return $this->locale_lang; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcLocale The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcLocalePeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [locale_code] column. - * - * @param string $v new value - * @return CcLocale The current object (for fluent API support) - */ - public function setDbLocaleCode($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->locale_code !== $v) { - $this->locale_code = $v; - $this->modifiedColumns[] = CcLocalePeer::LOCALE_CODE; - } - - return $this; - } // setDbLocaleCode() - - /** - * Set the value of [locale_lang] column. - * - * @param string $v new value - * @return CcLocale The current object (for fluent API support) - */ - public function setDbLocaleLang($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->locale_lang !== $v) { - $this->locale_lang = $v; - $this->modifiedColumns[] = CcLocalePeer::LOCALE_LANG; - } - - return $this; - } // setDbLocaleLang() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->locale_code = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->locale_lang = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 3; // 3 = CcLocalePeer::NUM_COLUMNS - CcLocalePeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcLocale object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcLocalePeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcLocaleQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcLocalePeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcLocalePeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcLocalePeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcLocalePeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows = 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows = CcLocalePeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - if (($retval = CcLocalePeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcLocalePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbLocaleCode(); - break; - case 2: - return $this->getDbLocaleLang(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) - { - $keys = CcLocalePeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbLocaleCode(), - $keys[2] => $this->getDbLocaleLang(), - ); - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcLocalePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbLocaleCode($value); - break; - case 2: - $this->setDbLocaleLang($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcLocalePeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbLocaleCode($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbLocaleLang($arr[$keys[2]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcLocalePeer::DATABASE_NAME); - - if ($this->isColumnModified(CcLocalePeer::ID)) $criteria->add(CcLocalePeer::ID, $this->id); - if ($this->isColumnModified(CcLocalePeer::LOCALE_CODE)) $criteria->add(CcLocalePeer::LOCALE_CODE, $this->locale_code); - if ($this->isColumnModified(CcLocalePeer::LOCALE_LANG)) $criteria->add(CcLocalePeer::LOCALE_LANG, $this->locale_lang); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcLocalePeer::DATABASE_NAME); - $criteria->add(CcLocalePeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcLocale (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbLocaleCode($this->locale_code); - $copyObj->setDbLocaleLang($this->locale_lang); - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcLocale Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcLocalePeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcLocalePeer(); - } - return self::$peer; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->locale_code = null; - $this->locale_lang = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcLocale + /** + * Peer class name + */ + const PEER = 'CcLocalePeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcLocalePeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the locale_code field. + * @var string + */ + protected $locale_code; + + /** + * The value for the locale_lang field. + * @var string + */ + protected $locale_lang; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [locale_code] column value. + * + * @return string + */ + public function getDbLocaleCode() + { + + return $this->locale_code; + } + + /** + * Get the [locale_lang] column value. + * + * @return string + */ + public function getDbLocaleLang() + { + + return $this->locale_lang; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcLocale The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcLocalePeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [locale_code] column. + * + * @param string $v new value + * @return CcLocale The current object (for fluent API support) + */ + public function setDbLocaleCode($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->locale_code !== $v) { + $this->locale_code = $v; + $this->modifiedColumns[] = CcLocalePeer::LOCALE_CODE; + } + + + return $this; + } // setDbLocaleCode() + + /** + * Set the value of [locale_lang] column. + * + * @param string $v new value + * @return CcLocale The current object (for fluent API support) + */ + public function setDbLocaleLang($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->locale_lang !== $v) { + $this->locale_lang = $v; + $this->modifiedColumns[] = CcLocalePeer::LOCALE_LANG; + } + + + return $this; + } // setDbLocaleLang() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->locale_code = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->locale_lang = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 3; // 3 = CcLocalePeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcLocale object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcLocalePeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcLocaleQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcLocalePeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcLocalePeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcLocalePeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_locale_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcLocalePeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcLocalePeer::LOCALE_CODE)) { + $modifiedColumns[':p' . $index++] = '"locale_code"'; + } + if ($this->isColumnModified(CcLocalePeer::LOCALE_LANG)) { + $modifiedColumns[':p' . $index++] = '"locale_lang"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_locale" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"locale_code"': + $stmt->bindValue($identifier, $this->locale_code, PDO::PARAM_STR); + break; + case '"locale_lang"': + $stmt->bindValue($identifier, $this->locale_lang, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + if (($retval = CcLocalePeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcLocalePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbLocaleCode(); + break; + case 2: + return $this->getDbLocaleLang(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array()) + { + if (isset($alreadyDumpedObjects['CcLocale'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcLocale'][$this->getPrimaryKey()] = true; + $keys = CcLocalePeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbLocaleCode(), + $keys[2] => $this->getDbLocaleLang(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcLocalePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbLocaleCode($value); + break; + case 2: + $this->setDbLocaleLang($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcLocalePeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbLocaleCode($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbLocaleLang($arr[$keys[2]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcLocalePeer::DATABASE_NAME); + + if ($this->isColumnModified(CcLocalePeer::ID)) $criteria->add(CcLocalePeer::ID, $this->id); + if ($this->isColumnModified(CcLocalePeer::LOCALE_CODE)) $criteria->add(CcLocalePeer::LOCALE_CODE, $this->locale_code); + if ($this->isColumnModified(CcLocalePeer::LOCALE_LANG)) $criteria->add(CcLocalePeer::LOCALE_LANG, $this->locale_lang); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcLocalePeer::DATABASE_NAME); + $criteria->add(CcLocalePeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcLocale (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbLocaleCode($this->getDbLocaleCode()); + $copyObj->setDbLocaleLang($this->getDbLocaleLang()); + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcLocale Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcLocalePeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcLocalePeer(); + } + + return self::$peer; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->locale_code = null; + $this->locale_lang = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcLocalePeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcLocalePeer.php b/airtime_mvc/application/models/airtime/om/BaseCcLocalePeer.php index eebb6a0024..73658ced3c 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcLocalePeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcLocalePeer.php @@ -4,737 +4,759 @@ /** * Base static class for performing query and update operations on the 'cc_locale' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcLocalePeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_locale'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcLocale'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcLocale'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcLocaleTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 3; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_locale.ID'; - - /** the column name for the LOCALE_CODE field */ - const LOCALE_CODE = 'cc_locale.LOCALE_CODE'; - - /** the column name for the LOCALE_LANG field */ - const LOCALE_LANG = 'cc_locale.LOCALE_LANG'; - - /** - * An identiy map to hold any loaded instances of CcLocale objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcLocale[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbLocaleCode', 'DbLocaleLang', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbLocaleCode', 'dbLocaleLang', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::LOCALE_CODE, self::LOCALE_LANG, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'LOCALE_CODE', 'LOCALE_LANG', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'locale_code', 'locale_lang', ), - BasePeer::TYPE_NUM => array (0, 1, 2, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbLocaleCode' => 1, 'DbLocaleLang' => 2, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbLocaleCode' => 1, 'dbLocaleLang' => 2, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::LOCALE_CODE => 1, self::LOCALE_LANG => 2, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'LOCALE_CODE' => 1, 'LOCALE_LANG' => 2, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'locale_code' => 1, 'locale_lang' => 2, ), - BasePeer::TYPE_NUM => array (0, 1, 2, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcLocalePeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcLocalePeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcLocalePeer::ID); - $criteria->addSelectColumn(CcLocalePeer::LOCALE_CODE); - $criteria->addSelectColumn(CcLocalePeer::LOCALE_LANG); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.LOCALE_CODE'); - $criteria->addSelectColumn($alias . '.LOCALE_LANG'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcLocalePeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcLocalePeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcLocale - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcLocalePeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcLocalePeer::populateObjects(CcLocalePeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcLocalePeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcLocale $value A CcLocale object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcLocale $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcLocale object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcLocale) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcLocale object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcLocale Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_locale - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcLocalePeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcLocalePeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcLocalePeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcLocalePeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcLocale object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcLocalePeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcLocalePeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcLocalePeer::NUM_COLUMNS; - } else { - $cls = CcLocalePeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcLocalePeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcLocalePeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcLocalePeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcLocaleTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcLocalePeer::CLASS_DEFAULT : CcLocalePeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcLocale or Criteria object. - * - * @param mixed $values Criteria or CcLocale object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcLocale object - } - - if ($criteria->containsKey(CcLocalePeer::ID) && $criteria->keyContainsValue(CcLocalePeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcLocalePeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcLocale or Criteria object. - * - * @param mixed $values Criteria or CcLocale object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcLocalePeer::ID); - $value = $criteria->remove(CcLocalePeer::ID); - if ($value) { - $selectCriteria->add(CcLocalePeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcLocalePeer::TABLE_NAME); - } - - } else { // $values is CcLocale object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_locale table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcLocalePeer::TABLE_NAME, $con, CcLocalePeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcLocalePeer::clearInstancePool(); - CcLocalePeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcLocale or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcLocale object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcLocalePeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcLocale) { // it's a model object - // invalidate the cache for this single object - CcLocalePeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcLocalePeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcLocalePeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcLocalePeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcLocale object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcLocale $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcLocale $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcLocalePeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcLocalePeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcLocalePeer::DATABASE_NAME, CcLocalePeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcLocale - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcLocalePeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcLocalePeer::DATABASE_NAME); - $criteria->add(CcLocalePeer::ID, $pk); - - $v = CcLocalePeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcLocalePeer::DATABASE_NAME); - $criteria->add(CcLocalePeer::ID, $pks, Criteria::IN); - $objs = CcLocalePeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcLocalePeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_locale'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcLocale'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcLocaleTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 3; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 3; + + /** the column name for the id field */ + const ID = 'cc_locale.id'; + + /** the column name for the locale_code field */ + const LOCALE_CODE = 'cc_locale.locale_code'; + + /** the column name for the locale_lang field */ + const LOCALE_LANG = 'cc_locale.locale_lang'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcLocale objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcLocale[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcLocalePeer::$fieldNames[CcLocalePeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbLocaleCode', 'DbLocaleLang', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbLocaleCode', 'dbLocaleLang', ), + BasePeer::TYPE_COLNAME => array (CcLocalePeer::ID, CcLocalePeer::LOCALE_CODE, CcLocalePeer::LOCALE_LANG, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'LOCALE_CODE', 'LOCALE_LANG', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'locale_code', 'locale_lang', ), + BasePeer::TYPE_NUM => array (0, 1, 2, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcLocalePeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbLocaleCode' => 1, 'DbLocaleLang' => 2, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbLocaleCode' => 1, 'dbLocaleLang' => 2, ), + BasePeer::TYPE_COLNAME => array (CcLocalePeer::ID => 0, CcLocalePeer::LOCALE_CODE => 1, CcLocalePeer::LOCALE_LANG => 2, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'LOCALE_CODE' => 1, 'LOCALE_LANG' => 2, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'locale_code' => 1, 'locale_lang' => 2, ), + BasePeer::TYPE_NUM => array (0, 1, 2, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcLocalePeer::getFieldNames($toType); + $key = isset(CcLocalePeer::$fieldKeys[$fromType][$name]) ? CcLocalePeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcLocalePeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcLocalePeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcLocalePeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcLocalePeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcLocalePeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcLocalePeer::ID); + $criteria->addSelectColumn(CcLocalePeer::LOCALE_CODE); + $criteria->addSelectColumn(CcLocalePeer::LOCALE_LANG); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.locale_code'); + $criteria->addSelectColumn($alias . '.locale_lang'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcLocalePeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcLocalePeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcLocalePeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcLocale + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcLocalePeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcLocalePeer::populateObjects(CcLocalePeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcLocalePeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcLocalePeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcLocale $obj A CcLocale object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcLocalePeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcLocale object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcLocale) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcLocale object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcLocalePeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcLocale Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcLocalePeer::$instances[$key])) { + return CcLocalePeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcLocalePeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcLocalePeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_locale + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcLocalePeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcLocalePeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcLocalePeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcLocalePeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcLocale object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcLocalePeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcLocalePeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcLocalePeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcLocalePeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcLocalePeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcLocalePeer::DATABASE_NAME)->getTable(CcLocalePeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcLocalePeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcLocalePeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcLocaleTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcLocalePeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcLocale or Criteria object. + * + * @param mixed $values Criteria or CcLocale object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcLocale object + } + + if ($criteria->containsKey(CcLocalePeer::ID) && $criteria->keyContainsValue(CcLocalePeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcLocalePeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcLocalePeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcLocale or Criteria object. + * + * @param mixed $values Criteria or CcLocale object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcLocalePeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcLocalePeer::ID); + $value = $criteria->remove(CcLocalePeer::ID); + if ($value) { + $selectCriteria->add(CcLocalePeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcLocalePeer::TABLE_NAME); + } + + } else { // $values is CcLocale object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcLocalePeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_locale table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcLocalePeer::TABLE_NAME, $con, CcLocalePeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcLocalePeer::clearInstancePool(); + CcLocalePeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcLocale or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcLocale object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcLocalePeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcLocale) { // it's a model object + // invalidate the cache for this single object + CcLocalePeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcLocalePeer::DATABASE_NAME); + $criteria->add(CcLocalePeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcLocalePeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcLocalePeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcLocalePeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcLocale object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcLocale $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcLocalePeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcLocalePeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcLocalePeer::DATABASE_NAME, CcLocalePeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcLocale + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcLocalePeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcLocalePeer::DATABASE_NAME); + $criteria->add(CcLocalePeer::ID, $pk); + + $v = CcLocalePeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcLocale[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcLocalePeer::DATABASE_NAME); + $criteria->add(CcLocalePeer::ID, $pks, Criteria::IN); + $objs = CcLocalePeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcLocalePeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcLocaleQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcLocaleQuery.php index e12a5971b0..ab5960d9b5 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcLocaleQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcLocaleQuery.php @@ -4,214 +4,339 @@ /** * Base class that represents a query for the 'cc_locale' table. * - * * - * @method CcLocaleQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcLocaleQuery orderByDbLocaleCode($order = Criteria::ASC) Order by the locale_code column - * @method CcLocaleQuery orderByDbLocaleLang($order = Criteria::ASC) Order by the locale_lang column * - * @method CcLocaleQuery groupByDbId() Group by the id column - * @method CcLocaleQuery groupByDbLocaleCode() Group by the locale_code column - * @method CcLocaleQuery groupByDbLocaleLang() Group by the locale_lang column + * @method CcLocaleQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcLocaleQuery orderByDbLocaleCode($order = Criteria::ASC) Order by the locale_code column + * @method CcLocaleQuery orderByDbLocaleLang($order = Criteria::ASC) Order by the locale_lang column * - * @method CcLocaleQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcLocaleQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcLocaleQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcLocaleQuery groupByDbId() Group by the id column + * @method CcLocaleQuery groupByDbLocaleCode() Group by the locale_code column + * @method CcLocaleQuery groupByDbLocaleLang() Group by the locale_lang column * - * @method CcLocale findOne(PropelPDO $con = null) Return the first CcLocale matching the query - * @method CcLocale findOneOrCreate(PropelPDO $con = null) Return the first CcLocale matching the query, or a new CcLocale object populated from the query conditions when no match is found + * @method CcLocaleQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcLocaleQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcLocaleQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcLocale findOneByDbId(int $id) Return the first CcLocale filtered by the id column - * @method CcLocale findOneByDbLocaleCode(string $locale_code) Return the first CcLocale filtered by the locale_code column - * @method CcLocale findOneByDbLocaleLang(string $locale_lang) Return the first CcLocale filtered by the locale_lang column + * @method CcLocale findOne(PropelPDO $con = null) Return the first CcLocale matching the query + * @method CcLocale findOneOrCreate(PropelPDO $con = null) Return the first CcLocale matching the query, or a new CcLocale object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcLocale objects filtered by the id column - * @method array findByDbLocaleCode(string $locale_code) Return CcLocale objects filtered by the locale_code column - * @method array findByDbLocaleLang(string $locale_lang) Return CcLocale objects filtered by the locale_lang column + * @method CcLocale findOneByDbLocaleCode(string $locale_code) Return the first CcLocale filtered by the locale_code column + * @method CcLocale findOneByDbLocaleLang(string $locale_lang) Return the first CcLocale filtered by the locale_lang column + * + * @method array findByDbId(int $id) Return CcLocale objects filtered by the id column + * @method array findByDbLocaleCode(string $locale_code) Return CcLocale objects filtered by the locale_code column + * @method array findByDbLocaleLang(string $locale_lang) Return CcLocale objects filtered by the locale_lang column * * @package propel.generator.airtime.om */ abstract class BaseCcLocaleQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcLocaleQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcLocale'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcLocaleQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcLocaleQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcLocaleQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcLocaleQuery) { + return $criteria; + } + $query = new CcLocaleQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcLocale|CcLocale[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcLocalePeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcLocalePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcLocale A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcLocale A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "locale_code", "locale_lang" FROM "cc_locale" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcLocale(); + $obj->hydrate($row); + CcLocalePeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcLocale|CcLocale[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcLocale[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcLocaleQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcLocalePeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcLocaleQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcLocalePeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcLocaleQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcLocalePeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcLocalePeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcLocalePeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the locale_code column + * + * Example usage: + * + * $query->filterByDbLocaleCode('fooValue'); // WHERE locale_code = 'fooValue' + * $query->filterByDbLocaleCode('%fooValue%'); // WHERE locale_code LIKE '%fooValue%' + * + * + * @param string $dbLocaleCode 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 CcLocaleQuery The current query, for fluid interface + */ + public function filterByDbLocaleCode($dbLocaleCode = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLocaleCode)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLocaleCode)) { + $dbLocaleCode = str_replace('*', '%', $dbLocaleCode); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcLocalePeer::LOCALE_CODE, $dbLocaleCode, $comparison); + } + + /** + * Filter the query on the locale_lang column + * + * Example usage: + * + * $query->filterByDbLocaleLang('fooValue'); // WHERE locale_lang = 'fooValue' + * $query->filterByDbLocaleLang('%fooValue%'); // WHERE locale_lang LIKE '%fooValue%' + * + * + * @param string $dbLocaleLang 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 CcLocaleQuery The current query, for fluid interface + */ + public function filterByDbLocaleLang($dbLocaleLang = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLocaleLang)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLocaleLang)) { + $dbLocaleLang = str_replace('*', '%', $dbLocaleLang); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcLocalePeer::LOCALE_LANG, $dbLocaleLang, $comparison); + } + + /** + * Exclude object from result + * + * @param CcLocale $ccLocale Object to remove from the list of results + * + * @return CcLocaleQuery The current query, for fluid interface + */ + public function prune($ccLocale = null) + { + if ($ccLocale) { + $this->addUsingAlias(CcLocalePeer::ID, $ccLocale->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcLocaleQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcLocale', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcLocaleQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcLocaleQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcLocaleQuery) { - return $criteria; - } - $query = new CcLocaleQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcLocale|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcLocalePeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcLocaleQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcLocalePeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcLocaleQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcLocalePeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcLocaleQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcLocalePeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the locale_code column - * - * @param string $dbLocaleCode 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 CcLocaleQuery The current query, for fluid interface - */ - public function filterByDbLocaleCode($dbLocaleCode = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLocaleCode)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLocaleCode)) { - $dbLocaleCode = str_replace('*', '%', $dbLocaleCode); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcLocalePeer::LOCALE_CODE, $dbLocaleCode, $comparison); - } - - /** - * Filter the query on the locale_lang column - * - * @param string $dbLocaleLang 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 CcLocaleQuery The current query, for fluid interface - */ - public function filterByDbLocaleLang($dbLocaleLang = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLocaleLang)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLocaleLang)) { - $dbLocaleLang = str_replace('*', '%', $dbLocaleLang); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcLocalePeer::LOCALE_LANG, $dbLocaleLang, $comparison); - } - - /** - * Exclude object from result - * - * @param CcLocale $ccLocale Object to remove from the list of results - * - * @return CcLocaleQuery The current query, for fluid interface - */ - public function prune($ccLocale = null) - { - if ($ccLocale) { - $this->addUsingAlias(CcLocalePeer::ID, $ccLocale->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcLocaleQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcLoginAttempts.php b/airtime_mvc/application/models/airtime/om/BaseCcLoginAttempts.php index b529e12d59..bccc85ab19 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcLoginAttempts.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcLoginAttempts.php @@ -4,732 +4,838 @@ /** * Base class that represents a row from the 'cc_login_attempts' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcLoginAttempts extends BaseObject implements Persistent +abstract class BaseCcLoginAttempts extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcLoginAttemptsPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcLoginAttemptsPeer - */ - protected static $peer; - - /** - * The value for the ip field. - * @var string - */ - protected $ip; - - /** - * The value for the attempts field. - * Note: this column has a database default value of: 0 - * @var int - */ - protected $attempts; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - 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->attempts = 0; - } - - /** - * Initializes internal state of BaseCcLoginAttempts object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [ip] column value. - * - * @return string - */ - public function getDbIP() - { - return $this->ip; - } - - /** - * Get the [attempts] column value. - * - * @return int - */ - public function getDbAttempts() - { - return $this->attempts; - } - - /** - * Set the value of [ip] column. - * - * @param string $v new value - * @return CcLoginAttempts The current object (for fluent API support) - */ - public function setDbIP($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->ip !== $v) { - $this->ip = $v; - $this->modifiedColumns[] = CcLoginAttemptsPeer::IP; - } - - return $this; - } // setDbIP() - - /** - * Set the value of [attempts] column. - * - * @param int $v new value - * @return CcLoginAttempts The current object (for fluent API support) - */ - public function setDbAttempts($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->attempts !== $v || $this->isNew()) { - $this->attempts = $v; - $this->modifiedColumns[] = CcLoginAttemptsPeer::ATTEMPTS; - } - - return $this; - } // setDbAttempts() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->attempts !== 0) { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->ip = ($row[$startcol + 0] !== null) ? (string) $row[$startcol + 0] : null; - $this->attempts = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 2; // 2 = CcLoginAttemptsPeer::NUM_COLUMNS - CcLoginAttemptsPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcLoginAttempts object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcLoginAttemptsPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcLoginAttemptsQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcLoginAttemptsPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows = 1; - $this->setNew(false); - } else { - $affectedRows = CcLoginAttemptsPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - if (($retval = CcLoginAttemptsPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcLoginAttemptsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbIP(); - break; - case 1: - return $this->getDbAttempts(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) - { - $keys = CcLoginAttemptsPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbIP(), - $keys[1] => $this->getDbAttempts(), - ); - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcLoginAttemptsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbIP($value); - break; - case 1: - $this->setDbAttempts($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcLoginAttemptsPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbIP($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbAttempts($arr[$keys[1]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcLoginAttemptsPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcLoginAttemptsPeer::IP)) $criteria->add(CcLoginAttemptsPeer::IP, $this->ip); - if ($this->isColumnModified(CcLoginAttemptsPeer::ATTEMPTS)) $criteria->add(CcLoginAttemptsPeer::ATTEMPTS, $this->attempts); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcLoginAttemptsPeer::DATABASE_NAME); - $criteria->add(CcLoginAttemptsPeer::IP, $this->ip); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return string - */ - public function getPrimaryKey() - { - return $this->getDbIP(); - } - - /** - * Generic method to set the primary key (ip column). - * - * @param string $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbIP($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbIP(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcLoginAttempts (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbIP($this->ip); - $copyObj->setDbAttempts($this->attempts); - - $copyObj->setNew(true); - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcLoginAttempts Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcLoginAttemptsPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcLoginAttemptsPeer(); - } - return self::$peer; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->ip = null; - $this->attempts = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcLoginAttempts + /** + * Peer class name + */ + const PEER = 'CcLoginAttemptsPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcLoginAttemptsPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the ip field. + * @var string + */ + protected $ip; + + /** + * The value for the attempts field. + * Note: this column has a database default value of: 0 + * @var int + */ + protected $attempts; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = 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->attempts = 0; + } + + /** + * Initializes internal state of BaseCcLoginAttempts object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [ip] column value. + * + * @return string + */ + public function getDbIP() + { + + return $this->ip; + } + + /** + * Get the [attempts] column value. + * + * @return int + */ + public function getDbAttempts() + { + + return $this->attempts; + } + + /** + * Set the value of [ip] column. + * + * @param string $v new value + * @return CcLoginAttempts The current object (for fluent API support) + */ + public function setDbIP($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->ip !== $v) { + $this->ip = $v; + $this->modifiedColumns[] = CcLoginAttemptsPeer::IP; + } + + + return $this; + } // setDbIP() + + /** + * Set the value of [attempts] column. + * + * @param int $v new value + * @return CcLoginAttempts The current object (for fluent API support) + */ + public function setDbAttempts($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->attempts !== $v) { + $this->attempts = $v; + $this->modifiedColumns[] = CcLoginAttemptsPeer::ATTEMPTS; + } + + + return $this; + } // setDbAttempts() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->attempts !== 0) { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->ip = ($row[$startcol + 0] !== null) ? (string) $row[$startcol + 0] : null; + $this->attempts = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 2; // 2 = CcLoginAttemptsPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcLoginAttempts object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcLoginAttemptsPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcLoginAttemptsQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcLoginAttemptsPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcLoginAttemptsPeer::IP)) { + $modifiedColumns[':p' . $index++] = '"ip"'; + } + if ($this->isColumnModified(CcLoginAttemptsPeer::ATTEMPTS)) { + $modifiedColumns[':p' . $index++] = '"attempts"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_login_attempts" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"ip"': + $stmt->bindValue($identifier, $this->ip, PDO::PARAM_STR); + break; + case '"attempts"': + $stmt->bindValue($identifier, $this->attempts, PDO::PARAM_INT); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + if (($retval = CcLoginAttemptsPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcLoginAttemptsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbIP(); + break; + case 1: + return $this->getDbAttempts(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array()) + { + if (isset($alreadyDumpedObjects['CcLoginAttempts'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcLoginAttempts'][$this->getPrimaryKey()] = true; + $keys = CcLoginAttemptsPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbIP(), + $keys[1] => $this->getDbAttempts(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcLoginAttemptsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbIP($value); + break; + case 1: + $this->setDbAttempts($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcLoginAttemptsPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbIP($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbAttempts($arr[$keys[1]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcLoginAttemptsPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcLoginAttemptsPeer::IP)) $criteria->add(CcLoginAttemptsPeer::IP, $this->ip); + if ($this->isColumnModified(CcLoginAttemptsPeer::ATTEMPTS)) $criteria->add(CcLoginAttemptsPeer::ATTEMPTS, $this->attempts); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcLoginAttemptsPeer::DATABASE_NAME); + $criteria->add(CcLoginAttemptsPeer::IP, $this->ip); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return string + */ + public function getPrimaryKey() + { + return $this->getDbIP(); + } + + /** + * Generic method to set the primary key (ip column). + * + * @param string $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbIP($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbIP(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcLoginAttempts (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbAttempts($this->getDbAttempts()); + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbIP(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcLoginAttempts Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcLoginAttemptsPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcLoginAttemptsPeer(); + } + + return self::$peer; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->ip = null; + $this->attempts = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcLoginAttemptsPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcLoginAttemptsPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcLoginAttemptsPeer.php index 27b4cd90c7..b9fcca697a 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcLoginAttemptsPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcLoginAttemptsPeer.php @@ -4,728 +4,750 @@ /** * Base static class for performing query and update operations on the 'cc_login_attempts' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcLoginAttemptsPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_login_attempts'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcLoginAttempts'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcLoginAttempts'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcLoginAttemptsTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 2; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the IP field */ - const IP = 'cc_login_attempts.IP'; - - /** the column name for the ATTEMPTS field */ - const ATTEMPTS = 'cc_login_attempts.ATTEMPTS'; - - /** - * An identiy map to hold any loaded instances of CcLoginAttempts objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcLoginAttempts[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbIP', 'DbAttempts', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbIP', 'dbAttempts', ), - BasePeer::TYPE_COLNAME => array (self::IP, self::ATTEMPTS, ), - BasePeer::TYPE_RAW_COLNAME => array ('IP', 'ATTEMPTS', ), - BasePeer::TYPE_FIELDNAME => array ('ip', 'attempts', ), - BasePeer::TYPE_NUM => array (0, 1, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbIP' => 0, 'DbAttempts' => 1, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbIP' => 0, 'dbAttempts' => 1, ), - BasePeer::TYPE_COLNAME => array (self::IP => 0, self::ATTEMPTS => 1, ), - BasePeer::TYPE_RAW_COLNAME => array ('IP' => 0, 'ATTEMPTS' => 1, ), - BasePeer::TYPE_FIELDNAME => array ('ip' => 0, 'attempts' => 1, ), - BasePeer::TYPE_NUM => array (0, 1, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcLoginAttemptsPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcLoginAttemptsPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcLoginAttemptsPeer::IP); - $criteria->addSelectColumn(CcLoginAttemptsPeer::ATTEMPTS); - } else { - $criteria->addSelectColumn($alias . '.IP'); - $criteria->addSelectColumn($alias . '.ATTEMPTS'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcLoginAttemptsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcLoginAttemptsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcLoginAttempts - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcLoginAttemptsPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcLoginAttemptsPeer::populateObjects(CcLoginAttemptsPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcLoginAttemptsPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcLoginAttempts $value A CcLoginAttempts object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcLoginAttempts $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbIP(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcLoginAttempts object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcLoginAttempts) { - $key = (string) $value->getDbIP(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcLoginAttempts object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcLoginAttempts Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_login_attempts - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (string) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcLoginAttemptsPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcLoginAttemptsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcLoginAttemptsPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcLoginAttemptsPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcLoginAttempts object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcLoginAttemptsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcLoginAttemptsPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcLoginAttemptsPeer::NUM_COLUMNS; - } else { - $cls = CcLoginAttemptsPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcLoginAttemptsPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcLoginAttemptsPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcLoginAttemptsPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcLoginAttemptsTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcLoginAttemptsPeer::CLASS_DEFAULT : CcLoginAttemptsPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcLoginAttempts or Criteria object. - * - * @param mixed $values Criteria or CcLoginAttempts object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcLoginAttempts object - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcLoginAttempts or Criteria object. - * - * @param mixed $values Criteria or CcLoginAttempts object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcLoginAttemptsPeer::IP); - $value = $criteria->remove(CcLoginAttemptsPeer::IP); - if ($value) { - $selectCriteria->add(CcLoginAttemptsPeer::IP, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcLoginAttemptsPeer::TABLE_NAME); - } - - } else { // $values is CcLoginAttempts object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_login_attempts table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcLoginAttemptsPeer::TABLE_NAME, $con, CcLoginAttemptsPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcLoginAttemptsPeer::clearInstancePool(); - CcLoginAttemptsPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcLoginAttempts or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcLoginAttempts object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcLoginAttemptsPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcLoginAttempts) { // it's a model object - // invalidate the cache for this single object - CcLoginAttemptsPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcLoginAttemptsPeer::IP, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcLoginAttemptsPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcLoginAttemptsPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcLoginAttempts object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcLoginAttempts $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcLoginAttempts $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcLoginAttemptsPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcLoginAttemptsPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcLoginAttemptsPeer::DATABASE_NAME, CcLoginAttemptsPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param string $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcLoginAttempts - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcLoginAttemptsPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcLoginAttemptsPeer::DATABASE_NAME); - $criteria->add(CcLoginAttemptsPeer::IP, $pk); - - $v = CcLoginAttemptsPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcLoginAttemptsPeer::DATABASE_NAME); - $criteria->add(CcLoginAttemptsPeer::IP, $pks, Criteria::IN); - $objs = CcLoginAttemptsPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcLoginAttemptsPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_login_attempts'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcLoginAttempts'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcLoginAttemptsTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 2; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 2; + + /** the column name for the ip field */ + const IP = 'cc_login_attempts.ip'; + + /** the column name for the attempts field */ + const ATTEMPTS = 'cc_login_attempts.attempts'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcLoginAttempts objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcLoginAttempts[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcLoginAttemptsPeer::$fieldNames[CcLoginAttemptsPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbIP', 'DbAttempts', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbIP', 'dbAttempts', ), + BasePeer::TYPE_COLNAME => array (CcLoginAttemptsPeer::IP, CcLoginAttemptsPeer::ATTEMPTS, ), + BasePeer::TYPE_RAW_COLNAME => array ('IP', 'ATTEMPTS', ), + BasePeer::TYPE_FIELDNAME => array ('ip', 'attempts', ), + BasePeer::TYPE_NUM => array (0, 1, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcLoginAttemptsPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbIP' => 0, 'DbAttempts' => 1, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbIP' => 0, 'dbAttempts' => 1, ), + BasePeer::TYPE_COLNAME => array (CcLoginAttemptsPeer::IP => 0, CcLoginAttemptsPeer::ATTEMPTS => 1, ), + BasePeer::TYPE_RAW_COLNAME => array ('IP' => 0, 'ATTEMPTS' => 1, ), + BasePeer::TYPE_FIELDNAME => array ('ip' => 0, 'attempts' => 1, ), + BasePeer::TYPE_NUM => array (0, 1, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcLoginAttemptsPeer::getFieldNames($toType); + $key = isset(CcLoginAttemptsPeer::$fieldKeys[$fromType][$name]) ? CcLoginAttemptsPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcLoginAttemptsPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcLoginAttemptsPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcLoginAttemptsPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcLoginAttemptsPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcLoginAttemptsPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcLoginAttemptsPeer::IP); + $criteria->addSelectColumn(CcLoginAttemptsPeer::ATTEMPTS); + } else { + $criteria->addSelectColumn($alias . '.ip'); + $criteria->addSelectColumn($alias . '.attempts'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcLoginAttemptsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcLoginAttemptsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcLoginAttemptsPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcLoginAttempts + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcLoginAttemptsPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcLoginAttemptsPeer::populateObjects(CcLoginAttemptsPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcLoginAttemptsPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcLoginAttemptsPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcLoginAttempts $obj A CcLoginAttempts object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbIP(); + } // if key === null + CcLoginAttemptsPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcLoginAttempts object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcLoginAttempts) { + $key = (string) $value->getDbIP(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcLoginAttempts object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcLoginAttemptsPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcLoginAttempts Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcLoginAttemptsPeer::$instances[$key])) { + return CcLoginAttemptsPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcLoginAttemptsPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcLoginAttemptsPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_login_attempts + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (string) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcLoginAttemptsPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcLoginAttemptsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcLoginAttemptsPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcLoginAttemptsPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcLoginAttempts object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcLoginAttemptsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcLoginAttemptsPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcLoginAttemptsPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcLoginAttemptsPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcLoginAttemptsPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcLoginAttemptsPeer::DATABASE_NAME)->getTable(CcLoginAttemptsPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcLoginAttemptsPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcLoginAttemptsPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcLoginAttemptsTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcLoginAttemptsPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcLoginAttempts or Criteria object. + * + * @param mixed $values Criteria or CcLoginAttempts object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcLoginAttempts object + } + + + // Set the correct dbName + $criteria->setDbName(CcLoginAttemptsPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcLoginAttempts or Criteria object. + * + * @param mixed $values Criteria or CcLoginAttempts object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcLoginAttemptsPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcLoginAttemptsPeer::IP); + $value = $criteria->remove(CcLoginAttemptsPeer::IP); + if ($value) { + $selectCriteria->add(CcLoginAttemptsPeer::IP, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcLoginAttemptsPeer::TABLE_NAME); + } + + } else { // $values is CcLoginAttempts object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcLoginAttemptsPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_login_attempts table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcLoginAttemptsPeer::TABLE_NAME, $con, CcLoginAttemptsPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcLoginAttemptsPeer::clearInstancePool(); + CcLoginAttemptsPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcLoginAttempts or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcLoginAttempts object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcLoginAttemptsPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcLoginAttempts) { // it's a model object + // invalidate the cache for this single object + CcLoginAttemptsPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcLoginAttemptsPeer::DATABASE_NAME); + $criteria->add(CcLoginAttemptsPeer::IP, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcLoginAttemptsPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcLoginAttemptsPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcLoginAttemptsPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcLoginAttempts object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcLoginAttempts $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcLoginAttemptsPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcLoginAttemptsPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcLoginAttemptsPeer::DATABASE_NAME, CcLoginAttemptsPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param string $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcLoginAttempts + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcLoginAttemptsPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcLoginAttemptsPeer::DATABASE_NAME); + $criteria->add(CcLoginAttemptsPeer::IP, $pk); + + $v = CcLoginAttemptsPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcLoginAttempts[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcLoginAttemptsPeer::DATABASE_NAME); + $criteria->add(CcLoginAttemptsPeer::IP, $pks, Criteria::IN); + $objs = CcLoginAttemptsPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcLoginAttemptsPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcLoginAttemptsQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcLoginAttemptsQuery.php index 930f32edaf..eb29818c99 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcLoginAttemptsQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcLoginAttemptsQuery.php @@ -4,202 +4,306 @@ /** * Base class that represents a query for the 'cc_login_attempts' table. * - * * - * @method CcLoginAttemptsQuery orderByDbIP($order = Criteria::ASC) Order by the ip column - * @method CcLoginAttemptsQuery orderByDbAttempts($order = Criteria::ASC) Order by the attempts column * - * @method CcLoginAttemptsQuery groupByDbIP() Group by the ip column - * @method CcLoginAttemptsQuery groupByDbAttempts() Group by the attempts column + * @method CcLoginAttemptsQuery orderByDbIP($order = Criteria::ASC) Order by the ip column + * @method CcLoginAttemptsQuery orderByDbAttempts($order = Criteria::ASC) Order by the attempts column * - * @method CcLoginAttemptsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcLoginAttemptsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcLoginAttemptsQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcLoginAttemptsQuery groupByDbIP() Group by the ip column + * @method CcLoginAttemptsQuery groupByDbAttempts() Group by the attempts column * - * @method CcLoginAttempts findOne(PropelPDO $con = null) Return the first CcLoginAttempts matching the query - * @method CcLoginAttempts findOneOrCreate(PropelPDO $con = null) Return the first CcLoginAttempts matching the query, or a new CcLoginAttempts object populated from the query conditions when no match is found + * @method CcLoginAttemptsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcLoginAttemptsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcLoginAttemptsQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcLoginAttempts findOneByDbIP(string $ip) Return the first CcLoginAttempts filtered by the ip column - * @method CcLoginAttempts findOneByDbAttempts(int $attempts) Return the first CcLoginAttempts filtered by the attempts column + * @method CcLoginAttempts findOne(PropelPDO $con = null) Return the first CcLoginAttempts matching the query + * @method CcLoginAttempts findOneOrCreate(PropelPDO $con = null) Return the first CcLoginAttempts matching the query, or a new CcLoginAttempts object populated from the query conditions when no match is found * - * @method array findByDbIP(string $ip) Return CcLoginAttempts objects filtered by the ip column - * @method array findByDbAttempts(int $attempts) Return CcLoginAttempts objects filtered by the attempts column + * @method CcLoginAttempts findOneByDbAttempts(int $attempts) Return the first CcLoginAttempts filtered by the attempts column + * + * @method array findByDbIP(string $ip) Return CcLoginAttempts objects filtered by the ip column + * @method array findByDbAttempts(int $attempts) Return CcLoginAttempts objects filtered by the attempts column * * @package propel.generator.airtime.om */ abstract class BaseCcLoginAttemptsQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcLoginAttemptsQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcLoginAttempts'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcLoginAttemptsQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcLoginAttemptsQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcLoginAttemptsQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcLoginAttemptsQuery) { + return $criteria; + } + $query = new CcLoginAttemptsQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcLoginAttempts|CcLoginAttempts[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcLoginAttemptsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcLoginAttemptsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcLoginAttempts A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbIP($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcLoginAttempts A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "ip", "attempts" FROM "cc_login_attempts" WHERE "ip" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_STR); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcLoginAttempts(); + $obj->hydrate($row); + CcLoginAttemptsPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcLoginAttempts|CcLoginAttempts[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcLoginAttempts[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcLoginAttemptsQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcLoginAttemptsPeer::IP, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcLoginAttemptsQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcLoginAttemptsPeer::IP, $keys, Criteria::IN); + } + + /** + * Filter the query on the ip column + * + * Example usage: + * + * $query->filterByDbIP('fooValue'); // WHERE ip = 'fooValue' + * $query->filterByDbIP('%fooValue%'); // WHERE ip LIKE '%fooValue%' + * + * + * @param string $dbIP 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 CcLoginAttemptsQuery The current query, for fluid interface + */ + public function filterByDbIP($dbIP = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbIP)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbIP)) { + $dbIP = str_replace('*', '%', $dbIP); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcLoginAttemptsPeer::IP, $dbIP, $comparison); + } + + /** + * Filter the query on the attempts column + * + * Example usage: + * + * $query->filterByDbAttempts(1234); // WHERE attempts = 1234 + * $query->filterByDbAttempts(array(12, 34)); // WHERE attempts IN (12, 34) + * $query->filterByDbAttempts(array('min' => 12)); // WHERE attempts >= 12 + * $query->filterByDbAttempts(array('max' => 12)); // WHERE attempts <= 12 + * + * + * @param mixed $dbAttempts The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcLoginAttemptsQuery The current query, for fluid interface + */ + public function filterByDbAttempts($dbAttempts = null, $comparison = null) + { + if (is_array($dbAttempts)) { + $useMinMax = false; + if (isset($dbAttempts['min'])) { + $this->addUsingAlias(CcLoginAttemptsPeer::ATTEMPTS, $dbAttempts['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbAttempts['max'])) { + $this->addUsingAlias(CcLoginAttemptsPeer::ATTEMPTS, $dbAttempts['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcLoginAttemptsPeer::ATTEMPTS, $dbAttempts, $comparison); + } + + /** + * Exclude object from result + * + * @param CcLoginAttempts $ccLoginAttempts Object to remove from the list of results + * + * @return CcLoginAttemptsQuery The current query, for fluid interface + */ + public function prune($ccLoginAttempts = null) + { + if ($ccLoginAttempts) { + $this->addUsingAlias(CcLoginAttemptsPeer::IP, $ccLoginAttempts->getDbIP(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcLoginAttemptsQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcLoginAttempts', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcLoginAttemptsQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcLoginAttemptsQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcLoginAttemptsQuery) { - return $criteria; - } - $query = new CcLoginAttemptsQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcLoginAttempts|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcLoginAttemptsPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcLoginAttemptsQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcLoginAttemptsPeer::IP, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcLoginAttemptsQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcLoginAttemptsPeer::IP, $keys, Criteria::IN); - } - - /** - * Filter the query on the ip column - * - * @param string $dbIP 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 CcLoginAttemptsQuery The current query, for fluid interface - */ - public function filterByDbIP($dbIP = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbIP)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbIP)) { - $dbIP = str_replace('*', '%', $dbIP); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcLoginAttemptsPeer::IP, $dbIP, $comparison); - } - - /** - * Filter the query on the attempts column - * - * @param int|array $dbAttempts The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcLoginAttemptsQuery The current query, for fluid interface - */ - public function filterByDbAttempts($dbAttempts = null, $comparison = null) - { - if (is_array($dbAttempts)) { - $useMinMax = false; - if (isset($dbAttempts['min'])) { - $this->addUsingAlias(CcLoginAttemptsPeer::ATTEMPTS, $dbAttempts['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbAttempts['max'])) { - $this->addUsingAlias(CcLoginAttemptsPeer::ATTEMPTS, $dbAttempts['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcLoginAttemptsPeer::ATTEMPTS, $dbAttempts, $comparison); - } - - /** - * Exclude object from result - * - * @param CcLoginAttempts $ccLoginAttempts Object to remove from the list of results - * - * @return CcLoginAttemptsQuery The current query, for fluid interface - */ - public function prune($ccLoginAttempts = null) - { - if ($ccLoginAttempts) { - $this->addUsingAlias(CcLoginAttemptsPeer::IP, $ccLoginAttempts->getDbIP(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcLoginAttemptsQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcMountName.php b/airtime_mvc/application/models/airtime/om/BaseCcMountName.php index b476f05a8e..6917ae1efd 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcMountName.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcMountName.php @@ -4,890 +4,1163 @@ /** * Base class that represents a row from the 'cc_mount_name' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcMountName extends BaseObject implements Persistent +abstract class BaseCcMountName extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcMountNamePeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcMountNamePeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the mount_name field. - * @var string - */ - protected $mount_name; - - /** - * @var array CcListenerCount[] Collection to store aggregation of CcListenerCount objects. - */ - protected $collCcListenerCounts; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [mount_name] column value. - * - * @return string - */ - public function getDbMountName() - { - return $this->mount_name; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcMountName The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcMountNamePeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [mount_name] column. - * - * @param string $v new value - * @return CcMountName The current object (for fluent API support) - */ - public function setDbMountName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->mount_name !== $v) { - $this->mount_name = $v; - $this->modifiedColumns[] = CcMountNamePeer::MOUNT_NAME; - } - - return $this; - } // setDbMountName() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->mount_name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 2; // 2 = CcMountNamePeer::NUM_COLUMNS - CcMountNamePeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcMountName object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcMountNamePeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->collCcListenerCounts = null; - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcMountNameQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcMountNamePeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcMountNamePeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcMountNamePeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcMountNamePeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows = 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows = CcMountNamePeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - if ($this->collCcListenerCounts !== null) { - foreach ($this->collCcListenerCounts as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - if (($retval = CcMountNamePeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - if ($this->collCcListenerCounts !== null) { - foreach ($this->collCcListenerCounts as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcMountNamePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbMountName(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) - { - $keys = CcMountNamePeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbMountName(), - ); - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcMountNamePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbMountName($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcMountNamePeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbMountName($arr[$keys[1]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcMountNamePeer::DATABASE_NAME); - - if ($this->isColumnModified(CcMountNamePeer::ID)) $criteria->add(CcMountNamePeer::ID, $this->id); - if ($this->isColumnModified(CcMountNamePeer::MOUNT_NAME)) $criteria->add(CcMountNamePeer::MOUNT_NAME, $this->mount_name); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcMountNamePeer::DATABASE_NAME); - $criteria->add(CcMountNamePeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcMountName (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbMountName($this->mount_name); - - if ($deepCopy) { - // important: temporarily setNew(false) because this affects the behavior of - // the getter/setter methods for fkey referrer objects. - $copyObj->setNew(false); - - foreach ($this->getCcListenerCounts() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcListenerCount($relObj->copy($deepCopy)); - } - } - - } // if ($deepCopy) - - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcMountName Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcMountNamePeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcMountNamePeer(); - } - return self::$peer; - } - - /** - * Clears out the collCcListenerCounts 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 addCcListenerCounts() - */ - public function clearCcListenerCounts() - { - $this->collCcListenerCounts = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcListenerCounts collection. - * - * By default this just sets the collCcListenerCounts collection to an empty array (like clearcollCcListenerCounts()); - * 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 initCcListenerCounts() - { - $this->collCcListenerCounts = new PropelObjectCollection(); - $this->collCcListenerCounts->setModel('CcListenerCount'); - } - - /** - * Gets an array of CcListenerCount 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 CcMountName 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 CcListenerCount[] List of CcListenerCount objects - * @throws PropelException - */ - public function getCcListenerCounts($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcListenerCounts || null !== $criteria) { - if ($this->isNew() && null === $this->collCcListenerCounts) { - // return empty collection - $this->initCcListenerCounts(); - } else { - $collCcListenerCounts = CcListenerCountQuery::create(null, $criteria) - ->filterByCcMountName($this) - ->find($con); - if (null !== $criteria) { - return $collCcListenerCounts; - } - $this->collCcListenerCounts = $collCcListenerCounts; - } - } - return $this->collCcListenerCounts; - } - - /** - * Returns the number of related CcListenerCount objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcListenerCount objects. - * @throws PropelException - */ - public function countCcListenerCounts(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcListenerCounts || null !== $criteria) { - if ($this->isNew() && null === $this->collCcListenerCounts) { - return 0; - } else { - $query = CcListenerCountQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcMountName($this) - ->count($con); - } - } else { - return count($this->collCcListenerCounts); - } - } - - /** - * Method called to associate a CcListenerCount object to this object - * through the CcListenerCount foreign key attribute. - * - * @param CcListenerCount $l CcListenerCount - * @return void - * @throws PropelException - */ - public function addCcListenerCount(CcListenerCount $l) - { - if ($this->collCcListenerCounts === null) { - $this->initCcListenerCounts(); - } - if (!$this->collCcListenerCounts->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcListenerCounts[]= $l; - $l->setCcMountName($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcMountName is new, it will return - * an empty collection; or if this CcMountName has previously - * been saved, it will retrieve related CcListenerCounts from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcMountName. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcListenerCount[] List of CcListenerCount objects - */ - public function getCcListenerCountsJoinCcTimestamp($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcListenerCountQuery::create(null, $criteria); - $query->joinWith('CcTimestamp', $join_behavior); - - return $this->getCcListenerCounts($query, $con); - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->mount_name = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - if ($this->collCcListenerCounts) { - foreach ((array) $this->collCcListenerCounts as $o) { - $o->clearAllReferences($deep); - } - } - } // if ($deep) - - $this->collCcListenerCounts = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcMountName + /** + * Peer class name + */ + const PEER = 'CcMountNamePeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcMountNamePeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the mount_name field. + * @var string + */ + protected $mount_name; + + /** + * @var PropelObjectCollection|CcListenerCount[] Collection to store aggregation of CcListenerCount objects. + */ + protected $collCcListenerCounts; + protected $collCcListenerCountsPartial; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccListenerCountsScheduledForDeletion = null; + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [mount_name] column value. + * + * @return string + */ + public function getDbMountName() + { + + return $this->mount_name; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcMountName The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcMountNamePeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [mount_name] column. + * + * @param string $v new value + * @return CcMountName The current object (for fluent API support) + */ + public function setDbMountName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->mount_name !== $v) { + $this->mount_name = $v; + $this->modifiedColumns[] = CcMountNamePeer::MOUNT_NAME; + } + + + return $this; + } // setDbMountName() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->mount_name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 2; // 2 = CcMountNamePeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcMountName object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcMountNamePeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->collCcListenerCounts = null; + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcMountNameQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcMountNamePeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + if ($this->ccListenerCountsScheduledForDeletion !== null) { + if (!$this->ccListenerCountsScheduledForDeletion->isEmpty()) { + CcListenerCountQuery::create() + ->filterByPrimaryKeys($this->ccListenerCountsScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccListenerCountsScheduledForDeletion = null; + } + } + + if ($this->collCcListenerCounts !== null) { + foreach ($this->collCcListenerCounts as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcMountNamePeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcMountNamePeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_mount_name_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcMountNamePeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcMountNamePeer::MOUNT_NAME)) { + $modifiedColumns[':p' . $index++] = '"mount_name"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_mount_name" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"mount_name"': + $stmt->bindValue($identifier, $this->mount_name, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + if (($retval = CcMountNamePeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + if ($this->collCcListenerCounts !== null) { + foreach ($this->collCcListenerCounts as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcMountNamePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbMountName(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcMountName'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcMountName'][$this->getPrimaryKey()] = true; + $keys = CcMountNamePeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbMountName(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->collCcListenerCounts) { + $result['CcListenerCounts'] = $this->collCcListenerCounts->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcMountNamePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbMountName($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcMountNamePeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbMountName($arr[$keys[1]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcMountNamePeer::DATABASE_NAME); + + if ($this->isColumnModified(CcMountNamePeer::ID)) $criteria->add(CcMountNamePeer::ID, $this->id); + if ($this->isColumnModified(CcMountNamePeer::MOUNT_NAME)) $criteria->add(CcMountNamePeer::MOUNT_NAME, $this->mount_name); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcMountNamePeer::DATABASE_NAME); + $criteria->add(CcMountNamePeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcMountName (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbMountName($this->getDbMountName()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + foreach ($this->getCcListenerCounts() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcListenerCount($relObj->copy($deepCopy)); + } + } + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcMountName Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcMountNamePeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcMountNamePeer(); + } + + return self::$peer; + } + + + /** + * Initializes a collection based on the name of a relation. + * Avoids crafting an 'init[$relationName]s' method name + * that wouldn't work when StandardEnglishPluralizer is used. + * + * @param string $relationName The name of the relation to initialize + * @return void + */ + public function initRelation($relationName) + { + if ('CcListenerCount' == $relationName) { + $this->initCcListenerCounts(); + } + } + + /** + * Clears out the collCcListenerCounts 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 CcMountName The current object (for fluent API support) + * @see addCcListenerCounts() + */ + public function clearCcListenerCounts() + { + $this->collCcListenerCounts = null; // important to set this to null since that means it is uninitialized + $this->collCcListenerCountsPartial = null; + + return $this; + } + + /** + * reset is the collCcListenerCounts collection loaded partially + * + * @return void + */ + public function resetPartialCcListenerCounts($v = true) + { + $this->collCcListenerCountsPartial = $v; + } + + /** + * Initializes the collCcListenerCounts collection. + * + * By default this just sets the collCcListenerCounts collection to an empty array (like clearcollCcListenerCounts()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcListenerCounts($overrideExisting = true) + { + if (null !== $this->collCcListenerCounts && !$overrideExisting) { + return; + } + $this->collCcListenerCounts = new PropelObjectCollection(); + $this->collCcListenerCounts->setModel('CcListenerCount'); + } + + /** + * Gets an array of CcListenerCount 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 CcMountName 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 PropelObjectCollection|CcListenerCount[] List of CcListenerCount objects + * @throws PropelException + */ + public function getCcListenerCounts($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcListenerCountsPartial && !$this->isNew(); + if (null === $this->collCcListenerCounts || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcListenerCounts) { + // return empty collection + $this->initCcListenerCounts(); + } else { + $collCcListenerCounts = CcListenerCountQuery::create(null, $criteria) + ->filterByCcMountName($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcListenerCountsPartial && count($collCcListenerCounts)) { + $this->initCcListenerCounts(false); + + foreach ($collCcListenerCounts as $obj) { + if (false == $this->collCcListenerCounts->contains($obj)) { + $this->collCcListenerCounts->append($obj); + } + } + + $this->collCcListenerCountsPartial = true; + } + + $collCcListenerCounts->getInternalIterator()->rewind(); + + return $collCcListenerCounts; + } + + if ($partial && $this->collCcListenerCounts) { + foreach ($this->collCcListenerCounts as $obj) { + if ($obj->isNew()) { + $collCcListenerCounts[] = $obj; + } + } + } + + $this->collCcListenerCounts = $collCcListenerCounts; + $this->collCcListenerCountsPartial = false; + } + } + + return $this->collCcListenerCounts; + } + + /** + * Sets a collection of CcListenerCount objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccListenerCounts A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcMountName The current object (for fluent API support) + */ + public function setCcListenerCounts(PropelCollection $ccListenerCounts, PropelPDO $con = null) + { + $ccListenerCountsToDelete = $this->getCcListenerCounts(new Criteria(), $con)->diff($ccListenerCounts); + + + $this->ccListenerCountsScheduledForDeletion = $ccListenerCountsToDelete; + + foreach ($ccListenerCountsToDelete as $ccListenerCountRemoved) { + $ccListenerCountRemoved->setCcMountName(null); + } + + $this->collCcListenerCounts = null; + foreach ($ccListenerCounts as $ccListenerCount) { + $this->addCcListenerCount($ccListenerCount); + } + + $this->collCcListenerCounts = $ccListenerCounts; + $this->collCcListenerCountsPartial = false; + + return $this; + } + + /** + * Returns the number of related CcListenerCount objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcListenerCount objects. + * @throws PropelException + */ + public function countCcListenerCounts(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcListenerCountsPartial && !$this->isNew(); + if (null === $this->collCcListenerCounts || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcListenerCounts) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcListenerCounts()); + } + $query = CcListenerCountQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcMountName($this) + ->count($con); + } + + return count($this->collCcListenerCounts); + } + + /** + * Method called to associate a CcListenerCount object to this object + * through the CcListenerCount foreign key attribute. + * + * @param CcListenerCount $l CcListenerCount + * @return CcMountName The current object (for fluent API support) + */ + public function addCcListenerCount(CcListenerCount $l) + { + if ($this->collCcListenerCounts === null) { + $this->initCcListenerCounts(); + $this->collCcListenerCountsPartial = true; + } + + if (!in_array($l, $this->collCcListenerCounts->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcListenerCount($l); + + if ($this->ccListenerCountsScheduledForDeletion and $this->ccListenerCountsScheduledForDeletion->contains($l)) { + $this->ccListenerCountsScheduledForDeletion->remove($this->ccListenerCountsScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcListenerCount $ccListenerCount The ccListenerCount object to add. + */ + protected function doAddCcListenerCount($ccListenerCount) + { + $this->collCcListenerCounts[]= $ccListenerCount; + $ccListenerCount->setCcMountName($this); + } + + /** + * @param CcListenerCount $ccListenerCount The ccListenerCount object to remove. + * @return CcMountName The current object (for fluent API support) + */ + public function removeCcListenerCount($ccListenerCount) + { + if ($this->getCcListenerCounts()->contains($ccListenerCount)) { + $this->collCcListenerCounts->remove($this->collCcListenerCounts->search($ccListenerCount)); + if (null === $this->ccListenerCountsScheduledForDeletion) { + $this->ccListenerCountsScheduledForDeletion = clone $this->collCcListenerCounts; + $this->ccListenerCountsScheduledForDeletion->clear(); + } + $this->ccListenerCountsScheduledForDeletion[]= clone $ccListenerCount; + $ccListenerCount->setCcMountName(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcMountName is new, it will return + * an empty collection; or if this CcMountName has previously + * been saved, it will retrieve related CcListenerCounts from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcMountName. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcListenerCount[] List of CcListenerCount objects + */ + public function getCcListenerCountsJoinCcTimestamp($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcListenerCountQuery::create(null, $criteria); + $query->joinWith('CcTimestamp', $join_behavior); + + return $this->getCcListenerCounts($query, $con); + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->mount_name = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->collCcListenerCounts) { + foreach ($this->collCcListenerCounts as $o) { + $o->clearAllReferences($deep); + } + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + if ($this->collCcListenerCounts instanceof PropelCollection) { + $this->collCcListenerCounts->clearIterator(); + } + $this->collCcListenerCounts = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcMountNamePeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcMountNamePeer.php b/airtime_mvc/application/models/airtime/om/BaseCcMountNamePeer.php index af2e416b17..ebbdb596ed 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcMountNamePeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcMountNamePeer.php @@ -4,735 +4,757 @@ /** * Base static class for performing query and update operations on the 'cc_mount_name' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcMountNamePeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_mount_name'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcMountName'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcMountName'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcMountNameTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 2; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_mount_name.ID'; - - /** the column name for the MOUNT_NAME field */ - const MOUNT_NAME = 'cc_mount_name.MOUNT_NAME'; - - /** - * An identiy map to hold any loaded instances of CcMountName objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcMountName[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbMountName', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbMountName', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::MOUNT_NAME, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'MOUNT_NAME', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'mount_name', ), - BasePeer::TYPE_NUM => array (0, 1, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbMountName' => 1, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbMountName' => 1, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::MOUNT_NAME => 1, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'MOUNT_NAME' => 1, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'mount_name' => 1, ), - BasePeer::TYPE_NUM => array (0, 1, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcMountNamePeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcMountNamePeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcMountNamePeer::ID); - $criteria->addSelectColumn(CcMountNamePeer::MOUNT_NAME); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.MOUNT_NAME'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcMountNamePeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcMountNamePeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcMountName - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcMountNamePeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcMountNamePeer::populateObjects(CcMountNamePeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcMountNamePeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcMountName $value A CcMountName object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcMountName $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcMountName object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcMountName) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcMountName object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcMountName Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_mount_name - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - // Invalidate objects in CcListenerCountPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcListenerCountPeer::clearInstancePool(); - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcMountNamePeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcMountNamePeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcMountNamePeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcMountNamePeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcMountName object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcMountNamePeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcMountNamePeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcMountNamePeer::NUM_COLUMNS; - } else { - $cls = CcMountNamePeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcMountNamePeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcMountNamePeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcMountNamePeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcMountNameTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcMountNamePeer::CLASS_DEFAULT : CcMountNamePeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcMountName or Criteria object. - * - * @param mixed $values Criteria or CcMountName object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcMountName object - } - - if ($criteria->containsKey(CcMountNamePeer::ID) && $criteria->keyContainsValue(CcMountNamePeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcMountNamePeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcMountName or Criteria object. - * - * @param mixed $values Criteria or CcMountName object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcMountNamePeer::ID); - $value = $criteria->remove(CcMountNamePeer::ID); - if ($value) { - $selectCriteria->add(CcMountNamePeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcMountNamePeer::TABLE_NAME); - } - - } else { // $values is CcMountName object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_mount_name table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcMountNamePeer::TABLE_NAME, $con, CcMountNamePeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcMountNamePeer::clearInstancePool(); - CcMountNamePeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcMountName or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcMountName object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcMountNamePeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcMountName) { // it's a model object - // invalidate the cache for this single object - CcMountNamePeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcMountNamePeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcMountNamePeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcMountNamePeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcMountName object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcMountName $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcMountName $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcMountNamePeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcMountNamePeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcMountNamePeer::DATABASE_NAME, CcMountNamePeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcMountName - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcMountNamePeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcMountNamePeer::DATABASE_NAME); - $criteria->add(CcMountNamePeer::ID, $pk); - - $v = CcMountNamePeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcMountNamePeer::DATABASE_NAME); - $criteria->add(CcMountNamePeer::ID, $pks, Criteria::IN); - $objs = CcMountNamePeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcMountNamePeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_mount_name'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcMountName'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcMountNameTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 2; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 2; + + /** the column name for the id field */ + const ID = 'cc_mount_name.id'; + + /** the column name for the mount_name field */ + const MOUNT_NAME = 'cc_mount_name.mount_name'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcMountName objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcMountName[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcMountNamePeer::$fieldNames[CcMountNamePeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbMountName', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbMountName', ), + BasePeer::TYPE_COLNAME => array (CcMountNamePeer::ID, CcMountNamePeer::MOUNT_NAME, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'MOUNT_NAME', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'mount_name', ), + BasePeer::TYPE_NUM => array (0, 1, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcMountNamePeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbMountName' => 1, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbMountName' => 1, ), + BasePeer::TYPE_COLNAME => array (CcMountNamePeer::ID => 0, CcMountNamePeer::MOUNT_NAME => 1, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'MOUNT_NAME' => 1, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'mount_name' => 1, ), + BasePeer::TYPE_NUM => array (0, 1, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcMountNamePeer::getFieldNames($toType); + $key = isset(CcMountNamePeer::$fieldKeys[$fromType][$name]) ? CcMountNamePeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcMountNamePeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcMountNamePeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcMountNamePeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcMountNamePeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcMountNamePeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcMountNamePeer::ID); + $criteria->addSelectColumn(CcMountNamePeer::MOUNT_NAME); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.mount_name'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcMountNamePeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcMountNamePeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcMountNamePeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcMountName + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcMountNamePeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcMountNamePeer::populateObjects(CcMountNamePeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcMountNamePeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcMountNamePeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcMountName $obj A CcMountName object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcMountNamePeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcMountName object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcMountName) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcMountName object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcMountNamePeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcMountName Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcMountNamePeer::$instances[$key])) { + return CcMountNamePeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcMountNamePeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcMountNamePeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_mount_name + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + // Invalidate objects in CcListenerCountPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcListenerCountPeer::clearInstancePool(); + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcMountNamePeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcMountNamePeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcMountNamePeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcMountNamePeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcMountName object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcMountNamePeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcMountNamePeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcMountNamePeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcMountNamePeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcMountNamePeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcMountNamePeer::DATABASE_NAME)->getTable(CcMountNamePeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcMountNamePeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcMountNamePeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcMountNameTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcMountNamePeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcMountName or Criteria object. + * + * @param mixed $values Criteria or CcMountName object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcMountName object + } + + if ($criteria->containsKey(CcMountNamePeer::ID) && $criteria->keyContainsValue(CcMountNamePeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcMountNamePeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcMountNamePeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcMountName or Criteria object. + * + * @param mixed $values Criteria or CcMountName object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcMountNamePeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcMountNamePeer::ID); + $value = $criteria->remove(CcMountNamePeer::ID); + if ($value) { + $selectCriteria->add(CcMountNamePeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcMountNamePeer::TABLE_NAME); + } + + } else { // $values is CcMountName object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcMountNamePeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_mount_name table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcMountNamePeer::TABLE_NAME, $con, CcMountNamePeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcMountNamePeer::clearInstancePool(); + CcMountNamePeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcMountName or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcMountName object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcMountNamePeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcMountName) { // it's a model object + // invalidate the cache for this single object + CcMountNamePeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcMountNamePeer::DATABASE_NAME); + $criteria->add(CcMountNamePeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcMountNamePeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcMountNamePeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcMountNamePeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcMountName object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcMountName $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcMountNamePeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcMountNamePeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcMountNamePeer::DATABASE_NAME, CcMountNamePeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcMountName + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcMountNamePeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcMountNamePeer::DATABASE_NAME); + $criteria->add(CcMountNamePeer::ID, $pk); + + $v = CcMountNamePeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcMountName[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcMountNamePeer::DATABASE_NAME); + $criteria->add(CcMountNamePeer::ID, $pks, Criteria::IN); + $objs = CcMountNamePeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcMountNamePeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcMountNameQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcMountNameQuery.php index 52af75f382..af0f6befc2 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcMountNameQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcMountNameQuery.php @@ -4,256 +4,384 @@ /** * Base class that represents a query for the 'cc_mount_name' table. * - * * - * @method CcMountNameQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcMountNameQuery orderByDbMountName($order = Criteria::ASC) Order by the mount_name column * - * @method CcMountNameQuery groupByDbId() Group by the id column - * @method CcMountNameQuery groupByDbMountName() Group by the mount_name column + * @method CcMountNameQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcMountNameQuery orderByDbMountName($order = Criteria::ASC) Order by the mount_name column * - * @method CcMountNameQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcMountNameQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcMountNameQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcMountNameQuery groupByDbId() Group by the id column + * @method CcMountNameQuery groupByDbMountName() Group by the mount_name column * - * @method CcMountNameQuery leftJoinCcListenerCount($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcListenerCount relation - * @method CcMountNameQuery rightJoinCcListenerCount($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcListenerCount relation - * @method CcMountNameQuery innerJoinCcListenerCount($relationAlias = '') Adds a INNER JOIN clause to the query using the CcListenerCount relation + * @method CcMountNameQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcMountNameQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcMountNameQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcMountName findOne(PropelPDO $con = null) Return the first CcMountName matching the query - * @method CcMountName findOneOrCreate(PropelPDO $con = null) Return the first CcMountName matching the query, or a new CcMountName object populated from the query conditions when no match is found + * @method CcMountNameQuery leftJoinCcListenerCount($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcListenerCount relation + * @method CcMountNameQuery rightJoinCcListenerCount($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcListenerCount relation + * @method CcMountNameQuery innerJoinCcListenerCount($relationAlias = null) Adds a INNER JOIN clause to the query using the CcListenerCount relation * - * @method CcMountName findOneByDbId(int $id) Return the first CcMountName filtered by the id column - * @method CcMountName findOneByDbMountName(string $mount_name) Return the first CcMountName filtered by the mount_name column + * @method CcMountName findOne(PropelPDO $con = null) Return the first CcMountName matching the query + * @method CcMountName findOneOrCreate(PropelPDO $con = null) Return the first CcMountName matching the query, or a new CcMountName object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcMountName objects filtered by the id column - * @method array findByDbMountName(string $mount_name) Return CcMountName objects filtered by the mount_name column + * @method CcMountName findOneByDbMountName(string $mount_name) Return the first CcMountName filtered by the mount_name column + * + * @method array findByDbId(int $id) Return CcMountName objects filtered by the id column + * @method array findByDbMountName(string $mount_name) Return CcMountName objects filtered by the mount_name column * * @package propel.generator.airtime.om */ abstract class BaseCcMountNameQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcMountNameQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcMountName'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcMountNameQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcMountNameQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcMountNameQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcMountNameQuery) { + return $criteria; + } + $query = new CcMountNameQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcMountName|CcMountName[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcMountNamePeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcMountNamePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcMountName A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcMountName A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "mount_name" FROM "cc_mount_name" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcMountName(); + $obj->hydrate($row); + CcMountNamePeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcMountName|CcMountName[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcMountName[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcMountNameQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcMountNamePeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcMountNameQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcMountNamePeer::ID, $keys, Criteria::IN); + } - /** - * Initializes internal state of BaseCcMountNameQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcMountName', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcMountNameQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcMountNamePeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcMountNamePeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } - /** - * Returns a new CcMountNameQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcMountNameQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcMountNameQuery) { - return $criteria; - } - $query = new CcMountNameQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } + return $this->addUsingAlias(CcMountNamePeer::ID, $dbId, $comparison); + } - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcMountName|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcMountNamePeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } + /** + * Filter the query on the mount_name column + * + * Example usage: + * + * $query->filterByDbMountName('fooValue'); // WHERE mount_name = 'fooValue' + * $query->filterByDbMountName('%fooValue%'); // WHERE mount_name LIKE '%fooValue%' + * + * + * @param string $dbMountName 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 CcMountNameQuery The current query, for fluid interface + */ + public function filterByDbMountName($dbMountName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbMountName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbMountName)) { + $dbMountName = str_replace('*', '%', $dbMountName); + $comparison = Criteria::LIKE; + } + } - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } + return $this->addUsingAlias(CcMountNamePeer::MOUNT_NAME, $dbMountName, $comparison); + } - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcMountNameQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcMountNamePeer::ID, $key, Criteria::EQUAL); - } + /** + * Filter the query by a related CcListenerCount object + * + * @param CcListenerCount|PropelObjectCollection $ccListenerCount the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcMountNameQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcListenerCount($ccListenerCount, $comparison = null) + { + if ($ccListenerCount instanceof CcListenerCount) { + return $this + ->addUsingAlias(CcMountNamePeer::ID, $ccListenerCount->getDbMountNameId(), $comparison); + } elseif ($ccListenerCount instanceof PropelObjectCollection) { + return $this + ->useCcListenerCountQuery() + ->filterByPrimaryKeys($ccListenerCount->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcListenerCount() only accepts arguments of type CcListenerCount or PropelCollection'); + } + } - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcMountNameQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcMountNamePeer::ID, $keys, Criteria::IN); - } + /** + * Adds a JOIN clause to the query using the CcListenerCount relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcMountNameQuery The current query, for fluid interface + */ + public function joinCcListenerCount($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcListenerCount'); - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcMountNameQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcMountNamePeer::ID, $dbId, $comparison); - } + // 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); + } - /** - * Filter the query on the mount_name column - * - * @param string $dbMountName 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 CcMountNameQuery The current query, for fluid interface - */ - public function filterByDbMountName($dbMountName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbMountName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbMountName)) { - $dbMountName = str_replace('*', '%', $dbMountName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcMountNamePeer::MOUNT_NAME, $dbMountName, $comparison); - } + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'CcListenerCount'); + } - /** - * Filter the query by a related CcListenerCount object - * - * @param CcListenerCount $ccListenerCount the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcMountNameQuery The current query, for fluid interface - */ - public function filterByCcListenerCount($ccListenerCount, $comparison = null) - { - return $this - ->addUsingAlias(CcMountNamePeer::ID, $ccListenerCount->getDbMountNameId(), $comparison); - } + return $this; + } - /** - * Adds a JOIN clause to the query using the CcListenerCount relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcMountNameQuery The current query, for fluid interface - */ - public function joinCcListenerCount($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcListenerCount'); - - // 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, 'CcListenerCount'); - } - - return $this; - } + /** + * Use the CcListenerCount relation CcListenerCount 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 CcListenerCountQuery A secondary query class using the current class as primary query + */ + public function useCcListenerCountQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcListenerCount($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcListenerCount', 'CcListenerCountQuery'); + } - /** - * Use the CcListenerCount relation CcListenerCount 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 CcListenerCountQuery A secondary query class using the current class as primary query - */ - public function useCcListenerCountQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcListenerCount($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcListenerCount', 'CcListenerCountQuery'); - } + /** + * Exclude object from result + * + * @param CcMountName $ccMountName Object to remove from the list of results + * + * @return CcMountNameQuery The current query, for fluid interface + */ + public function prune($ccMountName = null) + { + if ($ccMountName) { + $this->addUsingAlias(CcMountNamePeer::ID, $ccMountName->getDbId(), Criteria::NOT_EQUAL); + } - /** - * Exclude object from result - * - * @param CcMountName $ccMountName Object to remove from the list of results - * - * @return CcMountNameQuery The current query, for fluid interface - */ - public function prune($ccMountName = null) - { - if ($ccMountName) { - $this->addUsingAlias(CcMountNamePeer::ID, $ccMountName->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } + return $this; + } -} // BaseCcMountNameQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcMusicDirs.php b/airtime_mvc/application/models/airtime/om/BaseCcMusicDirs.php index f589159451..97718b7290 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcMusicDirs.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcMusicDirs.php @@ -4,1092 +4,1406 @@ /** * Base class that represents a row from the 'cc_music_dirs' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcMusicDirs extends BaseObject implements Persistent +abstract class BaseCcMusicDirs extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcMusicDirsPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcMusicDirsPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the directory field. - * @var string - */ - protected $directory; - - /** - * The value for the type field. - * @var string - */ - protected $type; - - /** - * The value for the exists field. - * Note: this column has a database default value of: true - * @var boolean - */ - protected $exists; - - /** - * The value for the watched field. - * Note: this column has a database default value of: true - * @var boolean - */ - protected $watched; - - /** - * @var array CcFiles[] Collection to store aggregation of CcFiles objects. - */ - protected $collCcFiless; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - 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->exists = true; - $this->watched = true; - } - - /** - * Initializes internal state of BaseCcMusicDirs object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [id] column value. - * - * @return int - */ - public function getId() - { - return $this->id; - } - - /** - * Get the [directory] column value. - * - * @return string - */ - public function getDirectory() - { - return $this->directory; - } - - /** - * Get the [type] column value. - * - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Get the [exists] column value. - * - * @return boolean - */ - public function getExists() - { - return $this->exists; - } - - /** - * Get the [watched] column value. - * - * @return boolean - */ - public function getWatched() - { - return $this->watched; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcMusicDirs The current object (for fluent API support) - */ - public function setId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcMusicDirsPeer::ID; - } - - return $this; - } // setId() - - /** - * Set the value of [directory] column. - * - * @param string $v new value - * @return CcMusicDirs The current object (for fluent API support) - */ - public function setDirectory($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->directory !== $v) { - $this->directory = $v; - $this->modifiedColumns[] = CcMusicDirsPeer::DIRECTORY; - } - - return $this; - } // setDirectory() - - /** - * Set the value of [type] column. - * - * @param string $v new value - * @return CcMusicDirs The current object (for fluent API support) - */ - public function setType($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->type !== $v) { - $this->type = $v; - $this->modifiedColumns[] = CcMusicDirsPeer::TYPE; - } - - return $this; - } // setType() - - /** - * Set the value of [exists] column. - * - * @param boolean $v new value - * @return CcMusicDirs The current object (for fluent API support) - */ - public function setExists($v) - { - if ($v !== null) { - $v = (boolean) $v; - } - - if ($this->exists !== $v || $this->isNew()) { - $this->exists = $v; - $this->modifiedColumns[] = CcMusicDirsPeer::EXISTS; - } - - return $this; - } // setExists() - - /** - * Set the value of [watched] column. - * - * @param boolean $v new value - * @return CcMusicDirs The current object (for fluent API support) - */ - public function setWatched($v) - { - if ($v !== null) { - $v = (boolean) $v; - } - - if ($this->watched !== $v || $this->isNew()) { - $this->watched = $v; - $this->modifiedColumns[] = CcMusicDirsPeer::WATCHED; - } - - return $this; - } // setWatched() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->exists !== true) { - return false; - } - - if ($this->watched !== true) { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->directory = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->type = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->exists = ($row[$startcol + 3] !== null) ? (boolean) $row[$startcol + 3] : null; - $this->watched = ($row[$startcol + 4] !== null) ? (boolean) $row[$startcol + 4] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 5; // 5 = CcMusicDirsPeer::NUM_COLUMNS - CcMusicDirsPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcMusicDirs object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcMusicDirsPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->collCcFiless = null; - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcMusicDirsQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcMusicDirsPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcMusicDirsPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcMusicDirsPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcMusicDirsPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows = 1; - $this->setId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows = CcMusicDirsPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - if ($this->collCcFiless !== null) { - foreach ($this->collCcFiless as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - if (($retval = CcMusicDirsPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - if ($this->collCcFiless !== null) { - foreach ($this->collCcFiless as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcMusicDirsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getId(); - break; - case 1: - return $this->getDirectory(); - break; - case 2: - return $this->getType(); - break; - case 3: - return $this->getExists(); - break; - case 4: - return $this->getWatched(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) - { - $keys = CcMusicDirsPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getId(), - $keys[1] => $this->getDirectory(), - $keys[2] => $this->getType(), - $keys[3] => $this->getExists(), - $keys[4] => $this->getWatched(), - ); - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcMusicDirsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setId($value); - break; - case 1: - $this->setDirectory($value); - break; - case 2: - $this->setType($value); - break; - case 3: - $this->setExists($value); - break; - case 4: - $this->setWatched($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcMusicDirsPeer::getFieldNames($keyType); - - 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[2], $arr)) $this->setType($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setExists($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setWatched($arr[$keys[4]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcMusicDirsPeer::DATABASE_NAME); - - 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::TYPE)) $criteria->add(CcMusicDirsPeer::TYPE, $this->type); - if ($this->isColumnModified(CcMusicDirsPeer::EXISTS)) $criteria->add(CcMusicDirsPeer::EXISTS, $this->exists); - if ($this->isColumnModified(CcMusicDirsPeer::WATCHED)) $criteria->add(CcMusicDirsPeer::WATCHED, $this->watched); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcMusicDirsPeer::DATABASE_NAME); - $criteria->add(CcMusicDirsPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcMusicDirs (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDirectory($this->directory); - $copyObj->setType($this->type); - $copyObj->setExists($this->exists); - $copyObj->setWatched($this->watched); - - if ($deepCopy) { - // important: temporarily setNew(false) because this affects the behavior of - // the getter/setter methods for fkey referrer objects. - $copyObj->setNew(false); - - 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)); - } - } - - } // if ($deepCopy) - - - $copyObj->setNew(true); - $copyObj->setId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcMusicDirs Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcMusicDirsPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcMusicDirsPeer(); - } - return self::$peer; - } - - /** - * Clears out the collCcFiless 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 addCcFiless() - */ - public function clearCcFiless() - { - $this->collCcFiless = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcFiless collection. - * - * By default this just sets the collCcFiless collection to an empty array (like clearcollCcFiless()); - * 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 initCcFiless() - { - $this->collCcFiless = new PropelObjectCollection(); - $this->collCcFiless->setModel('CcFiles'); - } - - /** - * Gets an array of CcFiles 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 CcMusicDirs 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 CcFiles[] List of CcFiles objects - * @throws PropelException - */ - public function getCcFiless($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcFiless || null !== $criteria) { - if ($this->isNew() && null === $this->collCcFiless) { - // return empty collection - $this->initCcFiless(); - } else { - $collCcFiless = CcFilesQuery::create(null, $criteria) - ->filterByCcMusicDirs($this) - ->find($con); - if (null !== $criteria) { - return $collCcFiless; - } - $this->collCcFiless = $collCcFiless; - } - } - return $this->collCcFiless; - } - - /** - * Returns the number of related CcFiles objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcFiles objects. - * @throws PropelException - */ - public function countCcFiless(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcFiless || null !== $criteria) { - if ($this->isNew() && null === $this->collCcFiless) { - return 0; - } else { - $query = CcFilesQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcMusicDirs($this) - ->count($con); - } - } else { - return count($this->collCcFiless); - } - } - - /** - * Method called to associate a CcFiles object to this object - * through the CcFiles foreign key attribute. - * - * @param CcFiles $l CcFiles - * @return void - * @throws PropelException - */ - public function addCcFiles(CcFiles $l) - { - if ($this->collCcFiless === null) { - $this->initCcFiless(); - } - if (!$this->collCcFiless->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcFiless[]= $l; - $l->setCcMusicDirs($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcMusicDirs is new, it will return - * an empty collection; or if this CcMusicDirs has previously - * been saved, it will retrieve related CcFiless from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcMusicDirs. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcFiles[] List of CcFiles objects - */ - public function getCcFilessJoinFkOwner($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcFilesQuery::create(null, $criteria); - $query->joinWith('FkOwner', $join_behavior); - - return $this->getCcFiless($query, $con); - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcMusicDirs is new, it will return - * an empty collection; or if this CcMusicDirs has previously - * been saved, it will retrieve related CcFiless from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcMusicDirs. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcFiles[] List of CcFiles objects - */ - public function getCcFilessJoinCcSubjsRelatedByDbEditedby($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcFilesQuery::create(null, $criteria); - $query->joinWith('CcSubjsRelatedByDbEditedby', $join_behavior); - - return $this->getCcFiless($query, $con); - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->directory = null; - $this->type = null; - $this->exists = null; - $this->watched = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - if ($this->collCcFiless) { - foreach ((array) $this->collCcFiless as $o) { - $o->clearAllReferences($deep); - } - } - } // if ($deep) - - $this->collCcFiless = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcMusicDirs + /** + * Peer class name + */ + const PEER = 'CcMusicDirsPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcMusicDirsPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the directory field. + * @var string + */ + protected $directory; + + /** + * The value for the type field. + * @var string + */ + protected $type; + + /** + * The value for the exists field. + * Note: this column has a database default value of: true + * @var boolean + */ + protected $exists; + + /** + * The value for the watched field. + * Note: this column has a database default value of: true + * @var boolean + */ + protected $watched; + + /** + * @var PropelObjectCollection|CcFiles[] Collection to store aggregation of CcFiles objects. + */ + protected $collCcFiless; + protected $collCcFilessPartial; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccFilessScheduledForDeletion = null; + + /** + * 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->exists = true; + $this->watched = true; + } + + /** + * Initializes internal state of BaseCcMusicDirs object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getId() + { + + return $this->id; + } + + /** + * Get the [directory] column value. + * + * @return string + */ + public function getDirectory() + { + + return $this->directory; + } + + /** + * Get the [type] column value. + * + * @return string + */ + public function getType() + { + + return $this->type; + } + + /** + * Get the [exists] column value. + * + * @return boolean + */ + public function getExists() + { + + return $this->exists; + } + + /** + * Get the [watched] column value. + * + * @return boolean + */ + public function getWatched() + { + + return $this->watched; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcMusicDirs The current object (for fluent API support) + */ + public function setId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcMusicDirsPeer::ID; + } + + + return $this; + } // setId() + + /** + * Set the value of [directory] column. + * + * @param string $v new value + * @return CcMusicDirs The current object (for fluent API support) + */ + public function setDirectory($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->directory !== $v) { + $this->directory = $v; + $this->modifiedColumns[] = CcMusicDirsPeer::DIRECTORY; + } + + + return $this; + } // setDirectory() + + /** + * Set the value of [type] column. + * + * @param string $v new value + * @return CcMusicDirs The current object (for fluent API support) + */ + public function setType($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->type !== $v) { + $this->type = $v; + $this->modifiedColumns[] = CcMusicDirsPeer::TYPE; + } + + + return $this; + } // setType() + + /** + * Sets the value of the [exists] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return CcMusicDirs The current object (for fluent API support) + */ + public function setExists($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->exists !== $v) { + $this->exists = $v; + $this->modifiedColumns[] = CcMusicDirsPeer::EXISTS; + } + + + return $this; + } // setExists() + + /** + * Sets the value of the [watched] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return CcMusicDirs The current object (for fluent API support) + */ + public function setWatched($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->watched !== $v) { + $this->watched = $v; + $this->modifiedColumns[] = CcMusicDirsPeer::WATCHED; + } + + + return $this; + } // setWatched() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->exists !== true) { + return false; + } + + if ($this->watched !== true) { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->directory = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->type = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->exists = ($row[$startcol + 3] !== null) ? (boolean) $row[$startcol + 3] : null; + $this->watched = ($row[$startcol + 4] !== null) ? (boolean) $row[$startcol + 4] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 5; // 5 = CcMusicDirsPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcMusicDirs object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcMusicDirsPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->collCcFiless = null; + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcMusicDirsQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcMusicDirsPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + if ($this->ccFilessScheduledForDeletion !== null) { + if (!$this->ccFilessScheduledForDeletion->isEmpty()) { + foreach ($this->ccFilessScheduledForDeletion as $ccFiles) { + // need to save related object because we set the relation to null + $ccFiles->save($con); + } + $this->ccFilessScheduledForDeletion = null; + } + } + + if ($this->collCcFiless !== null) { + foreach ($this->collCcFiless as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcMusicDirsPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcMusicDirsPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_music_dirs_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcMusicDirsPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcMusicDirsPeer::DIRECTORY)) { + $modifiedColumns[':p' . $index++] = '"directory"'; + } + if ($this->isColumnModified(CcMusicDirsPeer::TYPE)) { + $modifiedColumns[':p' . $index++] = '"type"'; + } + if ($this->isColumnModified(CcMusicDirsPeer::EXISTS)) { + $modifiedColumns[':p' . $index++] = '"exists"'; + } + if ($this->isColumnModified(CcMusicDirsPeer::WATCHED)) { + $modifiedColumns[':p' . $index++] = '"watched"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_music_dirs" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"directory"': + $stmt->bindValue($identifier, $this->directory, PDO::PARAM_STR); + break; + case '"type"': + $stmt->bindValue($identifier, $this->type, PDO::PARAM_STR); + break; + case '"exists"': + $stmt->bindValue($identifier, $this->exists, PDO::PARAM_BOOL); + break; + case '"watched"': + $stmt->bindValue($identifier, $this->watched, PDO::PARAM_BOOL); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + if (($retval = CcMusicDirsPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + if ($this->collCcFiless !== null) { + foreach ($this->collCcFiless as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcMusicDirsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getId(); + break; + case 1: + return $this->getDirectory(); + break; + case 2: + return $this->getType(); + break; + case 3: + return $this->getExists(); + break; + case 4: + return $this->getWatched(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcMusicDirs'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcMusicDirs'][$this->getPrimaryKey()] = true; + $keys = CcMusicDirsPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getId(), + $keys[1] => $this->getDirectory(), + $keys[2] => $this->getType(), + $keys[3] => $this->getExists(), + $keys[4] => $this->getWatched(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->collCcFiless) { + $result['CcFiless'] = $this->collCcFiless->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcMusicDirsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setId($value); + break; + case 1: + $this->setDirectory($value); + break; + case 2: + $this->setType($value); + break; + case 3: + $this->setExists($value); + break; + case 4: + $this->setWatched($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcMusicDirsPeer::getFieldNames($keyType); + + 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[2], $arr)) $this->setType($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setExists($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setWatched($arr[$keys[4]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcMusicDirsPeer::DATABASE_NAME); + + 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::TYPE)) $criteria->add(CcMusicDirsPeer::TYPE, $this->type); + if ($this->isColumnModified(CcMusicDirsPeer::EXISTS)) $criteria->add(CcMusicDirsPeer::EXISTS, $this->exists); + if ($this->isColumnModified(CcMusicDirsPeer::WATCHED)) $criteria->add(CcMusicDirsPeer::WATCHED, $this->watched); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcMusicDirsPeer::DATABASE_NAME); + $criteria->add(CcMusicDirsPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcMusicDirs (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDirectory($this->getDirectory()); + $copyObj->setType($this->getType()); + $copyObj->setExists($this->getExists()); + $copyObj->setWatched($this->getWatched()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + 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)); + } + } + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcMusicDirs Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcMusicDirsPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcMusicDirsPeer(); + } + + return self::$peer; + } + + + /** + * Initializes a collection based on the name of a relation. + * Avoids crafting an 'init[$relationName]s' method name + * that wouldn't work when StandardEnglishPluralizer is used. + * + * @param string $relationName The name of the relation to initialize + * @return void + */ + public function initRelation($relationName) + { + if ('CcFiles' == $relationName) { + $this->initCcFiless(); + } + } + + /** + * Clears out the collCcFiless 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 CcMusicDirs The current object (for fluent API support) + * @see addCcFiless() + */ + public function clearCcFiless() + { + $this->collCcFiless = null; // important to set this to null since that means it is uninitialized + $this->collCcFilessPartial = null; + + return $this; + } + + /** + * reset is the collCcFiless collection loaded partially + * + * @return void + */ + public function resetPartialCcFiless($v = true) + { + $this->collCcFilessPartial = $v; + } + + /** + * Initializes the collCcFiless collection. + * + * By default this just sets the collCcFiless collection to an empty array (like clearcollCcFiless()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcFiless($overrideExisting = true) + { + if (null !== $this->collCcFiless && !$overrideExisting) { + return; + } + $this->collCcFiless = new PropelObjectCollection(); + $this->collCcFiless->setModel('CcFiles'); + } + + /** + * Gets an array of CcFiles 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 CcMusicDirs 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 PropelObjectCollection|CcFiles[] List of CcFiles objects + * @throws PropelException + */ + public function getCcFiless($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcFilessPartial && !$this->isNew(); + if (null === $this->collCcFiless || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcFiless) { + // return empty collection + $this->initCcFiless(); + } else { + $collCcFiless = CcFilesQuery::create(null, $criteria) + ->filterByCcMusicDirs($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcFilessPartial && count($collCcFiless)) { + $this->initCcFiless(false); + + foreach ($collCcFiless as $obj) { + if (false == $this->collCcFiless->contains($obj)) { + $this->collCcFiless->append($obj); + } + } + + $this->collCcFilessPartial = true; + } + + $collCcFiless->getInternalIterator()->rewind(); + + return $collCcFiless; + } + + if ($partial && $this->collCcFiless) { + foreach ($this->collCcFiless as $obj) { + if ($obj->isNew()) { + $collCcFiless[] = $obj; + } + } + } + + $this->collCcFiless = $collCcFiless; + $this->collCcFilessPartial = false; + } + } + + return $this->collCcFiless; + } + + /** + * Sets a collection of CcFiles objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccFiless A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcMusicDirs The current object (for fluent API support) + */ + public function setCcFiless(PropelCollection $ccFiless, PropelPDO $con = null) + { + $ccFilessToDelete = $this->getCcFiless(new Criteria(), $con)->diff($ccFiless); + + + $this->ccFilessScheduledForDeletion = $ccFilessToDelete; + + foreach ($ccFilessToDelete as $ccFilesRemoved) { + $ccFilesRemoved->setCcMusicDirs(null); + } + + $this->collCcFiless = null; + foreach ($ccFiless as $ccFiles) { + $this->addCcFiles($ccFiles); + } + + $this->collCcFiless = $ccFiless; + $this->collCcFilessPartial = false; + + return $this; + } + + /** + * Returns the number of related CcFiles objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcFiles objects. + * @throws PropelException + */ + public function countCcFiless(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcFilessPartial && !$this->isNew(); + if (null === $this->collCcFiless || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcFiless) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcFiless()); + } + $query = CcFilesQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcMusicDirs($this) + ->count($con); + } + + return count($this->collCcFiless); + } + + /** + * Method called to associate a CcFiles object to this object + * through the CcFiles foreign key attribute. + * + * @param CcFiles $l CcFiles + * @return CcMusicDirs The current object (for fluent API support) + */ + public function addCcFiles(CcFiles $l) + { + if ($this->collCcFiless === null) { + $this->initCcFiless(); + $this->collCcFilessPartial = true; + } + + if (!in_array($l, $this->collCcFiless->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcFiles($l); + + if ($this->ccFilessScheduledForDeletion and $this->ccFilessScheduledForDeletion->contains($l)) { + $this->ccFilessScheduledForDeletion->remove($this->ccFilessScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcFiles $ccFiles The ccFiles object to add. + */ + protected function doAddCcFiles($ccFiles) + { + $this->collCcFiless[]= $ccFiles; + $ccFiles->setCcMusicDirs($this); + } + + /** + * @param CcFiles $ccFiles The ccFiles object to remove. + * @return CcMusicDirs The current object (for fluent API support) + */ + public function removeCcFiles($ccFiles) + { + if ($this->getCcFiless()->contains($ccFiles)) { + $this->collCcFiless->remove($this->collCcFiless->search($ccFiles)); + if (null === $this->ccFilessScheduledForDeletion) { + $this->ccFilessScheduledForDeletion = clone $this->collCcFiless; + $this->ccFilessScheduledForDeletion->clear(); + } + $this->ccFilessScheduledForDeletion[]= $ccFiles; + $ccFiles->setCcMusicDirs(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcMusicDirs is new, it will return + * an empty collection; or if this CcMusicDirs has previously + * been saved, it will retrieve related CcFiless from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcMusicDirs. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcFiles[] List of CcFiles objects + */ + public function getCcFilessJoinFkOwner($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcFilesQuery::create(null, $criteria); + $query->joinWith('FkOwner', $join_behavior); + + return $this->getCcFiless($query, $con); + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcMusicDirs is new, it will return + * an empty collection; or if this CcMusicDirs has previously + * been saved, it will retrieve related CcFiless from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcMusicDirs. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcFiles[] List of CcFiles objects + */ + public function getCcFilessJoinCcSubjsRelatedByDbEditedby($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcFilesQuery::create(null, $criteria); + $query->joinWith('CcSubjsRelatedByDbEditedby', $join_behavior); + + return $this->getCcFiless($query, $con); + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->directory = null; + $this->type = null; + $this->exists = null; + $this->watched = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->collCcFiless) { + foreach ($this->collCcFiless as $o) { + $o->clearAllReferences($deep); + } + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + if ($this->collCcFiless instanceof PropelCollection) { + $this->collCcFiless->clearIterator(); + } + $this->collCcFiless = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcMusicDirsPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcMusicDirsPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcMusicDirsPeer.php index 22f30f9602..8e4ca38b13 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcMusicDirsPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcMusicDirsPeer.php @@ -4,747 +4,769 @@ /** * Base static class for performing query and update operations on the 'cc_music_dirs' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcMusicDirsPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_music_dirs'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcMusicDirs'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcMusicDirs'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcMusicDirsTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 5; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_music_dirs.ID'; - - /** the column name for the DIRECTORY field */ - const DIRECTORY = 'cc_music_dirs.DIRECTORY'; - - /** the column name for the TYPE field */ - const TYPE = 'cc_music_dirs.TYPE'; - - /** the column name for the EXISTS field */ - const EXISTS = 'cc_music_dirs.EXISTS'; - - /** the column name for the WATCHED field */ - const WATCHED = 'cc_music_dirs.WATCHED'; - - /** - * 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 - * queries. - * @var array CcMusicDirs[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('Id', 'Directory', 'Type', 'Exists', 'Watched', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'directory', 'type', 'exists', 'watched', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::DIRECTORY, self::TYPE, self::EXISTS, self::WATCHED, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'DIRECTORY', 'TYPE', 'EXISTS', 'WATCHED', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'directory', 'type', 'exists', 'watched', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Directory' => 1, 'Type' => 2, 'Exists' => 3, 'Watched' => 4, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'directory' => 1, 'type' => 2, 'exists' => 3, 'watched' => 4, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::DIRECTORY => 1, self::TYPE => 2, self::EXISTS => 3, self::WATCHED => 4, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'DIRECTORY' => 1, 'TYPE' => 2, 'EXISTS' => 3, 'WATCHED' => 4, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'directory' => 1, 'type' => 2, 'exists' => 3, 'watched' => 4, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcMusicDirsPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcMusicDirsPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcMusicDirsPeer::ID); - $criteria->addSelectColumn(CcMusicDirsPeer::DIRECTORY); - $criteria->addSelectColumn(CcMusicDirsPeer::TYPE); - $criteria->addSelectColumn(CcMusicDirsPeer::EXISTS); - $criteria->addSelectColumn(CcMusicDirsPeer::WATCHED); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.DIRECTORY'); - $criteria->addSelectColumn($alias . '.TYPE'); - $criteria->addSelectColumn($alias . '.EXISTS'); - $criteria->addSelectColumn($alias . '.WATCHED'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcMusicDirsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcMusicDirsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcMusicDirs - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcMusicDirsPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcMusicDirsPeer::populateObjects(CcMusicDirsPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcMusicDirsPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcMusicDirs $value A CcMusicDirs object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcMusicDirs $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcMusicDirs object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcMusicDirs) { - $key = (string) $value->getId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcMusicDirs object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcMusicDirs Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_music_dirs - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcMusicDirsPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcMusicDirsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcMusicDirsPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcMusicDirsPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcMusicDirs object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcMusicDirsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcMusicDirsPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcMusicDirsPeer::NUM_COLUMNS; - } else { - $cls = CcMusicDirsPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcMusicDirsPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcMusicDirsPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcMusicDirsPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcMusicDirsTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcMusicDirsPeer::CLASS_DEFAULT : CcMusicDirsPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcMusicDirs or Criteria object. - * - * @param mixed $values Criteria or CcMusicDirs object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcMusicDirs object - } - - if ($criteria->containsKey(CcMusicDirsPeer::ID) && $criteria->keyContainsValue(CcMusicDirsPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcMusicDirsPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcMusicDirs or Criteria object. - * - * @param mixed $values Criteria or CcMusicDirs object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcMusicDirsPeer::ID); - $value = $criteria->remove(CcMusicDirsPeer::ID); - if ($value) { - $selectCriteria->add(CcMusicDirsPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcMusicDirsPeer::TABLE_NAME); - } - - } else { // $values is CcMusicDirs object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_music_dirs table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcMusicDirsPeer::TABLE_NAME, $con, CcMusicDirsPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcMusicDirsPeer::clearInstancePool(); - CcMusicDirsPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcMusicDirs or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcMusicDirs object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcMusicDirsPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcMusicDirs) { // it's a model object - // invalidate the cache for this single object - CcMusicDirsPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcMusicDirsPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcMusicDirsPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcMusicDirsPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcMusicDirs object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcMusicDirs $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcMusicDirs $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcMusicDirsPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcMusicDirsPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcMusicDirsPeer::DATABASE_NAME, CcMusicDirsPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcMusicDirs - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcMusicDirsPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcMusicDirsPeer::DATABASE_NAME); - $criteria->add(CcMusicDirsPeer::ID, $pk); - - $v = CcMusicDirsPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcMusicDirsPeer::DATABASE_NAME); - $criteria->add(CcMusicDirsPeer::ID, $pks, Criteria::IN); - $objs = CcMusicDirsPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcMusicDirsPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_music_dirs'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcMusicDirs'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcMusicDirsTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 5; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 5; + + /** the column name for the id field */ + const ID = 'cc_music_dirs.id'; + + /** the column name for the directory field */ + const DIRECTORY = 'cc_music_dirs.directory'; + + /** the column name for the type field */ + const TYPE = 'cc_music_dirs.type'; + + /** the column name for the exists field */ + const EXISTS = 'cc_music_dirs.exists'; + + /** the column name for the watched field */ + const WATCHED = 'cc_music_dirs.watched'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity 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 + * queries. + * @var array CcMusicDirs[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcMusicDirsPeer::$fieldNames[CcMusicDirsPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('Id', 'Directory', 'Type', 'Exists', 'Watched', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'directory', 'type', 'exists', 'watched', ), + BasePeer::TYPE_COLNAME => array (CcMusicDirsPeer::ID, CcMusicDirsPeer::DIRECTORY, CcMusicDirsPeer::TYPE, CcMusicDirsPeer::EXISTS, CcMusicDirsPeer::WATCHED, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'DIRECTORY', 'TYPE', 'EXISTS', 'WATCHED', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'directory', 'type', 'exists', 'watched', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcMusicDirsPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Directory' => 1, 'Type' => 2, 'Exists' => 3, 'Watched' => 4, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'directory' => 1, 'type' => 2, 'exists' => 3, 'watched' => 4, ), + BasePeer::TYPE_COLNAME => array (CcMusicDirsPeer::ID => 0, CcMusicDirsPeer::DIRECTORY => 1, CcMusicDirsPeer::TYPE => 2, CcMusicDirsPeer::EXISTS => 3, CcMusicDirsPeer::WATCHED => 4, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'DIRECTORY' => 1, 'TYPE' => 2, 'EXISTS' => 3, 'WATCHED' => 4, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'directory' => 1, 'type' => 2, 'exists' => 3, 'watched' => 4, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcMusicDirsPeer::getFieldNames($toType); + $key = isset(CcMusicDirsPeer::$fieldKeys[$fromType][$name]) ? CcMusicDirsPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcMusicDirsPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcMusicDirsPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcMusicDirsPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcMusicDirsPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcMusicDirsPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcMusicDirsPeer::ID); + $criteria->addSelectColumn(CcMusicDirsPeer::DIRECTORY); + $criteria->addSelectColumn(CcMusicDirsPeer::TYPE); + $criteria->addSelectColumn(CcMusicDirsPeer::EXISTS); + $criteria->addSelectColumn(CcMusicDirsPeer::WATCHED); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.directory'); + $criteria->addSelectColumn($alias . '.type'); + $criteria->addSelectColumn($alias . '.exists'); + $criteria->addSelectColumn($alias . '.watched'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcMusicDirsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcMusicDirsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcMusicDirsPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcMusicDirs + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcMusicDirsPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcMusicDirsPeer::populateObjects(CcMusicDirsPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcMusicDirsPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcMusicDirsPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcMusicDirs $obj A CcMusicDirs object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getId(); + } // if key === null + CcMusicDirsPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcMusicDirs object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcMusicDirs) { + $key = (string) $value->getId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcMusicDirs object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcMusicDirsPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcMusicDirs Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcMusicDirsPeer::$instances[$key])) { + return CcMusicDirsPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcMusicDirsPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcMusicDirsPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_music_dirs + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcMusicDirsPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcMusicDirsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcMusicDirsPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcMusicDirsPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcMusicDirs object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcMusicDirsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcMusicDirsPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcMusicDirsPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcMusicDirsPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcMusicDirsPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcMusicDirsPeer::DATABASE_NAME)->getTable(CcMusicDirsPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcMusicDirsPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcMusicDirsPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcMusicDirsTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcMusicDirsPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcMusicDirs or Criteria object. + * + * @param mixed $values Criteria or CcMusicDirs object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcMusicDirs object + } + + if ($criteria->containsKey(CcMusicDirsPeer::ID) && $criteria->keyContainsValue(CcMusicDirsPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcMusicDirsPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcMusicDirsPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcMusicDirs or Criteria object. + * + * @param mixed $values Criteria or CcMusicDirs object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcMusicDirsPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcMusicDirsPeer::ID); + $value = $criteria->remove(CcMusicDirsPeer::ID); + if ($value) { + $selectCriteria->add(CcMusicDirsPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcMusicDirsPeer::TABLE_NAME); + } + + } else { // $values is CcMusicDirs object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcMusicDirsPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_music_dirs table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcMusicDirsPeer::TABLE_NAME, $con, CcMusicDirsPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcMusicDirsPeer::clearInstancePool(); + CcMusicDirsPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcMusicDirs or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcMusicDirs object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcMusicDirsPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcMusicDirs) { // it's a model object + // invalidate the cache for this single object + CcMusicDirsPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcMusicDirsPeer::DATABASE_NAME); + $criteria->add(CcMusicDirsPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcMusicDirsPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcMusicDirsPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcMusicDirsPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcMusicDirs object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcMusicDirs $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcMusicDirsPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcMusicDirsPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcMusicDirsPeer::DATABASE_NAME, CcMusicDirsPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcMusicDirs + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcMusicDirsPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcMusicDirsPeer::DATABASE_NAME); + $criteria->add(CcMusicDirsPeer::ID, $pk); + + $v = CcMusicDirsPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcMusicDirs[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcMusicDirsPeer::DATABASE_NAME); + $criteria->add(CcMusicDirsPeer::ID, $pks, Criteria::IN); + $objs = CcMusicDirsPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcMusicDirsPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcMusicDirsQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcMusicDirsQuery.php index 31bbec3d41..016ba51e0b 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcMusicDirsQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcMusicDirsQuery.php @@ -4,324 +4,479 @@ /** * Base class that represents a query for the 'cc_music_dirs' table. * - * * - * @method CcMusicDirsQuery orderById($order = Criteria::ASC) Order by the id 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 orderByExists($order = Criteria::ASC) Order by the exists column - * @method CcMusicDirsQuery orderByWatched($order = Criteria::ASC) Order by the watched column * - * @method CcMusicDirsQuery groupById() Group by the id column - * @method CcMusicDirsQuery groupByDirectory() Group by the directory column - * @method CcMusicDirsQuery groupByType() Group by the type column - * @method CcMusicDirsQuery groupByExists() Group by the exists column - * @method CcMusicDirsQuery groupByWatched() Group by the watched 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 orderByType($order = Criteria::ASC) Order by the type column + * @method CcMusicDirsQuery orderByExists($order = Criteria::ASC) Order by the exists column + * @method CcMusicDirsQuery orderByWatched($order = Criteria::ASC) Order by the watched column * - * @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 innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcMusicDirsQuery groupById() Group by the id column + * @method CcMusicDirsQuery groupByDirectory() Group by the directory column + * @method CcMusicDirsQuery groupByType() Group by the type column + * @method CcMusicDirsQuery groupByExists() Group by the exists column + * @method CcMusicDirsQuery groupByWatched() Group by the watched column * - * @method CcMusicDirsQuery leftJoinCcFiles($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFiles relation - * @method CcMusicDirsQuery rightJoinCcFiles($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFiles relation - * @method CcMusicDirsQuery innerJoinCcFiles($relationAlias = '') Adds a INNER JOIN clause to the query using the CcFiles relation + * @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 innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcMusicDirs findOne(PropelPDO $con = null) Return the first CcMusicDirs matching the query - * @method CcMusicDirs findOneOrCreate(PropelPDO $con = null) Return the first CcMusicDirs matching the query, or a new CcMusicDirs object populated from the query conditions when no match is found + * @method CcMusicDirsQuery leftJoinCcFiles($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcFiles relation + * @method CcMusicDirsQuery rightJoinCcFiles($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcFiles relation + * @method CcMusicDirsQuery innerJoinCcFiles($relationAlias = null) Adds a INNER JOIN clause to the query using the CcFiles relation * - * @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 findOneByType(string $type) Return the first CcMusicDirs filtered by the type column - * @method CcMusicDirs findOneByExists(boolean $exists) Return the first CcMusicDirs filtered by the exists column - * @method CcMusicDirs findOneByWatched(boolean $watched) Return the first CcMusicDirs filtered by the watched column + * @method CcMusicDirs findOne(PropelPDO $con = null) Return the first CcMusicDirs matching the query + * @method CcMusicDirs findOneOrCreate(PropelPDO $con = null) Return the first CcMusicDirs matching the query, or a new CcMusicDirs object populated from the query conditions when no match is found * - * @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 findByType(string $type) Return CcMusicDirs objects filtered by the type column - * @method array findByExists(boolean $exists) Return CcMusicDirs objects filtered by the exists column - * @method array findByWatched(boolean $watched) Return CcMusicDirs objects filtered by the watched 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 findOneByExists(boolean $exists) Return the first CcMusicDirs filtered by the exists column + * @method CcMusicDirs findOneByWatched(boolean $watched) Return the first CcMusicDirs filtered by the watched 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 findByType(string $type) Return CcMusicDirs objects filtered by the type column + * @method array findByExists(boolean $exists) Return CcMusicDirs objects filtered by the exists column + * @method array findByWatched(boolean $watched) Return CcMusicDirs objects filtered by the watched column * * @package propel.generator.airtime.om */ abstract class BaseCcMusicDirsQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcMusicDirsQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcMusicDirs'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcMusicDirsQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcMusicDirsQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcMusicDirsQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcMusicDirsQuery) { + return $criteria; + } + $query = new CcMusicDirsQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcMusicDirs|CcMusicDirs[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcMusicDirsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcMusicDirsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcMusicDirs A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneById($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcMusicDirs A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "directory", "type", "exists", "watched" FROM "cc_music_dirs" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcMusicDirs(); + $obj->hydrate($row); + CcMusicDirsPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcMusicDirs|CcMusicDirs[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcMusicDirs[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcMusicDirsQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcMusicDirsPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcMusicDirsQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcMusicDirsPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterById(1234); // WHERE id = 1234 + * $query->filterById(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterById(array('min' => 12)); // WHERE id >= 12 + * $query->filterById(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $id The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcMusicDirsQuery The current query, for fluid interface + */ + public function filterById($id = null, $comparison = null) + { + if (is_array($id)) { + $useMinMax = false; + if (isset($id['min'])) { + $this->addUsingAlias(CcMusicDirsPeer::ID, $id['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($id['max'])) { + $this->addUsingAlias(CcMusicDirsPeer::ID, $id['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcMusicDirsPeer::ID, $id, $comparison); + } + + /** + * Filter the query on the directory column + * + * Example usage: + * + * $query->filterByDirectory('fooValue'); // WHERE directory = 'fooValue' + * $query->filterByDirectory('%fooValue%'); // WHERE directory LIKE '%fooValue%' + * + * + * @param string $directory 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 CcMusicDirsQuery The current query, for fluid interface + */ + public function filterByDirectory($directory = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($directory)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $directory)) { + $directory = str_replace('*', '%', $directory); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcMusicDirsPeer::DIRECTORY, $directory, $comparison); + } + + /** + * Filter the query on the type column + * + * Example usage: + * + * $query->filterByType('fooValue'); // WHERE type = 'fooValue' + * $query->filterByType('%fooValue%'); // WHERE type LIKE '%fooValue%' + * + * + * @param string $type 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 CcMusicDirsQuery The current query, for fluid interface + */ + public function filterByType($type = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($type)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $type)) { + $type = str_replace('*', '%', $type); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcMusicDirsPeer::TYPE, $type, $comparison); + } + + /** + * Filter the query on the exists column + * + * Example usage: + * + * $query->filterByExists(true); // WHERE exists = true + * $query->filterByExists('yes'); // WHERE exists = true + * + * + * @param boolean|string $exists The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcMusicDirsQuery The current query, for fluid interface + */ + public function filterByExists($exists = null, $comparison = null) + { + if (is_string($exists)) { + $exists = in_array(strtolower($exists), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(CcMusicDirsPeer::EXISTS, $exists, $comparison); + } + + /** + * Filter the query on the watched column + * + * Example usage: + * + * $query->filterByWatched(true); // WHERE watched = true + * $query->filterByWatched('yes'); // WHERE watched = true + * + * + * @param boolean|string $watched The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcMusicDirsQuery The current query, for fluid interface + */ + public function filterByWatched($watched = null, $comparison = null) + { + if (is_string($watched)) { + $watched = in_array(strtolower($watched), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(CcMusicDirsPeer::WATCHED, $watched, $comparison); + } + + /** + * Filter the query by a related CcFiles object + * + * @param CcFiles|PropelObjectCollection $ccFiles the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcMusicDirsQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcFiles($ccFiles, $comparison = null) + { + if ($ccFiles instanceof CcFiles) { + return $this + ->addUsingAlias(CcMusicDirsPeer::ID, $ccFiles->getDbDirectory(), $comparison); + } elseif ($ccFiles instanceof PropelObjectCollection) { + return $this + ->useCcFilesQuery() + ->filterByPrimaryKeys($ccFiles->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcFiles() only accepts arguments of type CcFiles or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcFiles relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcMusicDirsQuery The current query, for fluid interface + */ + public function joinCcFiles($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcFiles'); + + // 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, 'CcFiles'); + } + + return $this; + } + + /** + * Use the CcFiles relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query + */ + public function useCcFilesQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcFiles($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcFiles', 'CcFilesQuery'); + } + + /** + * Exclude object from result + * + * @param CcMusicDirs $ccMusicDirs Object to remove from the list of results + * + * @return CcMusicDirsQuery The current query, for fluid interface + */ + public function prune($ccMusicDirs = null) + { + if ($ccMusicDirs) { + $this->addUsingAlias(CcMusicDirsPeer::ID, $ccMusicDirs->getId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcMusicDirsQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcMusicDirs', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcMusicDirsQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcMusicDirsQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcMusicDirsQuery) { - return $criteria; - } - $query = new CcMusicDirsQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcMusicDirs|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcMusicDirsPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcMusicDirsQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcMusicDirsPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcMusicDirsQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcMusicDirsPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $id The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcMusicDirsQuery The current query, for fluid interface - */ - public function filterById($id = null, $comparison = null) - { - if (is_array($id) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcMusicDirsPeer::ID, $id, $comparison); - } - - /** - * Filter the query on the directory column - * - * @param string $directory 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 CcMusicDirsQuery The current query, for fluid interface - */ - public function filterByDirectory($directory = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($directory)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $directory)) { - $directory = str_replace('*', '%', $directory); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcMusicDirsPeer::DIRECTORY, $directory, $comparison); - } - - /** - * Filter the query on the type column - * - * @param string $type 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 CcMusicDirsQuery The current query, for fluid interface - */ - public function filterByType($type = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($type)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $type)) { - $type = str_replace('*', '%', $type); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcMusicDirsPeer::TYPE, $type, $comparison); - } - - /** - * Filter the query on the exists column - * - * @param boolean|string $exists 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 filterByExists($exists = null, $comparison = null) - { - if (is_string($exists)) { - $exists = in_array(strtolower($exists), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - } - return $this->addUsingAlias(CcMusicDirsPeer::EXISTS, $exists, $comparison); - } - - /** - * Filter the query on the watched column - * - * @param boolean|string $watched 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 filterByWatched($watched = null, $comparison = null) - { - if (is_string($watched)) { - $watched = in_array(strtolower($watched), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - } - return $this->addUsingAlias(CcMusicDirsPeer::WATCHED, $watched, $comparison); - } - - /** - * Filter the query by a related CcFiles object - * - * @param CcFiles $ccFiles the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcMusicDirsQuery The current query, for fluid interface - */ - public function filterByCcFiles($ccFiles, $comparison = null) - { - return $this - ->addUsingAlias(CcMusicDirsPeer::ID, $ccFiles->getDbDirectory(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcFiles relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcMusicDirsQuery The current query, for fluid interface - */ - public function joinCcFiles($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcFiles'); - - // 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, 'CcFiles'); - } - - return $this; - } - - /** - * Use the CcFiles relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query - */ - public function useCcFilesQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcFiles($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcFiles', 'CcFilesQuery'); - } - - /** - * Exclude object from result - * - * @param CcMusicDirs $ccMusicDirs Object to remove from the list of results - * - * @return CcMusicDirsQuery The current query, for fluid interface - */ - public function prune($ccMusicDirs = null) - { - if ($ccMusicDirs) { - $this->addUsingAlias(CcMusicDirsPeer::ID, $ccMusicDirs->getId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcMusicDirsQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPerms.php b/airtime_mvc/application/models/airtime/om/BaseCcPerms.php index a86413fc1a..edb76be710 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPerms.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPerms.php @@ -4,942 +4,1090 @@ /** * Base class that represents a row from the 'cc_perms' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcPerms extends BaseObject implements Persistent +abstract class BaseCcPerms extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcPermsPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcPermsPeer - */ - protected static $peer; - - /** - * The value for the permid field. - * @var int - */ - protected $permid; - - /** - * The value for the subj field. - * @var int - */ - protected $subj; - - /** - * The value for the action field. - * @var string - */ - protected $action; - - /** - * The value for the obj field. - * @var int - */ - protected $obj; - - /** - * The value for the type field. - * @var string - */ - protected $type; - - /** - * @var CcSubjs - */ - protected $aCcSubjs; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [permid] column value. - * - * @return int - */ - public function getPermid() - { - return $this->permid; - } - - /** - * Get the [subj] column value. - * - * @return int - */ - public function getSubj() - { - return $this->subj; - } - - /** - * Get the [action] column value. - * - * @return string - */ - public function getAction() - { - return $this->action; - } - - /** - * Get the [obj] column value. - * - * @return int - */ - public function getObj() - { - return $this->obj; - } - - /** - * Get the [type] column value. - * - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Set the value of [permid] column. - * - * @param int $v new value - * @return CcPerms The current object (for fluent API support) - */ - public function setPermid($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->permid !== $v) { - $this->permid = $v; - $this->modifiedColumns[] = CcPermsPeer::PERMID; - } - - return $this; - } // setPermid() - - /** - * Set the value of [subj] column. - * - * @param int $v new value - * @return CcPerms The current object (for fluent API support) - */ - public function setSubj($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->subj !== $v) { - $this->subj = $v; - $this->modifiedColumns[] = CcPermsPeer::SUBJ; - } - - if ($this->aCcSubjs !== null && $this->aCcSubjs->getDbId() !== $v) { - $this->aCcSubjs = null; - } - - return $this; - } // setSubj() - - /** - * Set the value of [action] column. - * - * @param string $v new value - * @return CcPerms The current object (for fluent API support) - */ - public function setAction($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->action !== $v) { - $this->action = $v; - $this->modifiedColumns[] = CcPermsPeer::ACTION; - } - - return $this; - } // setAction() - - /** - * Set the value of [obj] column. - * - * @param int $v new value - * @return CcPerms The current object (for fluent API support) - */ - public function setObj($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->obj !== $v) { - $this->obj = $v; - $this->modifiedColumns[] = CcPermsPeer::OBJ; - } - - return $this; - } // setObj() - - /** - * Set the value of [type] column. - * - * @param string $v new value - * @return CcPerms The current object (for fluent API support) - */ - public function setType($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->type !== $v) { - $this->type = $v; - $this->modifiedColumns[] = CcPermsPeer::TYPE; - } - - return $this; - } // setType() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->permid = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->subj = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; - $this->action = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->obj = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; - $this->type = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 5; // 5 = CcPermsPeer::NUM_COLUMNS - CcPermsPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcPerms object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcSubjs !== null && $this->subj !== $this->aCcSubjs->getDbId()) { - $this->aCcSubjs = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcPermsPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcSubjs = null; - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcPermsQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcPermsPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcSubjs !== null) { - if ($this->aCcSubjs->isModified() || $this->aCcSubjs->isNew()) { - $affectedRows += $this->aCcSubjs->save($con); - } - $this->setCcSubjs($this->aCcSubjs); - } - - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setNew(false); - } else { - $affectedRows += CcPermsPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcSubjs !== null) { - if (!$this->aCcSubjs->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcSubjs->getValidationFailures()); - } - } - - - if (($retval = CcPermsPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPermsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getPermid(); - break; - case 1: - return $this->getSubj(); - break; - case 2: - return $this->getAction(); - break; - case 3: - return $this->getObj(); - break; - case 4: - return $this->getType(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcPermsPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getPermid(), - $keys[1] => $this->getSubj(), - $keys[2] => $this->getAction(), - $keys[3] => $this->getObj(), - $keys[4] => $this->getType(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcSubjs) { - $result['CcSubjs'] = $this->aCcSubjs->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPermsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setPermid($value); - break; - case 1: - $this->setSubj($value); - break; - case 2: - $this->setAction($value); - break; - case 3: - $this->setObj($value); - break; - case 4: - $this->setType($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcPermsPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setPermid($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setSubj($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setAction($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setObj($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setType($arr[$keys[4]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcPermsPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcPermsPeer::PERMID)) $criteria->add(CcPermsPeer::PERMID, $this->permid); - if ($this->isColumnModified(CcPermsPeer::SUBJ)) $criteria->add(CcPermsPeer::SUBJ, $this->subj); - if ($this->isColumnModified(CcPermsPeer::ACTION)) $criteria->add(CcPermsPeer::ACTION, $this->action); - if ($this->isColumnModified(CcPermsPeer::OBJ)) $criteria->add(CcPermsPeer::OBJ, $this->obj); - if ($this->isColumnModified(CcPermsPeer::TYPE)) $criteria->add(CcPermsPeer::TYPE, $this->type); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcPermsPeer::DATABASE_NAME); - $criteria->add(CcPermsPeer::PERMID, $this->permid); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getPermid(); - } - - /** - * Generic method to set the primary key (permid column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setPermid($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getPermid(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcPerms (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setPermid($this->permid); - $copyObj->setSubj($this->subj); - $copyObj->setAction($this->action); - $copyObj->setObj($this->obj); - $copyObj->setType($this->type); - - $copyObj->setNew(true); - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcPerms Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcPermsPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcPermsPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcSubjs object. - * - * @param CcSubjs $v - * @return CcPerms The current object (for fluent API support) - * @throws PropelException - */ - public function setCcSubjs(CcSubjs $v = null) - { - if ($v === null) { - $this->setSubj(NULL); - } else { - $this->setSubj($v->getDbId()); - } - - $this->aCcSubjs = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcSubjs object, it will not be re-added. - if ($v !== null) { - $v->addCcPerms($this); - } - - return $this; - } - - - /** - * Get the associated CcSubjs object - * - * @param PropelPDO Optional Connection object. - * @return CcSubjs The associated CcSubjs object. - * @throws PropelException - */ - public function getCcSubjs(PropelPDO $con = null) - { - if ($this->aCcSubjs === null && ($this->subj !== null)) { - $this->aCcSubjs = CcSubjsQuery::create()->findPk($this->subj, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcSubjs->addCcPermss($this); - */ - } - return $this->aCcSubjs; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->permid = null; - $this->subj = null; - $this->action = null; - $this->obj = null; - $this->type = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - $this->aCcSubjs = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcPerms + /** + * Peer class name + */ + const PEER = 'CcPermsPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcPermsPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the permid field. + * @var int + */ + protected $permid; + + /** + * The value for the subj field. + * @var int + */ + protected $subj; + + /** + * The value for the action field. + * @var string + */ + protected $action; + + /** + * The value for the obj field. + * @var int + */ + protected $obj; + + /** + * The value for the type field. + * @var string + */ + protected $type; + + /** + * @var CcSubjs + */ + protected $aCcSubjs; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [permid] column value. + * + * @return int + */ + public function getPermid() + { + + return $this->permid; + } + + /** + * Get the [subj] column value. + * + * @return int + */ + public function getSubj() + { + + return $this->subj; + } + + /** + * Get the [action] column value. + * + * @return string + */ + public function getAction() + { + + return $this->action; + } + + /** + * Get the [obj] column value. + * + * @return int + */ + public function getObj() + { + + return $this->obj; + } + + /** + * Get the [type] column value. + * + * @return string + */ + public function getType() + { + + return $this->type; + } + + /** + * Set the value of [permid] column. + * + * @param int $v new value + * @return CcPerms The current object (for fluent API support) + */ + public function setPermid($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->permid !== $v) { + $this->permid = $v; + $this->modifiedColumns[] = CcPermsPeer::PERMID; + } + + + return $this; + } // setPermid() + + /** + * Set the value of [subj] column. + * + * @param int $v new value + * @return CcPerms The current object (for fluent API support) + */ + public function setSubj($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->subj !== $v) { + $this->subj = $v; + $this->modifiedColumns[] = CcPermsPeer::SUBJ; + } + + if ($this->aCcSubjs !== null && $this->aCcSubjs->getDbId() !== $v) { + $this->aCcSubjs = null; + } + + + return $this; + } // setSubj() + + /** + * Set the value of [action] column. + * + * @param string $v new value + * @return CcPerms The current object (for fluent API support) + */ + public function setAction($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->action !== $v) { + $this->action = $v; + $this->modifiedColumns[] = CcPermsPeer::ACTION; + } + + + return $this; + } // setAction() + + /** + * Set the value of [obj] column. + * + * @param int $v new value + * @return CcPerms The current object (for fluent API support) + */ + public function setObj($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->obj !== $v) { + $this->obj = $v; + $this->modifiedColumns[] = CcPermsPeer::OBJ; + } + + + return $this; + } // setObj() + + /** + * Set the value of [type] column. + * + * @param string $v new value + * @return CcPerms The current object (for fluent API support) + */ + public function setType($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->type !== $v) { + $this->type = $v; + $this->modifiedColumns[] = CcPermsPeer::TYPE; + } + + + return $this; + } // setType() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->permid = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->subj = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; + $this->action = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->obj = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; + $this->type = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 5; // 5 = CcPermsPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcPerms object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcSubjs !== null && $this->subj !== $this->aCcSubjs->getDbId()) { + $this->aCcSubjs = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcPermsPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcSubjs = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcPermsQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcPermsPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcSubjs !== null) { + if ($this->aCcSubjs->isModified() || $this->aCcSubjs->isNew()) { + $affectedRows += $this->aCcSubjs->save($con); + } + $this->setCcSubjs($this->aCcSubjs); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcPermsPeer::PERMID)) { + $modifiedColumns[':p' . $index++] = '"permid"'; + } + if ($this->isColumnModified(CcPermsPeer::SUBJ)) { + $modifiedColumns[':p' . $index++] = '"subj"'; + } + if ($this->isColumnModified(CcPermsPeer::ACTION)) { + $modifiedColumns[':p' . $index++] = '"action"'; + } + if ($this->isColumnModified(CcPermsPeer::OBJ)) { + $modifiedColumns[':p' . $index++] = '"obj"'; + } + if ($this->isColumnModified(CcPermsPeer::TYPE)) { + $modifiedColumns[':p' . $index++] = '"type"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_perms" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"permid"': + $stmt->bindValue($identifier, $this->permid, PDO::PARAM_INT); + break; + case '"subj"': + $stmt->bindValue($identifier, $this->subj, PDO::PARAM_INT); + break; + case '"action"': + $stmt->bindValue($identifier, $this->action, PDO::PARAM_STR); + break; + case '"obj"': + $stmt->bindValue($identifier, $this->obj, PDO::PARAM_INT); + break; + case '"type"': + $stmt->bindValue($identifier, $this->type, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcSubjs !== null) { + if (!$this->aCcSubjs->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcSubjs->getValidationFailures()); + } + } + + + if (($retval = CcPermsPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPermsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getPermid(); + break; + case 1: + return $this->getSubj(); + break; + case 2: + return $this->getAction(); + break; + case 3: + return $this->getObj(); + break; + case 4: + return $this->getType(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcPerms'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcPerms'][$this->getPrimaryKey()] = true; + $keys = CcPermsPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getPermid(), + $keys[1] => $this->getSubj(), + $keys[2] => $this->getAction(), + $keys[3] => $this->getObj(), + $keys[4] => $this->getType(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcSubjs) { + $result['CcSubjs'] = $this->aCcSubjs->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPermsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setPermid($value); + break; + case 1: + $this->setSubj($value); + break; + case 2: + $this->setAction($value); + break; + case 3: + $this->setObj($value); + break; + case 4: + $this->setType($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcPermsPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setPermid($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setSubj($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setAction($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setObj($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setType($arr[$keys[4]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcPermsPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcPermsPeer::PERMID)) $criteria->add(CcPermsPeer::PERMID, $this->permid); + if ($this->isColumnModified(CcPermsPeer::SUBJ)) $criteria->add(CcPermsPeer::SUBJ, $this->subj); + if ($this->isColumnModified(CcPermsPeer::ACTION)) $criteria->add(CcPermsPeer::ACTION, $this->action); + if ($this->isColumnModified(CcPermsPeer::OBJ)) $criteria->add(CcPermsPeer::OBJ, $this->obj); + if ($this->isColumnModified(CcPermsPeer::TYPE)) $criteria->add(CcPermsPeer::TYPE, $this->type); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcPermsPeer::DATABASE_NAME); + $criteria->add(CcPermsPeer::PERMID, $this->permid); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getPermid(); + } + + /** + * Generic method to set the primary key (permid column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setPermid($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getPermid(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcPerms (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setSubj($this->getSubj()); + $copyObj->setAction($this->getAction()); + $copyObj->setObj($this->getObj()); + $copyObj->setType($this->getType()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setPermid(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcPerms Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcPermsPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcPermsPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcSubjs object. + * + * @param CcSubjs $v + * @return CcPerms The current object (for fluent API support) + * @throws PropelException + */ + public function setCcSubjs(CcSubjs $v = null) + { + if ($v === null) { + $this->setSubj(NULL); + } else { + $this->setSubj($v->getDbId()); + } + + $this->aCcSubjs = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcSubjs object, it will not be re-added. + if ($v !== null) { + $v->addCcPerms($this); + } + + + return $this; + } + + + /** + * Get the associated CcSubjs object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcSubjs The associated CcSubjs object. + * @throws PropelException + */ + public function getCcSubjs(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcSubjs === null && ($this->subj !== null) && $doQuery) { + $this->aCcSubjs = CcSubjsQuery::create()->findPk($this->subj, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcSubjs->addCcPermss($this); + */ + } + + return $this->aCcSubjs; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->permid = null; + $this->subj = null; + $this->action = null; + $this->obj = null; + $this->type = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcSubjs instanceof Persistent) { + $this->aCcSubjs->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcSubjs = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcPermsPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPermsPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcPermsPeer.php index 4bd4c07ea7..ce8abcd4a2 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPermsPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPermsPeer.php @@ -4,977 +4,1003 @@ /** * Base static class for performing query and update operations on the 'cc_perms' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcPermsPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_perms'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcPerms'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcPerms'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcPermsTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 5; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the PERMID field */ - const PERMID = 'cc_perms.PERMID'; - - /** the column name for the SUBJ field */ - const SUBJ = 'cc_perms.SUBJ'; - - /** the column name for the ACTION field */ - const ACTION = 'cc_perms.ACTION'; - - /** the column name for the OBJ field */ - const OBJ = 'cc_perms.OBJ'; - - /** the column name for the TYPE field */ - const TYPE = 'cc_perms.TYPE'; - - /** - * An identiy map to hold any loaded instances of CcPerms objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcPerms[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('Permid', 'Subj', 'Action', 'Obj', 'Type', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('permid', 'subj', 'action', 'obj', 'type', ), - BasePeer::TYPE_COLNAME => array (self::PERMID, self::SUBJ, self::ACTION, self::OBJ, self::TYPE, ), - BasePeer::TYPE_RAW_COLNAME => array ('PERMID', 'SUBJ', 'ACTION', 'OBJ', 'TYPE', ), - BasePeer::TYPE_FIELDNAME => array ('permid', 'subj', 'action', 'obj', 'type', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('Permid' => 0, 'Subj' => 1, 'Action' => 2, 'Obj' => 3, 'Type' => 4, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('permid' => 0, 'subj' => 1, 'action' => 2, 'obj' => 3, 'type' => 4, ), - BasePeer::TYPE_COLNAME => array (self::PERMID => 0, self::SUBJ => 1, self::ACTION => 2, self::OBJ => 3, self::TYPE => 4, ), - BasePeer::TYPE_RAW_COLNAME => array ('PERMID' => 0, 'SUBJ' => 1, 'ACTION' => 2, 'OBJ' => 3, 'TYPE' => 4, ), - BasePeer::TYPE_FIELDNAME => array ('permid' => 0, 'subj' => 1, 'action' => 2, 'obj' => 3, 'type' => 4, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcPermsPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcPermsPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcPermsPeer::PERMID); - $criteria->addSelectColumn(CcPermsPeer::SUBJ); - $criteria->addSelectColumn(CcPermsPeer::ACTION); - $criteria->addSelectColumn(CcPermsPeer::OBJ); - $criteria->addSelectColumn(CcPermsPeer::TYPE); - } else { - $criteria->addSelectColumn($alias . '.PERMID'); - $criteria->addSelectColumn($alias . '.SUBJ'); - $criteria->addSelectColumn($alias . '.ACTION'); - $criteria->addSelectColumn($alias . '.OBJ'); - $criteria->addSelectColumn($alias . '.TYPE'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPermsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPermsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcPerms - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcPermsPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcPermsPeer::populateObjects(CcPermsPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcPermsPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcPerms $value A CcPerms object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcPerms $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getPermid(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcPerms object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcPerms) { - $key = (string) $value->getPermid(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPerms object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcPerms Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_perms - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcPermsPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcPermsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcPermsPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcPermsPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcPerms object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcPermsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcPermsPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcPermsPeer::NUM_COLUMNS; - } else { - $cls = CcPermsPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcPermsPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcSubjs table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPermsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPermsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPermsPeer::SUBJ, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcPerms objects pre-filled with their CcSubjs objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPerms objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPermsPeer::addSelectColumns($criteria); - $startcol = (CcPermsPeer::NUM_COLUMNS - CcPermsPeer::NUM_LAZY_LOAD_COLUMNS); - CcSubjsPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcPermsPeer::SUBJ, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPermsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPermsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcPermsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPermsPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcPerms) to $obj2 (CcSubjs) - $obj2->addCcPerms($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPermsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPermsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPermsPeer::SUBJ, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcPerms objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPerms objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPermsPeer::addSelectColumns($criteria); - $startcol2 = (CcPermsPeer::NUM_COLUMNS - CcPermsPeer::NUM_LAZY_LOAD_COLUMNS); - - CcSubjsPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcSubjsPeer::NUM_COLUMNS - CcSubjsPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcPermsPeer::SUBJ, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPermsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPermsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcPermsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPermsPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcSubjs rows - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcPerms) to the collection in $obj2 (CcSubjs) - $obj2->addCcPerms($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcPermsPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcPermsPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcPermsTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcPermsPeer::CLASS_DEFAULT : CcPermsPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcPerms or Criteria object. - * - * @param mixed $values Criteria or CcPerms object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcPerms object - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcPerms or Criteria object. - * - * @param mixed $values Criteria or CcPerms object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcPermsPeer::PERMID); - $value = $criteria->remove(CcPermsPeer::PERMID); - if ($value) { - $selectCriteria->add(CcPermsPeer::PERMID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcPermsPeer::TABLE_NAME); - } - - } else { // $values is CcPerms object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_perms table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcPermsPeer::TABLE_NAME, $con, CcPermsPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcPermsPeer::clearInstancePool(); - CcPermsPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcPerms or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcPerms object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcPermsPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcPerms) { // it's a model object - // invalidate the cache for this single object - CcPermsPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcPermsPeer::PERMID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcPermsPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcPermsPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcPerms object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcPerms $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcPerms $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcPermsPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcPermsPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcPermsPeer::DATABASE_NAME, CcPermsPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcPerms - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcPermsPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcPermsPeer::DATABASE_NAME); - $criteria->add(CcPermsPeer::PERMID, $pk); - - $v = CcPermsPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcPermsPeer::DATABASE_NAME); - $criteria->add(CcPermsPeer::PERMID, $pks, Criteria::IN); - $objs = CcPermsPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcPermsPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_perms'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcPerms'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcPermsTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 5; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 5; + + /** the column name for the permid field */ + const PERMID = 'cc_perms.permid'; + + /** the column name for the subj field */ + const SUBJ = 'cc_perms.subj'; + + /** the column name for the action field */ + const ACTION = 'cc_perms.action'; + + /** the column name for the obj field */ + const OBJ = 'cc_perms.obj'; + + /** the column name for the type field */ + const TYPE = 'cc_perms.type'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcPerms objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcPerms[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcPermsPeer::$fieldNames[CcPermsPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('Permid', 'Subj', 'Action', 'Obj', 'Type', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('permid', 'subj', 'action', 'obj', 'type', ), + BasePeer::TYPE_COLNAME => array (CcPermsPeer::PERMID, CcPermsPeer::SUBJ, CcPermsPeer::ACTION, CcPermsPeer::OBJ, CcPermsPeer::TYPE, ), + BasePeer::TYPE_RAW_COLNAME => array ('PERMID', 'SUBJ', 'ACTION', 'OBJ', 'TYPE', ), + BasePeer::TYPE_FIELDNAME => array ('permid', 'subj', 'action', 'obj', 'type', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcPermsPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('Permid' => 0, 'Subj' => 1, 'Action' => 2, 'Obj' => 3, 'Type' => 4, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('permid' => 0, 'subj' => 1, 'action' => 2, 'obj' => 3, 'type' => 4, ), + BasePeer::TYPE_COLNAME => array (CcPermsPeer::PERMID => 0, CcPermsPeer::SUBJ => 1, CcPermsPeer::ACTION => 2, CcPermsPeer::OBJ => 3, CcPermsPeer::TYPE => 4, ), + BasePeer::TYPE_RAW_COLNAME => array ('PERMID' => 0, 'SUBJ' => 1, 'ACTION' => 2, 'OBJ' => 3, 'TYPE' => 4, ), + BasePeer::TYPE_FIELDNAME => array ('permid' => 0, 'subj' => 1, 'action' => 2, 'obj' => 3, 'type' => 4, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcPermsPeer::getFieldNames($toType); + $key = isset(CcPermsPeer::$fieldKeys[$fromType][$name]) ? CcPermsPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcPermsPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcPermsPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcPermsPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcPermsPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcPermsPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcPermsPeer::PERMID); + $criteria->addSelectColumn(CcPermsPeer::SUBJ); + $criteria->addSelectColumn(CcPermsPeer::ACTION); + $criteria->addSelectColumn(CcPermsPeer::OBJ); + $criteria->addSelectColumn(CcPermsPeer::TYPE); + } else { + $criteria->addSelectColumn($alias . '.permid'); + $criteria->addSelectColumn($alias . '.subj'); + $criteria->addSelectColumn($alias . '.action'); + $criteria->addSelectColumn($alias . '.obj'); + $criteria->addSelectColumn($alias . '.type'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPermsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPermsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcPermsPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcPerms + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcPermsPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcPermsPeer::populateObjects(CcPermsPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcPermsPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcPermsPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcPerms $obj A CcPerms object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getPermid(); + } // if key === null + CcPermsPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcPerms object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcPerms) { + $key = (string) $value->getPermid(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPerms object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcPermsPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcPerms Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcPermsPeer::$instances[$key])) { + return CcPermsPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcPermsPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcPermsPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_perms + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcPermsPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcPermsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcPermsPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcPermsPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcPerms object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcPermsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcPermsPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcPermsPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcPermsPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcPermsPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcSubjs table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPermsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPermsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPermsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPermsPeer::SUBJ, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcPerms objects pre-filled with their CcSubjs objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPerms objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPermsPeer::DATABASE_NAME); + } + + CcPermsPeer::addSelectColumns($criteria); + $startcol = CcPermsPeer::NUM_HYDRATE_COLUMNS; + CcSubjsPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcPermsPeer::SUBJ, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPermsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPermsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcPermsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPermsPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcPerms) to $obj2 (CcSubjs) + $obj2->addCcPerms($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPermsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPermsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPermsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPermsPeer::SUBJ, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcPerms objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPerms objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPermsPeer::DATABASE_NAME); + } + + CcPermsPeer::addSelectColumns($criteria); + $startcol2 = CcPermsPeer::NUM_HYDRATE_COLUMNS; + + CcSubjsPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcSubjsPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcPermsPeer::SUBJ, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPermsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPermsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcPermsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPermsPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcSubjs rows + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcPerms) to the collection in $obj2 (CcSubjs) + $obj2->addCcPerms($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcPermsPeer::DATABASE_NAME)->getTable(CcPermsPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcPermsPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcPermsPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcPermsTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcPermsPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcPerms or Criteria object. + * + * @param mixed $values Criteria or CcPerms object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcPerms object + } + + + // Set the correct dbName + $criteria->setDbName(CcPermsPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcPerms or Criteria object. + * + * @param mixed $values Criteria or CcPerms object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcPermsPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcPermsPeer::PERMID); + $value = $criteria->remove(CcPermsPeer::PERMID); + if ($value) { + $selectCriteria->add(CcPermsPeer::PERMID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcPermsPeer::TABLE_NAME); + } + + } else { // $values is CcPerms object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcPermsPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_perms table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcPermsPeer::TABLE_NAME, $con, CcPermsPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcPermsPeer::clearInstancePool(); + CcPermsPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcPerms or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcPerms object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcPermsPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcPerms) { // it's a model object + // invalidate the cache for this single object + CcPermsPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcPermsPeer::DATABASE_NAME); + $criteria->add(CcPermsPeer::PERMID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcPermsPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcPermsPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcPermsPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcPerms object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcPerms $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcPermsPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcPermsPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcPermsPeer::DATABASE_NAME, CcPermsPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcPerms + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcPermsPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcPermsPeer::DATABASE_NAME); + $criteria->add(CcPermsPeer::PERMID, $pk); + + $v = CcPermsPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcPerms[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcPermsPeer::DATABASE_NAME); + $criteria->add(CcPermsPeer::PERMID, $pks, Criteria::IN); + $objs = CcPermsPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcPermsPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPermsQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcPermsQuery.php index 5866aa4889..f01a73a224 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPermsQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPermsQuery.php @@ -4,352 +4,513 @@ /** * Base class that represents a query for the 'cc_perms' table. * - * * - * @method CcPermsQuery orderByPermid($order = Criteria::ASC) Order by the permid column - * @method CcPermsQuery orderBySubj($order = Criteria::ASC) Order by the subj column - * @method CcPermsQuery orderByAction($order = Criteria::ASC) Order by the action column - * @method CcPermsQuery orderByObj($order = Criteria::ASC) Order by the obj column - * @method CcPermsQuery orderByType($order = Criteria::ASC) Order by the type column * - * @method CcPermsQuery groupByPermid() Group by the permid column - * @method CcPermsQuery groupBySubj() Group by the subj column - * @method CcPermsQuery groupByAction() Group by the action column - * @method CcPermsQuery groupByObj() Group by the obj column - * @method CcPermsQuery groupByType() Group by the type column + * @method CcPermsQuery orderByPermid($order = Criteria::ASC) Order by the permid column + * @method CcPermsQuery orderBySubj($order = Criteria::ASC) Order by the subj column + * @method CcPermsQuery orderByAction($order = Criteria::ASC) Order by the action column + * @method CcPermsQuery orderByObj($order = Criteria::ASC) Order by the obj column + * @method CcPermsQuery orderByType($order = Criteria::ASC) Order by the type column * - * @method CcPermsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcPermsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcPermsQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcPermsQuery groupByPermid() Group by the permid column + * @method CcPermsQuery groupBySubj() Group by the subj column + * @method CcPermsQuery groupByAction() Group by the action column + * @method CcPermsQuery groupByObj() Group by the obj column + * @method CcPermsQuery groupByType() Group by the type column * - * @method CcPermsQuery leftJoinCcSubjs($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSubjs relation - * @method CcPermsQuery rightJoinCcSubjs($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSubjs relation - * @method CcPermsQuery innerJoinCcSubjs($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSubjs relation + * @method CcPermsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcPermsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcPermsQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcPerms findOne(PropelPDO $con = null) Return the first CcPerms matching the query - * @method CcPerms findOneOrCreate(PropelPDO $con = null) Return the first CcPerms matching the query, or a new CcPerms object populated from the query conditions when no match is found + * @method CcPermsQuery leftJoinCcSubjs($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSubjs relation + * @method CcPermsQuery rightJoinCcSubjs($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSubjs relation + * @method CcPermsQuery innerJoinCcSubjs($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSubjs relation * - * @method CcPerms findOneByPermid(int $permid) Return the first CcPerms filtered by the permid column - * @method CcPerms findOneBySubj(int $subj) Return the first CcPerms filtered by the subj column - * @method CcPerms findOneByAction(string $action) Return the first CcPerms filtered by the action column - * @method CcPerms findOneByObj(int $obj) Return the first CcPerms filtered by the obj column - * @method CcPerms findOneByType(string $type) Return the first CcPerms filtered by the type column + * @method CcPerms findOne(PropelPDO $con = null) Return the first CcPerms matching the query + * @method CcPerms findOneOrCreate(PropelPDO $con = null) Return the first CcPerms matching the query, or a new CcPerms object populated from the query conditions when no match is found * - * @method array findByPermid(int $permid) Return CcPerms objects filtered by the permid column - * @method array findBySubj(int $subj) Return CcPerms objects filtered by the subj column - * @method array findByAction(string $action) Return CcPerms objects filtered by the action column - * @method array findByObj(int $obj) Return CcPerms objects filtered by the obj column - * @method array findByType(string $type) Return CcPerms objects filtered by the type column + * @method CcPerms findOneBySubj(int $subj) Return the first CcPerms filtered by the subj column + * @method CcPerms findOneByAction(string $action) Return the first CcPerms filtered by the action column + * @method CcPerms findOneByObj(int $obj) Return the first CcPerms filtered by the obj column + * @method CcPerms findOneByType(string $type) Return the first CcPerms filtered by the type column + * + * @method array findByPermid(int $permid) Return CcPerms objects filtered by the permid column + * @method array findBySubj(int $subj) Return CcPerms objects filtered by the subj column + * @method array findByAction(string $action) Return CcPerms objects filtered by the action column + * @method array findByObj(int $obj) Return CcPerms objects filtered by the obj column + * @method array findByType(string $type) Return CcPerms objects filtered by the type column * * @package propel.generator.airtime.om */ abstract class BaseCcPermsQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcPermsQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcPerms'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcPermsQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcPermsQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcPermsQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcPermsQuery) { + return $criteria; + } + $query = new CcPermsQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcPerms|CcPerms[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcPermsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcPermsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPerms A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByPermid($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPerms A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "permid", "subj", "action", "obj", "type" FROM "cc_perms" WHERE "permid" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcPerms(); + $obj->hydrate($row); + CcPermsPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPerms|CcPerms[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcPerms[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcPermsQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcPermsPeer::PERMID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcPermsQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcPermsPeer::PERMID, $keys, Criteria::IN); + } + + /** + * Filter the query on the permid column + * + * Example usage: + * + * $query->filterByPermid(1234); // WHERE permid = 1234 + * $query->filterByPermid(array(12, 34)); // WHERE permid IN (12, 34) + * $query->filterByPermid(array('min' => 12)); // WHERE permid >= 12 + * $query->filterByPermid(array('max' => 12)); // WHERE permid <= 12 + * + * + * @param mixed $permid The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPermsQuery The current query, for fluid interface + */ + public function filterByPermid($permid = null, $comparison = null) + { + if (is_array($permid)) { + $useMinMax = false; + if (isset($permid['min'])) { + $this->addUsingAlias(CcPermsPeer::PERMID, $permid['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($permid['max'])) { + $this->addUsingAlias(CcPermsPeer::PERMID, $permid['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPermsPeer::PERMID, $permid, $comparison); + } + + /** + * Filter the query on the subj column + * + * Example usage: + * + * $query->filterBySubj(1234); // WHERE subj = 1234 + * $query->filterBySubj(array(12, 34)); // WHERE subj IN (12, 34) + * $query->filterBySubj(array('min' => 12)); // WHERE subj >= 12 + * $query->filterBySubj(array('max' => 12)); // WHERE subj <= 12 + * + * + * @see filterByCcSubjs() + * + * @param mixed $subj The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPermsQuery The current query, for fluid interface + */ + public function filterBySubj($subj = null, $comparison = null) + { + if (is_array($subj)) { + $useMinMax = false; + if (isset($subj['min'])) { + $this->addUsingAlias(CcPermsPeer::SUBJ, $subj['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($subj['max'])) { + $this->addUsingAlias(CcPermsPeer::SUBJ, $subj['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPermsPeer::SUBJ, $subj, $comparison); + } + + /** + * Filter the query on the action column + * + * Example usage: + * + * $query->filterByAction('fooValue'); // WHERE action = 'fooValue' + * $query->filterByAction('%fooValue%'); // WHERE action LIKE '%fooValue%' + * + * + * @param string $action 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 CcPermsQuery The current query, for fluid interface + */ + public function filterByAction($action = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($action)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $action)) { + $action = str_replace('*', '%', $action); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPermsPeer::ACTION, $action, $comparison); + } + + /** + * Filter the query on the obj column + * + * Example usage: + * + * $query->filterByObj(1234); // WHERE obj = 1234 + * $query->filterByObj(array(12, 34)); // WHERE obj IN (12, 34) + * $query->filterByObj(array('min' => 12)); // WHERE obj >= 12 + * $query->filterByObj(array('max' => 12)); // WHERE obj <= 12 + * + * + * @param mixed $obj The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPermsQuery The current query, for fluid interface + */ + public function filterByObj($obj = null, $comparison = null) + { + if (is_array($obj)) { + $useMinMax = false; + if (isset($obj['min'])) { + $this->addUsingAlias(CcPermsPeer::OBJ, $obj['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($obj['max'])) { + $this->addUsingAlias(CcPermsPeer::OBJ, $obj['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPermsPeer::OBJ, $obj, $comparison); + } + + /** + * Filter the query on the type column + * + * Example usage: + * + * $query->filterByType('fooValue'); // WHERE type = 'fooValue' + * $query->filterByType('%fooValue%'); // WHERE type LIKE '%fooValue%' + * + * + * @param string $type 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 CcPermsQuery The current query, for fluid interface + */ + public function filterByType($type = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($type)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $type)) { + $type = str_replace('*', '%', $type); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPermsPeer::TYPE, $type, $comparison); + } + + /** + * Filter the query by a related CcSubjs object + * + * @param CcSubjs|PropelObjectCollection $ccSubjs The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPermsQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcSubjs($ccSubjs, $comparison = null) + { + if ($ccSubjs instanceof CcSubjs) { + return $this + ->addUsingAlias(CcPermsPeer::SUBJ, $ccSubjs->getDbId(), $comparison); + } elseif ($ccSubjs instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcPermsPeer::SUBJ, $ccSubjs->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcSubjs() only accepts arguments of type CcSubjs or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcSubjs relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcPermsQuery The current query, for fluid interface + */ + public function joinCcSubjs($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcSubjs'); + + // 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, 'CcSubjs'); + } + + return $this; + } + + /** + * Use the CcSubjs relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query + */ + public function useCcSubjsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcSubjs($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); + } + + /** + * Exclude object from result + * + * @param CcPerms $ccPerms Object to remove from the list of results + * + * @return CcPermsQuery The current query, for fluid interface + */ + public function prune($ccPerms = null) + { + if ($ccPerms) { + $this->addUsingAlias(CcPermsPeer::PERMID, $ccPerms->getPermid(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcPermsQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcPerms', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcPermsQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcPermsQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcPermsQuery) { - return $criteria; - } - $query = new CcPermsQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcPerms|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcPermsPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcPermsQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcPermsPeer::PERMID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcPermsQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcPermsPeer::PERMID, $keys, Criteria::IN); - } - - /** - * Filter the query on the permid column - * - * @param int|array $permid The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPermsQuery The current query, for fluid interface - */ - public function filterByPermid($permid = null, $comparison = null) - { - if (is_array($permid) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcPermsPeer::PERMID, $permid, $comparison); - } - - /** - * Filter the query on the subj column - * - * @param int|array $subj The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPermsQuery The current query, for fluid interface - */ - public function filterBySubj($subj = null, $comparison = null) - { - if (is_array($subj)) { - $useMinMax = false; - if (isset($subj['min'])) { - $this->addUsingAlias(CcPermsPeer::SUBJ, $subj['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($subj['max'])) { - $this->addUsingAlias(CcPermsPeer::SUBJ, $subj['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPermsPeer::SUBJ, $subj, $comparison); - } - - /** - * Filter the query on the action column - * - * @param string $action 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 CcPermsQuery The current query, for fluid interface - */ - public function filterByAction($action = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($action)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $action)) { - $action = str_replace('*', '%', $action); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPermsPeer::ACTION, $action, $comparison); - } - - /** - * Filter the query on the obj column - * - * @param int|array $obj The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPermsQuery The current query, for fluid interface - */ - public function filterByObj($obj = null, $comparison = null) - { - if (is_array($obj)) { - $useMinMax = false; - if (isset($obj['min'])) { - $this->addUsingAlias(CcPermsPeer::OBJ, $obj['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($obj['max'])) { - $this->addUsingAlias(CcPermsPeer::OBJ, $obj['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPermsPeer::OBJ, $obj, $comparison); - } - - /** - * Filter the query on the type column - * - * @param string $type 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 CcPermsQuery The current query, for fluid interface - */ - public function filterByType($type = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($type)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $type)) { - $type = str_replace('*', '%', $type); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPermsPeer::TYPE, $type, $comparison); - } - - /** - * Filter the query by a related CcSubjs object - * - * @param CcSubjs $ccSubjs the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPermsQuery The current query, for fluid interface - */ - public function filterByCcSubjs($ccSubjs, $comparison = null) - { - return $this - ->addUsingAlias(CcPermsPeer::SUBJ, $ccSubjs->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcSubjs relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcPermsQuery The current query, for fluid interface - */ - public function joinCcSubjs($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcSubjs'); - - // 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, 'CcSubjs'); - } - - return $this; - } - - /** - * Use the CcSubjs relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query - */ - public function useCcSubjsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcSubjs($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); - } - - /** - * Exclude object from result - * - * @param CcPerms $ccPerms Object to remove from the list of results - * - * @return CcPermsQuery The current query, for fluid interface - */ - public function prune($ccPerms = null) - { - if ($ccPerms) { - $this->addUsingAlias(CcPermsPeer::PERMID, $ccPerms->getPermid(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcPermsQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlaylist.php b/airtime_mvc/application/models/airtime/om/BaseCcPlaylist.php index 73b0817089..29783a9529 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlaylist.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlaylist.php @@ -4,1413 +4,1684 @@ /** * Base class that represents a row from the 'cc_playlist' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcPlaylist extends BaseObject implements Persistent +abstract class BaseCcPlaylist extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcPlaylistPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcPlaylistPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the name field. - * Note: this column has a database default value of: '' - * @var string - */ - protected $name; - - /** - * The value for the mtime field. - * @var string - */ - protected $mtime; - - /** - * The value for the utime field. - * @var string - */ - protected $utime; - - /** - * The value for the creator_id field. - * @var int - */ - protected $creator_id; - - /** - * The value for the description field. - * @var string - */ - protected $description; - - /** - * The value for the length field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $length; - - /** - * @var CcSubjs - */ - protected $aCcSubjs; - - /** - * @var array CcPlaylistcontents[] Collection to store aggregation of CcPlaylistcontents objects. - */ - protected $collCcPlaylistcontentss; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - 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->name = ''; - $this->length = '00:00:00'; - } - - /** - * Initializes internal state of BaseCcPlaylist object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [name] column value. - * - * @return string - */ - public function getDbName() - { - return $this->name; - } - - /** - * Get the [optionally formatted] temporal [mtime] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbMtime($format = 'Y-m-d H:i:s') - { - if ($this->mtime === null) { - return null; - } - - - - try { - $dt = new DateTime($this->mtime); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->mtime, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [utime] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbUtime($format = 'Y-m-d H:i:s') - { - if ($this->utime === null) { - return null; - } - - - - try { - $dt = new DateTime($this->utime); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->utime, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [creator_id] column value. - * - * @return int - */ - public function getDbCreatorId() - { - return $this->creator_id; - } - - /** - * Get the [description] column value. - * - * @return string - */ - public function getDbDescription() - { - return $this->description; - } - - /** - * Get the [length] column value. - * - * @return string - */ - public function getDbLength() - { - return $this->length; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcPlaylist The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcPlaylistPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [name] column. - * - * @param string $v new value - * @return CcPlaylist The current object (for fluent API support) - */ - public function setDbName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->name !== $v || $this->isNew()) { - $this->name = $v; - $this->modifiedColumns[] = CcPlaylistPeer::NAME; - } - - return $this; - } // setDbName() - - /** - * Sets the value of [mtime] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcPlaylist The current object (for fluent API support) - */ - public function setDbMtime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->mtime !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->mtime !== null && $tmpDt = new DateTime($this->mtime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->mtime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcPlaylistPeer::MTIME; - } - } // if either are not null - - return $this; - } // setDbMtime() - - /** - * Sets the value of [utime] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcPlaylist The current object (for fluent API support) - */ - public function setDbUtime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->utime !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->utime !== null && $tmpDt = new DateTime($this->utime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->utime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcPlaylistPeer::UTIME; - } - } // if either are not null - - return $this; - } // setDbUtime() - - /** - * Set the value of [creator_id] column. - * - * @param int $v new value - * @return CcPlaylist The current object (for fluent API support) - */ - public function setDbCreatorId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->creator_id !== $v) { - $this->creator_id = $v; - $this->modifiedColumns[] = CcPlaylistPeer::CREATOR_ID; - } - - if ($this->aCcSubjs !== null && $this->aCcSubjs->getDbId() !== $v) { - $this->aCcSubjs = null; - } - - return $this; - } // setDbCreatorId() - - /** - * Set the value of [description] column. - * - * @param string $v new value - * @return CcPlaylist The current object (for fluent API support) - */ - public function setDbDescription($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->description !== $v) { - $this->description = $v; - $this->modifiedColumns[] = CcPlaylistPeer::DESCRIPTION; - } - - return $this; - } // setDbDescription() - - /** - * Set the value of [length] column. - * - * @param string $v new value - * @return CcPlaylist The current object (for fluent API support) - */ - public function setDbLength($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->length !== $v || $this->isNew()) { - $this->length = $v; - $this->modifiedColumns[] = CcPlaylistPeer::LENGTH; - } - - return $this; - } // setDbLength() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->name !== '') { - return false; - } - - if ($this->length !== '00:00:00') { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->mtime = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->utime = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->creator_id = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; - $this->description = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; - $this->length = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 7; // 7 = CcPlaylistPeer::NUM_COLUMNS - CcPlaylistPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcPlaylist object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcSubjs !== null && $this->creator_id !== $this->aCcSubjs->getDbId()) { - $this->aCcSubjs = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcPlaylistPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcSubjs = null; - $this->collCcPlaylistcontentss = null; - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcPlaylistQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcPlaylistPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcSubjs !== null) { - if ($this->aCcSubjs->isModified() || $this->aCcSubjs->isNew()) { - $affectedRows += $this->aCcSubjs->save($con); - } - $this->setCcSubjs($this->aCcSubjs); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcPlaylistPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcPlaylistPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlaylistPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcPlaylistPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - if ($this->collCcPlaylistcontentss !== null) { - foreach ($this->collCcPlaylistcontentss as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcSubjs !== null) { - if (!$this->aCcSubjs->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcSubjs->getValidationFailures()); - } - } - - - if (($retval = CcPlaylistPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - if ($this->collCcPlaylistcontentss !== null) { - foreach ($this->collCcPlaylistcontentss as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPlaylistPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbName(); - break; - case 2: - return $this->getDbMtime(); - break; - case 3: - return $this->getDbUtime(); - break; - case 4: - return $this->getDbCreatorId(); - break; - case 5: - return $this->getDbDescription(); - break; - case 6: - return $this->getDbLength(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcPlaylistPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbName(), - $keys[2] => $this->getDbMtime(), - $keys[3] => $this->getDbUtime(), - $keys[4] => $this->getDbCreatorId(), - $keys[5] => $this->getDbDescription(), - $keys[6] => $this->getDbLength(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcSubjs) { - $result['CcSubjs'] = $this->aCcSubjs->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPlaylistPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbName($value); - break; - case 2: - $this->setDbMtime($value); - break; - case 3: - $this->setDbUtime($value); - break; - case 4: - $this->setDbCreatorId($value); - break; - case 5: - $this->setDbDescription($value); - break; - case 6: - $this->setDbLength($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcPlaylistPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbMtime($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbUtime($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbCreatorId($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setDbDescription($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setDbLength($arr[$keys[6]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcPlaylistPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcPlaylistPeer::ID)) $criteria->add(CcPlaylistPeer::ID, $this->id); - if ($this->isColumnModified(CcPlaylistPeer::NAME)) $criteria->add(CcPlaylistPeer::NAME, $this->name); - if ($this->isColumnModified(CcPlaylistPeer::MTIME)) $criteria->add(CcPlaylistPeer::MTIME, $this->mtime); - if ($this->isColumnModified(CcPlaylistPeer::UTIME)) $criteria->add(CcPlaylistPeer::UTIME, $this->utime); - if ($this->isColumnModified(CcPlaylistPeer::CREATOR_ID)) $criteria->add(CcPlaylistPeer::CREATOR_ID, $this->creator_id); - if ($this->isColumnModified(CcPlaylistPeer::DESCRIPTION)) $criteria->add(CcPlaylistPeer::DESCRIPTION, $this->description); - if ($this->isColumnModified(CcPlaylistPeer::LENGTH)) $criteria->add(CcPlaylistPeer::LENGTH, $this->length); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcPlaylistPeer::DATABASE_NAME); - $criteria->add(CcPlaylistPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcPlaylist (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbName($this->name); - $copyObj->setDbMtime($this->mtime); - $copyObj->setDbUtime($this->utime); - $copyObj->setDbCreatorId($this->creator_id); - $copyObj->setDbDescription($this->description); - $copyObj->setDbLength($this->length); - - if ($deepCopy) { - // important: temporarily setNew(false) because this affects the behavior of - // the getter/setter methods for fkey referrer objects. - $copyObj->setNew(false); - - foreach ($this->getCcPlaylistcontentss() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcPlaylistcontents($relObj->copy($deepCopy)); - } - } - - } // if ($deepCopy) - - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcPlaylist Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcPlaylistPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcPlaylistPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcSubjs object. - * - * @param CcSubjs $v - * @return CcPlaylist The current object (for fluent API support) - * @throws PropelException - */ - public function setCcSubjs(CcSubjs $v = null) - { - if ($v === null) { - $this->setDbCreatorId(NULL); - } else { - $this->setDbCreatorId($v->getDbId()); - } - - $this->aCcSubjs = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcSubjs object, it will not be re-added. - if ($v !== null) { - $v->addCcPlaylist($this); - } - - return $this; - } - - - /** - * Get the associated CcSubjs object - * - * @param PropelPDO Optional Connection object. - * @return CcSubjs The associated CcSubjs object. - * @throws PropelException - */ - public function getCcSubjs(PropelPDO $con = null) - { - if ($this->aCcSubjs === null && ($this->creator_id !== null)) { - $this->aCcSubjs = CcSubjsQuery::create()->findPk($this->creator_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcSubjs->addCcPlaylists($this); - */ - } - return $this->aCcSubjs; - } - - /** - * Clears out the collCcPlaylistcontentss 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 addCcPlaylistcontentss() - */ - public function clearCcPlaylistcontentss() - { - $this->collCcPlaylistcontentss = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcPlaylistcontentss collection. - * - * By default this just sets the collCcPlaylistcontentss collection to an empty array (like clearcollCcPlaylistcontentss()); - * 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 initCcPlaylistcontentss() - { - $this->collCcPlaylistcontentss = new PropelObjectCollection(); - $this->collCcPlaylistcontentss->setModel('CcPlaylistcontents'); - } - - /** - * Gets an array of CcPlaylistcontents 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 CcPlaylist 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 CcPlaylistcontents[] List of CcPlaylistcontents objects - * @throws PropelException - */ - public function getCcPlaylistcontentss($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcPlaylistcontentss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlaylistcontentss) { - // return empty collection - $this->initCcPlaylistcontentss(); - } else { - $collCcPlaylistcontentss = CcPlaylistcontentsQuery::create(null, $criteria) - ->filterByCcPlaylist($this) - ->find($con); - if (null !== $criteria) { - return $collCcPlaylistcontentss; - } - $this->collCcPlaylistcontentss = $collCcPlaylistcontentss; - } - } - return $this->collCcPlaylistcontentss; - } - - /** - * Returns the number of related CcPlaylistcontents objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcPlaylistcontents objects. - * @throws PropelException - */ - public function countCcPlaylistcontentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcPlaylistcontentss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlaylistcontentss) { - return 0; - } else { - $query = CcPlaylistcontentsQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcPlaylist($this) - ->count($con); - } - } else { - return count($this->collCcPlaylistcontentss); - } - } - - /** - * Method called to associate a CcPlaylistcontents object to this object - * through the CcPlaylistcontents foreign key attribute. - * - * @param CcPlaylistcontents $l CcPlaylistcontents - * @return void - * @throws PropelException - */ - public function addCcPlaylistcontents(CcPlaylistcontents $l) - { - if ($this->collCcPlaylistcontentss === null) { - $this->initCcPlaylistcontentss(); - } - if (!$this->collCcPlaylistcontentss->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcPlaylistcontentss[]= $l; - $l->setCcPlaylist($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcPlaylist is new, it will return - * an empty collection; or if this CcPlaylist has previously - * been saved, it will retrieve related CcPlaylistcontentss from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcPlaylist. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcPlaylistcontents[] List of CcPlaylistcontents objects - */ - public function getCcPlaylistcontentssJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcPlaylistcontentsQuery::create(null, $criteria); - $query->joinWith('CcFiles', $join_behavior); - - return $this->getCcPlaylistcontentss($query, $con); - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcPlaylist is new, it will return - * an empty collection; or if this CcPlaylist has previously - * been saved, it will retrieve related CcPlaylistcontentss from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcPlaylist. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcPlaylistcontents[] List of CcPlaylistcontents objects - */ - public function getCcPlaylistcontentssJoinCcBlock($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcPlaylistcontentsQuery::create(null, $criteria); - $query->joinWith('CcBlock', $join_behavior); - - return $this->getCcPlaylistcontentss($query, $con); - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->name = null; - $this->mtime = null; - $this->utime = null; - $this->creator_id = null; - $this->description = null; - $this->length = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - if ($this->collCcPlaylistcontentss) { - foreach ((array) $this->collCcPlaylistcontentss as $o) { - $o->clearAllReferences($deep); - } - } - } // if ($deep) - - $this->collCcPlaylistcontentss = null; - $this->aCcSubjs = null; - } - - // aggregate_column behavior - - /** - * Computes the value of the aggregate column length - * - * @param PropelPDO $con A connection object - * - * @return mixed The scalar result from the aggregate query - */ - public function computeDbLength(PropelPDO $con) - { - $stmt = $con->prepare('SELECT SUM(cliplength) FROM "cc_playlistcontents" WHERE cc_playlistcontents.PLAYLIST_ID = :p1'); - $stmt->bindValue(':p1', $this->getDbId()); - $stmt->execute(); - return $stmt->fetchColumn(); - } - - /** - * Updates the aggregate column length - * - * @param PropelPDO $con A connection object - */ - public function updateDbLength(PropelPDO $con) - { - $this->setDbLength($this->computeDbLength($con)); - $this->save($con); - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcPlaylist + /** + * Peer class name + */ + const PEER = 'CcPlaylistPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcPlaylistPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the name field. + * Note: this column has a database default value of: '' + * @var string + */ + protected $name; + + /** + * The value for the mtime field. + * @var string + */ + protected $mtime; + + /** + * The value for the utime field. + * @var string + */ + protected $utime; + + /** + * The value for the creator_id field. + * @var int + */ + protected $creator_id; + + /** + * The value for the description field. + * @var string + */ + protected $description; + + /** + * The value for the length field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $length; + + /** + * @var CcSubjs + */ + protected $aCcSubjs; + + /** + * @var PropelObjectCollection|CcPlaylistcontents[] Collection to store aggregation of CcPlaylistcontents objects. + */ + protected $collCcPlaylistcontentss; + protected $collCcPlaylistcontentssPartial; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccPlaylistcontentssScheduledForDeletion = null; + + /** + * 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->name = ''; + $this->length = '00:00:00'; + } + + /** + * Initializes internal state of BaseCcPlaylist object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [name] column value. + * + * @return string + */ + public function getDbName() + { + + return $this->name; + } + + /** + * Get the [optionally formatted] temporal [mtime] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbMtime($format = 'Y-m-d H:i:s') + { + if ($this->mtime === null) { + return null; + } + + + try { + $dt = new DateTime($this->mtime); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->mtime, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [utime] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbUtime($format = 'Y-m-d H:i:s') + { + if ($this->utime === null) { + return null; + } + + + try { + $dt = new DateTime($this->utime); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->utime, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [creator_id] column value. + * + * @return int + */ + public function getDbCreatorId() + { + + return $this->creator_id; + } + + /** + * Get the [description] column value. + * + * @return string + */ + public function getDbDescription() + { + + return $this->description; + } + + /** + * Get the [length] column value. + * + * @return string + */ + public function getDbLength() + { + + return $this->length; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcPlaylist The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcPlaylistPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [name] column. + * + * @param string $v new value + * @return CcPlaylist The current object (for fluent API support) + */ + public function setDbName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->name !== $v) { + $this->name = $v; + $this->modifiedColumns[] = CcPlaylistPeer::NAME; + } + + + return $this; + } // setDbName() + + /** + * Sets the value of [mtime] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcPlaylist The current object (for fluent API support) + */ + public function setDbMtime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->mtime !== null || $dt !== null) { + $currentDateAsString = ($this->mtime !== null && $tmpDt = new DateTime($this->mtime)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->mtime = $newDateAsString; + $this->modifiedColumns[] = CcPlaylistPeer::MTIME; + } + } // if either are not null + + + return $this; + } // setDbMtime() + + /** + * Sets the value of [utime] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcPlaylist The current object (for fluent API support) + */ + public function setDbUtime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->utime !== null || $dt !== null) { + $currentDateAsString = ($this->utime !== null && $tmpDt = new DateTime($this->utime)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->utime = $newDateAsString; + $this->modifiedColumns[] = CcPlaylistPeer::UTIME; + } + } // if either are not null + + + return $this; + } // setDbUtime() + + /** + * Set the value of [creator_id] column. + * + * @param int $v new value + * @return CcPlaylist The current object (for fluent API support) + */ + public function setDbCreatorId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->creator_id !== $v) { + $this->creator_id = $v; + $this->modifiedColumns[] = CcPlaylistPeer::CREATOR_ID; + } + + if ($this->aCcSubjs !== null && $this->aCcSubjs->getDbId() !== $v) { + $this->aCcSubjs = null; + } + + + return $this; + } // setDbCreatorId() + + /** + * Set the value of [description] column. + * + * @param string $v new value + * @return CcPlaylist The current object (for fluent API support) + */ + public function setDbDescription($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->description !== $v) { + $this->description = $v; + $this->modifiedColumns[] = CcPlaylistPeer::DESCRIPTION; + } + + + return $this; + } // setDbDescription() + + /** + * Set the value of [length] column. + * + * @param string $v new value + * @return CcPlaylist The current object (for fluent API support) + */ + public function setDbLength($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->length !== $v) { + $this->length = $v; + $this->modifiedColumns[] = CcPlaylistPeer::LENGTH; + } + + + return $this; + } // setDbLength() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->name !== '') { + return false; + } + + if ($this->length !== '00:00:00') { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->mtime = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->utime = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->creator_id = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; + $this->description = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; + $this->length = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 7; // 7 = CcPlaylistPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcPlaylist object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcSubjs !== null && $this->creator_id !== $this->aCcSubjs->getDbId()) { + $this->aCcSubjs = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcPlaylistPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcSubjs = null; + $this->collCcPlaylistcontentss = null; + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcPlaylistQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + // aggregate_column behavior + if (null !== $this->collCcPlaylistcontentss) { + $this->setDbLength($this->computeDbLength($con)); + if ($this->isModified()) { + $this->save($con); + } + } + + CcPlaylistPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcSubjs !== null) { + if ($this->aCcSubjs->isModified() || $this->aCcSubjs->isNew()) { + $affectedRows += $this->aCcSubjs->save($con); + } + $this->setCcSubjs($this->aCcSubjs); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + if ($this->ccPlaylistcontentssScheduledForDeletion !== null) { + if (!$this->ccPlaylistcontentssScheduledForDeletion->isEmpty()) { + CcPlaylistcontentsQuery::create() + ->filterByPrimaryKeys($this->ccPlaylistcontentssScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccPlaylistcontentssScheduledForDeletion = null; + } + } + + if ($this->collCcPlaylistcontentss !== null) { + foreach ($this->collCcPlaylistcontentss as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcPlaylistPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcPlaylistPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_playlist_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcPlaylistPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcPlaylistPeer::NAME)) { + $modifiedColumns[':p' . $index++] = '"name"'; + } + if ($this->isColumnModified(CcPlaylistPeer::MTIME)) { + $modifiedColumns[':p' . $index++] = '"mtime"'; + } + if ($this->isColumnModified(CcPlaylistPeer::UTIME)) { + $modifiedColumns[':p' . $index++] = '"utime"'; + } + if ($this->isColumnModified(CcPlaylistPeer::CREATOR_ID)) { + $modifiedColumns[':p' . $index++] = '"creator_id"'; + } + if ($this->isColumnModified(CcPlaylistPeer::DESCRIPTION)) { + $modifiedColumns[':p' . $index++] = '"description"'; + } + if ($this->isColumnModified(CcPlaylistPeer::LENGTH)) { + $modifiedColumns[':p' . $index++] = '"length"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_playlist" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"name"': + $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); + break; + case '"mtime"': + $stmt->bindValue($identifier, $this->mtime, PDO::PARAM_STR); + break; + case '"utime"': + $stmt->bindValue($identifier, $this->utime, PDO::PARAM_STR); + break; + case '"creator_id"': + $stmt->bindValue($identifier, $this->creator_id, PDO::PARAM_INT); + break; + case '"description"': + $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); + break; + case '"length"': + $stmt->bindValue($identifier, $this->length, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcSubjs !== null) { + if (!$this->aCcSubjs->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcSubjs->getValidationFailures()); + } + } + + + if (($retval = CcPlaylistPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + if ($this->collCcPlaylistcontentss !== null) { + foreach ($this->collCcPlaylistcontentss as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPlaylistPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbName(); + break; + case 2: + return $this->getDbMtime(); + break; + case 3: + return $this->getDbUtime(); + break; + case 4: + return $this->getDbCreatorId(); + break; + case 5: + return $this->getDbDescription(); + break; + case 6: + return $this->getDbLength(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcPlaylist'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcPlaylist'][$this->getPrimaryKey()] = true; + $keys = CcPlaylistPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbName(), + $keys[2] => $this->getDbMtime(), + $keys[3] => $this->getDbUtime(), + $keys[4] => $this->getDbCreatorId(), + $keys[5] => $this->getDbDescription(), + $keys[6] => $this->getDbLength(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcSubjs) { + $result['CcSubjs'] = $this->aCcSubjs->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->collCcPlaylistcontentss) { + $result['CcPlaylistcontentss'] = $this->collCcPlaylistcontentss->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPlaylistPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbName($value); + break; + case 2: + $this->setDbMtime($value); + break; + case 3: + $this->setDbUtime($value); + break; + case 4: + $this->setDbCreatorId($value); + break; + case 5: + $this->setDbDescription($value); + break; + case 6: + $this->setDbLength($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcPlaylistPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbMtime($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbUtime($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbCreatorId($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDbDescription($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setDbLength($arr[$keys[6]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcPlaylistPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcPlaylistPeer::ID)) $criteria->add(CcPlaylistPeer::ID, $this->id); + if ($this->isColumnModified(CcPlaylistPeer::NAME)) $criteria->add(CcPlaylistPeer::NAME, $this->name); + if ($this->isColumnModified(CcPlaylistPeer::MTIME)) $criteria->add(CcPlaylistPeer::MTIME, $this->mtime); + if ($this->isColumnModified(CcPlaylistPeer::UTIME)) $criteria->add(CcPlaylistPeer::UTIME, $this->utime); + if ($this->isColumnModified(CcPlaylistPeer::CREATOR_ID)) $criteria->add(CcPlaylistPeer::CREATOR_ID, $this->creator_id); + if ($this->isColumnModified(CcPlaylistPeer::DESCRIPTION)) $criteria->add(CcPlaylistPeer::DESCRIPTION, $this->description); + if ($this->isColumnModified(CcPlaylistPeer::LENGTH)) $criteria->add(CcPlaylistPeer::LENGTH, $this->length); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcPlaylistPeer::DATABASE_NAME); + $criteria->add(CcPlaylistPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcPlaylist (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbName($this->getDbName()); + $copyObj->setDbMtime($this->getDbMtime()); + $copyObj->setDbUtime($this->getDbUtime()); + $copyObj->setDbCreatorId($this->getDbCreatorId()); + $copyObj->setDbDescription($this->getDbDescription()); + $copyObj->setDbLength($this->getDbLength()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + foreach ($this->getCcPlaylistcontentss() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcPlaylistcontents($relObj->copy($deepCopy)); + } + } + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcPlaylist Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcPlaylistPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcPlaylistPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcSubjs object. + * + * @param CcSubjs $v + * @return CcPlaylist The current object (for fluent API support) + * @throws PropelException + */ + public function setCcSubjs(CcSubjs $v = null) + { + if ($v === null) { + $this->setDbCreatorId(NULL); + } else { + $this->setDbCreatorId($v->getDbId()); + } + + $this->aCcSubjs = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcSubjs object, it will not be re-added. + if ($v !== null) { + $v->addCcPlaylist($this); + } + + + return $this; + } + + + /** + * Get the associated CcSubjs object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcSubjs The associated CcSubjs object. + * @throws PropelException + */ + public function getCcSubjs(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcSubjs === null && ($this->creator_id !== null) && $doQuery) { + $this->aCcSubjs = CcSubjsQuery::create()->findPk($this->creator_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcSubjs->addCcPlaylists($this); + */ + } + + return $this->aCcSubjs; + } + + + /** + * Initializes a collection based on the name of a relation. + * Avoids crafting an 'init[$relationName]s' method name + * that wouldn't work when StandardEnglishPluralizer is used. + * + * @param string $relationName The name of the relation to initialize + * @return void + */ + public function initRelation($relationName) + { + if ('CcPlaylistcontents' == $relationName) { + $this->initCcPlaylistcontentss(); + } + } + + /** + * Clears out the collCcPlaylistcontentss 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 CcPlaylist The current object (for fluent API support) + * @see addCcPlaylistcontentss() + */ + public function clearCcPlaylistcontentss() + { + $this->collCcPlaylistcontentss = null; // important to set this to null since that means it is uninitialized + $this->collCcPlaylistcontentssPartial = null; + + return $this; + } + + /** + * reset is the collCcPlaylistcontentss collection loaded partially + * + * @return void + */ + public function resetPartialCcPlaylistcontentss($v = true) + { + $this->collCcPlaylistcontentssPartial = $v; + } + + /** + * Initializes the collCcPlaylistcontentss collection. + * + * By default this just sets the collCcPlaylistcontentss collection to an empty array (like clearcollCcPlaylistcontentss()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcPlaylistcontentss($overrideExisting = true) + { + if (null !== $this->collCcPlaylistcontentss && !$overrideExisting) { + return; + } + $this->collCcPlaylistcontentss = new PropelObjectCollection(); + $this->collCcPlaylistcontentss->setModel('CcPlaylistcontents'); + } + + /** + * Gets an array of CcPlaylistcontents 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 CcPlaylist 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 PropelObjectCollection|CcPlaylistcontents[] List of CcPlaylistcontents objects + * @throws PropelException + */ + public function getCcPlaylistcontentss($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcPlaylistcontentssPartial && !$this->isNew(); + if (null === $this->collCcPlaylistcontentss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlaylistcontentss) { + // return empty collection + $this->initCcPlaylistcontentss(); + } else { + $collCcPlaylistcontentss = CcPlaylistcontentsQuery::create(null, $criteria) + ->filterByCcPlaylist($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcPlaylistcontentssPartial && count($collCcPlaylistcontentss)) { + $this->initCcPlaylistcontentss(false); + + foreach ($collCcPlaylistcontentss as $obj) { + if (false == $this->collCcPlaylistcontentss->contains($obj)) { + $this->collCcPlaylistcontentss->append($obj); + } + } + + $this->collCcPlaylistcontentssPartial = true; + } + + $collCcPlaylistcontentss->getInternalIterator()->rewind(); + + return $collCcPlaylistcontentss; + } + + if ($partial && $this->collCcPlaylistcontentss) { + foreach ($this->collCcPlaylistcontentss as $obj) { + if ($obj->isNew()) { + $collCcPlaylistcontentss[] = $obj; + } + } + } + + $this->collCcPlaylistcontentss = $collCcPlaylistcontentss; + $this->collCcPlaylistcontentssPartial = false; + } + } + + return $this->collCcPlaylistcontentss; + } + + /** + * Sets a collection of CcPlaylistcontents objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccPlaylistcontentss A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcPlaylist The current object (for fluent API support) + */ + public function setCcPlaylistcontentss(PropelCollection $ccPlaylistcontentss, PropelPDO $con = null) + { + $ccPlaylistcontentssToDelete = $this->getCcPlaylistcontentss(new Criteria(), $con)->diff($ccPlaylistcontentss); + + + $this->ccPlaylistcontentssScheduledForDeletion = $ccPlaylistcontentssToDelete; + + foreach ($ccPlaylistcontentssToDelete as $ccPlaylistcontentsRemoved) { + $ccPlaylistcontentsRemoved->setCcPlaylist(null); + } + + $this->collCcPlaylistcontentss = null; + foreach ($ccPlaylistcontentss as $ccPlaylistcontents) { + $this->addCcPlaylistcontents($ccPlaylistcontents); + } + + $this->collCcPlaylistcontentss = $ccPlaylistcontentss; + $this->collCcPlaylistcontentssPartial = false; + + return $this; + } + + /** + * Returns the number of related CcPlaylistcontents objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcPlaylistcontents objects. + * @throws PropelException + */ + public function countCcPlaylistcontentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcPlaylistcontentssPartial && !$this->isNew(); + if (null === $this->collCcPlaylistcontentss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlaylistcontentss) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcPlaylistcontentss()); + } + $query = CcPlaylistcontentsQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcPlaylist($this) + ->count($con); + } + + return count($this->collCcPlaylistcontentss); + } + + /** + * Method called to associate a CcPlaylistcontents object to this object + * through the CcPlaylistcontents foreign key attribute. + * + * @param CcPlaylistcontents $l CcPlaylistcontents + * @return CcPlaylist The current object (for fluent API support) + */ + public function addCcPlaylistcontents(CcPlaylistcontents $l) + { + if ($this->collCcPlaylistcontentss === null) { + $this->initCcPlaylistcontentss(); + $this->collCcPlaylistcontentssPartial = true; + } + + if (!in_array($l, $this->collCcPlaylistcontentss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcPlaylistcontents($l); + + if ($this->ccPlaylistcontentssScheduledForDeletion and $this->ccPlaylistcontentssScheduledForDeletion->contains($l)) { + $this->ccPlaylistcontentssScheduledForDeletion->remove($this->ccPlaylistcontentssScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcPlaylistcontents $ccPlaylistcontents The ccPlaylistcontents object to add. + */ + protected function doAddCcPlaylistcontents($ccPlaylistcontents) + { + $this->collCcPlaylistcontentss[]= $ccPlaylistcontents; + $ccPlaylistcontents->setCcPlaylist($this); + } + + /** + * @param CcPlaylistcontents $ccPlaylistcontents The ccPlaylistcontents object to remove. + * @return CcPlaylist The current object (for fluent API support) + */ + public function removeCcPlaylistcontents($ccPlaylistcontents) + { + if ($this->getCcPlaylistcontentss()->contains($ccPlaylistcontents)) { + $this->collCcPlaylistcontentss->remove($this->collCcPlaylistcontentss->search($ccPlaylistcontents)); + if (null === $this->ccPlaylistcontentssScheduledForDeletion) { + $this->ccPlaylistcontentssScheduledForDeletion = clone $this->collCcPlaylistcontentss; + $this->ccPlaylistcontentssScheduledForDeletion->clear(); + } + $this->ccPlaylistcontentssScheduledForDeletion[]= $ccPlaylistcontents; + $ccPlaylistcontents->setCcPlaylist(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcPlaylist is new, it will return + * an empty collection; or if this CcPlaylist has previously + * been saved, it will retrieve related CcPlaylistcontentss from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcPlaylist. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcPlaylistcontents[] List of CcPlaylistcontents objects + */ + public function getCcPlaylistcontentssJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcPlaylistcontentsQuery::create(null, $criteria); + $query->joinWith('CcFiles', $join_behavior); + + return $this->getCcPlaylistcontentss($query, $con); + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcPlaylist is new, it will return + * an empty collection; or if this CcPlaylist has previously + * been saved, it will retrieve related CcPlaylistcontentss from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcPlaylist. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcPlaylistcontents[] List of CcPlaylistcontents objects + */ + public function getCcPlaylistcontentssJoinCcBlock($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcPlaylistcontentsQuery::create(null, $criteria); + $query->joinWith('CcBlock', $join_behavior); + + return $this->getCcPlaylistcontentss($query, $con); + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->name = null; + $this->mtime = null; + $this->utime = null; + $this->creator_id = null; + $this->description = null; + $this->length = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->collCcPlaylistcontentss) { + foreach ($this->collCcPlaylistcontentss as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->aCcSubjs instanceof Persistent) { + $this->aCcSubjs->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + if ($this->collCcPlaylistcontentss instanceof PropelCollection) { + $this->collCcPlaylistcontentss->clearIterator(); + } + $this->collCcPlaylistcontentss = null; + $this->aCcSubjs = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcPlaylistPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + + // aggregate_column behavior + + /** + * Computes the value of the aggregate column length * + * @param PropelPDO $con A connection object + * + * @return mixed The scalar result from the aggregate query + */ + public function computeDbLength(PropelPDO $con) + { + $stmt = $con->prepare('SELECT SUM(cliplength) FROM "cc_playlistcontents" WHERE cc_playlistcontents.playlist_id = :p1'); + $stmt->bindValue(':p1', $this->getDbId()); + $stmt->execute(); + + return $stmt->fetchColumn(); + } + + /** + * Updates the aggregate column length * + * @param PropelPDO $con A connection object + */ + public function updateDbLength(PropelPDO $con) + { + $this->setDbLength($this->computeDbLength($con)); + $this->save($con); + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlaylistPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcPlaylistPeer.php index da3593e02c..11515ef0cb 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlaylistPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlaylistPeer.php @@ -4,994 +4,1020 @@ /** * Base static class for performing query and update operations on the 'cc_playlist' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcPlaylistPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_playlist'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcPlaylist'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcPlaylist'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcPlaylistTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 7; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_playlist.ID'; - - /** the column name for the NAME field */ - const NAME = 'cc_playlist.NAME'; - - /** the column name for the MTIME field */ - const MTIME = 'cc_playlist.MTIME'; - - /** the column name for the UTIME field */ - const UTIME = 'cc_playlist.UTIME'; - - /** the column name for the CREATOR_ID field */ - const CREATOR_ID = 'cc_playlist.CREATOR_ID'; - - /** the column name for the DESCRIPTION field */ - const DESCRIPTION = 'cc_playlist.DESCRIPTION'; - - /** the column name for the LENGTH field */ - const LENGTH = 'cc_playlist.LENGTH'; - - /** - * An identiy map to hold any loaded instances of CcPlaylist objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcPlaylist[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbMtime', 'DbUtime', 'DbCreatorId', 'DbDescription', 'DbLength', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbMtime', 'dbUtime', 'dbCreatorId', 'dbDescription', 'dbLength', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::NAME, self::MTIME, self::UTIME, self::CREATOR_ID, self::DESCRIPTION, self::LENGTH, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'MTIME', 'UTIME', 'CREATOR_ID', 'DESCRIPTION', 'LENGTH', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'mtime', 'utime', 'creator_id', 'description', 'length', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbMtime' => 2, 'DbUtime' => 3, 'DbCreatorId' => 4, 'DbDescription' => 5, 'DbLength' => 6, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbMtime' => 2, 'dbUtime' => 3, 'dbCreatorId' => 4, 'dbDescription' => 5, 'dbLength' => 6, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::NAME => 1, self::MTIME => 2, self::UTIME => 3, self::CREATOR_ID => 4, self::DESCRIPTION => 5, self::LENGTH => 6, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'MTIME' => 2, 'UTIME' => 3, 'CREATOR_ID' => 4, 'DESCRIPTION' => 5, 'LENGTH' => 6, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'mtime' => 2, 'utime' => 3, 'creator_id' => 4, 'description' => 5, 'length' => 6, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcPlaylistPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcPlaylistPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcPlaylistPeer::ID); - $criteria->addSelectColumn(CcPlaylistPeer::NAME); - $criteria->addSelectColumn(CcPlaylistPeer::MTIME); - $criteria->addSelectColumn(CcPlaylistPeer::UTIME); - $criteria->addSelectColumn(CcPlaylistPeer::CREATOR_ID); - $criteria->addSelectColumn(CcPlaylistPeer::DESCRIPTION); - $criteria->addSelectColumn(CcPlaylistPeer::LENGTH); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.NAME'); - $criteria->addSelectColumn($alias . '.MTIME'); - $criteria->addSelectColumn($alias . '.UTIME'); - $criteria->addSelectColumn($alias . '.CREATOR_ID'); - $criteria->addSelectColumn($alias . '.DESCRIPTION'); - $criteria->addSelectColumn($alias . '.LENGTH'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlaylistPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlaylistPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcPlaylist - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcPlaylistPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcPlaylistPeer::populateObjects(CcPlaylistPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcPlaylistPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcPlaylist $value A CcPlaylist object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcPlaylist $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcPlaylist object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcPlaylist) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPlaylist object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcPlaylist Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_playlist - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - // Invalidate objects in CcPlaylistcontentsPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcPlaylistcontentsPeer::clearInstancePool(); - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcPlaylistPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcPlaylistPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcPlaylistPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcPlaylist object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcPlaylistPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcPlaylistPeer::NUM_COLUMNS; - } else { - $cls = CcPlaylistPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcPlaylistPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcSubjs table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlaylistPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlaylistPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlaylistPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcPlaylist objects pre-filled with their CcSubjs objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlaylist objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlaylistPeer::addSelectColumns($criteria); - $startcol = (CcPlaylistPeer::NUM_COLUMNS - CcPlaylistPeer::NUM_LAZY_LOAD_COLUMNS); - CcSubjsPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcPlaylistPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlaylistPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcPlaylistPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlaylistPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcPlaylist) to $obj2 (CcSubjs) - $obj2->addCcPlaylist($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlaylistPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlaylistPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlaylistPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcPlaylist objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlaylist objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlaylistPeer::addSelectColumns($criteria); - $startcol2 = (CcPlaylistPeer::NUM_COLUMNS - CcPlaylistPeer::NUM_LAZY_LOAD_COLUMNS); - - CcSubjsPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcSubjsPeer::NUM_COLUMNS - CcSubjsPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcPlaylistPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlaylistPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcPlaylistPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlaylistPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcSubjs rows - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcPlaylist) to the collection in $obj2 (CcSubjs) - $obj2->addCcPlaylist($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcPlaylistPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcPlaylistPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcPlaylistTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcPlaylistPeer::CLASS_DEFAULT : CcPlaylistPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcPlaylist or Criteria object. - * - * @param mixed $values Criteria or CcPlaylist object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcPlaylist object - } - - if ($criteria->containsKey(CcPlaylistPeer::ID) && $criteria->keyContainsValue(CcPlaylistPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlaylistPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcPlaylist or Criteria object. - * - * @param mixed $values Criteria or CcPlaylist object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcPlaylistPeer::ID); - $value = $criteria->remove(CcPlaylistPeer::ID); - if ($value) { - $selectCriteria->add(CcPlaylistPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcPlaylistPeer::TABLE_NAME); - } - - } else { // $values is CcPlaylist object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_playlist table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcPlaylistPeer::TABLE_NAME, $con, CcPlaylistPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcPlaylistPeer::clearInstancePool(); - CcPlaylistPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcPlaylist or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcPlaylist object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcPlaylistPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcPlaylist) { // it's a model object - // invalidate the cache for this single object - CcPlaylistPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcPlaylistPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcPlaylistPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcPlaylistPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcPlaylist object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcPlaylist $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcPlaylist $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcPlaylistPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcPlaylistPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcPlaylistPeer::DATABASE_NAME, CcPlaylistPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcPlaylist - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcPlaylistPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcPlaylistPeer::DATABASE_NAME); - $criteria->add(CcPlaylistPeer::ID, $pk); - - $v = CcPlaylistPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcPlaylistPeer::DATABASE_NAME); - $criteria->add(CcPlaylistPeer::ID, $pks, Criteria::IN); - $objs = CcPlaylistPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcPlaylistPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_playlist'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcPlaylist'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcPlaylistTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 7; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 7; + + /** the column name for the id field */ + const ID = 'cc_playlist.id'; + + /** the column name for the name field */ + const NAME = 'cc_playlist.name'; + + /** the column name for the mtime field */ + const MTIME = 'cc_playlist.mtime'; + + /** the column name for the utime field */ + const UTIME = 'cc_playlist.utime'; + + /** the column name for the creator_id field */ + const CREATOR_ID = 'cc_playlist.creator_id'; + + /** the column name for the description field */ + const DESCRIPTION = 'cc_playlist.description'; + + /** the column name for the length field */ + const LENGTH = 'cc_playlist.length'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcPlaylist objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcPlaylist[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcPlaylistPeer::$fieldNames[CcPlaylistPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbMtime', 'DbUtime', 'DbCreatorId', 'DbDescription', 'DbLength', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbMtime', 'dbUtime', 'dbCreatorId', 'dbDescription', 'dbLength', ), + BasePeer::TYPE_COLNAME => array (CcPlaylistPeer::ID, CcPlaylistPeer::NAME, CcPlaylistPeer::MTIME, CcPlaylistPeer::UTIME, CcPlaylistPeer::CREATOR_ID, CcPlaylistPeer::DESCRIPTION, CcPlaylistPeer::LENGTH, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'MTIME', 'UTIME', 'CREATOR_ID', 'DESCRIPTION', 'LENGTH', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'mtime', 'utime', 'creator_id', 'description', 'length', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcPlaylistPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbMtime' => 2, 'DbUtime' => 3, 'DbCreatorId' => 4, 'DbDescription' => 5, 'DbLength' => 6, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbMtime' => 2, 'dbUtime' => 3, 'dbCreatorId' => 4, 'dbDescription' => 5, 'dbLength' => 6, ), + BasePeer::TYPE_COLNAME => array (CcPlaylistPeer::ID => 0, CcPlaylistPeer::NAME => 1, CcPlaylistPeer::MTIME => 2, CcPlaylistPeer::UTIME => 3, CcPlaylistPeer::CREATOR_ID => 4, CcPlaylistPeer::DESCRIPTION => 5, CcPlaylistPeer::LENGTH => 6, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'MTIME' => 2, 'UTIME' => 3, 'CREATOR_ID' => 4, 'DESCRIPTION' => 5, 'LENGTH' => 6, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'mtime' => 2, 'utime' => 3, 'creator_id' => 4, 'description' => 5, 'length' => 6, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcPlaylistPeer::getFieldNames($toType); + $key = isset(CcPlaylistPeer::$fieldKeys[$fromType][$name]) ? CcPlaylistPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcPlaylistPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcPlaylistPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcPlaylistPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcPlaylistPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcPlaylistPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcPlaylistPeer::ID); + $criteria->addSelectColumn(CcPlaylistPeer::NAME); + $criteria->addSelectColumn(CcPlaylistPeer::MTIME); + $criteria->addSelectColumn(CcPlaylistPeer::UTIME); + $criteria->addSelectColumn(CcPlaylistPeer::CREATOR_ID); + $criteria->addSelectColumn(CcPlaylistPeer::DESCRIPTION); + $criteria->addSelectColumn(CcPlaylistPeer::LENGTH); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.name'); + $criteria->addSelectColumn($alias . '.mtime'); + $criteria->addSelectColumn($alias . '.utime'); + $criteria->addSelectColumn($alias . '.creator_id'); + $criteria->addSelectColumn($alias . '.description'); + $criteria->addSelectColumn($alias . '.length'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlaylistPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlaylistPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcPlaylistPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcPlaylist + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcPlaylistPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcPlaylistPeer::populateObjects(CcPlaylistPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcPlaylistPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcPlaylistPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcPlaylist $obj A CcPlaylist object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcPlaylistPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcPlaylist object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcPlaylist) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPlaylist object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcPlaylistPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcPlaylist Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcPlaylistPeer::$instances[$key])) { + return CcPlaylistPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcPlaylistPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcPlaylistPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_playlist + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + // Invalidate objects in CcPlaylistcontentsPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcPlaylistcontentsPeer::clearInstancePool(); + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcPlaylistPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcPlaylistPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcPlaylistPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcPlaylist object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcPlaylistPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcPlaylistPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcPlaylistPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcPlaylistPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcSubjs table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlaylistPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlaylistPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPlaylistPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlaylistPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcPlaylist objects pre-filled with their CcSubjs objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlaylist objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlaylistPeer::DATABASE_NAME); + } + + CcPlaylistPeer::addSelectColumns($criteria); + $startcol = CcPlaylistPeer::NUM_HYDRATE_COLUMNS; + CcSubjsPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcPlaylistPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlaylistPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcPlaylistPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlaylistPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcPlaylist) to $obj2 (CcSubjs) + $obj2->addCcPlaylist($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlaylistPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlaylistPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPlaylistPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlaylistPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcPlaylist objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlaylist objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlaylistPeer::DATABASE_NAME); + } + + CcPlaylistPeer::addSelectColumns($criteria); + $startcol2 = CcPlaylistPeer::NUM_HYDRATE_COLUMNS; + + CcSubjsPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcSubjsPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcPlaylistPeer::CREATOR_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlaylistPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcPlaylistPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlaylistPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcSubjs rows + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcPlaylist) to the collection in $obj2 (CcSubjs) + $obj2->addCcPlaylist($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcPlaylistPeer::DATABASE_NAME)->getTable(CcPlaylistPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcPlaylistPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcPlaylistPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcPlaylistTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcPlaylistPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcPlaylist or Criteria object. + * + * @param mixed $values Criteria or CcPlaylist object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcPlaylist object + } + + if ($criteria->containsKey(CcPlaylistPeer::ID) && $criteria->keyContainsValue(CcPlaylistPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlaylistPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcPlaylistPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcPlaylist or Criteria object. + * + * @param mixed $values Criteria or CcPlaylist object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcPlaylistPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcPlaylistPeer::ID); + $value = $criteria->remove(CcPlaylistPeer::ID); + if ($value) { + $selectCriteria->add(CcPlaylistPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcPlaylistPeer::TABLE_NAME); + } + + } else { // $values is CcPlaylist object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcPlaylistPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_playlist table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcPlaylistPeer::TABLE_NAME, $con, CcPlaylistPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcPlaylistPeer::clearInstancePool(); + CcPlaylistPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcPlaylist or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcPlaylist object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcPlaylistPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcPlaylist) { // it's a model object + // invalidate the cache for this single object + CcPlaylistPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcPlaylistPeer::DATABASE_NAME); + $criteria->add(CcPlaylistPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcPlaylistPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcPlaylistPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcPlaylistPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcPlaylist object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcPlaylist $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcPlaylistPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcPlaylistPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcPlaylistPeer::DATABASE_NAME, CcPlaylistPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcPlaylist + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcPlaylistPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcPlaylistPeer::DATABASE_NAME); + $criteria->add(CcPlaylistPeer::ID, $pk); + + $v = CcPlaylistPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcPlaylist[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcPlaylistPeer::DATABASE_NAME); + $criteria->add(CcPlaylistPeer::ID, $pks, Criteria::IN); + $objs = CcPlaylistPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcPlaylistPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlaylistQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcPlaylistQuery.php index 66b50e1c23..8e66d8f546 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlaylistQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlaylistQuery.php @@ -4,481 +4,672 @@ /** * Base class that represents a query for the 'cc_playlist' table. * - * * - * @method CcPlaylistQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcPlaylistQuery orderByDbName($order = Criteria::ASC) Order by the name column - * @method CcPlaylistQuery orderByDbMtime($order = Criteria::ASC) Order by the mtime column - * @method CcPlaylistQuery orderByDbUtime($order = Criteria::ASC) Order by the utime column - * @method CcPlaylistQuery orderByDbCreatorId($order = Criteria::ASC) Order by the creator_id column - * @method CcPlaylistQuery orderByDbDescription($order = Criteria::ASC) Order by the description column - * @method CcPlaylistQuery orderByDbLength($order = Criteria::ASC) Order by the length column * - * @method CcPlaylistQuery groupByDbId() Group by the id column - * @method CcPlaylistQuery groupByDbName() Group by the name column - * @method CcPlaylistQuery groupByDbMtime() Group by the mtime column - * @method CcPlaylistQuery groupByDbUtime() Group by the utime column - * @method CcPlaylistQuery groupByDbCreatorId() Group by the creator_id column - * @method CcPlaylistQuery groupByDbDescription() Group by the description column - * @method CcPlaylistQuery groupByDbLength() Group by the length column + * @method CcPlaylistQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcPlaylistQuery orderByDbName($order = Criteria::ASC) Order by the name column + * @method CcPlaylistQuery orderByDbMtime($order = Criteria::ASC) Order by the mtime column + * @method CcPlaylistQuery orderByDbUtime($order = Criteria::ASC) Order by the utime column + * @method CcPlaylistQuery orderByDbCreatorId($order = Criteria::ASC) Order by the creator_id column + * @method CcPlaylistQuery orderByDbDescription($order = Criteria::ASC) Order by the description column + * @method CcPlaylistQuery orderByDbLength($order = Criteria::ASC) Order by the length column * - * @method CcPlaylistQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcPlaylistQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcPlaylistQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcPlaylistQuery groupByDbId() Group by the id column + * @method CcPlaylistQuery groupByDbName() Group by the name column + * @method CcPlaylistQuery groupByDbMtime() Group by the mtime column + * @method CcPlaylistQuery groupByDbUtime() Group by the utime column + * @method CcPlaylistQuery groupByDbCreatorId() Group by the creator_id column + * @method CcPlaylistQuery groupByDbDescription() Group by the description column + * @method CcPlaylistQuery groupByDbLength() Group by the length column * - * @method CcPlaylistQuery leftJoinCcSubjs($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSubjs relation - * @method CcPlaylistQuery rightJoinCcSubjs($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSubjs relation - * @method CcPlaylistQuery innerJoinCcSubjs($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSubjs relation + * @method CcPlaylistQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcPlaylistQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcPlaylistQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcPlaylistQuery leftJoinCcPlaylistcontents($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPlaylistcontents relation - * @method CcPlaylistQuery rightJoinCcPlaylistcontents($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPlaylistcontents relation - * @method CcPlaylistQuery innerJoinCcPlaylistcontents($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPlaylistcontents relation + * @method CcPlaylistQuery leftJoinCcSubjs($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSubjs relation + * @method CcPlaylistQuery rightJoinCcSubjs($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSubjs relation + * @method CcPlaylistQuery innerJoinCcSubjs($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSubjs relation * - * @method CcPlaylist findOne(PropelPDO $con = null) Return the first CcPlaylist matching the query - * @method CcPlaylist findOneOrCreate(PropelPDO $con = null) Return the first CcPlaylist matching the query, or a new CcPlaylist object populated from the query conditions when no match is found + * @method CcPlaylistQuery leftJoinCcPlaylistcontents($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcPlaylistcontents relation + * @method CcPlaylistQuery rightJoinCcPlaylistcontents($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcPlaylistcontents relation + * @method CcPlaylistQuery innerJoinCcPlaylistcontents($relationAlias = null) Adds a INNER JOIN clause to the query using the CcPlaylistcontents relation * - * @method CcPlaylist findOneByDbId(int $id) Return the first CcPlaylist filtered by the id column - * @method CcPlaylist findOneByDbName(string $name) Return the first CcPlaylist filtered by the name column - * @method CcPlaylist findOneByDbMtime(string $mtime) Return the first CcPlaylist filtered by the mtime column - * @method CcPlaylist findOneByDbUtime(string $utime) Return the first CcPlaylist filtered by the utime column - * @method CcPlaylist findOneByDbCreatorId(int $creator_id) Return the first CcPlaylist filtered by the creator_id column - * @method CcPlaylist findOneByDbDescription(string $description) Return the first CcPlaylist filtered by the description column - * @method CcPlaylist findOneByDbLength(string $length) Return the first CcPlaylist filtered by the length column + * @method CcPlaylist findOne(PropelPDO $con = null) Return the first CcPlaylist matching the query + * @method CcPlaylist findOneOrCreate(PropelPDO $con = null) Return the first CcPlaylist matching the query, or a new CcPlaylist object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcPlaylist objects filtered by the id column - * @method array findByDbName(string $name) Return CcPlaylist objects filtered by the name column - * @method array findByDbMtime(string $mtime) Return CcPlaylist objects filtered by the mtime column - * @method array findByDbUtime(string $utime) Return CcPlaylist objects filtered by the utime column - * @method array findByDbCreatorId(int $creator_id) Return CcPlaylist objects filtered by the creator_id column - * @method array findByDbDescription(string $description) Return CcPlaylist objects filtered by the description column - * @method array findByDbLength(string $length) Return CcPlaylist objects filtered by the length column + * @method CcPlaylist findOneByDbName(string $name) Return the first CcPlaylist filtered by the name column + * @method CcPlaylist findOneByDbMtime(string $mtime) Return the first CcPlaylist filtered by the mtime column + * @method CcPlaylist findOneByDbUtime(string $utime) Return the first CcPlaylist filtered by the utime column + * @method CcPlaylist findOneByDbCreatorId(int $creator_id) Return the first CcPlaylist filtered by the creator_id column + * @method CcPlaylist findOneByDbDescription(string $description) Return the first CcPlaylist filtered by the description column + * @method CcPlaylist findOneByDbLength(string $length) Return the first CcPlaylist filtered by the length column + * + * @method array findByDbId(int $id) Return CcPlaylist objects filtered by the id column + * @method array findByDbName(string $name) Return CcPlaylist objects filtered by the name column + * @method array findByDbMtime(string $mtime) Return CcPlaylist objects filtered by the mtime column + * @method array findByDbUtime(string $utime) Return CcPlaylist objects filtered by the utime column + * @method array findByDbCreatorId(int $creator_id) Return CcPlaylist objects filtered by the creator_id column + * @method array findByDbDescription(string $description) Return CcPlaylist objects filtered by the description column + * @method array findByDbLength(string $length) Return CcPlaylist objects filtered by the length column * * @package propel.generator.airtime.om */ abstract class BaseCcPlaylistQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcPlaylistQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcPlaylist'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcPlaylistQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcPlaylistQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcPlaylistQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcPlaylistQuery) { + return $criteria; + } + $query = new CcPlaylistQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcPlaylist|CcPlaylist[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcPlaylistPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlaylist A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlaylist A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "name", "mtime", "utime", "creator_id", "description", "length" FROM "cc_playlist" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcPlaylist(); + $obj->hydrate($row); + CcPlaylistPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlaylist|CcPlaylist[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcPlaylist[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcPlaylistQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcPlaylistPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcPlaylistQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcPlaylistPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcPlaylistPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcPlaylistPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlaylistPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the name column + * + * Example usage: + * + * $query->filterByDbName('fooValue'); // WHERE name = 'fooValue' + * $query->filterByDbName('%fooValue%'); // WHERE name LIKE '%fooValue%' + * + * + * @param string $dbName 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 CcPlaylistQuery The current query, for fluid interface + */ + public function filterByDbName($dbName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbName)) { + $dbName = str_replace('*', '%', $dbName); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPlaylistPeer::NAME, $dbName, $comparison); + } + + /** + * Filter the query on the mtime column + * + * Example usage: + * + * $query->filterByDbMtime('2011-03-14'); // WHERE mtime = '2011-03-14' + * $query->filterByDbMtime('now'); // WHERE mtime = '2011-03-14' + * $query->filterByDbMtime(array('max' => 'yesterday')); // WHERE mtime < '2011-03-13' + * + * + * @param mixed $dbMtime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistQuery The current query, for fluid interface + */ + public function filterByDbMtime($dbMtime = null, $comparison = null) + { + if (is_array($dbMtime)) { + $useMinMax = false; + if (isset($dbMtime['min'])) { + $this->addUsingAlias(CcPlaylistPeer::MTIME, $dbMtime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbMtime['max'])) { + $this->addUsingAlias(CcPlaylistPeer::MTIME, $dbMtime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlaylistPeer::MTIME, $dbMtime, $comparison); + } + + /** + * Filter the query on the utime column + * + * Example usage: + * + * $query->filterByDbUtime('2011-03-14'); // WHERE utime = '2011-03-14' + * $query->filterByDbUtime('now'); // WHERE utime = '2011-03-14' + * $query->filterByDbUtime(array('max' => 'yesterday')); // WHERE utime < '2011-03-13' + * + * + * @param mixed $dbUtime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistQuery The current query, for fluid interface + */ + public function filterByDbUtime($dbUtime = null, $comparison = null) + { + if (is_array($dbUtime)) { + $useMinMax = false; + if (isset($dbUtime['min'])) { + $this->addUsingAlias(CcPlaylistPeer::UTIME, $dbUtime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbUtime['max'])) { + $this->addUsingAlias(CcPlaylistPeer::UTIME, $dbUtime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlaylistPeer::UTIME, $dbUtime, $comparison); + } + + /** + * Filter the query on the creator_id column + * + * Example usage: + * + * $query->filterByDbCreatorId(1234); // WHERE creator_id = 1234 + * $query->filterByDbCreatorId(array(12, 34)); // WHERE creator_id IN (12, 34) + * $query->filterByDbCreatorId(array('min' => 12)); // WHERE creator_id >= 12 + * $query->filterByDbCreatorId(array('max' => 12)); // WHERE creator_id <= 12 + * + * + * @see filterByCcSubjs() + * + * @param mixed $dbCreatorId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistQuery The current query, for fluid interface + */ + public function filterByDbCreatorId($dbCreatorId = null, $comparison = null) + { + if (is_array($dbCreatorId)) { + $useMinMax = false; + if (isset($dbCreatorId['min'])) { + $this->addUsingAlias(CcPlaylistPeer::CREATOR_ID, $dbCreatorId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbCreatorId['max'])) { + $this->addUsingAlias(CcPlaylistPeer::CREATOR_ID, $dbCreatorId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlaylistPeer::CREATOR_ID, $dbCreatorId, $comparison); + } + + /** + * Filter the query on the description column + * + * Example usage: + * + * $query->filterByDbDescription('fooValue'); // WHERE description = 'fooValue' + * $query->filterByDbDescription('%fooValue%'); // WHERE description LIKE '%fooValue%' + * + * + * @param string $dbDescription 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 CcPlaylistQuery The current query, for fluid interface + */ + public function filterByDbDescription($dbDescription = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbDescription)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbDescription)) { + $dbDescription = str_replace('*', '%', $dbDescription); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPlaylistPeer::DESCRIPTION, $dbDescription, $comparison); + } + + /** + * Filter the query on the length column + * + * Example usage: + * + * $query->filterByDbLength('fooValue'); // WHERE length = 'fooValue' + * $query->filterByDbLength('%fooValue%'); // WHERE length LIKE '%fooValue%' + * + * + * @param string $dbLength 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 CcPlaylistQuery The current query, for fluid interface + */ + public function filterByDbLength($dbLength = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLength)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLength)) { + $dbLength = str_replace('*', '%', $dbLength); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPlaylistPeer::LENGTH, $dbLength, $comparison); + } + + /** + * Filter the query by a related CcSubjs object + * + * @param CcSubjs|PropelObjectCollection $ccSubjs The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcSubjs($ccSubjs, $comparison = null) + { + if ($ccSubjs instanceof CcSubjs) { + return $this + ->addUsingAlias(CcPlaylistPeer::CREATOR_ID, $ccSubjs->getDbId(), $comparison); + } elseif ($ccSubjs instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcPlaylistPeer::CREATOR_ID, $ccSubjs->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcSubjs() only accepts arguments of type CcSubjs or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcSubjs relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcPlaylistQuery The current query, for fluid interface + */ + public function joinCcSubjs($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcSubjs'); + + // 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, 'CcSubjs'); + } + + return $this; + } + + /** + * Use the CcSubjs relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query + */ + public function useCcSubjsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcSubjs($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); + } + + /** + * Filter the query by a related CcPlaylistcontents object + * + * @param CcPlaylistcontents|PropelObjectCollection $ccPlaylistcontents the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcPlaylistcontents($ccPlaylistcontents, $comparison = null) + { + if ($ccPlaylistcontents instanceof CcPlaylistcontents) { + return $this + ->addUsingAlias(CcPlaylistPeer::ID, $ccPlaylistcontents->getDbPlaylistId(), $comparison); + } elseif ($ccPlaylistcontents instanceof PropelObjectCollection) { + return $this + ->useCcPlaylistcontentsQuery() + ->filterByPrimaryKeys($ccPlaylistcontents->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcPlaylistcontents() only accepts arguments of type CcPlaylistcontents or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcPlaylistcontents relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcPlaylistQuery The current query, for fluid interface + */ + public function joinCcPlaylistcontents($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcPlaylistcontents'); + + // 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, 'CcPlaylistcontents'); + } + + return $this; + } + + /** + * Use the CcPlaylistcontents relation CcPlaylistcontents 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 CcPlaylistcontentsQuery A secondary query class using the current class as primary query + */ + public function useCcPlaylistcontentsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcPlaylistcontents($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcPlaylistcontents', 'CcPlaylistcontentsQuery'); + } + + /** + * Exclude object from result + * + * @param CcPlaylist $ccPlaylist Object to remove from the list of results + * + * @return CcPlaylistQuery The current query, for fluid interface + */ + public function prune($ccPlaylist = null) + { + if ($ccPlaylist) { + $this->addUsingAlias(CcPlaylistPeer::ID, $ccPlaylist->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcPlaylistQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcPlaylist', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcPlaylistQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcPlaylistQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcPlaylistQuery) { - return $criteria; - } - $query = new CcPlaylistQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcPlaylist|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcPlaylistPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcPlaylistQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcPlaylistPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcPlaylistQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcPlaylistPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcPlaylistPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the name column - * - * @param string $dbName 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 CcPlaylistQuery The current query, for fluid interface - */ - public function filterByDbName($dbName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbName)) { - $dbName = str_replace('*', '%', $dbName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPlaylistPeer::NAME, $dbName, $comparison); - } - - /** - * Filter the query on the mtime column - * - * @param string|array $dbMtime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistQuery The current query, for fluid interface - */ - public function filterByDbMtime($dbMtime = null, $comparison = null) - { - if (is_array($dbMtime)) { - $useMinMax = false; - if (isset($dbMtime['min'])) { - $this->addUsingAlias(CcPlaylistPeer::MTIME, $dbMtime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbMtime['max'])) { - $this->addUsingAlias(CcPlaylistPeer::MTIME, $dbMtime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlaylistPeer::MTIME, $dbMtime, $comparison); - } - - /** - * Filter the query on the utime column - * - * @param string|array $dbUtime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistQuery The current query, for fluid interface - */ - public function filterByDbUtime($dbUtime = null, $comparison = null) - { - if (is_array($dbUtime)) { - $useMinMax = false; - if (isset($dbUtime['min'])) { - $this->addUsingAlias(CcPlaylistPeer::UTIME, $dbUtime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbUtime['max'])) { - $this->addUsingAlias(CcPlaylistPeer::UTIME, $dbUtime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlaylistPeer::UTIME, $dbUtime, $comparison); - } - - /** - * Filter the query on the creator_id column - * - * @param int|array $dbCreatorId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistQuery The current query, for fluid interface - */ - public function filterByDbCreatorId($dbCreatorId = null, $comparison = null) - { - if (is_array($dbCreatorId)) { - $useMinMax = false; - if (isset($dbCreatorId['min'])) { - $this->addUsingAlias(CcPlaylistPeer::CREATOR_ID, $dbCreatorId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbCreatorId['max'])) { - $this->addUsingAlias(CcPlaylistPeer::CREATOR_ID, $dbCreatorId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlaylistPeer::CREATOR_ID, $dbCreatorId, $comparison); - } - - /** - * Filter the query on the description column - * - * @param string $dbDescription 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 CcPlaylistQuery The current query, for fluid interface - */ - public function filterByDbDescription($dbDescription = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbDescription)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbDescription)) { - $dbDescription = str_replace('*', '%', $dbDescription); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPlaylistPeer::DESCRIPTION, $dbDescription, $comparison); - } - - /** - * Filter the query on the length column - * - * @param string $dbLength 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 CcPlaylistQuery The current query, for fluid interface - */ - public function filterByDbLength($dbLength = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLength)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLength)) { - $dbLength = str_replace('*', '%', $dbLength); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPlaylistPeer::LENGTH, $dbLength, $comparison); - } - - /** - * Filter the query by a related CcSubjs object - * - * @param CcSubjs $ccSubjs the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistQuery The current query, for fluid interface - */ - public function filterByCcSubjs($ccSubjs, $comparison = null) - { - return $this - ->addUsingAlias(CcPlaylistPeer::CREATOR_ID, $ccSubjs->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcSubjs relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcPlaylistQuery The current query, for fluid interface - */ - public function joinCcSubjs($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcSubjs'); - - // 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, 'CcSubjs'); - } - - return $this; - } - - /** - * Use the CcSubjs relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query - */ - public function useCcSubjsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcSubjs($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); - } - - /** - * Filter the query by a related CcPlaylistcontents object - * - * @param CcPlaylistcontents $ccPlaylistcontents the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistQuery The current query, for fluid interface - */ - public function filterByCcPlaylistcontents($ccPlaylistcontents, $comparison = null) - { - return $this - ->addUsingAlias(CcPlaylistPeer::ID, $ccPlaylistcontents->getDbPlaylistId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcPlaylistcontents relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcPlaylistQuery The current query, for fluid interface - */ - public function joinCcPlaylistcontents($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcPlaylistcontents'); - - // 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, 'CcPlaylistcontents'); - } - - return $this; - } - - /** - * Use the CcPlaylistcontents relation CcPlaylistcontents 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 CcPlaylistcontentsQuery A secondary query class using the current class as primary query - */ - public function useCcPlaylistcontentsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcPlaylistcontents($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcPlaylistcontents', 'CcPlaylistcontentsQuery'); - } - - /** - * Exclude object from result - * - * @param CcPlaylist $ccPlaylist Object to remove from the list of results - * - * @return CcPlaylistQuery The current query, for fluid interface - */ - public function prune($ccPlaylist = null) - { - if ($ccPlaylist) { - $this->addUsingAlias(CcPlaylistPeer::ID, $ccPlaylist->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcPlaylistQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlaylistcontents.php b/airtime_mvc/application/models/airtime/om/BaseCcPlaylistcontents.php index cf6e53a98e..1c634b3821 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlaylistcontents.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlaylistcontents.php @@ -4,1688 +4,1870 @@ /** * Base class that represents a row from the 'cc_playlistcontents' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcPlaylistcontents extends BaseObject implements Persistent +abstract class BaseCcPlaylistcontents extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcPlaylistcontentsPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcPlaylistcontentsPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the playlist_id field. - * @var int - */ - protected $playlist_id; - - /** - * The value for the file_id field. - * @var int - */ - protected $file_id; - - /** - * The value for the block_id field. - * @var int - */ - protected $block_id; - - /** - * The value for the stream_id field. - * @var int - */ - protected $stream_id; - - /** - * The value for the type field. - * Note: this column has a database default value of: 0 - * @var int - */ - protected $type; - - /** - * The value for the position field. - * @var int - */ - protected $position; - - /** - * The value for the trackoffset field. - * Note: this column has a database default value of: 0 - * @var double - */ - protected $trackoffset; - - /** - * The value for the cliplength field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $cliplength; - - /** - * The value for the cuein field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $cuein; - - /** - * The value for the cueout field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $cueout; - - /** - * The value for the fadein field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $fadein; - - /** - * The value for the fadeout field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $fadeout; - - /** - * @var CcFiles - */ - protected $aCcFiles; - - /** - * @var CcBlock - */ - protected $aCcBlock; - - /** - * @var CcPlaylist - */ - protected $aCcPlaylist; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - // aggregate_column_relation behavior - protected $oldCcPlaylist; - - /** - * 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->type = 0; - $this->trackoffset = 0; - $this->cliplength = '00:00:00'; - $this->cuein = '00:00:00'; - $this->cueout = '00:00:00'; - $this->fadein = '00:00:00'; - $this->fadeout = '00:00:00'; - } - - /** - * Initializes internal state of BaseCcPlaylistcontents object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [playlist_id] column value. - * - * @return int - */ - public function getDbPlaylistId() - { - return $this->playlist_id; - } - - /** - * Get the [file_id] column value. - * - * @return int - */ - public function getDbFileId() - { - return $this->file_id; - } - - /** - * Get the [block_id] column value. - * - * @return int - */ - public function getDbBlockId() - { - return $this->block_id; - } - - /** - * Get the [stream_id] column value. - * - * @return int - */ - public function getDbStreamId() - { - return $this->stream_id; - } - - /** - * Get the [type] column value. - * - * @return int - */ - public function getDbType() - { - return $this->type; - } - - /** - * Get the [position] column value. - * - * @return int - */ - public function getDbPosition() - { - return $this->position; - } - - /** - * Get the [trackoffset] column value. - * - * @return double - */ - public function getDbTrackOffset() - { - return $this->trackoffset; - } - - /** - * Get the [cliplength] column value. - * - * @return string - */ - public function getDbCliplength() - { - return $this->cliplength; - } - - /** - * Get the [cuein] column value. - * - * @return string - */ - public function getDbCuein() - { - return $this->cuein; - } - - /** - * Get the [cueout] column value. - * - * @return string - */ - public function getDbCueout() - { - return $this->cueout; - } - - /** - * Get the [optionally formatted] temporal [fadein] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbFadein($format = '%X') - { - if ($this->fadein === null) { - return null; - } - - - - try { - $dt = new DateTime($this->fadein); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->fadein, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [fadeout] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbFadeout($format = '%X') - { - if ($this->fadeout === null) { - return null; - } - - - - try { - $dt = new DateTime($this->fadeout); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->fadeout, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcPlaylistcontents The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcPlaylistcontentsPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [playlist_id] column. - * - * @param int $v new value - * @return CcPlaylistcontents The current object (for fluent API support) - */ - public function setDbPlaylistId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->playlist_id !== $v) { - $this->playlist_id = $v; - $this->modifiedColumns[] = CcPlaylistcontentsPeer::PLAYLIST_ID; - } - - if ($this->aCcPlaylist !== null && $this->aCcPlaylist->getDbId() !== $v) { - $this->aCcPlaylist = null; - } - - return $this; - } // setDbPlaylistId() - - /** - * Set the value of [file_id] column. - * - * @param int $v new value - * @return CcPlaylistcontents The current object (for fluent API support) - */ - public function setDbFileId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->file_id !== $v) { - $this->file_id = $v; - $this->modifiedColumns[] = CcPlaylistcontentsPeer::FILE_ID; - } - - if ($this->aCcFiles !== null && $this->aCcFiles->getDbId() !== $v) { - $this->aCcFiles = null; - } - - return $this; - } // setDbFileId() - - /** - * Set the value of [block_id] column. - * - * @param int $v new value - * @return CcPlaylistcontents The current object (for fluent API support) - */ - public function setDbBlockId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->block_id !== $v) { - $this->block_id = $v; - $this->modifiedColumns[] = CcPlaylistcontentsPeer::BLOCK_ID; - } - - if ($this->aCcBlock !== null && $this->aCcBlock->getDbId() !== $v) { - $this->aCcBlock = null; - } - - return $this; - } // setDbBlockId() - - /** - * Set the value of [stream_id] column. - * - * @param int $v new value - * @return CcPlaylistcontents The current object (for fluent API support) - */ - public function setDbStreamId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->stream_id !== $v) { - $this->stream_id = $v; - $this->modifiedColumns[] = CcPlaylistcontentsPeer::STREAM_ID; - } - - return $this; - } // setDbStreamId() - - /** - * Set the value of [type] column. - * - * @param int $v new value - * @return CcPlaylistcontents The current object (for fluent API support) - */ - public function setDbType($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->type !== $v || $this->isNew()) { - $this->type = $v; - $this->modifiedColumns[] = CcPlaylistcontentsPeer::TYPE; - } - - return $this; - } // setDbType() - - /** - * Set the value of [position] column. - * - * @param int $v new value - * @return CcPlaylistcontents The current object (for fluent API support) - */ - public function setDbPosition($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->position !== $v) { - $this->position = $v; - $this->modifiedColumns[] = CcPlaylistcontentsPeer::POSITION; - } - - return $this; - } // setDbPosition() - - /** - * Set the value of [trackoffset] column. - * - * @param double $v new value - * @return CcPlaylistcontents The current object (for fluent API support) - */ - public function setDbTrackOffset($v) - { - if ($v !== null) { - $v = (double) $v; - } - - if ($this->trackoffset !== $v || $this->isNew()) { - $this->trackoffset = $v; - $this->modifiedColumns[] = CcPlaylistcontentsPeer::TRACKOFFSET; - } - - return $this; - } // setDbTrackOffset() - - /** - * Set the value of [cliplength] column. - * - * @param string $v new value - * @return CcPlaylistcontents The current object (for fluent API support) - */ - public function setDbCliplength($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->cliplength !== $v || $this->isNew()) { - $this->cliplength = $v; - $this->modifiedColumns[] = CcPlaylistcontentsPeer::CLIPLENGTH; - } - - return $this; - } // setDbCliplength() - - /** - * Set the value of [cuein] column. - * - * @param string $v new value - * @return CcPlaylistcontents The current object (for fluent API support) - */ - public function setDbCuein($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->cuein !== $v || $this->isNew()) { - $this->cuein = $v; - $this->modifiedColumns[] = CcPlaylistcontentsPeer::CUEIN; - } - - return $this; - } // setDbCuein() - - /** - * Set the value of [cueout] column. - * - * @param string $v new value - * @return CcPlaylistcontents The current object (for fluent API support) - */ - public function setDbCueout($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->cueout !== $v || $this->isNew()) { - $this->cueout = $v; - $this->modifiedColumns[] = CcPlaylistcontentsPeer::CUEOUT; - } - - return $this; - } // setDbCueout() - - /** - * Sets the value of [fadein] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcPlaylistcontents The current object (for fluent API support) - */ - public function setDbFadein($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->fadein !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->fadein !== null && $tmpDt = new DateTime($this->fadein)) ? $tmpDt->format('H:i:s') : null; - $newNorm = ($dt !== null) ? $dt->format('H:i:s') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - || ($dt->format('H:i:s') === '00:00:00') // or the entered value matches the default - ) - { - $this->fadein = ($dt ? $dt->format('H:i:s') : null); - $this->modifiedColumns[] = CcPlaylistcontentsPeer::FADEIN; - } - } // if either are not null - - return $this; - } // setDbFadein() - - /** - * Sets the value of [fadeout] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcPlaylistcontents The current object (for fluent API support) - */ - public function setDbFadeout($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->fadeout !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->fadeout !== null && $tmpDt = new DateTime($this->fadeout)) ? $tmpDt->format('H:i:s') : null; - $newNorm = ($dt !== null) ? $dt->format('H:i:s') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - || ($dt->format('H:i:s') === '00:00:00') // or the entered value matches the default - ) - { - $this->fadeout = ($dt ? $dt->format('H:i:s') : null); - $this->modifiedColumns[] = CcPlaylistcontentsPeer::FADEOUT; - } - } // if either are not null - - return $this; - } // setDbFadeout() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->type !== 0) { - return false; - } - - if ($this->trackoffset !== 0) { - return false; - } - - if ($this->cliplength !== '00:00:00') { - return false; - } - - if ($this->cuein !== '00:00:00') { - return false; - } - - if ($this->cueout !== '00:00:00') { - return false; - } - - if ($this->fadein !== '00:00:00') { - return false; - } - - if ($this->fadeout !== '00:00:00') { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->playlist_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; - $this->file_id = ($row[$startcol + 2] !== null) ? (int) $row[$startcol + 2] : null; - $this->block_id = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; - $this->stream_id = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; - $this->type = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null; - $this->position = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null; - $this->trackoffset = ($row[$startcol + 7] !== null) ? (double) $row[$startcol + 7] : null; - $this->cliplength = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; - $this->cuein = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; - $this->cueout = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null; - $this->fadein = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null; - $this->fadeout = ($row[$startcol + 12] !== null) ? (string) $row[$startcol + 12] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 13; // 13 = CcPlaylistcontentsPeer::NUM_COLUMNS - CcPlaylistcontentsPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcPlaylistcontents object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcPlaylist !== null && $this->playlist_id !== $this->aCcPlaylist->getDbId()) { - $this->aCcPlaylist = null; - } - if ($this->aCcFiles !== null && $this->file_id !== $this->aCcFiles->getDbId()) { - $this->aCcFiles = null; - } - if ($this->aCcBlock !== null && $this->block_id !== $this->aCcBlock->getDbId()) { - $this->aCcBlock = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcPlaylistcontentsPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcFiles = null; - $this->aCcBlock = null; - $this->aCcPlaylist = null; - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcPlaylistcontentsQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - // aggregate_column_relation behavior - $this->updateRelatedCcPlaylist($con); - CcPlaylistcontentsPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcFiles !== null) { - if ($this->aCcFiles->isModified() || $this->aCcFiles->isNew()) { - $affectedRows += $this->aCcFiles->save($con); - } - $this->setCcFiles($this->aCcFiles); - } - - if ($this->aCcBlock !== null) { - if ($this->aCcBlock->isModified() || $this->aCcBlock->isNew()) { - $affectedRows += $this->aCcBlock->save($con); - } - $this->setCcBlock($this->aCcBlock); - } - - if ($this->aCcPlaylist !== null) { - if ($this->aCcPlaylist->isModified() || $this->aCcPlaylist->isNew()) { - $affectedRows += $this->aCcPlaylist->save($con); - } - $this->setCcPlaylist($this->aCcPlaylist); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcPlaylistcontentsPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcPlaylistcontentsPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlaylistcontentsPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcPlaylistcontentsPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcFiles !== null) { - if (!$this->aCcFiles->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcFiles->getValidationFailures()); - } - } - - if ($this->aCcBlock !== null) { - if (!$this->aCcBlock->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcBlock->getValidationFailures()); - } - } - - if ($this->aCcPlaylist !== null) { - if (!$this->aCcPlaylist->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcPlaylist->getValidationFailures()); - } - } - - - if (($retval = CcPlaylistcontentsPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPlaylistcontentsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbPlaylistId(); - break; - case 2: - return $this->getDbFileId(); - break; - case 3: - return $this->getDbBlockId(); - break; - case 4: - return $this->getDbStreamId(); - break; - case 5: - return $this->getDbType(); - break; - case 6: - return $this->getDbPosition(); - break; - case 7: - return $this->getDbTrackOffset(); - break; - case 8: - return $this->getDbCliplength(); - break; - case 9: - return $this->getDbCuein(); - break; - case 10: - return $this->getDbCueout(); - break; - case 11: - return $this->getDbFadein(); - break; - case 12: - return $this->getDbFadeout(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcPlaylistcontentsPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbPlaylistId(), - $keys[2] => $this->getDbFileId(), - $keys[3] => $this->getDbBlockId(), - $keys[4] => $this->getDbStreamId(), - $keys[5] => $this->getDbType(), - $keys[6] => $this->getDbPosition(), - $keys[7] => $this->getDbTrackOffset(), - $keys[8] => $this->getDbCliplength(), - $keys[9] => $this->getDbCuein(), - $keys[10] => $this->getDbCueout(), - $keys[11] => $this->getDbFadein(), - $keys[12] => $this->getDbFadeout(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcFiles) { - $result['CcFiles'] = $this->aCcFiles->toArray($keyType, $includeLazyLoadColumns, true); - } - if (null !== $this->aCcBlock) { - $result['CcBlock'] = $this->aCcBlock->toArray($keyType, $includeLazyLoadColumns, true); - } - if (null !== $this->aCcPlaylist) { - $result['CcPlaylist'] = $this->aCcPlaylist->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPlaylistcontentsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbPlaylistId($value); - break; - case 2: - $this->setDbFileId($value); - break; - case 3: - $this->setDbBlockId($value); - break; - case 4: - $this->setDbStreamId($value); - break; - case 5: - $this->setDbType($value); - break; - case 6: - $this->setDbPosition($value); - break; - case 7: - $this->setDbTrackOffset($value); - break; - case 8: - $this->setDbCliplength($value); - break; - case 9: - $this->setDbCuein($value); - break; - case 10: - $this->setDbCueout($value); - break; - case 11: - $this->setDbFadein($value); - break; - case 12: - $this->setDbFadeout($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcPlaylistcontentsPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbPlaylistId($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbFileId($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbBlockId($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbStreamId($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setDbType($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setDbPosition($arr[$keys[6]]); - if (array_key_exists($keys[7], $arr)) $this->setDbTrackOffset($arr[$keys[7]]); - if (array_key_exists($keys[8], $arr)) $this->setDbCliplength($arr[$keys[8]]); - if (array_key_exists($keys[9], $arr)) $this->setDbCuein($arr[$keys[9]]); - if (array_key_exists($keys[10], $arr)) $this->setDbCueout($arr[$keys[10]]); - if (array_key_exists($keys[11], $arr)) $this->setDbFadein($arr[$keys[11]]); - if (array_key_exists($keys[12], $arr)) $this->setDbFadeout($arr[$keys[12]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcPlaylistcontentsPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcPlaylistcontentsPeer::ID)) $criteria->add(CcPlaylistcontentsPeer::ID, $this->id); - if ($this->isColumnModified(CcPlaylistcontentsPeer::PLAYLIST_ID)) $criteria->add(CcPlaylistcontentsPeer::PLAYLIST_ID, $this->playlist_id); - if ($this->isColumnModified(CcPlaylistcontentsPeer::FILE_ID)) $criteria->add(CcPlaylistcontentsPeer::FILE_ID, $this->file_id); - if ($this->isColumnModified(CcPlaylistcontentsPeer::BLOCK_ID)) $criteria->add(CcPlaylistcontentsPeer::BLOCK_ID, $this->block_id); - if ($this->isColumnModified(CcPlaylistcontentsPeer::STREAM_ID)) $criteria->add(CcPlaylistcontentsPeer::STREAM_ID, $this->stream_id); - if ($this->isColumnModified(CcPlaylistcontentsPeer::TYPE)) $criteria->add(CcPlaylistcontentsPeer::TYPE, $this->type); - if ($this->isColumnModified(CcPlaylistcontentsPeer::POSITION)) $criteria->add(CcPlaylistcontentsPeer::POSITION, $this->position); - if ($this->isColumnModified(CcPlaylistcontentsPeer::TRACKOFFSET)) $criteria->add(CcPlaylistcontentsPeer::TRACKOFFSET, $this->trackoffset); - if ($this->isColumnModified(CcPlaylistcontentsPeer::CLIPLENGTH)) $criteria->add(CcPlaylistcontentsPeer::CLIPLENGTH, $this->cliplength); - if ($this->isColumnModified(CcPlaylistcontentsPeer::CUEIN)) $criteria->add(CcPlaylistcontentsPeer::CUEIN, $this->cuein); - if ($this->isColumnModified(CcPlaylistcontentsPeer::CUEOUT)) $criteria->add(CcPlaylistcontentsPeer::CUEOUT, $this->cueout); - if ($this->isColumnModified(CcPlaylistcontentsPeer::FADEIN)) $criteria->add(CcPlaylistcontentsPeer::FADEIN, $this->fadein); - if ($this->isColumnModified(CcPlaylistcontentsPeer::FADEOUT)) $criteria->add(CcPlaylistcontentsPeer::FADEOUT, $this->fadeout); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcPlaylistcontentsPeer::DATABASE_NAME); - $criteria->add(CcPlaylistcontentsPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcPlaylistcontents (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbPlaylistId($this->playlist_id); - $copyObj->setDbFileId($this->file_id); - $copyObj->setDbBlockId($this->block_id); - $copyObj->setDbStreamId($this->stream_id); - $copyObj->setDbType($this->type); - $copyObj->setDbPosition($this->position); - $copyObj->setDbTrackOffset($this->trackoffset); - $copyObj->setDbCliplength($this->cliplength); - $copyObj->setDbCuein($this->cuein); - $copyObj->setDbCueout($this->cueout); - $copyObj->setDbFadein($this->fadein); - $copyObj->setDbFadeout($this->fadeout); - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcPlaylistcontents Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcPlaylistcontentsPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcPlaylistcontentsPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcFiles object. - * - * @param CcFiles $v - * @return CcPlaylistcontents The current object (for fluent API support) - * @throws PropelException - */ - public function setCcFiles(CcFiles $v = null) - { - if ($v === null) { - $this->setDbFileId(NULL); - } else { - $this->setDbFileId($v->getDbId()); - } - - $this->aCcFiles = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcFiles object, it will not be re-added. - if ($v !== null) { - $v->addCcPlaylistcontents($this); - } - - return $this; - } - - - /** - * Get the associated CcFiles object - * - * @param PropelPDO Optional Connection object. - * @return CcFiles The associated CcFiles object. - * @throws PropelException - */ - public function getCcFiles(PropelPDO $con = null) - { - if ($this->aCcFiles === null && ($this->file_id !== null)) { - $this->aCcFiles = CcFilesQuery::create()->findPk($this->file_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcFiles->addCcPlaylistcontentss($this); - */ - } - return $this->aCcFiles; - } - - /** - * Declares an association between this object and a CcBlock object. - * - * @param CcBlock $v - * @return CcPlaylistcontents The current object (for fluent API support) - * @throws PropelException - */ - public function setCcBlock(CcBlock $v = null) - { - if ($v === null) { - $this->setDbBlockId(NULL); - } else { - $this->setDbBlockId($v->getDbId()); - } - - $this->aCcBlock = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcBlock object, it will not be re-added. - if ($v !== null) { - $v->addCcPlaylistcontents($this); - } - - return $this; - } - - - /** - * Get the associated CcBlock object - * - * @param PropelPDO Optional Connection object. - * @return CcBlock The associated CcBlock object. - * @throws PropelException - */ - public function getCcBlock(PropelPDO $con = null) - { - if ($this->aCcBlock === null && ($this->block_id !== null)) { - $this->aCcBlock = CcBlockQuery::create()->findPk($this->block_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcBlock->addCcPlaylistcontentss($this); - */ - } - return $this->aCcBlock; - } - - /** - * Declares an association between this object and a CcPlaylist object. - * - * @param CcPlaylist $v - * @return CcPlaylistcontents The current object (for fluent API support) - * @throws PropelException - */ - public function setCcPlaylist(CcPlaylist $v = null) - { - // aggregate_column_relation behavior - if (null !== $this->aCcPlaylist && $v !== $this->aCcPlaylist) { - $this->oldCcPlaylist = $this->aCcPlaylist; - } - if ($v === null) { - $this->setDbPlaylistId(NULL); - } else { - $this->setDbPlaylistId($v->getDbId()); - } - - $this->aCcPlaylist = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcPlaylist object, it will not be re-added. - if ($v !== null) { - $v->addCcPlaylistcontents($this); - } - - return $this; - } - - - /** - * Get the associated CcPlaylist object - * - * @param PropelPDO Optional Connection object. - * @return CcPlaylist The associated CcPlaylist object. - * @throws PropelException - */ - public function getCcPlaylist(PropelPDO $con = null) - { - if ($this->aCcPlaylist === null && ($this->playlist_id !== null)) { - $this->aCcPlaylist = CcPlaylistQuery::create()->findPk($this->playlist_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcPlaylist->addCcPlaylistcontentss($this); - */ - } - return $this->aCcPlaylist; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->playlist_id = null; - $this->file_id = null; - $this->block_id = null; - $this->stream_id = null; - $this->type = null; - $this->position = null; - $this->trackoffset = null; - $this->cliplength = null; - $this->cuein = null; - $this->cueout = null; - $this->fadein = null; - $this->fadeout = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - $this->aCcFiles = null; - $this->aCcBlock = null; - $this->aCcPlaylist = null; - } - - // aggregate_column_relation behavior - - /** - * Update the aggregate column in the related CcPlaylist object - * - * @param PropelPDO $con A connection object - */ - protected function updateRelatedCcPlaylist(PropelPDO $con) - { - if ($ccPlaylist = $this->getCcPlaylist()) { - $ccPlaylist->updateDbLength($con); - } - if ($this->oldCcPlaylist) { - $this->oldCcPlaylist->updateDbLength($con); - $this->oldCcPlaylist = null; - } - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcPlaylistcontents + /** + * Peer class name + */ + const PEER = 'CcPlaylistcontentsPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcPlaylistcontentsPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the playlist_id field. + * @var int + */ + protected $playlist_id; + + /** + * The value for the file_id field. + * @var int + */ + protected $file_id; + + /** + * The value for the block_id field. + * @var int + */ + protected $block_id; + + /** + * The value for the stream_id field. + * @var int + */ + protected $stream_id; + + /** + * The value for the type field. + * Note: this column has a database default value of: 0 + * @var int + */ + protected $type; + + /** + * The value for the position field. + * @var int + */ + protected $position; + + /** + * The value for the trackoffset field. + * Note: this column has a database default value of: 0 + * @var double + */ + protected $trackoffset; + + /** + * The value for the cliplength field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $cliplength; + + /** + * The value for the cuein field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $cuein; + + /** + * The value for the cueout field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $cueout; + + /** + * The value for the fadein field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $fadein; + + /** + * The value for the fadeout field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $fadeout; + + /** + * @var CcFiles + */ + protected $aCcFiles; + + /** + * @var CcBlock + */ + protected $aCcBlock; + + /** + * @var CcPlaylist + */ + protected $aCcPlaylist; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + // aggregate_column_relation behavior + protected $oldCcPlaylist; + + /** + * 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->type = 0; + $this->trackoffset = 0; + $this->cliplength = '00:00:00'; + $this->cuein = '00:00:00'; + $this->cueout = '00:00:00'; + $this->fadein = '00:00:00'; + $this->fadeout = '00:00:00'; + } + + /** + * Initializes internal state of BaseCcPlaylistcontents object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [playlist_id] column value. + * + * @return int + */ + public function getDbPlaylistId() + { + + return $this->playlist_id; + } + + /** + * Get the [file_id] column value. + * + * @return int + */ + public function getDbFileId() + { + + return $this->file_id; + } + + /** + * Get the [block_id] column value. + * + * @return int + */ + public function getDbBlockId() + { + + return $this->block_id; + } + + /** + * Get the [stream_id] column value. + * + * @return int + */ + public function getDbStreamId() + { + + return $this->stream_id; + } + + /** + * Get the [type] column value. + * + * @return int + */ + public function getDbType() + { + + return $this->type; + } + + /** + * Get the [position] column value. + * + * @return int + */ + public function getDbPosition() + { + + return $this->position; + } + + /** + * Get the [trackoffset] column value. + * + * @return double + */ + public function getDbTrackOffset() + { + + return $this->trackoffset; + } + + /** + * Get the [cliplength] column value. + * + * @return string + */ + public function getDbCliplength() + { + + return $this->cliplength; + } + + /** + * Get the [cuein] column value. + * + * @return string + */ + public function getDbCuein() + { + + return $this->cuein; + } + + /** + * Get the [cueout] column value. + * + * @return string + */ + public function getDbCueout() + { + + return $this->cueout; + } + + /** + * Get the [optionally formatted] temporal [fadein] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbFadein($format = '%X') + { + if ($this->fadein === null) { + return null; + } + + + try { + $dt = new DateTime($this->fadein); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->fadein, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [fadeout] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbFadeout($format = '%X') + { + if ($this->fadeout === null) { + return null; + } + + + try { + $dt = new DateTime($this->fadeout); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->fadeout, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcPlaylistcontents The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcPlaylistcontentsPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [playlist_id] column. + * + * @param int $v new value + * @return CcPlaylistcontents The current object (for fluent API support) + */ + public function setDbPlaylistId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->playlist_id !== $v) { + $this->playlist_id = $v; + $this->modifiedColumns[] = CcPlaylistcontentsPeer::PLAYLIST_ID; + } + + if ($this->aCcPlaylist !== null && $this->aCcPlaylist->getDbId() !== $v) { + $this->aCcPlaylist = null; + } + + + return $this; + } // setDbPlaylistId() + + /** + * Set the value of [file_id] column. + * + * @param int $v new value + * @return CcPlaylistcontents The current object (for fluent API support) + */ + public function setDbFileId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->file_id !== $v) { + $this->file_id = $v; + $this->modifiedColumns[] = CcPlaylistcontentsPeer::FILE_ID; + } + + if ($this->aCcFiles !== null && $this->aCcFiles->getDbId() !== $v) { + $this->aCcFiles = null; + } + + + return $this; + } // setDbFileId() + + /** + * Set the value of [block_id] column. + * + * @param int $v new value + * @return CcPlaylistcontents The current object (for fluent API support) + */ + public function setDbBlockId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->block_id !== $v) { + $this->block_id = $v; + $this->modifiedColumns[] = CcPlaylistcontentsPeer::BLOCK_ID; + } + + if ($this->aCcBlock !== null && $this->aCcBlock->getDbId() !== $v) { + $this->aCcBlock = null; + } + + + return $this; + } // setDbBlockId() + + /** + * Set the value of [stream_id] column. + * + * @param int $v new value + * @return CcPlaylistcontents The current object (for fluent API support) + */ + public function setDbStreamId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->stream_id !== $v) { + $this->stream_id = $v; + $this->modifiedColumns[] = CcPlaylistcontentsPeer::STREAM_ID; + } + + + return $this; + } // setDbStreamId() + + /** + * Set the value of [type] column. + * + * @param int $v new value + * @return CcPlaylistcontents The current object (for fluent API support) + */ + public function setDbType($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->type !== $v) { + $this->type = $v; + $this->modifiedColumns[] = CcPlaylistcontentsPeer::TYPE; + } + + + return $this; + } // setDbType() + + /** + * Set the value of [position] column. + * + * @param int $v new value + * @return CcPlaylistcontents The current object (for fluent API support) + */ + public function setDbPosition($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->position !== $v) { + $this->position = $v; + $this->modifiedColumns[] = CcPlaylistcontentsPeer::POSITION; + } + + + return $this; + } // setDbPosition() + + /** + * Set the value of [trackoffset] column. + * + * @param double $v new value + * @return CcPlaylistcontents The current object (for fluent API support) + */ + public function setDbTrackOffset($v) + { + if ($v !== null && is_numeric($v)) { + $v = (double) $v; + } + + if ($this->trackoffset !== $v) { + $this->trackoffset = $v; + $this->modifiedColumns[] = CcPlaylistcontentsPeer::TRACKOFFSET; + } + + + return $this; + } // setDbTrackOffset() + + /** + * Set the value of [cliplength] column. + * + * @param string $v new value + * @return CcPlaylistcontents The current object (for fluent API support) + */ + public function setDbCliplength($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->cliplength !== $v) { + $this->cliplength = $v; + $this->modifiedColumns[] = CcPlaylistcontentsPeer::CLIPLENGTH; + } + + + return $this; + } // setDbCliplength() + + /** + * Set the value of [cuein] column. + * + * @param string $v new value + * @return CcPlaylistcontents The current object (for fluent API support) + */ + public function setDbCuein($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->cuein !== $v) { + $this->cuein = $v; + $this->modifiedColumns[] = CcPlaylistcontentsPeer::CUEIN; + } + + + return $this; + } // setDbCuein() + + /** + * Set the value of [cueout] column. + * + * @param string $v new value + * @return CcPlaylistcontents The current object (for fluent API support) + */ + public function setDbCueout($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->cueout !== $v) { + $this->cueout = $v; + $this->modifiedColumns[] = CcPlaylistcontentsPeer::CUEOUT; + } + + + return $this; + } // setDbCueout() + + /** + * Sets the value of [fadein] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcPlaylistcontents The current object (for fluent API support) + */ + public function setDbFadein($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->fadein !== null || $dt !== null) { + $currentDateAsString = ($this->fadein !== null && $tmpDt = new DateTime($this->fadein)) ? $tmpDt->format('H:i:s') : null; + $newDateAsString = $dt ? $dt->format('H:i:s') : null; + if ( ($currentDateAsString !== $newDateAsString) // normalized values don't match + || ($dt->format('H:i:s') === '00:00:00') // or the entered value matches the default + ) { + $this->fadein = $newDateAsString; + $this->modifiedColumns[] = CcPlaylistcontentsPeer::FADEIN; + } + } // if either are not null + + + return $this; + } // setDbFadein() + + /** + * Sets the value of [fadeout] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcPlaylistcontents The current object (for fluent API support) + */ + public function setDbFadeout($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->fadeout !== null || $dt !== null) { + $currentDateAsString = ($this->fadeout !== null && $tmpDt = new DateTime($this->fadeout)) ? $tmpDt->format('H:i:s') : null; + $newDateAsString = $dt ? $dt->format('H:i:s') : null; + if ( ($currentDateAsString !== $newDateAsString) // normalized values don't match + || ($dt->format('H:i:s') === '00:00:00') // or the entered value matches the default + ) { + $this->fadeout = $newDateAsString; + $this->modifiedColumns[] = CcPlaylistcontentsPeer::FADEOUT; + } + } // if either are not null + + + return $this; + } // setDbFadeout() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->type !== 0) { + return false; + } + + if ($this->trackoffset !== 0) { + return false; + } + + if ($this->cliplength !== '00:00:00') { + return false; + } + + if ($this->cuein !== '00:00:00') { + return false; + } + + if ($this->cueout !== '00:00:00') { + return false; + } + + if ($this->fadein !== '00:00:00') { + return false; + } + + if ($this->fadeout !== '00:00:00') { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->playlist_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; + $this->file_id = ($row[$startcol + 2] !== null) ? (int) $row[$startcol + 2] : null; + $this->block_id = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; + $this->stream_id = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; + $this->type = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null; + $this->position = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null; + $this->trackoffset = ($row[$startcol + 7] !== null) ? (double) $row[$startcol + 7] : null; + $this->cliplength = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; + $this->cuein = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; + $this->cueout = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null; + $this->fadein = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null; + $this->fadeout = ($row[$startcol + 12] !== null) ? (string) $row[$startcol + 12] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 13; // 13 = CcPlaylistcontentsPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcPlaylistcontents object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcPlaylist !== null && $this->playlist_id !== $this->aCcPlaylist->getDbId()) { + $this->aCcPlaylist = null; + } + if ($this->aCcFiles !== null && $this->file_id !== $this->aCcFiles->getDbId()) { + $this->aCcFiles = null; + } + if ($this->aCcBlock !== null && $this->block_id !== $this->aCcBlock->getDbId()) { + $this->aCcBlock = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcPlaylistcontentsPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcFiles = null; + $this->aCcBlock = null; + $this->aCcPlaylist = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcPlaylistcontentsQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + // aggregate_column_relation behavior + $this->updateRelatedCcPlaylist($con); + CcPlaylistcontentsPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcFiles !== null) { + if ($this->aCcFiles->isModified() || $this->aCcFiles->isNew()) { + $affectedRows += $this->aCcFiles->save($con); + } + $this->setCcFiles($this->aCcFiles); + } + + if ($this->aCcBlock !== null) { + if ($this->aCcBlock->isModified() || $this->aCcBlock->isNew()) { + $affectedRows += $this->aCcBlock->save($con); + } + $this->setCcBlock($this->aCcBlock); + } + + if ($this->aCcPlaylist !== null) { + if ($this->aCcPlaylist->isModified() || $this->aCcPlaylist->isNew()) { + $affectedRows += $this->aCcPlaylist->save($con); + } + $this->setCcPlaylist($this->aCcPlaylist); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcPlaylistcontentsPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcPlaylistcontentsPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_playlistcontents_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcPlaylistcontentsPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcPlaylistcontentsPeer::PLAYLIST_ID)) { + $modifiedColumns[':p' . $index++] = '"playlist_id"'; + } + if ($this->isColumnModified(CcPlaylistcontentsPeer::FILE_ID)) { + $modifiedColumns[':p' . $index++] = '"file_id"'; + } + if ($this->isColumnModified(CcPlaylistcontentsPeer::BLOCK_ID)) { + $modifiedColumns[':p' . $index++] = '"block_id"'; + } + if ($this->isColumnModified(CcPlaylistcontentsPeer::STREAM_ID)) { + $modifiedColumns[':p' . $index++] = '"stream_id"'; + } + if ($this->isColumnModified(CcPlaylistcontentsPeer::TYPE)) { + $modifiedColumns[':p' . $index++] = '"type"'; + } + if ($this->isColumnModified(CcPlaylistcontentsPeer::POSITION)) { + $modifiedColumns[':p' . $index++] = '"position"'; + } + if ($this->isColumnModified(CcPlaylistcontentsPeer::TRACKOFFSET)) { + $modifiedColumns[':p' . $index++] = '"trackoffset"'; + } + if ($this->isColumnModified(CcPlaylistcontentsPeer::CLIPLENGTH)) { + $modifiedColumns[':p' . $index++] = '"cliplength"'; + } + if ($this->isColumnModified(CcPlaylistcontentsPeer::CUEIN)) { + $modifiedColumns[':p' . $index++] = '"cuein"'; + } + if ($this->isColumnModified(CcPlaylistcontentsPeer::CUEOUT)) { + $modifiedColumns[':p' . $index++] = '"cueout"'; + } + if ($this->isColumnModified(CcPlaylistcontentsPeer::FADEIN)) { + $modifiedColumns[':p' . $index++] = '"fadein"'; + } + if ($this->isColumnModified(CcPlaylistcontentsPeer::FADEOUT)) { + $modifiedColumns[':p' . $index++] = '"fadeout"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_playlistcontents" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"playlist_id"': + $stmt->bindValue($identifier, $this->playlist_id, PDO::PARAM_INT); + break; + case '"file_id"': + $stmt->bindValue($identifier, $this->file_id, PDO::PARAM_INT); + break; + case '"block_id"': + $stmt->bindValue($identifier, $this->block_id, PDO::PARAM_INT); + break; + case '"stream_id"': + $stmt->bindValue($identifier, $this->stream_id, PDO::PARAM_INT); + break; + case '"type"': + $stmt->bindValue($identifier, $this->type, PDO::PARAM_INT); + break; + case '"position"': + $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); + break; + case '"trackoffset"': + $stmt->bindValue($identifier, $this->trackoffset, PDO::PARAM_STR); + break; + case '"cliplength"': + $stmt->bindValue($identifier, $this->cliplength, PDO::PARAM_STR); + break; + case '"cuein"': + $stmt->bindValue($identifier, $this->cuein, PDO::PARAM_STR); + break; + case '"cueout"': + $stmt->bindValue($identifier, $this->cueout, PDO::PARAM_STR); + break; + case '"fadein"': + $stmt->bindValue($identifier, $this->fadein, PDO::PARAM_STR); + break; + case '"fadeout"': + $stmt->bindValue($identifier, $this->fadeout, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcFiles !== null) { + if (!$this->aCcFiles->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcFiles->getValidationFailures()); + } + } + + if ($this->aCcBlock !== null) { + if (!$this->aCcBlock->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcBlock->getValidationFailures()); + } + } + + if ($this->aCcPlaylist !== null) { + if (!$this->aCcPlaylist->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcPlaylist->getValidationFailures()); + } + } + + + if (($retval = CcPlaylistcontentsPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPlaylistcontentsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbPlaylistId(); + break; + case 2: + return $this->getDbFileId(); + break; + case 3: + return $this->getDbBlockId(); + break; + case 4: + return $this->getDbStreamId(); + break; + case 5: + return $this->getDbType(); + break; + case 6: + return $this->getDbPosition(); + break; + case 7: + return $this->getDbTrackOffset(); + break; + case 8: + return $this->getDbCliplength(); + break; + case 9: + return $this->getDbCuein(); + break; + case 10: + return $this->getDbCueout(); + break; + case 11: + return $this->getDbFadein(); + break; + case 12: + return $this->getDbFadeout(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcPlaylistcontents'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcPlaylistcontents'][$this->getPrimaryKey()] = true; + $keys = CcPlaylistcontentsPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbPlaylistId(), + $keys[2] => $this->getDbFileId(), + $keys[3] => $this->getDbBlockId(), + $keys[4] => $this->getDbStreamId(), + $keys[5] => $this->getDbType(), + $keys[6] => $this->getDbPosition(), + $keys[7] => $this->getDbTrackOffset(), + $keys[8] => $this->getDbCliplength(), + $keys[9] => $this->getDbCuein(), + $keys[10] => $this->getDbCueout(), + $keys[11] => $this->getDbFadein(), + $keys[12] => $this->getDbFadeout(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcFiles) { + $result['CcFiles'] = $this->aCcFiles->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aCcBlock) { + $result['CcBlock'] = $this->aCcBlock->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aCcPlaylist) { + $result['CcPlaylist'] = $this->aCcPlaylist->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPlaylistcontentsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbPlaylistId($value); + break; + case 2: + $this->setDbFileId($value); + break; + case 3: + $this->setDbBlockId($value); + break; + case 4: + $this->setDbStreamId($value); + break; + case 5: + $this->setDbType($value); + break; + case 6: + $this->setDbPosition($value); + break; + case 7: + $this->setDbTrackOffset($value); + break; + case 8: + $this->setDbCliplength($value); + break; + case 9: + $this->setDbCuein($value); + break; + case 10: + $this->setDbCueout($value); + break; + case 11: + $this->setDbFadein($value); + break; + case 12: + $this->setDbFadeout($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcPlaylistcontentsPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbPlaylistId($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbFileId($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbBlockId($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbStreamId($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDbType($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setDbPosition($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setDbTrackOffset($arr[$keys[7]]); + if (array_key_exists($keys[8], $arr)) $this->setDbCliplength($arr[$keys[8]]); + if (array_key_exists($keys[9], $arr)) $this->setDbCuein($arr[$keys[9]]); + if (array_key_exists($keys[10], $arr)) $this->setDbCueout($arr[$keys[10]]); + if (array_key_exists($keys[11], $arr)) $this->setDbFadein($arr[$keys[11]]); + if (array_key_exists($keys[12], $arr)) $this->setDbFadeout($arr[$keys[12]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcPlaylistcontentsPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcPlaylistcontentsPeer::ID)) $criteria->add(CcPlaylistcontentsPeer::ID, $this->id); + if ($this->isColumnModified(CcPlaylistcontentsPeer::PLAYLIST_ID)) $criteria->add(CcPlaylistcontentsPeer::PLAYLIST_ID, $this->playlist_id); + if ($this->isColumnModified(CcPlaylistcontentsPeer::FILE_ID)) $criteria->add(CcPlaylistcontentsPeer::FILE_ID, $this->file_id); + if ($this->isColumnModified(CcPlaylistcontentsPeer::BLOCK_ID)) $criteria->add(CcPlaylistcontentsPeer::BLOCK_ID, $this->block_id); + if ($this->isColumnModified(CcPlaylistcontentsPeer::STREAM_ID)) $criteria->add(CcPlaylistcontentsPeer::STREAM_ID, $this->stream_id); + if ($this->isColumnModified(CcPlaylistcontentsPeer::TYPE)) $criteria->add(CcPlaylistcontentsPeer::TYPE, $this->type); + if ($this->isColumnModified(CcPlaylistcontentsPeer::POSITION)) $criteria->add(CcPlaylistcontentsPeer::POSITION, $this->position); + if ($this->isColumnModified(CcPlaylistcontentsPeer::TRACKOFFSET)) $criteria->add(CcPlaylistcontentsPeer::TRACKOFFSET, $this->trackoffset); + if ($this->isColumnModified(CcPlaylistcontentsPeer::CLIPLENGTH)) $criteria->add(CcPlaylistcontentsPeer::CLIPLENGTH, $this->cliplength); + if ($this->isColumnModified(CcPlaylistcontentsPeer::CUEIN)) $criteria->add(CcPlaylistcontentsPeer::CUEIN, $this->cuein); + if ($this->isColumnModified(CcPlaylistcontentsPeer::CUEOUT)) $criteria->add(CcPlaylistcontentsPeer::CUEOUT, $this->cueout); + if ($this->isColumnModified(CcPlaylistcontentsPeer::FADEIN)) $criteria->add(CcPlaylistcontentsPeer::FADEIN, $this->fadein); + if ($this->isColumnModified(CcPlaylistcontentsPeer::FADEOUT)) $criteria->add(CcPlaylistcontentsPeer::FADEOUT, $this->fadeout); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcPlaylistcontentsPeer::DATABASE_NAME); + $criteria->add(CcPlaylistcontentsPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcPlaylistcontents (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbPlaylistId($this->getDbPlaylistId()); + $copyObj->setDbFileId($this->getDbFileId()); + $copyObj->setDbBlockId($this->getDbBlockId()); + $copyObj->setDbStreamId($this->getDbStreamId()); + $copyObj->setDbType($this->getDbType()); + $copyObj->setDbPosition($this->getDbPosition()); + $copyObj->setDbTrackOffset($this->getDbTrackOffset()); + $copyObj->setDbCliplength($this->getDbCliplength()); + $copyObj->setDbCuein($this->getDbCuein()); + $copyObj->setDbCueout($this->getDbCueout()); + $copyObj->setDbFadein($this->getDbFadein()); + $copyObj->setDbFadeout($this->getDbFadeout()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcPlaylistcontents Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcPlaylistcontentsPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcPlaylistcontentsPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcFiles object. + * + * @param CcFiles $v + * @return CcPlaylistcontents The current object (for fluent API support) + * @throws PropelException + */ + public function setCcFiles(CcFiles $v = null) + { + if ($v === null) { + $this->setDbFileId(NULL); + } else { + $this->setDbFileId($v->getDbId()); + } + + $this->aCcFiles = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcFiles object, it will not be re-added. + if ($v !== null) { + $v->addCcPlaylistcontents($this); + } + + + return $this; + } + + + /** + * Get the associated CcFiles object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcFiles The associated CcFiles object. + * @throws PropelException + */ + public function getCcFiles(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcFiles === null && ($this->file_id !== null) && $doQuery) { + $this->aCcFiles = CcFilesQuery::create()->findPk($this->file_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcFiles->addCcPlaylistcontentss($this); + */ + } + + return $this->aCcFiles; + } + + /** + * Declares an association between this object and a CcBlock object. + * + * @param CcBlock $v + * @return CcPlaylistcontents The current object (for fluent API support) + * @throws PropelException + */ + public function setCcBlock(CcBlock $v = null) + { + if ($v === null) { + $this->setDbBlockId(NULL); + } else { + $this->setDbBlockId($v->getDbId()); + } + + $this->aCcBlock = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcBlock object, it will not be re-added. + if ($v !== null) { + $v->addCcPlaylistcontents($this); + } + + + return $this; + } + + + /** + * Get the associated CcBlock object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcBlock The associated CcBlock object. + * @throws PropelException + */ + public function getCcBlock(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcBlock === null && ($this->block_id !== null) && $doQuery) { + $this->aCcBlock = CcBlockQuery::create()->findPk($this->block_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcBlock->addCcPlaylistcontentss($this); + */ + } + + return $this->aCcBlock; + } + + /** + * Declares an association between this object and a CcPlaylist object. + * + * @param CcPlaylist $v + * @return CcPlaylistcontents The current object (for fluent API support) + * @throws PropelException + */ + public function setCcPlaylist(CcPlaylist $v = null) + { + // aggregate_column_relation behavior + if (null !== $this->aCcPlaylist && $v !== $this->aCcPlaylist) { + $this->oldCcPlaylist = $this->aCcPlaylist; + } + if ($v === null) { + $this->setDbPlaylistId(NULL); + } else { + $this->setDbPlaylistId($v->getDbId()); + } + + $this->aCcPlaylist = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcPlaylist object, it will not be re-added. + if ($v !== null) { + $v->addCcPlaylistcontents($this); + } + + + return $this; + } + + + /** + * Get the associated CcPlaylist object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcPlaylist The associated CcPlaylist object. + * @throws PropelException + */ + public function getCcPlaylist(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcPlaylist === null && ($this->playlist_id !== null) && $doQuery) { + $this->aCcPlaylist = CcPlaylistQuery::create()->findPk($this->playlist_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcPlaylist->addCcPlaylistcontentss($this); + */ + } + + return $this->aCcPlaylist; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->playlist_id = null; + $this->file_id = null; + $this->block_id = null; + $this->stream_id = null; + $this->type = null; + $this->position = null; + $this->trackoffset = null; + $this->cliplength = null; + $this->cuein = null; + $this->cueout = null; + $this->fadein = null; + $this->fadeout = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcFiles instanceof Persistent) { + $this->aCcFiles->clearAllReferences($deep); + } + if ($this->aCcBlock instanceof Persistent) { + $this->aCcBlock->clearAllReferences($deep); + } + if ($this->aCcPlaylist instanceof Persistent) { + $this->aCcPlaylist->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcFiles = null; + $this->aCcBlock = null; + $this->aCcPlaylist = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcPlaylistcontentsPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + + // aggregate_column_relation behavior + + /** + * Update the aggregate column in the related CcPlaylist object + * + * @param PropelPDO $con A connection object + */ + protected function updateRelatedCcPlaylist(PropelPDO $con) + { + if ($ccPlaylist = $this->getCcPlaylist()) { + if (!$ccPlaylist->isAlreadyInSave()) { + $ccPlaylist->updateDbLength($con); + } + } + if ($this->oldCcPlaylist) { + $this->oldCcPlaylist->updateDbLength($con); + $this->oldCcPlaylist = null; + } + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlaylistcontentsPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcPlaylistcontentsPeer.php index 0e23f44c36..5f55d962f8 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlaylistcontentsPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlaylistcontentsPeer.php @@ -4,1750 +4,1786 @@ /** * Base static class for performing query and update operations on the 'cc_playlistcontents' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcPlaylistcontentsPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_playlistcontents'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcPlaylistcontents'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcPlaylistcontents'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcPlaylistcontentsTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 13; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_playlistcontents.ID'; - - /** the column name for the PLAYLIST_ID field */ - const PLAYLIST_ID = 'cc_playlistcontents.PLAYLIST_ID'; - - /** the column name for the FILE_ID field */ - const FILE_ID = 'cc_playlistcontents.FILE_ID'; - - /** the column name for the BLOCK_ID field */ - const BLOCK_ID = 'cc_playlistcontents.BLOCK_ID'; - - /** the column name for the STREAM_ID field */ - const STREAM_ID = 'cc_playlistcontents.STREAM_ID'; - - /** the column name for the TYPE field */ - const TYPE = 'cc_playlistcontents.TYPE'; - - /** the column name for the POSITION field */ - const POSITION = 'cc_playlistcontents.POSITION'; - - /** the column name for the TRACKOFFSET field */ - const TRACKOFFSET = 'cc_playlistcontents.TRACKOFFSET'; - - /** the column name for the CLIPLENGTH field */ - const CLIPLENGTH = 'cc_playlistcontents.CLIPLENGTH'; - - /** the column name for the CUEIN field */ - const CUEIN = 'cc_playlistcontents.CUEIN'; - - /** the column name for the CUEOUT field */ - const CUEOUT = 'cc_playlistcontents.CUEOUT'; - - /** the column name for the FADEIN field */ - const FADEIN = 'cc_playlistcontents.FADEIN'; - - /** the column name for the FADEOUT field */ - const FADEOUT = 'cc_playlistcontents.FADEOUT'; - - /** - * An identiy map to hold any loaded instances of CcPlaylistcontents objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcPlaylistcontents[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbPlaylistId', 'DbFileId', 'DbBlockId', 'DbStreamId', 'DbType', 'DbPosition', 'DbTrackOffset', 'DbCliplength', 'DbCuein', 'DbCueout', 'DbFadein', 'DbFadeout', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbPlaylistId', 'dbFileId', 'dbBlockId', 'dbStreamId', 'dbType', 'dbPosition', 'dbTrackOffset', 'dbCliplength', 'dbCuein', 'dbCueout', 'dbFadein', 'dbFadeout', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::PLAYLIST_ID, self::FILE_ID, self::BLOCK_ID, self::STREAM_ID, self::TYPE, self::POSITION, self::TRACKOFFSET, self::CLIPLENGTH, self::CUEIN, self::CUEOUT, self::FADEIN, self::FADEOUT, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'PLAYLIST_ID', 'FILE_ID', 'BLOCK_ID', 'STREAM_ID', 'TYPE', 'POSITION', 'TRACKOFFSET', 'CLIPLENGTH', 'CUEIN', 'CUEOUT', 'FADEIN', 'FADEOUT', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'playlist_id', 'file_id', 'block_id', 'stream_id', 'type', 'position', 'trackoffset', 'cliplength', 'cuein', 'cueout', 'fadein', 'fadeout', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbPlaylistId' => 1, 'DbFileId' => 2, 'DbBlockId' => 3, 'DbStreamId' => 4, 'DbType' => 5, 'DbPosition' => 6, 'DbTrackOffset' => 7, 'DbCliplength' => 8, 'DbCuein' => 9, 'DbCueout' => 10, 'DbFadein' => 11, 'DbFadeout' => 12, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbPlaylistId' => 1, 'dbFileId' => 2, 'dbBlockId' => 3, 'dbStreamId' => 4, 'dbType' => 5, 'dbPosition' => 6, 'dbTrackOffset' => 7, 'dbCliplength' => 8, 'dbCuein' => 9, 'dbCueout' => 10, 'dbFadein' => 11, 'dbFadeout' => 12, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::PLAYLIST_ID => 1, self::FILE_ID => 2, self::BLOCK_ID => 3, self::STREAM_ID => 4, self::TYPE => 5, self::POSITION => 6, self::TRACKOFFSET => 7, self::CLIPLENGTH => 8, self::CUEIN => 9, self::CUEOUT => 10, self::FADEIN => 11, self::FADEOUT => 12, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'PLAYLIST_ID' => 1, 'FILE_ID' => 2, 'BLOCK_ID' => 3, 'STREAM_ID' => 4, 'TYPE' => 5, 'POSITION' => 6, 'TRACKOFFSET' => 7, 'CLIPLENGTH' => 8, 'CUEIN' => 9, 'CUEOUT' => 10, 'FADEIN' => 11, 'FADEOUT' => 12, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'playlist_id' => 1, 'file_id' => 2, 'block_id' => 3, 'stream_id' => 4, 'type' => 5, 'position' => 6, 'trackoffset' => 7, 'cliplength' => 8, 'cuein' => 9, 'cueout' => 10, 'fadein' => 11, 'fadeout' => 12, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcPlaylistcontentsPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcPlaylistcontentsPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcPlaylistcontentsPeer::ID); - $criteria->addSelectColumn(CcPlaylistcontentsPeer::PLAYLIST_ID); - $criteria->addSelectColumn(CcPlaylistcontentsPeer::FILE_ID); - $criteria->addSelectColumn(CcPlaylistcontentsPeer::BLOCK_ID); - $criteria->addSelectColumn(CcPlaylistcontentsPeer::STREAM_ID); - $criteria->addSelectColumn(CcPlaylistcontentsPeer::TYPE); - $criteria->addSelectColumn(CcPlaylistcontentsPeer::POSITION); - $criteria->addSelectColumn(CcPlaylistcontentsPeer::TRACKOFFSET); - $criteria->addSelectColumn(CcPlaylistcontentsPeer::CLIPLENGTH); - $criteria->addSelectColumn(CcPlaylistcontentsPeer::CUEIN); - $criteria->addSelectColumn(CcPlaylistcontentsPeer::CUEOUT); - $criteria->addSelectColumn(CcPlaylistcontentsPeer::FADEIN); - $criteria->addSelectColumn(CcPlaylistcontentsPeer::FADEOUT); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.PLAYLIST_ID'); - $criteria->addSelectColumn($alias . '.FILE_ID'); - $criteria->addSelectColumn($alias . '.BLOCK_ID'); - $criteria->addSelectColumn($alias . '.STREAM_ID'); - $criteria->addSelectColumn($alias . '.TYPE'); - $criteria->addSelectColumn($alias . '.POSITION'); - $criteria->addSelectColumn($alias . '.TRACKOFFSET'); - $criteria->addSelectColumn($alias . '.CLIPLENGTH'); - $criteria->addSelectColumn($alias . '.CUEIN'); - $criteria->addSelectColumn($alias . '.CUEOUT'); - $criteria->addSelectColumn($alias . '.FADEIN'); - $criteria->addSelectColumn($alias . '.FADEOUT'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlaylistcontentsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcPlaylistcontents - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcPlaylistcontentsPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcPlaylistcontentsPeer::populateObjects(CcPlaylistcontentsPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcPlaylistcontentsPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcPlaylistcontents $value A CcPlaylistcontents object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcPlaylistcontents $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcPlaylistcontents object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcPlaylistcontents) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPlaylistcontents object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcPlaylistcontents Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_playlistcontents - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcPlaylistcontentsPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcPlaylistcontentsPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcPlaylistcontentsPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcPlaylistcontents object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcPlaylistcontentsPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcPlaylistcontentsPeer::NUM_COLUMNS; - } else { - $cls = CcPlaylistcontentsPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcPlaylistcontentsPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcFiles table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlaylistcontentsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcBlock table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcBlock(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlaylistcontentsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcPlaylist table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcPlaylist(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlaylistcontentsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcPlaylistcontents objects pre-filled with their CcFiles objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlaylistcontents objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlaylistcontentsPeer::addSelectColumns($criteria); - $startcol = (CcPlaylistcontentsPeer::NUM_COLUMNS - CcPlaylistcontentsPeer::NUM_LAZY_LOAD_COLUMNS); - CcFilesPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlaylistcontentsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcPlaylistcontentsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlaylistcontentsPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcFilesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcFilesPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcPlaylistcontents) to $obj2 (CcFiles) - $obj2->addCcPlaylistcontents($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcPlaylistcontents objects pre-filled with their CcBlock objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlaylistcontents objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcBlock(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlaylistcontentsPeer::addSelectColumns($criteria); - $startcol = (CcPlaylistcontentsPeer::NUM_COLUMNS - CcPlaylistcontentsPeer::NUM_LAZY_LOAD_COLUMNS); - CcBlockPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlaylistcontentsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcPlaylistcontentsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlaylistcontentsPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcBlockPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcBlockPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcBlockPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcPlaylistcontents) to $obj2 (CcBlock) - $obj2->addCcPlaylistcontents($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcPlaylistcontents objects pre-filled with their CcPlaylist objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlaylistcontents objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcPlaylist(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlaylistcontentsPeer::addSelectColumns($criteria); - $startcol = (CcPlaylistcontentsPeer::NUM_COLUMNS - CcPlaylistcontentsPeer::NUM_LAZY_LOAD_COLUMNS); - CcPlaylistPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlaylistcontentsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcPlaylistcontentsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlaylistcontentsPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcPlaylistPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcPlaylistPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcPlaylistPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcPlaylistcontents) to $obj2 (CcPlaylist) - $obj2->addCcPlaylistcontents($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlaylistcontentsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcPlaylistcontents objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlaylistcontents objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlaylistcontentsPeer::addSelectColumns($criteria); - $startcol2 = (CcPlaylistcontentsPeer::NUM_COLUMNS - CcPlaylistcontentsPeer::NUM_LAZY_LOAD_COLUMNS); - - CcFilesPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcBlockPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcBlockPeer::NUM_COLUMNS - CcBlockPeer::NUM_LAZY_LOAD_COLUMNS); - - CcPlaylistPeer::addSelectColumns($criteria); - $startcol5 = $startcol4 + (CcPlaylistPeer::NUM_COLUMNS - CcPlaylistPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlaylistcontentsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcPlaylistcontentsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlaylistcontentsPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcFiles rows - - $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcFilesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcFilesPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcPlaylistcontents) to the collection in $obj2 (CcFiles) - $obj2->addCcPlaylistcontents($obj1); - } // if joined row not null - - // Add objects for joined CcBlock rows - - $key3 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcBlockPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcBlockPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcBlockPeer::addInstanceToPool($obj3, $key3); - } // if obj3 loaded - - // Add the $obj1 (CcPlaylistcontents) to the collection in $obj3 (CcBlock) - $obj3->addCcPlaylistcontents($obj1); - } // if joined row not null - - // Add objects for joined CcPlaylist rows - - $key4 = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, $startcol4); - if ($key4 !== null) { - $obj4 = CcPlaylistPeer::getInstanceFromPool($key4); - if (!$obj4) { - - $cls = CcPlaylistPeer::getOMClass(false); - - $obj4 = new $cls(); - $obj4->hydrate($row, $startcol4); - CcPlaylistPeer::addInstanceToPool($obj4, $key4); - } // if obj4 loaded - - // Add the $obj1 (CcPlaylistcontents) to the collection in $obj4 (CcPlaylist) - $obj4->addCcPlaylistcontents($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcFiles table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlaylistcontentsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcBlock table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcBlock(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlaylistcontentsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcPlaylist table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcPlaylist(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlaylistcontentsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcPlaylistcontents objects pre-filled with all related objects except CcFiles. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlaylistcontents objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlaylistcontentsPeer::addSelectColumns($criteria); - $startcol2 = (CcPlaylistcontentsPeer::NUM_COLUMNS - CcPlaylistcontentsPeer::NUM_LAZY_LOAD_COLUMNS); - - CcBlockPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcBlockPeer::NUM_COLUMNS - CcBlockPeer::NUM_LAZY_LOAD_COLUMNS); - - CcPlaylistPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcPlaylistPeer::NUM_COLUMNS - CcPlaylistPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlaylistcontentsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcPlaylistcontentsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlaylistcontentsPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcBlock rows - - $key2 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcBlockPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcBlockPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcBlockPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcPlaylistcontents) to the collection in $obj2 (CcBlock) - $obj2->addCcPlaylistcontents($obj1); - - } // if joined row is not null - - // Add objects for joined CcPlaylist rows - - $key3 = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcPlaylistPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcPlaylistPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcPlaylistPeer::addInstanceToPool($obj3, $key3); - } // if $obj3 already loaded - - // Add the $obj1 (CcPlaylistcontents) to the collection in $obj3 (CcPlaylist) - $obj3->addCcPlaylistcontents($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcPlaylistcontents objects pre-filled with all related objects except CcBlock. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlaylistcontents objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcBlock(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlaylistcontentsPeer::addSelectColumns($criteria); - $startcol2 = (CcPlaylistcontentsPeer::NUM_COLUMNS - CcPlaylistcontentsPeer::NUM_LAZY_LOAD_COLUMNS); - - CcFilesPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcPlaylistPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcPlaylistPeer::NUM_COLUMNS - CcPlaylistPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); +abstract class BaseCcPlaylistcontentsPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_playlistcontents'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcPlaylistcontents'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcPlaylistcontentsTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 13; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 13; + + /** the column name for the id field */ + const ID = 'cc_playlistcontents.id'; + + /** the column name for the playlist_id field */ + const PLAYLIST_ID = 'cc_playlistcontents.playlist_id'; + + /** the column name for the file_id field */ + const FILE_ID = 'cc_playlistcontents.file_id'; + + /** the column name for the block_id field */ + const BLOCK_ID = 'cc_playlistcontents.block_id'; + + /** the column name for the stream_id field */ + const STREAM_ID = 'cc_playlistcontents.stream_id'; + + /** the column name for the type field */ + const TYPE = 'cc_playlistcontents.type'; + + /** the column name for the position field */ + const POSITION = 'cc_playlistcontents.position'; + + /** the column name for the trackoffset field */ + const TRACKOFFSET = 'cc_playlistcontents.trackoffset'; + + /** the column name for the cliplength field */ + const CLIPLENGTH = 'cc_playlistcontents.cliplength'; + + /** the column name for the cuein field */ + const CUEIN = 'cc_playlistcontents.cuein'; + + /** the column name for the cueout field */ + const CUEOUT = 'cc_playlistcontents.cueout'; + + /** the column name for the fadein field */ + const FADEIN = 'cc_playlistcontents.fadein'; + + /** the column name for the fadeout field */ + const FADEOUT = 'cc_playlistcontents.fadeout'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcPlaylistcontents objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcPlaylistcontents[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcPlaylistcontentsPeer::$fieldNames[CcPlaylistcontentsPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbPlaylistId', 'DbFileId', 'DbBlockId', 'DbStreamId', 'DbType', 'DbPosition', 'DbTrackOffset', 'DbCliplength', 'DbCuein', 'DbCueout', 'DbFadein', 'DbFadeout', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbPlaylistId', 'dbFileId', 'dbBlockId', 'dbStreamId', 'dbType', 'dbPosition', 'dbTrackOffset', 'dbCliplength', 'dbCuein', 'dbCueout', 'dbFadein', 'dbFadeout', ), + BasePeer::TYPE_COLNAME => array (CcPlaylistcontentsPeer::ID, CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistcontentsPeer::FILE_ID, CcPlaylistcontentsPeer::BLOCK_ID, CcPlaylistcontentsPeer::STREAM_ID, CcPlaylistcontentsPeer::TYPE, CcPlaylistcontentsPeer::POSITION, CcPlaylistcontentsPeer::TRACKOFFSET, CcPlaylistcontentsPeer::CLIPLENGTH, CcPlaylistcontentsPeer::CUEIN, CcPlaylistcontentsPeer::CUEOUT, CcPlaylistcontentsPeer::FADEIN, CcPlaylistcontentsPeer::FADEOUT, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'PLAYLIST_ID', 'FILE_ID', 'BLOCK_ID', 'STREAM_ID', 'TYPE', 'POSITION', 'TRACKOFFSET', 'CLIPLENGTH', 'CUEIN', 'CUEOUT', 'FADEIN', 'FADEOUT', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'playlist_id', 'file_id', 'block_id', 'stream_id', 'type', 'position', 'trackoffset', 'cliplength', 'cuein', 'cueout', 'fadein', 'fadeout', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcPlaylistcontentsPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbPlaylistId' => 1, 'DbFileId' => 2, 'DbBlockId' => 3, 'DbStreamId' => 4, 'DbType' => 5, 'DbPosition' => 6, 'DbTrackOffset' => 7, 'DbCliplength' => 8, 'DbCuein' => 9, 'DbCueout' => 10, 'DbFadein' => 11, 'DbFadeout' => 12, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbPlaylistId' => 1, 'dbFileId' => 2, 'dbBlockId' => 3, 'dbStreamId' => 4, 'dbType' => 5, 'dbPosition' => 6, 'dbTrackOffset' => 7, 'dbCliplength' => 8, 'dbCuein' => 9, 'dbCueout' => 10, 'dbFadein' => 11, 'dbFadeout' => 12, ), + BasePeer::TYPE_COLNAME => array (CcPlaylistcontentsPeer::ID => 0, CcPlaylistcontentsPeer::PLAYLIST_ID => 1, CcPlaylistcontentsPeer::FILE_ID => 2, CcPlaylistcontentsPeer::BLOCK_ID => 3, CcPlaylistcontentsPeer::STREAM_ID => 4, CcPlaylistcontentsPeer::TYPE => 5, CcPlaylistcontentsPeer::POSITION => 6, CcPlaylistcontentsPeer::TRACKOFFSET => 7, CcPlaylistcontentsPeer::CLIPLENGTH => 8, CcPlaylistcontentsPeer::CUEIN => 9, CcPlaylistcontentsPeer::CUEOUT => 10, CcPlaylistcontentsPeer::FADEIN => 11, CcPlaylistcontentsPeer::FADEOUT => 12, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'PLAYLIST_ID' => 1, 'FILE_ID' => 2, 'BLOCK_ID' => 3, 'STREAM_ID' => 4, 'TYPE' => 5, 'POSITION' => 6, 'TRACKOFFSET' => 7, 'CLIPLENGTH' => 8, 'CUEIN' => 9, 'CUEOUT' => 10, 'FADEIN' => 11, 'FADEOUT' => 12, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'playlist_id' => 1, 'file_id' => 2, 'block_id' => 3, 'stream_id' => 4, 'type' => 5, 'position' => 6, 'trackoffset' => 7, 'cliplength' => 8, 'cuein' => 9, 'cueout' => 10, 'fadein' => 11, 'fadeout' => 12, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcPlaylistcontentsPeer::getFieldNames($toType); + $key = isset(CcPlaylistcontentsPeer::$fieldKeys[$fromType][$name]) ? CcPlaylistcontentsPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcPlaylistcontentsPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcPlaylistcontentsPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcPlaylistcontentsPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcPlaylistcontentsPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcPlaylistcontentsPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcPlaylistcontentsPeer::ID); + $criteria->addSelectColumn(CcPlaylistcontentsPeer::PLAYLIST_ID); + $criteria->addSelectColumn(CcPlaylistcontentsPeer::FILE_ID); + $criteria->addSelectColumn(CcPlaylistcontentsPeer::BLOCK_ID); + $criteria->addSelectColumn(CcPlaylistcontentsPeer::STREAM_ID); + $criteria->addSelectColumn(CcPlaylistcontentsPeer::TYPE); + $criteria->addSelectColumn(CcPlaylistcontentsPeer::POSITION); + $criteria->addSelectColumn(CcPlaylistcontentsPeer::TRACKOFFSET); + $criteria->addSelectColumn(CcPlaylistcontentsPeer::CLIPLENGTH); + $criteria->addSelectColumn(CcPlaylistcontentsPeer::CUEIN); + $criteria->addSelectColumn(CcPlaylistcontentsPeer::CUEOUT); + $criteria->addSelectColumn(CcPlaylistcontentsPeer::FADEIN); + $criteria->addSelectColumn(CcPlaylistcontentsPeer::FADEOUT); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.playlist_id'); + $criteria->addSelectColumn($alias . '.file_id'); + $criteria->addSelectColumn($alias . '.block_id'); + $criteria->addSelectColumn($alias . '.stream_id'); + $criteria->addSelectColumn($alias . '.type'); + $criteria->addSelectColumn($alias . '.position'); + $criteria->addSelectColumn($alias . '.trackoffset'); + $criteria->addSelectColumn($alias . '.cliplength'); + $criteria->addSelectColumn($alias . '.cuein'); + $criteria->addSelectColumn($alias . '.cueout'); + $criteria->addSelectColumn($alias . '.fadein'); + $criteria->addSelectColumn($alias . '.fadeout'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlaylistcontentsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcPlaylistcontents + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcPlaylistcontentsPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcPlaylistcontentsPeer::populateObjects(CcPlaylistcontentsPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcPlaylistcontentsPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcPlaylistcontents $obj A CcPlaylistcontents object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcPlaylistcontentsPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcPlaylistcontents object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcPlaylistcontents) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPlaylistcontents object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcPlaylistcontentsPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcPlaylistcontents Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcPlaylistcontentsPeer::$instances[$key])) { + return CcPlaylistcontentsPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcPlaylistcontentsPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcPlaylistcontentsPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_playlistcontents + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcPlaylistcontentsPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcPlaylistcontentsPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcPlaylistcontentsPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcPlaylistcontents object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcPlaylistcontentsPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcPlaylistcontentsPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcPlaylistcontentsPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcPlaylistcontentsPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcFiles table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlaylistcontentsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcBlock table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcBlock(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlaylistcontentsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcPlaylist table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcPlaylist(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlaylistcontentsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcPlaylistcontents objects pre-filled with their CcFiles objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlaylistcontents objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + } + + CcPlaylistcontentsPeer::addSelectColumns($criteria); + $startcol = CcPlaylistcontentsPeer::NUM_HYDRATE_COLUMNS; + CcFilesPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlaylistcontentsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcPlaylistcontentsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlaylistcontentsPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcPlaylistcontents) to $obj2 (CcFiles) + $obj2->addCcPlaylistcontents($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcPlaylistcontents objects pre-filled with their CcBlock objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlaylistcontents objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcBlock(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + } + + CcPlaylistcontentsPeer::addSelectColumns($criteria); + $startcol = CcPlaylistcontentsPeer::NUM_HYDRATE_COLUMNS; + CcBlockPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlaylistcontentsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcPlaylistcontentsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlaylistcontentsPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcBlockPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcBlockPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcBlockPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcPlaylistcontents) to $obj2 (CcBlock) + $obj2->addCcPlaylistcontents($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcPlaylistcontents objects pre-filled with their CcPlaylist objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlaylistcontents objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcPlaylist(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + } + + CcPlaylistcontentsPeer::addSelectColumns($criteria); + $startcol = CcPlaylistcontentsPeer::NUM_HYDRATE_COLUMNS; + CcPlaylistPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlaylistcontentsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcPlaylistcontentsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlaylistcontentsPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcPlaylistPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcPlaylistPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcPlaylistPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcPlaylistcontents) to $obj2 (CcPlaylist) + $obj2->addCcPlaylistcontents($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlaylistcontentsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcPlaylistcontents objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlaylistcontents objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + } + + CcPlaylistcontentsPeer::addSelectColumns($criteria); + $startcol2 = CcPlaylistcontentsPeer::NUM_HYDRATE_COLUMNS; + + CcFilesPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcFilesPeer::NUM_HYDRATE_COLUMNS; + + CcBlockPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcBlockPeer::NUM_HYDRATE_COLUMNS; + + CcPlaylistPeer::addSelectColumns($criteria); + $startcol5 = $startcol4 + CcPlaylistPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlaylistcontentsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcPlaylistcontentsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlaylistcontentsPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcFiles rows + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcPlaylistcontents) to the collection in $obj2 (CcFiles) + $obj2->addCcPlaylistcontents($obj1); + } // if joined row not null + + // Add objects for joined CcBlock rows + + $key3 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcBlockPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcBlockPeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcBlockPeer::addInstanceToPool($obj3, $key3); + } // if obj3 loaded + + // Add the $obj1 (CcPlaylistcontents) to the collection in $obj3 (CcBlock) + $obj3->addCcPlaylistcontents($obj1); + } // if joined row not null + + // Add objects for joined CcPlaylist rows + + $key4 = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, $startcol4); + if ($key4 !== null) { + $obj4 = CcPlaylistPeer::getInstanceFromPool($key4); + if (!$obj4) { + + $cls = CcPlaylistPeer::getOMClass(); + + $obj4 = new $cls(); + $obj4->hydrate($row, $startcol4); + CcPlaylistPeer::addInstanceToPool($obj4, $key4); + } // if obj4 loaded + + // Add the $obj1 (CcPlaylistcontents) to the collection in $obj4 (CcPlaylist) + $obj4->addCcPlaylistcontents($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcFiles table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlaylistcontentsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcBlock table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcBlock(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlaylistcontentsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcPlaylist table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcPlaylist(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlaylistcontentsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcPlaylistcontents objects pre-filled with all related objects except CcFiles. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlaylistcontents objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + } + + CcPlaylistcontentsPeer::addSelectColumns($criteria); + $startcol2 = CcPlaylistcontentsPeer::NUM_HYDRATE_COLUMNS; + + CcBlockPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcBlockPeer::NUM_HYDRATE_COLUMNS; + + CcPlaylistPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcPlaylistPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlaylistcontentsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcPlaylistcontentsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlaylistcontentsPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcBlock rows + + $key2 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcBlockPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcBlockPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcBlockPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcPlaylistcontents) to the collection in $obj2 (CcBlock) + $obj2->addCcPlaylistcontents($obj1); + + } // if joined row is not null + + // Add objects for joined CcPlaylist rows + + $key3 = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcPlaylistPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcPlaylistPeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcPlaylistPeer::addInstanceToPool($obj3, $key3); + } // if $obj3 already loaded + + // Add the $obj1 (CcPlaylistcontents) to the collection in $obj3 (CcPlaylist) + $obj3->addCcPlaylistcontents($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcPlaylistcontents objects pre-filled with all related objects except CcBlock. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlaylistcontents objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcBlock(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + } + + CcPlaylistcontentsPeer::addSelectColumns($criteria); + $startcol2 = CcPlaylistcontentsPeer::NUM_HYDRATE_COLUMNS; + + CcFilesPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcFilesPeer::NUM_HYDRATE_COLUMNS; + + CcPlaylistPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcPlaylistPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $criteria->addJoin(CcPlaylistcontentsPeer::PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlaylistcontentsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcPlaylistcontentsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlaylistcontentsPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcFiles rows + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcPlaylistcontents) to the collection in $obj2 (CcFiles) + $obj2->addCcPlaylistcontents($obj1); + + } // if joined row is not null + + // Add objects for joined CcPlaylist rows + + $key3 = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcPlaylistPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcPlaylistPeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcPlaylistPeer::addInstanceToPool($obj3, $key3); + } // if $obj3 already loaded + + // Add the $obj1 (CcPlaylistcontents) to the collection in $obj3 (CcPlaylist) + $obj3->addCcPlaylistcontents($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcPlaylistcontents objects pre-filled with all related objects except CcPlaylist. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlaylistcontents objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcPlaylist(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + } + + CcPlaylistcontentsPeer::addSelectColumns($criteria); + $startcol2 = CcPlaylistcontentsPeer::NUM_HYDRATE_COLUMNS; + + CcFilesPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcFilesPeer::NUM_HYDRATE_COLUMNS; + CcBlockPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcBlockPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlaylistcontentsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcPlaylistcontentsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlaylistcontentsPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcFiles rows - - $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcFilesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcFilesPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcPlaylistcontents) to the collection in $obj2 (CcFiles) - $obj2->addCcPlaylistcontents($obj1); - - } // if joined row is not null - - // Add objects for joined CcPlaylist rows - - $key3 = CcPlaylistPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcPlaylistPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcPlaylistPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcPlaylistPeer::addInstanceToPool($obj3, $key3); - } // if $obj3 already loaded - - // Add the $obj1 (CcPlaylistcontents) to the collection in $obj3 (CcPlaylist) - $obj3->addCcPlaylistcontents($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcPlaylistcontents objects pre-filled with all related objects except CcPlaylist. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlaylistcontents objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcPlaylist(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlaylistcontentsPeer::addSelectColumns($criteria); - $startcol2 = (CcPlaylistcontentsPeer::NUM_COLUMNS - CcPlaylistcontentsPeer::NUM_LAZY_LOAD_COLUMNS); - - CcFilesPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcBlockPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcBlockPeer::NUM_COLUMNS - CcBlockPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcPlaylistcontentsPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlaylistcontentsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcPlaylistcontentsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlaylistcontentsPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcFiles rows - - $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcFilesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcFilesPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcPlaylistcontents) to the collection in $obj2 (CcFiles) - $obj2->addCcPlaylistcontents($obj1); - - } // if joined row is not null - - // Add objects for joined CcBlock rows - - $key3 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcBlockPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcBlockPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcBlockPeer::addInstanceToPool($obj3, $key3); - } // if $obj3 already loaded - - // Add the $obj1 (CcPlaylistcontents) to the collection in $obj3 (CcBlock) - $obj3->addCcPlaylistcontents($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcPlaylistcontentsPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcPlaylistcontentsPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcPlaylistcontentsTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcPlaylistcontentsPeer::CLASS_DEFAULT : CcPlaylistcontentsPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcPlaylistcontents or Criteria object. - * - * @param mixed $values Criteria or CcPlaylistcontents object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcPlaylistcontents object - } - - if ($criteria->containsKey(CcPlaylistcontentsPeer::ID) && $criteria->keyContainsValue(CcPlaylistcontentsPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlaylistcontentsPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcPlaylistcontents or Criteria object. - * - * @param mixed $values Criteria or CcPlaylistcontents object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcPlaylistcontentsPeer::ID); - $value = $criteria->remove(CcPlaylistcontentsPeer::ID); - if ($value) { - $selectCriteria->add(CcPlaylistcontentsPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); - } - - } else { // $values is CcPlaylistcontents object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_playlistcontents table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcPlaylistcontentsPeer::TABLE_NAME, $con, CcPlaylistcontentsPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcPlaylistcontentsPeer::clearInstancePool(); - CcPlaylistcontentsPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcPlaylistcontents or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcPlaylistcontents object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcPlaylistcontentsPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcPlaylistcontents) { // it's a model object - // invalidate the cache for this single object - CcPlaylistcontentsPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcPlaylistcontentsPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcPlaylistcontentsPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcPlaylistcontentsPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcPlaylistcontents object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcPlaylistcontents $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcPlaylistcontents $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcPlaylistcontentsPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcPlaylistcontentsPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcPlaylistcontentsPeer::DATABASE_NAME, CcPlaylistcontentsPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcPlaylistcontents - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcPlaylistcontentsPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcPlaylistcontentsPeer::DATABASE_NAME); - $criteria->add(CcPlaylistcontentsPeer::ID, $pk); - - $v = CcPlaylistcontentsPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcPlaylistcontentsPeer::DATABASE_NAME); - $criteria->add(CcPlaylistcontentsPeer::ID, $pks, Criteria::IN); - $objs = CcPlaylistcontentsPeer::doSelect($criteria, $con); - } - return $objs; - } + $criteria->addJoin(CcPlaylistcontentsPeer::BLOCK_ID, CcBlockPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlaylistcontentsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlaylistcontentsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcPlaylistcontentsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlaylistcontentsPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcFiles rows + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcPlaylistcontents) to the collection in $obj2 (CcFiles) + $obj2->addCcPlaylistcontents($obj1); + + } // if joined row is not null + + // Add objects for joined CcBlock rows + + $key3 = CcBlockPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcBlockPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcBlockPeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcBlockPeer::addInstanceToPool($obj3, $key3); + } // if $obj3 already loaded + + // Add the $obj1 (CcPlaylistcontents) to the collection in $obj3 (CcBlock) + $obj3->addCcPlaylistcontents($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcPlaylistcontentsPeer::DATABASE_NAME)->getTable(CcPlaylistcontentsPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcPlaylistcontentsPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcPlaylistcontentsPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcPlaylistcontentsTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcPlaylistcontentsPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcPlaylistcontents or Criteria object. + * + * @param mixed $values Criteria or CcPlaylistcontents object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcPlaylistcontents object + } + + if ($criteria->containsKey(CcPlaylistcontentsPeer::ID) && $criteria->keyContainsValue(CcPlaylistcontentsPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlaylistcontentsPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcPlaylistcontents or Criteria object. + * + * @param mixed $values Criteria or CcPlaylistcontents object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcPlaylistcontentsPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcPlaylistcontentsPeer::ID); + $value = $criteria->remove(CcPlaylistcontentsPeer::ID); + if ($value) { + $selectCriteria->add(CcPlaylistcontentsPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcPlaylistcontentsPeer::TABLE_NAME); + } + + } else { // $values is CcPlaylistcontents object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_playlistcontents table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcPlaylistcontentsPeer::TABLE_NAME, $con, CcPlaylistcontentsPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcPlaylistcontentsPeer::clearInstancePool(); + CcPlaylistcontentsPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcPlaylistcontents or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcPlaylistcontents object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcPlaylistcontentsPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcPlaylistcontents) { // it's a model object + // invalidate the cache for this single object + CcPlaylistcontentsPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcPlaylistcontentsPeer::DATABASE_NAME); + $criteria->add(CcPlaylistcontentsPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcPlaylistcontentsPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcPlaylistcontentsPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcPlaylistcontentsPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcPlaylistcontents object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcPlaylistcontents $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcPlaylistcontentsPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcPlaylistcontentsPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcPlaylistcontentsPeer::DATABASE_NAME, CcPlaylistcontentsPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcPlaylistcontents + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcPlaylistcontentsPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcPlaylistcontentsPeer::DATABASE_NAME); + $criteria->add(CcPlaylistcontentsPeer::ID, $pk); + + $v = CcPlaylistcontentsPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcPlaylistcontents[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcPlaylistcontentsPeer::DATABASE_NAME); + $criteria->add(CcPlaylistcontentsPeer::ID, $pks, Criteria::IN); + $objs = CcPlaylistcontentsPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcPlaylistcontentsPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlaylistcontentsQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcPlaylistcontentsQuery.php index ef3d3877a2..ea0aaaec61 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlaylistcontentsQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlaylistcontentsQuery.php @@ -4,845 +4,1120 @@ /** * Base class that represents a query for the 'cc_playlistcontents' table. * - * * - * @method CcPlaylistcontentsQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcPlaylistcontentsQuery orderByDbPlaylistId($order = Criteria::ASC) Order by the playlist_id column - * @method CcPlaylistcontentsQuery orderByDbFileId($order = Criteria::ASC) Order by the file_id column - * @method CcPlaylistcontentsQuery orderByDbBlockId($order = Criteria::ASC) Order by the block_id column - * @method CcPlaylistcontentsQuery orderByDbStreamId($order = Criteria::ASC) Order by the stream_id column - * @method CcPlaylistcontentsQuery orderByDbType($order = Criteria::ASC) Order by the type column - * @method CcPlaylistcontentsQuery orderByDbPosition($order = Criteria::ASC) Order by the position column - * @method CcPlaylistcontentsQuery orderByDbTrackOffset($order = Criteria::ASC) Order by the trackoffset column - * @method CcPlaylistcontentsQuery orderByDbCliplength($order = Criteria::ASC) Order by the cliplength column - * @method CcPlaylistcontentsQuery orderByDbCuein($order = Criteria::ASC) Order by the cuein column - * @method CcPlaylistcontentsQuery orderByDbCueout($order = Criteria::ASC) Order by the cueout column - * @method CcPlaylistcontentsQuery orderByDbFadein($order = Criteria::ASC) Order by the fadein column - * @method CcPlaylistcontentsQuery orderByDbFadeout($order = Criteria::ASC) Order by the fadeout column * - * @method CcPlaylistcontentsQuery groupByDbId() Group by the id column - * @method CcPlaylistcontentsQuery groupByDbPlaylistId() Group by the playlist_id column - * @method CcPlaylistcontentsQuery groupByDbFileId() Group by the file_id column - * @method CcPlaylistcontentsQuery groupByDbBlockId() Group by the block_id column - * @method CcPlaylistcontentsQuery groupByDbStreamId() Group by the stream_id column - * @method CcPlaylistcontentsQuery groupByDbType() Group by the type column - * @method CcPlaylistcontentsQuery groupByDbPosition() Group by the position column - * @method CcPlaylistcontentsQuery groupByDbTrackOffset() Group by the trackoffset column - * @method CcPlaylistcontentsQuery groupByDbCliplength() Group by the cliplength column - * @method CcPlaylistcontentsQuery groupByDbCuein() Group by the cuein column - * @method CcPlaylistcontentsQuery groupByDbCueout() Group by the cueout column - * @method CcPlaylistcontentsQuery groupByDbFadein() Group by the fadein column - * @method CcPlaylistcontentsQuery groupByDbFadeout() Group by the fadeout column + * @method CcPlaylistcontentsQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcPlaylistcontentsQuery orderByDbPlaylistId($order = Criteria::ASC) Order by the playlist_id column + * @method CcPlaylistcontentsQuery orderByDbFileId($order = Criteria::ASC) Order by the file_id column + * @method CcPlaylistcontentsQuery orderByDbBlockId($order = Criteria::ASC) Order by the block_id column + * @method CcPlaylistcontentsQuery orderByDbStreamId($order = Criteria::ASC) Order by the stream_id column + * @method CcPlaylistcontentsQuery orderByDbType($order = Criteria::ASC) Order by the type column + * @method CcPlaylistcontentsQuery orderByDbPosition($order = Criteria::ASC) Order by the position column + * @method CcPlaylistcontentsQuery orderByDbTrackOffset($order = Criteria::ASC) Order by the trackoffset column + * @method CcPlaylistcontentsQuery orderByDbCliplength($order = Criteria::ASC) Order by the cliplength column + * @method CcPlaylistcontentsQuery orderByDbCuein($order = Criteria::ASC) Order by the cuein column + * @method CcPlaylistcontentsQuery orderByDbCueout($order = Criteria::ASC) Order by the cueout column + * @method CcPlaylistcontentsQuery orderByDbFadein($order = Criteria::ASC) Order by the fadein column + * @method CcPlaylistcontentsQuery orderByDbFadeout($order = Criteria::ASC) Order by the fadeout column * - * @method CcPlaylistcontentsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcPlaylistcontentsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcPlaylistcontentsQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcPlaylistcontentsQuery groupByDbId() Group by the id column + * @method CcPlaylistcontentsQuery groupByDbPlaylistId() Group by the playlist_id column + * @method CcPlaylistcontentsQuery groupByDbFileId() Group by the file_id column + * @method CcPlaylistcontentsQuery groupByDbBlockId() Group by the block_id column + * @method CcPlaylistcontentsQuery groupByDbStreamId() Group by the stream_id column + * @method CcPlaylistcontentsQuery groupByDbType() Group by the type column + * @method CcPlaylistcontentsQuery groupByDbPosition() Group by the position column + * @method CcPlaylistcontentsQuery groupByDbTrackOffset() Group by the trackoffset column + * @method CcPlaylistcontentsQuery groupByDbCliplength() Group by the cliplength column + * @method CcPlaylistcontentsQuery groupByDbCuein() Group by the cuein column + * @method CcPlaylistcontentsQuery groupByDbCueout() Group by the cueout column + * @method CcPlaylistcontentsQuery groupByDbFadein() Group by the fadein column + * @method CcPlaylistcontentsQuery groupByDbFadeout() Group by the fadeout column * - * @method CcPlaylistcontentsQuery leftJoinCcFiles($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFiles relation - * @method CcPlaylistcontentsQuery rightJoinCcFiles($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFiles relation - * @method CcPlaylistcontentsQuery innerJoinCcFiles($relationAlias = '') Adds a INNER JOIN clause to the query using the CcFiles relation + * @method CcPlaylistcontentsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcPlaylistcontentsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcPlaylistcontentsQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcPlaylistcontentsQuery leftJoinCcBlock($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcBlock relation - * @method CcPlaylistcontentsQuery rightJoinCcBlock($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcBlock relation - * @method CcPlaylistcontentsQuery innerJoinCcBlock($relationAlias = '') Adds a INNER JOIN clause to the query using the CcBlock relation + * @method CcPlaylistcontentsQuery leftJoinCcFiles($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcFiles relation + * @method CcPlaylistcontentsQuery rightJoinCcFiles($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcFiles relation + * @method CcPlaylistcontentsQuery innerJoinCcFiles($relationAlias = null) Adds a INNER JOIN clause to the query using the CcFiles relation * - * @method CcPlaylistcontentsQuery leftJoinCcPlaylist($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPlaylist relation - * @method CcPlaylistcontentsQuery rightJoinCcPlaylist($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPlaylist relation - * @method CcPlaylistcontentsQuery innerJoinCcPlaylist($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPlaylist relation + * @method CcPlaylistcontentsQuery leftJoinCcBlock($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcBlock relation + * @method CcPlaylistcontentsQuery rightJoinCcBlock($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcBlock relation + * @method CcPlaylistcontentsQuery innerJoinCcBlock($relationAlias = null) Adds a INNER JOIN clause to the query using the CcBlock relation * - * @method CcPlaylistcontents findOne(PropelPDO $con = null) Return the first CcPlaylistcontents matching the query - * @method CcPlaylistcontents findOneOrCreate(PropelPDO $con = null) Return the first CcPlaylistcontents matching the query, or a new CcPlaylistcontents object populated from the query conditions when no match is found + * @method CcPlaylistcontentsQuery leftJoinCcPlaylist($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcPlaylist relation + * @method CcPlaylistcontentsQuery rightJoinCcPlaylist($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcPlaylist relation + * @method CcPlaylistcontentsQuery innerJoinCcPlaylist($relationAlias = null) Adds a INNER JOIN clause to the query using the CcPlaylist relation * - * @method CcPlaylistcontents findOneByDbId(int $id) Return the first CcPlaylistcontents filtered by the id column - * @method CcPlaylistcontents findOneByDbPlaylistId(int $playlist_id) Return the first CcPlaylistcontents filtered by the playlist_id column - * @method CcPlaylistcontents findOneByDbFileId(int $file_id) Return the first CcPlaylistcontents filtered by the file_id column - * @method CcPlaylistcontents findOneByDbBlockId(int $block_id) Return the first CcPlaylistcontents filtered by the block_id column - * @method CcPlaylistcontents findOneByDbStreamId(int $stream_id) Return the first CcPlaylistcontents filtered by the stream_id column - * @method CcPlaylistcontents findOneByDbType(int $type) Return the first CcPlaylistcontents filtered by the type column - * @method CcPlaylistcontents findOneByDbPosition(int $position) Return the first CcPlaylistcontents filtered by the position column - * @method CcPlaylistcontents findOneByDbTrackOffset(double $trackoffset) Return the first CcPlaylistcontents filtered by the trackoffset column - * @method CcPlaylistcontents findOneByDbCliplength(string $cliplength) Return the first CcPlaylistcontents filtered by the cliplength column - * @method CcPlaylistcontents findOneByDbCuein(string $cuein) Return the first CcPlaylistcontents filtered by the cuein column - * @method CcPlaylistcontents findOneByDbCueout(string $cueout) Return the first CcPlaylistcontents filtered by the cueout column - * @method CcPlaylistcontents findOneByDbFadein(string $fadein) Return the first CcPlaylistcontents filtered by the fadein column - * @method CcPlaylistcontents findOneByDbFadeout(string $fadeout) Return the first CcPlaylistcontents filtered by the fadeout column + * @method CcPlaylistcontents findOne(PropelPDO $con = null) Return the first CcPlaylistcontents matching the query + * @method CcPlaylistcontents findOneOrCreate(PropelPDO $con = null) Return the first CcPlaylistcontents matching the query, or a new CcPlaylistcontents object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcPlaylistcontents objects filtered by the id column - * @method array findByDbPlaylistId(int $playlist_id) Return CcPlaylistcontents objects filtered by the playlist_id column - * @method array findByDbFileId(int $file_id) Return CcPlaylistcontents objects filtered by the file_id column - * @method array findByDbBlockId(int $block_id) Return CcPlaylistcontents objects filtered by the block_id column - * @method array findByDbStreamId(int $stream_id) Return CcPlaylistcontents objects filtered by the stream_id column - * @method array findByDbType(int $type) Return CcPlaylistcontents objects filtered by the type column - * @method array findByDbPosition(int $position) Return CcPlaylistcontents objects filtered by the position column - * @method array findByDbTrackOffset(double $trackoffset) Return CcPlaylistcontents objects filtered by the trackoffset column - * @method array findByDbCliplength(string $cliplength) Return CcPlaylistcontents objects filtered by the cliplength column - * @method array findByDbCuein(string $cuein) Return CcPlaylistcontents objects filtered by the cuein column - * @method array findByDbCueout(string $cueout) Return CcPlaylistcontents objects filtered by the cueout column - * @method array findByDbFadein(string $fadein) Return CcPlaylistcontents objects filtered by the fadein column - * @method array findByDbFadeout(string $fadeout) Return CcPlaylistcontents objects filtered by the fadeout column + * @method CcPlaylistcontents findOneByDbPlaylistId(int $playlist_id) Return the first CcPlaylistcontents filtered by the playlist_id column + * @method CcPlaylistcontents findOneByDbFileId(int $file_id) Return the first CcPlaylistcontents filtered by the file_id column + * @method CcPlaylistcontents findOneByDbBlockId(int $block_id) Return the first CcPlaylistcontents filtered by the block_id column + * @method CcPlaylistcontents findOneByDbStreamId(int $stream_id) Return the first CcPlaylistcontents filtered by the stream_id column + * @method CcPlaylistcontents findOneByDbType(int $type) Return the first CcPlaylistcontents filtered by the type column + * @method CcPlaylistcontents findOneByDbPosition(int $position) Return the first CcPlaylistcontents filtered by the position column + * @method CcPlaylistcontents findOneByDbTrackOffset(double $trackoffset) Return the first CcPlaylistcontents filtered by the trackoffset column + * @method CcPlaylistcontents findOneByDbCliplength(string $cliplength) Return the first CcPlaylistcontents filtered by the cliplength column + * @method CcPlaylistcontents findOneByDbCuein(string $cuein) Return the first CcPlaylistcontents filtered by the cuein column + * @method CcPlaylistcontents findOneByDbCueout(string $cueout) Return the first CcPlaylistcontents filtered by the cueout column + * @method CcPlaylistcontents findOneByDbFadein(string $fadein) Return the first CcPlaylistcontents filtered by the fadein column + * @method CcPlaylistcontents findOneByDbFadeout(string $fadeout) Return the first CcPlaylistcontents filtered by the fadeout column + * + * @method array findByDbId(int $id) Return CcPlaylistcontents objects filtered by the id column + * @method array findByDbPlaylistId(int $playlist_id) Return CcPlaylistcontents objects filtered by the playlist_id column + * @method array findByDbFileId(int $file_id) Return CcPlaylistcontents objects filtered by the file_id column + * @method array findByDbBlockId(int $block_id) Return CcPlaylistcontents objects filtered by the block_id column + * @method array findByDbStreamId(int $stream_id) Return CcPlaylistcontents objects filtered by the stream_id column + * @method array findByDbType(int $type) Return CcPlaylistcontents objects filtered by the type column + * @method array findByDbPosition(int $position) Return CcPlaylistcontents objects filtered by the position column + * @method array findByDbTrackOffset(double $trackoffset) Return CcPlaylistcontents objects filtered by the trackoffset column + * @method array findByDbCliplength(string $cliplength) Return CcPlaylistcontents objects filtered by the cliplength column + * @method array findByDbCuein(string $cuein) Return CcPlaylistcontents objects filtered by the cuein column + * @method array findByDbCueout(string $cueout) Return CcPlaylistcontents objects filtered by the cueout column + * @method array findByDbFadein(string $fadein) Return CcPlaylistcontents objects filtered by the fadein column + * @method array findByDbFadeout(string $fadeout) Return CcPlaylistcontents objects filtered by the fadeout column * * @package propel.generator.airtime.om */ abstract class BaseCcPlaylistcontentsQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcPlaylistcontentsQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcPlaylistcontents'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcPlaylistcontentsQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcPlaylistcontentsQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcPlaylistcontentsQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcPlaylistcontentsQuery) { + return $criteria; + } + $query = new CcPlaylistcontentsQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcPlaylistcontents|CcPlaylistcontents[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcPlaylistcontentsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcPlaylistcontentsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlaylistcontents A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlaylistcontents A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "playlist_id", "file_id", "block_id", "stream_id", "type", "position", "trackoffset", "cliplength", "cuein", "cueout", "fadein", "fadeout" FROM "cc_playlistcontents" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcPlaylistcontents(); + $obj->hydrate($row); + CcPlaylistcontentsPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlaylistcontents|CcPlaylistcontents[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcPlaylistcontents[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcPlaylistcontentsPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcPlaylistcontentsPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlaylistcontentsPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the playlist_id column + * + * Example usage: + * + * $query->filterByDbPlaylistId(1234); // WHERE playlist_id = 1234 + * $query->filterByDbPlaylistId(array(12, 34)); // WHERE playlist_id IN (12, 34) + * $query->filterByDbPlaylistId(array('min' => 12)); // WHERE playlist_id >= 12 + * $query->filterByDbPlaylistId(array('max' => 12)); // WHERE playlist_id <= 12 + * + * + * @see filterByCcPlaylist() + * + * @param mixed $dbPlaylistId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByDbPlaylistId($dbPlaylistId = null, $comparison = null) + { + if (is_array($dbPlaylistId)) { + $useMinMax = false; + if (isset($dbPlaylistId['min'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::PLAYLIST_ID, $dbPlaylistId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbPlaylistId['max'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::PLAYLIST_ID, $dbPlaylistId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlaylistcontentsPeer::PLAYLIST_ID, $dbPlaylistId, $comparison); + } + + /** + * Filter the query on the file_id column + * + * Example usage: + * + * $query->filterByDbFileId(1234); // WHERE file_id = 1234 + * $query->filterByDbFileId(array(12, 34)); // WHERE file_id IN (12, 34) + * $query->filterByDbFileId(array('min' => 12)); // WHERE file_id >= 12 + * $query->filterByDbFileId(array('max' => 12)); // WHERE file_id <= 12 + * + * + * @see filterByCcFiles() + * + * @param mixed $dbFileId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByDbFileId($dbFileId = null, $comparison = null) + { + if (is_array($dbFileId)) { + $useMinMax = false; + if (isset($dbFileId['min'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::FILE_ID, $dbFileId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbFileId['max'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::FILE_ID, $dbFileId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlaylistcontentsPeer::FILE_ID, $dbFileId, $comparison); + } + + /** + * Filter the query on the block_id column + * + * Example usage: + * + * $query->filterByDbBlockId(1234); // WHERE block_id = 1234 + * $query->filterByDbBlockId(array(12, 34)); // WHERE block_id IN (12, 34) + * $query->filterByDbBlockId(array('min' => 12)); // WHERE block_id >= 12 + * $query->filterByDbBlockId(array('max' => 12)); // WHERE block_id <= 12 + * + * + * @see filterByCcBlock() + * + * @param mixed $dbBlockId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByDbBlockId($dbBlockId = null, $comparison = null) + { + if (is_array($dbBlockId)) { + $useMinMax = false; + if (isset($dbBlockId['min'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::BLOCK_ID, $dbBlockId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbBlockId['max'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::BLOCK_ID, $dbBlockId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlaylistcontentsPeer::BLOCK_ID, $dbBlockId, $comparison); + } + + /** + * Filter the query on the stream_id column + * + * Example usage: + * + * $query->filterByDbStreamId(1234); // WHERE stream_id = 1234 + * $query->filterByDbStreamId(array(12, 34)); // WHERE stream_id IN (12, 34) + * $query->filterByDbStreamId(array('min' => 12)); // WHERE stream_id >= 12 + * $query->filterByDbStreamId(array('max' => 12)); // WHERE stream_id <= 12 + * + * + * @param mixed $dbStreamId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByDbStreamId($dbStreamId = null, $comparison = null) + { + if (is_array($dbStreamId)) { + $useMinMax = false; + if (isset($dbStreamId['min'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::STREAM_ID, $dbStreamId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbStreamId['max'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::STREAM_ID, $dbStreamId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlaylistcontentsPeer::STREAM_ID, $dbStreamId, $comparison); + } + + /** + * Filter the query on the type column + * + * Example usage: + * + * $query->filterByDbType(1234); // WHERE type = 1234 + * $query->filterByDbType(array(12, 34)); // WHERE type IN (12, 34) + * $query->filterByDbType(array('min' => 12)); // WHERE type >= 12 + * $query->filterByDbType(array('max' => 12)); // WHERE type <= 12 + * + * + * @param mixed $dbType The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByDbType($dbType = null, $comparison = null) + { + if (is_array($dbType)) { + $useMinMax = false; + if (isset($dbType['min'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::TYPE, $dbType['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbType['max'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::TYPE, $dbType['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlaylistcontentsPeer::TYPE, $dbType, $comparison); + } + + /** + * Filter the query on the position column + * + * Example usage: + * + * $query->filterByDbPosition(1234); // WHERE position = 1234 + * $query->filterByDbPosition(array(12, 34)); // WHERE position IN (12, 34) + * $query->filterByDbPosition(array('min' => 12)); // WHERE position >= 12 + * $query->filterByDbPosition(array('max' => 12)); // WHERE position <= 12 + * + * + * @param mixed $dbPosition The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByDbPosition($dbPosition = null, $comparison = null) + { + if (is_array($dbPosition)) { + $useMinMax = false; + if (isset($dbPosition['min'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::POSITION, $dbPosition['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbPosition['max'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::POSITION, $dbPosition['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlaylistcontentsPeer::POSITION, $dbPosition, $comparison); + } + + /** + * Filter the query on the trackoffset column + * + * Example usage: + * + * $query->filterByDbTrackOffset(1234); // WHERE trackoffset = 1234 + * $query->filterByDbTrackOffset(array(12, 34)); // WHERE trackoffset IN (12, 34) + * $query->filterByDbTrackOffset(array('min' => 12)); // WHERE trackoffset >= 12 + * $query->filterByDbTrackOffset(array('max' => 12)); // WHERE trackoffset <= 12 + * + * + * @param mixed $dbTrackOffset The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByDbTrackOffset($dbTrackOffset = null, $comparison = null) + { + if (is_array($dbTrackOffset)) { + $useMinMax = false; + if (isset($dbTrackOffset['min'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::TRACKOFFSET, $dbTrackOffset['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbTrackOffset['max'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::TRACKOFFSET, $dbTrackOffset['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlaylistcontentsPeer::TRACKOFFSET, $dbTrackOffset, $comparison); + } + + /** + * Filter the query on the cliplength column + * + * Example usage: + * + * $query->filterByDbCliplength('fooValue'); // WHERE cliplength = 'fooValue' + * $query->filterByDbCliplength('%fooValue%'); // WHERE cliplength LIKE '%fooValue%' + * + * + * @param string $dbCliplength 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 CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByDbCliplength($dbCliplength = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbCliplength)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbCliplength)) { + $dbCliplength = str_replace('*', '%', $dbCliplength); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPlaylistcontentsPeer::CLIPLENGTH, $dbCliplength, $comparison); + } + + /** + * Filter the query on the cuein column + * + * Example usage: + * + * $query->filterByDbCuein('fooValue'); // WHERE cuein = 'fooValue' + * $query->filterByDbCuein('%fooValue%'); // WHERE cuein LIKE '%fooValue%' + * + * + * @param string $dbCuein 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 CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByDbCuein($dbCuein = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbCuein)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbCuein)) { + $dbCuein = str_replace('*', '%', $dbCuein); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPlaylistcontentsPeer::CUEIN, $dbCuein, $comparison); + } + + /** + * Filter the query on the cueout column + * + * Example usage: + * + * $query->filterByDbCueout('fooValue'); // WHERE cueout = 'fooValue' + * $query->filterByDbCueout('%fooValue%'); // WHERE cueout LIKE '%fooValue%' + * + * + * @param string $dbCueout 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 CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByDbCueout($dbCueout = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbCueout)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbCueout)) { + $dbCueout = str_replace('*', '%', $dbCueout); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPlaylistcontentsPeer::CUEOUT, $dbCueout, $comparison); + } + + /** + * Filter the query on the fadein column + * + * Example usage: + * + * $query->filterByDbFadein('2011-03-14'); // WHERE fadein = '2011-03-14' + * $query->filterByDbFadein('now'); // WHERE fadein = '2011-03-14' + * $query->filterByDbFadein(array('max' => 'yesterday')); // WHERE fadein < '2011-03-13' + * + * + * @param mixed $dbFadein The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByDbFadein($dbFadein = null, $comparison = null) + { + if (is_array($dbFadein)) { + $useMinMax = false; + if (isset($dbFadein['min'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::FADEIN, $dbFadein['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbFadein['max'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::FADEIN, $dbFadein['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlaylistcontentsPeer::FADEIN, $dbFadein, $comparison); + } + + /** + * Filter the query on the fadeout column + * + * Example usage: + * + * $query->filterByDbFadeout('2011-03-14'); // WHERE fadeout = '2011-03-14' + * $query->filterByDbFadeout('now'); // WHERE fadeout = '2011-03-14' + * $query->filterByDbFadeout(array('max' => 'yesterday')); // WHERE fadeout < '2011-03-13' + * + * + * @param mixed $dbFadeout The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function filterByDbFadeout($dbFadeout = null, $comparison = null) + { + if (is_array($dbFadeout)) { + $useMinMax = false; + if (isset($dbFadeout['min'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::FADEOUT, $dbFadeout['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbFadeout['max'])) { + $this->addUsingAlias(CcPlaylistcontentsPeer::FADEOUT, $dbFadeout['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlaylistcontentsPeer::FADEOUT, $dbFadeout, $comparison); + } + + /** + * Filter the query by a related CcFiles object + * + * @param CcFiles|PropelObjectCollection $ccFiles The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcFiles($ccFiles, $comparison = null) + { + if ($ccFiles instanceof CcFiles) { + return $this + ->addUsingAlias(CcPlaylistcontentsPeer::FILE_ID, $ccFiles->getDbId(), $comparison); + } elseif ($ccFiles instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcPlaylistcontentsPeer::FILE_ID, $ccFiles->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcFiles() only accepts arguments of type CcFiles or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcFiles relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function joinCcFiles($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcFiles'); + + // 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, 'CcFiles'); + } + + return $this; + } + + /** + * Use the CcFiles relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query + */ + public function useCcFilesQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcFiles($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcFiles', 'CcFilesQuery'); + } + + /** + * Filter the query by a related CcBlock object + * + * @param CcBlock|PropelObjectCollection $ccBlock The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcBlock($ccBlock, $comparison = null) + { + if ($ccBlock instanceof CcBlock) { + return $this + ->addUsingAlias(CcPlaylistcontentsPeer::BLOCK_ID, $ccBlock->getDbId(), $comparison); + } elseif ($ccBlock instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcPlaylistcontentsPeer::BLOCK_ID, $ccBlock->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcBlock() only accepts arguments of type CcBlock or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcBlock relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function joinCcBlock($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcBlock'); + + // 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, 'CcBlock'); + } + + return $this; + } + + /** + * Use the CcBlock relation CcBlock 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 CcBlockQuery A secondary query class using the current class as primary query + */ + public function useCcBlockQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcBlock($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcBlock', 'CcBlockQuery'); + } + + /** + * Filter the query by a related CcPlaylist object + * + * @param CcPlaylist|PropelObjectCollection $ccPlaylist The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcPlaylist($ccPlaylist, $comparison = null) + { + if ($ccPlaylist instanceof CcPlaylist) { + return $this + ->addUsingAlias(CcPlaylistcontentsPeer::PLAYLIST_ID, $ccPlaylist->getDbId(), $comparison); + } elseif ($ccPlaylist instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcPlaylistcontentsPeer::PLAYLIST_ID, $ccPlaylist->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcPlaylist() only accepts arguments of type CcPlaylist or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcPlaylist relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function joinCcPlaylist($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcPlaylist'); + + // 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, 'CcPlaylist'); + } + + return $this; + } + + /** + * Use the CcPlaylist relation CcPlaylist 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 CcPlaylistQuery A secondary query class using the current class as primary query + */ + public function useCcPlaylistQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcPlaylist($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcPlaylist', 'CcPlaylistQuery'); + } + + /** + * Exclude object from result + * + * @param CcPlaylistcontents $ccPlaylistcontents Object to remove from the list of results + * + * @return CcPlaylistcontentsQuery The current query, for fluid interface + */ + public function prune($ccPlaylistcontents = null) + { + if ($ccPlaylistcontents) { + $this->addUsingAlias(CcPlaylistcontentsPeer::ID, $ccPlaylistcontents->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } + + /** + * Code to execute before every DELETE statement + * + * @param PropelPDO $con The connection object used by the query + */ + protected function basePreDelete(PropelPDO $con) + { + // aggregate_column_relation behavior + $this->findRelatedCcPlaylists($con); + + return $this->preDelete($con); + } + + /** + * Code to execute after every DELETE statement + * + * @param int $affectedRows the number of deleted rows + * @param PropelPDO $con The connection object used by the query + */ + protected function basePostDelete($affectedRows, PropelPDO $con) + { + // aggregate_column_relation behavior + $this->updateRelatedCcPlaylists($con); + + return $this->postDelete($affectedRows, $con); + } + + /** + * Code to execute before every UPDATE statement + * + * @param array $values The associative array of columns and values for the update + * @param PropelPDO $con The connection object used by the query + * @param boolean $forceIndividualSaves If false (default), the resulting call is a BasePeer::doUpdate(), otherwise it is a series of save() calls on all the found objects + */ + protected function basePreUpdate(&$values, PropelPDO $con, $forceIndividualSaves = false) + { + // aggregate_column_relation behavior + $this->findRelatedCcPlaylists($con); + + return $this->preUpdate($values, $con, $forceIndividualSaves); + } + + /** + * Code to execute after every UPDATE statement + * + * @param int $affectedRows the number of updated rows + * @param PropelPDO $con The connection object used by the query + */ + protected function basePostUpdate($affectedRows, PropelPDO $con) + { + // aggregate_column_relation behavior + $this->updateRelatedCcPlaylists($con); + + return $this->postUpdate($affectedRows, $con); + } + + // aggregate_column_relation behavior + + /** + * Finds the related CcPlaylist objects and keep them for later + * + * @param PropelPDO $con A connection object + */ + protected function findRelatedCcPlaylists($con) + { + $criteria = clone $this; + if ($this->useAliasInSQL) { + $alias = $this->getModelAlias(); + $criteria->removeAlias($alias); + } else { + $alias = ''; + } + $this->ccPlaylists = CcPlaylistQuery::create() + ->joinCcPlaylistcontents($alias) + ->mergeWith($criteria) + ->find($con); + } + + protected function updateRelatedCcPlaylists($con) + { + foreach ($this->ccPlaylists as $ccPlaylist) { + $ccPlaylist->updateDbLength($con); + } + $this->ccPlaylists = array(); + } - /** - * Initializes internal state of BaseCcPlaylistcontentsQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcPlaylistcontents', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcPlaylistcontentsQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcPlaylistcontentsQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcPlaylistcontentsQuery) { - return $criteria; - } - $query = new CcPlaylistcontentsQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcPlaylistcontents|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcPlaylistcontentsPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcPlaylistcontentsPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcPlaylistcontentsPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcPlaylistcontentsPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the playlist_id column - * - * @param int|array $dbPlaylistId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByDbPlaylistId($dbPlaylistId = null, $comparison = null) - { - if (is_array($dbPlaylistId)) { - $useMinMax = false; - if (isset($dbPlaylistId['min'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::PLAYLIST_ID, $dbPlaylistId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbPlaylistId['max'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::PLAYLIST_ID, $dbPlaylistId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlaylistcontentsPeer::PLAYLIST_ID, $dbPlaylistId, $comparison); - } - - /** - * Filter the query on the file_id column - * - * @param int|array $dbFileId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByDbFileId($dbFileId = null, $comparison = null) - { - if (is_array($dbFileId)) { - $useMinMax = false; - if (isset($dbFileId['min'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::FILE_ID, $dbFileId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbFileId['max'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::FILE_ID, $dbFileId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlaylistcontentsPeer::FILE_ID, $dbFileId, $comparison); - } - - /** - * Filter the query on the block_id column - * - * @param int|array $dbBlockId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByDbBlockId($dbBlockId = null, $comparison = null) - { - if (is_array($dbBlockId)) { - $useMinMax = false; - if (isset($dbBlockId['min'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::BLOCK_ID, $dbBlockId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbBlockId['max'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::BLOCK_ID, $dbBlockId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlaylistcontentsPeer::BLOCK_ID, $dbBlockId, $comparison); - } - - /** - * Filter the query on the stream_id column - * - * @param int|array $dbStreamId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByDbStreamId($dbStreamId = null, $comparison = null) - { - if (is_array($dbStreamId)) { - $useMinMax = false; - if (isset($dbStreamId['min'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::STREAM_ID, $dbStreamId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbStreamId['max'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::STREAM_ID, $dbStreamId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlaylistcontentsPeer::STREAM_ID, $dbStreamId, $comparison); - } - - /** - * Filter the query on the type column - * - * @param int|array $dbType The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByDbType($dbType = null, $comparison = null) - { - if (is_array($dbType)) { - $useMinMax = false; - if (isset($dbType['min'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::TYPE, $dbType['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbType['max'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::TYPE, $dbType['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlaylistcontentsPeer::TYPE, $dbType, $comparison); - } - - /** - * Filter the query on the position column - * - * @param int|array $dbPosition The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByDbPosition($dbPosition = null, $comparison = null) - { - if (is_array($dbPosition)) { - $useMinMax = false; - if (isset($dbPosition['min'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::POSITION, $dbPosition['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbPosition['max'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::POSITION, $dbPosition['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlaylistcontentsPeer::POSITION, $dbPosition, $comparison); - } - - /** - * Filter the query on the trackoffset column - * - * @param double|array $dbTrackOffset The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByDbTrackOffset($dbTrackOffset = null, $comparison = null) - { - if (is_array($dbTrackOffset)) { - $useMinMax = false; - if (isset($dbTrackOffset['min'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::TRACKOFFSET, $dbTrackOffset['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbTrackOffset['max'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::TRACKOFFSET, $dbTrackOffset['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlaylistcontentsPeer::TRACKOFFSET, $dbTrackOffset, $comparison); - } - - /** - * Filter the query on the cliplength column - * - * @param string $dbCliplength 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 CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByDbCliplength($dbCliplength = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbCliplength)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbCliplength)) { - $dbCliplength = str_replace('*', '%', $dbCliplength); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPlaylistcontentsPeer::CLIPLENGTH, $dbCliplength, $comparison); - } - - /** - * Filter the query on the cuein column - * - * @param string $dbCuein 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 CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByDbCuein($dbCuein = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbCuein)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbCuein)) { - $dbCuein = str_replace('*', '%', $dbCuein); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPlaylistcontentsPeer::CUEIN, $dbCuein, $comparison); - } - - /** - * Filter the query on the cueout column - * - * @param string $dbCueout 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 CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByDbCueout($dbCueout = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbCueout)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbCueout)) { - $dbCueout = str_replace('*', '%', $dbCueout); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPlaylistcontentsPeer::CUEOUT, $dbCueout, $comparison); - } - - /** - * Filter the query on the fadein column - * - * @param string|array $dbFadein The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByDbFadein($dbFadein = null, $comparison = null) - { - if (is_array($dbFadein)) { - $useMinMax = false; - if (isset($dbFadein['min'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::FADEIN, $dbFadein['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbFadein['max'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::FADEIN, $dbFadein['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlaylistcontentsPeer::FADEIN, $dbFadein, $comparison); - } - - /** - * Filter the query on the fadeout column - * - * @param string|array $dbFadeout The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByDbFadeout($dbFadeout = null, $comparison = null) - { - if (is_array($dbFadeout)) { - $useMinMax = false; - if (isset($dbFadeout['min'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::FADEOUT, $dbFadeout['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbFadeout['max'])) { - $this->addUsingAlias(CcPlaylistcontentsPeer::FADEOUT, $dbFadeout['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlaylistcontentsPeer::FADEOUT, $dbFadeout, $comparison); - } - - /** - * Filter the query by a related CcFiles object - * - * @param CcFiles $ccFiles the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByCcFiles($ccFiles, $comparison = null) - { - return $this - ->addUsingAlias(CcPlaylistcontentsPeer::FILE_ID, $ccFiles->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcFiles relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function joinCcFiles($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcFiles'); - - // 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, 'CcFiles'); - } - - return $this; - } - - /** - * Use the CcFiles relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query - */ - public function useCcFilesQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcFiles($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcFiles', 'CcFilesQuery'); - } - - /** - * Filter the query by a related CcBlock object - * - * @param CcBlock $ccBlock the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByCcBlock($ccBlock, $comparison = null) - { - return $this - ->addUsingAlias(CcPlaylistcontentsPeer::BLOCK_ID, $ccBlock->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcBlock relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function joinCcBlock($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcBlock'); - - // 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, 'CcBlock'); - } - - return $this; - } - - /** - * Use the CcBlock relation CcBlock 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 CcBlockQuery A secondary query class using the current class as primary query - */ - public function useCcBlockQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcBlock($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcBlock', 'CcBlockQuery'); - } - - /** - * Filter the query by a related CcPlaylist object - * - * @param CcPlaylist $ccPlaylist the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function filterByCcPlaylist($ccPlaylist, $comparison = null) - { - return $this - ->addUsingAlias(CcPlaylistcontentsPeer::PLAYLIST_ID, $ccPlaylist->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcPlaylist relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function joinCcPlaylist($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcPlaylist'); - - // 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, 'CcPlaylist'); - } - - return $this; - } - - /** - * Use the CcPlaylist relation CcPlaylist 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 CcPlaylistQuery A secondary query class using the current class as primary query - */ - public function useCcPlaylistQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcPlaylist($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcPlaylist', 'CcPlaylistQuery'); - } - - /** - * Exclude object from result - * - * @param CcPlaylistcontents $ccPlaylistcontents Object to remove from the list of results - * - * @return CcPlaylistcontentsQuery The current query, for fluid interface - */ - public function prune($ccPlaylistcontents = null) - { - if ($ccPlaylistcontents) { - $this->addUsingAlias(CcPlaylistcontentsPeer::ID, $ccPlaylistcontents->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - - /** - * Code to execute before every DELETE statement - * - * @param PropelPDO $con The connection object used by the query - */ - protected function basePreDelete(PropelPDO $con) - { - // aggregate_column_relation behavior - $this->findRelatedCcPlaylists($con); - - return $this->preDelete($con); - } - - /** - * Code to execute after every DELETE statement - * - * @param int $affectedRows the number of deleted rows - * @param PropelPDO $con The connection object used by the query - */ - protected function basePostDelete($affectedRows, PropelPDO $con) - { - // aggregate_column_relation behavior - $this->updateRelatedCcPlaylists($con); - - return $this->postDelete($affectedRows, $con); - } - - /** - * Code to execute before every UPDATE statement - * - * @param array $values The associatiove array of columns and values for the update - * @param PropelPDO $con The connection object used by the query - * @param boolean $forceIndividualSaves If false (default), the resulting call is a BasePeer::doUpdate(), ortherwise it is a series of save() calls on all the found objects - */ - protected function basePreUpdate(&$values, PropelPDO $con, $forceIndividualSaves = false) - { - // aggregate_column_relation behavior - $this->findRelatedCcPlaylists($con); - - return $this->preUpdate($values, $con, $forceIndividualSaves); - } - - /** - * Code to execute after every UPDATE statement - * - * @param int $affectedRows the number of udated rows - * @param PropelPDO $con The connection object used by the query - */ - protected function basePostUpdate($affectedRows, PropelPDO $con) - { - // aggregate_column_relation behavior - $this->updateRelatedCcPlaylists($con); - - return $this->postUpdate($affectedRows, $con); - } - - // aggregate_column_relation behavior - - /** - * Finds the related CcPlaylist objects and keep them for later - * - * @param PropelPDO $con A connection object - */ - protected function findRelatedCcPlaylists($con) - { - $criteria = clone $this; - if ($this->useAliasInSQL) { - $alias = $this->getModelAlias(); - $criteria->removeAlias($alias); - } else { - $alias = ''; - } - $this->ccPlaylists = CcPlaylistQuery::create() - ->joinCcPlaylistcontents($alias) - ->mergeWith($criteria) - ->find($con); - } - - protected function updateRelatedCcPlaylists($con) - { - foreach ($this->ccPlaylists as $ccPlaylist) { - $ccPlaylist->updateDbLength($con); - } - $this->ccPlaylists = array(); - } - -} // BaseCcPlaylistcontentsQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistory.php b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistory.php index 2e55a484fd..8c172ac0e0 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistory.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistory.php @@ -4,1285 +4,1539 @@ /** * Base class that represents a row from the 'cc_playout_history' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcPlayoutHistory extends BaseObject implements Persistent +abstract class BaseCcPlayoutHistory extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcPlayoutHistoryPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcPlayoutHistoryPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the file_id field. - * @var int - */ - protected $file_id; - - /** - * The value for the starts field. - * @var string - */ - protected $starts; - - /** - * The value for the ends field. - * @var string - */ - protected $ends; - - /** - * The value for the instance_id field. - * @var int - */ - protected $instance_id; - - /** - * @var CcFiles - */ - protected $aCcFiles; - - /** - * @var CcShowInstances - */ - protected $aCcShowInstances; - - /** - * @var array CcPlayoutHistoryMetaData[] Collection to store aggregation of CcPlayoutHistoryMetaData objects. - */ - protected $collCcPlayoutHistoryMetaDatas; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [file_id] column value. - * - * @return int - */ - public function getDbFileId() - { - return $this->file_id; - } - - /** - * Get the [optionally formatted] temporal [starts] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbStarts($format = 'Y-m-d H:i:s') - { - if ($this->starts === null) { - return null; - } - - - - try { - $dt = new DateTime($this->starts); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->starts, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [ends] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbEnds($format = 'Y-m-d H:i:s') - { - if ($this->ends === null) { - return null; - } - - - - try { - $dt = new DateTime($this->ends); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->ends, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [instance_id] column value. - * - * @return int - */ - public function getDbInstanceId() - { - return $this->instance_id; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcPlayoutHistory The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcPlayoutHistoryPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [file_id] column. - * - * @param int $v new value - * @return CcPlayoutHistory The current object (for fluent API support) - */ - public function setDbFileId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->file_id !== $v) { - $this->file_id = $v; - $this->modifiedColumns[] = CcPlayoutHistoryPeer::FILE_ID; - } - - if ($this->aCcFiles !== null && $this->aCcFiles->getDbId() !== $v) { - $this->aCcFiles = null; - } - - return $this; - } // setDbFileId() - - /** - * Sets the value of [starts] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcPlayoutHistory The current object (for fluent API support) - */ - public function setDbStarts($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->starts !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->starts !== null && $tmpDt = new DateTime($this->starts)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->starts = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcPlayoutHistoryPeer::STARTS; - } - } // if either are not null - - return $this; - } // setDbStarts() - - /** - * Sets the value of [ends] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcPlayoutHistory The current object (for fluent API support) - */ - public function setDbEnds($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->ends !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->ends !== null && $tmpDt = new DateTime($this->ends)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->ends = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcPlayoutHistoryPeer::ENDS; - } - } // if either are not null - - return $this; - } // setDbEnds() - - /** - * Set the value of [instance_id] column. - * - * @param int $v new value - * @return CcPlayoutHistory The current object (for fluent API support) - */ - public function setDbInstanceId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->instance_id !== $v) { - $this->instance_id = $v; - $this->modifiedColumns[] = CcPlayoutHistoryPeer::INSTANCE_ID; - } - - if ($this->aCcShowInstances !== null && $this->aCcShowInstances->getDbId() !== $v) { - $this->aCcShowInstances = null; - } - - return $this; - } // setDbInstanceId() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->file_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; - $this->starts = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->ends = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->instance_id = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 5; // 5 = CcPlayoutHistoryPeer::NUM_COLUMNS - CcPlayoutHistoryPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcPlayoutHistory object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcFiles !== null && $this->file_id !== $this->aCcFiles->getDbId()) { - $this->aCcFiles = null; - } - if ($this->aCcShowInstances !== null && $this->instance_id !== $this->aCcShowInstances->getDbId()) { - $this->aCcShowInstances = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcPlayoutHistoryPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcFiles = null; - $this->aCcShowInstances = null; - $this->collCcPlayoutHistoryMetaDatas = null; - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcPlayoutHistoryQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcPlayoutHistoryPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcFiles !== null) { - if ($this->aCcFiles->isModified() || $this->aCcFiles->isNew()) { - $affectedRows += $this->aCcFiles->save($con); - } - $this->setCcFiles($this->aCcFiles); - } - - if ($this->aCcShowInstances !== null) { - if ($this->aCcShowInstances->isModified() || $this->aCcShowInstances->isNew()) { - $affectedRows += $this->aCcShowInstances->save($con); - } - $this->setCcShowInstances($this->aCcShowInstances); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcPlayoutHistoryPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcPlayoutHistoryPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlayoutHistoryPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcPlayoutHistoryPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - if ($this->collCcPlayoutHistoryMetaDatas !== null) { - foreach ($this->collCcPlayoutHistoryMetaDatas as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcFiles !== null) { - if (!$this->aCcFiles->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcFiles->getValidationFailures()); - } - } - - if ($this->aCcShowInstances !== null) { - if (!$this->aCcShowInstances->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcShowInstances->getValidationFailures()); - } - } - - - if (($retval = CcPlayoutHistoryPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - if ($this->collCcPlayoutHistoryMetaDatas !== null) { - foreach ($this->collCcPlayoutHistoryMetaDatas as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPlayoutHistoryPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbFileId(); - break; - case 2: - return $this->getDbStarts(); - break; - case 3: - return $this->getDbEnds(); - break; - case 4: - return $this->getDbInstanceId(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcPlayoutHistoryPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbFileId(), - $keys[2] => $this->getDbStarts(), - $keys[3] => $this->getDbEnds(), - $keys[4] => $this->getDbInstanceId(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcFiles) { - $result['CcFiles'] = $this->aCcFiles->toArray($keyType, $includeLazyLoadColumns, true); - } - if (null !== $this->aCcShowInstances) { - $result['CcShowInstances'] = $this->aCcShowInstances->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPlayoutHistoryPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbFileId($value); - break; - case 2: - $this->setDbStarts($value); - break; - case 3: - $this->setDbEnds($value); - break; - case 4: - $this->setDbInstanceId($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcPlayoutHistoryPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbFileId($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbStarts($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbEnds($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbInstanceId($arr[$keys[4]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcPlayoutHistoryPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcPlayoutHistoryPeer::ID)) $criteria->add(CcPlayoutHistoryPeer::ID, $this->id); - if ($this->isColumnModified(CcPlayoutHistoryPeer::FILE_ID)) $criteria->add(CcPlayoutHistoryPeer::FILE_ID, $this->file_id); - if ($this->isColumnModified(CcPlayoutHistoryPeer::STARTS)) $criteria->add(CcPlayoutHistoryPeer::STARTS, $this->starts); - if ($this->isColumnModified(CcPlayoutHistoryPeer::ENDS)) $criteria->add(CcPlayoutHistoryPeer::ENDS, $this->ends); - if ($this->isColumnModified(CcPlayoutHistoryPeer::INSTANCE_ID)) $criteria->add(CcPlayoutHistoryPeer::INSTANCE_ID, $this->instance_id); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcPlayoutHistoryPeer::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcPlayoutHistory (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbFileId($this->file_id); - $copyObj->setDbStarts($this->starts); - $copyObj->setDbEnds($this->ends); - $copyObj->setDbInstanceId($this->instance_id); - - if ($deepCopy) { - // important: temporarily setNew(false) because this affects the behavior of - // the getter/setter methods for fkey referrer objects. - $copyObj->setNew(false); - - foreach ($this->getCcPlayoutHistoryMetaDatas() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcPlayoutHistoryMetaData($relObj->copy($deepCopy)); - } - } - - } // if ($deepCopy) - - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcPlayoutHistory Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcPlayoutHistoryPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcPlayoutHistoryPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcFiles object. - * - * @param CcFiles $v - * @return CcPlayoutHistory The current object (for fluent API support) - * @throws PropelException - */ - public function setCcFiles(CcFiles $v = null) - { - if ($v === null) { - $this->setDbFileId(NULL); - } else { - $this->setDbFileId($v->getDbId()); - } - - $this->aCcFiles = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcFiles object, it will not be re-added. - if ($v !== null) { - $v->addCcPlayoutHistory($this); - } - - return $this; - } - - - /** - * Get the associated CcFiles object - * - * @param PropelPDO Optional Connection object. - * @return CcFiles The associated CcFiles object. - * @throws PropelException - */ - public function getCcFiles(PropelPDO $con = null) - { - if ($this->aCcFiles === null && ($this->file_id !== null)) { - $this->aCcFiles = CcFilesQuery::create()->findPk($this->file_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcFiles->addCcPlayoutHistorys($this); - */ - } - return $this->aCcFiles; - } - - /** - * Declares an association between this object and a CcShowInstances object. - * - * @param CcShowInstances $v - * @return CcPlayoutHistory The current object (for fluent API support) - * @throws PropelException - */ - public function setCcShowInstances(CcShowInstances $v = null) - { - if ($v === null) { - $this->setDbInstanceId(NULL); - } else { - $this->setDbInstanceId($v->getDbId()); - } - - $this->aCcShowInstances = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcShowInstances object, it will not be re-added. - if ($v !== null) { - $v->addCcPlayoutHistory($this); - } - - return $this; - } - - - /** - * Get the associated CcShowInstances object - * - * @param PropelPDO Optional Connection object. - * @return CcShowInstances The associated CcShowInstances object. - * @throws PropelException - */ - public function getCcShowInstances(PropelPDO $con = null) - { - if ($this->aCcShowInstances === null && ($this->instance_id !== null)) { - $this->aCcShowInstances = CcShowInstancesQuery::create()->findPk($this->instance_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcShowInstances->addCcPlayoutHistorys($this); - */ - } - return $this->aCcShowInstances; - } - - /** - * Clears out the collCcPlayoutHistoryMetaDatas 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 addCcPlayoutHistoryMetaDatas() - */ - public function clearCcPlayoutHistoryMetaDatas() - { - $this->collCcPlayoutHistoryMetaDatas = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcPlayoutHistoryMetaDatas collection. - * - * By default this just sets the collCcPlayoutHistoryMetaDatas collection to an empty array (like clearcollCcPlayoutHistoryMetaDatas()); - * 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 initCcPlayoutHistoryMetaDatas() - { - $this->collCcPlayoutHistoryMetaDatas = new PropelObjectCollection(); - $this->collCcPlayoutHistoryMetaDatas->setModel('CcPlayoutHistoryMetaData'); - } - - /** - * Gets an array of CcPlayoutHistoryMetaData 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 CcPlayoutHistory 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 CcPlayoutHistoryMetaData[] List of CcPlayoutHistoryMetaData objects - * @throws PropelException - */ - public function getCcPlayoutHistoryMetaDatas($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcPlayoutHistoryMetaDatas || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlayoutHistoryMetaDatas) { - // return empty collection - $this->initCcPlayoutHistoryMetaDatas(); - } else { - $collCcPlayoutHistoryMetaDatas = CcPlayoutHistoryMetaDataQuery::create(null, $criteria) - ->filterByCcPlayoutHistory($this) - ->find($con); - if (null !== $criteria) { - return $collCcPlayoutHistoryMetaDatas; - } - $this->collCcPlayoutHistoryMetaDatas = $collCcPlayoutHistoryMetaDatas; - } - } - return $this->collCcPlayoutHistoryMetaDatas; - } - - /** - * Returns the number of related CcPlayoutHistoryMetaData objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcPlayoutHistoryMetaData objects. - * @throws PropelException - */ - public function countCcPlayoutHistoryMetaDatas(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcPlayoutHistoryMetaDatas || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlayoutHistoryMetaDatas) { - return 0; - } else { - $query = CcPlayoutHistoryMetaDataQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcPlayoutHistory($this) - ->count($con); - } - } else { - return count($this->collCcPlayoutHistoryMetaDatas); - } - } - - /** - * Method called to associate a CcPlayoutHistoryMetaData object to this object - * through the CcPlayoutHistoryMetaData foreign key attribute. - * - * @param CcPlayoutHistoryMetaData $l CcPlayoutHistoryMetaData - * @return void - * @throws PropelException - */ - public function addCcPlayoutHistoryMetaData(CcPlayoutHistoryMetaData $l) - { - if ($this->collCcPlayoutHistoryMetaDatas === null) { - $this->initCcPlayoutHistoryMetaDatas(); - } - if (!$this->collCcPlayoutHistoryMetaDatas->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcPlayoutHistoryMetaDatas[]= $l; - $l->setCcPlayoutHistory($this); - } - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->file_id = null; - $this->starts = null; - $this->ends = null; - $this->instance_id = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - if ($this->collCcPlayoutHistoryMetaDatas) { - foreach ((array) $this->collCcPlayoutHistoryMetaDatas as $o) { - $o->clearAllReferences($deep); - } - } - } // if ($deep) - - $this->collCcPlayoutHistoryMetaDatas = null; - $this->aCcFiles = null; - $this->aCcShowInstances = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcPlayoutHistory + /** + * Peer class name + */ + const PEER = 'CcPlayoutHistoryPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcPlayoutHistoryPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the file_id field. + * @var int + */ + protected $file_id; + + /** + * The value for the starts field. + * @var string + */ + protected $starts; + + /** + * The value for the ends field. + * @var string + */ + protected $ends; + + /** + * The value for the instance_id field. + * @var int + */ + protected $instance_id; + + /** + * @var CcFiles + */ + protected $aCcFiles; + + /** + * @var CcShowInstances + */ + protected $aCcShowInstances; + + /** + * @var PropelObjectCollection|CcPlayoutHistoryMetaData[] Collection to store aggregation of CcPlayoutHistoryMetaData objects. + */ + protected $collCcPlayoutHistoryMetaDatas; + protected $collCcPlayoutHistoryMetaDatasPartial; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccPlayoutHistoryMetaDatasScheduledForDeletion = null; + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [file_id] column value. + * + * @return int + */ + public function getDbFileId() + { + + return $this->file_id; + } + + /** + * Get the [optionally formatted] temporal [starts] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbStarts($format = 'Y-m-d H:i:s') + { + if ($this->starts === null) { + return null; + } + + + try { + $dt = new DateTime($this->starts); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->starts, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [ends] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbEnds($format = 'Y-m-d H:i:s') + { + if ($this->ends === null) { + return null; + } + + + try { + $dt = new DateTime($this->ends); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->ends, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [instance_id] column value. + * + * @return int + */ + public function getDbInstanceId() + { + + return $this->instance_id; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcPlayoutHistory The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcPlayoutHistoryPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [file_id] column. + * + * @param int $v new value + * @return CcPlayoutHistory The current object (for fluent API support) + */ + public function setDbFileId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->file_id !== $v) { + $this->file_id = $v; + $this->modifiedColumns[] = CcPlayoutHistoryPeer::FILE_ID; + } + + if ($this->aCcFiles !== null && $this->aCcFiles->getDbId() !== $v) { + $this->aCcFiles = null; + } + + + return $this; + } // setDbFileId() + + /** + * Sets the value of [starts] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcPlayoutHistory The current object (for fluent API support) + */ + public function setDbStarts($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->starts !== null || $dt !== null) { + $currentDateAsString = ($this->starts !== null && $tmpDt = new DateTime($this->starts)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->starts = $newDateAsString; + $this->modifiedColumns[] = CcPlayoutHistoryPeer::STARTS; + } + } // if either are not null + + + return $this; + } // setDbStarts() + + /** + * Sets the value of [ends] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcPlayoutHistory The current object (for fluent API support) + */ + public function setDbEnds($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->ends !== null || $dt !== null) { + $currentDateAsString = ($this->ends !== null && $tmpDt = new DateTime($this->ends)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->ends = $newDateAsString; + $this->modifiedColumns[] = CcPlayoutHistoryPeer::ENDS; + } + } // if either are not null + + + return $this; + } // setDbEnds() + + /** + * Set the value of [instance_id] column. + * + * @param int $v new value + * @return CcPlayoutHistory The current object (for fluent API support) + */ + public function setDbInstanceId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->instance_id !== $v) { + $this->instance_id = $v; + $this->modifiedColumns[] = CcPlayoutHistoryPeer::INSTANCE_ID; + } + + if ($this->aCcShowInstances !== null && $this->aCcShowInstances->getDbId() !== $v) { + $this->aCcShowInstances = null; + } + + + return $this; + } // setDbInstanceId() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->file_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; + $this->starts = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->ends = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->instance_id = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 5; // 5 = CcPlayoutHistoryPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcPlayoutHistory object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcFiles !== null && $this->file_id !== $this->aCcFiles->getDbId()) { + $this->aCcFiles = null; + } + if ($this->aCcShowInstances !== null && $this->instance_id !== $this->aCcShowInstances->getDbId()) { + $this->aCcShowInstances = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcPlayoutHistoryPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcFiles = null; + $this->aCcShowInstances = null; + $this->collCcPlayoutHistoryMetaDatas = null; + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcPlayoutHistoryQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcPlayoutHistoryPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcFiles !== null) { + if ($this->aCcFiles->isModified() || $this->aCcFiles->isNew()) { + $affectedRows += $this->aCcFiles->save($con); + } + $this->setCcFiles($this->aCcFiles); + } + + if ($this->aCcShowInstances !== null) { + if ($this->aCcShowInstances->isModified() || $this->aCcShowInstances->isNew()) { + $affectedRows += $this->aCcShowInstances->save($con); + } + $this->setCcShowInstances($this->aCcShowInstances); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + if ($this->ccPlayoutHistoryMetaDatasScheduledForDeletion !== null) { + if (!$this->ccPlayoutHistoryMetaDatasScheduledForDeletion->isEmpty()) { + CcPlayoutHistoryMetaDataQuery::create() + ->filterByPrimaryKeys($this->ccPlayoutHistoryMetaDatasScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccPlayoutHistoryMetaDatasScheduledForDeletion = null; + } + } + + if ($this->collCcPlayoutHistoryMetaDatas !== null) { + foreach ($this->collCcPlayoutHistoryMetaDatas as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcPlayoutHistoryPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcPlayoutHistoryPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_playout_history_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcPlayoutHistoryPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcPlayoutHistoryPeer::FILE_ID)) { + $modifiedColumns[':p' . $index++] = '"file_id"'; + } + if ($this->isColumnModified(CcPlayoutHistoryPeer::STARTS)) { + $modifiedColumns[':p' . $index++] = '"starts"'; + } + if ($this->isColumnModified(CcPlayoutHistoryPeer::ENDS)) { + $modifiedColumns[':p' . $index++] = '"ends"'; + } + if ($this->isColumnModified(CcPlayoutHistoryPeer::INSTANCE_ID)) { + $modifiedColumns[':p' . $index++] = '"instance_id"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_playout_history" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"file_id"': + $stmt->bindValue($identifier, $this->file_id, PDO::PARAM_INT); + break; + case '"starts"': + $stmt->bindValue($identifier, $this->starts, PDO::PARAM_STR); + break; + case '"ends"': + $stmt->bindValue($identifier, $this->ends, PDO::PARAM_STR); + break; + case '"instance_id"': + $stmt->bindValue($identifier, $this->instance_id, PDO::PARAM_INT); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcFiles !== null) { + if (!$this->aCcFiles->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcFiles->getValidationFailures()); + } + } + + if ($this->aCcShowInstances !== null) { + if (!$this->aCcShowInstances->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcShowInstances->getValidationFailures()); + } + } + + + if (($retval = CcPlayoutHistoryPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + if ($this->collCcPlayoutHistoryMetaDatas !== null) { + foreach ($this->collCcPlayoutHistoryMetaDatas as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPlayoutHistoryPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbFileId(); + break; + case 2: + return $this->getDbStarts(); + break; + case 3: + return $this->getDbEnds(); + break; + case 4: + return $this->getDbInstanceId(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcPlayoutHistory'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcPlayoutHistory'][$this->getPrimaryKey()] = true; + $keys = CcPlayoutHistoryPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbFileId(), + $keys[2] => $this->getDbStarts(), + $keys[3] => $this->getDbEnds(), + $keys[4] => $this->getDbInstanceId(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcFiles) { + $result['CcFiles'] = $this->aCcFiles->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aCcShowInstances) { + $result['CcShowInstances'] = $this->aCcShowInstances->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->collCcPlayoutHistoryMetaDatas) { + $result['CcPlayoutHistoryMetaDatas'] = $this->collCcPlayoutHistoryMetaDatas->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPlayoutHistoryPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbFileId($value); + break; + case 2: + $this->setDbStarts($value); + break; + case 3: + $this->setDbEnds($value); + break; + case 4: + $this->setDbInstanceId($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcPlayoutHistoryPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbFileId($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbStarts($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbEnds($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbInstanceId($arr[$keys[4]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcPlayoutHistoryPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcPlayoutHistoryPeer::ID)) $criteria->add(CcPlayoutHistoryPeer::ID, $this->id); + if ($this->isColumnModified(CcPlayoutHistoryPeer::FILE_ID)) $criteria->add(CcPlayoutHistoryPeer::FILE_ID, $this->file_id); + if ($this->isColumnModified(CcPlayoutHistoryPeer::STARTS)) $criteria->add(CcPlayoutHistoryPeer::STARTS, $this->starts); + if ($this->isColumnModified(CcPlayoutHistoryPeer::ENDS)) $criteria->add(CcPlayoutHistoryPeer::ENDS, $this->ends); + if ($this->isColumnModified(CcPlayoutHistoryPeer::INSTANCE_ID)) $criteria->add(CcPlayoutHistoryPeer::INSTANCE_ID, $this->instance_id); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcPlayoutHistoryPeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcPlayoutHistory (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbFileId($this->getDbFileId()); + $copyObj->setDbStarts($this->getDbStarts()); + $copyObj->setDbEnds($this->getDbEnds()); + $copyObj->setDbInstanceId($this->getDbInstanceId()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + foreach ($this->getCcPlayoutHistoryMetaDatas() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcPlayoutHistoryMetaData($relObj->copy($deepCopy)); + } + } + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcPlayoutHistory Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcPlayoutHistoryPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcPlayoutHistoryPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcFiles object. + * + * @param CcFiles $v + * @return CcPlayoutHistory The current object (for fluent API support) + * @throws PropelException + */ + public function setCcFiles(CcFiles $v = null) + { + if ($v === null) { + $this->setDbFileId(NULL); + } else { + $this->setDbFileId($v->getDbId()); + } + + $this->aCcFiles = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcFiles object, it will not be re-added. + if ($v !== null) { + $v->addCcPlayoutHistory($this); + } + + + return $this; + } + + + /** + * Get the associated CcFiles object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcFiles The associated CcFiles object. + * @throws PropelException + */ + public function getCcFiles(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcFiles === null && ($this->file_id !== null) && $doQuery) { + $this->aCcFiles = CcFilesQuery::create()->findPk($this->file_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcFiles->addCcPlayoutHistorys($this); + */ + } + + return $this->aCcFiles; + } + + /** + * Declares an association between this object and a CcShowInstances object. + * + * @param CcShowInstances $v + * @return CcPlayoutHistory The current object (for fluent API support) + * @throws PropelException + */ + public function setCcShowInstances(CcShowInstances $v = null) + { + if ($v === null) { + $this->setDbInstanceId(NULL); + } else { + $this->setDbInstanceId($v->getDbId()); + } + + $this->aCcShowInstances = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcShowInstances object, it will not be re-added. + if ($v !== null) { + $v->addCcPlayoutHistory($this); + } + + + return $this; + } + + + /** + * Get the associated CcShowInstances object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcShowInstances The associated CcShowInstances object. + * @throws PropelException + */ + public function getCcShowInstances(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcShowInstances === null && ($this->instance_id !== null) && $doQuery) { + $this->aCcShowInstances = CcShowInstancesQuery::create()->findPk($this->instance_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcShowInstances->addCcPlayoutHistorys($this); + */ + } + + return $this->aCcShowInstances; + } + + + /** + * Initializes a collection based on the name of a relation. + * Avoids crafting an 'init[$relationName]s' method name + * that wouldn't work when StandardEnglishPluralizer is used. + * + * @param string $relationName The name of the relation to initialize + * @return void + */ + public function initRelation($relationName) + { + if ('CcPlayoutHistoryMetaData' == $relationName) { + $this->initCcPlayoutHistoryMetaDatas(); + } + } + + /** + * Clears out the collCcPlayoutHistoryMetaDatas 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 CcPlayoutHistory The current object (for fluent API support) + * @see addCcPlayoutHistoryMetaDatas() + */ + public function clearCcPlayoutHistoryMetaDatas() + { + $this->collCcPlayoutHistoryMetaDatas = null; // important to set this to null since that means it is uninitialized + $this->collCcPlayoutHistoryMetaDatasPartial = null; + + return $this; + } + + /** + * reset is the collCcPlayoutHistoryMetaDatas collection loaded partially + * + * @return void + */ + public function resetPartialCcPlayoutHistoryMetaDatas($v = true) + { + $this->collCcPlayoutHistoryMetaDatasPartial = $v; + } + + /** + * Initializes the collCcPlayoutHistoryMetaDatas collection. + * + * By default this just sets the collCcPlayoutHistoryMetaDatas collection to an empty array (like clearcollCcPlayoutHistoryMetaDatas()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcPlayoutHistoryMetaDatas($overrideExisting = true) + { + if (null !== $this->collCcPlayoutHistoryMetaDatas && !$overrideExisting) { + return; + } + $this->collCcPlayoutHistoryMetaDatas = new PropelObjectCollection(); + $this->collCcPlayoutHistoryMetaDatas->setModel('CcPlayoutHistoryMetaData'); + } + + /** + * Gets an array of CcPlayoutHistoryMetaData 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 CcPlayoutHistory 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 PropelObjectCollection|CcPlayoutHistoryMetaData[] List of CcPlayoutHistoryMetaData objects + * @throws PropelException + */ + public function getCcPlayoutHistoryMetaDatas($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcPlayoutHistoryMetaDatasPartial && !$this->isNew(); + if (null === $this->collCcPlayoutHistoryMetaDatas || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlayoutHistoryMetaDatas) { + // return empty collection + $this->initCcPlayoutHistoryMetaDatas(); + } else { + $collCcPlayoutHistoryMetaDatas = CcPlayoutHistoryMetaDataQuery::create(null, $criteria) + ->filterByCcPlayoutHistory($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcPlayoutHistoryMetaDatasPartial && count($collCcPlayoutHistoryMetaDatas)) { + $this->initCcPlayoutHistoryMetaDatas(false); + + foreach ($collCcPlayoutHistoryMetaDatas as $obj) { + if (false == $this->collCcPlayoutHistoryMetaDatas->contains($obj)) { + $this->collCcPlayoutHistoryMetaDatas->append($obj); + } + } + + $this->collCcPlayoutHistoryMetaDatasPartial = true; + } + + $collCcPlayoutHistoryMetaDatas->getInternalIterator()->rewind(); + + return $collCcPlayoutHistoryMetaDatas; + } + + if ($partial && $this->collCcPlayoutHistoryMetaDatas) { + foreach ($this->collCcPlayoutHistoryMetaDatas as $obj) { + if ($obj->isNew()) { + $collCcPlayoutHistoryMetaDatas[] = $obj; + } + } + } + + $this->collCcPlayoutHistoryMetaDatas = $collCcPlayoutHistoryMetaDatas; + $this->collCcPlayoutHistoryMetaDatasPartial = false; + } + } + + return $this->collCcPlayoutHistoryMetaDatas; + } + + /** + * Sets a collection of CcPlayoutHistoryMetaData objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccPlayoutHistoryMetaDatas A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcPlayoutHistory The current object (for fluent API support) + */ + public function setCcPlayoutHistoryMetaDatas(PropelCollection $ccPlayoutHistoryMetaDatas, PropelPDO $con = null) + { + $ccPlayoutHistoryMetaDatasToDelete = $this->getCcPlayoutHistoryMetaDatas(new Criteria(), $con)->diff($ccPlayoutHistoryMetaDatas); + + + $this->ccPlayoutHistoryMetaDatasScheduledForDeletion = $ccPlayoutHistoryMetaDatasToDelete; + + foreach ($ccPlayoutHistoryMetaDatasToDelete as $ccPlayoutHistoryMetaDataRemoved) { + $ccPlayoutHistoryMetaDataRemoved->setCcPlayoutHistory(null); + } + + $this->collCcPlayoutHistoryMetaDatas = null; + foreach ($ccPlayoutHistoryMetaDatas as $ccPlayoutHistoryMetaData) { + $this->addCcPlayoutHistoryMetaData($ccPlayoutHistoryMetaData); + } + + $this->collCcPlayoutHistoryMetaDatas = $ccPlayoutHistoryMetaDatas; + $this->collCcPlayoutHistoryMetaDatasPartial = false; + + return $this; + } + + /** + * Returns the number of related CcPlayoutHistoryMetaData objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcPlayoutHistoryMetaData objects. + * @throws PropelException + */ + public function countCcPlayoutHistoryMetaDatas(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcPlayoutHistoryMetaDatasPartial && !$this->isNew(); + if (null === $this->collCcPlayoutHistoryMetaDatas || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlayoutHistoryMetaDatas) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcPlayoutHistoryMetaDatas()); + } + $query = CcPlayoutHistoryMetaDataQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcPlayoutHistory($this) + ->count($con); + } + + return count($this->collCcPlayoutHistoryMetaDatas); + } + + /** + * Method called to associate a CcPlayoutHistoryMetaData object to this object + * through the CcPlayoutHistoryMetaData foreign key attribute. + * + * @param CcPlayoutHistoryMetaData $l CcPlayoutHistoryMetaData + * @return CcPlayoutHistory The current object (for fluent API support) + */ + public function addCcPlayoutHistoryMetaData(CcPlayoutHistoryMetaData $l) + { + if ($this->collCcPlayoutHistoryMetaDatas === null) { + $this->initCcPlayoutHistoryMetaDatas(); + $this->collCcPlayoutHistoryMetaDatasPartial = true; + } + + if (!in_array($l, $this->collCcPlayoutHistoryMetaDatas->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcPlayoutHistoryMetaData($l); + + if ($this->ccPlayoutHistoryMetaDatasScheduledForDeletion and $this->ccPlayoutHistoryMetaDatasScheduledForDeletion->contains($l)) { + $this->ccPlayoutHistoryMetaDatasScheduledForDeletion->remove($this->ccPlayoutHistoryMetaDatasScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcPlayoutHistoryMetaData $ccPlayoutHistoryMetaData The ccPlayoutHistoryMetaData object to add. + */ + protected function doAddCcPlayoutHistoryMetaData($ccPlayoutHistoryMetaData) + { + $this->collCcPlayoutHistoryMetaDatas[]= $ccPlayoutHistoryMetaData; + $ccPlayoutHistoryMetaData->setCcPlayoutHistory($this); + } + + /** + * @param CcPlayoutHistoryMetaData $ccPlayoutHistoryMetaData The ccPlayoutHistoryMetaData object to remove. + * @return CcPlayoutHistory The current object (for fluent API support) + */ + public function removeCcPlayoutHistoryMetaData($ccPlayoutHistoryMetaData) + { + if ($this->getCcPlayoutHistoryMetaDatas()->contains($ccPlayoutHistoryMetaData)) { + $this->collCcPlayoutHistoryMetaDatas->remove($this->collCcPlayoutHistoryMetaDatas->search($ccPlayoutHistoryMetaData)); + if (null === $this->ccPlayoutHistoryMetaDatasScheduledForDeletion) { + $this->ccPlayoutHistoryMetaDatasScheduledForDeletion = clone $this->collCcPlayoutHistoryMetaDatas; + $this->ccPlayoutHistoryMetaDatasScheduledForDeletion->clear(); + } + $this->ccPlayoutHistoryMetaDatasScheduledForDeletion[]= clone $ccPlayoutHistoryMetaData; + $ccPlayoutHistoryMetaData->setCcPlayoutHistory(null); + } + + return $this; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->file_id = null; + $this->starts = null; + $this->ends = null; + $this->instance_id = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->collCcPlayoutHistoryMetaDatas) { + foreach ($this->collCcPlayoutHistoryMetaDatas as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->aCcFiles instanceof Persistent) { + $this->aCcFiles->clearAllReferences($deep); + } + if ($this->aCcShowInstances instanceof Persistent) { + $this->aCcShowInstances->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + if ($this->collCcPlayoutHistoryMetaDatas instanceof PropelCollection) { + $this->collCcPlayoutHistoryMetaDatas->clearIterator(); + } + $this->collCcPlayoutHistoryMetaDatas = null; + $this->aCcFiles = null; + $this->aCcShowInstances = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcPlayoutHistoryPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryMetaData.php b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryMetaData.php index a0cbb9539b..84747072b5 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryMetaData.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryMetaData.php @@ -4,902 +4,1048 @@ /** * Base class that represents a row from the 'cc_playout_history_metadata' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcPlayoutHistoryMetaData extends BaseObject implements Persistent +abstract class BaseCcPlayoutHistoryMetaData extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcPlayoutHistoryMetaDataPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcPlayoutHistoryMetaDataPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the history_id field. - * @var int - */ - protected $history_id; - - /** - * The value for the key field. - * @var string - */ - protected $key; - - /** - * The value for the value field. - * @var string - */ - protected $value; - - /** - * @var CcPlayoutHistory - */ - protected $aCcPlayoutHistory; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [history_id] column value. - * - * @return int - */ - public function getDbHistoryId() - { - return $this->history_id; - } - - /** - * Get the [key] column value. - * - * @return string - */ - public function getDbKey() - { - return $this->key; - } - - /** - * Get the [value] column value. - * - * @return string - */ - public function getDbValue() - { - return $this->value; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcPlayoutHistoryMetaData The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcPlayoutHistoryMetaDataPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [history_id] column. - * - * @param int $v new value - * @return CcPlayoutHistoryMetaData The current object (for fluent API support) - */ - public function setDbHistoryId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->history_id !== $v) { - $this->history_id = $v; - $this->modifiedColumns[] = CcPlayoutHistoryMetaDataPeer::HISTORY_ID; - } - - if ($this->aCcPlayoutHistory !== null && $this->aCcPlayoutHistory->getDbId() !== $v) { - $this->aCcPlayoutHistory = null; - } - - return $this; - } // setDbHistoryId() - - /** - * Set the value of [key] column. - * - * @param string $v new value - * @return CcPlayoutHistoryMetaData The current object (for fluent API support) - */ - public function setDbKey($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->key !== $v) { - $this->key = $v; - $this->modifiedColumns[] = CcPlayoutHistoryMetaDataPeer::KEY; - } - - return $this; - } // setDbKey() - - /** - * Set the value of [value] column. - * - * @param string $v new value - * @return CcPlayoutHistoryMetaData The current object (for fluent API support) - */ - public function setDbValue($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->value !== $v) { - $this->value = $v; - $this->modifiedColumns[] = CcPlayoutHistoryMetaDataPeer::VALUE; - } - - return $this; - } // setDbValue() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->history_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; - $this->key = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->value = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 4; // 4 = CcPlayoutHistoryMetaDataPeer::NUM_COLUMNS - CcPlayoutHistoryMetaDataPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcPlayoutHistoryMetaData object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcPlayoutHistory !== null && $this->history_id !== $this->aCcPlayoutHistory->getDbId()) { - $this->aCcPlayoutHistory = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcPlayoutHistoryMetaDataPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcPlayoutHistory = null; - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcPlayoutHistoryMetaDataQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcPlayoutHistoryMetaDataPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcPlayoutHistory !== null) { - if ($this->aCcPlayoutHistory->isModified() || $this->aCcPlayoutHistory->isNew()) { - $affectedRows += $this->aCcPlayoutHistory->save($con); - } - $this->setCcPlayoutHistory($this->aCcPlayoutHistory); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcPlayoutHistoryMetaDataPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcPlayoutHistoryMetaDataPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlayoutHistoryMetaDataPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcPlayoutHistoryMetaDataPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcPlayoutHistory !== null) { - if (!$this->aCcPlayoutHistory->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcPlayoutHistory->getValidationFailures()); - } - } - - - if (($retval = CcPlayoutHistoryMetaDataPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPlayoutHistoryMetaDataPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbHistoryId(); - break; - case 2: - return $this->getDbKey(); - break; - case 3: - return $this->getDbValue(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcPlayoutHistoryMetaDataPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbHistoryId(), - $keys[2] => $this->getDbKey(), - $keys[3] => $this->getDbValue(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcPlayoutHistory) { - $result['CcPlayoutHistory'] = $this->aCcPlayoutHistory->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPlayoutHistoryMetaDataPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbHistoryId($value); - break; - case 2: - $this->setDbKey($value); - break; - case 3: - $this->setDbValue($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcPlayoutHistoryMetaDataPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbHistoryId($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbKey($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbValue($arr[$keys[3]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcPlayoutHistoryMetaDataPeer::ID)) $criteria->add(CcPlayoutHistoryMetaDataPeer::ID, $this->id); - if ($this->isColumnModified(CcPlayoutHistoryMetaDataPeer::HISTORY_ID)) $criteria->add(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, $this->history_id); - if ($this->isColumnModified(CcPlayoutHistoryMetaDataPeer::KEY)) $criteria->add(CcPlayoutHistoryMetaDataPeer::KEY, $this->key); - if ($this->isColumnModified(CcPlayoutHistoryMetaDataPeer::VALUE)) $criteria->add(CcPlayoutHistoryMetaDataPeer::VALUE, $this->value); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryMetaDataPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcPlayoutHistoryMetaData (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbHistoryId($this->history_id); - $copyObj->setDbKey($this->key); - $copyObj->setDbValue($this->value); - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcPlayoutHistoryMetaData Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcPlayoutHistoryMetaDataPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcPlayoutHistoryMetaDataPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcPlayoutHistory object. - * - * @param CcPlayoutHistory $v - * @return CcPlayoutHistoryMetaData The current object (for fluent API support) - * @throws PropelException - */ - public function setCcPlayoutHistory(CcPlayoutHistory $v = null) - { - if ($v === null) { - $this->setDbHistoryId(NULL); - } else { - $this->setDbHistoryId($v->getDbId()); - } - - $this->aCcPlayoutHistory = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcPlayoutHistory object, it will not be re-added. - if ($v !== null) { - $v->addCcPlayoutHistoryMetaData($this); - } - - return $this; - } - - - /** - * Get the associated CcPlayoutHistory object - * - * @param PropelPDO Optional Connection object. - * @return CcPlayoutHistory The associated CcPlayoutHistory object. - * @throws PropelException - */ - public function getCcPlayoutHistory(PropelPDO $con = null) - { - if ($this->aCcPlayoutHistory === null && ($this->history_id !== null)) { - $this->aCcPlayoutHistory = CcPlayoutHistoryQuery::create()->findPk($this->history_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcPlayoutHistory->addCcPlayoutHistoryMetaDatas($this); - */ - } - return $this->aCcPlayoutHistory; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->history_id = null; - $this->key = null; - $this->value = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - $this->aCcPlayoutHistory = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcPlayoutHistoryMetaData + /** + * Peer class name + */ + const PEER = 'CcPlayoutHistoryMetaDataPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcPlayoutHistoryMetaDataPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the history_id field. + * @var int + */ + protected $history_id; + + /** + * The value for the key field. + * @var string + */ + protected $key; + + /** + * The value for the value field. + * @var string + */ + protected $value; + + /** + * @var CcPlayoutHistory + */ + protected $aCcPlayoutHistory; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [history_id] column value. + * + * @return int + */ + public function getDbHistoryId() + { + + return $this->history_id; + } + + /** + * Get the [key] column value. + * + * @return string + */ + public function getDbKey() + { + + return $this->key; + } + + /** + * Get the [value] column value. + * + * @return string + */ + public function getDbValue() + { + + return $this->value; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcPlayoutHistoryMetaData The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcPlayoutHistoryMetaDataPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [history_id] column. + * + * @param int $v new value + * @return CcPlayoutHistoryMetaData The current object (for fluent API support) + */ + public function setDbHistoryId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->history_id !== $v) { + $this->history_id = $v; + $this->modifiedColumns[] = CcPlayoutHistoryMetaDataPeer::HISTORY_ID; + } + + if ($this->aCcPlayoutHistory !== null && $this->aCcPlayoutHistory->getDbId() !== $v) { + $this->aCcPlayoutHistory = null; + } + + + return $this; + } // setDbHistoryId() + + /** + * Set the value of [key] column. + * + * @param string $v new value + * @return CcPlayoutHistoryMetaData The current object (for fluent API support) + */ + public function setDbKey($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->key !== $v) { + $this->key = $v; + $this->modifiedColumns[] = CcPlayoutHistoryMetaDataPeer::KEY; + } + + + return $this; + } // setDbKey() + + /** + * Set the value of [value] column. + * + * @param string $v new value + * @return CcPlayoutHistoryMetaData The current object (for fluent API support) + */ + public function setDbValue($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->value !== $v) { + $this->value = $v; + $this->modifiedColumns[] = CcPlayoutHistoryMetaDataPeer::VALUE; + } + + + return $this; + } // setDbValue() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->history_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; + $this->key = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->value = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 4; // 4 = CcPlayoutHistoryMetaDataPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcPlayoutHistoryMetaData object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcPlayoutHistory !== null && $this->history_id !== $this->aCcPlayoutHistory->getDbId()) { + $this->aCcPlayoutHistory = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcPlayoutHistoryMetaDataPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcPlayoutHistory = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcPlayoutHistoryMetaDataQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcPlayoutHistoryMetaDataPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcPlayoutHistory !== null) { + if ($this->aCcPlayoutHistory->isModified() || $this->aCcPlayoutHistory->isNew()) { + $affectedRows += $this->aCcPlayoutHistory->save($con); + } + $this->setCcPlayoutHistory($this->aCcPlayoutHistory); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcPlayoutHistoryMetaDataPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcPlayoutHistoryMetaDataPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_playout_history_metadata_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcPlayoutHistoryMetaDataPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcPlayoutHistoryMetaDataPeer::HISTORY_ID)) { + $modifiedColumns[':p' . $index++] = '"history_id"'; + } + if ($this->isColumnModified(CcPlayoutHistoryMetaDataPeer::KEY)) { + $modifiedColumns[':p' . $index++] = '"key"'; + } + if ($this->isColumnModified(CcPlayoutHistoryMetaDataPeer::VALUE)) { + $modifiedColumns[':p' . $index++] = '"value"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_playout_history_metadata" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"history_id"': + $stmt->bindValue($identifier, $this->history_id, PDO::PARAM_INT); + break; + case '"key"': + $stmt->bindValue($identifier, $this->key, PDO::PARAM_STR); + break; + case '"value"': + $stmt->bindValue($identifier, $this->value, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcPlayoutHistory !== null) { + if (!$this->aCcPlayoutHistory->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcPlayoutHistory->getValidationFailures()); + } + } + + + if (($retval = CcPlayoutHistoryMetaDataPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPlayoutHistoryMetaDataPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbHistoryId(); + break; + case 2: + return $this->getDbKey(); + break; + case 3: + return $this->getDbValue(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcPlayoutHistoryMetaData'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcPlayoutHistoryMetaData'][$this->getPrimaryKey()] = true; + $keys = CcPlayoutHistoryMetaDataPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbHistoryId(), + $keys[2] => $this->getDbKey(), + $keys[3] => $this->getDbValue(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcPlayoutHistory) { + $result['CcPlayoutHistory'] = $this->aCcPlayoutHistory->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPlayoutHistoryMetaDataPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbHistoryId($value); + break; + case 2: + $this->setDbKey($value); + break; + case 3: + $this->setDbValue($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcPlayoutHistoryMetaDataPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbHistoryId($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbKey($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbValue($arr[$keys[3]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcPlayoutHistoryMetaDataPeer::ID)) $criteria->add(CcPlayoutHistoryMetaDataPeer::ID, $this->id); + if ($this->isColumnModified(CcPlayoutHistoryMetaDataPeer::HISTORY_ID)) $criteria->add(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, $this->history_id); + if ($this->isColumnModified(CcPlayoutHistoryMetaDataPeer::KEY)) $criteria->add(CcPlayoutHistoryMetaDataPeer::KEY, $this->key); + if ($this->isColumnModified(CcPlayoutHistoryMetaDataPeer::VALUE)) $criteria->add(CcPlayoutHistoryMetaDataPeer::VALUE, $this->value); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryMetaDataPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcPlayoutHistoryMetaData (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbHistoryId($this->getDbHistoryId()); + $copyObj->setDbKey($this->getDbKey()); + $copyObj->setDbValue($this->getDbValue()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcPlayoutHistoryMetaData Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcPlayoutHistoryMetaDataPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcPlayoutHistoryMetaDataPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcPlayoutHistory object. + * + * @param CcPlayoutHistory $v + * @return CcPlayoutHistoryMetaData The current object (for fluent API support) + * @throws PropelException + */ + public function setCcPlayoutHistory(CcPlayoutHistory $v = null) + { + if ($v === null) { + $this->setDbHistoryId(NULL); + } else { + $this->setDbHistoryId($v->getDbId()); + } + + $this->aCcPlayoutHistory = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcPlayoutHistory object, it will not be re-added. + if ($v !== null) { + $v->addCcPlayoutHistoryMetaData($this); + } + + + return $this; + } + + + /** + * Get the associated CcPlayoutHistory object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcPlayoutHistory The associated CcPlayoutHistory object. + * @throws PropelException + */ + public function getCcPlayoutHistory(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcPlayoutHistory === null && ($this->history_id !== null) && $doQuery) { + $this->aCcPlayoutHistory = CcPlayoutHistoryQuery::create()->findPk($this->history_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcPlayoutHistory->addCcPlayoutHistoryMetaDatas($this); + */ + } + + return $this->aCcPlayoutHistory; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->history_id = null; + $this->key = null; + $this->value = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcPlayoutHistory instanceof Persistent) { + $this->aCcPlayoutHistory->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcPlayoutHistory = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcPlayoutHistoryMetaDataPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryMetaDataPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryMetaDataPeer.php index 0b980ec4ee..f4d8560f8a 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryMetaDataPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryMetaDataPeer.php @@ -4,976 +4,1002 @@ /** * Base static class for performing query and update operations on the 'cc_playout_history_metadata' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcPlayoutHistoryMetaDataPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_playout_history_metadata'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcPlayoutHistoryMetaData'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcPlayoutHistoryMetaData'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcPlayoutHistoryMetaDataTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 4; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_playout_history_metadata.ID'; - - /** the column name for the HISTORY_ID field */ - const HISTORY_ID = 'cc_playout_history_metadata.HISTORY_ID'; - - /** the column name for the KEY field */ - const KEY = 'cc_playout_history_metadata.KEY'; - - /** the column name for the VALUE field */ - const VALUE = 'cc_playout_history_metadata.VALUE'; - - /** - * An identiy map to hold any loaded instances of CcPlayoutHistoryMetaData objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcPlayoutHistoryMetaData[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbHistoryId', 'DbKey', 'DbValue', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbHistoryId', 'dbKey', 'dbValue', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::HISTORY_ID, self::KEY, self::VALUE, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'HISTORY_ID', 'KEY', 'VALUE', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'history_id', 'key', 'value', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbHistoryId' => 1, 'DbKey' => 2, 'DbValue' => 3, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbHistoryId' => 1, 'dbKey' => 2, 'dbValue' => 3, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::HISTORY_ID => 1, self::KEY => 2, self::VALUE => 3, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'HISTORY_ID' => 1, 'KEY' => 2, 'VALUE' => 3, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'history_id' => 1, 'key' => 2, 'value' => 3, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcPlayoutHistoryMetaDataPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcPlayoutHistoryMetaDataPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcPlayoutHistoryMetaDataPeer::ID); - $criteria->addSelectColumn(CcPlayoutHistoryMetaDataPeer::HISTORY_ID); - $criteria->addSelectColumn(CcPlayoutHistoryMetaDataPeer::KEY); - $criteria->addSelectColumn(CcPlayoutHistoryMetaDataPeer::VALUE); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.HISTORY_ID'); - $criteria->addSelectColumn($alias . '.KEY'); - $criteria->addSelectColumn($alias . '.VALUE'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlayoutHistoryMetaDataPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlayoutHistoryMetaDataPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcPlayoutHistoryMetaData - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcPlayoutHistoryMetaDataPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcPlayoutHistoryMetaDataPeer::populateObjects(CcPlayoutHistoryMetaDataPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcPlayoutHistoryMetaDataPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcPlayoutHistoryMetaData $value A CcPlayoutHistoryMetaData object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcPlayoutHistoryMetaData $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcPlayoutHistoryMetaData object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcPlayoutHistoryMetaData) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPlayoutHistoryMetaData object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcPlayoutHistoryMetaData Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_playout_history_metadata - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcPlayoutHistoryMetaDataPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcPlayoutHistoryMetaDataPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcPlayoutHistoryMetaDataPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcPlayoutHistoryMetaDataPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcPlayoutHistoryMetaData object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcPlayoutHistoryMetaDataPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcPlayoutHistoryMetaDataPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcPlayoutHistoryMetaDataPeer::NUM_COLUMNS; - } else { - $cls = CcPlayoutHistoryMetaDataPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcPlayoutHistoryMetaDataPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcPlayoutHistory table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcPlayoutHistory(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlayoutHistoryMetaDataPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlayoutHistoryMetaDataPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, CcPlayoutHistoryPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcPlayoutHistoryMetaData objects pre-filled with their CcPlayoutHistory objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlayoutHistoryMetaData objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcPlayoutHistory(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlayoutHistoryMetaDataPeer::addSelectColumns($criteria); - $startcol = (CcPlayoutHistoryMetaDataPeer::NUM_COLUMNS - CcPlayoutHistoryMetaDataPeer::NUM_LAZY_LOAD_COLUMNS); - CcPlayoutHistoryPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, CcPlayoutHistoryPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlayoutHistoryMetaDataPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlayoutHistoryMetaDataPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcPlayoutHistoryMetaDataPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlayoutHistoryMetaDataPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcPlayoutHistoryPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcPlayoutHistoryPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcPlayoutHistoryPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcPlayoutHistoryMetaData) to $obj2 (CcPlayoutHistory) - $obj2->addCcPlayoutHistoryMetaData($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlayoutHistoryMetaDataPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlayoutHistoryMetaDataPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, CcPlayoutHistoryPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcPlayoutHistoryMetaData objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlayoutHistoryMetaData objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlayoutHistoryMetaDataPeer::addSelectColumns($criteria); - $startcol2 = (CcPlayoutHistoryMetaDataPeer::NUM_COLUMNS - CcPlayoutHistoryMetaDataPeer::NUM_LAZY_LOAD_COLUMNS); - - CcPlayoutHistoryPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcPlayoutHistoryPeer::NUM_COLUMNS - CcPlayoutHistoryPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, CcPlayoutHistoryPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlayoutHistoryMetaDataPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlayoutHistoryMetaDataPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcPlayoutHistoryMetaDataPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlayoutHistoryMetaDataPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcPlayoutHistory rows - - $key2 = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcPlayoutHistoryPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcPlayoutHistoryPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcPlayoutHistoryPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcPlayoutHistoryMetaData) to the collection in $obj2 (CcPlayoutHistory) - $obj2->addCcPlayoutHistoryMetaData($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcPlayoutHistoryMetaDataPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcPlayoutHistoryMetaDataPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcPlayoutHistoryMetaDataTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcPlayoutHistoryMetaDataPeer::CLASS_DEFAULT : CcPlayoutHistoryMetaDataPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcPlayoutHistoryMetaData or Criteria object. - * - * @param mixed $values Criteria or CcPlayoutHistoryMetaData object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcPlayoutHistoryMetaData object - } - - if ($criteria->containsKey(CcPlayoutHistoryMetaDataPeer::ID) && $criteria->keyContainsValue(CcPlayoutHistoryMetaDataPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlayoutHistoryMetaDataPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcPlayoutHistoryMetaData or Criteria object. - * - * @param mixed $values Criteria or CcPlayoutHistoryMetaData object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcPlayoutHistoryMetaDataPeer::ID); - $value = $criteria->remove(CcPlayoutHistoryMetaDataPeer::ID); - if ($value) { - $selectCriteria->add(CcPlayoutHistoryMetaDataPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcPlayoutHistoryMetaDataPeer::TABLE_NAME); - } - - } else { // $values is CcPlayoutHistoryMetaData object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_playout_history_metadata table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcPlayoutHistoryMetaDataPeer::TABLE_NAME, $con, CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcPlayoutHistoryMetaDataPeer::clearInstancePool(); - CcPlayoutHistoryMetaDataPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcPlayoutHistoryMetaData or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcPlayoutHistoryMetaData object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcPlayoutHistoryMetaDataPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcPlayoutHistoryMetaData) { // it's a model object - // invalidate the cache for this single object - CcPlayoutHistoryMetaDataPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryMetaDataPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcPlayoutHistoryMetaDataPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcPlayoutHistoryMetaDataPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcPlayoutHistoryMetaData object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcPlayoutHistoryMetaData $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcPlayoutHistoryMetaData $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcPlayoutHistoryMetaDataPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, CcPlayoutHistoryMetaDataPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcPlayoutHistoryMetaData - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcPlayoutHistoryMetaDataPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryMetaDataPeer::ID, $pk); - - $v = CcPlayoutHistoryMetaDataPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryMetaDataPeer::ID, $pks, Criteria::IN); - $objs = CcPlayoutHistoryMetaDataPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcPlayoutHistoryMetaDataPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_playout_history_metadata'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcPlayoutHistoryMetaData'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcPlayoutHistoryMetaDataTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 4; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 4; + + /** the column name for the id field */ + const ID = 'cc_playout_history_metadata.id'; + + /** the column name for the history_id field */ + const HISTORY_ID = 'cc_playout_history_metadata.history_id'; + + /** the column name for the key field */ + const KEY = 'cc_playout_history_metadata.key'; + + /** the column name for the value field */ + const VALUE = 'cc_playout_history_metadata.value'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcPlayoutHistoryMetaData objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcPlayoutHistoryMetaData[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcPlayoutHistoryMetaDataPeer::$fieldNames[CcPlayoutHistoryMetaDataPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbHistoryId', 'DbKey', 'DbValue', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbHistoryId', 'dbKey', 'dbValue', ), + BasePeer::TYPE_COLNAME => array (CcPlayoutHistoryMetaDataPeer::ID, CcPlayoutHistoryMetaDataPeer::HISTORY_ID, CcPlayoutHistoryMetaDataPeer::KEY, CcPlayoutHistoryMetaDataPeer::VALUE, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'HISTORY_ID', 'KEY', 'VALUE', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'history_id', 'key', 'value', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcPlayoutHistoryMetaDataPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbHistoryId' => 1, 'DbKey' => 2, 'DbValue' => 3, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbHistoryId' => 1, 'dbKey' => 2, 'dbValue' => 3, ), + BasePeer::TYPE_COLNAME => array (CcPlayoutHistoryMetaDataPeer::ID => 0, CcPlayoutHistoryMetaDataPeer::HISTORY_ID => 1, CcPlayoutHistoryMetaDataPeer::KEY => 2, CcPlayoutHistoryMetaDataPeer::VALUE => 3, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'HISTORY_ID' => 1, 'KEY' => 2, 'VALUE' => 3, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'history_id' => 1, 'key' => 2, 'value' => 3, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcPlayoutHistoryMetaDataPeer::getFieldNames($toType); + $key = isset(CcPlayoutHistoryMetaDataPeer::$fieldKeys[$fromType][$name]) ? CcPlayoutHistoryMetaDataPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcPlayoutHistoryMetaDataPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcPlayoutHistoryMetaDataPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcPlayoutHistoryMetaDataPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcPlayoutHistoryMetaDataPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcPlayoutHistoryMetaDataPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcPlayoutHistoryMetaDataPeer::ID); + $criteria->addSelectColumn(CcPlayoutHistoryMetaDataPeer::HISTORY_ID); + $criteria->addSelectColumn(CcPlayoutHistoryMetaDataPeer::KEY); + $criteria->addSelectColumn(CcPlayoutHistoryMetaDataPeer::VALUE); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.history_id'); + $criteria->addSelectColumn($alias . '.key'); + $criteria->addSelectColumn($alias . '.value'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlayoutHistoryMetaDataPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlayoutHistoryMetaDataPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcPlayoutHistoryMetaData + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcPlayoutHistoryMetaDataPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcPlayoutHistoryMetaDataPeer::populateObjects(CcPlayoutHistoryMetaDataPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcPlayoutHistoryMetaDataPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcPlayoutHistoryMetaData $obj A CcPlayoutHistoryMetaData object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcPlayoutHistoryMetaDataPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcPlayoutHistoryMetaData object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcPlayoutHistoryMetaData) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPlayoutHistoryMetaData object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcPlayoutHistoryMetaDataPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcPlayoutHistoryMetaData Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcPlayoutHistoryMetaDataPeer::$instances[$key])) { + return CcPlayoutHistoryMetaDataPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcPlayoutHistoryMetaDataPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcPlayoutHistoryMetaDataPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_playout_history_metadata + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcPlayoutHistoryMetaDataPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcPlayoutHistoryMetaDataPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcPlayoutHistoryMetaDataPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcPlayoutHistoryMetaDataPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcPlayoutHistoryMetaData object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcPlayoutHistoryMetaDataPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcPlayoutHistoryMetaDataPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcPlayoutHistoryMetaDataPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcPlayoutHistoryMetaDataPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcPlayoutHistoryMetaDataPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcPlayoutHistory table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcPlayoutHistory(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlayoutHistoryMetaDataPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlayoutHistoryMetaDataPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, CcPlayoutHistoryPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcPlayoutHistoryMetaData objects pre-filled with their CcPlayoutHistory objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlayoutHistoryMetaData objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcPlayoutHistory(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + } + + CcPlayoutHistoryMetaDataPeer::addSelectColumns($criteria); + $startcol = CcPlayoutHistoryMetaDataPeer::NUM_HYDRATE_COLUMNS; + CcPlayoutHistoryPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, CcPlayoutHistoryPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlayoutHistoryMetaDataPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlayoutHistoryMetaDataPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcPlayoutHistoryMetaDataPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlayoutHistoryMetaDataPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcPlayoutHistoryPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcPlayoutHistoryPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcPlayoutHistoryPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcPlayoutHistoryMetaData) to $obj2 (CcPlayoutHistory) + $obj2->addCcPlayoutHistoryMetaData($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlayoutHistoryMetaDataPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlayoutHistoryMetaDataPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, CcPlayoutHistoryPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcPlayoutHistoryMetaData objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlayoutHistoryMetaData objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + } + + CcPlayoutHistoryMetaDataPeer::addSelectColumns($criteria); + $startcol2 = CcPlayoutHistoryMetaDataPeer::NUM_HYDRATE_COLUMNS; + + CcPlayoutHistoryPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcPlayoutHistoryPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, CcPlayoutHistoryPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlayoutHistoryMetaDataPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlayoutHistoryMetaDataPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcPlayoutHistoryMetaDataPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlayoutHistoryMetaDataPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcPlayoutHistory rows + + $key2 = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcPlayoutHistoryPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcPlayoutHistoryPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcPlayoutHistoryPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcPlayoutHistoryMetaData) to the collection in $obj2 (CcPlayoutHistory) + $obj2->addCcPlayoutHistoryMetaData($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME)->getTable(CcPlayoutHistoryMetaDataPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcPlayoutHistoryMetaDataPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcPlayoutHistoryMetaDataTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcPlayoutHistoryMetaDataPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcPlayoutHistoryMetaData or Criteria object. + * + * @param mixed $values Criteria or CcPlayoutHistoryMetaData object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcPlayoutHistoryMetaData object + } + + if ($criteria->containsKey(CcPlayoutHistoryMetaDataPeer::ID) && $criteria->keyContainsValue(CcPlayoutHistoryMetaDataPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlayoutHistoryMetaDataPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcPlayoutHistoryMetaData or Criteria object. + * + * @param mixed $values Criteria or CcPlayoutHistoryMetaData object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcPlayoutHistoryMetaDataPeer::ID); + $value = $criteria->remove(CcPlayoutHistoryMetaDataPeer::ID); + if ($value) { + $selectCriteria->add(CcPlayoutHistoryMetaDataPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcPlayoutHistoryMetaDataPeer::TABLE_NAME); + } + + } else { // $values is CcPlayoutHistoryMetaData object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_playout_history_metadata table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcPlayoutHistoryMetaDataPeer::TABLE_NAME, $con, CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcPlayoutHistoryMetaDataPeer::clearInstancePool(); + CcPlayoutHistoryMetaDataPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcPlayoutHistoryMetaData or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcPlayoutHistoryMetaData object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcPlayoutHistoryMetaDataPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcPlayoutHistoryMetaData) { // it's a model object + // invalidate the cache for this single object + CcPlayoutHistoryMetaDataPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryMetaDataPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcPlayoutHistoryMetaDataPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcPlayoutHistoryMetaDataPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcPlayoutHistoryMetaData object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcPlayoutHistoryMetaData $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcPlayoutHistoryMetaDataPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, CcPlayoutHistoryMetaDataPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcPlayoutHistoryMetaData + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcPlayoutHistoryMetaDataPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryMetaDataPeer::ID, $pk); + + $v = CcPlayoutHistoryMetaDataPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcPlayoutHistoryMetaData[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryMetaDataPeer::ID, $pks, Criteria::IN); + $objs = CcPlayoutHistoryMetaDataPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcPlayoutHistoryMetaDataPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryMetaDataQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryMetaDataQuery.php index 7a27c61afa..94246ff895 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryMetaDataQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryMetaDataQuery.php @@ -4,317 +4,467 @@ /** * Base class that represents a query for the 'cc_playout_history_metadata' table. * - * * - * @method CcPlayoutHistoryMetaDataQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcPlayoutHistoryMetaDataQuery orderByDbHistoryId($order = Criteria::ASC) Order by the history_id column - * @method CcPlayoutHistoryMetaDataQuery orderByDbKey($order = Criteria::ASC) Order by the key column - * @method CcPlayoutHistoryMetaDataQuery orderByDbValue($order = Criteria::ASC) Order by the value column * - * @method CcPlayoutHistoryMetaDataQuery groupByDbId() Group by the id column - * @method CcPlayoutHistoryMetaDataQuery groupByDbHistoryId() Group by the history_id column - * @method CcPlayoutHistoryMetaDataQuery groupByDbKey() Group by the key column - * @method CcPlayoutHistoryMetaDataQuery groupByDbValue() Group by the value column + * @method CcPlayoutHistoryMetaDataQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcPlayoutHistoryMetaDataQuery orderByDbHistoryId($order = Criteria::ASC) Order by the history_id column + * @method CcPlayoutHistoryMetaDataQuery orderByDbKey($order = Criteria::ASC) Order by the key column + * @method CcPlayoutHistoryMetaDataQuery orderByDbValue($order = Criteria::ASC) Order by the value column * - * @method CcPlayoutHistoryMetaDataQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcPlayoutHistoryMetaDataQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcPlayoutHistoryMetaDataQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcPlayoutHistoryMetaDataQuery groupByDbId() Group by the id column + * @method CcPlayoutHistoryMetaDataQuery groupByDbHistoryId() Group by the history_id column + * @method CcPlayoutHistoryMetaDataQuery groupByDbKey() Group by the key column + * @method CcPlayoutHistoryMetaDataQuery groupByDbValue() Group by the value column * - * @method CcPlayoutHistoryMetaDataQuery leftJoinCcPlayoutHistory($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPlayoutHistory relation - * @method CcPlayoutHistoryMetaDataQuery rightJoinCcPlayoutHistory($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPlayoutHistory relation - * @method CcPlayoutHistoryMetaDataQuery innerJoinCcPlayoutHistory($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPlayoutHistory relation + * @method CcPlayoutHistoryMetaDataQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcPlayoutHistoryMetaDataQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcPlayoutHistoryMetaDataQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcPlayoutHistoryMetaData findOne(PropelPDO $con = null) Return the first CcPlayoutHistoryMetaData matching the query - * @method CcPlayoutHistoryMetaData findOneOrCreate(PropelPDO $con = null) Return the first CcPlayoutHistoryMetaData matching the query, or a new CcPlayoutHistoryMetaData object populated from the query conditions when no match is found + * @method CcPlayoutHistoryMetaDataQuery leftJoinCcPlayoutHistory($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcPlayoutHistory relation + * @method CcPlayoutHistoryMetaDataQuery rightJoinCcPlayoutHistory($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcPlayoutHistory relation + * @method CcPlayoutHistoryMetaDataQuery innerJoinCcPlayoutHistory($relationAlias = null) Adds a INNER JOIN clause to the query using the CcPlayoutHistory relation * - * @method CcPlayoutHistoryMetaData findOneByDbId(int $id) Return the first CcPlayoutHistoryMetaData filtered by the id column - * @method CcPlayoutHistoryMetaData findOneByDbHistoryId(int $history_id) Return the first CcPlayoutHistoryMetaData filtered by the history_id column - * @method CcPlayoutHistoryMetaData findOneByDbKey(string $key) Return the first CcPlayoutHistoryMetaData filtered by the key column - * @method CcPlayoutHistoryMetaData findOneByDbValue(string $value) Return the first CcPlayoutHistoryMetaData filtered by the value column + * @method CcPlayoutHistoryMetaData findOne(PropelPDO $con = null) Return the first CcPlayoutHistoryMetaData matching the query + * @method CcPlayoutHistoryMetaData findOneOrCreate(PropelPDO $con = null) Return the first CcPlayoutHistoryMetaData matching the query, or a new CcPlayoutHistoryMetaData object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcPlayoutHistoryMetaData objects filtered by the id column - * @method array findByDbHistoryId(int $history_id) Return CcPlayoutHistoryMetaData objects filtered by the history_id column - * @method array findByDbKey(string $key) Return CcPlayoutHistoryMetaData objects filtered by the key column - * @method array findByDbValue(string $value) Return CcPlayoutHistoryMetaData objects filtered by the value column + * @method CcPlayoutHistoryMetaData findOneByDbHistoryId(int $history_id) Return the first CcPlayoutHistoryMetaData filtered by the history_id column + * @method CcPlayoutHistoryMetaData findOneByDbKey(string $key) Return the first CcPlayoutHistoryMetaData filtered by the key column + * @method CcPlayoutHistoryMetaData findOneByDbValue(string $value) Return the first CcPlayoutHistoryMetaData filtered by the value column + * + * @method array findByDbId(int $id) Return CcPlayoutHistoryMetaData objects filtered by the id column + * @method array findByDbHistoryId(int $history_id) Return CcPlayoutHistoryMetaData objects filtered by the history_id column + * @method array findByDbKey(string $key) Return CcPlayoutHistoryMetaData objects filtered by the key column + * @method array findByDbValue(string $value) Return CcPlayoutHistoryMetaData objects filtered by the value column * * @package propel.generator.airtime.om */ abstract class BaseCcPlayoutHistoryMetaDataQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcPlayoutHistoryMetaDataQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcPlayoutHistoryMetaData'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcPlayoutHistoryMetaDataQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcPlayoutHistoryMetaDataQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcPlayoutHistoryMetaDataQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcPlayoutHistoryMetaDataQuery) { + return $criteria; + } + $query = new CcPlayoutHistoryMetaDataQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcPlayoutHistoryMetaData|CcPlayoutHistoryMetaData[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcPlayoutHistoryMetaDataPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryMetaDataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlayoutHistoryMetaData A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlayoutHistoryMetaData A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "history_id", "key", "value" FROM "cc_playout_history_metadata" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcPlayoutHistoryMetaData(); + $obj->hydrate($row); + CcPlayoutHistoryMetaDataPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlayoutHistoryMetaData|CcPlayoutHistoryMetaData[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcPlayoutHistoryMetaData[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcPlayoutHistoryMetaDataQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcPlayoutHistoryMetaDataQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryMetaDataQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the history_id column + * + * Example usage: + * + * $query->filterByDbHistoryId(1234); // WHERE history_id = 1234 + * $query->filterByDbHistoryId(array(12, 34)); // WHERE history_id IN (12, 34) + * $query->filterByDbHistoryId(array('min' => 12)); // WHERE history_id >= 12 + * $query->filterByDbHistoryId(array('max' => 12)); // WHERE history_id <= 12 + * + * + * @see filterByCcPlayoutHistory() + * + * @param mixed $dbHistoryId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryMetaDataQuery The current query, for fluid interface + */ + public function filterByDbHistoryId($dbHistoryId = null, $comparison = null) + { + if (is_array($dbHistoryId)) { + $useMinMax = false; + if (isset($dbHistoryId['min'])) { + $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, $dbHistoryId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbHistoryId['max'])) { + $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, $dbHistoryId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, $dbHistoryId, $comparison); + } + + /** + * Filter the query on the key column + * + * Example usage: + * + * $query->filterByDbKey('fooValue'); // WHERE key = 'fooValue' + * $query->filterByDbKey('%fooValue%'); // WHERE key LIKE '%fooValue%' + * + * + * @param string $dbKey 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 CcPlayoutHistoryMetaDataQuery The current query, for fluid interface + */ + public function filterByDbKey($dbKey = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbKey)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbKey)) { + $dbKey = str_replace('*', '%', $dbKey); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::KEY, $dbKey, $comparison); + } + + /** + * Filter the query on the value column + * + * Example usage: + * + * $query->filterByDbValue('fooValue'); // WHERE value = 'fooValue' + * $query->filterByDbValue('%fooValue%'); // WHERE value LIKE '%fooValue%' + * + * + * @param string $dbValue 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 CcPlayoutHistoryMetaDataQuery The current query, for fluid interface + */ + public function filterByDbValue($dbValue = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbValue)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbValue)) { + $dbValue = str_replace('*', '%', $dbValue); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::VALUE, $dbValue, $comparison); + } + + /** + * Filter the query by a related CcPlayoutHistory object + * + * @param CcPlayoutHistory|PropelObjectCollection $ccPlayoutHistory The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryMetaDataQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcPlayoutHistory($ccPlayoutHistory, $comparison = null) + { + if ($ccPlayoutHistory instanceof CcPlayoutHistory) { + return $this + ->addUsingAlias(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, $ccPlayoutHistory->getDbId(), $comparison); + } elseif ($ccPlayoutHistory instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, $ccPlayoutHistory->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcPlayoutHistory() only accepts arguments of type CcPlayoutHistory or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcPlayoutHistory relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcPlayoutHistoryMetaDataQuery The current query, for fluid interface + */ + public function joinCcPlayoutHistory($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcPlayoutHistory'); + + // 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, 'CcPlayoutHistory'); + } + + return $this; + } + + /** + * Use the CcPlayoutHistory relation CcPlayoutHistory 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 CcPlayoutHistoryQuery A secondary query class using the current class as primary query + */ + public function useCcPlayoutHistoryQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcPlayoutHistory($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcPlayoutHistory', 'CcPlayoutHistoryQuery'); + } + + /** + * Exclude object from result + * + * @param CcPlayoutHistoryMetaData $ccPlayoutHistoryMetaData Object to remove from the list of results + * + * @return CcPlayoutHistoryMetaDataQuery The current query, for fluid interface + */ + public function prune($ccPlayoutHistoryMetaData = null) + { + if ($ccPlayoutHistoryMetaData) { + $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::ID, $ccPlayoutHistoryMetaData->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcPlayoutHistoryMetaDataQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcPlayoutHistoryMetaData', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcPlayoutHistoryMetaDataQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcPlayoutHistoryMetaDataQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcPlayoutHistoryMetaDataQuery) { - return $criteria; - } - $query = new CcPlayoutHistoryMetaDataQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcPlayoutHistoryMetaData|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcPlayoutHistoryMetaDataPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcPlayoutHistoryMetaDataQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcPlayoutHistoryMetaDataQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryMetaDataQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the history_id column - * - * @param int|array $dbHistoryId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryMetaDataQuery The current query, for fluid interface - */ - public function filterByDbHistoryId($dbHistoryId = null, $comparison = null) - { - if (is_array($dbHistoryId)) { - $useMinMax = false; - if (isset($dbHistoryId['min'])) { - $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, $dbHistoryId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbHistoryId['max'])) { - $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, $dbHistoryId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, $dbHistoryId, $comparison); - } - - /** - * Filter the query on the key column - * - * @param string $dbKey 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 CcPlayoutHistoryMetaDataQuery The current query, for fluid interface - */ - public function filterByDbKey($dbKey = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbKey)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbKey)) { - $dbKey = str_replace('*', '%', $dbKey); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::KEY, $dbKey, $comparison); - } - - /** - * Filter the query on the value column - * - * @param string $dbValue 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 CcPlayoutHistoryMetaDataQuery The current query, for fluid interface - */ - public function filterByDbValue($dbValue = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbValue)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbValue)) { - $dbValue = str_replace('*', '%', $dbValue); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::VALUE, $dbValue, $comparison); - } - - /** - * Filter the query by a related CcPlayoutHistory object - * - * @param CcPlayoutHistory $ccPlayoutHistory the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryMetaDataQuery The current query, for fluid interface - */ - public function filterByCcPlayoutHistory($ccPlayoutHistory, $comparison = null) - { - return $this - ->addUsingAlias(CcPlayoutHistoryMetaDataPeer::HISTORY_ID, $ccPlayoutHistory->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcPlayoutHistory relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcPlayoutHistoryMetaDataQuery The current query, for fluid interface - */ - public function joinCcPlayoutHistory($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcPlayoutHistory'); - - // 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, 'CcPlayoutHistory'); - } - - return $this; - } - - /** - * Use the CcPlayoutHistory relation CcPlayoutHistory 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 CcPlayoutHistoryQuery A secondary query class using the current class as primary query - */ - public function useCcPlayoutHistoryQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcPlayoutHistory($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcPlayoutHistory', 'CcPlayoutHistoryQuery'); - } - - /** - * Exclude object from result - * - * @param CcPlayoutHistoryMetaData $ccPlayoutHistoryMetaData Object to remove from the list of results - * - * @return CcPlayoutHistoryMetaDataQuery The current query, for fluid interface - */ - public function prune($ccPlayoutHistoryMetaData = null) - { - if ($ccPlayoutHistoryMetaData) { - $this->addUsingAlias(CcPlayoutHistoryMetaDataPeer::ID, $ccPlayoutHistoryMetaData->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcPlayoutHistoryMetaDataQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryPeer.php index 01b944a65e..7ff20cbce6 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryPeer.php @@ -4,1371 +4,1403 @@ /** * Base static class for performing query and update operations on the 'cc_playout_history' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcPlayoutHistoryPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_playout_history'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcPlayoutHistory'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcPlayoutHistory'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcPlayoutHistoryTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 5; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_playout_history.ID'; - - /** the column name for the FILE_ID field */ - const FILE_ID = 'cc_playout_history.FILE_ID'; - - /** the column name for the STARTS field */ - const STARTS = 'cc_playout_history.STARTS'; - - /** the column name for the ENDS field */ - const ENDS = 'cc_playout_history.ENDS'; - - /** the column name for the INSTANCE_ID field */ - const INSTANCE_ID = 'cc_playout_history.INSTANCE_ID'; - - /** - * An identiy map to hold any loaded instances of CcPlayoutHistory objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcPlayoutHistory[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbFileId', 'DbStarts', 'DbEnds', 'DbInstanceId', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbFileId', 'dbStarts', 'dbEnds', 'dbInstanceId', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::FILE_ID, self::STARTS, self::ENDS, self::INSTANCE_ID, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'FILE_ID', 'STARTS', 'ENDS', 'INSTANCE_ID', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'file_id', 'starts', 'ends', 'instance_id', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbFileId' => 1, 'DbStarts' => 2, 'DbEnds' => 3, 'DbInstanceId' => 4, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbFileId' => 1, 'dbStarts' => 2, 'dbEnds' => 3, 'dbInstanceId' => 4, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::FILE_ID => 1, self::STARTS => 2, self::ENDS => 3, self::INSTANCE_ID => 4, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'FILE_ID' => 1, 'STARTS' => 2, 'ENDS' => 3, 'INSTANCE_ID' => 4, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'file_id' => 1, 'starts' => 2, 'ends' => 3, 'instance_id' => 4, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcPlayoutHistoryPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcPlayoutHistoryPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcPlayoutHistoryPeer::ID); - $criteria->addSelectColumn(CcPlayoutHistoryPeer::FILE_ID); - $criteria->addSelectColumn(CcPlayoutHistoryPeer::STARTS); - $criteria->addSelectColumn(CcPlayoutHistoryPeer::ENDS); - $criteria->addSelectColumn(CcPlayoutHistoryPeer::INSTANCE_ID); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.FILE_ID'); - $criteria->addSelectColumn($alias . '.STARTS'); - $criteria->addSelectColumn($alias . '.ENDS'); - $criteria->addSelectColumn($alias . '.INSTANCE_ID'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlayoutHistoryPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlayoutHistoryPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcPlayoutHistory - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcPlayoutHistoryPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcPlayoutHistoryPeer::populateObjects(CcPlayoutHistoryPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcPlayoutHistoryPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcPlayoutHistory $value A CcPlayoutHistory object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcPlayoutHistory $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcPlayoutHistory object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcPlayoutHistory) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPlayoutHistory object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcPlayoutHistory Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_playout_history - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - // Invalidate objects in CcPlayoutHistoryMetaDataPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcPlayoutHistoryMetaDataPeer::clearInstancePool(); - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcPlayoutHistoryPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcPlayoutHistoryPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcPlayoutHistoryPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcPlayoutHistory object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcPlayoutHistoryPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcPlayoutHistoryPeer::NUM_COLUMNS; - } else { - $cls = CcPlayoutHistoryPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcPlayoutHistoryPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcFiles table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlayoutHistoryPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlayoutHistoryPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlayoutHistoryPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcShowInstances table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcShowInstances(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlayoutHistoryPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlayoutHistoryPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlayoutHistoryPeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcPlayoutHistory objects pre-filled with their CcFiles objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlayoutHistory objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlayoutHistoryPeer::addSelectColumns($criteria); - $startcol = (CcPlayoutHistoryPeer::NUM_COLUMNS - CcPlayoutHistoryPeer::NUM_LAZY_LOAD_COLUMNS); - CcFilesPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcPlayoutHistoryPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlayoutHistoryPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcPlayoutHistoryPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlayoutHistoryPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcFilesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcFilesPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcPlayoutHistory) to $obj2 (CcFiles) - $obj2->addCcPlayoutHistory($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcPlayoutHistory objects pre-filled with their CcShowInstances objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlayoutHistory objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcShowInstances(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlayoutHistoryPeer::addSelectColumns($criteria); - $startcol = (CcPlayoutHistoryPeer::NUM_COLUMNS - CcPlayoutHistoryPeer::NUM_LAZY_LOAD_COLUMNS); - CcShowInstancesPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcPlayoutHistoryPeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlayoutHistoryPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcPlayoutHistoryPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlayoutHistoryPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcShowInstancesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowInstancesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcShowInstancesPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcPlayoutHistory) to $obj2 (CcShowInstances) - $obj2->addCcPlayoutHistory($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlayoutHistoryPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlayoutHistoryPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlayoutHistoryPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $criteria->addJoin(CcPlayoutHistoryPeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcPlayoutHistory objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlayoutHistory objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlayoutHistoryPeer::addSelectColumns($criteria); - $startcol2 = (CcPlayoutHistoryPeer::NUM_COLUMNS - CcPlayoutHistoryPeer::NUM_LAZY_LOAD_COLUMNS); - - CcFilesPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcShowInstancesPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcShowInstancesPeer::NUM_COLUMNS - CcShowInstancesPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcPlayoutHistoryPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $criteria->addJoin(CcPlayoutHistoryPeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlayoutHistoryPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcPlayoutHistoryPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlayoutHistoryPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcFiles rows - - $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcFilesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcFilesPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcPlayoutHistory) to the collection in $obj2 (CcFiles) - $obj2->addCcPlayoutHistory($obj1); - } // if joined row not null - - // Add objects for joined CcShowInstances rows - - $key3 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcShowInstancesPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcShowInstancesPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcShowInstancesPeer::addInstanceToPool($obj3, $key3); - } // if obj3 loaded - - // Add the $obj1 (CcPlayoutHistory) to the collection in $obj3 (CcShowInstances) - $obj3->addCcPlayoutHistory($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcFiles table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlayoutHistoryPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlayoutHistoryPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlayoutHistoryPeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcShowInstances table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcShowInstances(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlayoutHistoryPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlayoutHistoryPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlayoutHistoryPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcPlayoutHistory objects pre-filled with all related objects except CcFiles. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlayoutHistory objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlayoutHistoryPeer::addSelectColumns($criteria); - $startcol2 = (CcPlayoutHistoryPeer::NUM_COLUMNS - CcPlayoutHistoryPeer::NUM_LAZY_LOAD_COLUMNS); - - CcShowInstancesPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcShowInstancesPeer::NUM_COLUMNS - CcShowInstancesPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcPlayoutHistoryPeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlayoutHistoryPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcPlayoutHistoryPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlayoutHistoryPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcShowInstances rows - - $key2 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcShowInstancesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowInstancesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcShowInstancesPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcPlayoutHistory) to the collection in $obj2 (CcShowInstances) - $obj2->addCcPlayoutHistory($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcPlayoutHistory objects pre-filled with all related objects except CcShowInstances. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlayoutHistory objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcShowInstances(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlayoutHistoryPeer::addSelectColumns($criteria); - $startcol2 = (CcPlayoutHistoryPeer::NUM_COLUMNS - CcPlayoutHistoryPeer::NUM_LAZY_LOAD_COLUMNS); - - CcFilesPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcPlayoutHistoryPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlayoutHistoryPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcPlayoutHistoryPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlayoutHistoryPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcFiles rows - - $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcFilesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcFilesPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcPlayoutHistory) to the collection in $obj2 (CcFiles) - $obj2->addCcPlayoutHistory($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcPlayoutHistoryPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcPlayoutHistoryPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcPlayoutHistoryTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcPlayoutHistoryPeer::CLASS_DEFAULT : CcPlayoutHistoryPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcPlayoutHistory or Criteria object. - * - * @param mixed $values Criteria or CcPlayoutHistory object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcPlayoutHistory object - } - - if ($criteria->containsKey(CcPlayoutHistoryPeer::ID) && $criteria->keyContainsValue(CcPlayoutHistoryPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlayoutHistoryPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcPlayoutHistory or Criteria object. - * - * @param mixed $values Criteria or CcPlayoutHistory object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcPlayoutHistoryPeer::ID); - $value = $criteria->remove(CcPlayoutHistoryPeer::ID); - if ($value) { - $selectCriteria->add(CcPlayoutHistoryPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcPlayoutHistoryPeer::TABLE_NAME); - } - - } else { // $values is CcPlayoutHistory object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_playout_history table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcPlayoutHistoryPeer::TABLE_NAME, $con, CcPlayoutHistoryPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcPlayoutHistoryPeer::clearInstancePool(); - CcPlayoutHistoryPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcPlayoutHistory or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcPlayoutHistory object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcPlayoutHistoryPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcPlayoutHistory) { // it's a model object - // invalidate the cache for this single object - CcPlayoutHistoryPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcPlayoutHistoryPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcPlayoutHistoryPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcPlayoutHistory object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcPlayoutHistory $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcPlayoutHistory $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcPlayoutHistoryPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcPlayoutHistoryPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcPlayoutHistoryPeer::DATABASE_NAME, CcPlayoutHistoryPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcPlayoutHistory - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcPlayoutHistoryPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcPlayoutHistoryPeer::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryPeer::ID, $pk); - - $v = CcPlayoutHistoryPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcPlayoutHistoryPeer::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryPeer::ID, $pks, Criteria::IN); - $objs = CcPlayoutHistoryPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcPlayoutHistoryPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_playout_history'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcPlayoutHistory'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcPlayoutHistoryTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 5; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 5; + + /** the column name for the id field */ + const ID = 'cc_playout_history.id'; + + /** the column name for the file_id field */ + const FILE_ID = 'cc_playout_history.file_id'; + + /** the column name for the starts field */ + const STARTS = 'cc_playout_history.starts'; + + /** the column name for the ends field */ + const ENDS = 'cc_playout_history.ends'; + + /** the column name for the instance_id field */ + const INSTANCE_ID = 'cc_playout_history.instance_id'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcPlayoutHistory objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcPlayoutHistory[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcPlayoutHistoryPeer::$fieldNames[CcPlayoutHistoryPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbFileId', 'DbStarts', 'DbEnds', 'DbInstanceId', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbFileId', 'dbStarts', 'dbEnds', 'dbInstanceId', ), + BasePeer::TYPE_COLNAME => array (CcPlayoutHistoryPeer::ID, CcPlayoutHistoryPeer::FILE_ID, CcPlayoutHistoryPeer::STARTS, CcPlayoutHistoryPeer::ENDS, CcPlayoutHistoryPeer::INSTANCE_ID, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'FILE_ID', 'STARTS', 'ENDS', 'INSTANCE_ID', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'file_id', 'starts', 'ends', 'instance_id', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcPlayoutHistoryPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbFileId' => 1, 'DbStarts' => 2, 'DbEnds' => 3, 'DbInstanceId' => 4, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbFileId' => 1, 'dbStarts' => 2, 'dbEnds' => 3, 'dbInstanceId' => 4, ), + BasePeer::TYPE_COLNAME => array (CcPlayoutHistoryPeer::ID => 0, CcPlayoutHistoryPeer::FILE_ID => 1, CcPlayoutHistoryPeer::STARTS => 2, CcPlayoutHistoryPeer::ENDS => 3, CcPlayoutHistoryPeer::INSTANCE_ID => 4, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'FILE_ID' => 1, 'STARTS' => 2, 'ENDS' => 3, 'INSTANCE_ID' => 4, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'file_id' => 1, 'starts' => 2, 'ends' => 3, 'instance_id' => 4, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcPlayoutHistoryPeer::getFieldNames($toType); + $key = isset(CcPlayoutHistoryPeer::$fieldKeys[$fromType][$name]) ? CcPlayoutHistoryPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcPlayoutHistoryPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcPlayoutHistoryPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcPlayoutHistoryPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcPlayoutHistoryPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcPlayoutHistoryPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcPlayoutHistoryPeer::ID); + $criteria->addSelectColumn(CcPlayoutHistoryPeer::FILE_ID); + $criteria->addSelectColumn(CcPlayoutHistoryPeer::STARTS); + $criteria->addSelectColumn(CcPlayoutHistoryPeer::ENDS); + $criteria->addSelectColumn(CcPlayoutHistoryPeer::INSTANCE_ID); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.file_id'); + $criteria->addSelectColumn($alias . '.starts'); + $criteria->addSelectColumn($alias . '.ends'); + $criteria->addSelectColumn($alias . '.instance_id'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlayoutHistoryPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlayoutHistoryPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcPlayoutHistory + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcPlayoutHistoryPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcPlayoutHistoryPeer::populateObjects(CcPlayoutHistoryPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcPlayoutHistoryPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcPlayoutHistory $obj A CcPlayoutHistory object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcPlayoutHistoryPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcPlayoutHistory object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcPlayoutHistory) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPlayoutHistory object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcPlayoutHistoryPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcPlayoutHistory Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcPlayoutHistoryPeer::$instances[$key])) { + return CcPlayoutHistoryPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcPlayoutHistoryPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcPlayoutHistoryPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_playout_history + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + // Invalidate objects in CcPlayoutHistoryMetaDataPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcPlayoutHistoryMetaDataPeer::clearInstancePool(); + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcPlayoutHistoryPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcPlayoutHistoryPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcPlayoutHistoryPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcPlayoutHistory object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcPlayoutHistoryPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcPlayoutHistoryPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcPlayoutHistoryPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcPlayoutHistoryPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcFiles table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlayoutHistoryPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlayoutHistoryPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlayoutHistoryPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcShowInstances table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcShowInstances(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlayoutHistoryPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlayoutHistoryPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlayoutHistoryPeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcPlayoutHistory objects pre-filled with their CcFiles objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlayoutHistory objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); + } + + CcPlayoutHistoryPeer::addSelectColumns($criteria); + $startcol = CcPlayoutHistoryPeer::NUM_HYDRATE_COLUMNS; + CcFilesPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcPlayoutHistoryPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlayoutHistoryPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcPlayoutHistoryPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlayoutHistoryPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcPlayoutHistory) to $obj2 (CcFiles) + $obj2->addCcPlayoutHistory($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcPlayoutHistory objects pre-filled with their CcShowInstances objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlayoutHistory objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcShowInstances(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); + } + + CcPlayoutHistoryPeer::addSelectColumns($criteria); + $startcol = CcPlayoutHistoryPeer::NUM_HYDRATE_COLUMNS; + CcShowInstancesPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcPlayoutHistoryPeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlayoutHistoryPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcPlayoutHistoryPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlayoutHistoryPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcShowInstancesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowInstancesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcShowInstancesPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcPlayoutHistory) to $obj2 (CcShowInstances) + $obj2->addCcPlayoutHistory($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlayoutHistoryPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlayoutHistoryPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlayoutHistoryPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $criteria->addJoin(CcPlayoutHistoryPeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcPlayoutHistory objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlayoutHistory objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); + } + + CcPlayoutHistoryPeer::addSelectColumns($criteria); + $startcol2 = CcPlayoutHistoryPeer::NUM_HYDRATE_COLUMNS; + + CcFilesPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcFilesPeer::NUM_HYDRATE_COLUMNS; + + CcShowInstancesPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcShowInstancesPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcPlayoutHistoryPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $criteria->addJoin(CcPlayoutHistoryPeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlayoutHistoryPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcPlayoutHistoryPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlayoutHistoryPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcFiles rows + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcPlayoutHistory) to the collection in $obj2 (CcFiles) + $obj2->addCcPlayoutHistory($obj1); + } // if joined row not null + + // Add objects for joined CcShowInstances rows + + $key3 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcShowInstancesPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcShowInstancesPeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcShowInstancesPeer::addInstanceToPool($obj3, $key3); + } // if obj3 loaded + + // Add the $obj1 (CcPlayoutHistory) to the collection in $obj3 (CcShowInstances) + $obj3->addCcPlayoutHistory($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcFiles table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlayoutHistoryPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlayoutHistoryPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlayoutHistoryPeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcShowInstances table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcShowInstances(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlayoutHistoryPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlayoutHistoryPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlayoutHistoryPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcPlayoutHistory objects pre-filled with all related objects except CcFiles. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlayoutHistory objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); + } + + CcPlayoutHistoryPeer::addSelectColumns($criteria); + $startcol2 = CcPlayoutHistoryPeer::NUM_HYDRATE_COLUMNS; + + CcShowInstancesPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcShowInstancesPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcPlayoutHistoryPeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlayoutHistoryPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcPlayoutHistoryPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlayoutHistoryPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcShowInstances rows + + $key2 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcShowInstancesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowInstancesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcShowInstancesPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcPlayoutHistory) to the collection in $obj2 (CcShowInstances) + $obj2->addCcPlayoutHistory($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcPlayoutHistory objects pre-filled with all related objects except CcShowInstances. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlayoutHistory objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcShowInstances(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); + } + + CcPlayoutHistoryPeer::addSelectColumns($criteria); + $startcol2 = CcPlayoutHistoryPeer::NUM_HYDRATE_COLUMNS; + + CcFilesPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcFilesPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcPlayoutHistoryPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlayoutHistoryPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlayoutHistoryPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcPlayoutHistoryPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlayoutHistoryPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcFiles rows + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcPlayoutHistory) to the collection in $obj2 (CcFiles) + $obj2->addCcPlayoutHistory($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcPlayoutHistoryPeer::DATABASE_NAME)->getTable(CcPlayoutHistoryPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcPlayoutHistoryPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcPlayoutHistoryPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcPlayoutHistoryTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcPlayoutHistoryPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcPlayoutHistory or Criteria object. + * + * @param mixed $values Criteria or CcPlayoutHistory object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcPlayoutHistory object + } + + if ($criteria->containsKey(CcPlayoutHistoryPeer::ID) && $criteria->keyContainsValue(CcPlayoutHistoryPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlayoutHistoryPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcPlayoutHistory or Criteria object. + * + * @param mixed $values Criteria or CcPlayoutHistory object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcPlayoutHistoryPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcPlayoutHistoryPeer::ID); + $value = $criteria->remove(CcPlayoutHistoryPeer::ID); + if ($value) { + $selectCriteria->add(CcPlayoutHistoryPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcPlayoutHistoryPeer::TABLE_NAME); + } + + } else { // $values is CcPlayoutHistory object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_playout_history table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcPlayoutHistoryPeer::TABLE_NAME, $con, CcPlayoutHistoryPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcPlayoutHistoryPeer::clearInstancePool(); + CcPlayoutHistoryPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcPlayoutHistory or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcPlayoutHistory object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcPlayoutHistoryPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcPlayoutHistory) { // it's a model object + // invalidate the cache for this single object + CcPlayoutHistoryPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcPlayoutHistoryPeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcPlayoutHistoryPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcPlayoutHistoryPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcPlayoutHistory object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcPlayoutHistory $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcPlayoutHistoryPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcPlayoutHistoryPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcPlayoutHistoryPeer::DATABASE_NAME, CcPlayoutHistoryPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcPlayoutHistory + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcPlayoutHistoryPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcPlayoutHistoryPeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryPeer::ID, $pk); + + $v = CcPlayoutHistoryPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcPlayoutHistory[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcPlayoutHistoryPeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryPeer::ID, $pks, Criteria::IN); + $objs = CcPlayoutHistoryPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcPlayoutHistoryPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryQuery.php index b772a0d7ab..f9fcc3ee69 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryQuery.php @@ -4,506 +4,701 @@ /** * Base class that represents a query for the 'cc_playout_history' table. * - * * - * @method CcPlayoutHistoryQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcPlayoutHistoryQuery orderByDbFileId($order = Criteria::ASC) Order by the file_id column - * @method CcPlayoutHistoryQuery orderByDbStarts($order = Criteria::ASC) Order by the starts column - * @method CcPlayoutHistoryQuery orderByDbEnds($order = Criteria::ASC) Order by the ends column - * @method CcPlayoutHistoryQuery orderByDbInstanceId($order = Criteria::ASC) Order by the instance_id column * - * @method CcPlayoutHistoryQuery groupByDbId() Group by the id column - * @method CcPlayoutHistoryQuery groupByDbFileId() Group by the file_id column - * @method CcPlayoutHistoryQuery groupByDbStarts() Group by the starts column - * @method CcPlayoutHistoryQuery groupByDbEnds() Group by the ends column - * @method CcPlayoutHistoryQuery groupByDbInstanceId() Group by the instance_id column + * @method CcPlayoutHistoryQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcPlayoutHistoryQuery orderByDbFileId($order = Criteria::ASC) Order by the file_id column + * @method CcPlayoutHistoryQuery orderByDbStarts($order = Criteria::ASC) Order by the starts column + * @method CcPlayoutHistoryQuery orderByDbEnds($order = Criteria::ASC) Order by the ends column + * @method CcPlayoutHistoryQuery orderByDbInstanceId($order = Criteria::ASC) Order by the instance_id column * - * @method CcPlayoutHistoryQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcPlayoutHistoryQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcPlayoutHistoryQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcPlayoutHistoryQuery groupByDbId() Group by the id column + * @method CcPlayoutHistoryQuery groupByDbFileId() Group by the file_id column + * @method CcPlayoutHistoryQuery groupByDbStarts() Group by the starts column + * @method CcPlayoutHistoryQuery groupByDbEnds() Group by the ends column + * @method CcPlayoutHistoryQuery groupByDbInstanceId() Group by the instance_id column * - * @method CcPlayoutHistoryQuery leftJoinCcFiles($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFiles relation - * @method CcPlayoutHistoryQuery rightJoinCcFiles($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFiles relation - * @method CcPlayoutHistoryQuery innerJoinCcFiles($relationAlias = '') Adds a INNER JOIN clause to the query using the CcFiles relation + * @method CcPlayoutHistoryQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcPlayoutHistoryQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcPlayoutHistoryQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcPlayoutHistoryQuery leftJoinCcShowInstances($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShowInstances relation - * @method CcPlayoutHistoryQuery rightJoinCcShowInstances($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShowInstances relation - * @method CcPlayoutHistoryQuery innerJoinCcShowInstances($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShowInstances relation + * @method CcPlayoutHistoryQuery leftJoinCcFiles($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcFiles relation + * @method CcPlayoutHistoryQuery rightJoinCcFiles($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcFiles relation + * @method CcPlayoutHistoryQuery innerJoinCcFiles($relationAlias = null) Adds a INNER JOIN clause to the query using the CcFiles relation * - * @method CcPlayoutHistoryQuery leftJoinCcPlayoutHistoryMetaData($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPlayoutHistoryMetaData relation - * @method CcPlayoutHistoryQuery rightJoinCcPlayoutHistoryMetaData($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPlayoutHistoryMetaData relation - * @method CcPlayoutHistoryQuery innerJoinCcPlayoutHistoryMetaData($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPlayoutHistoryMetaData relation + * @method CcPlayoutHistoryQuery leftJoinCcShowInstances($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcShowInstances relation + * @method CcPlayoutHistoryQuery rightJoinCcShowInstances($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcShowInstances relation + * @method CcPlayoutHistoryQuery innerJoinCcShowInstances($relationAlias = null) Adds a INNER JOIN clause to the query using the CcShowInstances relation * - * @method CcPlayoutHistory findOne(PropelPDO $con = null) Return the first CcPlayoutHistory matching the query - * @method CcPlayoutHistory findOneOrCreate(PropelPDO $con = null) Return the first CcPlayoutHistory matching the query, or a new CcPlayoutHistory object populated from the query conditions when no match is found + * @method CcPlayoutHistoryQuery leftJoinCcPlayoutHistoryMetaData($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcPlayoutHistoryMetaData relation + * @method CcPlayoutHistoryQuery rightJoinCcPlayoutHistoryMetaData($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcPlayoutHistoryMetaData relation + * @method CcPlayoutHistoryQuery innerJoinCcPlayoutHistoryMetaData($relationAlias = null) Adds a INNER JOIN clause to the query using the CcPlayoutHistoryMetaData relation * - * @method CcPlayoutHistory findOneByDbId(int $id) Return the first CcPlayoutHistory filtered by the id column - * @method CcPlayoutHistory findOneByDbFileId(int $file_id) Return the first CcPlayoutHistory filtered by the file_id column - * @method CcPlayoutHistory findOneByDbStarts(string $starts) Return the first CcPlayoutHistory filtered by the starts column - * @method CcPlayoutHistory findOneByDbEnds(string $ends) Return the first CcPlayoutHistory filtered by the ends column - * @method CcPlayoutHistory findOneByDbInstanceId(int $instance_id) Return the first CcPlayoutHistory filtered by the instance_id column + * @method CcPlayoutHistory findOne(PropelPDO $con = null) Return the first CcPlayoutHistory matching the query + * @method CcPlayoutHistory findOneOrCreate(PropelPDO $con = null) Return the first CcPlayoutHistory matching the query, or a new CcPlayoutHistory object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcPlayoutHistory objects filtered by the id column - * @method array findByDbFileId(int $file_id) Return CcPlayoutHistory objects filtered by the file_id column - * @method array findByDbStarts(string $starts) Return CcPlayoutHistory objects filtered by the starts column - * @method array findByDbEnds(string $ends) Return CcPlayoutHistory objects filtered by the ends column - * @method array findByDbInstanceId(int $instance_id) Return CcPlayoutHistory objects filtered by the instance_id column + * @method CcPlayoutHistory findOneByDbFileId(int $file_id) Return the first CcPlayoutHistory filtered by the file_id column + * @method CcPlayoutHistory findOneByDbStarts(string $starts) Return the first CcPlayoutHistory filtered by the starts column + * @method CcPlayoutHistory findOneByDbEnds(string $ends) Return the first CcPlayoutHistory filtered by the ends column + * @method CcPlayoutHistory findOneByDbInstanceId(int $instance_id) Return the first CcPlayoutHistory filtered by the instance_id column + * + * @method array findByDbId(int $id) Return CcPlayoutHistory objects filtered by the id column + * @method array findByDbFileId(int $file_id) Return CcPlayoutHistory objects filtered by the file_id column + * @method array findByDbStarts(string $starts) Return CcPlayoutHistory objects filtered by the starts column + * @method array findByDbEnds(string $ends) Return CcPlayoutHistory objects filtered by the ends column + * @method array findByDbInstanceId(int $instance_id) Return CcPlayoutHistory objects filtered by the instance_id column * * @package propel.generator.airtime.om */ abstract class BaseCcPlayoutHistoryQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcPlayoutHistoryQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcPlayoutHistory'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcPlayoutHistoryQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcPlayoutHistoryQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcPlayoutHistoryQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcPlayoutHistoryQuery) { + return $criteria; + } + $query = new CcPlayoutHistoryQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcPlayoutHistory|CcPlayoutHistory[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcPlayoutHistoryPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlayoutHistory A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlayoutHistory A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "file_id", "starts", "ends", "instance_id" FROM "cc_playout_history" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcPlayoutHistory(); + $obj->hydrate($row); + CcPlayoutHistoryPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlayoutHistory|CcPlayoutHistory[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcPlayoutHistory[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcPlayoutHistoryQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcPlayoutHistoryPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcPlayoutHistoryQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcPlayoutHistoryPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcPlayoutHistoryPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcPlayoutHistoryPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the file_id column + * + * Example usage: + * + * $query->filterByDbFileId(1234); // WHERE file_id = 1234 + * $query->filterByDbFileId(array(12, 34)); // WHERE file_id IN (12, 34) + * $query->filterByDbFileId(array('min' => 12)); // WHERE file_id >= 12 + * $query->filterByDbFileId(array('max' => 12)); // WHERE file_id <= 12 + * + * + * @see filterByCcFiles() + * + * @param mixed $dbFileId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryQuery The current query, for fluid interface + */ + public function filterByDbFileId($dbFileId = null, $comparison = null) + { + if (is_array($dbFileId)) { + $useMinMax = false; + if (isset($dbFileId['min'])) { + $this->addUsingAlias(CcPlayoutHistoryPeer::FILE_ID, $dbFileId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbFileId['max'])) { + $this->addUsingAlias(CcPlayoutHistoryPeer::FILE_ID, $dbFileId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryPeer::FILE_ID, $dbFileId, $comparison); + } + + /** + * Filter the query on the starts column + * + * Example usage: + * + * $query->filterByDbStarts('2011-03-14'); // WHERE starts = '2011-03-14' + * $query->filterByDbStarts('now'); // WHERE starts = '2011-03-14' + * $query->filterByDbStarts(array('max' => 'yesterday')); // WHERE starts < '2011-03-13' + * + * + * @param mixed $dbStarts The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryQuery The current query, for fluid interface + */ + public function filterByDbStarts($dbStarts = null, $comparison = null) + { + if (is_array($dbStarts)) { + $useMinMax = false; + if (isset($dbStarts['min'])) { + $this->addUsingAlias(CcPlayoutHistoryPeer::STARTS, $dbStarts['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbStarts['max'])) { + $this->addUsingAlias(CcPlayoutHistoryPeer::STARTS, $dbStarts['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryPeer::STARTS, $dbStarts, $comparison); + } + + /** + * Filter the query on the ends column + * + * Example usage: + * + * $query->filterByDbEnds('2011-03-14'); // WHERE ends = '2011-03-14' + * $query->filterByDbEnds('now'); // WHERE ends = '2011-03-14' + * $query->filterByDbEnds(array('max' => 'yesterday')); // WHERE ends < '2011-03-13' + * + * + * @param mixed $dbEnds The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryQuery The current query, for fluid interface + */ + public function filterByDbEnds($dbEnds = null, $comparison = null) + { + if (is_array($dbEnds)) { + $useMinMax = false; + if (isset($dbEnds['min'])) { + $this->addUsingAlias(CcPlayoutHistoryPeer::ENDS, $dbEnds['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbEnds['max'])) { + $this->addUsingAlias(CcPlayoutHistoryPeer::ENDS, $dbEnds['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryPeer::ENDS, $dbEnds, $comparison); + } + + /** + * Filter the query on the instance_id column + * + * Example usage: + * + * $query->filterByDbInstanceId(1234); // WHERE instance_id = 1234 + * $query->filterByDbInstanceId(array(12, 34)); // WHERE instance_id IN (12, 34) + * $query->filterByDbInstanceId(array('min' => 12)); // WHERE instance_id >= 12 + * $query->filterByDbInstanceId(array('max' => 12)); // WHERE instance_id <= 12 + * + * + * @see filterByCcShowInstances() + * + * @param mixed $dbInstanceId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryQuery The current query, for fluid interface + */ + public function filterByDbInstanceId($dbInstanceId = null, $comparison = null) + { + if (is_array($dbInstanceId)) { + $useMinMax = false; + if (isset($dbInstanceId['min'])) { + $this->addUsingAlias(CcPlayoutHistoryPeer::INSTANCE_ID, $dbInstanceId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbInstanceId['max'])) { + $this->addUsingAlias(CcPlayoutHistoryPeer::INSTANCE_ID, $dbInstanceId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryPeer::INSTANCE_ID, $dbInstanceId, $comparison); + } + + /** + * Filter the query by a related CcFiles object + * + * @param CcFiles|PropelObjectCollection $ccFiles The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcFiles($ccFiles, $comparison = null) + { + if ($ccFiles instanceof CcFiles) { + return $this + ->addUsingAlias(CcPlayoutHistoryPeer::FILE_ID, $ccFiles->getDbId(), $comparison); + } elseif ($ccFiles instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcPlayoutHistoryPeer::FILE_ID, $ccFiles->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcFiles() only accepts arguments of type CcFiles or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcFiles relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcPlayoutHistoryQuery The current query, for fluid interface + */ + public function joinCcFiles($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcFiles'); + + // 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, 'CcFiles'); + } + + return $this; + } + + /** + * Use the CcFiles relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query + */ + public function useCcFilesQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcFiles($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcFiles', 'CcFilesQuery'); + } + + /** + * Filter the query by a related CcShowInstances object + * + * @param CcShowInstances|PropelObjectCollection $ccShowInstances The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcShowInstances($ccShowInstances, $comparison = null) + { + if ($ccShowInstances instanceof CcShowInstances) { + return $this + ->addUsingAlias(CcPlayoutHistoryPeer::INSTANCE_ID, $ccShowInstances->getDbId(), $comparison); + } elseif ($ccShowInstances instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcPlayoutHistoryPeer::INSTANCE_ID, $ccShowInstances->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcShowInstances() only accepts arguments of type CcShowInstances or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcShowInstances relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcPlayoutHistoryQuery The current query, for fluid interface + */ + public function joinCcShowInstances($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcShowInstances'); + + // 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, 'CcShowInstances'); + } + + return $this; + } + + /** + * Use the CcShowInstances relation CcShowInstances 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 CcShowInstancesQuery A secondary query class using the current class as primary query + */ + public function useCcShowInstancesQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcShowInstances($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcShowInstances', 'CcShowInstancesQuery'); + } + + /** + * Filter the query by a related CcPlayoutHistoryMetaData object + * + * @param CcPlayoutHistoryMetaData|PropelObjectCollection $ccPlayoutHistoryMetaData the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcPlayoutHistoryMetaData($ccPlayoutHistoryMetaData, $comparison = null) + { + if ($ccPlayoutHistoryMetaData instanceof CcPlayoutHistoryMetaData) { + return $this + ->addUsingAlias(CcPlayoutHistoryPeer::ID, $ccPlayoutHistoryMetaData->getDbHistoryId(), $comparison); + } elseif ($ccPlayoutHistoryMetaData instanceof PropelObjectCollection) { + return $this + ->useCcPlayoutHistoryMetaDataQuery() + ->filterByPrimaryKeys($ccPlayoutHistoryMetaData->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcPlayoutHistoryMetaData() only accepts arguments of type CcPlayoutHistoryMetaData or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcPlayoutHistoryMetaData relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcPlayoutHistoryQuery The current query, for fluid interface + */ + public function joinCcPlayoutHistoryMetaData($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcPlayoutHistoryMetaData'); + + // 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, 'CcPlayoutHistoryMetaData'); + } + + return $this; + } + + /** + * Use the CcPlayoutHistoryMetaData relation CcPlayoutHistoryMetaData 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 CcPlayoutHistoryMetaDataQuery A secondary query class using the current class as primary query + */ + public function useCcPlayoutHistoryMetaDataQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcPlayoutHistoryMetaData($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcPlayoutHistoryMetaData', 'CcPlayoutHistoryMetaDataQuery'); + } + + /** + * Exclude object from result + * + * @param CcPlayoutHistory $ccPlayoutHistory Object to remove from the list of results + * + * @return CcPlayoutHistoryQuery The current query, for fluid interface + */ + public function prune($ccPlayoutHistory = null) + { + if ($ccPlayoutHistory) { + $this->addUsingAlias(CcPlayoutHistoryPeer::ID, $ccPlayoutHistory->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcPlayoutHistoryQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcPlayoutHistory', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcPlayoutHistoryQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcPlayoutHistoryQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcPlayoutHistoryQuery) { - return $criteria; - } - $query = new CcPlayoutHistoryQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcPlayoutHistory|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcPlayoutHistoryPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcPlayoutHistoryQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcPlayoutHistoryPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcPlayoutHistoryQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcPlayoutHistoryPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcPlayoutHistoryPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the file_id column - * - * @param int|array $dbFileId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryQuery The current query, for fluid interface - */ - public function filterByDbFileId($dbFileId = null, $comparison = null) - { - if (is_array($dbFileId)) { - $useMinMax = false; - if (isset($dbFileId['min'])) { - $this->addUsingAlias(CcPlayoutHistoryPeer::FILE_ID, $dbFileId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbFileId['max'])) { - $this->addUsingAlias(CcPlayoutHistoryPeer::FILE_ID, $dbFileId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlayoutHistoryPeer::FILE_ID, $dbFileId, $comparison); - } - - /** - * Filter the query on the starts column - * - * @param string|array $dbStarts The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryQuery The current query, for fluid interface - */ - public function filterByDbStarts($dbStarts = null, $comparison = null) - { - if (is_array($dbStarts)) { - $useMinMax = false; - if (isset($dbStarts['min'])) { - $this->addUsingAlias(CcPlayoutHistoryPeer::STARTS, $dbStarts['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbStarts['max'])) { - $this->addUsingAlias(CcPlayoutHistoryPeer::STARTS, $dbStarts['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlayoutHistoryPeer::STARTS, $dbStarts, $comparison); - } - - /** - * Filter the query on the ends column - * - * @param string|array $dbEnds The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryQuery The current query, for fluid interface - */ - public function filterByDbEnds($dbEnds = null, $comparison = null) - { - if (is_array($dbEnds)) { - $useMinMax = false; - if (isset($dbEnds['min'])) { - $this->addUsingAlias(CcPlayoutHistoryPeer::ENDS, $dbEnds['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbEnds['max'])) { - $this->addUsingAlias(CcPlayoutHistoryPeer::ENDS, $dbEnds['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlayoutHistoryPeer::ENDS, $dbEnds, $comparison); - } - - /** - * Filter the query on the instance_id column - * - * @param int|array $dbInstanceId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryQuery The current query, for fluid interface - */ - public function filterByDbInstanceId($dbInstanceId = null, $comparison = null) - { - if (is_array($dbInstanceId)) { - $useMinMax = false; - if (isset($dbInstanceId['min'])) { - $this->addUsingAlias(CcPlayoutHistoryPeer::INSTANCE_ID, $dbInstanceId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbInstanceId['max'])) { - $this->addUsingAlias(CcPlayoutHistoryPeer::INSTANCE_ID, $dbInstanceId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlayoutHistoryPeer::INSTANCE_ID, $dbInstanceId, $comparison); - } - - /** - * Filter the query by a related CcFiles object - * - * @param CcFiles $ccFiles the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryQuery The current query, for fluid interface - */ - public function filterByCcFiles($ccFiles, $comparison = null) - { - return $this - ->addUsingAlias(CcPlayoutHistoryPeer::FILE_ID, $ccFiles->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcFiles relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcPlayoutHistoryQuery The current query, for fluid interface - */ - public function joinCcFiles($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcFiles'); - - // 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, 'CcFiles'); - } - - return $this; - } - - /** - * Use the CcFiles relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query - */ - public function useCcFilesQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcFiles($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcFiles', 'CcFilesQuery'); - } - - /** - * Filter the query by a related CcShowInstances object - * - * @param CcShowInstances $ccShowInstances the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryQuery The current query, for fluid interface - */ - public function filterByCcShowInstances($ccShowInstances, $comparison = null) - { - return $this - ->addUsingAlias(CcPlayoutHistoryPeer::INSTANCE_ID, $ccShowInstances->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcShowInstances relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcPlayoutHistoryQuery The current query, for fluid interface - */ - public function joinCcShowInstances($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcShowInstances'); - - // 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, 'CcShowInstances'); - } - - return $this; - } - - /** - * Use the CcShowInstances relation CcShowInstances 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 CcShowInstancesQuery A secondary query class using the current class as primary query - */ - public function useCcShowInstancesQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcShowInstances($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcShowInstances', 'CcShowInstancesQuery'); - } - - /** - * Filter the query by a related CcPlayoutHistoryMetaData object - * - * @param CcPlayoutHistoryMetaData $ccPlayoutHistoryMetaData the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryQuery The current query, for fluid interface - */ - public function filterByCcPlayoutHistoryMetaData($ccPlayoutHistoryMetaData, $comparison = null) - { - return $this - ->addUsingAlias(CcPlayoutHistoryPeer::ID, $ccPlayoutHistoryMetaData->getDbHistoryId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcPlayoutHistoryMetaData relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcPlayoutHistoryQuery The current query, for fluid interface - */ - public function joinCcPlayoutHistoryMetaData($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcPlayoutHistoryMetaData'); - - // 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, 'CcPlayoutHistoryMetaData'); - } - - return $this; - } - - /** - * Use the CcPlayoutHistoryMetaData relation CcPlayoutHistoryMetaData 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 CcPlayoutHistoryMetaDataQuery A secondary query class using the current class as primary query - */ - public function useCcPlayoutHistoryMetaDataQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcPlayoutHistoryMetaData($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcPlayoutHistoryMetaData', 'CcPlayoutHistoryMetaDataQuery'); - } - - /** - * Exclude object from result - * - * @param CcPlayoutHistory $ccPlayoutHistory Object to remove from the list of results - * - * @return CcPlayoutHistoryQuery The current query, for fluid interface - */ - public function prune($ccPlayoutHistory = null) - { - if ($ccPlayoutHistory) { - $this->addUsingAlias(CcPlayoutHistoryPeer::ID, $ccPlayoutHistory->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcPlayoutHistoryQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplate.php b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplate.php index 222227af62..6a2b9230f9 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplate.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplate.php @@ -4,913 +4,1194 @@ /** * Base class that represents a row from the 'cc_playout_history_template' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcPlayoutHistoryTemplate extends BaseObject implements Persistent +abstract class BaseCcPlayoutHistoryTemplate extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcPlayoutHistoryTemplatePeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcPlayoutHistoryTemplatePeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the name field. - * @var string - */ - protected $name; - - /** - * The value for the type field. - * @var string - */ - protected $type; - - /** - * @var array CcPlayoutHistoryTemplateField[] Collection to store aggregation of CcPlayoutHistoryTemplateField objects. - */ - protected $collCcPlayoutHistoryTemplateFields; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [name] column value. - * - * @return string - */ - public function getDbName() - { - return $this->name; - } - - /** - * Get the [type] column value. - * - * @return string - */ - public function getDbType() - { - return $this->type; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcPlayoutHistoryTemplate The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcPlayoutHistoryTemplatePeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [name] column. - * - * @param string $v new value - * @return CcPlayoutHistoryTemplate The current object (for fluent API support) - */ - public function setDbName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->name !== $v) { - $this->name = $v; - $this->modifiedColumns[] = CcPlayoutHistoryTemplatePeer::NAME; - } - - return $this; - } // setDbName() - - /** - * Set the value of [type] column. - * - * @param string $v new value - * @return CcPlayoutHistoryTemplate The current object (for fluent API support) - */ - public function setDbType($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->type !== $v) { - $this->type = $v; - $this->modifiedColumns[] = CcPlayoutHistoryTemplatePeer::TYPE; - } - - return $this; - } // setDbType() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->type = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 3; // 3 = CcPlayoutHistoryTemplatePeer::NUM_COLUMNS - CcPlayoutHistoryTemplatePeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcPlayoutHistoryTemplate object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcPlayoutHistoryTemplatePeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->collCcPlayoutHistoryTemplateFields = null; - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcPlayoutHistoryTemplateQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcPlayoutHistoryTemplatePeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcPlayoutHistoryTemplatePeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcPlayoutHistoryTemplatePeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlayoutHistoryTemplatePeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows = 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows = CcPlayoutHistoryTemplatePeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - if ($this->collCcPlayoutHistoryTemplateFields !== null) { - foreach ($this->collCcPlayoutHistoryTemplateFields as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - if (($retval = CcPlayoutHistoryTemplatePeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - if ($this->collCcPlayoutHistoryTemplateFields !== null) { - foreach ($this->collCcPlayoutHistoryTemplateFields as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPlayoutHistoryTemplatePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbName(); - break; - case 2: - return $this->getDbType(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) - { - $keys = CcPlayoutHistoryTemplatePeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbName(), - $keys[2] => $this->getDbType(), - ); - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPlayoutHistoryTemplatePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbName($value); - break; - case 2: - $this->setDbType($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcPlayoutHistoryTemplatePeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbType($arr[$keys[2]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); - - if ($this->isColumnModified(CcPlayoutHistoryTemplatePeer::ID)) $criteria->add(CcPlayoutHistoryTemplatePeer::ID, $this->id); - if ($this->isColumnModified(CcPlayoutHistoryTemplatePeer::NAME)) $criteria->add(CcPlayoutHistoryTemplatePeer::NAME, $this->name); - if ($this->isColumnModified(CcPlayoutHistoryTemplatePeer::TYPE)) $criteria->add(CcPlayoutHistoryTemplatePeer::TYPE, $this->type); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryTemplatePeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcPlayoutHistoryTemplate (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbName($this->name); - $copyObj->setDbType($this->type); - - if ($deepCopy) { - // important: temporarily setNew(false) because this affects the behavior of - // the getter/setter methods for fkey referrer objects. - $copyObj->setNew(false); - - foreach ($this->getCcPlayoutHistoryTemplateFields() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcPlayoutHistoryTemplateField($relObj->copy($deepCopy)); - } - } - - } // if ($deepCopy) - - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcPlayoutHistoryTemplate Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcPlayoutHistoryTemplatePeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcPlayoutHistoryTemplatePeer(); - } - return self::$peer; - } - - /** - * Clears out the collCcPlayoutHistoryTemplateFields 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 addCcPlayoutHistoryTemplateFields() - */ - public function clearCcPlayoutHistoryTemplateFields() - { - $this->collCcPlayoutHistoryTemplateFields = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcPlayoutHistoryTemplateFields collection. - * - * By default this just sets the collCcPlayoutHistoryTemplateFields collection to an empty array (like clearcollCcPlayoutHistoryTemplateFields()); - * 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 initCcPlayoutHistoryTemplateFields() - { - $this->collCcPlayoutHistoryTemplateFields = new PropelObjectCollection(); - $this->collCcPlayoutHistoryTemplateFields->setModel('CcPlayoutHistoryTemplateField'); - } - - /** - * Gets an array of CcPlayoutHistoryTemplateField 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 CcPlayoutHistoryTemplate 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 CcPlayoutHistoryTemplateField[] List of CcPlayoutHistoryTemplateField objects - * @throws PropelException - */ - public function getCcPlayoutHistoryTemplateFields($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcPlayoutHistoryTemplateFields || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlayoutHistoryTemplateFields) { - // return empty collection - $this->initCcPlayoutHistoryTemplateFields(); - } else { - $collCcPlayoutHistoryTemplateFields = CcPlayoutHistoryTemplateFieldQuery::create(null, $criteria) - ->filterByCcPlayoutHistoryTemplate($this) - ->find($con); - if (null !== $criteria) { - return $collCcPlayoutHistoryTemplateFields; - } - $this->collCcPlayoutHistoryTemplateFields = $collCcPlayoutHistoryTemplateFields; - } - } - return $this->collCcPlayoutHistoryTemplateFields; - } - - /** - * Returns the number of related CcPlayoutHistoryTemplateField objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcPlayoutHistoryTemplateField objects. - * @throws PropelException - */ - public function countCcPlayoutHistoryTemplateFields(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcPlayoutHistoryTemplateFields || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlayoutHistoryTemplateFields) { - return 0; - } else { - $query = CcPlayoutHistoryTemplateFieldQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcPlayoutHistoryTemplate($this) - ->count($con); - } - } else { - return count($this->collCcPlayoutHistoryTemplateFields); - } - } - - /** - * Method called to associate a CcPlayoutHistoryTemplateField object to this object - * through the CcPlayoutHistoryTemplateField foreign key attribute. - * - * @param CcPlayoutHistoryTemplateField $l CcPlayoutHistoryTemplateField - * @return void - * @throws PropelException - */ - public function addCcPlayoutHistoryTemplateField(CcPlayoutHistoryTemplateField $l) - { - if ($this->collCcPlayoutHistoryTemplateFields === null) { - $this->initCcPlayoutHistoryTemplateFields(); - } - if (!$this->collCcPlayoutHistoryTemplateFields->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcPlayoutHistoryTemplateFields[]= $l; - $l->setCcPlayoutHistoryTemplate($this); - } - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->name = null; - $this->type = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - if ($this->collCcPlayoutHistoryTemplateFields) { - foreach ((array) $this->collCcPlayoutHistoryTemplateFields as $o) { - $o->clearAllReferences($deep); - } - } - } // if ($deep) - - $this->collCcPlayoutHistoryTemplateFields = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcPlayoutHistoryTemplate + /** + * Peer class name + */ + const PEER = 'CcPlayoutHistoryTemplatePeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcPlayoutHistoryTemplatePeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the name field. + * @var string + */ + protected $name; + + /** + * The value for the type field. + * @var string + */ + protected $type; + + /** + * @var PropelObjectCollection|CcPlayoutHistoryTemplateField[] Collection to store aggregation of CcPlayoutHistoryTemplateField objects. + */ + protected $collCcPlayoutHistoryTemplateFields; + protected $collCcPlayoutHistoryTemplateFieldsPartial; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccPlayoutHistoryTemplateFieldsScheduledForDeletion = null; + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [name] column value. + * + * @return string + */ + public function getDbName() + { + + return $this->name; + } + + /** + * Get the [type] column value. + * + * @return string + */ + public function getDbType() + { + + return $this->type; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcPlayoutHistoryTemplate The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcPlayoutHistoryTemplatePeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [name] column. + * + * @param string $v new value + * @return CcPlayoutHistoryTemplate The current object (for fluent API support) + */ + public function setDbName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->name !== $v) { + $this->name = $v; + $this->modifiedColumns[] = CcPlayoutHistoryTemplatePeer::NAME; + } + + + return $this; + } // setDbName() + + /** + * Set the value of [type] column. + * + * @param string $v new value + * @return CcPlayoutHistoryTemplate The current object (for fluent API support) + */ + public function setDbType($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->type !== $v) { + $this->type = $v; + $this->modifiedColumns[] = CcPlayoutHistoryTemplatePeer::TYPE; + } + + + return $this; + } // setDbType() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->type = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 3; // 3 = CcPlayoutHistoryTemplatePeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcPlayoutHistoryTemplate object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcPlayoutHistoryTemplatePeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->collCcPlayoutHistoryTemplateFields = null; + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcPlayoutHistoryTemplateQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcPlayoutHistoryTemplatePeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + if ($this->ccPlayoutHistoryTemplateFieldsScheduledForDeletion !== null) { + if (!$this->ccPlayoutHistoryTemplateFieldsScheduledForDeletion->isEmpty()) { + CcPlayoutHistoryTemplateFieldQuery::create() + ->filterByPrimaryKeys($this->ccPlayoutHistoryTemplateFieldsScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccPlayoutHistoryTemplateFieldsScheduledForDeletion = null; + } + } + + if ($this->collCcPlayoutHistoryTemplateFields !== null) { + foreach ($this->collCcPlayoutHistoryTemplateFields as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcPlayoutHistoryTemplatePeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcPlayoutHistoryTemplatePeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_playout_history_template_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcPlayoutHistoryTemplatePeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcPlayoutHistoryTemplatePeer::NAME)) { + $modifiedColumns[':p' . $index++] = '"name"'; + } + if ($this->isColumnModified(CcPlayoutHistoryTemplatePeer::TYPE)) { + $modifiedColumns[':p' . $index++] = '"type"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_playout_history_template" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"name"': + $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); + break; + case '"type"': + $stmt->bindValue($identifier, $this->type, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + if (($retval = CcPlayoutHistoryTemplatePeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + if ($this->collCcPlayoutHistoryTemplateFields !== null) { + foreach ($this->collCcPlayoutHistoryTemplateFields as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPlayoutHistoryTemplatePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbName(); + break; + case 2: + return $this->getDbType(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcPlayoutHistoryTemplate'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcPlayoutHistoryTemplate'][$this->getPrimaryKey()] = true; + $keys = CcPlayoutHistoryTemplatePeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbName(), + $keys[2] => $this->getDbType(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->collCcPlayoutHistoryTemplateFields) { + $result['CcPlayoutHistoryTemplateFields'] = $this->collCcPlayoutHistoryTemplateFields->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPlayoutHistoryTemplatePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbName($value); + break; + case 2: + $this->setDbType($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcPlayoutHistoryTemplatePeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbType($arr[$keys[2]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); + + if ($this->isColumnModified(CcPlayoutHistoryTemplatePeer::ID)) $criteria->add(CcPlayoutHistoryTemplatePeer::ID, $this->id); + if ($this->isColumnModified(CcPlayoutHistoryTemplatePeer::NAME)) $criteria->add(CcPlayoutHistoryTemplatePeer::NAME, $this->name); + if ($this->isColumnModified(CcPlayoutHistoryTemplatePeer::TYPE)) $criteria->add(CcPlayoutHistoryTemplatePeer::TYPE, $this->type); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryTemplatePeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcPlayoutHistoryTemplate (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbName($this->getDbName()); + $copyObj->setDbType($this->getDbType()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + foreach ($this->getCcPlayoutHistoryTemplateFields() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcPlayoutHistoryTemplateField($relObj->copy($deepCopy)); + } + } + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcPlayoutHistoryTemplate Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcPlayoutHistoryTemplatePeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcPlayoutHistoryTemplatePeer(); + } + + return self::$peer; + } + + + /** + * Initializes a collection based on the name of a relation. + * Avoids crafting an 'init[$relationName]s' method name + * that wouldn't work when StandardEnglishPluralizer is used. + * + * @param string $relationName The name of the relation to initialize + * @return void + */ + public function initRelation($relationName) + { + if ('CcPlayoutHistoryTemplateField' == $relationName) { + $this->initCcPlayoutHistoryTemplateFields(); + } + } + + /** + * Clears out the collCcPlayoutHistoryTemplateFields 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 CcPlayoutHistoryTemplate The current object (for fluent API support) + * @see addCcPlayoutHistoryTemplateFields() + */ + public function clearCcPlayoutHistoryTemplateFields() + { + $this->collCcPlayoutHistoryTemplateFields = null; // important to set this to null since that means it is uninitialized + $this->collCcPlayoutHistoryTemplateFieldsPartial = null; + + return $this; + } + + /** + * reset is the collCcPlayoutHistoryTemplateFields collection loaded partially + * + * @return void + */ + public function resetPartialCcPlayoutHistoryTemplateFields($v = true) + { + $this->collCcPlayoutHistoryTemplateFieldsPartial = $v; + } + + /** + * Initializes the collCcPlayoutHistoryTemplateFields collection. + * + * By default this just sets the collCcPlayoutHistoryTemplateFields collection to an empty array (like clearcollCcPlayoutHistoryTemplateFields()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcPlayoutHistoryTemplateFields($overrideExisting = true) + { + if (null !== $this->collCcPlayoutHistoryTemplateFields && !$overrideExisting) { + return; + } + $this->collCcPlayoutHistoryTemplateFields = new PropelObjectCollection(); + $this->collCcPlayoutHistoryTemplateFields->setModel('CcPlayoutHistoryTemplateField'); + } + + /** + * Gets an array of CcPlayoutHistoryTemplateField 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 CcPlayoutHistoryTemplate 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 PropelObjectCollection|CcPlayoutHistoryTemplateField[] List of CcPlayoutHistoryTemplateField objects + * @throws PropelException + */ + public function getCcPlayoutHistoryTemplateFields($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcPlayoutHistoryTemplateFieldsPartial && !$this->isNew(); + if (null === $this->collCcPlayoutHistoryTemplateFields || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlayoutHistoryTemplateFields) { + // return empty collection + $this->initCcPlayoutHistoryTemplateFields(); + } else { + $collCcPlayoutHistoryTemplateFields = CcPlayoutHistoryTemplateFieldQuery::create(null, $criteria) + ->filterByCcPlayoutHistoryTemplate($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcPlayoutHistoryTemplateFieldsPartial && count($collCcPlayoutHistoryTemplateFields)) { + $this->initCcPlayoutHistoryTemplateFields(false); + + foreach ($collCcPlayoutHistoryTemplateFields as $obj) { + if (false == $this->collCcPlayoutHistoryTemplateFields->contains($obj)) { + $this->collCcPlayoutHistoryTemplateFields->append($obj); + } + } + + $this->collCcPlayoutHistoryTemplateFieldsPartial = true; + } + + $collCcPlayoutHistoryTemplateFields->getInternalIterator()->rewind(); + + return $collCcPlayoutHistoryTemplateFields; + } + + if ($partial && $this->collCcPlayoutHistoryTemplateFields) { + foreach ($this->collCcPlayoutHistoryTemplateFields as $obj) { + if ($obj->isNew()) { + $collCcPlayoutHistoryTemplateFields[] = $obj; + } + } + } + + $this->collCcPlayoutHistoryTemplateFields = $collCcPlayoutHistoryTemplateFields; + $this->collCcPlayoutHistoryTemplateFieldsPartial = false; + } + } + + return $this->collCcPlayoutHistoryTemplateFields; + } + + /** + * Sets a collection of CcPlayoutHistoryTemplateField objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccPlayoutHistoryTemplateFields A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcPlayoutHistoryTemplate The current object (for fluent API support) + */ + public function setCcPlayoutHistoryTemplateFields(PropelCollection $ccPlayoutHistoryTemplateFields, PropelPDO $con = null) + { + $ccPlayoutHistoryTemplateFieldsToDelete = $this->getCcPlayoutHistoryTemplateFields(new Criteria(), $con)->diff($ccPlayoutHistoryTemplateFields); + + + $this->ccPlayoutHistoryTemplateFieldsScheduledForDeletion = $ccPlayoutHistoryTemplateFieldsToDelete; + + foreach ($ccPlayoutHistoryTemplateFieldsToDelete as $ccPlayoutHistoryTemplateFieldRemoved) { + $ccPlayoutHistoryTemplateFieldRemoved->setCcPlayoutHistoryTemplate(null); + } + + $this->collCcPlayoutHistoryTemplateFields = null; + foreach ($ccPlayoutHistoryTemplateFields as $ccPlayoutHistoryTemplateField) { + $this->addCcPlayoutHistoryTemplateField($ccPlayoutHistoryTemplateField); + } + + $this->collCcPlayoutHistoryTemplateFields = $ccPlayoutHistoryTemplateFields; + $this->collCcPlayoutHistoryTemplateFieldsPartial = false; + + return $this; + } + + /** + * Returns the number of related CcPlayoutHistoryTemplateField objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcPlayoutHistoryTemplateField objects. + * @throws PropelException + */ + public function countCcPlayoutHistoryTemplateFields(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcPlayoutHistoryTemplateFieldsPartial && !$this->isNew(); + if (null === $this->collCcPlayoutHistoryTemplateFields || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlayoutHistoryTemplateFields) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcPlayoutHistoryTemplateFields()); + } + $query = CcPlayoutHistoryTemplateFieldQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcPlayoutHistoryTemplate($this) + ->count($con); + } + + return count($this->collCcPlayoutHistoryTemplateFields); + } + + /** + * Method called to associate a CcPlayoutHistoryTemplateField object to this object + * through the CcPlayoutHistoryTemplateField foreign key attribute. + * + * @param CcPlayoutHistoryTemplateField $l CcPlayoutHistoryTemplateField + * @return CcPlayoutHistoryTemplate The current object (for fluent API support) + */ + public function addCcPlayoutHistoryTemplateField(CcPlayoutHistoryTemplateField $l) + { + if ($this->collCcPlayoutHistoryTemplateFields === null) { + $this->initCcPlayoutHistoryTemplateFields(); + $this->collCcPlayoutHistoryTemplateFieldsPartial = true; + } + + if (!in_array($l, $this->collCcPlayoutHistoryTemplateFields->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcPlayoutHistoryTemplateField($l); + + if ($this->ccPlayoutHistoryTemplateFieldsScheduledForDeletion and $this->ccPlayoutHistoryTemplateFieldsScheduledForDeletion->contains($l)) { + $this->ccPlayoutHistoryTemplateFieldsScheduledForDeletion->remove($this->ccPlayoutHistoryTemplateFieldsScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcPlayoutHistoryTemplateField $ccPlayoutHistoryTemplateField The ccPlayoutHistoryTemplateField object to add. + */ + protected function doAddCcPlayoutHistoryTemplateField($ccPlayoutHistoryTemplateField) + { + $this->collCcPlayoutHistoryTemplateFields[]= $ccPlayoutHistoryTemplateField; + $ccPlayoutHistoryTemplateField->setCcPlayoutHistoryTemplate($this); + } + + /** + * @param CcPlayoutHistoryTemplateField $ccPlayoutHistoryTemplateField The ccPlayoutHistoryTemplateField object to remove. + * @return CcPlayoutHistoryTemplate The current object (for fluent API support) + */ + public function removeCcPlayoutHistoryTemplateField($ccPlayoutHistoryTemplateField) + { + if ($this->getCcPlayoutHistoryTemplateFields()->contains($ccPlayoutHistoryTemplateField)) { + $this->collCcPlayoutHistoryTemplateFields->remove($this->collCcPlayoutHistoryTemplateFields->search($ccPlayoutHistoryTemplateField)); + if (null === $this->ccPlayoutHistoryTemplateFieldsScheduledForDeletion) { + $this->ccPlayoutHistoryTemplateFieldsScheduledForDeletion = clone $this->collCcPlayoutHistoryTemplateFields; + $this->ccPlayoutHistoryTemplateFieldsScheduledForDeletion->clear(); + } + $this->ccPlayoutHistoryTemplateFieldsScheduledForDeletion[]= clone $ccPlayoutHistoryTemplateField; + $ccPlayoutHistoryTemplateField->setCcPlayoutHistoryTemplate(null); + } + + return $this; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->name = null; + $this->type = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->collCcPlayoutHistoryTemplateFields) { + foreach ($this->collCcPlayoutHistoryTemplateFields as $o) { + $o->clearAllReferences($deep); + } + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + if ($this->collCcPlayoutHistoryTemplateFields instanceof PropelCollection) { + $this->collCcPlayoutHistoryTemplateFields->clearIterator(); + } + $this->collCcPlayoutHistoryTemplateFields = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcPlayoutHistoryTemplatePeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateField.php b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateField.php index 3476aa459d..7148c270de 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateField.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateField.php @@ -4,1073 +4,1251 @@ /** * Base class that represents a row from the 'cc_playout_history_template_field' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcPlayoutHistoryTemplateField extends BaseObject implements Persistent +abstract class BaseCcPlayoutHistoryTemplateField extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcPlayoutHistoryTemplateFieldPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcPlayoutHistoryTemplateFieldPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the template_id field. - * @var int - */ - protected $template_id; - - /** - * The value for the name field. - * @var string - */ - protected $name; - - /** - * The value for the label field. - * @var string - */ - protected $label; - - /** - * The value for the type field. - * @var string - */ - protected $type; - - /** - * The value for the is_file_md field. - * Note: this column has a database default value of: false - * @var boolean - */ - protected $is_file_md; - - /** - * The value for the position field. - * @var int - */ - protected $position; - - /** - * @var CcPlayoutHistoryTemplate - */ - protected $aCcPlayoutHistoryTemplate; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - 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->is_file_md = false; - } - - /** - * Initializes internal state of BaseCcPlayoutHistoryTemplateField object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [template_id] column value. - * - * @return int - */ - public function getDbTemplateId() - { - return $this->template_id; - } - - /** - * Get the [name] column value. - * - * @return string - */ - public function getDbName() - { - return $this->name; - } - - /** - * Get the [label] column value. - * - * @return string - */ - public function getDbLabel() - { - return $this->label; - } - - /** - * Get the [type] column value. - * - * @return string - */ - public function getDbType() - { - return $this->type; - } - - /** - * Get the [is_file_md] column value. - * - * @return boolean - */ - public function getDbIsFileMD() - { - return $this->is_file_md; - } - - /** - * Get the [position] column value. - * - * @return int - */ - public function getDbPosition() - { - return $this->position; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [template_id] column. - * - * @param int $v new value - * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) - */ - public function setDbTemplateId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->template_id !== $v) { - $this->template_id = $v; - $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID; - } - - if ($this->aCcPlayoutHistoryTemplate !== null && $this->aCcPlayoutHistoryTemplate->getDbId() !== $v) { - $this->aCcPlayoutHistoryTemplate = null; - } - - return $this; - } // setDbTemplateId() - - /** - * Set the value of [name] column. - * - * @param string $v new value - * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) - */ - public function setDbName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->name !== $v) { - $this->name = $v; - $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::NAME; - } - - return $this; - } // setDbName() - - /** - * Set the value of [label] column. - * - * @param string $v new value - * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) - */ - public function setDbLabel($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->label !== $v) { - $this->label = $v; - $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::LABEL; - } - - return $this; - } // setDbLabel() - - /** - * Set the value of [type] column. - * - * @param string $v new value - * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) - */ - public function setDbType($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->type !== $v) { - $this->type = $v; - $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::TYPE; - } - - return $this; - } // setDbType() - - /** - * Set the value of [is_file_md] column. - * - * @param boolean $v new value - * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) - */ - public function setDbIsFileMD($v) - { - if ($v !== null) { - $v = (boolean) $v; - } - - if ($this->is_file_md !== $v || $this->isNew()) { - $this->is_file_md = $v; - $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::IS_FILE_MD; - } - - return $this; - } // setDbIsFileMD() - - /** - * Set the value of [position] column. - * - * @param int $v new value - * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) - */ - public function setDbPosition($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->position !== $v) { - $this->position = $v; - $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::POSITION; - } - - return $this; - } // setDbPosition() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->is_file_md !== false) { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->template_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; - $this->name = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->label = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->type = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; - $this->is_file_md = ($row[$startcol + 5] !== null) ? (boolean) $row[$startcol + 5] : null; - $this->position = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 7; // 7 = CcPlayoutHistoryTemplateFieldPeer::NUM_COLUMNS - CcPlayoutHistoryTemplateFieldPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcPlayoutHistoryTemplateField object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcPlayoutHistoryTemplate !== null && $this->template_id !== $this->aCcPlayoutHistoryTemplate->getDbId()) { - $this->aCcPlayoutHistoryTemplate = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcPlayoutHistoryTemplateFieldPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcPlayoutHistoryTemplate = null; - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcPlayoutHistoryTemplateFieldQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcPlayoutHistoryTemplateFieldPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcPlayoutHistoryTemplate !== null) { - if ($this->aCcPlayoutHistoryTemplate->isModified() || $this->aCcPlayoutHistoryTemplate->isNew()) { - $affectedRows += $this->aCcPlayoutHistoryTemplate->save($con); - } - $this->setCcPlayoutHistoryTemplate($this->aCcPlayoutHistoryTemplate); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcPlayoutHistoryTemplateFieldPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlayoutHistoryTemplateFieldPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcPlayoutHistoryTemplateFieldPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcPlayoutHistoryTemplate !== null) { - if (!$this->aCcPlayoutHistoryTemplate->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcPlayoutHistoryTemplate->getValidationFailures()); - } - } - - - if (($retval = CcPlayoutHistoryTemplateFieldPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPlayoutHistoryTemplateFieldPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbTemplateId(); - break; - case 2: - return $this->getDbName(); - break; - case 3: - return $this->getDbLabel(); - break; - case 4: - return $this->getDbType(); - break; - case 5: - return $this->getDbIsFileMD(); - break; - case 6: - return $this->getDbPosition(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcPlayoutHistoryTemplateFieldPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbTemplateId(), - $keys[2] => $this->getDbName(), - $keys[3] => $this->getDbLabel(), - $keys[4] => $this->getDbType(), - $keys[5] => $this->getDbIsFileMD(), - $keys[6] => $this->getDbPosition(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcPlayoutHistoryTemplate) { - $result['CcPlayoutHistoryTemplate'] = $this->aCcPlayoutHistoryTemplate->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPlayoutHistoryTemplateFieldPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbTemplateId($value); - break; - case 2: - $this->setDbName($value); - break; - case 3: - $this->setDbLabel($value); - break; - case 4: - $this->setDbType($value); - break; - case 5: - $this->setDbIsFileMD($value); - break; - case 6: - $this->setDbPosition($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcPlayoutHistoryTemplateFieldPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbTemplateId($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbName($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbLabel($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbType($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setDbIsFileMD($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setDbPosition($arr[$keys[6]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::ID)) $criteria->add(CcPlayoutHistoryTemplateFieldPeer::ID, $this->id); - if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID)) $criteria->add(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, $this->template_id); - if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::NAME)) $criteria->add(CcPlayoutHistoryTemplateFieldPeer::NAME, $this->name); - if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::LABEL)) $criteria->add(CcPlayoutHistoryTemplateFieldPeer::LABEL, $this->label); - if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::TYPE)) $criteria->add(CcPlayoutHistoryTemplateFieldPeer::TYPE, $this->type); - if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::IS_FILE_MD)) $criteria->add(CcPlayoutHistoryTemplateFieldPeer::IS_FILE_MD, $this->is_file_md); - if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::POSITION)) $criteria->add(CcPlayoutHistoryTemplateFieldPeer::POSITION, $this->position); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryTemplateFieldPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcPlayoutHistoryTemplateField (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbTemplateId($this->template_id); - $copyObj->setDbName($this->name); - $copyObj->setDbLabel($this->label); - $copyObj->setDbType($this->type); - $copyObj->setDbIsFileMD($this->is_file_md); - $copyObj->setDbPosition($this->position); - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcPlayoutHistoryTemplateField Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcPlayoutHistoryTemplateFieldPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcPlayoutHistoryTemplateFieldPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcPlayoutHistoryTemplate object. - * - * @param CcPlayoutHistoryTemplate $v - * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) - * @throws PropelException - */ - public function setCcPlayoutHistoryTemplate(CcPlayoutHistoryTemplate $v = null) - { - if ($v === null) { - $this->setDbTemplateId(NULL); - } else { - $this->setDbTemplateId($v->getDbId()); - } - - $this->aCcPlayoutHistoryTemplate = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcPlayoutHistoryTemplate object, it will not be re-added. - if ($v !== null) { - $v->addCcPlayoutHistoryTemplateField($this); - } - - return $this; - } - - - /** - * Get the associated CcPlayoutHistoryTemplate object - * - * @param PropelPDO Optional Connection object. - * @return CcPlayoutHistoryTemplate The associated CcPlayoutHistoryTemplate object. - * @throws PropelException - */ - public function getCcPlayoutHistoryTemplate(PropelPDO $con = null) - { - if ($this->aCcPlayoutHistoryTemplate === null && ($this->template_id !== null)) { - $this->aCcPlayoutHistoryTemplate = CcPlayoutHistoryTemplateQuery::create()->findPk($this->template_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcPlayoutHistoryTemplate->addCcPlayoutHistoryTemplateFields($this); - */ - } - return $this->aCcPlayoutHistoryTemplate; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->template_id = null; - $this->name = null; - $this->label = null; - $this->type = null; - $this->is_file_md = null; - $this->position = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - $this->aCcPlayoutHistoryTemplate = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcPlayoutHistoryTemplateField + /** + * Peer class name + */ + const PEER = 'CcPlayoutHistoryTemplateFieldPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcPlayoutHistoryTemplateFieldPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the template_id field. + * @var int + */ + protected $template_id; + + /** + * The value for the name field. + * @var string + */ + protected $name; + + /** + * The value for the label field. + * @var string + */ + protected $label; + + /** + * The value for the type field. + * @var string + */ + protected $type; + + /** + * The value for the is_file_md field. + * Note: this column has a database default value of: false + * @var boolean + */ + protected $is_file_md; + + /** + * The value for the position field. + * @var int + */ + protected $position; + + /** + * @var CcPlayoutHistoryTemplate + */ + protected $aCcPlayoutHistoryTemplate; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = 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->is_file_md = false; + } + + /** + * Initializes internal state of BaseCcPlayoutHistoryTemplateField object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [template_id] column value. + * + * @return int + */ + public function getDbTemplateId() + { + + return $this->template_id; + } + + /** + * Get the [name] column value. + * + * @return string + */ + public function getDbName() + { + + return $this->name; + } + + /** + * Get the [label] column value. + * + * @return string + */ + public function getDbLabel() + { + + return $this->label; + } + + /** + * Get the [type] column value. + * + * @return string + */ + public function getDbType() + { + + return $this->type; + } + + /** + * Get the [is_file_md] column value. + * + * @return boolean + */ + public function getDbIsFileMD() + { + + return $this->is_file_md; + } + + /** + * Get the [position] column value. + * + * @return int + */ + public function getDbPosition() + { + + return $this->position; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [template_id] column. + * + * @param int $v new value + * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) + */ + public function setDbTemplateId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->template_id !== $v) { + $this->template_id = $v; + $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID; + } + + if ($this->aCcPlayoutHistoryTemplate !== null && $this->aCcPlayoutHistoryTemplate->getDbId() !== $v) { + $this->aCcPlayoutHistoryTemplate = null; + } + + + return $this; + } // setDbTemplateId() + + /** + * Set the value of [name] column. + * + * @param string $v new value + * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) + */ + public function setDbName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->name !== $v) { + $this->name = $v; + $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::NAME; + } + + + return $this; + } // setDbName() + + /** + * Set the value of [label] column. + * + * @param string $v new value + * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) + */ + public function setDbLabel($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->label !== $v) { + $this->label = $v; + $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::LABEL; + } + + + return $this; + } // setDbLabel() + + /** + * Set the value of [type] column. + * + * @param string $v new value + * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) + */ + public function setDbType($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->type !== $v) { + $this->type = $v; + $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::TYPE; + } + + + return $this; + } // setDbType() + + /** + * Sets the value of the [is_file_md] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) + */ + public function setDbIsFileMD($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->is_file_md !== $v) { + $this->is_file_md = $v; + $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::IS_FILE_MD; + } + + + return $this; + } // setDbIsFileMD() + + /** + * Set the value of [position] column. + * + * @param int $v new value + * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) + */ + public function setDbPosition($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->position !== $v) { + $this->position = $v; + $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::POSITION; + } + + + return $this; + } // setDbPosition() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->is_file_md !== false) { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->template_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; + $this->name = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->label = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->type = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; + $this->is_file_md = ($row[$startcol + 5] !== null) ? (boolean) $row[$startcol + 5] : null; + $this->position = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 7; // 7 = CcPlayoutHistoryTemplateFieldPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcPlayoutHistoryTemplateField object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcPlayoutHistoryTemplate !== null && $this->template_id !== $this->aCcPlayoutHistoryTemplate->getDbId()) { + $this->aCcPlayoutHistoryTemplate = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcPlayoutHistoryTemplateFieldPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcPlayoutHistoryTemplate = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcPlayoutHistoryTemplateFieldQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcPlayoutHistoryTemplateFieldPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcPlayoutHistoryTemplate !== null) { + if ($this->aCcPlayoutHistoryTemplate->isModified() || $this->aCcPlayoutHistoryTemplate->isNew()) { + $affectedRows += $this->aCcPlayoutHistoryTemplate->save($con); + } + $this->setCcPlayoutHistoryTemplate($this->aCcPlayoutHistoryTemplate); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcPlayoutHistoryTemplateFieldPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcPlayoutHistoryTemplateFieldPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_playout_history_template_field_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID)) { + $modifiedColumns[':p' . $index++] = '"template_id"'; + } + if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::NAME)) { + $modifiedColumns[':p' . $index++] = '"name"'; + } + if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::LABEL)) { + $modifiedColumns[':p' . $index++] = '"label"'; + } + if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::TYPE)) { + $modifiedColumns[':p' . $index++] = '"type"'; + } + if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::IS_FILE_MD)) { + $modifiedColumns[':p' . $index++] = '"is_file_md"'; + } + if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::POSITION)) { + $modifiedColumns[':p' . $index++] = '"position"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_playout_history_template_field" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"template_id"': + $stmt->bindValue($identifier, $this->template_id, PDO::PARAM_INT); + break; + case '"name"': + $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); + break; + case '"label"': + $stmt->bindValue($identifier, $this->label, PDO::PARAM_STR); + break; + case '"type"': + $stmt->bindValue($identifier, $this->type, PDO::PARAM_STR); + break; + case '"is_file_md"': + $stmt->bindValue($identifier, $this->is_file_md, PDO::PARAM_BOOL); + break; + case '"position"': + $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcPlayoutHistoryTemplate !== null) { + if (!$this->aCcPlayoutHistoryTemplate->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcPlayoutHistoryTemplate->getValidationFailures()); + } + } + + + if (($retval = CcPlayoutHistoryTemplateFieldPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPlayoutHistoryTemplateFieldPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbTemplateId(); + break; + case 2: + return $this->getDbName(); + break; + case 3: + return $this->getDbLabel(); + break; + case 4: + return $this->getDbType(); + break; + case 5: + return $this->getDbIsFileMD(); + break; + case 6: + return $this->getDbPosition(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcPlayoutHistoryTemplateField'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcPlayoutHistoryTemplateField'][$this->getPrimaryKey()] = true; + $keys = CcPlayoutHistoryTemplateFieldPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbTemplateId(), + $keys[2] => $this->getDbName(), + $keys[3] => $this->getDbLabel(), + $keys[4] => $this->getDbType(), + $keys[5] => $this->getDbIsFileMD(), + $keys[6] => $this->getDbPosition(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcPlayoutHistoryTemplate) { + $result['CcPlayoutHistoryTemplate'] = $this->aCcPlayoutHistoryTemplate->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPlayoutHistoryTemplateFieldPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbTemplateId($value); + break; + case 2: + $this->setDbName($value); + break; + case 3: + $this->setDbLabel($value); + break; + case 4: + $this->setDbType($value); + break; + case 5: + $this->setDbIsFileMD($value); + break; + case 6: + $this->setDbPosition($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcPlayoutHistoryTemplateFieldPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbTemplateId($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbName($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbLabel($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbType($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDbIsFileMD($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setDbPosition($arr[$keys[6]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::ID)) $criteria->add(CcPlayoutHistoryTemplateFieldPeer::ID, $this->id); + if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID)) $criteria->add(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, $this->template_id); + if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::NAME)) $criteria->add(CcPlayoutHistoryTemplateFieldPeer::NAME, $this->name); + if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::LABEL)) $criteria->add(CcPlayoutHistoryTemplateFieldPeer::LABEL, $this->label); + if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::TYPE)) $criteria->add(CcPlayoutHistoryTemplateFieldPeer::TYPE, $this->type); + if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::IS_FILE_MD)) $criteria->add(CcPlayoutHistoryTemplateFieldPeer::IS_FILE_MD, $this->is_file_md); + if ($this->isColumnModified(CcPlayoutHistoryTemplateFieldPeer::POSITION)) $criteria->add(CcPlayoutHistoryTemplateFieldPeer::POSITION, $this->position); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryTemplateFieldPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcPlayoutHistoryTemplateField (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbTemplateId($this->getDbTemplateId()); + $copyObj->setDbName($this->getDbName()); + $copyObj->setDbLabel($this->getDbLabel()); + $copyObj->setDbType($this->getDbType()); + $copyObj->setDbIsFileMD($this->getDbIsFileMD()); + $copyObj->setDbPosition($this->getDbPosition()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcPlayoutHistoryTemplateField Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcPlayoutHistoryTemplateFieldPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcPlayoutHistoryTemplateFieldPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcPlayoutHistoryTemplate object. + * + * @param CcPlayoutHistoryTemplate $v + * @return CcPlayoutHistoryTemplateField The current object (for fluent API support) + * @throws PropelException + */ + public function setCcPlayoutHistoryTemplate(CcPlayoutHistoryTemplate $v = null) + { + if ($v === null) { + $this->setDbTemplateId(NULL); + } else { + $this->setDbTemplateId($v->getDbId()); + } + + $this->aCcPlayoutHistoryTemplate = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcPlayoutHistoryTemplate object, it will not be re-added. + if ($v !== null) { + $v->addCcPlayoutHistoryTemplateField($this); + } + + + return $this; + } + + + /** + * Get the associated CcPlayoutHistoryTemplate object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcPlayoutHistoryTemplate The associated CcPlayoutHistoryTemplate object. + * @throws PropelException + */ + public function getCcPlayoutHistoryTemplate(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcPlayoutHistoryTemplate === null && ($this->template_id !== null) && $doQuery) { + $this->aCcPlayoutHistoryTemplate = CcPlayoutHistoryTemplateQuery::create()->findPk($this->template_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcPlayoutHistoryTemplate->addCcPlayoutHistoryTemplateFields($this); + */ + } + + return $this->aCcPlayoutHistoryTemplate; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->template_id = null; + $this->name = null; + $this->label = null; + $this->type = null; + $this->is_file_md = null; + $this->position = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcPlayoutHistoryTemplate instanceof Persistent) { + $this->aCcPlayoutHistoryTemplate->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcPlayoutHistoryTemplate = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcPlayoutHistoryTemplateFieldPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateFieldPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateFieldPeer.php index 91586fa1d8..cd33ca808c 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateFieldPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateFieldPeer.php @@ -4,991 +4,1017 @@ /** * Base static class for performing query and update operations on the 'cc_playout_history_template_field' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcPlayoutHistoryTemplateFieldPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_playout_history_template_field'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcPlayoutHistoryTemplateField'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcPlayoutHistoryTemplateField'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcPlayoutHistoryTemplateFieldTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 7; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_playout_history_template_field.ID'; - - /** the column name for the TEMPLATE_ID field */ - const TEMPLATE_ID = 'cc_playout_history_template_field.TEMPLATE_ID'; - - /** the column name for the NAME field */ - const NAME = 'cc_playout_history_template_field.NAME'; - - /** the column name for the LABEL field */ - const LABEL = 'cc_playout_history_template_field.LABEL'; - - /** the column name for the TYPE field */ - const TYPE = 'cc_playout_history_template_field.TYPE'; - - /** the column name for the IS_FILE_MD field */ - const IS_FILE_MD = 'cc_playout_history_template_field.IS_FILE_MD'; - - /** the column name for the POSITION field */ - const POSITION = 'cc_playout_history_template_field.POSITION'; - - /** - * An identiy map to hold any loaded instances of CcPlayoutHistoryTemplateField objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcPlayoutHistoryTemplateField[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbTemplateId', 'DbName', 'DbLabel', 'DbType', 'DbIsFileMD', 'DbPosition', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbTemplateId', 'dbName', 'dbLabel', 'dbType', 'dbIsFileMD', 'dbPosition', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::TEMPLATE_ID, self::NAME, self::LABEL, self::TYPE, self::IS_FILE_MD, self::POSITION, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'TEMPLATE_ID', 'NAME', 'LABEL', 'TYPE', 'IS_FILE_MD', 'POSITION', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'template_id', 'name', 'label', 'type', 'is_file_md', 'position', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbTemplateId' => 1, 'DbName' => 2, 'DbLabel' => 3, 'DbType' => 4, 'DbIsFileMD' => 5, 'DbPosition' => 6, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbTemplateId' => 1, 'dbName' => 2, 'dbLabel' => 3, 'dbType' => 4, 'dbIsFileMD' => 5, 'dbPosition' => 6, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::TEMPLATE_ID => 1, self::NAME => 2, self::LABEL => 3, self::TYPE => 4, self::IS_FILE_MD => 5, self::POSITION => 6, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'TEMPLATE_ID' => 1, 'NAME' => 2, 'LABEL' => 3, 'TYPE' => 4, 'IS_FILE_MD' => 5, 'POSITION' => 6, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'template_id' => 1, 'name' => 2, 'label' => 3, 'type' => 4, 'is_file_md' => 5, 'position' => 6, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcPlayoutHistoryTemplateFieldPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcPlayoutHistoryTemplateFieldPeer::ID); - $criteria->addSelectColumn(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID); - $criteria->addSelectColumn(CcPlayoutHistoryTemplateFieldPeer::NAME); - $criteria->addSelectColumn(CcPlayoutHistoryTemplateFieldPeer::LABEL); - $criteria->addSelectColumn(CcPlayoutHistoryTemplateFieldPeer::TYPE); - $criteria->addSelectColumn(CcPlayoutHistoryTemplateFieldPeer::IS_FILE_MD); - $criteria->addSelectColumn(CcPlayoutHistoryTemplateFieldPeer::POSITION); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.TEMPLATE_ID'); - $criteria->addSelectColumn($alias . '.NAME'); - $criteria->addSelectColumn($alias . '.LABEL'); - $criteria->addSelectColumn($alias . '.TYPE'); - $criteria->addSelectColumn($alias . '.IS_FILE_MD'); - $criteria->addSelectColumn($alias . '.POSITION'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlayoutHistoryTemplateFieldPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcPlayoutHistoryTemplateField - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcPlayoutHistoryTemplateFieldPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcPlayoutHistoryTemplateFieldPeer::populateObjects(CcPlayoutHistoryTemplateFieldPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcPlayoutHistoryTemplateFieldPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcPlayoutHistoryTemplateField $value A CcPlayoutHistoryTemplateField object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcPlayoutHistoryTemplateField $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcPlayoutHistoryTemplateField object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcPlayoutHistoryTemplateField) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPlayoutHistoryTemplateField object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcPlayoutHistoryTemplateField Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_playout_history_template_field - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcPlayoutHistoryTemplateFieldPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcPlayoutHistoryTemplateFieldPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcPlayoutHistoryTemplateFieldPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcPlayoutHistoryTemplateFieldPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcPlayoutHistoryTemplateField object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcPlayoutHistoryTemplateFieldPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcPlayoutHistoryTemplateFieldPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcPlayoutHistoryTemplateFieldPeer::NUM_COLUMNS; - } else { - $cls = CcPlayoutHistoryTemplateFieldPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcPlayoutHistoryTemplateFieldPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcPlayoutHistoryTemplate table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcPlayoutHistoryTemplate(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlayoutHistoryTemplateFieldPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, CcPlayoutHistoryTemplatePeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcPlayoutHistoryTemplateField objects pre-filled with their CcPlayoutHistoryTemplate objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlayoutHistoryTemplateField objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcPlayoutHistoryTemplate(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlayoutHistoryTemplateFieldPeer::addSelectColumns($criteria); - $startcol = (CcPlayoutHistoryTemplateFieldPeer::NUM_COLUMNS - CcPlayoutHistoryTemplateFieldPeer::NUM_LAZY_LOAD_COLUMNS); - CcPlayoutHistoryTemplatePeer::addSelectColumns($criteria); - - $criteria->addJoin(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, CcPlayoutHistoryTemplatePeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlayoutHistoryTemplateFieldPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlayoutHistoryTemplateFieldPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcPlayoutHistoryTemplateFieldPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlayoutHistoryTemplateFieldPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcPlayoutHistoryTemplatePeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcPlayoutHistoryTemplatePeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcPlayoutHistoryTemplatePeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcPlayoutHistoryTemplatePeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcPlayoutHistoryTemplateField) to $obj2 (CcPlayoutHistoryTemplate) - $obj2->addCcPlayoutHistoryTemplateField($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlayoutHistoryTemplateFieldPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, CcPlayoutHistoryTemplatePeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcPlayoutHistoryTemplateField objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPlayoutHistoryTemplateField objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPlayoutHistoryTemplateFieldPeer::addSelectColumns($criteria); - $startcol2 = (CcPlayoutHistoryTemplateFieldPeer::NUM_COLUMNS - CcPlayoutHistoryTemplateFieldPeer::NUM_LAZY_LOAD_COLUMNS); - - CcPlayoutHistoryTemplatePeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcPlayoutHistoryTemplatePeer::NUM_COLUMNS - CcPlayoutHistoryTemplatePeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, CcPlayoutHistoryTemplatePeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPlayoutHistoryTemplateFieldPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPlayoutHistoryTemplateFieldPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcPlayoutHistoryTemplateFieldPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPlayoutHistoryTemplateFieldPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcPlayoutHistoryTemplate rows - - $key2 = CcPlayoutHistoryTemplatePeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcPlayoutHistoryTemplatePeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcPlayoutHistoryTemplatePeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcPlayoutHistoryTemplatePeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcPlayoutHistoryTemplateField) to the collection in $obj2 (CcPlayoutHistoryTemplate) - $obj2->addCcPlayoutHistoryTemplateField($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcPlayoutHistoryTemplateFieldPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcPlayoutHistoryTemplateFieldTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcPlayoutHistoryTemplateFieldPeer::CLASS_DEFAULT : CcPlayoutHistoryTemplateFieldPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcPlayoutHistoryTemplateField or Criteria object. - * - * @param mixed $values Criteria or CcPlayoutHistoryTemplateField object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcPlayoutHistoryTemplateField object - } - - if ($criteria->containsKey(CcPlayoutHistoryTemplateFieldPeer::ID) && $criteria->keyContainsValue(CcPlayoutHistoryTemplateFieldPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlayoutHistoryTemplateFieldPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcPlayoutHistoryTemplateField or Criteria object. - * - * @param mixed $values Criteria or CcPlayoutHistoryTemplateField object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcPlayoutHistoryTemplateFieldPeer::ID); - $value = $criteria->remove(CcPlayoutHistoryTemplateFieldPeer::ID); - if ($value) { - $selectCriteria->add(CcPlayoutHistoryTemplateFieldPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME); - } - - } else { // $values is CcPlayoutHistoryTemplateField object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_playout_history_template_field table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME, $con, CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcPlayoutHistoryTemplateFieldPeer::clearInstancePool(); - CcPlayoutHistoryTemplateFieldPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcPlayoutHistoryTemplateField or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcPlayoutHistoryTemplateField object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcPlayoutHistoryTemplateFieldPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcPlayoutHistoryTemplateField) { // it's a model object - // invalidate the cache for this single object - CcPlayoutHistoryTemplateFieldPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryTemplateFieldPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcPlayoutHistoryTemplateFieldPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcPlayoutHistoryTemplateFieldPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcPlayoutHistoryTemplateField object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcPlayoutHistoryTemplateField $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcPlayoutHistoryTemplateField $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcPlayoutHistoryTemplateField - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcPlayoutHistoryTemplateFieldPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryTemplateFieldPeer::ID, $pk); - - $v = CcPlayoutHistoryTemplateFieldPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryTemplateFieldPeer::ID, $pks, Criteria::IN); - $objs = CcPlayoutHistoryTemplateFieldPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcPlayoutHistoryTemplateFieldPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_playout_history_template_field'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcPlayoutHistoryTemplateField'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcPlayoutHistoryTemplateFieldTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 7; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 7; + + /** the column name for the id field */ + const ID = 'cc_playout_history_template_field.id'; + + /** the column name for the template_id field */ + const TEMPLATE_ID = 'cc_playout_history_template_field.template_id'; + + /** the column name for the name field */ + const NAME = 'cc_playout_history_template_field.name'; + + /** the column name for the label field */ + const LABEL = 'cc_playout_history_template_field.label'; + + /** the column name for the type field */ + const TYPE = 'cc_playout_history_template_field.type'; + + /** the column name for the is_file_md field */ + const IS_FILE_MD = 'cc_playout_history_template_field.is_file_md'; + + /** the column name for the position field */ + const POSITION = 'cc_playout_history_template_field.position'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcPlayoutHistoryTemplateField objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcPlayoutHistoryTemplateField[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcPlayoutHistoryTemplateFieldPeer::$fieldNames[CcPlayoutHistoryTemplateFieldPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbTemplateId', 'DbName', 'DbLabel', 'DbType', 'DbIsFileMD', 'DbPosition', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbTemplateId', 'dbName', 'dbLabel', 'dbType', 'dbIsFileMD', 'dbPosition', ), + BasePeer::TYPE_COLNAME => array (CcPlayoutHistoryTemplateFieldPeer::ID, CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, CcPlayoutHistoryTemplateFieldPeer::NAME, CcPlayoutHistoryTemplateFieldPeer::LABEL, CcPlayoutHistoryTemplateFieldPeer::TYPE, CcPlayoutHistoryTemplateFieldPeer::IS_FILE_MD, CcPlayoutHistoryTemplateFieldPeer::POSITION, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'TEMPLATE_ID', 'NAME', 'LABEL', 'TYPE', 'IS_FILE_MD', 'POSITION', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'template_id', 'name', 'label', 'type', 'is_file_md', 'position', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcPlayoutHistoryTemplateFieldPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbTemplateId' => 1, 'DbName' => 2, 'DbLabel' => 3, 'DbType' => 4, 'DbIsFileMD' => 5, 'DbPosition' => 6, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbTemplateId' => 1, 'dbName' => 2, 'dbLabel' => 3, 'dbType' => 4, 'dbIsFileMD' => 5, 'dbPosition' => 6, ), + BasePeer::TYPE_COLNAME => array (CcPlayoutHistoryTemplateFieldPeer::ID => 0, CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID => 1, CcPlayoutHistoryTemplateFieldPeer::NAME => 2, CcPlayoutHistoryTemplateFieldPeer::LABEL => 3, CcPlayoutHistoryTemplateFieldPeer::TYPE => 4, CcPlayoutHistoryTemplateFieldPeer::IS_FILE_MD => 5, CcPlayoutHistoryTemplateFieldPeer::POSITION => 6, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'TEMPLATE_ID' => 1, 'NAME' => 2, 'LABEL' => 3, 'TYPE' => 4, 'IS_FILE_MD' => 5, 'POSITION' => 6, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'template_id' => 1, 'name' => 2, 'label' => 3, 'type' => 4, 'is_file_md' => 5, 'position' => 6, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcPlayoutHistoryTemplateFieldPeer::getFieldNames($toType); + $key = isset(CcPlayoutHistoryTemplateFieldPeer::$fieldKeys[$fromType][$name]) ? CcPlayoutHistoryTemplateFieldPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcPlayoutHistoryTemplateFieldPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcPlayoutHistoryTemplateFieldPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcPlayoutHistoryTemplateFieldPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcPlayoutHistoryTemplateFieldPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcPlayoutHistoryTemplateFieldPeer::ID); + $criteria->addSelectColumn(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID); + $criteria->addSelectColumn(CcPlayoutHistoryTemplateFieldPeer::NAME); + $criteria->addSelectColumn(CcPlayoutHistoryTemplateFieldPeer::LABEL); + $criteria->addSelectColumn(CcPlayoutHistoryTemplateFieldPeer::TYPE); + $criteria->addSelectColumn(CcPlayoutHistoryTemplateFieldPeer::IS_FILE_MD); + $criteria->addSelectColumn(CcPlayoutHistoryTemplateFieldPeer::POSITION); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.template_id'); + $criteria->addSelectColumn($alias . '.name'); + $criteria->addSelectColumn($alias . '.label'); + $criteria->addSelectColumn($alias . '.type'); + $criteria->addSelectColumn($alias . '.is_file_md'); + $criteria->addSelectColumn($alias . '.position'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlayoutHistoryTemplateFieldPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcPlayoutHistoryTemplateField + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcPlayoutHistoryTemplateFieldPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcPlayoutHistoryTemplateFieldPeer::populateObjects(CcPlayoutHistoryTemplateFieldPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcPlayoutHistoryTemplateFieldPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcPlayoutHistoryTemplateField $obj A CcPlayoutHistoryTemplateField object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcPlayoutHistoryTemplateFieldPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcPlayoutHistoryTemplateField object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcPlayoutHistoryTemplateField) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPlayoutHistoryTemplateField object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcPlayoutHistoryTemplateFieldPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcPlayoutHistoryTemplateField Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcPlayoutHistoryTemplateFieldPeer::$instances[$key])) { + return CcPlayoutHistoryTemplateFieldPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcPlayoutHistoryTemplateFieldPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcPlayoutHistoryTemplateFieldPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_playout_history_template_field + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcPlayoutHistoryTemplateFieldPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcPlayoutHistoryTemplateFieldPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcPlayoutHistoryTemplateFieldPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcPlayoutHistoryTemplateFieldPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcPlayoutHistoryTemplateField object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcPlayoutHistoryTemplateFieldPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcPlayoutHistoryTemplateFieldPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcPlayoutHistoryTemplateFieldPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcPlayoutHistoryTemplateFieldPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcPlayoutHistoryTemplateFieldPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcPlayoutHistoryTemplate table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcPlayoutHistoryTemplate(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlayoutHistoryTemplateFieldPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, CcPlayoutHistoryTemplatePeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcPlayoutHistoryTemplateField objects pre-filled with their CcPlayoutHistoryTemplate objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlayoutHistoryTemplateField objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcPlayoutHistoryTemplate(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + } + + CcPlayoutHistoryTemplateFieldPeer::addSelectColumns($criteria); + $startcol = CcPlayoutHistoryTemplateFieldPeer::NUM_HYDRATE_COLUMNS; + CcPlayoutHistoryTemplatePeer::addSelectColumns($criteria); + + $criteria->addJoin(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, CcPlayoutHistoryTemplatePeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlayoutHistoryTemplateFieldPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlayoutHistoryTemplateFieldPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcPlayoutHistoryTemplateFieldPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlayoutHistoryTemplateFieldPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcPlayoutHistoryTemplatePeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcPlayoutHistoryTemplatePeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcPlayoutHistoryTemplatePeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcPlayoutHistoryTemplatePeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcPlayoutHistoryTemplateField) to $obj2 (CcPlayoutHistoryTemplate) + $obj2->addCcPlayoutHistoryTemplateField($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlayoutHistoryTemplateFieldPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, CcPlayoutHistoryTemplatePeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcPlayoutHistoryTemplateField objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPlayoutHistoryTemplateField objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + } + + CcPlayoutHistoryTemplateFieldPeer::addSelectColumns($criteria); + $startcol2 = CcPlayoutHistoryTemplateFieldPeer::NUM_HYDRATE_COLUMNS; + + CcPlayoutHistoryTemplatePeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcPlayoutHistoryTemplatePeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, CcPlayoutHistoryTemplatePeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPlayoutHistoryTemplateFieldPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPlayoutHistoryTemplateFieldPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcPlayoutHistoryTemplateFieldPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPlayoutHistoryTemplateFieldPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcPlayoutHistoryTemplate rows + + $key2 = CcPlayoutHistoryTemplatePeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcPlayoutHistoryTemplatePeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcPlayoutHistoryTemplatePeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcPlayoutHistoryTemplatePeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcPlayoutHistoryTemplateField) to the collection in $obj2 (CcPlayoutHistoryTemplate) + $obj2->addCcPlayoutHistoryTemplateField($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME)->getTable(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcPlayoutHistoryTemplateFieldPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcPlayoutHistoryTemplateFieldTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcPlayoutHistoryTemplateFieldPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcPlayoutHistoryTemplateField or Criteria object. + * + * @param mixed $values Criteria or CcPlayoutHistoryTemplateField object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcPlayoutHistoryTemplateField object + } + + if ($criteria->containsKey(CcPlayoutHistoryTemplateFieldPeer::ID) && $criteria->keyContainsValue(CcPlayoutHistoryTemplateFieldPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlayoutHistoryTemplateFieldPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcPlayoutHistoryTemplateField or Criteria object. + * + * @param mixed $values Criteria or CcPlayoutHistoryTemplateField object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcPlayoutHistoryTemplateFieldPeer::ID); + $value = $criteria->remove(CcPlayoutHistoryTemplateFieldPeer::ID); + if ($value) { + $selectCriteria->add(CcPlayoutHistoryTemplateFieldPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME); + } + + } else { // $values is CcPlayoutHistoryTemplateField object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_playout_history_template_field table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME, $con, CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcPlayoutHistoryTemplateFieldPeer::clearInstancePool(); + CcPlayoutHistoryTemplateFieldPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcPlayoutHistoryTemplateField or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcPlayoutHistoryTemplateField object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcPlayoutHistoryTemplateFieldPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcPlayoutHistoryTemplateField) { // it's a model object + // invalidate the cache for this single object + CcPlayoutHistoryTemplateFieldPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryTemplateFieldPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcPlayoutHistoryTemplateFieldPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcPlayoutHistoryTemplateFieldPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcPlayoutHistoryTemplateField object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcPlayoutHistoryTemplateField $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, CcPlayoutHistoryTemplateFieldPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcPlayoutHistoryTemplateField + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcPlayoutHistoryTemplateFieldPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryTemplateFieldPeer::ID, $pk); + + $v = CcPlayoutHistoryTemplateFieldPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcPlayoutHistoryTemplateField[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryTemplateFieldPeer::ID, $pks, Criteria::IN); + $objs = CcPlayoutHistoryTemplateFieldPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcPlayoutHistoryTemplateFieldPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateFieldQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateFieldQuery.php index 2bccd58ca2..873e192965 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateFieldQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateFieldQuery.php @@ -4,399 +4,577 @@ /** * Base class that represents a query for the 'cc_playout_history_template_field' table. * - * * - * @method CcPlayoutHistoryTemplateFieldQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcPlayoutHistoryTemplateFieldQuery orderByDbTemplateId($order = Criteria::ASC) Order by the template_id column - * @method CcPlayoutHistoryTemplateFieldQuery orderByDbName($order = Criteria::ASC) Order by the name column - * @method CcPlayoutHistoryTemplateFieldQuery orderByDbLabel($order = Criteria::ASC) Order by the label column - * @method CcPlayoutHistoryTemplateFieldQuery orderByDbType($order = Criteria::ASC) Order by the type column - * @method CcPlayoutHistoryTemplateFieldQuery orderByDbIsFileMD($order = Criteria::ASC) Order by the is_file_md column - * @method CcPlayoutHistoryTemplateFieldQuery orderByDbPosition($order = Criteria::ASC) Order by the position column * - * @method CcPlayoutHistoryTemplateFieldQuery groupByDbId() Group by the id column - * @method CcPlayoutHistoryTemplateFieldQuery groupByDbTemplateId() Group by the template_id column - * @method CcPlayoutHistoryTemplateFieldQuery groupByDbName() Group by the name column - * @method CcPlayoutHistoryTemplateFieldQuery groupByDbLabel() Group by the label column - * @method CcPlayoutHistoryTemplateFieldQuery groupByDbType() Group by the type column - * @method CcPlayoutHistoryTemplateFieldQuery groupByDbIsFileMD() Group by the is_file_md column - * @method CcPlayoutHistoryTemplateFieldQuery groupByDbPosition() Group by the position column + * @method CcPlayoutHistoryTemplateFieldQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcPlayoutHistoryTemplateFieldQuery orderByDbTemplateId($order = Criteria::ASC) Order by the template_id column + * @method CcPlayoutHistoryTemplateFieldQuery orderByDbName($order = Criteria::ASC) Order by the name column + * @method CcPlayoutHistoryTemplateFieldQuery orderByDbLabel($order = Criteria::ASC) Order by the label column + * @method CcPlayoutHistoryTemplateFieldQuery orderByDbType($order = Criteria::ASC) Order by the type column + * @method CcPlayoutHistoryTemplateFieldQuery orderByDbIsFileMD($order = Criteria::ASC) Order by the is_file_md column + * @method CcPlayoutHistoryTemplateFieldQuery orderByDbPosition($order = Criteria::ASC) Order by the position column * - * @method CcPlayoutHistoryTemplateFieldQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcPlayoutHistoryTemplateFieldQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcPlayoutHistoryTemplateFieldQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcPlayoutHistoryTemplateFieldQuery groupByDbId() Group by the id column + * @method CcPlayoutHistoryTemplateFieldQuery groupByDbTemplateId() Group by the template_id column + * @method CcPlayoutHistoryTemplateFieldQuery groupByDbName() Group by the name column + * @method CcPlayoutHistoryTemplateFieldQuery groupByDbLabel() Group by the label column + * @method CcPlayoutHistoryTemplateFieldQuery groupByDbType() Group by the type column + * @method CcPlayoutHistoryTemplateFieldQuery groupByDbIsFileMD() Group by the is_file_md column + * @method CcPlayoutHistoryTemplateFieldQuery groupByDbPosition() Group by the position column * - * @method CcPlayoutHistoryTemplateFieldQuery leftJoinCcPlayoutHistoryTemplate($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPlayoutHistoryTemplate relation - * @method CcPlayoutHistoryTemplateFieldQuery rightJoinCcPlayoutHistoryTemplate($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPlayoutHistoryTemplate relation - * @method CcPlayoutHistoryTemplateFieldQuery innerJoinCcPlayoutHistoryTemplate($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPlayoutHistoryTemplate relation + * @method CcPlayoutHistoryTemplateFieldQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcPlayoutHistoryTemplateFieldQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcPlayoutHistoryTemplateFieldQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcPlayoutHistoryTemplateField findOne(PropelPDO $con = null) Return the first CcPlayoutHistoryTemplateField matching the query - * @method CcPlayoutHistoryTemplateField findOneOrCreate(PropelPDO $con = null) Return the first CcPlayoutHistoryTemplateField matching the query, or a new CcPlayoutHistoryTemplateField object populated from the query conditions when no match is found + * @method CcPlayoutHistoryTemplateFieldQuery leftJoinCcPlayoutHistoryTemplate($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcPlayoutHistoryTemplate relation + * @method CcPlayoutHistoryTemplateFieldQuery rightJoinCcPlayoutHistoryTemplate($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcPlayoutHistoryTemplate relation + * @method CcPlayoutHistoryTemplateFieldQuery innerJoinCcPlayoutHistoryTemplate($relationAlias = null) Adds a INNER JOIN clause to the query using the CcPlayoutHistoryTemplate relation * - * @method CcPlayoutHistoryTemplateField findOneByDbId(int $id) Return the first CcPlayoutHistoryTemplateField filtered by the id column - * @method CcPlayoutHistoryTemplateField findOneByDbTemplateId(int $template_id) Return the first CcPlayoutHistoryTemplateField filtered by the template_id column - * @method CcPlayoutHistoryTemplateField findOneByDbName(string $name) Return the first CcPlayoutHistoryTemplateField filtered by the name column - * @method CcPlayoutHistoryTemplateField findOneByDbLabel(string $label) Return the first CcPlayoutHistoryTemplateField filtered by the label column - * @method CcPlayoutHistoryTemplateField findOneByDbType(string $type) Return the first CcPlayoutHistoryTemplateField filtered by the type column - * @method CcPlayoutHistoryTemplateField findOneByDbIsFileMD(boolean $is_file_md) Return the first CcPlayoutHistoryTemplateField filtered by the is_file_md column - * @method CcPlayoutHistoryTemplateField findOneByDbPosition(int $position) Return the first CcPlayoutHistoryTemplateField filtered by the position column + * @method CcPlayoutHistoryTemplateField findOne(PropelPDO $con = null) Return the first CcPlayoutHistoryTemplateField matching the query + * @method CcPlayoutHistoryTemplateField findOneOrCreate(PropelPDO $con = null) Return the first CcPlayoutHistoryTemplateField matching the query, or a new CcPlayoutHistoryTemplateField object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcPlayoutHistoryTemplateField objects filtered by the id column - * @method array findByDbTemplateId(int $template_id) Return CcPlayoutHistoryTemplateField objects filtered by the template_id column - * @method array findByDbName(string $name) Return CcPlayoutHistoryTemplateField objects filtered by the name column - * @method array findByDbLabel(string $label) Return CcPlayoutHistoryTemplateField objects filtered by the label column - * @method array findByDbType(string $type) Return CcPlayoutHistoryTemplateField objects filtered by the type column - * @method array findByDbIsFileMD(boolean $is_file_md) Return CcPlayoutHistoryTemplateField objects filtered by the is_file_md column - * @method array findByDbPosition(int $position) Return CcPlayoutHistoryTemplateField objects filtered by the position column + * @method CcPlayoutHistoryTemplateField findOneByDbTemplateId(int $template_id) Return the first CcPlayoutHistoryTemplateField filtered by the template_id column + * @method CcPlayoutHistoryTemplateField findOneByDbName(string $name) Return the first CcPlayoutHistoryTemplateField filtered by the name column + * @method CcPlayoutHistoryTemplateField findOneByDbLabel(string $label) Return the first CcPlayoutHistoryTemplateField filtered by the label column + * @method CcPlayoutHistoryTemplateField findOneByDbType(string $type) Return the first CcPlayoutHistoryTemplateField filtered by the type column + * @method CcPlayoutHistoryTemplateField findOneByDbIsFileMD(boolean $is_file_md) Return the first CcPlayoutHistoryTemplateField filtered by the is_file_md column + * @method CcPlayoutHistoryTemplateField findOneByDbPosition(int $position) Return the first CcPlayoutHistoryTemplateField filtered by the position column + * + * @method array findByDbId(int $id) Return CcPlayoutHistoryTemplateField objects filtered by the id column + * @method array findByDbTemplateId(int $template_id) Return CcPlayoutHistoryTemplateField objects filtered by the template_id column + * @method array findByDbName(string $name) Return CcPlayoutHistoryTemplateField objects filtered by the name column + * @method array findByDbLabel(string $label) Return CcPlayoutHistoryTemplateField objects filtered by the label column + * @method array findByDbType(string $type) Return CcPlayoutHistoryTemplateField objects filtered by the type column + * @method array findByDbIsFileMD(boolean $is_file_md) Return CcPlayoutHistoryTemplateField objects filtered by the is_file_md column + * @method array findByDbPosition(int $position) Return CcPlayoutHistoryTemplateField objects filtered by the position column * * @package propel.generator.airtime.om */ abstract class BaseCcPlayoutHistoryTemplateFieldQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcPlayoutHistoryTemplateFieldQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcPlayoutHistoryTemplateField'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcPlayoutHistoryTemplateFieldQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcPlayoutHistoryTemplateFieldQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcPlayoutHistoryTemplateFieldQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcPlayoutHistoryTemplateFieldQuery) { + return $criteria; + } + $query = new CcPlayoutHistoryTemplateFieldQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcPlayoutHistoryTemplateField|CcPlayoutHistoryTemplateField[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcPlayoutHistoryTemplateFieldPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplateFieldPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlayoutHistoryTemplateField A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlayoutHistoryTemplateField A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "template_id", "name", "label", "type", "is_file_md", "position" FROM "cc_playout_history_template_field" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcPlayoutHistoryTemplateField(); + $obj->hydrate($row); + CcPlayoutHistoryTemplateFieldPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlayoutHistoryTemplateField|CcPlayoutHistoryTemplateField[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcPlayoutHistoryTemplateField[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the template_id column + * + * Example usage: + * + * $query->filterByDbTemplateId(1234); // WHERE template_id = 1234 + * $query->filterByDbTemplateId(array(12, 34)); // WHERE template_id IN (12, 34) + * $query->filterByDbTemplateId(array('min' => 12)); // WHERE template_id >= 12 + * $query->filterByDbTemplateId(array('max' => 12)); // WHERE template_id <= 12 + * + * + * @see filterByCcPlayoutHistoryTemplate() + * + * @param mixed $dbTemplateId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface + */ + public function filterByDbTemplateId($dbTemplateId = null, $comparison = null) + { + if (is_array($dbTemplateId)) { + $useMinMax = false; + if (isset($dbTemplateId['min'])) { + $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, $dbTemplateId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbTemplateId['max'])) { + $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, $dbTemplateId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, $dbTemplateId, $comparison); + } + + /** + * Filter the query on the name column + * + * Example usage: + * + * $query->filterByDbName('fooValue'); // WHERE name = 'fooValue' + * $query->filterByDbName('%fooValue%'); // WHERE name LIKE '%fooValue%' + * + * + * @param string $dbName 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 CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface + */ + public function filterByDbName($dbName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbName)) { + $dbName = str_replace('*', '%', $dbName); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::NAME, $dbName, $comparison); + } + + /** + * Filter the query on the label column + * + * Example usage: + * + * $query->filterByDbLabel('fooValue'); // WHERE label = 'fooValue' + * $query->filterByDbLabel('%fooValue%'); // WHERE label LIKE '%fooValue%' + * + * + * @param string $dbLabel 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 CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface + */ + public function filterByDbLabel($dbLabel = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLabel)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLabel)) { + $dbLabel = str_replace('*', '%', $dbLabel); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::LABEL, $dbLabel, $comparison); + } + + /** + * Filter the query on the type column + * + * Example usage: + * + * $query->filterByDbType('fooValue'); // WHERE type = 'fooValue' + * $query->filterByDbType('%fooValue%'); // WHERE type LIKE '%fooValue%' + * + * + * @param string $dbType 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 CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface + */ + public function filterByDbType($dbType = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbType)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbType)) { + $dbType = str_replace('*', '%', $dbType); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::TYPE, $dbType, $comparison); + } + + /** + * Filter the query on the is_file_md column + * + * Example usage: + * + * $query->filterByDbIsFileMD(true); // WHERE is_file_md = true + * $query->filterByDbIsFileMD('yes'); // WHERE is_file_md = true + * + * + * @param boolean|string $dbIsFileMD The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface + */ + public function filterByDbIsFileMD($dbIsFileMD = null, $comparison = null) + { + if (is_string($dbIsFileMD)) { + $dbIsFileMD = in_array(strtolower($dbIsFileMD), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::IS_FILE_MD, $dbIsFileMD, $comparison); + } + + /** + * Filter the query on the position column + * + * Example usage: + * + * $query->filterByDbPosition(1234); // WHERE position = 1234 + * $query->filterByDbPosition(array(12, 34)); // WHERE position IN (12, 34) + * $query->filterByDbPosition(array('min' => 12)); // WHERE position >= 12 + * $query->filterByDbPosition(array('max' => 12)); // WHERE position <= 12 + * + * + * @param mixed $dbPosition The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface + */ + public function filterByDbPosition($dbPosition = null, $comparison = null) + { + if (is_array($dbPosition)) { + $useMinMax = false; + if (isset($dbPosition['min'])) { + $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::POSITION, $dbPosition['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbPosition['max'])) { + $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::POSITION, $dbPosition['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::POSITION, $dbPosition, $comparison); + } + + /** + * Filter the query by a related CcPlayoutHistoryTemplate object + * + * @param CcPlayoutHistoryTemplate|PropelObjectCollection $ccPlayoutHistoryTemplate The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcPlayoutHistoryTemplate($ccPlayoutHistoryTemplate, $comparison = null) + { + if ($ccPlayoutHistoryTemplate instanceof CcPlayoutHistoryTemplate) { + return $this + ->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, $ccPlayoutHistoryTemplate->getDbId(), $comparison); + } elseif ($ccPlayoutHistoryTemplate instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, $ccPlayoutHistoryTemplate->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcPlayoutHistoryTemplate() only accepts arguments of type CcPlayoutHistoryTemplate or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcPlayoutHistoryTemplate relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface + */ + public function joinCcPlayoutHistoryTemplate($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcPlayoutHistoryTemplate'); + + // 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, 'CcPlayoutHistoryTemplate'); + } + + return $this; + } + + /** + * Use the CcPlayoutHistoryTemplate relation CcPlayoutHistoryTemplate 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 CcPlayoutHistoryTemplateQuery A secondary query class using the current class as primary query + */ + public function useCcPlayoutHistoryTemplateQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcPlayoutHistoryTemplate($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcPlayoutHistoryTemplate', 'CcPlayoutHistoryTemplateQuery'); + } + + /** + * Exclude object from result + * + * @param CcPlayoutHistoryTemplateField $ccPlayoutHistoryTemplateField Object to remove from the list of results + * + * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface + */ + public function prune($ccPlayoutHistoryTemplateField = null) + { + if ($ccPlayoutHistoryTemplateField) { + $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::ID, $ccPlayoutHistoryTemplateField->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcPlayoutHistoryTemplateFieldQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcPlayoutHistoryTemplateField', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcPlayoutHistoryTemplateFieldQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcPlayoutHistoryTemplateFieldQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcPlayoutHistoryTemplateFieldQuery) { - return $criteria; - } - $query = new CcPlayoutHistoryTemplateFieldQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcPlayoutHistoryTemplateField|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcPlayoutHistoryTemplateFieldPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the template_id column - * - * @param int|array $dbTemplateId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface - */ - public function filterByDbTemplateId($dbTemplateId = null, $comparison = null) - { - if (is_array($dbTemplateId)) { - $useMinMax = false; - if (isset($dbTemplateId['min'])) { - $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, $dbTemplateId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbTemplateId['max'])) { - $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, $dbTemplateId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, $dbTemplateId, $comparison); - } - - /** - * Filter the query on the name column - * - * @param string $dbName 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 CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface - */ - public function filterByDbName($dbName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbName)) { - $dbName = str_replace('*', '%', $dbName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::NAME, $dbName, $comparison); - } - - /** - * Filter the query on the label column - * - * @param string $dbLabel 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 CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface - */ - public function filterByDbLabel($dbLabel = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLabel)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLabel)) { - $dbLabel = str_replace('*', '%', $dbLabel); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::LABEL, $dbLabel, $comparison); - } - - /** - * Filter the query on the type column - * - * @param string $dbType 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 CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface - */ - public function filterByDbType($dbType = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbType)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbType)) { - $dbType = str_replace('*', '%', $dbType); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::TYPE, $dbType, $comparison); - } - - /** - * Filter the query on the is_file_md column - * - * @param boolean|string $dbIsFileMD 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 CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface - */ - public function filterByDbIsFileMD($dbIsFileMD = null, $comparison = null) - { - if (is_string($dbIsFileMD)) { - $is_file_md = in_array(strtolower($dbIsFileMD), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - } - return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::IS_FILE_MD, $dbIsFileMD, $comparison); - } - - /** - * Filter the query on the position column - * - * @param int|array $dbPosition The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface - */ - public function filterByDbPosition($dbPosition = null, $comparison = null) - { - if (is_array($dbPosition)) { - $useMinMax = false; - if (isset($dbPosition['min'])) { - $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::POSITION, $dbPosition['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbPosition['max'])) { - $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::POSITION, $dbPosition['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::POSITION, $dbPosition, $comparison); - } - - /** - * Filter the query by a related CcPlayoutHistoryTemplate object - * - * @param CcPlayoutHistoryTemplate $ccPlayoutHistoryTemplate the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface - */ - public function filterByCcPlayoutHistoryTemplate($ccPlayoutHistoryTemplate, $comparison = null) - { - return $this - ->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::TEMPLATE_ID, $ccPlayoutHistoryTemplate->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcPlayoutHistoryTemplate relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface - */ - public function joinCcPlayoutHistoryTemplate($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcPlayoutHistoryTemplate'); - - // 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, 'CcPlayoutHistoryTemplate'); - } - - return $this; - } - - /** - * Use the CcPlayoutHistoryTemplate relation CcPlayoutHistoryTemplate 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 CcPlayoutHistoryTemplateQuery A secondary query class using the current class as primary query - */ - public function useCcPlayoutHistoryTemplateQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcPlayoutHistoryTemplate($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcPlayoutHistoryTemplate', 'CcPlayoutHistoryTemplateQuery'); - } - - /** - * Exclude object from result - * - * @param CcPlayoutHistoryTemplateField $ccPlayoutHistoryTemplateField Object to remove from the list of results - * - * @return CcPlayoutHistoryTemplateFieldQuery The current query, for fluid interface - */ - public function prune($ccPlayoutHistoryTemplateField = null) - { - if ($ccPlayoutHistoryTemplateField) { - $this->addUsingAlias(CcPlayoutHistoryTemplateFieldPeer::ID, $ccPlayoutHistoryTemplateField->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcPlayoutHistoryTemplateFieldQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplatePeer.php b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplatePeer.php index 9e1d216f19..89c7cdc9d2 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplatePeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplatePeer.php @@ -4,740 +4,762 @@ /** * Base static class for performing query and update operations on the 'cc_playout_history_template' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcPlayoutHistoryTemplatePeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_playout_history_template'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcPlayoutHistoryTemplate'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcPlayoutHistoryTemplate'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcPlayoutHistoryTemplateTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 3; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_playout_history_template.ID'; - - /** the column name for the NAME field */ - const NAME = 'cc_playout_history_template.NAME'; - - /** the column name for the TYPE field */ - const TYPE = 'cc_playout_history_template.TYPE'; - - /** - * An identiy map to hold any loaded instances of CcPlayoutHistoryTemplate objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcPlayoutHistoryTemplate[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbType', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbType', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::NAME, self::TYPE, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'TYPE', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'type', ), - BasePeer::TYPE_NUM => array (0, 1, 2, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbType' => 2, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbType' => 2, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::NAME => 1, self::TYPE => 2, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'TYPE' => 2, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'type' => 2, ), - BasePeer::TYPE_NUM => array (0, 1, 2, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcPlayoutHistoryTemplatePeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcPlayoutHistoryTemplatePeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcPlayoutHistoryTemplatePeer::ID); - $criteria->addSelectColumn(CcPlayoutHistoryTemplatePeer::NAME); - $criteria->addSelectColumn(CcPlayoutHistoryTemplatePeer::TYPE); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.NAME'); - $criteria->addSelectColumn($alias . '.TYPE'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPlayoutHistoryTemplatePeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPlayoutHistoryTemplatePeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcPlayoutHistoryTemplate - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcPlayoutHistoryTemplatePeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcPlayoutHistoryTemplatePeer::populateObjects(CcPlayoutHistoryTemplatePeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcPlayoutHistoryTemplatePeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcPlayoutHistoryTemplate $value A CcPlayoutHistoryTemplate object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcPlayoutHistoryTemplate $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcPlayoutHistoryTemplate object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcPlayoutHistoryTemplate) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPlayoutHistoryTemplate object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcPlayoutHistoryTemplate Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_playout_history_template - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - // Invalidate objects in CcPlayoutHistoryTemplateFieldPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcPlayoutHistoryTemplateFieldPeer::clearInstancePool(); - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcPlayoutHistoryTemplatePeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcPlayoutHistoryTemplatePeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcPlayoutHistoryTemplatePeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcPlayoutHistoryTemplatePeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcPlayoutHistoryTemplate object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcPlayoutHistoryTemplatePeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcPlayoutHistoryTemplatePeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcPlayoutHistoryTemplatePeer::NUM_COLUMNS; - } else { - $cls = CcPlayoutHistoryTemplatePeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcPlayoutHistoryTemplatePeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcPlayoutHistoryTemplatePeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcPlayoutHistoryTemplatePeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcPlayoutHistoryTemplateTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcPlayoutHistoryTemplatePeer::CLASS_DEFAULT : CcPlayoutHistoryTemplatePeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcPlayoutHistoryTemplate or Criteria object. - * - * @param mixed $values Criteria or CcPlayoutHistoryTemplate object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcPlayoutHistoryTemplate object - } - - if ($criteria->containsKey(CcPlayoutHistoryTemplatePeer::ID) && $criteria->keyContainsValue(CcPlayoutHistoryTemplatePeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlayoutHistoryTemplatePeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcPlayoutHistoryTemplate or Criteria object. - * - * @param mixed $values Criteria or CcPlayoutHistoryTemplate object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcPlayoutHistoryTemplatePeer::ID); - $value = $criteria->remove(CcPlayoutHistoryTemplatePeer::ID); - if ($value) { - $selectCriteria->add(CcPlayoutHistoryTemplatePeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcPlayoutHistoryTemplatePeer::TABLE_NAME); - } - - } else { // $values is CcPlayoutHistoryTemplate object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_playout_history_template table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcPlayoutHistoryTemplatePeer::TABLE_NAME, $con, CcPlayoutHistoryTemplatePeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcPlayoutHistoryTemplatePeer::clearInstancePool(); - CcPlayoutHistoryTemplatePeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcPlayoutHistoryTemplate or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcPlayoutHistoryTemplate object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcPlayoutHistoryTemplatePeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcPlayoutHistoryTemplate) { // it's a model object - // invalidate the cache for this single object - CcPlayoutHistoryTemplatePeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryTemplatePeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcPlayoutHistoryTemplatePeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcPlayoutHistoryTemplatePeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcPlayoutHistoryTemplate object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcPlayoutHistoryTemplate $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcPlayoutHistoryTemplate $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcPlayoutHistoryTemplatePeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, CcPlayoutHistoryTemplatePeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcPlayoutHistoryTemplate - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcPlayoutHistoryTemplatePeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryTemplatePeer::ID, $pk); - - $v = CcPlayoutHistoryTemplatePeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); - $criteria->add(CcPlayoutHistoryTemplatePeer::ID, $pks, Criteria::IN); - $objs = CcPlayoutHistoryTemplatePeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcPlayoutHistoryTemplatePeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_playout_history_template'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcPlayoutHistoryTemplate'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcPlayoutHistoryTemplateTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 3; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 3; + + /** the column name for the id field */ + const ID = 'cc_playout_history_template.id'; + + /** the column name for the name field */ + const NAME = 'cc_playout_history_template.name'; + + /** the column name for the type field */ + const TYPE = 'cc_playout_history_template.type'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcPlayoutHistoryTemplate objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcPlayoutHistoryTemplate[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcPlayoutHistoryTemplatePeer::$fieldNames[CcPlayoutHistoryTemplatePeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbType', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbType', ), + BasePeer::TYPE_COLNAME => array (CcPlayoutHistoryTemplatePeer::ID, CcPlayoutHistoryTemplatePeer::NAME, CcPlayoutHistoryTemplatePeer::TYPE, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'TYPE', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'type', ), + BasePeer::TYPE_NUM => array (0, 1, 2, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcPlayoutHistoryTemplatePeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbType' => 2, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbType' => 2, ), + BasePeer::TYPE_COLNAME => array (CcPlayoutHistoryTemplatePeer::ID => 0, CcPlayoutHistoryTemplatePeer::NAME => 1, CcPlayoutHistoryTemplatePeer::TYPE => 2, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'TYPE' => 2, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'type' => 2, ), + BasePeer::TYPE_NUM => array (0, 1, 2, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcPlayoutHistoryTemplatePeer::getFieldNames($toType); + $key = isset(CcPlayoutHistoryTemplatePeer::$fieldKeys[$fromType][$name]) ? CcPlayoutHistoryTemplatePeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcPlayoutHistoryTemplatePeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcPlayoutHistoryTemplatePeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcPlayoutHistoryTemplatePeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcPlayoutHistoryTemplatePeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcPlayoutHistoryTemplatePeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcPlayoutHistoryTemplatePeer::ID); + $criteria->addSelectColumn(CcPlayoutHistoryTemplatePeer::NAME); + $criteria->addSelectColumn(CcPlayoutHistoryTemplatePeer::TYPE); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.name'); + $criteria->addSelectColumn($alias . '.type'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPlayoutHistoryTemplatePeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPlayoutHistoryTemplatePeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcPlayoutHistoryTemplate + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcPlayoutHistoryTemplatePeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcPlayoutHistoryTemplatePeer::populateObjects(CcPlayoutHistoryTemplatePeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcPlayoutHistoryTemplatePeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcPlayoutHistoryTemplate $obj A CcPlayoutHistoryTemplate object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcPlayoutHistoryTemplatePeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcPlayoutHistoryTemplate object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcPlayoutHistoryTemplate) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPlayoutHistoryTemplate object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcPlayoutHistoryTemplatePeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcPlayoutHistoryTemplate Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcPlayoutHistoryTemplatePeer::$instances[$key])) { + return CcPlayoutHistoryTemplatePeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcPlayoutHistoryTemplatePeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcPlayoutHistoryTemplatePeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_playout_history_template + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + // Invalidate objects in CcPlayoutHistoryTemplateFieldPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcPlayoutHistoryTemplateFieldPeer::clearInstancePool(); + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcPlayoutHistoryTemplatePeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcPlayoutHistoryTemplatePeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcPlayoutHistoryTemplatePeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcPlayoutHistoryTemplatePeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcPlayoutHistoryTemplate object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcPlayoutHistoryTemplatePeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcPlayoutHistoryTemplatePeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcPlayoutHistoryTemplatePeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcPlayoutHistoryTemplatePeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcPlayoutHistoryTemplatePeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcPlayoutHistoryTemplatePeer::DATABASE_NAME)->getTable(CcPlayoutHistoryTemplatePeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcPlayoutHistoryTemplatePeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcPlayoutHistoryTemplatePeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcPlayoutHistoryTemplateTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcPlayoutHistoryTemplatePeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcPlayoutHistoryTemplate or Criteria object. + * + * @param mixed $values Criteria or CcPlayoutHistoryTemplate object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcPlayoutHistoryTemplate object + } + + if ($criteria->containsKey(CcPlayoutHistoryTemplatePeer::ID) && $criteria->keyContainsValue(CcPlayoutHistoryTemplatePeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPlayoutHistoryTemplatePeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcPlayoutHistoryTemplate or Criteria object. + * + * @param mixed $values Criteria or CcPlayoutHistoryTemplate object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcPlayoutHistoryTemplatePeer::ID); + $value = $criteria->remove(CcPlayoutHistoryTemplatePeer::ID); + if ($value) { + $selectCriteria->add(CcPlayoutHistoryTemplatePeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcPlayoutHistoryTemplatePeer::TABLE_NAME); + } + + } else { // $values is CcPlayoutHistoryTemplate object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_playout_history_template table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcPlayoutHistoryTemplatePeer::TABLE_NAME, $con, CcPlayoutHistoryTemplatePeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcPlayoutHistoryTemplatePeer::clearInstancePool(); + CcPlayoutHistoryTemplatePeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcPlayoutHistoryTemplate or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcPlayoutHistoryTemplate object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcPlayoutHistoryTemplatePeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcPlayoutHistoryTemplate) { // it's a model object + // invalidate the cache for this single object + CcPlayoutHistoryTemplatePeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryTemplatePeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcPlayoutHistoryTemplatePeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcPlayoutHistoryTemplatePeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcPlayoutHistoryTemplate object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcPlayoutHistoryTemplate $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcPlayoutHistoryTemplatePeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, CcPlayoutHistoryTemplatePeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcPlayoutHistoryTemplate + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcPlayoutHistoryTemplatePeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryTemplatePeer::ID, $pk); + + $v = CcPlayoutHistoryTemplatePeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcPlayoutHistoryTemplate[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcPlayoutHistoryTemplatePeer::DATABASE_NAME); + $criteria->add(CcPlayoutHistoryTemplatePeer::ID, $pks, Criteria::IN); + $objs = CcPlayoutHistoryTemplatePeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcPlayoutHistoryTemplatePeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateQuery.php index ca2f84229c..262b0ee2cb 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPlayoutHistoryTemplateQuery.php @@ -4,282 +4,417 @@ /** * Base class that represents a query for the 'cc_playout_history_template' table. * - * * - * @method CcPlayoutHistoryTemplateQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcPlayoutHistoryTemplateQuery orderByDbName($order = Criteria::ASC) Order by the name column - * @method CcPlayoutHistoryTemplateQuery orderByDbType($order = Criteria::ASC) Order by the type column * - * @method CcPlayoutHistoryTemplateQuery groupByDbId() Group by the id column - * @method CcPlayoutHistoryTemplateQuery groupByDbName() Group by the name column - * @method CcPlayoutHistoryTemplateQuery groupByDbType() Group by the type column + * @method CcPlayoutHistoryTemplateQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcPlayoutHistoryTemplateQuery orderByDbName($order = Criteria::ASC) Order by the name column + * @method CcPlayoutHistoryTemplateQuery orderByDbType($order = Criteria::ASC) Order by the type column * - * @method CcPlayoutHistoryTemplateQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcPlayoutHistoryTemplateQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcPlayoutHistoryTemplateQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcPlayoutHistoryTemplateQuery groupByDbId() Group by the id column + * @method CcPlayoutHistoryTemplateQuery groupByDbName() Group by the name column + * @method CcPlayoutHistoryTemplateQuery groupByDbType() Group by the type column * - * @method CcPlayoutHistoryTemplateQuery leftJoinCcPlayoutHistoryTemplateField($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPlayoutHistoryTemplateField relation - * @method CcPlayoutHistoryTemplateQuery rightJoinCcPlayoutHistoryTemplateField($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPlayoutHistoryTemplateField relation - * @method CcPlayoutHistoryTemplateQuery innerJoinCcPlayoutHistoryTemplateField($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPlayoutHistoryTemplateField relation + * @method CcPlayoutHistoryTemplateQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcPlayoutHistoryTemplateQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcPlayoutHistoryTemplateQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcPlayoutHistoryTemplate findOne(PropelPDO $con = null) Return the first CcPlayoutHistoryTemplate matching the query - * @method CcPlayoutHistoryTemplate findOneOrCreate(PropelPDO $con = null) Return the first CcPlayoutHistoryTemplate matching the query, or a new CcPlayoutHistoryTemplate object populated from the query conditions when no match is found + * @method CcPlayoutHistoryTemplateQuery leftJoinCcPlayoutHistoryTemplateField($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcPlayoutHistoryTemplateField relation + * @method CcPlayoutHistoryTemplateQuery rightJoinCcPlayoutHistoryTemplateField($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcPlayoutHistoryTemplateField relation + * @method CcPlayoutHistoryTemplateQuery innerJoinCcPlayoutHistoryTemplateField($relationAlias = null) Adds a INNER JOIN clause to the query using the CcPlayoutHistoryTemplateField relation * - * @method CcPlayoutHistoryTemplate findOneByDbId(int $id) Return the first CcPlayoutHistoryTemplate filtered by the id column - * @method CcPlayoutHistoryTemplate findOneByDbName(string $name) Return the first CcPlayoutHistoryTemplate filtered by the name column - * @method CcPlayoutHistoryTemplate findOneByDbType(string $type) Return the first CcPlayoutHistoryTemplate filtered by the type column + * @method CcPlayoutHistoryTemplate findOne(PropelPDO $con = null) Return the first CcPlayoutHistoryTemplate matching the query + * @method CcPlayoutHistoryTemplate findOneOrCreate(PropelPDO $con = null) Return the first CcPlayoutHistoryTemplate matching the query, or a new CcPlayoutHistoryTemplate object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcPlayoutHistoryTemplate objects filtered by the id column - * @method array findByDbName(string $name) Return CcPlayoutHistoryTemplate objects filtered by the name column - * @method array findByDbType(string $type) Return CcPlayoutHistoryTemplate objects filtered by the type column + * @method CcPlayoutHistoryTemplate findOneByDbName(string $name) Return the first CcPlayoutHistoryTemplate filtered by the name column + * @method CcPlayoutHistoryTemplate findOneByDbType(string $type) Return the first CcPlayoutHistoryTemplate filtered by the type column + * + * @method array findByDbId(int $id) Return CcPlayoutHistoryTemplate objects filtered by the id column + * @method array findByDbName(string $name) Return CcPlayoutHistoryTemplate objects filtered by the name column + * @method array findByDbType(string $type) Return CcPlayoutHistoryTemplate objects filtered by the type column * * @package propel.generator.airtime.om */ abstract class BaseCcPlayoutHistoryTemplateQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcPlayoutHistoryTemplateQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcPlayoutHistoryTemplate'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcPlayoutHistoryTemplateQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcPlayoutHistoryTemplateQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcPlayoutHistoryTemplateQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcPlayoutHistoryTemplateQuery) { + return $criteria; + } + $query = new CcPlayoutHistoryTemplateQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcPlayoutHistoryTemplate|CcPlayoutHistoryTemplate[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcPlayoutHistoryTemplatePeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcPlayoutHistoryTemplatePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlayoutHistoryTemplate A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlayoutHistoryTemplate A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "name", "type" FROM "cc_playout_history_template" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcPlayoutHistoryTemplate(); + $obj->hydrate($row); + CcPlayoutHistoryTemplatePeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPlayoutHistoryTemplate|CcPlayoutHistoryTemplate[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcPlayoutHistoryTemplate[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcPlayoutHistoryTemplateQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcPlayoutHistoryTemplatePeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcPlayoutHistoryTemplateQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcPlayoutHistoryTemplatePeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryTemplateQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcPlayoutHistoryTemplatePeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcPlayoutHistoryTemplatePeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryTemplatePeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the name column + * + * Example usage: + * + * $query->filterByDbName('fooValue'); // WHERE name = 'fooValue' + * $query->filterByDbName('%fooValue%'); // WHERE name LIKE '%fooValue%' + * + * + * @param string $dbName 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 CcPlayoutHistoryTemplateQuery The current query, for fluid interface + */ + public function filterByDbName($dbName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbName)) { + $dbName = str_replace('*', '%', $dbName); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryTemplatePeer::NAME, $dbName, $comparison); + } + + /** + * Filter the query on the type column + * + * Example usage: + * + * $query->filterByDbType('fooValue'); // WHERE type = 'fooValue' + * $query->filterByDbType('%fooValue%'); // WHERE type LIKE '%fooValue%' + * + * + * @param string $dbType 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 CcPlayoutHistoryTemplateQuery The current query, for fluid interface + */ + public function filterByDbType($dbType = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbType)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbType)) { + $dbType = str_replace('*', '%', $dbType); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPlayoutHistoryTemplatePeer::TYPE, $dbType, $comparison); + } + + /** + * Filter the query by a related CcPlayoutHistoryTemplateField object + * + * @param CcPlayoutHistoryTemplateField|PropelObjectCollection $ccPlayoutHistoryTemplateField the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPlayoutHistoryTemplateQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcPlayoutHistoryTemplateField($ccPlayoutHistoryTemplateField, $comparison = null) + { + if ($ccPlayoutHistoryTemplateField instanceof CcPlayoutHistoryTemplateField) { + return $this + ->addUsingAlias(CcPlayoutHistoryTemplatePeer::ID, $ccPlayoutHistoryTemplateField->getDbTemplateId(), $comparison); + } elseif ($ccPlayoutHistoryTemplateField instanceof PropelObjectCollection) { + return $this + ->useCcPlayoutHistoryTemplateFieldQuery() + ->filterByPrimaryKeys($ccPlayoutHistoryTemplateField->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcPlayoutHistoryTemplateField() only accepts arguments of type CcPlayoutHistoryTemplateField or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcPlayoutHistoryTemplateField relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcPlayoutHistoryTemplateQuery The current query, for fluid interface + */ + public function joinCcPlayoutHistoryTemplateField($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcPlayoutHistoryTemplateField'); + + // 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, 'CcPlayoutHistoryTemplateField'); + } + + return $this; + } + + /** + * Use the CcPlayoutHistoryTemplateField relation CcPlayoutHistoryTemplateField 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 CcPlayoutHistoryTemplateFieldQuery A secondary query class using the current class as primary query + */ + public function useCcPlayoutHistoryTemplateFieldQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcPlayoutHistoryTemplateField($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcPlayoutHistoryTemplateField', 'CcPlayoutHistoryTemplateFieldQuery'); + } + + /** + * Exclude object from result + * + * @param CcPlayoutHistoryTemplate $ccPlayoutHistoryTemplate Object to remove from the list of results + * + * @return CcPlayoutHistoryTemplateQuery The current query, for fluid interface + */ + public function prune($ccPlayoutHistoryTemplate = null) + { + if ($ccPlayoutHistoryTemplate) { + $this->addUsingAlias(CcPlayoutHistoryTemplatePeer::ID, $ccPlayoutHistoryTemplate->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcPlayoutHistoryTemplateQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcPlayoutHistoryTemplate', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcPlayoutHistoryTemplateQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcPlayoutHistoryTemplateQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcPlayoutHistoryTemplateQuery) { - return $criteria; - } - $query = new CcPlayoutHistoryTemplateQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcPlayoutHistoryTemplate|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcPlayoutHistoryTemplatePeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcPlayoutHistoryTemplateQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcPlayoutHistoryTemplatePeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcPlayoutHistoryTemplateQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcPlayoutHistoryTemplatePeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryTemplateQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcPlayoutHistoryTemplatePeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the name column - * - * @param string $dbName 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 CcPlayoutHistoryTemplateQuery The current query, for fluid interface - */ - public function filterByDbName($dbName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbName)) { - $dbName = str_replace('*', '%', $dbName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPlayoutHistoryTemplatePeer::NAME, $dbName, $comparison); - } - - /** - * Filter the query on the type column - * - * @param string $dbType 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 CcPlayoutHistoryTemplateQuery The current query, for fluid interface - */ - public function filterByDbType($dbType = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbType)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbType)) { - $dbType = str_replace('*', '%', $dbType); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPlayoutHistoryTemplatePeer::TYPE, $dbType, $comparison); - } - - /** - * Filter the query by a related CcPlayoutHistoryTemplateField object - * - * @param CcPlayoutHistoryTemplateField $ccPlayoutHistoryTemplateField the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPlayoutHistoryTemplateQuery The current query, for fluid interface - */ - public function filterByCcPlayoutHistoryTemplateField($ccPlayoutHistoryTemplateField, $comparison = null) - { - return $this - ->addUsingAlias(CcPlayoutHistoryTemplatePeer::ID, $ccPlayoutHistoryTemplateField->getDbTemplateId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcPlayoutHistoryTemplateField relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcPlayoutHistoryTemplateQuery The current query, for fluid interface - */ - public function joinCcPlayoutHistoryTemplateField($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcPlayoutHistoryTemplateField'); - - // 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, 'CcPlayoutHistoryTemplateField'); - } - - return $this; - } - - /** - * Use the CcPlayoutHistoryTemplateField relation CcPlayoutHistoryTemplateField 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 CcPlayoutHistoryTemplateFieldQuery A secondary query class using the current class as primary query - */ - public function useCcPlayoutHistoryTemplateFieldQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcPlayoutHistoryTemplateField($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcPlayoutHistoryTemplateField', 'CcPlayoutHistoryTemplateFieldQuery'); - } - - /** - * Exclude object from result - * - * @param CcPlayoutHistoryTemplate $ccPlayoutHistoryTemplate Object to remove from the list of results - * - * @return CcPlayoutHistoryTemplateQuery The current query, for fluid interface - */ - public function prune($ccPlayoutHistoryTemplate = null) - { - if ($ccPlayoutHistoryTemplate) { - $this->addUsingAlias(CcPlayoutHistoryTemplatePeer::ID, $ccPlayoutHistoryTemplate->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcPlayoutHistoryTemplateQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPref.php b/airtime_mvc/application/models/airtime/om/BaseCcPref.php index b1d9a307ed..ce56f1f30d 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPref.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPref.php @@ -4,902 +4,1048 @@ /** * Base class that represents a row from the 'cc_pref' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcPref extends BaseObject implements Persistent +abstract class BaseCcPref extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcPrefPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcPrefPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the subjid field. - * @var int - */ - protected $subjid; - - /** - * The value for the keystr field. - * @var string - */ - protected $keystr; - - /** - * The value for the valstr field. - * @var string - */ - protected $valstr; - - /** - * @var CcSubjs - */ - protected $aCcSubjs; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [id] column value. - * - * @return int - */ - public function getId() - { - return $this->id; - } - - /** - * Get the [subjid] column value. - * - * @return int - */ - public function getSubjid() - { - return $this->subjid; - } - - /** - * Get the [keystr] column value. - * - * @return string - */ - public function getKeystr() - { - return $this->keystr; - } - - /** - * Get the [valstr] column value. - * - * @return string - */ - public function getValstr() - { - return $this->valstr; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcPref The current object (for fluent API support) - */ - public function setId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcPrefPeer::ID; - } - - return $this; - } // setId() - - /** - * Set the value of [subjid] column. - * - * @param int $v new value - * @return CcPref The current object (for fluent API support) - */ - public function setSubjid($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->subjid !== $v) { - $this->subjid = $v; - $this->modifiedColumns[] = CcPrefPeer::SUBJID; - } - - if ($this->aCcSubjs !== null && $this->aCcSubjs->getDbId() !== $v) { - $this->aCcSubjs = null; - } - - return $this; - } // setSubjid() - - /** - * Set the value of [keystr] column. - * - * @param string $v new value - * @return CcPref The current object (for fluent API support) - */ - public function setKeystr($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->keystr !== $v) { - $this->keystr = $v; - $this->modifiedColumns[] = CcPrefPeer::KEYSTR; - } - - return $this; - } // setKeystr() - - /** - * Set the value of [valstr] column. - * - * @param string $v new value - * @return CcPref The current object (for fluent API support) - */ - public function setValstr($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->valstr !== $v) { - $this->valstr = $v; - $this->modifiedColumns[] = CcPrefPeer::VALSTR; - } - - return $this; - } // setValstr() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->subjid = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; - $this->keystr = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->valstr = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 4; // 4 = CcPrefPeer::NUM_COLUMNS - CcPrefPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcPref object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcSubjs !== null && $this->subjid !== $this->aCcSubjs->getDbId()) { - $this->aCcSubjs = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcPrefPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcSubjs = null; - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcPrefQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcPrefPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcSubjs !== null) { - if ($this->aCcSubjs->isModified() || $this->aCcSubjs->isNew()) { - $affectedRows += $this->aCcSubjs->save($con); - } - $this->setCcSubjs($this->aCcSubjs); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcPrefPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcPrefPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPrefPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcPrefPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcSubjs !== null) { - if (!$this->aCcSubjs->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcSubjs->getValidationFailures()); - } - } - - - if (($retval = CcPrefPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPrefPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getId(); - break; - case 1: - return $this->getSubjid(); - break; - case 2: - return $this->getKeystr(); - break; - case 3: - return $this->getValstr(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcPrefPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getId(), - $keys[1] => $this->getSubjid(), - $keys[2] => $this->getKeystr(), - $keys[3] => $this->getValstr(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcSubjs) { - $result['CcSubjs'] = $this->aCcSubjs->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcPrefPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setId($value); - break; - case 1: - $this->setSubjid($value); - break; - case 2: - $this->setKeystr($value); - break; - case 3: - $this->setValstr($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcPrefPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setSubjid($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setKeystr($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setValstr($arr[$keys[3]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcPrefPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcPrefPeer::ID)) $criteria->add(CcPrefPeer::ID, $this->id); - if ($this->isColumnModified(CcPrefPeer::SUBJID)) $criteria->add(CcPrefPeer::SUBJID, $this->subjid); - if ($this->isColumnModified(CcPrefPeer::KEYSTR)) $criteria->add(CcPrefPeer::KEYSTR, $this->keystr); - if ($this->isColumnModified(CcPrefPeer::VALSTR)) $criteria->add(CcPrefPeer::VALSTR, $this->valstr); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcPrefPeer::DATABASE_NAME); - $criteria->add(CcPrefPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcPref (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setSubjid($this->subjid); - $copyObj->setKeystr($this->keystr); - $copyObj->setValstr($this->valstr); - - $copyObj->setNew(true); - $copyObj->setId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcPref Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcPrefPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcPrefPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcSubjs object. - * - * @param CcSubjs $v - * @return CcPref The current object (for fluent API support) - * @throws PropelException - */ - public function setCcSubjs(CcSubjs $v = null) - { - if ($v === null) { - $this->setSubjid(NULL); - } else { - $this->setSubjid($v->getDbId()); - } - - $this->aCcSubjs = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcSubjs object, it will not be re-added. - if ($v !== null) { - $v->addCcPref($this); - } - - return $this; - } - - - /** - * Get the associated CcSubjs object - * - * @param PropelPDO Optional Connection object. - * @return CcSubjs The associated CcSubjs object. - * @throws PropelException - */ - public function getCcSubjs(PropelPDO $con = null) - { - if ($this->aCcSubjs === null && ($this->subjid !== null)) { - $this->aCcSubjs = CcSubjsQuery::create()->findPk($this->subjid, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcSubjs->addCcPrefs($this); - */ - } - return $this->aCcSubjs; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->subjid = null; - $this->keystr = null; - $this->valstr = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - $this->aCcSubjs = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcPref + /** + * Peer class name + */ + const PEER = 'CcPrefPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcPrefPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the subjid field. + * @var int + */ + protected $subjid; + + /** + * The value for the keystr field. + * @var string + */ + protected $keystr; + + /** + * The value for the valstr field. + * @var string + */ + protected $valstr; + + /** + * @var CcSubjs + */ + protected $aCcSubjs; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [id] column value. + * + * @return int + */ + public function getId() + { + + return $this->id; + } + + /** + * Get the [subjid] column value. + * + * @return int + */ + public function getSubjid() + { + + return $this->subjid; + } + + /** + * Get the [keystr] column value. + * + * @return string + */ + public function getKeystr() + { + + return $this->keystr; + } + + /** + * Get the [valstr] column value. + * + * @return string + */ + public function getValstr() + { + + return $this->valstr; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcPref The current object (for fluent API support) + */ + public function setId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcPrefPeer::ID; + } + + + return $this; + } // setId() + + /** + * Set the value of [subjid] column. + * + * @param int $v new value + * @return CcPref The current object (for fluent API support) + */ + public function setSubjid($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->subjid !== $v) { + $this->subjid = $v; + $this->modifiedColumns[] = CcPrefPeer::SUBJID; + } + + if ($this->aCcSubjs !== null && $this->aCcSubjs->getDbId() !== $v) { + $this->aCcSubjs = null; + } + + + return $this; + } // setSubjid() + + /** + * Set the value of [keystr] column. + * + * @param string $v new value + * @return CcPref The current object (for fluent API support) + */ + public function setKeystr($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->keystr !== $v) { + $this->keystr = $v; + $this->modifiedColumns[] = CcPrefPeer::KEYSTR; + } + + + return $this; + } // setKeystr() + + /** + * Set the value of [valstr] column. + * + * @param string $v new value + * @return CcPref The current object (for fluent API support) + */ + public function setValstr($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->valstr !== $v) { + $this->valstr = $v; + $this->modifiedColumns[] = CcPrefPeer::VALSTR; + } + + + return $this; + } // setValstr() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->subjid = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; + $this->keystr = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->valstr = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 4; // 4 = CcPrefPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcPref object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcSubjs !== null && $this->subjid !== $this->aCcSubjs->getDbId()) { + $this->aCcSubjs = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcPrefPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcSubjs = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcPrefQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcPrefPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcSubjs !== null) { + if ($this->aCcSubjs->isModified() || $this->aCcSubjs->isNew()) { + $affectedRows += $this->aCcSubjs->save($con); + } + $this->setCcSubjs($this->aCcSubjs); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcPrefPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcPrefPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_pref_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcPrefPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcPrefPeer::SUBJID)) { + $modifiedColumns[':p' . $index++] = '"subjid"'; + } + if ($this->isColumnModified(CcPrefPeer::KEYSTR)) { + $modifiedColumns[':p' . $index++] = '"keystr"'; + } + if ($this->isColumnModified(CcPrefPeer::VALSTR)) { + $modifiedColumns[':p' . $index++] = '"valstr"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_pref" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"subjid"': + $stmt->bindValue($identifier, $this->subjid, PDO::PARAM_INT); + break; + case '"keystr"': + $stmt->bindValue($identifier, $this->keystr, PDO::PARAM_STR); + break; + case '"valstr"': + $stmt->bindValue($identifier, $this->valstr, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcSubjs !== null) { + if (!$this->aCcSubjs->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcSubjs->getValidationFailures()); + } + } + + + if (($retval = CcPrefPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPrefPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getId(); + break; + case 1: + return $this->getSubjid(); + break; + case 2: + return $this->getKeystr(); + break; + case 3: + return $this->getValstr(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcPref'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcPref'][$this->getPrimaryKey()] = true; + $keys = CcPrefPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getId(), + $keys[1] => $this->getSubjid(), + $keys[2] => $this->getKeystr(), + $keys[3] => $this->getValstr(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcSubjs) { + $result['CcSubjs'] = $this->aCcSubjs->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcPrefPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setId($value); + break; + case 1: + $this->setSubjid($value); + break; + case 2: + $this->setKeystr($value); + break; + case 3: + $this->setValstr($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcPrefPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setSubjid($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setKeystr($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setValstr($arr[$keys[3]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcPrefPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcPrefPeer::ID)) $criteria->add(CcPrefPeer::ID, $this->id); + if ($this->isColumnModified(CcPrefPeer::SUBJID)) $criteria->add(CcPrefPeer::SUBJID, $this->subjid); + if ($this->isColumnModified(CcPrefPeer::KEYSTR)) $criteria->add(CcPrefPeer::KEYSTR, $this->keystr); + if ($this->isColumnModified(CcPrefPeer::VALSTR)) $criteria->add(CcPrefPeer::VALSTR, $this->valstr); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcPrefPeer::DATABASE_NAME); + $criteria->add(CcPrefPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcPref (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setSubjid($this->getSubjid()); + $copyObj->setKeystr($this->getKeystr()); + $copyObj->setValstr($this->getValstr()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcPref Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcPrefPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcPrefPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcSubjs object. + * + * @param CcSubjs $v + * @return CcPref The current object (for fluent API support) + * @throws PropelException + */ + public function setCcSubjs(CcSubjs $v = null) + { + if ($v === null) { + $this->setSubjid(NULL); + } else { + $this->setSubjid($v->getDbId()); + } + + $this->aCcSubjs = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcSubjs object, it will not be re-added. + if ($v !== null) { + $v->addCcPref($this); + } + + + return $this; + } + + + /** + * Get the associated CcSubjs object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcSubjs The associated CcSubjs object. + * @throws PropelException + */ + public function getCcSubjs(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcSubjs === null && ($this->subjid !== null) && $doQuery) { + $this->aCcSubjs = CcSubjsQuery::create()->findPk($this->subjid, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcSubjs->addCcPrefs($this); + */ + } + + return $this->aCcSubjs; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->subjid = null; + $this->keystr = null; + $this->valstr = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcSubjs instanceof Persistent) { + $this->aCcSubjs->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcSubjs = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcPrefPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPrefPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcPrefPeer.php index cb6345eacd..4dceb1f211 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPrefPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPrefPeer.php @@ -4,976 +4,1002 @@ /** * Base static class for performing query and update operations on the 'cc_pref' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcPrefPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_pref'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcPref'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcPref'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcPrefTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 4; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_pref.ID'; - - /** the column name for the SUBJID field */ - const SUBJID = 'cc_pref.SUBJID'; - - /** the column name for the KEYSTR field */ - const KEYSTR = 'cc_pref.KEYSTR'; - - /** the column name for the VALSTR field */ - const VALSTR = 'cc_pref.VALSTR'; - - /** - * An identiy map to hold any loaded instances of CcPref objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcPref[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('Id', 'Subjid', 'Keystr', 'Valstr', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'subjid', 'keystr', 'valstr', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::SUBJID, self::KEYSTR, self::VALSTR, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'SUBJID', 'KEYSTR', 'VALSTR', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'subjid', 'keystr', 'valstr', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Subjid' => 1, 'Keystr' => 2, 'Valstr' => 3, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'subjid' => 1, 'keystr' => 2, 'valstr' => 3, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::SUBJID => 1, self::KEYSTR => 2, self::VALSTR => 3, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'SUBJID' => 1, 'KEYSTR' => 2, 'VALSTR' => 3, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'subjid' => 1, 'keystr' => 2, 'valstr' => 3, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcPrefPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcPrefPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcPrefPeer::ID); - $criteria->addSelectColumn(CcPrefPeer::SUBJID); - $criteria->addSelectColumn(CcPrefPeer::KEYSTR); - $criteria->addSelectColumn(CcPrefPeer::VALSTR); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.SUBJID'); - $criteria->addSelectColumn($alias . '.KEYSTR'); - $criteria->addSelectColumn($alias . '.VALSTR'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPrefPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPrefPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcPref - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcPrefPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcPrefPeer::populateObjects(CcPrefPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcPrefPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcPref $value A CcPref object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcPref $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcPref object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcPref) { - $key = (string) $value->getId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPref object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcPref Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_pref - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcPrefPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcPrefPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcPrefPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcPrefPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcPref object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcPrefPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcPrefPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcPrefPeer::NUM_COLUMNS; - } else { - $cls = CcPrefPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcPrefPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcSubjs table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPrefPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPrefPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPrefPeer::SUBJID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcPref objects pre-filled with their CcSubjs objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPref objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPrefPeer::addSelectColumns($criteria); - $startcol = (CcPrefPeer::NUM_COLUMNS - CcPrefPeer::NUM_LAZY_LOAD_COLUMNS); - CcSubjsPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcPrefPeer::SUBJID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPrefPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPrefPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcPrefPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPrefPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcPref) to $obj2 (CcSubjs) - $obj2->addCcPref($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcPrefPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcPrefPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcPrefPeer::SUBJID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcPref objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcPref objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcPrefPeer::addSelectColumns($criteria); - $startcol2 = (CcPrefPeer::NUM_COLUMNS - CcPrefPeer::NUM_LAZY_LOAD_COLUMNS); - - CcSubjsPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcSubjsPeer::NUM_COLUMNS - CcSubjsPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcPrefPeer::SUBJID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcPrefPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcPrefPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcPrefPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcPrefPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcSubjs rows - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcPref) to the collection in $obj2 (CcSubjs) - $obj2->addCcPref($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcPrefPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcPrefPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcPrefTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcPrefPeer::CLASS_DEFAULT : CcPrefPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcPref or Criteria object. - * - * @param mixed $values Criteria or CcPref object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcPref object - } - - if ($criteria->containsKey(CcPrefPeer::ID) && $criteria->keyContainsValue(CcPrefPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPrefPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcPref or Criteria object. - * - * @param mixed $values Criteria or CcPref object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcPrefPeer::ID); - $value = $criteria->remove(CcPrefPeer::ID); - if ($value) { - $selectCriteria->add(CcPrefPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcPrefPeer::TABLE_NAME); - } - - } else { // $values is CcPref object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_pref table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcPrefPeer::TABLE_NAME, $con, CcPrefPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcPrefPeer::clearInstancePool(); - CcPrefPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcPref or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcPref object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcPrefPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcPref) { // it's a model object - // invalidate the cache for this single object - CcPrefPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcPrefPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcPrefPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcPrefPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcPref object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcPref $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcPref $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcPrefPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcPrefPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcPrefPeer::DATABASE_NAME, CcPrefPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcPref - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcPrefPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcPrefPeer::DATABASE_NAME); - $criteria->add(CcPrefPeer::ID, $pk); - - $v = CcPrefPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcPrefPeer::DATABASE_NAME); - $criteria->add(CcPrefPeer::ID, $pks, Criteria::IN); - $objs = CcPrefPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcPrefPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_pref'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcPref'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcPrefTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 4; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 4; + + /** the column name for the id field */ + const ID = 'cc_pref.id'; + + /** the column name for the subjid field */ + const SUBJID = 'cc_pref.subjid'; + + /** the column name for the keystr field */ + const KEYSTR = 'cc_pref.keystr'; + + /** the column name for the valstr field */ + const VALSTR = 'cc_pref.valstr'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcPref objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcPref[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcPrefPeer::$fieldNames[CcPrefPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('Id', 'Subjid', 'Keystr', 'Valstr', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'subjid', 'keystr', 'valstr', ), + BasePeer::TYPE_COLNAME => array (CcPrefPeer::ID, CcPrefPeer::SUBJID, CcPrefPeer::KEYSTR, CcPrefPeer::VALSTR, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'SUBJID', 'KEYSTR', 'VALSTR', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'subjid', 'keystr', 'valstr', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcPrefPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Subjid' => 1, 'Keystr' => 2, 'Valstr' => 3, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'subjid' => 1, 'keystr' => 2, 'valstr' => 3, ), + BasePeer::TYPE_COLNAME => array (CcPrefPeer::ID => 0, CcPrefPeer::SUBJID => 1, CcPrefPeer::KEYSTR => 2, CcPrefPeer::VALSTR => 3, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'SUBJID' => 1, 'KEYSTR' => 2, 'VALSTR' => 3, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'subjid' => 1, 'keystr' => 2, 'valstr' => 3, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcPrefPeer::getFieldNames($toType); + $key = isset(CcPrefPeer::$fieldKeys[$fromType][$name]) ? CcPrefPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcPrefPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcPrefPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcPrefPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcPrefPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcPrefPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcPrefPeer::ID); + $criteria->addSelectColumn(CcPrefPeer::SUBJID); + $criteria->addSelectColumn(CcPrefPeer::KEYSTR); + $criteria->addSelectColumn(CcPrefPeer::VALSTR); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.subjid'); + $criteria->addSelectColumn($alias . '.keystr'); + $criteria->addSelectColumn($alias . '.valstr'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPrefPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPrefPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcPrefPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcPref + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcPrefPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcPrefPeer::populateObjects(CcPrefPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcPrefPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcPrefPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcPref $obj A CcPref object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getId(); + } // if key === null + CcPrefPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcPref object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcPref) { + $key = (string) $value->getId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcPref object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcPrefPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcPref Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcPrefPeer::$instances[$key])) { + return CcPrefPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcPrefPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcPrefPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_pref + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcPrefPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcPrefPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcPrefPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcPrefPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcPref object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcPrefPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcPrefPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcPrefPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcPrefPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcPrefPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcSubjs table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPrefPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPrefPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPrefPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPrefPeer::SUBJID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcPref objects pre-filled with their CcSubjs objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPref objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPrefPeer::DATABASE_NAME); + } + + CcPrefPeer::addSelectColumns($criteria); + $startcol = CcPrefPeer::NUM_HYDRATE_COLUMNS; + CcSubjsPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcPrefPeer::SUBJID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPrefPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPrefPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcPrefPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPrefPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcPref) to $obj2 (CcSubjs) + $obj2->addCcPref($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcPrefPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcPrefPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcPrefPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcPrefPeer::SUBJID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcPref objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcPref objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcPrefPeer::DATABASE_NAME); + } + + CcPrefPeer::addSelectColumns($criteria); + $startcol2 = CcPrefPeer::NUM_HYDRATE_COLUMNS; + + CcSubjsPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcSubjsPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcPrefPeer::SUBJID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcPrefPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcPrefPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcPrefPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcPrefPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcSubjs rows + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcPref) to the collection in $obj2 (CcSubjs) + $obj2->addCcPref($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcPrefPeer::DATABASE_NAME)->getTable(CcPrefPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcPrefPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcPrefPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcPrefTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcPrefPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcPref or Criteria object. + * + * @param mixed $values Criteria or CcPref object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcPref object + } + + if ($criteria->containsKey(CcPrefPeer::ID) && $criteria->keyContainsValue(CcPrefPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcPrefPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcPrefPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcPref or Criteria object. + * + * @param mixed $values Criteria or CcPref object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcPrefPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcPrefPeer::ID); + $value = $criteria->remove(CcPrefPeer::ID); + if ($value) { + $selectCriteria->add(CcPrefPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcPrefPeer::TABLE_NAME); + } + + } else { // $values is CcPref object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcPrefPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_pref table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcPrefPeer::TABLE_NAME, $con, CcPrefPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcPrefPeer::clearInstancePool(); + CcPrefPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcPref or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcPref object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcPrefPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcPref) { // it's a model object + // invalidate the cache for this single object + CcPrefPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcPrefPeer::DATABASE_NAME); + $criteria->add(CcPrefPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcPrefPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcPrefPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcPrefPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcPref object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcPref $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcPrefPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcPrefPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcPrefPeer::DATABASE_NAME, CcPrefPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcPref + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcPrefPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcPrefPeer::DATABASE_NAME); + $criteria->add(CcPrefPeer::ID, $pk); + + $v = CcPrefPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcPref[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcPrefPeer::DATABASE_NAME); + $criteria->add(CcPrefPeer::ID, $pks, Criteria::IN); + $objs = CcPrefPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcPrefPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcPrefQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcPrefQuery.php index 473bafc987..5e300ab691 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcPrefQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcPrefQuery.php @@ -4,317 +4,467 @@ /** * Base class that represents a query for the 'cc_pref' table. * - * * - * @method CcPrefQuery orderById($order = Criteria::ASC) Order by the id column - * @method CcPrefQuery orderBySubjid($order = Criteria::ASC) Order by the subjid column - * @method CcPrefQuery orderByKeystr($order = Criteria::ASC) Order by the keystr column - * @method CcPrefQuery orderByValstr($order = Criteria::ASC) Order by the valstr column * - * @method CcPrefQuery groupById() Group by the id column - * @method CcPrefQuery groupBySubjid() Group by the subjid column - * @method CcPrefQuery groupByKeystr() Group by the keystr column - * @method CcPrefQuery groupByValstr() Group by the valstr column + * @method CcPrefQuery orderById($order = Criteria::ASC) Order by the id column + * @method CcPrefQuery orderBySubjid($order = Criteria::ASC) Order by the subjid column + * @method CcPrefQuery orderByKeystr($order = Criteria::ASC) Order by the keystr column + * @method CcPrefQuery orderByValstr($order = Criteria::ASC) Order by the valstr column * - * @method CcPrefQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcPrefQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcPrefQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcPrefQuery groupById() Group by the id column + * @method CcPrefQuery groupBySubjid() Group by the subjid column + * @method CcPrefQuery groupByKeystr() Group by the keystr column + * @method CcPrefQuery groupByValstr() Group by the valstr column * - * @method CcPrefQuery leftJoinCcSubjs($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSubjs relation - * @method CcPrefQuery rightJoinCcSubjs($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSubjs relation - * @method CcPrefQuery innerJoinCcSubjs($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSubjs relation + * @method CcPrefQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcPrefQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcPrefQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcPref findOne(PropelPDO $con = null) Return the first CcPref matching the query - * @method CcPref findOneOrCreate(PropelPDO $con = null) Return the first CcPref matching the query, or a new CcPref object populated from the query conditions when no match is found + * @method CcPrefQuery leftJoinCcSubjs($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSubjs relation + * @method CcPrefQuery rightJoinCcSubjs($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSubjs relation + * @method CcPrefQuery innerJoinCcSubjs($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSubjs relation * - * @method CcPref findOneById(int $id) Return the first CcPref filtered by the id column - * @method CcPref findOneBySubjid(int $subjid) Return the first CcPref filtered by the subjid column - * @method CcPref findOneByKeystr(string $keystr) Return the first CcPref filtered by the keystr column - * @method CcPref findOneByValstr(string $valstr) Return the first CcPref filtered by the valstr column + * @method CcPref findOne(PropelPDO $con = null) Return the first CcPref matching the query + * @method CcPref findOneOrCreate(PropelPDO $con = null) Return the first CcPref matching the query, or a new CcPref object populated from the query conditions when no match is found * - * @method array findById(int $id) Return CcPref objects filtered by the id column - * @method array findBySubjid(int $subjid) Return CcPref objects filtered by the subjid column - * @method array findByKeystr(string $keystr) Return CcPref objects filtered by the keystr column - * @method array findByValstr(string $valstr) Return CcPref objects filtered by the valstr column + * @method CcPref findOneBySubjid(int $subjid) Return the first CcPref filtered by the subjid column + * @method CcPref findOneByKeystr(string $keystr) Return the first CcPref filtered by the keystr column + * @method CcPref findOneByValstr(string $valstr) Return the first CcPref filtered by the valstr column + * + * @method array findById(int $id) Return CcPref objects filtered by the id column + * @method array findBySubjid(int $subjid) Return CcPref objects filtered by the subjid column + * @method array findByKeystr(string $keystr) Return CcPref objects filtered by the keystr column + * @method array findByValstr(string $valstr) Return CcPref objects filtered by the valstr column * * @package propel.generator.airtime.om */ abstract class BaseCcPrefQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcPrefQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcPref'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcPrefQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcPrefQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcPrefQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcPrefQuery) { + return $criteria; + } + $query = new CcPrefQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcPref|CcPref[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcPrefPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcPrefPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPref A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneById($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPref A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "subjid", "keystr", "valstr" FROM "cc_pref" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcPref(); + $obj->hydrate($row); + CcPrefPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcPref|CcPref[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcPref[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcPrefQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcPrefPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcPrefQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcPrefPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterById(1234); // WHERE id = 1234 + * $query->filterById(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterById(array('min' => 12)); // WHERE id >= 12 + * $query->filterById(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $id The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPrefQuery The current query, for fluid interface + */ + public function filterById($id = null, $comparison = null) + { + if (is_array($id)) { + $useMinMax = false; + if (isset($id['min'])) { + $this->addUsingAlias(CcPrefPeer::ID, $id['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($id['max'])) { + $this->addUsingAlias(CcPrefPeer::ID, $id['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPrefPeer::ID, $id, $comparison); + } + + /** + * Filter the query on the subjid column + * + * Example usage: + * + * $query->filterBySubjid(1234); // WHERE subjid = 1234 + * $query->filterBySubjid(array(12, 34)); // WHERE subjid IN (12, 34) + * $query->filterBySubjid(array('min' => 12)); // WHERE subjid >= 12 + * $query->filterBySubjid(array('max' => 12)); // WHERE subjid <= 12 + * + * + * @see filterByCcSubjs() + * + * @param mixed $subjid The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPrefQuery The current query, for fluid interface + */ + public function filterBySubjid($subjid = null, $comparison = null) + { + if (is_array($subjid)) { + $useMinMax = false; + if (isset($subjid['min'])) { + $this->addUsingAlias(CcPrefPeer::SUBJID, $subjid['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($subjid['max'])) { + $this->addUsingAlias(CcPrefPeer::SUBJID, $subjid['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcPrefPeer::SUBJID, $subjid, $comparison); + } + + /** + * Filter the query on the keystr column + * + * Example usage: + * + * $query->filterByKeystr('fooValue'); // WHERE keystr = 'fooValue' + * $query->filterByKeystr('%fooValue%'); // WHERE keystr LIKE '%fooValue%' + * + * + * @param string $keystr 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 CcPrefQuery The current query, for fluid interface + */ + public function filterByKeystr($keystr = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($keystr)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $keystr)) { + $keystr = str_replace('*', '%', $keystr); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPrefPeer::KEYSTR, $keystr, $comparison); + } + + /** + * Filter the query on the valstr column + * + * Example usage: + * + * $query->filterByValstr('fooValue'); // WHERE valstr = 'fooValue' + * $query->filterByValstr('%fooValue%'); // WHERE valstr LIKE '%fooValue%' + * + * + * @param string $valstr 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 CcPrefQuery The current query, for fluid interface + */ + public function filterByValstr($valstr = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($valstr)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $valstr)) { + $valstr = str_replace('*', '%', $valstr); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcPrefPeer::VALSTR, $valstr, $comparison); + } + + /** + * Filter the query by a related CcSubjs object + * + * @param CcSubjs|PropelObjectCollection $ccSubjs The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcPrefQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcSubjs($ccSubjs, $comparison = null) + { + if ($ccSubjs instanceof CcSubjs) { + return $this + ->addUsingAlias(CcPrefPeer::SUBJID, $ccSubjs->getDbId(), $comparison); + } elseif ($ccSubjs instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcPrefPeer::SUBJID, $ccSubjs->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcSubjs() only accepts arguments of type CcSubjs or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcSubjs relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcPrefQuery The current query, for fluid interface + */ + public function joinCcSubjs($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcSubjs'); + + // 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, 'CcSubjs'); + } + + return $this; + } + + /** + * Use the CcSubjs relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query + */ + public function useCcSubjsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcSubjs($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); + } + + /** + * Exclude object from result + * + * @param CcPref $ccPref Object to remove from the list of results + * + * @return CcPrefQuery The current query, for fluid interface + */ + public function prune($ccPref = null) + { + if ($ccPref) { + $this->addUsingAlias(CcPrefPeer::ID, $ccPref->getId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcPrefQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcPref', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcPrefQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcPrefQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcPrefQuery) { - return $criteria; - } - $query = new CcPrefQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcPref|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcPrefPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcPrefQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcPrefPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcPrefQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcPrefPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $id The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPrefQuery The current query, for fluid interface - */ - public function filterById($id = null, $comparison = null) - { - if (is_array($id) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcPrefPeer::ID, $id, $comparison); - } - - /** - * Filter the query on the subjid column - * - * @param int|array $subjid The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPrefQuery The current query, for fluid interface - */ - public function filterBySubjid($subjid = null, $comparison = null) - { - if (is_array($subjid)) { - $useMinMax = false; - if (isset($subjid['min'])) { - $this->addUsingAlias(CcPrefPeer::SUBJID, $subjid['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($subjid['max'])) { - $this->addUsingAlias(CcPrefPeer::SUBJID, $subjid['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcPrefPeer::SUBJID, $subjid, $comparison); - } - - /** - * Filter the query on the keystr column - * - * @param string $keystr 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 CcPrefQuery The current query, for fluid interface - */ - public function filterByKeystr($keystr = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($keystr)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $keystr)) { - $keystr = str_replace('*', '%', $keystr); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPrefPeer::KEYSTR, $keystr, $comparison); - } - - /** - * Filter the query on the valstr column - * - * @param string $valstr 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 CcPrefQuery The current query, for fluid interface - */ - public function filterByValstr($valstr = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($valstr)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $valstr)) { - $valstr = str_replace('*', '%', $valstr); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcPrefPeer::VALSTR, $valstr, $comparison); - } - - /** - * Filter the query by a related CcSubjs object - * - * @param CcSubjs $ccSubjs the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcPrefQuery The current query, for fluid interface - */ - public function filterByCcSubjs($ccSubjs, $comparison = null) - { - return $this - ->addUsingAlias(CcPrefPeer::SUBJID, $ccSubjs->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcSubjs relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcPrefQuery The current query, for fluid interface - */ - public function joinCcSubjs($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcSubjs'); - - // 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, 'CcSubjs'); - } - - return $this; - } - - /** - * Use the CcSubjs relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query - */ - public function useCcSubjsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcSubjs($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); - } - - /** - * Exclude object from result - * - * @param CcPref $ccPref Object to remove from the list of results - * - * @return CcPrefQuery The current query, for fluid interface - */ - public function prune($ccPref = null) - { - if ($ccPref) { - $this->addUsingAlias(CcPrefPeer::ID, $ccPref->getId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcPrefQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcSchedule.php b/airtime_mvc/application/models/airtime/om/BaseCcSchedule.php index ceb5008d8b..1bc842b137 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcSchedule.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcSchedule.php @@ -4,2013 +4,2311 @@ /** * Base class that represents a row from the 'cc_schedule' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcSchedule extends BaseObject implements Persistent +abstract class BaseCcSchedule extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcSchedulePeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcSchedulePeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the starts field. - * @var string - */ - protected $starts; - - /** - * The value for the ends field. - * @var string - */ - protected $ends; - - /** - * The value for the file_id field. - * @var int - */ - protected $file_id; - - /** - * The value for the stream_id field. - * @var int - */ - protected $stream_id; - - /** - * The value for the clip_length field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $clip_length; - - /** - * The value for the fade_in field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $fade_in; - - /** - * The value for the fade_out field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $fade_out; - - /** - * The value for the cue_in field. - * @var string - */ - protected $cue_in; - - /** - * The value for the cue_out field. - * @var string - */ - protected $cue_out; - - /** - * The value for the media_item_played field. - * Note: this column has a database default value of: false - * @var boolean - */ - protected $media_item_played; - - /** - * The value for the instance_id field. - * @var int - */ - protected $instance_id; - - /** - * The value for the playout_status field. - * Note: this column has a database default value of: 1 - * @var int - */ - protected $playout_status; - - /** - * The value for the broadcasted field. - * Note: this column has a database default value of: 0 - * @var int - */ - protected $broadcasted; - - /** - * The value for the position field. - * Note: this column has a database default value of: 0 - * @var int - */ - protected $position; - - /** - * @var CcShowInstances - */ - protected $aCcShowInstances; - - /** - * @var CcFiles - */ - protected $aCcFiles; - - /** - * @var CcWebstream - */ - protected $aCcWebstream; - - /** - * @var array CcWebstreamMetadata[] Collection to store aggregation of CcWebstreamMetadata objects. - */ - protected $collCcWebstreamMetadatas; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - 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->clip_length = '00:00:00'; - $this->fade_in = '00:00:00'; - $this->fade_out = '00:00:00'; - $this->media_item_played = false; - $this->playout_status = 1; - $this->broadcasted = 0; - $this->position = 0; - } - - /** - * Initializes internal state of BaseCcSchedule object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [optionally formatted] temporal [starts] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbStarts($format = 'Y-m-d H:i:s') - { - if ($this->starts === null) { - return null; - } - - - - try { - $dt = new DateTime($this->starts); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->starts, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [ends] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbEnds($format = 'Y-m-d H:i:s') - { - if ($this->ends === null) { - return null; - } - - - - try { - $dt = new DateTime($this->ends); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->ends, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [file_id] column value. - * - * @return int - */ - public function getDbFileId() - { - return $this->file_id; - } - - /** - * Get the [stream_id] column value. - * - * @return int - */ - public function getDbStreamId() - { - return $this->stream_id; - } - - /** - * Get the [clip_length] column value. - * - * @return string - */ - public function getDbClipLength() - { - return $this->clip_length; - } - - /** - * Get the [optionally formatted] temporal [fade_in] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbFadeIn($format = '%X') - { - if ($this->fade_in === null) { - return null; - } - - - - try { - $dt = new DateTime($this->fade_in); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->fade_in, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [fade_out] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbFadeOut($format = '%X') - { - if ($this->fade_out === null) { - return null; - } - - - - try { - $dt = new DateTime($this->fade_out); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->fade_out, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [cue_in] column value. - * - * @return string - */ - public function getDbCueIn() - { - return $this->cue_in; - } - - /** - * Get the [cue_out] column value. - * - * @return string - */ - public function getDbCueOut() - { - return $this->cue_out; - } - - /** - * Get the [media_item_played] column value. - * - * @return boolean - */ - public function getDbMediaItemPlayed() - { - return $this->media_item_played; - } - - /** - * Get the [instance_id] column value. - * - * @return int - */ - public function getDbInstanceId() - { - return $this->instance_id; - } - - /** - * Get the [playout_status] column value. - * - * @return int - */ - public function getDbPlayoutStatus() - { - return $this->playout_status; - } - - /** - * Get the [broadcasted] column value. - * - * @return int - */ - public function getDbBroadcasted() - { - return $this->broadcasted; - } - - /** - * Get the [position] column value. - * - * @return int - */ - public function getDbPosition() - { - return $this->position; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcSchedulePeer::ID; - } - - return $this; - } // setDbId() - - /** - * Sets the value of [starts] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbStarts($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->starts !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->starts !== null && $tmpDt = new DateTime($this->starts)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->starts = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcSchedulePeer::STARTS; - } - } // if either are not null - - return $this; - } // setDbStarts() - - /** - * Sets the value of [ends] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbEnds($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->ends !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->ends !== null && $tmpDt = new DateTime($this->ends)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->ends = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcSchedulePeer::ENDS; - } - } // if either are not null - - return $this; - } // setDbEnds() - - /** - * Set the value of [file_id] column. - * - * @param int $v new value - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbFileId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->file_id !== $v) { - $this->file_id = $v; - $this->modifiedColumns[] = CcSchedulePeer::FILE_ID; - } - - if ($this->aCcFiles !== null && $this->aCcFiles->getDbId() !== $v) { - $this->aCcFiles = null; - } - - return $this; - } // setDbFileId() - - /** - * Set the value of [stream_id] column. - * - * @param int $v new value - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbStreamId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->stream_id !== $v) { - $this->stream_id = $v; - $this->modifiedColumns[] = CcSchedulePeer::STREAM_ID; - } - - if ($this->aCcWebstream !== null && $this->aCcWebstream->getDbId() !== $v) { - $this->aCcWebstream = null; - } - - return $this; - } // setDbStreamId() - - /** - * Set the value of [clip_length] column. - * - * @param string $v new value - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbClipLength($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->clip_length !== $v || $this->isNew()) { - $this->clip_length = $v; - $this->modifiedColumns[] = CcSchedulePeer::CLIP_LENGTH; - } - - return $this; - } // setDbClipLength() - - /** - * Sets the value of [fade_in] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbFadeIn($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->fade_in !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->fade_in !== null && $tmpDt = new DateTime($this->fade_in)) ? $tmpDt->format('H:i:s') : null; - $newNorm = ($dt !== null) ? $dt->format('H:i:s') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - || ($dt->format('H:i:s') === '00:00:00') // or the entered value matches the default - ) - { - $this->fade_in = ($dt ? $dt->format('H:i:s') : null); - $this->modifiedColumns[] = CcSchedulePeer::FADE_IN; - } - } // if either are not null - - return $this; - } // setDbFadeIn() - - /** - * Sets the value of [fade_out] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbFadeOut($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->fade_out !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->fade_out !== null && $tmpDt = new DateTime($this->fade_out)) ? $tmpDt->format('H:i:s') : null; - $newNorm = ($dt !== null) ? $dt->format('H:i:s') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - || ($dt->format('H:i:s') === '00:00:00') // or the entered value matches the default - ) - { - $this->fade_out = ($dt ? $dt->format('H:i:s') : null); - $this->modifiedColumns[] = CcSchedulePeer::FADE_OUT; - } - } // if either are not null - - return $this; - } // setDbFadeOut() - - /** - * Set the value of [cue_in] column. - * - * @param string $v new value - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbCueIn($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->cue_in !== $v) { - $this->cue_in = $v; - $this->modifiedColumns[] = CcSchedulePeer::CUE_IN; - } - - return $this; - } // setDbCueIn() - - /** - * Set the value of [cue_out] column. - * - * @param string $v new value - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbCueOut($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->cue_out !== $v) { - $this->cue_out = $v; - $this->modifiedColumns[] = CcSchedulePeer::CUE_OUT; - } - - return $this; - } // setDbCueOut() - - /** - * Set the value of [media_item_played] column. - * - * @param boolean $v new value - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbMediaItemPlayed($v) - { - if ($v !== null) { - $v = (boolean) $v; - } - - if ($this->media_item_played !== $v || $this->isNew()) { - $this->media_item_played = $v; - $this->modifiedColumns[] = CcSchedulePeer::MEDIA_ITEM_PLAYED; - } - - return $this; - } // setDbMediaItemPlayed() - - /** - * Set the value of [instance_id] column. - * - * @param int $v new value - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbInstanceId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->instance_id !== $v) { - $this->instance_id = $v; - $this->modifiedColumns[] = CcSchedulePeer::INSTANCE_ID; - } - - if ($this->aCcShowInstances !== null && $this->aCcShowInstances->getDbId() !== $v) { - $this->aCcShowInstances = null; - } - - return $this; - } // setDbInstanceId() - - /** - * Set the value of [playout_status] column. - * - * @param int $v new value - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbPlayoutStatus($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->playout_status !== $v || $this->isNew()) { - $this->playout_status = $v; - $this->modifiedColumns[] = CcSchedulePeer::PLAYOUT_STATUS; - } - - return $this; - } // setDbPlayoutStatus() - - /** - * Set the value of [broadcasted] column. - * - * @param int $v new value - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbBroadcasted($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->broadcasted !== $v || $this->isNew()) { - $this->broadcasted = $v; - $this->modifiedColumns[] = CcSchedulePeer::BROADCASTED; - } - - return $this; - } // setDbBroadcasted() - - /** - * Set the value of [position] column. - * - * @param int $v new value - * @return CcSchedule The current object (for fluent API support) - */ - public function setDbPosition($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->position !== $v || $this->isNew()) { - $this->position = $v; - $this->modifiedColumns[] = CcSchedulePeer::POSITION; - } - - return $this; - } // setDbPosition() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->clip_length !== '00:00:00') { - return false; - } - - if ($this->fade_in !== '00:00:00') { - return false; - } - - if ($this->fade_out !== '00:00:00') { - return false; - } - - if ($this->media_item_played !== false) { - return false; - } - - if ($this->playout_status !== 1) { - return false; - } - - if ($this->broadcasted !== 0) { - return false; - } - - if ($this->position !== 0) { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->starts = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->ends = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->file_id = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; - $this->stream_id = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; - $this->clip_length = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; - $this->fade_in = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; - $this->fade_out = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null; - $this->cue_in = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; - $this->cue_out = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; - $this->media_item_played = ($row[$startcol + 10] !== null) ? (boolean) $row[$startcol + 10] : null; - $this->instance_id = ($row[$startcol + 11] !== null) ? (int) $row[$startcol + 11] : null; - $this->playout_status = ($row[$startcol + 12] !== null) ? (int) $row[$startcol + 12] : null; - $this->broadcasted = ($row[$startcol + 13] !== null) ? (int) $row[$startcol + 13] : null; - $this->position = ($row[$startcol + 14] !== null) ? (int) $row[$startcol + 14] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 15; // 15 = CcSchedulePeer::NUM_COLUMNS - CcSchedulePeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcSchedule object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcFiles !== null && $this->file_id !== $this->aCcFiles->getDbId()) { - $this->aCcFiles = null; - } - if ($this->aCcWebstream !== null && $this->stream_id !== $this->aCcWebstream->getDbId()) { - $this->aCcWebstream = null; - } - if ($this->aCcShowInstances !== null && $this->instance_id !== $this->aCcShowInstances->getDbId()) { - $this->aCcShowInstances = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcSchedulePeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcShowInstances = null; - $this->aCcFiles = null; - $this->aCcWebstream = null; - $this->collCcWebstreamMetadatas = null; - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcScheduleQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcSchedulePeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcShowInstances !== null) { - if ($this->aCcShowInstances->isModified() || $this->aCcShowInstances->isNew()) { - $affectedRows += $this->aCcShowInstances->save($con); - } - $this->setCcShowInstances($this->aCcShowInstances); - } - - if ($this->aCcFiles !== null) { - if ($this->aCcFiles->isModified() || $this->aCcFiles->isNew()) { - $affectedRows += $this->aCcFiles->save($con); - } - $this->setCcFiles($this->aCcFiles); - } - - if ($this->aCcWebstream !== null) { - if ($this->aCcWebstream->isModified() || $this->aCcWebstream->isNew()) { - $affectedRows += $this->aCcWebstream->save($con); - } - $this->setCcWebstream($this->aCcWebstream); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcSchedulePeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcSchedulePeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcSchedulePeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcSchedulePeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - if ($this->collCcWebstreamMetadatas !== null) { - foreach ($this->collCcWebstreamMetadatas as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcShowInstances !== null) { - if (!$this->aCcShowInstances->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcShowInstances->getValidationFailures()); - } - } - - if ($this->aCcFiles !== null) { - if (!$this->aCcFiles->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcFiles->getValidationFailures()); - } - } - - if ($this->aCcWebstream !== null) { - if (!$this->aCcWebstream->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcWebstream->getValidationFailures()); - } - } - - - if (($retval = CcSchedulePeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - if ($this->collCcWebstreamMetadatas !== null) { - foreach ($this->collCcWebstreamMetadatas as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcSchedulePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbStarts(); - break; - case 2: - return $this->getDbEnds(); - break; - case 3: - return $this->getDbFileId(); - break; - case 4: - return $this->getDbStreamId(); - break; - case 5: - return $this->getDbClipLength(); - break; - case 6: - return $this->getDbFadeIn(); - break; - case 7: - return $this->getDbFadeOut(); - break; - case 8: - return $this->getDbCueIn(); - break; - case 9: - return $this->getDbCueOut(); - break; - case 10: - return $this->getDbMediaItemPlayed(); - break; - case 11: - return $this->getDbInstanceId(); - break; - case 12: - return $this->getDbPlayoutStatus(); - break; - case 13: - return $this->getDbBroadcasted(); - break; - case 14: - return $this->getDbPosition(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcSchedulePeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbStarts(), - $keys[2] => $this->getDbEnds(), - $keys[3] => $this->getDbFileId(), - $keys[4] => $this->getDbStreamId(), - $keys[5] => $this->getDbClipLength(), - $keys[6] => $this->getDbFadeIn(), - $keys[7] => $this->getDbFadeOut(), - $keys[8] => $this->getDbCueIn(), - $keys[9] => $this->getDbCueOut(), - $keys[10] => $this->getDbMediaItemPlayed(), - $keys[11] => $this->getDbInstanceId(), - $keys[12] => $this->getDbPlayoutStatus(), - $keys[13] => $this->getDbBroadcasted(), - $keys[14] => $this->getDbPosition(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcShowInstances) { - $result['CcShowInstances'] = $this->aCcShowInstances->toArray($keyType, $includeLazyLoadColumns, true); - } - if (null !== $this->aCcFiles) { - $result['CcFiles'] = $this->aCcFiles->toArray($keyType, $includeLazyLoadColumns, true); - } - if (null !== $this->aCcWebstream) { - $result['CcWebstream'] = $this->aCcWebstream->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcSchedulePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbStarts($value); - break; - case 2: - $this->setDbEnds($value); - break; - case 3: - $this->setDbFileId($value); - break; - case 4: - $this->setDbStreamId($value); - break; - case 5: - $this->setDbClipLength($value); - break; - case 6: - $this->setDbFadeIn($value); - break; - case 7: - $this->setDbFadeOut($value); - break; - case 8: - $this->setDbCueIn($value); - break; - case 9: - $this->setDbCueOut($value); - break; - case 10: - $this->setDbMediaItemPlayed($value); - break; - case 11: - $this->setDbInstanceId($value); - break; - case 12: - $this->setDbPlayoutStatus($value); - break; - case 13: - $this->setDbBroadcasted($value); - break; - case 14: - $this->setDbPosition($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcSchedulePeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbStarts($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbEnds($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbFileId($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbStreamId($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setDbClipLength($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setDbFadeIn($arr[$keys[6]]); - if (array_key_exists($keys[7], $arr)) $this->setDbFadeOut($arr[$keys[7]]); - if (array_key_exists($keys[8], $arr)) $this->setDbCueIn($arr[$keys[8]]); - if (array_key_exists($keys[9], $arr)) $this->setDbCueOut($arr[$keys[9]]); - if (array_key_exists($keys[10], $arr)) $this->setDbMediaItemPlayed($arr[$keys[10]]); - if (array_key_exists($keys[11], $arr)) $this->setDbInstanceId($arr[$keys[11]]); - if (array_key_exists($keys[12], $arr)) $this->setDbPlayoutStatus($arr[$keys[12]]); - if (array_key_exists($keys[13], $arr)) $this->setDbBroadcasted($arr[$keys[13]]); - if (array_key_exists($keys[14], $arr)) $this->setDbPosition($arr[$keys[14]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcSchedulePeer::DATABASE_NAME); - - if ($this->isColumnModified(CcSchedulePeer::ID)) $criteria->add(CcSchedulePeer::ID, $this->id); - if ($this->isColumnModified(CcSchedulePeer::STARTS)) $criteria->add(CcSchedulePeer::STARTS, $this->starts); - if ($this->isColumnModified(CcSchedulePeer::ENDS)) $criteria->add(CcSchedulePeer::ENDS, $this->ends); - if ($this->isColumnModified(CcSchedulePeer::FILE_ID)) $criteria->add(CcSchedulePeer::FILE_ID, $this->file_id); - if ($this->isColumnModified(CcSchedulePeer::STREAM_ID)) $criteria->add(CcSchedulePeer::STREAM_ID, $this->stream_id); - if ($this->isColumnModified(CcSchedulePeer::CLIP_LENGTH)) $criteria->add(CcSchedulePeer::CLIP_LENGTH, $this->clip_length); - if ($this->isColumnModified(CcSchedulePeer::FADE_IN)) $criteria->add(CcSchedulePeer::FADE_IN, $this->fade_in); - if ($this->isColumnModified(CcSchedulePeer::FADE_OUT)) $criteria->add(CcSchedulePeer::FADE_OUT, $this->fade_out); - if ($this->isColumnModified(CcSchedulePeer::CUE_IN)) $criteria->add(CcSchedulePeer::CUE_IN, $this->cue_in); - if ($this->isColumnModified(CcSchedulePeer::CUE_OUT)) $criteria->add(CcSchedulePeer::CUE_OUT, $this->cue_out); - if ($this->isColumnModified(CcSchedulePeer::MEDIA_ITEM_PLAYED)) $criteria->add(CcSchedulePeer::MEDIA_ITEM_PLAYED, $this->media_item_played); - if ($this->isColumnModified(CcSchedulePeer::INSTANCE_ID)) $criteria->add(CcSchedulePeer::INSTANCE_ID, $this->instance_id); - if ($this->isColumnModified(CcSchedulePeer::PLAYOUT_STATUS)) $criteria->add(CcSchedulePeer::PLAYOUT_STATUS, $this->playout_status); - if ($this->isColumnModified(CcSchedulePeer::BROADCASTED)) $criteria->add(CcSchedulePeer::BROADCASTED, $this->broadcasted); - if ($this->isColumnModified(CcSchedulePeer::POSITION)) $criteria->add(CcSchedulePeer::POSITION, $this->position); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcSchedulePeer::DATABASE_NAME); - $criteria->add(CcSchedulePeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcSchedule (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbStarts($this->starts); - $copyObj->setDbEnds($this->ends); - $copyObj->setDbFileId($this->file_id); - $copyObj->setDbStreamId($this->stream_id); - $copyObj->setDbClipLength($this->clip_length); - $copyObj->setDbFadeIn($this->fade_in); - $copyObj->setDbFadeOut($this->fade_out); - $copyObj->setDbCueIn($this->cue_in); - $copyObj->setDbCueOut($this->cue_out); - $copyObj->setDbMediaItemPlayed($this->media_item_played); - $copyObj->setDbInstanceId($this->instance_id); - $copyObj->setDbPlayoutStatus($this->playout_status); - $copyObj->setDbBroadcasted($this->broadcasted); - $copyObj->setDbPosition($this->position); - - if ($deepCopy) { - // important: temporarily setNew(false) because this affects the behavior of - // the getter/setter methods for fkey referrer objects. - $copyObj->setNew(false); - - foreach ($this->getCcWebstreamMetadatas() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcWebstreamMetadata($relObj->copy($deepCopy)); - } - } - - } // if ($deepCopy) - - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcSchedule Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcSchedulePeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcSchedulePeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcShowInstances object. - * - * @param CcShowInstances $v - * @return CcSchedule The current object (for fluent API support) - * @throws PropelException - */ - public function setCcShowInstances(CcShowInstances $v = null) - { - if ($v === null) { - $this->setDbInstanceId(NULL); - } else { - $this->setDbInstanceId($v->getDbId()); - } - - $this->aCcShowInstances = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcShowInstances object, it will not be re-added. - if ($v !== null) { - $v->addCcSchedule($this); - } - - return $this; - } - - - /** - * Get the associated CcShowInstances object - * - * @param PropelPDO Optional Connection object. - * @return CcShowInstances The associated CcShowInstances object. - * @throws PropelException - */ - public function getCcShowInstances(PropelPDO $con = null) - { - if ($this->aCcShowInstances === null && ($this->instance_id !== null)) { - $this->aCcShowInstances = CcShowInstancesQuery::create()->findPk($this->instance_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcShowInstances->addCcSchedules($this); - */ - } - return $this->aCcShowInstances; - } - - /** - * Declares an association between this object and a CcFiles object. - * - * @param CcFiles $v - * @return CcSchedule The current object (for fluent API support) - * @throws PropelException - */ - public function setCcFiles(CcFiles $v = null) - { - if ($v === null) { - $this->setDbFileId(NULL); - } else { - $this->setDbFileId($v->getDbId()); - } - - $this->aCcFiles = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcFiles object, it will not be re-added. - if ($v !== null) { - $v->addCcSchedule($this); - } - - return $this; - } - - - /** - * Get the associated CcFiles object - * - * @param PropelPDO Optional Connection object. - * @return CcFiles The associated CcFiles object. - * @throws PropelException - */ - public function getCcFiles(PropelPDO $con = null) - { - if ($this->aCcFiles === null && ($this->file_id !== null)) { - $this->aCcFiles = CcFilesQuery::create()->findPk($this->file_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcFiles->addCcSchedules($this); - */ - } - return $this->aCcFiles; - } - - /** - * Declares an association between this object and a CcWebstream object. - * - * @param CcWebstream $v - * @return CcSchedule The current object (for fluent API support) - * @throws PropelException - */ - public function setCcWebstream(CcWebstream $v = null) - { - if ($v === null) { - $this->setDbStreamId(NULL); - } else { - $this->setDbStreamId($v->getDbId()); - } - - $this->aCcWebstream = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcWebstream object, it will not be re-added. - if ($v !== null) { - $v->addCcSchedule($this); - } - - return $this; - } - - - /** - * Get the associated CcWebstream object - * - * @param PropelPDO Optional Connection object. - * @return CcWebstream The associated CcWebstream object. - * @throws PropelException - */ - public function getCcWebstream(PropelPDO $con = null) - { - if ($this->aCcWebstream === null && ($this->stream_id !== null)) { - $this->aCcWebstream = CcWebstreamQuery::create()->findPk($this->stream_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcWebstream->addCcSchedules($this); - */ - } - return $this->aCcWebstream; - } - - /** - * Clears out the collCcWebstreamMetadatas 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 addCcWebstreamMetadatas() - */ - public function clearCcWebstreamMetadatas() - { - $this->collCcWebstreamMetadatas = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcWebstreamMetadatas collection. - * - * By default this just sets the collCcWebstreamMetadatas collection to an empty array (like clearcollCcWebstreamMetadatas()); - * 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 initCcWebstreamMetadatas() - { - $this->collCcWebstreamMetadatas = new PropelObjectCollection(); - $this->collCcWebstreamMetadatas->setModel('CcWebstreamMetadata'); - } - - /** - * Gets an array of CcWebstreamMetadata 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 CcSchedule 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 CcWebstreamMetadata[] List of CcWebstreamMetadata objects - * @throws PropelException - */ - public function getCcWebstreamMetadatas($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcWebstreamMetadatas || null !== $criteria) { - if ($this->isNew() && null === $this->collCcWebstreamMetadatas) { - // return empty collection - $this->initCcWebstreamMetadatas(); - } else { - $collCcWebstreamMetadatas = CcWebstreamMetadataQuery::create(null, $criteria) - ->filterByCcSchedule($this) - ->find($con); - if (null !== $criteria) { - return $collCcWebstreamMetadatas; - } - $this->collCcWebstreamMetadatas = $collCcWebstreamMetadatas; - } - } - return $this->collCcWebstreamMetadatas; - } - - /** - * Returns the number of related CcWebstreamMetadata objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcWebstreamMetadata objects. - * @throws PropelException - */ - public function countCcWebstreamMetadatas(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcWebstreamMetadatas || null !== $criteria) { - if ($this->isNew() && null === $this->collCcWebstreamMetadatas) { - return 0; - } else { - $query = CcWebstreamMetadataQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcSchedule($this) - ->count($con); - } - } else { - return count($this->collCcWebstreamMetadatas); - } - } - - /** - * Method called to associate a CcWebstreamMetadata object to this object - * through the CcWebstreamMetadata foreign key attribute. - * - * @param CcWebstreamMetadata $l CcWebstreamMetadata - * @return void - * @throws PropelException - */ - public function addCcWebstreamMetadata(CcWebstreamMetadata $l) - { - if ($this->collCcWebstreamMetadatas === null) { - $this->initCcWebstreamMetadatas(); - } - if (!$this->collCcWebstreamMetadatas->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcWebstreamMetadatas[]= $l; - $l->setCcSchedule($this); - } - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->starts = null; - $this->ends = null; - $this->file_id = null; - $this->stream_id = null; - $this->clip_length = null; - $this->fade_in = null; - $this->fade_out = null; - $this->cue_in = null; - $this->cue_out = null; - $this->media_item_played = null; - $this->instance_id = null; - $this->playout_status = null; - $this->broadcasted = null; - $this->position = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - if ($this->collCcWebstreamMetadatas) { - foreach ((array) $this->collCcWebstreamMetadatas as $o) { - $o->clearAllReferences($deep); - } - } - } // if ($deep) - - $this->collCcWebstreamMetadatas = null; - $this->aCcShowInstances = null; - $this->aCcFiles = null; - $this->aCcWebstream = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcSchedule + /** + * Peer class name + */ + const PEER = 'CcSchedulePeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcSchedulePeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the starts field. + * @var string + */ + protected $starts; + + /** + * The value for the ends field. + * @var string + */ + protected $ends; + + /** + * The value for the file_id field. + * @var int + */ + protected $file_id; + + /** + * The value for the stream_id field. + * @var int + */ + protected $stream_id; + + /** + * The value for the clip_length field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $clip_length; + + /** + * The value for the fade_in field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $fade_in; + + /** + * The value for the fade_out field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $fade_out; + + /** + * The value for the cue_in field. + * @var string + */ + protected $cue_in; + + /** + * The value for the cue_out field. + * @var string + */ + protected $cue_out; + + /** + * The value for the media_item_played field. + * Note: this column has a database default value of: false + * @var boolean + */ + protected $media_item_played; + + /** + * The value for the instance_id field. + * @var int + */ + protected $instance_id; + + /** + * The value for the playout_status field. + * Note: this column has a database default value of: 1 + * @var int + */ + protected $playout_status; + + /** + * The value for the broadcasted field. + * Note: this column has a database default value of: 0 + * @var int + */ + protected $broadcasted; + + /** + * The value for the position field. + * Note: this column has a database default value of: 0 + * @var int + */ + protected $position; + + /** + * @var CcShowInstances + */ + protected $aCcShowInstances; + + /** + * @var CcFiles + */ + protected $aCcFiles; + + /** + * @var CcWebstream + */ + protected $aCcWebstream; + + /** + * @var PropelObjectCollection|CcWebstreamMetadata[] Collection to store aggregation of CcWebstreamMetadata objects. + */ + protected $collCcWebstreamMetadatas; + protected $collCcWebstreamMetadatasPartial; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccWebstreamMetadatasScheduledForDeletion = null; + + /** + * 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->clip_length = '00:00:00'; + $this->fade_in = '00:00:00'; + $this->fade_out = '00:00:00'; + $this->media_item_played = false; + $this->playout_status = 1; + $this->broadcasted = 0; + $this->position = 0; + } + + /** + * Initializes internal state of BaseCcSchedule object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [optionally formatted] temporal [starts] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbStarts($format = 'Y-m-d H:i:s') + { + if ($this->starts === null) { + return null; + } + + + try { + $dt = new DateTime($this->starts); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->starts, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [ends] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbEnds($format = 'Y-m-d H:i:s') + { + if ($this->ends === null) { + return null; + } + + + try { + $dt = new DateTime($this->ends); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->ends, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [file_id] column value. + * + * @return int + */ + public function getDbFileId() + { + + return $this->file_id; + } + + /** + * Get the [stream_id] column value. + * + * @return int + */ + public function getDbStreamId() + { + + return $this->stream_id; + } + + /** + * Get the [clip_length] column value. + * + * @return string + */ + public function getDbClipLength() + { + + return $this->clip_length; + } + + /** + * Get the [optionally formatted] temporal [fade_in] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbFadeIn($format = '%X') + { + if ($this->fade_in === null) { + return null; + } + + + try { + $dt = new DateTime($this->fade_in); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->fade_in, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [fade_out] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbFadeOut($format = '%X') + { + if ($this->fade_out === null) { + return null; + } + + + try { + $dt = new DateTime($this->fade_out); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->fade_out, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [cue_in] column value. + * + * @return string + */ + public function getDbCueIn() + { + + return $this->cue_in; + } + + /** + * Get the [cue_out] column value. + * + * @return string + */ + public function getDbCueOut() + { + + return $this->cue_out; + } + + /** + * Get the [media_item_played] column value. + * + * @return boolean + */ + public function getDbMediaItemPlayed() + { + + return $this->media_item_played; + } + + /** + * Get the [instance_id] column value. + * + * @return int + */ + public function getDbInstanceId() + { + + return $this->instance_id; + } + + /** + * Get the [playout_status] column value. + * + * @return int + */ + public function getDbPlayoutStatus() + { + + return $this->playout_status; + } + + /** + * Get the [broadcasted] column value. + * + * @return int + */ + public function getDbBroadcasted() + { + + return $this->broadcasted; + } + + /** + * Get the [position] column value. + * + * @return int + */ + public function getDbPosition() + { + + return $this->position; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcSchedulePeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Sets the value of [starts] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbStarts($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->starts !== null || $dt !== null) { + $currentDateAsString = ($this->starts !== null && $tmpDt = new DateTime($this->starts)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->starts = $newDateAsString; + $this->modifiedColumns[] = CcSchedulePeer::STARTS; + } + } // if either are not null + + + return $this; + } // setDbStarts() + + /** + * Sets the value of [ends] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbEnds($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->ends !== null || $dt !== null) { + $currentDateAsString = ($this->ends !== null && $tmpDt = new DateTime($this->ends)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->ends = $newDateAsString; + $this->modifiedColumns[] = CcSchedulePeer::ENDS; + } + } // if either are not null + + + return $this; + } // setDbEnds() + + /** + * Set the value of [file_id] column. + * + * @param int $v new value + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbFileId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->file_id !== $v) { + $this->file_id = $v; + $this->modifiedColumns[] = CcSchedulePeer::FILE_ID; + } + + if ($this->aCcFiles !== null && $this->aCcFiles->getDbId() !== $v) { + $this->aCcFiles = null; + } + + + return $this; + } // setDbFileId() + + /** + * Set the value of [stream_id] column. + * + * @param int $v new value + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbStreamId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->stream_id !== $v) { + $this->stream_id = $v; + $this->modifiedColumns[] = CcSchedulePeer::STREAM_ID; + } + + if ($this->aCcWebstream !== null && $this->aCcWebstream->getDbId() !== $v) { + $this->aCcWebstream = null; + } + + + return $this; + } // setDbStreamId() + + /** + * Set the value of [clip_length] column. + * + * @param string $v new value + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbClipLength($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->clip_length !== $v) { + $this->clip_length = $v; + $this->modifiedColumns[] = CcSchedulePeer::CLIP_LENGTH; + } + + + return $this; + } // setDbClipLength() + + /** + * Sets the value of [fade_in] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbFadeIn($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->fade_in !== null || $dt !== null) { + $currentDateAsString = ($this->fade_in !== null && $tmpDt = new DateTime($this->fade_in)) ? $tmpDt->format('H:i:s') : null; + $newDateAsString = $dt ? $dt->format('H:i:s') : null; + if ( ($currentDateAsString !== $newDateAsString) // normalized values don't match + || ($dt->format('H:i:s') === '00:00:00') // or the entered value matches the default + ) { + $this->fade_in = $newDateAsString; + $this->modifiedColumns[] = CcSchedulePeer::FADE_IN; + } + } // if either are not null + + + return $this; + } // setDbFadeIn() + + /** + * Sets the value of [fade_out] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbFadeOut($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->fade_out !== null || $dt !== null) { + $currentDateAsString = ($this->fade_out !== null && $tmpDt = new DateTime($this->fade_out)) ? $tmpDt->format('H:i:s') : null; + $newDateAsString = $dt ? $dt->format('H:i:s') : null; + if ( ($currentDateAsString !== $newDateAsString) // normalized values don't match + || ($dt->format('H:i:s') === '00:00:00') // or the entered value matches the default + ) { + $this->fade_out = $newDateAsString; + $this->modifiedColumns[] = CcSchedulePeer::FADE_OUT; + } + } // if either are not null + + + return $this; + } // setDbFadeOut() + + /** + * Set the value of [cue_in] column. + * + * @param string $v new value + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbCueIn($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->cue_in !== $v) { + $this->cue_in = $v; + $this->modifiedColumns[] = CcSchedulePeer::CUE_IN; + } + + + return $this; + } // setDbCueIn() + + /** + * Set the value of [cue_out] column. + * + * @param string $v new value + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbCueOut($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->cue_out !== $v) { + $this->cue_out = $v; + $this->modifiedColumns[] = CcSchedulePeer::CUE_OUT; + } + + + return $this; + } // setDbCueOut() + + /** + * Sets the value of the [media_item_played] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbMediaItemPlayed($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->media_item_played !== $v) { + $this->media_item_played = $v; + $this->modifiedColumns[] = CcSchedulePeer::MEDIA_ITEM_PLAYED; + } + + + return $this; + } // setDbMediaItemPlayed() + + /** + * Set the value of [instance_id] column. + * + * @param int $v new value + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbInstanceId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->instance_id !== $v) { + $this->instance_id = $v; + $this->modifiedColumns[] = CcSchedulePeer::INSTANCE_ID; + } + + if ($this->aCcShowInstances !== null && $this->aCcShowInstances->getDbId() !== $v) { + $this->aCcShowInstances = null; + } + + + return $this; + } // setDbInstanceId() + + /** + * Set the value of [playout_status] column. + * + * @param int $v new value + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbPlayoutStatus($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->playout_status !== $v) { + $this->playout_status = $v; + $this->modifiedColumns[] = CcSchedulePeer::PLAYOUT_STATUS; + } + + + return $this; + } // setDbPlayoutStatus() + + /** + * Set the value of [broadcasted] column. + * + * @param int $v new value + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbBroadcasted($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->broadcasted !== $v) { + $this->broadcasted = $v; + $this->modifiedColumns[] = CcSchedulePeer::BROADCASTED; + } + + + return $this; + } // setDbBroadcasted() + + /** + * Set the value of [position] column. + * + * @param int $v new value + * @return CcSchedule The current object (for fluent API support) + */ + public function setDbPosition($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->position !== $v) { + $this->position = $v; + $this->modifiedColumns[] = CcSchedulePeer::POSITION; + } + + + return $this; + } // setDbPosition() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->clip_length !== '00:00:00') { + return false; + } + + if ($this->fade_in !== '00:00:00') { + return false; + } + + if ($this->fade_out !== '00:00:00') { + return false; + } + + if ($this->media_item_played !== false) { + return false; + } + + if ($this->playout_status !== 1) { + return false; + } + + if ($this->broadcasted !== 0) { + return false; + } + + if ($this->position !== 0) { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->starts = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->ends = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->file_id = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; + $this->stream_id = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; + $this->clip_length = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; + $this->fade_in = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; + $this->fade_out = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null; + $this->cue_in = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; + $this->cue_out = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; + $this->media_item_played = ($row[$startcol + 10] !== null) ? (boolean) $row[$startcol + 10] : null; + $this->instance_id = ($row[$startcol + 11] !== null) ? (int) $row[$startcol + 11] : null; + $this->playout_status = ($row[$startcol + 12] !== null) ? (int) $row[$startcol + 12] : null; + $this->broadcasted = ($row[$startcol + 13] !== null) ? (int) $row[$startcol + 13] : null; + $this->position = ($row[$startcol + 14] !== null) ? (int) $row[$startcol + 14] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 15; // 15 = CcSchedulePeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcSchedule object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcFiles !== null && $this->file_id !== $this->aCcFiles->getDbId()) { + $this->aCcFiles = null; + } + if ($this->aCcWebstream !== null && $this->stream_id !== $this->aCcWebstream->getDbId()) { + $this->aCcWebstream = null; + } + if ($this->aCcShowInstances !== null && $this->instance_id !== $this->aCcShowInstances->getDbId()) { + $this->aCcShowInstances = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcSchedulePeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcShowInstances = null; + $this->aCcFiles = null; + $this->aCcWebstream = null; + $this->collCcWebstreamMetadatas = null; + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcScheduleQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcSchedulePeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcShowInstances !== null) { + if ($this->aCcShowInstances->isModified() || $this->aCcShowInstances->isNew()) { + $affectedRows += $this->aCcShowInstances->save($con); + } + $this->setCcShowInstances($this->aCcShowInstances); + } + + if ($this->aCcFiles !== null) { + if ($this->aCcFiles->isModified() || $this->aCcFiles->isNew()) { + $affectedRows += $this->aCcFiles->save($con); + } + $this->setCcFiles($this->aCcFiles); + } + + if ($this->aCcWebstream !== null) { + if ($this->aCcWebstream->isModified() || $this->aCcWebstream->isNew()) { + $affectedRows += $this->aCcWebstream->save($con); + } + $this->setCcWebstream($this->aCcWebstream); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + if ($this->ccWebstreamMetadatasScheduledForDeletion !== null) { + if (!$this->ccWebstreamMetadatasScheduledForDeletion->isEmpty()) { + CcWebstreamMetadataQuery::create() + ->filterByPrimaryKeys($this->ccWebstreamMetadatasScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccWebstreamMetadatasScheduledForDeletion = null; + } + } + + if ($this->collCcWebstreamMetadatas !== null) { + foreach ($this->collCcWebstreamMetadatas as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcSchedulePeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcSchedulePeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_schedule_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcSchedulePeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcSchedulePeer::STARTS)) { + $modifiedColumns[':p' . $index++] = '"starts"'; + } + if ($this->isColumnModified(CcSchedulePeer::ENDS)) { + $modifiedColumns[':p' . $index++] = '"ends"'; + } + if ($this->isColumnModified(CcSchedulePeer::FILE_ID)) { + $modifiedColumns[':p' . $index++] = '"file_id"'; + } + if ($this->isColumnModified(CcSchedulePeer::STREAM_ID)) { + $modifiedColumns[':p' . $index++] = '"stream_id"'; + } + if ($this->isColumnModified(CcSchedulePeer::CLIP_LENGTH)) { + $modifiedColumns[':p' . $index++] = '"clip_length"'; + } + if ($this->isColumnModified(CcSchedulePeer::FADE_IN)) { + $modifiedColumns[':p' . $index++] = '"fade_in"'; + } + if ($this->isColumnModified(CcSchedulePeer::FADE_OUT)) { + $modifiedColumns[':p' . $index++] = '"fade_out"'; + } + if ($this->isColumnModified(CcSchedulePeer::CUE_IN)) { + $modifiedColumns[':p' . $index++] = '"cue_in"'; + } + if ($this->isColumnModified(CcSchedulePeer::CUE_OUT)) { + $modifiedColumns[':p' . $index++] = '"cue_out"'; + } + if ($this->isColumnModified(CcSchedulePeer::MEDIA_ITEM_PLAYED)) { + $modifiedColumns[':p' . $index++] = '"media_item_played"'; + } + if ($this->isColumnModified(CcSchedulePeer::INSTANCE_ID)) { + $modifiedColumns[':p' . $index++] = '"instance_id"'; + } + if ($this->isColumnModified(CcSchedulePeer::PLAYOUT_STATUS)) { + $modifiedColumns[':p' . $index++] = '"playout_status"'; + } + if ($this->isColumnModified(CcSchedulePeer::BROADCASTED)) { + $modifiedColumns[':p' . $index++] = '"broadcasted"'; + } + if ($this->isColumnModified(CcSchedulePeer::POSITION)) { + $modifiedColumns[':p' . $index++] = '"position"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_schedule" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"starts"': + $stmt->bindValue($identifier, $this->starts, PDO::PARAM_STR); + break; + case '"ends"': + $stmt->bindValue($identifier, $this->ends, PDO::PARAM_STR); + break; + case '"file_id"': + $stmt->bindValue($identifier, $this->file_id, PDO::PARAM_INT); + break; + case '"stream_id"': + $stmt->bindValue($identifier, $this->stream_id, PDO::PARAM_INT); + break; + case '"clip_length"': + $stmt->bindValue($identifier, $this->clip_length, PDO::PARAM_STR); + break; + case '"fade_in"': + $stmt->bindValue($identifier, $this->fade_in, PDO::PARAM_STR); + break; + case '"fade_out"': + $stmt->bindValue($identifier, $this->fade_out, PDO::PARAM_STR); + break; + case '"cue_in"': + $stmt->bindValue($identifier, $this->cue_in, PDO::PARAM_STR); + break; + case '"cue_out"': + $stmt->bindValue($identifier, $this->cue_out, PDO::PARAM_STR); + break; + case '"media_item_played"': + $stmt->bindValue($identifier, $this->media_item_played, PDO::PARAM_BOOL); + break; + case '"instance_id"': + $stmt->bindValue($identifier, $this->instance_id, PDO::PARAM_INT); + break; + case '"playout_status"': + $stmt->bindValue($identifier, $this->playout_status, PDO::PARAM_INT); + break; + case '"broadcasted"': + $stmt->bindValue($identifier, $this->broadcasted, PDO::PARAM_INT); + break; + case '"position"': + $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcShowInstances !== null) { + if (!$this->aCcShowInstances->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcShowInstances->getValidationFailures()); + } + } + + if ($this->aCcFiles !== null) { + if (!$this->aCcFiles->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcFiles->getValidationFailures()); + } + } + + if ($this->aCcWebstream !== null) { + if (!$this->aCcWebstream->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcWebstream->getValidationFailures()); + } + } + + + if (($retval = CcSchedulePeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + if ($this->collCcWebstreamMetadatas !== null) { + foreach ($this->collCcWebstreamMetadatas as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcSchedulePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbStarts(); + break; + case 2: + return $this->getDbEnds(); + break; + case 3: + return $this->getDbFileId(); + break; + case 4: + return $this->getDbStreamId(); + break; + case 5: + return $this->getDbClipLength(); + break; + case 6: + return $this->getDbFadeIn(); + break; + case 7: + return $this->getDbFadeOut(); + break; + case 8: + return $this->getDbCueIn(); + break; + case 9: + return $this->getDbCueOut(); + break; + case 10: + return $this->getDbMediaItemPlayed(); + break; + case 11: + return $this->getDbInstanceId(); + break; + case 12: + return $this->getDbPlayoutStatus(); + break; + case 13: + return $this->getDbBroadcasted(); + break; + case 14: + return $this->getDbPosition(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcSchedule'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcSchedule'][$this->getPrimaryKey()] = true; + $keys = CcSchedulePeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbStarts(), + $keys[2] => $this->getDbEnds(), + $keys[3] => $this->getDbFileId(), + $keys[4] => $this->getDbStreamId(), + $keys[5] => $this->getDbClipLength(), + $keys[6] => $this->getDbFadeIn(), + $keys[7] => $this->getDbFadeOut(), + $keys[8] => $this->getDbCueIn(), + $keys[9] => $this->getDbCueOut(), + $keys[10] => $this->getDbMediaItemPlayed(), + $keys[11] => $this->getDbInstanceId(), + $keys[12] => $this->getDbPlayoutStatus(), + $keys[13] => $this->getDbBroadcasted(), + $keys[14] => $this->getDbPosition(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcShowInstances) { + $result['CcShowInstances'] = $this->aCcShowInstances->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aCcFiles) { + $result['CcFiles'] = $this->aCcFiles->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aCcWebstream) { + $result['CcWebstream'] = $this->aCcWebstream->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->collCcWebstreamMetadatas) { + $result['CcWebstreamMetadatas'] = $this->collCcWebstreamMetadatas->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcSchedulePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbStarts($value); + break; + case 2: + $this->setDbEnds($value); + break; + case 3: + $this->setDbFileId($value); + break; + case 4: + $this->setDbStreamId($value); + break; + case 5: + $this->setDbClipLength($value); + break; + case 6: + $this->setDbFadeIn($value); + break; + case 7: + $this->setDbFadeOut($value); + break; + case 8: + $this->setDbCueIn($value); + break; + case 9: + $this->setDbCueOut($value); + break; + case 10: + $this->setDbMediaItemPlayed($value); + break; + case 11: + $this->setDbInstanceId($value); + break; + case 12: + $this->setDbPlayoutStatus($value); + break; + case 13: + $this->setDbBroadcasted($value); + break; + case 14: + $this->setDbPosition($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcSchedulePeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbStarts($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbEnds($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbFileId($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbStreamId($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDbClipLength($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setDbFadeIn($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setDbFadeOut($arr[$keys[7]]); + if (array_key_exists($keys[8], $arr)) $this->setDbCueIn($arr[$keys[8]]); + if (array_key_exists($keys[9], $arr)) $this->setDbCueOut($arr[$keys[9]]); + if (array_key_exists($keys[10], $arr)) $this->setDbMediaItemPlayed($arr[$keys[10]]); + if (array_key_exists($keys[11], $arr)) $this->setDbInstanceId($arr[$keys[11]]); + if (array_key_exists($keys[12], $arr)) $this->setDbPlayoutStatus($arr[$keys[12]]); + if (array_key_exists($keys[13], $arr)) $this->setDbBroadcasted($arr[$keys[13]]); + if (array_key_exists($keys[14], $arr)) $this->setDbPosition($arr[$keys[14]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcSchedulePeer::DATABASE_NAME); + + if ($this->isColumnModified(CcSchedulePeer::ID)) $criteria->add(CcSchedulePeer::ID, $this->id); + if ($this->isColumnModified(CcSchedulePeer::STARTS)) $criteria->add(CcSchedulePeer::STARTS, $this->starts); + if ($this->isColumnModified(CcSchedulePeer::ENDS)) $criteria->add(CcSchedulePeer::ENDS, $this->ends); + if ($this->isColumnModified(CcSchedulePeer::FILE_ID)) $criteria->add(CcSchedulePeer::FILE_ID, $this->file_id); + if ($this->isColumnModified(CcSchedulePeer::STREAM_ID)) $criteria->add(CcSchedulePeer::STREAM_ID, $this->stream_id); + if ($this->isColumnModified(CcSchedulePeer::CLIP_LENGTH)) $criteria->add(CcSchedulePeer::CLIP_LENGTH, $this->clip_length); + if ($this->isColumnModified(CcSchedulePeer::FADE_IN)) $criteria->add(CcSchedulePeer::FADE_IN, $this->fade_in); + if ($this->isColumnModified(CcSchedulePeer::FADE_OUT)) $criteria->add(CcSchedulePeer::FADE_OUT, $this->fade_out); + if ($this->isColumnModified(CcSchedulePeer::CUE_IN)) $criteria->add(CcSchedulePeer::CUE_IN, $this->cue_in); + if ($this->isColumnModified(CcSchedulePeer::CUE_OUT)) $criteria->add(CcSchedulePeer::CUE_OUT, $this->cue_out); + if ($this->isColumnModified(CcSchedulePeer::MEDIA_ITEM_PLAYED)) $criteria->add(CcSchedulePeer::MEDIA_ITEM_PLAYED, $this->media_item_played); + if ($this->isColumnModified(CcSchedulePeer::INSTANCE_ID)) $criteria->add(CcSchedulePeer::INSTANCE_ID, $this->instance_id); + if ($this->isColumnModified(CcSchedulePeer::PLAYOUT_STATUS)) $criteria->add(CcSchedulePeer::PLAYOUT_STATUS, $this->playout_status); + if ($this->isColumnModified(CcSchedulePeer::BROADCASTED)) $criteria->add(CcSchedulePeer::BROADCASTED, $this->broadcasted); + if ($this->isColumnModified(CcSchedulePeer::POSITION)) $criteria->add(CcSchedulePeer::POSITION, $this->position); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcSchedulePeer::DATABASE_NAME); + $criteria->add(CcSchedulePeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcSchedule (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbStarts($this->getDbStarts()); + $copyObj->setDbEnds($this->getDbEnds()); + $copyObj->setDbFileId($this->getDbFileId()); + $copyObj->setDbStreamId($this->getDbStreamId()); + $copyObj->setDbClipLength($this->getDbClipLength()); + $copyObj->setDbFadeIn($this->getDbFadeIn()); + $copyObj->setDbFadeOut($this->getDbFadeOut()); + $copyObj->setDbCueIn($this->getDbCueIn()); + $copyObj->setDbCueOut($this->getDbCueOut()); + $copyObj->setDbMediaItemPlayed($this->getDbMediaItemPlayed()); + $copyObj->setDbInstanceId($this->getDbInstanceId()); + $copyObj->setDbPlayoutStatus($this->getDbPlayoutStatus()); + $copyObj->setDbBroadcasted($this->getDbBroadcasted()); + $copyObj->setDbPosition($this->getDbPosition()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + foreach ($this->getCcWebstreamMetadatas() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcWebstreamMetadata($relObj->copy($deepCopy)); + } + } + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcSchedule Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcSchedulePeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcSchedulePeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcShowInstances object. + * + * @param CcShowInstances $v + * @return CcSchedule The current object (for fluent API support) + * @throws PropelException + */ + public function setCcShowInstances(CcShowInstances $v = null) + { + if ($v === null) { + $this->setDbInstanceId(NULL); + } else { + $this->setDbInstanceId($v->getDbId()); + } + + $this->aCcShowInstances = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcShowInstances object, it will not be re-added. + if ($v !== null) { + $v->addCcSchedule($this); + } + + + return $this; + } + + + /** + * Get the associated CcShowInstances object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcShowInstances The associated CcShowInstances object. + * @throws PropelException + */ + public function getCcShowInstances(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcShowInstances === null && ($this->instance_id !== null) && $doQuery) { + $this->aCcShowInstances = CcShowInstancesQuery::create()->findPk($this->instance_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcShowInstances->addCcSchedules($this); + */ + } + + return $this->aCcShowInstances; + } + + /** + * Declares an association between this object and a CcFiles object. + * + * @param CcFiles $v + * @return CcSchedule The current object (for fluent API support) + * @throws PropelException + */ + public function setCcFiles(CcFiles $v = null) + { + if ($v === null) { + $this->setDbFileId(NULL); + } else { + $this->setDbFileId($v->getDbId()); + } + + $this->aCcFiles = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcFiles object, it will not be re-added. + if ($v !== null) { + $v->addCcSchedule($this); + } + + + return $this; + } + + + /** + * Get the associated CcFiles object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcFiles The associated CcFiles object. + * @throws PropelException + */ + public function getCcFiles(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcFiles === null && ($this->file_id !== null) && $doQuery) { + $this->aCcFiles = CcFilesQuery::create()->findPk($this->file_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcFiles->addCcSchedules($this); + */ + } + + return $this->aCcFiles; + } + + /** + * Declares an association between this object and a CcWebstream object. + * + * @param CcWebstream $v + * @return CcSchedule The current object (for fluent API support) + * @throws PropelException + */ + public function setCcWebstream(CcWebstream $v = null) + { + if ($v === null) { + $this->setDbStreamId(NULL); + } else { + $this->setDbStreamId($v->getDbId()); + } + + $this->aCcWebstream = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcWebstream object, it will not be re-added. + if ($v !== null) { + $v->addCcSchedule($this); + } + + + return $this; + } + + + /** + * Get the associated CcWebstream object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcWebstream The associated CcWebstream object. + * @throws PropelException + */ + public function getCcWebstream(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcWebstream === null && ($this->stream_id !== null) && $doQuery) { + $this->aCcWebstream = CcWebstreamQuery::create()->findPk($this->stream_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcWebstream->addCcSchedules($this); + */ + } + + return $this->aCcWebstream; + } + + + /** + * Initializes a collection based on the name of a relation. + * Avoids crafting an 'init[$relationName]s' method name + * that wouldn't work when StandardEnglishPluralizer is used. + * + * @param string $relationName The name of the relation to initialize + * @return void + */ + public function initRelation($relationName) + { + if ('CcWebstreamMetadata' == $relationName) { + $this->initCcWebstreamMetadatas(); + } + } + + /** + * Clears out the collCcWebstreamMetadatas 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 CcSchedule The current object (for fluent API support) + * @see addCcWebstreamMetadatas() + */ + public function clearCcWebstreamMetadatas() + { + $this->collCcWebstreamMetadatas = null; // important to set this to null since that means it is uninitialized + $this->collCcWebstreamMetadatasPartial = null; + + return $this; + } + + /** + * reset is the collCcWebstreamMetadatas collection loaded partially + * + * @return void + */ + public function resetPartialCcWebstreamMetadatas($v = true) + { + $this->collCcWebstreamMetadatasPartial = $v; + } + + /** + * Initializes the collCcWebstreamMetadatas collection. + * + * By default this just sets the collCcWebstreamMetadatas collection to an empty array (like clearcollCcWebstreamMetadatas()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcWebstreamMetadatas($overrideExisting = true) + { + if (null !== $this->collCcWebstreamMetadatas && !$overrideExisting) { + return; + } + $this->collCcWebstreamMetadatas = new PropelObjectCollection(); + $this->collCcWebstreamMetadatas->setModel('CcWebstreamMetadata'); + } + + /** + * Gets an array of CcWebstreamMetadata 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 CcSchedule 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 PropelObjectCollection|CcWebstreamMetadata[] List of CcWebstreamMetadata objects + * @throws PropelException + */ + public function getCcWebstreamMetadatas($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcWebstreamMetadatasPartial && !$this->isNew(); + if (null === $this->collCcWebstreamMetadatas || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcWebstreamMetadatas) { + // return empty collection + $this->initCcWebstreamMetadatas(); + } else { + $collCcWebstreamMetadatas = CcWebstreamMetadataQuery::create(null, $criteria) + ->filterByCcSchedule($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcWebstreamMetadatasPartial && count($collCcWebstreamMetadatas)) { + $this->initCcWebstreamMetadatas(false); + + foreach ($collCcWebstreamMetadatas as $obj) { + if (false == $this->collCcWebstreamMetadatas->contains($obj)) { + $this->collCcWebstreamMetadatas->append($obj); + } + } + + $this->collCcWebstreamMetadatasPartial = true; + } + + $collCcWebstreamMetadatas->getInternalIterator()->rewind(); + + return $collCcWebstreamMetadatas; + } + + if ($partial && $this->collCcWebstreamMetadatas) { + foreach ($this->collCcWebstreamMetadatas as $obj) { + if ($obj->isNew()) { + $collCcWebstreamMetadatas[] = $obj; + } + } + } + + $this->collCcWebstreamMetadatas = $collCcWebstreamMetadatas; + $this->collCcWebstreamMetadatasPartial = false; + } + } + + return $this->collCcWebstreamMetadatas; + } + + /** + * Sets a collection of CcWebstreamMetadata objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccWebstreamMetadatas A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcSchedule The current object (for fluent API support) + */ + public function setCcWebstreamMetadatas(PropelCollection $ccWebstreamMetadatas, PropelPDO $con = null) + { + $ccWebstreamMetadatasToDelete = $this->getCcWebstreamMetadatas(new Criteria(), $con)->diff($ccWebstreamMetadatas); + + + $this->ccWebstreamMetadatasScheduledForDeletion = $ccWebstreamMetadatasToDelete; + + foreach ($ccWebstreamMetadatasToDelete as $ccWebstreamMetadataRemoved) { + $ccWebstreamMetadataRemoved->setCcSchedule(null); + } + + $this->collCcWebstreamMetadatas = null; + foreach ($ccWebstreamMetadatas as $ccWebstreamMetadata) { + $this->addCcWebstreamMetadata($ccWebstreamMetadata); + } + + $this->collCcWebstreamMetadatas = $ccWebstreamMetadatas; + $this->collCcWebstreamMetadatasPartial = false; + + return $this; + } + + /** + * Returns the number of related CcWebstreamMetadata objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcWebstreamMetadata objects. + * @throws PropelException + */ + public function countCcWebstreamMetadatas(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcWebstreamMetadatasPartial && !$this->isNew(); + if (null === $this->collCcWebstreamMetadatas || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcWebstreamMetadatas) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcWebstreamMetadatas()); + } + $query = CcWebstreamMetadataQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcSchedule($this) + ->count($con); + } + + return count($this->collCcWebstreamMetadatas); + } + + /** + * Method called to associate a CcWebstreamMetadata object to this object + * through the CcWebstreamMetadata foreign key attribute. + * + * @param CcWebstreamMetadata $l CcWebstreamMetadata + * @return CcSchedule The current object (for fluent API support) + */ + public function addCcWebstreamMetadata(CcWebstreamMetadata $l) + { + if ($this->collCcWebstreamMetadatas === null) { + $this->initCcWebstreamMetadatas(); + $this->collCcWebstreamMetadatasPartial = true; + } + + if (!in_array($l, $this->collCcWebstreamMetadatas->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcWebstreamMetadata($l); + + if ($this->ccWebstreamMetadatasScheduledForDeletion and $this->ccWebstreamMetadatasScheduledForDeletion->contains($l)) { + $this->ccWebstreamMetadatasScheduledForDeletion->remove($this->ccWebstreamMetadatasScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcWebstreamMetadata $ccWebstreamMetadata The ccWebstreamMetadata object to add. + */ + protected function doAddCcWebstreamMetadata($ccWebstreamMetadata) + { + $this->collCcWebstreamMetadatas[]= $ccWebstreamMetadata; + $ccWebstreamMetadata->setCcSchedule($this); + } + + /** + * @param CcWebstreamMetadata $ccWebstreamMetadata The ccWebstreamMetadata object to remove. + * @return CcSchedule The current object (for fluent API support) + */ + public function removeCcWebstreamMetadata($ccWebstreamMetadata) + { + if ($this->getCcWebstreamMetadatas()->contains($ccWebstreamMetadata)) { + $this->collCcWebstreamMetadatas->remove($this->collCcWebstreamMetadatas->search($ccWebstreamMetadata)); + if (null === $this->ccWebstreamMetadatasScheduledForDeletion) { + $this->ccWebstreamMetadatasScheduledForDeletion = clone $this->collCcWebstreamMetadatas; + $this->ccWebstreamMetadatasScheduledForDeletion->clear(); + } + $this->ccWebstreamMetadatasScheduledForDeletion[]= clone $ccWebstreamMetadata; + $ccWebstreamMetadata->setCcSchedule(null); + } + + return $this; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->starts = null; + $this->ends = null; + $this->file_id = null; + $this->stream_id = null; + $this->clip_length = null; + $this->fade_in = null; + $this->fade_out = null; + $this->cue_in = null; + $this->cue_out = null; + $this->media_item_played = null; + $this->instance_id = null; + $this->playout_status = null; + $this->broadcasted = null; + $this->position = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->collCcWebstreamMetadatas) { + foreach ($this->collCcWebstreamMetadatas as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->aCcShowInstances instanceof Persistent) { + $this->aCcShowInstances->clearAllReferences($deep); + } + if ($this->aCcFiles instanceof Persistent) { + $this->aCcFiles->clearAllReferences($deep); + } + if ($this->aCcWebstream instanceof Persistent) { + $this->aCcWebstream->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + if ($this->collCcWebstreamMetadatas instanceof PropelCollection) { + $this->collCcWebstreamMetadatas->clearIterator(); + } + $this->collCcWebstreamMetadatas = null; + $this->aCcShowInstances = null; + $this->aCcFiles = null; + $this->aCcWebstream = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcSchedulePeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcSchedulePeer.php b/airtime_mvc/application/models/airtime/om/BaseCcSchedulePeer.php index 164830444b..9815888313 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcSchedulePeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcSchedulePeer.php @@ -4,1763 +4,1799 @@ /** * Base static class for performing query and update operations on the 'cc_schedule' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcSchedulePeer { +abstract class BaseCcSchedulePeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_schedule'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcSchedule'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcScheduleTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 15; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 15; + + /** the column name for the id field */ + const ID = 'cc_schedule.id'; + + /** the column name for the starts field */ + const STARTS = 'cc_schedule.starts'; + + /** the column name for the ends field */ + const ENDS = 'cc_schedule.ends'; + + /** the column name for the file_id field */ + const FILE_ID = 'cc_schedule.file_id'; + + /** the column name for the stream_id field */ + const STREAM_ID = 'cc_schedule.stream_id'; + + /** the column name for the clip_length field */ + const CLIP_LENGTH = 'cc_schedule.clip_length'; + + /** the column name for the fade_in field */ + const FADE_IN = 'cc_schedule.fade_in'; + + /** the column name for the fade_out field */ + const FADE_OUT = 'cc_schedule.fade_out'; + + /** the column name for the cue_in field */ + const CUE_IN = 'cc_schedule.cue_in'; + + /** the column name for the cue_out field */ + const CUE_OUT = 'cc_schedule.cue_out'; + + /** the column name for the media_item_played field */ + const MEDIA_ITEM_PLAYED = 'cc_schedule.media_item_played'; + + /** the column name for the instance_id field */ + const INSTANCE_ID = 'cc_schedule.instance_id'; + + /** the column name for the playout_status field */ + const PLAYOUT_STATUS = 'cc_schedule.playout_status'; + + /** the column name for the broadcasted field */ + const BROADCASTED = 'cc_schedule.broadcasted'; + + /** the column name for the position field */ + const POSITION = 'cc_schedule.position'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcSchedule objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcSchedule[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcSchedulePeer::$fieldNames[CcSchedulePeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbStarts', 'DbEnds', 'DbFileId', 'DbStreamId', 'DbClipLength', 'DbFadeIn', 'DbFadeOut', 'DbCueIn', 'DbCueOut', 'DbMediaItemPlayed', 'DbInstanceId', 'DbPlayoutStatus', 'DbBroadcasted', 'DbPosition', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbStarts', 'dbEnds', 'dbFileId', 'dbStreamId', 'dbClipLength', 'dbFadeIn', 'dbFadeOut', 'dbCueIn', 'dbCueOut', 'dbMediaItemPlayed', 'dbInstanceId', 'dbPlayoutStatus', 'dbBroadcasted', 'dbPosition', ), + BasePeer::TYPE_COLNAME => array (CcSchedulePeer::ID, CcSchedulePeer::STARTS, CcSchedulePeer::ENDS, CcSchedulePeer::FILE_ID, CcSchedulePeer::STREAM_ID, CcSchedulePeer::CLIP_LENGTH, CcSchedulePeer::FADE_IN, CcSchedulePeer::FADE_OUT, CcSchedulePeer::CUE_IN, CcSchedulePeer::CUE_OUT, CcSchedulePeer::MEDIA_ITEM_PLAYED, CcSchedulePeer::INSTANCE_ID, CcSchedulePeer::PLAYOUT_STATUS, CcSchedulePeer::BROADCASTED, CcSchedulePeer::POSITION, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'STARTS', 'ENDS', 'FILE_ID', 'STREAM_ID', 'CLIP_LENGTH', 'FADE_IN', 'FADE_OUT', 'CUE_IN', 'CUE_OUT', 'MEDIA_ITEM_PLAYED', 'INSTANCE_ID', 'PLAYOUT_STATUS', 'BROADCASTED', 'POSITION', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'starts', 'ends', 'file_id', 'stream_id', 'clip_length', 'fade_in', 'fade_out', 'cue_in', 'cue_out', 'media_item_played', 'instance_id', 'playout_status', 'broadcasted', 'position', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcSchedulePeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbStarts' => 1, 'DbEnds' => 2, 'DbFileId' => 3, 'DbStreamId' => 4, 'DbClipLength' => 5, 'DbFadeIn' => 6, 'DbFadeOut' => 7, 'DbCueIn' => 8, 'DbCueOut' => 9, 'DbMediaItemPlayed' => 10, 'DbInstanceId' => 11, 'DbPlayoutStatus' => 12, 'DbBroadcasted' => 13, 'DbPosition' => 14, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbStarts' => 1, 'dbEnds' => 2, 'dbFileId' => 3, 'dbStreamId' => 4, 'dbClipLength' => 5, 'dbFadeIn' => 6, 'dbFadeOut' => 7, 'dbCueIn' => 8, 'dbCueOut' => 9, 'dbMediaItemPlayed' => 10, 'dbInstanceId' => 11, 'dbPlayoutStatus' => 12, 'dbBroadcasted' => 13, 'dbPosition' => 14, ), + BasePeer::TYPE_COLNAME => array (CcSchedulePeer::ID => 0, CcSchedulePeer::STARTS => 1, CcSchedulePeer::ENDS => 2, CcSchedulePeer::FILE_ID => 3, CcSchedulePeer::STREAM_ID => 4, CcSchedulePeer::CLIP_LENGTH => 5, CcSchedulePeer::FADE_IN => 6, CcSchedulePeer::FADE_OUT => 7, CcSchedulePeer::CUE_IN => 8, CcSchedulePeer::CUE_OUT => 9, CcSchedulePeer::MEDIA_ITEM_PLAYED => 10, CcSchedulePeer::INSTANCE_ID => 11, CcSchedulePeer::PLAYOUT_STATUS => 12, CcSchedulePeer::BROADCASTED => 13, CcSchedulePeer::POSITION => 14, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'STARTS' => 1, 'ENDS' => 2, 'FILE_ID' => 3, 'STREAM_ID' => 4, 'CLIP_LENGTH' => 5, 'FADE_IN' => 6, 'FADE_OUT' => 7, 'CUE_IN' => 8, 'CUE_OUT' => 9, 'MEDIA_ITEM_PLAYED' => 10, 'INSTANCE_ID' => 11, 'PLAYOUT_STATUS' => 12, 'BROADCASTED' => 13, 'POSITION' => 14, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'starts' => 1, 'ends' => 2, 'file_id' => 3, 'stream_id' => 4, 'clip_length' => 5, 'fade_in' => 6, 'fade_out' => 7, 'cue_in' => 8, 'cue_out' => 9, 'media_item_played' => 10, 'instance_id' => 11, 'playout_status' => 12, 'broadcasted' => 13, 'position' => 14, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcSchedulePeer::getFieldNames($toType); + $key = isset(CcSchedulePeer::$fieldKeys[$fromType][$name]) ? CcSchedulePeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcSchedulePeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcSchedulePeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcSchedulePeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcSchedulePeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcSchedulePeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcSchedulePeer::ID); + $criteria->addSelectColumn(CcSchedulePeer::STARTS); + $criteria->addSelectColumn(CcSchedulePeer::ENDS); + $criteria->addSelectColumn(CcSchedulePeer::FILE_ID); + $criteria->addSelectColumn(CcSchedulePeer::STREAM_ID); + $criteria->addSelectColumn(CcSchedulePeer::CLIP_LENGTH); + $criteria->addSelectColumn(CcSchedulePeer::FADE_IN); + $criteria->addSelectColumn(CcSchedulePeer::FADE_OUT); + $criteria->addSelectColumn(CcSchedulePeer::CUE_IN); + $criteria->addSelectColumn(CcSchedulePeer::CUE_OUT); + $criteria->addSelectColumn(CcSchedulePeer::MEDIA_ITEM_PLAYED); + $criteria->addSelectColumn(CcSchedulePeer::INSTANCE_ID); + $criteria->addSelectColumn(CcSchedulePeer::PLAYOUT_STATUS); + $criteria->addSelectColumn(CcSchedulePeer::BROADCASTED); + $criteria->addSelectColumn(CcSchedulePeer::POSITION); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.starts'); + $criteria->addSelectColumn($alias . '.ends'); + $criteria->addSelectColumn($alias . '.file_id'); + $criteria->addSelectColumn($alias . '.stream_id'); + $criteria->addSelectColumn($alias . '.clip_length'); + $criteria->addSelectColumn($alias . '.fade_in'); + $criteria->addSelectColumn($alias . '.fade_out'); + $criteria->addSelectColumn($alias . '.cue_in'); + $criteria->addSelectColumn($alias . '.cue_out'); + $criteria->addSelectColumn($alias . '.media_item_played'); + $criteria->addSelectColumn($alias . '.instance_id'); + $criteria->addSelectColumn($alias . '.playout_status'); + $criteria->addSelectColumn($alias . '.broadcasted'); + $criteria->addSelectColumn($alias . '.position'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSchedulePeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcSchedule + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcSchedulePeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcSchedulePeer::populateObjects(CcSchedulePeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcSchedulePeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcSchedule $obj A CcSchedule object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcSchedulePeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcSchedule object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcSchedule) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcSchedule object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcSchedulePeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcSchedule Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcSchedulePeer::$instances[$key])) { + return CcSchedulePeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcSchedulePeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcSchedulePeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_schedule + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + // Invalidate objects in CcWebstreamMetadataPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcWebstreamMetadataPeer::clearInstancePool(); + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcSchedulePeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcSchedulePeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcSchedulePeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcSchedule object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcSchedulePeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcSchedulePeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcSchedulePeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcSchedulePeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcSchedulePeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcShowInstances table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcShowInstances(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSchedulePeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcFiles table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSchedulePeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcWebstream table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcWebstream(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSchedulePeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcSchedule objects pre-filled with their CcShowInstances objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcSchedule objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcShowInstances(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + } + + CcSchedulePeer::addSelectColumns($criteria); + $startcol = CcSchedulePeer::NUM_HYDRATE_COLUMNS; + CcShowInstancesPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcSchedulePeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcSchedulePeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcSchedulePeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcShowInstancesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowInstancesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcShowInstancesPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcSchedule) to $obj2 (CcShowInstances) + $obj2->addCcSchedule($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcSchedule objects pre-filled with their CcFiles objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcSchedule objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + } + + CcSchedulePeer::addSelectColumns($criteria); + $startcol = CcSchedulePeer::NUM_HYDRATE_COLUMNS; + CcFilesPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcSchedulePeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcSchedulePeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcSchedulePeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcSchedule) to $obj2 (CcFiles) + $obj2->addCcSchedule($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcSchedule objects pre-filled with their CcWebstream objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcSchedule objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcWebstream(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + } + + CcSchedulePeer::addSelectColumns($criteria); + $startcol = CcSchedulePeer::NUM_HYDRATE_COLUMNS; + CcWebstreamPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcSchedulePeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcSchedulePeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcSchedulePeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcWebstreamPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcWebstreamPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcWebstreamPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcWebstreamPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcSchedule) to $obj2 (CcWebstream) + $obj2->addCcSchedule($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSchedulePeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); + + $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcSchedule objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcSchedule objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + } + + CcSchedulePeer::addSelectColumns($criteria); + $startcol2 = CcSchedulePeer::NUM_HYDRATE_COLUMNS; + + CcShowInstancesPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcShowInstancesPeer::NUM_HYDRATE_COLUMNS; + + CcFilesPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcFilesPeer::NUM_HYDRATE_COLUMNS; + + CcWebstreamPeer::addSelectColumns($criteria); + $startcol5 = $startcol4 + CcWebstreamPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); + + $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcSchedulePeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcSchedulePeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcSchedulePeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcShowInstances rows + + $key2 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcShowInstancesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowInstancesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcShowInstancesPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcSchedule) to the collection in $obj2 (CcShowInstances) + $obj2->addCcSchedule($obj1); + } // if joined row not null + + // Add objects for joined CcFiles rows + + $key3 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcFilesPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcFilesPeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcFilesPeer::addInstanceToPool($obj3, $key3); + } // if obj3 loaded + + // Add the $obj1 (CcSchedule) to the collection in $obj3 (CcFiles) + $obj3->addCcSchedule($obj1); + } // if joined row not null + + // Add objects for joined CcWebstream rows + + $key4 = CcWebstreamPeer::getPrimaryKeyHashFromRow($row, $startcol4); + if ($key4 !== null) { + $obj4 = CcWebstreamPeer::getInstanceFromPool($key4); + if (!$obj4) { + + $cls = CcWebstreamPeer::getOMClass(); + + $obj4 = new $cls(); + $obj4->hydrate($row, $startcol4); + CcWebstreamPeer::addInstanceToPool($obj4, $key4); + } // if obj4 loaded + + // Add the $obj1 (CcSchedule) to the collection in $obj4 (CcWebstream) + $obj4->addCcSchedule($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcShowInstances table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcShowInstances(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSchedulePeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcFiles table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSchedulePeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); + + $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcWebstream table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcWebstream(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSchedulePeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); + + $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcSchedule objects pre-filled with all related objects except CcShowInstances. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcSchedule objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcShowInstances(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + } + + CcSchedulePeer::addSelectColumns($criteria); + $startcol2 = CcSchedulePeer::NUM_HYDRATE_COLUMNS; + + CcFilesPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcFilesPeer::NUM_HYDRATE_COLUMNS; + + CcWebstreamPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcWebstreamPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcSchedulePeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcSchedulePeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcSchedulePeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcFiles rows + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcSchedule) to the collection in $obj2 (CcFiles) + $obj2->addCcSchedule($obj1); + + } // if joined row is not null + + // Add objects for joined CcWebstream rows + + $key3 = CcWebstreamPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcWebstreamPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcWebstreamPeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcWebstreamPeer::addInstanceToPool($obj3, $key3); + } // if $obj3 already loaded + + // Add the $obj1 (CcSchedule) to the collection in $obj3 (CcWebstream) + $obj3->addCcSchedule($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcSchedule objects pre-filled with all related objects except CcFiles. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcSchedule objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + } + + CcSchedulePeer::addSelectColumns($criteria); + $startcol2 = CcSchedulePeer::NUM_HYDRATE_COLUMNS; + + CcShowInstancesPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcShowInstancesPeer::NUM_HYDRATE_COLUMNS; + + CcWebstreamPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcWebstreamPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); + + $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcSchedulePeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcSchedulePeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcSchedulePeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcShowInstances rows + + $key2 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcShowInstancesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowInstancesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcShowInstancesPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcSchedule) to the collection in $obj2 (CcShowInstances) + $obj2->addCcSchedule($obj1); + + } // if joined row is not null + + // Add objects for joined CcWebstream rows + + $key3 = CcWebstreamPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcWebstreamPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcWebstreamPeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcWebstreamPeer::addInstanceToPool($obj3, $key3); + } // if $obj3 already loaded + + // Add the $obj1 (CcSchedule) to the collection in $obj3 (CcWebstream) + $obj3->addCcSchedule($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcSchedule objects pre-filled with all related objects except CcWebstream. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcSchedule objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcWebstream(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + } + + CcSchedulePeer::addSelectColumns($criteria); + $startcol2 = CcSchedulePeer::NUM_HYDRATE_COLUMNS; - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_schedule'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcSchedule'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcSchedule'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcScheduleTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 15; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_schedule.ID'; - - /** the column name for the STARTS field */ - const STARTS = 'cc_schedule.STARTS'; - - /** the column name for the ENDS field */ - const ENDS = 'cc_schedule.ENDS'; - - /** the column name for the FILE_ID field */ - const FILE_ID = 'cc_schedule.FILE_ID'; - - /** the column name for the STREAM_ID field */ - const STREAM_ID = 'cc_schedule.STREAM_ID'; - - /** the column name for the CLIP_LENGTH field */ - const CLIP_LENGTH = 'cc_schedule.CLIP_LENGTH'; - - /** the column name for the FADE_IN field */ - const FADE_IN = 'cc_schedule.FADE_IN'; - - /** the column name for the FADE_OUT field */ - const FADE_OUT = 'cc_schedule.FADE_OUT'; - - /** the column name for the CUE_IN field */ - const CUE_IN = 'cc_schedule.CUE_IN'; - - /** the column name for the CUE_OUT field */ - const CUE_OUT = 'cc_schedule.CUE_OUT'; - - /** the column name for the MEDIA_ITEM_PLAYED field */ - const MEDIA_ITEM_PLAYED = 'cc_schedule.MEDIA_ITEM_PLAYED'; - - /** the column name for the INSTANCE_ID field */ - const INSTANCE_ID = 'cc_schedule.INSTANCE_ID'; - - /** the column name for the PLAYOUT_STATUS field */ - const PLAYOUT_STATUS = 'cc_schedule.PLAYOUT_STATUS'; - - /** the column name for the BROADCASTED field */ - const BROADCASTED = 'cc_schedule.BROADCASTED'; - - /** the column name for the POSITION field */ - const POSITION = 'cc_schedule.POSITION'; - - /** - * An identiy map to hold any loaded instances of CcSchedule objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcSchedule[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbStarts', 'DbEnds', 'DbFileId', 'DbStreamId', 'DbClipLength', 'DbFadeIn', 'DbFadeOut', 'DbCueIn', 'DbCueOut', 'DbMediaItemPlayed', 'DbInstanceId', 'DbPlayoutStatus', 'DbBroadcasted', 'DbPosition', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbStarts', 'dbEnds', 'dbFileId', 'dbStreamId', 'dbClipLength', 'dbFadeIn', 'dbFadeOut', 'dbCueIn', 'dbCueOut', 'dbMediaItemPlayed', 'dbInstanceId', 'dbPlayoutStatus', 'dbBroadcasted', 'dbPosition', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::STARTS, self::ENDS, self::FILE_ID, self::STREAM_ID, self::CLIP_LENGTH, self::FADE_IN, self::FADE_OUT, self::CUE_IN, self::CUE_OUT, self::MEDIA_ITEM_PLAYED, self::INSTANCE_ID, self::PLAYOUT_STATUS, self::BROADCASTED, self::POSITION, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'STARTS', 'ENDS', 'FILE_ID', 'STREAM_ID', 'CLIP_LENGTH', 'FADE_IN', 'FADE_OUT', 'CUE_IN', 'CUE_OUT', 'MEDIA_ITEM_PLAYED', 'INSTANCE_ID', 'PLAYOUT_STATUS', 'BROADCASTED', 'POSITION', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'starts', 'ends', 'file_id', 'stream_id', 'clip_length', 'fade_in', 'fade_out', 'cue_in', 'cue_out', 'media_item_played', 'instance_id', 'playout_status', 'broadcasted', 'position', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbStarts' => 1, 'DbEnds' => 2, 'DbFileId' => 3, 'DbStreamId' => 4, 'DbClipLength' => 5, 'DbFadeIn' => 6, 'DbFadeOut' => 7, 'DbCueIn' => 8, 'DbCueOut' => 9, 'DbMediaItemPlayed' => 10, 'DbInstanceId' => 11, 'DbPlayoutStatus' => 12, 'DbBroadcasted' => 13, 'DbPosition' => 14, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbStarts' => 1, 'dbEnds' => 2, 'dbFileId' => 3, 'dbStreamId' => 4, 'dbClipLength' => 5, 'dbFadeIn' => 6, 'dbFadeOut' => 7, 'dbCueIn' => 8, 'dbCueOut' => 9, 'dbMediaItemPlayed' => 10, 'dbInstanceId' => 11, 'dbPlayoutStatus' => 12, 'dbBroadcasted' => 13, 'dbPosition' => 14, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::STARTS => 1, self::ENDS => 2, self::FILE_ID => 3, self::STREAM_ID => 4, self::CLIP_LENGTH => 5, self::FADE_IN => 6, self::FADE_OUT => 7, self::CUE_IN => 8, self::CUE_OUT => 9, self::MEDIA_ITEM_PLAYED => 10, self::INSTANCE_ID => 11, self::PLAYOUT_STATUS => 12, self::BROADCASTED => 13, self::POSITION => 14, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'STARTS' => 1, 'ENDS' => 2, 'FILE_ID' => 3, 'STREAM_ID' => 4, 'CLIP_LENGTH' => 5, 'FADE_IN' => 6, 'FADE_OUT' => 7, 'CUE_IN' => 8, 'CUE_OUT' => 9, 'MEDIA_ITEM_PLAYED' => 10, 'INSTANCE_ID' => 11, 'PLAYOUT_STATUS' => 12, 'BROADCASTED' => 13, 'POSITION' => 14, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'starts' => 1, 'ends' => 2, 'file_id' => 3, 'stream_id' => 4, 'clip_length' => 5, 'fade_in' => 6, 'fade_out' => 7, 'cue_in' => 8, 'cue_out' => 9, 'media_item_played' => 10, 'instance_id' => 11, 'playout_status' => 12, 'broadcasted' => 13, 'position' => 14, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcSchedulePeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcSchedulePeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcSchedulePeer::ID); - $criteria->addSelectColumn(CcSchedulePeer::STARTS); - $criteria->addSelectColumn(CcSchedulePeer::ENDS); - $criteria->addSelectColumn(CcSchedulePeer::FILE_ID); - $criteria->addSelectColumn(CcSchedulePeer::STREAM_ID); - $criteria->addSelectColumn(CcSchedulePeer::CLIP_LENGTH); - $criteria->addSelectColumn(CcSchedulePeer::FADE_IN); - $criteria->addSelectColumn(CcSchedulePeer::FADE_OUT); - $criteria->addSelectColumn(CcSchedulePeer::CUE_IN); - $criteria->addSelectColumn(CcSchedulePeer::CUE_OUT); - $criteria->addSelectColumn(CcSchedulePeer::MEDIA_ITEM_PLAYED); - $criteria->addSelectColumn(CcSchedulePeer::INSTANCE_ID); - $criteria->addSelectColumn(CcSchedulePeer::PLAYOUT_STATUS); - $criteria->addSelectColumn(CcSchedulePeer::BROADCASTED); - $criteria->addSelectColumn(CcSchedulePeer::POSITION); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.STARTS'); - $criteria->addSelectColumn($alias . '.ENDS'); - $criteria->addSelectColumn($alias . '.FILE_ID'); - $criteria->addSelectColumn($alias . '.STREAM_ID'); - $criteria->addSelectColumn($alias . '.CLIP_LENGTH'); - $criteria->addSelectColumn($alias . '.FADE_IN'); - $criteria->addSelectColumn($alias . '.FADE_OUT'); - $criteria->addSelectColumn($alias . '.CUE_IN'); - $criteria->addSelectColumn($alias . '.CUE_OUT'); - $criteria->addSelectColumn($alias . '.MEDIA_ITEM_PLAYED'); - $criteria->addSelectColumn($alias . '.INSTANCE_ID'); - $criteria->addSelectColumn($alias . '.PLAYOUT_STATUS'); - $criteria->addSelectColumn($alias . '.BROADCASTED'); - $criteria->addSelectColumn($alias . '.POSITION'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSchedulePeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcSchedule - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcSchedulePeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcSchedulePeer::populateObjects(CcSchedulePeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcSchedulePeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcSchedule $value A CcSchedule object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcSchedule $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcSchedule object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcSchedule) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcSchedule object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcSchedule Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_schedule - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - // Invalidate objects in CcWebstreamMetadataPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcWebstreamMetadataPeer::clearInstancePool(); - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcSchedulePeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcSchedulePeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcSchedulePeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcSchedule object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcSchedulePeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcSchedulePeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcSchedulePeer::NUM_COLUMNS; - } else { - $cls = CcSchedulePeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcSchedulePeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcShowInstances table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcShowInstances(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSchedulePeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcFiles table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSchedulePeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcWebstream table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcWebstream(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSchedulePeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcSchedule objects pre-filled with their CcShowInstances objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcSchedule objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcShowInstances(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcSchedulePeer::addSelectColumns($criteria); - $startcol = (CcSchedulePeer::NUM_COLUMNS - CcSchedulePeer::NUM_LAZY_LOAD_COLUMNS); - CcShowInstancesPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcSchedulePeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcSchedulePeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcSchedulePeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcShowInstancesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowInstancesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcShowInstancesPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcSchedule) to $obj2 (CcShowInstances) - $obj2->addCcSchedule($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcSchedule objects pre-filled with their CcFiles objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcSchedule objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcSchedulePeer::addSelectColumns($criteria); - $startcol = (CcSchedulePeer::NUM_COLUMNS - CcSchedulePeer::NUM_LAZY_LOAD_COLUMNS); - CcFilesPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcSchedulePeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcSchedulePeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcSchedulePeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcFilesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcFilesPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcSchedule) to $obj2 (CcFiles) - $obj2->addCcSchedule($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcSchedule objects pre-filled with their CcWebstream objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcSchedule objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcWebstream(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcSchedulePeer::addSelectColumns($criteria); - $startcol = (CcSchedulePeer::NUM_COLUMNS - CcSchedulePeer::NUM_LAZY_LOAD_COLUMNS); - CcWebstreamPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcSchedulePeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcSchedulePeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcSchedulePeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcWebstreamPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcWebstreamPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcWebstreamPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcWebstreamPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcSchedule) to $obj2 (CcWebstream) - $obj2->addCcSchedule($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSchedulePeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - - $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcSchedule objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcSchedule objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcSchedulePeer::addSelectColumns($criteria); - $startcol2 = (CcSchedulePeer::NUM_COLUMNS - CcSchedulePeer::NUM_LAZY_LOAD_COLUMNS); - - CcShowInstancesPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcShowInstancesPeer::NUM_COLUMNS - CcShowInstancesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcFilesPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcWebstreamPeer::addSelectColumns($criteria); - $startcol5 = $startcol4 + (CcWebstreamPeer::NUM_COLUMNS - CcWebstreamPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - - $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcSchedulePeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcSchedulePeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcSchedulePeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcShowInstances rows - - $key2 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcShowInstancesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowInstancesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcShowInstancesPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcSchedule) to the collection in $obj2 (CcShowInstances) - $obj2->addCcSchedule($obj1); - } // if joined row not null - - // Add objects for joined CcFiles rows - - $key3 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcFilesPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcFilesPeer::addInstanceToPool($obj3, $key3); - } // if obj3 loaded - - // Add the $obj1 (CcSchedule) to the collection in $obj3 (CcFiles) - $obj3->addCcSchedule($obj1); - } // if joined row not null - - // Add objects for joined CcWebstream rows - - $key4 = CcWebstreamPeer::getPrimaryKeyHashFromRow($row, $startcol4); - if ($key4 !== null) { - $obj4 = CcWebstreamPeer::getInstanceFromPool($key4); - if (!$obj4) { - - $cls = CcWebstreamPeer::getOMClass(false); - - $obj4 = new $cls(); - $obj4->hydrate($row, $startcol4); - CcWebstreamPeer::addInstanceToPool($obj4, $key4); - } // if obj4 loaded - - // Add the $obj1 (CcSchedule) to the collection in $obj4 (CcWebstream) - $obj4->addCcSchedule($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcShowInstances table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcShowInstances(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSchedulePeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcFiles table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSchedulePeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - - $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcWebstream table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcWebstream(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSchedulePeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - - $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcSchedule objects pre-filled with all related objects except CcShowInstances. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcSchedule objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcShowInstances(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcSchedulePeer::addSelectColumns($criteria); - $startcol2 = (CcSchedulePeer::NUM_COLUMNS - CcSchedulePeer::NUM_LAZY_LOAD_COLUMNS); - - CcFilesPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcWebstreamPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcWebstreamPeer::NUM_COLUMNS - CcWebstreamPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcSchedulePeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcSchedulePeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcSchedulePeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcFiles rows - - $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcFilesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcFilesPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcSchedule) to the collection in $obj2 (CcFiles) - $obj2->addCcSchedule($obj1); - - } // if joined row is not null - - // Add objects for joined CcWebstream rows - - $key3 = CcWebstreamPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcWebstreamPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcWebstreamPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcWebstreamPeer::addInstanceToPool($obj3, $key3); - } // if $obj3 already loaded - - // Add the $obj1 (CcSchedule) to the collection in $obj3 (CcWebstream) - $obj3->addCcSchedule($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcSchedule objects pre-filled with all related objects except CcFiles. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcSchedule objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcSchedulePeer::addSelectColumns($criteria); - $startcol2 = (CcSchedulePeer::NUM_COLUMNS - CcSchedulePeer::NUM_LAZY_LOAD_COLUMNS); - - CcShowInstancesPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcShowInstancesPeer::NUM_COLUMNS - CcShowInstancesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcWebstreamPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcWebstreamPeer::NUM_COLUMNS - CcWebstreamPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - - $criteria->addJoin(CcSchedulePeer::STREAM_ID, CcWebstreamPeer::ID, $join_behavior); + CcShowInstancesPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcShowInstancesPeer::NUM_HYDRATE_COLUMNS; + CcFilesPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcFilesPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcSchedulePeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcSchedulePeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcSchedulePeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcShowInstances rows - - $key2 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcShowInstancesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowInstancesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcShowInstancesPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcSchedule) to the collection in $obj2 (CcShowInstances) - $obj2->addCcSchedule($obj1); - - } // if joined row is not null - - // Add objects for joined CcWebstream rows - - $key3 = CcWebstreamPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcWebstreamPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcWebstreamPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcWebstreamPeer::addInstanceToPool($obj3, $key3); - } // if $obj3 already loaded - - // Add the $obj1 (CcSchedule) to the collection in $obj3 (CcWebstream) - $obj3->addCcSchedule($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcSchedule objects pre-filled with all related objects except CcWebstream. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcSchedule objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcWebstream(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcSchedulePeer::addSelectColumns($criteria); - $startcol2 = (CcSchedulePeer::NUM_COLUMNS - CcSchedulePeer::NUM_LAZY_LOAD_COLUMNS); - - CcShowInstancesPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcShowInstancesPeer::NUM_COLUMNS - CcShowInstancesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcFilesPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcSchedulePeer::INSTANCE_ID, CcShowInstancesPeer::ID, $join_behavior); - - $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcSchedulePeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcSchedulePeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcSchedulePeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcShowInstances rows - - $key2 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcShowInstancesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowInstancesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcShowInstancesPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcSchedule) to the collection in $obj2 (CcShowInstances) - $obj2->addCcSchedule($obj1); - - } // if joined row is not null - - // Add objects for joined CcFiles rows - - $key3 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcFilesPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcFilesPeer::addInstanceToPool($obj3, $key3); - } // if $obj3 already loaded - - // Add the $obj1 (CcSchedule) to the collection in $obj3 (CcFiles) - $obj3->addCcSchedule($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcSchedulePeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcSchedulePeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcScheduleTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcSchedulePeer::CLASS_DEFAULT : CcSchedulePeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcSchedule or Criteria object. - * - * @param mixed $values Criteria or CcSchedule object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcSchedule object - } - - if ($criteria->containsKey(CcSchedulePeer::ID) && $criteria->keyContainsValue(CcSchedulePeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcSchedulePeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcSchedule or Criteria object. - * - * @param mixed $values Criteria or CcSchedule object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcSchedulePeer::ID); - $value = $criteria->remove(CcSchedulePeer::ID); - if ($value) { - $selectCriteria->add(CcSchedulePeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); - } - - } else { // $values is CcSchedule object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_schedule table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcSchedulePeer::TABLE_NAME, $con, CcSchedulePeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcSchedulePeer::clearInstancePool(); - CcSchedulePeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcSchedule or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcSchedule object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcSchedulePeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcSchedule) { // it's a model object - // invalidate the cache for this single object - CcSchedulePeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcSchedulePeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcSchedulePeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcSchedulePeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcSchedule object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcSchedule $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcSchedule $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcSchedulePeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcSchedulePeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcSchedulePeer::DATABASE_NAME, CcSchedulePeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcSchedule - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcSchedulePeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcSchedulePeer::DATABASE_NAME); - $criteria->add(CcSchedulePeer::ID, $pk); - - $v = CcSchedulePeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcSchedulePeer::DATABASE_NAME); - $criteria->add(CcSchedulePeer::ID, $pks, Criteria::IN); - $objs = CcSchedulePeer::doSelect($criteria, $con); - } - return $objs; - } + $criteria->addJoin(CcSchedulePeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcSchedulePeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcSchedulePeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcSchedulePeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcShowInstances rows + + $key2 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcShowInstancesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowInstancesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcShowInstancesPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcSchedule) to the collection in $obj2 (CcShowInstances) + $obj2->addCcSchedule($obj1); + + } // if joined row is not null + + // Add objects for joined CcFiles rows + + $key3 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcFilesPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcFilesPeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcFilesPeer::addInstanceToPool($obj3, $key3); + } // if $obj3 already loaded + + // Add the $obj1 (CcSchedule) to the collection in $obj3 (CcFiles) + $obj3->addCcSchedule($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcSchedulePeer::DATABASE_NAME)->getTable(CcSchedulePeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcSchedulePeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcSchedulePeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcScheduleTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcSchedulePeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcSchedule or Criteria object. + * + * @param mixed $values Criteria or CcSchedule object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcSchedule object + } + + if ($criteria->containsKey(CcSchedulePeer::ID) && $criteria->keyContainsValue(CcSchedulePeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcSchedulePeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcSchedule or Criteria object. + * + * @param mixed $values Criteria or CcSchedule object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcSchedulePeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcSchedulePeer::ID); + $value = $criteria->remove(CcSchedulePeer::ID); + if ($value) { + $selectCriteria->add(CcSchedulePeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcSchedulePeer::TABLE_NAME); + } + + } else { // $values is CcSchedule object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_schedule table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcSchedulePeer::TABLE_NAME, $con, CcSchedulePeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcSchedulePeer::clearInstancePool(); + CcSchedulePeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcSchedule or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcSchedule object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcSchedulePeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcSchedule) { // it's a model object + // invalidate the cache for this single object + CcSchedulePeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcSchedulePeer::DATABASE_NAME); + $criteria->add(CcSchedulePeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcSchedulePeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcSchedulePeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcSchedulePeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcSchedule object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcSchedule $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcSchedulePeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcSchedulePeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcSchedulePeer::DATABASE_NAME, CcSchedulePeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcSchedule + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcSchedulePeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcSchedulePeer::DATABASE_NAME); + $criteria->add(CcSchedulePeer::ID, $pk); + + $v = CcSchedulePeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcSchedule[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcSchedulePeer::DATABASE_NAME); + $criteria->add(CcSchedulePeer::ID, $pks, Criteria::IN); + $objs = CcSchedulePeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcSchedulePeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcScheduleQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcScheduleQuery.php index 45448d5108..a7f4ea02a7 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcScheduleQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcScheduleQuery.php @@ -4,883 +4,1191 @@ /** * Base class that represents a query for the 'cc_schedule' table. * - * * - * @method CcScheduleQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcScheduleQuery orderByDbStarts($order = Criteria::ASC) Order by the starts column - * @method CcScheduleQuery orderByDbEnds($order = Criteria::ASC) Order by the ends column - * @method CcScheduleQuery orderByDbFileId($order = Criteria::ASC) Order by the file_id column - * @method CcScheduleQuery orderByDbStreamId($order = Criteria::ASC) Order by the stream_id column - * @method CcScheduleQuery orderByDbClipLength($order = Criteria::ASC) Order by the clip_length column - * @method CcScheduleQuery orderByDbFadeIn($order = Criteria::ASC) Order by the fade_in column - * @method CcScheduleQuery orderByDbFadeOut($order = Criteria::ASC) Order by the fade_out column - * @method CcScheduleQuery orderByDbCueIn($order = Criteria::ASC) Order by the cue_in column - * @method CcScheduleQuery orderByDbCueOut($order = Criteria::ASC) Order by the cue_out column - * @method CcScheduleQuery orderByDbMediaItemPlayed($order = Criteria::ASC) Order by the media_item_played column - * @method CcScheduleQuery orderByDbInstanceId($order = Criteria::ASC) Order by the instance_id column - * @method CcScheduleQuery orderByDbPlayoutStatus($order = Criteria::ASC) Order by the playout_status column - * @method CcScheduleQuery orderByDbBroadcasted($order = Criteria::ASC) Order by the broadcasted column - * @method CcScheduleQuery orderByDbPosition($order = Criteria::ASC) Order by the position column * - * @method CcScheduleQuery groupByDbId() Group by the id column - * @method CcScheduleQuery groupByDbStarts() Group by the starts column - * @method CcScheduleQuery groupByDbEnds() Group by the ends column - * @method CcScheduleQuery groupByDbFileId() Group by the file_id column - * @method CcScheduleQuery groupByDbStreamId() Group by the stream_id column - * @method CcScheduleQuery groupByDbClipLength() Group by the clip_length column - * @method CcScheduleQuery groupByDbFadeIn() Group by the fade_in column - * @method CcScheduleQuery groupByDbFadeOut() Group by the fade_out column - * @method CcScheduleQuery groupByDbCueIn() Group by the cue_in column - * @method CcScheduleQuery groupByDbCueOut() Group by the cue_out column - * @method CcScheduleQuery groupByDbMediaItemPlayed() Group by the media_item_played column - * @method CcScheduleQuery groupByDbInstanceId() Group by the instance_id column - * @method CcScheduleQuery groupByDbPlayoutStatus() Group by the playout_status column - * @method CcScheduleQuery groupByDbBroadcasted() Group by the broadcasted column - * @method CcScheduleQuery groupByDbPosition() Group by the position column + * @method CcScheduleQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcScheduleQuery orderByDbStarts($order = Criteria::ASC) Order by the starts column + * @method CcScheduleQuery orderByDbEnds($order = Criteria::ASC) Order by the ends column + * @method CcScheduleQuery orderByDbFileId($order = Criteria::ASC) Order by the file_id column + * @method CcScheduleQuery orderByDbStreamId($order = Criteria::ASC) Order by the stream_id column + * @method CcScheduleQuery orderByDbClipLength($order = Criteria::ASC) Order by the clip_length column + * @method CcScheduleQuery orderByDbFadeIn($order = Criteria::ASC) Order by the fade_in column + * @method CcScheduleQuery orderByDbFadeOut($order = Criteria::ASC) Order by the fade_out column + * @method CcScheduleQuery orderByDbCueIn($order = Criteria::ASC) Order by the cue_in column + * @method CcScheduleQuery orderByDbCueOut($order = Criteria::ASC) Order by the cue_out column + * @method CcScheduleQuery orderByDbMediaItemPlayed($order = Criteria::ASC) Order by the media_item_played column + * @method CcScheduleQuery orderByDbInstanceId($order = Criteria::ASC) Order by the instance_id column + * @method CcScheduleQuery orderByDbPlayoutStatus($order = Criteria::ASC) Order by the playout_status column + * @method CcScheduleQuery orderByDbBroadcasted($order = Criteria::ASC) Order by the broadcasted column + * @method CcScheduleQuery orderByDbPosition($order = Criteria::ASC) Order by the position column * - * @method CcScheduleQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcScheduleQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcScheduleQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcScheduleQuery groupByDbId() Group by the id column + * @method CcScheduleQuery groupByDbStarts() Group by the starts column + * @method CcScheduleQuery groupByDbEnds() Group by the ends column + * @method CcScheduleQuery groupByDbFileId() Group by the file_id column + * @method CcScheduleQuery groupByDbStreamId() Group by the stream_id column + * @method CcScheduleQuery groupByDbClipLength() Group by the clip_length column + * @method CcScheduleQuery groupByDbFadeIn() Group by the fade_in column + * @method CcScheduleQuery groupByDbFadeOut() Group by the fade_out column + * @method CcScheduleQuery groupByDbCueIn() Group by the cue_in column + * @method CcScheduleQuery groupByDbCueOut() Group by the cue_out column + * @method CcScheduleQuery groupByDbMediaItemPlayed() Group by the media_item_played column + * @method CcScheduleQuery groupByDbInstanceId() Group by the instance_id column + * @method CcScheduleQuery groupByDbPlayoutStatus() Group by the playout_status column + * @method CcScheduleQuery groupByDbBroadcasted() Group by the broadcasted column + * @method CcScheduleQuery groupByDbPosition() Group by the position column * - * @method CcScheduleQuery leftJoinCcShowInstances($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShowInstances relation - * @method CcScheduleQuery rightJoinCcShowInstances($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShowInstances relation - * @method CcScheduleQuery innerJoinCcShowInstances($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShowInstances relation + * @method CcScheduleQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcScheduleQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcScheduleQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcScheduleQuery leftJoinCcFiles($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFiles relation - * @method CcScheduleQuery rightJoinCcFiles($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFiles relation - * @method CcScheduleQuery innerJoinCcFiles($relationAlias = '') Adds a INNER JOIN clause to the query using the CcFiles relation + * @method CcScheduleQuery leftJoinCcShowInstances($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcShowInstances relation + * @method CcScheduleQuery rightJoinCcShowInstances($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcShowInstances relation + * @method CcScheduleQuery innerJoinCcShowInstances($relationAlias = null) Adds a INNER JOIN clause to the query using the CcShowInstances relation * - * @method CcScheduleQuery leftJoinCcWebstream($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcWebstream relation - * @method CcScheduleQuery rightJoinCcWebstream($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcWebstream relation - * @method CcScheduleQuery innerJoinCcWebstream($relationAlias = '') Adds a INNER JOIN clause to the query using the CcWebstream relation + * @method CcScheduleQuery leftJoinCcFiles($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcFiles relation + * @method CcScheduleQuery rightJoinCcFiles($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcFiles relation + * @method CcScheduleQuery innerJoinCcFiles($relationAlias = null) Adds a INNER JOIN clause to the query using the CcFiles relation * - * @method CcScheduleQuery leftJoinCcWebstreamMetadata($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcWebstreamMetadata relation - * @method CcScheduleQuery rightJoinCcWebstreamMetadata($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcWebstreamMetadata relation - * @method CcScheduleQuery innerJoinCcWebstreamMetadata($relationAlias = '') Adds a INNER JOIN clause to the query using the CcWebstreamMetadata relation + * @method CcScheduleQuery leftJoinCcWebstream($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcWebstream relation + * @method CcScheduleQuery rightJoinCcWebstream($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcWebstream relation + * @method CcScheduleQuery innerJoinCcWebstream($relationAlias = null) Adds a INNER JOIN clause to the query using the CcWebstream relation * - * @method CcSchedule findOne(PropelPDO $con = null) Return the first CcSchedule matching the query - * @method CcSchedule findOneOrCreate(PropelPDO $con = null) Return the first CcSchedule matching the query, or a new CcSchedule object populated from the query conditions when no match is found + * @method CcScheduleQuery leftJoinCcWebstreamMetadata($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcWebstreamMetadata relation + * @method CcScheduleQuery rightJoinCcWebstreamMetadata($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcWebstreamMetadata relation + * @method CcScheduleQuery innerJoinCcWebstreamMetadata($relationAlias = null) Adds a INNER JOIN clause to the query using the CcWebstreamMetadata relation * - * @method CcSchedule findOneByDbId(int $id) Return the first CcSchedule filtered by the id column - * @method CcSchedule findOneByDbStarts(string $starts) Return the first CcSchedule filtered by the starts column - * @method CcSchedule findOneByDbEnds(string $ends) Return the first CcSchedule filtered by the ends column - * @method CcSchedule findOneByDbFileId(int $file_id) Return the first CcSchedule filtered by the file_id column - * @method CcSchedule findOneByDbStreamId(int $stream_id) Return the first CcSchedule filtered by the stream_id column - * @method CcSchedule findOneByDbClipLength(string $clip_length) Return the first CcSchedule filtered by the clip_length column - * @method CcSchedule findOneByDbFadeIn(string $fade_in) Return the first CcSchedule filtered by the fade_in column - * @method CcSchedule findOneByDbFadeOut(string $fade_out) Return the first CcSchedule filtered by the fade_out column - * @method CcSchedule findOneByDbCueIn(string $cue_in) Return the first CcSchedule filtered by the cue_in column - * @method CcSchedule findOneByDbCueOut(string $cue_out) Return the first CcSchedule filtered by the cue_out column - * @method CcSchedule findOneByDbMediaItemPlayed(boolean $media_item_played) Return the first CcSchedule filtered by the media_item_played column - * @method CcSchedule findOneByDbInstanceId(int $instance_id) Return the first CcSchedule filtered by the instance_id column - * @method CcSchedule findOneByDbPlayoutStatus(int $playout_status) Return the first CcSchedule filtered by the playout_status column - * @method CcSchedule findOneByDbBroadcasted(int $broadcasted) Return the first CcSchedule filtered by the broadcasted column - * @method CcSchedule findOneByDbPosition(int $position) Return the first CcSchedule filtered by the position column + * @method CcSchedule findOne(PropelPDO $con = null) Return the first CcSchedule matching the query + * @method CcSchedule findOneOrCreate(PropelPDO $con = null) Return the first CcSchedule matching the query, or a new CcSchedule object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcSchedule objects filtered by the id column - * @method array findByDbStarts(string $starts) Return CcSchedule objects filtered by the starts column - * @method array findByDbEnds(string $ends) Return CcSchedule objects filtered by the ends column - * @method array findByDbFileId(int $file_id) Return CcSchedule objects filtered by the file_id column - * @method array findByDbStreamId(int $stream_id) Return CcSchedule objects filtered by the stream_id column - * @method array findByDbClipLength(string $clip_length) Return CcSchedule objects filtered by the clip_length column - * @method array findByDbFadeIn(string $fade_in) Return CcSchedule objects filtered by the fade_in column - * @method array findByDbFadeOut(string $fade_out) Return CcSchedule objects filtered by the fade_out column - * @method array findByDbCueIn(string $cue_in) Return CcSchedule objects filtered by the cue_in column - * @method array findByDbCueOut(string $cue_out) Return CcSchedule objects filtered by the cue_out column - * @method array findByDbMediaItemPlayed(boolean $media_item_played) Return CcSchedule objects filtered by the media_item_played column - * @method array findByDbInstanceId(int $instance_id) Return CcSchedule objects filtered by the instance_id column - * @method array findByDbPlayoutStatus(int $playout_status) Return CcSchedule objects filtered by the playout_status column - * @method array findByDbBroadcasted(int $broadcasted) Return CcSchedule objects filtered by the broadcasted column - * @method array findByDbPosition(int $position) Return CcSchedule objects filtered by the position column + * @method CcSchedule findOneByDbStarts(string $starts) Return the first CcSchedule filtered by the starts column + * @method CcSchedule findOneByDbEnds(string $ends) Return the first CcSchedule filtered by the ends column + * @method CcSchedule findOneByDbFileId(int $file_id) Return the first CcSchedule filtered by the file_id column + * @method CcSchedule findOneByDbStreamId(int $stream_id) Return the first CcSchedule filtered by the stream_id column + * @method CcSchedule findOneByDbClipLength(string $clip_length) Return the first CcSchedule filtered by the clip_length column + * @method CcSchedule findOneByDbFadeIn(string $fade_in) Return the first CcSchedule filtered by the fade_in column + * @method CcSchedule findOneByDbFadeOut(string $fade_out) Return the first CcSchedule filtered by the fade_out column + * @method CcSchedule findOneByDbCueIn(string $cue_in) Return the first CcSchedule filtered by the cue_in column + * @method CcSchedule findOneByDbCueOut(string $cue_out) Return the first CcSchedule filtered by the cue_out column + * @method CcSchedule findOneByDbMediaItemPlayed(boolean $media_item_played) Return the first CcSchedule filtered by the media_item_played column + * @method CcSchedule findOneByDbInstanceId(int $instance_id) Return the first CcSchedule filtered by the instance_id column + * @method CcSchedule findOneByDbPlayoutStatus(int $playout_status) Return the first CcSchedule filtered by the playout_status column + * @method CcSchedule findOneByDbBroadcasted(int $broadcasted) Return the first CcSchedule filtered by the broadcasted column + * @method CcSchedule findOneByDbPosition(int $position) Return the first CcSchedule filtered by the position column + * + * @method array findByDbId(int $id) Return CcSchedule objects filtered by the id column + * @method array findByDbStarts(string $starts) Return CcSchedule objects filtered by the starts column + * @method array findByDbEnds(string $ends) Return CcSchedule objects filtered by the ends column + * @method array findByDbFileId(int $file_id) Return CcSchedule objects filtered by the file_id column + * @method array findByDbStreamId(int $stream_id) Return CcSchedule objects filtered by the stream_id column + * @method array findByDbClipLength(string $clip_length) Return CcSchedule objects filtered by the clip_length column + * @method array findByDbFadeIn(string $fade_in) Return CcSchedule objects filtered by the fade_in column + * @method array findByDbFadeOut(string $fade_out) Return CcSchedule objects filtered by the fade_out column + * @method array findByDbCueIn(string $cue_in) Return CcSchedule objects filtered by the cue_in column + * @method array findByDbCueOut(string $cue_out) Return CcSchedule objects filtered by the cue_out column + * @method array findByDbMediaItemPlayed(boolean $media_item_played) Return CcSchedule objects filtered by the media_item_played column + * @method array findByDbInstanceId(int $instance_id) Return CcSchedule objects filtered by the instance_id column + * @method array findByDbPlayoutStatus(int $playout_status) Return CcSchedule objects filtered by the playout_status column + * @method array findByDbBroadcasted(int $broadcasted) Return CcSchedule objects filtered by the broadcasted column + * @method array findByDbPosition(int $position) Return CcSchedule objects filtered by the position column * * @package propel.generator.airtime.om */ abstract class BaseCcScheduleQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcScheduleQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcSchedule'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcScheduleQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcScheduleQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcScheduleQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcScheduleQuery) { + return $criteria; + } + $query = new CcScheduleQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcSchedule|CcSchedule[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcSchedulePeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSchedule A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSchedule A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "starts", "ends", "file_id", "stream_id", "clip_length", "fade_in", "fade_out", "cue_in", "cue_out", "media_item_played", "instance_id", "playout_status", "broadcasted", "position" FROM "cc_schedule" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcSchedule(); + $obj->hydrate($row); + CcSchedulePeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSchedule|CcSchedule[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcSchedule[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcSchedulePeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcSchedulePeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcSchedulePeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcSchedulePeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSchedulePeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the starts column + * + * Example usage: + * + * $query->filterByDbStarts('2011-03-14'); // WHERE starts = '2011-03-14' + * $query->filterByDbStarts('now'); // WHERE starts = '2011-03-14' + * $query->filterByDbStarts(array('max' => 'yesterday')); // WHERE starts < '2011-03-13' + * + * + * @param mixed $dbStarts The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbStarts($dbStarts = null, $comparison = null) + { + if (is_array($dbStarts)) { + $useMinMax = false; + if (isset($dbStarts['min'])) { + $this->addUsingAlias(CcSchedulePeer::STARTS, $dbStarts['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbStarts['max'])) { + $this->addUsingAlias(CcSchedulePeer::STARTS, $dbStarts['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSchedulePeer::STARTS, $dbStarts, $comparison); + } + + /** + * Filter the query on the ends column + * + * Example usage: + * + * $query->filterByDbEnds('2011-03-14'); // WHERE ends = '2011-03-14' + * $query->filterByDbEnds('now'); // WHERE ends = '2011-03-14' + * $query->filterByDbEnds(array('max' => 'yesterday')); // WHERE ends < '2011-03-13' + * + * + * @param mixed $dbEnds The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbEnds($dbEnds = null, $comparison = null) + { + if (is_array($dbEnds)) { + $useMinMax = false; + if (isset($dbEnds['min'])) { + $this->addUsingAlias(CcSchedulePeer::ENDS, $dbEnds['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbEnds['max'])) { + $this->addUsingAlias(CcSchedulePeer::ENDS, $dbEnds['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSchedulePeer::ENDS, $dbEnds, $comparison); + } + + /** + * Filter the query on the file_id column + * + * Example usage: + * + * $query->filterByDbFileId(1234); // WHERE file_id = 1234 + * $query->filterByDbFileId(array(12, 34)); // WHERE file_id IN (12, 34) + * $query->filterByDbFileId(array('min' => 12)); // WHERE file_id >= 12 + * $query->filterByDbFileId(array('max' => 12)); // WHERE file_id <= 12 + * + * + * @see filterByCcFiles() + * + * @param mixed $dbFileId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbFileId($dbFileId = null, $comparison = null) + { + if (is_array($dbFileId)) { + $useMinMax = false; + if (isset($dbFileId['min'])) { + $this->addUsingAlias(CcSchedulePeer::FILE_ID, $dbFileId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbFileId['max'])) { + $this->addUsingAlias(CcSchedulePeer::FILE_ID, $dbFileId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSchedulePeer::FILE_ID, $dbFileId, $comparison); + } + + /** + * Filter the query on the stream_id column + * + * Example usage: + * + * $query->filterByDbStreamId(1234); // WHERE stream_id = 1234 + * $query->filterByDbStreamId(array(12, 34)); // WHERE stream_id IN (12, 34) + * $query->filterByDbStreamId(array('min' => 12)); // WHERE stream_id >= 12 + * $query->filterByDbStreamId(array('max' => 12)); // WHERE stream_id <= 12 + * + * + * @see filterByCcWebstream() + * + * @param mixed $dbStreamId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbStreamId($dbStreamId = null, $comparison = null) + { + if (is_array($dbStreamId)) { + $useMinMax = false; + if (isset($dbStreamId['min'])) { + $this->addUsingAlias(CcSchedulePeer::STREAM_ID, $dbStreamId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbStreamId['max'])) { + $this->addUsingAlias(CcSchedulePeer::STREAM_ID, $dbStreamId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSchedulePeer::STREAM_ID, $dbStreamId, $comparison); + } + + /** + * Filter the query on the clip_length column + * + * Example usage: + * + * $query->filterByDbClipLength('fooValue'); // WHERE clip_length = 'fooValue' + * $query->filterByDbClipLength('%fooValue%'); // WHERE clip_length LIKE '%fooValue%' + * + * + * @param string $dbClipLength 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 CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbClipLength($dbClipLength = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbClipLength)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbClipLength)) { + $dbClipLength = str_replace('*', '%', $dbClipLength); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSchedulePeer::CLIP_LENGTH, $dbClipLength, $comparison); + } + + /** + * Filter the query on the fade_in column + * + * Example usage: + * + * $query->filterByDbFadeIn('2011-03-14'); // WHERE fade_in = '2011-03-14' + * $query->filterByDbFadeIn('now'); // WHERE fade_in = '2011-03-14' + * $query->filterByDbFadeIn(array('max' => 'yesterday')); // WHERE fade_in < '2011-03-13' + * + * + * @param mixed $dbFadeIn The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbFadeIn($dbFadeIn = null, $comparison = null) + { + if (is_array($dbFadeIn)) { + $useMinMax = false; + if (isset($dbFadeIn['min'])) { + $this->addUsingAlias(CcSchedulePeer::FADE_IN, $dbFadeIn['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbFadeIn['max'])) { + $this->addUsingAlias(CcSchedulePeer::FADE_IN, $dbFadeIn['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSchedulePeer::FADE_IN, $dbFadeIn, $comparison); + } + + /** + * Filter the query on the fade_out column + * + * Example usage: + * + * $query->filterByDbFadeOut('2011-03-14'); // WHERE fade_out = '2011-03-14' + * $query->filterByDbFadeOut('now'); // WHERE fade_out = '2011-03-14' + * $query->filterByDbFadeOut(array('max' => 'yesterday')); // WHERE fade_out < '2011-03-13' + * + * + * @param mixed $dbFadeOut The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbFadeOut($dbFadeOut = null, $comparison = null) + { + if (is_array($dbFadeOut)) { + $useMinMax = false; + if (isset($dbFadeOut['min'])) { + $this->addUsingAlias(CcSchedulePeer::FADE_OUT, $dbFadeOut['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbFadeOut['max'])) { + $this->addUsingAlias(CcSchedulePeer::FADE_OUT, $dbFadeOut['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSchedulePeer::FADE_OUT, $dbFadeOut, $comparison); + } + + /** + * Filter the query on the cue_in column + * + * Example usage: + * + * $query->filterByDbCueIn('fooValue'); // WHERE cue_in = 'fooValue' + * $query->filterByDbCueIn('%fooValue%'); // WHERE cue_in LIKE '%fooValue%' + * + * + * @param string $dbCueIn 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 CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbCueIn($dbCueIn = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbCueIn)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbCueIn)) { + $dbCueIn = str_replace('*', '%', $dbCueIn); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSchedulePeer::CUE_IN, $dbCueIn, $comparison); + } + + /** + * Filter the query on the cue_out column + * + * Example usage: + * + * $query->filterByDbCueOut('fooValue'); // WHERE cue_out = 'fooValue' + * $query->filterByDbCueOut('%fooValue%'); // WHERE cue_out LIKE '%fooValue%' + * + * + * @param string $dbCueOut 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 CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbCueOut($dbCueOut = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbCueOut)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbCueOut)) { + $dbCueOut = str_replace('*', '%', $dbCueOut); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSchedulePeer::CUE_OUT, $dbCueOut, $comparison); + } + + /** + * Filter the query on the media_item_played column + * + * Example usage: + * + * $query->filterByDbMediaItemPlayed(true); // WHERE media_item_played = true + * $query->filterByDbMediaItemPlayed('yes'); // WHERE media_item_played = true + * + * + * @param boolean|string $dbMediaItemPlayed The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbMediaItemPlayed($dbMediaItemPlayed = null, $comparison = null) + { + if (is_string($dbMediaItemPlayed)) { + $dbMediaItemPlayed = in_array(strtolower($dbMediaItemPlayed), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(CcSchedulePeer::MEDIA_ITEM_PLAYED, $dbMediaItemPlayed, $comparison); + } + + /** + * Filter the query on the instance_id column + * + * Example usage: + * + * $query->filterByDbInstanceId(1234); // WHERE instance_id = 1234 + * $query->filterByDbInstanceId(array(12, 34)); // WHERE instance_id IN (12, 34) + * $query->filterByDbInstanceId(array('min' => 12)); // WHERE instance_id >= 12 + * $query->filterByDbInstanceId(array('max' => 12)); // WHERE instance_id <= 12 + * + * + * @see filterByCcShowInstances() + * + * @param mixed $dbInstanceId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbInstanceId($dbInstanceId = null, $comparison = null) + { + if (is_array($dbInstanceId)) { + $useMinMax = false; + if (isset($dbInstanceId['min'])) { + $this->addUsingAlias(CcSchedulePeer::INSTANCE_ID, $dbInstanceId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbInstanceId['max'])) { + $this->addUsingAlias(CcSchedulePeer::INSTANCE_ID, $dbInstanceId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSchedulePeer::INSTANCE_ID, $dbInstanceId, $comparison); + } + + /** + * Filter the query on the playout_status column + * + * Example usage: + * + * $query->filterByDbPlayoutStatus(1234); // WHERE playout_status = 1234 + * $query->filterByDbPlayoutStatus(array(12, 34)); // WHERE playout_status IN (12, 34) + * $query->filterByDbPlayoutStatus(array('min' => 12)); // WHERE playout_status >= 12 + * $query->filterByDbPlayoutStatus(array('max' => 12)); // WHERE playout_status <= 12 + * + * + * @param mixed $dbPlayoutStatus The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbPlayoutStatus($dbPlayoutStatus = null, $comparison = null) + { + if (is_array($dbPlayoutStatus)) { + $useMinMax = false; + if (isset($dbPlayoutStatus['min'])) { + $this->addUsingAlias(CcSchedulePeer::PLAYOUT_STATUS, $dbPlayoutStatus['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbPlayoutStatus['max'])) { + $this->addUsingAlias(CcSchedulePeer::PLAYOUT_STATUS, $dbPlayoutStatus['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSchedulePeer::PLAYOUT_STATUS, $dbPlayoutStatus, $comparison); + } + + /** + * Filter the query on the broadcasted column + * + * Example usage: + * + * $query->filterByDbBroadcasted(1234); // WHERE broadcasted = 1234 + * $query->filterByDbBroadcasted(array(12, 34)); // WHERE broadcasted IN (12, 34) + * $query->filterByDbBroadcasted(array('min' => 12)); // WHERE broadcasted >= 12 + * $query->filterByDbBroadcasted(array('max' => 12)); // WHERE broadcasted <= 12 + * + * + * @param mixed $dbBroadcasted The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbBroadcasted($dbBroadcasted = null, $comparison = null) + { + if (is_array($dbBroadcasted)) { + $useMinMax = false; + if (isset($dbBroadcasted['min'])) { + $this->addUsingAlias(CcSchedulePeer::BROADCASTED, $dbBroadcasted['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbBroadcasted['max'])) { + $this->addUsingAlias(CcSchedulePeer::BROADCASTED, $dbBroadcasted['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSchedulePeer::BROADCASTED, $dbBroadcasted, $comparison); + } + + /** + * Filter the query on the position column + * + * Example usage: + * + * $query->filterByDbPosition(1234); // WHERE position = 1234 + * $query->filterByDbPosition(array(12, 34)); // WHERE position IN (12, 34) + * $query->filterByDbPosition(array('min' => 12)); // WHERE position >= 12 + * $query->filterByDbPosition(array('max' => 12)); // WHERE position <= 12 + * + * + * @param mixed $dbPosition The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function filterByDbPosition($dbPosition = null, $comparison = null) + { + if (is_array($dbPosition)) { + $useMinMax = false; + if (isset($dbPosition['min'])) { + $this->addUsingAlias(CcSchedulePeer::POSITION, $dbPosition['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbPosition['max'])) { + $this->addUsingAlias(CcSchedulePeer::POSITION, $dbPosition['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSchedulePeer::POSITION, $dbPosition, $comparison); + } + + /** + * Filter the query by a related CcShowInstances object + * + * @param CcShowInstances|PropelObjectCollection $ccShowInstances The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcShowInstances($ccShowInstances, $comparison = null) + { + if ($ccShowInstances instanceof CcShowInstances) { + return $this + ->addUsingAlias(CcSchedulePeer::INSTANCE_ID, $ccShowInstances->getDbId(), $comparison); + } elseif ($ccShowInstances instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcSchedulePeer::INSTANCE_ID, $ccShowInstances->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcShowInstances() only accepts arguments of type CcShowInstances or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcShowInstances relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function joinCcShowInstances($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcShowInstances'); + + // 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, 'CcShowInstances'); + } + + return $this; + } + + /** + * Use the CcShowInstances relation CcShowInstances 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 CcShowInstancesQuery A secondary query class using the current class as primary query + */ + public function useCcShowInstancesQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcShowInstances($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcShowInstances', 'CcShowInstancesQuery'); + } + + /** + * Filter the query by a related CcFiles object + * + * @param CcFiles|PropelObjectCollection $ccFiles The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcFiles($ccFiles, $comparison = null) + { + if ($ccFiles instanceof CcFiles) { + return $this + ->addUsingAlias(CcSchedulePeer::FILE_ID, $ccFiles->getDbId(), $comparison); + } elseif ($ccFiles instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcSchedulePeer::FILE_ID, $ccFiles->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcFiles() only accepts arguments of type CcFiles or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcFiles relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function joinCcFiles($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcFiles'); + + // 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, 'CcFiles'); + } + + return $this; + } + + /** + * Use the CcFiles relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query + */ + public function useCcFilesQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcFiles($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcFiles', 'CcFilesQuery'); + } + + /** + * Filter the query by a related CcWebstream object + * + * @param CcWebstream|PropelObjectCollection $ccWebstream The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcWebstream($ccWebstream, $comparison = null) + { + if ($ccWebstream instanceof CcWebstream) { + return $this + ->addUsingAlias(CcSchedulePeer::STREAM_ID, $ccWebstream->getDbId(), $comparison); + } elseif ($ccWebstream instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcSchedulePeer::STREAM_ID, $ccWebstream->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcWebstream() only accepts arguments of type CcWebstream or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcWebstream relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function joinCcWebstream($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcWebstream'); + + // 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, 'CcWebstream'); + } + + return $this; + } + + /** + * Use the CcWebstream relation CcWebstream 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 CcWebstreamQuery A secondary query class using the current class as primary query + */ + public function useCcWebstreamQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcWebstream($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcWebstream', 'CcWebstreamQuery'); + } + + /** + * Filter the query by a related CcWebstreamMetadata object + * + * @param CcWebstreamMetadata|PropelObjectCollection $ccWebstreamMetadata the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcScheduleQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcWebstreamMetadata($ccWebstreamMetadata, $comparison = null) + { + if ($ccWebstreamMetadata instanceof CcWebstreamMetadata) { + return $this + ->addUsingAlias(CcSchedulePeer::ID, $ccWebstreamMetadata->getDbInstanceId(), $comparison); + } elseif ($ccWebstreamMetadata instanceof PropelObjectCollection) { + return $this + ->useCcWebstreamMetadataQuery() + ->filterByPrimaryKeys($ccWebstreamMetadata->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcWebstreamMetadata() only accepts arguments of type CcWebstreamMetadata or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcWebstreamMetadata relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function joinCcWebstreamMetadata($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcWebstreamMetadata'); + + // 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, 'CcWebstreamMetadata'); + } + + return $this; + } + + /** + * Use the CcWebstreamMetadata relation CcWebstreamMetadata 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 CcWebstreamMetadataQuery A secondary query class using the current class as primary query + */ + public function useCcWebstreamMetadataQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcWebstreamMetadata($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcWebstreamMetadata', 'CcWebstreamMetadataQuery'); + } + + /** + * Exclude object from result + * + * @param CcSchedule $ccSchedule Object to remove from the list of results + * + * @return CcScheduleQuery The current query, for fluid interface + */ + public function prune($ccSchedule = null) + { + if ($ccSchedule) { + $this->addUsingAlias(CcSchedulePeer::ID, $ccSchedule->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcScheduleQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcSchedule', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcScheduleQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcScheduleQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcScheduleQuery) { - return $criteria; - } - $query = new CcScheduleQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcSchedule|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcSchedulePeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcSchedulePeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcSchedulePeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcSchedulePeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the starts column - * - * @param string|array $dbStarts The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbStarts($dbStarts = null, $comparison = null) - { - if (is_array($dbStarts)) { - $useMinMax = false; - if (isset($dbStarts['min'])) { - $this->addUsingAlias(CcSchedulePeer::STARTS, $dbStarts['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbStarts['max'])) { - $this->addUsingAlias(CcSchedulePeer::STARTS, $dbStarts['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSchedulePeer::STARTS, $dbStarts, $comparison); - } - - /** - * Filter the query on the ends column - * - * @param string|array $dbEnds The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbEnds($dbEnds = null, $comparison = null) - { - if (is_array($dbEnds)) { - $useMinMax = false; - if (isset($dbEnds['min'])) { - $this->addUsingAlias(CcSchedulePeer::ENDS, $dbEnds['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbEnds['max'])) { - $this->addUsingAlias(CcSchedulePeer::ENDS, $dbEnds['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSchedulePeer::ENDS, $dbEnds, $comparison); - } - - /** - * Filter the query on the file_id column - * - * @param int|array $dbFileId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbFileId($dbFileId = null, $comparison = null) - { - if (is_array($dbFileId)) { - $useMinMax = false; - if (isset($dbFileId['min'])) { - $this->addUsingAlias(CcSchedulePeer::FILE_ID, $dbFileId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbFileId['max'])) { - $this->addUsingAlias(CcSchedulePeer::FILE_ID, $dbFileId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSchedulePeer::FILE_ID, $dbFileId, $comparison); - } - - /** - * Filter the query on the stream_id column - * - * @param int|array $dbStreamId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbStreamId($dbStreamId = null, $comparison = null) - { - if (is_array($dbStreamId)) { - $useMinMax = false; - if (isset($dbStreamId['min'])) { - $this->addUsingAlias(CcSchedulePeer::STREAM_ID, $dbStreamId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbStreamId['max'])) { - $this->addUsingAlias(CcSchedulePeer::STREAM_ID, $dbStreamId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSchedulePeer::STREAM_ID, $dbStreamId, $comparison); - } - - /** - * Filter the query on the clip_length column - * - * @param string $dbClipLength 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 CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbClipLength($dbClipLength = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbClipLength)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbClipLength)) { - $dbClipLength = str_replace('*', '%', $dbClipLength); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSchedulePeer::CLIP_LENGTH, $dbClipLength, $comparison); - } - - /** - * Filter the query on the fade_in column - * - * @param string|array $dbFadeIn The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbFadeIn($dbFadeIn = null, $comparison = null) - { - if (is_array($dbFadeIn)) { - $useMinMax = false; - if (isset($dbFadeIn['min'])) { - $this->addUsingAlias(CcSchedulePeer::FADE_IN, $dbFadeIn['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbFadeIn['max'])) { - $this->addUsingAlias(CcSchedulePeer::FADE_IN, $dbFadeIn['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSchedulePeer::FADE_IN, $dbFadeIn, $comparison); - } - - /** - * Filter the query on the fade_out column - * - * @param string|array $dbFadeOut The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbFadeOut($dbFadeOut = null, $comparison = null) - { - if (is_array($dbFadeOut)) { - $useMinMax = false; - if (isset($dbFadeOut['min'])) { - $this->addUsingAlias(CcSchedulePeer::FADE_OUT, $dbFadeOut['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbFadeOut['max'])) { - $this->addUsingAlias(CcSchedulePeer::FADE_OUT, $dbFadeOut['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSchedulePeer::FADE_OUT, $dbFadeOut, $comparison); - } - - /** - * Filter the query on the cue_in column - * - * @param string $dbCueIn 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 CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbCueIn($dbCueIn = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbCueIn)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbCueIn)) { - $dbCueIn = str_replace('*', '%', $dbCueIn); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSchedulePeer::CUE_IN, $dbCueIn, $comparison); - } - - /** - * Filter the query on the cue_out column - * - * @param string $dbCueOut 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 CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbCueOut($dbCueOut = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbCueOut)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbCueOut)) { - $dbCueOut = str_replace('*', '%', $dbCueOut); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSchedulePeer::CUE_OUT, $dbCueOut, $comparison); - } - - /** - * Filter the query on the media_item_played column - * - * @param boolean|string $dbMediaItemPlayed 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 CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbMediaItemPlayed($dbMediaItemPlayed = null, $comparison = null) - { - if (is_string($dbMediaItemPlayed)) { - $media_item_played = in_array(strtolower($dbMediaItemPlayed), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - } - return $this->addUsingAlias(CcSchedulePeer::MEDIA_ITEM_PLAYED, $dbMediaItemPlayed, $comparison); - } - - /** - * Filter the query on the instance_id column - * - * @param int|array $dbInstanceId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbInstanceId($dbInstanceId = null, $comparison = null) - { - if (is_array($dbInstanceId)) { - $useMinMax = false; - if (isset($dbInstanceId['min'])) { - $this->addUsingAlias(CcSchedulePeer::INSTANCE_ID, $dbInstanceId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbInstanceId['max'])) { - $this->addUsingAlias(CcSchedulePeer::INSTANCE_ID, $dbInstanceId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSchedulePeer::INSTANCE_ID, $dbInstanceId, $comparison); - } - - /** - * Filter the query on the playout_status column - * - * @param int|array $dbPlayoutStatus The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbPlayoutStatus($dbPlayoutStatus = null, $comparison = null) - { - if (is_array($dbPlayoutStatus)) { - $useMinMax = false; - if (isset($dbPlayoutStatus['min'])) { - $this->addUsingAlias(CcSchedulePeer::PLAYOUT_STATUS, $dbPlayoutStatus['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbPlayoutStatus['max'])) { - $this->addUsingAlias(CcSchedulePeer::PLAYOUT_STATUS, $dbPlayoutStatus['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSchedulePeer::PLAYOUT_STATUS, $dbPlayoutStatus, $comparison); - } - - /** - * Filter the query on the broadcasted column - * - * @param int|array $dbBroadcasted The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbBroadcasted($dbBroadcasted = null, $comparison = null) - { - if (is_array($dbBroadcasted)) { - $useMinMax = false; - if (isset($dbBroadcasted['min'])) { - $this->addUsingAlias(CcSchedulePeer::BROADCASTED, $dbBroadcasted['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbBroadcasted['max'])) { - $this->addUsingAlias(CcSchedulePeer::BROADCASTED, $dbBroadcasted['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSchedulePeer::BROADCASTED, $dbBroadcasted, $comparison); - } - - /** - * Filter the query on the position column - * - * @param int|array $dbPosition The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByDbPosition($dbPosition = null, $comparison = null) - { - if (is_array($dbPosition)) { - $useMinMax = false; - if (isset($dbPosition['min'])) { - $this->addUsingAlias(CcSchedulePeer::POSITION, $dbPosition['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbPosition['max'])) { - $this->addUsingAlias(CcSchedulePeer::POSITION, $dbPosition['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSchedulePeer::POSITION, $dbPosition, $comparison); - } - - /** - * Filter the query by a related CcShowInstances object - * - * @param CcShowInstances $ccShowInstances the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByCcShowInstances($ccShowInstances, $comparison = null) - { - return $this - ->addUsingAlias(CcSchedulePeer::INSTANCE_ID, $ccShowInstances->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcShowInstances relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function joinCcShowInstances($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcShowInstances'); - - // 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, 'CcShowInstances'); - } - - return $this; - } - - /** - * Use the CcShowInstances relation CcShowInstances 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 CcShowInstancesQuery A secondary query class using the current class as primary query - */ - public function useCcShowInstancesQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcShowInstances($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcShowInstances', 'CcShowInstancesQuery'); - } - - /** - * Filter the query by a related CcFiles object - * - * @param CcFiles $ccFiles the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByCcFiles($ccFiles, $comparison = null) - { - return $this - ->addUsingAlias(CcSchedulePeer::FILE_ID, $ccFiles->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcFiles relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function joinCcFiles($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcFiles'); - - // 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, 'CcFiles'); - } - - return $this; - } - - /** - * Use the CcFiles relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query - */ - public function useCcFilesQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcFiles($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcFiles', 'CcFilesQuery'); - } - - /** - * Filter the query by a related CcWebstream object - * - * @param CcWebstream $ccWebstream the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByCcWebstream($ccWebstream, $comparison = null) - { - return $this - ->addUsingAlias(CcSchedulePeer::STREAM_ID, $ccWebstream->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcWebstream relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function joinCcWebstream($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcWebstream'); - - // 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, 'CcWebstream'); - } - - return $this; - } - - /** - * Use the CcWebstream relation CcWebstream 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 CcWebstreamQuery A secondary query class using the current class as primary query - */ - public function useCcWebstreamQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcWebstream($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcWebstream', 'CcWebstreamQuery'); - } - - /** - * Filter the query by a related CcWebstreamMetadata object - * - * @param CcWebstreamMetadata $ccWebstreamMetadata the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function filterByCcWebstreamMetadata($ccWebstreamMetadata, $comparison = null) - { - return $this - ->addUsingAlias(CcSchedulePeer::ID, $ccWebstreamMetadata->getDbInstanceId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcWebstreamMetadata relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function joinCcWebstreamMetadata($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcWebstreamMetadata'); - - // 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, 'CcWebstreamMetadata'); - } - - return $this; - } - - /** - * Use the CcWebstreamMetadata relation CcWebstreamMetadata 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 CcWebstreamMetadataQuery A secondary query class using the current class as primary query - */ - public function useCcWebstreamMetadataQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcWebstreamMetadata($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcWebstreamMetadata', 'CcWebstreamMetadataQuery'); - } - - /** - * Exclude object from result - * - * @param CcSchedule $ccSchedule Object to remove from the list of results - * - * @return CcScheduleQuery The current query, for fluid interface - */ - public function prune($ccSchedule = null) - { - if ($ccSchedule) { - $this->addUsingAlias(CcSchedulePeer::ID, $ccSchedule->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcScheduleQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcServiceRegister.php b/airtime_mvc/application/models/airtime/om/BaseCcServiceRegister.php index dbb3aa6a22..20ba3c9622 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcServiceRegister.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcServiceRegister.php @@ -4,705 +4,811 @@ /** * Base class that represents a row from the 'cc_service_register' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcServiceRegister extends BaseObject implements Persistent +abstract class BaseCcServiceRegister extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcServiceRegisterPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcServiceRegisterPeer - */ - protected static $peer; - - /** - * The value for the name field. - * @var string - */ - protected $name; - - /** - * The value for the ip field. - * @var string - */ - protected $ip; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [name] column value. - * - * @return string - */ - public function getDbName() - { - return $this->name; - } - - /** - * Get the [ip] column value. - * - * @return string - */ - public function getDbIp() - { - return $this->ip; - } - - /** - * Set the value of [name] column. - * - * @param string $v new value - * @return CcServiceRegister The current object (for fluent API support) - */ - public function setDbName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->name !== $v) { - $this->name = $v; - $this->modifiedColumns[] = CcServiceRegisterPeer::NAME; - } - - return $this; - } // setDbName() - - /** - * Set the value of [ip] column. - * - * @param string $v new value - * @return CcServiceRegister The current object (for fluent API support) - */ - public function setDbIp($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->ip !== $v) { - $this->ip = $v; - $this->modifiedColumns[] = CcServiceRegisterPeer::IP; - } - - return $this; - } // setDbIp() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->name = ($row[$startcol + 0] !== null) ? (string) $row[$startcol + 0] : null; - $this->ip = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 2; // 2 = CcServiceRegisterPeer::NUM_COLUMNS - CcServiceRegisterPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcServiceRegister object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcServiceRegisterPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcServiceRegisterQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcServiceRegisterPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows = 1; - $this->setNew(false); - } else { - $affectedRows = CcServiceRegisterPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - if (($retval = CcServiceRegisterPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcServiceRegisterPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbName(); - break; - case 1: - return $this->getDbIp(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) - { - $keys = CcServiceRegisterPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbName(), - $keys[1] => $this->getDbIp(), - ); - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcServiceRegisterPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbName($value); - break; - case 1: - $this->setDbIp($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcServiceRegisterPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbName($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbIp($arr[$keys[1]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcServiceRegisterPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcServiceRegisterPeer::NAME)) $criteria->add(CcServiceRegisterPeer::NAME, $this->name); - if ($this->isColumnModified(CcServiceRegisterPeer::IP)) $criteria->add(CcServiceRegisterPeer::IP, $this->ip); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcServiceRegisterPeer::DATABASE_NAME); - $criteria->add(CcServiceRegisterPeer::NAME, $this->name); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return string - */ - public function getPrimaryKey() - { - return $this->getDbName(); - } - - /** - * Generic method to set the primary key (name column). - * - * @param string $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbName($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbName(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcServiceRegister (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbName($this->name); - $copyObj->setDbIp($this->ip); - - $copyObj->setNew(true); - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcServiceRegister Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcServiceRegisterPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcServiceRegisterPeer(); - } - return self::$peer; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->name = null; - $this->ip = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcServiceRegister + /** + * Peer class name + */ + const PEER = 'CcServiceRegisterPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcServiceRegisterPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the name field. + * @var string + */ + protected $name; + + /** + * The value for the ip field. + * @var string + */ + protected $ip; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [name] column value. + * + * @return string + */ + public function getDbName() + { + + return $this->name; + } + + /** + * Get the [ip] column value. + * + * @return string + */ + public function getDbIp() + { + + return $this->ip; + } + + /** + * Set the value of [name] column. + * + * @param string $v new value + * @return CcServiceRegister The current object (for fluent API support) + */ + public function setDbName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->name !== $v) { + $this->name = $v; + $this->modifiedColumns[] = CcServiceRegisterPeer::NAME; + } + + + return $this; + } // setDbName() + + /** + * Set the value of [ip] column. + * + * @param string $v new value + * @return CcServiceRegister The current object (for fluent API support) + */ + public function setDbIp($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->ip !== $v) { + $this->ip = $v; + $this->modifiedColumns[] = CcServiceRegisterPeer::IP; + } + + + return $this; + } // setDbIp() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->name = ($row[$startcol + 0] !== null) ? (string) $row[$startcol + 0] : null; + $this->ip = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 2; // 2 = CcServiceRegisterPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcServiceRegister object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcServiceRegisterPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcServiceRegisterQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcServiceRegisterPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcServiceRegisterPeer::NAME)) { + $modifiedColumns[':p' . $index++] = '"name"'; + } + if ($this->isColumnModified(CcServiceRegisterPeer::IP)) { + $modifiedColumns[':p' . $index++] = '"ip"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_service_register" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"name"': + $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); + break; + case '"ip"': + $stmt->bindValue($identifier, $this->ip, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + if (($retval = CcServiceRegisterPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcServiceRegisterPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbName(); + break; + case 1: + return $this->getDbIp(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array()) + { + if (isset($alreadyDumpedObjects['CcServiceRegister'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcServiceRegister'][$this->getPrimaryKey()] = true; + $keys = CcServiceRegisterPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbName(), + $keys[1] => $this->getDbIp(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcServiceRegisterPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbName($value); + break; + case 1: + $this->setDbIp($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcServiceRegisterPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbName($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbIp($arr[$keys[1]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcServiceRegisterPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcServiceRegisterPeer::NAME)) $criteria->add(CcServiceRegisterPeer::NAME, $this->name); + if ($this->isColumnModified(CcServiceRegisterPeer::IP)) $criteria->add(CcServiceRegisterPeer::IP, $this->ip); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcServiceRegisterPeer::DATABASE_NAME); + $criteria->add(CcServiceRegisterPeer::NAME, $this->name); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return string + */ + public function getPrimaryKey() + { + return $this->getDbName(); + } + + /** + * Generic method to set the primary key (name column). + * + * @param string $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbName($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbName(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcServiceRegister (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbIp($this->getDbIp()); + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbName(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcServiceRegister Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcServiceRegisterPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcServiceRegisterPeer(); + } + + return self::$peer; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->name = null; + $this->ip = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcServiceRegisterPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcServiceRegisterPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcServiceRegisterPeer.php index ab7d356341..7fd300190b 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcServiceRegisterPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcServiceRegisterPeer.php @@ -4,728 +4,750 @@ /** * Base static class for performing query and update operations on the 'cc_service_register' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcServiceRegisterPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_service_register'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcServiceRegister'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcServiceRegister'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcServiceRegisterTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 2; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the NAME field */ - const NAME = 'cc_service_register.NAME'; - - /** the column name for the IP field */ - const IP = 'cc_service_register.IP'; - - /** - * An identiy map to hold any loaded instances of CcServiceRegister objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcServiceRegister[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbName', 'DbIp', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbName', 'dbIp', ), - BasePeer::TYPE_COLNAME => array (self::NAME, self::IP, ), - BasePeer::TYPE_RAW_COLNAME => array ('NAME', 'IP', ), - BasePeer::TYPE_FIELDNAME => array ('name', 'ip', ), - BasePeer::TYPE_NUM => array (0, 1, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbName' => 0, 'DbIp' => 1, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbName' => 0, 'dbIp' => 1, ), - BasePeer::TYPE_COLNAME => array (self::NAME => 0, self::IP => 1, ), - BasePeer::TYPE_RAW_COLNAME => array ('NAME' => 0, 'IP' => 1, ), - BasePeer::TYPE_FIELDNAME => array ('name' => 0, 'ip' => 1, ), - BasePeer::TYPE_NUM => array (0, 1, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcServiceRegisterPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcServiceRegisterPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcServiceRegisterPeer::NAME); - $criteria->addSelectColumn(CcServiceRegisterPeer::IP); - } else { - $criteria->addSelectColumn($alias . '.NAME'); - $criteria->addSelectColumn($alias . '.IP'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcServiceRegisterPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcServiceRegisterPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcServiceRegister - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcServiceRegisterPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcServiceRegisterPeer::populateObjects(CcServiceRegisterPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcServiceRegisterPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcServiceRegister $value A CcServiceRegister object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcServiceRegister $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbName(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcServiceRegister object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcServiceRegister) { - $key = (string) $value->getDbName(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcServiceRegister object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcServiceRegister Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_service_register - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (string) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcServiceRegisterPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcServiceRegisterPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcServiceRegisterPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcServiceRegisterPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcServiceRegister object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcServiceRegisterPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcServiceRegisterPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcServiceRegisterPeer::NUM_COLUMNS; - } else { - $cls = CcServiceRegisterPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcServiceRegisterPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcServiceRegisterPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcServiceRegisterPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcServiceRegisterTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcServiceRegisterPeer::CLASS_DEFAULT : CcServiceRegisterPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcServiceRegister or Criteria object. - * - * @param mixed $values Criteria or CcServiceRegister object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcServiceRegister object - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcServiceRegister or Criteria object. - * - * @param mixed $values Criteria or CcServiceRegister object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcServiceRegisterPeer::NAME); - $value = $criteria->remove(CcServiceRegisterPeer::NAME); - if ($value) { - $selectCriteria->add(CcServiceRegisterPeer::NAME, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcServiceRegisterPeer::TABLE_NAME); - } - - } else { // $values is CcServiceRegister object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_service_register table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcServiceRegisterPeer::TABLE_NAME, $con, CcServiceRegisterPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcServiceRegisterPeer::clearInstancePool(); - CcServiceRegisterPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcServiceRegister or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcServiceRegister object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcServiceRegisterPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcServiceRegister) { // it's a model object - // invalidate the cache for this single object - CcServiceRegisterPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcServiceRegisterPeer::NAME, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcServiceRegisterPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcServiceRegisterPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcServiceRegister object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcServiceRegister $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcServiceRegister $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcServiceRegisterPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcServiceRegisterPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcServiceRegisterPeer::DATABASE_NAME, CcServiceRegisterPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param string $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcServiceRegister - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcServiceRegisterPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcServiceRegisterPeer::DATABASE_NAME); - $criteria->add(CcServiceRegisterPeer::NAME, $pk); - - $v = CcServiceRegisterPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcServiceRegisterPeer::DATABASE_NAME); - $criteria->add(CcServiceRegisterPeer::NAME, $pks, Criteria::IN); - $objs = CcServiceRegisterPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcServiceRegisterPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_service_register'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcServiceRegister'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcServiceRegisterTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 2; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 2; + + /** the column name for the name field */ + const NAME = 'cc_service_register.name'; + + /** the column name for the ip field */ + const IP = 'cc_service_register.ip'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcServiceRegister objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcServiceRegister[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcServiceRegisterPeer::$fieldNames[CcServiceRegisterPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbName', 'DbIp', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbName', 'dbIp', ), + BasePeer::TYPE_COLNAME => array (CcServiceRegisterPeer::NAME, CcServiceRegisterPeer::IP, ), + BasePeer::TYPE_RAW_COLNAME => array ('NAME', 'IP', ), + BasePeer::TYPE_FIELDNAME => array ('name', 'ip', ), + BasePeer::TYPE_NUM => array (0, 1, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcServiceRegisterPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbName' => 0, 'DbIp' => 1, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbName' => 0, 'dbIp' => 1, ), + BasePeer::TYPE_COLNAME => array (CcServiceRegisterPeer::NAME => 0, CcServiceRegisterPeer::IP => 1, ), + BasePeer::TYPE_RAW_COLNAME => array ('NAME' => 0, 'IP' => 1, ), + BasePeer::TYPE_FIELDNAME => array ('name' => 0, 'ip' => 1, ), + BasePeer::TYPE_NUM => array (0, 1, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcServiceRegisterPeer::getFieldNames($toType); + $key = isset(CcServiceRegisterPeer::$fieldKeys[$fromType][$name]) ? CcServiceRegisterPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcServiceRegisterPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcServiceRegisterPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcServiceRegisterPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcServiceRegisterPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcServiceRegisterPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcServiceRegisterPeer::NAME); + $criteria->addSelectColumn(CcServiceRegisterPeer::IP); + } else { + $criteria->addSelectColumn($alias . '.name'); + $criteria->addSelectColumn($alias . '.ip'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcServiceRegisterPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcServiceRegisterPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcServiceRegisterPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcServiceRegister + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcServiceRegisterPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcServiceRegisterPeer::populateObjects(CcServiceRegisterPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcServiceRegisterPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcServiceRegisterPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcServiceRegister $obj A CcServiceRegister object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbName(); + } // if key === null + CcServiceRegisterPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcServiceRegister object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcServiceRegister) { + $key = (string) $value->getDbName(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcServiceRegister object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcServiceRegisterPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcServiceRegister Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcServiceRegisterPeer::$instances[$key])) { + return CcServiceRegisterPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcServiceRegisterPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcServiceRegisterPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_service_register + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (string) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcServiceRegisterPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcServiceRegisterPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcServiceRegisterPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcServiceRegisterPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcServiceRegister object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcServiceRegisterPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcServiceRegisterPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcServiceRegisterPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcServiceRegisterPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcServiceRegisterPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcServiceRegisterPeer::DATABASE_NAME)->getTable(CcServiceRegisterPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcServiceRegisterPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcServiceRegisterPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcServiceRegisterTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcServiceRegisterPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcServiceRegister or Criteria object. + * + * @param mixed $values Criteria or CcServiceRegister object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcServiceRegister object + } + + + // Set the correct dbName + $criteria->setDbName(CcServiceRegisterPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcServiceRegister or Criteria object. + * + * @param mixed $values Criteria or CcServiceRegister object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcServiceRegisterPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcServiceRegisterPeer::NAME); + $value = $criteria->remove(CcServiceRegisterPeer::NAME); + if ($value) { + $selectCriteria->add(CcServiceRegisterPeer::NAME, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcServiceRegisterPeer::TABLE_NAME); + } + + } else { // $values is CcServiceRegister object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcServiceRegisterPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_service_register table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcServiceRegisterPeer::TABLE_NAME, $con, CcServiceRegisterPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcServiceRegisterPeer::clearInstancePool(); + CcServiceRegisterPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcServiceRegister or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcServiceRegister object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcServiceRegisterPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcServiceRegister) { // it's a model object + // invalidate the cache for this single object + CcServiceRegisterPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcServiceRegisterPeer::DATABASE_NAME); + $criteria->add(CcServiceRegisterPeer::NAME, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcServiceRegisterPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcServiceRegisterPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcServiceRegisterPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcServiceRegister object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcServiceRegister $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcServiceRegisterPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcServiceRegisterPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcServiceRegisterPeer::DATABASE_NAME, CcServiceRegisterPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param string $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcServiceRegister + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcServiceRegisterPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcServiceRegisterPeer::DATABASE_NAME); + $criteria->add(CcServiceRegisterPeer::NAME, $pk); + + $v = CcServiceRegisterPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcServiceRegister[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcServiceRegisterPeer::DATABASE_NAME); + $criteria->add(CcServiceRegisterPeer::NAME, $pks, Criteria::IN); + $objs = CcServiceRegisterPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcServiceRegisterPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcServiceRegisterQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcServiceRegisterQuery.php index a8df529a7c..68f1166c68 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcServiceRegisterQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcServiceRegisterQuery.php @@ -4,193 +4,293 @@ /** * Base class that represents a query for the 'cc_service_register' table. * - * * - * @method CcServiceRegisterQuery orderByDbName($order = Criteria::ASC) Order by the name column - * @method CcServiceRegisterQuery orderByDbIp($order = Criteria::ASC) Order by the ip column * - * @method CcServiceRegisterQuery groupByDbName() Group by the name column - * @method CcServiceRegisterQuery groupByDbIp() Group by the ip column + * @method CcServiceRegisterQuery orderByDbName($order = Criteria::ASC) Order by the name column + * @method CcServiceRegisterQuery orderByDbIp($order = Criteria::ASC) Order by the ip column * - * @method CcServiceRegisterQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcServiceRegisterQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcServiceRegisterQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcServiceRegisterQuery groupByDbName() Group by the name column + * @method CcServiceRegisterQuery groupByDbIp() Group by the ip column * - * @method CcServiceRegister findOne(PropelPDO $con = null) Return the first CcServiceRegister matching the query - * @method CcServiceRegister findOneOrCreate(PropelPDO $con = null) Return the first CcServiceRegister matching the query, or a new CcServiceRegister object populated from the query conditions when no match is found + * @method CcServiceRegisterQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcServiceRegisterQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcServiceRegisterQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcServiceRegister findOneByDbName(string $name) Return the first CcServiceRegister filtered by the name column - * @method CcServiceRegister findOneByDbIp(string $ip) Return the first CcServiceRegister filtered by the ip column + * @method CcServiceRegister findOne(PropelPDO $con = null) Return the first CcServiceRegister matching the query + * @method CcServiceRegister findOneOrCreate(PropelPDO $con = null) Return the first CcServiceRegister matching the query, or a new CcServiceRegister object populated from the query conditions when no match is found * - * @method array findByDbName(string $name) Return CcServiceRegister objects filtered by the name column - * @method array findByDbIp(string $ip) Return CcServiceRegister objects filtered by the ip column + * @method CcServiceRegister findOneByDbIp(string $ip) Return the first CcServiceRegister filtered by the ip column + * + * @method array findByDbName(string $name) Return CcServiceRegister objects filtered by the name column + * @method array findByDbIp(string $ip) Return CcServiceRegister objects filtered by the ip column * * @package propel.generator.airtime.om */ abstract class BaseCcServiceRegisterQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcServiceRegisterQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcServiceRegister'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcServiceRegisterQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcServiceRegisterQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcServiceRegisterQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcServiceRegisterQuery) { + return $criteria; + } + $query = new CcServiceRegisterQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcServiceRegister|CcServiceRegister[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcServiceRegisterPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcServiceRegisterPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcServiceRegister A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbName($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcServiceRegister A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "name", "ip" FROM "cc_service_register" WHERE "name" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_STR); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcServiceRegister(); + $obj->hydrate($row); + CcServiceRegisterPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcServiceRegister|CcServiceRegister[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcServiceRegister[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcServiceRegisterQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcServiceRegisterPeer::NAME, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcServiceRegisterQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcServiceRegisterPeer::NAME, $keys, Criteria::IN); + } + + /** + * Filter the query on the name column + * + * Example usage: + * + * $query->filterByDbName('fooValue'); // WHERE name = 'fooValue' + * $query->filterByDbName('%fooValue%'); // WHERE name LIKE '%fooValue%' + * + * + * @param string $dbName 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 CcServiceRegisterQuery The current query, for fluid interface + */ + public function filterByDbName($dbName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbName)) { + $dbName = str_replace('*', '%', $dbName); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcServiceRegisterPeer::NAME, $dbName, $comparison); + } + + /** + * Filter the query on the ip column + * + * Example usage: + * + * $query->filterByDbIp('fooValue'); // WHERE ip = 'fooValue' + * $query->filterByDbIp('%fooValue%'); // WHERE ip LIKE '%fooValue%' + * + * + * @param string $dbIp 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 CcServiceRegisterQuery The current query, for fluid interface + */ + public function filterByDbIp($dbIp = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbIp)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbIp)) { + $dbIp = str_replace('*', '%', $dbIp); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcServiceRegisterPeer::IP, $dbIp, $comparison); + } + + /** + * Exclude object from result + * + * @param CcServiceRegister $ccServiceRegister Object to remove from the list of results + * + * @return CcServiceRegisterQuery The current query, for fluid interface + */ + public function prune($ccServiceRegister = null) + { + if ($ccServiceRegister) { + $this->addUsingAlias(CcServiceRegisterPeer::NAME, $ccServiceRegister->getDbName(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcServiceRegisterQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcServiceRegister', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcServiceRegisterQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcServiceRegisterQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcServiceRegisterQuery) { - return $criteria; - } - $query = new CcServiceRegisterQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcServiceRegister|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcServiceRegisterPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcServiceRegisterQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcServiceRegisterPeer::NAME, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcServiceRegisterQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcServiceRegisterPeer::NAME, $keys, Criteria::IN); - } - - /** - * Filter the query on the name column - * - * @param string $dbName 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 CcServiceRegisterQuery The current query, for fluid interface - */ - public function filterByDbName($dbName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbName)) { - $dbName = str_replace('*', '%', $dbName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcServiceRegisterPeer::NAME, $dbName, $comparison); - } - - /** - * Filter the query on the ip column - * - * @param string $dbIp 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 CcServiceRegisterQuery The current query, for fluid interface - */ - public function filterByDbIp($dbIp = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbIp)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbIp)) { - $dbIp = str_replace('*', '%', $dbIp); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcServiceRegisterPeer::IP, $dbIp, $comparison); - } - - /** - * Exclude object from result - * - * @param CcServiceRegister $ccServiceRegister Object to remove from the list of results - * - * @return CcServiceRegisterQuery The current query, for fluid interface - */ - public function prune($ccServiceRegister = null) - { - if ($ccServiceRegister) { - $this->addUsingAlias(CcServiceRegisterPeer::NAME, $ccServiceRegister->getDbName(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcServiceRegisterQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcSess.php b/airtime_mvc/application/models/airtime/om/BaseCcSess.php index 8ae2463afa..692f742caa 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcSess.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcSess.php @@ -4,946 +4,1060 @@ /** * Base class that represents a row from the 'cc_sess' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcSess extends BaseObject implements Persistent +abstract class BaseCcSess extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcSessPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcSessPeer - */ - protected static $peer; - - /** - * The value for the sessid field. - * @var string - */ - protected $sessid; - - /** - * The value for the userid field. - * @var int - */ - protected $userid; - - /** - * The value for the login field. - * @var string - */ - protected $login; - - /** - * The value for the ts field. - * @var string - */ - protected $ts; - - /** - * @var CcSubjs - */ - protected $aCcSubjs; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [sessid] column value. - * - * @return string - */ - public function getSessid() - { - return $this->sessid; - } - - /** - * Get the [userid] column value. - * - * @return int - */ - public function getUserid() - { - return $this->userid; - } - - /** - * Get the [login] column value. - * - * @return string - */ - public function getLogin() - { - return $this->login; - } - - /** - * Get the [optionally formatted] temporal [ts] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getTs($format = 'Y-m-d H:i:s') - { - if ($this->ts === null) { - return null; - } - - - - try { - $dt = new DateTime($this->ts); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->ts, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Set the value of [sessid] column. - * - * @param string $v new value - * @return CcSess The current object (for fluent API support) - */ - public function setSessid($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->sessid !== $v) { - $this->sessid = $v; - $this->modifiedColumns[] = CcSessPeer::SESSID; - } - - return $this; - } // setSessid() - - /** - * Set the value of [userid] column. - * - * @param int $v new value - * @return CcSess The current object (for fluent API support) - */ - public function setUserid($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->userid !== $v) { - $this->userid = $v; - $this->modifiedColumns[] = CcSessPeer::USERID; - } - - if ($this->aCcSubjs !== null && $this->aCcSubjs->getDbId() !== $v) { - $this->aCcSubjs = null; - } - - return $this; - } // setUserid() - - /** - * Set the value of [login] column. - * - * @param string $v new value - * @return CcSess The current object (for fluent API support) - */ - public function setLogin($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->login !== $v) { - $this->login = $v; - $this->modifiedColumns[] = CcSessPeer::LOGIN; - } - - return $this; - } // setLogin() - - /** - * Sets the value of [ts] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcSess The current object (for fluent API support) - */ - public function setTs($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->ts !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->ts !== null && $tmpDt = new DateTime($this->ts)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->ts = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcSessPeer::TS; - } - } // if either are not null - - return $this; - } // setTs() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->sessid = ($row[$startcol + 0] !== null) ? (string) $row[$startcol + 0] : null; - $this->userid = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; - $this->login = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->ts = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 4; // 4 = CcSessPeer::NUM_COLUMNS - CcSessPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcSess object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcSubjs !== null && $this->userid !== $this->aCcSubjs->getDbId()) { - $this->aCcSubjs = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcSessPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcSubjs = null; - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcSessQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcSessPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcSubjs !== null) { - if ($this->aCcSubjs->isModified() || $this->aCcSubjs->isNew()) { - $affectedRows += $this->aCcSubjs->save($con); - } - $this->setCcSubjs($this->aCcSubjs); - } - - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setNew(false); - } else { - $affectedRows += CcSessPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcSubjs !== null) { - if (!$this->aCcSubjs->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcSubjs->getValidationFailures()); - } - } - - - if (($retval = CcSessPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcSessPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getSessid(); - break; - case 1: - return $this->getUserid(); - break; - case 2: - return $this->getLogin(); - break; - case 3: - return $this->getTs(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcSessPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getSessid(), - $keys[1] => $this->getUserid(), - $keys[2] => $this->getLogin(), - $keys[3] => $this->getTs(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcSubjs) { - $result['CcSubjs'] = $this->aCcSubjs->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcSessPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setSessid($value); - break; - case 1: - $this->setUserid($value); - break; - case 2: - $this->setLogin($value); - break; - case 3: - $this->setTs($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcSessPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setSessid($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setUserid($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setLogin($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setTs($arr[$keys[3]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcSessPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcSessPeer::SESSID)) $criteria->add(CcSessPeer::SESSID, $this->sessid); - if ($this->isColumnModified(CcSessPeer::USERID)) $criteria->add(CcSessPeer::USERID, $this->userid); - if ($this->isColumnModified(CcSessPeer::LOGIN)) $criteria->add(CcSessPeer::LOGIN, $this->login); - if ($this->isColumnModified(CcSessPeer::TS)) $criteria->add(CcSessPeer::TS, $this->ts); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcSessPeer::DATABASE_NAME); - $criteria->add(CcSessPeer::SESSID, $this->sessid); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return string - */ - public function getPrimaryKey() - { - return $this->getSessid(); - } - - /** - * Generic method to set the primary key (sessid column). - * - * @param string $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setSessid($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getSessid(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcSess (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setSessid($this->sessid); - $copyObj->setUserid($this->userid); - $copyObj->setLogin($this->login); - $copyObj->setTs($this->ts); - - $copyObj->setNew(true); - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcSess Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcSessPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcSessPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcSubjs object. - * - * @param CcSubjs $v - * @return CcSess The current object (for fluent API support) - * @throws PropelException - */ - public function setCcSubjs(CcSubjs $v = null) - { - if ($v === null) { - $this->setUserid(NULL); - } else { - $this->setUserid($v->getDbId()); - } - - $this->aCcSubjs = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcSubjs object, it will not be re-added. - if ($v !== null) { - $v->addCcSess($this); - } - - return $this; - } - - - /** - * Get the associated CcSubjs object - * - * @param PropelPDO Optional Connection object. - * @return CcSubjs The associated CcSubjs object. - * @throws PropelException - */ - public function getCcSubjs(PropelPDO $con = null) - { - if ($this->aCcSubjs === null && ($this->userid !== null)) { - $this->aCcSubjs = CcSubjsQuery::create()->findPk($this->userid, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcSubjs->addCcSesss($this); - */ - } - return $this->aCcSubjs; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->sessid = null; - $this->userid = null; - $this->login = null; - $this->ts = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - $this->aCcSubjs = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcSess + /** + * Peer class name + */ + const PEER = 'CcSessPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcSessPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the sessid field. + * @var string + */ + protected $sessid; + + /** + * The value for the userid field. + * @var int + */ + protected $userid; + + /** + * The value for the login field. + * @var string + */ + protected $login; + + /** + * The value for the ts field. + * @var string + */ + protected $ts; + + /** + * @var CcSubjs + */ + protected $aCcSubjs; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [sessid] column value. + * + * @return string + */ + public function getSessid() + { + + return $this->sessid; + } + + /** + * Get the [userid] column value. + * + * @return int + */ + public function getUserid() + { + + return $this->userid; + } + + /** + * Get the [login] column value. + * + * @return string + */ + public function getLogin() + { + + return $this->login; + } + + /** + * Get the [optionally formatted] temporal [ts] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getTs($format = 'Y-m-d H:i:s') + { + if ($this->ts === null) { + return null; + } + + + try { + $dt = new DateTime($this->ts); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->ts, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Set the value of [sessid] column. + * + * @param string $v new value + * @return CcSess The current object (for fluent API support) + */ + public function setSessid($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->sessid !== $v) { + $this->sessid = $v; + $this->modifiedColumns[] = CcSessPeer::SESSID; + } + + + return $this; + } // setSessid() + + /** + * Set the value of [userid] column. + * + * @param int $v new value + * @return CcSess The current object (for fluent API support) + */ + public function setUserid($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->userid !== $v) { + $this->userid = $v; + $this->modifiedColumns[] = CcSessPeer::USERID; + } + + if ($this->aCcSubjs !== null && $this->aCcSubjs->getDbId() !== $v) { + $this->aCcSubjs = null; + } + + + return $this; + } // setUserid() + + /** + * Set the value of [login] column. + * + * @param string $v new value + * @return CcSess The current object (for fluent API support) + */ + public function setLogin($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->login !== $v) { + $this->login = $v; + $this->modifiedColumns[] = CcSessPeer::LOGIN; + } + + + return $this; + } // setLogin() + + /** + * Sets the value of [ts] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcSess The current object (for fluent API support) + */ + public function setTs($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->ts !== null || $dt !== null) { + $currentDateAsString = ($this->ts !== null && $tmpDt = new DateTime($this->ts)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->ts = $newDateAsString; + $this->modifiedColumns[] = CcSessPeer::TS; + } + } // if either are not null + + + return $this; + } // setTs() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->sessid = ($row[$startcol + 0] !== null) ? (string) $row[$startcol + 0] : null; + $this->userid = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; + $this->login = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->ts = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 4; // 4 = CcSessPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcSess object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcSubjs !== null && $this->userid !== $this->aCcSubjs->getDbId()) { + $this->aCcSubjs = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcSessPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcSubjs = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcSessQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcSessPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcSubjs !== null) { + if ($this->aCcSubjs->isModified() || $this->aCcSubjs->isNew()) { + $affectedRows += $this->aCcSubjs->save($con); + } + $this->setCcSubjs($this->aCcSubjs); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcSessPeer::SESSID)) { + $modifiedColumns[':p' . $index++] = '"sessid"'; + } + if ($this->isColumnModified(CcSessPeer::USERID)) { + $modifiedColumns[':p' . $index++] = '"userid"'; + } + if ($this->isColumnModified(CcSessPeer::LOGIN)) { + $modifiedColumns[':p' . $index++] = '"login"'; + } + if ($this->isColumnModified(CcSessPeer::TS)) { + $modifiedColumns[':p' . $index++] = '"ts"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_sess" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"sessid"': + $stmt->bindValue($identifier, $this->sessid, PDO::PARAM_STR); + break; + case '"userid"': + $stmt->bindValue($identifier, $this->userid, PDO::PARAM_INT); + break; + case '"login"': + $stmt->bindValue($identifier, $this->login, PDO::PARAM_STR); + break; + case '"ts"': + $stmt->bindValue($identifier, $this->ts, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcSubjs !== null) { + if (!$this->aCcSubjs->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcSubjs->getValidationFailures()); + } + } + + + if (($retval = CcSessPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcSessPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getSessid(); + break; + case 1: + return $this->getUserid(); + break; + case 2: + return $this->getLogin(); + break; + case 3: + return $this->getTs(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcSess'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcSess'][$this->getPrimaryKey()] = true; + $keys = CcSessPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getSessid(), + $keys[1] => $this->getUserid(), + $keys[2] => $this->getLogin(), + $keys[3] => $this->getTs(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcSubjs) { + $result['CcSubjs'] = $this->aCcSubjs->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcSessPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setSessid($value); + break; + case 1: + $this->setUserid($value); + break; + case 2: + $this->setLogin($value); + break; + case 3: + $this->setTs($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcSessPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setSessid($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setUserid($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setLogin($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setTs($arr[$keys[3]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcSessPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcSessPeer::SESSID)) $criteria->add(CcSessPeer::SESSID, $this->sessid); + if ($this->isColumnModified(CcSessPeer::USERID)) $criteria->add(CcSessPeer::USERID, $this->userid); + if ($this->isColumnModified(CcSessPeer::LOGIN)) $criteria->add(CcSessPeer::LOGIN, $this->login); + if ($this->isColumnModified(CcSessPeer::TS)) $criteria->add(CcSessPeer::TS, $this->ts); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcSessPeer::DATABASE_NAME); + $criteria->add(CcSessPeer::SESSID, $this->sessid); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return string + */ + public function getPrimaryKey() + { + return $this->getSessid(); + } + + /** + * Generic method to set the primary key (sessid column). + * + * @param string $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setSessid($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getSessid(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcSess (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setUserid($this->getUserid()); + $copyObj->setLogin($this->getLogin()); + $copyObj->setTs($this->getTs()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setSessid(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcSess Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcSessPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcSessPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcSubjs object. + * + * @param CcSubjs $v + * @return CcSess The current object (for fluent API support) + * @throws PropelException + */ + public function setCcSubjs(CcSubjs $v = null) + { + if ($v === null) { + $this->setUserid(NULL); + } else { + $this->setUserid($v->getDbId()); + } + + $this->aCcSubjs = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcSubjs object, it will not be re-added. + if ($v !== null) { + $v->addCcSess($this); + } + + + return $this; + } + + + /** + * Get the associated CcSubjs object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcSubjs The associated CcSubjs object. + * @throws PropelException + */ + public function getCcSubjs(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcSubjs === null && ($this->userid !== null) && $doQuery) { + $this->aCcSubjs = CcSubjsQuery::create()->findPk($this->userid, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcSubjs->addCcSesss($this); + */ + } + + return $this->aCcSubjs; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->sessid = null; + $this->userid = null; + $this->login = null; + $this->ts = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcSubjs instanceof Persistent) { + $this->aCcSubjs->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcSubjs = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcSessPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcSessPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcSessPeer.php index 70eab561a4..219315ed9c 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcSessPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcSessPeer.php @@ -4,972 +4,998 @@ /** * Base static class for performing query and update operations on the 'cc_sess' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcSessPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_sess'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcSess'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcSess'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcSessTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 4; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the SESSID field */ - const SESSID = 'cc_sess.SESSID'; - - /** the column name for the USERID field */ - const USERID = 'cc_sess.USERID'; - - /** the column name for the LOGIN field */ - const LOGIN = 'cc_sess.LOGIN'; - - /** the column name for the TS field */ - const TS = 'cc_sess.TS'; - - /** - * An identiy map to hold any loaded instances of CcSess objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcSess[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('Sessid', 'Userid', 'Login', 'Ts', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('sessid', 'userid', 'login', 'ts', ), - BasePeer::TYPE_COLNAME => array (self::SESSID, self::USERID, self::LOGIN, self::TS, ), - BasePeer::TYPE_RAW_COLNAME => array ('SESSID', 'USERID', 'LOGIN', 'TS', ), - BasePeer::TYPE_FIELDNAME => array ('sessid', 'userid', 'login', 'ts', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('Sessid' => 0, 'Userid' => 1, 'Login' => 2, 'Ts' => 3, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('sessid' => 0, 'userid' => 1, 'login' => 2, 'ts' => 3, ), - BasePeer::TYPE_COLNAME => array (self::SESSID => 0, self::USERID => 1, self::LOGIN => 2, self::TS => 3, ), - BasePeer::TYPE_RAW_COLNAME => array ('SESSID' => 0, 'USERID' => 1, 'LOGIN' => 2, 'TS' => 3, ), - BasePeer::TYPE_FIELDNAME => array ('sessid' => 0, 'userid' => 1, 'login' => 2, 'ts' => 3, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcSessPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcSessPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcSessPeer::SESSID); - $criteria->addSelectColumn(CcSessPeer::USERID); - $criteria->addSelectColumn(CcSessPeer::LOGIN); - $criteria->addSelectColumn(CcSessPeer::TS); - } else { - $criteria->addSelectColumn($alias . '.SESSID'); - $criteria->addSelectColumn($alias . '.USERID'); - $criteria->addSelectColumn($alias . '.LOGIN'); - $criteria->addSelectColumn($alias . '.TS'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSessPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSessPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcSess - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcSessPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcSessPeer::populateObjects(CcSessPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcSessPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcSess $value A CcSess object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcSess $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getSessid(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcSess object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcSess) { - $key = (string) $value->getSessid(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcSess object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcSess Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_sess - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (string) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcSessPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcSessPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcSessPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcSessPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcSess object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcSessPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcSessPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcSessPeer::NUM_COLUMNS; - } else { - $cls = CcSessPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcSessPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcSubjs table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSessPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSessPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcSessPeer::USERID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcSess objects pre-filled with their CcSubjs objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcSess objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcSessPeer::addSelectColumns($criteria); - $startcol = (CcSessPeer::NUM_COLUMNS - CcSessPeer::NUM_LAZY_LOAD_COLUMNS); - CcSubjsPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcSessPeer::USERID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcSessPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcSessPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcSessPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcSessPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcSess) to $obj2 (CcSubjs) - $obj2->addCcSess($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSessPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSessPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcSessPeer::USERID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcSess objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcSess objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcSessPeer::addSelectColumns($criteria); - $startcol2 = (CcSessPeer::NUM_COLUMNS - CcSessPeer::NUM_LAZY_LOAD_COLUMNS); - - CcSubjsPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcSubjsPeer::NUM_COLUMNS - CcSubjsPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcSessPeer::USERID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcSessPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcSessPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcSessPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcSessPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcSubjs rows - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcSess) to the collection in $obj2 (CcSubjs) - $obj2->addCcSess($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcSessPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcSessPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcSessTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcSessPeer::CLASS_DEFAULT : CcSessPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcSess or Criteria object. - * - * @param mixed $values Criteria or CcSess object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcSess object - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcSess or Criteria object. - * - * @param mixed $values Criteria or CcSess object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcSessPeer::SESSID); - $value = $criteria->remove(CcSessPeer::SESSID); - if ($value) { - $selectCriteria->add(CcSessPeer::SESSID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcSessPeer::TABLE_NAME); - } - - } else { // $values is CcSess object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_sess table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcSessPeer::TABLE_NAME, $con, CcSessPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcSessPeer::clearInstancePool(); - CcSessPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcSess or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcSess object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcSessPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcSess) { // it's a model object - // invalidate the cache for this single object - CcSessPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcSessPeer::SESSID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcSessPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcSessPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcSess object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcSess $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcSess $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcSessPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcSessPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcSessPeer::DATABASE_NAME, CcSessPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param string $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcSess - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcSessPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcSessPeer::DATABASE_NAME); - $criteria->add(CcSessPeer::SESSID, $pk); - - $v = CcSessPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcSessPeer::DATABASE_NAME); - $criteria->add(CcSessPeer::SESSID, $pks, Criteria::IN); - $objs = CcSessPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcSessPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_sess'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcSess'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcSessTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 4; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 4; + + /** the column name for the sessid field */ + const SESSID = 'cc_sess.sessid'; + + /** the column name for the userid field */ + const USERID = 'cc_sess.userid'; + + /** the column name for the login field */ + const LOGIN = 'cc_sess.login'; + + /** the column name for the ts field */ + const TS = 'cc_sess.ts'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcSess objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcSess[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcSessPeer::$fieldNames[CcSessPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('Sessid', 'Userid', 'Login', 'Ts', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('sessid', 'userid', 'login', 'ts', ), + BasePeer::TYPE_COLNAME => array (CcSessPeer::SESSID, CcSessPeer::USERID, CcSessPeer::LOGIN, CcSessPeer::TS, ), + BasePeer::TYPE_RAW_COLNAME => array ('SESSID', 'USERID', 'LOGIN', 'TS', ), + BasePeer::TYPE_FIELDNAME => array ('sessid', 'userid', 'login', 'ts', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcSessPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('Sessid' => 0, 'Userid' => 1, 'Login' => 2, 'Ts' => 3, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('sessid' => 0, 'userid' => 1, 'login' => 2, 'ts' => 3, ), + BasePeer::TYPE_COLNAME => array (CcSessPeer::SESSID => 0, CcSessPeer::USERID => 1, CcSessPeer::LOGIN => 2, CcSessPeer::TS => 3, ), + BasePeer::TYPE_RAW_COLNAME => array ('SESSID' => 0, 'USERID' => 1, 'LOGIN' => 2, 'TS' => 3, ), + BasePeer::TYPE_FIELDNAME => array ('sessid' => 0, 'userid' => 1, 'login' => 2, 'ts' => 3, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcSessPeer::getFieldNames($toType); + $key = isset(CcSessPeer::$fieldKeys[$fromType][$name]) ? CcSessPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcSessPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcSessPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcSessPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcSessPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcSessPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcSessPeer::SESSID); + $criteria->addSelectColumn(CcSessPeer::USERID); + $criteria->addSelectColumn(CcSessPeer::LOGIN); + $criteria->addSelectColumn(CcSessPeer::TS); + } else { + $criteria->addSelectColumn($alias . '.sessid'); + $criteria->addSelectColumn($alias . '.userid'); + $criteria->addSelectColumn($alias . '.login'); + $criteria->addSelectColumn($alias . '.ts'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSessPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSessPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcSessPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcSess + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcSessPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcSessPeer::populateObjects(CcSessPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcSessPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcSessPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcSess $obj A CcSess object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getSessid(); + } // if key === null + CcSessPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcSess object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcSess) { + $key = (string) $value->getSessid(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcSess object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcSessPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcSess Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcSessPeer::$instances[$key])) { + return CcSessPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcSessPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcSessPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_sess + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (string) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcSessPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcSessPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcSessPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcSessPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcSess object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcSessPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcSessPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcSessPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcSessPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcSessPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcSubjs table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSessPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSessPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcSessPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcSessPeer::USERID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcSess objects pre-filled with their CcSubjs objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcSess objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcSessPeer::DATABASE_NAME); + } + + CcSessPeer::addSelectColumns($criteria); + $startcol = CcSessPeer::NUM_HYDRATE_COLUMNS; + CcSubjsPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcSessPeer::USERID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcSessPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcSessPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcSessPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcSessPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcSess) to $obj2 (CcSubjs) + $obj2->addCcSess($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSessPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSessPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcSessPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcSessPeer::USERID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcSess objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcSess objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcSessPeer::DATABASE_NAME); + } + + CcSessPeer::addSelectColumns($criteria); + $startcol2 = CcSessPeer::NUM_HYDRATE_COLUMNS; + + CcSubjsPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcSubjsPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcSessPeer::USERID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcSessPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcSessPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcSessPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcSessPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcSubjs rows + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcSess) to the collection in $obj2 (CcSubjs) + $obj2->addCcSess($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcSessPeer::DATABASE_NAME)->getTable(CcSessPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcSessPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcSessPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcSessTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcSessPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcSess or Criteria object. + * + * @param mixed $values Criteria or CcSess object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcSess object + } + + + // Set the correct dbName + $criteria->setDbName(CcSessPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcSess or Criteria object. + * + * @param mixed $values Criteria or CcSess object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcSessPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcSessPeer::SESSID); + $value = $criteria->remove(CcSessPeer::SESSID); + if ($value) { + $selectCriteria->add(CcSessPeer::SESSID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcSessPeer::TABLE_NAME); + } + + } else { // $values is CcSess object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcSessPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_sess table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcSessPeer::TABLE_NAME, $con, CcSessPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcSessPeer::clearInstancePool(); + CcSessPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcSess or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcSess object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcSessPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcSess) { // it's a model object + // invalidate the cache for this single object + CcSessPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcSessPeer::DATABASE_NAME); + $criteria->add(CcSessPeer::SESSID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcSessPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcSessPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcSessPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcSess object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcSess $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcSessPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcSessPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcSessPeer::DATABASE_NAME, CcSessPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param string $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcSess + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcSessPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcSessPeer::DATABASE_NAME); + $criteria->add(CcSessPeer::SESSID, $pk); + + $v = CcSessPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcSess[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcSessPeer::DATABASE_NAME); + $criteria->add(CcSessPeer::SESSID, $pks, Criteria::IN); + $objs = CcSessPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcSessPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcSessQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcSessQuery.php index f0b500f83c..c2397f2867 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcSessQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcSessQuery.php @@ -4,331 +4,468 @@ /** * Base class that represents a query for the 'cc_sess' table. * - * * - * @method CcSessQuery orderBySessid($order = Criteria::ASC) Order by the sessid column - * @method CcSessQuery orderByUserid($order = Criteria::ASC) Order by the userid column - * @method CcSessQuery orderByLogin($order = Criteria::ASC) Order by the login column - * @method CcSessQuery orderByTs($order = Criteria::ASC) Order by the ts column * - * @method CcSessQuery groupBySessid() Group by the sessid column - * @method CcSessQuery groupByUserid() Group by the userid column - * @method CcSessQuery groupByLogin() Group by the login column - * @method CcSessQuery groupByTs() Group by the ts column + * @method CcSessQuery orderBySessid($order = Criteria::ASC) Order by the sessid column + * @method CcSessQuery orderByUserid($order = Criteria::ASC) Order by the userid column + * @method CcSessQuery orderByLogin($order = Criteria::ASC) Order by the login column + * @method CcSessQuery orderByTs($order = Criteria::ASC) Order by the ts column * - * @method CcSessQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcSessQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcSessQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcSessQuery groupBySessid() Group by the sessid column + * @method CcSessQuery groupByUserid() Group by the userid column + * @method CcSessQuery groupByLogin() Group by the login column + * @method CcSessQuery groupByTs() Group by the ts column * - * @method CcSessQuery leftJoinCcSubjs($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSubjs relation - * @method CcSessQuery rightJoinCcSubjs($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSubjs relation - * @method CcSessQuery innerJoinCcSubjs($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSubjs relation + * @method CcSessQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcSessQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcSessQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcSess findOne(PropelPDO $con = null) Return the first CcSess matching the query - * @method CcSess findOneOrCreate(PropelPDO $con = null) Return the first CcSess matching the query, or a new CcSess object populated from the query conditions when no match is found + * @method CcSessQuery leftJoinCcSubjs($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSubjs relation + * @method CcSessQuery rightJoinCcSubjs($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSubjs relation + * @method CcSessQuery innerJoinCcSubjs($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSubjs relation * - * @method CcSess findOneBySessid(string $sessid) Return the first CcSess filtered by the sessid column - * @method CcSess findOneByUserid(int $userid) Return the first CcSess filtered by the userid column - * @method CcSess findOneByLogin(string $login) Return the first CcSess filtered by the login column - * @method CcSess findOneByTs(string $ts) Return the first CcSess filtered by the ts column + * @method CcSess findOne(PropelPDO $con = null) Return the first CcSess matching the query + * @method CcSess findOneOrCreate(PropelPDO $con = null) Return the first CcSess matching the query, or a new CcSess object populated from the query conditions when no match is found * - * @method array findBySessid(string $sessid) Return CcSess objects filtered by the sessid column - * @method array findByUserid(int $userid) Return CcSess objects filtered by the userid column - * @method array findByLogin(string $login) Return CcSess objects filtered by the login column - * @method array findByTs(string $ts) Return CcSess objects filtered by the ts column + * @method CcSess findOneByUserid(int $userid) Return the first CcSess filtered by the userid column + * @method CcSess findOneByLogin(string $login) Return the first CcSess filtered by the login column + * @method CcSess findOneByTs(string $ts) Return the first CcSess filtered by the ts column + * + * @method array findBySessid(string $sessid) Return CcSess objects filtered by the sessid column + * @method array findByUserid(int $userid) Return CcSess objects filtered by the userid column + * @method array findByLogin(string $login) Return CcSess objects filtered by the login column + * @method array findByTs(string $ts) Return CcSess objects filtered by the ts column * * @package propel.generator.airtime.om */ abstract class BaseCcSessQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcSessQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcSess'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcSessQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcSessQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcSessQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcSessQuery) { + return $criteria; + } + $query = new CcSessQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcSess|CcSess[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcSessPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcSessPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSess A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneBySessid($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSess A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "sessid", "userid", "login", "ts" FROM "cc_sess" WHERE "sessid" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_STR); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcSess(); + $obj->hydrate($row); + CcSessPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSess|CcSess[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcSess[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcSessQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcSessPeer::SESSID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcSessQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcSessPeer::SESSID, $keys, Criteria::IN); + } + + /** + * Filter the query on the sessid column + * + * Example usage: + * + * $query->filterBySessid('fooValue'); // WHERE sessid = 'fooValue' + * $query->filterBySessid('%fooValue%'); // WHERE sessid LIKE '%fooValue%' + * + * + * @param string $sessid 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 CcSessQuery The current query, for fluid interface + */ + public function filterBySessid($sessid = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($sessid)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $sessid)) { + $sessid = str_replace('*', '%', $sessid); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSessPeer::SESSID, $sessid, $comparison); + } + + /** + * Filter the query on the userid column + * + * Example usage: + * + * $query->filterByUserid(1234); // WHERE userid = 1234 + * $query->filterByUserid(array(12, 34)); // WHERE userid IN (12, 34) + * $query->filterByUserid(array('min' => 12)); // WHERE userid >= 12 + * $query->filterByUserid(array('max' => 12)); // WHERE userid <= 12 + * + * + * @see filterByCcSubjs() + * + * @param mixed $userid The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSessQuery The current query, for fluid interface + */ + public function filterByUserid($userid = null, $comparison = null) + { + if (is_array($userid)) { + $useMinMax = false; + if (isset($userid['min'])) { + $this->addUsingAlias(CcSessPeer::USERID, $userid['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($userid['max'])) { + $this->addUsingAlias(CcSessPeer::USERID, $userid['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSessPeer::USERID, $userid, $comparison); + } + + /** + * Filter the query on the login column + * + * Example usage: + * + * $query->filterByLogin('fooValue'); // WHERE login = 'fooValue' + * $query->filterByLogin('%fooValue%'); // WHERE login LIKE '%fooValue%' + * + * + * @param string $login 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 CcSessQuery The current query, for fluid interface + */ + public function filterByLogin($login = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($login)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $login)) { + $login = str_replace('*', '%', $login); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSessPeer::LOGIN, $login, $comparison); + } + + /** + * Filter the query on the ts column + * + * Example usage: + * + * $query->filterByTs('2011-03-14'); // WHERE ts = '2011-03-14' + * $query->filterByTs('now'); // WHERE ts = '2011-03-14' + * $query->filterByTs(array('max' => 'yesterday')); // WHERE ts < '2011-03-13' + * + * + * @param mixed $ts The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSessQuery The current query, for fluid interface + */ + public function filterByTs($ts = null, $comparison = null) + { + if (is_array($ts)) { + $useMinMax = false; + if (isset($ts['min'])) { + $this->addUsingAlias(CcSessPeer::TS, $ts['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($ts['max'])) { + $this->addUsingAlias(CcSessPeer::TS, $ts['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSessPeer::TS, $ts, $comparison); + } + + /** + * Filter the query by a related CcSubjs object + * + * @param CcSubjs|PropelObjectCollection $ccSubjs The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSessQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcSubjs($ccSubjs, $comparison = null) + { + if ($ccSubjs instanceof CcSubjs) { + return $this + ->addUsingAlias(CcSessPeer::USERID, $ccSubjs->getDbId(), $comparison); + } elseif ($ccSubjs instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcSessPeer::USERID, $ccSubjs->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcSubjs() only accepts arguments of type CcSubjs or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcSubjs relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcSessQuery The current query, for fluid interface + */ + public function joinCcSubjs($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcSubjs'); + + // 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, 'CcSubjs'); + } + + return $this; + } + + /** + * Use the CcSubjs relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query + */ + public function useCcSubjsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcSubjs($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); + } + + /** + * Exclude object from result + * + * @param CcSess $ccSess Object to remove from the list of results + * + * @return CcSessQuery The current query, for fluid interface + */ + public function prune($ccSess = null) + { + if ($ccSess) { + $this->addUsingAlias(CcSessPeer::SESSID, $ccSess->getSessid(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcSessQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcSess', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcSessQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcSessQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcSessQuery) { - return $criteria; - } - $query = new CcSessQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcSess|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcSessPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcSessQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcSessPeer::SESSID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcSessQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcSessPeer::SESSID, $keys, Criteria::IN); - } - - /** - * Filter the query on the sessid column - * - * @param string $sessid 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 CcSessQuery The current query, for fluid interface - */ - public function filterBySessid($sessid = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($sessid)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $sessid)) { - $sessid = str_replace('*', '%', $sessid); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSessPeer::SESSID, $sessid, $comparison); - } - - /** - * Filter the query on the userid column - * - * @param int|array $userid The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSessQuery The current query, for fluid interface - */ - public function filterByUserid($userid = null, $comparison = null) - { - if (is_array($userid)) { - $useMinMax = false; - if (isset($userid['min'])) { - $this->addUsingAlias(CcSessPeer::USERID, $userid['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($userid['max'])) { - $this->addUsingAlias(CcSessPeer::USERID, $userid['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSessPeer::USERID, $userid, $comparison); - } - - /** - * Filter the query on the login column - * - * @param string $login 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 CcSessQuery The current query, for fluid interface - */ - public function filterByLogin($login = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($login)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $login)) { - $login = str_replace('*', '%', $login); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSessPeer::LOGIN, $login, $comparison); - } - - /** - * Filter the query on the ts column - * - * @param string|array $ts The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSessQuery The current query, for fluid interface - */ - public function filterByTs($ts = null, $comparison = null) - { - if (is_array($ts)) { - $useMinMax = false; - if (isset($ts['min'])) { - $this->addUsingAlias(CcSessPeer::TS, $ts['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($ts['max'])) { - $this->addUsingAlias(CcSessPeer::TS, $ts['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSessPeer::TS, $ts, $comparison); - } - - /** - * Filter the query by a related CcSubjs object - * - * @param CcSubjs $ccSubjs the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSessQuery The current query, for fluid interface - */ - public function filterByCcSubjs($ccSubjs, $comparison = null) - { - return $this - ->addUsingAlias(CcSessPeer::USERID, $ccSubjs->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcSubjs relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcSessQuery The current query, for fluid interface - */ - public function joinCcSubjs($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcSubjs'); - - // 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, 'CcSubjs'); - } - - return $this; - } - - /** - * Use the CcSubjs relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query - */ - public function useCcSubjsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcSubjs($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); - } - - /** - * Exclude object from result - * - * @param CcSess $ccSess Object to remove from the list of results - * - * @return CcSessQuery The current query, for fluid interface - */ - public function prune($ccSess = null) - { - if ($ccSess) { - $this->addUsingAlias(CcSessPeer::SESSID, $ccSess->getSessid(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcSessQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShow.php b/airtime_mvc/application/models/airtime/om/BaseCcShow.php index 3cf4dab1f8..172ad31a9e 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShow.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShow.php @@ -4,1963 +4,2779 @@ /** * Base class that represents a row from the 'cc_show' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcShow extends BaseObject implements Persistent +abstract class BaseCcShow extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcShowPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcShowPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the name field. - * Note: this column has a database default value of: '' - * @var string - */ - protected $name; - - /** - * The value for the url field. - * Note: this column has a database default value of: '' - * @var string - */ - protected $url; - - /** - * The value for the genre field. - * Note: this column has a database default value of: '' - * @var string - */ - protected $genre; - - /** - * The value for the description field. - * @var string - */ - protected $description; - - /** - * The value for the color field. - * @var string - */ - protected $color; - - /** - * The value for the background_color field. - * @var string - */ - protected $background_color; - - /** - * The value for the live_stream_using_airtime_auth field. - * Note: this column has a database default value of: false - * @var boolean - */ - protected $live_stream_using_airtime_auth; - - /** - * The value for the live_stream_using_custom_auth field. - * Note: this column has a database default value of: false - * @var boolean - */ - protected $live_stream_using_custom_auth; - - /** - * The value for the live_stream_user field. - * @var string - */ - protected $live_stream_user; - - /** - * The value for the live_stream_pass field. - * @var string - */ - protected $live_stream_pass; - - /** - * The value for the linked field. - * Note: this column has a database default value of: false - * @var boolean - */ - protected $linked; - - /** - * The value for the is_linkable field. - * Note: this column has a database default value of: true - * @var boolean - */ - protected $is_linkable; - - /** - * @var array CcShowInstances[] Collection to store aggregation of CcShowInstances objects. - */ - protected $collCcShowInstancess; - - /** - * @var array CcShowDays[] Collection to store aggregation of CcShowDays objects. - */ - protected $collCcShowDayss; - - /** - * @var array CcShowRebroadcast[] Collection to store aggregation of CcShowRebroadcast objects. - */ - protected $collCcShowRebroadcasts; - - /** - * @var array CcShowHosts[] Collection to store aggregation of CcShowHosts objects. - */ - protected $collCcShowHostss; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - 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->name = ''; - $this->url = ''; - $this->genre = ''; - $this->live_stream_using_airtime_auth = false; - $this->live_stream_using_custom_auth = false; - $this->linked = false; - $this->is_linkable = true; - } - - /** - * Initializes internal state of BaseCcShow object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [name] column value. - * - * @return string - */ - public function getDbName() - { - return $this->name; - } - - /** - * Get the [url] column value. - * - * @return string - */ - public function getDbUrl() - { - return $this->url; - } - - /** - * Get the [genre] column value. - * - * @return string - */ - public function getDbGenre() - { - return $this->genre; - } - - /** - * Get the [description] column value. - * - * @return string - */ - public function getDbDescription() - { - return $this->description; - } - - /** - * Get the [color] column value. - * - * @return string - */ - public function getDbColor() - { - return $this->color; - } - - /** - * Get the [background_color] column value. - * - * @return string - */ - public function getDbBackgroundColor() - { - return $this->background_color; - } - - /** - * Get the [live_stream_using_airtime_auth] column value. - * - * @return boolean - */ - public function getDbLiveStreamUsingAirtimeAuth() - { - return $this->live_stream_using_airtime_auth; - } - - /** - * Get the [live_stream_using_custom_auth] column value. - * - * @return boolean - */ - public function getDbLiveStreamUsingCustomAuth() - { - return $this->live_stream_using_custom_auth; - } - - /** - * Get the [live_stream_user] column value. - * - * @return string - */ - public function getDbLiveStreamUser() - { - return $this->live_stream_user; - } - - /** - * Get the [live_stream_pass] column value. - * - * @return string - */ - public function getDbLiveStreamPass() - { - return $this->live_stream_pass; - } - - /** - * Get the [linked] column value. - * - * @return boolean - */ - public function getDbLinked() - { - return $this->linked; - } - - /** - * Get the [is_linkable] column value. - * - * @return boolean - */ - public function getDbIsLinkable() - { - return $this->is_linkable; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcShow The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcShowPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [name] column. - * - * @param string $v new value - * @return CcShow The current object (for fluent API support) - */ - public function setDbName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->name !== $v || $this->isNew()) { - $this->name = $v; - $this->modifiedColumns[] = CcShowPeer::NAME; - } - - return $this; - } // setDbName() - - /** - * Set the value of [url] column. - * - * @param string $v new value - * @return CcShow The current object (for fluent API support) - */ - public function setDbUrl($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->url !== $v || $this->isNew()) { - $this->url = $v; - $this->modifiedColumns[] = CcShowPeer::URL; - } - - return $this; - } // setDbUrl() - - /** - * Set the value of [genre] column. - * - * @param string $v new value - * @return CcShow The current object (for fluent API support) - */ - public function setDbGenre($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->genre !== $v || $this->isNew()) { - $this->genre = $v; - $this->modifiedColumns[] = CcShowPeer::GENRE; - } - - return $this; - } // setDbGenre() - - /** - * Set the value of [description] column. - * - * @param string $v new value - * @return CcShow The current object (for fluent API support) - */ - public function setDbDescription($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->description !== $v) { - $this->description = $v; - $this->modifiedColumns[] = CcShowPeer::DESCRIPTION; - } - - return $this; - } // setDbDescription() - - /** - * Set the value of [color] column. - * - * @param string $v new value - * @return CcShow The current object (for fluent API support) - */ - public function setDbColor($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->color !== $v) { - $this->color = $v; - $this->modifiedColumns[] = CcShowPeer::COLOR; - } - - return $this; - } // setDbColor() - - /** - * Set the value of [background_color] column. - * - * @param string $v new value - * @return CcShow The current object (for fluent API support) - */ - public function setDbBackgroundColor($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->background_color !== $v) { - $this->background_color = $v; - $this->modifiedColumns[] = CcShowPeer::BACKGROUND_COLOR; - } - - return $this; - } // setDbBackgroundColor() - - /** - * Set the value of [live_stream_using_airtime_auth] column. - * - * @param boolean $v new value - * @return CcShow The current object (for fluent API support) - */ - public function setDbLiveStreamUsingAirtimeAuth($v) - { - if ($v !== null) { - $v = (boolean) $v; - } - - if ($this->live_stream_using_airtime_auth !== $v || $this->isNew()) { - $this->live_stream_using_airtime_auth = $v; - $this->modifiedColumns[] = CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH; - } - - return $this; - } // setDbLiveStreamUsingAirtimeAuth() - - /** - * Set the value of [live_stream_using_custom_auth] column. - * - * @param boolean $v new value - * @return CcShow The current object (for fluent API support) - */ - public function setDbLiveStreamUsingCustomAuth($v) - { - if ($v !== null) { - $v = (boolean) $v; - } - - if ($this->live_stream_using_custom_auth !== $v || $this->isNew()) { - $this->live_stream_using_custom_auth = $v; - $this->modifiedColumns[] = CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH; - } - - return $this; - } // setDbLiveStreamUsingCustomAuth() - - /** - * Set the value of [live_stream_user] column. - * - * @param string $v new value - * @return CcShow The current object (for fluent API support) - */ - public function setDbLiveStreamUser($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->live_stream_user !== $v) { - $this->live_stream_user = $v; - $this->modifiedColumns[] = CcShowPeer::LIVE_STREAM_USER; - } - - return $this; - } // setDbLiveStreamUser() - - /** - * Set the value of [live_stream_pass] column. - * - * @param string $v new value - * @return CcShow The current object (for fluent API support) - */ - public function setDbLiveStreamPass($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->live_stream_pass !== $v) { - $this->live_stream_pass = $v; - $this->modifiedColumns[] = CcShowPeer::LIVE_STREAM_PASS; - } - - return $this; - } // setDbLiveStreamPass() - - /** - * Set the value of [linked] column. - * - * @param boolean $v new value - * @return CcShow The current object (for fluent API support) - */ - public function setDbLinked($v) - { - if ($v !== null) { - $v = (boolean) $v; - } - - if ($this->linked !== $v || $this->isNew()) { - $this->linked = $v; - $this->modifiedColumns[] = CcShowPeer::LINKED; - } - - return $this; - } // setDbLinked() - - /** - * Set the value of [is_linkable] column. - * - * @param boolean $v new value - * @return CcShow The current object (for fluent API support) - */ - public function setDbIsLinkable($v) - { - if ($v !== null) { - $v = (boolean) $v; - } - - if ($this->is_linkable !== $v || $this->isNew()) { - $this->is_linkable = $v; - $this->modifiedColumns[] = CcShowPeer::IS_LINKABLE; - } - - return $this; - } // setDbIsLinkable() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->name !== '') { - return false; - } - - if ($this->url !== '') { - return false; - } - - if ($this->genre !== '') { - return false; - } - - if ($this->live_stream_using_airtime_auth !== false) { - return false; - } - - if ($this->live_stream_using_custom_auth !== false) { - return false; - } - - if ($this->linked !== false) { - return false; - } - - if ($this->is_linkable !== true) { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->url = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->genre = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->description = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; - $this->color = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; - $this->background_color = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; - $this->live_stream_using_airtime_auth = ($row[$startcol + 7] !== null) ? (boolean) $row[$startcol + 7] : null; - $this->live_stream_using_custom_auth = ($row[$startcol + 8] !== null) ? (boolean) $row[$startcol + 8] : null; - $this->live_stream_user = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; - $this->live_stream_pass = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null; - $this->linked = ($row[$startcol + 11] !== null) ? (boolean) $row[$startcol + 11] : null; - $this->is_linkable = ($row[$startcol + 12] !== null) ? (boolean) $row[$startcol + 12] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 13; // 13 = CcShowPeer::NUM_COLUMNS - CcShowPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcShow object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcShowPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->collCcShowInstancess = null; - - $this->collCcShowDayss = null; - - $this->collCcShowRebroadcasts = null; - - $this->collCcShowHostss = null; - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcShowQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcShowPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcShowPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcShowPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows = 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows = CcShowPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - if ($this->collCcShowInstancess !== null) { - foreach ($this->collCcShowInstancess as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcShowDayss !== null) { - foreach ($this->collCcShowDayss as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcShowRebroadcasts !== null) { - foreach ($this->collCcShowRebroadcasts as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcShowHostss !== null) { - foreach ($this->collCcShowHostss as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - if (($retval = CcShowPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - if ($this->collCcShowInstancess !== null) { - foreach ($this->collCcShowInstancess as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcShowDayss !== null) { - foreach ($this->collCcShowDayss as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcShowRebroadcasts !== null) { - foreach ($this->collCcShowRebroadcasts as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcShowHostss !== null) { - foreach ($this->collCcShowHostss as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcShowPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbName(); - break; - case 2: - return $this->getDbUrl(); - break; - case 3: - return $this->getDbGenre(); - break; - case 4: - return $this->getDbDescription(); - break; - case 5: - return $this->getDbColor(); - break; - case 6: - return $this->getDbBackgroundColor(); - break; - case 7: - return $this->getDbLiveStreamUsingAirtimeAuth(); - break; - case 8: - return $this->getDbLiveStreamUsingCustomAuth(); - break; - case 9: - return $this->getDbLiveStreamUser(); - break; - case 10: - return $this->getDbLiveStreamPass(); - break; - case 11: - return $this->getDbLinked(); - break; - case 12: - return $this->getDbIsLinkable(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) - { - $keys = CcShowPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbName(), - $keys[2] => $this->getDbUrl(), - $keys[3] => $this->getDbGenre(), - $keys[4] => $this->getDbDescription(), - $keys[5] => $this->getDbColor(), - $keys[6] => $this->getDbBackgroundColor(), - $keys[7] => $this->getDbLiveStreamUsingAirtimeAuth(), - $keys[8] => $this->getDbLiveStreamUsingCustomAuth(), - $keys[9] => $this->getDbLiveStreamUser(), - $keys[10] => $this->getDbLiveStreamPass(), - $keys[11] => $this->getDbLinked(), - $keys[12] => $this->getDbIsLinkable(), - ); - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcShowPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbName($value); - break; - case 2: - $this->setDbUrl($value); - break; - case 3: - $this->setDbGenre($value); - break; - case 4: - $this->setDbDescription($value); - break; - case 5: - $this->setDbColor($value); - break; - case 6: - $this->setDbBackgroundColor($value); - break; - case 7: - $this->setDbLiveStreamUsingAirtimeAuth($value); - break; - case 8: - $this->setDbLiveStreamUsingCustomAuth($value); - break; - case 9: - $this->setDbLiveStreamUser($value); - break; - case 10: - $this->setDbLiveStreamPass($value); - break; - case 11: - $this->setDbLinked($value); - break; - case 12: - $this->setDbIsLinkable($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcShowPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbUrl($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbGenre($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbDescription($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setDbColor($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setDbBackgroundColor($arr[$keys[6]]); - if (array_key_exists($keys[7], $arr)) $this->setDbLiveStreamUsingAirtimeAuth($arr[$keys[7]]); - if (array_key_exists($keys[8], $arr)) $this->setDbLiveStreamUsingCustomAuth($arr[$keys[8]]); - if (array_key_exists($keys[9], $arr)) $this->setDbLiveStreamUser($arr[$keys[9]]); - if (array_key_exists($keys[10], $arr)) $this->setDbLiveStreamPass($arr[$keys[10]]); - if (array_key_exists($keys[11], $arr)) $this->setDbLinked($arr[$keys[11]]); - if (array_key_exists($keys[12], $arr)) $this->setDbIsLinkable($arr[$keys[12]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcShowPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcShowPeer::ID)) $criteria->add(CcShowPeer::ID, $this->id); - if ($this->isColumnModified(CcShowPeer::NAME)) $criteria->add(CcShowPeer::NAME, $this->name); - if ($this->isColumnModified(CcShowPeer::URL)) $criteria->add(CcShowPeer::URL, $this->url); - if ($this->isColumnModified(CcShowPeer::GENRE)) $criteria->add(CcShowPeer::GENRE, $this->genre); - if ($this->isColumnModified(CcShowPeer::DESCRIPTION)) $criteria->add(CcShowPeer::DESCRIPTION, $this->description); - if ($this->isColumnModified(CcShowPeer::COLOR)) $criteria->add(CcShowPeer::COLOR, $this->color); - if ($this->isColumnModified(CcShowPeer::BACKGROUND_COLOR)) $criteria->add(CcShowPeer::BACKGROUND_COLOR, $this->background_color); - if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH)) $criteria->add(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH, $this->live_stream_using_airtime_auth); - if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH)) $criteria->add(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH, $this->live_stream_using_custom_auth); - if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USER)) $criteria->add(CcShowPeer::LIVE_STREAM_USER, $this->live_stream_user); - if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_PASS)) $criteria->add(CcShowPeer::LIVE_STREAM_PASS, $this->live_stream_pass); - if ($this->isColumnModified(CcShowPeer::LINKED)) $criteria->add(CcShowPeer::LINKED, $this->linked); - if ($this->isColumnModified(CcShowPeer::IS_LINKABLE)) $criteria->add(CcShowPeer::IS_LINKABLE, $this->is_linkable); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcShowPeer::DATABASE_NAME); - $criteria->add(CcShowPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcShow (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbName($this->name); - $copyObj->setDbUrl($this->url); - $copyObj->setDbGenre($this->genre); - $copyObj->setDbDescription($this->description); - $copyObj->setDbColor($this->color); - $copyObj->setDbBackgroundColor($this->background_color); - $copyObj->setDbLiveStreamUsingAirtimeAuth($this->live_stream_using_airtime_auth); - $copyObj->setDbLiveStreamUsingCustomAuth($this->live_stream_using_custom_auth); - $copyObj->setDbLiveStreamUser($this->live_stream_user); - $copyObj->setDbLiveStreamPass($this->live_stream_pass); - $copyObj->setDbLinked($this->linked); - $copyObj->setDbIsLinkable($this->is_linkable); - - if ($deepCopy) { - // important: temporarily setNew(false) because this affects the behavior of - // the getter/setter methods for fkey referrer objects. - $copyObj->setNew(false); - - foreach ($this->getCcShowInstancess() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcShowInstances($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcShowDayss() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcShowDays($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcShowRebroadcasts() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcShowRebroadcast($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcShowHostss() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcShowHosts($relObj->copy($deepCopy)); - } - } - - } // if ($deepCopy) - - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcShow Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcShowPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcShowPeer(); - } - return self::$peer; - } - - /** - * Clears out the collCcShowInstancess 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 addCcShowInstancess() - */ - public function clearCcShowInstancess() - { - $this->collCcShowInstancess = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcShowInstancess collection. - * - * By default this just sets the collCcShowInstancess collection to an empty array (like clearcollCcShowInstancess()); - * 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 initCcShowInstancess() - { - $this->collCcShowInstancess = new PropelObjectCollection(); - $this->collCcShowInstancess->setModel('CcShowInstances'); - } - - /** - * Gets an array of CcShowInstances 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 CcShow 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 CcShowInstances[] List of CcShowInstances objects - * @throws PropelException - */ - public function getCcShowInstancess($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcShowInstancess || null !== $criteria) { - if ($this->isNew() && null === $this->collCcShowInstancess) { - // return empty collection - $this->initCcShowInstancess(); - } else { - $collCcShowInstancess = CcShowInstancesQuery::create(null, $criteria) - ->filterByCcShow($this) - ->find($con); - if (null !== $criteria) { - return $collCcShowInstancess; - } - $this->collCcShowInstancess = $collCcShowInstancess; - } - } - return $this->collCcShowInstancess; - } - - /** - * Returns the number of related CcShowInstances objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcShowInstances objects. - * @throws PropelException - */ - public function countCcShowInstancess(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcShowInstancess || null !== $criteria) { - if ($this->isNew() && null === $this->collCcShowInstancess) { - return 0; - } else { - $query = CcShowInstancesQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcShow($this) - ->count($con); - } - } else { - return count($this->collCcShowInstancess); - } - } - - /** - * Method called to associate a CcShowInstances object to this object - * through the CcShowInstances foreign key attribute. - * - * @param CcShowInstances $l CcShowInstances - * @return void - * @throws PropelException - */ - public function addCcShowInstances(CcShowInstances $l) - { - if ($this->collCcShowInstancess === null) { - $this->initCcShowInstancess(); - } - if (!$this->collCcShowInstancess->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcShowInstancess[]= $l; - $l->setCcShow($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcShow is new, it will return - * an empty collection; or if this CcShow has previously - * been saved, it will retrieve related CcShowInstancess from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcShow. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcShowInstances[] List of CcShowInstances objects - */ - public function getCcShowInstancessJoinCcShowInstancesRelatedByDbOriginalShow($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcShowInstancesQuery::create(null, $criteria); - $query->joinWith('CcShowInstancesRelatedByDbOriginalShow', $join_behavior); - - return $this->getCcShowInstancess($query, $con); - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcShow is new, it will return - * an empty collection; or if this CcShow has previously - * been saved, it will retrieve related CcShowInstancess from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcShow. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcShowInstances[] List of CcShowInstances objects - */ - public function getCcShowInstancessJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcShowInstancesQuery::create(null, $criteria); - $query->joinWith('CcFiles', $join_behavior); - - return $this->getCcShowInstancess($query, $con); - } - - /** - * Clears out the collCcShowDayss 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 addCcShowDayss() - */ - public function clearCcShowDayss() - { - $this->collCcShowDayss = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcShowDayss collection. - * - * By default this just sets the collCcShowDayss collection to an empty array (like clearcollCcShowDayss()); - * 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 initCcShowDayss() - { - $this->collCcShowDayss = new PropelObjectCollection(); - $this->collCcShowDayss->setModel('CcShowDays'); - } - - /** - * Gets an array of CcShowDays 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 CcShow 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 CcShowDays[] List of CcShowDays objects - * @throws PropelException - */ - public function getCcShowDayss($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcShowDayss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcShowDayss) { - // return empty collection - $this->initCcShowDayss(); - } else { - $collCcShowDayss = CcShowDaysQuery::create(null, $criteria) - ->filterByCcShow($this) - ->find($con); - if (null !== $criteria) { - return $collCcShowDayss; - } - $this->collCcShowDayss = $collCcShowDayss; - } - } - return $this->collCcShowDayss; - } - - /** - * Returns the number of related CcShowDays objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcShowDays objects. - * @throws PropelException - */ - public function countCcShowDayss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcShowDayss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcShowDayss) { - return 0; - } else { - $query = CcShowDaysQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcShow($this) - ->count($con); - } - } else { - return count($this->collCcShowDayss); - } - } - - /** - * Method called to associate a CcShowDays object to this object - * through the CcShowDays foreign key attribute. - * - * @param CcShowDays $l CcShowDays - * @return void - * @throws PropelException - */ - public function addCcShowDays(CcShowDays $l) - { - if ($this->collCcShowDayss === null) { - $this->initCcShowDayss(); - } - if (!$this->collCcShowDayss->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcShowDayss[]= $l; - $l->setCcShow($this); - } - } - - /** - * Clears out the collCcShowRebroadcasts 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 addCcShowRebroadcasts() - */ - public function clearCcShowRebroadcasts() - { - $this->collCcShowRebroadcasts = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcShowRebroadcasts collection. - * - * By default this just sets the collCcShowRebroadcasts collection to an empty array (like clearcollCcShowRebroadcasts()); - * 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 initCcShowRebroadcasts() - { - $this->collCcShowRebroadcasts = new PropelObjectCollection(); - $this->collCcShowRebroadcasts->setModel('CcShowRebroadcast'); - } - - /** - * Gets an array of CcShowRebroadcast 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 CcShow 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 CcShowRebroadcast[] List of CcShowRebroadcast objects - * @throws PropelException - */ - public function getCcShowRebroadcasts($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcShowRebroadcasts || null !== $criteria) { - if ($this->isNew() && null === $this->collCcShowRebroadcasts) { - // return empty collection - $this->initCcShowRebroadcasts(); - } else { - $collCcShowRebroadcasts = CcShowRebroadcastQuery::create(null, $criteria) - ->filterByCcShow($this) - ->find($con); - if (null !== $criteria) { - return $collCcShowRebroadcasts; - } - $this->collCcShowRebroadcasts = $collCcShowRebroadcasts; - } - } - return $this->collCcShowRebroadcasts; - } - - /** - * Returns the number of related CcShowRebroadcast objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcShowRebroadcast objects. - * @throws PropelException - */ - public function countCcShowRebroadcasts(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcShowRebroadcasts || null !== $criteria) { - if ($this->isNew() && null === $this->collCcShowRebroadcasts) { - return 0; - } else { - $query = CcShowRebroadcastQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcShow($this) - ->count($con); - } - } else { - return count($this->collCcShowRebroadcasts); - } - } - - /** - * Method called to associate a CcShowRebroadcast object to this object - * through the CcShowRebroadcast foreign key attribute. - * - * @param CcShowRebroadcast $l CcShowRebroadcast - * @return void - * @throws PropelException - */ - public function addCcShowRebroadcast(CcShowRebroadcast $l) - { - if ($this->collCcShowRebroadcasts === null) { - $this->initCcShowRebroadcasts(); - } - if (!$this->collCcShowRebroadcasts->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcShowRebroadcasts[]= $l; - $l->setCcShow($this); - } - } - - /** - * Clears out the collCcShowHostss 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 addCcShowHostss() - */ - public function clearCcShowHostss() - { - $this->collCcShowHostss = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcShowHostss collection. - * - * By default this just sets the collCcShowHostss collection to an empty array (like clearcollCcShowHostss()); - * 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 initCcShowHostss() - { - $this->collCcShowHostss = new PropelObjectCollection(); - $this->collCcShowHostss->setModel('CcShowHosts'); - } - - /** - * Gets an array of CcShowHosts 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 CcShow 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 CcShowHosts[] List of CcShowHosts objects - * @throws PropelException - */ - public function getCcShowHostss($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcShowHostss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcShowHostss) { - // return empty collection - $this->initCcShowHostss(); - } else { - $collCcShowHostss = CcShowHostsQuery::create(null, $criteria) - ->filterByCcShow($this) - ->find($con); - if (null !== $criteria) { - return $collCcShowHostss; - } - $this->collCcShowHostss = $collCcShowHostss; - } - } - return $this->collCcShowHostss; - } - - /** - * Returns the number of related CcShowHosts objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcShowHosts objects. - * @throws PropelException - */ - public function countCcShowHostss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcShowHostss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcShowHostss) { - return 0; - } else { - $query = CcShowHostsQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcShow($this) - ->count($con); - } - } else { - return count($this->collCcShowHostss); - } - } - - /** - * Method called to associate a CcShowHosts object to this object - * through the CcShowHosts foreign key attribute. - * - * @param CcShowHosts $l CcShowHosts - * @return void - * @throws PropelException - */ - public function addCcShowHosts(CcShowHosts $l) - { - if ($this->collCcShowHostss === null) { - $this->initCcShowHostss(); - } - if (!$this->collCcShowHostss->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcShowHostss[]= $l; - $l->setCcShow($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcShow is new, it will return - * an empty collection; or if this CcShow has previously - * been saved, it will retrieve related CcShowHostss from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcShow. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcShowHosts[] List of CcShowHosts objects - */ - public function getCcShowHostssJoinCcSubjs($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcShowHostsQuery::create(null, $criteria); - $query->joinWith('CcSubjs', $join_behavior); - - return $this->getCcShowHostss($query, $con); - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->name = null; - $this->url = null; - $this->genre = null; - $this->description = null; - $this->color = null; - $this->background_color = null; - $this->live_stream_using_airtime_auth = null; - $this->live_stream_using_custom_auth = null; - $this->live_stream_user = null; - $this->live_stream_pass = null; - $this->linked = null; - $this->is_linkable = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - if ($this->collCcShowInstancess) { - foreach ((array) $this->collCcShowInstancess as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcShowDayss) { - foreach ((array) $this->collCcShowDayss as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcShowRebroadcasts) { - foreach ((array) $this->collCcShowRebroadcasts as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcShowHostss) { - foreach ((array) $this->collCcShowHostss as $o) { - $o->clearAllReferences($deep); - } - } - } // if ($deep) - - $this->collCcShowInstancess = null; - $this->collCcShowDayss = null; - $this->collCcShowRebroadcasts = null; - $this->collCcShowHostss = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcShow + /** + * Peer class name + */ + const PEER = 'CcShowPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcShowPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the name field. + * Note: this column has a database default value of: '' + * @var string + */ + protected $name; + + /** + * The value for the url field. + * Note: this column has a database default value of: '' + * @var string + */ + protected $url; + + /** + * The value for the genre field. + * Note: this column has a database default value of: '' + * @var string + */ + protected $genre; + + /** + * The value for the description field. + * @var string + */ + protected $description; + + /** + * The value for the color field. + * @var string + */ + protected $color; + + /** + * The value for the background_color field. + * @var string + */ + protected $background_color; + + /** + * The value for the live_stream_using_airtime_auth field. + * Note: this column has a database default value of: false + * @var boolean + */ + protected $live_stream_using_airtime_auth; + + /** + * The value for the live_stream_using_custom_auth field. + * Note: this column has a database default value of: false + * @var boolean + */ + protected $live_stream_using_custom_auth; + + /** + * The value for the live_stream_user field. + * @var string + */ + protected $live_stream_user; + + /** + * The value for the live_stream_pass field. + * @var string + */ + protected $live_stream_pass; + + /** + * The value for the linked field. + * Note: this column has a database default value of: false + * @var boolean + */ + protected $linked; + + /** + * The value for the is_linkable field. + * Note: this column has a database default value of: true + * @var boolean + */ + protected $is_linkable; + + /** + * @var PropelObjectCollection|CcShowInstances[] Collection to store aggregation of CcShowInstances objects. + */ + protected $collCcShowInstancess; + protected $collCcShowInstancessPartial; + + /** + * @var PropelObjectCollection|CcShowDays[] Collection to store aggregation of CcShowDays objects. + */ + protected $collCcShowDayss; + protected $collCcShowDayssPartial; + + /** + * @var PropelObjectCollection|CcShowRebroadcast[] Collection to store aggregation of CcShowRebroadcast objects. + */ + protected $collCcShowRebroadcasts; + protected $collCcShowRebroadcastsPartial; + + /** + * @var PropelObjectCollection|CcShowHosts[] Collection to store aggregation of CcShowHosts objects. + */ + protected $collCcShowHostss; + protected $collCcShowHostssPartial; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccShowInstancessScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccShowDayssScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccShowRebroadcastsScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccShowHostssScheduledForDeletion = null; + + /** + * 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->name = ''; + $this->url = ''; + $this->genre = ''; + $this->live_stream_using_airtime_auth = false; + $this->live_stream_using_custom_auth = false; + $this->linked = false; + $this->is_linkable = true; + } + + /** + * Initializes internal state of BaseCcShow object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [name] column value. + * + * @return string + */ + public function getDbName() + { + + return $this->name; + } + + /** + * Get the [url] column value. + * + * @return string + */ + public function getDbUrl() + { + + return $this->url; + } + + /** + * Get the [genre] column value. + * + * @return string + */ + public function getDbGenre() + { + + return $this->genre; + } + + /** + * Get the [description] column value. + * + * @return string + */ + public function getDbDescription() + { + + return $this->description; + } + + /** + * Get the [color] column value. + * + * @return string + */ + public function getDbColor() + { + + return $this->color; + } + + /** + * Get the [background_color] column value. + * + * @return string + */ + public function getDbBackgroundColor() + { + + return $this->background_color; + } + + /** + * Get the [live_stream_using_airtime_auth] column value. + * + * @return boolean + */ + public function getDbLiveStreamUsingAirtimeAuth() + { + + return $this->live_stream_using_airtime_auth; + } + + /** + * Get the [live_stream_using_custom_auth] column value. + * + * @return boolean + */ + public function getDbLiveStreamUsingCustomAuth() + { + + return $this->live_stream_using_custom_auth; + } + + /** + * Get the [live_stream_user] column value. + * + * @return string + */ + public function getDbLiveStreamUser() + { + + return $this->live_stream_user; + } + + /** + * Get the [live_stream_pass] column value. + * + * @return string + */ + public function getDbLiveStreamPass() + { + + return $this->live_stream_pass; + } + + /** + * Get the [linked] column value. + * + * @return boolean + */ + public function getDbLinked() + { + + return $this->linked; + } + + /** + * Get the [is_linkable] column value. + * + * @return boolean + */ + public function getDbIsLinkable() + { + + return $this->is_linkable; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcShow The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcShowPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [name] column. + * + * @param string $v new value + * @return CcShow The current object (for fluent API support) + */ + public function setDbName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->name !== $v) { + $this->name = $v; + $this->modifiedColumns[] = CcShowPeer::NAME; + } + + + return $this; + } // setDbName() + + /** + * Set the value of [url] column. + * + * @param string $v new value + * @return CcShow The current object (for fluent API support) + */ + public function setDbUrl($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->url !== $v) { + $this->url = $v; + $this->modifiedColumns[] = CcShowPeer::URL; + } + + + return $this; + } // setDbUrl() + + /** + * Set the value of [genre] column. + * + * @param string $v new value + * @return CcShow The current object (for fluent API support) + */ + public function setDbGenre($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->genre !== $v) { + $this->genre = $v; + $this->modifiedColumns[] = CcShowPeer::GENRE; + } + + + return $this; + } // setDbGenre() + + /** + * Set the value of [description] column. + * + * @param string $v new value + * @return CcShow The current object (for fluent API support) + */ + public function setDbDescription($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->description !== $v) { + $this->description = $v; + $this->modifiedColumns[] = CcShowPeer::DESCRIPTION; + } + + + return $this; + } // setDbDescription() + + /** + * Set the value of [color] column. + * + * @param string $v new value + * @return CcShow The current object (for fluent API support) + */ + public function setDbColor($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->color !== $v) { + $this->color = $v; + $this->modifiedColumns[] = CcShowPeer::COLOR; + } + + + return $this; + } // setDbColor() + + /** + * Set the value of [background_color] column. + * + * @param string $v new value + * @return CcShow The current object (for fluent API support) + */ + public function setDbBackgroundColor($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->background_color !== $v) { + $this->background_color = $v; + $this->modifiedColumns[] = CcShowPeer::BACKGROUND_COLOR; + } + + + return $this; + } // setDbBackgroundColor() + + /** + * Sets the value of the [live_stream_using_airtime_auth] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return CcShow The current object (for fluent API support) + */ + public function setDbLiveStreamUsingAirtimeAuth($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->live_stream_using_airtime_auth !== $v) { + $this->live_stream_using_airtime_auth = $v; + $this->modifiedColumns[] = CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH; + } + + + return $this; + } // setDbLiveStreamUsingAirtimeAuth() + + /** + * Sets the value of the [live_stream_using_custom_auth] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return CcShow The current object (for fluent API support) + */ + public function setDbLiveStreamUsingCustomAuth($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->live_stream_using_custom_auth !== $v) { + $this->live_stream_using_custom_auth = $v; + $this->modifiedColumns[] = CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH; + } + + + return $this; + } // setDbLiveStreamUsingCustomAuth() + + /** + * Set the value of [live_stream_user] column. + * + * @param string $v new value + * @return CcShow The current object (for fluent API support) + */ + public function setDbLiveStreamUser($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->live_stream_user !== $v) { + $this->live_stream_user = $v; + $this->modifiedColumns[] = CcShowPeer::LIVE_STREAM_USER; + } + + + return $this; + } // setDbLiveStreamUser() + + /** + * Set the value of [live_stream_pass] column. + * + * @param string $v new value + * @return CcShow The current object (for fluent API support) + */ + public function setDbLiveStreamPass($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->live_stream_pass !== $v) { + $this->live_stream_pass = $v; + $this->modifiedColumns[] = CcShowPeer::LIVE_STREAM_PASS; + } + + + return $this; + } // setDbLiveStreamPass() + + /** + * Sets the value of the [linked] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return CcShow The current object (for fluent API support) + */ + public function setDbLinked($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->linked !== $v) { + $this->linked = $v; + $this->modifiedColumns[] = CcShowPeer::LINKED; + } + + + return $this; + } // setDbLinked() + + /** + * Sets the value of the [is_linkable] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return CcShow The current object (for fluent API support) + */ + public function setDbIsLinkable($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->is_linkable !== $v) { + $this->is_linkable = $v; + $this->modifiedColumns[] = CcShowPeer::IS_LINKABLE; + } + + + return $this; + } // setDbIsLinkable() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->name !== '') { + return false; + } + + if ($this->url !== '') { + return false; + } + + if ($this->genre !== '') { + return false; + } + + if ($this->live_stream_using_airtime_auth !== false) { + return false; + } + + if ($this->live_stream_using_custom_auth !== false) { + return false; + } + + if ($this->linked !== false) { + return false; + } + + if ($this->is_linkable !== true) { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->url = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->genre = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->description = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; + $this->color = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; + $this->background_color = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; + $this->live_stream_using_airtime_auth = ($row[$startcol + 7] !== null) ? (boolean) $row[$startcol + 7] : null; + $this->live_stream_using_custom_auth = ($row[$startcol + 8] !== null) ? (boolean) $row[$startcol + 8] : null; + $this->live_stream_user = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; + $this->live_stream_pass = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null; + $this->linked = ($row[$startcol + 11] !== null) ? (boolean) $row[$startcol + 11] : null; + $this->is_linkable = ($row[$startcol + 12] !== null) ? (boolean) $row[$startcol + 12] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 13; // 13 = CcShowPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcShow object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcShowPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->collCcShowInstancess = null; + + $this->collCcShowDayss = null; + + $this->collCcShowRebroadcasts = null; + + $this->collCcShowHostss = null; + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcShowQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcShowPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + if ($this->ccShowInstancessScheduledForDeletion !== null) { + if (!$this->ccShowInstancessScheduledForDeletion->isEmpty()) { + CcShowInstancesQuery::create() + ->filterByPrimaryKeys($this->ccShowInstancessScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccShowInstancessScheduledForDeletion = null; + } + } + + if ($this->collCcShowInstancess !== null) { + foreach ($this->collCcShowInstancess as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccShowDayssScheduledForDeletion !== null) { + if (!$this->ccShowDayssScheduledForDeletion->isEmpty()) { + CcShowDaysQuery::create() + ->filterByPrimaryKeys($this->ccShowDayssScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccShowDayssScheduledForDeletion = null; + } + } + + if ($this->collCcShowDayss !== null) { + foreach ($this->collCcShowDayss as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccShowRebroadcastsScheduledForDeletion !== null) { + if (!$this->ccShowRebroadcastsScheduledForDeletion->isEmpty()) { + CcShowRebroadcastQuery::create() + ->filterByPrimaryKeys($this->ccShowRebroadcastsScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccShowRebroadcastsScheduledForDeletion = null; + } + } + + if ($this->collCcShowRebroadcasts !== null) { + foreach ($this->collCcShowRebroadcasts as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccShowHostssScheduledForDeletion !== null) { + if (!$this->ccShowHostssScheduledForDeletion->isEmpty()) { + CcShowHostsQuery::create() + ->filterByPrimaryKeys($this->ccShowHostssScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccShowHostssScheduledForDeletion = null; + } + } + + if ($this->collCcShowHostss !== null) { + foreach ($this->collCcShowHostss as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcShowPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcShowPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_show_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcShowPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcShowPeer::NAME)) { + $modifiedColumns[':p' . $index++] = '"name"'; + } + if ($this->isColumnModified(CcShowPeer::URL)) { + $modifiedColumns[':p' . $index++] = '"url"'; + } + if ($this->isColumnModified(CcShowPeer::GENRE)) { + $modifiedColumns[':p' . $index++] = '"genre"'; + } + if ($this->isColumnModified(CcShowPeer::DESCRIPTION)) { + $modifiedColumns[':p' . $index++] = '"description"'; + } + if ($this->isColumnModified(CcShowPeer::COLOR)) { + $modifiedColumns[':p' . $index++] = '"color"'; + } + if ($this->isColumnModified(CcShowPeer::BACKGROUND_COLOR)) { + $modifiedColumns[':p' . $index++] = '"background_color"'; + } + if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH)) { + $modifiedColumns[':p' . $index++] = '"live_stream_using_airtime_auth"'; + } + if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH)) { + $modifiedColumns[':p' . $index++] = '"live_stream_using_custom_auth"'; + } + if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USER)) { + $modifiedColumns[':p' . $index++] = '"live_stream_user"'; + } + if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_PASS)) { + $modifiedColumns[':p' . $index++] = '"live_stream_pass"'; + } + if ($this->isColumnModified(CcShowPeer::LINKED)) { + $modifiedColumns[':p' . $index++] = '"linked"'; + } + if ($this->isColumnModified(CcShowPeer::IS_LINKABLE)) { + $modifiedColumns[':p' . $index++] = '"is_linkable"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_show" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"name"': + $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); + break; + case '"url"': + $stmt->bindValue($identifier, $this->url, PDO::PARAM_STR); + break; + case '"genre"': + $stmt->bindValue($identifier, $this->genre, PDO::PARAM_STR); + break; + case '"description"': + $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); + break; + case '"color"': + $stmt->bindValue($identifier, $this->color, PDO::PARAM_STR); + break; + case '"background_color"': + $stmt->bindValue($identifier, $this->background_color, PDO::PARAM_STR); + break; + case '"live_stream_using_airtime_auth"': + $stmt->bindValue($identifier, $this->live_stream_using_airtime_auth, PDO::PARAM_BOOL); + break; + case '"live_stream_using_custom_auth"': + $stmt->bindValue($identifier, $this->live_stream_using_custom_auth, PDO::PARAM_BOOL); + break; + case '"live_stream_user"': + $stmt->bindValue($identifier, $this->live_stream_user, PDO::PARAM_STR); + break; + case '"live_stream_pass"': + $stmt->bindValue($identifier, $this->live_stream_pass, PDO::PARAM_STR); + break; + case '"linked"': + $stmt->bindValue($identifier, $this->linked, PDO::PARAM_BOOL); + break; + case '"is_linkable"': + $stmt->bindValue($identifier, $this->is_linkable, PDO::PARAM_BOOL); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + if (($retval = CcShowPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + if ($this->collCcShowInstancess !== null) { + foreach ($this->collCcShowInstancess as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcShowDayss !== null) { + foreach ($this->collCcShowDayss as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcShowRebroadcasts !== null) { + foreach ($this->collCcShowRebroadcasts as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcShowHostss !== null) { + foreach ($this->collCcShowHostss as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcShowPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbName(); + break; + case 2: + return $this->getDbUrl(); + break; + case 3: + return $this->getDbGenre(); + break; + case 4: + return $this->getDbDescription(); + break; + case 5: + return $this->getDbColor(); + break; + case 6: + return $this->getDbBackgroundColor(); + break; + case 7: + return $this->getDbLiveStreamUsingAirtimeAuth(); + break; + case 8: + return $this->getDbLiveStreamUsingCustomAuth(); + break; + case 9: + return $this->getDbLiveStreamUser(); + break; + case 10: + return $this->getDbLiveStreamPass(); + break; + case 11: + return $this->getDbLinked(); + break; + case 12: + return $this->getDbIsLinkable(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcShow'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcShow'][$this->getPrimaryKey()] = true; + $keys = CcShowPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbName(), + $keys[2] => $this->getDbUrl(), + $keys[3] => $this->getDbGenre(), + $keys[4] => $this->getDbDescription(), + $keys[5] => $this->getDbColor(), + $keys[6] => $this->getDbBackgroundColor(), + $keys[7] => $this->getDbLiveStreamUsingAirtimeAuth(), + $keys[8] => $this->getDbLiveStreamUsingCustomAuth(), + $keys[9] => $this->getDbLiveStreamUser(), + $keys[10] => $this->getDbLiveStreamPass(), + $keys[11] => $this->getDbLinked(), + $keys[12] => $this->getDbIsLinkable(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->collCcShowInstancess) { + $result['CcShowInstancess'] = $this->collCcShowInstancess->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcShowDayss) { + $result['CcShowDayss'] = $this->collCcShowDayss->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcShowRebroadcasts) { + $result['CcShowRebroadcasts'] = $this->collCcShowRebroadcasts->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcShowHostss) { + $result['CcShowHostss'] = $this->collCcShowHostss->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcShowPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbName($value); + break; + case 2: + $this->setDbUrl($value); + break; + case 3: + $this->setDbGenre($value); + break; + case 4: + $this->setDbDescription($value); + break; + case 5: + $this->setDbColor($value); + break; + case 6: + $this->setDbBackgroundColor($value); + break; + case 7: + $this->setDbLiveStreamUsingAirtimeAuth($value); + break; + case 8: + $this->setDbLiveStreamUsingCustomAuth($value); + break; + case 9: + $this->setDbLiveStreamUser($value); + break; + case 10: + $this->setDbLiveStreamPass($value); + break; + case 11: + $this->setDbLinked($value); + break; + case 12: + $this->setDbIsLinkable($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcShowPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbUrl($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbGenre($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbDescription($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDbColor($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setDbBackgroundColor($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setDbLiveStreamUsingAirtimeAuth($arr[$keys[7]]); + if (array_key_exists($keys[8], $arr)) $this->setDbLiveStreamUsingCustomAuth($arr[$keys[8]]); + if (array_key_exists($keys[9], $arr)) $this->setDbLiveStreamUser($arr[$keys[9]]); + if (array_key_exists($keys[10], $arr)) $this->setDbLiveStreamPass($arr[$keys[10]]); + if (array_key_exists($keys[11], $arr)) $this->setDbLinked($arr[$keys[11]]); + if (array_key_exists($keys[12], $arr)) $this->setDbIsLinkable($arr[$keys[12]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcShowPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcShowPeer::ID)) $criteria->add(CcShowPeer::ID, $this->id); + if ($this->isColumnModified(CcShowPeer::NAME)) $criteria->add(CcShowPeer::NAME, $this->name); + if ($this->isColumnModified(CcShowPeer::URL)) $criteria->add(CcShowPeer::URL, $this->url); + if ($this->isColumnModified(CcShowPeer::GENRE)) $criteria->add(CcShowPeer::GENRE, $this->genre); + if ($this->isColumnModified(CcShowPeer::DESCRIPTION)) $criteria->add(CcShowPeer::DESCRIPTION, $this->description); + if ($this->isColumnModified(CcShowPeer::COLOR)) $criteria->add(CcShowPeer::COLOR, $this->color); + if ($this->isColumnModified(CcShowPeer::BACKGROUND_COLOR)) $criteria->add(CcShowPeer::BACKGROUND_COLOR, $this->background_color); + if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH)) $criteria->add(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH, $this->live_stream_using_airtime_auth); + if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH)) $criteria->add(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH, $this->live_stream_using_custom_auth); + if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USER)) $criteria->add(CcShowPeer::LIVE_STREAM_USER, $this->live_stream_user); + if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_PASS)) $criteria->add(CcShowPeer::LIVE_STREAM_PASS, $this->live_stream_pass); + if ($this->isColumnModified(CcShowPeer::LINKED)) $criteria->add(CcShowPeer::LINKED, $this->linked); + if ($this->isColumnModified(CcShowPeer::IS_LINKABLE)) $criteria->add(CcShowPeer::IS_LINKABLE, $this->is_linkable); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcShowPeer::DATABASE_NAME); + $criteria->add(CcShowPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcShow (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbName($this->getDbName()); + $copyObj->setDbUrl($this->getDbUrl()); + $copyObj->setDbGenre($this->getDbGenre()); + $copyObj->setDbDescription($this->getDbDescription()); + $copyObj->setDbColor($this->getDbColor()); + $copyObj->setDbBackgroundColor($this->getDbBackgroundColor()); + $copyObj->setDbLiveStreamUsingAirtimeAuth($this->getDbLiveStreamUsingAirtimeAuth()); + $copyObj->setDbLiveStreamUsingCustomAuth($this->getDbLiveStreamUsingCustomAuth()); + $copyObj->setDbLiveStreamUser($this->getDbLiveStreamUser()); + $copyObj->setDbLiveStreamPass($this->getDbLiveStreamPass()); + $copyObj->setDbLinked($this->getDbLinked()); + $copyObj->setDbIsLinkable($this->getDbIsLinkable()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + foreach ($this->getCcShowInstancess() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcShowInstances($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcShowDayss() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcShowDays($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcShowRebroadcasts() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcShowRebroadcast($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcShowHostss() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcShowHosts($relObj->copy($deepCopy)); + } + } + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcShow Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcShowPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcShowPeer(); + } + + return self::$peer; + } + + + /** + * Initializes a collection based on the name of a relation. + * Avoids crafting an 'init[$relationName]s' method name + * that wouldn't work when StandardEnglishPluralizer is used. + * + * @param string $relationName The name of the relation to initialize + * @return void + */ + public function initRelation($relationName) + { + if ('CcShowInstances' == $relationName) { + $this->initCcShowInstancess(); + } + if ('CcShowDays' == $relationName) { + $this->initCcShowDayss(); + } + if ('CcShowRebroadcast' == $relationName) { + $this->initCcShowRebroadcasts(); + } + if ('CcShowHosts' == $relationName) { + $this->initCcShowHostss(); + } + } + + /** + * Clears out the collCcShowInstancess 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 CcShow The current object (for fluent API support) + * @see addCcShowInstancess() + */ + public function clearCcShowInstancess() + { + $this->collCcShowInstancess = null; // important to set this to null since that means it is uninitialized + $this->collCcShowInstancessPartial = null; + + return $this; + } + + /** + * reset is the collCcShowInstancess collection loaded partially + * + * @return void + */ + public function resetPartialCcShowInstancess($v = true) + { + $this->collCcShowInstancessPartial = $v; + } + + /** + * Initializes the collCcShowInstancess collection. + * + * By default this just sets the collCcShowInstancess collection to an empty array (like clearcollCcShowInstancess()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcShowInstancess($overrideExisting = true) + { + if (null !== $this->collCcShowInstancess && !$overrideExisting) { + return; + } + $this->collCcShowInstancess = new PropelObjectCollection(); + $this->collCcShowInstancess->setModel('CcShowInstances'); + } + + /** + * Gets an array of CcShowInstances 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 CcShow 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 PropelObjectCollection|CcShowInstances[] List of CcShowInstances objects + * @throws PropelException + */ + public function getCcShowInstancess($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcShowInstancessPartial && !$this->isNew(); + if (null === $this->collCcShowInstancess || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcShowInstancess) { + // return empty collection + $this->initCcShowInstancess(); + } else { + $collCcShowInstancess = CcShowInstancesQuery::create(null, $criteria) + ->filterByCcShow($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcShowInstancessPartial && count($collCcShowInstancess)) { + $this->initCcShowInstancess(false); + + foreach ($collCcShowInstancess as $obj) { + if (false == $this->collCcShowInstancess->contains($obj)) { + $this->collCcShowInstancess->append($obj); + } + } + + $this->collCcShowInstancessPartial = true; + } + + $collCcShowInstancess->getInternalIterator()->rewind(); + + return $collCcShowInstancess; + } + + if ($partial && $this->collCcShowInstancess) { + foreach ($this->collCcShowInstancess as $obj) { + if ($obj->isNew()) { + $collCcShowInstancess[] = $obj; + } + } + } + + $this->collCcShowInstancess = $collCcShowInstancess; + $this->collCcShowInstancessPartial = false; + } + } + + return $this->collCcShowInstancess; + } + + /** + * Sets a collection of CcShowInstances objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccShowInstancess A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcShow The current object (for fluent API support) + */ + public function setCcShowInstancess(PropelCollection $ccShowInstancess, PropelPDO $con = null) + { + $ccShowInstancessToDelete = $this->getCcShowInstancess(new Criteria(), $con)->diff($ccShowInstancess); + + + $this->ccShowInstancessScheduledForDeletion = $ccShowInstancessToDelete; + + foreach ($ccShowInstancessToDelete as $ccShowInstancesRemoved) { + $ccShowInstancesRemoved->setCcShow(null); + } + + $this->collCcShowInstancess = null; + foreach ($ccShowInstancess as $ccShowInstances) { + $this->addCcShowInstances($ccShowInstances); + } + + $this->collCcShowInstancess = $ccShowInstancess; + $this->collCcShowInstancessPartial = false; + + return $this; + } + + /** + * Returns the number of related CcShowInstances objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcShowInstances objects. + * @throws PropelException + */ + public function countCcShowInstancess(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcShowInstancessPartial && !$this->isNew(); + if (null === $this->collCcShowInstancess || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcShowInstancess) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcShowInstancess()); + } + $query = CcShowInstancesQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcShow($this) + ->count($con); + } + + return count($this->collCcShowInstancess); + } + + /** + * Method called to associate a CcShowInstances object to this object + * through the CcShowInstances foreign key attribute. + * + * @param CcShowInstances $l CcShowInstances + * @return CcShow The current object (for fluent API support) + */ + public function addCcShowInstances(CcShowInstances $l) + { + if ($this->collCcShowInstancess === null) { + $this->initCcShowInstancess(); + $this->collCcShowInstancessPartial = true; + } + + if (!in_array($l, $this->collCcShowInstancess->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcShowInstances($l); + + if ($this->ccShowInstancessScheduledForDeletion and $this->ccShowInstancessScheduledForDeletion->contains($l)) { + $this->ccShowInstancessScheduledForDeletion->remove($this->ccShowInstancessScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcShowInstances $ccShowInstances The ccShowInstances object to add. + */ + protected function doAddCcShowInstances($ccShowInstances) + { + $this->collCcShowInstancess[]= $ccShowInstances; + $ccShowInstances->setCcShow($this); + } + + /** + * @param CcShowInstances $ccShowInstances The ccShowInstances object to remove. + * @return CcShow The current object (for fluent API support) + */ + public function removeCcShowInstances($ccShowInstances) + { + if ($this->getCcShowInstancess()->contains($ccShowInstances)) { + $this->collCcShowInstancess->remove($this->collCcShowInstancess->search($ccShowInstances)); + if (null === $this->ccShowInstancessScheduledForDeletion) { + $this->ccShowInstancessScheduledForDeletion = clone $this->collCcShowInstancess; + $this->ccShowInstancessScheduledForDeletion->clear(); + } + $this->ccShowInstancessScheduledForDeletion[]= clone $ccShowInstances; + $ccShowInstances->setCcShow(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcShow is new, it will return + * an empty collection; or if this CcShow has previously + * been saved, it will retrieve related CcShowInstancess from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcShow. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcShowInstances[] List of CcShowInstances objects + */ + public function getCcShowInstancessJoinCcShowInstancesRelatedByDbOriginalShow($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcShowInstancesQuery::create(null, $criteria); + $query->joinWith('CcShowInstancesRelatedByDbOriginalShow', $join_behavior); + + return $this->getCcShowInstancess($query, $con); + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcShow is new, it will return + * an empty collection; or if this CcShow has previously + * been saved, it will retrieve related CcShowInstancess from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcShow. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcShowInstances[] List of CcShowInstances objects + */ + public function getCcShowInstancessJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcShowInstancesQuery::create(null, $criteria); + $query->joinWith('CcFiles', $join_behavior); + + return $this->getCcShowInstancess($query, $con); + } + + /** + * Clears out the collCcShowDayss 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 CcShow The current object (for fluent API support) + * @see addCcShowDayss() + */ + public function clearCcShowDayss() + { + $this->collCcShowDayss = null; // important to set this to null since that means it is uninitialized + $this->collCcShowDayssPartial = null; + + return $this; + } + + /** + * reset is the collCcShowDayss collection loaded partially + * + * @return void + */ + public function resetPartialCcShowDayss($v = true) + { + $this->collCcShowDayssPartial = $v; + } + + /** + * Initializes the collCcShowDayss collection. + * + * By default this just sets the collCcShowDayss collection to an empty array (like clearcollCcShowDayss()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcShowDayss($overrideExisting = true) + { + if (null !== $this->collCcShowDayss && !$overrideExisting) { + return; + } + $this->collCcShowDayss = new PropelObjectCollection(); + $this->collCcShowDayss->setModel('CcShowDays'); + } + + /** + * Gets an array of CcShowDays 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 CcShow 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 PropelObjectCollection|CcShowDays[] List of CcShowDays objects + * @throws PropelException + */ + public function getCcShowDayss($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcShowDayssPartial && !$this->isNew(); + if (null === $this->collCcShowDayss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcShowDayss) { + // return empty collection + $this->initCcShowDayss(); + } else { + $collCcShowDayss = CcShowDaysQuery::create(null, $criteria) + ->filterByCcShow($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcShowDayssPartial && count($collCcShowDayss)) { + $this->initCcShowDayss(false); + + foreach ($collCcShowDayss as $obj) { + if (false == $this->collCcShowDayss->contains($obj)) { + $this->collCcShowDayss->append($obj); + } + } + + $this->collCcShowDayssPartial = true; + } + + $collCcShowDayss->getInternalIterator()->rewind(); + + return $collCcShowDayss; + } + + if ($partial && $this->collCcShowDayss) { + foreach ($this->collCcShowDayss as $obj) { + if ($obj->isNew()) { + $collCcShowDayss[] = $obj; + } + } + } + + $this->collCcShowDayss = $collCcShowDayss; + $this->collCcShowDayssPartial = false; + } + } + + return $this->collCcShowDayss; + } + + /** + * Sets a collection of CcShowDays objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccShowDayss A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcShow The current object (for fluent API support) + */ + public function setCcShowDayss(PropelCollection $ccShowDayss, PropelPDO $con = null) + { + $ccShowDayssToDelete = $this->getCcShowDayss(new Criteria(), $con)->diff($ccShowDayss); + + + $this->ccShowDayssScheduledForDeletion = $ccShowDayssToDelete; + + foreach ($ccShowDayssToDelete as $ccShowDaysRemoved) { + $ccShowDaysRemoved->setCcShow(null); + } + + $this->collCcShowDayss = null; + foreach ($ccShowDayss as $ccShowDays) { + $this->addCcShowDays($ccShowDays); + } + + $this->collCcShowDayss = $ccShowDayss; + $this->collCcShowDayssPartial = false; + + return $this; + } + + /** + * Returns the number of related CcShowDays objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcShowDays objects. + * @throws PropelException + */ + public function countCcShowDayss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcShowDayssPartial && !$this->isNew(); + if (null === $this->collCcShowDayss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcShowDayss) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcShowDayss()); + } + $query = CcShowDaysQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcShow($this) + ->count($con); + } + + return count($this->collCcShowDayss); + } + + /** + * Method called to associate a CcShowDays object to this object + * through the CcShowDays foreign key attribute. + * + * @param CcShowDays $l CcShowDays + * @return CcShow The current object (for fluent API support) + */ + public function addCcShowDays(CcShowDays $l) + { + if ($this->collCcShowDayss === null) { + $this->initCcShowDayss(); + $this->collCcShowDayssPartial = true; + } + + if (!in_array($l, $this->collCcShowDayss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcShowDays($l); + + if ($this->ccShowDayssScheduledForDeletion and $this->ccShowDayssScheduledForDeletion->contains($l)) { + $this->ccShowDayssScheduledForDeletion->remove($this->ccShowDayssScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcShowDays $ccShowDays The ccShowDays object to add. + */ + protected function doAddCcShowDays($ccShowDays) + { + $this->collCcShowDayss[]= $ccShowDays; + $ccShowDays->setCcShow($this); + } + + /** + * @param CcShowDays $ccShowDays The ccShowDays object to remove. + * @return CcShow The current object (for fluent API support) + */ + public function removeCcShowDays($ccShowDays) + { + if ($this->getCcShowDayss()->contains($ccShowDays)) { + $this->collCcShowDayss->remove($this->collCcShowDayss->search($ccShowDays)); + if (null === $this->ccShowDayssScheduledForDeletion) { + $this->ccShowDayssScheduledForDeletion = clone $this->collCcShowDayss; + $this->ccShowDayssScheduledForDeletion->clear(); + } + $this->ccShowDayssScheduledForDeletion[]= clone $ccShowDays; + $ccShowDays->setCcShow(null); + } + + return $this; + } + + /** + * Clears out the collCcShowRebroadcasts 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 CcShow The current object (for fluent API support) + * @see addCcShowRebroadcasts() + */ + public function clearCcShowRebroadcasts() + { + $this->collCcShowRebroadcasts = null; // important to set this to null since that means it is uninitialized + $this->collCcShowRebroadcastsPartial = null; + + return $this; + } + + /** + * reset is the collCcShowRebroadcasts collection loaded partially + * + * @return void + */ + public function resetPartialCcShowRebroadcasts($v = true) + { + $this->collCcShowRebroadcastsPartial = $v; + } + + /** + * Initializes the collCcShowRebroadcasts collection. + * + * By default this just sets the collCcShowRebroadcasts collection to an empty array (like clearcollCcShowRebroadcasts()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcShowRebroadcasts($overrideExisting = true) + { + if (null !== $this->collCcShowRebroadcasts && !$overrideExisting) { + return; + } + $this->collCcShowRebroadcasts = new PropelObjectCollection(); + $this->collCcShowRebroadcasts->setModel('CcShowRebroadcast'); + } + + /** + * Gets an array of CcShowRebroadcast 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 CcShow 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 PropelObjectCollection|CcShowRebroadcast[] List of CcShowRebroadcast objects + * @throws PropelException + */ + public function getCcShowRebroadcasts($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcShowRebroadcastsPartial && !$this->isNew(); + if (null === $this->collCcShowRebroadcasts || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcShowRebroadcasts) { + // return empty collection + $this->initCcShowRebroadcasts(); + } else { + $collCcShowRebroadcasts = CcShowRebroadcastQuery::create(null, $criteria) + ->filterByCcShow($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcShowRebroadcastsPartial && count($collCcShowRebroadcasts)) { + $this->initCcShowRebroadcasts(false); + + foreach ($collCcShowRebroadcasts as $obj) { + if (false == $this->collCcShowRebroadcasts->contains($obj)) { + $this->collCcShowRebroadcasts->append($obj); + } + } + + $this->collCcShowRebroadcastsPartial = true; + } + + $collCcShowRebroadcasts->getInternalIterator()->rewind(); + + return $collCcShowRebroadcasts; + } + + if ($partial && $this->collCcShowRebroadcasts) { + foreach ($this->collCcShowRebroadcasts as $obj) { + if ($obj->isNew()) { + $collCcShowRebroadcasts[] = $obj; + } + } + } + + $this->collCcShowRebroadcasts = $collCcShowRebroadcasts; + $this->collCcShowRebroadcastsPartial = false; + } + } + + return $this->collCcShowRebroadcasts; + } + + /** + * Sets a collection of CcShowRebroadcast objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccShowRebroadcasts A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcShow The current object (for fluent API support) + */ + public function setCcShowRebroadcasts(PropelCollection $ccShowRebroadcasts, PropelPDO $con = null) + { + $ccShowRebroadcastsToDelete = $this->getCcShowRebroadcasts(new Criteria(), $con)->diff($ccShowRebroadcasts); + + + $this->ccShowRebroadcastsScheduledForDeletion = $ccShowRebroadcastsToDelete; + + foreach ($ccShowRebroadcastsToDelete as $ccShowRebroadcastRemoved) { + $ccShowRebroadcastRemoved->setCcShow(null); + } + + $this->collCcShowRebroadcasts = null; + foreach ($ccShowRebroadcasts as $ccShowRebroadcast) { + $this->addCcShowRebroadcast($ccShowRebroadcast); + } + + $this->collCcShowRebroadcasts = $ccShowRebroadcasts; + $this->collCcShowRebroadcastsPartial = false; + + return $this; + } + + /** + * Returns the number of related CcShowRebroadcast objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcShowRebroadcast objects. + * @throws PropelException + */ + public function countCcShowRebroadcasts(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcShowRebroadcastsPartial && !$this->isNew(); + if (null === $this->collCcShowRebroadcasts || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcShowRebroadcasts) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcShowRebroadcasts()); + } + $query = CcShowRebroadcastQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcShow($this) + ->count($con); + } + + return count($this->collCcShowRebroadcasts); + } + + /** + * Method called to associate a CcShowRebroadcast object to this object + * through the CcShowRebroadcast foreign key attribute. + * + * @param CcShowRebroadcast $l CcShowRebroadcast + * @return CcShow The current object (for fluent API support) + */ + public function addCcShowRebroadcast(CcShowRebroadcast $l) + { + if ($this->collCcShowRebroadcasts === null) { + $this->initCcShowRebroadcasts(); + $this->collCcShowRebroadcastsPartial = true; + } + + if (!in_array($l, $this->collCcShowRebroadcasts->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcShowRebroadcast($l); + + if ($this->ccShowRebroadcastsScheduledForDeletion and $this->ccShowRebroadcastsScheduledForDeletion->contains($l)) { + $this->ccShowRebroadcastsScheduledForDeletion->remove($this->ccShowRebroadcastsScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcShowRebroadcast $ccShowRebroadcast The ccShowRebroadcast object to add. + */ + protected function doAddCcShowRebroadcast($ccShowRebroadcast) + { + $this->collCcShowRebroadcasts[]= $ccShowRebroadcast; + $ccShowRebroadcast->setCcShow($this); + } + + /** + * @param CcShowRebroadcast $ccShowRebroadcast The ccShowRebroadcast object to remove. + * @return CcShow The current object (for fluent API support) + */ + public function removeCcShowRebroadcast($ccShowRebroadcast) + { + if ($this->getCcShowRebroadcasts()->contains($ccShowRebroadcast)) { + $this->collCcShowRebroadcasts->remove($this->collCcShowRebroadcasts->search($ccShowRebroadcast)); + if (null === $this->ccShowRebroadcastsScheduledForDeletion) { + $this->ccShowRebroadcastsScheduledForDeletion = clone $this->collCcShowRebroadcasts; + $this->ccShowRebroadcastsScheduledForDeletion->clear(); + } + $this->ccShowRebroadcastsScheduledForDeletion[]= clone $ccShowRebroadcast; + $ccShowRebroadcast->setCcShow(null); + } + + return $this; + } + + /** + * Clears out the collCcShowHostss 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 CcShow The current object (for fluent API support) + * @see addCcShowHostss() + */ + public function clearCcShowHostss() + { + $this->collCcShowHostss = null; // important to set this to null since that means it is uninitialized + $this->collCcShowHostssPartial = null; + + return $this; + } + + /** + * reset is the collCcShowHostss collection loaded partially + * + * @return void + */ + public function resetPartialCcShowHostss($v = true) + { + $this->collCcShowHostssPartial = $v; + } + + /** + * Initializes the collCcShowHostss collection. + * + * By default this just sets the collCcShowHostss collection to an empty array (like clearcollCcShowHostss()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcShowHostss($overrideExisting = true) + { + if (null !== $this->collCcShowHostss && !$overrideExisting) { + return; + } + $this->collCcShowHostss = new PropelObjectCollection(); + $this->collCcShowHostss->setModel('CcShowHosts'); + } + + /** + * Gets an array of CcShowHosts 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 CcShow 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 PropelObjectCollection|CcShowHosts[] List of CcShowHosts objects + * @throws PropelException + */ + public function getCcShowHostss($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcShowHostssPartial && !$this->isNew(); + if (null === $this->collCcShowHostss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcShowHostss) { + // return empty collection + $this->initCcShowHostss(); + } else { + $collCcShowHostss = CcShowHostsQuery::create(null, $criteria) + ->filterByCcShow($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcShowHostssPartial && count($collCcShowHostss)) { + $this->initCcShowHostss(false); + + foreach ($collCcShowHostss as $obj) { + if (false == $this->collCcShowHostss->contains($obj)) { + $this->collCcShowHostss->append($obj); + } + } + + $this->collCcShowHostssPartial = true; + } + + $collCcShowHostss->getInternalIterator()->rewind(); + + return $collCcShowHostss; + } + + if ($partial && $this->collCcShowHostss) { + foreach ($this->collCcShowHostss as $obj) { + if ($obj->isNew()) { + $collCcShowHostss[] = $obj; + } + } + } + + $this->collCcShowHostss = $collCcShowHostss; + $this->collCcShowHostssPartial = false; + } + } + + return $this->collCcShowHostss; + } + + /** + * Sets a collection of CcShowHosts objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccShowHostss A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcShow The current object (for fluent API support) + */ + public function setCcShowHostss(PropelCollection $ccShowHostss, PropelPDO $con = null) + { + $ccShowHostssToDelete = $this->getCcShowHostss(new Criteria(), $con)->diff($ccShowHostss); + + + $this->ccShowHostssScheduledForDeletion = $ccShowHostssToDelete; + + foreach ($ccShowHostssToDelete as $ccShowHostsRemoved) { + $ccShowHostsRemoved->setCcShow(null); + } + + $this->collCcShowHostss = null; + foreach ($ccShowHostss as $ccShowHosts) { + $this->addCcShowHosts($ccShowHosts); + } + + $this->collCcShowHostss = $ccShowHostss; + $this->collCcShowHostssPartial = false; + + return $this; + } + + /** + * Returns the number of related CcShowHosts objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcShowHosts objects. + * @throws PropelException + */ + public function countCcShowHostss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcShowHostssPartial && !$this->isNew(); + if (null === $this->collCcShowHostss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcShowHostss) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcShowHostss()); + } + $query = CcShowHostsQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcShow($this) + ->count($con); + } + + return count($this->collCcShowHostss); + } + + /** + * Method called to associate a CcShowHosts object to this object + * through the CcShowHosts foreign key attribute. + * + * @param CcShowHosts $l CcShowHosts + * @return CcShow The current object (for fluent API support) + */ + public function addCcShowHosts(CcShowHosts $l) + { + if ($this->collCcShowHostss === null) { + $this->initCcShowHostss(); + $this->collCcShowHostssPartial = true; + } + + if (!in_array($l, $this->collCcShowHostss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcShowHosts($l); + + if ($this->ccShowHostssScheduledForDeletion and $this->ccShowHostssScheduledForDeletion->contains($l)) { + $this->ccShowHostssScheduledForDeletion->remove($this->ccShowHostssScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcShowHosts $ccShowHosts The ccShowHosts object to add. + */ + protected function doAddCcShowHosts($ccShowHosts) + { + $this->collCcShowHostss[]= $ccShowHosts; + $ccShowHosts->setCcShow($this); + } + + /** + * @param CcShowHosts $ccShowHosts The ccShowHosts object to remove. + * @return CcShow The current object (for fluent API support) + */ + public function removeCcShowHosts($ccShowHosts) + { + if ($this->getCcShowHostss()->contains($ccShowHosts)) { + $this->collCcShowHostss->remove($this->collCcShowHostss->search($ccShowHosts)); + if (null === $this->ccShowHostssScheduledForDeletion) { + $this->ccShowHostssScheduledForDeletion = clone $this->collCcShowHostss; + $this->ccShowHostssScheduledForDeletion->clear(); + } + $this->ccShowHostssScheduledForDeletion[]= clone $ccShowHosts; + $ccShowHosts->setCcShow(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcShow is new, it will return + * an empty collection; or if this CcShow has previously + * been saved, it will retrieve related CcShowHostss from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcShow. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcShowHosts[] List of CcShowHosts objects + */ + public function getCcShowHostssJoinCcSubjs($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcShowHostsQuery::create(null, $criteria); + $query->joinWith('CcSubjs', $join_behavior); + + return $this->getCcShowHostss($query, $con); + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->name = null; + $this->url = null; + $this->genre = null; + $this->description = null; + $this->color = null; + $this->background_color = null; + $this->live_stream_using_airtime_auth = null; + $this->live_stream_using_custom_auth = null; + $this->live_stream_user = null; + $this->live_stream_pass = null; + $this->linked = null; + $this->is_linkable = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->collCcShowInstancess) { + foreach ($this->collCcShowInstancess as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcShowDayss) { + foreach ($this->collCcShowDayss as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcShowRebroadcasts) { + foreach ($this->collCcShowRebroadcasts as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcShowHostss) { + foreach ($this->collCcShowHostss as $o) { + $o->clearAllReferences($deep); + } + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + if ($this->collCcShowInstancess instanceof PropelCollection) { + $this->collCcShowInstancess->clearIterator(); + } + $this->collCcShowInstancess = null; + if ($this->collCcShowDayss instanceof PropelCollection) { + $this->collCcShowDayss->clearIterator(); + } + $this->collCcShowDayss = null; + if ($this->collCcShowRebroadcasts instanceof PropelCollection) { + $this->collCcShowRebroadcasts->clearIterator(); + } + $this->collCcShowRebroadcasts = null; + if ($this->collCcShowHostss instanceof PropelCollection) { + $this->collCcShowHostss->clearIterator(); + } + $this->collCcShowHostss = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcShowPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShowDays.php b/airtime_mvc/application/models/airtime/om/BaseCcShowDays.php index be9f66086d..8a13db98be 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShowDays.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShowDays.php @@ -4,1473 +4,1571 @@ /** * Base class that represents a row from the 'cc_show_days' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcShowDays extends BaseObject implements Persistent +abstract class BaseCcShowDays extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcShowDaysPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcShowDaysPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the first_show field. - * @var string - */ - protected $first_show; - - /** - * The value for the last_show field. - * @var string - */ - protected $last_show; - - /** - * The value for the start_time field. - * @var string - */ - protected $start_time; - - /** - * The value for the timezone field. - * @var string - */ - protected $timezone; - - /** - * The value for the duration field. - * @var string - */ - protected $duration; - - /** - * The value for the day field. - * @var int - */ - protected $day; - - /** - * The value for the repeat_type field. - * @var int - */ - protected $repeat_type; - - /** - * The value for the next_pop_date field. - * @var string - */ - protected $next_pop_date; - - /** - * The value for the show_id field. - * @var int - */ - protected $show_id; - - /** - * The value for the record field. - * Note: this column has a database default value of: 0 - * @var int - */ - protected $record; - - /** - * @var CcShow - */ - protected $aCcShow; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - 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->record = 0; - } - - /** - * Initializes internal state of BaseCcShowDays object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [optionally formatted] temporal [first_show] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbFirstShow($format = '%x') - { - if ($this->first_show === null) { - return null; - } - - - - try { - $dt = new DateTime($this->first_show); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->first_show, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [last_show] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbLastShow($format = '%x') - { - if ($this->last_show === null) { - return null; - } - - - - try { - $dt = new DateTime($this->last_show); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->last_show, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [start_time] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbStartTime($format = '%X') - { - if ($this->start_time === null) { - return null; - } - - - - try { - $dt = new DateTime($this->start_time); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->start_time, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [timezone] column value. - * - * @return string - */ - public function getDbTimezone() - { - return $this->timezone; - } - - /** - * Get the [duration] column value. - * - * @return string - */ - public function getDbDuration() - { - return $this->duration; - } - - /** - * Get the [day] column value. - * - * @return int - */ - public function getDbDay() - { - return $this->day; - } - - /** - * Get the [repeat_type] column value. - * - * @return int - */ - public function getDbRepeatType() - { - return $this->repeat_type; - } - - /** - * Get the [optionally formatted] temporal [next_pop_date] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbNextPopDate($format = '%x') - { - if ($this->next_pop_date === null) { - return null; - } - - - - try { - $dt = new DateTime($this->next_pop_date); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->next_pop_date, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [show_id] column value. - * - * @return int - */ - public function getDbShowId() - { - return $this->show_id; - } - - /** - * Get the [record] column value. - * - * @return int - */ - public function getDbRecord() - { - return $this->record; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcShowDays The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcShowDaysPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Sets the value of [first_show] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcShowDays The current object (for fluent API support) - */ - public function setDbFirstShow($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->first_show !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->first_show !== null && $tmpDt = new DateTime($this->first_show)) ? $tmpDt->format('Y-m-d') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->first_show = ($dt ? $dt->format('Y-m-d') : null); - $this->modifiedColumns[] = CcShowDaysPeer::FIRST_SHOW; - } - } // if either are not null - - return $this; - } // setDbFirstShow() - - /** - * Sets the value of [last_show] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcShowDays The current object (for fluent API support) - */ - public function setDbLastShow($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->last_show !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->last_show !== null && $tmpDt = new DateTime($this->last_show)) ? $tmpDt->format('Y-m-d') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->last_show = ($dt ? $dt->format('Y-m-d') : null); - $this->modifiedColumns[] = CcShowDaysPeer::LAST_SHOW; - } - } // if either are not null - - return $this; - } // setDbLastShow() - - /** - * Sets the value of [start_time] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcShowDays The current object (for fluent API support) - */ - public function setDbStartTime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->start_time !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->start_time !== null && $tmpDt = new DateTime($this->start_time)) ? $tmpDt->format('H:i:s') : null; - $newNorm = ($dt !== null) ? $dt->format('H:i:s') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->start_time = ($dt ? $dt->format('H:i:s') : null); - $this->modifiedColumns[] = CcShowDaysPeer::START_TIME; - } - } // if either are not null - - return $this; - } // setDbStartTime() - - /** - * Set the value of [timezone] column. - * - * @param string $v new value - * @return CcShowDays The current object (for fluent API support) - */ - public function setDbTimezone($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->timezone !== $v) { - $this->timezone = $v; - $this->modifiedColumns[] = CcShowDaysPeer::TIMEZONE; - } - - return $this; - } // setDbTimezone() - - /** - * Set the value of [duration] column. - * - * @param string $v new value - * @return CcShowDays The current object (for fluent API support) - */ - public function setDbDuration($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->duration !== $v) { - $this->duration = $v; - $this->modifiedColumns[] = CcShowDaysPeer::DURATION; - } - - return $this; - } // setDbDuration() - - /** - * Set the value of [day] column. - * - * @param int $v new value - * @return CcShowDays The current object (for fluent API support) - */ - public function setDbDay($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->day !== $v) { - $this->day = $v; - $this->modifiedColumns[] = CcShowDaysPeer::DAY; - } - - return $this; - } // setDbDay() - - /** - * Set the value of [repeat_type] column. - * - * @param int $v new value - * @return CcShowDays The current object (for fluent API support) - */ - public function setDbRepeatType($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->repeat_type !== $v) { - $this->repeat_type = $v; - $this->modifiedColumns[] = CcShowDaysPeer::REPEAT_TYPE; - } - - return $this; - } // setDbRepeatType() - - /** - * Sets the value of [next_pop_date] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcShowDays The current object (for fluent API support) - */ - public function setDbNextPopDate($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->next_pop_date !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->next_pop_date !== null && $tmpDt = new DateTime($this->next_pop_date)) ? $tmpDt->format('Y-m-d') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->next_pop_date = ($dt ? $dt->format('Y-m-d') : null); - $this->modifiedColumns[] = CcShowDaysPeer::NEXT_POP_DATE; - } - } // if either are not null - - return $this; - } // setDbNextPopDate() - - /** - * Set the value of [show_id] column. - * - * @param int $v new value - * @return CcShowDays The current object (for fluent API support) - */ - public function setDbShowId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->show_id !== $v) { - $this->show_id = $v; - $this->modifiedColumns[] = CcShowDaysPeer::SHOW_ID; - } - - if ($this->aCcShow !== null && $this->aCcShow->getDbId() !== $v) { - $this->aCcShow = null; - } - - return $this; - } // setDbShowId() - - /** - * Set the value of [record] column. - * - * @param int $v new value - * @return CcShowDays The current object (for fluent API support) - */ - public function setDbRecord($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->record !== $v || $this->isNew()) { - $this->record = $v; - $this->modifiedColumns[] = CcShowDaysPeer::RECORD; - } - - return $this; - } // setDbRecord() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->record !== 0) { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->first_show = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->last_show = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->start_time = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->timezone = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; - $this->duration = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; - $this->day = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null; - $this->repeat_type = ($row[$startcol + 7] !== null) ? (int) $row[$startcol + 7] : null; - $this->next_pop_date = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; - $this->show_id = ($row[$startcol + 9] !== null) ? (int) $row[$startcol + 9] : null; - $this->record = ($row[$startcol + 10] !== null) ? (int) $row[$startcol + 10] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 11; // 11 = CcShowDaysPeer::NUM_COLUMNS - CcShowDaysPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcShowDays object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcShow !== null && $this->show_id !== $this->aCcShow->getDbId()) { - $this->aCcShow = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcShowDaysPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcShow = null; - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcShowDaysQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcShowDaysPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcShow !== null) { - if ($this->aCcShow->isModified() || $this->aCcShow->isNew()) { - $affectedRows += $this->aCcShow->save($con); - } - $this->setCcShow($this->aCcShow); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcShowDaysPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcShowDaysPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowDaysPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcShowDaysPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcShow !== null) { - if (!$this->aCcShow->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcShow->getValidationFailures()); - } - } - - - if (($retval = CcShowDaysPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcShowDaysPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbFirstShow(); - break; - case 2: - return $this->getDbLastShow(); - break; - case 3: - return $this->getDbStartTime(); - break; - case 4: - return $this->getDbTimezone(); - break; - case 5: - return $this->getDbDuration(); - break; - case 6: - return $this->getDbDay(); - break; - case 7: - return $this->getDbRepeatType(); - break; - case 8: - return $this->getDbNextPopDate(); - break; - case 9: - return $this->getDbShowId(); - break; - case 10: - return $this->getDbRecord(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcShowDaysPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbFirstShow(), - $keys[2] => $this->getDbLastShow(), - $keys[3] => $this->getDbStartTime(), - $keys[4] => $this->getDbTimezone(), - $keys[5] => $this->getDbDuration(), - $keys[6] => $this->getDbDay(), - $keys[7] => $this->getDbRepeatType(), - $keys[8] => $this->getDbNextPopDate(), - $keys[9] => $this->getDbShowId(), - $keys[10] => $this->getDbRecord(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcShow) { - $result['CcShow'] = $this->aCcShow->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcShowDaysPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbFirstShow($value); - break; - case 2: - $this->setDbLastShow($value); - break; - case 3: - $this->setDbStartTime($value); - break; - case 4: - $this->setDbTimezone($value); - break; - case 5: - $this->setDbDuration($value); - break; - case 6: - $this->setDbDay($value); - break; - case 7: - $this->setDbRepeatType($value); - break; - case 8: - $this->setDbNextPopDate($value); - break; - case 9: - $this->setDbShowId($value); - break; - case 10: - $this->setDbRecord($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcShowDaysPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbFirstShow($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbLastShow($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbStartTime($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbTimezone($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setDbDuration($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setDbDay($arr[$keys[6]]); - if (array_key_exists($keys[7], $arr)) $this->setDbRepeatType($arr[$keys[7]]); - if (array_key_exists($keys[8], $arr)) $this->setDbNextPopDate($arr[$keys[8]]); - if (array_key_exists($keys[9], $arr)) $this->setDbShowId($arr[$keys[9]]); - if (array_key_exists($keys[10], $arr)) $this->setDbRecord($arr[$keys[10]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcShowDaysPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcShowDaysPeer::ID)) $criteria->add(CcShowDaysPeer::ID, $this->id); - if ($this->isColumnModified(CcShowDaysPeer::FIRST_SHOW)) $criteria->add(CcShowDaysPeer::FIRST_SHOW, $this->first_show); - if ($this->isColumnModified(CcShowDaysPeer::LAST_SHOW)) $criteria->add(CcShowDaysPeer::LAST_SHOW, $this->last_show); - if ($this->isColumnModified(CcShowDaysPeer::START_TIME)) $criteria->add(CcShowDaysPeer::START_TIME, $this->start_time); - if ($this->isColumnModified(CcShowDaysPeer::TIMEZONE)) $criteria->add(CcShowDaysPeer::TIMEZONE, $this->timezone); - if ($this->isColumnModified(CcShowDaysPeer::DURATION)) $criteria->add(CcShowDaysPeer::DURATION, $this->duration); - if ($this->isColumnModified(CcShowDaysPeer::DAY)) $criteria->add(CcShowDaysPeer::DAY, $this->day); - if ($this->isColumnModified(CcShowDaysPeer::REPEAT_TYPE)) $criteria->add(CcShowDaysPeer::REPEAT_TYPE, $this->repeat_type); - if ($this->isColumnModified(CcShowDaysPeer::NEXT_POP_DATE)) $criteria->add(CcShowDaysPeer::NEXT_POP_DATE, $this->next_pop_date); - if ($this->isColumnModified(CcShowDaysPeer::SHOW_ID)) $criteria->add(CcShowDaysPeer::SHOW_ID, $this->show_id); - if ($this->isColumnModified(CcShowDaysPeer::RECORD)) $criteria->add(CcShowDaysPeer::RECORD, $this->record); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcShowDaysPeer::DATABASE_NAME); - $criteria->add(CcShowDaysPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcShowDays (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbFirstShow($this->first_show); - $copyObj->setDbLastShow($this->last_show); - $copyObj->setDbStartTime($this->start_time); - $copyObj->setDbTimezone($this->timezone); - $copyObj->setDbDuration($this->duration); - $copyObj->setDbDay($this->day); - $copyObj->setDbRepeatType($this->repeat_type); - $copyObj->setDbNextPopDate($this->next_pop_date); - $copyObj->setDbShowId($this->show_id); - $copyObj->setDbRecord($this->record); - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcShowDays Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcShowDaysPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcShowDaysPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcShow object. - * - * @param CcShow $v - * @return CcShowDays The current object (for fluent API support) - * @throws PropelException - */ - public function setCcShow(CcShow $v = null) - { - if ($v === null) { - $this->setDbShowId(NULL); - } else { - $this->setDbShowId($v->getDbId()); - } - - $this->aCcShow = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcShow object, it will not be re-added. - if ($v !== null) { - $v->addCcShowDays($this); - } - - return $this; - } - - - /** - * Get the associated CcShow object - * - * @param PropelPDO Optional Connection object. - * @return CcShow The associated CcShow object. - * @throws PropelException - */ - public function getCcShow(PropelPDO $con = null) - { - if ($this->aCcShow === null && ($this->show_id !== null)) { - $this->aCcShow = CcShowQuery::create()->findPk($this->show_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcShow->addCcShowDayss($this); - */ - } - return $this->aCcShow; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->first_show = null; - $this->last_show = null; - $this->start_time = null; - $this->timezone = null; - $this->duration = null; - $this->day = null; - $this->repeat_type = null; - $this->next_pop_date = null; - $this->show_id = null; - $this->record = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - $this->aCcShow = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcShowDays + /** + * Peer class name + */ + const PEER = 'CcShowDaysPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcShowDaysPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the first_show field. + * @var string + */ + protected $first_show; + + /** + * The value for the last_show field. + * @var string + */ + protected $last_show; + + /** + * The value for the start_time field. + * @var string + */ + protected $start_time; + + /** + * The value for the timezone field. + * @var string + */ + protected $timezone; + + /** + * The value for the duration field. + * @var string + */ + protected $duration; + + /** + * The value for the day field. + * @var int + */ + protected $day; + + /** + * The value for the repeat_type field. + * @var int + */ + protected $repeat_type; + + /** + * The value for the next_pop_date field. + * @var string + */ + protected $next_pop_date; + + /** + * The value for the show_id field. + * @var int + */ + protected $show_id; + + /** + * The value for the record field. + * Note: this column has a database default value of: 0 + * @var int + */ + protected $record; + + /** + * @var CcShow + */ + protected $aCcShow; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = 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->record = 0; + } + + /** + * Initializes internal state of BaseCcShowDays object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [optionally formatted] temporal [first_show] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbFirstShow($format = '%x') + { + if ($this->first_show === null) { + return null; + } + + + try { + $dt = new DateTime($this->first_show); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->first_show, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [last_show] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbLastShow($format = '%x') + { + if ($this->last_show === null) { + return null; + } + + + try { + $dt = new DateTime($this->last_show); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->last_show, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [start_time] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbStartTime($format = '%X') + { + if ($this->start_time === null) { + return null; + } + + + try { + $dt = new DateTime($this->start_time); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->start_time, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [timezone] column value. + * + * @return string + */ + public function getDbTimezone() + { + + return $this->timezone; + } + + /** + * Get the [duration] column value. + * + * @return string + */ + public function getDbDuration() + { + + return $this->duration; + } + + /** + * Get the [day] column value. + * + * @return int + */ + public function getDbDay() + { + + return $this->day; + } + + /** + * Get the [repeat_type] column value. + * + * @return int + */ + public function getDbRepeatType() + { + + return $this->repeat_type; + } + + /** + * Get the [optionally formatted] temporal [next_pop_date] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbNextPopDate($format = '%x') + { + if ($this->next_pop_date === null) { + return null; + } + + + try { + $dt = new DateTime($this->next_pop_date); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->next_pop_date, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [show_id] column value. + * + * @return int + */ + public function getDbShowId() + { + + return $this->show_id; + } + + /** + * Get the [record] column value. + * + * @return int + */ + public function getDbRecord() + { + + return $this->record; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcShowDays The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcShowDaysPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Sets the value of [first_show] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcShowDays The current object (for fluent API support) + */ + public function setDbFirstShow($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->first_show !== null || $dt !== null) { + $currentDateAsString = ($this->first_show !== null && $tmpDt = new DateTime($this->first_show)) ? $tmpDt->format('Y-m-d') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->first_show = $newDateAsString; + $this->modifiedColumns[] = CcShowDaysPeer::FIRST_SHOW; + } + } // if either are not null + + + return $this; + } // setDbFirstShow() + + /** + * Sets the value of [last_show] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcShowDays The current object (for fluent API support) + */ + public function setDbLastShow($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->last_show !== null || $dt !== null) { + $currentDateAsString = ($this->last_show !== null && $tmpDt = new DateTime($this->last_show)) ? $tmpDt->format('Y-m-d') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->last_show = $newDateAsString; + $this->modifiedColumns[] = CcShowDaysPeer::LAST_SHOW; + } + } // if either are not null + + + return $this; + } // setDbLastShow() + + /** + * Sets the value of [start_time] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcShowDays The current object (for fluent API support) + */ + public function setDbStartTime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->start_time !== null || $dt !== null) { + $currentDateAsString = ($this->start_time !== null && $tmpDt = new DateTime($this->start_time)) ? $tmpDt->format('H:i:s') : null; + $newDateAsString = $dt ? $dt->format('H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->start_time = $newDateAsString; + $this->modifiedColumns[] = CcShowDaysPeer::START_TIME; + } + } // if either are not null + + + return $this; + } // setDbStartTime() + + /** + * Set the value of [timezone] column. + * + * @param string $v new value + * @return CcShowDays The current object (for fluent API support) + */ + public function setDbTimezone($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->timezone !== $v) { + $this->timezone = $v; + $this->modifiedColumns[] = CcShowDaysPeer::TIMEZONE; + } + + + return $this; + } // setDbTimezone() + + /** + * Set the value of [duration] column. + * + * @param string $v new value + * @return CcShowDays The current object (for fluent API support) + */ + public function setDbDuration($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->duration !== $v) { + $this->duration = $v; + $this->modifiedColumns[] = CcShowDaysPeer::DURATION; + } + + + return $this; + } // setDbDuration() + + /** + * Set the value of [day] column. + * + * @param int $v new value + * @return CcShowDays The current object (for fluent API support) + */ + public function setDbDay($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->day !== $v) { + $this->day = $v; + $this->modifiedColumns[] = CcShowDaysPeer::DAY; + } + + + return $this; + } // setDbDay() + + /** + * Set the value of [repeat_type] column. + * + * @param int $v new value + * @return CcShowDays The current object (for fluent API support) + */ + public function setDbRepeatType($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->repeat_type !== $v) { + $this->repeat_type = $v; + $this->modifiedColumns[] = CcShowDaysPeer::REPEAT_TYPE; + } + + + return $this; + } // setDbRepeatType() + + /** + * Sets the value of [next_pop_date] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcShowDays The current object (for fluent API support) + */ + public function setDbNextPopDate($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->next_pop_date !== null || $dt !== null) { + $currentDateAsString = ($this->next_pop_date !== null && $tmpDt = new DateTime($this->next_pop_date)) ? $tmpDt->format('Y-m-d') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->next_pop_date = $newDateAsString; + $this->modifiedColumns[] = CcShowDaysPeer::NEXT_POP_DATE; + } + } // if either are not null + + + return $this; + } // setDbNextPopDate() + + /** + * Set the value of [show_id] column. + * + * @param int $v new value + * @return CcShowDays The current object (for fluent API support) + */ + public function setDbShowId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->show_id !== $v) { + $this->show_id = $v; + $this->modifiedColumns[] = CcShowDaysPeer::SHOW_ID; + } + + if ($this->aCcShow !== null && $this->aCcShow->getDbId() !== $v) { + $this->aCcShow = null; + } + + + return $this; + } // setDbShowId() + + /** + * Set the value of [record] column. + * + * @param int $v new value + * @return CcShowDays The current object (for fluent API support) + */ + public function setDbRecord($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->record !== $v) { + $this->record = $v; + $this->modifiedColumns[] = CcShowDaysPeer::RECORD; + } + + + return $this; + } // setDbRecord() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->record !== 0) { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->first_show = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->last_show = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->start_time = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->timezone = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; + $this->duration = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; + $this->day = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null; + $this->repeat_type = ($row[$startcol + 7] !== null) ? (int) $row[$startcol + 7] : null; + $this->next_pop_date = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; + $this->show_id = ($row[$startcol + 9] !== null) ? (int) $row[$startcol + 9] : null; + $this->record = ($row[$startcol + 10] !== null) ? (int) $row[$startcol + 10] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 11; // 11 = CcShowDaysPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcShowDays object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcShow !== null && $this->show_id !== $this->aCcShow->getDbId()) { + $this->aCcShow = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcShowDaysPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcShow = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcShowDaysQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcShowDaysPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcShow !== null) { + if ($this->aCcShow->isModified() || $this->aCcShow->isNew()) { + $affectedRows += $this->aCcShow->save($con); + } + $this->setCcShow($this->aCcShow); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcShowDaysPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcShowDaysPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_show_days_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcShowDaysPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcShowDaysPeer::FIRST_SHOW)) { + $modifiedColumns[':p' . $index++] = '"first_show"'; + } + if ($this->isColumnModified(CcShowDaysPeer::LAST_SHOW)) { + $modifiedColumns[':p' . $index++] = '"last_show"'; + } + if ($this->isColumnModified(CcShowDaysPeer::START_TIME)) { + $modifiedColumns[':p' . $index++] = '"start_time"'; + } + if ($this->isColumnModified(CcShowDaysPeer::TIMEZONE)) { + $modifiedColumns[':p' . $index++] = '"timezone"'; + } + if ($this->isColumnModified(CcShowDaysPeer::DURATION)) { + $modifiedColumns[':p' . $index++] = '"duration"'; + } + if ($this->isColumnModified(CcShowDaysPeer::DAY)) { + $modifiedColumns[':p' . $index++] = '"day"'; + } + if ($this->isColumnModified(CcShowDaysPeer::REPEAT_TYPE)) { + $modifiedColumns[':p' . $index++] = '"repeat_type"'; + } + if ($this->isColumnModified(CcShowDaysPeer::NEXT_POP_DATE)) { + $modifiedColumns[':p' . $index++] = '"next_pop_date"'; + } + if ($this->isColumnModified(CcShowDaysPeer::SHOW_ID)) { + $modifiedColumns[':p' . $index++] = '"show_id"'; + } + if ($this->isColumnModified(CcShowDaysPeer::RECORD)) { + $modifiedColumns[':p' . $index++] = '"record"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_show_days" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"first_show"': + $stmt->bindValue($identifier, $this->first_show, PDO::PARAM_STR); + break; + case '"last_show"': + $stmt->bindValue($identifier, $this->last_show, PDO::PARAM_STR); + break; + case '"start_time"': + $stmt->bindValue($identifier, $this->start_time, PDO::PARAM_STR); + break; + case '"timezone"': + $stmt->bindValue($identifier, $this->timezone, PDO::PARAM_STR); + break; + case '"duration"': + $stmt->bindValue($identifier, $this->duration, PDO::PARAM_STR); + break; + case '"day"': + $stmt->bindValue($identifier, $this->day, PDO::PARAM_INT); + break; + case '"repeat_type"': + $stmt->bindValue($identifier, $this->repeat_type, PDO::PARAM_INT); + break; + case '"next_pop_date"': + $stmt->bindValue($identifier, $this->next_pop_date, PDO::PARAM_STR); + break; + case '"show_id"': + $stmt->bindValue($identifier, $this->show_id, PDO::PARAM_INT); + break; + case '"record"': + $stmt->bindValue($identifier, $this->record, PDO::PARAM_INT); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcShow !== null) { + if (!$this->aCcShow->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcShow->getValidationFailures()); + } + } + + + if (($retval = CcShowDaysPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcShowDaysPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbFirstShow(); + break; + case 2: + return $this->getDbLastShow(); + break; + case 3: + return $this->getDbStartTime(); + break; + case 4: + return $this->getDbTimezone(); + break; + case 5: + return $this->getDbDuration(); + break; + case 6: + return $this->getDbDay(); + break; + case 7: + return $this->getDbRepeatType(); + break; + case 8: + return $this->getDbNextPopDate(); + break; + case 9: + return $this->getDbShowId(); + break; + case 10: + return $this->getDbRecord(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcShowDays'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcShowDays'][$this->getPrimaryKey()] = true; + $keys = CcShowDaysPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbFirstShow(), + $keys[2] => $this->getDbLastShow(), + $keys[3] => $this->getDbStartTime(), + $keys[4] => $this->getDbTimezone(), + $keys[5] => $this->getDbDuration(), + $keys[6] => $this->getDbDay(), + $keys[7] => $this->getDbRepeatType(), + $keys[8] => $this->getDbNextPopDate(), + $keys[9] => $this->getDbShowId(), + $keys[10] => $this->getDbRecord(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcShow) { + $result['CcShow'] = $this->aCcShow->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcShowDaysPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbFirstShow($value); + break; + case 2: + $this->setDbLastShow($value); + break; + case 3: + $this->setDbStartTime($value); + break; + case 4: + $this->setDbTimezone($value); + break; + case 5: + $this->setDbDuration($value); + break; + case 6: + $this->setDbDay($value); + break; + case 7: + $this->setDbRepeatType($value); + break; + case 8: + $this->setDbNextPopDate($value); + break; + case 9: + $this->setDbShowId($value); + break; + case 10: + $this->setDbRecord($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcShowDaysPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbFirstShow($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbLastShow($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbStartTime($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbTimezone($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDbDuration($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setDbDay($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setDbRepeatType($arr[$keys[7]]); + if (array_key_exists($keys[8], $arr)) $this->setDbNextPopDate($arr[$keys[8]]); + if (array_key_exists($keys[9], $arr)) $this->setDbShowId($arr[$keys[9]]); + if (array_key_exists($keys[10], $arr)) $this->setDbRecord($arr[$keys[10]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcShowDaysPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcShowDaysPeer::ID)) $criteria->add(CcShowDaysPeer::ID, $this->id); + if ($this->isColumnModified(CcShowDaysPeer::FIRST_SHOW)) $criteria->add(CcShowDaysPeer::FIRST_SHOW, $this->first_show); + if ($this->isColumnModified(CcShowDaysPeer::LAST_SHOW)) $criteria->add(CcShowDaysPeer::LAST_SHOW, $this->last_show); + if ($this->isColumnModified(CcShowDaysPeer::START_TIME)) $criteria->add(CcShowDaysPeer::START_TIME, $this->start_time); + if ($this->isColumnModified(CcShowDaysPeer::TIMEZONE)) $criteria->add(CcShowDaysPeer::TIMEZONE, $this->timezone); + if ($this->isColumnModified(CcShowDaysPeer::DURATION)) $criteria->add(CcShowDaysPeer::DURATION, $this->duration); + if ($this->isColumnModified(CcShowDaysPeer::DAY)) $criteria->add(CcShowDaysPeer::DAY, $this->day); + if ($this->isColumnModified(CcShowDaysPeer::REPEAT_TYPE)) $criteria->add(CcShowDaysPeer::REPEAT_TYPE, $this->repeat_type); + if ($this->isColumnModified(CcShowDaysPeer::NEXT_POP_DATE)) $criteria->add(CcShowDaysPeer::NEXT_POP_DATE, $this->next_pop_date); + if ($this->isColumnModified(CcShowDaysPeer::SHOW_ID)) $criteria->add(CcShowDaysPeer::SHOW_ID, $this->show_id); + if ($this->isColumnModified(CcShowDaysPeer::RECORD)) $criteria->add(CcShowDaysPeer::RECORD, $this->record); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcShowDaysPeer::DATABASE_NAME); + $criteria->add(CcShowDaysPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcShowDays (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbFirstShow($this->getDbFirstShow()); + $copyObj->setDbLastShow($this->getDbLastShow()); + $copyObj->setDbStartTime($this->getDbStartTime()); + $copyObj->setDbTimezone($this->getDbTimezone()); + $copyObj->setDbDuration($this->getDbDuration()); + $copyObj->setDbDay($this->getDbDay()); + $copyObj->setDbRepeatType($this->getDbRepeatType()); + $copyObj->setDbNextPopDate($this->getDbNextPopDate()); + $copyObj->setDbShowId($this->getDbShowId()); + $copyObj->setDbRecord($this->getDbRecord()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcShowDays Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcShowDaysPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcShowDaysPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcShow object. + * + * @param CcShow $v + * @return CcShowDays The current object (for fluent API support) + * @throws PropelException + */ + public function setCcShow(CcShow $v = null) + { + if ($v === null) { + $this->setDbShowId(NULL); + } else { + $this->setDbShowId($v->getDbId()); + } + + $this->aCcShow = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcShow object, it will not be re-added. + if ($v !== null) { + $v->addCcShowDays($this); + } + + + return $this; + } + + + /** + * Get the associated CcShow object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcShow The associated CcShow object. + * @throws PropelException + */ + public function getCcShow(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcShow === null && ($this->show_id !== null) && $doQuery) { + $this->aCcShow = CcShowQuery::create()->findPk($this->show_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcShow->addCcShowDayss($this); + */ + } + + return $this->aCcShow; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->first_show = null; + $this->last_show = null; + $this->start_time = null; + $this->timezone = null; + $this->duration = null; + $this->day = null; + $this->repeat_type = null; + $this->next_pop_date = null; + $this->show_id = null; + $this->record = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcShow instanceof Persistent) { + $this->aCcShow->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcShow = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcShowDaysPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShowDaysPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcShowDaysPeer.php index df6b9081d4..cb76ec2a30 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShowDaysPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShowDaysPeer.php @@ -4,1011 +4,1037 @@ /** * Base static class for performing query and update operations on the 'cc_show_days' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcShowDaysPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_show_days'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcShowDays'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcShowDays'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcShowDaysTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 11; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_show_days.ID'; - - /** the column name for the FIRST_SHOW field */ - const FIRST_SHOW = 'cc_show_days.FIRST_SHOW'; - - /** the column name for the LAST_SHOW field */ - const LAST_SHOW = 'cc_show_days.LAST_SHOW'; - - /** the column name for the START_TIME field */ - const START_TIME = 'cc_show_days.START_TIME'; - - /** the column name for the TIMEZONE field */ - const TIMEZONE = 'cc_show_days.TIMEZONE'; - - /** the column name for the DURATION field */ - const DURATION = 'cc_show_days.DURATION'; - - /** the column name for the DAY field */ - const DAY = 'cc_show_days.DAY'; - - /** the column name for the REPEAT_TYPE field */ - const REPEAT_TYPE = 'cc_show_days.REPEAT_TYPE'; - - /** the column name for the NEXT_POP_DATE field */ - const NEXT_POP_DATE = 'cc_show_days.NEXT_POP_DATE'; - - /** the column name for the SHOW_ID field */ - const SHOW_ID = 'cc_show_days.SHOW_ID'; - - /** the column name for the RECORD field */ - const RECORD = 'cc_show_days.RECORD'; - - /** - * An identiy map to hold any loaded instances of CcShowDays objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcShowDays[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbFirstShow', 'DbLastShow', 'DbStartTime', 'DbTimezone', 'DbDuration', 'DbDay', 'DbRepeatType', 'DbNextPopDate', 'DbShowId', 'DbRecord', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbFirstShow', 'dbLastShow', 'dbStartTime', 'dbTimezone', 'dbDuration', 'dbDay', 'dbRepeatType', 'dbNextPopDate', 'dbShowId', 'dbRecord', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::FIRST_SHOW, self::LAST_SHOW, self::START_TIME, self::TIMEZONE, self::DURATION, self::DAY, self::REPEAT_TYPE, self::NEXT_POP_DATE, self::SHOW_ID, self::RECORD, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'FIRST_SHOW', 'LAST_SHOW', 'START_TIME', 'TIMEZONE', 'DURATION', 'DAY', 'REPEAT_TYPE', 'NEXT_POP_DATE', 'SHOW_ID', 'RECORD', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'first_show', 'last_show', 'start_time', 'timezone', 'duration', 'day', 'repeat_type', 'next_pop_date', 'show_id', 'record', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbFirstShow' => 1, 'DbLastShow' => 2, 'DbStartTime' => 3, 'DbTimezone' => 4, 'DbDuration' => 5, 'DbDay' => 6, 'DbRepeatType' => 7, 'DbNextPopDate' => 8, 'DbShowId' => 9, 'DbRecord' => 10, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbFirstShow' => 1, 'dbLastShow' => 2, 'dbStartTime' => 3, 'dbTimezone' => 4, 'dbDuration' => 5, 'dbDay' => 6, 'dbRepeatType' => 7, 'dbNextPopDate' => 8, 'dbShowId' => 9, 'dbRecord' => 10, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::FIRST_SHOW => 1, self::LAST_SHOW => 2, self::START_TIME => 3, self::TIMEZONE => 4, self::DURATION => 5, self::DAY => 6, self::REPEAT_TYPE => 7, self::NEXT_POP_DATE => 8, self::SHOW_ID => 9, self::RECORD => 10, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'FIRST_SHOW' => 1, 'LAST_SHOW' => 2, 'START_TIME' => 3, 'TIMEZONE' => 4, 'DURATION' => 5, 'DAY' => 6, 'REPEAT_TYPE' => 7, 'NEXT_POP_DATE' => 8, 'SHOW_ID' => 9, 'RECORD' => 10, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'first_show' => 1, 'last_show' => 2, 'start_time' => 3, 'timezone' => 4, 'duration' => 5, 'day' => 6, 'repeat_type' => 7, 'next_pop_date' => 8, 'show_id' => 9, 'record' => 10, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcShowDaysPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcShowDaysPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcShowDaysPeer::ID); - $criteria->addSelectColumn(CcShowDaysPeer::FIRST_SHOW); - $criteria->addSelectColumn(CcShowDaysPeer::LAST_SHOW); - $criteria->addSelectColumn(CcShowDaysPeer::START_TIME); - $criteria->addSelectColumn(CcShowDaysPeer::TIMEZONE); - $criteria->addSelectColumn(CcShowDaysPeer::DURATION); - $criteria->addSelectColumn(CcShowDaysPeer::DAY); - $criteria->addSelectColumn(CcShowDaysPeer::REPEAT_TYPE); - $criteria->addSelectColumn(CcShowDaysPeer::NEXT_POP_DATE); - $criteria->addSelectColumn(CcShowDaysPeer::SHOW_ID); - $criteria->addSelectColumn(CcShowDaysPeer::RECORD); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.FIRST_SHOW'); - $criteria->addSelectColumn($alias . '.LAST_SHOW'); - $criteria->addSelectColumn($alias . '.START_TIME'); - $criteria->addSelectColumn($alias . '.TIMEZONE'); - $criteria->addSelectColumn($alias . '.DURATION'); - $criteria->addSelectColumn($alias . '.DAY'); - $criteria->addSelectColumn($alias . '.REPEAT_TYPE'); - $criteria->addSelectColumn($alias . '.NEXT_POP_DATE'); - $criteria->addSelectColumn($alias . '.SHOW_ID'); - $criteria->addSelectColumn($alias . '.RECORD'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowDaysPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowDaysPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcShowDays - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcShowDaysPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcShowDaysPeer::populateObjects(CcShowDaysPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcShowDaysPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcShowDays $value A CcShowDays object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcShowDays $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcShowDays object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcShowDays) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcShowDays object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcShowDays Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_show_days - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcShowDaysPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcShowDaysPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcShowDaysPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcShowDaysPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcShowDays object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcShowDaysPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcShowDaysPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcShowDaysPeer::NUM_COLUMNS; - } else { - $cls = CcShowDaysPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcShowDaysPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcShow table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcShow(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowDaysPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowDaysPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowDaysPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcShowDays objects pre-filled with their CcShow objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowDays objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcShow(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowDaysPeer::addSelectColumns($criteria); - $startcol = (CcShowDaysPeer::NUM_COLUMNS - CcShowDaysPeer::NUM_LAZY_LOAD_COLUMNS); - CcShowPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcShowDaysPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowDaysPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowDaysPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcShowDaysPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowDaysPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcShowPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcShowPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcShowDays) to $obj2 (CcShow) - $obj2->addCcShowDays($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowDaysPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowDaysPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowDaysPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcShowDays objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowDays objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowDaysPeer::addSelectColumns($criteria); - $startcol2 = (CcShowDaysPeer::NUM_COLUMNS - CcShowDaysPeer::NUM_LAZY_LOAD_COLUMNS); - - CcShowPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcShowPeer::NUM_COLUMNS - CcShowPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcShowDaysPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowDaysPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowDaysPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcShowDaysPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowDaysPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcShow rows - - $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcShowPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcShowPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcShowDays) to the collection in $obj2 (CcShow) - $obj2->addCcShowDays($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcShowDaysPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcShowDaysPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcShowDaysTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcShowDaysPeer::CLASS_DEFAULT : CcShowDaysPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcShowDays or Criteria object. - * - * @param mixed $values Criteria or CcShowDays object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcShowDays object - } - - if ($criteria->containsKey(CcShowDaysPeer::ID) && $criteria->keyContainsValue(CcShowDaysPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowDaysPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcShowDays or Criteria object. - * - * @param mixed $values Criteria or CcShowDays object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcShowDaysPeer::ID); - $value = $criteria->remove(CcShowDaysPeer::ID); - if ($value) { - $selectCriteria->add(CcShowDaysPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcShowDaysPeer::TABLE_NAME); - } - - } else { // $values is CcShowDays object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_show_days table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcShowDaysPeer::TABLE_NAME, $con, CcShowDaysPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcShowDaysPeer::clearInstancePool(); - CcShowDaysPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcShowDays or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcShowDays object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcShowDaysPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcShowDays) { // it's a model object - // invalidate the cache for this single object - CcShowDaysPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcShowDaysPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcShowDaysPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcShowDaysPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcShowDays object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcShowDays $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcShowDays $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcShowDaysPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcShowDaysPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcShowDaysPeer::DATABASE_NAME, CcShowDaysPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcShowDays - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcShowDaysPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcShowDaysPeer::DATABASE_NAME); - $criteria->add(CcShowDaysPeer::ID, $pk); - - $v = CcShowDaysPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcShowDaysPeer::DATABASE_NAME); - $criteria->add(CcShowDaysPeer::ID, $pks, Criteria::IN); - $objs = CcShowDaysPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcShowDaysPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_show_days'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcShowDays'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcShowDaysTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 11; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 11; + + /** the column name for the id field */ + const ID = 'cc_show_days.id'; + + /** the column name for the first_show field */ + const FIRST_SHOW = 'cc_show_days.first_show'; + + /** the column name for the last_show field */ + const LAST_SHOW = 'cc_show_days.last_show'; + + /** the column name for the start_time field */ + const START_TIME = 'cc_show_days.start_time'; + + /** the column name for the timezone field */ + const TIMEZONE = 'cc_show_days.timezone'; + + /** the column name for the duration field */ + const DURATION = 'cc_show_days.duration'; + + /** the column name for the day field */ + const DAY = 'cc_show_days.day'; + + /** the column name for the repeat_type field */ + const REPEAT_TYPE = 'cc_show_days.repeat_type'; + + /** the column name for the next_pop_date field */ + const NEXT_POP_DATE = 'cc_show_days.next_pop_date'; + + /** the column name for the show_id field */ + const SHOW_ID = 'cc_show_days.show_id'; + + /** the column name for the record field */ + const RECORD = 'cc_show_days.record'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcShowDays objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcShowDays[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcShowDaysPeer::$fieldNames[CcShowDaysPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbFirstShow', 'DbLastShow', 'DbStartTime', 'DbTimezone', 'DbDuration', 'DbDay', 'DbRepeatType', 'DbNextPopDate', 'DbShowId', 'DbRecord', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbFirstShow', 'dbLastShow', 'dbStartTime', 'dbTimezone', 'dbDuration', 'dbDay', 'dbRepeatType', 'dbNextPopDate', 'dbShowId', 'dbRecord', ), + BasePeer::TYPE_COLNAME => array (CcShowDaysPeer::ID, CcShowDaysPeer::FIRST_SHOW, CcShowDaysPeer::LAST_SHOW, CcShowDaysPeer::START_TIME, CcShowDaysPeer::TIMEZONE, CcShowDaysPeer::DURATION, CcShowDaysPeer::DAY, CcShowDaysPeer::REPEAT_TYPE, CcShowDaysPeer::NEXT_POP_DATE, CcShowDaysPeer::SHOW_ID, CcShowDaysPeer::RECORD, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'FIRST_SHOW', 'LAST_SHOW', 'START_TIME', 'TIMEZONE', 'DURATION', 'DAY', 'REPEAT_TYPE', 'NEXT_POP_DATE', 'SHOW_ID', 'RECORD', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'first_show', 'last_show', 'start_time', 'timezone', 'duration', 'day', 'repeat_type', 'next_pop_date', 'show_id', 'record', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcShowDaysPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbFirstShow' => 1, 'DbLastShow' => 2, 'DbStartTime' => 3, 'DbTimezone' => 4, 'DbDuration' => 5, 'DbDay' => 6, 'DbRepeatType' => 7, 'DbNextPopDate' => 8, 'DbShowId' => 9, 'DbRecord' => 10, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbFirstShow' => 1, 'dbLastShow' => 2, 'dbStartTime' => 3, 'dbTimezone' => 4, 'dbDuration' => 5, 'dbDay' => 6, 'dbRepeatType' => 7, 'dbNextPopDate' => 8, 'dbShowId' => 9, 'dbRecord' => 10, ), + BasePeer::TYPE_COLNAME => array (CcShowDaysPeer::ID => 0, CcShowDaysPeer::FIRST_SHOW => 1, CcShowDaysPeer::LAST_SHOW => 2, CcShowDaysPeer::START_TIME => 3, CcShowDaysPeer::TIMEZONE => 4, CcShowDaysPeer::DURATION => 5, CcShowDaysPeer::DAY => 6, CcShowDaysPeer::REPEAT_TYPE => 7, CcShowDaysPeer::NEXT_POP_DATE => 8, CcShowDaysPeer::SHOW_ID => 9, CcShowDaysPeer::RECORD => 10, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'FIRST_SHOW' => 1, 'LAST_SHOW' => 2, 'START_TIME' => 3, 'TIMEZONE' => 4, 'DURATION' => 5, 'DAY' => 6, 'REPEAT_TYPE' => 7, 'NEXT_POP_DATE' => 8, 'SHOW_ID' => 9, 'RECORD' => 10, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'first_show' => 1, 'last_show' => 2, 'start_time' => 3, 'timezone' => 4, 'duration' => 5, 'day' => 6, 'repeat_type' => 7, 'next_pop_date' => 8, 'show_id' => 9, 'record' => 10, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcShowDaysPeer::getFieldNames($toType); + $key = isset(CcShowDaysPeer::$fieldKeys[$fromType][$name]) ? CcShowDaysPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcShowDaysPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcShowDaysPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcShowDaysPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcShowDaysPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcShowDaysPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcShowDaysPeer::ID); + $criteria->addSelectColumn(CcShowDaysPeer::FIRST_SHOW); + $criteria->addSelectColumn(CcShowDaysPeer::LAST_SHOW); + $criteria->addSelectColumn(CcShowDaysPeer::START_TIME); + $criteria->addSelectColumn(CcShowDaysPeer::TIMEZONE); + $criteria->addSelectColumn(CcShowDaysPeer::DURATION); + $criteria->addSelectColumn(CcShowDaysPeer::DAY); + $criteria->addSelectColumn(CcShowDaysPeer::REPEAT_TYPE); + $criteria->addSelectColumn(CcShowDaysPeer::NEXT_POP_DATE); + $criteria->addSelectColumn(CcShowDaysPeer::SHOW_ID); + $criteria->addSelectColumn(CcShowDaysPeer::RECORD); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.first_show'); + $criteria->addSelectColumn($alias . '.last_show'); + $criteria->addSelectColumn($alias . '.start_time'); + $criteria->addSelectColumn($alias . '.timezone'); + $criteria->addSelectColumn($alias . '.duration'); + $criteria->addSelectColumn($alias . '.day'); + $criteria->addSelectColumn($alias . '.repeat_type'); + $criteria->addSelectColumn($alias . '.next_pop_date'); + $criteria->addSelectColumn($alias . '.show_id'); + $criteria->addSelectColumn($alias . '.record'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowDaysPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowDaysPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcShowDaysPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcShowDays + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcShowDaysPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcShowDaysPeer::populateObjects(CcShowDaysPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcShowDaysPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcShowDaysPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcShowDays $obj A CcShowDays object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcShowDaysPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcShowDays object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcShowDays) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcShowDays object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcShowDaysPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcShowDays Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcShowDaysPeer::$instances[$key])) { + return CcShowDaysPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcShowDaysPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcShowDaysPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_show_days + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcShowDaysPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcShowDaysPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcShowDaysPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcShowDaysPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcShowDays object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcShowDaysPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcShowDaysPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcShowDaysPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcShowDaysPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcShowDaysPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcShow table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcShow(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowDaysPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowDaysPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcShowDaysPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowDaysPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcShowDays objects pre-filled with their CcShow objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowDays objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcShow(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowDaysPeer::DATABASE_NAME); + } + + CcShowDaysPeer::addSelectColumns($criteria); + $startcol = CcShowDaysPeer::NUM_HYDRATE_COLUMNS; + CcShowPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcShowDaysPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowDaysPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowDaysPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcShowDaysPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowDaysPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcShowPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcShowPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcShowDays) to $obj2 (CcShow) + $obj2->addCcShowDays($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowDaysPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowDaysPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcShowDaysPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowDaysPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcShowDays objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowDays objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowDaysPeer::DATABASE_NAME); + } + + CcShowDaysPeer::addSelectColumns($criteria); + $startcol2 = CcShowDaysPeer::NUM_HYDRATE_COLUMNS; + + CcShowPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcShowPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcShowDaysPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowDaysPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowDaysPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcShowDaysPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowDaysPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcShow rows + + $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcShowPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcShowPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcShowDays) to the collection in $obj2 (CcShow) + $obj2->addCcShowDays($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcShowDaysPeer::DATABASE_NAME)->getTable(CcShowDaysPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcShowDaysPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcShowDaysPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcShowDaysTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcShowDaysPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcShowDays or Criteria object. + * + * @param mixed $values Criteria or CcShowDays object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcShowDays object + } + + if ($criteria->containsKey(CcShowDaysPeer::ID) && $criteria->keyContainsValue(CcShowDaysPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowDaysPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcShowDaysPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcShowDays or Criteria object. + * + * @param mixed $values Criteria or CcShowDays object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcShowDaysPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcShowDaysPeer::ID); + $value = $criteria->remove(CcShowDaysPeer::ID); + if ($value) { + $selectCriteria->add(CcShowDaysPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcShowDaysPeer::TABLE_NAME); + } + + } else { // $values is CcShowDays object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcShowDaysPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_show_days table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcShowDaysPeer::TABLE_NAME, $con, CcShowDaysPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcShowDaysPeer::clearInstancePool(); + CcShowDaysPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcShowDays or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcShowDays object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcShowDaysPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcShowDays) { // it's a model object + // invalidate the cache for this single object + CcShowDaysPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcShowDaysPeer::DATABASE_NAME); + $criteria->add(CcShowDaysPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcShowDaysPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcShowDaysPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcShowDaysPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcShowDays object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcShowDays $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcShowDaysPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcShowDaysPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcShowDaysPeer::DATABASE_NAME, CcShowDaysPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcShowDays + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcShowDaysPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcShowDaysPeer::DATABASE_NAME); + $criteria->add(CcShowDaysPeer::ID, $pk); + + $v = CcShowDaysPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcShowDays[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcShowDaysPeer::DATABASE_NAME); + $criteria->add(CcShowDaysPeer::ID, $pks, Criteria::IN); + $objs = CcShowDaysPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcShowDaysPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShowDaysQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcShowDaysQuery.php index 18653bd701..1bac6d0189 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShowDaysQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShowDaysQuery.php @@ -4,562 +4,793 @@ /** * Base class that represents a query for the 'cc_show_days' table. * - * * - * @method CcShowDaysQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcShowDaysQuery orderByDbFirstShow($order = Criteria::ASC) Order by the first_show column - * @method CcShowDaysQuery orderByDbLastShow($order = Criteria::ASC) Order by the last_show column - * @method CcShowDaysQuery orderByDbStartTime($order = Criteria::ASC) Order by the start_time column - * @method CcShowDaysQuery orderByDbTimezone($order = Criteria::ASC) Order by the timezone column - * @method CcShowDaysQuery orderByDbDuration($order = Criteria::ASC) Order by the duration column - * @method CcShowDaysQuery orderByDbDay($order = Criteria::ASC) Order by the day column - * @method CcShowDaysQuery orderByDbRepeatType($order = Criteria::ASC) Order by the repeat_type column - * @method CcShowDaysQuery orderByDbNextPopDate($order = Criteria::ASC) Order by the next_pop_date column - * @method CcShowDaysQuery orderByDbShowId($order = Criteria::ASC) Order by the show_id column - * @method CcShowDaysQuery orderByDbRecord($order = Criteria::ASC) Order by the record column * - * @method CcShowDaysQuery groupByDbId() Group by the id column - * @method CcShowDaysQuery groupByDbFirstShow() Group by the first_show column - * @method CcShowDaysQuery groupByDbLastShow() Group by the last_show column - * @method CcShowDaysQuery groupByDbStartTime() Group by the start_time column - * @method CcShowDaysQuery groupByDbTimezone() Group by the timezone column - * @method CcShowDaysQuery groupByDbDuration() Group by the duration column - * @method CcShowDaysQuery groupByDbDay() Group by the day column - * @method CcShowDaysQuery groupByDbRepeatType() Group by the repeat_type column - * @method CcShowDaysQuery groupByDbNextPopDate() Group by the next_pop_date column - * @method CcShowDaysQuery groupByDbShowId() Group by the show_id column - * @method CcShowDaysQuery groupByDbRecord() Group by the record column + * @method CcShowDaysQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcShowDaysQuery orderByDbFirstShow($order = Criteria::ASC) Order by the first_show column + * @method CcShowDaysQuery orderByDbLastShow($order = Criteria::ASC) Order by the last_show column + * @method CcShowDaysQuery orderByDbStartTime($order = Criteria::ASC) Order by the start_time column + * @method CcShowDaysQuery orderByDbTimezone($order = Criteria::ASC) Order by the timezone column + * @method CcShowDaysQuery orderByDbDuration($order = Criteria::ASC) Order by the duration column + * @method CcShowDaysQuery orderByDbDay($order = Criteria::ASC) Order by the day column + * @method CcShowDaysQuery orderByDbRepeatType($order = Criteria::ASC) Order by the repeat_type column + * @method CcShowDaysQuery orderByDbNextPopDate($order = Criteria::ASC) Order by the next_pop_date column + * @method CcShowDaysQuery orderByDbShowId($order = Criteria::ASC) Order by the show_id column + * @method CcShowDaysQuery orderByDbRecord($order = Criteria::ASC) Order by the record column * - * @method CcShowDaysQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcShowDaysQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcShowDaysQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcShowDaysQuery groupByDbId() Group by the id column + * @method CcShowDaysQuery groupByDbFirstShow() Group by the first_show column + * @method CcShowDaysQuery groupByDbLastShow() Group by the last_show column + * @method CcShowDaysQuery groupByDbStartTime() Group by the start_time column + * @method CcShowDaysQuery groupByDbTimezone() Group by the timezone column + * @method CcShowDaysQuery groupByDbDuration() Group by the duration column + * @method CcShowDaysQuery groupByDbDay() Group by the day column + * @method CcShowDaysQuery groupByDbRepeatType() Group by the repeat_type column + * @method CcShowDaysQuery groupByDbNextPopDate() Group by the next_pop_date column + * @method CcShowDaysQuery groupByDbShowId() Group by the show_id column + * @method CcShowDaysQuery groupByDbRecord() Group by the record column * - * @method CcShowDaysQuery leftJoinCcShow($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShow relation - * @method CcShowDaysQuery rightJoinCcShow($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShow relation - * @method CcShowDaysQuery innerJoinCcShow($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShow relation + * @method CcShowDaysQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcShowDaysQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcShowDaysQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcShowDays findOne(PropelPDO $con = null) Return the first CcShowDays matching the query - * @method CcShowDays findOneOrCreate(PropelPDO $con = null) Return the first CcShowDays matching the query, or a new CcShowDays object populated from the query conditions when no match is found + * @method CcShowDaysQuery leftJoinCcShow($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcShow relation + * @method CcShowDaysQuery rightJoinCcShow($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcShow relation + * @method CcShowDaysQuery innerJoinCcShow($relationAlias = null) Adds a INNER JOIN clause to the query using the CcShow relation * - * @method CcShowDays findOneByDbId(int $id) Return the first CcShowDays filtered by the id column - * @method CcShowDays findOneByDbFirstShow(string $first_show) Return the first CcShowDays filtered by the first_show column - * @method CcShowDays findOneByDbLastShow(string $last_show) Return the first CcShowDays filtered by the last_show column - * @method CcShowDays findOneByDbStartTime(string $start_time) Return the first CcShowDays filtered by the start_time column - * @method CcShowDays findOneByDbTimezone(string $timezone) Return the first CcShowDays filtered by the timezone column - * @method CcShowDays findOneByDbDuration(string $duration) Return the first CcShowDays filtered by the duration column - * @method CcShowDays findOneByDbDay(int $day) Return the first CcShowDays filtered by the day column - * @method CcShowDays findOneByDbRepeatType(int $repeat_type) Return the first CcShowDays filtered by the repeat_type column - * @method CcShowDays findOneByDbNextPopDate(string $next_pop_date) Return the first CcShowDays filtered by the next_pop_date column - * @method CcShowDays findOneByDbShowId(int $show_id) Return the first CcShowDays filtered by the show_id column - * @method CcShowDays findOneByDbRecord(int $record) Return the first CcShowDays filtered by the record column + * @method CcShowDays findOne(PropelPDO $con = null) Return the first CcShowDays matching the query + * @method CcShowDays findOneOrCreate(PropelPDO $con = null) Return the first CcShowDays matching the query, or a new CcShowDays object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcShowDays objects filtered by the id column - * @method array findByDbFirstShow(string $first_show) Return CcShowDays objects filtered by the first_show column - * @method array findByDbLastShow(string $last_show) Return CcShowDays objects filtered by the last_show column - * @method array findByDbStartTime(string $start_time) Return CcShowDays objects filtered by the start_time column - * @method array findByDbTimezone(string $timezone) Return CcShowDays objects filtered by the timezone column - * @method array findByDbDuration(string $duration) Return CcShowDays objects filtered by the duration column - * @method array findByDbDay(int $day) Return CcShowDays objects filtered by the day column - * @method array findByDbRepeatType(int $repeat_type) Return CcShowDays objects filtered by the repeat_type column - * @method array findByDbNextPopDate(string $next_pop_date) Return CcShowDays objects filtered by the next_pop_date column - * @method array findByDbShowId(int $show_id) Return CcShowDays objects filtered by the show_id column - * @method array findByDbRecord(int $record) Return CcShowDays objects filtered by the record column + * @method CcShowDays findOneByDbFirstShow(string $first_show) Return the first CcShowDays filtered by the first_show column + * @method CcShowDays findOneByDbLastShow(string $last_show) Return the first CcShowDays filtered by the last_show column + * @method CcShowDays findOneByDbStartTime(string $start_time) Return the first CcShowDays filtered by the start_time column + * @method CcShowDays findOneByDbTimezone(string $timezone) Return the first CcShowDays filtered by the timezone column + * @method CcShowDays findOneByDbDuration(string $duration) Return the first CcShowDays filtered by the duration column + * @method CcShowDays findOneByDbDay(int $day) Return the first CcShowDays filtered by the day column + * @method CcShowDays findOneByDbRepeatType(int $repeat_type) Return the first CcShowDays filtered by the repeat_type column + * @method CcShowDays findOneByDbNextPopDate(string $next_pop_date) Return the first CcShowDays filtered by the next_pop_date column + * @method CcShowDays findOneByDbShowId(int $show_id) Return the first CcShowDays filtered by the show_id column + * @method CcShowDays findOneByDbRecord(int $record) Return the first CcShowDays filtered by the record column + * + * @method array findByDbId(int $id) Return CcShowDays objects filtered by the id column + * @method array findByDbFirstShow(string $first_show) Return CcShowDays objects filtered by the first_show column + * @method array findByDbLastShow(string $last_show) Return CcShowDays objects filtered by the last_show column + * @method array findByDbStartTime(string $start_time) Return CcShowDays objects filtered by the start_time column + * @method array findByDbTimezone(string $timezone) Return CcShowDays objects filtered by the timezone column + * @method array findByDbDuration(string $duration) Return CcShowDays objects filtered by the duration column + * @method array findByDbDay(int $day) Return CcShowDays objects filtered by the day column + * @method array findByDbRepeatType(int $repeat_type) Return CcShowDays objects filtered by the repeat_type column + * @method array findByDbNextPopDate(string $next_pop_date) Return CcShowDays objects filtered by the next_pop_date column + * @method array findByDbShowId(int $show_id) Return CcShowDays objects filtered by the show_id column + * @method array findByDbRecord(int $record) Return CcShowDays objects filtered by the record column * * @package propel.generator.airtime.om */ abstract class BaseCcShowDaysQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcShowDaysQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcShowDays'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcShowDaysQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcShowDaysQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcShowDaysQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcShowDaysQuery) { + return $criteria; + } + $query = new CcShowDaysQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcShowDays|CcShowDays[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcShowDaysPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcShowDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShowDays A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShowDays A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "first_show", "last_show", "start_time", "timezone", "duration", "day", "repeat_type", "next_pop_date", "show_id", "record" FROM "cc_show_days" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcShowDays(); + $obj->hydrate($row); + CcShowDaysPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShowDays|CcShowDays[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcShowDays[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcShowDaysQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcShowDaysPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcShowDaysQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcShowDaysPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowDaysQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcShowDaysPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcShowDaysPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowDaysPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the first_show column + * + * Example usage: + * + * $query->filterByDbFirstShow('2011-03-14'); // WHERE first_show = '2011-03-14' + * $query->filterByDbFirstShow('now'); // WHERE first_show = '2011-03-14' + * $query->filterByDbFirstShow(array('max' => 'yesterday')); // WHERE first_show < '2011-03-13' + * + * + * @param mixed $dbFirstShow The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowDaysQuery The current query, for fluid interface + */ + public function filterByDbFirstShow($dbFirstShow = null, $comparison = null) + { + if (is_array($dbFirstShow)) { + $useMinMax = false; + if (isset($dbFirstShow['min'])) { + $this->addUsingAlias(CcShowDaysPeer::FIRST_SHOW, $dbFirstShow['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbFirstShow['max'])) { + $this->addUsingAlias(CcShowDaysPeer::FIRST_SHOW, $dbFirstShow['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowDaysPeer::FIRST_SHOW, $dbFirstShow, $comparison); + } + + /** + * Filter the query on the last_show column + * + * Example usage: + * + * $query->filterByDbLastShow('2011-03-14'); // WHERE last_show = '2011-03-14' + * $query->filterByDbLastShow('now'); // WHERE last_show = '2011-03-14' + * $query->filterByDbLastShow(array('max' => 'yesterday')); // WHERE last_show < '2011-03-13' + * + * + * @param mixed $dbLastShow The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowDaysQuery The current query, for fluid interface + */ + public function filterByDbLastShow($dbLastShow = null, $comparison = null) + { + if (is_array($dbLastShow)) { + $useMinMax = false; + if (isset($dbLastShow['min'])) { + $this->addUsingAlias(CcShowDaysPeer::LAST_SHOW, $dbLastShow['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbLastShow['max'])) { + $this->addUsingAlias(CcShowDaysPeer::LAST_SHOW, $dbLastShow['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowDaysPeer::LAST_SHOW, $dbLastShow, $comparison); + } + + /** + * Filter the query on the start_time column + * + * Example usage: + * + * $query->filterByDbStartTime('2011-03-14'); // WHERE start_time = '2011-03-14' + * $query->filterByDbStartTime('now'); // WHERE start_time = '2011-03-14' + * $query->filterByDbStartTime(array('max' => 'yesterday')); // WHERE start_time < '2011-03-13' + * + * + * @param mixed $dbStartTime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowDaysQuery The current query, for fluid interface + */ + public function filterByDbStartTime($dbStartTime = null, $comparison = null) + { + if (is_array($dbStartTime)) { + $useMinMax = false; + if (isset($dbStartTime['min'])) { + $this->addUsingAlias(CcShowDaysPeer::START_TIME, $dbStartTime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbStartTime['max'])) { + $this->addUsingAlias(CcShowDaysPeer::START_TIME, $dbStartTime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowDaysPeer::START_TIME, $dbStartTime, $comparison); + } + + /** + * Filter the query on the timezone column + * + * Example usage: + * + * $query->filterByDbTimezone('fooValue'); // WHERE timezone = 'fooValue' + * $query->filterByDbTimezone('%fooValue%'); // WHERE timezone LIKE '%fooValue%' + * + * + * @param string $dbTimezone 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 CcShowDaysQuery The current query, for fluid interface + */ + public function filterByDbTimezone($dbTimezone = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbTimezone)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbTimezone)) { + $dbTimezone = str_replace('*', '%', $dbTimezone); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcShowDaysPeer::TIMEZONE, $dbTimezone, $comparison); + } + + /** + * Filter the query on the duration column + * + * Example usage: + * + * $query->filterByDbDuration('fooValue'); // WHERE duration = 'fooValue' + * $query->filterByDbDuration('%fooValue%'); // WHERE duration LIKE '%fooValue%' + * + * + * @param string $dbDuration 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 CcShowDaysQuery The current query, for fluid interface + */ + public function filterByDbDuration($dbDuration = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbDuration)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbDuration)) { + $dbDuration = str_replace('*', '%', $dbDuration); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcShowDaysPeer::DURATION, $dbDuration, $comparison); + } + + /** + * Filter the query on the day column + * + * Example usage: + * + * $query->filterByDbDay(1234); // WHERE day = 1234 + * $query->filterByDbDay(array(12, 34)); // WHERE day IN (12, 34) + * $query->filterByDbDay(array('min' => 12)); // WHERE day >= 12 + * $query->filterByDbDay(array('max' => 12)); // WHERE day <= 12 + * + * + * @param mixed $dbDay The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowDaysQuery The current query, for fluid interface + */ + public function filterByDbDay($dbDay = null, $comparison = null) + { + if (is_array($dbDay)) { + $useMinMax = false; + if (isset($dbDay['min'])) { + $this->addUsingAlias(CcShowDaysPeer::DAY, $dbDay['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbDay['max'])) { + $this->addUsingAlias(CcShowDaysPeer::DAY, $dbDay['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowDaysPeer::DAY, $dbDay, $comparison); + } + + /** + * Filter the query on the repeat_type column + * + * Example usage: + * + * $query->filterByDbRepeatType(1234); // WHERE repeat_type = 1234 + * $query->filterByDbRepeatType(array(12, 34)); // WHERE repeat_type IN (12, 34) + * $query->filterByDbRepeatType(array('min' => 12)); // WHERE repeat_type >= 12 + * $query->filterByDbRepeatType(array('max' => 12)); // WHERE repeat_type <= 12 + * + * + * @param mixed $dbRepeatType The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowDaysQuery The current query, for fluid interface + */ + public function filterByDbRepeatType($dbRepeatType = null, $comparison = null) + { + if (is_array($dbRepeatType)) { + $useMinMax = false; + if (isset($dbRepeatType['min'])) { + $this->addUsingAlias(CcShowDaysPeer::REPEAT_TYPE, $dbRepeatType['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbRepeatType['max'])) { + $this->addUsingAlias(CcShowDaysPeer::REPEAT_TYPE, $dbRepeatType['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowDaysPeer::REPEAT_TYPE, $dbRepeatType, $comparison); + } + + /** + * Filter the query on the next_pop_date column + * + * Example usage: + * + * $query->filterByDbNextPopDate('2011-03-14'); // WHERE next_pop_date = '2011-03-14' + * $query->filterByDbNextPopDate('now'); // WHERE next_pop_date = '2011-03-14' + * $query->filterByDbNextPopDate(array('max' => 'yesterday')); // WHERE next_pop_date < '2011-03-13' + * + * + * @param mixed $dbNextPopDate The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowDaysQuery The current query, for fluid interface + */ + public function filterByDbNextPopDate($dbNextPopDate = null, $comparison = null) + { + if (is_array($dbNextPopDate)) { + $useMinMax = false; + if (isset($dbNextPopDate['min'])) { + $this->addUsingAlias(CcShowDaysPeer::NEXT_POP_DATE, $dbNextPopDate['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbNextPopDate['max'])) { + $this->addUsingAlias(CcShowDaysPeer::NEXT_POP_DATE, $dbNextPopDate['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowDaysPeer::NEXT_POP_DATE, $dbNextPopDate, $comparison); + } + + /** + * Filter the query on the show_id column + * + * Example usage: + * + * $query->filterByDbShowId(1234); // WHERE show_id = 1234 + * $query->filterByDbShowId(array(12, 34)); // WHERE show_id IN (12, 34) + * $query->filterByDbShowId(array('min' => 12)); // WHERE show_id >= 12 + * $query->filterByDbShowId(array('max' => 12)); // WHERE show_id <= 12 + * + * + * @see filterByCcShow() + * + * @param mixed $dbShowId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowDaysQuery The current query, for fluid interface + */ + public function filterByDbShowId($dbShowId = null, $comparison = null) + { + if (is_array($dbShowId)) { + $useMinMax = false; + if (isset($dbShowId['min'])) { + $this->addUsingAlias(CcShowDaysPeer::SHOW_ID, $dbShowId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbShowId['max'])) { + $this->addUsingAlias(CcShowDaysPeer::SHOW_ID, $dbShowId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowDaysPeer::SHOW_ID, $dbShowId, $comparison); + } + + /** + * Filter the query on the record column + * + * Example usage: + * + * $query->filterByDbRecord(1234); // WHERE record = 1234 + * $query->filterByDbRecord(array(12, 34)); // WHERE record IN (12, 34) + * $query->filterByDbRecord(array('min' => 12)); // WHERE record >= 12 + * $query->filterByDbRecord(array('max' => 12)); // WHERE record <= 12 + * + * + * @param mixed $dbRecord The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowDaysQuery The current query, for fluid interface + */ + public function filterByDbRecord($dbRecord = null, $comparison = null) + { + if (is_array($dbRecord)) { + $useMinMax = false; + if (isset($dbRecord['min'])) { + $this->addUsingAlias(CcShowDaysPeer::RECORD, $dbRecord['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbRecord['max'])) { + $this->addUsingAlias(CcShowDaysPeer::RECORD, $dbRecord['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowDaysPeer::RECORD, $dbRecord, $comparison); + } + + /** + * Filter the query by a related CcShow object + * + * @param CcShow|PropelObjectCollection $ccShow The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowDaysQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcShow($ccShow, $comparison = null) + { + if ($ccShow instanceof CcShow) { + return $this + ->addUsingAlias(CcShowDaysPeer::SHOW_ID, $ccShow->getDbId(), $comparison); + } elseif ($ccShow instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcShowDaysPeer::SHOW_ID, $ccShow->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcShow() only accepts arguments of type CcShow or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcShow relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcShowDaysQuery The current query, for fluid interface + */ + public function joinCcShow($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcShow'); + + // 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, 'CcShow'); + } + + return $this; + } + + /** + * Use the CcShow relation CcShow 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 CcShowQuery A secondary query class using the current class as primary query + */ + public function useCcShowQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcShow($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcShow', 'CcShowQuery'); + } + + /** + * Exclude object from result + * + * @param CcShowDays $ccShowDays Object to remove from the list of results + * + * @return CcShowDaysQuery The current query, for fluid interface + */ + public function prune($ccShowDays = null) + { + if ($ccShowDays) { + $this->addUsingAlias(CcShowDaysPeer::ID, $ccShowDays->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcShowDaysQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcShowDays', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcShowDaysQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcShowDaysQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcShowDaysQuery) { - return $criteria; - } - $query = new CcShowDaysQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcShowDays|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcShowDaysPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcShowDaysQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcShowDaysPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcShowDaysQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcShowDaysPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowDaysQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcShowDaysPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the first_show column - * - * @param string|array $dbFirstShow The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowDaysQuery The current query, for fluid interface - */ - public function filterByDbFirstShow($dbFirstShow = null, $comparison = null) - { - if (is_array($dbFirstShow)) { - $useMinMax = false; - if (isset($dbFirstShow['min'])) { - $this->addUsingAlias(CcShowDaysPeer::FIRST_SHOW, $dbFirstShow['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbFirstShow['max'])) { - $this->addUsingAlias(CcShowDaysPeer::FIRST_SHOW, $dbFirstShow['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowDaysPeer::FIRST_SHOW, $dbFirstShow, $comparison); - } - - /** - * Filter the query on the last_show column - * - * @param string|array $dbLastShow The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowDaysQuery The current query, for fluid interface - */ - public function filterByDbLastShow($dbLastShow = null, $comparison = null) - { - if (is_array($dbLastShow)) { - $useMinMax = false; - if (isset($dbLastShow['min'])) { - $this->addUsingAlias(CcShowDaysPeer::LAST_SHOW, $dbLastShow['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbLastShow['max'])) { - $this->addUsingAlias(CcShowDaysPeer::LAST_SHOW, $dbLastShow['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowDaysPeer::LAST_SHOW, $dbLastShow, $comparison); - } - - /** - * Filter the query on the start_time column - * - * @param string|array $dbStartTime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowDaysQuery The current query, for fluid interface - */ - public function filterByDbStartTime($dbStartTime = null, $comparison = null) - { - if (is_array($dbStartTime)) { - $useMinMax = false; - if (isset($dbStartTime['min'])) { - $this->addUsingAlias(CcShowDaysPeer::START_TIME, $dbStartTime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbStartTime['max'])) { - $this->addUsingAlias(CcShowDaysPeer::START_TIME, $dbStartTime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowDaysPeer::START_TIME, $dbStartTime, $comparison); - } - - /** - * Filter the query on the timezone column - * - * @param string $dbTimezone 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 CcShowDaysQuery The current query, for fluid interface - */ - public function filterByDbTimezone($dbTimezone = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbTimezone)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbTimezone)) { - $dbTimezone = str_replace('*', '%', $dbTimezone); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcShowDaysPeer::TIMEZONE, $dbTimezone, $comparison); - } - - /** - * Filter the query on the duration column - * - * @param string $dbDuration 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 CcShowDaysQuery The current query, for fluid interface - */ - public function filterByDbDuration($dbDuration = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbDuration)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbDuration)) { - $dbDuration = str_replace('*', '%', $dbDuration); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcShowDaysPeer::DURATION, $dbDuration, $comparison); - } - - /** - * Filter the query on the day column - * - * @param int|array $dbDay The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowDaysQuery The current query, for fluid interface - */ - public function filterByDbDay($dbDay = null, $comparison = null) - { - if (is_array($dbDay)) { - $useMinMax = false; - if (isset($dbDay['min'])) { - $this->addUsingAlias(CcShowDaysPeer::DAY, $dbDay['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbDay['max'])) { - $this->addUsingAlias(CcShowDaysPeer::DAY, $dbDay['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowDaysPeer::DAY, $dbDay, $comparison); - } - - /** - * Filter the query on the repeat_type column - * - * @param int|array $dbRepeatType The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowDaysQuery The current query, for fluid interface - */ - public function filterByDbRepeatType($dbRepeatType = null, $comparison = null) - { - if (is_array($dbRepeatType)) { - $useMinMax = false; - if (isset($dbRepeatType['min'])) { - $this->addUsingAlias(CcShowDaysPeer::REPEAT_TYPE, $dbRepeatType['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbRepeatType['max'])) { - $this->addUsingAlias(CcShowDaysPeer::REPEAT_TYPE, $dbRepeatType['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowDaysPeer::REPEAT_TYPE, $dbRepeatType, $comparison); - } - - /** - * Filter the query on the next_pop_date column - * - * @param string|array $dbNextPopDate The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowDaysQuery The current query, for fluid interface - */ - public function filterByDbNextPopDate($dbNextPopDate = null, $comparison = null) - { - if (is_array($dbNextPopDate)) { - $useMinMax = false; - if (isset($dbNextPopDate['min'])) { - $this->addUsingAlias(CcShowDaysPeer::NEXT_POP_DATE, $dbNextPopDate['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbNextPopDate['max'])) { - $this->addUsingAlias(CcShowDaysPeer::NEXT_POP_DATE, $dbNextPopDate['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowDaysPeer::NEXT_POP_DATE, $dbNextPopDate, $comparison); - } - - /** - * Filter the query on the show_id column - * - * @param int|array $dbShowId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowDaysQuery The current query, for fluid interface - */ - public function filterByDbShowId($dbShowId = null, $comparison = null) - { - if (is_array($dbShowId)) { - $useMinMax = false; - if (isset($dbShowId['min'])) { - $this->addUsingAlias(CcShowDaysPeer::SHOW_ID, $dbShowId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbShowId['max'])) { - $this->addUsingAlias(CcShowDaysPeer::SHOW_ID, $dbShowId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowDaysPeer::SHOW_ID, $dbShowId, $comparison); - } - - /** - * Filter the query on the record column - * - * @param int|array $dbRecord The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowDaysQuery The current query, for fluid interface - */ - public function filterByDbRecord($dbRecord = null, $comparison = null) - { - if (is_array($dbRecord)) { - $useMinMax = false; - if (isset($dbRecord['min'])) { - $this->addUsingAlias(CcShowDaysPeer::RECORD, $dbRecord['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbRecord['max'])) { - $this->addUsingAlias(CcShowDaysPeer::RECORD, $dbRecord['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowDaysPeer::RECORD, $dbRecord, $comparison); - } - - /** - * Filter the query by a related CcShow object - * - * @param CcShow $ccShow the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowDaysQuery The current query, for fluid interface - */ - public function filterByCcShow($ccShow, $comparison = null) - { - return $this - ->addUsingAlias(CcShowDaysPeer::SHOW_ID, $ccShow->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcShow relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcShowDaysQuery The current query, for fluid interface - */ - public function joinCcShow($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcShow'); - - // 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, 'CcShow'); - } - - return $this; - } - - /** - * Use the CcShow relation CcShow 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 CcShowQuery A secondary query class using the current class as primary query - */ - public function useCcShowQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcShow($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcShow', 'CcShowQuery'); - } - - /** - * Exclude object from result - * - * @param CcShowDays $ccShowDays Object to remove from the list of results - * - * @return CcShowDaysQuery The current query, for fluid interface - */ - public function prune($ccShowDays = null) - { - if ($ccShowDays) { - $this->addUsingAlias(CcShowDaysPeer::ID, $ccShowDays->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcShowDaysQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShowHosts.php b/airtime_mvc/application/models/airtime/om/BaseCcShowHosts.php index ca4d11449f..6b6e5eb231 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShowHosts.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShowHosts.php @@ -4,933 +4,1077 @@ /** * Base class that represents a row from the 'cc_show_hosts' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcShowHosts extends BaseObject implements Persistent +abstract class BaseCcShowHosts extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcShowHostsPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcShowHostsPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the show_id field. - * @var int - */ - protected $show_id; - - /** - * The value for the subjs_id field. - * @var int - */ - protected $subjs_id; - - /** - * @var CcShow - */ - protected $aCcShow; - - /** - * @var CcSubjs - */ - protected $aCcSubjs; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [show_id] column value. - * - * @return int - */ - public function getDbShow() - { - return $this->show_id; - } - - /** - * Get the [subjs_id] column value. - * - * @return int - */ - public function getDbHost() - { - return $this->subjs_id; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcShowHosts The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcShowHostsPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [show_id] column. - * - * @param int $v new value - * @return CcShowHosts The current object (for fluent API support) - */ - public function setDbShow($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->show_id !== $v) { - $this->show_id = $v; - $this->modifiedColumns[] = CcShowHostsPeer::SHOW_ID; - } - - if ($this->aCcShow !== null && $this->aCcShow->getDbId() !== $v) { - $this->aCcShow = null; - } - - return $this; - } // setDbShow() - - /** - * Set the value of [subjs_id] column. - * - * @param int $v new value - * @return CcShowHosts The current object (for fluent API support) - */ - public function setDbHost($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->subjs_id !== $v) { - $this->subjs_id = $v; - $this->modifiedColumns[] = CcShowHostsPeer::SUBJS_ID; - } - - if ($this->aCcSubjs !== null && $this->aCcSubjs->getDbId() !== $v) { - $this->aCcSubjs = null; - } - - return $this; - } // setDbHost() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->show_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; - $this->subjs_id = ($row[$startcol + 2] !== null) ? (int) $row[$startcol + 2] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 3; // 3 = CcShowHostsPeer::NUM_COLUMNS - CcShowHostsPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcShowHosts object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcShow !== null && $this->show_id !== $this->aCcShow->getDbId()) { - $this->aCcShow = null; - } - if ($this->aCcSubjs !== null && $this->subjs_id !== $this->aCcSubjs->getDbId()) { - $this->aCcSubjs = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcShowHostsPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcShow = null; - $this->aCcSubjs = null; - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcShowHostsQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcShowHostsPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcShow !== null) { - if ($this->aCcShow->isModified() || $this->aCcShow->isNew()) { - $affectedRows += $this->aCcShow->save($con); - } - $this->setCcShow($this->aCcShow); - } - - if ($this->aCcSubjs !== null) { - if ($this->aCcSubjs->isModified() || $this->aCcSubjs->isNew()) { - $affectedRows += $this->aCcSubjs->save($con); - } - $this->setCcSubjs($this->aCcSubjs); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcShowHostsPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcShowHostsPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowHostsPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcShowHostsPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcShow !== null) { - if (!$this->aCcShow->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcShow->getValidationFailures()); - } - } - - if ($this->aCcSubjs !== null) { - if (!$this->aCcSubjs->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcSubjs->getValidationFailures()); - } - } - - - if (($retval = CcShowHostsPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcShowHostsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbShow(); - break; - case 2: - return $this->getDbHost(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcShowHostsPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbShow(), - $keys[2] => $this->getDbHost(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcShow) { - $result['CcShow'] = $this->aCcShow->toArray($keyType, $includeLazyLoadColumns, true); - } - if (null !== $this->aCcSubjs) { - $result['CcSubjs'] = $this->aCcSubjs->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcShowHostsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbShow($value); - break; - case 2: - $this->setDbHost($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcShowHostsPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbShow($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbHost($arr[$keys[2]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcShowHostsPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcShowHostsPeer::ID)) $criteria->add(CcShowHostsPeer::ID, $this->id); - if ($this->isColumnModified(CcShowHostsPeer::SHOW_ID)) $criteria->add(CcShowHostsPeer::SHOW_ID, $this->show_id); - if ($this->isColumnModified(CcShowHostsPeer::SUBJS_ID)) $criteria->add(CcShowHostsPeer::SUBJS_ID, $this->subjs_id); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcShowHostsPeer::DATABASE_NAME); - $criteria->add(CcShowHostsPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcShowHosts (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbShow($this->show_id); - $copyObj->setDbHost($this->subjs_id); - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcShowHosts Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcShowHostsPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcShowHostsPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcShow object. - * - * @param CcShow $v - * @return CcShowHosts The current object (for fluent API support) - * @throws PropelException - */ - public function setCcShow(CcShow $v = null) - { - if ($v === null) { - $this->setDbShow(NULL); - } else { - $this->setDbShow($v->getDbId()); - } - - $this->aCcShow = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcShow object, it will not be re-added. - if ($v !== null) { - $v->addCcShowHosts($this); - } - - return $this; - } - - - /** - * Get the associated CcShow object - * - * @param PropelPDO Optional Connection object. - * @return CcShow The associated CcShow object. - * @throws PropelException - */ - public function getCcShow(PropelPDO $con = null) - { - if ($this->aCcShow === null && ($this->show_id !== null)) { - $this->aCcShow = CcShowQuery::create()->findPk($this->show_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcShow->addCcShowHostss($this); - */ - } - return $this->aCcShow; - } - - /** - * Declares an association between this object and a CcSubjs object. - * - * @param CcSubjs $v - * @return CcShowHosts The current object (for fluent API support) - * @throws PropelException - */ - public function setCcSubjs(CcSubjs $v = null) - { - if ($v === null) { - $this->setDbHost(NULL); - } else { - $this->setDbHost($v->getDbId()); - } - - $this->aCcSubjs = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcSubjs object, it will not be re-added. - if ($v !== null) { - $v->addCcShowHosts($this); - } - - return $this; - } - - - /** - * Get the associated CcSubjs object - * - * @param PropelPDO Optional Connection object. - * @return CcSubjs The associated CcSubjs object. - * @throws PropelException - */ - public function getCcSubjs(PropelPDO $con = null) - { - if ($this->aCcSubjs === null && ($this->subjs_id !== null)) { - $this->aCcSubjs = CcSubjsQuery::create()->findPk($this->subjs_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcSubjs->addCcShowHostss($this); - */ - } - return $this->aCcSubjs; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->show_id = null; - $this->subjs_id = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - $this->aCcShow = null; - $this->aCcSubjs = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcShowHosts + /** + * Peer class name + */ + const PEER = 'CcShowHostsPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcShowHostsPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the show_id field. + * @var int + */ + protected $show_id; + + /** + * The value for the subjs_id field. + * @var int + */ + protected $subjs_id; + + /** + * @var CcShow + */ + protected $aCcShow; + + /** + * @var CcSubjs + */ + protected $aCcSubjs; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [show_id] column value. + * + * @return int + */ + public function getDbShow() + { + + return $this->show_id; + } + + /** + * Get the [subjs_id] column value. + * + * @return int + */ + public function getDbHost() + { + + return $this->subjs_id; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcShowHosts The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcShowHostsPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [show_id] column. + * + * @param int $v new value + * @return CcShowHosts The current object (for fluent API support) + */ + public function setDbShow($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->show_id !== $v) { + $this->show_id = $v; + $this->modifiedColumns[] = CcShowHostsPeer::SHOW_ID; + } + + if ($this->aCcShow !== null && $this->aCcShow->getDbId() !== $v) { + $this->aCcShow = null; + } + + + return $this; + } // setDbShow() + + /** + * Set the value of [subjs_id] column. + * + * @param int $v new value + * @return CcShowHosts The current object (for fluent API support) + */ + public function setDbHost($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->subjs_id !== $v) { + $this->subjs_id = $v; + $this->modifiedColumns[] = CcShowHostsPeer::SUBJS_ID; + } + + if ($this->aCcSubjs !== null && $this->aCcSubjs->getDbId() !== $v) { + $this->aCcSubjs = null; + } + + + return $this; + } // setDbHost() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->show_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; + $this->subjs_id = ($row[$startcol + 2] !== null) ? (int) $row[$startcol + 2] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 3; // 3 = CcShowHostsPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcShowHosts object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcShow !== null && $this->show_id !== $this->aCcShow->getDbId()) { + $this->aCcShow = null; + } + if ($this->aCcSubjs !== null && $this->subjs_id !== $this->aCcSubjs->getDbId()) { + $this->aCcSubjs = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcShowHostsPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcShow = null; + $this->aCcSubjs = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcShowHostsQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcShowHostsPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcShow !== null) { + if ($this->aCcShow->isModified() || $this->aCcShow->isNew()) { + $affectedRows += $this->aCcShow->save($con); + } + $this->setCcShow($this->aCcShow); + } + + if ($this->aCcSubjs !== null) { + if ($this->aCcSubjs->isModified() || $this->aCcSubjs->isNew()) { + $affectedRows += $this->aCcSubjs->save($con); + } + $this->setCcSubjs($this->aCcSubjs); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcShowHostsPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcShowHostsPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_show_hosts_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcShowHostsPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcShowHostsPeer::SHOW_ID)) { + $modifiedColumns[':p' . $index++] = '"show_id"'; + } + if ($this->isColumnModified(CcShowHostsPeer::SUBJS_ID)) { + $modifiedColumns[':p' . $index++] = '"subjs_id"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_show_hosts" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"show_id"': + $stmt->bindValue($identifier, $this->show_id, PDO::PARAM_INT); + break; + case '"subjs_id"': + $stmt->bindValue($identifier, $this->subjs_id, PDO::PARAM_INT); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcShow !== null) { + if (!$this->aCcShow->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcShow->getValidationFailures()); + } + } + + if ($this->aCcSubjs !== null) { + if (!$this->aCcSubjs->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcSubjs->getValidationFailures()); + } + } + + + if (($retval = CcShowHostsPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcShowHostsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbShow(); + break; + case 2: + return $this->getDbHost(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcShowHosts'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcShowHosts'][$this->getPrimaryKey()] = true; + $keys = CcShowHostsPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbShow(), + $keys[2] => $this->getDbHost(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcShow) { + $result['CcShow'] = $this->aCcShow->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aCcSubjs) { + $result['CcSubjs'] = $this->aCcSubjs->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcShowHostsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbShow($value); + break; + case 2: + $this->setDbHost($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcShowHostsPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbShow($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbHost($arr[$keys[2]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcShowHostsPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcShowHostsPeer::ID)) $criteria->add(CcShowHostsPeer::ID, $this->id); + if ($this->isColumnModified(CcShowHostsPeer::SHOW_ID)) $criteria->add(CcShowHostsPeer::SHOW_ID, $this->show_id); + if ($this->isColumnModified(CcShowHostsPeer::SUBJS_ID)) $criteria->add(CcShowHostsPeer::SUBJS_ID, $this->subjs_id); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcShowHostsPeer::DATABASE_NAME); + $criteria->add(CcShowHostsPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcShowHosts (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbShow($this->getDbShow()); + $copyObj->setDbHost($this->getDbHost()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcShowHosts Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcShowHostsPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcShowHostsPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcShow object. + * + * @param CcShow $v + * @return CcShowHosts The current object (for fluent API support) + * @throws PropelException + */ + public function setCcShow(CcShow $v = null) + { + if ($v === null) { + $this->setDbShow(NULL); + } else { + $this->setDbShow($v->getDbId()); + } + + $this->aCcShow = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcShow object, it will not be re-added. + if ($v !== null) { + $v->addCcShowHosts($this); + } + + + return $this; + } + + + /** + * Get the associated CcShow object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcShow The associated CcShow object. + * @throws PropelException + */ + public function getCcShow(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcShow === null && ($this->show_id !== null) && $doQuery) { + $this->aCcShow = CcShowQuery::create()->findPk($this->show_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcShow->addCcShowHostss($this); + */ + } + + return $this->aCcShow; + } + + /** + * Declares an association between this object and a CcSubjs object. + * + * @param CcSubjs $v + * @return CcShowHosts The current object (for fluent API support) + * @throws PropelException + */ + public function setCcSubjs(CcSubjs $v = null) + { + if ($v === null) { + $this->setDbHost(NULL); + } else { + $this->setDbHost($v->getDbId()); + } + + $this->aCcSubjs = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcSubjs object, it will not be re-added. + if ($v !== null) { + $v->addCcShowHosts($this); + } + + + return $this; + } + + + /** + * Get the associated CcSubjs object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcSubjs The associated CcSubjs object. + * @throws PropelException + */ + public function getCcSubjs(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcSubjs === null && ($this->subjs_id !== null) && $doQuery) { + $this->aCcSubjs = CcSubjsQuery::create()->findPk($this->subjs_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcSubjs->addCcShowHostss($this); + */ + } + + return $this->aCcSubjs; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->show_id = null; + $this->subjs_id = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcShow instanceof Persistent) { + $this->aCcShow->clearAllReferences($deep); + } + if ($this->aCcSubjs instanceof Persistent) { + $this->aCcSubjs->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcShow = null; + $this->aCcSubjs = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcShowHostsPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShowHostsPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcShowHostsPeer.php index 33a82f0d96..c21c3e985d 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShowHostsPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShowHostsPeer.php @@ -4,1358 +4,1390 @@ /** * Base static class for performing query and update operations on the 'cc_show_hosts' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcShowHostsPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_show_hosts'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcShowHosts'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcShowHosts'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcShowHostsTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 3; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_show_hosts.ID'; - - /** the column name for the SHOW_ID field */ - const SHOW_ID = 'cc_show_hosts.SHOW_ID'; - - /** the column name for the SUBJS_ID field */ - const SUBJS_ID = 'cc_show_hosts.SUBJS_ID'; - - /** - * An identiy map to hold any loaded instances of CcShowHosts objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcShowHosts[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbShow', 'DbHost', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbShow', 'dbHost', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::SHOW_ID, self::SUBJS_ID, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'SHOW_ID', 'SUBJS_ID', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'show_id', 'subjs_id', ), - BasePeer::TYPE_NUM => array (0, 1, 2, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbShow' => 1, 'DbHost' => 2, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbShow' => 1, 'dbHost' => 2, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::SHOW_ID => 1, self::SUBJS_ID => 2, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'SHOW_ID' => 1, 'SUBJS_ID' => 2, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'show_id' => 1, 'subjs_id' => 2, ), - BasePeer::TYPE_NUM => array (0, 1, 2, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcShowHostsPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcShowHostsPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcShowHostsPeer::ID); - $criteria->addSelectColumn(CcShowHostsPeer::SHOW_ID); - $criteria->addSelectColumn(CcShowHostsPeer::SUBJS_ID); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.SHOW_ID'); - $criteria->addSelectColumn($alias . '.SUBJS_ID'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowHostsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowHostsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcShowHosts - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcShowHostsPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcShowHostsPeer::populateObjects(CcShowHostsPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcShowHostsPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcShowHosts $value A CcShowHosts object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcShowHosts $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcShowHosts object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcShowHosts) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcShowHosts object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcShowHosts Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_show_hosts - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcShowHostsPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcShowHostsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcShowHostsPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcShowHostsPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcShowHosts object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcShowHostsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcShowHostsPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcShowHostsPeer::NUM_COLUMNS; - } else { - $cls = CcShowHostsPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcShowHostsPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcShow table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcShow(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowHostsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowHostsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowHostsPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcSubjs table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowHostsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowHostsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowHostsPeer::SUBJS_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcShowHosts objects pre-filled with their CcShow objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowHosts objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcShow(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowHostsPeer::addSelectColumns($criteria); - $startcol = (CcShowHostsPeer::NUM_COLUMNS - CcShowHostsPeer::NUM_LAZY_LOAD_COLUMNS); - CcShowPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcShowHostsPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowHostsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowHostsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcShowHostsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowHostsPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcShowPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcShowPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcShowHosts) to $obj2 (CcShow) - $obj2->addCcShowHosts($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcShowHosts objects pre-filled with their CcSubjs objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowHosts objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowHostsPeer::addSelectColumns($criteria); - $startcol = (CcShowHostsPeer::NUM_COLUMNS - CcShowHostsPeer::NUM_LAZY_LOAD_COLUMNS); - CcSubjsPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcShowHostsPeer::SUBJS_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowHostsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowHostsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcShowHostsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowHostsPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcShowHosts) to $obj2 (CcSubjs) - $obj2->addCcShowHosts($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowHostsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowHostsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowHostsPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $criteria->addJoin(CcShowHostsPeer::SUBJS_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcShowHosts objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowHosts objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowHostsPeer::addSelectColumns($criteria); - $startcol2 = (CcShowHostsPeer::NUM_COLUMNS - CcShowHostsPeer::NUM_LAZY_LOAD_COLUMNS); - - CcShowPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcShowPeer::NUM_COLUMNS - CcShowPeer::NUM_LAZY_LOAD_COLUMNS); - - CcSubjsPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcSubjsPeer::NUM_COLUMNS - CcSubjsPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcShowHostsPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $criteria->addJoin(CcShowHostsPeer::SUBJS_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowHostsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowHostsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcShowHostsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowHostsPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcShow rows - - $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcShowPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcShowPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcShowHosts) to the collection in $obj2 (CcShow) - $obj2->addCcShowHosts($obj1); - } // if joined row not null - - // Add objects for joined CcSubjs rows - - $key3 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcSubjsPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcSubjsPeer::addInstanceToPool($obj3, $key3); - } // if obj3 loaded - - // Add the $obj1 (CcShowHosts) to the collection in $obj3 (CcSubjs) - $obj3->addCcShowHosts($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcShow table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcShow(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowHostsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowHostsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowHostsPeer::SUBJS_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcSubjs table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowHostsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowHostsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowHostsPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcShowHosts objects pre-filled with all related objects except CcShow. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowHosts objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcShow(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowHostsPeer::addSelectColumns($criteria); - $startcol2 = (CcShowHostsPeer::NUM_COLUMNS - CcShowHostsPeer::NUM_LAZY_LOAD_COLUMNS); - - CcSubjsPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcSubjsPeer::NUM_COLUMNS - CcSubjsPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcShowHostsPeer::SUBJS_ID, CcSubjsPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowHostsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowHostsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcShowHostsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowHostsPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcSubjs rows - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcShowHosts) to the collection in $obj2 (CcSubjs) - $obj2->addCcShowHosts($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcShowHosts objects pre-filled with all related objects except CcSubjs. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowHosts objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowHostsPeer::addSelectColumns($criteria); - $startcol2 = (CcShowHostsPeer::NUM_COLUMNS - CcShowHostsPeer::NUM_LAZY_LOAD_COLUMNS); - - CcShowPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcShowPeer::NUM_COLUMNS - CcShowPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcShowHostsPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowHostsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowHostsPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcShowHostsPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowHostsPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcShow rows - - $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcShowPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcShowPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcShowHosts) to the collection in $obj2 (CcShow) - $obj2->addCcShowHosts($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcShowHostsPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcShowHostsPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcShowHostsTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcShowHostsPeer::CLASS_DEFAULT : CcShowHostsPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcShowHosts or Criteria object. - * - * @param mixed $values Criteria or CcShowHosts object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcShowHosts object - } - - if ($criteria->containsKey(CcShowHostsPeer::ID) && $criteria->keyContainsValue(CcShowHostsPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowHostsPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcShowHosts or Criteria object. - * - * @param mixed $values Criteria or CcShowHosts object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcShowHostsPeer::ID); - $value = $criteria->remove(CcShowHostsPeer::ID); - if ($value) { - $selectCriteria->add(CcShowHostsPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcShowHostsPeer::TABLE_NAME); - } - - } else { // $values is CcShowHosts object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_show_hosts table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcShowHostsPeer::TABLE_NAME, $con, CcShowHostsPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcShowHostsPeer::clearInstancePool(); - CcShowHostsPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcShowHosts or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcShowHosts object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcShowHostsPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcShowHosts) { // it's a model object - // invalidate the cache for this single object - CcShowHostsPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcShowHostsPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcShowHostsPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcShowHostsPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcShowHosts object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcShowHosts $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcShowHosts $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcShowHostsPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcShowHostsPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcShowHostsPeer::DATABASE_NAME, CcShowHostsPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcShowHosts - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcShowHostsPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcShowHostsPeer::DATABASE_NAME); - $criteria->add(CcShowHostsPeer::ID, $pk); - - $v = CcShowHostsPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcShowHostsPeer::DATABASE_NAME); - $criteria->add(CcShowHostsPeer::ID, $pks, Criteria::IN); - $objs = CcShowHostsPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcShowHostsPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_show_hosts'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcShowHosts'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcShowHostsTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 3; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 3; + + /** the column name for the id field */ + const ID = 'cc_show_hosts.id'; + + /** the column name for the show_id field */ + const SHOW_ID = 'cc_show_hosts.show_id'; + + /** the column name for the subjs_id field */ + const SUBJS_ID = 'cc_show_hosts.subjs_id'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcShowHosts objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcShowHosts[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcShowHostsPeer::$fieldNames[CcShowHostsPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbShow', 'DbHost', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbShow', 'dbHost', ), + BasePeer::TYPE_COLNAME => array (CcShowHostsPeer::ID, CcShowHostsPeer::SHOW_ID, CcShowHostsPeer::SUBJS_ID, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'SHOW_ID', 'SUBJS_ID', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'show_id', 'subjs_id', ), + BasePeer::TYPE_NUM => array (0, 1, 2, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcShowHostsPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbShow' => 1, 'DbHost' => 2, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbShow' => 1, 'dbHost' => 2, ), + BasePeer::TYPE_COLNAME => array (CcShowHostsPeer::ID => 0, CcShowHostsPeer::SHOW_ID => 1, CcShowHostsPeer::SUBJS_ID => 2, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'SHOW_ID' => 1, 'SUBJS_ID' => 2, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'show_id' => 1, 'subjs_id' => 2, ), + BasePeer::TYPE_NUM => array (0, 1, 2, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcShowHostsPeer::getFieldNames($toType); + $key = isset(CcShowHostsPeer::$fieldKeys[$fromType][$name]) ? CcShowHostsPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcShowHostsPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcShowHostsPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcShowHostsPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcShowHostsPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcShowHostsPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcShowHostsPeer::ID); + $criteria->addSelectColumn(CcShowHostsPeer::SHOW_ID); + $criteria->addSelectColumn(CcShowHostsPeer::SUBJS_ID); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.show_id'); + $criteria->addSelectColumn($alias . '.subjs_id'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowHostsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowHostsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcShowHosts + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcShowHostsPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcShowHostsPeer::populateObjects(CcShowHostsPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcShowHostsPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcShowHosts $obj A CcShowHosts object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcShowHostsPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcShowHosts object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcShowHosts) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcShowHosts object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcShowHostsPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcShowHosts Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcShowHostsPeer::$instances[$key])) { + return CcShowHostsPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcShowHostsPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcShowHostsPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_show_hosts + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcShowHostsPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcShowHostsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcShowHostsPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcShowHostsPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcShowHosts object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcShowHostsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcShowHostsPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcShowHostsPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcShowHostsPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcShowHostsPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcShow table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcShow(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowHostsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowHostsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowHostsPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcSubjs table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowHostsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowHostsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowHostsPeer::SUBJS_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcShowHosts objects pre-filled with their CcShow objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowHosts objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcShow(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); + } + + CcShowHostsPeer::addSelectColumns($criteria); + $startcol = CcShowHostsPeer::NUM_HYDRATE_COLUMNS; + CcShowPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcShowHostsPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowHostsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowHostsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcShowHostsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowHostsPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcShowPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcShowPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcShowHosts) to $obj2 (CcShow) + $obj2->addCcShowHosts($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcShowHosts objects pre-filled with their CcSubjs objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowHosts objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); + } + + CcShowHostsPeer::addSelectColumns($criteria); + $startcol = CcShowHostsPeer::NUM_HYDRATE_COLUMNS; + CcSubjsPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcShowHostsPeer::SUBJS_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowHostsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowHostsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcShowHostsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowHostsPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcShowHosts) to $obj2 (CcSubjs) + $obj2->addCcShowHosts($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowHostsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowHostsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowHostsPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $criteria->addJoin(CcShowHostsPeer::SUBJS_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcShowHosts objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowHosts objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); + } + + CcShowHostsPeer::addSelectColumns($criteria); + $startcol2 = CcShowHostsPeer::NUM_HYDRATE_COLUMNS; + + CcShowPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcShowPeer::NUM_HYDRATE_COLUMNS; + + CcSubjsPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcSubjsPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcShowHostsPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $criteria->addJoin(CcShowHostsPeer::SUBJS_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowHostsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowHostsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcShowHostsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowHostsPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcShow rows + + $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcShowPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcShowPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcShowHosts) to the collection in $obj2 (CcShow) + $obj2->addCcShowHosts($obj1); + } // if joined row not null + + // Add objects for joined CcSubjs rows + + $key3 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcSubjsPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcSubjsPeer::addInstanceToPool($obj3, $key3); + } // if obj3 loaded + + // Add the $obj1 (CcShowHosts) to the collection in $obj3 (CcSubjs) + $obj3->addCcShowHosts($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcShow table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcShow(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowHostsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowHostsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowHostsPeer::SUBJS_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcSubjs table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowHostsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowHostsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowHostsPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcShowHosts objects pre-filled with all related objects except CcShow. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowHosts objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcShow(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); + } + + CcShowHostsPeer::addSelectColumns($criteria); + $startcol2 = CcShowHostsPeer::NUM_HYDRATE_COLUMNS; + + CcSubjsPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcSubjsPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcShowHostsPeer::SUBJS_ID, CcSubjsPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowHostsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowHostsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcShowHostsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowHostsPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcSubjs rows + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcShowHosts) to the collection in $obj2 (CcSubjs) + $obj2->addCcShowHosts($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcShowHosts objects pre-filled with all related objects except CcSubjs. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowHosts objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); + } + + CcShowHostsPeer::addSelectColumns($criteria); + $startcol2 = CcShowHostsPeer::NUM_HYDRATE_COLUMNS; + + CcShowPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcShowPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcShowHostsPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowHostsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowHostsPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcShowHostsPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowHostsPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcShow rows + + $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcShowPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcShowPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcShowHosts) to the collection in $obj2 (CcShow) + $obj2->addCcShowHosts($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcShowHostsPeer::DATABASE_NAME)->getTable(CcShowHostsPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcShowHostsPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcShowHostsPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcShowHostsTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcShowHostsPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcShowHosts or Criteria object. + * + * @param mixed $values Criteria or CcShowHosts object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcShowHosts object + } + + if ($criteria->containsKey(CcShowHostsPeer::ID) && $criteria->keyContainsValue(CcShowHostsPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowHostsPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcShowHosts or Criteria object. + * + * @param mixed $values Criteria or CcShowHosts object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcShowHostsPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcShowHostsPeer::ID); + $value = $criteria->remove(CcShowHostsPeer::ID); + if ($value) { + $selectCriteria->add(CcShowHostsPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcShowHostsPeer::TABLE_NAME); + } + + } else { // $values is CcShowHosts object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_show_hosts table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcShowHostsPeer::TABLE_NAME, $con, CcShowHostsPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcShowHostsPeer::clearInstancePool(); + CcShowHostsPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcShowHosts or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcShowHosts object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcShowHostsPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcShowHosts) { // it's a model object + // invalidate the cache for this single object + CcShowHostsPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcShowHostsPeer::DATABASE_NAME); + $criteria->add(CcShowHostsPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcShowHostsPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcShowHostsPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcShowHostsPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcShowHosts object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcShowHosts $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcShowHostsPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcShowHostsPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcShowHostsPeer::DATABASE_NAME, CcShowHostsPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcShowHosts + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcShowHostsPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcShowHostsPeer::DATABASE_NAME); + $criteria->add(CcShowHostsPeer::ID, $pk); + + $v = CcShowHostsPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcShowHosts[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcShowHostsPeer::DATABASE_NAME); + $criteria->add(CcShowHostsPeer::ID, $pks, Criteria::IN); + $objs = CcShowHostsPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcShowHostsPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShowHostsQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcShowHostsQuery.php index 2b910a52bf..22410c852e 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShowHostsQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShowHostsQuery.php @@ -4,368 +4,529 @@ /** * Base class that represents a query for the 'cc_show_hosts' table. * - * * - * @method CcShowHostsQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcShowHostsQuery orderByDbShow($order = Criteria::ASC) Order by the show_id column - * @method CcShowHostsQuery orderByDbHost($order = Criteria::ASC) Order by the subjs_id column * - * @method CcShowHostsQuery groupByDbId() Group by the id column - * @method CcShowHostsQuery groupByDbShow() Group by the show_id column - * @method CcShowHostsQuery groupByDbHost() Group by the subjs_id column + * @method CcShowHostsQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcShowHostsQuery orderByDbShow($order = Criteria::ASC) Order by the show_id column + * @method CcShowHostsQuery orderByDbHost($order = Criteria::ASC) Order by the subjs_id column * - * @method CcShowHostsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcShowHostsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcShowHostsQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcShowHostsQuery groupByDbId() Group by the id column + * @method CcShowHostsQuery groupByDbShow() Group by the show_id column + * @method CcShowHostsQuery groupByDbHost() Group by the subjs_id column * - * @method CcShowHostsQuery leftJoinCcShow($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShow relation - * @method CcShowHostsQuery rightJoinCcShow($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShow relation - * @method CcShowHostsQuery innerJoinCcShow($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShow relation + * @method CcShowHostsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcShowHostsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcShowHostsQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcShowHostsQuery leftJoinCcSubjs($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSubjs relation - * @method CcShowHostsQuery rightJoinCcSubjs($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSubjs relation - * @method CcShowHostsQuery innerJoinCcSubjs($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSubjs relation + * @method CcShowHostsQuery leftJoinCcShow($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcShow relation + * @method CcShowHostsQuery rightJoinCcShow($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcShow relation + * @method CcShowHostsQuery innerJoinCcShow($relationAlias = null) Adds a INNER JOIN clause to the query using the CcShow relation * - * @method CcShowHosts findOne(PropelPDO $con = null) Return the first CcShowHosts matching the query - * @method CcShowHosts findOneOrCreate(PropelPDO $con = null) Return the first CcShowHosts matching the query, or a new CcShowHosts object populated from the query conditions when no match is found + * @method CcShowHostsQuery leftJoinCcSubjs($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSubjs relation + * @method CcShowHostsQuery rightJoinCcSubjs($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSubjs relation + * @method CcShowHostsQuery innerJoinCcSubjs($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSubjs relation * - * @method CcShowHosts findOneByDbId(int $id) Return the first CcShowHosts filtered by the id column - * @method CcShowHosts findOneByDbShow(int $show_id) Return the first CcShowHosts filtered by the show_id column - * @method CcShowHosts findOneByDbHost(int $subjs_id) Return the first CcShowHosts filtered by the subjs_id column + * @method CcShowHosts findOne(PropelPDO $con = null) Return the first CcShowHosts matching the query + * @method CcShowHosts findOneOrCreate(PropelPDO $con = null) Return the first CcShowHosts matching the query, or a new CcShowHosts object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcShowHosts objects filtered by the id column - * @method array findByDbShow(int $show_id) Return CcShowHosts objects filtered by the show_id column - * @method array findByDbHost(int $subjs_id) Return CcShowHosts objects filtered by the subjs_id column + * @method CcShowHosts findOneByDbShow(int $show_id) Return the first CcShowHosts filtered by the show_id column + * @method CcShowHosts findOneByDbHost(int $subjs_id) Return the first CcShowHosts filtered by the subjs_id column + * + * @method array findByDbId(int $id) Return CcShowHosts objects filtered by the id column + * @method array findByDbShow(int $show_id) Return CcShowHosts objects filtered by the show_id column + * @method array findByDbHost(int $subjs_id) Return CcShowHosts objects filtered by the subjs_id column * * @package propel.generator.airtime.om */ abstract class BaseCcShowHostsQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcShowHostsQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcShowHosts'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcShowHostsQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcShowHostsQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcShowHostsQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcShowHostsQuery) { + return $criteria; + } + $query = new CcShowHostsQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcShowHosts|CcShowHosts[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcShowHostsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcShowHostsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShowHosts A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShowHosts A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "show_id", "subjs_id" FROM "cc_show_hosts" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcShowHosts(); + $obj->hydrate($row); + CcShowHostsPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShowHosts|CcShowHosts[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcShowHosts[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcShowHostsQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcShowHostsPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcShowHostsQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcShowHostsPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowHostsQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcShowHostsPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcShowHostsPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowHostsPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the show_id column + * + * Example usage: + * + * $query->filterByDbShow(1234); // WHERE show_id = 1234 + * $query->filterByDbShow(array(12, 34)); // WHERE show_id IN (12, 34) + * $query->filterByDbShow(array('min' => 12)); // WHERE show_id >= 12 + * $query->filterByDbShow(array('max' => 12)); // WHERE show_id <= 12 + * + * + * @see filterByCcShow() + * + * @param mixed $dbShow The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowHostsQuery The current query, for fluid interface + */ + public function filterByDbShow($dbShow = null, $comparison = null) + { + if (is_array($dbShow)) { + $useMinMax = false; + if (isset($dbShow['min'])) { + $this->addUsingAlias(CcShowHostsPeer::SHOW_ID, $dbShow['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbShow['max'])) { + $this->addUsingAlias(CcShowHostsPeer::SHOW_ID, $dbShow['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowHostsPeer::SHOW_ID, $dbShow, $comparison); + } + + /** + * Filter the query on the subjs_id column + * + * Example usage: + * + * $query->filterByDbHost(1234); // WHERE subjs_id = 1234 + * $query->filterByDbHost(array(12, 34)); // WHERE subjs_id IN (12, 34) + * $query->filterByDbHost(array('min' => 12)); // WHERE subjs_id >= 12 + * $query->filterByDbHost(array('max' => 12)); // WHERE subjs_id <= 12 + * + * + * @see filterByCcSubjs() + * + * @param mixed $dbHost The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowHostsQuery The current query, for fluid interface + */ + public function filterByDbHost($dbHost = null, $comparison = null) + { + if (is_array($dbHost)) { + $useMinMax = false; + if (isset($dbHost['min'])) { + $this->addUsingAlias(CcShowHostsPeer::SUBJS_ID, $dbHost['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbHost['max'])) { + $this->addUsingAlias(CcShowHostsPeer::SUBJS_ID, $dbHost['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowHostsPeer::SUBJS_ID, $dbHost, $comparison); + } + + /** + * Filter the query by a related CcShow object + * + * @param CcShow|PropelObjectCollection $ccShow The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowHostsQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcShow($ccShow, $comparison = null) + { + if ($ccShow instanceof CcShow) { + return $this + ->addUsingAlias(CcShowHostsPeer::SHOW_ID, $ccShow->getDbId(), $comparison); + } elseif ($ccShow instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcShowHostsPeer::SHOW_ID, $ccShow->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcShow() only accepts arguments of type CcShow or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcShow relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcShowHostsQuery The current query, for fluid interface + */ + public function joinCcShow($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcShow'); + + // 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, 'CcShow'); + } + + return $this; + } + + /** + * Use the CcShow relation CcShow 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 CcShowQuery A secondary query class using the current class as primary query + */ + public function useCcShowQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcShow($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcShow', 'CcShowQuery'); + } + + /** + * Filter the query by a related CcSubjs object + * + * @param CcSubjs|PropelObjectCollection $ccSubjs The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowHostsQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcSubjs($ccSubjs, $comparison = null) + { + if ($ccSubjs instanceof CcSubjs) { + return $this + ->addUsingAlias(CcShowHostsPeer::SUBJS_ID, $ccSubjs->getDbId(), $comparison); + } elseif ($ccSubjs instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcShowHostsPeer::SUBJS_ID, $ccSubjs->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcSubjs() only accepts arguments of type CcSubjs or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcSubjs relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcShowHostsQuery The current query, for fluid interface + */ + public function joinCcSubjs($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcSubjs'); + + // 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, 'CcSubjs'); + } + + return $this; + } + + /** + * Use the CcSubjs relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query + */ + public function useCcSubjsQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcSubjs($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); + } + + /** + * Exclude object from result + * + * @param CcShowHosts $ccShowHosts Object to remove from the list of results + * + * @return CcShowHostsQuery The current query, for fluid interface + */ + public function prune($ccShowHosts = null) + { + if ($ccShowHosts) { + $this->addUsingAlias(CcShowHostsPeer::ID, $ccShowHosts->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcShowHostsQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcShowHosts', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcShowHostsQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcShowHostsQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcShowHostsQuery) { - return $criteria; - } - $query = new CcShowHostsQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcShowHosts|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcShowHostsPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcShowHostsQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcShowHostsPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcShowHostsQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcShowHostsPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowHostsQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcShowHostsPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the show_id column - * - * @param int|array $dbShow The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowHostsQuery The current query, for fluid interface - */ - public function filterByDbShow($dbShow = null, $comparison = null) - { - if (is_array($dbShow)) { - $useMinMax = false; - if (isset($dbShow['min'])) { - $this->addUsingAlias(CcShowHostsPeer::SHOW_ID, $dbShow['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbShow['max'])) { - $this->addUsingAlias(CcShowHostsPeer::SHOW_ID, $dbShow['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowHostsPeer::SHOW_ID, $dbShow, $comparison); - } - - /** - * Filter the query on the subjs_id column - * - * @param int|array $dbHost The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowHostsQuery The current query, for fluid interface - */ - public function filterByDbHost($dbHost = null, $comparison = null) - { - if (is_array($dbHost)) { - $useMinMax = false; - if (isset($dbHost['min'])) { - $this->addUsingAlias(CcShowHostsPeer::SUBJS_ID, $dbHost['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbHost['max'])) { - $this->addUsingAlias(CcShowHostsPeer::SUBJS_ID, $dbHost['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowHostsPeer::SUBJS_ID, $dbHost, $comparison); - } - - /** - * Filter the query by a related CcShow object - * - * @param CcShow $ccShow the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowHostsQuery The current query, for fluid interface - */ - public function filterByCcShow($ccShow, $comparison = null) - { - return $this - ->addUsingAlias(CcShowHostsPeer::SHOW_ID, $ccShow->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcShow relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcShowHostsQuery The current query, for fluid interface - */ - public function joinCcShow($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcShow'); - - // 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, 'CcShow'); - } - - return $this; - } - - /** - * Use the CcShow relation CcShow 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 CcShowQuery A secondary query class using the current class as primary query - */ - public function useCcShowQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcShow($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcShow', 'CcShowQuery'); - } - - /** - * Filter the query by a related CcSubjs object - * - * @param CcSubjs $ccSubjs the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowHostsQuery The current query, for fluid interface - */ - public function filterByCcSubjs($ccSubjs, $comparison = null) - { - return $this - ->addUsingAlias(CcShowHostsPeer::SUBJS_ID, $ccSubjs->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcSubjs relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcShowHostsQuery The current query, for fluid interface - */ - public function joinCcSubjs($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcSubjs'); - - // 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, 'CcSubjs'); - } - - return $this; - } - - /** - * Use the CcSubjs relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query - */ - public function useCcSubjsQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcSubjs($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); - } - - /** - * Exclude object from result - * - * @param CcShowHosts $ccShowHosts Object to remove from the list of results - * - * @return CcShowHostsQuery The current query, for fluid interface - */ - public function prune($ccShowHosts = null) - { - if ($ccShowHosts) { - $this->addUsingAlias(CcShowHostsPeer::ID, $ccShowHosts->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcShowHostsQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShowInstances.php b/airtime_mvc/application/models/airtime/om/BaseCcShowInstances.php index a783a8e209..1b4a38c4fe 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShowInstances.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShowInstances.php @@ -4,2262 +4,2817 @@ /** * Base class that represents a row from the 'cc_show_instances' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcShowInstances extends BaseObject implements Persistent +abstract class BaseCcShowInstances extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcShowInstancesPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcShowInstancesPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the starts field. - * @var string - */ - protected $starts; - - /** - * The value for the ends field. - * @var string - */ - protected $ends; - - /** - * The value for the show_id field. - * @var int - */ - protected $show_id; - - /** - * The value for the record field. - * Note: this column has a database default value of: 0 - * @var int - */ - protected $record; - - /** - * The value for the rebroadcast field. - * Note: this column has a database default value of: 0 - * @var int - */ - protected $rebroadcast; - - /** - * The value for the instance_id field. - * @var int - */ - protected $instance_id; - - /** - * The value for the file_id field. - * @var int - */ - protected $file_id; - - /** - * The value for the time_filled field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $time_filled; - - /** - * The value for the created field. - * @var string - */ - protected $created; - - /** - * The value for the last_scheduled field. - * @var string - */ - protected $last_scheduled; - - /** - * The value for the modified_instance field. - * Note: this column has a database default value of: false - * @var boolean - */ - protected $modified_instance; - - /** - * @var CcShow - */ - protected $aCcShow; - - /** - * @var CcShowInstances - */ - protected $aCcShowInstancesRelatedByDbOriginalShow; - - /** - * @var CcFiles - */ - protected $aCcFiles; - - /** - * @var array CcShowInstances[] Collection to store aggregation of CcShowInstances objects. - */ - protected $collCcShowInstancessRelatedByDbId; - - /** - * @var array CcSchedule[] Collection to store aggregation of CcSchedule objects. - */ - protected $collCcSchedules; - - /** - * @var array CcPlayoutHistory[] Collection to store aggregation of CcPlayoutHistory objects. - */ - protected $collCcPlayoutHistorys; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - 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->record = 0; - $this->rebroadcast = 0; - $this->time_filled = '00:00:00'; - $this->modified_instance = false; - } - - /** - * Initializes internal state of BaseCcShowInstances object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [optionally formatted] temporal [starts] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbStarts($format = 'Y-m-d H:i:s') - { - if ($this->starts === null) { - return null; - } - - - - try { - $dt = new DateTime($this->starts); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->starts, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [ends] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbEnds($format = 'Y-m-d H:i:s') - { - if ($this->ends === null) { - return null; - } - - - - try { - $dt = new DateTime($this->ends); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->ends, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [show_id] column value. - * - * @return int - */ - public function getDbShowId() - { - return $this->show_id; - } - - /** - * Get the [record] column value. - * - * @return int - */ - public function getDbRecord() - { - return $this->record; - } - - /** - * Get the [rebroadcast] column value. - * - * @return int - */ - public function getDbRebroadcast() - { - return $this->rebroadcast; - } - - /** - * Get the [instance_id] column value. - * - * @return int - */ - public function getDbOriginalShow() - { - return $this->instance_id; - } - - /** - * Get the [file_id] column value. - * - * @return int - */ - public function getDbRecordedFile() - { - return $this->file_id; - } - - /** - * Get the [time_filled] column value. - * - * @return string - */ - public function getDbTimeFilled() - { - return $this->time_filled; - } - - /** - * Get the [optionally formatted] temporal [created] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbCreated($format = 'Y-m-d H:i:s') - { - if ($this->created === null) { - return null; - } - - - - try { - $dt = new DateTime($this->created); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->created, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [last_scheduled] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbLastScheduled($format = 'Y-m-d H:i:s') - { - if ($this->last_scheduled === null) { - return null; - } - - - - try { - $dt = new DateTime($this->last_scheduled); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->last_scheduled, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [modified_instance] column value. - * - * @return boolean - */ - public function getDbModifiedInstance() - { - return $this->modified_instance; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcShowInstances The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcShowInstancesPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Sets the value of [starts] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcShowInstances The current object (for fluent API support) - */ - public function setDbStarts($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->starts !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->starts !== null && $tmpDt = new DateTime($this->starts)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->starts = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcShowInstancesPeer::STARTS; - } - } // if either are not null - - return $this; - } // setDbStarts() - - /** - * Sets the value of [ends] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcShowInstances The current object (for fluent API support) - */ - public function setDbEnds($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->ends !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->ends !== null && $tmpDt = new DateTime($this->ends)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->ends = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcShowInstancesPeer::ENDS; - } - } // if either are not null - - return $this; - } // setDbEnds() - - /** - * Set the value of [show_id] column. - * - * @param int $v new value - * @return CcShowInstances The current object (for fluent API support) - */ - public function setDbShowId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->show_id !== $v) { - $this->show_id = $v; - $this->modifiedColumns[] = CcShowInstancesPeer::SHOW_ID; - } - - if ($this->aCcShow !== null && $this->aCcShow->getDbId() !== $v) { - $this->aCcShow = null; - } - - return $this; - } // setDbShowId() - - /** - * Set the value of [record] column. - * - * @param int $v new value - * @return CcShowInstances The current object (for fluent API support) - */ - public function setDbRecord($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->record !== $v || $this->isNew()) { - $this->record = $v; - $this->modifiedColumns[] = CcShowInstancesPeer::RECORD; - } - - return $this; - } // setDbRecord() - - /** - * Set the value of [rebroadcast] column. - * - * @param int $v new value - * @return CcShowInstances The current object (for fluent API support) - */ - public function setDbRebroadcast($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->rebroadcast !== $v || $this->isNew()) { - $this->rebroadcast = $v; - $this->modifiedColumns[] = CcShowInstancesPeer::REBROADCAST; - } - - return $this; - } // setDbRebroadcast() - - /** - * Set the value of [instance_id] column. - * - * @param int $v new value - * @return CcShowInstances The current object (for fluent API support) - */ - public function setDbOriginalShow($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->instance_id !== $v) { - $this->instance_id = $v; - $this->modifiedColumns[] = CcShowInstancesPeer::INSTANCE_ID; - } - - if ($this->aCcShowInstancesRelatedByDbOriginalShow !== null && $this->aCcShowInstancesRelatedByDbOriginalShow->getDbId() !== $v) { - $this->aCcShowInstancesRelatedByDbOriginalShow = null; - } - - return $this; - } // setDbOriginalShow() - - /** - * Set the value of [file_id] column. - * - * @param int $v new value - * @return CcShowInstances The current object (for fluent API support) - */ - public function setDbRecordedFile($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->file_id !== $v) { - $this->file_id = $v; - $this->modifiedColumns[] = CcShowInstancesPeer::FILE_ID; - } - - if ($this->aCcFiles !== null && $this->aCcFiles->getDbId() !== $v) { - $this->aCcFiles = null; - } - - return $this; - } // setDbRecordedFile() - - /** - * Set the value of [time_filled] column. - * - * @param string $v new value - * @return CcShowInstances The current object (for fluent API support) - */ - public function setDbTimeFilled($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->time_filled !== $v || $this->isNew()) { - $this->time_filled = $v; - $this->modifiedColumns[] = CcShowInstancesPeer::TIME_FILLED; - } - - return $this; - } // setDbTimeFilled() - - /** - * Sets the value of [created] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcShowInstances The current object (for fluent API support) - */ - public function setDbCreated($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->created !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->created !== null && $tmpDt = new DateTime($this->created)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->created = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcShowInstancesPeer::CREATED; - } - } // if either are not null - - return $this; - } // setDbCreated() - - /** - * Sets the value of [last_scheduled] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcShowInstances The current object (for fluent API support) - */ - public function setDbLastScheduled($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->last_scheduled !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->last_scheduled !== null && $tmpDt = new DateTime($this->last_scheduled)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->last_scheduled = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcShowInstancesPeer::LAST_SCHEDULED; - } - } // if either are not null - - return $this; - } // setDbLastScheduled() - - /** - * Set the value of [modified_instance] column. - * - * @param boolean $v new value - * @return CcShowInstances The current object (for fluent API support) - */ - public function setDbModifiedInstance($v) - { - if ($v !== null) { - $v = (boolean) $v; - } - - if ($this->modified_instance !== $v || $this->isNew()) { - $this->modified_instance = $v; - $this->modifiedColumns[] = CcShowInstancesPeer::MODIFIED_INSTANCE; - } - - return $this; - } // setDbModifiedInstance() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->record !== 0) { - return false; - } - - if ($this->rebroadcast !== 0) { - return false; - } - - if ($this->time_filled !== '00:00:00') { - return false; - } - - if ($this->modified_instance !== false) { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->starts = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->ends = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->show_id = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; - $this->record = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; - $this->rebroadcast = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null; - $this->instance_id = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null; - $this->file_id = ($row[$startcol + 7] !== null) ? (int) $row[$startcol + 7] : null; - $this->time_filled = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; - $this->created = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; - $this->last_scheduled = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null; - $this->modified_instance = ($row[$startcol + 11] !== null) ? (boolean) $row[$startcol + 11] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 12; // 12 = CcShowInstancesPeer::NUM_COLUMNS - CcShowInstancesPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcShowInstances object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcShow !== null && $this->show_id !== $this->aCcShow->getDbId()) { - $this->aCcShow = null; - } - if ($this->aCcShowInstancesRelatedByDbOriginalShow !== null && $this->instance_id !== $this->aCcShowInstancesRelatedByDbOriginalShow->getDbId()) { - $this->aCcShowInstancesRelatedByDbOriginalShow = null; - } - if ($this->aCcFiles !== null && $this->file_id !== $this->aCcFiles->getDbId()) { - $this->aCcFiles = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcShowInstancesPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcShow = null; - $this->aCcShowInstancesRelatedByDbOriginalShow = null; - $this->aCcFiles = null; - $this->collCcShowInstancessRelatedByDbId = null; - - $this->collCcSchedules = null; - - $this->collCcPlayoutHistorys = null; - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcShowInstancesQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcShowInstancesPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcShow !== null) { - if ($this->aCcShow->isModified() || $this->aCcShow->isNew()) { - $affectedRows += $this->aCcShow->save($con); - } - $this->setCcShow($this->aCcShow); - } - - if ($this->aCcShowInstancesRelatedByDbOriginalShow !== null) { - if ($this->aCcShowInstancesRelatedByDbOriginalShow->isModified() || $this->aCcShowInstancesRelatedByDbOriginalShow->isNew()) { - $affectedRows += $this->aCcShowInstancesRelatedByDbOriginalShow->save($con); - } - $this->setCcShowInstancesRelatedByDbOriginalShow($this->aCcShowInstancesRelatedByDbOriginalShow); - } - - if ($this->aCcFiles !== null) { - if ($this->aCcFiles->isModified() || $this->aCcFiles->isNew()) { - $affectedRows += $this->aCcFiles->save($con); - } - $this->setCcFiles($this->aCcFiles); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcShowInstancesPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcShowInstancesPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowInstancesPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcShowInstancesPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - if ($this->collCcShowInstancessRelatedByDbId !== null) { - foreach ($this->collCcShowInstancessRelatedByDbId as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcSchedules !== null) { - foreach ($this->collCcSchedules as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcPlayoutHistorys !== null) { - foreach ($this->collCcPlayoutHistorys as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcShow !== null) { - if (!$this->aCcShow->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcShow->getValidationFailures()); - } - } - - if ($this->aCcShowInstancesRelatedByDbOriginalShow !== null) { - if (!$this->aCcShowInstancesRelatedByDbOriginalShow->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcShowInstancesRelatedByDbOriginalShow->getValidationFailures()); - } - } - - if ($this->aCcFiles !== null) { - if (!$this->aCcFiles->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcFiles->getValidationFailures()); - } - } - - - if (($retval = CcShowInstancesPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - if ($this->collCcShowInstancessRelatedByDbId !== null) { - foreach ($this->collCcShowInstancessRelatedByDbId as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcSchedules !== null) { - foreach ($this->collCcSchedules as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcPlayoutHistorys !== null) { - foreach ($this->collCcPlayoutHistorys as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcShowInstancesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbStarts(); - break; - case 2: - return $this->getDbEnds(); - break; - case 3: - return $this->getDbShowId(); - break; - case 4: - return $this->getDbRecord(); - break; - case 5: - return $this->getDbRebroadcast(); - break; - case 6: - return $this->getDbOriginalShow(); - break; - case 7: - return $this->getDbRecordedFile(); - break; - case 8: - return $this->getDbTimeFilled(); - break; - case 9: - return $this->getDbCreated(); - break; - case 10: - return $this->getDbLastScheduled(); - break; - case 11: - return $this->getDbModifiedInstance(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcShowInstancesPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbStarts(), - $keys[2] => $this->getDbEnds(), - $keys[3] => $this->getDbShowId(), - $keys[4] => $this->getDbRecord(), - $keys[5] => $this->getDbRebroadcast(), - $keys[6] => $this->getDbOriginalShow(), - $keys[7] => $this->getDbRecordedFile(), - $keys[8] => $this->getDbTimeFilled(), - $keys[9] => $this->getDbCreated(), - $keys[10] => $this->getDbLastScheduled(), - $keys[11] => $this->getDbModifiedInstance(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcShow) { - $result['CcShow'] = $this->aCcShow->toArray($keyType, $includeLazyLoadColumns, true); - } - if (null !== $this->aCcShowInstancesRelatedByDbOriginalShow) { - $result['CcShowInstancesRelatedByDbOriginalShow'] = $this->aCcShowInstancesRelatedByDbOriginalShow->toArray($keyType, $includeLazyLoadColumns, true); - } - if (null !== $this->aCcFiles) { - $result['CcFiles'] = $this->aCcFiles->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcShowInstancesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbStarts($value); - break; - case 2: - $this->setDbEnds($value); - break; - case 3: - $this->setDbShowId($value); - break; - case 4: - $this->setDbRecord($value); - break; - case 5: - $this->setDbRebroadcast($value); - break; - case 6: - $this->setDbOriginalShow($value); - break; - case 7: - $this->setDbRecordedFile($value); - break; - case 8: - $this->setDbTimeFilled($value); - break; - case 9: - $this->setDbCreated($value); - break; - case 10: - $this->setDbLastScheduled($value); - break; - case 11: - $this->setDbModifiedInstance($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcShowInstancesPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbStarts($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbEnds($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbShowId($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbRecord($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setDbRebroadcast($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setDbOriginalShow($arr[$keys[6]]); - if (array_key_exists($keys[7], $arr)) $this->setDbRecordedFile($arr[$keys[7]]); - if (array_key_exists($keys[8], $arr)) $this->setDbTimeFilled($arr[$keys[8]]); - if (array_key_exists($keys[9], $arr)) $this->setDbCreated($arr[$keys[9]]); - if (array_key_exists($keys[10], $arr)) $this->setDbLastScheduled($arr[$keys[10]]); - if (array_key_exists($keys[11], $arr)) $this->setDbModifiedInstance($arr[$keys[11]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcShowInstancesPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcShowInstancesPeer::ID)) $criteria->add(CcShowInstancesPeer::ID, $this->id); - if ($this->isColumnModified(CcShowInstancesPeer::STARTS)) $criteria->add(CcShowInstancesPeer::STARTS, $this->starts); - if ($this->isColumnModified(CcShowInstancesPeer::ENDS)) $criteria->add(CcShowInstancesPeer::ENDS, $this->ends); - if ($this->isColumnModified(CcShowInstancesPeer::SHOW_ID)) $criteria->add(CcShowInstancesPeer::SHOW_ID, $this->show_id); - if ($this->isColumnModified(CcShowInstancesPeer::RECORD)) $criteria->add(CcShowInstancesPeer::RECORD, $this->record); - if ($this->isColumnModified(CcShowInstancesPeer::REBROADCAST)) $criteria->add(CcShowInstancesPeer::REBROADCAST, $this->rebroadcast); - if ($this->isColumnModified(CcShowInstancesPeer::INSTANCE_ID)) $criteria->add(CcShowInstancesPeer::INSTANCE_ID, $this->instance_id); - if ($this->isColumnModified(CcShowInstancesPeer::FILE_ID)) $criteria->add(CcShowInstancesPeer::FILE_ID, $this->file_id); - if ($this->isColumnModified(CcShowInstancesPeer::TIME_FILLED)) $criteria->add(CcShowInstancesPeer::TIME_FILLED, $this->time_filled); - if ($this->isColumnModified(CcShowInstancesPeer::CREATED)) $criteria->add(CcShowInstancesPeer::CREATED, $this->created); - if ($this->isColumnModified(CcShowInstancesPeer::LAST_SCHEDULED)) $criteria->add(CcShowInstancesPeer::LAST_SCHEDULED, $this->last_scheduled); - if ($this->isColumnModified(CcShowInstancesPeer::MODIFIED_INSTANCE)) $criteria->add(CcShowInstancesPeer::MODIFIED_INSTANCE, $this->modified_instance); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcShowInstancesPeer::DATABASE_NAME); - $criteria->add(CcShowInstancesPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcShowInstances (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbStarts($this->starts); - $copyObj->setDbEnds($this->ends); - $copyObj->setDbShowId($this->show_id); - $copyObj->setDbRecord($this->record); - $copyObj->setDbRebroadcast($this->rebroadcast); - $copyObj->setDbOriginalShow($this->instance_id); - $copyObj->setDbRecordedFile($this->file_id); - $copyObj->setDbTimeFilled($this->time_filled); - $copyObj->setDbCreated($this->created); - $copyObj->setDbLastScheduled($this->last_scheduled); - $copyObj->setDbModifiedInstance($this->modified_instance); - - if ($deepCopy) { - // important: temporarily setNew(false) because this affects the behavior of - // the getter/setter methods for fkey referrer objects. - $copyObj->setNew(false); - - foreach ($this->getCcShowInstancessRelatedByDbId() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcShowInstancesRelatedByDbId($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcSchedules() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcSchedule($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcPlayoutHistorys() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcPlayoutHistory($relObj->copy($deepCopy)); - } - } - - } // if ($deepCopy) - - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcShowInstances Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcShowInstancesPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcShowInstancesPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcShow object. - * - * @param CcShow $v - * @return CcShowInstances The current object (for fluent API support) - * @throws PropelException - */ - public function setCcShow(CcShow $v = null) - { - if ($v === null) { - $this->setDbShowId(NULL); - } else { - $this->setDbShowId($v->getDbId()); - } - - $this->aCcShow = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcShow object, it will not be re-added. - if ($v !== null) { - $v->addCcShowInstances($this); - } - - return $this; - } - - - /** - * Get the associated CcShow object - * - * @param PropelPDO Optional Connection object. - * @return CcShow The associated CcShow object. - * @throws PropelException - */ - public function getCcShow(PropelPDO $con = null) - { - if ($this->aCcShow === null && ($this->show_id !== null)) { - $this->aCcShow = CcShowQuery::create()->findPk($this->show_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcShow->addCcShowInstancess($this); - */ - } - return $this->aCcShow; - } - - /** - * Declares an association between this object and a CcShowInstances object. - * - * @param CcShowInstances $v - * @return CcShowInstances The current object (for fluent API support) - * @throws PropelException - */ - public function setCcShowInstancesRelatedByDbOriginalShow(CcShowInstances $v = null) - { - if ($v === null) { - $this->setDbOriginalShow(NULL); - } else { - $this->setDbOriginalShow($v->getDbId()); - } - - $this->aCcShowInstancesRelatedByDbOriginalShow = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcShowInstances object, it will not be re-added. - if ($v !== null) { - $v->addCcShowInstancesRelatedByDbId($this); - } - - return $this; - } - - - /** - * Get the associated CcShowInstances object - * - * @param PropelPDO Optional Connection object. - * @return CcShowInstances The associated CcShowInstances object. - * @throws PropelException - */ - public function getCcShowInstancesRelatedByDbOriginalShow(PropelPDO $con = null) - { - if ($this->aCcShowInstancesRelatedByDbOriginalShow === null && ($this->instance_id !== null)) { - $this->aCcShowInstancesRelatedByDbOriginalShow = CcShowInstancesQuery::create()->findPk($this->instance_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcShowInstancesRelatedByDbOriginalShow->addCcShowInstancessRelatedByDbId($this); - */ - } - return $this->aCcShowInstancesRelatedByDbOriginalShow; - } - - /** - * Declares an association between this object and a CcFiles object. - * - * @param CcFiles $v - * @return CcShowInstances The current object (for fluent API support) - * @throws PropelException - */ - public function setCcFiles(CcFiles $v = null) - { - if ($v === null) { - $this->setDbRecordedFile(NULL); - } else { - $this->setDbRecordedFile($v->getDbId()); - } - - $this->aCcFiles = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcFiles object, it will not be re-added. - if ($v !== null) { - $v->addCcShowInstances($this); - } - - return $this; - } - - - /** - * Get the associated CcFiles object - * - * @param PropelPDO Optional Connection object. - * @return CcFiles The associated CcFiles object. - * @throws PropelException - */ - public function getCcFiles(PropelPDO $con = null) - { - if ($this->aCcFiles === null && ($this->file_id !== null)) { - $this->aCcFiles = CcFilesQuery::create()->findPk($this->file_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcFiles->addCcShowInstancess($this); - */ - } - return $this->aCcFiles; - } - - /** - * Clears out the collCcShowInstancessRelatedByDbId 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 addCcShowInstancessRelatedByDbId() - */ - public function clearCcShowInstancessRelatedByDbId() - { - $this->collCcShowInstancessRelatedByDbId = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcShowInstancessRelatedByDbId collection. - * - * By default this just sets the collCcShowInstancessRelatedByDbId collection to an empty array (like clearcollCcShowInstancessRelatedByDbId()); - * 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 initCcShowInstancessRelatedByDbId() - { - $this->collCcShowInstancessRelatedByDbId = new PropelObjectCollection(); - $this->collCcShowInstancessRelatedByDbId->setModel('CcShowInstances'); - } - - /** - * Gets an array of CcShowInstances 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 CcShowInstances 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 CcShowInstances[] List of CcShowInstances objects - * @throws PropelException - */ - public function getCcShowInstancessRelatedByDbId($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcShowInstancessRelatedByDbId || null !== $criteria) { - if ($this->isNew() && null === $this->collCcShowInstancessRelatedByDbId) { - // return empty collection - $this->initCcShowInstancessRelatedByDbId(); - } else { - $collCcShowInstancessRelatedByDbId = CcShowInstancesQuery::create(null, $criteria) - ->filterByCcShowInstancesRelatedByDbOriginalShow($this) - ->find($con); - if (null !== $criteria) { - return $collCcShowInstancessRelatedByDbId; - } - $this->collCcShowInstancessRelatedByDbId = $collCcShowInstancessRelatedByDbId; - } - } - return $this->collCcShowInstancessRelatedByDbId; - } - - /** - * Returns the number of related CcShowInstances objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcShowInstances objects. - * @throws PropelException - */ - public function countCcShowInstancessRelatedByDbId(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcShowInstancessRelatedByDbId || null !== $criteria) { - if ($this->isNew() && null === $this->collCcShowInstancessRelatedByDbId) { - return 0; - } else { - $query = CcShowInstancesQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcShowInstancesRelatedByDbOriginalShow($this) - ->count($con); - } - } else { - return count($this->collCcShowInstancessRelatedByDbId); - } - } - - /** - * Method called to associate a CcShowInstances object to this object - * through the CcShowInstances foreign key attribute. - * - * @param CcShowInstances $l CcShowInstances - * @return void - * @throws PropelException - */ - public function addCcShowInstancesRelatedByDbId(CcShowInstances $l) - { - if ($this->collCcShowInstancessRelatedByDbId === null) { - $this->initCcShowInstancessRelatedByDbId(); - } - if (!$this->collCcShowInstancessRelatedByDbId->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcShowInstancessRelatedByDbId[]= $l; - $l->setCcShowInstancesRelatedByDbOriginalShow($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcShowInstances is new, it will return - * an empty collection; or if this CcShowInstances has previously - * been saved, it will retrieve related CcShowInstancessRelatedByDbId from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcShowInstances. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcShowInstances[] List of CcShowInstances objects - */ - public function getCcShowInstancessRelatedByDbIdJoinCcShow($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcShowInstancesQuery::create(null, $criteria); - $query->joinWith('CcShow', $join_behavior); - - return $this->getCcShowInstancessRelatedByDbId($query, $con); - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcShowInstances is new, it will return - * an empty collection; or if this CcShowInstances has previously - * been saved, it will retrieve related CcShowInstancessRelatedByDbId from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcShowInstances. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcShowInstances[] List of CcShowInstances objects - */ - public function getCcShowInstancessRelatedByDbIdJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcShowInstancesQuery::create(null, $criteria); - $query->joinWith('CcFiles', $join_behavior); - - return $this->getCcShowInstancessRelatedByDbId($query, $con); - } - - /** - * Clears out the collCcSchedules 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 addCcSchedules() - */ - public function clearCcSchedules() - { - $this->collCcSchedules = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcSchedules collection. - * - * By default this just sets the collCcSchedules collection to an empty array (like clearcollCcSchedules()); - * 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 initCcSchedules() - { - $this->collCcSchedules = new PropelObjectCollection(); - $this->collCcSchedules->setModel('CcSchedule'); - } - - /** - * Gets an array of CcSchedule 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 CcShowInstances 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 CcSchedule[] List of CcSchedule objects - * @throws PropelException - */ - public function getCcSchedules($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcSchedules || null !== $criteria) { - if ($this->isNew() && null === $this->collCcSchedules) { - // return empty collection - $this->initCcSchedules(); - } else { - $collCcSchedules = CcScheduleQuery::create(null, $criteria) - ->filterByCcShowInstances($this) - ->find($con); - if (null !== $criteria) { - return $collCcSchedules; - } - $this->collCcSchedules = $collCcSchedules; - } - } - return $this->collCcSchedules; - } - - /** - * Returns the number of related CcSchedule objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcSchedule objects. - * @throws PropelException - */ - public function countCcSchedules(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcSchedules || null !== $criteria) { - if ($this->isNew() && null === $this->collCcSchedules) { - return 0; - } else { - $query = CcScheduleQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcShowInstances($this) - ->count($con); - } - } else { - return count($this->collCcSchedules); - } - } - - /** - * Method called to associate a CcSchedule object to this object - * through the CcSchedule foreign key attribute. - * - * @param CcSchedule $l CcSchedule - * @return void - * @throws PropelException - */ - public function addCcSchedule(CcSchedule $l) - { - if ($this->collCcSchedules === null) { - $this->initCcSchedules(); - } - if (!$this->collCcSchedules->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcSchedules[]= $l; - $l->setCcShowInstances($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcShowInstances is new, it will return - * an empty collection; or if this CcShowInstances has previously - * been saved, it will retrieve related CcSchedules from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcShowInstances. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcSchedule[] List of CcSchedule objects - */ - public function getCcSchedulesJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcScheduleQuery::create(null, $criteria); - $query->joinWith('CcFiles', $join_behavior); - - return $this->getCcSchedules($query, $con); - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcShowInstances is new, it will return - * an empty collection; or if this CcShowInstances has previously - * been saved, it will retrieve related CcSchedules from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcShowInstances. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcSchedule[] List of CcSchedule objects - */ - public function getCcSchedulesJoinCcWebstream($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcScheduleQuery::create(null, $criteria); - $query->joinWith('CcWebstream', $join_behavior); - - return $this->getCcSchedules($query, $con); - } - - /** - * Clears out the collCcPlayoutHistorys 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 addCcPlayoutHistorys() - */ - public function clearCcPlayoutHistorys() - { - $this->collCcPlayoutHistorys = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcPlayoutHistorys collection. - * - * By default this just sets the collCcPlayoutHistorys collection to an empty array (like clearcollCcPlayoutHistorys()); - * 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 initCcPlayoutHistorys() - { - $this->collCcPlayoutHistorys = new PropelObjectCollection(); - $this->collCcPlayoutHistorys->setModel('CcPlayoutHistory'); - } - - /** - * Gets an array of CcPlayoutHistory 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 CcShowInstances 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 CcPlayoutHistory[] List of CcPlayoutHistory objects - * @throws PropelException - */ - public function getCcPlayoutHistorys($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcPlayoutHistorys || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlayoutHistorys) { - // return empty collection - $this->initCcPlayoutHistorys(); - } else { - $collCcPlayoutHistorys = CcPlayoutHistoryQuery::create(null, $criteria) - ->filterByCcShowInstances($this) - ->find($con); - if (null !== $criteria) { - return $collCcPlayoutHistorys; - } - $this->collCcPlayoutHistorys = $collCcPlayoutHistorys; - } - } - return $this->collCcPlayoutHistorys; - } - - /** - * Returns the number of related CcPlayoutHistory objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcPlayoutHistory objects. - * @throws PropelException - */ - public function countCcPlayoutHistorys(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcPlayoutHistorys || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlayoutHistorys) { - return 0; - } else { - $query = CcPlayoutHistoryQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcShowInstances($this) - ->count($con); - } - } else { - return count($this->collCcPlayoutHistorys); - } - } - - /** - * Method called to associate a CcPlayoutHistory object to this object - * through the CcPlayoutHistory foreign key attribute. - * - * @param CcPlayoutHistory $l CcPlayoutHistory - * @return void - * @throws PropelException - */ - public function addCcPlayoutHistory(CcPlayoutHistory $l) - { - if ($this->collCcPlayoutHistorys === null) { - $this->initCcPlayoutHistorys(); - } - if (!$this->collCcPlayoutHistorys->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcPlayoutHistorys[]= $l; - $l->setCcShowInstances($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcShowInstances is new, it will return - * an empty collection; or if this CcShowInstances has previously - * been saved, it will retrieve related CcPlayoutHistorys from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcShowInstances. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcPlayoutHistory[] List of CcPlayoutHistory objects - */ - public function getCcPlayoutHistorysJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcPlayoutHistoryQuery::create(null, $criteria); - $query->joinWith('CcFiles', $join_behavior); - - return $this->getCcPlayoutHistorys($query, $con); - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->starts = null; - $this->ends = null; - $this->show_id = null; - $this->record = null; - $this->rebroadcast = null; - $this->instance_id = null; - $this->file_id = null; - $this->time_filled = null; - $this->created = null; - $this->last_scheduled = null; - $this->modified_instance = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - if ($this->collCcShowInstancessRelatedByDbId) { - foreach ((array) $this->collCcShowInstancessRelatedByDbId as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcSchedules) { - foreach ((array) $this->collCcSchedules as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcPlayoutHistorys) { - foreach ((array) $this->collCcPlayoutHistorys as $o) { - $o->clearAllReferences($deep); - } - } - } // if ($deep) - - $this->collCcShowInstancessRelatedByDbId = null; - $this->collCcSchedules = null; - $this->collCcPlayoutHistorys = null; - $this->aCcShow = null; - $this->aCcShowInstancesRelatedByDbOriginalShow = null; - $this->aCcFiles = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcShowInstances + /** + * Peer class name + */ + const PEER = 'CcShowInstancesPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcShowInstancesPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the starts field. + * @var string + */ + protected $starts; + + /** + * The value for the ends field. + * @var string + */ + protected $ends; + + /** + * The value for the show_id field. + * @var int + */ + protected $show_id; + + /** + * The value for the record field. + * Note: this column has a database default value of: 0 + * @var int + */ + protected $record; + + /** + * The value for the rebroadcast field. + * Note: this column has a database default value of: 0 + * @var int + */ + protected $rebroadcast; + + /** + * The value for the instance_id field. + * @var int + */ + protected $instance_id; + + /** + * The value for the file_id field. + * @var int + */ + protected $file_id; + + /** + * The value for the time_filled field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $time_filled; + + /** + * The value for the created field. + * @var string + */ + protected $created; + + /** + * The value for the last_scheduled field. + * @var string + */ + protected $last_scheduled; + + /** + * The value for the modified_instance field. + * Note: this column has a database default value of: false + * @var boolean + */ + protected $modified_instance; + + /** + * @var CcShow + */ + protected $aCcShow; + + /** + * @var CcShowInstances + */ + protected $aCcShowInstancesRelatedByDbOriginalShow; + + /** + * @var CcFiles + */ + protected $aCcFiles; + + /** + * @var PropelObjectCollection|CcShowInstances[] Collection to store aggregation of CcShowInstances objects. + */ + protected $collCcShowInstancessRelatedByDbId; + protected $collCcShowInstancessRelatedByDbIdPartial; + + /** + * @var PropelObjectCollection|CcSchedule[] Collection to store aggregation of CcSchedule objects. + */ + protected $collCcSchedules; + protected $collCcSchedulesPartial; + + /** + * @var PropelObjectCollection|CcPlayoutHistory[] Collection to store aggregation of CcPlayoutHistory objects. + */ + protected $collCcPlayoutHistorys; + protected $collCcPlayoutHistorysPartial; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccShowInstancessRelatedByDbIdScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccSchedulesScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccPlayoutHistorysScheduledForDeletion = null; + + /** + * 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->record = 0; + $this->rebroadcast = 0; + $this->time_filled = '00:00:00'; + $this->modified_instance = false; + } + + /** + * Initializes internal state of BaseCcShowInstances object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [optionally formatted] temporal [starts] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbStarts($format = 'Y-m-d H:i:s') + { + if ($this->starts === null) { + return null; + } + + + try { + $dt = new DateTime($this->starts); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->starts, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [ends] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbEnds($format = 'Y-m-d H:i:s') + { + if ($this->ends === null) { + return null; + } + + + try { + $dt = new DateTime($this->ends); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->ends, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [show_id] column value. + * + * @return int + */ + public function getDbShowId() + { + + return $this->show_id; + } + + /** + * Get the [record] column value. + * + * @return int + */ + public function getDbRecord() + { + + return $this->record; + } + + /** + * Get the [rebroadcast] column value. + * + * @return int + */ + public function getDbRebroadcast() + { + + return $this->rebroadcast; + } + + /** + * Get the [instance_id] column value. + * + * @return int + */ + public function getDbOriginalShow() + { + + return $this->instance_id; + } + + /** + * Get the [file_id] column value. + * + * @return int + */ + public function getDbRecordedFile() + { + + return $this->file_id; + } + + /** + * Get the [time_filled] column value. + * + * @return string + */ + public function getDbTimeFilled() + { + + return $this->time_filled; + } + + /** + * Get the [optionally formatted] temporal [created] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbCreated($format = 'Y-m-d H:i:s') + { + if ($this->created === null) { + return null; + } + + + try { + $dt = new DateTime($this->created); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->created, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [last_scheduled] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbLastScheduled($format = 'Y-m-d H:i:s') + { + if ($this->last_scheduled === null) { + return null; + } + + + try { + $dt = new DateTime($this->last_scheduled); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->last_scheduled, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [modified_instance] column value. + * + * @return boolean + */ + public function getDbModifiedInstance() + { + + return $this->modified_instance; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcShowInstances The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcShowInstancesPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Sets the value of [starts] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcShowInstances The current object (for fluent API support) + */ + public function setDbStarts($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->starts !== null || $dt !== null) { + $currentDateAsString = ($this->starts !== null && $tmpDt = new DateTime($this->starts)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->starts = $newDateAsString; + $this->modifiedColumns[] = CcShowInstancesPeer::STARTS; + } + } // if either are not null + + + return $this; + } // setDbStarts() + + /** + * Sets the value of [ends] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcShowInstances The current object (for fluent API support) + */ + public function setDbEnds($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->ends !== null || $dt !== null) { + $currentDateAsString = ($this->ends !== null && $tmpDt = new DateTime($this->ends)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->ends = $newDateAsString; + $this->modifiedColumns[] = CcShowInstancesPeer::ENDS; + } + } // if either are not null + + + return $this; + } // setDbEnds() + + /** + * Set the value of [show_id] column. + * + * @param int $v new value + * @return CcShowInstances The current object (for fluent API support) + */ + public function setDbShowId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->show_id !== $v) { + $this->show_id = $v; + $this->modifiedColumns[] = CcShowInstancesPeer::SHOW_ID; + } + + if ($this->aCcShow !== null && $this->aCcShow->getDbId() !== $v) { + $this->aCcShow = null; + } + + + return $this; + } // setDbShowId() + + /** + * Set the value of [record] column. + * + * @param int $v new value + * @return CcShowInstances The current object (for fluent API support) + */ + public function setDbRecord($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->record !== $v) { + $this->record = $v; + $this->modifiedColumns[] = CcShowInstancesPeer::RECORD; + } + + + return $this; + } // setDbRecord() + + /** + * Set the value of [rebroadcast] column. + * + * @param int $v new value + * @return CcShowInstances The current object (for fluent API support) + */ + public function setDbRebroadcast($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->rebroadcast !== $v) { + $this->rebroadcast = $v; + $this->modifiedColumns[] = CcShowInstancesPeer::REBROADCAST; + } + + + return $this; + } // setDbRebroadcast() + + /** + * Set the value of [instance_id] column. + * + * @param int $v new value + * @return CcShowInstances The current object (for fluent API support) + */ + public function setDbOriginalShow($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->instance_id !== $v) { + $this->instance_id = $v; + $this->modifiedColumns[] = CcShowInstancesPeer::INSTANCE_ID; + } + + if ($this->aCcShowInstancesRelatedByDbOriginalShow !== null && $this->aCcShowInstancesRelatedByDbOriginalShow->getDbId() !== $v) { + $this->aCcShowInstancesRelatedByDbOriginalShow = null; + } + + + return $this; + } // setDbOriginalShow() + + /** + * Set the value of [file_id] column. + * + * @param int $v new value + * @return CcShowInstances The current object (for fluent API support) + */ + public function setDbRecordedFile($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->file_id !== $v) { + $this->file_id = $v; + $this->modifiedColumns[] = CcShowInstancesPeer::FILE_ID; + } + + if ($this->aCcFiles !== null && $this->aCcFiles->getDbId() !== $v) { + $this->aCcFiles = null; + } + + + return $this; + } // setDbRecordedFile() + + /** + * Set the value of [time_filled] column. + * + * @param string $v new value + * @return CcShowInstances The current object (for fluent API support) + */ + public function setDbTimeFilled($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->time_filled !== $v) { + $this->time_filled = $v; + $this->modifiedColumns[] = CcShowInstancesPeer::TIME_FILLED; + } + + + return $this; + } // setDbTimeFilled() + + /** + * Sets the value of [created] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcShowInstances The current object (for fluent API support) + */ + public function setDbCreated($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->created !== null || $dt !== null) { + $currentDateAsString = ($this->created !== null && $tmpDt = new DateTime($this->created)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->created = $newDateAsString; + $this->modifiedColumns[] = CcShowInstancesPeer::CREATED; + } + } // if either are not null + + + return $this; + } // setDbCreated() + + /** + * Sets the value of [last_scheduled] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcShowInstances The current object (for fluent API support) + */ + public function setDbLastScheduled($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->last_scheduled !== null || $dt !== null) { + $currentDateAsString = ($this->last_scheduled !== null && $tmpDt = new DateTime($this->last_scheduled)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->last_scheduled = $newDateAsString; + $this->modifiedColumns[] = CcShowInstancesPeer::LAST_SCHEDULED; + } + } // if either are not null + + + return $this; + } // setDbLastScheduled() + + /** + * Sets the value of the [modified_instance] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return CcShowInstances The current object (for fluent API support) + */ + public function setDbModifiedInstance($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->modified_instance !== $v) { + $this->modified_instance = $v; + $this->modifiedColumns[] = CcShowInstancesPeer::MODIFIED_INSTANCE; + } + + + return $this; + } // setDbModifiedInstance() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->record !== 0) { + return false; + } + + if ($this->rebroadcast !== 0) { + return false; + } + + if ($this->time_filled !== '00:00:00') { + return false; + } + + if ($this->modified_instance !== false) { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->starts = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->ends = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->show_id = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; + $this->record = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; + $this->rebroadcast = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null; + $this->instance_id = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null; + $this->file_id = ($row[$startcol + 7] !== null) ? (int) $row[$startcol + 7] : null; + $this->time_filled = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; + $this->created = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; + $this->last_scheduled = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null; + $this->modified_instance = ($row[$startcol + 11] !== null) ? (boolean) $row[$startcol + 11] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 12; // 12 = CcShowInstancesPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcShowInstances object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcShow !== null && $this->show_id !== $this->aCcShow->getDbId()) { + $this->aCcShow = null; + } + if ($this->aCcShowInstancesRelatedByDbOriginalShow !== null && $this->instance_id !== $this->aCcShowInstancesRelatedByDbOriginalShow->getDbId()) { + $this->aCcShowInstancesRelatedByDbOriginalShow = null; + } + if ($this->aCcFiles !== null && $this->file_id !== $this->aCcFiles->getDbId()) { + $this->aCcFiles = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcShowInstancesPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcShow = null; + $this->aCcShowInstancesRelatedByDbOriginalShow = null; + $this->aCcFiles = null; + $this->collCcShowInstancessRelatedByDbId = null; + + $this->collCcSchedules = null; + + $this->collCcPlayoutHistorys = null; + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcShowInstancesQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcShowInstancesPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcShow !== null) { + if ($this->aCcShow->isModified() || $this->aCcShow->isNew()) { + $affectedRows += $this->aCcShow->save($con); + } + $this->setCcShow($this->aCcShow); + } + + if ($this->aCcShowInstancesRelatedByDbOriginalShow !== null) { + if ($this->aCcShowInstancesRelatedByDbOriginalShow->isModified() || $this->aCcShowInstancesRelatedByDbOriginalShow->isNew()) { + $affectedRows += $this->aCcShowInstancesRelatedByDbOriginalShow->save($con); + } + $this->setCcShowInstancesRelatedByDbOriginalShow($this->aCcShowInstancesRelatedByDbOriginalShow); + } + + if ($this->aCcFiles !== null) { + if ($this->aCcFiles->isModified() || $this->aCcFiles->isNew()) { + $affectedRows += $this->aCcFiles->save($con); + } + $this->setCcFiles($this->aCcFiles); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + if ($this->ccShowInstancessRelatedByDbIdScheduledForDeletion !== null) { + if (!$this->ccShowInstancessRelatedByDbIdScheduledForDeletion->isEmpty()) { + CcShowInstancesQuery::create() + ->filterByPrimaryKeys($this->ccShowInstancessRelatedByDbIdScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccShowInstancessRelatedByDbIdScheduledForDeletion = null; + } + } + + if ($this->collCcShowInstancessRelatedByDbId !== null) { + foreach ($this->collCcShowInstancessRelatedByDbId as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccSchedulesScheduledForDeletion !== null) { + if (!$this->ccSchedulesScheduledForDeletion->isEmpty()) { + CcScheduleQuery::create() + ->filterByPrimaryKeys($this->ccSchedulesScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccSchedulesScheduledForDeletion = null; + } + } + + if ($this->collCcSchedules !== null) { + foreach ($this->collCcSchedules as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccPlayoutHistorysScheduledForDeletion !== null) { + if (!$this->ccPlayoutHistorysScheduledForDeletion->isEmpty()) { + foreach ($this->ccPlayoutHistorysScheduledForDeletion as $ccPlayoutHistory) { + // need to save related object because we set the relation to null + $ccPlayoutHistory->save($con); + } + $this->ccPlayoutHistorysScheduledForDeletion = null; + } + } + + if ($this->collCcPlayoutHistorys !== null) { + foreach ($this->collCcPlayoutHistorys as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcShowInstancesPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcShowInstancesPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_show_instances_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcShowInstancesPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcShowInstancesPeer::STARTS)) { + $modifiedColumns[':p' . $index++] = '"starts"'; + } + if ($this->isColumnModified(CcShowInstancesPeer::ENDS)) { + $modifiedColumns[':p' . $index++] = '"ends"'; + } + if ($this->isColumnModified(CcShowInstancesPeer::SHOW_ID)) { + $modifiedColumns[':p' . $index++] = '"show_id"'; + } + if ($this->isColumnModified(CcShowInstancesPeer::RECORD)) { + $modifiedColumns[':p' . $index++] = '"record"'; + } + if ($this->isColumnModified(CcShowInstancesPeer::REBROADCAST)) { + $modifiedColumns[':p' . $index++] = '"rebroadcast"'; + } + if ($this->isColumnModified(CcShowInstancesPeer::INSTANCE_ID)) { + $modifiedColumns[':p' . $index++] = '"instance_id"'; + } + if ($this->isColumnModified(CcShowInstancesPeer::FILE_ID)) { + $modifiedColumns[':p' . $index++] = '"file_id"'; + } + if ($this->isColumnModified(CcShowInstancesPeer::TIME_FILLED)) { + $modifiedColumns[':p' . $index++] = '"time_filled"'; + } + if ($this->isColumnModified(CcShowInstancesPeer::CREATED)) { + $modifiedColumns[':p' . $index++] = '"created"'; + } + if ($this->isColumnModified(CcShowInstancesPeer::LAST_SCHEDULED)) { + $modifiedColumns[':p' . $index++] = '"last_scheduled"'; + } + if ($this->isColumnModified(CcShowInstancesPeer::MODIFIED_INSTANCE)) { + $modifiedColumns[':p' . $index++] = '"modified_instance"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_show_instances" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"starts"': + $stmt->bindValue($identifier, $this->starts, PDO::PARAM_STR); + break; + case '"ends"': + $stmt->bindValue($identifier, $this->ends, PDO::PARAM_STR); + break; + case '"show_id"': + $stmt->bindValue($identifier, $this->show_id, PDO::PARAM_INT); + break; + case '"record"': + $stmt->bindValue($identifier, $this->record, PDO::PARAM_INT); + break; + case '"rebroadcast"': + $stmt->bindValue($identifier, $this->rebroadcast, PDO::PARAM_INT); + break; + case '"instance_id"': + $stmt->bindValue($identifier, $this->instance_id, PDO::PARAM_INT); + break; + case '"file_id"': + $stmt->bindValue($identifier, $this->file_id, PDO::PARAM_INT); + break; + case '"time_filled"': + $stmt->bindValue($identifier, $this->time_filled, PDO::PARAM_STR); + break; + case '"created"': + $stmt->bindValue($identifier, $this->created, PDO::PARAM_STR); + break; + case '"last_scheduled"': + $stmt->bindValue($identifier, $this->last_scheduled, PDO::PARAM_STR); + break; + case '"modified_instance"': + $stmt->bindValue($identifier, $this->modified_instance, PDO::PARAM_BOOL); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcShow !== null) { + if (!$this->aCcShow->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcShow->getValidationFailures()); + } + } + + if ($this->aCcShowInstancesRelatedByDbOriginalShow !== null) { + if (!$this->aCcShowInstancesRelatedByDbOriginalShow->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcShowInstancesRelatedByDbOriginalShow->getValidationFailures()); + } + } + + if ($this->aCcFiles !== null) { + if (!$this->aCcFiles->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcFiles->getValidationFailures()); + } + } + + + if (($retval = CcShowInstancesPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + if ($this->collCcShowInstancessRelatedByDbId !== null) { + foreach ($this->collCcShowInstancessRelatedByDbId as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcSchedules !== null) { + foreach ($this->collCcSchedules as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcPlayoutHistorys !== null) { + foreach ($this->collCcPlayoutHistorys as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcShowInstancesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbStarts(); + break; + case 2: + return $this->getDbEnds(); + break; + case 3: + return $this->getDbShowId(); + break; + case 4: + return $this->getDbRecord(); + break; + case 5: + return $this->getDbRebroadcast(); + break; + case 6: + return $this->getDbOriginalShow(); + break; + case 7: + return $this->getDbRecordedFile(); + break; + case 8: + return $this->getDbTimeFilled(); + break; + case 9: + return $this->getDbCreated(); + break; + case 10: + return $this->getDbLastScheduled(); + break; + case 11: + return $this->getDbModifiedInstance(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcShowInstances'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcShowInstances'][$this->getPrimaryKey()] = true; + $keys = CcShowInstancesPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbStarts(), + $keys[2] => $this->getDbEnds(), + $keys[3] => $this->getDbShowId(), + $keys[4] => $this->getDbRecord(), + $keys[5] => $this->getDbRebroadcast(), + $keys[6] => $this->getDbOriginalShow(), + $keys[7] => $this->getDbRecordedFile(), + $keys[8] => $this->getDbTimeFilled(), + $keys[9] => $this->getDbCreated(), + $keys[10] => $this->getDbLastScheduled(), + $keys[11] => $this->getDbModifiedInstance(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcShow) { + $result['CcShow'] = $this->aCcShow->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aCcShowInstancesRelatedByDbOriginalShow) { + $result['CcShowInstancesRelatedByDbOriginalShow'] = $this->aCcShowInstancesRelatedByDbOriginalShow->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aCcFiles) { + $result['CcFiles'] = $this->aCcFiles->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->collCcShowInstancessRelatedByDbId) { + $result['CcShowInstancessRelatedByDbId'] = $this->collCcShowInstancessRelatedByDbId->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcSchedules) { + $result['CcSchedules'] = $this->collCcSchedules->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcPlayoutHistorys) { + $result['CcPlayoutHistorys'] = $this->collCcPlayoutHistorys->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcShowInstancesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbStarts($value); + break; + case 2: + $this->setDbEnds($value); + break; + case 3: + $this->setDbShowId($value); + break; + case 4: + $this->setDbRecord($value); + break; + case 5: + $this->setDbRebroadcast($value); + break; + case 6: + $this->setDbOriginalShow($value); + break; + case 7: + $this->setDbRecordedFile($value); + break; + case 8: + $this->setDbTimeFilled($value); + break; + case 9: + $this->setDbCreated($value); + break; + case 10: + $this->setDbLastScheduled($value); + break; + case 11: + $this->setDbModifiedInstance($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcShowInstancesPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbStarts($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbEnds($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbShowId($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbRecord($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDbRebroadcast($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setDbOriginalShow($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setDbRecordedFile($arr[$keys[7]]); + if (array_key_exists($keys[8], $arr)) $this->setDbTimeFilled($arr[$keys[8]]); + if (array_key_exists($keys[9], $arr)) $this->setDbCreated($arr[$keys[9]]); + if (array_key_exists($keys[10], $arr)) $this->setDbLastScheduled($arr[$keys[10]]); + if (array_key_exists($keys[11], $arr)) $this->setDbModifiedInstance($arr[$keys[11]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcShowInstancesPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcShowInstancesPeer::ID)) $criteria->add(CcShowInstancesPeer::ID, $this->id); + if ($this->isColumnModified(CcShowInstancesPeer::STARTS)) $criteria->add(CcShowInstancesPeer::STARTS, $this->starts); + if ($this->isColumnModified(CcShowInstancesPeer::ENDS)) $criteria->add(CcShowInstancesPeer::ENDS, $this->ends); + if ($this->isColumnModified(CcShowInstancesPeer::SHOW_ID)) $criteria->add(CcShowInstancesPeer::SHOW_ID, $this->show_id); + if ($this->isColumnModified(CcShowInstancesPeer::RECORD)) $criteria->add(CcShowInstancesPeer::RECORD, $this->record); + if ($this->isColumnModified(CcShowInstancesPeer::REBROADCAST)) $criteria->add(CcShowInstancesPeer::REBROADCAST, $this->rebroadcast); + if ($this->isColumnModified(CcShowInstancesPeer::INSTANCE_ID)) $criteria->add(CcShowInstancesPeer::INSTANCE_ID, $this->instance_id); + if ($this->isColumnModified(CcShowInstancesPeer::FILE_ID)) $criteria->add(CcShowInstancesPeer::FILE_ID, $this->file_id); + if ($this->isColumnModified(CcShowInstancesPeer::TIME_FILLED)) $criteria->add(CcShowInstancesPeer::TIME_FILLED, $this->time_filled); + if ($this->isColumnModified(CcShowInstancesPeer::CREATED)) $criteria->add(CcShowInstancesPeer::CREATED, $this->created); + if ($this->isColumnModified(CcShowInstancesPeer::LAST_SCHEDULED)) $criteria->add(CcShowInstancesPeer::LAST_SCHEDULED, $this->last_scheduled); + if ($this->isColumnModified(CcShowInstancesPeer::MODIFIED_INSTANCE)) $criteria->add(CcShowInstancesPeer::MODIFIED_INSTANCE, $this->modified_instance); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcShowInstancesPeer::DATABASE_NAME); + $criteria->add(CcShowInstancesPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcShowInstances (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbStarts($this->getDbStarts()); + $copyObj->setDbEnds($this->getDbEnds()); + $copyObj->setDbShowId($this->getDbShowId()); + $copyObj->setDbRecord($this->getDbRecord()); + $copyObj->setDbRebroadcast($this->getDbRebroadcast()); + $copyObj->setDbOriginalShow($this->getDbOriginalShow()); + $copyObj->setDbRecordedFile($this->getDbRecordedFile()); + $copyObj->setDbTimeFilled($this->getDbTimeFilled()); + $copyObj->setDbCreated($this->getDbCreated()); + $copyObj->setDbLastScheduled($this->getDbLastScheduled()); + $copyObj->setDbModifiedInstance($this->getDbModifiedInstance()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + foreach ($this->getCcShowInstancessRelatedByDbId() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcShowInstancesRelatedByDbId($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcSchedules() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcSchedule($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcPlayoutHistorys() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcPlayoutHistory($relObj->copy($deepCopy)); + } + } + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcShowInstances Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcShowInstancesPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcShowInstancesPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcShow object. + * + * @param CcShow $v + * @return CcShowInstances The current object (for fluent API support) + * @throws PropelException + */ + public function setCcShow(CcShow $v = null) + { + if ($v === null) { + $this->setDbShowId(NULL); + } else { + $this->setDbShowId($v->getDbId()); + } + + $this->aCcShow = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcShow object, it will not be re-added. + if ($v !== null) { + $v->addCcShowInstances($this); + } + + + return $this; + } + + + /** + * Get the associated CcShow object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcShow The associated CcShow object. + * @throws PropelException + */ + public function getCcShow(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcShow === null && ($this->show_id !== null) && $doQuery) { + $this->aCcShow = CcShowQuery::create()->findPk($this->show_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcShow->addCcShowInstancess($this); + */ + } + + return $this->aCcShow; + } + + /** + * Declares an association between this object and a CcShowInstances object. + * + * @param CcShowInstances $v + * @return CcShowInstances The current object (for fluent API support) + * @throws PropelException + */ + public function setCcShowInstancesRelatedByDbOriginalShow(CcShowInstances $v = null) + { + if ($v === null) { + $this->setDbOriginalShow(NULL); + } else { + $this->setDbOriginalShow($v->getDbId()); + } + + $this->aCcShowInstancesRelatedByDbOriginalShow = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcShowInstances object, it will not be re-added. + if ($v !== null) { + $v->addCcShowInstancesRelatedByDbId($this); + } + + + return $this; + } + + + /** + * Get the associated CcShowInstances object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcShowInstances The associated CcShowInstances object. + * @throws PropelException + */ + public function getCcShowInstancesRelatedByDbOriginalShow(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcShowInstancesRelatedByDbOriginalShow === null && ($this->instance_id !== null) && $doQuery) { + $this->aCcShowInstancesRelatedByDbOriginalShow = CcShowInstancesQuery::create()->findPk($this->instance_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcShowInstancesRelatedByDbOriginalShow->addCcShowInstancessRelatedByDbId($this); + */ + } + + return $this->aCcShowInstancesRelatedByDbOriginalShow; + } + + /** + * Declares an association between this object and a CcFiles object. + * + * @param CcFiles $v + * @return CcShowInstances The current object (for fluent API support) + * @throws PropelException + */ + public function setCcFiles(CcFiles $v = null) + { + if ($v === null) { + $this->setDbRecordedFile(NULL); + } else { + $this->setDbRecordedFile($v->getDbId()); + } + + $this->aCcFiles = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcFiles object, it will not be re-added. + if ($v !== null) { + $v->addCcShowInstances($this); + } + + + return $this; + } + + + /** + * Get the associated CcFiles object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcFiles The associated CcFiles object. + * @throws PropelException + */ + public function getCcFiles(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcFiles === null && ($this->file_id !== null) && $doQuery) { + $this->aCcFiles = CcFilesQuery::create()->findPk($this->file_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcFiles->addCcShowInstancess($this); + */ + } + + return $this->aCcFiles; + } + + + /** + * Initializes a collection based on the name of a relation. + * Avoids crafting an 'init[$relationName]s' method name + * that wouldn't work when StandardEnglishPluralizer is used. + * + * @param string $relationName The name of the relation to initialize + * @return void + */ + public function initRelation($relationName) + { + if ('CcShowInstancesRelatedByDbId' == $relationName) { + $this->initCcShowInstancessRelatedByDbId(); + } + if ('CcSchedule' == $relationName) { + $this->initCcSchedules(); + } + if ('CcPlayoutHistory' == $relationName) { + $this->initCcPlayoutHistorys(); + } + } + + /** + * Clears out the collCcShowInstancessRelatedByDbId 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 CcShowInstances The current object (for fluent API support) + * @see addCcShowInstancessRelatedByDbId() + */ + public function clearCcShowInstancessRelatedByDbId() + { + $this->collCcShowInstancessRelatedByDbId = null; // important to set this to null since that means it is uninitialized + $this->collCcShowInstancessRelatedByDbIdPartial = null; + + return $this; + } + + /** + * reset is the collCcShowInstancessRelatedByDbId collection loaded partially + * + * @return void + */ + public function resetPartialCcShowInstancessRelatedByDbId($v = true) + { + $this->collCcShowInstancessRelatedByDbIdPartial = $v; + } + + /** + * Initializes the collCcShowInstancessRelatedByDbId collection. + * + * By default this just sets the collCcShowInstancessRelatedByDbId collection to an empty array (like clearcollCcShowInstancessRelatedByDbId()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcShowInstancessRelatedByDbId($overrideExisting = true) + { + if (null !== $this->collCcShowInstancessRelatedByDbId && !$overrideExisting) { + return; + } + $this->collCcShowInstancessRelatedByDbId = new PropelObjectCollection(); + $this->collCcShowInstancessRelatedByDbId->setModel('CcShowInstances'); + } + + /** + * Gets an array of CcShowInstances 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 CcShowInstances 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 PropelObjectCollection|CcShowInstances[] List of CcShowInstances objects + * @throws PropelException + */ + public function getCcShowInstancessRelatedByDbId($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcShowInstancessRelatedByDbIdPartial && !$this->isNew(); + if (null === $this->collCcShowInstancessRelatedByDbId || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcShowInstancessRelatedByDbId) { + // return empty collection + $this->initCcShowInstancessRelatedByDbId(); + } else { + $collCcShowInstancessRelatedByDbId = CcShowInstancesQuery::create(null, $criteria) + ->filterByCcShowInstancesRelatedByDbOriginalShow($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcShowInstancessRelatedByDbIdPartial && count($collCcShowInstancessRelatedByDbId)) { + $this->initCcShowInstancessRelatedByDbId(false); + + foreach ($collCcShowInstancessRelatedByDbId as $obj) { + if (false == $this->collCcShowInstancessRelatedByDbId->contains($obj)) { + $this->collCcShowInstancessRelatedByDbId->append($obj); + } + } + + $this->collCcShowInstancessRelatedByDbIdPartial = true; + } + + $collCcShowInstancessRelatedByDbId->getInternalIterator()->rewind(); + + return $collCcShowInstancessRelatedByDbId; + } + + if ($partial && $this->collCcShowInstancessRelatedByDbId) { + foreach ($this->collCcShowInstancessRelatedByDbId as $obj) { + if ($obj->isNew()) { + $collCcShowInstancessRelatedByDbId[] = $obj; + } + } + } + + $this->collCcShowInstancessRelatedByDbId = $collCcShowInstancessRelatedByDbId; + $this->collCcShowInstancessRelatedByDbIdPartial = false; + } + } + + return $this->collCcShowInstancessRelatedByDbId; + } + + /** + * Sets a collection of CcShowInstancesRelatedByDbId objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccShowInstancessRelatedByDbId A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcShowInstances The current object (for fluent API support) + */ + public function setCcShowInstancessRelatedByDbId(PropelCollection $ccShowInstancessRelatedByDbId, PropelPDO $con = null) + { + $ccShowInstancessRelatedByDbIdToDelete = $this->getCcShowInstancessRelatedByDbId(new Criteria(), $con)->diff($ccShowInstancessRelatedByDbId); + + + $this->ccShowInstancessRelatedByDbIdScheduledForDeletion = $ccShowInstancessRelatedByDbIdToDelete; + + foreach ($ccShowInstancessRelatedByDbIdToDelete as $ccShowInstancesRelatedByDbIdRemoved) { + $ccShowInstancesRelatedByDbIdRemoved->setCcShowInstancesRelatedByDbOriginalShow(null); + } + + $this->collCcShowInstancessRelatedByDbId = null; + foreach ($ccShowInstancessRelatedByDbId as $ccShowInstancesRelatedByDbId) { + $this->addCcShowInstancesRelatedByDbId($ccShowInstancesRelatedByDbId); + } + + $this->collCcShowInstancessRelatedByDbId = $ccShowInstancessRelatedByDbId; + $this->collCcShowInstancessRelatedByDbIdPartial = false; + + return $this; + } + + /** + * Returns the number of related CcShowInstances objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcShowInstances objects. + * @throws PropelException + */ + public function countCcShowInstancessRelatedByDbId(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcShowInstancessRelatedByDbIdPartial && !$this->isNew(); + if (null === $this->collCcShowInstancessRelatedByDbId || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcShowInstancessRelatedByDbId) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcShowInstancessRelatedByDbId()); + } + $query = CcShowInstancesQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcShowInstancesRelatedByDbOriginalShow($this) + ->count($con); + } + + return count($this->collCcShowInstancessRelatedByDbId); + } + + /** + * Method called to associate a CcShowInstances object to this object + * through the CcShowInstances foreign key attribute. + * + * @param CcShowInstances $l CcShowInstances + * @return CcShowInstances The current object (for fluent API support) + */ + public function addCcShowInstancesRelatedByDbId(CcShowInstances $l) + { + if ($this->collCcShowInstancessRelatedByDbId === null) { + $this->initCcShowInstancessRelatedByDbId(); + $this->collCcShowInstancessRelatedByDbIdPartial = true; + } + + if (!in_array($l, $this->collCcShowInstancessRelatedByDbId->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcShowInstancesRelatedByDbId($l); + + if ($this->ccShowInstancessRelatedByDbIdScheduledForDeletion and $this->ccShowInstancessRelatedByDbIdScheduledForDeletion->contains($l)) { + $this->ccShowInstancessRelatedByDbIdScheduledForDeletion->remove($this->ccShowInstancessRelatedByDbIdScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcShowInstancesRelatedByDbId $ccShowInstancesRelatedByDbId The ccShowInstancesRelatedByDbId object to add. + */ + protected function doAddCcShowInstancesRelatedByDbId($ccShowInstancesRelatedByDbId) + { + $this->collCcShowInstancessRelatedByDbId[]= $ccShowInstancesRelatedByDbId; + $ccShowInstancesRelatedByDbId->setCcShowInstancesRelatedByDbOriginalShow($this); + } + + /** + * @param CcShowInstancesRelatedByDbId $ccShowInstancesRelatedByDbId The ccShowInstancesRelatedByDbId object to remove. + * @return CcShowInstances The current object (for fluent API support) + */ + public function removeCcShowInstancesRelatedByDbId($ccShowInstancesRelatedByDbId) + { + if ($this->getCcShowInstancessRelatedByDbId()->contains($ccShowInstancesRelatedByDbId)) { + $this->collCcShowInstancessRelatedByDbId->remove($this->collCcShowInstancessRelatedByDbId->search($ccShowInstancesRelatedByDbId)); + if (null === $this->ccShowInstancessRelatedByDbIdScheduledForDeletion) { + $this->ccShowInstancessRelatedByDbIdScheduledForDeletion = clone $this->collCcShowInstancessRelatedByDbId; + $this->ccShowInstancessRelatedByDbIdScheduledForDeletion->clear(); + } + $this->ccShowInstancessRelatedByDbIdScheduledForDeletion[]= $ccShowInstancesRelatedByDbId; + $ccShowInstancesRelatedByDbId->setCcShowInstancesRelatedByDbOriginalShow(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcShowInstances is new, it will return + * an empty collection; or if this CcShowInstances has previously + * been saved, it will retrieve related CcShowInstancessRelatedByDbId from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcShowInstances. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcShowInstances[] List of CcShowInstances objects + */ + public function getCcShowInstancessRelatedByDbIdJoinCcShow($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcShowInstancesQuery::create(null, $criteria); + $query->joinWith('CcShow', $join_behavior); + + return $this->getCcShowInstancessRelatedByDbId($query, $con); + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcShowInstances is new, it will return + * an empty collection; or if this CcShowInstances has previously + * been saved, it will retrieve related CcShowInstancessRelatedByDbId from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcShowInstances. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcShowInstances[] List of CcShowInstances objects + */ + public function getCcShowInstancessRelatedByDbIdJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcShowInstancesQuery::create(null, $criteria); + $query->joinWith('CcFiles', $join_behavior); + + return $this->getCcShowInstancessRelatedByDbId($query, $con); + } + + /** + * Clears out the collCcSchedules 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 CcShowInstances The current object (for fluent API support) + * @see addCcSchedules() + */ + public function clearCcSchedules() + { + $this->collCcSchedules = null; // important to set this to null since that means it is uninitialized + $this->collCcSchedulesPartial = null; + + return $this; + } + + /** + * reset is the collCcSchedules collection loaded partially + * + * @return void + */ + public function resetPartialCcSchedules($v = true) + { + $this->collCcSchedulesPartial = $v; + } + + /** + * Initializes the collCcSchedules collection. + * + * By default this just sets the collCcSchedules collection to an empty array (like clearcollCcSchedules()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcSchedules($overrideExisting = true) + { + if (null !== $this->collCcSchedules && !$overrideExisting) { + return; + } + $this->collCcSchedules = new PropelObjectCollection(); + $this->collCcSchedules->setModel('CcSchedule'); + } + + /** + * Gets an array of CcSchedule 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 CcShowInstances 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 PropelObjectCollection|CcSchedule[] List of CcSchedule objects + * @throws PropelException + */ + public function getCcSchedules($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcSchedulesPartial && !$this->isNew(); + if (null === $this->collCcSchedules || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcSchedules) { + // return empty collection + $this->initCcSchedules(); + } else { + $collCcSchedules = CcScheduleQuery::create(null, $criteria) + ->filterByCcShowInstances($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcSchedulesPartial && count($collCcSchedules)) { + $this->initCcSchedules(false); + + foreach ($collCcSchedules as $obj) { + if (false == $this->collCcSchedules->contains($obj)) { + $this->collCcSchedules->append($obj); + } + } + + $this->collCcSchedulesPartial = true; + } + + $collCcSchedules->getInternalIterator()->rewind(); + + return $collCcSchedules; + } + + if ($partial && $this->collCcSchedules) { + foreach ($this->collCcSchedules as $obj) { + if ($obj->isNew()) { + $collCcSchedules[] = $obj; + } + } + } + + $this->collCcSchedules = $collCcSchedules; + $this->collCcSchedulesPartial = false; + } + } + + return $this->collCcSchedules; + } + + /** + * Sets a collection of CcSchedule objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccSchedules A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcShowInstances The current object (for fluent API support) + */ + public function setCcSchedules(PropelCollection $ccSchedules, PropelPDO $con = null) + { + $ccSchedulesToDelete = $this->getCcSchedules(new Criteria(), $con)->diff($ccSchedules); + + + $this->ccSchedulesScheduledForDeletion = $ccSchedulesToDelete; + + foreach ($ccSchedulesToDelete as $ccScheduleRemoved) { + $ccScheduleRemoved->setCcShowInstances(null); + } + + $this->collCcSchedules = null; + foreach ($ccSchedules as $ccSchedule) { + $this->addCcSchedule($ccSchedule); + } + + $this->collCcSchedules = $ccSchedules; + $this->collCcSchedulesPartial = false; + + return $this; + } + + /** + * Returns the number of related CcSchedule objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcSchedule objects. + * @throws PropelException + */ + public function countCcSchedules(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcSchedulesPartial && !$this->isNew(); + if (null === $this->collCcSchedules || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcSchedules) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcSchedules()); + } + $query = CcScheduleQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcShowInstances($this) + ->count($con); + } + + return count($this->collCcSchedules); + } + + /** + * Method called to associate a CcSchedule object to this object + * through the CcSchedule foreign key attribute. + * + * @param CcSchedule $l CcSchedule + * @return CcShowInstances The current object (for fluent API support) + */ + public function addCcSchedule(CcSchedule $l) + { + if ($this->collCcSchedules === null) { + $this->initCcSchedules(); + $this->collCcSchedulesPartial = true; + } + + if (!in_array($l, $this->collCcSchedules->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcSchedule($l); + + if ($this->ccSchedulesScheduledForDeletion and $this->ccSchedulesScheduledForDeletion->contains($l)) { + $this->ccSchedulesScheduledForDeletion->remove($this->ccSchedulesScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcSchedule $ccSchedule The ccSchedule object to add. + */ + protected function doAddCcSchedule($ccSchedule) + { + $this->collCcSchedules[]= $ccSchedule; + $ccSchedule->setCcShowInstances($this); + } + + /** + * @param CcSchedule $ccSchedule The ccSchedule object to remove. + * @return CcShowInstances The current object (for fluent API support) + */ + public function removeCcSchedule($ccSchedule) + { + if ($this->getCcSchedules()->contains($ccSchedule)) { + $this->collCcSchedules->remove($this->collCcSchedules->search($ccSchedule)); + if (null === $this->ccSchedulesScheduledForDeletion) { + $this->ccSchedulesScheduledForDeletion = clone $this->collCcSchedules; + $this->ccSchedulesScheduledForDeletion->clear(); + } + $this->ccSchedulesScheduledForDeletion[]= clone $ccSchedule; + $ccSchedule->setCcShowInstances(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcShowInstances is new, it will return + * an empty collection; or if this CcShowInstances has previously + * been saved, it will retrieve related CcSchedules from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcShowInstances. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcSchedule[] List of CcSchedule objects + */ + public function getCcSchedulesJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcScheduleQuery::create(null, $criteria); + $query->joinWith('CcFiles', $join_behavior); + + return $this->getCcSchedules($query, $con); + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcShowInstances is new, it will return + * an empty collection; or if this CcShowInstances has previously + * been saved, it will retrieve related CcSchedules from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcShowInstances. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcSchedule[] List of CcSchedule objects + */ + public function getCcSchedulesJoinCcWebstream($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcScheduleQuery::create(null, $criteria); + $query->joinWith('CcWebstream', $join_behavior); + + return $this->getCcSchedules($query, $con); + } + + /** + * Clears out the collCcPlayoutHistorys 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 CcShowInstances The current object (for fluent API support) + * @see addCcPlayoutHistorys() + */ + public function clearCcPlayoutHistorys() + { + $this->collCcPlayoutHistorys = null; // important to set this to null since that means it is uninitialized + $this->collCcPlayoutHistorysPartial = null; + + return $this; + } + + /** + * reset is the collCcPlayoutHistorys collection loaded partially + * + * @return void + */ + public function resetPartialCcPlayoutHistorys($v = true) + { + $this->collCcPlayoutHistorysPartial = $v; + } + + /** + * Initializes the collCcPlayoutHistorys collection. + * + * By default this just sets the collCcPlayoutHistorys collection to an empty array (like clearcollCcPlayoutHistorys()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcPlayoutHistorys($overrideExisting = true) + { + if (null !== $this->collCcPlayoutHistorys && !$overrideExisting) { + return; + } + $this->collCcPlayoutHistorys = new PropelObjectCollection(); + $this->collCcPlayoutHistorys->setModel('CcPlayoutHistory'); + } + + /** + * Gets an array of CcPlayoutHistory 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 CcShowInstances 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 PropelObjectCollection|CcPlayoutHistory[] List of CcPlayoutHistory objects + * @throws PropelException + */ + public function getCcPlayoutHistorys($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcPlayoutHistorysPartial && !$this->isNew(); + if (null === $this->collCcPlayoutHistorys || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlayoutHistorys) { + // return empty collection + $this->initCcPlayoutHistorys(); + } else { + $collCcPlayoutHistorys = CcPlayoutHistoryQuery::create(null, $criteria) + ->filterByCcShowInstances($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcPlayoutHistorysPartial && count($collCcPlayoutHistorys)) { + $this->initCcPlayoutHistorys(false); + + foreach ($collCcPlayoutHistorys as $obj) { + if (false == $this->collCcPlayoutHistorys->contains($obj)) { + $this->collCcPlayoutHistorys->append($obj); + } + } + + $this->collCcPlayoutHistorysPartial = true; + } + + $collCcPlayoutHistorys->getInternalIterator()->rewind(); + + return $collCcPlayoutHistorys; + } + + if ($partial && $this->collCcPlayoutHistorys) { + foreach ($this->collCcPlayoutHistorys as $obj) { + if ($obj->isNew()) { + $collCcPlayoutHistorys[] = $obj; + } + } + } + + $this->collCcPlayoutHistorys = $collCcPlayoutHistorys; + $this->collCcPlayoutHistorysPartial = false; + } + } + + return $this->collCcPlayoutHistorys; + } + + /** + * Sets a collection of CcPlayoutHistory objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccPlayoutHistorys A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcShowInstances The current object (for fluent API support) + */ + public function setCcPlayoutHistorys(PropelCollection $ccPlayoutHistorys, PropelPDO $con = null) + { + $ccPlayoutHistorysToDelete = $this->getCcPlayoutHistorys(new Criteria(), $con)->diff($ccPlayoutHistorys); + + + $this->ccPlayoutHistorysScheduledForDeletion = $ccPlayoutHistorysToDelete; + + foreach ($ccPlayoutHistorysToDelete as $ccPlayoutHistoryRemoved) { + $ccPlayoutHistoryRemoved->setCcShowInstances(null); + } + + $this->collCcPlayoutHistorys = null; + foreach ($ccPlayoutHistorys as $ccPlayoutHistory) { + $this->addCcPlayoutHistory($ccPlayoutHistory); + } + + $this->collCcPlayoutHistorys = $ccPlayoutHistorys; + $this->collCcPlayoutHistorysPartial = false; + + return $this; + } + + /** + * Returns the number of related CcPlayoutHistory objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcPlayoutHistory objects. + * @throws PropelException + */ + public function countCcPlayoutHistorys(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcPlayoutHistorysPartial && !$this->isNew(); + if (null === $this->collCcPlayoutHistorys || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlayoutHistorys) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcPlayoutHistorys()); + } + $query = CcPlayoutHistoryQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcShowInstances($this) + ->count($con); + } + + return count($this->collCcPlayoutHistorys); + } + + /** + * Method called to associate a CcPlayoutHistory object to this object + * through the CcPlayoutHistory foreign key attribute. + * + * @param CcPlayoutHistory $l CcPlayoutHistory + * @return CcShowInstances The current object (for fluent API support) + */ + public function addCcPlayoutHistory(CcPlayoutHistory $l) + { + if ($this->collCcPlayoutHistorys === null) { + $this->initCcPlayoutHistorys(); + $this->collCcPlayoutHistorysPartial = true; + } + + if (!in_array($l, $this->collCcPlayoutHistorys->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcPlayoutHistory($l); + + if ($this->ccPlayoutHistorysScheduledForDeletion and $this->ccPlayoutHistorysScheduledForDeletion->contains($l)) { + $this->ccPlayoutHistorysScheduledForDeletion->remove($this->ccPlayoutHistorysScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcPlayoutHistory $ccPlayoutHistory The ccPlayoutHistory object to add. + */ + protected function doAddCcPlayoutHistory($ccPlayoutHistory) + { + $this->collCcPlayoutHistorys[]= $ccPlayoutHistory; + $ccPlayoutHistory->setCcShowInstances($this); + } + + /** + * @param CcPlayoutHistory $ccPlayoutHistory The ccPlayoutHistory object to remove. + * @return CcShowInstances The current object (for fluent API support) + */ + public function removeCcPlayoutHistory($ccPlayoutHistory) + { + if ($this->getCcPlayoutHistorys()->contains($ccPlayoutHistory)) { + $this->collCcPlayoutHistorys->remove($this->collCcPlayoutHistorys->search($ccPlayoutHistory)); + if (null === $this->ccPlayoutHistorysScheduledForDeletion) { + $this->ccPlayoutHistorysScheduledForDeletion = clone $this->collCcPlayoutHistorys; + $this->ccPlayoutHistorysScheduledForDeletion->clear(); + } + $this->ccPlayoutHistorysScheduledForDeletion[]= $ccPlayoutHistory; + $ccPlayoutHistory->setCcShowInstances(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcShowInstances is new, it will return + * an empty collection; or if this CcShowInstances has previously + * been saved, it will retrieve related CcPlayoutHistorys from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcShowInstances. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcPlayoutHistory[] List of CcPlayoutHistory objects + */ + public function getCcPlayoutHistorysJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcPlayoutHistoryQuery::create(null, $criteria); + $query->joinWith('CcFiles', $join_behavior); + + return $this->getCcPlayoutHistorys($query, $con); + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->starts = null; + $this->ends = null; + $this->show_id = null; + $this->record = null; + $this->rebroadcast = null; + $this->instance_id = null; + $this->file_id = null; + $this->time_filled = null; + $this->created = null; + $this->last_scheduled = null; + $this->modified_instance = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->collCcShowInstancessRelatedByDbId) { + foreach ($this->collCcShowInstancessRelatedByDbId as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcSchedules) { + foreach ($this->collCcSchedules as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcPlayoutHistorys) { + foreach ($this->collCcPlayoutHistorys as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->aCcShow instanceof Persistent) { + $this->aCcShow->clearAllReferences($deep); + } + if ($this->aCcShowInstancesRelatedByDbOriginalShow instanceof Persistent) { + $this->aCcShowInstancesRelatedByDbOriginalShow->clearAllReferences($deep); + } + if ($this->aCcFiles instanceof Persistent) { + $this->aCcFiles->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + if ($this->collCcShowInstancessRelatedByDbId instanceof PropelCollection) { + $this->collCcShowInstancessRelatedByDbId->clearIterator(); + } + $this->collCcShowInstancessRelatedByDbId = null; + if ($this->collCcSchedules instanceof PropelCollection) { + $this->collCcSchedules->clearIterator(); + } + $this->collCcSchedules = null; + if ($this->collCcPlayoutHistorys instanceof PropelCollection) { + $this->collCcPlayoutHistorys->clearIterator(); + } + $this->collCcPlayoutHistorys = null; + $this->aCcShow = null; + $this->aCcShowInstancesRelatedByDbOriginalShow = null; + $this->aCcFiles = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcShowInstancesPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShowInstancesPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcShowInstancesPeer.php index ad91f182cc..3558b15ddc 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShowInstancesPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShowInstancesPeer.php @@ -4,1561 +4,1595 @@ /** * Base static class for performing query and update operations on the 'cc_show_instances' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcShowInstancesPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_show_instances'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcShowInstances'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcShowInstances'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcShowInstancesTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 12; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_show_instances.ID'; - - /** the column name for the STARTS field */ - const STARTS = 'cc_show_instances.STARTS'; - - /** the column name for the ENDS field */ - const ENDS = 'cc_show_instances.ENDS'; - - /** the column name for the SHOW_ID field */ - const SHOW_ID = 'cc_show_instances.SHOW_ID'; - - /** the column name for the RECORD field */ - const RECORD = 'cc_show_instances.RECORD'; - - /** the column name for the REBROADCAST field */ - const REBROADCAST = 'cc_show_instances.REBROADCAST'; - - /** the column name for the INSTANCE_ID field */ - const INSTANCE_ID = 'cc_show_instances.INSTANCE_ID'; - - /** the column name for the FILE_ID field */ - const FILE_ID = 'cc_show_instances.FILE_ID'; - - /** the column name for the TIME_FILLED field */ - const TIME_FILLED = 'cc_show_instances.TIME_FILLED'; - - /** the column name for the CREATED field */ - const CREATED = 'cc_show_instances.CREATED'; - - /** the column name for the LAST_SCHEDULED field */ - const LAST_SCHEDULED = 'cc_show_instances.LAST_SCHEDULED'; - - /** the column name for the MODIFIED_INSTANCE field */ - const MODIFIED_INSTANCE = 'cc_show_instances.MODIFIED_INSTANCE'; - - /** - * An identiy map to hold any loaded instances of CcShowInstances objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcShowInstances[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbStarts', 'DbEnds', 'DbShowId', 'DbRecord', 'DbRebroadcast', 'DbOriginalShow', 'DbRecordedFile', 'DbTimeFilled', 'DbCreated', 'DbLastScheduled', 'DbModifiedInstance', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbStarts', 'dbEnds', 'dbShowId', 'dbRecord', 'dbRebroadcast', 'dbOriginalShow', 'dbRecordedFile', 'dbTimeFilled', 'dbCreated', 'dbLastScheduled', 'dbModifiedInstance', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::STARTS, self::ENDS, self::SHOW_ID, self::RECORD, self::REBROADCAST, self::INSTANCE_ID, self::FILE_ID, self::TIME_FILLED, self::CREATED, self::LAST_SCHEDULED, self::MODIFIED_INSTANCE, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'STARTS', 'ENDS', 'SHOW_ID', 'RECORD', 'REBROADCAST', 'INSTANCE_ID', 'FILE_ID', 'TIME_FILLED', 'CREATED', 'LAST_SCHEDULED', 'MODIFIED_INSTANCE', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'starts', 'ends', 'show_id', 'record', 'rebroadcast', 'instance_id', 'file_id', 'time_filled', 'created', 'last_scheduled', 'modified_instance', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbStarts' => 1, 'DbEnds' => 2, 'DbShowId' => 3, 'DbRecord' => 4, 'DbRebroadcast' => 5, 'DbOriginalShow' => 6, 'DbRecordedFile' => 7, 'DbTimeFilled' => 8, 'DbCreated' => 9, 'DbLastScheduled' => 10, 'DbModifiedInstance' => 11, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbStarts' => 1, 'dbEnds' => 2, 'dbShowId' => 3, 'dbRecord' => 4, 'dbRebroadcast' => 5, 'dbOriginalShow' => 6, 'dbRecordedFile' => 7, 'dbTimeFilled' => 8, 'dbCreated' => 9, 'dbLastScheduled' => 10, 'dbModifiedInstance' => 11, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::STARTS => 1, self::ENDS => 2, self::SHOW_ID => 3, self::RECORD => 4, self::REBROADCAST => 5, self::INSTANCE_ID => 6, self::FILE_ID => 7, self::TIME_FILLED => 8, self::CREATED => 9, self::LAST_SCHEDULED => 10, self::MODIFIED_INSTANCE => 11, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'STARTS' => 1, 'ENDS' => 2, 'SHOW_ID' => 3, 'RECORD' => 4, 'REBROADCAST' => 5, 'INSTANCE_ID' => 6, 'FILE_ID' => 7, 'TIME_FILLED' => 8, 'CREATED' => 9, 'LAST_SCHEDULED' => 10, 'MODIFIED_INSTANCE' => 11, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'starts' => 1, 'ends' => 2, 'show_id' => 3, 'record' => 4, 'rebroadcast' => 5, 'instance_id' => 6, 'file_id' => 7, 'time_filled' => 8, 'created' => 9, 'last_scheduled' => 10, 'modified_instance' => 11, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcShowInstancesPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcShowInstancesPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcShowInstancesPeer::ID); - $criteria->addSelectColumn(CcShowInstancesPeer::STARTS); - $criteria->addSelectColumn(CcShowInstancesPeer::ENDS); - $criteria->addSelectColumn(CcShowInstancesPeer::SHOW_ID); - $criteria->addSelectColumn(CcShowInstancesPeer::RECORD); - $criteria->addSelectColumn(CcShowInstancesPeer::REBROADCAST); - $criteria->addSelectColumn(CcShowInstancesPeer::INSTANCE_ID); - $criteria->addSelectColumn(CcShowInstancesPeer::FILE_ID); - $criteria->addSelectColumn(CcShowInstancesPeer::TIME_FILLED); - $criteria->addSelectColumn(CcShowInstancesPeer::CREATED); - $criteria->addSelectColumn(CcShowInstancesPeer::LAST_SCHEDULED); - $criteria->addSelectColumn(CcShowInstancesPeer::MODIFIED_INSTANCE); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.STARTS'); - $criteria->addSelectColumn($alias . '.ENDS'); - $criteria->addSelectColumn($alias . '.SHOW_ID'); - $criteria->addSelectColumn($alias . '.RECORD'); - $criteria->addSelectColumn($alias . '.REBROADCAST'); - $criteria->addSelectColumn($alias . '.INSTANCE_ID'); - $criteria->addSelectColumn($alias . '.FILE_ID'); - $criteria->addSelectColumn($alias . '.TIME_FILLED'); - $criteria->addSelectColumn($alias . '.CREATED'); - $criteria->addSelectColumn($alias . '.LAST_SCHEDULED'); - $criteria->addSelectColumn($alias . '.MODIFIED_INSTANCE'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowInstancesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcShowInstances - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcShowInstancesPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcShowInstancesPeer::populateObjects(CcShowInstancesPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcShowInstancesPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcShowInstances $value A CcShowInstances object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcShowInstances $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcShowInstances object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcShowInstances) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcShowInstances object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcShowInstances Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_show_instances - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - // Invalidate objects in CcShowInstancesPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcShowInstancesPeer::clearInstancePool(); - // Invalidate objects in CcSchedulePeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcSchedulePeer::clearInstancePool(); - // Invalidate objects in CcPlayoutHistoryPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcPlayoutHistoryPeer::clearInstancePool(); - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcShowInstancesPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcShowInstancesPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcShowInstancesPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcShowInstances object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcShowInstancesPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcShowInstancesPeer::NUM_COLUMNS; - } else { - $cls = CcShowInstancesPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcShowInstancesPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcShow table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcShow(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowInstancesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcFiles table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowInstancesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcShowInstances objects pre-filled with their CcShow objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowInstances objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcShow(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowInstancesPeer::addSelectColumns($criteria); - $startcol = (CcShowInstancesPeer::NUM_COLUMNS - CcShowInstancesPeer::NUM_LAZY_LOAD_COLUMNS); - CcShowPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowInstancesPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcShowInstancesPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowInstancesPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcShowPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcShowPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcShowInstances) to $obj2 (CcShow) - $obj2->addCcShowInstances($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcShowInstances objects pre-filled with their CcFiles objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowInstances objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowInstancesPeer::addSelectColumns($criteria); - $startcol = (CcShowInstancesPeer::NUM_COLUMNS - CcShowInstancesPeer::NUM_LAZY_LOAD_COLUMNS); - CcFilesPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowInstancesPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcShowInstancesPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowInstancesPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcFilesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcFilesPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcShowInstances) to $obj2 (CcFiles) - $obj2->addCcShowInstances($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowInstancesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcShowInstances objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowInstances objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowInstancesPeer::addSelectColumns($criteria); - $startcol2 = (CcShowInstancesPeer::NUM_COLUMNS - CcShowInstancesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcShowPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcShowPeer::NUM_COLUMNS - CcShowPeer::NUM_LAZY_LOAD_COLUMNS); - - CcFilesPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowInstancesPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcShowInstancesPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowInstancesPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcShow rows - - $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcShowPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcShowPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcShowInstances) to the collection in $obj2 (CcShow) - $obj2->addCcShowInstances($obj1); - } // if joined row not null - - // Add objects for joined CcFiles rows - - $key3 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcFilesPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcFilesPeer::addInstanceToPool($obj3, $key3); - } // if obj3 loaded - - // Add the $obj1 (CcShowInstances) to the collection in $obj3 (CcFiles) - $obj3->addCcShowInstances($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcShow table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcShow(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowInstancesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcShowInstancesRelatedByDbOriginalShow table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcShowInstancesRelatedByDbOriginalShow(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowInstancesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Returns the number of rows matching criteria, joining the related CcFiles table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAllExceptCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowInstancesPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcShowInstances objects pre-filled with all related objects except CcShow. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowInstances objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcShow(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowInstancesPeer::addSelectColumns($criteria); - $startcol2 = (CcShowInstancesPeer::NUM_COLUMNS - CcShowInstancesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcFilesPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowInstancesPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcShowInstancesPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowInstancesPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcFiles rows - - $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcFilesPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcFilesPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcShowInstances) to the collection in $obj2 (CcFiles) - $obj2->addCcShowInstances($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcShowInstances objects pre-filled with all related objects except CcShowInstancesRelatedByDbOriginalShow. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowInstances objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcShowInstancesRelatedByDbOriginalShow(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowInstancesPeer::addSelectColumns($criteria); - $startcol2 = (CcShowInstancesPeer::NUM_COLUMNS - CcShowInstancesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcShowPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcShowPeer::NUM_COLUMNS - CcShowPeer::NUM_LAZY_LOAD_COLUMNS); - - CcFilesPeer::addSelectColumns($criteria); - $startcol4 = $startcol3 + (CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowInstancesPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcShowInstancesPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowInstancesPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcShow rows - - $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcShowPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcShowPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcShowInstances) to the collection in $obj2 (CcShow) - $obj2->addCcShowInstances($obj1); - - } // if joined row is not null - - // Add objects for joined CcFiles rows - - $key3 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol3); - if ($key3 !== null) { - $obj3 = CcFilesPeer::getInstanceFromPool($key3); - if (!$obj3) { - - $cls = CcFilesPeer::getOMClass(false); - - $obj3 = new $cls(); - $obj3->hydrate($row, $startcol3); - CcFilesPeer::addInstanceToPool($obj3, $key3); - } // if $obj3 already loaded - - // Add the $obj1 (CcShowInstances) to the collection in $obj3 (CcFiles) - $obj3->addCcShowInstances($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Selects a collection of CcShowInstances objects pre-filled with all related objects except CcFiles. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowInstances objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExceptCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - // $criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowInstancesPeer::addSelectColumns($criteria); - $startcol2 = (CcShowInstancesPeer::NUM_COLUMNS - CcShowInstancesPeer::NUM_LAZY_LOAD_COLUMNS); - - CcShowPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcShowPeer::NUM_COLUMNS - CcShowPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowInstancesPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcShowInstancesPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowInstancesPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcShow rows - - $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcShowPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcShowPeer::addInstanceToPool($obj2, $key2); - } // if $obj2 already loaded - - // Add the $obj1 (CcShowInstances) to the collection in $obj2 (CcShow) - $obj2->addCcShowInstances($obj1); - - } // if joined row is not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcShowInstancesPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcShowInstancesPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcShowInstancesTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcShowInstancesPeer::CLASS_DEFAULT : CcShowInstancesPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcShowInstances or Criteria object. - * - * @param mixed $values Criteria or CcShowInstances object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcShowInstances object - } - - if ($criteria->containsKey(CcShowInstancesPeer::ID) && $criteria->keyContainsValue(CcShowInstancesPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowInstancesPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcShowInstances or Criteria object. - * - * @param mixed $values Criteria or CcShowInstances object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcShowInstancesPeer::ID); - $value = $criteria->remove(CcShowInstancesPeer::ID); - if ($value) { - $selectCriteria->add(CcShowInstancesPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); - } - - } else { // $values is CcShowInstances object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_show_instances table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcShowInstancesPeer::TABLE_NAME, $con, CcShowInstancesPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcShowInstancesPeer::clearInstancePool(); - CcShowInstancesPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcShowInstances or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcShowInstances object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcShowInstancesPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcShowInstances) { // it's a model object - // invalidate the cache for this single object - CcShowInstancesPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcShowInstancesPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcShowInstancesPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcShowInstancesPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcShowInstances object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcShowInstances $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcShowInstances $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcShowInstancesPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcShowInstancesPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcShowInstancesPeer::DATABASE_NAME, CcShowInstancesPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcShowInstances - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcShowInstancesPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcShowInstancesPeer::DATABASE_NAME); - $criteria->add(CcShowInstancesPeer::ID, $pk); - - $v = CcShowInstancesPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcShowInstancesPeer::DATABASE_NAME); - $criteria->add(CcShowInstancesPeer::ID, $pks, Criteria::IN); - $objs = CcShowInstancesPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcShowInstancesPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_show_instances'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcShowInstances'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcShowInstancesTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 12; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 12; + + /** the column name for the id field */ + const ID = 'cc_show_instances.id'; + + /** the column name for the starts field */ + const STARTS = 'cc_show_instances.starts'; + + /** the column name for the ends field */ + const ENDS = 'cc_show_instances.ends'; + + /** the column name for the show_id field */ + const SHOW_ID = 'cc_show_instances.show_id'; + + /** the column name for the record field */ + const RECORD = 'cc_show_instances.record'; + + /** the column name for the rebroadcast field */ + const REBROADCAST = 'cc_show_instances.rebroadcast'; + + /** the column name for the instance_id field */ + const INSTANCE_ID = 'cc_show_instances.instance_id'; + + /** the column name for the file_id field */ + const FILE_ID = 'cc_show_instances.file_id'; + + /** the column name for the time_filled field */ + const TIME_FILLED = 'cc_show_instances.time_filled'; + + /** the column name for the created field */ + const CREATED = 'cc_show_instances.created'; + + /** the column name for the last_scheduled field */ + const LAST_SCHEDULED = 'cc_show_instances.last_scheduled'; + + /** the column name for the modified_instance field */ + const MODIFIED_INSTANCE = 'cc_show_instances.modified_instance'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcShowInstances objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcShowInstances[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcShowInstancesPeer::$fieldNames[CcShowInstancesPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbStarts', 'DbEnds', 'DbShowId', 'DbRecord', 'DbRebroadcast', 'DbOriginalShow', 'DbRecordedFile', 'DbTimeFilled', 'DbCreated', 'DbLastScheduled', 'DbModifiedInstance', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbStarts', 'dbEnds', 'dbShowId', 'dbRecord', 'dbRebroadcast', 'dbOriginalShow', 'dbRecordedFile', 'dbTimeFilled', 'dbCreated', 'dbLastScheduled', 'dbModifiedInstance', ), + BasePeer::TYPE_COLNAME => array (CcShowInstancesPeer::ID, CcShowInstancesPeer::STARTS, CcShowInstancesPeer::ENDS, CcShowInstancesPeer::SHOW_ID, CcShowInstancesPeer::RECORD, CcShowInstancesPeer::REBROADCAST, CcShowInstancesPeer::INSTANCE_ID, CcShowInstancesPeer::FILE_ID, CcShowInstancesPeer::TIME_FILLED, CcShowInstancesPeer::CREATED, CcShowInstancesPeer::LAST_SCHEDULED, CcShowInstancesPeer::MODIFIED_INSTANCE, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'STARTS', 'ENDS', 'SHOW_ID', 'RECORD', 'REBROADCAST', 'INSTANCE_ID', 'FILE_ID', 'TIME_FILLED', 'CREATED', 'LAST_SCHEDULED', 'MODIFIED_INSTANCE', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'starts', 'ends', 'show_id', 'record', 'rebroadcast', 'instance_id', 'file_id', 'time_filled', 'created', 'last_scheduled', 'modified_instance', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcShowInstancesPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbStarts' => 1, 'DbEnds' => 2, 'DbShowId' => 3, 'DbRecord' => 4, 'DbRebroadcast' => 5, 'DbOriginalShow' => 6, 'DbRecordedFile' => 7, 'DbTimeFilled' => 8, 'DbCreated' => 9, 'DbLastScheduled' => 10, 'DbModifiedInstance' => 11, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbStarts' => 1, 'dbEnds' => 2, 'dbShowId' => 3, 'dbRecord' => 4, 'dbRebroadcast' => 5, 'dbOriginalShow' => 6, 'dbRecordedFile' => 7, 'dbTimeFilled' => 8, 'dbCreated' => 9, 'dbLastScheduled' => 10, 'dbModifiedInstance' => 11, ), + BasePeer::TYPE_COLNAME => array (CcShowInstancesPeer::ID => 0, CcShowInstancesPeer::STARTS => 1, CcShowInstancesPeer::ENDS => 2, CcShowInstancesPeer::SHOW_ID => 3, CcShowInstancesPeer::RECORD => 4, CcShowInstancesPeer::REBROADCAST => 5, CcShowInstancesPeer::INSTANCE_ID => 6, CcShowInstancesPeer::FILE_ID => 7, CcShowInstancesPeer::TIME_FILLED => 8, CcShowInstancesPeer::CREATED => 9, CcShowInstancesPeer::LAST_SCHEDULED => 10, CcShowInstancesPeer::MODIFIED_INSTANCE => 11, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'STARTS' => 1, 'ENDS' => 2, 'SHOW_ID' => 3, 'RECORD' => 4, 'REBROADCAST' => 5, 'INSTANCE_ID' => 6, 'FILE_ID' => 7, 'TIME_FILLED' => 8, 'CREATED' => 9, 'LAST_SCHEDULED' => 10, 'MODIFIED_INSTANCE' => 11, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'starts' => 1, 'ends' => 2, 'show_id' => 3, 'record' => 4, 'rebroadcast' => 5, 'instance_id' => 6, 'file_id' => 7, 'time_filled' => 8, 'created' => 9, 'last_scheduled' => 10, 'modified_instance' => 11, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcShowInstancesPeer::getFieldNames($toType); + $key = isset(CcShowInstancesPeer::$fieldKeys[$fromType][$name]) ? CcShowInstancesPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcShowInstancesPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcShowInstancesPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcShowInstancesPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcShowInstancesPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcShowInstancesPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcShowInstancesPeer::ID); + $criteria->addSelectColumn(CcShowInstancesPeer::STARTS); + $criteria->addSelectColumn(CcShowInstancesPeer::ENDS); + $criteria->addSelectColumn(CcShowInstancesPeer::SHOW_ID); + $criteria->addSelectColumn(CcShowInstancesPeer::RECORD); + $criteria->addSelectColumn(CcShowInstancesPeer::REBROADCAST); + $criteria->addSelectColumn(CcShowInstancesPeer::INSTANCE_ID); + $criteria->addSelectColumn(CcShowInstancesPeer::FILE_ID); + $criteria->addSelectColumn(CcShowInstancesPeer::TIME_FILLED); + $criteria->addSelectColumn(CcShowInstancesPeer::CREATED); + $criteria->addSelectColumn(CcShowInstancesPeer::LAST_SCHEDULED); + $criteria->addSelectColumn(CcShowInstancesPeer::MODIFIED_INSTANCE); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.starts'); + $criteria->addSelectColumn($alias . '.ends'); + $criteria->addSelectColumn($alias . '.show_id'); + $criteria->addSelectColumn($alias . '.record'); + $criteria->addSelectColumn($alias . '.rebroadcast'); + $criteria->addSelectColumn($alias . '.instance_id'); + $criteria->addSelectColumn($alias . '.file_id'); + $criteria->addSelectColumn($alias . '.time_filled'); + $criteria->addSelectColumn($alias . '.created'); + $criteria->addSelectColumn($alias . '.last_scheduled'); + $criteria->addSelectColumn($alias . '.modified_instance'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowInstancesPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcShowInstances + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcShowInstancesPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcShowInstancesPeer::populateObjects(CcShowInstancesPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcShowInstancesPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcShowInstances $obj A CcShowInstances object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcShowInstancesPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcShowInstances object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcShowInstances) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcShowInstances object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcShowInstancesPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcShowInstances Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcShowInstancesPeer::$instances[$key])) { + return CcShowInstancesPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcShowInstancesPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcShowInstancesPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_show_instances + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + // Invalidate objects in CcShowInstancesPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcShowInstancesPeer::clearInstancePool(); + // Invalidate objects in CcSchedulePeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcSchedulePeer::clearInstancePool(); + // Invalidate objects in CcPlayoutHistoryPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcPlayoutHistoryPeer::clearInstancePool(); + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcShowInstancesPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcShowInstancesPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcShowInstancesPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcShowInstances object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcShowInstancesPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcShowInstancesPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcShowInstancesPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcShowInstancesPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcShow table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcShow(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowInstancesPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcFiles table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowInstancesPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcShowInstances objects pre-filled with their CcShow objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowInstances objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcShow(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + } + + CcShowInstancesPeer::addSelectColumns($criteria); + $startcol = CcShowInstancesPeer::NUM_HYDRATE_COLUMNS; + CcShowPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowInstancesPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcShowInstancesPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowInstancesPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcShowPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcShowPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcShowInstances) to $obj2 (CcShow) + $obj2->addCcShowInstances($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcShowInstances objects pre-filled with their CcFiles objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowInstances objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + } + + CcShowInstancesPeer::addSelectColumns($criteria); + $startcol = CcShowInstancesPeer::NUM_HYDRATE_COLUMNS; + CcFilesPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowInstancesPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcShowInstancesPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowInstancesPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcShowInstances) to $obj2 (CcFiles) + $obj2->addCcShowInstances($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowInstancesPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcShowInstances objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowInstances objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + } + + CcShowInstancesPeer::addSelectColumns($criteria); + $startcol2 = CcShowInstancesPeer::NUM_HYDRATE_COLUMNS; + + CcShowPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcShowPeer::NUM_HYDRATE_COLUMNS; + + CcFilesPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcFilesPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowInstancesPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcShowInstancesPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowInstancesPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcShow rows + + $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcShowPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcShowPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcShowInstances) to the collection in $obj2 (CcShow) + $obj2->addCcShowInstances($obj1); + } // if joined row not null + + // Add objects for joined CcFiles rows + + $key3 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcFilesPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcFilesPeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcFilesPeer::addInstanceToPool($obj3, $key3); + } // if obj3 loaded + + // Add the $obj1 (CcShowInstances) to the collection in $obj3 (CcFiles) + $obj3->addCcShowInstances($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcShow table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcShow(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowInstancesPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcShowInstancesRelatedByDbOriginalShow table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcShowInstancesRelatedByDbOriginalShow(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowInstancesPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Returns the number of rows matching criteria, joining the related CcFiles table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAllExceptCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowInstancesPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY should not affect count + + // Set the correct dbName + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcShowInstances objects pre-filled with all related objects except CcShow. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowInstances objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcShow(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + } + + CcShowInstancesPeer::addSelectColumns($criteria); + $startcol2 = CcShowInstancesPeer::NUM_HYDRATE_COLUMNS; + + CcFilesPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcFilesPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowInstancesPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcShowInstancesPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowInstancesPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcFiles rows + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcShowInstances) to the collection in $obj2 (CcFiles) + $obj2->addCcShowInstances($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcShowInstances objects pre-filled with all related objects except CcShowInstancesRelatedByDbOriginalShow. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowInstances objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcShowInstancesRelatedByDbOriginalShow(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + } + + CcShowInstancesPeer::addSelectColumns($criteria); + $startcol2 = CcShowInstancesPeer::NUM_HYDRATE_COLUMNS; + + CcShowPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcShowPeer::NUM_HYDRATE_COLUMNS; + + CcFilesPeer::addSelectColumns($criteria); + $startcol4 = $startcol3 + CcFilesPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $criteria->addJoin(CcShowInstancesPeer::FILE_ID, CcFilesPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowInstancesPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcShowInstancesPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowInstancesPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcShow rows + + $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcShowPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcShowPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcShowInstances) to the collection in $obj2 (CcShow) + $obj2->addCcShowInstances($obj1); + + } // if joined row is not null + + // Add objects for joined CcFiles rows + + $key3 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol3); + if ($key3 !== null) { + $obj3 = CcFilesPeer::getInstanceFromPool($key3); + if (!$obj3) { + + $cls = CcFilesPeer::getOMClass(); + + $obj3 = new $cls(); + $obj3->hydrate($row, $startcol3); + CcFilesPeer::addInstanceToPool($obj3, $key3); + } // if $obj3 already loaded + + // Add the $obj1 (CcShowInstances) to the collection in $obj3 (CcFiles) + $obj3->addCcShowInstances($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Selects a collection of CcShowInstances objects pre-filled with all related objects except CcFiles. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowInstances objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAllExceptCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + // $criteria->getDbName() will return the same object if not set to another value + // so == check is okay and faster + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + } + + CcShowInstancesPeer::addSelectColumns($criteria); + $startcol2 = CcShowInstancesPeer::NUM_HYDRATE_COLUMNS; + + CcShowPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcShowPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcShowInstancesPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowInstancesPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowInstancesPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcShowInstancesPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowInstancesPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcShow rows + + $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcShowPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcShowPeer::addInstanceToPool($obj2, $key2); + } // if $obj2 already loaded + + // Add the $obj1 (CcShowInstances) to the collection in $obj2 (CcShow) + $obj2->addCcShowInstances($obj1); + + } // if joined row is not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcShowInstancesPeer::DATABASE_NAME)->getTable(CcShowInstancesPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcShowInstancesPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcShowInstancesPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcShowInstancesTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcShowInstancesPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcShowInstances or Criteria object. + * + * @param mixed $values Criteria or CcShowInstances object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcShowInstances object + } + + if ($criteria->containsKey(CcShowInstancesPeer::ID) && $criteria->keyContainsValue(CcShowInstancesPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowInstancesPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcShowInstances or Criteria object. + * + * @param mixed $values Criteria or CcShowInstances object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcShowInstancesPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcShowInstancesPeer::ID); + $value = $criteria->remove(CcShowInstancesPeer::ID); + if ($value) { + $selectCriteria->add(CcShowInstancesPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcShowInstancesPeer::TABLE_NAME); + } + + } else { // $values is CcShowInstances object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_show_instances table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcShowInstancesPeer::TABLE_NAME, $con, CcShowInstancesPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcShowInstancesPeer::clearInstancePool(); + CcShowInstancesPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcShowInstances or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcShowInstances object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcShowInstancesPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcShowInstances) { // it's a model object + // invalidate the cache for this single object + CcShowInstancesPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcShowInstancesPeer::DATABASE_NAME); + $criteria->add(CcShowInstancesPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcShowInstancesPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcShowInstancesPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcShowInstancesPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcShowInstances object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcShowInstances $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcShowInstancesPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcShowInstancesPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcShowInstancesPeer::DATABASE_NAME, CcShowInstancesPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcShowInstances + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcShowInstancesPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcShowInstancesPeer::DATABASE_NAME); + $criteria->add(CcShowInstancesPeer::ID, $pk); + + $v = CcShowInstancesPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcShowInstances[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcShowInstancesPeer::DATABASE_NAME); + $criteria->add(CcShowInstancesPeer::ID, $pks, Criteria::IN); + $objs = CcShowInstancesPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcShowInstancesPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShowInstancesQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcShowInstancesQuery.php index 871b907ae9..bcf51e462c 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShowInstancesQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShowInstancesQuery.php @@ -4,932 +4,1235 @@ /** * Base class that represents a query for the 'cc_show_instances' table. * - * * - * @method CcShowInstancesQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcShowInstancesQuery orderByDbStarts($order = Criteria::ASC) Order by the starts column - * @method CcShowInstancesQuery orderByDbEnds($order = Criteria::ASC) Order by the ends column - * @method CcShowInstancesQuery orderByDbShowId($order = Criteria::ASC) Order by the show_id column - * @method CcShowInstancesQuery orderByDbRecord($order = Criteria::ASC) Order by the record column - * @method CcShowInstancesQuery orderByDbRebroadcast($order = Criteria::ASC) Order by the rebroadcast column - * @method CcShowInstancesQuery orderByDbOriginalShow($order = Criteria::ASC) Order by the instance_id column - * @method CcShowInstancesQuery orderByDbRecordedFile($order = Criteria::ASC) Order by the file_id column - * @method CcShowInstancesQuery orderByDbTimeFilled($order = Criteria::ASC) Order by the time_filled column - * @method CcShowInstancesQuery orderByDbCreated($order = Criteria::ASC) Order by the created column - * @method CcShowInstancesQuery orderByDbLastScheduled($order = Criteria::ASC) Order by the last_scheduled column - * @method CcShowInstancesQuery orderByDbModifiedInstance($order = Criteria::ASC) Order by the modified_instance column * - * @method CcShowInstancesQuery groupByDbId() Group by the id column - * @method CcShowInstancesQuery groupByDbStarts() Group by the starts column - * @method CcShowInstancesQuery groupByDbEnds() Group by the ends column - * @method CcShowInstancesQuery groupByDbShowId() Group by the show_id column - * @method CcShowInstancesQuery groupByDbRecord() Group by the record column - * @method CcShowInstancesQuery groupByDbRebroadcast() Group by the rebroadcast column - * @method CcShowInstancesQuery groupByDbOriginalShow() Group by the instance_id column - * @method CcShowInstancesQuery groupByDbRecordedFile() Group by the file_id column - * @method CcShowInstancesQuery groupByDbTimeFilled() Group by the time_filled column - * @method CcShowInstancesQuery groupByDbCreated() Group by the created column - * @method CcShowInstancesQuery groupByDbLastScheduled() Group by the last_scheduled column - * @method CcShowInstancesQuery groupByDbModifiedInstance() Group by the modified_instance column + * @method CcShowInstancesQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcShowInstancesQuery orderByDbStarts($order = Criteria::ASC) Order by the starts column + * @method CcShowInstancesQuery orderByDbEnds($order = Criteria::ASC) Order by the ends column + * @method CcShowInstancesQuery orderByDbShowId($order = Criteria::ASC) Order by the show_id column + * @method CcShowInstancesQuery orderByDbRecord($order = Criteria::ASC) Order by the record column + * @method CcShowInstancesQuery orderByDbRebroadcast($order = Criteria::ASC) Order by the rebroadcast column + * @method CcShowInstancesQuery orderByDbOriginalShow($order = Criteria::ASC) Order by the instance_id column + * @method CcShowInstancesQuery orderByDbRecordedFile($order = Criteria::ASC) Order by the file_id column + * @method CcShowInstancesQuery orderByDbTimeFilled($order = Criteria::ASC) Order by the time_filled column + * @method CcShowInstancesQuery orderByDbCreated($order = Criteria::ASC) Order by the created column + * @method CcShowInstancesQuery orderByDbLastScheduled($order = Criteria::ASC) Order by the last_scheduled column + * @method CcShowInstancesQuery orderByDbModifiedInstance($order = Criteria::ASC) Order by the modified_instance column * - * @method CcShowInstancesQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcShowInstancesQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcShowInstancesQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcShowInstancesQuery groupByDbId() Group by the id column + * @method CcShowInstancesQuery groupByDbStarts() Group by the starts column + * @method CcShowInstancesQuery groupByDbEnds() Group by the ends column + * @method CcShowInstancesQuery groupByDbShowId() Group by the show_id column + * @method CcShowInstancesQuery groupByDbRecord() Group by the record column + * @method CcShowInstancesQuery groupByDbRebroadcast() Group by the rebroadcast column + * @method CcShowInstancesQuery groupByDbOriginalShow() Group by the instance_id column + * @method CcShowInstancesQuery groupByDbRecordedFile() Group by the file_id column + * @method CcShowInstancesQuery groupByDbTimeFilled() Group by the time_filled column + * @method CcShowInstancesQuery groupByDbCreated() Group by the created column + * @method CcShowInstancesQuery groupByDbLastScheduled() Group by the last_scheduled column + * @method CcShowInstancesQuery groupByDbModifiedInstance() Group by the modified_instance column * - * @method CcShowInstancesQuery leftJoinCcShow($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShow relation - * @method CcShowInstancesQuery rightJoinCcShow($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShow relation - * @method CcShowInstancesQuery innerJoinCcShow($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShow relation + * @method CcShowInstancesQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcShowInstancesQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcShowInstancesQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcShowInstancesQuery leftJoinCcShowInstancesRelatedByDbOriginalShow($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShowInstancesRelatedByDbOriginalShow relation - * @method CcShowInstancesQuery rightJoinCcShowInstancesRelatedByDbOriginalShow($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShowInstancesRelatedByDbOriginalShow relation - * @method CcShowInstancesQuery innerJoinCcShowInstancesRelatedByDbOriginalShow($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShowInstancesRelatedByDbOriginalShow relation + * @method CcShowInstancesQuery leftJoinCcShow($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcShow relation + * @method CcShowInstancesQuery rightJoinCcShow($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcShow relation + * @method CcShowInstancesQuery innerJoinCcShow($relationAlias = null) Adds a INNER JOIN clause to the query using the CcShow relation * - * @method CcShowInstancesQuery leftJoinCcFiles($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFiles relation - * @method CcShowInstancesQuery rightJoinCcFiles($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFiles relation - * @method CcShowInstancesQuery innerJoinCcFiles($relationAlias = '') Adds a INNER JOIN clause to the query using the CcFiles relation + * @method CcShowInstancesQuery leftJoinCcShowInstancesRelatedByDbOriginalShow($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcShowInstancesRelatedByDbOriginalShow relation + * @method CcShowInstancesQuery rightJoinCcShowInstancesRelatedByDbOriginalShow($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcShowInstancesRelatedByDbOriginalShow relation + * @method CcShowInstancesQuery innerJoinCcShowInstancesRelatedByDbOriginalShow($relationAlias = null) Adds a INNER JOIN clause to the query using the CcShowInstancesRelatedByDbOriginalShow relation * - * @method CcShowInstancesQuery leftJoinCcShowInstancesRelatedByDbId($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShowInstancesRelatedByDbId relation - * @method CcShowInstancesQuery rightJoinCcShowInstancesRelatedByDbId($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShowInstancesRelatedByDbId relation - * @method CcShowInstancesQuery innerJoinCcShowInstancesRelatedByDbId($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShowInstancesRelatedByDbId relation + * @method CcShowInstancesQuery leftJoinCcFiles($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcFiles relation + * @method CcShowInstancesQuery rightJoinCcFiles($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcFiles relation + * @method CcShowInstancesQuery innerJoinCcFiles($relationAlias = null) Adds a INNER JOIN clause to the query using the CcFiles relation * - * @method CcShowInstancesQuery leftJoinCcSchedule($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSchedule relation - * @method CcShowInstancesQuery rightJoinCcSchedule($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSchedule relation - * @method CcShowInstancesQuery innerJoinCcSchedule($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSchedule relation + * @method CcShowInstancesQuery leftJoinCcShowInstancesRelatedByDbId($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcShowInstancesRelatedByDbId relation + * @method CcShowInstancesQuery rightJoinCcShowInstancesRelatedByDbId($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcShowInstancesRelatedByDbId relation + * @method CcShowInstancesQuery innerJoinCcShowInstancesRelatedByDbId($relationAlias = null) Adds a INNER JOIN clause to the query using the CcShowInstancesRelatedByDbId relation * - * @method CcShowInstancesQuery leftJoinCcPlayoutHistory($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPlayoutHistory relation - * @method CcShowInstancesQuery rightJoinCcPlayoutHistory($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPlayoutHistory relation - * @method CcShowInstancesQuery innerJoinCcPlayoutHistory($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPlayoutHistory relation + * @method CcShowInstancesQuery leftJoinCcSchedule($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSchedule relation + * @method CcShowInstancesQuery rightJoinCcSchedule($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSchedule relation + * @method CcShowInstancesQuery innerJoinCcSchedule($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSchedule relation * - * @method CcShowInstances findOne(PropelPDO $con = null) Return the first CcShowInstances matching the query - * @method CcShowInstances findOneOrCreate(PropelPDO $con = null) Return the first CcShowInstances matching the query, or a new CcShowInstances object populated from the query conditions when no match is found + * @method CcShowInstancesQuery leftJoinCcPlayoutHistory($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcPlayoutHistory relation + * @method CcShowInstancesQuery rightJoinCcPlayoutHistory($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcPlayoutHistory relation + * @method CcShowInstancesQuery innerJoinCcPlayoutHistory($relationAlias = null) Adds a INNER JOIN clause to the query using the CcPlayoutHistory relation * - * @method CcShowInstances findOneByDbId(int $id) Return the first CcShowInstances filtered by the id column - * @method CcShowInstances findOneByDbStarts(string $starts) Return the first CcShowInstances filtered by the starts column - * @method CcShowInstances findOneByDbEnds(string $ends) Return the first CcShowInstances filtered by the ends column - * @method CcShowInstances findOneByDbShowId(int $show_id) Return the first CcShowInstances filtered by the show_id column - * @method CcShowInstances findOneByDbRecord(int $record) Return the first CcShowInstances filtered by the record column - * @method CcShowInstances findOneByDbRebroadcast(int $rebroadcast) Return the first CcShowInstances filtered by the rebroadcast column - * @method CcShowInstances findOneByDbOriginalShow(int $instance_id) Return the first CcShowInstances filtered by the instance_id column - * @method CcShowInstances findOneByDbRecordedFile(int $file_id) Return the first CcShowInstances filtered by the file_id column - * @method CcShowInstances findOneByDbTimeFilled(string $time_filled) Return the first CcShowInstances filtered by the time_filled column - * @method CcShowInstances findOneByDbCreated(string $created) Return the first CcShowInstances filtered by the created column - * @method CcShowInstances findOneByDbLastScheduled(string $last_scheduled) Return the first CcShowInstances filtered by the last_scheduled column - * @method CcShowInstances findOneByDbModifiedInstance(boolean $modified_instance) Return the first CcShowInstances filtered by the modified_instance column + * @method CcShowInstances findOne(PropelPDO $con = null) Return the first CcShowInstances matching the query + * @method CcShowInstances findOneOrCreate(PropelPDO $con = null) Return the first CcShowInstances matching the query, or a new CcShowInstances object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcShowInstances objects filtered by the id column - * @method array findByDbStarts(string $starts) Return CcShowInstances objects filtered by the starts column - * @method array findByDbEnds(string $ends) Return CcShowInstances objects filtered by the ends column - * @method array findByDbShowId(int $show_id) Return CcShowInstances objects filtered by the show_id column - * @method array findByDbRecord(int $record) Return CcShowInstances objects filtered by the record column - * @method array findByDbRebroadcast(int $rebroadcast) Return CcShowInstances objects filtered by the rebroadcast column - * @method array findByDbOriginalShow(int $instance_id) Return CcShowInstances objects filtered by the instance_id column - * @method array findByDbRecordedFile(int $file_id) Return CcShowInstances objects filtered by the file_id column - * @method array findByDbTimeFilled(string $time_filled) Return CcShowInstances objects filtered by the time_filled column - * @method array findByDbCreated(string $created) Return CcShowInstances objects filtered by the created column - * @method array findByDbLastScheduled(string $last_scheduled) Return CcShowInstances objects filtered by the last_scheduled column - * @method array findByDbModifiedInstance(boolean $modified_instance) Return CcShowInstances objects filtered by the modified_instance column + * @method CcShowInstances findOneByDbStarts(string $starts) Return the first CcShowInstances filtered by the starts column + * @method CcShowInstances findOneByDbEnds(string $ends) Return the first CcShowInstances filtered by the ends column + * @method CcShowInstances findOneByDbShowId(int $show_id) Return the first CcShowInstances filtered by the show_id column + * @method CcShowInstances findOneByDbRecord(int $record) Return the first CcShowInstances filtered by the record column + * @method CcShowInstances findOneByDbRebroadcast(int $rebroadcast) Return the first CcShowInstances filtered by the rebroadcast column + * @method CcShowInstances findOneByDbOriginalShow(int $instance_id) Return the first CcShowInstances filtered by the instance_id column + * @method CcShowInstances findOneByDbRecordedFile(int $file_id) Return the first CcShowInstances filtered by the file_id column + * @method CcShowInstances findOneByDbTimeFilled(string $time_filled) Return the first CcShowInstances filtered by the time_filled column + * @method CcShowInstances findOneByDbCreated(string $created) Return the first CcShowInstances filtered by the created column + * @method CcShowInstances findOneByDbLastScheduled(string $last_scheduled) Return the first CcShowInstances filtered by the last_scheduled column + * @method CcShowInstances findOneByDbModifiedInstance(boolean $modified_instance) Return the first CcShowInstances filtered by the modified_instance column + * + * @method array findByDbId(int $id) Return CcShowInstances objects filtered by the id column + * @method array findByDbStarts(string $starts) Return CcShowInstances objects filtered by the starts column + * @method array findByDbEnds(string $ends) Return CcShowInstances objects filtered by the ends column + * @method array findByDbShowId(int $show_id) Return CcShowInstances objects filtered by the show_id column + * @method array findByDbRecord(int $record) Return CcShowInstances objects filtered by the record column + * @method array findByDbRebroadcast(int $rebroadcast) Return CcShowInstances objects filtered by the rebroadcast column + * @method array findByDbOriginalShow(int $instance_id) Return CcShowInstances objects filtered by the instance_id column + * @method array findByDbRecordedFile(int $file_id) Return CcShowInstances objects filtered by the file_id column + * @method array findByDbTimeFilled(string $time_filled) Return CcShowInstances objects filtered by the time_filled column + * @method array findByDbCreated(string $created) Return CcShowInstances objects filtered by the created column + * @method array findByDbLastScheduled(string $last_scheduled) Return CcShowInstances objects filtered by the last_scheduled column + * @method array findByDbModifiedInstance(boolean $modified_instance) Return CcShowInstances objects filtered by the modified_instance column * * @package propel.generator.airtime.om */ abstract class BaseCcShowInstancesQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcShowInstancesQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcShowInstances'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcShowInstancesQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcShowInstancesQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcShowInstancesQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcShowInstancesQuery) { + return $criteria; + } + $query = new CcShowInstancesQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcShowInstances|CcShowInstances[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcShowInstancesPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShowInstances A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShowInstances A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "starts", "ends", "show_id", "record", "rebroadcast", "instance_id", "file_id", "time_filled", "created", "last_scheduled", "modified_instance" FROM "cc_show_instances" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcShowInstances(); + $obj->hydrate($row); + CcShowInstancesPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShowInstances|CcShowInstances[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcShowInstances[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcShowInstancesPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcShowInstancesPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcShowInstancesPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcShowInstancesPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowInstancesPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the starts column + * + * Example usage: + * + * $query->filterByDbStarts('2011-03-14'); // WHERE starts = '2011-03-14' + * $query->filterByDbStarts('now'); // WHERE starts = '2011-03-14' + * $query->filterByDbStarts(array('max' => 'yesterday')); // WHERE starts < '2011-03-13' + * + * + * @param mixed $dbStarts The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function filterByDbStarts($dbStarts = null, $comparison = null) + { + if (is_array($dbStarts)) { + $useMinMax = false; + if (isset($dbStarts['min'])) { + $this->addUsingAlias(CcShowInstancesPeer::STARTS, $dbStarts['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbStarts['max'])) { + $this->addUsingAlias(CcShowInstancesPeer::STARTS, $dbStarts['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowInstancesPeer::STARTS, $dbStarts, $comparison); + } + + /** + * Filter the query on the ends column + * + * Example usage: + * + * $query->filterByDbEnds('2011-03-14'); // WHERE ends = '2011-03-14' + * $query->filterByDbEnds('now'); // WHERE ends = '2011-03-14' + * $query->filterByDbEnds(array('max' => 'yesterday')); // WHERE ends < '2011-03-13' + * + * + * @param mixed $dbEnds The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function filterByDbEnds($dbEnds = null, $comparison = null) + { + if (is_array($dbEnds)) { + $useMinMax = false; + if (isset($dbEnds['min'])) { + $this->addUsingAlias(CcShowInstancesPeer::ENDS, $dbEnds['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbEnds['max'])) { + $this->addUsingAlias(CcShowInstancesPeer::ENDS, $dbEnds['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowInstancesPeer::ENDS, $dbEnds, $comparison); + } + + /** + * Filter the query on the show_id column + * + * Example usage: + * + * $query->filterByDbShowId(1234); // WHERE show_id = 1234 + * $query->filterByDbShowId(array(12, 34)); // WHERE show_id IN (12, 34) + * $query->filterByDbShowId(array('min' => 12)); // WHERE show_id >= 12 + * $query->filterByDbShowId(array('max' => 12)); // WHERE show_id <= 12 + * + * + * @see filterByCcShow() + * + * @param mixed $dbShowId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function filterByDbShowId($dbShowId = null, $comparison = null) + { + if (is_array($dbShowId)) { + $useMinMax = false; + if (isset($dbShowId['min'])) { + $this->addUsingAlias(CcShowInstancesPeer::SHOW_ID, $dbShowId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbShowId['max'])) { + $this->addUsingAlias(CcShowInstancesPeer::SHOW_ID, $dbShowId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowInstancesPeer::SHOW_ID, $dbShowId, $comparison); + } + + /** + * Filter the query on the record column + * + * Example usage: + * + * $query->filterByDbRecord(1234); // WHERE record = 1234 + * $query->filterByDbRecord(array(12, 34)); // WHERE record IN (12, 34) + * $query->filterByDbRecord(array('min' => 12)); // WHERE record >= 12 + * $query->filterByDbRecord(array('max' => 12)); // WHERE record <= 12 + * + * + * @param mixed $dbRecord The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function filterByDbRecord($dbRecord = null, $comparison = null) + { + if (is_array($dbRecord)) { + $useMinMax = false; + if (isset($dbRecord['min'])) { + $this->addUsingAlias(CcShowInstancesPeer::RECORD, $dbRecord['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbRecord['max'])) { + $this->addUsingAlias(CcShowInstancesPeer::RECORD, $dbRecord['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowInstancesPeer::RECORD, $dbRecord, $comparison); + } + + /** + * Filter the query on the rebroadcast column + * + * Example usage: + * + * $query->filterByDbRebroadcast(1234); // WHERE rebroadcast = 1234 + * $query->filterByDbRebroadcast(array(12, 34)); // WHERE rebroadcast IN (12, 34) + * $query->filterByDbRebroadcast(array('min' => 12)); // WHERE rebroadcast >= 12 + * $query->filterByDbRebroadcast(array('max' => 12)); // WHERE rebroadcast <= 12 + * + * + * @param mixed $dbRebroadcast The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function filterByDbRebroadcast($dbRebroadcast = null, $comparison = null) + { + if (is_array($dbRebroadcast)) { + $useMinMax = false; + if (isset($dbRebroadcast['min'])) { + $this->addUsingAlias(CcShowInstancesPeer::REBROADCAST, $dbRebroadcast['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbRebroadcast['max'])) { + $this->addUsingAlias(CcShowInstancesPeer::REBROADCAST, $dbRebroadcast['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowInstancesPeer::REBROADCAST, $dbRebroadcast, $comparison); + } + + /** + * Filter the query on the instance_id column + * + * Example usage: + * + * $query->filterByDbOriginalShow(1234); // WHERE instance_id = 1234 + * $query->filterByDbOriginalShow(array(12, 34)); // WHERE instance_id IN (12, 34) + * $query->filterByDbOriginalShow(array('min' => 12)); // WHERE instance_id >= 12 + * $query->filterByDbOriginalShow(array('max' => 12)); // WHERE instance_id <= 12 + * + * + * @see filterByCcShowInstancesRelatedByDbOriginalShow() + * + * @param mixed $dbOriginalShow The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function filterByDbOriginalShow($dbOriginalShow = null, $comparison = null) + { + if (is_array($dbOriginalShow)) { + $useMinMax = false; + if (isset($dbOriginalShow['min'])) { + $this->addUsingAlias(CcShowInstancesPeer::INSTANCE_ID, $dbOriginalShow['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbOriginalShow['max'])) { + $this->addUsingAlias(CcShowInstancesPeer::INSTANCE_ID, $dbOriginalShow['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowInstancesPeer::INSTANCE_ID, $dbOriginalShow, $comparison); + } + + /** + * Filter the query on the file_id column + * + * Example usage: + * + * $query->filterByDbRecordedFile(1234); // WHERE file_id = 1234 + * $query->filterByDbRecordedFile(array(12, 34)); // WHERE file_id IN (12, 34) + * $query->filterByDbRecordedFile(array('min' => 12)); // WHERE file_id >= 12 + * $query->filterByDbRecordedFile(array('max' => 12)); // WHERE file_id <= 12 + * + * + * @see filterByCcFiles() + * + * @param mixed $dbRecordedFile The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function filterByDbRecordedFile($dbRecordedFile = null, $comparison = null) + { + if (is_array($dbRecordedFile)) { + $useMinMax = false; + if (isset($dbRecordedFile['min'])) { + $this->addUsingAlias(CcShowInstancesPeer::FILE_ID, $dbRecordedFile['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbRecordedFile['max'])) { + $this->addUsingAlias(CcShowInstancesPeer::FILE_ID, $dbRecordedFile['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowInstancesPeer::FILE_ID, $dbRecordedFile, $comparison); + } + + /** + * Filter the query on the time_filled column + * + * Example usage: + * + * $query->filterByDbTimeFilled('fooValue'); // WHERE time_filled = 'fooValue' + * $query->filterByDbTimeFilled('%fooValue%'); // WHERE time_filled LIKE '%fooValue%' + * + * + * @param string $dbTimeFilled 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 CcShowInstancesQuery The current query, for fluid interface + */ + public function filterByDbTimeFilled($dbTimeFilled = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbTimeFilled)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbTimeFilled)) { + $dbTimeFilled = str_replace('*', '%', $dbTimeFilled); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcShowInstancesPeer::TIME_FILLED, $dbTimeFilled, $comparison); + } + + /** + * Filter the query on the created column + * + * Example usage: + * + * $query->filterByDbCreated('2011-03-14'); // WHERE created = '2011-03-14' + * $query->filterByDbCreated('now'); // WHERE created = '2011-03-14' + * $query->filterByDbCreated(array('max' => 'yesterday')); // WHERE created < '2011-03-13' + * + * + * @param mixed $dbCreated The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function filterByDbCreated($dbCreated = null, $comparison = null) + { + if (is_array($dbCreated)) { + $useMinMax = false; + if (isset($dbCreated['min'])) { + $this->addUsingAlias(CcShowInstancesPeer::CREATED, $dbCreated['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbCreated['max'])) { + $this->addUsingAlias(CcShowInstancesPeer::CREATED, $dbCreated['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowInstancesPeer::CREATED, $dbCreated, $comparison); + } + + /** + * Filter the query on the last_scheduled column + * + * Example usage: + * + * $query->filterByDbLastScheduled('2011-03-14'); // WHERE last_scheduled = '2011-03-14' + * $query->filterByDbLastScheduled('now'); // WHERE last_scheduled = '2011-03-14' + * $query->filterByDbLastScheduled(array('max' => 'yesterday')); // WHERE last_scheduled < '2011-03-13' + * + * + * @param mixed $dbLastScheduled The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function filterByDbLastScheduled($dbLastScheduled = null, $comparison = null) + { + if (is_array($dbLastScheduled)) { + $useMinMax = false; + if (isset($dbLastScheduled['min'])) { + $this->addUsingAlias(CcShowInstancesPeer::LAST_SCHEDULED, $dbLastScheduled['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbLastScheduled['max'])) { + $this->addUsingAlias(CcShowInstancesPeer::LAST_SCHEDULED, $dbLastScheduled['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowInstancesPeer::LAST_SCHEDULED, $dbLastScheduled, $comparison); + } + + /** + * Filter the query on the modified_instance column + * + * Example usage: + * + * $query->filterByDbModifiedInstance(true); // WHERE modified_instance = true + * $query->filterByDbModifiedInstance('yes'); // WHERE modified_instance = true + * + * + * @param boolean|string $dbModifiedInstance The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function filterByDbModifiedInstance($dbModifiedInstance = null, $comparison = null) + { + if (is_string($dbModifiedInstance)) { + $dbModifiedInstance = in_array(strtolower($dbModifiedInstance), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(CcShowInstancesPeer::MODIFIED_INSTANCE, $dbModifiedInstance, $comparison); + } + + /** + * Filter the query by a related CcShow object + * + * @param CcShow|PropelObjectCollection $ccShow The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcShow($ccShow, $comparison = null) + { + if ($ccShow instanceof CcShow) { + return $this + ->addUsingAlias(CcShowInstancesPeer::SHOW_ID, $ccShow->getDbId(), $comparison); + } elseif ($ccShow instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcShowInstancesPeer::SHOW_ID, $ccShow->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcShow() only accepts arguments of type CcShow or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcShow relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function joinCcShow($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcShow'); + + // 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, 'CcShow'); + } + + return $this; + } + + /** + * Use the CcShow relation CcShow 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 CcShowQuery A secondary query class using the current class as primary query + */ + public function useCcShowQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcShow($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcShow', 'CcShowQuery'); + } + + /** + * Filter the query by a related CcShowInstances object + * + * @param CcShowInstances|PropelObjectCollection $ccShowInstances The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcShowInstancesRelatedByDbOriginalShow($ccShowInstances, $comparison = null) + { + if ($ccShowInstances instanceof CcShowInstances) { + return $this + ->addUsingAlias(CcShowInstancesPeer::INSTANCE_ID, $ccShowInstances->getDbId(), $comparison); + } elseif ($ccShowInstances instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcShowInstancesPeer::INSTANCE_ID, $ccShowInstances->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcShowInstancesRelatedByDbOriginalShow() only accepts arguments of type CcShowInstances or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcShowInstancesRelatedByDbOriginalShow relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function joinCcShowInstancesRelatedByDbOriginalShow($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcShowInstancesRelatedByDbOriginalShow'); + + // 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, 'CcShowInstancesRelatedByDbOriginalShow'); + } + + return $this; + } + + /** + * Use the CcShowInstancesRelatedByDbOriginalShow relation CcShowInstances 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 CcShowInstancesQuery A secondary query class using the current class as primary query + */ + public function useCcShowInstancesRelatedByDbOriginalShowQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcShowInstancesRelatedByDbOriginalShow($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcShowInstancesRelatedByDbOriginalShow', 'CcShowInstancesQuery'); + } + + /** + * Filter the query by a related CcFiles object + * + * @param CcFiles|PropelObjectCollection $ccFiles The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcFiles($ccFiles, $comparison = null) + { + if ($ccFiles instanceof CcFiles) { + return $this + ->addUsingAlias(CcShowInstancesPeer::FILE_ID, $ccFiles->getDbId(), $comparison); + } elseif ($ccFiles instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcShowInstancesPeer::FILE_ID, $ccFiles->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcFiles() only accepts arguments of type CcFiles or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcFiles relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function joinCcFiles($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcFiles'); + + // 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, 'CcFiles'); + } + + return $this; + } + + /** + * Use the CcFiles relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query + */ + public function useCcFilesQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcFiles($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcFiles', 'CcFilesQuery'); + } + + /** + * Filter the query by a related CcShowInstances object + * + * @param CcShowInstances|PropelObjectCollection $ccShowInstances the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcShowInstancesRelatedByDbId($ccShowInstances, $comparison = null) + { + if ($ccShowInstances instanceof CcShowInstances) { + return $this + ->addUsingAlias(CcShowInstancesPeer::ID, $ccShowInstances->getDbOriginalShow(), $comparison); + } elseif ($ccShowInstances instanceof PropelObjectCollection) { + return $this + ->useCcShowInstancesRelatedByDbIdQuery() + ->filterByPrimaryKeys($ccShowInstances->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcShowInstancesRelatedByDbId() only accepts arguments of type CcShowInstances or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcShowInstancesRelatedByDbId relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function joinCcShowInstancesRelatedByDbId($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcShowInstancesRelatedByDbId'); + + // 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, 'CcShowInstancesRelatedByDbId'); + } + + return $this; + } + + /** + * Use the CcShowInstancesRelatedByDbId relation CcShowInstances 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 CcShowInstancesQuery A secondary query class using the current class as primary query + */ + public function useCcShowInstancesRelatedByDbIdQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcShowInstancesRelatedByDbId($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcShowInstancesRelatedByDbId', 'CcShowInstancesQuery'); + } + + /** + * Filter the query by a related CcSchedule object + * + * @param CcSchedule|PropelObjectCollection $ccSchedule the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcSchedule($ccSchedule, $comparison = null) + { + if ($ccSchedule instanceof CcSchedule) { + return $this + ->addUsingAlias(CcShowInstancesPeer::ID, $ccSchedule->getDbInstanceId(), $comparison); + } elseif ($ccSchedule instanceof PropelObjectCollection) { + return $this + ->useCcScheduleQuery() + ->filterByPrimaryKeys($ccSchedule->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcSchedule() only accepts arguments of type CcSchedule or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcSchedule relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function joinCcSchedule($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcSchedule'); + + // 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, 'CcSchedule'); + } + + return $this; + } + + /** + * Use the CcSchedule relation CcSchedule 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 CcScheduleQuery A secondary query class using the current class as primary query + */ + public function useCcScheduleQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcSchedule($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcSchedule', 'CcScheduleQuery'); + } + + /** + * Filter the query by a related CcPlayoutHistory object + * + * @param CcPlayoutHistory|PropelObjectCollection $ccPlayoutHistory the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowInstancesQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcPlayoutHistory($ccPlayoutHistory, $comparison = null) + { + if ($ccPlayoutHistory instanceof CcPlayoutHistory) { + return $this + ->addUsingAlias(CcShowInstancesPeer::ID, $ccPlayoutHistory->getDbInstanceId(), $comparison); + } elseif ($ccPlayoutHistory instanceof PropelObjectCollection) { + return $this + ->useCcPlayoutHistoryQuery() + ->filterByPrimaryKeys($ccPlayoutHistory->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcPlayoutHistory() only accepts arguments of type CcPlayoutHistory or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcPlayoutHistory relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function joinCcPlayoutHistory($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcPlayoutHistory'); + + // 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, 'CcPlayoutHistory'); + } + + return $this; + } + + /** + * Use the CcPlayoutHistory relation CcPlayoutHistory 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 CcPlayoutHistoryQuery A secondary query class using the current class as primary query + */ + public function useCcPlayoutHistoryQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcPlayoutHistory($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcPlayoutHistory', 'CcPlayoutHistoryQuery'); + } + + /** + * Exclude object from result + * + * @param CcShowInstances $ccShowInstances Object to remove from the list of results + * + * @return CcShowInstancesQuery The current query, for fluid interface + */ + public function prune($ccShowInstances = null) + { + if ($ccShowInstances) { + $this->addUsingAlias(CcShowInstancesPeer::ID, $ccShowInstances->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcShowInstancesQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcShowInstances', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcShowInstancesQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcShowInstancesQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcShowInstancesQuery) { - return $criteria; - } - $query = new CcShowInstancesQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcShowInstances|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcShowInstancesPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcShowInstancesPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcShowInstancesPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcShowInstancesPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the starts column - * - * @param string|array $dbStarts The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByDbStarts($dbStarts = null, $comparison = null) - { - if (is_array($dbStarts)) { - $useMinMax = false; - if (isset($dbStarts['min'])) { - $this->addUsingAlias(CcShowInstancesPeer::STARTS, $dbStarts['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbStarts['max'])) { - $this->addUsingAlias(CcShowInstancesPeer::STARTS, $dbStarts['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowInstancesPeer::STARTS, $dbStarts, $comparison); - } - - /** - * Filter the query on the ends column - * - * @param string|array $dbEnds The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByDbEnds($dbEnds = null, $comparison = null) - { - if (is_array($dbEnds)) { - $useMinMax = false; - if (isset($dbEnds['min'])) { - $this->addUsingAlias(CcShowInstancesPeer::ENDS, $dbEnds['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbEnds['max'])) { - $this->addUsingAlias(CcShowInstancesPeer::ENDS, $dbEnds['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowInstancesPeer::ENDS, $dbEnds, $comparison); - } - - /** - * Filter the query on the show_id column - * - * @param int|array $dbShowId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByDbShowId($dbShowId = null, $comparison = null) - { - if (is_array($dbShowId)) { - $useMinMax = false; - if (isset($dbShowId['min'])) { - $this->addUsingAlias(CcShowInstancesPeer::SHOW_ID, $dbShowId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbShowId['max'])) { - $this->addUsingAlias(CcShowInstancesPeer::SHOW_ID, $dbShowId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowInstancesPeer::SHOW_ID, $dbShowId, $comparison); - } - - /** - * Filter the query on the record column - * - * @param int|array $dbRecord The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByDbRecord($dbRecord = null, $comparison = null) - { - if (is_array($dbRecord)) { - $useMinMax = false; - if (isset($dbRecord['min'])) { - $this->addUsingAlias(CcShowInstancesPeer::RECORD, $dbRecord['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbRecord['max'])) { - $this->addUsingAlias(CcShowInstancesPeer::RECORD, $dbRecord['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowInstancesPeer::RECORD, $dbRecord, $comparison); - } - - /** - * Filter the query on the rebroadcast column - * - * @param int|array $dbRebroadcast The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByDbRebroadcast($dbRebroadcast = null, $comparison = null) - { - if (is_array($dbRebroadcast)) { - $useMinMax = false; - if (isset($dbRebroadcast['min'])) { - $this->addUsingAlias(CcShowInstancesPeer::REBROADCAST, $dbRebroadcast['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbRebroadcast['max'])) { - $this->addUsingAlias(CcShowInstancesPeer::REBROADCAST, $dbRebroadcast['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowInstancesPeer::REBROADCAST, $dbRebroadcast, $comparison); - } - - /** - * Filter the query on the instance_id column - * - * @param int|array $dbOriginalShow The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByDbOriginalShow($dbOriginalShow = null, $comparison = null) - { - if (is_array($dbOriginalShow)) { - $useMinMax = false; - if (isset($dbOriginalShow['min'])) { - $this->addUsingAlias(CcShowInstancesPeer::INSTANCE_ID, $dbOriginalShow['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbOriginalShow['max'])) { - $this->addUsingAlias(CcShowInstancesPeer::INSTANCE_ID, $dbOriginalShow['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowInstancesPeer::INSTANCE_ID, $dbOriginalShow, $comparison); - } - - /** - * Filter the query on the file_id column - * - * @param int|array $dbRecordedFile The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByDbRecordedFile($dbRecordedFile = null, $comparison = null) - { - if (is_array($dbRecordedFile)) { - $useMinMax = false; - if (isset($dbRecordedFile['min'])) { - $this->addUsingAlias(CcShowInstancesPeer::FILE_ID, $dbRecordedFile['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbRecordedFile['max'])) { - $this->addUsingAlias(CcShowInstancesPeer::FILE_ID, $dbRecordedFile['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowInstancesPeer::FILE_ID, $dbRecordedFile, $comparison); - } - - /** - * Filter the query on the time_filled column - * - * @param string $dbTimeFilled 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 CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByDbTimeFilled($dbTimeFilled = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbTimeFilled)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbTimeFilled)) { - $dbTimeFilled = str_replace('*', '%', $dbTimeFilled); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcShowInstancesPeer::TIME_FILLED, $dbTimeFilled, $comparison); - } - - /** - * Filter the query on the created column - * - * @param string|array $dbCreated The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByDbCreated($dbCreated = null, $comparison = null) - { - if (is_array($dbCreated)) { - $useMinMax = false; - if (isset($dbCreated['min'])) { - $this->addUsingAlias(CcShowInstancesPeer::CREATED, $dbCreated['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbCreated['max'])) { - $this->addUsingAlias(CcShowInstancesPeer::CREATED, $dbCreated['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowInstancesPeer::CREATED, $dbCreated, $comparison); - } - - /** - * Filter the query on the last_scheduled column - * - * @param string|array $dbLastScheduled The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByDbLastScheduled($dbLastScheduled = null, $comparison = null) - { - if (is_array($dbLastScheduled)) { - $useMinMax = false; - if (isset($dbLastScheduled['min'])) { - $this->addUsingAlias(CcShowInstancesPeer::LAST_SCHEDULED, $dbLastScheduled['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbLastScheduled['max'])) { - $this->addUsingAlias(CcShowInstancesPeer::LAST_SCHEDULED, $dbLastScheduled['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowInstancesPeer::LAST_SCHEDULED, $dbLastScheduled, $comparison); - } - - /** - * Filter the query on the modified_instance column - * - * @param boolean|string $dbModifiedInstance 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 CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByDbModifiedInstance($dbModifiedInstance = null, $comparison = null) - { - if (is_string($dbModifiedInstance)) { - $modified_instance = in_array(strtolower($dbModifiedInstance), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - } - return $this->addUsingAlias(CcShowInstancesPeer::MODIFIED_INSTANCE, $dbModifiedInstance, $comparison); - } - - /** - * Filter the query by a related CcShow object - * - * @param CcShow $ccShow the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByCcShow($ccShow, $comparison = null) - { - return $this - ->addUsingAlias(CcShowInstancesPeer::SHOW_ID, $ccShow->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcShow relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function joinCcShow($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcShow'); - - // 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, 'CcShow'); - } - - return $this; - } - - /** - * Use the CcShow relation CcShow 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 CcShowQuery A secondary query class using the current class as primary query - */ - public function useCcShowQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcShow($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcShow', 'CcShowQuery'); - } - - /** - * Filter the query by a related CcShowInstances object - * - * @param CcShowInstances $ccShowInstances the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByCcShowInstancesRelatedByDbOriginalShow($ccShowInstances, $comparison = null) - { - return $this - ->addUsingAlias(CcShowInstancesPeer::INSTANCE_ID, $ccShowInstances->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcShowInstancesRelatedByDbOriginalShow relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function joinCcShowInstancesRelatedByDbOriginalShow($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcShowInstancesRelatedByDbOriginalShow'); - - // 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, 'CcShowInstancesRelatedByDbOriginalShow'); - } - - return $this; - } - - /** - * Use the CcShowInstancesRelatedByDbOriginalShow relation CcShowInstances 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 CcShowInstancesQuery A secondary query class using the current class as primary query - */ - public function useCcShowInstancesRelatedByDbOriginalShowQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcShowInstancesRelatedByDbOriginalShow($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcShowInstancesRelatedByDbOriginalShow', 'CcShowInstancesQuery'); - } - - /** - * Filter the query by a related CcFiles object - * - * @param CcFiles $ccFiles the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByCcFiles($ccFiles, $comparison = null) - { - return $this - ->addUsingAlias(CcShowInstancesPeer::FILE_ID, $ccFiles->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcFiles relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function joinCcFiles($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcFiles'); - - // 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, 'CcFiles'); - } - - return $this; - } - - /** - * Use the CcFiles relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query - */ - public function useCcFilesQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcFiles($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcFiles', 'CcFilesQuery'); - } - - /** - * Filter the query by a related CcShowInstances object - * - * @param CcShowInstances $ccShowInstances the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByCcShowInstancesRelatedByDbId($ccShowInstances, $comparison = null) - { - return $this - ->addUsingAlias(CcShowInstancesPeer::ID, $ccShowInstances->getDbOriginalShow(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcShowInstancesRelatedByDbId relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function joinCcShowInstancesRelatedByDbId($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcShowInstancesRelatedByDbId'); - - // 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, 'CcShowInstancesRelatedByDbId'); - } - - return $this; - } - - /** - * Use the CcShowInstancesRelatedByDbId relation CcShowInstances 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 CcShowInstancesQuery A secondary query class using the current class as primary query - */ - public function useCcShowInstancesRelatedByDbIdQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcShowInstancesRelatedByDbId($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcShowInstancesRelatedByDbId', 'CcShowInstancesQuery'); - } - - /** - * Filter the query by a related CcSchedule object - * - * @param CcSchedule $ccSchedule the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByCcSchedule($ccSchedule, $comparison = null) - { - return $this - ->addUsingAlias(CcShowInstancesPeer::ID, $ccSchedule->getDbInstanceId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcSchedule relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function joinCcSchedule($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcSchedule'); - - // 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, 'CcSchedule'); - } - - return $this; - } - - /** - * Use the CcSchedule relation CcSchedule 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 CcScheduleQuery A secondary query class using the current class as primary query - */ - public function useCcScheduleQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcSchedule($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcSchedule', 'CcScheduleQuery'); - } - - /** - * Filter the query by a related CcPlayoutHistory object - * - * @param CcPlayoutHistory $ccPlayoutHistory the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function filterByCcPlayoutHistory($ccPlayoutHistory, $comparison = null) - { - return $this - ->addUsingAlias(CcShowInstancesPeer::ID, $ccPlayoutHistory->getDbInstanceId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcPlayoutHistory relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function joinCcPlayoutHistory($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcPlayoutHistory'); - - // 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, 'CcPlayoutHistory'); - } - - return $this; - } - - /** - * Use the CcPlayoutHistory relation CcPlayoutHistory 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 CcPlayoutHistoryQuery A secondary query class using the current class as primary query - */ - public function useCcPlayoutHistoryQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcPlayoutHistory($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcPlayoutHistory', 'CcPlayoutHistoryQuery'); - } - - /** - * Exclude object from result - * - * @param CcShowInstances $ccShowInstances Object to remove from the list of results - * - * @return CcShowInstancesQuery The current query, for fluid interface - */ - public function prune($ccShowInstances = null) - { - if ($ccShowInstances) { - $this->addUsingAlias(CcShowInstancesPeer::ID, $ccShowInstances->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcShowInstancesQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShowPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcShowPeer.php index c49ef60fbf..45cd5dce53 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShowPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShowPeer.php @@ -4,799 +4,821 @@ /** * Base static class for performing query and update operations on the 'cc_show' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcShowPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_show'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcShow'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcShow'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcShowTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 13; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_show.ID'; - - /** the column name for the NAME field */ - const NAME = 'cc_show.NAME'; - - /** the column name for the URL field */ - const URL = 'cc_show.URL'; - - /** the column name for the GENRE field */ - const GENRE = 'cc_show.GENRE'; - - /** the column name for the DESCRIPTION field */ - const DESCRIPTION = 'cc_show.DESCRIPTION'; - - /** the column name for the COLOR field */ - const COLOR = 'cc_show.COLOR'; - - /** the column name for the BACKGROUND_COLOR field */ - const BACKGROUND_COLOR = 'cc_show.BACKGROUND_COLOR'; - - /** the column name for the LIVE_STREAM_USING_AIRTIME_AUTH field */ - const LIVE_STREAM_USING_AIRTIME_AUTH = 'cc_show.LIVE_STREAM_USING_AIRTIME_AUTH'; - - /** the column name for the LIVE_STREAM_USING_CUSTOM_AUTH field */ - const LIVE_STREAM_USING_CUSTOM_AUTH = 'cc_show.LIVE_STREAM_USING_CUSTOM_AUTH'; - - /** the column name for the LIVE_STREAM_USER field */ - const LIVE_STREAM_USER = 'cc_show.LIVE_STREAM_USER'; - - /** the column name for the LIVE_STREAM_PASS field */ - const LIVE_STREAM_PASS = 'cc_show.LIVE_STREAM_PASS'; - - /** the column name for the LINKED field */ - const LINKED = 'cc_show.LINKED'; - - /** the column name for the IS_LINKABLE field */ - const IS_LINKABLE = 'cc_show.IS_LINKABLE'; - - /** - * An identiy map to hold any loaded instances of CcShow objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcShow[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbUrl', 'DbGenre', 'DbDescription', 'DbColor', 'DbBackgroundColor', 'DbLiveStreamUsingAirtimeAuth', 'DbLiveStreamUsingCustomAuth', 'DbLiveStreamUser', 'DbLiveStreamPass', 'DbLinked', 'DbIsLinkable', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbUrl', 'dbGenre', 'dbDescription', 'dbColor', 'dbBackgroundColor', 'dbLiveStreamUsingAirtimeAuth', 'dbLiveStreamUsingCustomAuth', 'dbLiveStreamUser', 'dbLiveStreamPass', 'dbLinked', 'dbIsLinkable', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::NAME, self::URL, self::GENRE, self::DESCRIPTION, self::COLOR, self::BACKGROUND_COLOR, self::LIVE_STREAM_USING_AIRTIME_AUTH, self::LIVE_STREAM_USING_CUSTOM_AUTH, self::LIVE_STREAM_USER, self::LIVE_STREAM_PASS, self::LINKED, self::IS_LINKABLE, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'URL', 'GENRE', 'DESCRIPTION', 'COLOR', 'BACKGROUND_COLOR', 'LIVE_STREAM_USING_AIRTIME_AUTH', 'LIVE_STREAM_USING_CUSTOM_AUTH', 'LIVE_STREAM_USER', 'LIVE_STREAM_PASS', 'LINKED', 'IS_LINKABLE', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'url', 'genre', 'description', 'color', 'background_color', 'live_stream_using_airtime_auth', 'live_stream_using_custom_auth', 'live_stream_user', 'live_stream_pass', 'linked', 'is_linkable', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbUrl' => 2, 'DbGenre' => 3, 'DbDescription' => 4, 'DbColor' => 5, 'DbBackgroundColor' => 6, 'DbLiveStreamUsingAirtimeAuth' => 7, 'DbLiveStreamUsingCustomAuth' => 8, 'DbLiveStreamUser' => 9, 'DbLiveStreamPass' => 10, 'DbLinked' => 11, 'DbIsLinkable' => 12, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbUrl' => 2, 'dbGenre' => 3, 'dbDescription' => 4, 'dbColor' => 5, 'dbBackgroundColor' => 6, 'dbLiveStreamUsingAirtimeAuth' => 7, 'dbLiveStreamUsingCustomAuth' => 8, 'dbLiveStreamUser' => 9, 'dbLiveStreamPass' => 10, 'dbLinked' => 11, 'dbIsLinkable' => 12, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::NAME => 1, self::URL => 2, self::GENRE => 3, self::DESCRIPTION => 4, self::COLOR => 5, self::BACKGROUND_COLOR => 6, self::LIVE_STREAM_USING_AIRTIME_AUTH => 7, self::LIVE_STREAM_USING_CUSTOM_AUTH => 8, self::LIVE_STREAM_USER => 9, self::LIVE_STREAM_PASS => 10, self::LINKED => 11, self::IS_LINKABLE => 12, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'URL' => 2, 'GENRE' => 3, 'DESCRIPTION' => 4, 'COLOR' => 5, 'BACKGROUND_COLOR' => 6, 'LIVE_STREAM_USING_AIRTIME_AUTH' => 7, 'LIVE_STREAM_USING_CUSTOM_AUTH' => 8, 'LIVE_STREAM_USER' => 9, 'LIVE_STREAM_PASS' => 10, 'LINKED' => 11, 'IS_LINKABLE' => 12, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'url' => 2, 'genre' => 3, 'description' => 4, 'color' => 5, 'background_color' => 6, 'live_stream_using_airtime_auth' => 7, 'live_stream_using_custom_auth' => 8, 'live_stream_user' => 9, 'live_stream_pass' => 10, 'linked' => 11, 'is_linkable' => 12, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcShowPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcShowPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcShowPeer::ID); - $criteria->addSelectColumn(CcShowPeer::NAME); - $criteria->addSelectColumn(CcShowPeer::URL); - $criteria->addSelectColumn(CcShowPeer::GENRE); - $criteria->addSelectColumn(CcShowPeer::DESCRIPTION); - $criteria->addSelectColumn(CcShowPeer::COLOR); - $criteria->addSelectColumn(CcShowPeer::BACKGROUND_COLOR); - $criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH); - $criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH); - $criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_USER); - $criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_PASS); - $criteria->addSelectColumn(CcShowPeer::LINKED); - $criteria->addSelectColumn(CcShowPeer::IS_LINKABLE); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.NAME'); - $criteria->addSelectColumn($alias . '.URL'); - $criteria->addSelectColumn($alias . '.GENRE'); - $criteria->addSelectColumn($alias . '.DESCRIPTION'); - $criteria->addSelectColumn($alias . '.COLOR'); - $criteria->addSelectColumn($alias . '.BACKGROUND_COLOR'); - $criteria->addSelectColumn($alias . '.LIVE_STREAM_USING_AIRTIME_AUTH'); - $criteria->addSelectColumn($alias . '.LIVE_STREAM_USING_CUSTOM_AUTH'); - $criteria->addSelectColumn($alias . '.LIVE_STREAM_USER'); - $criteria->addSelectColumn($alias . '.LIVE_STREAM_PASS'); - $criteria->addSelectColumn($alias . '.LINKED'); - $criteria->addSelectColumn($alias . '.IS_LINKABLE'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcShow - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcShowPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcShowPeer::populateObjects(CcShowPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcShowPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcShow $value A CcShow object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcShow $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcShow object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcShow) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcShow object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcShow Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_show - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - // Invalidate objects in CcShowInstancesPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcShowInstancesPeer::clearInstancePool(); - // Invalidate objects in CcShowDaysPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcShowDaysPeer::clearInstancePool(); - // Invalidate objects in CcShowRebroadcastPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcShowRebroadcastPeer::clearInstancePool(); - // Invalidate objects in CcShowHostsPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcShowHostsPeer::clearInstancePool(); - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcShowPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcShowPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcShowPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcShowPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcShow object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcShowPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcShowPeer::NUM_COLUMNS; - } else { - $cls = CcShowPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcShowPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcShowPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcShowPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcShowTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcShowPeer::CLASS_DEFAULT : CcShowPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcShow or Criteria object. - * - * @param mixed $values Criteria or CcShow object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcShow object - } - - if ($criteria->containsKey(CcShowPeer::ID) && $criteria->keyContainsValue(CcShowPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcShow or Criteria object. - * - * @param mixed $values Criteria or CcShow object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcShowPeer::ID); - $value = $criteria->remove(CcShowPeer::ID); - if ($value) { - $selectCriteria->add(CcShowPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcShowPeer::TABLE_NAME); - } - - } else { // $values is CcShow object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_show table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcShowPeer::TABLE_NAME, $con, CcShowPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcShowPeer::clearInstancePool(); - CcShowPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcShow or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcShow object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcShowPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcShow) { // it's a model object - // invalidate the cache for this single object - CcShowPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcShowPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcShowPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcShowPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcShow object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcShow $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcShow $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcShowPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcShowPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcShowPeer::DATABASE_NAME, CcShowPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcShow - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcShowPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcShowPeer::DATABASE_NAME); - $criteria->add(CcShowPeer::ID, $pk); - - $v = CcShowPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcShowPeer::DATABASE_NAME); - $criteria->add(CcShowPeer::ID, $pks, Criteria::IN); - $objs = CcShowPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcShowPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_show'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcShow'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcShowTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 13; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 13; + + /** the column name for the id field */ + const ID = 'cc_show.id'; + + /** the column name for the name field */ + const NAME = 'cc_show.name'; + + /** the column name for the url field */ + const URL = 'cc_show.url'; + + /** the column name for the genre field */ + const GENRE = 'cc_show.genre'; + + /** the column name for the description field */ + const DESCRIPTION = 'cc_show.description'; + + /** the column name for the color field */ + const COLOR = 'cc_show.color'; + + /** the column name for the background_color field */ + const BACKGROUND_COLOR = 'cc_show.background_color'; + + /** the column name for the live_stream_using_airtime_auth field */ + const LIVE_STREAM_USING_AIRTIME_AUTH = 'cc_show.live_stream_using_airtime_auth'; + + /** the column name for the live_stream_using_custom_auth field */ + const LIVE_STREAM_USING_CUSTOM_AUTH = 'cc_show.live_stream_using_custom_auth'; + + /** the column name for the live_stream_user field */ + const LIVE_STREAM_USER = 'cc_show.live_stream_user'; + + /** the column name for the live_stream_pass field */ + const LIVE_STREAM_PASS = 'cc_show.live_stream_pass'; + + /** the column name for the linked field */ + const LINKED = 'cc_show.linked'; + + /** the column name for the is_linkable field */ + const IS_LINKABLE = 'cc_show.is_linkable'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcShow objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcShow[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcShowPeer::$fieldNames[CcShowPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbUrl', 'DbGenre', 'DbDescription', 'DbColor', 'DbBackgroundColor', 'DbLiveStreamUsingAirtimeAuth', 'DbLiveStreamUsingCustomAuth', 'DbLiveStreamUser', 'DbLiveStreamPass', 'DbLinked', 'DbIsLinkable', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbUrl', 'dbGenre', 'dbDescription', 'dbColor', 'dbBackgroundColor', 'dbLiveStreamUsingAirtimeAuth', 'dbLiveStreamUsingCustomAuth', 'dbLiveStreamUser', 'dbLiveStreamPass', 'dbLinked', 'dbIsLinkable', ), + BasePeer::TYPE_COLNAME => array (CcShowPeer::ID, CcShowPeer::NAME, CcShowPeer::URL, CcShowPeer::GENRE, CcShowPeer::DESCRIPTION, CcShowPeer::COLOR, CcShowPeer::BACKGROUND_COLOR, CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH, CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH, CcShowPeer::LIVE_STREAM_USER, CcShowPeer::LIVE_STREAM_PASS, CcShowPeer::LINKED, CcShowPeer::IS_LINKABLE, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'URL', 'GENRE', 'DESCRIPTION', 'COLOR', 'BACKGROUND_COLOR', 'LIVE_STREAM_USING_AIRTIME_AUTH', 'LIVE_STREAM_USING_CUSTOM_AUTH', 'LIVE_STREAM_USER', 'LIVE_STREAM_PASS', 'LINKED', 'IS_LINKABLE', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'url', 'genre', 'description', 'color', 'background_color', 'live_stream_using_airtime_auth', 'live_stream_using_custom_auth', 'live_stream_user', 'live_stream_pass', 'linked', 'is_linkable', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcShowPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbUrl' => 2, 'DbGenre' => 3, 'DbDescription' => 4, 'DbColor' => 5, 'DbBackgroundColor' => 6, 'DbLiveStreamUsingAirtimeAuth' => 7, 'DbLiveStreamUsingCustomAuth' => 8, 'DbLiveStreamUser' => 9, 'DbLiveStreamPass' => 10, 'DbLinked' => 11, 'DbIsLinkable' => 12, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbUrl' => 2, 'dbGenre' => 3, 'dbDescription' => 4, 'dbColor' => 5, 'dbBackgroundColor' => 6, 'dbLiveStreamUsingAirtimeAuth' => 7, 'dbLiveStreamUsingCustomAuth' => 8, 'dbLiveStreamUser' => 9, 'dbLiveStreamPass' => 10, 'dbLinked' => 11, 'dbIsLinkable' => 12, ), + BasePeer::TYPE_COLNAME => array (CcShowPeer::ID => 0, CcShowPeer::NAME => 1, CcShowPeer::URL => 2, CcShowPeer::GENRE => 3, CcShowPeer::DESCRIPTION => 4, CcShowPeer::COLOR => 5, CcShowPeer::BACKGROUND_COLOR => 6, CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH => 7, CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH => 8, CcShowPeer::LIVE_STREAM_USER => 9, CcShowPeer::LIVE_STREAM_PASS => 10, CcShowPeer::LINKED => 11, CcShowPeer::IS_LINKABLE => 12, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'URL' => 2, 'GENRE' => 3, 'DESCRIPTION' => 4, 'COLOR' => 5, 'BACKGROUND_COLOR' => 6, 'LIVE_STREAM_USING_AIRTIME_AUTH' => 7, 'LIVE_STREAM_USING_CUSTOM_AUTH' => 8, 'LIVE_STREAM_USER' => 9, 'LIVE_STREAM_PASS' => 10, 'LINKED' => 11, 'IS_LINKABLE' => 12, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'url' => 2, 'genre' => 3, 'description' => 4, 'color' => 5, 'background_color' => 6, 'live_stream_using_airtime_auth' => 7, 'live_stream_using_custom_auth' => 8, 'live_stream_user' => 9, 'live_stream_pass' => 10, 'linked' => 11, 'is_linkable' => 12, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcShowPeer::getFieldNames($toType); + $key = isset(CcShowPeer::$fieldKeys[$fromType][$name]) ? CcShowPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcShowPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcShowPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcShowPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcShowPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcShowPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcShowPeer::ID); + $criteria->addSelectColumn(CcShowPeer::NAME); + $criteria->addSelectColumn(CcShowPeer::URL); + $criteria->addSelectColumn(CcShowPeer::GENRE); + $criteria->addSelectColumn(CcShowPeer::DESCRIPTION); + $criteria->addSelectColumn(CcShowPeer::COLOR); + $criteria->addSelectColumn(CcShowPeer::BACKGROUND_COLOR); + $criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH); + $criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH); + $criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_USER); + $criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_PASS); + $criteria->addSelectColumn(CcShowPeer::LINKED); + $criteria->addSelectColumn(CcShowPeer::IS_LINKABLE); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.name'); + $criteria->addSelectColumn($alias . '.url'); + $criteria->addSelectColumn($alias . '.genre'); + $criteria->addSelectColumn($alias . '.description'); + $criteria->addSelectColumn($alias . '.color'); + $criteria->addSelectColumn($alias . '.background_color'); + $criteria->addSelectColumn($alias . '.live_stream_using_airtime_auth'); + $criteria->addSelectColumn($alias . '.live_stream_using_custom_auth'); + $criteria->addSelectColumn($alias . '.live_stream_user'); + $criteria->addSelectColumn($alias . '.live_stream_pass'); + $criteria->addSelectColumn($alias . '.linked'); + $criteria->addSelectColumn($alias . '.is_linkable'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcShowPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcShow + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcShowPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcShowPeer::populateObjects(CcShowPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcShowPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcShowPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcShow $obj A CcShow object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcShowPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcShow object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcShow) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcShow object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcShowPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcShow Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcShowPeer::$instances[$key])) { + return CcShowPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcShowPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcShowPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_show + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + // Invalidate objects in CcShowInstancesPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcShowInstancesPeer::clearInstancePool(); + // Invalidate objects in CcShowDaysPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcShowDaysPeer::clearInstancePool(); + // Invalidate objects in CcShowRebroadcastPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcShowRebroadcastPeer::clearInstancePool(); + // Invalidate objects in CcShowHostsPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcShowHostsPeer::clearInstancePool(); + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcShowPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcShowPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcShowPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcShowPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcShow object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcShowPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcShowPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcShowPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcShowPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcShowPeer::DATABASE_NAME)->getTable(CcShowPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcShowPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcShowPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcShowTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcShowPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcShow or Criteria object. + * + * @param mixed $values Criteria or CcShow object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcShow object + } + + if ($criteria->containsKey(CcShowPeer::ID) && $criteria->keyContainsValue(CcShowPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcShowPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcShow or Criteria object. + * + * @param mixed $values Criteria or CcShow object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcShowPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcShowPeer::ID); + $value = $criteria->remove(CcShowPeer::ID); + if ($value) { + $selectCriteria->add(CcShowPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcShowPeer::TABLE_NAME); + } + + } else { // $values is CcShow object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcShowPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_show table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcShowPeer::TABLE_NAME, $con, CcShowPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcShowPeer::clearInstancePool(); + CcShowPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcShow or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcShow object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcShowPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcShow) { // it's a model object + // invalidate the cache for this single object + CcShowPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcShowPeer::DATABASE_NAME); + $criteria->add(CcShowPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcShowPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcShowPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcShowPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcShow object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcShow $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcShowPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcShowPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcShowPeer::DATABASE_NAME, CcShowPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcShow + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcShowPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcShowPeer::DATABASE_NAME); + $criteria->add(CcShowPeer::ID, $pk); + + $v = CcShowPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcShow[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcShowPeer::DATABASE_NAME); + $criteria->add(CcShowPeer::ID, $pks, Criteria::IN); + $objs = CcShowPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcShowPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShowQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcShowQuery.php index 687335e038..e9e7b1fc14 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShowQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShowQuery.php @@ -4,726 +4,973 @@ /** * Base class that represents a query for the 'cc_show' table. * - * * - * @method CcShowQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcShowQuery orderByDbName($order = Criteria::ASC) Order by the name column - * @method CcShowQuery orderByDbUrl($order = Criteria::ASC) Order by the url column - * @method CcShowQuery orderByDbGenre($order = Criteria::ASC) Order by the genre column - * @method CcShowQuery orderByDbDescription($order = Criteria::ASC) Order by the description column - * @method CcShowQuery orderByDbColor($order = Criteria::ASC) Order by the color column - * @method CcShowQuery orderByDbBackgroundColor($order = Criteria::ASC) Order by the background_color column - * @method CcShowQuery orderByDbLiveStreamUsingAirtimeAuth($order = Criteria::ASC) Order by the live_stream_using_airtime_auth column - * @method CcShowQuery orderByDbLiveStreamUsingCustomAuth($order = Criteria::ASC) Order by the live_stream_using_custom_auth column - * @method CcShowQuery orderByDbLiveStreamUser($order = Criteria::ASC) Order by the live_stream_user column - * @method CcShowQuery orderByDbLiveStreamPass($order = Criteria::ASC) Order by the live_stream_pass column - * @method CcShowQuery orderByDbLinked($order = Criteria::ASC) Order by the linked column - * @method CcShowQuery orderByDbIsLinkable($order = Criteria::ASC) Order by the is_linkable column * - * @method CcShowQuery groupByDbId() Group by the id column - * @method CcShowQuery groupByDbName() Group by the name column - * @method CcShowQuery groupByDbUrl() Group by the url column - * @method CcShowQuery groupByDbGenre() Group by the genre column - * @method CcShowQuery groupByDbDescription() Group by the description column - * @method CcShowQuery groupByDbColor() Group by the color column - * @method CcShowQuery groupByDbBackgroundColor() Group by the background_color column - * @method CcShowQuery groupByDbLiveStreamUsingAirtimeAuth() Group by the live_stream_using_airtime_auth column - * @method CcShowQuery groupByDbLiveStreamUsingCustomAuth() Group by the live_stream_using_custom_auth column - * @method CcShowQuery groupByDbLiveStreamUser() Group by the live_stream_user column - * @method CcShowQuery groupByDbLiveStreamPass() Group by the live_stream_pass column - * @method CcShowQuery groupByDbLinked() Group by the linked column - * @method CcShowQuery groupByDbIsLinkable() Group by the is_linkable column + * @method CcShowQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcShowQuery orderByDbName($order = Criteria::ASC) Order by the name column + * @method CcShowQuery orderByDbUrl($order = Criteria::ASC) Order by the url column + * @method CcShowQuery orderByDbGenre($order = Criteria::ASC) Order by the genre column + * @method CcShowQuery orderByDbDescription($order = Criteria::ASC) Order by the description column + * @method CcShowQuery orderByDbColor($order = Criteria::ASC) Order by the color column + * @method CcShowQuery orderByDbBackgroundColor($order = Criteria::ASC) Order by the background_color column + * @method CcShowQuery orderByDbLiveStreamUsingAirtimeAuth($order = Criteria::ASC) Order by the live_stream_using_airtime_auth column + * @method CcShowQuery orderByDbLiveStreamUsingCustomAuth($order = Criteria::ASC) Order by the live_stream_using_custom_auth column + * @method CcShowQuery orderByDbLiveStreamUser($order = Criteria::ASC) Order by the live_stream_user column + * @method CcShowQuery orderByDbLiveStreamPass($order = Criteria::ASC) Order by the live_stream_pass column + * @method CcShowQuery orderByDbLinked($order = Criteria::ASC) Order by the linked column + * @method CcShowQuery orderByDbIsLinkable($order = Criteria::ASC) Order by the is_linkable column * - * @method CcShowQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcShowQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcShowQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcShowQuery groupByDbId() Group by the id column + * @method CcShowQuery groupByDbName() Group by the name column + * @method CcShowQuery groupByDbUrl() Group by the url column + * @method CcShowQuery groupByDbGenre() Group by the genre column + * @method CcShowQuery groupByDbDescription() Group by the description column + * @method CcShowQuery groupByDbColor() Group by the color column + * @method CcShowQuery groupByDbBackgroundColor() Group by the background_color column + * @method CcShowQuery groupByDbLiveStreamUsingAirtimeAuth() Group by the live_stream_using_airtime_auth column + * @method CcShowQuery groupByDbLiveStreamUsingCustomAuth() Group by the live_stream_using_custom_auth column + * @method CcShowQuery groupByDbLiveStreamUser() Group by the live_stream_user column + * @method CcShowQuery groupByDbLiveStreamPass() Group by the live_stream_pass column + * @method CcShowQuery groupByDbLinked() Group by the linked column + * @method CcShowQuery groupByDbIsLinkable() Group by the is_linkable column * - * @method CcShowQuery leftJoinCcShowInstances($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShowInstances relation - * @method CcShowQuery rightJoinCcShowInstances($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShowInstances relation - * @method CcShowQuery innerJoinCcShowInstances($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShowInstances relation + * @method CcShowQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcShowQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcShowQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcShowQuery leftJoinCcShowDays($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShowDays relation - * @method CcShowQuery rightJoinCcShowDays($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShowDays relation - * @method CcShowQuery innerJoinCcShowDays($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShowDays relation + * @method CcShowQuery leftJoinCcShowInstances($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcShowInstances relation + * @method CcShowQuery rightJoinCcShowInstances($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcShowInstances relation + * @method CcShowQuery innerJoinCcShowInstances($relationAlias = null) Adds a INNER JOIN clause to the query using the CcShowInstances relation * - * @method CcShowQuery leftJoinCcShowRebroadcast($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShowRebroadcast relation - * @method CcShowQuery rightJoinCcShowRebroadcast($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShowRebroadcast relation - * @method CcShowQuery innerJoinCcShowRebroadcast($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShowRebroadcast relation + * @method CcShowQuery leftJoinCcShowDays($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcShowDays relation + * @method CcShowQuery rightJoinCcShowDays($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcShowDays relation + * @method CcShowQuery innerJoinCcShowDays($relationAlias = null) Adds a INNER JOIN clause to the query using the CcShowDays relation * - * @method CcShowQuery leftJoinCcShowHosts($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShowHosts relation - * @method CcShowQuery rightJoinCcShowHosts($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShowHosts relation - * @method CcShowQuery innerJoinCcShowHosts($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShowHosts relation + * @method CcShowQuery leftJoinCcShowRebroadcast($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcShowRebroadcast relation + * @method CcShowQuery rightJoinCcShowRebroadcast($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcShowRebroadcast relation + * @method CcShowQuery innerJoinCcShowRebroadcast($relationAlias = null) Adds a INNER JOIN clause to the query using the CcShowRebroadcast relation * - * @method CcShow findOne(PropelPDO $con = null) Return the first CcShow matching the query - * @method CcShow findOneOrCreate(PropelPDO $con = null) Return the first CcShow matching the query, or a new CcShow object populated from the query conditions when no match is found + * @method CcShowQuery leftJoinCcShowHosts($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcShowHosts relation + * @method CcShowQuery rightJoinCcShowHosts($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcShowHosts relation + * @method CcShowQuery innerJoinCcShowHosts($relationAlias = null) Adds a INNER JOIN clause to the query using the CcShowHosts relation * - * @method CcShow findOneByDbId(int $id) Return the first CcShow filtered by the id column - * @method CcShow findOneByDbName(string $name) Return the first CcShow filtered by the name column - * @method CcShow findOneByDbUrl(string $url) Return the first CcShow filtered by the url column - * @method CcShow findOneByDbGenre(string $genre) Return the first CcShow filtered by the genre column - * @method CcShow findOneByDbDescription(string $description) Return the first CcShow filtered by the description column - * @method CcShow findOneByDbColor(string $color) Return the first CcShow filtered by the color column - * @method CcShow findOneByDbBackgroundColor(string $background_color) Return the first CcShow filtered by the background_color column - * @method CcShow findOneByDbLiveStreamUsingAirtimeAuth(boolean $live_stream_using_airtime_auth) Return the first CcShow filtered by the live_stream_using_airtime_auth column - * @method CcShow findOneByDbLiveStreamUsingCustomAuth(boolean $live_stream_using_custom_auth) Return the first CcShow filtered by the live_stream_using_custom_auth column - * @method CcShow findOneByDbLiveStreamUser(string $live_stream_user) Return the first CcShow filtered by the live_stream_user column - * @method CcShow findOneByDbLiveStreamPass(string $live_stream_pass) Return the first CcShow filtered by the live_stream_pass column - * @method CcShow findOneByDbLinked(boolean $linked) Return the first CcShow filtered by the linked column - * @method CcShow findOneByDbIsLinkable(boolean $is_linkable) Return the first CcShow filtered by the is_linkable column + * @method CcShow findOne(PropelPDO $con = null) Return the first CcShow matching the query + * @method CcShow findOneOrCreate(PropelPDO $con = null) Return the first CcShow matching the query, or a new CcShow object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcShow objects filtered by the id column - * @method array findByDbName(string $name) Return CcShow objects filtered by the name column - * @method array findByDbUrl(string $url) Return CcShow objects filtered by the url column - * @method array findByDbGenre(string $genre) Return CcShow objects filtered by the genre column - * @method array findByDbDescription(string $description) Return CcShow objects filtered by the description column - * @method array findByDbColor(string $color) Return CcShow objects filtered by the color column - * @method array findByDbBackgroundColor(string $background_color) Return CcShow objects filtered by the background_color column - * @method array findByDbLiveStreamUsingAirtimeAuth(boolean $live_stream_using_airtime_auth) Return CcShow objects filtered by the live_stream_using_airtime_auth column - * @method array findByDbLiveStreamUsingCustomAuth(boolean $live_stream_using_custom_auth) Return CcShow objects filtered by the live_stream_using_custom_auth column - * @method array findByDbLiveStreamUser(string $live_stream_user) Return CcShow objects filtered by the live_stream_user column - * @method array findByDbLiveStreamPass(string $live_stream_pass) Return CcShow objects filtered by the live_stream_pass column - * @method array findByDbLinked(boolean $linked) Return CcShow objects filtered by the linked column - * @method array findByDbIsLinkable(boolean $is_linkable) Return CcShow objects filtered by the is_linkable column + * @method CcShow findOneByDbName(string $name) Return the first CcShow filtered by the name column + * @method CcShow findOneByDbUrl(string $url) Return the first CcShow filtered by the url column + * @method CcShow findOneByDbGenre(string $genre) Return the first CcShow filtered by the genre column + * @method CcShow findOneByDbDescription(string $description) Return the first CcShow filtered by the description column + * @method CcShow findOneByDbColor(string $color) Return the first CcShow filtered by the color column + * @method CcShow findOneByDbBackgroundColor(string $background_color) Return the first CcShow filtered by the background_color column + * @method CcShow findOneByDbLiveStreamUsingAirtimeAuth(boolean $live_stream_using_airtime_auth) Return the first CcShow filtered by the live_stream_using_airtime_auth column + * @method CcShow findOneByDbLiveStreamUsingCustomAuth(boolean $live_stream_using_custom_auth) Return the first CcShow filtered by the live_stream_using_custom_auth column + * @method CcShow findOneByDbLiveStreamUser(string $live_stream_user) Return the first CcShow filtered by the live_stream_user column + * @method CcShow findOneByDbLiveStreamPass(string $live_stream_pass) Return the first CcShow filtered by the live_stream_pass column + * @method CcShow findOneByDbLinked(boolean $linked) Return the first CcShow filtered by the linked column + * @method CcShow findOneByDbIsLinkable(boolean $is_linkable) Return the first CcShow filtered by the is_linkable column + * + * @method array findByDbId(int $id) Return CcShow objects filtered by the id column + * @method array findByDbName(string $name) Return CcShow objects filtered by the name column + * @method array findByDbUrl(string $url) Return CcShow objects filtered by the url column + * @method array findByDbGenre(string $genre) Return CcShow objects filtered by the genre column + * @method array findByDbDescription(string $description) Return CcShow objects filtered by the description column + * @method array findByDbColor(string $color) Return CcShow objects filtered by the color column + * @method array findByDbBackgroundColor(string $background_color) Return CcShow objects filtered by the background_color column + * @method array findByDbLiveStreamUsingAirtimeAuth(boolean $live_stream_using_airtime_auth) Return CcShow objects filtered by the live_stream_using_airtime_auth column + * @method array findByDbLiveStreamUsingCustomAuth(boolean $live_stream_using_custom_auth) Return CcShow objects filtered by the live_stream_using_custom_auth column + * @method array findByDbLiveStreamUser(string $live_stream_user) Return CcShow objects filtered by the live_stream_user column + * @method array findByDbLiveStreamPass(string $live_stream_pass) Return CcShow objects filtered by the live_stream_pass column + * @method array findByDbLinked(boolean $linked) Return CcShow objects filtered by the linked column + * @method array findByDbIsLinkable(boolean $is_linkable) Return CcShow objects filtered by the is_linkable column * * @package propel.generator.airtime.om */ abstract class BaseCcShowQuery extends ModelCriteria { - - /** - * Initializes internal state of BaseCcShowQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcShow', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcShowQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcShowQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcShowQuery) { - return $criteria; - } - $query = new CcShowQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcShow|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcShowPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcShowQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcShowPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcShowQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcShowPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcShowPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the name column - * - * @param string $dbName 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 CcShowQuery The current query, for fluid interface - */ - public function filterByDbName($dbName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbName)) { - $dbName = str_replace('*', '%', $dbName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcShowPeer::NAME, $dbName, $comparison); - } - - /** - * Filter the query on the url column - * - * @param string $dbUrl 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 CcShowQuery The current query, for fluid interface - */ - public function filterByDbUrl($dbUrl = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbUrl)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbUrl)) { - $dbUrl = str_replace('*', '%', $dbUrl); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcShowPeer::URL, $dbUrl, $comparison); - } - - /** - * Filter the query on the genre column - * - * @param string $dbGenre 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 CcShowQuery The current query, for fluid interface - */ - public function filterByDbGenre($dbGenre = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbGenre)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbGenre)) { - $dbGenre = str_replace('*', '%', $dbGenre); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcShowPeer::GENRE, $dbGenre, $comparison); - } - - /** - * Filter the query on the description column - * - * @param string $dbDescription 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 CcShowQuery The current query, for fluid interface - */ - public function filterByDbDescription($dbDescription = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbDescription)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbDescription)) { - $dbDescription = str_replace('*', '%', $dbDescription); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcShowPeer::DESCRIPTION, $dbDescription, $comparison); - } - - /** - * Filter the query on the color column - * - * @param string $dbColor 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 CcShowQuery The current query, for fluid interface - */ - public function filterByDbColor($dbColor = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbColor)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbColor)) { - $dbColor = str_replace('*', '%', $dbColor); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcShowPeer::COLOR, $dbColor, $comparison); - } - - /** - * Filter the query on the background_color column - * - * @param string $dbBackgroundColor 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 CcShowQuery The current query, for fluid interface - */ - public function filterByDbBackgroundColor($dbBackgroundColor = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbBackgroundColor)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbBackgroundColor)) { - $dbBackgroundColor = str_replace('*', '%', $dbBackgroundColor); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcShowPeer::BACKGROUND_COLOR, $dbBackgroundColor, $comparison); - } - - /** - * Filter the query on the live_stream_using_airtime_auth column - * - * @param boolean|string $dbLiveStreamUsingAirtimeAuth 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 CcShowQuery The current query, for fluid interface - */ - public function filterByDbLiveStreamUsingAirtimeAuth($dbLiveStreamUsingAirtimeAuth = null, $comparison = null) - { - if (is_string($dbLiveStreamUsingAirtimeAuth)) { - $live_stream_using_airtime_auth = in_array(strtolower($dbLiveStreamUsingAirtimeAuth), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - } - return $this->addUsingAlias(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH, $dbLiveStreamUsingAirtimeAuth, $comparison); - } - - /** - * Filter the query on the live_stream_using_custom_auth column - * - * @param boolean|string $dbLiveStreamUsingCustomAuth 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 CcShowQuery The current query, for fluid interface - */ - public function filterByDbLiveStreamUsingCustomAuth($dbLiveStreamUsingCustomAuth = null, $comparison = null) - { - if (is_string($dbLiveStreamUsingCustomAuth)) { - $live_stream_using_custom_auth = in_array(strtolower($dbLiveStreamUsingCustomAuth), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - } - return $this->addUsingAlias(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH, $dbLiveStreamUsingCustomAuth, $comparison); - } - - /** - * Filter the query on the live_stream_user column - * - * @param string $dbLiveStreamUser 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 CcShowQuery The current query, for fluid interface - */ - public function filterByDbLiveStreamUser($dbLiveStreamUser = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLiveStreamUser)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLiveStreamUser)) { - $dbLiveStreamUser = str_replace('*', '%', $dbLiveStreamUser); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcShowPeer::LIVE_STREAM_USER, $dbLiveStreamUser, $comparison); - } - - /** - * Filter the query on the live_stream_pass column - * - * @param string $dbLiveStreamPass 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 CcShowQuery The current query, for fluid interface - */ - public function filterByDbLiveStreamPass($dbLiveStreamPass = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLiveStreamPass)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLiveStreamPass)) { - $dbLiveStreamPass = str_replace('*', '%', $dbLiveStreamPass); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcShowPeer::LIVE_STREAM_PASS, $dbLiveStreamPass, $comparison); - } - - /** - * Filter the query on the linked column - * - * @param boolean|string $dbLinked 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 CcShowQuery The current query, for fluid interface - */ - public function filterByDbLinked($dbLinked = null, $comparison = null) - { - if (is_string($dbLinked)) { - $linked = in_array(strtolower($dbLinked), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - } - return $this->addUsingAlias(CcShowPeer::LINKED, $dbLinked, $comparison); - } - - /** - * Filter the query on the is_linkable column - * - * @param boolean|string $dbIsLinkable 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 CcShowQuery The current query, for fluid interface - */ - public function filterByDbIsLinkable($dbIsLinkable = null, $comparison = null) - { - if (is_string($dbIsLinkable)) { - $is_linkable = in_array(strtolower($dbIsLinkable), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - } - return $this->addUsingAlias(CcShowPeer::IS_LINKABLE, $dbIsLinkable, $comparison); - } - - /** - * Filter the query by a related CcShowInstances object - * - * @param CcShowInstances $ccShowInstances the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowQuery The current query, for fluid interface - */ - public function filterByCcShowInstances($ccShowInstances, $comparison = null) - { - return $this - ->addUsingAlias(CcShowPeer::ID, $ccShowInstances->getDbShowId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcShowInstances relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcShowQuery The current query, for fluid interface - */ - public function joinCcShowInstances($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcShowInstances'); - - // 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, 'CcShowInstances'); - } - - return $this; - } - - /** - * Use the CcShowInstances relation CcShowInstances 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 CcShowInstancesQuery A secondary query class using the current class as primary query - */ - public function useCcShowInstancesQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcShowInstances($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcShowInstances', 'CcShowInstancesQuery'); - } - - /** - * Filter the query by a related CcShowDays object - * - * @param CcShowDays $ccShowDays the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowQuery The current query, for fluid interface - */ - public function filterByCcShowDays($ccShowDays, $comparison = null) - { - return $this - ->addUsingAlias(CcShowPeer::ID, $ccShowDays->getDbShowId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcShowDays relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcShowQuery The current query, for fluid interface - */ - public function joinCcShowDays($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcShowDays'); - - // 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, 'CcShowDays'); - } - - return $this; - } - - /** - * Use the CcShowDays relation CcShowDays 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 CcShowDaysQuery A secondary query class using the current class as primary query - */ - public function useCcShowDaysQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcShowDays($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcShowDays', 'CcShowDaysQuery'); - } - - /** - * Filter the query by a related CcShowRebroadcast object - * - * @param CcShowRebroadcast $ccShowRebroadcast the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowQuery The current query, for fluid interface - */ - public function filterByCcShowRebroadcast($ccShowRebroadcast, $comparison = null) - { - return $this - ->addUsingAlias(CcShowPeer::ID, $ccShowRebroadcast->getDbShowId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcShowRebroadcast relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcShowQuery The current query, for fluid interface - */ - public function joinCcShowRebroadcast($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcShowRebroadcast'); - - // 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, 'CcShowRebroadcast'); - } - - return $this; - } - - /** - * Use the CcShowRebroadcast relation CcShowRebroadcast 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 CcShowRebroadcastQuery A secondary query class using the current class as primary query - */ - public function useCcShowRebroadcastQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcShowRebroadcast($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcShowRebroadcast', 'CcShowRebroadcastQuery'); - } - - /** - * Filter the query by a related CcShowHosts object - * - * @param CcShowHosts $ccShowHosts the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowQuery The current query, for fluid interface - */ - public function filterByCcShowHosts($ccShowHosts, $comparison = null) - { - return $this - ->addUsingAlias(CcShowPeer::ID, $ccShowHosts->getDbShow(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcShowHosts relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcShowQuery The current query, for fluid interface - */ - public function joinCcShowHosts($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcShowHosts'); - - // 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, 'CcShowHosts'); - } - - return $this; - } - - /** - * Use the CcShowHosts relation CcShowHosts 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 CcShowHostsQuery A secondary query class using the current class as primary query - */ - public function useCcShowHostsQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcShowHosts($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcShowHosts', 'CcShowHostsQuery'); - } - - /** - * Exclude object from result - * - * @param CcShow $ccShow Object to remove from the list of results - * - * @return CcShowQuery The current query, for fluid interface - */ - public function prune($ccShow = null) - { - if ($ccShow) { - $this->addUsingAlias(CcShowPeer::ID, $ccShow->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcShowQuery + /** + * Initializes internal state of BaseCcShowQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcShow'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcShowQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcShowQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcShowQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcShowQuery) { + return $criteria; + } + $query = new CcShowQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcShow|CcShow[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcShowPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcShowPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShow A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShow A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "name", "url", "genre", "description", "color", "background_color", "live_stream_using_airtime_auth", "live_stream_using_custom_auth", "live_stream_user", "live_stream_pass", "linked", "is_linkable" FROM "cc_show" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcShow(); + $obj->hydrate($row); + CcShowPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShow|CcShow[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcShow[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcShowQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcShowPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcShowQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcShowPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcShowPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcShowPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the name column + * + * Example usage: + * + * $query->filterByDbName('fooValue'); // WHERE name = 'fooValue' + * $query->filterByDbName('%fooValue%'); // WHERE name LIKE '%fooValue%' + * + * + * @param string $dbName 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 CcShowQuery The current query, for fluid interface + */ + public function filterByDbName($dbName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbName)) { + $dbName = str_replace('*', '%', $dbName); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcShowPeer::NAME, $dbName, $comparison); + } + + /** + * Filter the query on the url column + * + * Example usage: + * + * $query->filterByDbUrl('fooValue'); // WHERE url = 'fooValue' + * $query->filterByDbUrl('%fooValue%'); // WHERE url LIKE '%fooValue%' + * + * + * @param string $dbUrl 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 CcShowQuery The current query, for fluid interface + */ + public function filterByDbUrl($dbUrl = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbUrl)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbUrl)) { + $dbUrl = str_replace('*', '%', $dbUrl); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcShowPeer::URL, $dbUrl, $comparison); + } + + /** + * Filter the query on the genre column + * + * Example usage: + * + * $query->filterByDbGenre('fooValue'); // WHERE genre = 'fooValue' + * $query->filterByDbGenre('%fooValue%'); // WHERE genre LIKE '%fooValue%' + * + * + * @param string $dbGenre 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 CcShowQuery The current query, for fluid interface + */ + public function filterByDbGenre($dbGenre = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbGenre)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbGenre)) { + $dbGenre = str_replace('*', '%', $dbGenre); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcShowPeer::GENRE, $dbGenre, $comparison); + } + + /** + * Filter the query on the description column + * + * Example usage: + * + * $query->filterByDbDescription('fooValue'); // WHERE description = 'fooValue' + * $query->filterByDbDescription('%fooValue%'); // WHERE description LIKE '%fooValue%' + * + * + * @param string $dbDescription 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 CcShowQuery The current query, for fluid interface + */ + public function filterByDbDescription($dbDescription = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbDescription)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbDescription)) { + $dbDescription = str_replace('*', '%', $dbDescription); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcShowPeer::DESCRIPTION, $dbDescription, $comparison); + } + + /** + * Filter the query on the color column + * + * Example usage: + * + * $query->filterByDbColor('fooValue'); // WHERE color = 'fooValue' + * $query->filterByDbColor('%fooValue%'); // WHERE color LIKE '%fooValue%' + * + * + * @param string $dbColor 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 CcShowQuery The current query, for fluid interface + */ + public function filterByDbColor($dbColor = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbColor)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbColor)) { + $dbColor = str_replace('*', '%', $dbColor); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcShowPeer::COLOR, $dbColor, $comparison); + } + + /** + * Filter the query on the background_color column + * + * Example usage: + * + * $query->filterByDbBackgroundColor('fooValue'); // WHERE background_color = 'fooValue' + * $query->filterByDbBackgroundColor('%fooValue%'); // WHERE background_color LIKE '%fooValue%' + * + * + * @param string $dbBackgroundColor 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 CcShowQuery The current query, for fluid interface + */ + public function filterByDbBackgroundColor($dbBackgroundColor = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbBackgroundColor)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbBackgroundColor)) { + $dbBackgroundColor = str_replace('*', '%', $dbBackgroundColor); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcShowPeer::BACKGROUND_COLOR, $dbBackgroundColor, $comparison); + } + + /** + * Filter the query on the live_stream_using_airtime_auth column + * + * Example usage: + * + * $query->filterByDbLiveStreamUsingAirtimeAuth(true); // WHERE live_stream_using_airtime_auth = true + * $query->filterByDbLiveStreamUsingAirtimeAuth('yes'); // WHERE live_stream_using_airtime_auth = true + * + * + * @param boolean|string $dbLiveStreamUsingAirtimeAuth The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowQuery The current query, for fluid interface + */ + public function filterByDbLiveStreamUsingAirtimeAuth($dbLiveStreamUsingAirtimeAuth = null, $comparison = null) + { + if (is_string($dbLiveStreamUsingAirtimeAuth)) { + $dbLiveStreamUsingAirtimeAuth = in_array(strtolower($dbLiveStreamUsingAirtimeAuth), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH, $dbLiveStreamUsingAirtimeAuth, $comparison); + } + + /** + * Filter the query on the live_stream_using_custom_auth column + * + * Example usage: + * + * $query->filterByDbLiveStreamUsingCustomAuth(true); // WHERE live_stream_using_custom_auth = true + * $query->filterByDbLiveStreamUsingCustomAuth('yes'); // WHERE live_stream_using_custom_auth = true + * + * + * @param boolean|string $dbLiveStreamUsingCustomAuth The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowQuery The current query, for fluid interface + */ + public function filterByDbLiveStreamUsingCustomAuth($dbLiveStreamUsingCustomAuth = null, $comparison = null) + { + if (is_string($dbLiveStreamUsingCustomAuth)) { + $dbLiveStreamUsingCustomAuth = in_array(strtolower($dbLiveStreamUsingCustomAuth), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH, $dbLiveStreamUsingCustomAuth, $comparison); + } + + /** + * Filter the query on the live_stream_user column + * + * Example usage: + * + * $query->filterByDbLiveStreamUser('fooValue'); // WHERE live_stream_user = 'fooValue' + * $query->filterByDbLiveStreamUser('%fooValue%'); // WHERE live_stream_user LIKE '%fooValue%' + * + * + * @param string $dbLiveStreamUser 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 CcShowQuery The current query, for fluid interface + */ + public function filterByDbLiveStreamUser($dbLiveStreamUser = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLiveStreamUser)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLiveStreamUser)) { + $dbLiveStreamUser = str_replace('*', '%', $dbLiveStreamUser); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcShowPeer::LIVE_STREAM_USER, $dbLiveStreamUser, $comparison); + } + + /** + * Filter the query on the live_stream_pass column + * + * Example usage: + * + * $query->filterByDbLiveStreamPass('fooValue'); // WHERE live_stream_pass = 'fooValue' + * $query->filterByDbLiveStreamPass('%fooValue%'); // WHERE live_stream_pass LIKE '%fooValue%' + * + * + * @param string $dbLiveStreamPass 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 CcShowQuery The current query, for fluid interface + */ + public function filterByDbLiveStreamPass($dbLiveStreamPass = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLiveStreamPass)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLiveStreamPass)) { + $dbLiveStreamPass = str_replace('*', '%', $dbLiveStreamPass); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcShowPeer::LIVE_STREAM_PASS, $dbLiveStreamPass, $comparison); + } + + /** + * Filter the query on the linked column + * + * Example usage: + * + * $query->filterByDbLinked(true); // WHERE linked = true + * $query->filterByDbLinked('yes'); // WHERE linked = true + * + * + * @param boolean|string $dbLinked The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowQuery The current query, for fluid interface + */ + public function filterByDbLinked($dbLinked = null, $comparison = null) + { + if (is_string($dbLinked)) { + $dbLinked = in_array(strtolower($dbLinked), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(CcShowPeer::LINKED, $dbLinked, $comparison); + } + + /** + * Filter the query on the is_linkable column + * + * Example usage: + * + * $query->filterByDbIsLinkable(true); // WHERE is_linkable = true + * $query->filterByDbIsLinkable('yes'); // WHERE is_linkable = true + * + * + * @param boolean|string $dbIsLinkable The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowQuery The current query, for fluid interface + */ + public function filterByDbIsLinkable($dbIsLinkable = null, $comparison = null) + { + if (is_string($dbIsLinkable)) { + $dbIsLinkable = in_array(strtolower($dbIsLinkable), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(CcShowPeer::IS_LINKABLE, $dbIsLinkable, $comparison); + } + + /** + * Filter the query by a related CcShowInstances object + * + * @param CcShowInstances|PropelObjectCollection $ccShowInstances the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcShowInstances($ccShowInstances, $comparison = null) + { + if ($ccShowInstances instanceof CcShowInstances) { + return $this + ->addUsingAlias(CcShowPeer::ID, $ccShowInstances->getDbShowId(), $comparison); + } elseif ($ccShowInstances instanceof PropelObjectCollection) { + return $this + ->useCcShowInstancesQuery() + ->filterByPrimaryKeys($ccShowInstances->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcShowInstances() only accepts arguments of type CcShowInstances or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcShowInstances relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcShowQuery The current query, for fluid interface + */ + public function joinCcShowInstances($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcShowInstances'); + + // 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, 'CcShowInstances'); + } + + return $this; + } + + /** + * Use the CcShowInstances relation CcShowInstances 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 CcShowInstancesQuery A secondary query class using the current class as primary query + */ + public function useCcShowInstancesQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcShowInstances($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcShowInstances', 'CcShowInstancesQuery'); + } + + /** + * Filter the query by a related CcShowDays object + * + * @param CcShowDays|PropelObjectCollection $ccShowDays the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcShowDays($ccShowDays, $comparison = null) + { + if ($ccShowDays instanceof CcShowDays) { + return $this + ->addUsingAlias(CcShowPeer::ID, $ccShowDays->getDbShowId(), $comparison); + } elseif ($ccShowDays instanceof PropelObjectCollection) { + return $this + ->useCcShowDaysQuery() + ->filterByPrimaryKeys($ccShowDays->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcShowDays() only accepts arguments of type CcShowDays or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcShowDays relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcShowQuery The current query, for fluid interface + */ + public function joinCcShowDays($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcShowDays'); + + // 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, 'CcShowDays'); + } + + return $this; + } + + /** + * Use the CcShowDays relation CcShowDays 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 CcShowDaysQuery A secondary query class using the current class as primary query + */ + public function useCcShowDaysQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcShowDays($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcShowDays', 'CcShowDaysQuery'); + } + + /** + * Filter the query by a related CcShowRebroadcast object + * + * @param CcShowRebroadcast|PropelObjectCollection $ccShowRebroadcast the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcShowRebroadcast($ccShowRebroadcast, $comparison = null) + { + if ($ccShowRebroadcast instanceof CcShowRebroadcast) { + return $this + ->addUsingAlias(CcShowPeer::ID, $ccShowRebroadcast->getDbShowId(), $comparison); + } elseif ($ccShowRebroadcast instanceof PropelObjectCollection) { + return $this + ->useCcShowRebroadcastQuery() + ->filterByPrimaryKeys($ccShowRebroadcast->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcShowRebroadcast() only accepts arguments of type CcShowRebroadcast or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcShowRebroadcast relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcShowQuery The current query, for fluid interface + */ + public function joinCcShowRebroadcast($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcShowRebroadcast'); + + // 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, 'CcShowRebroadcast'); + } + + return $this; + } + + /** + * Use the CcShowRebroadcast relation CcShowRebroadcast 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 CcShowRebroadcastQuery A secondary query class using the current class as primary query + */ + public function useCcShowRebroadcastQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcShowRebroadcast($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcShowRebroadcast', 'CcShowRebroadcastQuery'); + } + + /** + * Filter the query by a related CcShowHosts object + * + * @param CcShowHosts|PropelObjectCollection $ccShowHosts the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcShowHosts($ccShowHosts, $comparison = null) + { + if ($ccShowHosts instanceof CcShowHosts) { + return $this + ->addUsingAlias(CcShowPeer::ID, $ccShowHosts->getDbShow(), $comparison); + } elseif ($ccShowHosts instanceof PropelObjectCollection) { + return $this + ->useCcShowHostsQuery() + ->filterByPrimaryKeys($ccShowHosts->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcShowHosts() only accepts arguments of type CcShowHosts or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcShowHosts relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcShowQuery The current query, for fluid interface + */ + public function joinCcShowHosts($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcShowHosts'); + + // 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, 'CcShowHosts'); + } + + return $this; + } + + /** + * Use the CcShowHosts relation CcShowHosts 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 CcShowHostsQuery A secondary query class using the current class as primary query + */ + public function useCcShowHostsQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcShowHosts($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcShowHosts', 'CcShowHostsQuery'); + } + + /** + * Exclude object from result + * + * @param CcShow $ccShow Object to remove from the list of results + * + * @return CcShowQuery The current query, for fluid interface + */ + public function prune($ccShow = null) + { + if ($ccShow) { + $this->addUsingAlias(CcShowPeer::ID, $ccShow->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShowRebroadcast.php b/airtime_mvc/application/models/airtime/om/BaseCcShowRebroadcast.php index aabd37d794..efbeba873d 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShowRebroadcast.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShowRebroadcast.php @@ -4,954 +4,1074 @@ /** * Base class that represents a row from the 'cc_show_rebroadcast' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcShowRebroadcast extends BaseObject implements Persistent +abstract class BaseCcShowRebroadcast extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcShowRebroadcastPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcShowRebroadcastPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the day_offset field. - * @var string - */ - protected $day_offset; - - /** - * The value for the start_time field. - * @var string - */ - protected $start_time; - - /** - * The value for the show_id field. - * @var int - */ - protected $show_id; - - /** - * @var CcShow - */ - protected $aCcShow; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [day_offset] column value. - * - * @return string - */ - public function getDbDayOffset() - { - return $this->day_offset; - } - - /** - * Get the [optionally formatted] temporal [start_time] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbStartTime($format = '%X') - { - if ($this->start_time === null) { - return null; - } - - - - try { - $dt = new DateTime($this->start_time); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->start_time, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [show_id] column value. - * - * @return int - */ - public function getDbShowId() - { - return $this->show_id; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcShowRebroadcast The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcShowRebroadcastPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [day_offset] column. - * - * @param string $v new value - * @return CcShowRebroadcast The current object (for fluent API support) - */ - public function setDbDayOffset($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->day_offset !== $v) { - $this->day_offset = $v; - $this->modifiedColumns[] = CcShowRebroadcastPeer::DAY_OFFSET; - } - - return $this; - } // setDbDayOffset() - - /** - * Sets the value of [start_time] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcShowRebroadcast The current object (for fluent API support) - */ - public function setDbStartTime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->start_time !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->start_time !== null && $tmpDt = new DateTime($this->start_time)) ? $tmpDt->format('H:i:s') : null; - $newNorm = ($dt !== null) ? $dt->format('H:i:s') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->start_time = ($dt ? $dt->format('H:i:s') : null); - $this->modifiedColumns[] = CcShowRebroadcastPeer::START_TIME; - } - } // if either are not null - - return $this; - } // setDbStartTime() - - /** - * Set the value of [show_id] column. - * - * @param int $v new value - * @return CcShowRebroadcast The current object (for fluent API support) - */ - public function setDbShowId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->show_id !== $v) { - $this->show_id = $v; - $this->modifiedColumns[] = CcShowRebroadcastPeer::SHOW_ID; - } - - if ($this->aCcShow !== null && $this->aCcShow->getDbId() !== $v) { - $this->aCcShow = null; - } - - return $this; - } // setDbShowId() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->day_offset = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->start_time = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->show_id = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 4; // 4 = CcShowRebroadcastPeer::NUM_COLUMNS - CcShowRebroadcastPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcShowRebroadcast object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcShow !== null && $this->show_id !== $this->aCcShow->getDbId()) { - $this->aCcShow = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcShowRebroadcastPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcShow = null; - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcShowRebroadcastQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcShowRebroadcastPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcShow !== null) { - if ($this->aCcShow->isModified() || $this->aCcShow->isNew()) { - $affectedRows += $this->aCcShow->save($con); - } - $this->setCcShow($this->aCcShow); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcShowRebroadcastPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcShowRebroadcastPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowRebroadcastPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcShowRebroadcastPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcShow !== null) { - if (!$this->aCcShow->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcShow->getValidationFailures()); - } - } - - - if (($retval = CcShowRebroadcastPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcShowRebroadcastPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbDayOffset(); - break; - case 2: - return $this->getDbStartTime(); - break; - case 3: - return $this->getDbShowId(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcShowRebroadcastPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbDayOffset(), - $keys[2] => $this->getDbStartTime(), - $keys[3] => $this->getDbShowId(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcShow) { - $result['CcShow'] = $this->aCcShow->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcShowRebroadcastPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbDayOffset($value); - break; - case 2: - $this->setDbStartTime($value); - break; - case 3: - $this->setDbShowId($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcShowRebroadcastPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbDayOffset($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbStartTime($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbShowId($arr[$keys[3]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcShowRebroadcastPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcShowRebroadcastPeer::ID)) $criteria->add(CcShowRebroadcastPeer::ID, $this->id); - if ($this->isColumnModified(CcShowRebroadcastPeer::DAY_OFFSET)) $criteria->add(CcShowRebroadcastPeer::DAY_OFFSET, $this->day_offset); - if ($this->isColumnModified(CcShowRebroadcastPeer::START_TIME)) $criteria->add(CcShowRebroadcastPeer::START_TIME, $this->start_time); - if ($this->isColumnModified(CcShowRebroadcastPeer::SHOW_ID)) $criteria->add(CcShowRebroadcastPeer::SHOW_ID, $this->show_id); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcShowRebroadcastPeer::DATABASE_NAME); - $criteria->add(CcShowRebroadcastPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcShowRebroadcast (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbDayOffset($this->day_offset); - $copyObj->setDbStartTime($this->start_time); - $copyObj->setDbShowId($this->show_id); - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcShowRebroadcast Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcShowRebroadcastPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcShowRebroadcastPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcShow object. - * - * @param CcShow $v - * @return CcShowRebroadcast The current object (for fluent API support) - * @throws PropelException - */ - public function setCcShow(CcShow $v = null) - { - if ($v === null) { - $this->setDbShowId(NULL); - } else { - $this->setDbShowId($v->getDbId()); - } - - $this->aCcShow = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcShow object, it will not be re-added. - if ($v !== null) { - $v->addCcShowRebroadcast($this); - } - - return $this; - } - - - /** - * Get the associated CcShow object - * - * @param PropelPDO Optional Connection object. - * @return CcShow The associated CcShow object. - * @throws PropelException - */ - public function getCcShow(PropelPDO $con = null) - { - if ($this->aCcShow === null && ($this->show_id !== null)) { - $this->aCcShow = CcShowQuery::create()->findPk($this->show_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcShow->addCcShowRebroadcasts($this); - */ - } - return $this->aCcShow; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->day_offset = null; - $this->start_time = null; - $this->show_id = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - $this->aCcShow = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcShowRebroadcast + /** + * Peer class name + */ + const PEER = 'CcShowRebroadcastPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcShowRebroadcastPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the day_offset field. + * @var string + */ + protected $day_offset; + + /** + * The value for the start_time field. + * @var string + */ + protected $start_time; + + /** + * The value for the show_id field. + * @var int + */ + protected $show_id; + + /** + * @var CcShow + */ + protected $aCcShow; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [day_offset] column value. + * + * @return string + */ + public function getDbDayOffset() + { + + return $this->day_offset; + } + + /** + * Get the [optionally formatted] temporal [start_time] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbStartTime($format = '%X') + { + if ($this->start_time === null) { + return null; + } + + + try { + $dt = new DateTime($this->start_time); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->start_time, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [show_id] column value. + * + * @return int + */ + public function getDbShowId() + { + + return $this->show_id; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcShowRebroadcast The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcShowRebroadcastPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [day_offset] column. + * + * @param string $v new value + * @return CcShowRebroadcast The current object (for fluent API support) + */ + public function setDbDayOffset($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->day_offset !== $v) { + $this->day_offset = $v; + $this->modifiedColumns[] = CcShowRebroadcastPeer::DAY_OFFSET; + } + + + return $this; + } // setDbDayOffset() + + /** + * Sets the value of [start_time] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcShowRebroadcast The current object (for fluent API support) + */ + public function setDbStartTime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->start_time !== null || $dt !== null) { + $currentDateAsString = ($this->start_time !== null && $tmpDt = new DateTime($this->start_time)) ? $tmpDt->format('H:i:s') : null; + $newDateAsString = $dt ? $dt->format('H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->start_time = $newDateAsString; + $this->modifiedColumns[] = CcShowRebroadcastPeer::START_TIME; + } + } // if either are not null + + + return $this; + } // setDbStartTime() + + /** + * Set the value of [show_id] column. + * + * @param int $v new value + * @return CcShowRebroadcast The current object (for fluent API support) + */ + public function setDbShowId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->show_id !== $v) { + $this->show_id = $v; + $this->modifiedColumns[] = CcShowRebroadcastPeer::SHOW_ID; + } + + if ($this->aCcShow !== null && $this->aCcShow->getDbId() !== $v) { + $this->aCcShow = null; + } + + + return $this; + } // setDbShowId() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->day_offset = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->start_time = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->show_id = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 4; // 4 = CcShowRebroadcastPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcShowRebroadcast object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcShow !== null && $this->show_id !== $this->aCcShow->getDbId()) { + $this->aCcShow = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcShowRebroadcastPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcShow = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcShowRebroadcastQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcShowRebroadcastPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcShow !== null) { + if ($this->aCcShow->isModified() || $this->aCcShow->isNew()) { + $affectedRows += $this->aCcShow->save($con); + } + $this->setCcShow($this->aCcShow); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcShowRebroadcastPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcShowRebroadcastPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_show_rebroadcast_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcShowRebroadcastPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcShowRebroadcastPeer::DAY_OFFSET)) { + $modifiedColumns[':p' . $index++] = '"day_offset"'; + } + if ($this->isColumnModified(CcShowRebroadcastPeer::START_TIME)) { + $modifiedColumns[':p' . $index++] = '"start_time"'; + } + if ($this->isColumnModified(CcShowRebroadcastPeer::SHOW_ID)) { + $modifiedColumns[':p' . $index++] = '"show_id"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_show_rebroadcast" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"day_offset"': + $stmt->bindValue($identifier, $this->day_offset, PDO::PARAM_STR); + break; + case '"start_time"': + $stmt->bindValue($identifier, $this->start_time, PDO::PARAM_STR); + break; + case '"show_id"': + $stmt->bindValue($identifier, $this->show_id, PDO::PARAM_INT); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcShow !== null) { + if (!$this->aCcShow->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcShow->getValidationFailures()); + } + } + + + if (($retval = CcShowRebroadcastPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcShowRebroadcastPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbDayOffset(); + break; + case 2: + return $this->getDbStartTime(); + break; + case 3: + return $this->getDbShowId(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcShowRebroadcast'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcShowRebroadcast'][$this->getPrimaryKey()] = true; + $keys = CcShowRebroadcastPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbDayOffset(), + $keys[2] => $this->getDbStartTime(), + $keys[3] => $this->getDbShowId(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcShow) { + $result['CcShow'] = $this->aCcShow->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcShowRebroadcastPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbDayOffset($value); + break; + case 2: + $this->setDbStartTime($value); + break; + case 3: + $this->setDbShowId($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcShowRebroadcastPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbDayOffset($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbStartTime($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbShowId($arr[$keys[3]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcShowRebroadcastPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcShowRebroadcastPeer::ID)) $criteria->add(CcShowRebroadcastPeer::ID, $this->id); + if ($this->isColumnModified(CcShowRebroadcastPeer::DAY_OFFSET)) $criteria->add(CcShowRebroadcastPeer::DAY_OFFSET, $this->day_offset); + if ($this->isColumnModified(CcShowRebroadcastPeer::START_TIME)) $criteria->add(CcShowRebroadcastPeer::START_TIME, $this->start_time); + if ($this->isColumnModified(CcShowRebroadcastPeer::SHOW_ID)) $criteria->add(CcShowRebroadcastPeer::SHOW_ID, $this->show_id); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcShowRebroadcastPeer::DATABASE_NAME); + $criteria->add(CcShowRebroadcastPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcShowRebroadcast (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbDayOffset($this->getDbDayOffset()); + $copyObj->setDbStartTime($this->getDbStartTime()); + $copyObj->setDbShowId($this->getDbShowId()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcShowRebroadcast Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcShowRebroadcastPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcShowRebroadcastPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcShow object. + * + * @param CcShow $v + * @return CcShowRebroadcast The current object (for fluent API support) + * @throws PropelException + */ + public function setCcShow(CcShow $v = null) + { + if ($v === null) { + $this->setDbShowId(NULL); + } else { + $this->setDbShowId($v->getDbId()); + } + + $this->aCcShow = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcShow object, it will not be re-added. + if ($v !== null) { + $v->addCcShowRebroadcast($this); + } + + + return $this; + } + + + /** + * Get the associated CcShow object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcShow The associated CcShow object. + * @throws PropelException + */ + public function getCcShow(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcShow === null && ($this->show_id !== null) && $doQuery) { + $this->aCcShow = CcShowQuery::create()->findPk($this->show_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcShow->addCcShowRebroadcasts($this); + */ + } + + return $this->aCcShow; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->day_offset = null; + $this->start_time = null; + $this->show_id = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcShow instanceof Persistent) { + $this->aCcShow->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcShow = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcShowRebroadcastPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShowRebroadcastPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcShowRebroadcastPeer.php index ef0434c70e..8f5c1e8836 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShowRebroadcastPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShowRebroadcastPeer.php @@ -4,976 +4,1002 @@ /** * Base static class for performing query and update operations on the 'cc_show_rebroadcast' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcShowRebroadcastPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_show_rebroadcast'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcShowRebroadcast'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcShowRebroadcast'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcShowRebroadcastTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 4; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_show_rebroadcast.ID'; - - /** the column name for the DAY_OFFSET field */ - const DAY_OFFSET = 'cc_show_rebroadcast.DAY_OFFSET'; - - /** the column name for the START_TIME field */ - const START_TIME = 'cc_show_rebroadcast.START_TIME'; - - /** the column name for the SHOW_ID field */ - const SHOW_ID = 'cc_show_rebroadcast.SHOW_ID'; - - /** - * An identiy map to hold any loaded instances of CcShowRebroadcast objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcShowRebroadcast[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbDayOffset', 'DbStartTime', 'DbShowId', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbDayOffset', 'dbStartTime', 'dbShowId', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::DAY_OFFSET, self::START_TIME, self::SHOW_ID, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'DAY_OFFSET', 'START_TIME', 'SHOW_ID', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'day_offset', 'start_time', 'show_id', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbDayOffset' => 1, 'DbStartTime' => 2, 'DbShowId' => 3, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbDayOffset' => 1, 'dbStartTime' => 2, 'dbShowId' => 3, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::DAY_OFFSET => 1, self::START_TIME => 2, self::SHOW_ID => 3, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'DAY_OFFSET' => 1, 'START_TIME' => 2, 'SHOW_ID' => 3, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'day_offset' => 1, 'start_time' => 2, 'show_id' => 3, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcShowRebroadcastPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcShowRebroadcastPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcShowRebroadcastPeer::ID); - $criteria->addSelectColumn(CcShowRebroadcastPeer::DAY_OFFSET); - $criteria->addSelectColumn(CcShowRebroadcastPeer::START_TIME); - $criteria->addSelectColumn(CcShowRebroadcastPeer::SHOW_ID); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.DAY_OFFSET'); - $criteria->addSelectColumn($alias . '.START_TIME'); - $criteria->addSelectColumn($alias . '.SHOW_ID'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowRebroadcastPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowRebroadcastPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcShowRebroadcast - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcShowRebroadcastPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcShowRebroadcastPeer::populateObjects(CcShowRebroadcastPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcShowRebroadcastPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcShowRebroadcast $value A CcShowRebroadcast object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcShowRebroadcast $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcShowRebroadcast object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcShowRebroadcast) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcShowRebroadcast object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcShowRebroadcast Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_show_rebroadcast - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcShowRebroadcastPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcShowRebroadcastPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcShowRebroadcastPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcShowRebroadcastPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcShowRebroadcast object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcShowRebroadcastPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcShowRebroadcastPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcShowRebroadcastPeer::NUM_COLUMNS; - } else { - $cls = CcShowRebroadcastPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcShowRebroadcastPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcShow table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcShow(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowRebroadcastPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowRebroadcastPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowRebroadcastPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcShowRebroadcast objects pre-filled with their CcShow objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowRebroadcast objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcShow(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowRebroadcastPeer::addSelectColumns($criteria); - $startcol = (CcShowRebroadcastPeer::NUM_COLUMNS - CcShowRebroadcastPeer::NUM_LAZY_LOAD_COLUMNS); - CcShowPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcShowRebroadcastPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowRebroadcastPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowRebroadcastPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcShowRebroadcastPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowRebroadcastPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcShowPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcShowPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcShowRebroadcast) to $obj2 (CcShow) - $obj2->addCcShowRebroadcast($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcShowRebroadcastPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcShowRebroadcastPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcShowRebroadcastPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcShowRebroadcast objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcShowRebroadcast objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcShowRebroadcastPeer::addSelectColumns($criteria); - $startcol2 = (CcShowRebroadcastPeer::NUM_COLUMNS - CcShowRebroadcastPeer::NUM_LAZY_LOAD_COLUMNS); - - CcShowPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcShowPeer::NUM_COLUMNS - CcShowPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcShowRebroadcastPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcShowRebroadcastPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcShowRebroadcastPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcShowRebroadcastPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcShowRebroadcastPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcShow rows - - $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcShowPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcShowPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcShowPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcShowRebroadcast) to the collection in $obj2 (CcShow) - $obj2->addCcShowRebroadcast($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcShowRebroadcastPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcShowRebroadcastPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcShowRebroadcastTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcShowRebroadcastPeer::CLASS_DEFAULT : CcShowRebroadcastPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcShowRebroadcast or Criteria object. - * - * @param mixed $values Criteria or CcShowRebroadcast object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcShowRebroadcast object - } - - if ($criteria->containsKey(CcShowRebroadcastPeer::ID) && $criteria->keyContainsValue(CcShowRebroadcastPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowRebroadcastPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcShowRebroadcast or Criteria object. - * - * @param mixed $values Criteria or CcShowRebroadcast object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcShowRebroadcastPeer::ID); - $value = $criteria->remove(CcShowRebroadcastPeer::ID); - if ($value) { - $selectCriteria->add(CcShowRebroadcastPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcShowRebroadcastPeer::TABLE_NAME); - } - - } else { // $values is CcShowRebroadcast object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_show_rebroadcast table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcShowRebroadcastPeer::TABLE_NAME, $con, CcShowRebroadcastPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcShowRebroadcastPeer::clearInstancePool(); - CcShowRebroadcastPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcShowRebroadcast or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcShowRebroadcast object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcShowRebroadcastPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcShowRebroadcast) { // it's a model object - // invalidate the cache for this single object - CcShowRebroadcastPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcShowRebroadcastPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcShowRebroadcastPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcShowRebroadcastPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcShowRebroadcast object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcShowRebroadcast $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcShowRebroadcast $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcShowRebroadcastPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcShowRebroadcastPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcShowRebroadcastPeer::DATABASE_NAME, CcShowRebroadcastPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcShowRebroadcast - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcShowRebroadcastPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcShowRebroadcastPeer::DATABASE_NAME); - $criteria->add(CcShowRebroadcastPeer::ID, $pk); - - $v = CcShowRebroadcastPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcShowRebroadcastPeer::DATABASE_NAME); - $criteria->add(CcShowRebroadcastPeer::ID, $pks, Criteria::IN); - $objs = CcShowRebroadcastPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcShowRebroadcastPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_show_rebroadcast'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcShowRebroadcast'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcShowRebroadcastTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 4; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 4; + + /** the column name for the id field */ + const ID = 'cc_show_rebroadcast.id'; + + /** the column name for the day_offset field */ + const DAY_OFFSET = 'cc_show_rebroadcast.day_offset'; + + /** the column name for the start_time field */ + const START_TIME = 'cc_show_rebroadcast.start_time'; + + /** the column name for the show_id field */ + const SHOW_ID = 'cc_show_rebroadcast.show_id'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcShowRebroadcast objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcShowRebroadcast[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcShowRebroadcastPeer::$fieldNames[CcShowRebroadcastPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbDayOffset', 'DbStartTime', 'DbShowId', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbDayOffset', 'dbStartTime', 'dbShowId', ), + BasePeer::TYPE_COLNAME => array (CcShowRebroadcastPeer::ID, CcShowRebroadcastPeer::DAY_OFFSET, CcShowRebroadcastPeer::START_TIME, CcShowRebroadcastPeer::SHOW_ID, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'DAY_OFFSET', 'START_TIME', 'SHOW_ID', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'day_offset', 'start_time', 'show_id', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcShowRebroadcastPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbDayOffset' => 1, 'DbStartTime' => 2, 'DbShowId' => 3, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbDayOffset' => 1, 'dbStartTime' => 2, 'dbShowId' => 3, ), + BasePeer::TYPE_COLNAME => array (CcShowRebroadcastPeer::ID => 0, CcShowRebroadcastPeer::DAY_OFFSET => 1, CcShowRebroadcastPeer::START_TIME => 2, CcShowRebroadcastPeer::SHOW_ID => 3, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'DAY_OFFSET' => 1, 'START_TIME' => 2, 'SHOW_ID' => 3, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'day_offset' => 1, 'start_time' => 2, 'show_id' => 3, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcShowRebroadcastPeer::getFieldNames($toType); + $key = isset(CcShowRebroadcastPeer::$fieldKeys[$fromType][$name]) ? CcShowRebroadcastPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcShowRebroadcastPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcShowRebroadcastPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcShowRebroadcastPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcShowRebroadcastPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcShowRebroadcastPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcShowRebroadcastPeer::ID); + $criteria->addSelectColumn(CcShowRebroadcastPeer::DAY_OFFSET); + $criteria->addSelectColumn(CcShowRebroadcastPeer::START_TIME); + $criteria->addSelectColumn(CcShowRebroadcastPeer::SHOW_ID); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.day_offset'); + $criteria->addSelectColumn($alias . '.start_time'); + $criteria->addSelectColumn($alias . '.show_id'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowRebroadcastPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowRebroadcastPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcShowRebroadcastPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcShowRebroadcast + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcShowRebroadcastPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcShowRebroadcastPeer::populateObjects(CcShowRebroadcastPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcShowRebroadcastPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcShowRebroadcastPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcShowRebroadcast $obj A CcShowRebroadcast object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcShowRebroadcastPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcShowRebroadcast object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcShowRebroadcast) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcShowRebroadcast object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcShowRebroadcastPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcShowRebroadcast Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcShowRebroadcastPeer::$instances[$key])) { + return CcShowRebroadcastPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcShowRebroadcastPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcShowRebroadcastPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_show_rebroadcast + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcShowRebroadcastPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcShowRebroadcastPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcShowRebroadcastPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcShowRebroadcastPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcShowRebroadcast object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcShowRebroadcastPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcShowRebroadcastPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcShowRebroadcastPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcShowRebroadcastPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcShowRebroadcastPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcShow table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcShow(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowRebroadcastPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowRebroadcastPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcShowRebroadcastPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowRebroadcastPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcShowRebroadcast objects pre-filled with their CcShow objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowRebroadcast objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcShow(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowRebroadcastPeer::DATABASE_NAME); + } + + CcShowRebroadcastPeer::addSelectColumns($criteria); + $startcol = CcShowRebroadcastPeer::NUM_HYDRATE_COLUMNS; + CcShowPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcShowRebroadcastPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowRebroadcastPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowRebroadcastPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcShowRebroadcastPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowRebroadcastPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcShowPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcShowPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcShowRebroadcast) to $obj2 (CcShow) + $obj2->addCcShowRebroadcast($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcShowRebroadcastPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcShowRebroadcastPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcShowRebroadcastPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcShowRebroadcastPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcShowRebroadcast objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcShowRebroadcast objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcShowRebroadcastPeer::DATABASE_NAME); + } + + CcShowRebroadcastPeer::addSelectColumns($criteria); + $startcol2 = CcShowRebroadcastPeer::NUM_HYDRATE_COLUMNS; + + CcShowPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcShowPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcShowRebroadcastPeer::SHOW_ID, CcShowPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcShowRebroadcastPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcShowRebroadcastPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcShowRebroadcastPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcShowRebroadcastPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcShow rows + + $key2 = CcShowPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcShowPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcShowPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcShowPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcShowRebroadcast) to the collection in $obj2 (CcShow) + $obj2->addCcShowRebroadcast($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcShowRebroadcastPeer::DATABASE_NAME)->getTable(CcShowRebroadcastPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcShowRebroadcastPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcShowRebroadcastPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcShowRebroadcastTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcShowRebroadcastPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcShowRebroadcast or Criteria object. + * + * @param mixed $values Criteria or CcShowRebroadcast object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcShowRebroadcast object + } + + if ($criteria->containsKey(CcShowRebroadcastPeer::ID) && $criteria->keyContainsValue(CcShowRebroadcastPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcShowRebroadcastPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcShowRebroadcastPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcShowRebroadcast or Criteria object. + * + * @param mixed $values Criteria or CcShowRebroadcast object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcShowRebroadcastPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcShowRebroadcastPeer::ID); + $value = $criteria->remove(CcShowRebroadcastPeer::ID); + if ($value) { + $selectCriteria->add(CcShowRebroadcastPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcShowRebroadcastPeer::TABLE_NAME); + } + + } else { // $values is CcShowRebroadcast object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcShowRebroadcastPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_show_rebroadcast table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcShowRebroadcastPeer::TABLE_NAME, $con, CcShowRebroadcastPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcShowRebroadcastPeer::clearInstancePool(); + CcShowRebroadcastPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcShowRebroadcast or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcShowRebroadcast object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcShowRebroadcastPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcShowRebroadcast) { // it's a model object + // invalidate the cache for this single object + CcShowRebroadcastPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcShowRebroadcastPeer::DATABASE_NAME); + $criteria->add(CcShowRebroadcastPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcShowRebroadcastPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcShowRebroadcastPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcShowRebroadcastPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcShowRebroadcast object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcShowRebroadcast $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcShowRebroadcastPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcShowRebroadcastPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcShowRebroadcastPeer::DATABASE_NAME, CcShowRebroadcastPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcShowRebroadcast + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcShowRebroadcastPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcShowRebroadcastPeer::DATABASE_NAME); + $criteria->add(CcShowRebroadcastPeer::ID, $pk); + + $v = CcShowRebroadcastPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcShowRebroadcast[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcShowRebroadcastPeer::DATABASE_NAME); + $criteria->add(CcShowRebroadcastPeer::ID, $pks, Criteria::IN); + $objs = CcShowRebroadcastPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcShowRebroadcastPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcShowRebroadcastQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcShowRebroadcastQuery.php index d7fedf8e94..44ff29fedb 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcShowRebroadcastQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcShowRebroadcastQuery.php @@ -4,326 +4,481 @@ /** * Base class that represents a query for the 'cc_show_rebroadcast' table. * - * * - * @method CcShowRebroadcastQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcShowRebroadcastQuery orderByDbDayOffset($order = Criteria::ASC) Order by the day_offset column - * @method CcShowRebroadcastQuery orderByDbStartTime($order = Criteria::ASC) Order by the start_time column - * @method CcShowRebroadcastQuery orderByDbShowId($order = Criteria::ASC) Order by the show_id column * - * @method CcShowRebroadcastQuery groupByDbId() Group by the id column - * @method CcShowRebroadcastQuery groupByDbDayOffset() Group by the day_offset column - * @method CcShowRebroadcastQuery groupByDbStartTime() Group by the start_time column - * @method CcShowRebroadcastQuery groupByDbShowId() Group by the show_id column + * @method CcShowRebroadcastQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcShowRebroadcastQuery orderByDbDayOffset($order = Criteria::ASC) Order by the day_offset column + * @method CcShowRebroadcastQuery orderByDbStartTime($order = Criteria::ASC) Order by the start_time column + * @method CcShowRebroadcastQuery orderByDbShowId($order = Criteria::ASC) Order by the show_id column * - * @method CcShowRebroadcastQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcShowRebroadcastQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcShowRebroadcastQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcShowRebroadcastQuery groupByDbId() Group by the id column + * @method CcShowRebroadcastQuery groupByDbDayOffset() Group by the day_offset column + * @method CcShowRebroadcastQuery groupByDbStartTime() Group by the start_time column + * @method CcShowRebroadcastQuery groupByDbShowId() Group by the show_id column * - * @method CcShowRebroadcastQuery leftJoinCcShow($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShow relation - * @method CcShowRebroadcastQuery rightJoinCcShow($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShow relation - * @method CcShowRebroadcastQuery innerJoinCcShow($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShow relation + * @method CcShowRebroadcastQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcShowRebroadcastQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcShowRebroadcastQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcShowRebroadcast findOne(PropelPDO $con = null) Return the first CcShowRebroadcast matching the query - * @method CcShowRebroadcast findOneOrCreate(PropelPDO $con = null) Return the first CcShowRebroadcast matching the query, or a new CcShowRebroadcast object populated from the query conditions when no match is found + * @method CcShowRebroadcastQuery leftJoinCcShow($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcShow relation + * @method CcShowRebroadcastQuery rightJoinCcShow($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcShow relation + * @method CcShowRebroadcastQuery innerJoinCcShow($relationAlias = null) Adds a INNER JOIN clause to the query using the CcShow relation * - * @method CcShowRebroadcast findOneByDbId(int $id) Return the first CcShowRebroadcast filtered by the id column - * @method CcShowRebroadcast findOneByDbDayOffset(string $day_offset) Return the first CcShowRebroadcast filtered by the day_offset column - * @method CcShowRebroadcast findOneByDbStartTime(string $start_time) Return the first CcShowRebroadcast filtered by the start_time column - * @method CcShowRebroadcast findOneByDbShowId(int $show_id) Return the first CcShowRebroadcast filtered by the show_id column + * @method CcShowRebroadcast findOne(PropelPDO $con = null) Return the first CcShowRebroadcast matching the query + * @method CcShowRebroadcast findOneOrCreate(PropelPDO $con = null) Return the first CcShowRebroadcast matching the query, or a new CcShowRebroadcast object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcShowRebroadcast objects filtered by the id column - * @method array findByDbDayOffset(string $day_offset) Return CcShowRebroadcast objects filtered by the day_offset column - * @method array findByDbStartTime(string $start_time) Return CcShowRebroadcast objects filtered by the start_time column - * @method array findByDbShowId(int $show_id) Return CcShowRebroadcast objects filtered by the show_id column + * @method CcShowRebroadcast findOneByDbDayOffset(string $day_offset) Return the first CcShowRebroadcast filtered by the day_offset column + * @method CcShowRebroadcast findOneByDbStartTime(string $start_time) Return the first CcShowRebroadcast filtered by the start_time column + * @method CcShowRebroadcast findOneByDbShowId(int $show_id) Return the first CcShowRebroadcast filtered by the show_id column + * + * @method array findByDbId(int $id) Return CcShowRebroadcast objects filtered by the id column + * @method array findByDbDayOffset(string $day_offset) Return CcShowRebroadcast objects filtered by the day_offset column + * @method array findByDbStartTime(string $start_time) Return CcShowRebroadcast objects filtered by the start_time column + * @method array findByDbShowId(int $show_id) Return CcShowRebroadcast objects filtered by the show_id column * * @package propel.generator.airtime.om */ abstract class BaseCcShowRebroadcastQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcShowRebroadcastQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcShowRebroadcast'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcShowRebroadcastQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcShowRebroadcastQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcShowRebroadcastQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcShowRebroadcastQuery) { + return $criteria; + } + $query = new CcShowRebroadcastQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcShowRebroadcast|CcShowRebroadcast[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcShowRebroadcastPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShowRebroadcast A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShowRebroadcast A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "day_offset", "start_time", "show_id" FROM "cc_show_rebroadcast" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcShowRebroadcast(); + $obj->hydrate($row); + CcShowRebroadcastPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcShowRebroadcast|CcShowRebroadcast[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcShowRebroadcast[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcShowRebroadcastQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcShowRebroadcastPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcShowRebroadcastQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcShowRebroadcastPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowRebroadcastQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcShowRebroadcastPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcShowRebroadcastPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowRebroadcastPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the day_offset column + * + * Example usage: + * + * $query->filterByDbDayOffset('fooValue'); // WHERE day_offset = 'fooValue' + * $query->filterByDbDayOffset('%fooValue%'); // WHERE day_offset LIKE '%fooValue%' + * + * + * @param string $dbDayOffset 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 CcShowRebroadcastQuery The current query, for fluid interface + */ + public function filterByDbDayOffset($dbDayOffset = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbDayOffset)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbDayOffset)) { + $dbDayOffset = str_replace('*', '%', $dbDayOffset); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcShowRebroadcastPeer::DAY_OFFSET, $dbDayOffset, $comparison); + } + + /** + * Filter the query on the start_time column + * + * Example usage: + * + * $query->filterByDbStartTime('2011-03-14'); // WHERE start_time = '2011-03-14' + * $query->filterByDbStartTime('now'); // WHERE start_time = '2011-03-14' + * $query->filterByDbStartTime(array('max' => 'yesterday')); // WHERE start_time < '2011-03-13' + * + * + * @param mixed $dbStartTime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowRebroadcastQuery The current query, for fluid interface + */ + public function filterByDbStartTime($dbStartTime = null, $comparison = null) + { + if (is_array($dbStartTime)) { + $useMinMax = false; + if (isset($dbStartTime['min'])) { + $this->addUsingAlias(CcShowRebroadcastPeer::START_TIME, $dbStartTime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbStartTime['max'])) { + $this->addUsingAlias(CcShowRebroadcastPeer::START_TIME, $dbStartTime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowRebroadcastPeer::START_TIME, $dbStartTime, $comparison); + } + + /** + * Filter the query on the show_id column + * + * Example usage: + * + * $query->filterByDbShowId(1234); // WHERE show_id = 1234 + * $query->filterByDbShowId(array(12, 34)); // WHERE show_id IN (12, 34) + * $query->filterByDbShowId(array('min' => 12)); // WHERE show_id >= 12 + * $query->filterByDbShowId(array('max' => 12)); // WHERE show_id <= 12 + * + * + * @see filterByCcShow() + * + * @param mixed $dbShowId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowRebroadcastQuery The current query, for fluid interface + */ + public function filterByDbShowId($dbShowId = null, $comparison = null) + { + if (is_array($dbShowId)) { + $useMinMax = false; + if (isset($dbShowId['min'])) { + $this->addUsingAlias(CcShowRebroadcastPeer::SHOW_ID, $dbShowId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbShowId['max'])) { + $this->addUsingAlias(CcShowRebroadcastPeer::SHOW_ID, $dbShowId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcShowRebroadcastPeer::SHOW_ID, $dbShowId, $comparison); + } + + /** + * Filter the query by a related CcShow object + * + * @param CcShow|PropelObjectCollection $ccShow The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowRebroadcastQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcShow($ccShow, $comparison = null) + { + if ($ccShow instanceof CcShow) { + return $this + ->addUsingAlias(CcShowRebroadcastPeer::SHOW_ID, $ccShow->getDbId(), $comparison); + } elseif ($ccShow instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcShowRebroadcastPeer::SHOW_ID, $ccShow->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcShow() only accepts arguments of type CcShow or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcShow relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcShowRebroadcastQuery The current query, for fluid interface + */ + public function joinCcShow($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcShow'); + + // 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, 'CcShow'); + } + + return $this; + } + + /** + * Use the CcShow relation CcShow 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 CcShowQuery A secondary query class using the current class as primary query + */ + public function useCcShowQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcShow($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcShow', 'CcShowQuery'); + } + + /** + * Exclude object from result + * + * @param CcShowRebroadcast $ccShowRebroadcast Object to remove from the list of results + * + * @return CcShowRebroadcastQuery The current query, for fluid interface + */ + public function prune($ccShowRebroadcast = null) + { + if ($ccShowRebroadcast) { + $this->addUsingAlias(CcShowRebroadcastPeer::ID, $ccShowRebroadcast->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcShowRebroadcastQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcShowRebroadcast', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcShowRebroadcastQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcShowRebroadcastQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcShowRebroadcastQuery) { - return $criteria; - } - $query = new CcShowRebroadcastQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcShowRebroadcast|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcShowRebroadcastPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcShowRebroadcastQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcShowRebroadcastPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcShowRebroadcastQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcShowRebroadcastPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowRebroadcastQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcShowRebroadcastPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the day_offset column - * - * @param string $dbDayOffset 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 CcShowRebroadcastQuery The current query, for fluid interface - */ - public function filterByDbDayOffset($dbDayOffset = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbDayOffset)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbDayOffset)) { - $dbDayOffset = str_replace('*', '%', $dbDayOffset); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcShowRebroadcastPeer::DAY_OFFSET, $dbDayOffset, $comparison); - } - - /** - * Filter the query on the start_time column - * - * @param string|array $dbStartTime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowRebroadcastQuery The current query, for fluid interface - */ - public function filterByDbStartTime($dbStartTime = null, $comparison = null) - { - if (is_array($dbStartTime)) { - $useMinMax = false; - if (isset($dbStartTime['min'])) { - $this->addUsingAlias(CcShowRebroadcastPeer::START_TIME, $dbStartTime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbStartTime['max'])) { - $this->addUsingAlias(CcShowRebroadcastPeer::START_TIME, $dbStartTime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowRebroadcastPeer::START_TIME, $dbStartTime, $comparison); - } - - /** - * Filter the query on the show_id column - * - * @param int|array $dbShowId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowRebroadcastQuery The current query, for fluid interface - */ - public function filterByDbShowId($dbShowId = null, $comparison = null) - { - if (is_array($dbShowId)) { - $useMinMax = false; - if (isset($dbShowId['min'])) { - $this->addUsingAlias(CcShowRebroadcastPeer::SHOW_ID, $dbShowId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbShowId['max'])) { - $this->addUsingAlias(CcShowRebroadcastPeer::SHOW_ID, $dbShowId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcShowRebroadcastPeer::SHOW_ID, $dbShowId, $comparison); - } - - /** - * Filter the query by a related CcShow object - * - * @param CcShow $ccShow the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcShowRebroadcastQuery The current query, for fluid interface - */ - public function filterByCcShow($ccShow, $comparison = null) - { - return $this - ->addUsingAlias(CcShowRebroadcastPeer::SHOW_ID, $ccShow->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcShow relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcShowRebroadcastQuery The current query, for fluid interface - */ - public function joinCcShow($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcShow'); - - // 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, 'CcShow'); - } - - return $this; - } - - /** - * Use the CcShow relation CcShow 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 CcShowQuery A secondary query class using the current class as primary query - */ - public function useCcShowQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcShow($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcShow', 'CcShowQuery'); - } - - /** - * Exclude object from result - * - * @param CcShowRebroadcast $ccShowRebroadcast Object to remove from the list of results - * - * @return CcShowRebroadcastQuery The current query, for fluid interface - */ - public function prune($ccShowRebroadcast = null) - { - if ($ccShowRebroadcast) { - $this->addUsingAlias(CcShowRebroadcastPeer::ID, $ccShowRebroadcast->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcShowRebroadcastQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcSmemb.php b/airtime_mvc/application/models/airtime/om/BaseCcSmemb.php index 7fc4dbc9b0..9d1270fa8d 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcSmemb.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcSmemb.php @@ -4,888 +4,1018 @@ /** * Base class that represents a row from the 'cc_smemb' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcSmemb extends BaseObject implements Persistent +abstract class BaseCcSmemb extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcSmembPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcSmembPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the uid field. - * Note: this column has a database default value of: 0 - * @var int - */ - protected $uid; - - /** - * The value for the gid field. - * Note: this column has a database default value of: 0 - * @var int - */ - protected $gid; - - /** - * The value for the level field. - * Note: this column has a database default value of: 0 - * @var int - */ - protected $level; - - /** - * The value for the mid field. - * @var int - */ - protected $mid; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - 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->uid = 0; - $this->gid = 0; - $this->level = 0; - } - - /** - * Initializes internal state of BaseCcSmemb object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [id] column value. - * - * @return int - */ - public function getId() - { - return $this->id; - } - - /** - * Get the [uid] column value. - * - * @return int - */ - public function getUid() - { - return $this->uid; - } - - /** - * Get the [gid] column value. - * - * @return int - */ - public function getGid() - { - return $this->gid; - } - - /** - * Get the [level] column value. - * - * @return int - */ - public function getLevel() - { - return $this->level; - } - - /** - * Get the [mid] column value. - * - * @return int - */ - public function getMid() - { - return $this->mid; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcSmemb The current object (for fluent API support) - */ - public function setId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcSmembPeer::ID; - } - - return $this; - } // setId() - - /** - * Set the value of [uid] column. - * - * @param int $v new value - * @return CcSmemb The current object (for fluent API support) - */ - public function setUid($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->uid !== $v || $this->isNew()) { - $this->uid = $v; - $this->modifiedColumns[] = CcSmembPeer::UID; - } - - return $this; - } // setUid() - - /** - * Set the value of [gid] column. - * - * @param int $v new value - * @return CcSmemb The current object (for fluent API support) - */ - public function setGid($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->gid !== $v || $this->isNew()) { - $this->gid = $v; - $this->modifiedColumns[] = CcSmembPeer::GID; - } - - return $this; - } // setGid() - - /** - * Set the value of [level] column. - * - * @param int $v new value - * @return CcSmemb The current object (for fluent API support) - */ - public function setLevel($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->level !== $v || $this->isNew()) { - $this->level = $v; - $this->modifiedColumns[] = CcSmembPeer::LEVEL; - } - - return $this; - } // setLevel() - - /** - * Set the value of [mid] column. - * - * @param int $v new value - * @return CcSmemb The current object (for fluent API support) - */ - public function setMid($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->mid !== $v) { - $this->mid = $v; - $this->modifiedColumns[] = CcSmembPeer::MID; - } - - return $this; - } // setMid() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->uid !== 0) { - return false; - } - - if ($this->gid !== 0) { - return false; - } - - if ($this->level !== 0) { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->uid = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; - $this->gid = ($row[$startcol + 2] !== null) ? (int) $row[$startcol + 2] : null; - $this->level = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; - $this->mid = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 5; // 5 = CcSmembPeer::NUM_COLUMNS - CcSmembPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcSmemb object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcSmembPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcSmembQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcSmembPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows = 1; - $this->setNew(false); - } else { - $affectedRows = CcSmembPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - if (($retval = CcSmembPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcSmembPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getId(); - break; - case 1: - return $this->getUid(); - break; - case 2: - return $this->getGid(); - break; - case 3: - return $this->getLevel(); - break; - case 4: - return $this->getMid(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) - { - $keys = CcSmembPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getId(), - $keys[1] => $this->getUid(), - $keys[2] => $this->getGid(), - $keys[3] => $this->getLevel(), - $keys[4] => $this->getMid(), - ); - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcSmembPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setId($value); - break; - case 1: - $this->setUid($value); - break; - case 2: - $this->setGid($value); - break; - case 3: - $this->setLevel($value); - break; - case 4: - $this->setMid($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcSmembPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setUid($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setGid($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setLevel($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setMid($arr[$keys[4]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcSmembPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcSmembPeer::ID)) $criteria->add(CcSmembPeer::ID, $this->id); - if ($this->isColumnModified(CcSmembPeer::UID)) $criteria->add(CcSmembPeer::UID, $this->uid); - if ($this->isColumnModified(CcSmembPeer::GID)) $criteria->add(CcSmembPeer::GID, $this->gid); - if ($this->isColumnModified(CcSmembPeer::LEVEL)) $criteria->add(CcSmembPeer::LEVEL, $this->level); - if ($this->isColumnModified(CcSmembPeer::MID)) $criteria->add(CcSmembPeer::MID, $this->mid); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcSmembPeer::DATABASE_NAME); - $criteria->add(CcSmembPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcSmemb (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setId($this->id); - $copyObj->setUid($this->uid); - $copyObj->setGid($this->gid); - $copyObj->setLevel($this->level); - $copyObj->setMid($this->mid); - - $copyObj->setNew(true); - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcSmemb Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcSmembPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcSmembPeer(); - } - return self::$peer; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->uid = null; - $this->gid = null; - $this->level = null; - $this->mid = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcSmemb + /** + * Peer class name + */ + const PEER = 'CcSmembPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcSmembPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the uid field. + * Note: this column has a database default value of: 0 + * @var int + */ + protected $uid; + + /** + * The value for the gid field. + * Note: this column has a database default value of: 0 + * @var int + */ + protected $gid; + + /** + * The value for the level field. + * Note: this column has a database default value of: 0 + * @var int + */ + protected $level; + + /** + * The value for the mid field. + * @var int + */ + protected $mid; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = 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->uid = 0; + $this->gid = 0; + $this->level = 0; + } + + /** + * Initializes internal state of BaseCcSmemb object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getId() + { + + return $this->id; + } + + /** + * Get the [uid] column value. + * + * @return int + */ + public function getUid() + { + + return $this->uid; + } + + /** + * Get the [gid] column value. + * + * @return int + */ + public function getGid() + { + + return $this->gid; + } + + /** + * Get the [level] column value. + * + * @return int + */ + public function getLevel() + { + + return $this->level; + } + + /** + * Get the [mid] column value. + * + * @return int + */ + public function getMid() + { + + return $this->mid; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcSmemb The current object (for fluent API support) + */ + public function setId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcSmembPeer::ID; + } + + + return $this; + } // setId() + + /** + * Set the value of [uid] column. + * + * @param int $v new value + * @return CcSmemb The current object (for fluent API support) + */ + public function setUid($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->uid !== $v) { + $this->uid = $v; + $this->modifiedColumns[] = CcSmembPeer::UID; + } + + + return $this; + } // setUid() + + /** + * Set the value of [gid] column. + * + * @param int $v new value + * @return CcSmemb The current object (for fluent API support) + */ + public function setGid($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->gid !== $v) { + $this->gid = $v; + $this->modifiedColumns[] = CcSmembPeer::GID; + } + + + return $this; + } // setGid() + + /** + * Set the value of [level] column. + * + * @param int $v new value + * @return CcSmemb The current object (for fluent API support) + */ + public function setLevel($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->level !== $v) { + $this->level = $v; + $this->modifiedColumns[] = CcSmembPeer::LEVEL; + } + + + return $this; + } // setLevel() + + /** + * Set the value of [mid] column. + * + * @param int $v new value + * @return CcSmemb The current object (for fluent API support) + */ + public function setMid($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->mid !== $v) { + $this->mid = $v; + $this->modifiedColumns[] = CcSmembPeer::MID; + } + + + return $this; + } // setMid() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->uid !== 0) { + return false; + } + + if ($this->gid !== 0) { + return false; + } + + if ($this->level !== 0) { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->uid = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; + $this->gid = ($row[$startcol + 2] !== null) ? (int) $row[$startcol + 2] : null; + $this->level = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; + $this->mid = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 5; // 5 = CcSmembPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcSmemb object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcSmembPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcSmembQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcSmembPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcSmembPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcSmembPeer::UID)) { + $modifiedColumns[':p' . $index++] = '"uid"'; + } + if ($this->isColumnModified(CcSmembPeer::GID)) { + $modifiedColumns[':p' . $index++] = '"gid"'; + } + if ($this->isColumnModified(CcSmembPeer::LEVEL)) { + $modifiedColumns[':p' . $index++] = '"level"'; + } + if ($this->isColumnModified(CcSmembPeer::MID)) { + $modifiedColumns[':p' . $index++] = '"mid"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_smemb" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"uid"': + $stmt->bindValue($identifier, $this->uid, PDO::PARAM_INT); + break; + case '"gid"': + $stmt->bindValue($identifier, $this->gid, PDO::PARAM_INT); + break; + case '"level"': + $stmt->bindValue($identifier, $this->level, PDO::PARAM_INT); + break; + case '"mid"': + $stmt->bindValue($identifier, $this->mid, PDO::PARAM_INT); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + if (($retval = CcSmembPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcSmembPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getId(); + break; + case 1: + return $this->getUid(); + break; + case 2: + return $this->getGid(); + break; + case 3: + return $this->getLevel(); + break; + case 4: + return $this->getMid(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array()) + { + if (isset($alreadyDumpedObjects['CcSmemb'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcSmemb'][$this->getPrimaryKey()] = true; + $keys = CcSmembPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getId(), + $keys[1] => $this->getUid(), + $keys[2] => $this->getGid(), + $keys[3] => $this->getLevel(), + $keys[4] => $this->getMid(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcSmembPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setId($value); + break; + case 1: + $this->setUid($value); + break; + case 2: + $this->setGid($value); + break; + case 3: + $this->setLevel($value); + break; + case 4: + $this->setMid($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcSmembPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setUid($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setGid($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setLevel($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setMid($arr[$keys[4]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcSmembPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcSmembPeer::ID)) $criteria->add(CcSmembPeer::ID, $this->id); + if ($this->isColumnModified(CcSmembPeer::UID)) $criteria->add(CcSmembPeer::UID, $this->uid); + if ($this->isColumnModified(CcSmembPeer::GID)) $criteria->add(CcSmembPeer::GID, $this->gid); + if ($this->isColumnModified(CcSmembPeer::LEVEL)) $criteria->add(CcSmembPeer::LEVEL, $this->level); + if ($this->isColumnModified(CcSmembPeer::MID)) $criteria->add(CcSmembPeer::MID, $this->mid); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcSmembPeer::DATABASE_NAME); + $criteria->add(CcSmembPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcSmemb (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setUid($this->getUid()); + $copyObj->setGid($this->getGid()); + $copyObj->setLevel($this->getLevel()); + $copyObj->setMid($this->getMid()); + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcSmemb Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcSmembPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcSmembPeer(); + } + + return self::$peer; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->uid = null; + $this->gid = null; + $this->level = null; + $this->mid = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcSmembPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcSmembPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcSmembPeer.php index 849c134233..4d9bb8f547 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcSmembPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcSmembPeer.php @@ -4,743 +4,765 @@ /** * Base static class for performing query and update operations on the 'cc_smemb' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcSmembPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_smemb'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcSmemb'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcSmemb'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcSmembTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 5; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_smemb.ID'; - - /** the column name for the UID field */ - const UID = 'cc_smemb.UID'; - - /** the column name for the GID field */ - const GID = 'cc_smemb.GID'; - - /** the column name for the LEVEL field */ - const LEVEL = 'cc_smemb.LEVEL'; - - /** the column name for the MID field */ - const MID = 'cc_smemb.MID'; - - /** - * An identiy map to hold any loaded instances of CcSmemb objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcSmemb[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('Id', 'Uid', 'Gid', 'Level', 'Mid', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'uid', 'gid', 'level', 'mid', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::UID, self::GID, self::LEVEL, self::MID, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'UID', 'GID', 'LEVEL', 'MID', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'uid', 'gid', 'level', 'mid', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Uid' => 1, 'Gid' => 2, 'Level' => 3, 'Mid' => 4, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'uid' => 1, 'gid' => 2, 'level' => 3, 'mid' => 4, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::UID => 1, self::GID => 2, self::LEVEL => 3, self::MID => 4, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'UID' => 1, 'GID' => 2, 'LEVEL' => 3, 'MID' => 4, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'uid' => 1, 'gid' => 2, 'level' => 3, 'mid' => 4, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcSmembPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcSmembPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcSmembPeer::ID); - $criteria->addSelectColumn(CcSmembPeer::UID); - $criteria->addSelectColumn(CcSmembPeer::GID); - $criteria->addSelectColumn(CcSmembPeer::LEVEL); - $criteria->addSelectColumn(CcSmembPeer::MID); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.UID'); - $criteria->addSelectColumn($alias . '.GID'); - $criteria->addSelectColumn($alias . '.LEVEL'); - $criteria->addSelectColumn($alias . '.MID'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSmembPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSmembPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcSmemb - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcSmembPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcSmembPeer::populateObjects(CcSmembPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcSmembPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcSmemb $value A CcSmemb object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcSmemb $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcSmemb object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcSmemb) { - $key = (string) $value->getId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcSmemb object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcSmemb Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_smemb - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcSmembPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcSmembPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcSmembPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcSmembPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcSmemb object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcSmembPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcSmembPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcSmembPeer::NUM_COLUMNS; - } else { - $cls = CcSmembPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcSmembPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcSmembPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcSmembPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcSmembTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcSmembPeer::CLASS_DEFAULT : CcSmembPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcSmemb or Criteria object. - * - * @param mixed $values Criteria or CcSmemb object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcSmemb object - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcSmemb or Criteria object. - * - * @param mixed $values Criteria or CcSmemb object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcSmembPeer::ID); - $value = $criteria->remove(CcSmembPeer::ID); - if ($value) { - $selectCriteria->add(CcSmembPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcSmembPeer::TABLE_NAME); - } - - } else { // $values is CcSmemb object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_smemb table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcSmembPeer::TABLE_NAME, $con, CcSmembPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcSmembPeer::clearInstancePool(); - CcSmembPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcSmemb or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcSmemb object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcSmembPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcSmemb) { // it's a model object - // invalidate the cache for this single object - CcSmembPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcSmembPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcSmembPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcSmembPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcSmemb object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcSmemb $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcSmemb $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcSmembPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcSmembPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcSmembPeer::DATABASE_NAME, CcSmembPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcSmemb - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcSmembPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcSmembPeer::DATABASE_NAME); - $criteria->add(CcSmembPeer::ID, $pk); - - $v = CcSmembPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcSmembPeer::DATABASE_NAME); - $criteria->add(CcSmembPeer::ID, $pks, Criteria::IN); - $objs = CcSmembPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcSmembPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_smemb'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcSmemb'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcSmembTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 5; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 5; + + /** the column name for the id field */ + const ID = 'cc_smemb.id'; + + /** the column name for the uid field */ + const UID = 'cc_smemb.uid'; + + /** the column name for the gid field */ + const GID = 'cc_smemb.gid'; + + /** the column name for the level field */ + const LEVEL = 'cc_smemb.level'; + + /** the column name for the mid field */ + const MID = 'cc_smemb.mid'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcSmemb objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcSmemb[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcSmembPeer::$fieldNames[CcSmembPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('Id', 'Uid', 'Gid', 'Level', 'Mid', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'uid', 'gid', 'level', 'mid', ), + BasePeer::TYPE_COLNAME => array (CcSmembPeer::ID, CcSmembPeer::UID, CcSmembPeer::GID, CcSmembPeer::LEVEL, CcSmembPeer::MID, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'UID', 'GID', 'LEVEL', 'MID', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'uid', 'gid', 'level', 'mid', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcSmembPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Uid' => 1, 'Gid' => 2, 'Level' => 3, 'Mid' => 4, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'uid' => 1, 'gid' => 2, 'level' => 3, 'mid' => 4, ), + BasePeer::TYPE_COLNAME => array (CcSmembPeer::ID => 0, CcSmembPeer::UID => 1, CcSmembPeer::GID => 2, CcSmembPeer::LEVEL => 3, CcSmembPeer::MID => 4, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'UID' => 1, 'GID' => 2, 'LEVEL' => 3, 'MID' => 4, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'uid' => 1, 'gid' => 2, 'level' => 3, 'mid' => 4, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcSmembPeer::getFieldNames($toType); + $key = isset(CcSmembPeer::$fieldKeys[$fromType][$name]) ? CcSmembPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcSmembPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcSmembPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcSmembPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcSmembPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcSmembPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcSmembPeer::ID); + $criteria->addSelectColumn(CcSmembPeer::UID); + $criteria->addSelectColumn(CcSmembPeer::GID); + $criteria->addSelectColumn(CcSmembPeer::LEVEL); + $criteria->addSelectColumn(CcSmembPeer::MID); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.uid'); + $criteria->addSelectColumn($alias . '.gid'); + $criteria->addSelectColumn($alias . '.level'); + $criteria->addSelectColumn($alias . '.mid'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSmembPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSmembPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcSmembPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcSmemb + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcSmembPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcSmembPeer::populateObjects(CcSmembPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcSmembPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcSmembPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcSmemb $obj A CcSmemb object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getId(); + } // if key === null + CcSmembPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcSmemb object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcSmemb) { + $key = (string) $value->getId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcSmemb object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcSmembPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcSmemb Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcSmembPeer::$instances[$key])) { + return CcSmembPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcSmembPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcSmembPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_smemb + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcSmembPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcSmembPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcSmembPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcSmembPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcSmemb object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcSmembPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcSmembPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcSmembPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcSmembPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcSmembPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcSmembPeer::DATABASE_NAME)->getTable(CcSmembPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcSmembPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcSmembPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcSmembTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcSmembPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcSmemb or Criteria object. + * + * @param mixed $values Criteria or CcSmemb object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcSmemb object + } + + + // Set the correct dbName + $criteria->setDbName(CcSmembPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcSmemb or Criteria object. + * + * @param mixed $values Criteria or CcSmemb object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcSmembPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcSmembPeer::ID); + $value = $criteria->remove(CcSmembPeer::ID); + if ($value) { + $selectCriteria->add(CcSmembPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcSmembPeer::TABLE_NAME); + } + + } else { // $values is CcSmemb object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcSmembPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_smemb table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcSmembPeer::TABLE_NAME, $con, CcSmembPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcSmembPeer::clearInstancePool(); + CcSmembPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcSmemb or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcSmemb object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcSmembPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcSmemb) { // it's a model object + // invalidate the cache for this single object + CcSmembPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcSmembPeer::DATABASE_NAME); + $criteria->add(CcSmembPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcSmembPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcSmembPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcSmembPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcSmemb object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcSmemb $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcSmembPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcSmembPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcSmembPeer::DATABASE_NAME, CcSmembPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcSmemb + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcSmembPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcSmembPeer::DATABASE_NAME); + $criteria->add(CcSmembPeer::ID, $pk); + + $v = CcSmembPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcSmemb[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcSmembPeer::DATABASE_NAME); + $criteria->add(CcSmembPeer::ID, $pks, Criteria::IN); + $objs = CcSmembPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcSmembPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcSmembQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcSmembQuery.php index 06b24502c6..be7c914d05 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcSmembQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcSmembQuery.php @@ -4,302 +4,457 @@ /** * Base class that represents a query for the 'cc_smemb' table. * - * * - * @method CcSmembQuery orderById($order = Criteria::ASC) Order by the id column - * @method CcSmembQuery orderByUid($order = Criteria::ASC) Order by the uid column - * @method CcSmembQuery orderByGid($order = Criteria::ASC) Order by the gid column - * @method CcSmembQuery orderByLevel($order = Criteria::ASC) Order by the level column - * @method CcSmembQuery orderByMid($order = Criteria::ASC) Order by the mid column * - * @method CcSmembQuery groupById() Group by the id column - * @method CcSmembQuery groupByUid() Group by the uid column - * @method CcSmembQuery groupByGid() Group by the gid column - * @method CcSmembQuery groupByLevel() Group by the level column - * @method CcSmembQuery groupByMid() Group by the mid column + * @method CcSmembQuery orderById($order = Criteria::ASC) Order by the id column + * @method CcSmembQuery orderByUid($order = Criteria::ASC) Order by the uid column + * @method CcSmembQuery orderByGid($order = Criteria::ASC) Order by the gid column + * @method CcSmembQuery orderByLevel($order = Criteria::ASC) Order by the level column + * @method CcSmembQuery orderByMid($order = Criteria::ASC) Order by the mid column * - * @method CcSmembQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcSmembQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcSmembQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcSmembQuery groupById() Group by the id column + * @method CcSmembQuery groupByUid() Group by the uid column + * @method CcSmembQuery groupByGid() Group by the gid column + * @method CcSmembQuery groupByLevel() Group by the level column + * @method CcSmembQuery groupByMid() Group by the mid column * - * @method CcSmemb findOne(PropelPDO $con = null) Return the first CcSmemb matching the query - * @method CcSmemb findOneOrCreate(PropelPDO $con = null) Return the first CcSmemb matching the query, or a new CcSmemb object populated from the query conditions when no match is found + * @method CcSmembQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcSmembQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcSmembQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcSmemb findOneById(int $id) Return the first CcSmemb filtered by the id column - * @method CcSmemb findOneByUid(int $uid) Return the first CcSmemb filtered by the uid column - * @method CcSmemb findOneByGid(int $gid) Return the first CcSmemb filtered by the gid column - * @method CcSmemb findOneByLevel(int $level) Return the first CcSmemb filtered by the level column - * @method CcSmemb findOneByMid(int $mid) Return the first CcSmemb filtered by the mid column + * @method CcSmemb findOne(PropelPDO $con = null) Return the first CcSmemb matching the query + * @method CcSmemb findOneOrCreate(PropelPDO $con = null) Return the first CcSmemb matching the query, or a new CcSmemb object populated from the query conditions when no match is found * - * @method array findById(int $id) Return CcSmemb objects filtered by the id column - * @method array findByUid(int $uid) Return CcSmemb objects filtered by the uid column - * @method array findByGid(int $gid) Return CcSmemb objects filtered by the gid column - * @method array findByLevel(int $level) Return CcSmemb objects filtered by the level column - * @method array findByMid(int $mid) Return CcSmemb objects filtered by the mid column + * @method CcSmemb findOneByUid(int $uid) Return the first CcSmemb filtered by the uid column + * @method CcSmemb findOneByGid(int $gid) Return the first CcSmemb filtered by the gid column + * @method CcSmemb findOneByLevel(int $level) Return the first CcSmemb filtered by the level column + * @method CcSmemb findOneByMid(int $mid) Return the first CcSmemb filtered by the mid column + * + * @method array findById(int $id) Return CcSmemb objects filtered by the id column + * @method array findByUid(int $uid) Return CcSmemb objects filtered by the uid column + * @method array findByGid(int $gid) Return CcSmemb objects filtered by the gid column + * @method array findByLevel(int $level) Return CcSmemb objects filtered by the level column + * @method array findByMid(int $mid) Return CcSmemb objects filtered by the mid column * * @package propel.generator.airtime.om */ abstract class BaseCcSmembQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcSmembQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcSmemb'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcSmembQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcSmembQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcSmembQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcSmembQuery) { + return $criteria; + } + $query = new CcSmembQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcSmemb|CcSmemb[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcSmembPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcSmembPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSmemb A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneById($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSmemb A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "uid", "gid", "level", "mid" FROM "cc_smemb" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcSmemb(); + $obj->hydrate($row); + CcSmembPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSmemb|CcSmemb[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcSmemb[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcSmembQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcSmembPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcSmembQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcSmembPeer::ID, $keys, Criteria::IN); + } - /** - * Initializes internal state of BaseCcSmembQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcSmemb', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterById(1234); // WHERE id = 1234 + * $query->filterById(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterById(array('min' => 12)); // WHERE id >= 12 + * $query->filterById(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $id The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSmembQuery The current query, for fluid interface + */ + public function filterById($id = null, $comparison = null) + { + if (is_array($id)) { + $useMinMax = false; + if (isset($id['min'])) { + $this->addUsingAlias(CcSmembPeer::ID, $id['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($id['max'])) { + $this->addUsingAlias(CcSmembPeer::ID, $id['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } - /** - * Returns a new CcSmembQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcSmembQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcSmembQuery) { - return $criteria; - } - $query = new CcSmembQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } + return $this->addUsingAlias(CcSmembPeer::ID, $id, $comparison); + } - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcSmemb|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcSmembPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } + /** + * Filter the query on the uid column + * + * Example usage: + * + * $query->filterByUid(1234); // WHERE uid = 1234 + * $query->filterByUid(array(12, 34)); // WHERE uid IN (12, 34) + * $query->filterByUid(array('min' => 12)); // WHERE uid >= 12 + * $query->filterByUid(array('max' => 12)); // WHERE uid <= 12 + * + * + * @param mixed $uid The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSmembQuery The current query, for fluid interface + */ + public function filterByUid($uid = null, $comparison = null) + { + if (is_array($uid)) { + $useMinMax = false; + if (isset($uid['min'])) { + $this->addUsingAlias(CcSmembPeer::UID, $uid['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($uid['max'])) { + $this->addUsingAlias(CcSmembPeer::UID, $uid['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } + return $this->addUsingAlias(CcSmembPeer::UID, $uid, $comparison); + } - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcSmembQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcSmembPeer::ID, $key, Criteria::EQUAL); - } + /** + * Filter the query on the gid column + * + * Example usage: + * + * $query->filterByGid(1234); // WHERE gid = 1234 + * $query->filterByGid(array(12, 34)); // WHERE gid IN (12, 34) + * $query->filterByGid(array('min' => 12)); // WHERE gid >= 12 + * $query->filterByGid(array('max' => 12)); // WHERE gid <= 12 + * + * + * @param mixed $gid The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSmembQuery The current query, for fluid interface + */ + public function filterByGid($gid = null, $comparison = null) + { + if (is_array($gid)) { + $useMinMax = false; + if (isset($gid['min'])) { + $this->addUsingAlias(CcSmembPeer::GID, $gid['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($gid['max'])) { + $this->addUsingAlias(CcSmembPeer::GID, $gid['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcSmembQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcSmembPeer::ID, $keys, Criteria::IN); - } + return $this->addUsingAlias(CcSmembPeer::GID, $gid, $comparison); + } - /** - * Filter the query on the id column - * - * @param int|array $id The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSmembQuery The current query, for fluid interface - */ - public function filterById($id = null, $comparison = null) - { - if (is_array($id) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcSmembPeer::ID, $id, $comparison); - } + /** + * Filter the query on the level column + * + * Example usage: + * + * $query->filterByLevel(1234); // WHERE level = 1234 + * $query->filterByLevel(array(12, 34)); // WHERE level IN (12, 34) + * $query->filterByLevel(array('min' => 12)); // WHERE level >= 12 + * $query->filterByLevel(array('max' => 12)); // WHERE level <= 12 + * + * + * @param mixed $level The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSmembQuery The current query, for fluid interface + */ + public function filterByLevel($level = null, $comparison = null) + { + if (is_array($level)) { + $useMinMax = false; + if (isset($level['min'])) { + $this->addUsingAlias(CcSmembPeer::LEVEL, $level['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($level['max'])) { + $this->addUsingAlias(CcSmembPeer::LEVEL, $level['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } - /** - * Filter the query on the uid column - * - * @param int|array $uid The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSmembQuery The current query, for fluid interface - */ - public function filterByUid($uid = null, $comparison = null) - { - if (is_array($uid)) { - $useMinMax = false; - if (isset($uid['min'])) { - $this->addUsingAlias(CcSmembPeer::UID, $uid['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($uid['max'])) { - $this->addUsingAlias(CcSmembPeer::UID, $uid['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSmembPeer::UID, $uid, $comparison); - } + return $this->addUsingAlias(CcSmembPeer::LEVEL, $level, $comparison); + } - /** - * Filter the query on the gid column - * - * @param int|array $gid The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSmembQuery The current query, for fluid interface - */ - public function filterByGid($gid = null, $comparison = null) - { - if (is_array($gid)) { - $useMinMax = false; - if (isset($gid['min'])) { - $this->addUsingAlias(CcSmembPeer::GID, $gid['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($gid['max'])) { - $this->addUsingAlias(CcSmembPeer::GID, $gid['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSmembPeer::GID, $gid, $comparison); - } + /** + * Filter the query on the mid column + * + * Example usage: + * + * $query->filterByMid(1234); // WHERE mid = 1234 + * $query->filterByMid(array(12, 34)); // WHERE mid IN (12, 34) + * $query->filterByMid(array('min' => 12)); // WHERE mid >= 12 + * $query->filterByMid(array('max' => 12)); // WHERE mid <= 12 + * + * + * @param mixed $mid The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSmembQuery The current query, for fluid interface + */ + public function filterByMid($mid = null, $comparison = null) + { + if (is_array($mid)) { + $useMinMax = false; + if (isset($mid['min'])) { + $this->addUsingAlias(CcSmembPeer::MID, $mid['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($mid['max'])) { + $this->addUsingAlias(CcSmembPeer::MID, $mid['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } - /** - * Filter the query on the level column - * - * @param int|array $level The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSmembQuery The current query, for fluid interface - */ - public function filterByLevel($level = null, $comparison = null) - { - if (is_array($level)) { - $useMinMax = false; - if (isset($level['min'])) { - $this->addUsingAlias(CcSmembPeer::LEVEL, $level['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($level['max'])) { - $this->addUsingAlias(CcSmembPeer::LEVEL, $level['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSmembPeer::LEVEL, $level, $comparison); - } + return $this->addUsingAlias(CcSmembPeer::MID, $mid, $comparison); + } - /** - * Filter the query on the mid column - * - * @param int|array $mid The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSmembQuery The current query, for fluid interface - */ - public function filterByMid($mid = null, $comparison = null) - { - if (is_array($mid)) { - $useMinMax = false; - if (isset($mid['min'])) { - $this->addUsingAlias(CcSmembPeer::MID, $mid['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($mid['max'])) { - $this->addUsingAlias(CcSmembPeer::MID, $mid['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSmembPeer::MID, $mid, $comparison); - } + /** + * Exclude object from result + * + * @param CcSmemb $ccSmemb Object to remove from the list of results + * + * @return CcSmembQuery The current query, for fluid interface + */ + public function prune($ccSmemb = null) + { + if ($ccSmemb) { + $this->addUsingAlias(CcSmembPeer::ID, $ccSmemb->getId(), Criteria::NOT_EQUAL); + } - /** - * Exclude object from result - * - * @param CcSmemb $ccSmemb Object to remove from the list of results - * - * @return CcSmembQuery The current query, for fluid interface - */ - public function prune($ccSmemb = null) - { - if ($ccSmemb) { - $this->addUsingAlias(CcSmembPeer::ID, $ccSmemb->getId(), Criteria::NOT_EQUAL); - } - - return $this; - } + return $this; + } -} // BaseCcSmembQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcStreamSetting.php b/airtime_mvc/application/models/airtime/om/BaseCcStreamSetting.php index 6dadc9b674..f579be6a18 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcStreamSetting.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcStreamSetting.php @@ -4,753 +4,867 @@ /** * Base class that represents a row from the 'cc_stream_setting' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcStreamSetting extends BaseObject implements Persistent +abstract class BaseCcStreamSetting extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcStreamSettingPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcStreamSettingPeer - */ - protected static $peer; - - /** - * The value for the keyname field. - * @var string - */ - protected $keyname; - - /** - * The value for the value field. - * @var string - */ - protected $value; - - /** - * The value for the type field. - * @var string - */ - protected $type; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [keyname] column value. - * - * @return string - */ - public function getDbKeyName() - { - return $this->keyname; - } - - /** - * Get the [value] column value. - * - * @return string - */ - public function getDbValue() - { - return $this->value; - } - - /** - * Get the [type] column value. - * - * @return string - */ - public function getDbType() - { - return $this->type; - } - - /** - * Set the value of [keyname] column. - * - * @param string $v new value - * @return CcStreamSetting The current object (for fluent API support) - */ - public function setDbKeyName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->keyname !== $v) { - $this->keyname = $v; - $this->modifiedColumns[] = CcStreamSettingPeer::KEYNAME; - } - - return $this; - } // setDbKeyName() - - /** - * Set the value of [value] column. - * - * @param string $v new value - * @return CcStreamSetting The current object (for fluent API support) - */ - public function setDbValue($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->value !== $v) { - $this->value = $v; - $this->modifiedColumns[] = CcStreamSettingPeer::VALUE; - } - - return $this; - } // setDbValue() - - /** - * Set the value of [type] column. - * - * @param string $v new value - * @return CcStreamSetting The current object (for fluent API support) - */ - public function setDbType($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->type !== $v) { - $this->type = $v; - $this->modifiedColumns[] = CcStreamSettingPeer::TYPE; - } - - return $this; - } // setDbType() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->keyname = ($row[$startcol + 0] !== null) ? (string) $row[$startcol + 0] : null; - $this->value = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->type = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 3; // 3 = CcStreamSettingPeer::NUM_COLUMNS - CcStreamSettingPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcStreamSetting object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcStreamSettingPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcStreamSettingQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcStreamSettingPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows = 1; - $this->setNew(false); - } else { - $affectedRows = CcStreamSettingPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - if (($retval = CcStreamSettingPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcStreamSettingPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbKeyName(); - break; - case 1: - return $this->getDbValue(); - break; - case 2: - return $this->getDbType(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) - { - $keys = CcStreamSettingPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbKeyName(), - $keys[1] => $this->getDbValue(), - $keys[2] => $this->getDbType(), - ); - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcStreamSettingPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbKeyName($value); - break; - case 1: - $this->setDbValue($value); - break; - case 2: - $this->setDbType($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcStreamSettingPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbKeyName($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbValue($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbType($arr[$keys[2]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcStreamSettingPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcStreamSettingPeer::KEYNAME)) $criteria->add(CcStreamSettingPeer::KEYNAME, $this->keyname); - if ($this->isColumnModified(CcStreamSettingPeer::VALUE)) $criteria->add(CcStreamSettingPeer::VALUE, $this->value); - if ($this->isColumnModified(CcStreamSettingPeer::TYPE)) $criteria->add(CcStreamSettingPeer::TYPE, $this->type); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcStreamSettingPeer::DATABASE_NAME); - $criteria->add(CcStreamSettingPeer::KEYNAME, $this->keyname); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return string - */ - public function getPrimaryKey() - { - return $this->getDbKeyName(); - } - - /** - * Generic method to set the primary key (keyname column). - * - * @param string $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbKeyName($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbKeyName(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcStreamSetting (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbKeyName($this->keyname); - $copyObj->setDbValue($this->value); - $copyObj->setDbType($this->type); - - $copyObj->setNew(true); - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcStreamSetting Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcStreamSettingPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcStreamSettingPeer(); - } - return self::$peer; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->keyname = null; - $this->value = null; - $this->type = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcStreamSetting + /** + * Peer class name + */ + const PEER = 'CcStreamSettingPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcStreamSettingPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the keyname field. + * @var string + */ + protected $keyname; + + /** + * The value for the value field. + * @var string + */ + protected $value; + + /** + * The value for the type field. + * @var string + */ + protected $type; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [keyname] column value. + * + * @return string + */ + public function getDbKeyName() + { + + return $this->keyname; + } + + /** + * Get the [value] column value. + * + * @return string + */ + public function getDbValue() + { + + return $this->value; + } + + /** + * Get the [type] column value. + * + * @return string + */ + public function getDbType() + { + + return $this->type; + } + + /** + * Set the value of [keyname] column. + * + * @param string $v new value + * @return CcStreamSetting The current object (for fluent API support) + */ + public function setDbKeyName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->keyname !== $v) { + $this->keyname = $v; + $this->modifiedColumns[] = CcStreamSettingPeer::KEYNAME; + } + + + return $this; + } // setDbKeyName() + + /** + * Set the value of [value] column. + * + * @param string $v new value + * @return CcStreamSetting The current object (for fluent API support) + */ + public function setDbValue($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->value !== $v) { + $this->value = $v; + $this->modifiedColumns[] = CcStreamSettingPeer::VALUE; + } + + + return $this; + } // setDbValue() + + /** + * Set the value of [type] column. + * + * @param string $v new value + * @return CcStreamSetting The current object (for fluent API support) + */ + public function setDbType($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->type !== $v) { + $this->type = $v; + $this->modifiedColumns[] = CcStreamSettingPeer::TYPE; + } + + + return $this; + } // setDbType() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->keyname = ($row[$startcol + 0] !== null) ? (string) $row[$startcol + 0] : null; + $this->value = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->type = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 3; // 3 = CcStreamSettingPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcStreamSetting object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcStreamSettingPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcStreamSettingQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcStreamSettingPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcStreamSettingPeer::KEYNAME)) { + $modifiedColumns[':p' . $index++] = '"keyname"'; + } + if ($this->isColumnModified(CcStreamSettingPeer::VALUE)) { + $modifiedColumns[':p' . $index++] = '"value"'; + } + if ($this->isColumnModified(CcStreamSettingPeer::TYPE)) { + $modifiedColumns[':p' . $index++] = '"type"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_stream_setting" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"keyname"': + $stmt->bindValue($identifier, $this->keyname, PDO::PARAM_STR); + break; + case '"value"': + $stmt->bindValue($identifier, $this->value, PDO::PARAM_STR); + break; + case '"type"': + $stmt->bindValue($identifier, $this->type, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + if (($retval = CcStreamSettingPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcStreamSettingPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbKeyName(); + break; + case 1: + return $this->getDbValue(); + break; + case 2: + return $this->getDbType(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array()) + { + if (isset($alreadyDumpedObjects['CcStreamSetting'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcStreamSetting'][$this->getPrimaryKey()] = true; + $keys = CcStreamSettingPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbKeyName(), + $keys[1] => $this->getDbValue(), + $keys[2] => $this->getDbType(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcStreamSettingPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbKeyName($value); + break; + case 1: + $this->setDbValue($value); + break; + case 2: + $this->setDbType($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcStreamSettingPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbKeyName($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbValue($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbType($arr[$keys[2]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcStreamSettingPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcStreamSettingPeer::KEYNAME)) $criteria->add(CcStreamSettingPeer::KEYNAME, $this->keyname); + if ($this->isColumnModified(CcStreamSettingPeer::VALUE)) $criteria->add(CcStreamSettingPeer::VALUE, $this->value); + if ($this->isColumnModified(CcStreamSettingPeer::TYPE)) $criteria->add(CcStreamSettingPeer::TYPE, $this->type); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcStreamSettingPeer::DATABASE_NAME); + $criteria->add(CcStreamSettingPeer::KEYNAME, $this->keyname); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return string + */ + public function getPrimaryKey() + { + return $this->getDbKeyName(); + } + + /** + * Generic method to set the primary key (keyname column). + * + * @param string $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbKeyName($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbKeyName(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcStreamSetting (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbValue($this->getDbValue()); + $copyObj->setDbType($this->getDbType()); + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbKeyName(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcStreamSetting Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcStreamSettingPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcStreamSettingPeer(); + } + + return self::$peer; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->keyname = null; + $this->value = null; + $this->type = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcStreamSettingPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcStreamSettingPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcStreamSettingPeer.php index f5e680b203..5fa81eaf33 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcStreamSettingPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcStreamSettingPeer.php @@ -4,733 +4,755 @@ /** * Base static class for performing query and update operations on the 'cc_stream_setting' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcStreamSettingPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_stream_setting'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcStreamSetting'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcStreamSetting'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcStreamSettingTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 3; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the KEYNAME field */ - const KEYNAME = 'cc_stream_setting.KEYNAME'; - - /** the column name for the VALUE field */ - const VALUE = 'cc_stream_setting.VALUE'; - - /** the column name for the TYPE field */ - const TYPE = 'cc_stream_setting.TYPE'; - - /** - * An identiy map to hold any loaded instances of CcStreamSetting objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcStreamSetting[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbKeyName', 'DbValue', 'DbType', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbKeyName', 'dbValue', 'dbType', ), - BasePeer::TYPE_COLNAME => array (self::KEYNAME, self::VALUE, self::TYPE, ), - BasePeer::TYPE_RAW_COLNAME => array ('KEYNAME', 'VALUE', 'TYPE', ), - BasePeer::TYPE_FIELDNAME => array ('keyname', 'value', 'type', ), - BasePeer::TYPE_NUM => array (0, 1, 2, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbKeyName' => 0, 'DbValue' => 1, 'DbType' => 2, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbKeyName' => 0, 'dbValue' => 1, 'dbType' => 2, ), - BasePeer::TYPE_COLNAME => array (self::KEYNAME => 0, self::VALUE => 1, self::TYPE => 2, ), - BasePeer::TYPE_RAW_COLNAME => array ('KEYNAME' => 0, 'VALUE' => 1, 'TYPE' => 2, ), - BasePeer::TYPE_FIELDNAME => array ('keyname' => 0, 'value' => 1, 'type' => 2, ), - BasePeer::TYPE_NUM => array (0, 1, 2, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcStreamSettingPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcStreamSettingPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcStreamSettingPeer::KEYNAME); - $criteria->addSelectColumn(CcStreamSettingPeer::VALUE); - $criteria->addSelectColumn(CcStreamSettingPeer::TYPE); - } else { - $criteria->addSelectColumn($alias . '.KEYNAME'); - $criteria->addSelectColumn($alias . '.VALUE'); - $criteria->addSelectColumn($alias . '.TYPE'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcStreamSettingPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcStreamSettingPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcStreamSetting - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcStreamSettingPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcStreamSettingPeer::populateObjects(CcStreamSettingPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcStreamSettingPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcStreamSetting $value A CcStreamSetting object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcStreamSetting $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbKeyName(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcStreamSetting object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcStreamSetting) { - $key = (string) $value->getDbKeyName(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcStreamSetting object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcStreamSetting Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_stream_setting - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (string) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcStreamSettingPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcStreamSettingPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcStreamSettingPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcStreamSettingPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcStreamSetting object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcStreamSettingPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcStreamSettingPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcStreamSettingPeer::NUM_COLUMNS; - } else { - $cls = CcStreamSettingPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcStreamSettingPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcStreamSettingPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcStreamSettingPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcStreamSettingTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcStreamSettingPeer::CLASS_DEFAULT : CcStreamSettingPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcStreamSetting or Criteria object. - * - * @param mixed $values Criteria or CcStreamSetting object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcStreamSetting object - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcStreamSetting or Criteria object. - * - * @param mixed $values Criteria or CcStreamSetting object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcStreamSettingPeer::KEYNAME); - $value = $criteria->remove(CcStreamSettingPeer::KEYNAME); - if ($value) { - $selectCriteria->add(CcStreamSettingPeer::KEYNAME, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcStreamSettingPeer::TABLE_NAME); - } - - } else { // $values is CcStreamSetting object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_stream_setting table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcStreamSettingPeer::TABLE_NAME, $con, CcStreamSettingPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcStreamSettingPeer::clearInstancePool(); - CcStreamSettingPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcStreamSetting or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcStreamSetting object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcStreamSettingPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcStreamSetting) { // it's a model object - // invalidate the cache for this single object - CcStreamSettingPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcStreamSettingPeer::KEYNAME, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcStreamSettingPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcStreamSettingPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcStreamSetting object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcStreamSetting $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcStreamSetting $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcStreamSettingPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcStreamSettingPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcStreamSettingPeer::DATABASE_NAME, CcStreamSettingPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param string $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcStreamSetting - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcStreamSettingPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcStreamSettingPeer::DATABASE_NAME); - $criteria->add(CcStreamSettingPeer::KEYNAME, $pk); - - $v = CcStreamSettingPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcStreamSettingPeer::DATABASE_NAME); - $criteria->add(CcStreamSettingPeer::KEYNAME, $pks, Criteria::IN); - $objs = CcStreamSettingPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcStreamSettingPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_stream_setting'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcStreamSetting'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcStreamSettingTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 3; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 3; + + /** the column name for the keyname field */ + const KEYNAME = 'cc_stream_setting.keyname'; + + /** the column name for the value field */ + const VALUE = 'cc_stream_setting.value'; + + /** the column name for the type field */ + const TYPE = 'cc_stream_setting.type'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcStreamSetting objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcStreamSetting[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcStreamSettingPeer::$fieldNames[CcStreamSettingPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbKeyName', 'DbValue', 'DbType', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbKeyName', 'dbValue', 'dbType', ), + BasePeer::TYPE_COLNAME => array (CcStreamSettingPeer::KEYNAME, CcStreamSettingPeer::VALUE, CcStreamSettingPeer::TYPE, ), + BasePeer::TYPE_RAW_COLNAME => array ('KEYNAME', 'VALUE', 'TYPE', ), + BasePeer::TYPE_FIELDNAME => array ('keyname', 'value', 'type', ), + BasePeer::TYPE_NUM => array (0, 1, 2, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcStreamSettingPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbKeyName' => 0, 'DbValue' => 1, 'DbType' => 2, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbKeyName' => 0, 'dbValue' => 1, 'dbType' => 2, ), + BasePeer::TYPE_COLNAME => array (CcStreamSettingPeer::KEYNAME => 0, CcStreamSettingPeer::VALUE => 1, CcStreamSettingPeer::TYPE => 2, ), + BasePeer::TYPE_RAW_COLNAME => array ('KEYNAME' => 0, 'VALUE' => 1, 'TYPE' => 2, ), + BasePeer::TYPE_FIELDNAME => array ('keyname' => 0, 'value' => 1, 'type' => 2, ), + BasePeer::TYPE_NUM => array (0, 1, 2, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcStreamSettingPeer::getFieldNames($toType); + $key = isset(CcStreamSettingPeer::$fieldKeys[$fromType][$name]) ? CcStreamSettingPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcStreamSettingPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcStreamSettingPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcStreamSettingPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcStreamSettingPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcStreamSettingPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcStreamSettingPeer::KEYNAME); + $criteria->addSelectColumn(CcStreamSettingPeer::VALUE); + $criteria->addSelectColumn(CcStreamSettingPeer::TYPE); + } else { + $criteria->addSelectColumn($alias . '.keyname'); + $criteria->addSelectColumn($alias . '.value'); + $criteria->addSelectColumn($alias . '.type'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcStreamSettingPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcStreamSettingPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcStreamSettingPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcStreamSetting + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcStreamSettingPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcStreamSettingPeer::populateObjects(CcStreamSettingPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcStreamSettingPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcStreamSettingPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcStreamSetting $obj A CcStreamSetting object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbKeyName(); + } // if key === null + CcStreamSettingPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcStreamSetting object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcStreamSetting) { + $key = (string) $value->getDbKeyName(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcStreamSetting object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcStreamSettingPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcStreamSetting Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcStreamSettingPeer::$instances[$key])) { + return CcStreamSettingPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcStreamSettingPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcStreamSettingPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_stream_setting + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (string) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcStreamSettingPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcStreamSettingPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcStreamSettingPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcStreamSettingPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcStreamSetting object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcStreamSettingPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcStreamSettingPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcStreamSettingPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcStreamSettingPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcStreamSettingPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcStreamSettingPeer::DATABASE_NAME)->getTable(CcStreamSettingPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcStreamSettingPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcStreamSettingPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcStreamSettingTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcStreamSettingPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcStreamSetting or Criteria object. + * + * @param mixed $values Criteria or CcStreamSetting object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcStreamSetting object + } + + + // Set the correct dbName + $criteria->setDbName(CcStreamSettingPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcStreamSetting or Criteria object. + * + * @param mixed $values Criteria or CcStreamSetting object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcStreamSettingPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcStreamSettingPeer::KEYNAME); + $value = $criteria->remove(CcStreamSettingPeer::KEYNAME); + if ($value) { + $selectCriteria->add(CcStreamSettingPeer::KEYNAME, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcStreamSettingPeer::TABLE_NAME); + } + + } else { // $values is CcStreamSetting object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcStreamSettingPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_stream_setting table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcStreamSettingPeer::TABLE_NAME, $con, CcStreamSettingPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcStreamSettingPeer::clearInstancePool(); + CcStreamSettingPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcStreamSetting or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcStreamSetting object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcStreamSettingPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcStreamSetting) { // it's a model object + // invalidate the cache for this single object + CcStreamSettingPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcStreamSettingPeer::DATABASE_NAME); + $criteria->add(CcStreamSettingPeer::KEYNAME, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcStreamSettingPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcStreamSettingPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcStreamSettingPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcStreamSetting object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcStreamSetting $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcStreamSettingPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcStreamSettingPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcStreamSettingPeer::DATABASE_NAME, CcStreamSettingPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param string $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcStreamSetting + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcStreamSettingPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcStreamSettingPeer::DATABASE_NAME); + $criteria->add(CcStreamSettingPeer::KEYNAME, $pk); + + $v = CcStreamSettingPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcStreamSetting[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcStreamSettingPeer::DATABASE_NAME); + $criteria->add(CcStreamSettingPeer::KEYNAME, $pks, Criteria::IN); + $objs = CcStreamSettingPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcStreamSettingPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcStreamSettingQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcStreamSettingQuery.php index 666106d6fc..ee5b92f336 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcStreamSettingQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcStreamSettingQuery.php @@ -4,219 +4,326 @@ /** * Base class that represents a query for the 'cc_stream_setting' table. * - * * - * @method CcStreamSettingQuery orderByDbKeyName($order = Criteria::ASC) Order by the keyname column - * @method CcStreamSettingQuery orderByDbValue($order = Criteria::ASC) Order by the value column - * @method CcStreamSettingQuery orderByDbType($order = Criteria::ASC) Order by the type column * - * @method CcStreamSettingQuery groupByDbKeyName() Group by the keyname column - * @method CcStreamSettingQuery groupByDbValue() Group by the value column - * @method CcStreamSettingQuery groupByDbType() Group by the type column + * @method CcStreamSettingQuery orderByDbKeyName($order = Criteria::ASC) Order by the keyname column + * @method CcStreamSettingQuery orderByDbValue($order = Criteria::ASC) Order by the value column + * @method CcStreamSettingQuery orderByDbType($order = Criteria::ASC) Order by the type column * - * @method CcStreamSettingQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcStreamSettingQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcStreamSettingQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcStreamSettingQuery groupByDbKeyName() Group by the keyname column + * @method CcStreamSettingQuery groupByDbValue() Group by the value column + * @method CcStreamSettingQuery groupByDbType() Group by the type column * - * @method CcStreamSetting findOne(PropelPDO $con = null) Return the first CcStreamSetting matching the query - * @method CcStreamSetting findOneOrCreate(PropelPDO $con = null) Return the first CcStreamSetting matching the query, or a new CcStreamSetting object populated from the query conditions when no match is found + * @method CcStreamSettingQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcStreamSettingQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcStreamSettingQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcStreamSetting findOneByDbKeyName(string $keyname) Return the first CcStreamSetting filtered by the keyname column - * @method CcStreamSetting findOneByDbValue(string $value) Return the first CcStreamSetting filtered by the value column - * @method CcStreamSetting findOneByDbType(string $type) Return the first CcStreamSetting filtered by the type column + * @method CcStreamSetting findOne(PropelPDO $con = null) Return the first CcStreamSetting matching the query + * @method CcStreamSetting findOneOrCreate(PropelPDO $con = null) Return the first CcStreamSetting matching the query, or a new CcStreamSetting object populated from the query conditions when no match is found * - * @method array findByDbKeyName(string $keyname) Return CcStreamSetting objects filtered by the keyname column - * @method array findByDbValue(string $value) Return CcStreamSetting objects filtered by the value column - * @method array findByDbType(string $type) Return CcStreamSetting objects filtered by the type column + * @method CcStreamSetting findOneByDbValue(string $value) Return the first CcStreamSetting filtered by the value column + * @method CcStreamSetting findOneByDbType(string $type) Return the first CcStreamSetting filtered by the type column + * + * @method array findByDbKeyName(string $keyname) Return CcStreamSetting objects filtered by the keyname column + * @method array findByDbValue(string $value) Return CcStreamSetting objects filtered by the value column + * @method array findByDbType(string $type) Return CcStreamSetting objects filtered by the type column * * @package propel.generator.airtime.om */ abstract class BaseCcStreamSettingQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcStreamSettingQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcStreamSetting'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcStreamSettingQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcStreamSettingQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcStreamSettingQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcStreamSettingQuery) { + return $criteria; + } + $query = new CcStreamSettingQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcStreamSetting|CcStreamSetting[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcStreamSettingPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcStreamSettingPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcStreamSetting A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbKeyName($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcStreamSetting A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "keyname", "value", "type" FROM "cc_stream_setting" WHERE "keyname" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_STR); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcStreamSetting(); + $obj->hydrate($row); + CcStreamSettingPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcStreamSetting|CcStreamSetting[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcStreamSetting[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcStreamSettingQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcStreamSettingPeer::KEYNAME, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcStreamSettingQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcStreamSettingPeer::KEYNAME, $keys, Criteria::IN); + } + + /** + * Filter the query on the keyname column + * + * Example usage: + * + * $query->filterByDbKeyName('fooValue'); // WHERE keyname = 'fooValue' + * $query->filterByDbKeyName('%fooValue%'); // WHERE keyname LIKE '%fooValue%' + * + * + * @param string $dbKeyName 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 CcStreamSettingQuery The current query, for fluid interface + */ + public function filterByDbKeyName($dbKeyName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbKeyName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbKeyName)) { + $dbKeyName = str_replace('*', '%', $dbKeyName); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcStreamSettingPeer::KEYNAME, $dbKeyName, $comparison); + } + + /** + * Filter the query on the value column + * + * Example usage: + * + * $query->filterByDbValue('fooValue'); // WHERE value = 'fooValue' + * $query->filterByDbValue('%fooValue%'); // WHERE value LIKE '%fooValue%' + * + * + * @param string $dbValue 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 CcStreamSettingQuery The current query, for fluid interface + */ + public function filterByDbValue($dbValue = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbValue)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbValue)) { + $dbValue = str_replace('*', '%', $dbValue); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcStreamSettingPeer::VALUE, $dbValue, $comparison); + } + + /** + * Filter the query on the type column + * + * Example usage: + * + * $query->filterByDbType('fooValue'); // WHERE type = 'fooValue' + * $query->filterByDbType('%fooValue%'); // WHERE type LIKE '%fooValue%' + * + * + * @param string $dbType 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 CcStreamSettingQuery The current query, for fluid interface + */ + public function filterByDbType($dbType = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbType)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbType)) { + $dbType = str_replace('*', '%', $dbType); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcStreamSettingPeer::TYPE, $dbType, $comparison); + } + + /** + * Exclude object from result + * + * @param CcStreamSetting $ccStreamSetting Object to remove from the list of results + * + * @return CcStreamSettingQuery The current query, for fluid interface + */ + public function prune($ccStreamSetting = null) + { + if ($ccStreamSetting) { + $this->addUsingAlias(CcStreamSettingPeer::KEYNAME, $ccStreamSetting->getDbKeyName(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcStreamSettingQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcStreamSetting', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcStreamSettingQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcStreamSettingQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcStreamSettingQuery) { - return $criteria; - } - $query = new CcStreamSettingQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcStreamSetting|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcStreamSettingPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcStreamSettingQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcStreamSettingPeer::KEYNAME, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcStreamSettingQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcStreamSettingPeer::KEYNAME, $keys, Criteria::IN); - } - - /** - * Filter the query on the keyname column - * - * @param string $dbKeyName 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 CcStreamSettingQuery The current query, for fluid interface - */ - public function filterByDbKeyName($dbKeyName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbKeyName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbKeyName)) { - $dbKeyName = str_replace('*', '%', $dbKeyName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcStreamSettingPeer::KEYNAME, $dbKeyName, $comparison); - } - - /** - * Filter the query on the value column - * - * @param string $dbValue 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 CcStreamSettingQuery The current query, for fluid interface - */ - public function filterByDbValue($dbValue = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbValue)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbValue)) { - $dbValue = str_replace('*', '%', $dbValue); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcStreamSettingPeer::VALUE, $dbValue, $comparison); - } - - /** - * Filter the query on the type column - * - * @param string $dbType 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 CcStreamSettingQuery The current query, for fluid interface - */ - public function filterByDbType($dbType = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbType)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbType)) { - $dbType = str_replace('*', '%', $dbType); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcStreamSettingPeer::TYPE, $dbType, $comparison); - } - - /** - * Exclude object from result - * - * @param CcStreamSetting $ccStreamSetting Object to remove from the list of results - * - * @return CcStreamSettingQuery The current query, for fluid interface - */ - public function prune($ccStreamSetting = null) - { - if ($ccStreamSetting) { - $this->addUsingAlias(CcStreamSettingPeer::KEYNAME, $ccStreamSetting->getDbKeyName(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcStreamSettingQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcSubjs.php b/airtime_mvc/application/models/airtime/om/BaseCcSubjs.php index c335d71588..6aa0df213a 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcSubjs.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcSubjs.php @@ -4,2781 +4,4220 @@ /** * Base class that represents a row from the 'cc_subjs' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcSubjs extends BaseObject implements Persistent +abstract class BaseCcSubjs extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcSubjsPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcSubjsPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the login field. - * Note: this column has a database default value of: '' - * @var string - */ - protected $login; - - /** - * The value for the pass field. - * Note: this column has a database default value of: '' - * @var string - */ - protected $pass; - - /** - * The value for the type field. - * Note: this column has a database default value of: 'U' - * @var string - */ - protected $type; - - /** - * The value for the first_name field. - * Note: this column has a database default value of: '' - * @var string - */ - protected $first_name; - - /** - * The value for the last_name field. - * Note: this column has a database default value of: '' - * @var string - */ - protected $last_name; - - /** - * The value for the lastlogin field. - * @var string - */ - protected $lastlogin; - - /** - * The value for the lastfail field. - * @var string - */ - protected $lastfail; - - /** - * The value for the skype_contact field. - * @var string - */ - protected $skype_contact; - - /** - * The value for the jabber_contact field. - * @var string - */ - protected $jabber_contact; - - /** - * The value for the email field. - * @var string - */ - protected $email; - - /** - * The value for the cell_phone field. - * @var string - */ - protected $cell_phone; - - /** - * The value for the login_attempts field. - * Note: this column has a database default value of: 0 - * @var int - */ - protected $login_attempts; - - /** - * @var array CcFiles[] Collection to store aggregation of CcFiles objects. - */ - protected $collCcFilessRelatedByDbOwnerId; - - /** - * @var array CcFiles[] Collection to store aggregation of CcFiles objects. - */ - protected $collCcFilessRelatedByDbEditedby; - - /** - * @var array CcPerms[] Collection to store aggregation of CcPerms objects. - */ - protected $collCcPermss; - - /** - * @var array CcShowHosts[] Collection to store aggregation of CcShowHosts objects. - */ - protected $collCcShowHostss; - - /** - * @var array CcPlaylist[] Collection to store aggregation of CcPlaylist objects. - */ - protected $collCcPlaylists; - - /** - * @var array CcBlock[] Collection to store aggregation of CcBlock objects. - */ - protected $collCcBlocks; - - /** - * @var array CcPref[] Collection to store aggregation of CcPref objects. - */ - protected $collCcPrefs; - - /** - * @var array CcSess[] Collection to store aggregation of CcSess objects. - */ - protected $collCcSesss; - - /** - * @var array CcSubjsToken[] Collection to store aggregation of CcSubjsToken objects. - */ - protected $collCcSubjsTokens; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - 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->login = ''; - $this->pass = ''; - $this->type = 'U'; - $this->first_name = ''; - $this->last_name = ''; - $this->login_attempts = 0; - } - - /** - * Initializes internal state of BaseCcSubjs object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [login] column value. - * - * @return string - */ - public function getDbLogin() - { - return $this->login; - } - - /** - * Get the [pass] column value. - * - * @return string - */ - public function getDbPass() - { - return $this->pass; - } - - /** - * Get the [type] column value. - * - * @return string - */ - public function getDbType() - { - return $this->type; - } - - /** - * Get the [first_name] column value. - * - * @return string - */ - public function getDbFirstName() - { - return $this->first_name; - } - - /** - * Get the [last_name] column value. - * - * @return string - */ - public function getDbLastName() - { - return $this->last_name; - } - - /** - * Get the [optionally formatted] temporal [lastlogin] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbLastlogin($format = 'Y-m-d H:i:s') - { - if ($this->lastlogin === null) { - return null; - } - - - - try { - $dt = new DateTime($this->lastlogin); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->lastlogin, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [lastfail] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbLastfail($format = 'Y-m-d H:i:s') - { - if ($this->lastfail === null) { - return null; - } - - - - try { - $dt = new DateTime($this->lastfail); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->lastfail, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [skype_contact] column value. - * - * @return string - */ - public function getDbSkypeContact() - { - return $this->skype_contact; - } - - /** - * Get the [jabber_contact] column value. - * - * @return string - */ - public function getDbJabberContact() - { - return $this->jabber_contact; - } - - /** - * Get the [email] column value. - * - * @return string - */ - public function getDbEmail() - { - return $this->email; - } - - /** - * Get the [cell_phone] column value. - * - * @return string - */ - public function getDbCellPhone() - { - return $this->cell_phone; - } - - /** - * Get the [login_attempts] column value. - * - * @return int - */ - public function getDbLoginAttempts() - { - return $this->login_attempts; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcSubjs The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcSubjsPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [login] column. - * - * @param string $v new value - * @return CcSubjs The current object (for fluent API support) - */ - public function setDbLogin($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->login !== $v || $this->isNew()) { - $this->login = $v; - $this->modifiedColumns[] = CcSubjsPeer::LOGIN; - } - - return $this; - } // setDbLogin() - - /** - * Set the value of [pass] column. - * - * @param string $v new value - * @return CcSubjs The current object (for fluent API support) - */ - public function setDbPass($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->pass !== $v || $this->isNew()) { - $this->pass = $v; - $this->modifiedColumns[] = CcSubjsPeer::PASS; - } - - return $this; - } // setDbPass() - - /** - * Set the value of [type] column. - * - * @param string $v new value - * @return CcSubjs The current object (for fluent API support) - */ - public function setDbType($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->type !== $v || $this->isNew()) { - $this->type = $v; - $this->modifiedColumns[] = CcSubjsPeer::TYPE; - } - - return $this; - } // setDbType() - - /** - * Set the value of [first_name] column. - * - * @param string $v new value - * @return CcSubjs The current object (for fluent API support) - */ - public function setDbFirstName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->first_name !== $v || $this->isNew()) { - $this->first_name = $v; - $this->modifiedColumns[] = CcSubjsPeer::FIRST_NAME; - } - - return $this; - } // setDbFirstName() - - /** - * Set the value of [last_name] column. - * - * @param string $v new value - * @return CcSubjs The current object (for fluent API support) - */ - public function setDbLastName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->last_name !== $v || $this->isNew()) { - $this->last_name = $v; - $this->modifiedColumns[] = CcSubjsPeer::LAST_NAME; - } - - return $this; - } // setDbLastName() - - /** - * Sets the value of [lastlogin] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcSubjs The current object (for fluent API support) - */ - public function setDbLastlogin($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->lastlogin !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->lastlogin !== null && $tmpDt = new DateTime($this->lastlogin)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->lastlogin = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcSubjsPeer::LASTLOGIN; - } - } // if either are not null - - return $this; - } // setDbLastlogin() - - /** - * Sets the value of [lastfail] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcSubjs The current object (for fluent API support) - */ - public function setDbLastfail($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->lastfail !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->lastfail !== null && $tmpDt = new DateTime($this->lastfail)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->lastfail = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcSubjsPeer::LASTFAIL; - } - } // if either are not null - - return $this; - } // setDbLastfail() - - /** - * Set the value of [skype_contact] column. - * - * @param string $v new value - * @return CcSubjs The current object (for fluent API support) - */ - public function setDbSkypeContact($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->skype_contact !== $v) { - $this->skype_contact = $v; - $this->modifiedColumns[] = CcSubjsPeer::SKYPE_CONTACT; - } - - return $this; - } // setDbSkypeContact() - - /** - * Set the value of [jabber_contact] column. - * - * @param string $v new value - * @return CcSubjs The current object (for fluent API support) - */ - public function setDbJabberContact($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->jabber_contact !== $v) { - $this->jabber_contact = $v; - $this->modifiedColumns[] = CcSubjsPeer::JABBER_CONTACT; - } - - return $this; - } // setDbJabberContact() - - /** - * Set the value of [email] column. - * - * @param string $v new value - * @return CcSubjs The current object (for fluent API support) - */ - public function setDbEmail($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->email !== $v) { - $this->email = $v; - $this->modifiedColumns[] = CcSubjsPeer::EMAIL; - } - - return $this; - } // setDbEmail() - - /** - * Set the value of [cell_phone] column. - * - * @param string $v new value - * @return CcSubjs The current object (for fluent API support) - */ - public function setDbCellPhone($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->cell_phone !== $v) { - $this->cell_phone = $v; - $this->modifiedColumns[] = CcSubjsPeer::CELL_PHONE; - } - - return $this; - } // setDbCellPhone() - - /** - * Set the value of [login_attempts] column. - * - * @param int $v new value - * @return CcSubjs The current object (for fluent API support) - */ - public function setDbLoginAttempts($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->login_attempts !== $v || $this->isNew()) { - $this->login_attempts = $v; - $this->modifiedColumns[] = CcSubjsPeer::LOGIN_ATTEMPTS; - } - - return $this; - } // setDbLoginAttempts() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->login !== '') { - return false; - } - - if ($this->pass !== '') { - return false; - } - - if ($this->type !== 'U') { - return false; - } - - if ($this->first_name !== '') { - return false; - } - - if ($this->last_name !== '') { - return false; - } - - if ($this->login_attempts !== 0) { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->login = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->pass = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->type = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->first_name = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; - $this->last_name = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; - $this->lastlogin = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; - $this->lastfail = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null; - $this->skype_contact = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; - $this->jabber_contact = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; - $this->email = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null; - $this->cell_phone = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null; - $this->login_attempts = ($row[$startcol + 12] !== null) ? (int) $row[$startcol + 12] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 13; // 13 = CcSubjsPeer::NUM_COLUMNS - CcSubjsPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcSubjs object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcSubjsPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->collCcFilessRelatedByDbOwnerId = null; - - $this->collCcFilessRelatedByDbEditedby = null; - - $this->collCcPermss = null; - - $this->collCcShowHostss = null; - - $this->collCcPlaylists = null; - - $this->collCcBlocks = null; - - $this->collCcPrefs = null; - - $this->collCcSesss = null; - - $this->collCcSubjsTokens = null; - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcSubjsQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcSubjsPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcSubjsPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcSubjsPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcSubjsPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows = 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows = CcSubjsPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - if ($this->collCcFilessRelatedByDbOwnerId !== null) { - foreach ($this->collCcFilessRelatedByDbOwnerId as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcFilessRelatedByDbEditedby !== null) { - foreach ($this->collCcFilessRelatedByDbEditedby as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcPermss !== null) { - foreach ($this->collCcPermss as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcShowHostss !== null) { - foreach ($this->collCcShowHostss as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcPlaylists !== null) { - foreach ($this->collCcPlaylists as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcBlocks !== null) { - foreach ($this->collCcBlocks as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcPrefs !== null) { - foreach ($this->collCcPrefs as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcSesss !== null) { - foreach ($this->collCcSesss as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - if ($this->collCcSubjsTokens !== null) { - foreach ($this->collCcSubjsTokens as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - if (($retval = CcSubjsPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - if ($this->collCcFilessRelatedByDbOwnerId !== null) { - foreach ($this->collCcFilessRelatedByDbOwnerId as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcFilessRelatedByDbEditedby !== null) { - foreach ($this->collCcFilessRelatedByDbEditedby as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcPermss !== null) { - foreach ($this->collCcPermss as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcShowHostss !== null) { - foreach ($this->collCcShowHostss as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcPlaylists !== null) { - foreach ($this->collCcPlaylists as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcBlocks !== null) { - foreach ($this->collCcBlocks as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcPrefs !== null) { - foreach ($this->collCcPrefs as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcSesss !== null) { - foreach ($this->collCcSesss as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - if ($this->collCcSubjsTokens !== null) { - foreach ($this->collCcSubjsTokens as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcSubjsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbLogin(); - break; - case 2: - return $this->getDbPass(); - break; - case 3: - return $this->getDbType(); - break; - case 4: - return $this->getDbFirstName(); - break; - case 5: - return $this->getDbLastName(); - break; - case 6: - return $this->getDbLastlogin(); - break; - case 7: - return $this->getDbLastfail(); - break; - case 8: - return $this->getDbSkypeContact(); - break; - case 9: - return $this->getDbJabberContact(); - break; - case 10: - return $this->getDbEmail(); - break; - case 11: - return $this->getDbCellPhone(); - break; - case 12: - return $this->getDbLoginAttempts(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) - { - $keys = CcSubjsPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbLogin(), - $keys[2] => $this->getDbPass(), - $keys[3] => $this->getDbType(), - $keys[4] => $this->getDbFirstName(), - $keys[5] => $this->getDbLastName(), - $keys[6] => $this->getDbLastlogin(), - $keys[7] => $this->getDbLastfail(), - $keys[8] => $this->getDbSkypeContact(), - $keys[9] => $this->getDbJabberContact(), - $keys[10] => $this->getDbEmail(), - $keys[11] => $this->getDbCellPhone(), - $keys[12] => $this->getDbLoginAttempts(), - ); - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcSubjsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbLogin($value); - break; - case 2: - $this->setDbPass($value); - break; - case 3: - $this->setDbType($value); - break; - case 4: - $this->setDbFirstName($value); - break; - case 5: - $this->setDbLastName($value); - break; - case 6: - $this->setDbLastlogin($value); - break; - case 7: - $this->setDbLastfail($value); - break; - case 8: - $this->setDbSkypeContact($value); - break; - case 9: - $this->setDbJabberContact($value); - break; - case 10: - $this->setDbEmail($value); - break; - case 11: - $this->setDbCellPhone($value); - break; - case 12: - $this->setDbLoginAttempts($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcSubjsPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbLogin($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbPass($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbType($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbFirstName($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setDbLastName($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setDbLastlogin($arr[$keys[6]]); - if (array_key_exists($keys[7], $arr)) $this->setDbLastfail($arr[$keys[7]]); - if (array_key_exists($keys[8], $arr)) $this->setDbSkypeContact($arr[$keys[8]]); - if (array_key_exists($keys[9], $arr)) $this->setDbJabberContact($arr[$keys[9]]); - if (array_key_exists($keys[10], $arr)) $this->setDbEmail($arr[$keys[10]]); - if (array_key_exists($keys[11], $arr)) $this->setDbCellPhone($arr[$keys[11]]); - if (array_key_exists($keys[12], $arr)) $this->setDbLoginAttempts($arr[$keys[12]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcSubjsPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcSubjsPeer::ID)) $criteria->add(CcSubjsPeer::ID, $this->id); - if ($this->isColumnModified(CcSubjsPeer::LOGIN)) $criteria->add(CcSubjsPeer::LOGIN, $this->login); - if ($this->isColumnModified(CcSubjsPeer::PASS)) $criteria->add(CcSubjsPeer::PASS, $this->pass); - if ($this->isColumnModified(CcSubjsPeer::TYPE)) $criteria->add(CcSubjsPeer::TYPE, $this->type); - if ($this->isColumnModified(CcSubjsPeer::FIRST_NAME)) $criteria->add(CcSubjsPeer::FIRST_NAME, $this->first_name); - if ($this->isColumnModified(CcSubjsPeer::LAST_NAME)) $criteria->add(CcSubjsPeer::LAST_NAME, $this->last_name); - if ($this->isColumnModified(CcSubjsPeer::LASTLOGIN)) $criteria->add(CcSubjsPeer::LASTLOGIN, $this->lastlogin); - if ($this->isColumnModified(CcSubjsPeer::LASTFAIL)) $criteria->add(CcSubjsPeer::LASTFAIL, $this->lastfail); - if ($this->isColumnModified(CcSubjsPeer::SKYPE_CONTACT)) $criteria->add(CcSubjsPeer::SKYPE_CONTACT, $this->skype_contact); - if ($this->isColumnModified(CcSubjsPeer::JABBER_CONTACT)) $criteria->add(CcSubjsPeer::JABBER_CONTACT, $this->jabber_contact); - if ($this->isColumnModified(CcSubjsPeer::EMAIL)) $criteria->add(CcSubjsPeer::EMAIL, $this->email); - if ($this->isColumnModified(CcSubjsPeer::CELL_PHONE)) $criteria->add(CcSubjsPeer::CELL_PHONE, $this->cell_phone); - if ($this->isColumnModified(CcSubjsPeer::LOGIN_ATTEMPTS)) $criteria->add(CcSubjsPeer::LOGIN_ATTEMPTS, $this->login_attempts); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcSubjsPeer::DATABASE_NAME); - $criteria->add(CcSubjsPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcSubjs (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbLogin($this->login); - $copyObj->setDbPass($this->pass); - $copyObj->setDbType($this->type); - $copyObj->setDbFirstName($this->first_name); - $copyObj->setDbLastName($this->last_name); - $copyObj->setDbLastlogin($this->lastlogin); - $copyObj->setDbLastfail($this->lastfail); - $copyObj->setDbSkypeContact($this->skype_contact); - $copyObj->setDbJabberContact($this->jabber_contact); - $copyObj->setDbEmail($this->email); - $copyObj->setDbCellPhone($this->cell_phone); - $copyObj->setDbLoginAttempts($this->login_attempts); - - if ($deepCopy) { - // important: temporarily setNew(false) because this affects the behavior of - // the getter/setter methods for fkey referrer objects. - $copyObj->setNew(false); - - foreach ($this->getCcFilessRelatedByDbOwnerId() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcFilesRelatedByDbOwnerId($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcFilessRelatedByDbEditedby() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcFilesRelatedByDbEditedby($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcPermss() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcPerms($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcShowHostss() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcShowHosts($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcPlaylists() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcPlaylist($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcBlocks() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcBlock($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcPrefs() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcPref($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcSesss() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcSess($relObj->copy($deepCopy)); - } - } - - foreach ($this->getCcSubjsTokens() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcSubjsToken($relObj->copy($deepCopy)); - } - } - - } // if ($deepCopy) - - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcSubjs Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcSubjsPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcSubjsPeer(); - } - return self::$peer; - } - - /** - * Clears out the collCcFilessRelatedByDbOwnerId 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 addCcFilessRelatedByDbOwnerId() - */ - public function clearCcFilessRelatedByDbOwnerId() - { - $this->collCcFilessRelatedByDbOwnerId = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcFilessRelatedByDbOwnerId collection. - * - * By default this just sets the collCcFilessRelatedByDbOwnerId collection to an empty array (like clearcollCcFilessRelatedByDbOwnerId()); - * 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 initCcFilessRelatedByDbOwnerId() - { - $this->collCcFilessRelatedByDbOwnerId = new PropelObjectCollection(); - $this->collCcFilessRelatedByDbOwnerId->setModel('CcFiles'); - } - - /** - * Gets an array of CcFiles 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 CcFiles[] List of CcFiles objects - * @throws PropelException - */ - public function getCcFilessRelatedByDbOwnerId($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcFilessRelatedByDbOwnerId || null !== $criteria) { - if ($this->isNew() && null === $this->collCcFilessRelatedByDbOwnerId) { - // return empty collection - $this->initCcFilessRelatedByDbOwnerId(); - } else { - $collCcFilessRelatedByDbOwnerId = CcFilesQuery::create(null, $criteria) - ->filterByFkOwner($this) - ->find($con); - if (null !== $criteria) { - return $collCcFilessRelatedByDbOwnerId; - } - $this->collCcFilessRelatedByDbOwnerId = $collCcFilessRelatedByDbOwnerId; - } - } - return $this->collCcFilessRelatedByDbOwnerId; - } - - /** - * Returns the number of related CcFiles objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcFiles objects. - * @throws PropelException - */ - public function countCcFilessRelatedByDbOwnerId(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcFilessRelatedByDbOwnerId || null !== $criteria) { - if ($this->isNew() && null === $this->collCcFilessRelatedByDbOwnerId) { - return 0; - } else { - $query = CcFilesQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByFkOwner($this) - ->count($con); - } - } else { - return count($this->collCcFilessRelatedByDbOwnerId); - } - } - - /** - * Method called to associate a CcFiles object to this object - * through the CcFiles foreign key attribute. - * - * @param CcFiles $l CcFiles - * @return void - * @throws PropelException - */ - public function addCcFilesRelatedByDbOwnerId(CcFiles $l) - { - if ($this->collCcFilessRelatedByDbOwnerId === null) { - $this->initCcFilessRelatedByDbOwnerId(); - } - if (!$this->collCcFilessRelatedByDbOwnerId->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcFilessRelatedByDbOwnerId[]= $l; - $l->setFkOwner($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcSubjs is new, it will return - * an empty collection; or if this CcSubjs has previously - * been saved, it will retrieve related CcFilessRelatedByDbOwnerId from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcSubjs. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcFiles[] List of CcFiles objects - */ - public function getCcFilessRelatedByDbOwnerIdJoinCcMusicDirs($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcFilesQuery::create(null, $criteria); - $query->joinWith('CcMusicDirs', $join_behavior); - - return $this->getCcFilessRelatedByDbOwnerId($query, $con); - } - - /** - * Clears out the collCcFilessRelatedByDbEditedby 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 addCcFilessRelatedByDbEditedby() - */ - public function clearCcFilessRelatedByDbEditedby() - { - $this->collCcFilessRelatedByDbEditedby = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcFilessRelatedByDbEditedby collection. - * - * By default this just sets the collCcFilessRelatedByDbEditedby collection to an empty array (like clearcollCcFilessRelatedByDbEditedby()); - * 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 initCcFilessRelatedByDbEditedby() - { - $this->collCcFilessRelatedByDbEditedby = new PropelObjectCollection(); - $this->collCcFilessRelatedByDbEditedby->setModel('CcFiles'); - } - - /** - * Gets an array of CcFiles 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 CcFiles[] List of CcFiles objects - * @throws PropelException - */ - public function getCcFilessRelatedByDbEditedby($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcFilessRelatedByDbEditedby || null !== $criteria) { - if ($this->isNew() && null === $this->collCcFilessRelatedByDbEditedby) { - // return empty collection - $this->initCcFilessRelatedByDbEditedby(); - } else { - $collCcFilessRelatedByDbEditedby = CcFilesQuery::create(null, $criteria) - ->filterByCcSubjsRelatedByDbEditedby($this) - ->find($con); - if (null !== $criteria) { - return $collCcFilessRelatedByDbEditedby; - } - $this->collCcFilessRelatedByDbEditedby = $collCcFilessRelatedByDbEditedby; - } - } - return $this->collCcFilessRelatedByDbEditedby; - } - - /** - * Returns the number of related CcFiles objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcFiles objects. - * @throws PropelException - */ - public function countCcFilessRelatedByDbEditedby(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcFilessRelatedByDbEditedby || null !== $criteria) { - if ($this->isNew() && null === $this->collCcFilessRelatedByDbEditedby) { - return 0; - } else { - $query = CcFilesQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcSubjsRelatedByDbEditedby($this) - ->count($con); - } - } else { - return count($this->collCcFilessRelatedByDbEditedby); - } - } - - /** - * Method called to associate a CcFiles object to this object - * through the CcFiles foreign key attribute. - * - * @param CcFiles $l CcFiles - * @return void - * @throws PropelException - */ - public function addCcFilesRelatedByDbEditedby(CcFiles $l) - { - if ($this->collCcFilessRelatedByDbEditedby === null) { - $this->initCcFilessRelatedByDbEditedby(); - } - if (!$this->collCcFilessRelatedByDbEditedby->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcFilessRelatedByDbEditedby[]= $l; - $l->setCcSubjsRelatedByDbEditedby($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcSubjs is new, it will return - * an empty collection; or if this CcSubjs has previously - * been saved, it will retrieve related CcFilessRelatedByDbEditedby from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcSubjs. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcFiles[] List of CcFiles objects - */ - public function getCcFilessRelatedByDbEditedbyJoinCcMusicDirs($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcFilesQuery::create(null, $criteria); - $query->joinWith('CcMusicDirs', $join_behavior); - - return $this->getCcFilessRelatedByDbEditedby($query, $con); - } - - /** - * Clears out the collCcPermss 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 addCcPermss() - */ - public function clearCcPermss() - { - $this->collCcPermss = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcPermss collection. - * - * By default this just sets the collCcPermss collection to an empty array (like clearcollCcPermss()); - * 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 initCcPermss() - { - $this->collCcPermss = new PropelObjectCollection(); - $this->collCcPermss->setModel('CcPerms'); - } - - /** - * Gets an array of CcPerms 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 CcPerms[] List of CcPerms objects - * @throws PropelException - */ - public function getCcPermss($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcPermss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPermss) { - // return empty collection - $this->initCcPermss(); - } else { - $collCcPermss = CcPermsQuery::create(null, $criteria) - ->filterByCcSubjs($this) - ->find($con); - if (null !== $criteria) { - return $collCcPermss; - } - $this->collCcPermss = $collCcPermss; - } - } - return $this->collCcPermss; - } - - /** - * Returns the number of related CcPerms objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcPerms objects. - * @throws PropelException - */ - public function countCcPermss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcPermss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPermss) { - return 0; - } else { - $query = CcPermsQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcSubjs($this) - ->count($con); - } - } else { - return count($this->collCcPermss); - } - } - - /** - * Method called to associate a CcPerms object to this object - * through the CcPerms foreign key attribute. - * - * @param CcPerms $l CcPerms - * @return void - * @throws PropelException - */ - public function addCcPerms(CcPerms $l) - { - if ($this->collCcPermss === null) { - $this->initCcPermss(); - } - if (!$this->collCcPermss->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcPermss[]= $l; - $l->setCcSubjs($this); - } - } - - /** - * Clears out the collCcShowHostss 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 addCcShowHostss() - */ - public function clearCcShowHostss() - { - $this->collCcShowHostss = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcShowHostss collection. - * - * By default this just sets the collCcShowHostss collection to an empty array (like clearcollCcShowHostss()); - * 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 initCcShowHostss() - { - $this->collCcShowHostss = new PropelObjectCollection(); - $this->collCcShowHostss->setModel('CcShowHosts'); - } - - /** - * Gets an array of CcShowHosts 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 CcShowHosts[] List of CcShowHosts objects - * @throws PropelException - */ - public function getCcShowHostss($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcShowHostss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcShowHostss) { - // return empty collection - $this->initCcShowHostss(); - } else { - $collCcShowHostss = CcShowHostsQuery::create(null, $criteria) - ->filterByCcSubjs($this) - ->find($con); - if (null !== $criteria) { - return $collCcShowHostss; - } - $this->collCcShowHostss = $collCcShowHostss; - } - } - return $this->collCcShowHostss; - } - - /** - * Returns the number of related CcShowHosts objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcShowHosts objects. - * @throws PropelException - */ - public function countCcShowHostss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcShowHostss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcShowHostss) { - return 0; - } else { - $query = CcShowHostsQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcSubjs($this) - ->count($con); - } - } else { - return count($this->collCcShowHostss); - } - } - - /** - * Method called to associate a CcShowHosts object to this object - * through the CcShowHosts foreign key attribute. - * - * @param CcShowHosts $l CcShowHosts - * @return void - * @throws PropelException - */ - public function addCcShowHosts(CcShowHosts $l) - { - if ($this->collCcShowHostss === null) { - $this->initCcShowHostss(); - } - if (!$this->collCcShowHostss->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcShowHostss[]= $l; - $l->setCcSubjs($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcSubjs is new, it will return - * an empty collection; or if this CcSubjs has previously - * been saved, it will retrieve related CcShowHostss from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcSubjs. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcShowHosts[] List of CcShowHosts objects - */ - public function getCcShowHostssJoinCcShow($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcShowHostsQuery::create(null, $criteria); - $query->joinWith('CcShow', $join_behavior); - - return $this->getCcShowHostss($query, $con); - } - - /** - * Clears out the collCcPlaylists 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 addCcPlaylists() - */ - public function clearCcPlaylists() - { - $this->collCcPlaylists = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcPlaylists collection. - * - * By default this just sets the collCcPlaylists collection to an empty array (like clearcollCcPlaylists()); - * 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 initCcPlaylists() - { - $this->collCcPlaylists = new PropelObjectCollection(); - $this->collCcPlaylists->setModel('CcPlaylist'); - } - - /** - * Gets an array of CcPlaylist 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 CcPlaylist[] List of CcPlaylist objects - * @throws PropelException - */ - public function getCcPlaylists($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcPlaylists || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlaylists) { - // return empty collection - $this->initCcPlaylists(); - } else { - $collCcPlaylists = CcPlaylistQuery::create(null, $criteria) - ->filterByCcSubjs($this) - ->find($con); - if (null !== $criteria) { - return $collCcPlaylists; - } - $this->collCcPlaylists = $collCcPlaylists; - } - } - return $this->collCcPlaylists; - } - - /** - * Returns the number of related CcPlaylist objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcPlaylist objects. - * @throws PropelException - */ - public function countCcPlaylists(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcPlaylists || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPlaylists) { - return 0; - } else { - $query = CcPlaylistQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcSubjs($this) - ->count($con); - } - } else { - return count($this->collCcPlaylists); - } - } - - /** - * Method called to associate a CcPlaylist object to this object - * through the CcPlaylist foreign key attribute. - * - * @param CcPlaylist $l CcPlaylist - * @return void - * @throws PropelException - */ - public function addCcPlaylist(CcPlaylist $l) - { - if ($this->collCcPlaylists === null) { - $this->initCcPlaylists(); - } - if (!$this->collCcPlaylists->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcPlaylists[]= $l; - $l->setCcSubjs($this); - } - } - - /** - * Clears out the collCcBlocks 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 addCcBlocks() - */ - public function clearCcBlocks() - { - $this->collCcBlocks = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcBlocks collection. - * - * By default this just sets the collCcBlocks collection to an empty array (like clearcollCcBlocks()); - * 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 initCcBlocks() - { - $this->collCcBlocks = new PropelObjectCollection(); - $this->collCcBlocks->setModel('CcBlock'); - } - - /** - * Gets an array of CcBlock 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 CcBlock[] List of CcBlock objects - * @throws PropelException - */ - public function getCcBlocks($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcBlocks || null !== $criteria) { - if ($this->isNew() && null === $this->collCcBlocks) { - // return empty collection - $this->initCcBlocks(); - } else { - $collCcBlocks = CcBlockQuery::create(null, $criteria) - ->filterByCcSubjs($this) - ->find($con); - if (null !== $criteria) { - return $collCcBlocks; - } - $this->collCcBlocks = $collCcBlocks; - } - } - return $this->collCcBlocks; - } - - /** - * Returns the number of related CcBlock objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcBlock objects. - * @throws PropelException - */ - public function countCcBlocks(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcBlocks || null !== $criteria) { - if ($this->isNew() && null === $this->collCcBlocks) { - return 0; - } else { - $query = CcBlockQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcSubjs($this) - ->count($con); - } - } else { - return count($this->collCcBlocks); - } - } - - /** - * Method called to associate a CcBlock object to this object - * through the CcBlock foreign key attribute. - * - * @param CcBlock $l CcBlock - * @return void - * @throws PropelException - */ - public function addCcBlock(CcBlock $l) - { - if ($this->collCcBlocks === null) { - $this->initCcBlocks(); - } - if (!$this->collCcBlocks->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcBlocks[]= $l; - $l->setCcSubjs($this); - } - } - - /** - * Clears out the collCcPrefs 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 addCcPrefs() - */ - public function clearCcPrefs() - { - $this->collCcPrefs = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcPrefs collection. - * - * By default this just sets the collCcPrefs collection to an empty array (like clearcollCcPrefs()); - * 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 initCcPrefs() - { - $this->collCcPrefs = new PropelObjectCollection(); - $this->collCcPrefs->setModel('CcPref'); - } - - /** - * Gets an array of CcPref 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 CcPref[] List of CcPref objects - * @throws PropelException - */ - public function getCcPrefs($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcPrefs || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPrefs) { - // return empty collection - $this->initCcPrefs(); - } else { - $collCcPrefs = CcPrefQuery::create(null, $criteria) - ->filterByCcSubjs($this) - ->find($con); - if (null !== $criteria) { - return $collCcPrefs; - } - $this->collCcPrefs = $collCcPrefs; - } - } - return $this->collCcPrefs; - } - - /** - * Returns the number of related CcPref objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcPref objects. - * @throws PropelException - */ - public function countCcPrefs(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcPrefs || null !== $criteria) { - if ($this->isNew() && null === $this->collCcPrefs) { - return 0; - } else { - $query = CcPrefQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcSubjs($this) - ->count($con); - } - } else { - return count($this->collCcPrefs); - } - } - - /** - * Method called to associate a CcPref object to this object - * through the CcPref foreign key attribute. - * - * @param CcPref $l CcPref - * @return void - * @throws PropelException - */ - public function addCcPref(CcPref $l) - { - if ($this->collCcPrefs === null) { - $this->initCcPrefs(); - } - if (!$this->collCcPrefs->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcPrefs[]= $l; - $l->setCcSubjs($this); - } - } - - /** - * Clears out the collCcSesss 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 addCcSesss() - */ - public function clearCcSesss() - { - $this->collCcSesss = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcSesss collection. - * - * By default this just sets the collCcSesss collection to an empty array (like clearcollCcSesss()); - * 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 initCcSesss() - { - $this->collCcSesss = new PropelObjectCollection(); - $this->collCcSesss->setModel('CcSess'); - } - - /** - * Gets an array of CcSess 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 CcSess[] List of CcSess objects - * @throws PropelException - */ - public function getCcSesss($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcSesss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcSesss) { - // return empty collection - $this->initCcSesss(); - } else { - $collCcSesss = CcSessQuery::create(null, $criteria) - ->filterByCcSubjs($this) - ->find($con); - if (null !== $criteria) { - return $collCcSesss; - } - $this->collCcSesss = $collCcSesss; - } - } - return $this->collCcSesss; - } - - /** - * Returns the number of related CcSess objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcSess objects. - * @throws PropelException - */ - public function countCcSesss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcSesss || null !== $criteria) { - if ($this->isNew() && null === $this->collCcSesss) { - return 0; - } else { - $query = CcSessQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcSubjs($this) - ->count($con); - } - } else { - return count($this->collCcSesss); - } - } - - /** - * Method called to associate a CcSess object to this object - * through the CcSess foreign key attribute. - * - * @param CcSess $l CcSess - * @return void - * @throws PropelException - */ - public function addCcSess(CcSess $l) - { - if ($this->collCcSesss === null) { - $this->initCcSesss(); - } - if (!$this->collCcSesss->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcSesss[]= $l; - $l->setCcSubjs($this); - } - } - - /** - * Clears out the collCcSubjsTokens 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 addCcSubjsTokens() - */ - public function clearCcSubjsTokens() - { - $this->collCcSubjsTokens = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcSubjsTokens collection. - * - * By default this just sets the collCcSubjsTokens collection to an empty array (like clearcollCcSubjsTokens()); - * 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 initCcSubjsTokens() - { - $this->collCcSubjsTokens = new PropelObjectCollection(); - $this->collCcSubjsTokens->setModel('CcSubjsToken'); - } - - /** - * Gets an array of CcSubjsToken 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 CcSubjsToken[] List of CcSubjsToken objects - * @throws PropelException - */ - public function getCcSubjsTokens($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcSubjsTokens || null !== $criteria) { - if ($this->isNew() && null === $this->collCcSubjsTokens) { - // return empty collection - $this->initCcSubjsTokens(); - } else { - $collCcSubjsTokens = CcSubjsTokenQuery::create(null, $criteria) - ->filterByCcSubjs($this) - ->find($con); - if (null !== $criteria) { - return $collCcSubjsTokens; - } - $this->collCcSubjsTokens = $collCcSubjsTokens; - } - } - return $this->collCcSubjsTokens; - } - - /** - * Returns the number of related CcSubjsToken objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcSubjsToken objects. - * @throws PropelException - */ - public function countCcSubjsTokens(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcSubjsTokens || null !== $criteria) { - if ($this->isNew() && null === $this->collCcSubjsTokens) { - return 0; - } else { - $query = CcSubjsTokenQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcSubjs($this) - ->count($con); - } - } else { - return count($this->collCcSubjsTokens); - } - } - - /** - * Method called to associate a CcSubjsToken object to this object - * through the CcSubjsToken foreign key attribute. - * - * @param CcSubjsToken $l CcSubjsToken - * @return void - * @throws PropelException - */ - public function addCcSubjsToken(CcSubjsToken $l) - { - if ($this->collCcSubjsTokens === null) { - $this->initCcSubjsTokens(); - } - if (!$this->collCcSubjsTokens->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcSubjsTokens[]= $l; - $l->setCcSubjs($this); - } - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->login = null; - $this->pass = null; - $this->type = null; - $this->first_name = null; - $this->last_name = null; - $this->lastlogin = null; - $this->lastfail = null; - $this->skype_contact = null; - $this->jabber_contact = null; - $this->email = null; - $this->cell_phone = null; - $this->login_attempts = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - if ($this->collCcFilessRelatedByDbOwnerId) { - foreach ((array) $this->collCcFilessRelatedByDbOwnerId as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcFilessRelatedByDbEditedby) { - foreach ((array) $this->collCcFilessRelatedByDbEditedby as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcPermss) { - foreach ((array) $this->collCcPermss as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcShowHostss) { - foreach ((array) $this->collCcShowHostss as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcPlaylists) { - foreach ((array) $this->collCcPlaylists as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcBlocks) { - foreach ((array) $this->collCcBlocks as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcPrefs) { - foreach ((array) $this->collCcPrefs as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcSesss) { - foreach ((array) $this->collCcSesss as $o) { - $o->clearAllReferences($deep); - } - } - if ($this->collCcSubjsTokens) { - foreach ((array) $this->collCcSubjsTokens as $o) { - $o->clearAllReferences($deep); - } - } - } // if ($deep) - - $this->collCcFilessRelatedByDbOwnerId = null; - $this->collCcFilessRelatedByDbEditedby = null; - $this->collCcPermss = null; - $this->collCcShowHostss = null; - $this->collCcPlaylists = null; - $this->collCcBlocks = null; - $this->collCcPrefs = null; - $this->collCcSesss = null; - $this->collCcSubjsTokens = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcSubjs + /** + * Peer class name + */ + const PEER = 'CcSubjsPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcSubjsPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the login field. + * Note: this column has a database default value of: '' + * @var string + */ + protected $login; + + /** + * The value for the pass field. + * Note: this column has a database default value of: '' + * @var string + */ + protected $pass; + + /** + * The value for the type field. + * Note: this column has a database default value of: 'U' + * @var string + */ + protected $type; + + /** + * The value for the first_name field. + * Note: this column has a database default value of: '' + * @var string + */ + protected $first_name; + + /** + * The value for the last_name field. + * Note: this column has a database default value of: '' + * @var string + */ + protected $last_name; + + /** + * The value for the lastlogin field. + * @var string + */ + protected $lastlogin; + + /** + * The value for the lastfail field. + * @var string + */ + protected $lastfail; + + /** + * The value for the skype_contact field. + * @var string + */ + protected $skype_contact; + + /** + * The value for the jabber_contact field. + * @var string + */ + protected $jabber_contact; + + /** + * The value for the email field. + * @var string + */ + protected $email; + + /** + * The value for the cell_phone field. + * @var string + */ + protected $cell_phone; + + /** + * The value for the login_attempts field. + * Note: this column has a database default value of: 0 + * @var int + */ + protected $login_attempts; + + /** + * @var PropelObjectCollection|CcFiles[] Collection to store aggregation of CcFiles objects. + */ + protected $collCcFilessRelatedByDbOwnerId; + protected $collCcFilessRelatedByDbOwnerIdPartial; + + /** + * @var PropelObjectCollection|CcFiles[] Collection to store aggregation of CcFiles objects. + */ + protected $collCcFilessRelatedByDbEditedby; + protected $collCcFilessRelatedByDbEditedbyPartial; + + /** + * @var PropelObjectCollection|CcPerms[] Collection to store aggregation of CcPerms objects. + */ + protected $collCcPermss; + protected $collCcPermssPartial; + + /** + * @var PropelObjectCollection|CcShowHosts[] Collection to store aggregation of CcShowHosts objects. + */ + protected $collCcShowHostss; + protected $collCcShowHostssPartial; + + /** + * @var PropelObjectCollection|CcPlaylist[] Collection to store aggregation of CcPlaylist objects. + */ + protected $collCcPlaylists; + protected $collCcPlaylistsPartial; + + /** + * @var PropelObjectCollection|CcBlock[] Collection to store aggregation of CcBlock objects. + */ + protected $collCcBlocks; + protected $collCcBlocksPartial; + + /** + * @var PropelObjectCollection|CcPref[] Collection to store aggregation of CcPref objects. + */ + protected $collCcPrefs; + protected $collCcPrefsPartial; + + /** + * @var PropelObjectCollection|CcSess[] Collection to store aggregation of CcSess objects. + */ + protected $collCcSesss; + protected $collCcSesssPartial; + + /** + * @var PropelObjectCollection|CcSubjsToken[] Collection to store aggregation of CcSubjsToken objects. + */ + protected $collCcSubjsTokens; + protected $collCcSubjsTokensPartial; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccFilessRelatedByDbOwnerIdScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccFilessRelatedByDbEditedbyScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccPermssScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccShowHostssScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccPlaylistsScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccBlocksScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccPrefsScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccSesssScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccSubjsTokensScheduledForDeletion = null; + + /** + * 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->login = ''; + $this->pass = ''; + $this->type = 'U'; + $this->first_name = ''; + $this->last_name = ''; + $this->login_attempts = 0; + } + + /** + * Initializes internal state of BaseCcSubjs object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [login] column value. + * + * @return string + */ + public function getDbLogin() + { + + return $this->login; + } + + /** + * Get the [pass] column value. + * + * @return string + */ + public function getDbPass() + { + + return $this->pass; + } + + /** + * Get the [type] column value. + * + * @return string + */ + public function getDbType() + { + + return $this->type; + } + + /** + * Get the [first_name] column value. + * + * @return string + */ + public function getDbFirstName() + { + + return $this->first_name; + } + + /** + * Get the [last_name] column value. + * + * @return string + */ + public function getDbLastName() + { + + return $this->last_name; + } + + /** + * Get the [optionally formatted] temporal [lastlogin] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbLastlogin($format = 'Y-m-d H:i:s') + { + if ($this->lastlogin === null) { + return null; + } + + + try { + $dt = new DateTime($this->lastlogin); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->lastlogin, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [lastfail] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbLastfail($format = 'Y-m-d H:i:s') + { + if ($this->lastfail === null) { + return null; + } + + + try { + $dt = new DateTime($this->lastfail); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->lastfail, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [skype_contact] column value. + * + * @return string + */ + public function getDbSkypeContact() + { + + return $this->skype_contact; + } + + /** + * Get the [jabber_contact] column value. + * + * @return string + */ + public function getDbJabberContact() + { + + return $this->jabber_contact; + } + + /** + * Get the [email] column value. + * + * @return string + */ + public function getDbEmail() + { + + return $this->email; + } + + /** + * Get the [cell_phone] column value. + * + * @return string + */ + public function getDbCellPhone() + { + + return $this->cell_phone; + } + + /** + * Get the [login_attempts] column value. + * + * @return int + */ + public function getDbLoginAttempts() + { + + return $this->login_attempts; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcSubjs The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcSubjsPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [login] column. + * + * @param string $v new value + * @return CcSubjs The current object (for fluent API support) + */ + public function setDbLogin($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->login !== $v) { + $this->login = $v; + $this->modifiedColumns[] = CcSubjsPeer::LOGIN; + } + + + return $this; + } // setDbLogin() + + /** + * Set the value of [pass] column. + * + * @param string $v new value + * @return CcSubjs The current object (for fluent API support) + */ + public function setDbPass($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->pass !== $v) { + $this->pass = $v; + $this->modifiedColumns[] = CcSubjsPeer::PASS; + } + + + return $this; + } // setDbPass() + + /** + * Set the value of [type] column. + * + * @param string $v new value + * @return CcSubjs The current object (for fluent API support) + */ + public function setDbType($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->type !== $v) { + $this->type = $v; + $this->modifiedColumns[] = CcSubjsPeer::TYPE; + } + + + return $this; + } // setDbType() + + /** + * Set the value of [first_name] column. + * + * @param string $v new value + * @return CcSubjs The current object (for fluent API support) + */ + public function setDbFirstName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->first_name !== $v) { + $this->first_name = $v; + $this->modifiedColumns[] = CcSubjsPeer::FIRST_NAME; + } + + + return $this; + } // setDbFirstName() + + /** + * Set the value of [last_name] column. + * + * @param string $v new value + * @return CcSubjs The current object (for fluent API support) + */ + public function setDbLastName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->last_name !== $v) { + $this->last_name = $v; + $this->modifiedColumns[] = CcSubjsPeer::LAST_NAME; + } + + + return $this; + } // setDbLastName() + + /** + * Sets the value of [lastlogin] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcSubjs The current object (for fluent API support) + */ + public function setDbLastlogin($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->lastlogin !== null || $dt !== null) { + $currentDateAsString = ($this->lastlogin !== null && $tmpDt = new DateTime($this->lastlogin)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->lastlogin = $newDateAsString; + $this->modifiedColumns[] = CcSubjsPeer::LASTLOGIN; + } + } // if either are not null + + + return $this; + } // setDbLastlogin() + + /** + * Sets the value of [lastfail] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcSubjs The current object (for fluent API support) + */ + public function setDbLastfail($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->lastfail !== null || $dt !== null) { + $currentDateAsString = ($this->lastfail !== null && $tmpDt = new DateTime($this->lastfail)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->lastfail = $newDateAsString; + $this->modifiedColumns[] = CcSubjsPeer::LASTFAIL; + } + } // if either are not null + + + return $this; + } // setDbLastfail() + + /** + * Set the value of [skype_contact] column. + * + * @param string $v new value + * @return CcSubjs The current object (for fluent API support) + */ + public function setDbSkypeContact($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->skype_contact !== $v) { + $this->skype_contact = $v; + $this->modifiedColumns[] = CcSubjsPeer::SKYPE_CONTACT; + } + + + return $this; + } // setDbSkypeContact() + + /** + * Set the value of [jabber_contact] column. + * + * @param string $v new value + * @return CcSubjs The current object (for fluent API support) + */ + public function setDbJabberContact($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->jabber_contact !== $v) { + $this->jabber_contact = $v; + $this->modifiedColumns[] = CcSubjsPeer::JABBER_CONTACT; + } + + + return $this; + } // setDbJabberContact() + + /** + * Set the value of [email] column. + * + * @param string $v new value + * @return CcSubjs The current object (for fluent API support) + */ + public function setDbEmail($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->email !== $v) { + $this->email = $v; + $this->modifiedColumns[] = CcSubjsPeer::EMAIL; + } + + + return $this; + } // setDbEmail() + + /** + * Set the value of [cell_phone] column. + * + * @param string $v new value + * @return CcSubjs The current object (for fluent API support) + */ + public function setDbCellPhone($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->cell_phone !== $v) { + $this->cell_phone = $v; + $this->modifiedColumns[] = CcSubjsPeer::CELL_PHONE; + } + + + return $this; + } // setDbCellPhone() + + /** + * Set the value of [login_attempts] column. + * + * @param int $v new value + * @return CcSubjs The current object (for fluent API support) + */ + public function setDbLoginAttempts($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->login_attempts !== $v) { + $this->login_attempts = $v; + $this->modifiedColumns[] = CcSubjsPeer::LOGIN_ATTEMPTS; + } + + + return $this; + } // setDbLoginAttempts() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->login !== '') { + return false; + } + + if ($this->pass !== '') { + return false; + } + + if ($this->type !== 'U') { + return false; + } + + if ($this->first_name !== '') { + return false; + } + + if ($this->last_name !== '') { + return false; + } + + if ($this->login_attempts !== 0) { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->login = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->pass = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->type = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->first_name = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; + $this->last_name = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; + $this->lastlogin = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; + $this->lastfail = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null; + $this->skype_contact = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; + $this->jabber_contact = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; + $this->email = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null; + $this->cell_phone = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null; + $this->login_attempts = ($row[$startcol + 12] !== null) ? (int) $row[$startcol + 12] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 13; // 13 = CcSubjsPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcSubjs object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcSubjsPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->collCcFilessRelatedByDbOwnerId = null; + + $this->collCcFilessRelatedByDbEditedby = null; + + $this->collCcPermss = null; + + $this->collCcShowHostss = null; + + $this->collCcPlaylists = null; + + $this->collCcBlocks = null; + + $this->collCcPrefs = null; + + $this->collCcSesss = null; + + $this->collCcSubjsTokens = null; + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcSubjsQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcSubjsPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + if ($this->ccFilessRelatedByDbOwnerIdScheduledForDeletion !== null) { + if (!$this->ccFilessRelatedByDbOwnerIdScheduledForDeletion->isEmpty()) { + foreach ($this->ccFilessRelatedByDbOwnerIdScheduledForDeletion as $ccFilesRelatedByDbOwnerId) { + // need to save related object because we set the relation to null + $ccFilesRelatedByDbOwnerId->save($con); + } + $this->ccFilessRelatedByDbOwnerIdScheduledForDeletion = null; + } + } + + if ($this->collCcFilessRelatedByDbOwnerId !== null) { + foreach ($this->collCcFilessRelatedByDbOwnerId as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccFilessRelatedByDbEditedbyScheduledForDeletion !== null) { + if (!$this->ccFilessRelatedByDbEditedbyScheduledForDeletion->isEmpty()) { + foreach ($this->ccFilessRelatedByDbEditedbyScheduledForDeletion as $ccFilesRelatedByDbEditedby) { + // need to save related object because we set the relation to null + $ccFilesRelatedByDbEditedby->save($con); + } + $this->ccFilessRelatedByDbEditedbyScheduledForDeletion = null; + } + } + + if ($this->collCcFilessRelatedByDbEditedby !== null) { + foreach ($this->collCcFilessRelatedByDbEditedby as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccPermssScheduledForDeletion !== null) { + if (!$this->ccPermssScheduledForDeletion->isEmpty()) { + CcPermsQuery::create() + ->filterByPrimaryKeys($this->ccPermssScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccPermssScheduledForDeletion = null; + } + } + + if ($this->collCcPermss !== null) { + foreach ($this->collCcPermss as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccShowHostssScheduledForDeletion !== null) { + if (!$this->ccShowHostssScheduledForDeletion->isEmpty()) { + CcShowHostsQuery::create() + ->filterByPrimaryKeys($this->ccShowHostssScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccShowHostssScheduledForDeletion = null; + } + } + + if ($this->collCcShowHostss !== null) { + foreach ($this->collCcShowHostss as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccPlaylistsScheduledForDeletion !== null) { + if (!$this->ccPlaylistsScheduledForDeletion->isEmpty()) { + CcPlaylistQuery::create() + ->filterByPrimaryKeys($this->ccPlaylistsScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccPlaylistsScheduledForDeletion = null; + } + } + + if ($this->collCcPlaylists !== null) { + foreach ($this->collCcPlaylists as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccBlocksScheduledForDeletion !== null) { + if (!$this->ccBlocksScheduledForDeletion->isEmpty()) { + CcBlockQuery::create() + ->filterByPrimaryKeys($this->ccBlocksScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccBlocksScheduledForDeletion = null; + } + } + + if ($this->collCcBlocks !== null) { + foreach ($this->collCcBlocks as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccPrefsScheduledForDeletion !== null) { + if (!$this->ccPrefsScheduledForDeletion->isEmpty()) { + CcPrefQuery::create() + ->filterByPrimaryKeys($this->ccPrefsScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccPrefsScheduledForDeletion = null; + } + } + + if ($this->collCcPrefs !== null) { + foreach ($this->collCcPrefs as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccSesssScheduledForDeletion !== null) { + if (!$this->ccSesssScheduledForDeletion->isEmpty()) { + CcSessQuery::create() + ->filterByPrimaryKeys($this->ccSesssScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccSesssScheduledForDeletion = null; + } + } + + if ($this->collCcSesss !== null) { + foreach ($this->collCcSesss as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->ccSubjsTokensScheduledForDeletion !== null) { + if (!$this->ccSubjsTokensScheduledForDeletion->isEmpty()) { + CcSubjsTokenQuery::create() + ->filterByPrimaryKeys($this->ccSubjsTokensScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccSubjsTokensScheduledForDeletion = null; + } + } + + if ($this->collCcSubjsTokens !== null) { + foreach ($this->collCcSubjsTokens as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcSubjsPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcSubjsPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_subjs_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcSubjsPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcSubjsPeer::LOGIN)) { + $modifiedColumns[':p' . $index++] = '"login"'; + } + if ($this->isColumnModified(CcSubjsPeer::PASS)) { + $modifiedColumns[':p' . $index++] = '"pass"'; + } + if ($this->isColumnModified(CcSubjsPeer::TYPE)) { + $modifiedColumns[':p' . $index++] = '"type"'; + } + if ($this->isColumnModified(CcSubjsPeer::FIRST_NAME)) { + $modifiedColumns[':p' . $index++] = '"first_name"'; + } + if ($this->isColumnModified(CcSubjsPeer::LAST_NAME)) { + $modifiedColumns[':p' . $index++] = '"last_name"'; + } + if ($this->isColumnModified(CcSubjsPeer::LASTLOGIN)) { + $modifiedColumns[':p' . $index++] = '"lastlogin"'; + } + if ($this->isColumnModified(CcSubjsPeer::LASTFAIL)) { + $modifiedColumns[':p' . $index++] = '"lastfail"'; + } + if ($this->isColumnModified(CcSubjsPeer::SKYPE_CONTACT)) { + $modifiedColumns[':p' . $index++] = '"skype_contact"'; + } + if ($this->isColumnModified(CcSubjsPeer::JABBER_CONTACT)) { + $modifiedColumns[':p' . $index++] = '"jabber_contact"'; + } + if ($this->isColumnModified(CcSubjsPeer::EMAIL)) { + $modifiedColumns[':p' . $index++] = '"email"'; + } + if ($this->isColumnModified(CcSubjsPeer::CELL_PHONE)) { + $modifiedColumns[':p' . $index++] = '"cell_phone"'; + } + if ($this->isColumnModified(CcSubjsPeer::LOGIN_ATTEMPTS)) { + $modifiedColumns[':p' . $index++] = '"login_attempts"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_subjs" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"login"': + $stmt->bindValue($identifier, $this->login, PDO::PARAM_STR); + break; + case '"pass"': + $stmt->bindValue($identifier, $this->pass, PDO::PARAM_STR); + break; + case '"type"': + $stmt->bindValue($identifier, $this->type, PDO::PARAM_STR); + break; + case '"first_name"': + $stmt->bindValue($identifier, $this->first_name, PDO::PARAM_STR); + break; + case '"last_name"': + $stmt->bindValue($identifier, $this->last_name, PDO::PARAM_STR); + break; + case '"lastlogin"': + $stmt->bindValue($identifier, $this->lastlogin, PDO::PARAM_STR); + break; + case '"lastfail"': + $stmt->bindValue($identifier, $this->lastfail, PDO::PARAM_STR); + break; + case '"skype_contact"': + $stmt->bindValue($identifier, $this->skype_contact, PDO::PARAM_STR); + break; + case '"jabber_contact"': + $stmt->bindValue($identifier, $this->jabber_contact, PDO::PARAM_STR); + break; + case '"email"': + $stmt->bindValue($identifier, $this->email, PDO::PARAM_STR); + break; + case '"cell_phone"': + $stmt->bindValue($identifier, $this->cell_phone, PDO::PARAM_STR); + break; + case '"login_attempts"': + $stmt->bindValue($identifier, $this->login_attempts, PDO::PARAM_INT); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + if (($retval = CcSubjsPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + if ($this->collCcFilessRelatedByDbOwnerId !== null) { + foreach ($this->collCcFilessRelatedByDbOwnerId as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcFilessRelatedByDbEditedby !== null) { + foreach ($this->collCcFilessRelatedByDbEditedby as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcPermss !== null) { + foreach ($this->collCcPermss as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcShowHostss !== null) { + foreach ($this->collCcShowHostss as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcPlaylists !== null) { + foreach ($this->collCcPlaylists as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcBlocks !== null) { + foreach ($this->collCcBlocks as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcPrefs !== null) { + foreach ($this->collCcPrefs as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcSesss !== null) { + foreach ($this->collCcSesss as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + if ($this->collCcSubjsTokens !== null) { + foreach ($this->collCcSubjsTokens as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcSubjsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbLogin(); + break; + case 2: + return $this->getDbPass(); + break; + case 3: + return $this->getDbType(); + break; + case 4: + return $this->getDbFirstName(); + break; + case 5: + return $this->getDbLastName(); + break; + case 6: + return $this->getDbLastlogin(); + break; + case 7: + return $this->getDbLastfail(); + break; + case 8: + return $this->getDbSkypeContact(); + break; + case 9: + return $this->getDbJabberContact(); + break; + case 10: + return $this->getDbEmail(); + break; + case 11: + return $this->getDbCellPhone(); + break; + case 12: + return $this->getDbLoginAttempts(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcSubjs'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcSubjs'][$this->getPrimaryKey()] = true; + $keys = CcSubjsPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbLogin(), + $keys[2] => $this->getDbPass(), + $keys[3] => $this->getDbType(), + $keys[4] => $this->getDbFirstName(), + $keys[5] => $this->getDbLastName(), + $keys[6] => $this->getDbLastlogin(), + $keys[7] => $this->getDbLastfail(), + $keys[8] => $this->getDbSkypeContact(), + $keys[9] => $this->getDbJabberContact(), + $keys[10] => $this->getDbEmail(), + $keys[11] => $this->getDbCellPhone(), + $keys[12] => $this->getDbLoginAttempts(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->collCcFilessRelatedByDbOwnerId) { + $result['CcFilessRelatedByDbOwnerId'] = $this->collCcFilessRelatedByDbOwnerId->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcFilessRelatedByDbEditedby) { + $result['CcFilessRelatedByDbEditedby'] = $this->collCcFilessRelatedByDbEditedby->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcPermss) { + $result['CcPermss'] = $this->collCcPermss->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcShowHostss) { + $result['CcShowHostss'] = $this->collCcShowHostss->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcPlaylists) { + $result['CcPlaylists'] = $this->collCcPlaylists->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcBlocks) { + $result['CcBlocks'] = $this->collCcBlocks->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcPrefs) { + $result['CcPrefs'] = $this->collCcPrefs->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcSesss) { + $result['CcSesss'] = $this->collCcSesss->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCcSubjsTokens) { + $result['CcSubjsTokens'] = $this->collCcSubjsTokens->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcSubjsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbLogin($value); + break; + case 2: + $this->setDbPass($value); + break; + case 3: + $this->setDbType($value); + break; + case 4: + $this->setDbFirstName($value); + break; + case 5: + $this->setDbLastName($value); + break; + case 6: + $this->setDbLastlogin($value); + break; + case 7: + $this->setDbLastfail($value); + break; + case 8: + $this->setDbSkypeContact($value); + break; + case 9: + $this->setDbJabberContact($value); + break; + case 10: + $this->setDbEmail($value); + break; + case 11: + $this->setDbCellPhone($value); + break; + case 12: + $this->setDbLoginAttempts($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcSubjsPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbLogin($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbPass($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbType($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbFirstName($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDbLastName($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setDbLastlogin($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setDbLastfail($arr[$keys[7]]); + if (array_key_exists($keys[8], $arr)) $this->setDbSkypeContact($arr[$keys[8]]); + if (array_key_exists($keys[9], $arr)) $this->setDbJabberContact($arr[$keys[9]]); + if (array_key_exists($keys[10], $arr)) $this->setDbEmail($arr[$keys[10]]); + if (array_key_exists($keys[11], $arr)) $this->setDbCellPhone($arr[$keys[11]]); + if (array_key_exists($keys[12], $arr)) $this->setDbLoginAttempts($arr[$keys[12]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcSubjsPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcSubjsPeer::ID)) $criteria->add(CcSubjsPeer::ID, $this->id); + if ($this->isColumnModified(CcSubjsPeer::LOGIN)) $criteria->add(CcSubjsPeer::LOGIN, $this->login); + if ($this->isColumnModified(CcSubjsPeer::PASS)) $criteria->add(CcSubjsPeer::PASS, $this->pass); + if ($this->isColumnModified(CcSubjsPeer::TYPE)) $criteria->add(CcSubjsPeer::TYPE, $this->type); + if ($this->isColumnModified(CcSubjsPeer::FIRST_NAME)) $criteria->add(CcSubjsPeer::FIRST_NAME, $this->first_name); + if ($this->isColumnModified(CcSubjsPeer::LAST_NAME)) $criteria->add(CcSubjsPeer::LAST_NAME, $this->last_name); + if ($this->isColumnModified(CcSubjsPeer::LASTLOGIN)) $criteria->add(CcSubjsPeer::LASTLOGIN, $this->lastlogin); + if ($this->isColumnModified(CcSubjsPeer::LASTFAIL)) $criteria->add(CcSubjsPeer::LASTFAIL, $this->lastfail); + if ($this->isColumnModified(CcSubjsPeer::SKYPE_CONTACT)) $criteria->add(CcSubjsPeer::SKYPE_CONTACT, $this->skype_contact); + if ($this->isColumnModified(CcSubjsPeer::JABBER_CONTACT)) $criteria->add(CcSubjsPeer::JABBER_CONTACT, $this->jabber_contact); + if ($this->isColumnModified(CcSubjsPeer::EMAIL)) $criteria->add(CcSubjsPeer::EMAIL, $this->email); + if ($this->isColumnModified(CcSubjsPeer::CELL_PHONE)) $criteria->add(CcSubjsPeer::CELL_PHONE, $this->cell_phone); + if ($this->isColumnModified(CcSubjsPeer::LOGIN_ATTEMPTS)) $criteria->add(CcSubjsPeer::LOGIN_ATTEMPTS, $this->login_attempts); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcSubjsPeer::DATABASE_NAME); + $criteria->add(CcSubjsPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcSubjs (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbLogin($this->getDbLogin()); + $copyObj->setDbPass($this->getDbPass()); + $copyObj->setDbType($this->getDbType()); + $copyObj->setDbFirstName($this->getDbFirstName()); + $copyObj->setDbLastName($this->getDbLastName()); + $copyObj->setDbLastlogin($this->getDbLastlogin()); + $copyObj->setDbLastfail($this->getDbLastfail()); + $copyObj->setDbSkypeContact($this->getDbSkypeContact()); + $copyObj->setDbJabberContact($this->getDbJabberContact()); + $copyObj->setDbEmail($this->getDbEmail()); + $copyObj->setDbCellPhone($this->getDbCellPhone()); + $copyObj->setDbLoginAttempts($this->getDbLoginAttempts()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + foreach ($this->getCcFilessRelatedByDbOwnerId() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcFilesRelatedByDbOwnerId($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcFilessRelatedByDbEditedby() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcFilesRelatedByDbEditedby($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcPermss() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcPerms($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcShowHostss() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcShowHosts($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcPlaylists() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcPlaylist($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcBlocks() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcBlock($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcPrefs() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcPref($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcSesss() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcSess($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCcSubjsTokens() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcSubjsToken($relObj->copy($deepCopy)); + } + } + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcSubjs Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcSubjsPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcSubjsPeer(); + } + + return self::$peer; + } + + + /** + * Initializes a collection based on the name of a relation. + * Avoids crafting an 'init[$relationName]s' method name + * that wouldn't work when StandardEnglishPluralizer is used. + * + * @param string $relationName The name of the relation to initialize + * @return void + */ + public function initRelation($relationName) + { + if ('CcFilesRelatedByDbOwnerId' == $relationName) { + $this->initCcFilessRelatedByDbOwnerId(); + } + if ('CcFilesRelatedByDbEditedby' == $relationName) { + $this->initCcFilessRelatedByDbEditedby(); + } + if ('CcPerms' == $relationName) { + $this->initCcPermss(); + } + if ('CcShowHosts' == $relationName) { + $this->initCcShowHostss(); + } + if ('CcPlaylist' == $relationName) { + $this->initCcPlaylists(); + } + if ('CcBlock' == $relationName) { + $this->initCcBlocks(); + } + if ('CcPref' == $relationName) { + $this->initCcPrefs(); + } + if ('CcSess' == $relationName) { + $this->initCcSesss(); + } + if ('CcSubjsToken' == $relationName) { + $this->initCcSubjsTokens(); + } + } + + /** + * Clears out the collCcFilessRelatedByDbOwnerId 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 CcSubjs The current object (for fluent API support) + * @see addCcFilessRelatedByDbOwnerId() + */ + public function clearCcFilessRelatedByDbOwnerId() + { + $this->collCcFilessRelatedByDbOwnerId = null; // important to set this to null since that means it is uninitialized + $this->collCcFilessRelatedByDbOwnerIdPartial = null; + + return $this; + } + + /** + * reset is the collCcFilessRelatedByDbOwnerId collection loaded partially + * + * @return void + */ + public function resetPartialCcFilessRelatedByDbOwnerId($v = true) + { + $this->collCcFilessRelatedByDbOwnerIdPartial = $v; + } + + /** + * Initializes the collCcFilessRelatedByDbOwnerId collection. + * + * By default this just sets the collCcFilessRelatedByDbOwnerId collection to an empty array (like clearcollCcFilessRelatedByDbOwnerId()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcFilessRelatedByDbOwnerId($overrideExisting = true) + { + if (null !== $this->collCcFilessRelatedByDbOwnerId && !$overrideExisting) { + return; + } + $this->collCcFilessRelatedByDbOwnerId = new PropelObjectCollection(); + $this->collCcFilessRelatedByDbOwnerId->setModel('CcFiles'); + } + + /** + * Gets an array of CcFiles 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 PropelObjectCollection|CcFiles[] List of CcFiles objects + * @throws PropelException + */ + public function getCcFilessRelatedByDbOwnerId($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcFilessRelatedByDbOwnerIdPartial && !$this->isNew(); + if (null === $this->collCcFilessRelatedByDbOwnerId || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcFilessRelatedByDbOwnerId) { + // return empty collection + $this->initCcFilessRelatedByDbOwnerId(); + } else { + $collCcFilessRelatedByDbOwnerId = CcFilesQuery::create(null, $criteria) + ->filterByFkOwner($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcFilessRelatedByDbOwnerIdPartial && count($collCcFilessRelatedByDbOwnerId)) { + $this->initCcFilessRelatedByDbOwnerId(false); + + foreach ($collCcFilessRelatedByDbOwnerId as $obj) { + if (false == $this->collCcFilessRelatedByDbOwnerId->contains($obj)) { + $this->collCcFilessRelatedByDbOwnerId->append($obj); + } + } + + $this->collCcFilessRelatedByDbOwnerIdPartial = true; + } + + $collCcFilessRelatedByDbOwnerId->getInternalIterator()->rewind(); + + return $collCcFilessRelatedByDbOwnerId; + } + + if ($partial && $this->collCcFilessRelatedByDbOwnerId) { + foreach ($this->collCcFilessRelatedByDbOwnerId as $obj) { + if ($obj->isNew()) { + $collCcFilessRelatedByDbOwnerId[] = $obj; + } + } + } + + $this->collCcFilessRelatedByDbOwnerId = $collCcFilessRelatedByDbOwnerId; + $this->collCcFilessRelatedByDbOwnerIdPartial = false; + } + } + + return $this->collCcFilessRelatedByDbOwnerId; + } + + /** + * Sets a collection of CcFilesRelatedByDbOwnerId objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccFilessRelatedByDbOwnerId A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcSubjs The current object (for fluent API support) + */ + public function setCcFilessRelatedByDbOwnerId(PropelCollection $ccFilessRelatedByDbOwnerId, PropelPDO $con = null) + { + $ccFilessRelatedByDbOwnerIdToDelete = $this->getCcFilessRelatedByDbOwnerId(new Criteria(), $con)->diff($ccFilessRelatedByDbOwnerId); + + + $this->ccFilessRelatedByDbOwnerIdScheduledForDeletion = $ccFilessRelatedByDbOwnerIdToDelete; + + foreach ($ccFilessRelatedByDbOwnerIdToDelete as $ccFilesRelatedByDbOwnerIdRemoved) { + $ccFilesRelatedByDbOwnerIdRemoved->setFkOwner(null); + } + + $this->collCcFilessRelatedByDbOwnerId = null; + foreach ($ccFilessRelatedByDbOwnerId as $ccFilesRelatedByDbOwnerId) { + $this->addCcFilesRelatedByDbOwnerId($ccFilesRelatedByDbOwnerId); + } + + $this->collCcFilessRelatedByDbOwnerId = $ccFilessRelatedByDbOwnerId; + $this->collCcFilessRelatedByDbOwnerIdPartial = false; + + return $this; + } + + /** + * Returns the number of related CcFiles objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcFiles objects. + * @throws PropelException + */ + public function countCcFilessRelatedByDbOwnerId(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcFilessRelatedByDbOwnerIdPartial && !$this->isNew(); + if (null === $this->collCcFilessRelatedByDbOwnerId || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcFilessRelatedByDbOwnerId) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcFilessRelatedByDbOwnerId()); + } + $query = CcFilesQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByFkOwner($this) + ->count($con); + } + + return count($this->collCcFilessRelatedByDbOwnerId); + } + + /** + * Method called to associate a CcFiles object to this object + * through the CcFiles foreign key attribute. + * + * @param CcFiles $l CcFiles + * @return CcSubjs The current object (for fluent API support) + */ + public function addCcFilesRelatedByDbOwnerId(CcFiles $l) + { + if ($this->collCcFilessRelatedByDbOwnerId === null) { + $this->initCcFilessRelatedByDbOwnerId(); + $this->collCcFilessRelatedByDbOwnerIdPartial = true; + } + + if (!in_array($l, $this->collCcFilessRelatedByDbOwnerId->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcFilesRelatedByDbOwnerId($l); + + if ($this->ccFilessRelatedByDbOwnerIdScheduledForDeletion and $this->ccFilessRelatedByDbOwnerIdScheduledForDeletion->contains($l)) { + $this->ccFilessRelatedByDbOwnerIdScheduledForDeletion->remove($this->ccFilessRelatedByDbOwnerIdScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcFilesRelatedByDbOwnerId $ccFilesRelatedByDbOwnerId The ccFilesRelatedByDbOwnerId object to add. + */ + protected function doAddCcFilesRelatedByDbOwnerId($ccFilesRelatedByDbOwnerId) + { + $this->collCcFilessRelatedByDbOwnerId[]= $ccFilesRelatedByDbOwnerId; + $ccFilesRelatedByDbOwnerId->setFkOwner($this); + } + + /** + * @param CcFilesRelatedByDbOwnerId $ccFilesRelatedByDbOwnerId The ccFilesRelatedByDbOwnerId object to remove. + * @return CcSubjs The current object (for fluent API support) + */ + public function removeCcFilesRelatedByDbOwnerId($ccFilesRelatedByDbOwnerId) + { + if ($this->getCcFilessRelatedByDbOwnerId()->contains($ccFilesRelatedByDbOwnerId)) { + $this->collCcFilessRelatedByDbOwnerId->remove($this->collCcFilessRelatedByDbOwnerId->search($ccFilesRelatedByDbOwnerId)); + if (null === $this->ccFilessRelatedByDbOwnerIdScheduledForDeletion) { + $this->ccFilessRelatedByDbOwnerIdScheduledForDeletion = clone $this->collCcFilessRelatedByDbOwnerId; + $this->ccFilessRelatedByDbOwnerIdScheduledForDeletion->clear(); + } + $this->ccFilessRelatedByDbOwnerIdScheduledForDeletion[]= $ccFilesRelatedByDbOwnerId; + $ccFilesRelatedByDbOwnerId->setFkOwner(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcSubjs is new, it will return + * an empty collection; or if this CcSubjs has previously + * been saved, it will retrieve related CcFilessRelatedByDbOwnerId from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcSubjs. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcFiles[] List of CcFiles objects + */ + public function getCcFilessRelatedByDbOwnerIdJoinCcMusicDirs($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcFilesQuery::create(null, $criteria); + $query->joinWith('CcMusicDirs', $join_behavior); + + return $this->getCcFilessRelatedByDbOwnerId($query, $con); + } + + /** + * Clears out the collCcFilessRelatedByDbEditedby 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 CcSubjs The current object (for fluent API support) + * @see addCcFilessRelatedByDbEditedby() + */ + public function clearCcFilessRelatedByDbEditedby() + { + $this->collCcFilessRelatedByDbEditedby = null; // important to set this to null since that means it is uninitialized + $this->collCcFilessRelatedByDbEditedbyPartial = null; + + return $this; + } + + /** + * reset is the collCcFilessRelatedByDbEditedby collection loaded partially + * + * @return void + */ + public function resetPartialCcFilessRelatedByDbEditedby($v = true) + { + $this->collCcFilessRelatedByDbEditedbyPartial = $v; + } + + /** + * Initializes the collCcFilessRelatedByDbEditedby collection. + * + * By default this just sets the collCcFilessRelatedByDbEditedby collection to an empty array (like clearcollCcFilessRelatedByDbEditedby()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcFilessRelatedByDbEditedby($overrideExisting = true) + { + if (null !== $this->collCcFilessRelatedByDbEditedby && !$overrideExisting) { + return; + } + $this->collCcFilessRelatedByDbEditedby = new PropelObjectCollection(); + $this->collCcFilessRelatedByDbEditedby->setModel('CcFiles'); + } + + /** + * Gets an array of CcFiles 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 PropelObjectCollection|CcFiles[] List of CcFiles objects + * @throws PropelException + */ + public function getCcFilessRelatedByDbEditedby($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcFilessRelatedByDbEditedbyPartial && !$this->isNew(); + if (null === $this->collCcFilessRelatedByDbEditedby || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcFilessRelatedByDbEditedby) { + // return empty collection + $this->initCcFilessRelatedByDbEditedby(); + } else { + $collCcFilessRelatedByDbEditedby = CcFilesQuery::create(null, $criteria) + ->filterByCcSubjsRelatedByDbEditedby($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcFilessRelatedByDbEditedbyPartial && count($collCcFilessRelatedByDbEditedby)) { + $this->initCcFilessRelatedByDbEditedby(false); + + foreach ($collCcFilessRelatedByDbEditedby as $obj) { + if (false == $this->collCcFilessRelatedByDbEditedby->contains($obj)) { + $this->collCcFilessRelatedByDbEditedby->append($obj); + } + } + + $this->collCcFilessRelatedByDbEditedbyPartial = true; + } + + $collCcFilessRelatedByDbEditedby->getInternalIterator()->rewind(); + + return $collCcFilessRelatedByDbEditedby; + } + + if ($partial && $this->collCcFilessRelatedByDbEditedby) { + foreach ($this->collCcFilessRelatedByDbEditedby as $obj) { + if ($obj->isNew()) { + $collCcFilessRelatedByDbEditedby[] = $obj; + } + } + } + + $this->collCcFilessRelatedByDbEditedby = $collCcFilessRelatedByDbEditedby; + $this->collCcFilessRelatedByDbEditedbyPartial = false; + } + } + + return $this->collCcFilessRelatedByDbEditedby; + } + + /** + * Sets a collection of CcFilesRelatedByDbEditedby objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccFilessRelatedByDbEditedby A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcSubjs The current object (for fluent API support) + */ + public function setCcFilessRelatedByDbEditedby(PropelCollection $ccFilessRelatedByDbEditedby, PropelPDO $con = null) + { + $ccFilessRelatedByDbEditedbyToDelete = $this->getCcFilessRelatedByDbEditedby(new Criteria(), $con)->diff($ccFilessRelatedByDbEditedby); + + + $this->ccFilessRelatedByDbEditedbyScheduledForDeletion = $ccFilessRelatedByDbEditedbyToDelete; + + foreach ($ccFilessRelatedByDbEditedbyToDelete as $ccFilesRelatedByDbEditedbyRemoved) { + $ccFilesRelatedByDbEditedbyRemoved->setCcSubjsRelatedByDbEditedby(null); + } + + $this->collCcFilessRelatedByDbEditedby = null; + foreach ($ccFilessRelatedByDbEditedby as $ccFilesRelatedByDbEditedby) { + $this->addCcFilesRelatedByDbEditedby($ccFilesRelatedByDbEditedby); + } + + $this->collCcFilessRelatedByDbEditedby = $ccFilessRelatedByDbEditedby; + $this->collCcFilessRelatedByDbEditedbyPartial = false; + + return $this; + } + + /** + * Returns the number of related CcFiles objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcFiles objects. + * @throws PropelException + */ + public function countCcFilessRelatedByDbEditedby(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcFilessRelatedByDbEditedbyPartial && !$this->isNew(); + if (null === $this->collCcFilessRelatedByDbEditedby || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcFilessRelatedByDbEditedby) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcFilessRelatedByDbEditedby()); + } + $query = CcFilesQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcSubjsRelatedByDbEditedby($this) + ->count($con); + } + + return count($this->collCcFilessRelatedByDbEditedby); + } + + /** + * Method called to associate a CcFiles object to this object + * through the CcFiles foreign key attribute. + * + * @param CcFiles $l CcFiles + * @return CcSubjs The current object (for fluent API support) + */ + public function addCcFilesRelatedByDbEditedby(CcFiles $l) + { + if ($this->collCcFilessRelatedByDbEditedby === null) { + $this->initCcFilessRelatedByDbEditedby(); + $this->collCcFilessRelatedByDbEditedbyPartial = true; + } + + if (!in_array($l, $this->collCcFilessRelatedByDbEditedby->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcFilesRelatedByDbEditedby($l); + + if ($this->ccFilessRelatedByDbEditedbyScheduledForDeletion and $this->ccFilessRelatedByDbEditedbyScheduledForDeletion->contains($l)) { + $this->ccFilessRelatedByDbEditedbyScheduledForDeletion->remove($this->ccFilessRelatedByDbEditedbyScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcFilesRelatedByDbEditedby $ccFilesRelatedByDbEditedby The ccFilesRelatedByDbEditedby object to add. + */ + protected function doAddCcFilesRelatedByDbEditedby($ccFilesRelatedByDbEditedby) + { + $this->collCcFilessRelatedByDbEditedby[]= $ccFilesRelatedByDbEditedby; + $ccFilesRelatedByDbEditedby->setCcSubjsRelatedByDbEditedby($this); + } + + /** + * @param CcFilesRelatedByDbEditedby $ccFilesRelatedByDbEditedby The ccFilesRelatedByDbEditedby object to remove. + * @return CcSubjs The current object (for fluent API support) + */ + public function removeCcFilesRelatedByDbEditedby($ccFilesRelatedByDbEditedby) + { + if ($this->getCcFilessRelatedByDbEditedby()->contains($ccFilesRelatedByDbEditedby)) { + $this->collCcFilessRelatedByDbEditedby->remove($this->collCcFilessRelatedByDbEditedby->search($ccFilesRelatedByDbEditedby)); + if (null === $this->ccFilessRelatedByDbEditedbyScheduledForDeletion) { + $this->ccFilessRelatedByDbEditedbyScheduledForDeletion = clone $this->collCcFilessRelatedByDbEditedby; + $this->ccFilessRelatedByDbEditedbyScheduledForDeletion->clear(); + } + $this->ccFilessRelatedByDbEditedbyScheduledForDeletion[]= $ccFilesRelatedByDbEditedby; + $ccFilesRelatedByDbEditedby->setCcSubjsRelatedByDbEditedby(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcSubjs is new, it will return + * an empty collection; or if this CcSubjs has previously + * been saved, it will retrieve related CcFilessRelatedByDbEditedby from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcSubjs. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcFiles[] List of CcFiles objects + */ + public function getCcFilessRelatedByDbEditedbyJoinCcMusicDirs($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcFilesQuery::create(null, $criteria); + $query->joinWith('CcMusicDirs', $join_behavior); + + return $this->getCcFilessRelatedByDbEditedby($query, $con); + } + + /** + * Clears out the collCcPermss 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 CcSubjs The current object (for fluent API support) + * @see addCcPermss() + */ + public function clearCcPermss() + { + $this->collCcPermss = null; // important to set this to null since that means it is uninitialized + $this->collCcPermssPartial = null; + + return $this; + } + + /** + * reset is the collCcPermss collection loaded partially + * + * @return void + */ + public function resetPartialCcPermss($v = true) + { + $this->collCcPermssPartial = $v; + } + + /** + * Initializes the collCcPermss collection. + * + * By default this just sets the collCcPermss collection to an empty array (like clearcollCcPermss()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcPermss($overrideExisting = true) + { + if (null !== $this->collCcPermss && !$overrideExisting) { + return; + } + $this->collCcPermss = new PropelObjectCollection(); + $this->collCcPermss->setModel('CcPerms'); + } + + /** + * Gets an array of CcPerms 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 PropelObjectCollection|CcPerms[] List of CcPerms objects + * @throws PropelException + */ + public function getCcPermss($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcPermssPartial && !$this->isNew(); + if (null === $this->collCcPermss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPermss) { + // return empty collection + $this->initCcPermss(); + } else { + $collCcPermss = CcPermsQuery::create(null, $criteria) + ->filterByCcSubjs($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcPermssPartial && count($collCcPermss)) { + $this->initCcPermss(false); + + foreach ($collCcPermss as $obj) { + if (false == $this->collCcPermss->contains($obj)) { + $this->collCcPermss->append($obj); + } + } + + $this->collCcPermssPartial = true; + } + + $collCcPermss->getInternalIterator()->rewind(); + + return $collCcPermss; + } + + if ($partial && $this->collCcPermss) { + foreach ($this->collCcPermss as $obj) { + if ($obj->isNew()) { + $collCcPermss[] = $obj; + } + } + } + + $this->collCcPermss = $collCcPermss; + $this->collCcPermssPartial = false; + } + } + + return $this->collCcPermss; + } + + /** + * Sets a collection of CcPerms objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccPermss A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcSubjs The current object (for fluent API support) + */ + public function setCcPermss(PropelCollection $ccPermss, PropelPDO $con = null) + { + $ccPermssToDelete = $this->getCcPermss(new Criteria(), $con)->diff($ccPermss); + + + $this->ccPermssScheduledForDeletion = $ccPermssToDelete; + + foreach ($ccPermssToDelete as $ccPermsRemoved) { + $ccPermsRemoved->setCcSubjs(null); + } + + $this->collCcPermss = null; + foreach ($ccPermss as $ccPerms) { + $this->addCcPerms($ccPerms); + } + + $this->collCcPermss = $ccPermss; + $this->collCcPermssPartial = false; + + return $this; + } + + /** + * Returns the number of related CcPerms objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcPerms objects. + * @throws PropelException + */ + public function countCcPermss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcPermssPartial && !$this->isNew(); + if (null === $this->collCcPermss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPermss) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcPermss()); + } + $query = CcPermsQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcSubjs($this) + ->count($con); + } + + return count($this->collCcPermss); + } + + /** + * Method called to associate a CcPerms object to this object + * through the CcPerms foreign key attribute. + * + * @param CcPerms $l CcPerms + * @return CcSubjs The current object (for fluent API support) + */ + public function addCcPerms(CcPerms $l) + { + if ($this->collCcPermss === null) { + $this->initCcPermss(); + $this->collCcPermssPartial = true; + } + + if (!in_array($l, $this->collCcPermss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcPerms($l); + + if ($this->ccPermssScheduledForDeletion and $this->ccPermssScheduledForDeletion->contains($l)) { + $this->ccPermssScheduledForDeletion->remove($this->ccPermssScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcPerms $ccPerms The ccPerms object to add. + */ + protected function doAddCcPerms($ccPerms) + { + $this->collCcPermss[]= $ccPerms; + $ccPerms->setCcSubjs($this); + } + + /** + * @param CcPerms $ccPerms The ccPerms object to remove. + * @return CcSubjs The current object (for fluent API support) + */ + public function removeCcPerms($ccPerms) + { + if ($this->getCcPermss()->contains($ccPerms)) { + $this->collCcPermss->remove($this->collCcPermss->search($ccPerms)); + if (null === $this->ccPermssScheduledForDeletion) { + $this->ccPermssScheduledForDeletion = clone $this->collCcPermss; + $this->ccPermssScheduledForDeletion->clear(); + } + $this->ccPermssScheduledForDeletion[]= $ccPerms; + $ccPerms->setCcSubjs(null); + } + + return $this; + } + + /** + * Clears out the collCcShowHostss 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 CcSubjs The current object (for fluent API support) + * @see addCcShowHostss() + */ + public function clearCcShowHostss() + { + $this->collCcShowHostss = null; // important to set this to null since that means it is uninitialized + $this->collCcShowHostssPartial = null; + + return $this; + } + + /** + * reset is the collCcShowHostss collection loaded partially + * + * @return void + */ + public function resetPartialCcShowHostss($v = true) + { + $this->collCcShowHostssPartial = $v; + } + + /** + * Initializes the collCcShowHostss collection. + * + * By default this just sets the collCcShowHostss collection to an empty array (like clearcollCcShowHostss()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcShowHostss($overrideExisting = true) + { + if (null !== $this->collCcShowHostss && !$overrideExisting) { + return; + } + $this->collCcShowHostss = new PropelObjectCollection(); + $this->collCcShowHostss->setModel('CcShowHosts'); + } + + /** + * Gets an array of CcShowHosts 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 PropelObjectCollection|CcShowHosts[] List of CcShowHosts objects + * @throws PropelException + */ + public function getCcShowHostss($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcShowHostssPartial && !$this->isNew(); + if (null === $this->collCcShowHostss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcShowHostss) { + // return empty collection + $this->initCcShowHostss(); + } else { + $collCcShowHostss = CcShowHostsQuery::create(null, $criteria) + ->filterByCcSubjs($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcShowHostssPartial && count($collCcShowHostss)) { + $this->initCcShowHostss(false); + + foreach ($collCcShowHostss as $obj) { + if (false == $this->collCcShowHostss->contains($obj)) { + $this->collCcShowHostss->append($obj); + } + } + + $this->collCcShowHostssPartial = true; + } + + $collCcShowHostss->getInternalIterator()->rewind(); + + return $collCcShowHostss; + } + + if ($partial && $this->collCcShowHostss) { + foreach ($this->collCcShowHostss as $obj) { + if ($obj->isNew()) { + $collCcShowHostss[] = $obj; + } + } + } + + $this->collCcShowHostss = $collCcShowHostss; + $this->collCcShowHostssPartial = false; + } + } + + return $this->collCcShowHostss; + } + + /** + * Sets a collection of CcShowHosts objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccShowHostss A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcSubjs The current object (for fluent API support) + */ + public function setCcShowHostss(PropelCollection $ccShowHostss, PropelPDO $con = null) + { + $ccShowHostssToDelete = $this->getCcShowHostss(new Criteria(), $con)->diff($ccShowHostss); + + + $this->ccShowHostssScheduledForDeletion = $ccShowHostssToDelete; + + foreach ($ccShowHostssToDelete as $ccShowHostsRemoved) { + $ccShowHostsRemoved->setCcSubjs(null); + } + + $this->collCcShowHostss = null; + foreach ($ccShowHostss as $ccShowHosts) { + $this->addCcShowHosts($ccShowHosts); + } + + $this->collCcShowHostss = $ccShowHostss; + $this->collCcShowHostssPartial = false; + + return $this; + } + + /** + * Returns the number of related CcShowHosts objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcShowHosts objects. + * @throws PropelException + */ + public function countCcShowHostss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcShowHostssPartial && !$this->isNew(); + if (null === $this->collCcShowHostss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcShowHostss) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcShowHostss()); + } + $query = CcShowHostsQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcSubjs($this) + ->count($con); + } + + return count($this->collCcShowHostss); + } + + /** + * Method called to associate a CcShowHosts object to this object + * through the CcShowHosts foreign key attribute. + * + * @param CcShowHosts $l CcShowHosts + * @return CcSubjs The current object (for fluent API support) + */ + public function addCcShowHosts(CcShowHosts $l) + { + if ($this->collCcShowHostss === null) { + $this->initCcShowHostss(); + $this->collCcShowHostssPartial = true; + } + + if (!in_array($l, $this->collCcShowHostss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcShowHosts($l); + + if ($this->ccShowHostssScheduledForDeletion and $this->ccShowHostssScheduledForDeletion->contains($l)) { + $this->ccShowHostssScheduledForDeletion->remove($this->ccShowHostssScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcShowHosts $ccShowHosts The ccShowHosts object to add. + */ + protected function doAddCcShowHosts($ccShowHosts) + { + $this->collCcShowHostss[]= $ccShowHosts; + $ccShowHosts->setCcSubjs($this); + } + + /** + * @param CcShowHosts $ccShowHosts The ccShowHosts object to remove. + * @return CcSubjs The current object (for fluent API support) + */ + public function removeCcShowHosts($ccShowHosts) + { + if ($this->getCcShowHostss()->contains($ccShowHosts)) { + $this->collCcShowHostss->remove($this->collCcShowHostss->search($ccShowHosts)); + if (null === $this->ccShowHostssScheduledForDeletion) { + $this->ccShowHostssScheduledForDeletion = clone $this->collCcShowHostss; + $this->ccShowHostssScheduledForDeletion->clear(); + } + $this->ccShowHostssScheduledForDeletion[]= clone $ccShowHosts; + $ccShowHosts->setCcSubjs(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcSubjs is new, it will return + * an empty collection; or if this CcSubjs has previously + * been saved, it will retrieve related CcShowHostss from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcSubjs. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcShowHosts[] List of CcShowHosts objects + */ + public function getCcShowHostssJoinCcShow($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcShowHostsQuery::create(null, $criteria); + $query->joinWith('CcShow', $join_behavior); + + return $this->getCcShowHostss($query, $con); + } + + /** + * Clears out the collCcPlaylists 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 CcSubjs The current object (for fluent API support) + * @see addCcPlaylists() + */ + public function clearCcPlaylists() + { + $this->collCcPlaylists = null; // important to set this to null since that means it is uninitialized + $this->collCcPlaylistsPartial = null; + + return $this; + } + + /** + * reset is the collCcPlaylists collection loaded partially + * + * @return void + */ + public function resetPartialCcPlaylists($v = true) + { + $this->collCcPlaylistsPartial = $v; + } + + /** + * Initializes the collCcPlaylists collection. + * + * By default this just sets the collCcPlaylists collection to an empty array (like clearcollCcPlaylists()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcPlaylists($overrideExisting = true) + { + if (null !== $this->collCcPlaylists && !$overrideExisting) { + return; + } + $this->collCcPlaylists = new PropelObjectCollection(); + $this->collCcPlaylists->setModel('CcPlaylist'); + } + + /** + * Gets an array of CcPlaylist 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 PropelObjectCollection|CcPlaylist[] List of CcPlaylist objects + * @throws PropelException + */ + public function getCcPlaylists($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcPlaylistsPartial && !$this->isNew(); + if (null === $this->collCcPlaylists || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlaylists) { + // return empty collection + $this->initCcPlaylists(); + } else { + $collCcPlaylists = CcPlaylistQuery::create(null, $criteria) + ->filterByCcSubjs($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcPlaylistsPartial && count($collCcPlaylists)) { + $this->initCcPlaylists(false); + + foreach ($collCcPlaylists as $obj) { + if (false == $this->collCcPlaylists->contains($obj)) { + $this->collCcPlaylists->append($obj); + } + } + + $this->collCcPlaylistsPartial = true; + } + + $collCcPlaylists->getInternalIterator()->rewind(); + + return $collCcPlaylists; + } + + if ($partial && $this->collCcPlaylists) { + foreach ($this->collCcPlaylists as $obj) { + if ($obj->isNew()) { + $collCcPlaylists[] = $obj; + } + } + } + + $this->collCcPlaylists = $collCcPlaylists; + $this->collCcPlaylistsPartial = false; + } + } + + return $this->collCcPlaylists; + } + + /** + * Sets a collection of CcPlaylist objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccPlaylists A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcSubjs The current object (for fluent API support) + */ + public function setCcPlaylists(PropelCollection $ccPlaylists, PropelPDO $con = null) + { + $ccPlaylistsToDelete = $this->getCcPlaylists(new Criteria(), $con)->diff($ccPlaylists); + + + $this->ccPlaylistsScheduledForDeletion = $ccPlaylistsToDelete; + + foreach ($ccPlaylistsToDelete as $ccPlaylistRemoved) { + $ccPlaylistRemoved->setCcSubjs(null); + } + + $this->collCcPlaylists = null; + foreach ($ccPlaylists as $ccPlaylist) { + $this->addCcPlaylist($ccPlaylist); + } + + $this->collCcPlaylists = $ccPlaylists; + $this->collCcPlaylistsPartial = false; + + return $this; + } + + /** + * Returns the number of related CcPlaylist objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcPlaylist objects. + * @throws PropelException + */ + public function countCcPlaylists(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcPlaylistsPartial && !$this->isNew(); + if (null === $this->collCcPlaylists || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPlaylists) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcPlaylists()); + } + $query = CcPlaylistQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcSubjs($this) + ->count($con); + } + + return count($this->collCcPlaylists); + } + + /** + * Method called to associate a CcPlaylist object to this object + * through the CcPlaylist foreign key attribute. + * + * @param CcPlaylist $l CcPlaylist + * @return CcSubjs The current object (for fluent API support) + */ + public function addCcPlaylist(CcPlaylist $l) + { + if ($this->collCcPlaylists === null) { + $this->initCcPlaylists(); + $this->collCcPlaylistsPartial = true; + } + + if (!in_array($l, $this->collCcPlaylists->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcPlaylist($l); + + if ($this->ccPlaylistsScheduledForDeletion and $this->ccPlaylistsScheduledForDeletion->contains($l)) { + $this->ccPlaylistsScheduledForDeletion->remove($this->ccPlaylistsScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcPlaylist $ccPlaylist The ccPlaylist object to add. + */ + protected function doAddCcPlaylist($ccPlaylist) + { + $this->collCcPlaylists[]= $ccPlaylist; + $ccPlaylist->setCcSubjs($this); + } + + /** + * @param CcPlaylist $ccPlaylist The ccPlaylist object to remove. + * @return CcSubjs The current object (for fluent API support) + */ + public function removeCcPlaylist($ccPlaylist) + { + if ($this->getCcPlaylists()->contains($ccPlaylist)) { + $this->collCcPlaylists->remove($this->collCcPlaylists->search($ccPlaylist)); + if (null === $this->ccPlaylistsScheduledForDeletion) { + $this->ccPlaylistsScheduledForDeletion = clone $this->collCcPlaylists; + $this->ccPlaylistsScheduledForDeletion->clear(); + } + $this->ccPlaylistsScheduledForDeletion[]= $ccPlaylist; + $ccPlaylist->setCcSubjs(null); + } + + return $this; + } + + /** + * Clears out the collCcBlocks 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 CcSubjs The current object (for fluent API support) + * @see addCcBlocks() + */ + public function clearCcBlocks() + { + $this->collCcBlocks = null; // important to set this to null since that means it is uninitialized + $this->collCcBlocksPartial = null; + + return $this; + } + + /** + * reset is the collCcBlocks collection loaded partially + * + * @return void + */ + public function resetPartialCcBlocks($v = true) + { + $this->collCcBlocksPartial = $v; + } + + /** + * Initializes the collCcBlocks collection. + * + * By default this just sets the collCcBlocks collection to an empty array (like clearcollCcBlocks()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcBlocks($overrideExisting = true) + { + if (null !== $this->collCcBlocks && !$overrideExisting) { + return; + } + $this->collCcBlocks = new PropelObjectCollection(); + $this->collCcBlocks->setModel('CcBlock'); + } + + /** + * Gets an array of CcBlock 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 PropelObjectCollection|CcBlock[] List of CcBlock objects + * @throws PropelException + */ + public function getCcBlocks($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcBlocksPartial && !$this->isNew(); + if (null === $this->collCcBlocks || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcBlocks) { + // return empty collection + $this->initCcBlocks(); + } else { + $collCcBlocks = CcBlockQuery::create(null, $criteria) + ->filterByCcSubjs($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcBlocksPartial && count($collCcBlocks)) { + $this->initCcBlocks(false); + + foreach ($collCcBlocks as $obj) { + if (false == $this->collCcBlocks->contains($obj)) { + $this->collCcBlocks->append($obj); + } + } + + $this->collCcBlocksPartial = true; + } + + $collCcBlocks->getInternalIterator()->rewind(); + + return $collCcBlocks; + } + + if ($partial && $this->collCcBlocks) { + foreach ($this->collCcBlocks as $obj) { + if ($obj->isNew()) { + $collCcBlocks[] = $obj; + } + } + } + + $this->collCcBlocks = $collCcBlocks; + $this->collCcBlocksPartial = false; + } + } + + return $this->collCcBlocks; + } + + /** + * Sets a collection of CcBlock objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccBlocks A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcSubjs The current object (for fluent API support) + */ + public function setCcBlocks(PropelCollection $ccBlocks, PropelPDO $con = null) + { + $ccBlocksToDelete = $this->getCcBlocks(new Criteria(), $con)->diff($ccBlocks); + + + $this->ccBlocksScheduledForDeletion = $ccBlocksToDelete; + + foreach ($ccBlocksToDelete as $ccBlockRemoved) { + $ccBlockRemoved->setCcSubjs(null); + } + + $this->collCcBlocks = null; + foreach ($ccBlocks as $ccBlock) { + $this->addCcBlock($ccBlock); + } + + $this->collCcBlocks = $ccBlocks; + $this->collCcBlocksPartial = false; + + return $this; + } + + /** + * Returns the number of related CcBlock objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcBlock objects. + * @throws PropelException + */ + public function countCcBlocks(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcBlocksPartial && !$this->isNew(); + if (null === $this->collCcBlocks || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcBlocks) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcBlocks()); + } + $query = CcBlockQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcSubjs($this) + ->count($con); + } + + return count($this->collCcBlocks); + } + + /** + * Method called to associate a CcBlock object to this object + * through the CcBlock foreign key attribute. + * + * @param CcBlock $l CcBlock + * @return CcSubjs The current object (for fluent API support) + */ + public function addCcBlock(CcBlock $l) + { + if ($this->collCcBlocks === null) { + $this->initCcBlocks(); + $this->collCcBlocksPartial = true; + } + + if (!in_array($l, $this->collCcBlocks->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcBlock($l); + + if ($this->ccBlocksScheduledForDeletion and $this->ccBlocksScheduledForDeletion->contains($l)) { + $this->ccBlocksScheduledForDeletion->remove($this->ccBlocksScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcBlock $ccBlock The ccBlock object to add. + */ + protected function doAddCcBlock($ccBlock) + { + $this->collCcBlocks[]= $ccBlock; + $ccBlock->setCcSubjs($this); + } + + /** + * @param CcBlock $ccBlock The ccBlock object to remove. + * @return CcSubjs The current object (for fluent API support) + */ + public function removeCcBlock($ccBlock) + { + if ($this->getCcBlocks()->contains($ccBlock)) { + $this->collCcBlocks->remove($this->collCcBlocks->search($ccBlock)); + if (null === $this->ccBlocksScheduledForDeletion) { + $this->ccBlocksScheduledForDeletion = clone $this->collCcBlocks; + $this->ccBlocksScheduledForDeletion->clear(); + } + $this->ccBlocksScheduledForDeletion[]= $ccBlock; + $ccBlock->setCcSubjs(null); + } + + return $this; + } + + /** + * Clears out the collCcPrefs 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 CcSubjs The current object (for fluent API support) + * @see addCcPrefs() + */ + public function clearCcPrefs() + { + $this->collCcPrefs = null; // important to set this to null since that means it is uninitialized + $this->collCcPrefsPartial = null; + + return $this; + } + + /** + * reset is the collCcPrefs collection loaded partially + * + * @return void + */ + public function resetPartialCcPrefs($v = true) + { + $this->collCcPrefsPartial = $v; + } + + /** + * Initializes the collCcPrefs collection. + * + * By default this just sets the collCcPrefs collection to an empty array (like clearcollCcPrefs()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcPrefs($overrideExisting = true) + { + if (null !== $this->collCcPrefs && !$overrideExisting) { + return; + } + $this->collCcPrefs = new PropelObjectCollection(); + $this->collCcPrefs->setModel('CcPref'); + } + + /** + * Gets an array of CcPref 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 PropelObjectCollection|CcPref[] List of CcPref objects + * @throws PropelException + */ + public function getCcPrefs($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcPrefsPartial && !$this->isNew(); + if (null === $this->collCcPrefs || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPrefs) { + // return empty collection + $this->initCcPrefs(); + } else { + $collCcPrefs = CcPrefQuery::create(null, $criteria) + ->filterByCcSubjs($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcPrefsPartial && count($collCcPrefs)) { + $this->initCcPrefs(false); + + foreach ($collCcPrefs as $obj) { + if (false == $this->collCcPrefs->contains($obj)) { + $this->collCcPrefs->append($obj); + } + } + + $this->collCcPrefsPartial = true; + } + + $collCcPrefs->getInternalIterator()->rewind(); + + return $collCcPrefs; + } + + if ($partial && $this->collCcPrefs) { + foreach ($this->collCcPrefs as $obj) { + if ($obj->isNew()) { + $collCcPrefs[] = $obj; + } + } + } + + $this->collCcPrefs = $collCcPrefs; + $this->collCcPrefsPartial = false; + } + } + + return $this->collCcPrefs; + } + + /** + * Sets a collection of CcPref objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccPrefs A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcSubjs The current object (for fluent API support) + */ + public function setCcPrefs(PropelCollection $ccPrefs, PropelPDO $con = null) + { + $ccPrefsToDelete = $this->getCcPrefs(new Criteria(), $con)->diff($ccPrefs); + + + $this->ccPrefsScheduledForDeletion = $ccPrefsToDelete; + + foreach ($ccPrefsToDelete as $ccPrefRemoved) { + $ccPrefRemoved->setCcSubjs(null); + } + + $this->collCcPrefs = null; + foreach ($ccPrefs as $ccPref) { + $this->addCcPref($ccPref); + } + + $this->collCcPrefs = $ccPrefs; + $this->collCcPrefsPartial = false; + + return $this; + } + + /** + * Returns the number of related CcPref objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcPref objects. + * @throws PropelException + */ + public function countCcPrefs(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcPrefsPartial && !$this->isNew(); + if (null === $this->collCcPrefs || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcPrefs) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcPrefs()); + } + $query = CcPrefQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcSubjs($this) + ->count($con); + } + + return count($this->collCcPrefs); + } + + /** + * Method called to associate a CcPref object to this object + * through the CcPref foreign key attribute. + * + * @param CcPref $l CcPref + * @return CcSubjs The current object (for fluent API support) + */ + public function addCcPref(CcPref $l) + { + if ($this->collCcPrefs === null) { + $this->initCcPrefs(); + $this->collCcPrefsPartial = true; + } + + if (!in_array($l, $this->collCcPrefs->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcPref($l); + + if ($this->ccPrefsScheduledForDeletion and $this->ccPrefsScheduledForDeletion->contains($l)) { + $this->ccPrefsScheduledForDeletion->remove($this->ccPrefsScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcPref $ccPref The ccPref object to add. + */ + protected function doAddCcPref($ccPref) + { + $this->collCcPrefs[]= $ccPref; + $ccPref->setCcSubjs($this); + } + + /** + * @param CcPref $ccPref The ccPref object to remove. + * @return CcSubjs The current object (for fluent API support) + */ + public function removeCcPref($ccPref) + { + if ($this->getCcPrefs()->contains($ccPref)) { + $this->collCcPrefs->remove($this->collCcPrefs->search($ccPref)); + if (null === $this->ccPrefsScheduledForDeletion) { + $this->ccPrefsScheduledForDeletion = clone $this->collCcPrefs; + $this->ccPrefsScheduledForDeletion->clear(); + } + $this->ccPrefsScheduledForDeletion[]= $ccPref; + $ccPref->setCcSubjs(null); + } + + return $this; + } + + /** + * Clears out the collCcSesss 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 CcSubjs The current object (for fluent API support) + * @see addCcSesss() + */ + public function clearCcSesss() + { + $this->collCcSesss = null; // important to set this to null since that means it is uninitialized + $this->collCcSesssPartial = null; + + return $this; + } + + /** + * reset is the collCcSesss collection loaded partially + * + * @return void + */ + public function resetPartialCcSesss($v = true) + { + $this->collCcSesssPartial = $v; + } + + /** + * Initializes the collCcSesss collection. + * + * By default this just sets the collCcSesss collection to an empty array (like clearcollCcSesss()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcSesss($overrideExisting = true) + { + if (null !== $this->collCcSesss && !$overrideExisting) { + return; + } + $this->collCcSesss = new PropelObjectCollection(); + $this->collCcSesss->setModel('CcSess'); + } + + /** + * Gets an array of CcSess 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 PropelObjectCollection|CcSess[] List of CcSess objects + * @throws PropelException + */ + public function getCcSesss($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcSesssPartial && !$this->isNew(); + if (null === $this->collCcSesss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcSesss) { + // return empty collection + $this->initCcSesss(); + } else { + $collCcSesss = CcSessQuery::create(null, $criteria) + ->filterByCcSubjs($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcSesssPartial && count($collCcSesss)) { + $this->initCcSesss(false); + + foreach ($collCcSesss as $obj) { + if (false == $this->collCcSesss->contains($obj)) { + $this->collCcSesss->append($obj); + } + } + + $this->collCcSesssPartial = true; + } + + $collCcSesss->getInternalIterator()->rewind(); + + return $collCcSesss; + } + + if ($partial && $this->collCcSesss) { + foreach ($this->collCcSesss as $obj) { + if ($obj->isNew()) { + $collCcSesss[] = $obj; + } + } + } + + $this->collCcSesss = $collCcSesss; + $this->collCcSesssPartial = false; + } + } + + return $this->collCcSesss; + } + + /** + * Sets a collection of CcSess objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccSesss A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcSubjs The current object (for fluent API support) + */ + public function setCcSesss(PropelCollection $ccSesss, PropelPDO $con = null) + { + $ccSesssToDelete = $this->getCcSesss(new Criteria(), $con)->diff($ccSesss); + + + $this->ccSesssScheduledForDeletion = $ccSesssToDelete; + + foreach ($ccSesssToDelete as $ccSessRemoved) { + $ccSessRemoved->setCcSubjs(null); + } + + $this->collCcSesss = null; + foreach ($ccSesss as $ccSess) { + $this->addCcSess($ccSess); + } + + $this->collCcSesss = $ccSesss; + $this->collCcSesssPartial = false; + + return $this; + } + + /** + * Returns the number of related CcSess objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcSess objects. + * @throws PropelException + */ + public function countCcSesss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcSesssPartial && !$this->isNew(); + if (null === $this->collCcSesss || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcSesss) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcSesss()); + } + $query = CcSessQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcSubjs($this) + ->count($con); + } + + return count($this->collCcSesss); + } + + /** + * Method called to associate a CcSess object to this object + * through the CcSess foreign key attribute. + * + * @param CcSess $l CcSess + * @return CcSubjs The current object (for fluent API support) + */ + public function addCcSess(CcSess $l) + { + if ($this->collCcSesss === null) { + $this->initCcSesss(); + $this->collCcSesssPartial = true; + } + + if (!in_array($l, $this->collCcSesss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcSess($l); + + if ($this->ccSesssScheduledForDeletion and $this->ccSesssScheduledForDeletion->contains($l)) { + $this->ccSesssScheduledForDeletion->remove($this->ccSesssScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcSess $ccSess The ccSess object to add. + */ + protected function doAddCcSess($ccSess) + { + $this->collCcSesss[]= $ccSess; + $ccSess->setCcSubjs($this); + } + + /** + * @param CcSess $ccSess The ccSess object to remove. + * @return CcSubjs The current object (for fluent API support) + */ + public function removeCcSess($ccSess) + { + if ($this->getCcSesss()->contains($ccSess)) { + $this->collCcSesss->remove($this->collCcSesss->search($ccSess)); + if (null === $this->ccSesssScheduledForDeletion) { + $this->ccSesssScheduledForDeletion = clone $this->collCcSesss; + $this->ccSesssScheduledForDeletion->clear(); + } + $this->ccSesssScheduledForDeletion[]= $ccSess; + $ccSess->setCcSubjs(null); + } + + return $this; + } + + /** + * Clears out the collCcSubjsTokens 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 CcSubjs The current object (for fluent API support) + * @see addCcSubjsTokens() + */ + public function clearCcSubjsTokens() + { + $this->collCcSubjsTokens = null; // important to set this to null since that means it is uninitialized + $this->collCcSubjsTokensPartial = null; + + return $this; + } + + /** + * reset is the collCcSubjsTokens collection loaded partially + * + * @return void + */ + public function resetPartialCcSubjsTokens($v = true) + { + $this->collCcSubjsTokensPartial = $v; + } + + /** + * Initializes the collCcSubjsTokens collection. + * + * By default this just sets the collCcSubjsTokens collection to an empty array (like clearcollCcSubjsTokens()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcSubjsTokens($overrideExisting = true) + { + if (null !== $this->collCcSubjsTokens && !$overrideExisting) { + return; + } + $this->collCcSubjsTokens = new PropelObjectCollection(); + $this->collCcSubjsTokens->setModel('CcSubjsToken'); + } + + /** + * Gets an array of CcSubjsToken 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 PropelObjectCollection|CcSubjsToken[] List of CcSubjsToken objects + * @throws PropelException + */ + public function getCcSubjsTokens($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcSubjsTokensPartial && !$this->isNew(); + if (null === $this->collCcSubjsTokens || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcSubjsTokens) { + // return empty collection + $this->initCcSubjsTokens(); + } else { + $collCcSubjsTokens = CcSubjsTokenQuery::create(null, $criteria) + ->filterByCcSubjs($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcSubjsTokensPartial && count($collCcSubjsTokens)) { + $this->initCcSubjsTokens(false); + + foreach ($collCcSubjsTokens as $obj) { + if (false == $this->collCcSubjsTokens->contains($obj)) { + $this->collCcSubjsTokens->append($obj); + } + } + + $this->collCcSubjsTokensPartial = true; + } + + $collCcSubjsTokens->getInternalIterator()->rewind(); + + return $collCcSubjsTokens; + } + + if ($partial && $this->collCcSubjsTokens) { + foreach ($this->collCcSubjsTokens as $obj) { + if ($obj->isNew()) { + $collCcSubjsTokens[] = $obj; + } + } + } + + $this->collCcSubjsTokens = $collCcSubjsTokens; + $this->collCcSubjsTokensPartial = false; + } + } + + return $this->collCcSubjsTokens; + } + + /** + * Sets a collection of CcSubjsToken objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccSubjsTokens A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcSubjs The current object (for fluent API support) + */ + public function setCcSubjsTokens(PropelCollection $ccSubjsTokens, PropelPDO $con = null) + { + $ccSubjsTokensToDelete = $this->getCcSubjsTokens(new Criteria(), $con)->diff($ccSubjsTokens); + + + $this->ccSubjsTokensScheduledForDeletion = $ccSubjsTokensToDelete; + + foreach ($ccSubjsTokensToDelete as $ccSubjsTokenRemoved) { + $ccSubjsTokenRemoved->setCcSubjs(null); + } + + $this->collCcSubjsTokens = null; + foreach ($ccSubjsTokens as $ccSubjsToken) { + $this->addCcSubjsToken($ccSubjsToken); + } + + $this->collCcSubjsTokens = $ccSubjsTokens; + $this->collCcSubjsTokensPartial = false; + + return $this; + } + + /** + * Returns the number of related CcSubjsToken objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcSubjsToken objects. + * @throws PropelException + */ + public function countCcSubjsTokens(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcSubjsTokensPartial && !$this->isNew(); + if (null === $this->collCcSubjsTokens || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcSubjsTokens) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcSubjsTokens()); + } + $query = CcSubjsTokenQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcSubjs($this) + ->count($con); + } + + return count($this->collCcSubjsTokens); + } + + /** + * Method called to associate a CcSubjsToken object to this object + * through the CcSubjsToken foreign key attribute. + * + * @param CcSubjsToken $l CcSubjsToken + * @return CcSubjs The current object (for fluent API support) + */ + public function addCcSubjsToken(CcSubjsToken $l) + { + if ($this->collCcSubjsTokens === null) { + $this->initCcSubjsTokens(); + $this->collCcSubjsTokensPartial = true; + } + + if (!in_array($l, $this->collCcSubjsTokens->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcSubjsToken($l); + + if ($this->ccSubjsTokensScheduledForDeletion and $this->ccSubjsTokensScheduledForDeletion->contains($l)) { + $this->ccSubjsTokensScheduledForDeletion->remove($this->ccSubjsTokensScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcSubjsToken $ccSubjsToken The ccSubjsToken object to add. + */ + protected function doAddCcSubjsToken($ccSubjsToken) + { + $this->collCcSubjsTokens[]= $ccSubjsToken; + $ccSubjsToken->setCcSubjs($this); + } + + /** + * @param CcSubjsToken $ccSubjsToken The ccSubjsToken object to remove. + * @return CcSubjs The current object (for fluent API support) + */ + public function removeCcSubjsToken($ccSubjsToken) + { + if ($this->getCcSubjsTokens()->contains($ccSubjsToken)) { + $this->collCcSubjsTokens->remove($this->collCcSubjsTokens->search($ccSubjsToken)); + if (null === $this->ccSubjsTokensScheduledForDeletion) { + $this->ccSubjsTokensScheduledForDeletion = clone $this->collCcSubjsTokens; + $this->ccSubjsTokensScheduledForDeletion->clear(); + } + $this->ccSubjsTokensScheduledForDeletion[]= clone $ccSubjsToken; + $ccSubjsToken->setCcSubjs(null); + } + + return $this; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->login = null; + $this->pass = null; + $this->type = null; + $this->first_name = null; + $this->last_name = null; + $this->lastlogin = null; + $this->lastfail = null; + $this->skype_contact = null; + $this->jabber_contact = null; + $this->email = null; + $this->cell_phone = null; + $this->login_attempts = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->collCcFilessRelatedByDbOwnerId) { + foreach ($this->collCcFilessRelatedByDbOwnerId as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcFilessRelatedByDbEditedby) { + foreach ($this->collCcFilessRelatedByDbEditedby as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcPermss) { + foreach ($this->collCcPermss as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcShowHostss) { + foreach ($this->collCcShowHostss as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcPlaylists) { + foreach ($this->collCcPlaylists as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcBlocks) { + foreach ($this->collCcBlocks as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcPrefs) { + foreach ($this->collCcPrefs as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcSesss) { + foreach ($this->collCcSesss as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCcSubjsTokens) { + foreach ($this->collCcSubjsTokens as $o) { + $o->clearAllReferences($deep); + } + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + if ($this->collCcFilessRelatedByDbOwnerId instanceof PropelCollection) { + $this->collCcFilessRelatedByDbOwnerId->clearIterator(); + } + $this->collCcFilessRelatedByDbOwnerId = null; + if ($this->collCcFilessRelatedByDbEditedby instanceof PropelCollection) { + $this->collCcFilessRelatedByDbEditedby->clearIterator(); + } + $this->collCcFilessRelatedByDbEditedby = null; + if ($this->collCcPermss instanceof PropelCollection) { + $this->collCcPermss->clearIterator(); + } + $this->collCcPermss = null; + if ($this->collCcShowHostss instanceof PropelCollection) { + $this->collCcShowHostss->clearIterator(); + } + $this->collCcShowHostss = null; + if ($this->collCcPlaylists instanceof PropelCollection) { + $this->collCcPlaylists->clearIterator(); + } + $this->collCcPlaylists = null; + if ($this->collCcBlocks instanceof PropelCollection) { + $this->collCcBlocks->clearIterator(); + } + $this->collCcBlocks = null; + if ($this->collCcPrefs instanceof PropelCollection) { + $this->collCcPrefs->clearIterator(); + } + $this->collCcPrefs = null; + if ($this->collCcSesss instanceof PropelCollection) { + $this->collCcSesss->clearIterator(); + } + $this->collCcSesss = null; + if ($this->collCcSubjsTokens instanceof PropelCollection) { + $this->collCcSubjsTokens->clearIterator(); + } + $this->collCcSubjsTokens = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcSubjsPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcSubjsPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcSubjsPeer.php index ad60edbb48..f886a27b3d 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcSubjsPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcSubjsPeer.php @@ -4,808 +4,830 @@ /** * Base static class for performing query and update operations on the 'cc_subjs' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcSubjsPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_subjs'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcSubjs'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcSubjs'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcSubjsTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 13; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_subjs.ID'; - - /** the column name for the LOGIN field */ - const LOGIN = 'cc_subjs.LOGIN'; - - /** the column name for the PASS field */ - const PASS = 'cc_subjs.PASS'; - - /** the column name for the TYPE field */ - const TYPE = 'cc_subjs.TYPE'; - - /** the column name for the FIRST_NAME field */ - const FIRST_NAME = 'cc_subjs.FIRST_NAME'; - - /** the column name for the LAST_NAME field */ - const LAST_NAME = 'cc_subjs.LAST_NAME'; - - /** the column name for the LASTLOGIN field */ - const LASTLOGIN = 'cc_subjs.LASTLOGIN'; - - /** the column name for the LASTFAIL field */ - const LASTFAIL = 'cc_subjs.LASTFAIL'; - - /** the column name for the SKYPE_CONTACT field */ - const SKYPE_CONTACT = 'cc_subjs.SKYPE_CONTACT'; - - /** the column name for the JABBER_CONTACT field */ - const JABBER_CONTACT = 'cc_subjs.JABBER_CONTACT'; - - /** the column name for the EMAIL field */ - const EMAIL = 'cc_subjs.EMAIL'; - - /** the column name for the CELL_PHONE field */ - const CELL_PHONE = 'cc_subjs.CELL_PHONE'; - - /** the column name for the LOGIN_ATTEMPTS field */ - const LOGIN_ATTEMPTS = 'cc_subjs.LOGIN_ATTEMPTS'; - - /** - * An identiy map to hold any loaded instances of CcSubjs objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcSubjs[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbLogin', 'DbPass', 'DbType', 'DbFirstName', 'DbLastName', 'DbLastlogin', 'DbLastfail', 'DbSkypeContact', 'DbJabberContact', 'DbEmail', 'DbCellPhone', 'DbLoginAttempts', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbLogin', 'dbPass', 'dbType', 'dbFirstName', 'dbLastName', 'dbLastlogin', 'dbLastfail', 'dbSkypeContact', 'dbJabberContact', 'dbEmail', 'dbCellPhone', 'dbLoginAttempts', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::LOGIN, self::PASS, self::TYPE, self::FIRST_NAME, self::LAST_NAME, self::LASTLOGIN, self::LASTFAIL, self::SKYPE_CONTACT, self::JABBER_CONTACT, self::EMAIL, self::CELL_PHONE, self::LOGIN_ATTEMPTS, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'LOGIN', 'PASS', 'TYPE', 'FIRST_NAME', 'LAST_NAME', 'LASTLOGIN', 'LASTFAIL', 'SKYPE_CONTACT', 'JABBER_CONTACT', 'EMAIL', 'CELL_PHONE', 'LOGIN_ATTEMPTS', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'login', 'pass', 'type', 'first_name', 'last_name', 'lastlogin', 'lastfail', 'skype_contact', 'jabber_contact', 'email', 'cell_phone', 'login_attempts', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbLogin' => 1, 'DbPass' => 2, 'DbType' => 3, 'DbFirstName' => 4, 'DbLastName' => 5, 'DbLastlogin' => 6, 'DbLastfail' => 7, 'DbSkypeContact' => 8, 'DbJabberContact' => 9, 'DbEmail' => 10, 'DbCellPhone' => 11, 'DbLoginAttempts' => 12, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbLogin' => 1, 'dbPass' => 2, 'dbType' => 3, 'dbFirstName' => 4, 'dbLastName' => 5, 'dbLastlogin' => 6, 'dbLastfail' => 7, 'dbSkypeContact' => 8, 'dbJabberContact' => 9, 'dbEmail' => 10, 'dbCellPhone' => 11, 'dbLoginAttempts' => 12, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::LOGIN => 1, self::PASS => 2, self::TYPE => 3, self::FIRST_NAME => 4, self::LAST_NAME => 5, self::LASTLOGIN => 6, self::LASTFAIL => 7, self::SKYPE_CONTACT => 8, self::JABBER_CONTACT => 9, self::EMAIL => 10, self::CELL_PHONE => 11, self::LOGIN_ATTEMPTS => 12, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'LOGIN' => 1, 'PASS' => 2, 'TYPE' => 3, 'FIRST_NAME' => 4, 'LAST_NAME' => 5, 'LASTLOGIN' => 6, 'LASTFAIL' => 7, 'SKYPE_CONTACT' => 8, 'JABBER_CONTACT' => 9, 'EMAIL' => 10, 'CELL_PHONE' => 11, 'LOGIN_ATTEMPTS' => 12, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'login' => 1, 'pass' => 2, 'type' => 3, 'first_name' => 4, 'last_name' => 5, 'lastlogin' => 6, 'lastfail' => 7, 'skype_contact' => 8, 'jabber_contact' => 9, 'email' => 10, 'cell_phone' => 11, 'login_attempts' => 12, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcSubjsPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcSubjsPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcSubjsPeer::ID); - $criteria->addSelectColumn(CcSubjsPeer::LOGIN); - $criteria->addSelectColumn(CcSubjsPeer::PASS); - $criteria->addSelectColumn(CcSubjsPeer::TYPE); - $criteria->addSelectColumn(CcSubjsPeer::FIRST_NAME); - $criteria->addSelectColumn(CcSubjsPeer::LAST_NAME); - $criteria->addSelectColumn(CcSubjsPeer::LASTLOGIN); - $criteria->addSelectColumn(CcSubjsPeer::LASTFAIL); - $criteria->addSelectColumn(CcSubjsPeer::SKYPE_CONTACT); - $criteria->addSelectColumn(CcSubjsPeer::JABBER_CONTACT); - $criteria->addSelectColumn(CcSubjsPeer::EMAIL); - $criteria->addSelectColumn(CcSubjsPeer::CELL_PHONE); - $criteria->addSelectColumn(CcSubjsPeer::LOGIN_ATTEMPTS); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.LOGIN'); - $criteria->addSelectColumn($alias . '.PASS'); - $criteria->addSelectColumn($alias . '.TYPE'); - $criteria->addSelectColumn($alias . '.FIRST_NAME'); - $criteria->addSelectColumn($alias . '.LAST_NAME'); - $criteria->addSelectColumn($alias . '.LASTLOGIN'); - $criteria->addSelectColumn($alias . '.LASTFAIL'); - $criteria->addSelectColumn($alias . '.SKYPE_CONTACT'); - $criteria->addSelectColumn($alias . '.JABBER_CONTACT'); - $criteria->addSelectColumn($alias . '.EMAIL'); - $criteria->addSelectColumn($alias . '.CELL_PHONE'); - $criteria->addSelectColumn($alias . '.LOGIN_ATTEMPTS'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSubjsPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSubjsPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcSubjs - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcSubjsPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcSubjsPeer::populateObjects(CcSubjsPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcSubjsPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcSubjs $value A CcSubjs object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcSubjs $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcSubjs object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcSubjs) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcSubjs object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcSubjs Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_subjs - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - // Invalidate objects in CcPermsPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcPermsPeer::clearInstancePool(); - // Invalidate objects in CcShowHostsPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcShowHostsPeer::clearInstancePool(); - // Invalidate objects in CcPlaylistPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcPlaylistPeer::clearInstancePool(); - // Invalidate objects in CcBlockPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcBlockPeer::clearInstancePool(); - // Invalidate objects in CcPrefPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcPrefPeer::clearInstancePool(); - // Invalidate objects in CcSessPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcSessPeer::clearInstancePool(); - // Invalidate objects in CcSubjsTokenPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcSubjsTokenPeer::clearInstancePool(); - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcSubjsPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcSubjsPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcSubjsPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcSubjsPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcSubjs object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcSubjsPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcSubjsPeer::NUM_COLUMNS; - } else { - $cls = CcSubjsPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcSubjsPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcSubjsPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcSubjsPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcSubjsTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcSubjsPeer::CLASS_DEFAULT : CcSubjsPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcSubjs or Criteria object. - * - * @param mixed $values Criteria or CcSubjs object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcSubjs object - } - - if ($criteria->containsKey(CcSubjsPeer::ID) && $criteria->keyContainsValue(CcSubjsPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcSubjsPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcSubjs or Criteria object. - * - * @param mixed $values Criteria or CcSubjs object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcSubjsPeer::ID); - $value = $criteria->remove(CcSubjsPeer::ID); - if ($value) { - $selectCriteria->add(CcSubjsPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcSubjsPeer::TABLE_NAME); - } - - } else { // $values is CcSubjs object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_subjs table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcSubjsPeer::TABLE_NAME, $con, CcSubjsPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcSubjsPeer::clearInstancePool(); - CcSubjsPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcSubjs or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcSubjs object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcSubjsPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcSubjs) { // it's a model object - // invalidate the cache for this single object - CcSubjsPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcSubjsPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcSubjsPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcSubjsPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcSubjs object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcSubjs $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcSubjs $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcSubjsPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcSubjsPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcSubjsPeer::DATABASE_NAME, CcSubjsPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcSubjs - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcSubjsPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcSubjsPeer::DATABASE_NAME); - $criteria->add(CcSubjsPeer::ID, $pk); - - $v = CcSubjsPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcSubjsPeer::DATABASE_NAME); - $criteria->add(CcSubjsPeer::ID, $pks, Criteria::IN); - $objs = CcSubjsPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcSubjsPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_subjs'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcSubjs'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcSubjsTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 13; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 13; + + /** the column name for the id field */ + const ID = 'cc_subjs.id'; + + /** the column name for the login field */ + const LOGIN = 'cc_subjs.login'; + + /** the column name for the pass field */ + const PASS = 'cc_subjs.pass'; + + /** the column name for the type field */ + const TYPE = 'cc_subjs.type'; + + /** the column name for the first_name field */ + const FIRST_NAME = 'cc_subjs.first_name'; + + /** the column name for the last_name field */ + const LAST_NAME = 'cc_subjs.last_name'; + + /** the column name for the lastlogin field */ + const LASTLOGIN = 'cc_subjs.lastlogin'; + + /** the column name for the lastfail field */ + const LASTFAIL = 'cc_subjs.lastfail'; + + /** the column name for the skype_contact field */ + const SKYPE_CONTACT = 'cc_subjs.skype_contact'; + + /** the column name for the jabber_contact field */ + const JABBER_CONTACT = 'cc_subjs.jabber_contact'; + + /** the column name for the email field */ + const EMAIL = 'cc_subjs.email'; + + /** the column name for the cell_phone field */ + const CELL_PHONE = 'cc_subjs.cell_phone'; + + /** the column name for the login_attempts field */ + const LOGIN_ATTEMPTS = 'cc_subjs.login_attempts'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcSubjs objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcSubjs[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcSubjsPeer::$fieldNames[CcSubjsPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbLogin', 'DbPass', 'DbType', 'DbFirstName', 'DbLastName', 'DbLastlogin', 'DbLastfail', 'DbSkypeContact', 'DbJabberContact', 'DbEmail', 'DbCellPhone', 'DbLoginAttempts', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbLogin', 'dbPass', 'dbType', 'dbFirstName', 'dbLastName', 'dbLastlogin', 'dbLastfail', 'dbSkypeContact', 'dbJabberContact', 'dbEmail', 'dbCellPhone', 'dbLoginAttempts', ), + BasePeer::TYPE_COLNAME => array (CcSubjsPeer::ID, CcSubjsPeer::LOGIN, CcSubjsPeer::PASS, CcSubjsPeer::TYPE, CcSubjsPeer::FIRST_NAME, CcSubjsPeer::LAST_NAME, CcSubjsPeer::LASTLOGIN, CcSubjsPeer::LASTFAIL, CcSubjsPeer::SKYPE_CONTACT, CcSubjsPeer::JABBER_CONTACT, CcSubjsPeer::EMAIL, CcSubjsPeer::CELL_PHONE, CcSubjsPeer::LOGIN_ATTEMPTS, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'LOGIN', 'PASS', 'TYPE', 'FIRST_NAME', 'LAST_NAME', 'LASTLOGIN', 'LASTFAIL', 'SKYPE_CONTACT', 'JABBER_CONTACT', 'EMAIL', 'CELL_PHONE', 'LOGIN_ATTEMPTS', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'login', 'pass', 'type', 'first_name', 'last_name', 'lastlogin', 'lastfail', 'skype_contact', 'jabber_contact', 'email', 'cell_phone', 'login_attempts', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcSubjsPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbLogin' => 1, 'DbPass' => 2, 'DbType' => 3, 'DbFirstName' => 4, 'DbLastName' => 5, 'DbLastlogin' => 6, 'DbLastfail' => 7, 'DbSkypeContact' => 8, 'DbJabberContact' => 9, 'DbEmail' => 10, 'DbCellPhone' => 11, 'DbLoginAttempts' => 12, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbLogin' => 1, 'dbPass' => 2, 'dbType' => 3, 'dbFirstName' => 4, 'dbLastName' => 5, 'dbLastlogin' => 6, 'dbLastfail' => 7, 'dbSkypeContact' => 8, 'dbJabberContact' => 9, 'dbEmail' => 10, 'dbCellPhone' => 11, 'dbLoginAttempts' => 12, ), + BasePeer::TYPE_COLNAME => array (CcSubjsPeer::ID => 0, CcSubjsPeer::LOGIN => 1, CcSubjsPeer::PASS => 2, CcSubjsPeer::TYPE => 3, CcSubjsPeer::FIRST_NAME => 4, CcSubjsPeer::LAST_NAME => 5, CcSubjsPeer::LASTLOGIN => 6, CcSubjsPeer::LASTFAIL => 7, CcSubjsPeer::SKYPE_CONTACT => 8, CcSubjsPeer::JABBER_CONTACT => 9, CcSubjsPeer::EMAIL => 10, CcSubjsPeer::CELL_PHONE => 11, CcSubjsPeer::LOGIN_ATTEMPTS => 12, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'LOGIN' => 1, 'PASS' => 2, 'TYPE' => 3, 'FIRST_NAME' => 4, 'LAST_NAME' => 5, 'LASTLOGIN' => 6, 'LASTFAIL' => 7, 'SKYPE_CONTACT' => 8, 'JABBER_CONTACT' => 9, 'EMAIL' => 10, 'CELL_PHONE' => 11, 'LOGIN_ATTEMPTS' => 12, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'login' => 1, 'pass' => 2, 'type' => 3, 'first_name' => 4, 'last_name' => 5, 'lastlogin' => 6, 'lastfail' => 7, 'skype_contact' => 8, 'jabber_contact' => 9, 'email' => 10, 'cell_phone' => 11, 'login_attempts' => 12, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcSubjsPeer::getFieldNames($toType); + $key = isset(CcSubjsPeer::$fieldKeys[$fromType][$name]) ? CcSubjsPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcSubjsPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcSubjsPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcSubjsPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcSubjsPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcSubjsPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcSubjsPeer::ID); + $criteria->addSelectColumn(CcSubjsPeer::LOGIN); + $criteria->addSelectColumn(CcSubjsPeer::PASS); + $criteria->addSelectColumn(CcSubjsPeer::TYPE); + $criteria->addSelectColumn(CcSubjsPeer::FIRST_NAME); + $criteria->addSelectColumn(CcSubjsPeer::LAST_NAME); + $criteria->addSelectColumn(CcSubjsPeer::LASTLOGIN); + $criteria->addSelectColumn(CcSubjsPeer::LASTFAIL); + $criteria->addSelectColumn(CcSubjsPeer::SKYPE_CONTACT); + $criteria->addSelectColumn(CcSubjsPeer::JABBER_CONTACT); + $criteria->addSelectColumn(CcSubjsPeer::EMAIL); + $criteria->addSelectColumn(CcSubjsPeer::CELL_PHONE); + $criteria->addSelectColumn(CcSubjsPeer::LOGIN_ATTEMPTS); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.login'); + $criteria->addSelectColumn($alias . '.pass'); + $criteria->addSelectColumn($alias . '.type'); + $criteria->addSelectColumn($alias . '.first_name'); + $criteria->addSelectColumn($alias . '.last_name'); + $criteria->addSelectColumn($alias . '.lastlogin'); + $criteria->addSelectColumn($alias . '.lastfail'); + $criteria->addSelectColumn($alias . '.skype_contact'); + $criteria->addSelectColumn($alias . '.jabber_contact'); + $criteria->addSelectColumn($alias . '.email'); + $criteria->addSelectColumn($alias . '.cell_phone'); + $criteria->addSelectColumn($alias . '.login_attempts'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSubjsPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSubjsPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcSubjsPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcSubjs + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcSubjsPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcSubjsPeer::populateObjects(CcSubjsPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcSubjsPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcSubjsPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcSubjs $obj A CcSubjs object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcSubjsPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcSubjs object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcSubjs) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcSubjs object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcSubjsPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcSubjs Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcSubjsPeer::$instances[$key])) { + return CcSubjsPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcSubjsPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcSubjsPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_subjs + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + // Invalidate objects in CcPermsPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcPermsPeer::clearInstancePool(); + // Invalidate objects in CcShowHostsPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcShowHostsPeer::clearInstancePool(); + // Invalidate objects in CcPlaylistPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcPlaylistPeer::clearInstancePool(); + // Invalidate objects in CcBlockPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcBlockPeer::clearInstancePool(); + // Invalidate objects in CcPrefPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcPrefPeer::clearInstancePool(); + // Invalidate objects in CcSessPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcSessPeer::clearInstancePool(); + // Invalidate objects in CcSubjsTokenPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcSubjsTokenPeer::clearInstancePool(); + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcSubjsPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcSubjsPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcSubjsPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcSubjsPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcSubjs object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcSubjsPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcSubjsPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcSubjsPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcSubjsPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcSubjsPeer::DATABASE_NAME)->getTable(CcSubjsPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcSubjsPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcSubjsPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcSubjsTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcSubjsPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcSubjs or Criteria object. + * + * @param mixed $values Criteria or CcSubjs object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcSubjs object + } + + if ($criteria->containsKey(CcSubjsPeer::ID) && $criteria->keyContainsValue(CcSubjsPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcSubjsPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcSubjsPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcSubjs or Criteria object. + * + * @param mixed $values Criteria or CcSubjs object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcSubjsPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcSubjsPeer::ID); + $value = $criteria->remove(CcSubjsPeer::ID); + if ($value) { + $selectCriteria->add(CcSubjsPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcSubjsPeer::TABLE_NAME); + } + + } else { // $values is CcSubjs object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcSubjsPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_subjs table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcSubjsPeer::TABLE_NAME, $con, CcSubjsPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcSubjsPeer::clearInstancePool(); + CcSubjsPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcSubjs or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcSubjs object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcSubjsPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcSubjs) { // it's a model object + // invalidate the cache for this single object + CcSubjsPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcSubjsPeer::DATABASE_NAME); + $criteria->add(CcSubjsPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcSubjsPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcSubjsPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcSubjsPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcSubjs object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcSubjs $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcSubjsPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcSubjsPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcSubjsPeer::DATABASE_NAME, CcSubjsPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcSubjs + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcSubjsPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcSubjsPeer::DATABASE_NAME); + $criteria->add(CcSubjsPeer::ID, $pk); + + $v = CcSubjsPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcSubjs[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcSubjsPeer::DATABASE_NAME); + $criteria->add(CcSubjsPeer::ID, $pks, Criteria::IN); + $objs = CcSubjsPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcSubjsPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcSubjsQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcSubjsQuery.php index 38703d2083..1416ec184c 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcSubjsQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcSubjsQuery.php @@ -4,1113 +4,1412 @@ /** * Base class that represents a query for the 'cc_subjs' table. * - * * - * @method CcSubjsQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcSubjsQuery orderByDbLogin($order = Criteria::ASC) Order by the login column - * @method CcSubjsQuery orderByDbPass($order = Criteria::ASC) Order by the pass column - * @method CcSubjsQuery orderByDbType($order = Criteria::ASC) Order by the type column - * @method CcSubjsQuery orderByDbFirstName($order = Criteria::ASC) Order by the first_name column - * @method CcSubjsQuery orderByDbLastName($order = Criteria::ASC) Order by the last_name column - * @method CcSubjsQuery orderByDbLastlogin($order = Criteria::ASC) Order by the lastlogin column - * @method CcSubjsQuery orderByDbLastfail($order = Criteria::ASC) Order by the lastfail column - * @method CcSubjsQuery orderByDbSkypeContact($order = Criteria::ASC) Order by the skype_contact column - * @method CcSubjsQuery orderByDbJabberContact($order = Criteria::ASC) Order by the jabber_contact column - * @method CcSubjsQuery orderByDbEmail($order = Criteria::ASC) Order by the email column - * @method CcSubjsQuery orderByDbCellPhone($order = Criteria::ASC) Order by the cell_phone column - * @method CcSubjsQuery orderByDbLoginAttempts($order = Criteria::ASC) Order by the login_attempts column * - * @method CcSubjsQuery groupByDbId() Group by the id column - * @method CcSubjsQuery groupByDbLogin() Group by the login column - * @method CcSubjsQuery groupByDbPass() Group by the pass column - * @method CcSubjsQuery groupByDbType() Group by the type column - * @method CcSubjsQuery groupByDbFirstName() Group by the first_name column - * @method CcSubjsQuery groupByDbLastName() Group by the last_name column - * @method CcSubjsQuery groupByDbLastlogin() Group by the lastlogin column - * @method CcSubjsQuery groupByDbLastfail() Group by the lastfail column - * @method CcSubjsQuery groupByDbSkypeContact() Group by the skype_contact column - * @method CcSubjsQuery groupByDbJabberContact() Group by the jabber_contact column - * @method CcSubjsQuery groupByDbEmail() Group by the email column - * @method CcSubjsQuery groupByDbCellPhone() Group by the cell_phone column - * @method CcSubjsQuery groupByDbLoginAttempts() Group by the login_attempts column + * @method CcSubjsQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcSubjsQuery orderByDbLogin($order = Criteria::ASC) Order by the login column + * @method CcSubjsQuery orderByDbPass($order = Criteria::ASC) Order by the pass column + * @method CcSubjsQuery orderByDbType($order = Criteria::ASC) Order by the type column + * @method CcSubjsQuery orderByDbFirstName($order = Criteria::ASC) Order by the first_name column + * @method CcSubjsQuery orderByDbLastName($order = Criteria::ASC) Order by the last_name column + * @method CcSubjsQuery orderByDbLastlogin($order = Criteria::ASC) Order by the lastlogin column + * @method CcSubjsQuery orderByDbLastfail($order = Criteria::ASC) Order by the lastfail column + * @method CcSubjsQuery orderByDbSkypeContact($order = Criteria::ASC) Order by the skype_contact column + * @method CcSubjsQuery orderByDbJabberContact($order = Criteria::ASC) Order by the jabber_contact column + * @method CcSubjsQuery orderByDbEmail($order = Criteria::ASC) Order by the email column + * @method CcSubjsQuery orderByDbCellPhone($order = Criteria::ASC) Order by the cell_phone column + * @method CcSubjsQuery orderByDbLoginAttempts($order = Criteria::ASC) Order by the login_attempts column * - * @method CcSubjsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @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 groupByDbId() Group by the id column + * @method CcSubjsQuery groupByDbLogin() Group by the login column + * @method CcSubjsQuery groupByDbPass() Group by the pass column + * @method CcSubjsQuery groupByDbType() Group by the type column + * @method CcSubjsQuery groupByDbFirstName() Group by the first_name column + * @method CcSubjsQuery groupByDbLastName() Group by the last_name column + * @method CcSubjsQuery groupByDbLastlogin() Group by the lastlogin column + * @method CcSubjsQuery groupByDbLastfail() Group by the lastfail column + * @method CcSubjsQuery groupByDbSkypeContact() Group by the skype_contact column + * @method CcSubjsQuery groupByDbJabberContact() Group by the jabber_contact column + * @method CcSubjsQuery groupByDbEmail() Group by the email column + * @method CcSubjsQuery groupByDbCellPhone() Group by the cell_phone column + * @method CcSubjsQuery groupByDbLoginAttempts() Group by the login_attempts column * - * @method CcSubjsQuery leftJoinCcFilesRelatedByDbOwnerId($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFilesRelatedByDbOwnerId relation - * @method CcSubjsQuery rightJoinCcFilesRelatedByDbOwnerId($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFilesRelatedByDbOwnerId relation - * @method CcSubjsQuery innerJoinCcFilesRelatedByDbOwnerId($relationAlias = '') Adds a INNER JOIN clause to the query using the CcFilesRelatedByDbOwnerId relation + * @method CcSubjsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @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 leftJoinCcFilesRelatedByDbEditedby($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFilesRelatedByDbEditedby relation - * @method CcSubjsQuery rightJoinCcFilesRelatedByDbEditedby($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFilesRelatedByDbEditedby relation - * @method CcSubjsQuery innerJoinCcFilesRelatedByDbEditedby($relationAlias = '') Adds a INNER JOIN clause to the query using the CcFilesRelatedByDbEditedby relation + * @method CcSubjsQuery leftJoinCcFilesRelatedByDbOwnerId($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcFilesRelatedByDbOwnerId relation + * @method CcSubjsQuery rightJoinCcFilesRelatedByDbOwnerId($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcFilesRelatedByDbOwnerId relation + * @method CcSubjsQuery innerJoinCcFilesRelatedByDbOwnerId($relationAlias = null) Adds a INNER JOIN clause to the query using the CcFilesRelatedByDbOwnerId relation * - * @method CcSubjsQuery leftJoinCcPerms($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPerms relation - * @method CcSubjsQuery rightJoinCcPerms($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPerms relation - * @method CcSubjsQuery innerJoinCcPerms($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPerms relation + * @method CcSubjsQuery leftJoinCcFilesRelatedByDbEditedby($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcFilesRelatedByDbEditedby relation + * @method CcSubjsQuery rightJoinCcFilesRelatedByDbEditedby($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcFilesRelatedByDbEditedby relation + * @method CcSubjsQuery innerJoinCcFilesRelatedByDbEditedby($relationAlias = null) Adds a INNER JOIN clause to the query using the CcFilesRelatedByDbEditedby relation * - * @method CcSubjsQuery leftJoinCcShowHosts($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShowHosts relation - * @method CcSubjsQuery rightJoinCcShowHosts($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShowHosts relation - * @method CcSubjsQuery innerJoinCcShowHosts($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShowHosts relation + * @method CcSubjsQuery leftJoinCcPerms($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcPerms relation + * @method CcSubjsQuery rightJoinCcPerms($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcPerms relation + * @method CcSubjsQuery innerJoinCcPerms($relationAlias = null) Adds a INNER JOIN clause to the query using the CcPerms relation * - * @method CcSubjsQuery leftJoinCcPlaylist($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPlaylist relation - * @method CcSubjsQuery rightJoinCcPlaylist($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPlaylist relation - * @method CcSubjsQuery innerJoinCcPlaylist($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPlaylist relation + * @method CcSubjsQuery leftJoinCcShowHosts($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcShowHosts relation + * @method CcSubjsQuery rightJoinCcShowHosts($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcShowHosts relation + * @method CcSubjsQuery innerJoinCcShowHosts($relationAlias = null) Adds a INNER JOIN clause to the query using the CcShowHosts relation * - * @method CcSubjsQuery leftJoinCcBlock($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcBlock relation - * @method CcSubjsQuery rightJoinCcBlock($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcBlock relation - * @method CcSubjsQuery innerJoinCcBlock($relationAlias = '') Adds a INNER JOIN clause to the query using the CcBlock relation + * @method CcSubjsQuery leftJoinCcPlaylist($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcPlaylist relation + * @method CcSubjsQuery rightJoinCcPlaylist($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcPlaylist relation + * @method CcSubjsQuery innerJoinCcPlaylist($relationAlias = null) Adds a INNER JOIN clause to the query using the CcPlaylist relation * - * @method CcSubjsQuery leftJoinCcPref($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPref relation - * @method CcSubjsQuery rightJoinCcPref($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPref relation - * @method CcSubjsQuery innerJoinCcPref($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPref relation + * @method CcSubjsQuery leftJoinCcBlock($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcBlock relation + * @method CcSubjsQuery rightJoinCcBlock($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcBlock relation + * @method CcSubjsQuery innerJoinCcBlock($relationAlias = null) Adds a INNER JOIN clause to the query using the CcBlock relation * - * @method CcSubjsQuery leftJoinCcSess($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSess relation - * @method CcSubjsQuery rightJoinCcSess($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSess relation - * @method CcSubjsQuery innerJoinCcSess($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSess relation + * @method CcSubjsQuery leftJoinCcPref($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcPref relation + * @method CcSubjsQuery rightJoinCcPref($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcPref relation + * @method CcSubjsQuery innerJoinCcPref($relationAlias = null) Adds a INNER JOIN clause to the query using the CcPref relation * - * @method CcSubjsQuery leftJoinCcSubjsToken($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSubjsToken relation - * @method CcSubjsQuery rightJoinCcSubjsToken($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSubjsToken relation - * @method CcSubjsQuery innerJoinCcSubjsToken($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSubjsToken relation + * @method CcSubjsQuery leftJoinCcSess($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSess relation + * @method CcSubjsQuery rightJoinCcSess($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSess relation + * @method CcSubjsQuery innerJoinCcSess($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSess relation * - * @method CcSubjs findOne(PropelPDO $con = null) Return the first CcSubjs matching the query - * @method CcSubjs findOneOrCreate(PropelPDO $con = null) Return the first CcSubjs matching the query, or a new CcSubjs object populated from the query conditions when no match is found + * @method CcSubjsQuery leftJoinCcSubjsToken($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSubjsToken relation + * @method CcSubjsQuery rightJoinCcSubjsToken($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSubjsToken relation + * @method CcSubjsQuery innerJoinCcSubjsToken($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSubjsToken relation * - * @method CcSubjs findOneByDbId(int $id) Return the first CcSubjs filtered by the id column - * @method CcSubjs findOneByDbLogin(string $login) Return the first CcSubjs filtered by the login column - * @method CcSubjs findOneByDbPass(string $pass) Return the first CcSubjs filtered by the pass column - * @method CcSubjs findOneByDbType(string $type) Return the first CcSubjs filtered by the type column - * @method CcSubjs findOneByDbFirstName(string $first_name) Return the first CcSubjs filtered by the first_name column - * @method CcSubjs findOneByDbLastName(string $last_name) Return the first CcSubjs filtered by the last_name column - * @method CcSubjs findOneByDbLastlogin(string $lastlogin) Return the first CcSubjs filtered by the lastlogin column - * @method CcSubjs findOneByDbLastfail(string $lastfail) Return the first CcSubjs filtered by the lastfail column - * @method CcSubjs findOneByDbSkypeContact(string $skype_contact) Return the first CcSubjs filtered by the skype_contact column - * @method CcSubjs findOneByDbJabberContact(string $jabber_contact) Return the first CcSubjs filtered by the jabber_contact column - * @method CcSubjs findOneByDbEmail(string $email) Return the first CcSubjs filtered by the email column - * @method CcSubjs findOneByDbCellPhone(string $cell_phone) Return the first CcSubjs filtered by the cell_phone column - * @method CcSubjs findOneByDbLoginAttempts(int $login_attempts) Return the first CcSubjs filtered by the login_attempts column + * @method CcSubjs findOne(PropelPDO $con = null) Return the first CcSubjs matching the query + * @method CcSubjs findOneOrCreate(PropelPDO $con = null) Return the first CcSubjs matching the query, or a new CcSubjs object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcSubjs objects filtered by the id column - * @method array findByDbLogin(string $login) Return CcSubjs objects filtered by the login column - * @method array findByDbPass(string $pass) Return CcSubjs objects filtered by the pass column - * @method array findByDbType(string $type) Return CcSubjs objects filtered by the type column - * @method array findByDbFirstName(string $first_name) Return CcSubjs objects filtered by the first_name column - * @method array findByDbLastName(string $last_name) Return CcSubjs objects filtered by the last_name column - * @method array findByDbLastlogin(string $lastlogin) Return CcSubjs objects filtered by the lastlogin column - * @method array findByDbLastfail(string $lastfail) Return CcSubjs objects filtered by the lastfail column - * @method array findByDbSkypeContact(string $skype_contact) Return CcSubjs objects filtered by the skype_contact column - * @method array findByDbJabberContact(string $jabber_contact) Return CcSubjs objects filtered by the jabber_contact column - * @method array findByDbEmail(string $email) Return CcSubjs objects filtered by the email column - * @method array findByDbCellPhone(string $cell_phone) Return CcSubjs objects filtered by the cell_phone column - * @method array findByDbLoginAttempts(int $login_attempts) Return CcSubjs objects filtered by the login_attempts column + * @method CcSubjs findOneByDbLogin(string $login) Return the first CcSubjs filtered by the login column + * @method CcSubjs findOneByDbPass(string $pass) Return the first CcSubjs filtered by the pass column + * @method CcSubjs findOneByDbType(string $type) Return the first CcSubjs filtered by the type column + * @method CcSubjs findOneByDbFirstName(string $first_name) Return the first CcSubjs filtered by the first_name column + * @method CcSubjs findOneByDbLastName(string $last_name) Return the first CcSubjs filtered by the last_name column + * @method CcSubjs findOneByDbLastlogin(string $lastlogin) Return the first CcSubjs filtered by the lastlogin column + * @method CcSubjs findOneByDbLastfail(string $lastfail) Return the first CcSubjs filtered by the lastfail column + * @method CcSubjs findOneByDbSkypeContact(string $skype_contact) Return the first CcSubjs filtered by the skype_contact column + * @method CcSubjs findOneByDbJabberContact(string $jabber_contact) Return the first CcSubjs filtered by the jabber_contact column + * @method CcSubjs findOneByDbEmail(string $email) Return the first CcSubjs filtered by the email column + * @method CcSubjs findOneByDbCellPhone(string $cell_phone) Return the first CcSubjs filtered by the cell_phone column + * @method CcSubjs findOneByDbLoginAttempts(int $login_attempts) Return the first CcSubjs filtered by the login_attempts column + * + * @method array findByDbId(int $id) Return CcSubjs objects filtered by the id column + * @method array findByDbLogin(string $login) Return CcSubjs objects filtered by the login column + * @method array findByDbPass(string $pass) Return CcSubjs objects filtered by the pass column + * @method array findByDbType(string $type) Return CcSubjs objects filtered by the type column + * @method array findByDbFirstName(string $first_name) Return CcSubjs objects filtered by the first_name column + * @method array findByDbLastName(string $last_name) Return CcSubjs objects filtered by the last_name column + * @method array findByDbLastlogin(string $lastlogin) Return CcSubjs objects filtered by the lastlogin column + * @method array findByDbLastfail(string $lastfail) Return CcSubjs objects filtered by the lastfail column + * @method array findByDbSkypeContact(string $skype_contact) Return CcSubjs objects filtered by the skype_contact column + * @method array findByDbJabberContact(string $jabber_contact) Return CcSubjs objects filtered by the jabber_contact column + * @method array findByDbEmail(string $email) Return CcSubjs objects filtered by the email column + * @method array findByDbCellPhone(string $cell_phone) Return CcSubjs objects filtered by the cell_phone column + * @method array findByDbLoginAttempts(int $login_attempts) Return CcSubjs objects filtered by the login_attempts column * * @package propel.generator.airtime.om */ abstract class BaseCcSubjsQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcSubjsQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcSubjs'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcSubjsQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcSubjsQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcSubjsQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcSubjsQuery) { + return $criteria; + } + $query = new CcSubjsQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcSubjs|CcSubjs[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcSubjsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcSubjsPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSubjs A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSubjs A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "login", "pass", "type", "first_name", "last_name", "lastlogin", "lastfail", "skype_contact", "jabber_contact", "email", "cell_phone", "login_attempts" FROM "cc_subjs" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcSubjs(); + $obj->hydrate($row); + CcSubjsPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSubjs|CcSubjs[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcSubjs[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcSubjsQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcSubjsPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcSubjsQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcSubjsPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSubjsQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcSubjsPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcSubjsPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSubjsPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the login column + * + * Example usage: + * + * $query->filterByDbLogin('fooValue'); // WHERE login = 'fooValue' + * $query->filterByDbLogin('%fooValue%'); // WHERE login LIKE '%fooValue%' + * + * + * @param string $dbLogin 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 CcSubjsQuery The current query, for fluid interface + */ + public function filterByDbLogin($dbLogin = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLogin)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLogin)) { + $dbLogin = str_replace('*', '%', $dbLogin); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSubjsPeer::LOGIN, $dbLogin, $comparison); + } + + /** + * Filter the query on the pass column + * + * Example usage: + * + * $query->filterByDbPass('fooValue'); // WHERE pass = 'fooValue' + * $query->filterByDbPass('%fooValue%'); // WHERE pass LIKE '%fooValue%' + * + * + * @param string $dbPass 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 CcSubjsQuery The current query, for fluid interface + */ + public function filterByDbPass($dbPass = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbPass)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbPass)) { + $dbPass = str_replace('*', '%', $dbPass); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSubjsPeer::PASS, $dbPass, $comparison); + } + + /** + * Filter the query on the type column + * + * Example usage: + * + * $query->filterByDbType('fooValue'); // WHERE type = 'fooValue' + * $query->filterByDbType('%fooValue%'); // WHERE type LIKE '%fooValue%' + * + * + * @param string $dbType 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 CcSubjsQuery The current query, for fluid interface + */ + public function filterByDbType($dbType = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbType)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbType)) { + $dbType = str_replace('*', '%', $dbType); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSubjsPeer::TYPE, $dbType, $comparison); + } + + /** + * Filter the query on the first_name column + * + * Example usage: + * + * $query->filterByDbFirstName('fooValue'); // WHERE first_name = 'fooValue' + * $query->filterByDbFirstName('%fooValue%'); // WHERE first_name LIKE '%fooValue%' + * + * + * @param string $dbFirstName 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 CcSubjsQuery The current query, for fluid interface + */ + public function filterByDbFirstName($dbFirstName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbFirstName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbFirstName)) { + $dbFirstName = str_replace('*', '%', $dbFirstName); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSubjsPeer::FIRST_NAME, $dbFirstName, $comparison); + } + + /** + * Filter the query on the last_name column + * + * Example usage: + * + * $query->filterByDbLastName('fooValue'); // WHERE last_name = 'fooValue' + * $query->filterByDbLastName('%fooValue%'); // WHERE last_name LIKE '%fooValue%' + * + * + * @param string $dbLastName 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 CcSubjsQuery The current query, for fluid interface + */ + public function filterByDbLastName($dbLastName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLastName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLastName)) { + $dbLastName = str_replace('*', '%', $dbLastName); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSubjsPeer::LAST_NAME, $dbLastName, $comparison); + } + + /** + * Filter the query on the lastlogin column + * + * Example usage: + * + * $query->filterByDbLastlogin('2011-03-14'); // WHERE lastlogin = '2011-03-14' + * $query->filterByDbLastlogin('now'); // WHERE lastlogin = '2011-03-14' + * $query->filterByDbLastlogin(array('max' => 'yesterday')); // WHERE lastlogin < '2011-03-13' + * + * + * @param mixed $dbLastlogin The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSubjsQuery The current query, for fluid interface + */ + public function filterByDbLastlogin($dbLastlogin = null, $comparison = null) + { + if (is_array($dbLastlogin)) { + $useMinMax = false; + if (isset($dbLastlogin['min'])) { + $this->addUsingAlias(CcSubjsPeer::LASTLOGIN, $dbLastlogin['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbLastlogin['max'])) { + $this->addUsingAlias(CcSubjsPeer::LASTLOGIN, $dbLastlogin['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSubjsPeer::LASTLOGIN, $dbLastlogin, $comparison); + } + + /** + * Filter the query on the lastfail column + * + * Example usage: + * + * $query->filterByDbLastfail('2011-03-14'); // WHERE lastfail = '2011-03-14' + * $query->filterByDbLastfail('now'); // WHERE lastfail = '2011-03-14' + * $query->filterByDbLastfail(array('max' => 'yesterday')); // WHERE lastfail < '2011-03-13' + * + * + * @param mixed $dbLastfail The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSubjsQuery The current query, for fluid interface + */ + public function filterByDbLastfail($dbLastfail = null, $comparison = null) + { + if (is_array($dbLastfail)) { + $useMinMax = false; + if (isset($dbLastfail['min'])) { + $this->addUsingAlias(CcSubjsPeer::LASTFAIL, $dbLastfail['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbLastfail['max'])) { + $this->addUsingAlias(CcSubjsPeer::LASTFAIL, $dbLastfail['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSubjsPeer::LASTFAIL, $dbLastfail, $comparison); + } + + /** + * Filter the query on the skype_contact column + * + * Example usage: + * + * $query->filterByDbSkypeContact('fooValue'); // WHERE skype_contact = 'fooValue' + * $query->filterByDbSkypeContact('%fooValue%'); // WHERE skype_contact LIKE '%fooValue%' + * + * + * @param string $dbSkypeContact 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 CcSubjsQuery The current query, for fluid interface + */ + public function filterByDbSkypeContact($dbSkypeContact = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbSkypeContact)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbSkypeContact)) { + $dbSkypeContact = str_replace('*', '%', $dbSkypeContact); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSubjsPeer::SKYPE_CONTACT, $dbSkypeContact, $comparison); + } + + /** + * Filter the query on the jabber_contact column + * + * Example usage: + * + * $query->filterByDbJabberContact('fooValue'); // WHERE jabber_contact = 'fooValue' + * $query->filterByDbJabberContact('%fooValue%'); // WHERE jabber_contact LIKE '%fooValue%' + * + * + * @param string $dbJabberContact 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 CcSubjsQuery The current query, for fluid interface + */ + public function filterByDbJabberContact($dbJabberContact = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbJabberContact)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbJabberContact)) { + $dbJabberContact = str_replace('*', '%', $dbJabberContact); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSubjsPeer::JABBER_CONTACT, $dbJabberContact, $comparison); + } + + /** + * Filter the query on the email column + * + * Example usage: + * + * $query->filterByDbEmail('fooValue'); // WHERE email = 'fooValue' + * $query->filterByDbEmail('%fooValue%'); // WHERE email LIKE '%fooValue%' + * + * + * @param string $dbEmail 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 CcSubjsQuery The current query, for fluid interface + */ + public function filterByDbEmail($dbEmail = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbEmail)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbEmail)) { + $dbEmail = str_replace('*', '%', $dbEmail); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSubjsPeer::EMAIL, $dbEmail, $comparison); + } + + /** + * Filter the query on the cell_phone column + * + * Example usage: + * + * $query->filterByDbCellPhone('fooValue'); // WHERE cell_phone = 'fooValue' + * $query->filterByDbCellPhone('%fooValue%'); // WHERE cell_phone LIKE '%fooValue%' + * + * + * @param string $dbCellPhone 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 CcSubjsQuery The current query, for fluid interface + */ + public function filterByDbCellPhone($dbCellPhone = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbCellPhone)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbCellPhone)) { + $dbCellPhone = str_replace('*', '%', $dbCellPhone); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSubjsPeer::CELL_PHONE, $dbCellPhone, $comparison); + } + + /** + * Filter the query on the login_attempts column + * + * Example usage: + * + * $query->filterByDbLoginAttempts(1234); // WHERE login_attempts = 1234 + * $query->filterByDbLoginAttempts(array(12, 34)); // WHERE login_attempts IN (12, 34) + * $query->filterByDbLoginAttempts(array('min' => 12)); // WHERE login_attempts >= 12 + * $query->filterByDbLoginAttempts(array('max' => 12)); // WHERE login_attempts <= 12 + * + * + * @param mixed $dbLoginAttempts The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSubjsQuery The current query, for fluid interface + */ + public function filterByDbLoginAttempts($dbLoginAttempts = null, $comparison = null) + { + if (is_array($dbLoginAttempts)) { + $useMinMax = false; + if (isset($dbLoginAttempts['min'])) { + $this->addUsingAlias(CcSubjsPeer::LOGIN_ATTEMPTS, $dbLoginAttempts['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbLoginAttempts['max'])) { + $this->addUsingAlias(CcSubjsPeer::LOGIN_ATTEMPTS, $dbLoginAttempts['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSubjsPeer::LOGIN_ATTEMPTS, $dbLoginAttempts, $comparison); + } + + /** + * Filter the query by a related CcFiles object + * + * @param CcFiles|PropelObjectCollection $ccFiles 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 + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcFilesRelatedByDbOwnerId($ccFiles, $comparison = null) + { + if ($ccFiles instanceof CcFiles) { + return $this + ->addUsingAlias(CcSubjsPeer::ID, $ccFiles->getDbOwnerId(), $comparison); + } elseif ($ccFiles instanceof PropelObjectCollection) { + return $this + ->useCcFilesRelatedByDbOwnerIdQuery() + ->filterByPrimaryKeys($ccFiles->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcFilesRelatedByDbOwnerId() only accepts arguments of type CcFiles or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcFilesRelatedByDbOwnerId 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 joinCcFilesRelatedByDbOwnerId($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcFilesRelatedByDbOwnerId'); + + // 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, 'CcFilesRelatedByDbOwnerId'); + } + + return $this; + } + + /** + * Use the CcFilesRelatedByDbOwnerId relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query + */ + public function useCcFilesRelatedByDbOwnerIdQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcFilesRelatedByDbOwnerId($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcFilesRelatedByDbOwnerId', 'CcFilesQuery'); + } + + /** + * Filter the query by a related CcFiles object + * + * @param CcFiles|PropelObjectCollection $ccFiles 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 + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcFilesRelatedByDbEditedby($ccFiles, $comparison = null) + { + if ($ccFiles instanceof CcFiles) { + return $this + ->addUsingAlias(CcSubjsPeer::ID, $ccFiles->getDbEditedby(), $comparison); + } elseif ($ccFiles instanceof PropelObjectCollection) { + return $this + ->useCcFilesRelatedByDbEditedbyQuery() + ->filterByPrimaryKeys($ccFiles->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcFilesRelatedByDbEditedby() only accepts arguments of type CcFiles or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcFilesRelatedByDbEditedby 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 joinCcFilesRelatedByDbEditedby($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcFilesRelatedByDbEditedby'); + + // 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, 'CcFilesRelatedByDbEditedby'); + } + + return $this; + } + + /** + * Use the CcFilesRelatedByDbEditedby relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query + */ + public function useCcFilesRelatedByDbEditedbyQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcFilesRelatedByDbEditedby($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcFilesRelatedByDbEditedby', 'CcFilesQuery'); + } + + /** + * Filter the query by a related CcPerms object + * + * @param CcPerms|PropelObjectCollection $ccPerms 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 + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcPerms($ccPerms, $comparison = null) + { + if ($ccPerms instanceof CcPerms) { + return $this + ->addUsingAlias(CcSubjsPeer::ID, $ccPerms->getSubj(), $comparison); + } elseif ($ccPerms instanceof PropelObjectCollection) { + return $this + ->useCcPermsQuery() + ->filterByPrimaryKeys($ccPerms->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcPerms() only accepts arguments of type CcPerms or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcPerms 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 joinCcPerms($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcPerms'); + + // 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, 'CcPerms'); + } + + return $this; + } + + /** + * Use the CcPerms relation CcPerms 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 CcPermsQuery A secondary query class using the current class as primary query + */ + public function useCcPermsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcPerms($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcPerms', 'CcPermsQuery'); + } + + /** + * Filter the query by a related CcShowHosts object + * + * @param CcShowHosts|PropelObjectCollection $ccShowHosts 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 + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcShowHosts($ccShowHosts, $comparison = null) + { + if ($ccShowHosts instanceof CcShowHosts) { + return $this + ->addUsingAlias(CcSubjsPeer::ID, $ccShowHosts->getDbHost(), $comparison); + } elseif ($ccShowHosts instanceof PropelObjectCollection) { + return $this + ->useCcShowHostsQuery() + ->filterByPrimaryKeys($ccShowHosts->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcShowHosts() only accepts arguments of type CcShowHosts or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcShowHosts 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 joinCcShowHosts($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcShowHosts'); + + // 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, 'CcShowHosts'); + } + + return $this; + } + + /** + * Use the CcShowHosts relation CcShowHosts 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 CcShowHostsQuery A secondary query class using the current class as primary query + */ + public function useCcShowHostsQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcShowHosts($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcShowHosts', 'CcShowHostsQuery'); + } + + /** + * Filter the query by a related CcPlaylist object + * + * @param CcPlaylist|PropelObjectCollection $ccPlaylist 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 + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcPlaylist($ccPlaylist, $comparison = null) + { + if ($ccPlaylist instanceof CcPlaylist) { + return $this + ->addUsingAlias(CcSubjsPeer::ID, $ccPlaylist->getDbCreatorId(), $comparison); + } elseif ($ccPlaylist instanceof PropelObjectCollection) { + return $this + ->useCcPlaylistQuery() + ->filterByPrimaryKeys($ccPlaylist->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcPlaylist() only accepts arguments of type CcPlaylist or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcPlaylist 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 joinCcPlaylist($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcPlaylist'); + + // 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, 'CcPlaylist'); + } + + return $this; + } + + /** + * Use the CcPlaylist relation CcPlaylist 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 CcPlaylistQuery A secondary query class using the current class as primary query + */ + public function useCcPlaylistQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcPlaylist($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcPlaylist', 'CcPlaylistQuery'); + } + + /** + * Filter the query by a related CcBlock object + * + * @param CcBlock|PropelObjectCollection $ccBlock 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 + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcBlock($ccBlock, $comparison = null) + { + if ($ccBlock instanceof CcBlock) { + return $this + ->addUsingAlias(CcSubjsPeer::ID, $ccBlock->getDbCreatorId(), $comparison); + } elseif ($ccBlock instanceof PropelObjectCollection) { + return $this + ->useCcBlockQuery() + ->filterByPrimaryKeys($ccBlock->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcBlock() only accepts arguments of type CcBlock or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcBlock 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 joinCcBlock($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcBlock'); + + // 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, 'CcBlock'); + } + + return $this; + } + + /** + * Use the CcBlock relation CcBlock 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 CcBlockQuery A secondary query class using the current class as primary query + */ + public function useCcBlockQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcBlock($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcBlock', 'CcBlockQuery'); + } + + /** + * Filter the query by a related CcPref object + * + * @param CcPref|PropelObjectCollection $ccPref 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 + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcPref($ccPref, $comparison = null) + { + if ($ccPref instanceof CcPref) { + return $this + ->addUsingAlias(CcSubjsPeer::ID, $ccPref->getSubjid(), $comparison); + } elseif ($ccPref instanceof PropelObjectCollection) { + return $this + ->useCcPrefQuery() + ->filterByPrimaryKeys($ccPref->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcPref() only accepts arguments of type CcPref or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcPref 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 joinCcPref($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcPref'); + + // 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, 'CcPref'); + } + + return $this; + } + + /** + * Use the CcPref relation CcPref 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 CcPrefQuery A secondary query class using the current class as primary query + */ + public function useCcPrefQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcPref($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcPref', 'CcPrefQuery'); + } + + /** + * Filter the query by a related CcSess object + * + * @param CcSess|PropelObjectCollection $ccSess 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 + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcSess($ccSess, $comparison = null) + { + if ($ccSess instanceof CcSess) { + return $this + ->addUsingAlias(CcSubjsPeer::ID, $ccSess->getUserid(), $comparison); + } elseif ($ccSess instanceof PropelObjectCollection) { + return $this + ->useCcSessQuery() + ->filterByPrimaryKeys($ccSess->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcSess() only accepts arguments of type CcSess or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcSess 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 joinCcSess($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcSess'); + + // 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, 'CcSess'); + } + + return $this; + } + + /** + * Use the CcSess relation CcSess 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 CcSessQuery A secondary query class using the current class as primary query + */ + public function useCcSessQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcSess($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcSess', 'CcSessQuery'); + } + + /** + * Filter the query by a related CcSubjsToken object + * + * @param CcSubjsToken|PropelObjectCollection $ccSubjsToken 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 + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcSubjsToken($ccSubjsToken, $comparison = null) + { + if ($ccSubjsToken instanceof CcSubjsToken) { + return $this + ->addUsingAlias(CcSubjsPeer::ID, $ccSubjsToken->getDbUserId(), $comparison); + } elseif ($ccSubjsToken instanceof PropelObjectCollection) { + return $this + ->useCcSubjsTokenQuery() + ->filterByPrimaryKeys($ccSubjsToken->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcSubjsToken() only accepts arguments of type CcSubjsToken or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcSubjsToken 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 joinCcSubjsToken($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcSubjsToken'); + + // 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, 'CcSubjsToken'); + } + + return $this; + } + + /** + * Use the CcSubjsToken relation CcSubjsToken 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 CcSubjsTokenQuery A secondary query class using the current class as primary query + */ + public function useCcSubjsTokenQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcSubjsToken($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcSubjsToken', 'CcSubjsTokenQuery'); + } + + /** + * Exclude object from result + * + * @param CcSubjs $ccSubjs Object to remove from the list of results + * + * @return CcSubjsQuery The current query, for fluid interface + */ + public function prune($ccSubjs = null) + { + if ($ccSubjs) { + $this->addUsingAlias(CcSubjsPeer::ID, $ccSubjs->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcSubjsQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcSubjs', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcSubjsQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcSubjsQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcSubjsQuery) { - return $criteria; - } - $query = new CcSubjsQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcSubjs|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcSubjsPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcSubjsQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcSubjsPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcSubjsQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcSubjsPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSubjsQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcSubjsPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the login column - * - * @param string $dbLogin 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 CcSubjsQuery The current query, for fluid interface - */ - public function filterByDbLogin($dbLogin = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLogin)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLogin)) { - $dbLogin = str_replace('*', '%', $dbLogin); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSubjsPeer::LOGIN, $dbLogin, $comparison); - } - - /** - * Filter the query on the pass column - * - * @param string $dbPass 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 CcSubjsQuery The current query, for fluid interface - */ - public function filterByDbPass($dbPass = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbPass)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbPass)) { - $dbPass = str_replace('*', '%', $dbPass); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSubjsPeer::PASS, $dbPass, $comparison); - } - - /** - * Filter the query on the type column - * - * @param string $dbType 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 CcSubjsQuery The current query, for fluid interface - */ - public function filterByDbType($dbType = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbType)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbType)) { - $dbType = str_replace('*', '%', $dbType); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSubjsPeer::TYPE, $dbType, $comparison); - } - - /** - * Filter the query on the first_name column - * - * @param string $dbFirstName 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 CcSubjsQuery The current query, for fluid interface - */ - public function filterByDbFirstName($dbFirstName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbFirstName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbFirstName)) { - $dbFirstName = str_replace('*', '%', $dbFirstName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSubjsPeer::FIRST_NAME, $dbFirstName, $comparison); - } - - /** - * Filter the query on the last_name column - * - * @param string $dbLastName 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 CcSubjsQuery The current query, for fluid interface - */ - public function filterByDbLastName($dbLastName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLastName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLastName)) { - $dbLastName = str_replace('*', '%', $dbLastName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSubjsPeer::LAST_NAME, $dbLastName, $comparison); - } - - /** - * Filter the query on the lastlogin column - * - * @param string|array $dbLastlogin The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSubjsQuery The current query, for fluid interface - */ - public function filterByDbLastlogin($dbLastlogin = null, $comparison = null) - { - if (is_array($dbLastlogin)) { - $useMinMax = false; - if (isset($dbLastlogin['min'])) { - $this->addUsingAlias(CcSubjsPeer::LASTLOGIN, $dbLastlogin['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbLastlogin['max'])) { - $this->addUsingAlias(CcSubjsPeer::LASTLOGIN, $dbLastlogin['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSubjsPeer::LASTLOGIN, $dbLastlogin, $comparison); - } - - /** - * Filter the query on the lastfail column - * - * @param string|array $dbLastfail The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSubjsQuery The current query, for fluid interface - */ - public function filterByDbLastfail($dbLastfail = null, $comparison = null) - { - if (is_array($dbLastfail)) { - $useMinMax = false; - if (isset($dbLastfail['min'])) { - $this->addUsingAlias(CcSubjsPeer::LASTFAIL, $dbLastfail['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbLastfail['max'])) { - $this->addUsingAlias(CcSubjsPeer::LASTFAIL, $dbLastfail['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSubjsPeer::LASTFAIL, $dbLastfail, $comparison); - } - - /** - * Filter the query on the skype_contact column - * - * @param string $dbSkypeContact 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 CcSubjsQuery The current query, for fluid interface - */ - public function filterByDbSkypeContact($dbSkypeContact = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbSkypeContact)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbSkypeContact)) { - $dbSkypeContact = str_replace('*', '%', $dbSkypeContact); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSubjsPeer::SKYPE_CONTACT, $dbSkypeContact, $comparison); - } - - /** - * Filter the query on the jabber_contact column - * - * @param string $dbJabberContact 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 CcSubjsQuery The current query, for fluid interface - */ - public function filterByDbJabberContact($dbJabberContact = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbJabberContact)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbJabberContact)) { - $dbJabberContact = str_replace('*', '%', $dbJabberContact); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSubjsPeer::JABBER_CONTACT, $dbJabberContact, $comparison); - } - - /** - * Filter the query on the email column - * - * @param string $dbEmail 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 CcSubjsQuery The current query, for fluid interface - */ - public function filterByDbEmail($dbEmail = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbEmail)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbEmail)) { - $dbEmail = str_replace('*', '%', $dbEmail); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSubjsPeer::EMAIL, $dbEmail, $comparison); - } - - /** - * Filter the query on the cell_phone column - * - * @param string $dbCellPhone 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 CcSubjsQuery The current query, for fluid interface - */ - public function filterByDbCellPhone($dbCellPhone = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbCellPhone)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbCellPhone)) { - $dbCellPhone = str_replace('*', '%', $dbCellPhone); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSubjsPeer::CELL_PHONE, $dbCellPhone, $comparison); - } - - /** - * Filter the query on the login_attempts column - * - * @param int|array $dbLoginAttempts The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSubjsQuery The current query, for fluid interface - */ - public function filterByDbLoginAttempts($dbLoginAttempts = null, $comparison = null) - { - if (is_array($dbLoginAttempts)) { - $useMinMax = false; - if (isset($dbLoginAttempts['min'])) { - $this->addUsingAlias(CcSubjsPeer::LOGIN_ATTEMPTS, $dbLoginAttempts['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbLoginAttempts['max'])) { - $this->addUsingAlias(CcSubjsPeer::LOGIN_ATTEMPTS, $dbLoginAttempts['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSubjsPeer::LOGIN_ATTEMPTS, $dbLoginAttempts, $comparison); - } - - /** - * Filter the query by a related CcFiles object - * - * @param CcFiles $ccFiles 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 filterByCcFilesRelatedByDbOwnerId($ccFiles, $comparison = null) - { - return $this - ->addUsingAlias(CcSubjsPeer::ID, $ccFiles->getDbOwnerId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcFilesRelatedByDbOwnerId 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 joinCcFilesRelatedByDbOwnerId($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcFilesRelatedByDbOwnerId'); - - // 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, 'CcFilesRelatedByDbOwnerId'); - } - - return $this; - } - - /** - * Use the CcFilesRelatedByDbOwnerId relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query - */ - public function useCcFilesRelatedByDbOwnerIdQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcFilesRelatedByDbOwnerId($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcFilesRelatedByDbOwnerId', 'CcFilesQuery'); - } - - /** - * Filter the query by a related CcFiles object - * - * @param CcFiles $ccFiles 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 filterByCcFilesRelatedByDbEditedby($ccFiles, $comparison = null) - { - return $this - ->addUsingAlias(CcSubjsPeer::ID, $ccFiles->getDbEditedby(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcFilesRelatedByDbEditedby 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 joinCcFilesRelatedByDbEditedby($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcFilesRelatedByDbEditedby'); - - // 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, 'CcFilesRelatedByDbEditedby'); - } - - return $this; - } - - /** - * Use the CcFilesRelatedByDbEditedby relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query - */ - public function useCcFilesRelatedByDbEditedbyQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcFilesRelatedByDbEditedby($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcFilesRelatedByDbEditedby', 'CcFilesQuery'); - } - - /** - * Filter the query by a related CcPerms object - * - * @param CcPerms $ccPerms 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 filterByCcPerms($ccPerms, $comparison = null) - { - return $this - ->addUsingAlias(CcSubjsPeer::ID, $ccPerms->getSubj(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcPerms 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 joinCcPerms($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcPerms'); - - // 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, 'CcPerms'); - } - - return $this; - } - - /** - * Use the CcPerms relation CcPerms 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 CcPermsQuery A secondary query class using the current class as primary query - */ - public function useCcPermsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcPerms($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcPerms', 'CcPermsQuery'); - } - - /** - * Filter the query by a related CcShowHosts object - * - * @param CcShowHosts $ccShowHosts 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 filterByCcShowHosts($ccShowHosts, $comparison = null) - { - return $this - ->addUsingAlias(CcSubjsPeer::ID, $ccShowHosts->getDbHost(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcShowHosts 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 joinCcShowHosts($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcShowHosts'); - - // 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, 'CcShowHosts'); - } - - return $this; - } - - /** - * Use the CcShowHosts relation CcShowHosts 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 CcShowHostsQuery A secondary query class using the current class as primary query - */ - public function useCcShowHostsQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcShowHosts($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcShowHosts', 'CcShowHostsQuery'); - } - - /** - * Filter the query by a related CcPlaylist object - * - * @param CcPlaylist $ccPlaylist 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 filterByCcPlaylist($ccPlaylist, $comparison = null) - { - return $this - ->addUsingAlias(CcSubjsPeer::ID, $ccPlaylist->getDbCreatorId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcPlaylist 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 joinCcPlaylist($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcPlaylist'); - - // 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, 'CcPlaylist'); - } - - return $this; - } - - /** - * Use the CcPlaylist relation CcPlaylist 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 CcPlaylistQuery A secondary query class using the current class as primary query - */ - public function useCcPlaylistQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcPlaylist($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcPlaylist', 'CcPlaylistQuery'); - } - - /** - * Filter the query by a related CcBlock object - * - * @param CcBlock $ccBlock 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 filterByCcBlock($ccBlock, $comparison = null) - { - return $this - ->addUsingAlias(CcSubjsPeer::ID, $ccBlock->getDbCreatorId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcBlock 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 joinCcBlock($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcBlock'); - - // 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, 'CcBlock'); - } - - return $this; - } - - /** - * Use the CcBlock relation CcBlock 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 CcBlockQuery A secondary query class using the current class as primary query - */ - public function useCcBlockQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcBlock($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcBlock', 'CcBlockQuery'); - } - - /** - * Filter the query by a related CcPref object - * - * @param CcPref $ccPref 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 filterByCcPref($ccPref, $comparison = null) - { - return $this - ->addUsingAlias(CcSubjsPeer::ID, $ccPref->getSubjid(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcPref 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 joinCcPref($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcPref'); - - // 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, 'CcPref'); - } - - return $this; - } - - /** - * Use the CcPref relation CcPref 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 CcPrefQuery A secondary query class using the current class as primary query - */ - public function useCcPrefQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcPref($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcPref', 'CcPrefQuery'); - } - - /** - * Filter the query by a related CcSess object - * - * @param CcSess $ccSess 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 filterByCcSess($ccSess, $comparison = null) - { - return $this - ->addUsingAlias(CcSubjsPeer::ID, $ccSess->getUserid(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcSess 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 joinCcSess($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcSess'); - - // 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, 'CcSess'); - } - - return $this; - } - - /** - * Use the CcSess relation CcSess 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 CcSessQuery A secondary query class using the current class as primary query - */ - public function useCcSessQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcSess($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcSess', 'CcSessQuery'); - } - - /** - * Filter the query by a related CcSubjsToken object - * - * @param CcSubjsToken $ccSubjsToken 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 filterByCcSubjsToken($ccSubjsToken, $comparison = null) - { - return $this - ->addUsingAlias(CcSubjsPeer::ID, $ccSubjsToken->getDbUserId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcSubjsToken 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 joinCcSubjsToken($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcSubjsToken'); - - // 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, 'CcSubjsToken'); - } - - return $this; - } - - /** - * Use the CcSubjsToken relation CcSubjsToken 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 CcSubjsTokenQuery A secondary query class using the current class as primary query - */ - public function useCcSubjsTokenQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcSubjsToken($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcSubjsToken', 'CcSubjsTokenQuery'); - } - - /** - * Exclude object from result - * - * @param CcSubjs $ccSubjs Object to remove from the list of results - * - * @return CcSubjsQuery The current query, for fluid interface - */ - public function prune($ccSubjs = null) - { - if ($ccSubjs) { - $this->addUsingAlias(CcSubjsPeer::ID, $ccSubjs->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcSubjsQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcSubjsToken.php b/airtime_mvc/application/models/airtime/om/BaseCcSubjsToken.php index e0a4ba9bbc..f1c3b4befc 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcSubjsToken.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcSubjsToken.php @@ -4,1002 +4,1130 @@ /** * Base class that represents a row from the 'cc_subjs_token' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcSubjsToken extends BaseObject implements Persistent +abstract class BaseCcSubjsToken extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcSubjsTokenPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcSubjsTokenPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the user_id field. - * @var int - */ - protected $user_id; - - /** - * The value for the action field. - * @var string - */ - protected $action; - - /** - * The value for the token field. - * @var string - */ - protected $token; - - /** - * The value for the created field. - * @var string - */ - protected $created; - - /** - * @var CcSubjs - */ - protected $aCcSubjs; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [user_id] column value. - * - * @return int - */ - public function getDbUserId() - { - return $this->user_id; - } - - /** - * Get the [action] column value. - * - * @return string - */ - public function getDbAction() - { - return $this->action; - } - - /** - * Get the [token] column value. - * - * @return string - */ - public function getDbToken() - { - return $this->token; - } - - /** - * Get the [optionally formatted] temporal [created] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbCreated($format = 'Y-m-d H:i:s') - { - if ($this->created === null) { - return null; - } - - - - try { - $dt = new DateTime($this->created); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->created, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcSubjsToken The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcSubjsTokenPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [user_id] column. - * - * @param int $v new value - * @return CcSubjsToken The current object (for fluent API support) - */ - public function setDbUserId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->user_id !== $v) { - $this->user_id = $v; - $this->modifiedColumns[] = CcSubjsTokenPeer::USER_ID; - } - - if ($this->aCcSubjs !== null && $this->aCcSubjs->getDbId() !== $v) { - $this->aCcSubjs = null; - } - - return $this; - } // setDbUserId() - - /** - * Set the value of [action] column. - * - * @param string $v new value - * @return CcSubjsToken The current object (for fluent API support) - */ - public function setDbAction($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->action !== $v) { - $this->action = $v; - $this->modifiedColumns[] = CcSubjsTokenPeer::ACTION; - } - - return $this; - } // setDbAction() - - /** - * Set the value of [token] column. - * - * @param string $v new value - * @return CcSubjsToken The current object (for fluent API support) - */ - public function setDbToken($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->token !== $v) { - $this->token = $v; - $this->modifiedColumns[] = CcSubjsTokenPeer::TOKEN; - } - - return $this; - } // setDbToken() - - /** - * Sets the value of [created] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcSubjsToken The current object (for fluent API support) - */ - public function setDbCreated($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->created !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->created !== null && $tmpDt = new DateTime($this->created)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->created = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcSubjsTokenPeer::CREATED; - } - } // if either are not null - - return $this; - } // setDbCreated() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->user_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; - $this->action = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->token = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->created = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 5; // 5 = CcSubjsTokenPeer::NUM_COLUMNS - CcSubjsTokenPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcSubjsToken object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcSubjs !== null && $this->user_id !== $this->aCcSubjs->getDbId()) { - $this->aCcSubjs = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcSubjsTokenPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcSubjs = null; - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcSubjsTokenQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcSubjsTokenPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcSubjs !== null) { - if ($this->aCcSubjs->isModified() || $this->aCcSubjs->isNew()) { - $affectedRows += $this->aCcSubjs->save($con); - } - $this->setCcSubjs($this->aCcSubjs); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcSubjsTokenPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcSubjsTokenPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcSubjsTokenPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcSubjsTokenPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcSubjs !== null) { - if (!$this->aCcSubjs->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcSubjs->getValidationFailures()); - } - } - - - if (($retval = CcSubjsTokenPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcSubjsTokenPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbUserId(); - break; - case 2: - return $this->getDbAction(); - break; - case 3: - return $this->getDbToken(); - break; - case 4: - return $this->getDbCreated(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcSubjsTokenPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbUserId(), - $keys[2] => $this->getDbAction(), - $keys[3] => $this->getDbToken(), - $keys[4] => $this->getDbCreated(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcSubjs) { - $result['CcSubjs'] = $this->aCcSubjs->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcSubjsTokenPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbUserId($value); - break; - case 2: - $this->setDbAction($value); - break; - case 3: - $this->setDbToken($value); - break; - case 4: - $this->setDbCreated($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcSubjsTokenPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbUserId($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbAction($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbToken($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbCreated($arr[$keys[4]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcSubjsTokenPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcSubjsTokenPeer::ID)) $criteria->add(CcSubjsTokenPeer::ID, $this->id); - if ($this->isColumnModified(CcSubjsTokenPeer::USER_ID)) $criteria->add(CcSubjsTokenPeer::USER_ID, $this->user_id); - if ($this->isColumnModified(CcSubjsTokenPeer::ACTION)) $criteria->add(CcSubjsTokenPeer::ACTION, $this->action); - if ($this->isColumnModified(CcSubjsTokenPeer::TOKEN)) $criteria->add(CcSubjsTokenPeer::TOKEN, $this->token); - if ($this->isColumnModified(CcSubjsTokenPeer::CREATED)) $criteria->add(CcSubjsTokenPeer::CREATED, $this->created); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcSubjsTokenPeer::DATABASE_NAME); - $criteria->add(CcSubjsTokenPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcSubjsToken (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbUserId($this->user_id); - $copyObj->setDbAction($this->action); - $copyObj->setDbToken($this->token); - $copyObj->setDbCreated($this->created); - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcSubjsToken Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcSubjsTokenPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcSubjsTokenPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcSubjs object. - * - * @param CcSubjs $v - * @return CcSubjsToken The current object (for fluent API support) - * @throws PropelException - */ - public function setCcSubjs(CcSubjs $v = null) - { - if ($v === null) { - $this->setDbUserId(NULL); - } else { - $this->setDbUserId($v->getDbId()); - } - - $this->aCcSubjs = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcSubjs object, it will not be re-added. - if ($v !== null) { - $v->addCcSubjsToken($this); - } - - return $this; - } - - - /** - * Get the associated CcSubjs object - * - * @param PropelPDO Optional Connection object. - * @return CcSubjs The associated CcSubjs object. - * @throws PropelException - */ - public function getCcSubjs(PropelPDO $con = null) - { - if ($this->aCcSubjs === null && ($this->user_id !== null)) { - $this->aCcSubjs = CcSubjsQuery::create()->findPk($this->user_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcSubjs->addCcSubjsTokens($this); - */ - } - return $this->aCcSubjs; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->user_id = null; - $this->action = null; - $this->token = null; - $this->created = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - $this->aCcSubjs = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcSubjsToken + /** + * Peer class name + */ + const PEER = 'CcSubjsTokenPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcSubjsTokenPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the user_id field. + * @var int + */ + protected $user_id; + + /** + * The value for the action field. + * @var string + */ + protected $action; + + /** + * The value for the token field. + * @var string + */ + protected $token; + + /** + * The value for the created field. + * @var string + */ + protected $created; + + /** + * @var CcSubjs + */ + protected $aCcSubjs; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [user_id] column value. + * + * @return int + */ + public function getDbUserId() + { + + return $this->user_id; + } + + /** + * Get the [action] column value. + * + * @return string + */ + public function getDbAction() + { + + return $this->action; + } + + /** + * Get the [token] column value. + * + * @return string + */ + public function getDbToken() + { + + return $this->token; + } + + /** + * Get the [optionally formatted] temporal [created] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbCreated($format = 'Y-m-d H:i:s') + { + if ($this->created === null) { + return null; + } + + + try { + $dt = new DateTime($this->created); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->created, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcSubjsToken The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcSubjsTokenPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [user_id] column. + * + * @param int $v new value + * @return CcSubjsToken The current object (for fluent API support) + */ + public function setDbUserId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->user_id !== $v) { + $this->user_id = $v; + $this->modifiedColumns[] = CcSubjsTokenPeer::USER_ID; + } + + if ($this->aCcSubjs !== null && $this->aCcSubjs->getDbId() !== $v) { + $this->aCcSubjs = null; + } + + + return $this; + } // setDbUserId() + + /** + * Set the value of [action] column. + * + * @param string $v new value + * @return CcSubjsToken The current object (for fluent API support) + */ + public function setDbAction($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->action !== $v) { + $this->action = $v; + $this->modifiedColumns[] = CcSubjsTokenPeer::ACTION; + } + + + return $this; + } // setDbAction() + + /** + * Set the value of [token] column. + * + * @param string $v new value + * @return CcSubjsToken The current object (for fluent API support) + */ + public function setDbToken($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->token !== $v) { + $this->token = $v; + $this->modifiedColumns[] = CcSubjsTokenPeer::TOKEN; + } + + + return $this; + } // setDbToken() + + /** + * Sets the value of [created] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcSubjsToken The current object (for fluent API support) + */ + public function setDbCreated($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->created !== null || $dt !== null) { + $currentDateAsString = ($this->created !== null && $tmpDt = new DateTime($this->created)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->created = $newDateAsString; + $this->modifiedColumns[] = CcSubjsTokenPeer::CREATED; + } + } // if either are not null + + + return $this; + } // setDbCreated() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->user_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; + $this->action = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->token = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->created = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 5; // 5 = CcSubjsTokenPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcSubjsToken object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcSubjs !== null && $this->user_id !== $this->aCcSubjs->getDbId()) { + $this->aCcSubjs = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcSubjsTokenPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcSubjs = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcSubjsTokenQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcSubjsTokenPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcSubjs !== null) { + if ($this->aCcSubjs->isModified() || $this->aCcSubjs->isNew()) { + $affectedRows += $this->aCcSubjs->save($con); + } + $this->setCcSubjs($this->aCcSubjs); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcSubjsTokenPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcSubjsTokenPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_subjs_token_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcSubjsTokenPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcSubjsTokenPeer::USER_ID)) { + $modifiedColumns[':p' . $index++] = '"user_id"'; + } + if ($this->isColumnModified(CcSubjsTokenPeer::ACTION)) { + $modifiedColumns[':p' . $index++] = '"action"'; + } + if ($this->isColumnModified(CcSubjsTokenPeer::TOKEN)) { + $modifiedColumns[':p' . $index++] = '"token"'; + } + if ($this->isColumnModified(CcSubjsTokenPeer::CREATED)) { + $modifiedColumns[':p' . $index++] = '"created"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_subjs_token" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"user_id"': + $stmt->bindValue($identifier, $this->user_id, PDO::PARAM_INT); + break; + case '"action"': + $stmt->bindValue($identifier, $this->action, PDO::PARAM_STR); + break; + case '"token"': + $stmt->bindValue($identifier, $this->token, PDO::PARAM_STR); + break; + case '"created"': + $stmt->bindValue($identifier, $this->created, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcSubjs !== null) { + if (!$this->aCcSubjs->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcSubjs->getValidationFailures()); + } + } + + + if (($retval = CcSubjsTokenPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcSubjsTokenPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbUserId(); + break; + case 2: + return $this->getDbAction(); + break; + case 3: + return $this->getDbToken(); + break; + case 4: + return $this->getDbCreated(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcSubjsToken'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcSubjsToken'][$this->getPrimaryKey()] = true; + $keys = CcSubjsTokenPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbUserId(), + $keys[2] => $this->getDbAction(), + $keys[3] => $this->getDbToken(), + $keys[4] => $this->getDbCreated(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcSubjs) { + $result['CcSubjs'] = $this->aCcSubjs->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcSubjsTokenPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbUserId($value); + break; + case 2: + $this->setDbAction($value); + break; + case 3: + $this->setDbToken($value); + break; + case 4: + $this->setDbCreated($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcSubjsTokenPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbUserId($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbAction($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbToken($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbCreated($arr[$keys[4]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcSubjsTokenPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcSubjsTokenPeer::ID)) $criteria->add(CcSubjsTokenPeer::ID, $this->id); + if ($this->isColumnModified(CcSubjsTokenPeer::USER_ID)) $criteria->add(CcSubjsTokenPeer::USER_ID, $this->user_id); + if ($this->isColumnModified(CcSubjsTokenPeer::ACTION)) $criteria->add(CcSubjsTokenPeer::ACTION, $this->action); + if ($this->isColumnModified(CcSubjsTokenPeer::TOKEN)) $criteria->add(CcSubjsTokenPeer::TOKEN, $this->token); + if ($this->isColumnModified(CcSubjsTokenPeer::CREATED)) $criteria->add(CcSubjsTokenPeer::CREATED, $this->created); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcSubjsTokenPeer::DATABASE_NAME); + $criteria->add(CcSubjsTokenPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcSubjsToken (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbUserId($this->getDbUserId()); + $copyObj->setDbAction($this->getDbAction()); + $copyObj->setDbToken($this->getDbToken()); + $copyObj->setDbCreated($this->getDbCreated()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcSubjsToken Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcSubjsTokenPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcSubjsTokenPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcSubjs object. + * + * @param CcSubjs $v + * @return CcSubjsToken The current object (for fluent API support) + * @throws PropelException + */ + public function setCcSubjs(CcSubjs $v = null) + { + if ($v === null) { + $this->setDbUserId(NULL); + } else { + $this->setDbUserId($v->getDbId()); + } + + $this->aCcSubjs = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcSubjs object, it will not be re-added. + if ($v !== null) { + $v->addCcSubjsToken($this); + } + + + return $this; + } + + + /** + * Get the associated CcSubjs object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcSubjs The associated CcSubjs object. + * @throws PropelException + */ + public function getCcSubjs(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcSubjs === null && ($this->user_id !== null) && $doQuery) { + $this->aCcSubjs = CcSubjsQuery::create()->findPk($this->user_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcSubjs->addCcSubjsTokens($this); + */ + } + + return $this->aCcSubjs; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->user_id = null; + $this->action = null; + $this->token = null; + $this->created = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcSubjs instanceof Persistent) { + $this->aCcSubjs->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcSubjs = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcSubjsTokenPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcSubjsTokenPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcSubjsTokenPeer.php index 7f08ba6a71..f8c54b2c0c 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcSubjsTokenPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcSubjsTokenPeer.php @@ -4,981 +4,1007 @@ /** * Base static class for performing query and update operations on the 'cc_subjs_token' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcSubjsTokenPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_subjs_token'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcSubjsToken'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcSubjsToken'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcSubjsTokenTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 5; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_subjs_token.ID'; - - /** the column name for the USER_ID field */ - const USER_ID = 'cc_subjs_token.USER_ID'; - - /** the column name for the ACTION field */ - const ACTION = 'cc_subjs_token.ACTION'; - - /** the column name for the TOKEN field */ - const TOKEN = 'cc_subjs_token.TOKEN'; - - /** the column name for the CREATED field */ - const CREATED = 'cc_subjs_token.CREATED'; - - /** - * An identiy map to hold any loaded instances of CcSubjsToken objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcSubjsToken[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbUserId', 'DbAction', 'DbToken', 'DbCreated', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbUserId', 'dbAction', 'dbToken', 'dbCreated', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::USER_ID, self::ACTION, self::TOKEN, self::CREATED, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'USER_ID', 'ACTION', 'TOKEN', 'CREATED', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'user_id', 'action', 'token', 'created', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbUserId' => 1, 'DbAction' => 2, 'DbToken' => 3, 'DbCreated' => 4, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbUserId' => 1, 'dbAction' => 2, 'dbToken' => 3, 'dbCreated' => 4, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::USER_ID => 1, self::ACTION => 2, self::TOKEN => 3, self::CREATED => 4, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'USER_ID' => 1, 'ACTION' => 2, 'TOKEN' => 3, 'CREATED' => 4, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'user_id' => 1, 'action' => 2, 'token' => 3, 'created' => 4, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcSubjsTokenPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcSubjsTokenPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcSubjsTokenPeer::ID); - $criteria->addSelectColumn(CcSubjsTokenPeer::USER_ID); - $criteria->addSelectColumn(CcSubjsTokenPeer::ACTION); - $criteria->addSelectColumn(CcSubjsTokenPeer::TOKEN); - $criteria->addSelectColumn(CcSubjsTokenPeer::CREATED); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.USER_ID'); - $criteria->addSelectColumn($alias . '.ACTION'); - $criteria->addSelectColumn($alias . '.TOKEN'); - $criteria->addSelectColumn($alias . '.CREATED'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSubjsTokenPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSubjsTokenPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcSubjsToken - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcSubjsTokenPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcSubjsTokenPeer::populateObjects(CcSubjsTokenPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcSubjsTokenPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcSubjsToken $value A CcSubjsToken object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcSubjsToken $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcSubjsToken object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcSubjsToken) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcSubjsToken object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcSubjsToken Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_subjs_token - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcSubjsTokenPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcSubjsTokenPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcSubjsTokenPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcSubjsTokenPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcSubjsToken object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcSubjsTokenPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcSubjsTokenPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcSubjsTokenPeer::NUM_COLUMNS; - } else { - $cls = CcSubjsTokenPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcSubjsTokenPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcSubjs table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSubjsTokenPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSubjsTokenPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcSubjsTokenPeer::USER_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcSubjsToken objects pre-filled with their CcSubjs objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcSubjsToken objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcSubjsTokenPeer::addSelectColumns($criteria); - $startcol = (CcSubjsTokenPeer::NUM_COLUMNS - CcSubjsTokenPeer::NUM_LAZY_LOAD_COLUMNS); - CcSubjsPeer::addSelectColumns($criteria); - - $criteria->addJoin(CcSubjsTokenPeer::USER_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcSubjsTokenPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcSubjsTokenPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcSubjsTokenPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcSubjsTokenPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcSubjsToken) to $obj2 (CcSubjs) - $obj2->addCcSubjsToken($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcSubjsTokenPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcSubjsTokenPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcSubjsTokenPeer::USER_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcSubjsToken objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcSubjsToken objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcSubjsTokenPeer::addSelectColumns($criteria); - $startcol2 = (CcSubjsTokenPeer::NUM_COLUMNS - CcSubjsTokenPeer::NUM_LAZY_LOAD_COLUMNS); - - CcSubjsPeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcSubjsPeer::NUM_COLUMNS - CcSubjsPeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcSubjsTokenPeer::USER_ID, CcSubjsPeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcSubjsTokenPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcSubjsTokenPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcSubjsTokenPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcSubjsTokenPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcSubjs rows - - $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcSubjsPeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSubjsPeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcSubjsPeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcSubjsToken) to the collection in $obj2 (CcSubjs) - $obj2->addCcSubjsToken($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcSubjsTokenPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcSubjsTokenPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcSubjsTokenTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcSubjsTokenPeer::CLASS_DEFAULT : CcSubjsTokenPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcSubjsToken or Criteria object. - * - * @param mixed $values Criteria or CcSubjsToken object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcSubjsToken object - } - - if ($criteria->containsKey(CcSubjsTokenPeer::ID) && $criteria->keyContainsValue(CcSubjsTokenPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcSubjsTokenPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcSubjsToken or Criteria object. - * - * @param mixed $values Criteria or CcSubjsToken object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcSubjsTokenPeer::ID); - $value = $criteria->remove(CcSubjsTokenPeer::ID); - if ($value) { - $selectCriteria->add(CcSubjsTokenPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcSubjsTokenPeer::TABLE_NAME); - } - - } else { // $values is CcSubjsToken object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_subjs_token table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcSubjsTokenPeer::TABLE_NAME, $con, CcSubjsTokenPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcSubjsTokenPeer::clearInstancePool(); - CcSubjsTokenPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcSubjsToken or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcSubjsToken object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcSubjsTokenPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcSubjsToken) { // it's a model object - // invalidate the cache for this single object - CcSubjsTokenPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcSubjsTokenPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcSubjsTokenPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcSubjsTokenPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcSubjsToken object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcSubjsToken $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcSubjsToken $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcSubjsTokenPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcSubjsTokenPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcSubjsTokenPeer::DATABASE_NAME, CcSubjsTokenPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcSubjsToken - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcSubjsTokenPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcSubjsTokenPeer::DATABASE_NAME); - $criteria->add(CcSubjsTokenPeer::ID, $pk); - - $v = CcSubjsTokenPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcSubjsTokenPeer::DATABASE_NAME); - $criteria->add(CcSubjsTokenPeer::ID, $pks, Criteria::IN); - $objs = CcSubjsTokenPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcSubjsTokenPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_subjs_token'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcSubjsToken'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcSubjsTokenTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 5; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 5; + + /** the column name for the id field */ + const ID = 'cc_subjs_token.id'; + + /** the column name for the user_id field */ + const USER_ID = 'cc_subjs_token.user_id'; + + /** the column name for the action field */ + const ACTION = 'cc_subjs_token.action'; + + /** the column name for the token field */ + const TOKEN = 'cc_subjs_token.token'; + + /** the column name for the created field */ + const CREATED = 'cc_subjs_token.created'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcSubjsToken objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcSubjsToken[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcSubjsTokenPeer::$fieldNames[CcSubjsTokenPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbUserId', 'DbAction', 'DbToken', 'DbCreated', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbUserId', 'dbAction', 'dbToken', 'dbCreated', ), + BasePeer::TYPE_COLNAME => array (CcSubjsTokenPeer::ID, CcSubjsTokenPeer::USER_ID, CcSubjsTokenPeer::ACTION, CcSubjsTokenPeer::TOKEN, CcSubjsTokenPeer::CREATED, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'USER_ID', 'ACTION', 'TOKEN', 'CREATED', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'user_id', 'action', 'token', 'created', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcSubjsTokenPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbUserId' => 1, 'DbAction' => 2, 'DbToken' => 3, 'DbCreated' => 4, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbUserId' => 1, 'dbAction' => 2, 'dbToken' => 3, 'dbCreated' => 4, ), + BasePeer::TYPE_COLNAME => array (CcSubjsTokenPeer::ID => 0, CcSubjsTokenPeer::USER_ID => 1, CcSubjsTokenPeer::ACTION => 2, CcSubjsTokenPeer::TOKEN => 3, CcSubjsTokenPeer::CREATED => 4, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'USER_ID' => 1, 'ACTION' => 2, 'TOKEN' => 3, 'CREATED' => 4, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'user_id' => 1, 'action' => 2, 'token' => 3, 'created' => 4, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcSubjsTokenPeer::getFieldNames($toType); + $key = isset(CcSubjsTokenPeer::$fieldKeys[$fromType][$name]) ? CcSubjsTokenPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcSubjsTokenPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcSubjsTokenPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcSubjsTokenPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcSubjsTokenPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcSubjsTokenPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcSubjsTokenPeer::ID); + $criteria->addSelectColumn(CcSubjsTokenPeer::USER_ID); + $criteria->addSelectColumn(CcSubjsTokenPeer::ACTION); + $criteria->addSelectColumn(CcSubjsTokenPeer::TOKEN); + $criteria->addSelectColumn(CcSubjsTokenPeer::CREATED); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.user_id'); + $criteria->addSelectColumn($alias . '.action'); + $criteria->addSelectColumn($alias . '.token'); + $criteria->addSelectColumn($alias . '.created'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSubjsTokenPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSubjsTokenPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcSubjsTokenPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcSubjsToken + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcSubjsTokenPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcSubjsTokenPeer::populateObjects(CcSubjsTokenPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcSubjsTokenPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcSubjsTokenPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcSubjsToken $obj A CcSubjsToken object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcSubjsTokenPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcSubjsToken object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcSubjsToken) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcSubjsToken object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcSubjsTokenPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcSubjsToken Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcSubjsTokenPeer::$instances[$key])) { + return CcSubjsTokenPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcSubjsTokenPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcSubjsTokenPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_subjs_token + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcSubjsTokenPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcSubjsTokenPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcSubjsTokenPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcSubjsTokenPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcSubjsToken object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcSubjsTokenPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcSubjsTokenPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcSubjsTokenPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcSubjsTokenPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcSubjsTokenPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcSubjs table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcSubjs(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSubjsTokenPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSubjsTokenPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcSubjsTokenPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcSubjsTokenPeer::USER_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcSubjsToken objects pre-filled with their CcSubjs objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcSubjsToken objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcSubjs(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcSubjsTokenPeer::DATABASE_NAME); + } + + CcSubjsTokenPeer::addSelectColumns($criteria); + $startcol = CcSubjsTokenPeer::NUM_HYDRATE_COLUMNS; + CcSubjsPeer::addSelectColumns($criteria); + + $criteria->addJoin(CcSubjsTokenPeer::USER_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcSubjsTokenPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcSubjsTokenPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcSubjsTokenPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcSubjsTokenPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcSubjsToken) to $obj2 (CcSubjs) + $obj2->addCcSubjsToken($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcSubjsTokenPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcSubjsTokenPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcSubjsTokenPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcSubjsTokenPeer::USER_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcSubjsToken objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcSubjsToken objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcSubjsTokenPeer::DATABASE_NAME); + } + + CcSubjsTokenPeer::addSelectColumns($criteria); + $startcol2 = CcSubjsTokenPeer::NUM_HYDRATE_COLUMNS; + + CcSubjsPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcSubjsPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcSubjsTokenPeer::USER_ID, CcSubjsPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcSubjsTokenPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcSubjsTokenPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcSubjsTokenPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcSubjsTokenPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcSubjs rows + + $key2 = CcSubjsPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcSubjsPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSubjsPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcSubjsPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcSubjsToken) to the collection in $obj2 (CcSubjs) + $obj2->addCcSubjsToken($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcSubjsTokenPeer::DATABASE_NAME)->getTable(CcSubjsTokenPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcSubjsTokenPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcSubjsTokenPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcSubjsTokenTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcSubjsTokenPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcSubjsToken or Criteria object. + * + * @param mixed $values Criteria or CcSubjsToken object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcSubjsToken object + } + + if ($criteria->containsKey(CcSubjsTokenPeer::ID) && $criteria->keyContainsValue(CcSubjsTokenPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcSubjsTokenPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcSubjsTokenPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcSubjsToken or Criteria object. + * + * @param mixed $values Criteria or CcSubjsToken object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcSubjsTokenPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcSubjsTokenPeer::ID); + $value = $criteria->remove(CcSubjsTokenPeer::ID); + if ($value) { + $selectCriteria->add(CcSubjsTokenPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcSubjsTokenPeer::TABLE_NAME); + } + + } else { // $values is CcSubjsToken object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcSubjsTokenPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_subjs_token table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcSubjsTokenPeer::TABLE_NAME, $con, CcSubjsTokenPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcSubjsTokenPeer::clearInstancePool(); + CcSubjsTokenPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcSubjsToken or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcSubjsToken object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcSubjsTokenPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcSubjsToken) { // it's a model object + // invalidate the cache for this single object + CcSubjsTokenPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcSubjsTokenPeer::DATABASE_NAME); + $criteria->add(CcSubjsTokenPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcSubjsTokenPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcSubjsTokenPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcSubjsTokenPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcSubjsToken object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcSubjsToken $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcSubjsTokenPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcSubjsTokenPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcSubjsTokenPeer::DATABASE_NAME, CcSubjsTokenPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcSubjsToken + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcSubjsTokenPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcSubjsTokenPeer::DATABASE_NAME); + $criteria->add(CcSubjsTokenPeer::ID, $pk); + + $v = CcSubjsTokenPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcSubjsToken[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcSubjsTokenPeer::DATABASE_NAME); + $criteria->add(CcSubjsTokenPeer::ID, $pks, Criteria::IN); + $objs = CcSubjsTokenPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcSubjsTokenPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcSubjsTokenQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcSubjsTokenQuery.php index c2ee6f7bf5..7906cec5a2 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcSubjsTokenQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcSubjsTokenQuery.php @@ -4,352 +4,514 @@ /** * Base class that represents a query for the 'cc_subjs_token' table. * - * * - * @method CcSubjsTokenQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcSubjsTokenQuery orderByDbUserId($order = Criteria::ASC) Order by the user_id column - * @method CcSubjsTokenQuery orderByDbAction($order = Criteria::ASC) Order by the action column - * @method CcSubjsTokenQuery orderByDbToken($order = Criteria::ASC) Order by the token column - * @method CcSubjsTokenQuery orderByDbCreated($order = Criteria::ASC) Order by the created column * - * @method CcSubjsTokenQuery groupByDbId() Group by the id column - * @method CcSubjsTokenQuery groupByDbUserId() Group by the user_id column - * @method CcSubjsTokenQuery groupByDbAction() Group by the action column - * @method CcSubjsTokenQuery groupByDbToken() Group by the token column - * @method CcSubjsTokenQuery groupByDbCreated() Group by the created column + * @method CcSubjsTokenQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcSubjsTokenQuery orderByDbUserId($order = Criteria::ASC) Order by the user_id column + * @method CcSubjsTokenQuery orderByDbAction($order = Criteria::ASC) Order by the action column + * @method CcSubjsTokenQuery orderByDbToken($order = Criteria::ASC) Order by the token column + * @method CcSubjsTokenQuery orderByDbCreated($order = Criteria::ASC) Order by the created column * - * @method CcSubjsTokenQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcSubjsTokenQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcSubjsTokenQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcSubjsTokenQuery groupByDbId() Group by the id column + * @method CcSubjsTokenQuery groupByDbUserId() Group by the user_id column + * @method CcSubjsTokenQuery groupByDbAction() Group by the action column + * @method CcSubjsTokenQuery groupByDbToken() Group by the token column + * @method CcSubjsTokenQuery groupByDbCreated() Group by the created column * - * @method CcSubjsTokenQuery leftJoinCcSubjs($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSubjs relation - * @method CcSubjsTokenQuery rightJoinCcSubjs($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSubjs relation - * @method CcSubjsTokenQuery innerJoinCcSubjs($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSubjs relation + * @method CcSubjsTokenQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcSubjsTokenQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcSubjsTokenQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcSubjsToken findOne(PropelPDO $con = null) Return the first CcSubjsToken matching the query - * @method CcSubjsToken findOneOrCreate(PropelPDO $con = null) Return the first CcSubjsToken matching the query, or a new CcSubjsToken object populated from the query conditions when no match is found + * @method CcSubjsTokenQuery leftJoinCcSubjs($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSubjs relation + * @method CcSubjsTokenQuery rightJoinCcSubjs($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSubjs relation + * @method CcSubjsTokenQuery innerJoinCcSubjs($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSubjs relation * - * @method CcSubjsToken findOneByDbId(int $id) Return the first CcSubjsToken filtered by the id column - * @method CcSubjsToken findOneByDbUserId(int $user_id) Return the first CcSubjsToken filtered by the user_id column - * @method CcSubjsToken findOneByDbAction(string $action) Return the first CcSubjsToken filtered by the action column - * @method CcSubjsToken findOneByDbToken(string $token) Return the first CcSubjsToken filtered by the token column - * @method CcSubjsToken findOneByDbCreated(string $created) Return the first CcSubjsToken filtered by the created column + * @method CcSubjsToken findOne(PropelPDO $con = null) Return the first CcSubjsToken matching the query + * @method CcSubjsToken findOneOrCreate(PropelPDO $con = null) Return the first CcSubjsToken matching the query, or a new CcSubjsToken object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcSubjsToken objects filtered by the id column - * @method array findByDbUserId(int $user_id) Return CcSubjsToken objects filtered by the user_id column - * @method array findByDbAction(string $action) Return CcSubjsToken objects filtered by the action column - * @method array findByDbToken(string $token) Return CcSubjsToken objects filtered by the token column - * @method array findByDbCreated(string $created) Return CcSubjsToken objects filtered by the created column + * @method CcSubjsToken findOneByDbUserId(int $user_id) Return the first CcSubjsToken filtered by the user_id column + * @method CcSubjsToken findOneByDbAction(string $action) Return the first CcSubjsToken filtered by the action column + * @method CcSubjsToken findOneByDbToken(string $token) Return the first CcSubjsToken filtered by the token column + * @method CcSubjsToken findOneByDbCreated(string $created) Return the first CcSubjsToken filtered by the created column + * + * @method array findByDbId(int $id) Return CcSubjsToken objects filtered by the id column + * @method array findByDbUserId(int $user_id) Return CcSubjsToken objects filtered by the user_id column + * @method array findByDbAction(string $action) Return CcSubjsToken objects filtered by the action column + * @method array findByDbToken(string $token) Return CcSubjsToken objects filtered by the token column + * @method array findByDbCreated(string $created) Return CcSubjsToken objects filtered by the created column * * @package propel.generator.airtime.om */ abstract class BaseCcSubjsTokenQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcSubjsTokenQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcSubjsToken'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcSubjsTokenQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcSubjsTokenQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcSubjsTokenQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcSubjsTokenQuery) { + return $criteria; + } + $query = new CcSubjsTokenQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcSubjsToken|CcSubjsToken[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcSubjsTokenPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcSubjsTokenPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSubjsToken A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSubjsToken A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "user_id", "action", "token", "created" FROM "cc_subjs_token" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcSubjsToken(); + $obj->hydrate($row); + CcSubjsTokenPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcSubjsToken|CcSubjsToken[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcSubjsToken[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcSubjsTokenQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcSubjsTokenPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcSubjsTokenQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcSubjsTokenPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSubjsTokenQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcSubjsTokenPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcSubjsTokenPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSubjsTokenPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the user_id column + * + * Example usage: + * + * $query->filterByDbUserId(1234); // WHERE user_id = 1234 + * $query->filterByDbUserId(array(12, 34)); // WHERE user_id IN (12, 34) + * $query->filterByDbUserId(array('min' => 12)); // WHERE user_id >= 12 + * $query->filterByDbUserId(array('max' => 12)); // WHERE user_id <= 12 + * + * + * @see filterByCcSubjs() + * + * @param mixed $dbUserId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSubjsTokenQuery The current query, for fluid interface + */ + public function filterByDbUserId($dbUserId = null, $comparison = null) + { + if (is_array($dbUserId)) { + $useMinMax = false; + if (isset($dbUserId['min'])) { + $this->addUsingAlias(CcSubjsTokenPeer::USER_ID, $dbUserId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbUserId['max'])) { + $this->addUsingAlias(CcSubjsTokenPeer::USER_ID, $dbUserId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSubjsTokenPeer::USER_ID, $dbUserId, $comparison); + } + + /** + * Filter the query on the action column + * + * Example usage: + * + * $query->filterByDbAction('fooValue'); // WHERE action = 'fooValue' + * $query->filterByDbAction('%fooValue%'); // WHERE action LIKE '%fooValue%' + * + * + * @param string $dbAction 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 CcSubjsTokenQuery The current query, for fluid interface + */ + public function filterByDbAction($dbAction = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbAction)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbAction)) { + $dbAction = str_replace('*', '%', $dbAction); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSubjsTokenPeer::ACTION, $dbAction, $comparison); + } + + /** + * Filter the query on the token column + * + * Example usage: + * + * $query->filterByDbToken('fooValue'); // WHERE token = 'fooValue' + * $query->filterByDbToken('%fooValue%'); // WHERE token LIKE '%fooValue%' + * + * + * @param string $dbToken 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 CcSubjsTokenQuery The current query, for fluid interface + */ + public function filterByDbToken($dbToken = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbToken)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbToken)) { + $dbToken = str_replace('*', '%', $dbToken); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcSubjsTokenPeer::TOKEN, $dbToken, $comparison); + } + + /** + * Filter the query on the created column + * + * Example usage: + * + * $query->filterByDbCreated('2011-03-14'); // WHERE created = '2011-03-14' + * $query->filterByDbCreated('now'); // WHERE created = '2011-03-14' + * $query->filterByDbCreated(array('max' => 'yesterday')); // WHERE created < '2011-03-13' + * + * + * @param mixed $dbCreated The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSubjsTokenQuery The current query, for fluid interface + */ + public function filterByDbCreated($dbCreated = null, $comparison = null) + { + if (is_array($dbCreated)) { + $useMinMax = false; + if (isset($dbCreated['min'])) { + $this->addUsingAlias(CcSubjsTokenPeer::CREATED, $dbCreated['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbCreated['max'])) { + $this->addUsingAlias(CcSubjsTokenPeer::CREATED, $dbCreated['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcSubjsTokenPeer::CREATED, $dbCreated, $comparison); + } + + /** + * Filter the query by a related CcSubjs object + * + * @param CcSubjs|PropelObjectCollection $ccSubjs The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcSubjsTokenQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcSubjs($ccSubjs, $comparison = null) + { + if ($ccSubjs instanceof CcSubjs) { + return $this + ->addUsingAlias(CcSubjsTokenPeer::USER_ID, $ccSubjs->getDbId(), $comparison); + } elseif ($ccSubjs instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcSubjsTokenPeer::USER_ID, $ccSubjs->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcSubjs() only accepts arguments of type CcSubjs or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcSubjs relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcSubjsTokenQuery The current query, for fluid interface + */ + public function joinCcSubjs($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcSubjs'); + + // 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, 'CcSubjs'); + } + + return $this; + } + + /** + * Use the CcSubjs relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query + */ + public function useCcSubjsQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcSubjs($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); + } + + /** + * Exclude object from result + * + * @param CcSubjsToken $ccSubjsToken Object to remove from the list of results + * + * @return CcSubjsTokenQuery The current query, for fluid interface + */ + public function prune($ccSubjsToken = null) + { + if ($ccSubjsToken) { + $this->addUsingAlias(CcSubjsTokenPeer::ID, $ccSubjsToken->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcSubjsTokenQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcSubjsToken', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcSubjsTokenQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcSubjsTokenQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcSubjsTokenQuery) { - return $criteria; - } - $query = new CcSubjsTokenQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcSubjsToken|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcSubjsTokenPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcSubjsTokenQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcSubjsTokenPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcSubjsTokenQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcSubjsTokenPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSubjsTokenQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcSubjsTokenPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the user_id column - * - * @param int|array $dbUserId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSubjsTokenQuery The current query, for fluid interface - */ - public function filterByDbUserId($dbUserId = null, $comparison = null) - { - if (is_array($dbUserId)) { - $useMinMax = false; - if (isset($dbUserId['min'])) { - $this->addUsingAlias(CcSubjsTokenPeer::USER_ID, $dbUserId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbUserId['max'])) { - $this->addUsingAlias(CcSubjsTokenPeer::USER_ID, $dbUserId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSubjsTokenPeer::USER_ID, $dbUserId, $comparison); - } - - /** - * Filter the query on the action column - * - * @param string $dbAction 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 CcSubjsTokenQuery The current query, for fluid interface - */ - public function filterByDbAction($dbAction = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbAction)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbAction)) { - $dbAction = str_replace('*', '%', $dbAction); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSubjsTokenPeer::ACTION, $dbAction, $comparison); - } - - /** - * Filter the query on the token column - * - * @param string $dbToken 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 CcSubjsTokenQuery The current query, for fluid interface - */ - public function filterByDbToken($dbToken = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbToken)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbToken)) { - $dbToken = str_replace('*', '%', $dbToken); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcSubjsTokenPeer::TOKEN, $dbToken, $comparison); - } - - /** - * Filter the query on the created column - * - * @param string|array $dbCreated The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSubjsTokenQuery The current query, for fluid interface - */ - public function filterByDbCreated($dbCreated = null, $comparison = null) - { - if (is_array($dbCreated)) { - $useMinMax = false; - if (isset($dbCreated['min'])) { - $this->addUsingAlias(CcSubjsTokenPeer::CREATED, $dbCreated['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbCreated['max'])) { - $this->addUsingAlias(CcSubjsTokenPeer::CREATED, $dbCreated['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcSubjsTokenPeer::CREATED, $dbCreated, $comparison); - } - - /** - * Filter the query by a related CcSubjs object - * - * @param CcSubjs $ccSubjs the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcSubjsTokenQuery The current query, for fluid interface - */ - public function filterByCcSubjs($ccSubjs, $comparison = null) - { - return $this - ->addUsingAlias(CcSubjsTokenPeer::USER_ID, $ccSubjs->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcSubjs relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcSubjsTokenQuery The current query, for fluid interface - */ - public function joinCcSubjs($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcSubjs'); - - // 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, 'CcSubjs'); - } - - return $this; - } - - /** - * Use the CcSubjs relation CcSubjs 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 CcSubjsQuery A secondary query class using the current class as primary query - */ - public function useCcSubjsQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcSubjs($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); - } - - /** - * Exclude object from result - * - * @param CcSubjsToken $ccSubjsToken Object to remove from the list of results - * - * @return CcSubjsTokenQuery The current query, for fluid interface - */ - public function prune($ccSubjsToken = null) - { - if ($ccSubjsToken) { - $this->addUsingAlias(CcSubjsTokenPeer::ID, $ccSubjsToken->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcSubjsTokenQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcTimestamp.php b/airtime_mvc/application/models/airtime/om/BaseCcTimestamp.php index d61b8e5135..dd0afc5885 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcTimestamp.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcTimestamp.php @@ -4,942 +4,1189 @@ /** * Base class that represents a row from the 'cc_timestamp' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcTimestamp extends BaseObject implements Persistent +abstract class BaseCcTimestamp extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcTimestampPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcTimestampPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the timestamp field. - * @var string - */ - protected $timestamp; - - /** - * @var array CcListenerCount[] Collection to store aggregation of CcListenerCount objects. - */ - protected $collCcListenerCounts; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [optionally formatted] temporal [timestamp] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbTimestamp($format = 'Y-m-d H:i:s') - { - if ($this->timestamp === null) { - return null; - } - - - - try { - $dt = new DateTime($this->timestamp); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->timestamp, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcTimestamp The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcTimestampPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Sets the value of [timestamp] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcTimestamp The current object (for fluent API support) - */ - public function setDbTimestamp($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->timestamp !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->timestamp !== null && $tmpDt = new DateTime($this->timestamp)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->timestamp = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcTimestampPeer::TIMESTAMP; - } - } // if either are not null - - return $this; - } // setDbTimestamp() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->timestamp = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 2; // 2 = CcTimestampPeer::NUM_COLUMNS - CcTimestampPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcTimestamp object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcTimestampPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->collCcListenerCounts = null; - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcTimestampQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcTimestampPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcTimestampPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcTimestampPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcTimestampPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows = 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows = CcTimestampPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - if ($this->collCcListenerCounts !== null) { - foreach ($this->collCcListenerCounts as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - if (($retval = CcTimestampPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - if ($this->collCcListenerCounts !== null) { - foreach ($this->collCcListenerCounts as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcTimestampPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbTimestamp(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) - { - $keys = CcTimestampPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbTimestamp(), - ); - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcTimestampPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbTimestamp($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcTimestampPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbTimestamp($arr[$keys[1]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcTimestampPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcTimestampPeer::ID)) $criteria->add(CcTimestampPeer::ID, $this->id); - if ($this->isColumnModified(CcTimestampPeer::TIMESTAMP)) $criteria->add(CcTimestampPeer::TIMESTAMP, $this->timestamp); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcTimestampPeer::DATABASE_NAME); - $criteria->add(CcTimestampPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcTimestamp (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbTimestamp($this->timestamp); - - if ($deepCopy) { - // important: temporarily setNew(false) because this affects the behavior of - // the getter/setter methods for fkey referrer objects. - $copyObj->setNew(false); - - foreach ($this->getCcListenerCounts() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcListenerCount($relObj->copy($deepCopy)); - } - } - - } // if ($deepCopy) - - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcTimestamp Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcTimestampPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcTimestampPeer(); - } - return self::$peer; - } - - /** - * Clears out the collCcListenerCounts 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 addCcListenerCounts() - */ - public function clearCcListenerCounts() - { - $this->collCcListenerCounts = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcListenerCounts collection. - * - * By default this just sets the collCcListenerCounts collection to an empty array (like clearcollCcListenerCounts()); - * 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 initCcListenerCounts() - { - $this->collCcListenerCounts = new PropelObjectCollection(); - $this->collCcListenerCounts->setModel('CcListenerCount'); - } - - /** - * Gets an array of CcListenerCount 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 CcTimestamp 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 CcListenerCount[] List of CcListenerCount objects - * @throws PropelException - */ - public function getCcListenerCounts($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcListenerCounts || null !== $criteria) { - if ($this->isNew() && null === $this->collCcListenerCounts) { - // return empty collection - $this->initCcListenerCounts(); - } else { - $collCcListenerCounts = CcListenerCountQuery::create(null, $criteria) - ->filterByCcTimestamp($this) - ->find($con); - if (null !== $criteria) { - return $collCcListenerCounts; - } - $this->collCcListenerCounts = $collCcListenerCounts; - } - } - return $this->collCcListenerCounts; - } - - /** - * Returns the number of related CcListenerCount objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcListenerCount objects. - * @throws PropelException - */ - public function countCcListenerCounts(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcListenerCounts || null !== $criteria) { - if ($this->isNew() && null === $this->collCcListenerCounts) { - return 0; - } else { - $query = CcListenerCountQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcTimestamp($this) - ->count($con); - } - } else { - return count($this->collCcListenerCounts); - } - } - - /** - * Method called to associate a CcListenerCount object to this object - * through the CcListenerCount foreign key attribute. - * - * @param CcListenerCount $l CcListenerCount - * @return void - * @throws PropelException - */ - public function addCcListenerCount(CcListenerCount $l) - { - if ($this->collCcListenerCounts === null) { - $this->initCcListenerCounts(); - } - if (!$this->collCcListenerCounts->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcListenerCounts[]= $l; - $l->setCcTimestamp($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcTimestamp is new, it will return - * an empty collection; or if this CcTimestamp has previously - * been saved, it will retrieve related CcListenerCounts from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcTimestamp. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcListenerCount[] List of CcListenerCount objects - */ - public function getCcListenerCountsJoinCcMountName($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcListenerCountQuery::create(null, $criteria); - $query->joinWith('CcMountName', $join_behavior); - - return $this->getCcListenerCounts($query, $con); - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->timestamp = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - if ($this->collCcListenerCounts) { - foreach ((array) $this->collCcListenerCounts as $o) { - $o->clearAllReferences($deep); - } - } - } // if ($deep) - - $this->collCcListenerCounts = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcTimestamp + /** + * Peer class name + */ + const PEER = 'CcTimestampPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcTimestampPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the timestamp field. + * @var string + */ + protected $timestamp; + + /** + * @var PropelObjectCollection|CcListenerCount[] Collection to store aggregation of CcListenerCount objects. + */ + protected $collCcListenerCounts; + protected $collCcListenerCountsPartial; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccListenerCountsScheduledForDeletion = null; + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [optionally formatted] temporal [timestamp] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbTimestamp($format = 'Y-m-d H:i:s') + { + if ($this->timestamp === null) { + return null; + } + + + try { + $dt = new DateTime($this->timestamp); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->timestamp, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcTimestamp The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcTimestampPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Sets the value of [timestamp] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcTimestamp The current object (for fluent API support) + */ + public function setDbTimestamp($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->timestamp !== null || $dt !== null) { + $currentDateAsString = ($this->timestamp !== null && $tmpDt = new DateTime($this->timestamp)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->timestamp = $newDateAsString; + $this->modifiedColumns[] = CcTimestampPeer::TIMESTAMP; + } + } // if either are not null + + + return $this; + } // setDbTimestamp() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->timestamp = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 2; // 2 = CcTimestampPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcTimestamp object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcTimestampPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->collCcListenerCounts = null; + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcTimestampQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcTimestampPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + if ($this->ccListenerCountsScheduledForDeletion !== null) { + if (!$this->ccListenerCountsScheduledForDeletion->isEmpty()) { + CcListenerCountQuery::create() + ->filterByPrimaryKeys($this->ccListenerCountsScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccListenerCountsScheduledForDeletion = null; + } + } + + if ($this->collCcListenerCounts !== null) { + foreach ($this->collCcListenerCounts as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcTimestampPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcTimestampPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_timestamp_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcTimestampPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcTimestampPeer::TIMESTAMP)) { + $modifiedColumns[':p' . $index++] = '"timestamp"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_timestamp" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"timestamp"': + $stmt->bindValue($identifier, $this->timestamp, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + if (($retval = CcTimestampPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + if ($this->collCcListenerCounts !== null) { + foreach ($this->collCcListenerCounts as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcTimestampPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbTimestamp(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcTimestamp'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcTimestamp'][$this->getPrimaryKey()] = true; + $keys = CcTimestampPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbTimestamp(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->collCcListenerCounts) { + $result['CcListenerCounts'] = $this->collCcListenerCounts->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcTimestampPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbTimestamp($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcTimestampPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbTimestamp($arr[$keys[1]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcTimestampPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcTimestampPeer::ID)) $criteria->add(CcTimestampPeer::ID, $this->id); + if ($this->isColumnModified(CcTimestampPeer::TIMESTAMP)) $criteria->add(CcTimestampPeer::TIMESTAMP, $this->timestamp); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcTimestampPeer::DATABASE_NAME); + $criteria->add(CcTimestampPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcTimestamp (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbTimestamp($this->getDbTimestamp()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + foreach ($this->getCcListenerCounts() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcListenerCount($relObj->copy($deepCopy)); + } + } + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcTimestamp Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcTimestampPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcTimestampPeer(); + } + + return self::$peer; + } + + + /** + * Initializes a collection based on the name of a relation. + * Avoids crafting an 'init[$relationName]s' method name + * that wouldn't work when StandardEnglishPluralizer is used. + * + * @param string $relationName The name of the relation to initialize + * @return void + */ + public function initRelation($relationName) + { + if ('CcListenerCount' == $relationName) { + $this->initCcListenerCounts(); + } + } + + /** + * Clears out the collCcListenerCounts 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 CcTimestamp The current object (for fluent API support) + * @see addCcListenerCounts() + */ + public function clearCcListenerCounts() + { + $this->collCcListenerCounts = null; // important to set this to null since that means it is uninitialized + $this->collCcListenerCountsPartial = null; + + return $this; + } + + /** + * reset is the collCcListenerCounts collection loaded partially + * + * @return void + */ + public function resetPartialCcListenerCounts($v = true) + { + $this->collCcListenerCountsPartial = $v; + } + + /** + * Initializes the collCcListenerCounts collection. + * + * By default this just sets the collCcListenerCounts collection to an empty array (like clearcollCcListenerCounts()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcListenerCounts($overrideExisting = true) + { + if (null !== $this->collCcListenerCounts && !$overrideExisting) { + return; + } + $this->collCcListenerCounts = new PropelObjectCollection(); + $this->collCcListenerCounts->setModel('CcListenerCount'); + } + + /** + * Gets an array of CcListenerCount 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 CcTimestamp 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 PropelObjectCollection|CcListenerCount[] List of CcListenerCount objects + * @throws PropelException + */ + public function getCcListenerCounts($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcListenerCountsPartial && !$this->isNew(); + if (null === $this->collCcListenerCounts || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcListenerCounts) { + // return empty collection + $this->initCcListenerCounts(); + } else { + $collCcListenerCounts = CcListenerCountQuery::create(null, $criteria) + ->filterByCcTimestamp($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcListenerCountsPartial && count($collCcListenerCounts)) { + $this->initCcListenerCounts(false); + + foreach ($collCcListenerCounts as $obj) { + if (false == $this->collCcListenerCounts->contains($obj)) { + $this->collCcListenerCounts->append($obj); + } + } + + $this->collCcListenerCountsPartial = true; + } + + $collCcListenerCounts->getInternalIterator()->rewind(); + + return $collCcListenerCounts; + } + + if ($partial && $this->collCcListenerCounts) { + foreach ($this->collCcListenerCounts as $obj) { + if ($obj->isNew()) { + $collCcListenerCounts[] = $obj; + } + } + } + + $this->collCcListenerCounts = $collCcListenerCounts; + $this->collCcListenerCountsPartial = false; + } + } + + return $this->collCcListenerCounts; + } + + /** + * Sets a collection of CcListenerCount objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccListenerCounts A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcTimestamp The current object (for fluent API support) + */ + public function setCcListenerCounts(PropelCollection $ccListenerCounts, PropelPDO $con = null) + { + $ccListenerCountsToDelete = $this->getCcListenerCounts(new Criteria(), $con)->diff($ccListenerCounts); + + + $this->ccListenerCountsScheduledForDeletion = $ccListenerCountsToDelete; + + foreach ($ccListenerCountsToDelete as $ccListenerCountRemoved) { + $ccListenerCountRemoved->setCcTimestamp(null); + } + + $this->collCcListenerCounts = null; + foreach ($ccListenerCounts as $ccListenerCount) { + $this->addCcListenerCount($ccListenerCount); + } + + $this->collCcListenerCounts = $ccListenerCounts; + $this->collCcListenerCountsPartial = false; + + return $this; + } + + /** + * Returns the number of related CcListenerCount objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcListenerCount objects. + * @throws PropelException + */ + public function countCcListenerCounts(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcListenerCountsPartial && !$this->isNew(); + if (null === $this->collCcListenerCounts || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcListenerCounts) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcListenerCounts()); + } + $query = CcListenerCountQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcTimestamp($this) + ->count($con); + } + + return count($this->collCcListenerCounts); + } + + /** + * Method called to associate a CcListenerCount object to this object + * through the CcListenerCount foreign key attribute. + * + * @param CcListenerCount $l CcListenerCount + * @return CcTimestamp The current object (for fluent API support) + */ + public function addCcListenerCount(CcListenerCount $l) + { + if ($this->collCcListenerCounts === null) { + $this->initCcListenerCounts(); + $this->collCcListenerCountsPartial = true; + } + + if (!in_array($l, $this->collCcListenerCounts->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcListenerCount($l); + + if ($this->ccListenerCountsScheduledForDeletion and $this->ccListenerCountsScheduledForDeletion->contains($l)) { + $this->ccListenerCountsScheduledForDeletion->remove($this->ccListenerCountsScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcListenerCount $ccListenerCount The ccListenerCount object to add. + */ + protected function doAddCcListenerCount($ccListenerCount) + { + $this->collCcListenerCounts[]= $ccListenerCount; + $ccListenerCount->setCcTimestamp($this); + } + + /** + * @param CcListenerCount $ccListenerCount The ccListenerCount object to remove. + * @return CcTimestamp The current object (for fluent API support) + */ + public function removeCcListenerCount($ccListenerCount) + { + if ($this->getCcListenerCounts()->contains($ccListenerCount)) { + $this->collCcListenerCounts->remove($this->collCcListenerCounts->search($ccListenerCount)); + if (null === $this->ccListenerCountsScheduledForDeletion) { + $this->ccListenerCountsScheduledForDeletion = clone $this->collCcListenerCounts; + $this->ccListenerCountsScheduledForDeletion->clear(); + } + $this->ccListenerCountsScheduledForDeletion[]= clone $ccListenerCount; + $ccListenerCount->setCcTimestamp(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcTimestamp is new, it will return + * an empty collection; or if this CcTimestamp has previously + * been saved, it will retrieve related CcListenerCounts from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcTimestamp. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcListenerCount[] List of CcListenerCount objects + */ + public function getCcListenerCountsJoinCcMountName($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcListenerCountQuery::create(null, $criteria); + $query->joinWith('CcMountName', $join_behavior); + + return $this->getCcListenerCounts($query, $con); + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->timestamp = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->collCcListenerCounts) { + foreach ($this->collCcListenerCounts as $o) { + $o->clearAllReferences($deep); + } + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + if ($this->collCcListenerCounts instanceof PropelCollection) { + $this->collCcListenerCounts->clearIterator(); + } + $this->collCcListenerCounts = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcTimestampPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcTimestampPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcTimestampPeer.php index 3d3b7d6ae4..961ad255cc 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcTimestampPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcTimestampPeer.php @@ -4,735 +4,757 @@ /** * Base static class for performing query and update operations on the 'cc_timestamp' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcTimestampPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_timestamp'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcTimestamp'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcTimestamp'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcTimestampTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 2; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_timestamp.ID'; - - /** the column name for the TIMESTAMP field */ - const TIMESTAMP = 'cc_timestamp.TIMESTAMP'; - - /** - * An identiy map to hold any loaded instances of CcTimestamp objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcTimestamp[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbTimestamp', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbTimestamp', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::TIMESTAMP, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'TIMESTAMP', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'timestamp', ), - BasePeer::TYPE_NUM => array (0, 1, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbTimestamp' => 1, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbTimestamp' => 1, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::TIMESTAMP => 1, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'TIMESTAMP' => 1, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'timestamp' => 1, ), - BasePeer::TYPE_NUM => array (0, 1, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcTimestampPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcTimestampPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcTimestampPeer::ID); - $criteria->addSelectColumn(CcTimestampPeer::TIMESTAMP); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.TIMESTAMP'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcTimestampPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcTimestampPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcTimestamp - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcTimestampPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcTimestampPeer::populateObjects(CcTimestampPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcTimestampPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcTimestamp $value A CcTimestamp object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcTimestamp $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcTimestamp object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcTimestamp) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcTimestamp object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcTimestamp Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_timestamp - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - // Invalidate objects in CcListenerCountPeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcListenerCountPeer::clearInstancePool(); - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcTimestampPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcTimestampPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcTimestampPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcTimestampPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcTimestamp object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcTimestampPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcTimestampPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcTimestampPeer::NUM_COLUMNS; - } else { - $cls = CcTimestampPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcTimestampPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcTimestampPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcTimestampPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcTimestampTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcTimestampPeer::CLASS_DEFAULT : CcTimestampPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcTimestamp or Criteria object. - * - * @param mixed $values Criteria or CcTimestamp object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcTimestamp object - } - - if ($criteria->containsKey(CcTimestampPeer::ID) && $criteria->keyContainsValue(CcTimestampPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcTimestampPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcTimestamp or Criteria object. - * - * @param mixed $values Criteria or CcTimestamp object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcTimestampPeer::ID); - $value = $criteria->remove(CcTimestampPeer::ID); - if ($value) { - $selectCriteria->add(CcTimestampPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcTimestampPeer::TABLE_NAME); - } - - } else { // $values is CcTimestamp object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_timestamp table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcTimestampPeer::TABLE_NAME, $con, CcTimestampPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcTimestampPeer::clearInstancePool(); - CcTimestampPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcTimestamp or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcTimestamp object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcTimestampPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcTimestamp) { // it's a model object - // invalidate the cache for this single object - CcTimestampPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcTimestampPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcTimestampPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcTimestampPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcTimestamp object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcTimestamp $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcTimestamp $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcTimestampPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcTimestampPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcTimestampPeer::DATABASE_NAME, CcTimestampPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcTimestamp - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcTimestampPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcTimestampPeer::DATABASE_NAME); - $criteria->add(CcTimestampPeer::ID, $pk); - - $v = CcTimestampPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcTimestampPeer::DATABASE_NAME); - $criteria->add(CcTimestampPeer::ID, $pks, Criteria::IN); - $objs = CcTimestampPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcTimestampPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_timestamp'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcTimestamp'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcTimestampTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 2; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 2; + + /** the column name for the id field */ + const ID = 'cc_timestamp.id'; + + /** the column name for the timestamp field */ + const TIMESTAMP = 'cc_timestamp.timestamp'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcTimestamp objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcTimestamp[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcTimestampPeer::$fieldNames[CcTimestampPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbTimestamp', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbTimestamp', ), + BasePeer::TYPE_COLNAME => array (CcTimestampPeer::ID, CcTimestampPeer::TIMESTAMP, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'TIMESTAMP', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'timestamp', ), + BasePeer::TYPE_NUM => array (0, 1, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcTimestampPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbTimestamp' => 1, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbTimestamp' => 1, ), + BasePeer::TYPE_COLNAME => array (CcTimestampPeer::ID => 0, CcTimestampPeer::TIMESTAMP => 1, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'TIMESTAMP' => 1, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'timestamp' => 1, ), + BasePeer::TYPE_NUM => array (0, 1, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcTimestampPeer::getFieldNames($toType); + $key = isset(CcTimestampPeer::$fieldKeys[$fromType][$name]) ? CcTimestampPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcTimestampPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcTimestampPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcTimestampPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcTimestampPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcTimestampPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcTimestampPeer::ID); + $criteria->addSelectColumn(CcTimestampPeer::TIMESTAMP); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.timestamp'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcTimestampPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcTimestampPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcTimestampPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcTimestamp + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcTimestampPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcTimestampPeer::populateObjects(CcTimestampPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcTimestampPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcTimestampPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcTimestamp $obj A CcTimestamp object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcTimestampPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcTimestamp object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcTimestamp) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcTimestamp object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcTimestampPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcTimestamp Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcTimestampPeer::$instances[$key])) { + return CcTimestampPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcTimestampPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcTimestampPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_timestamp + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + // Invalidate objects in CcListenerCountPeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcListenerCountPeer::clearInstancePool(); + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcTimestampPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcTimestampPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcTimestampPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcTimestampPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcTimestamp object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcTimestampPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcTimestampPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcTimestampPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcTimestampPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcTimestampPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcTimestampPeer::DATABASE_NAME)->getTable(CcTimestampPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcTimestampPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcTimestampPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcTimestampTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcTimestampPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcTimestamp or Criteria object. + * + * @param mixed $values Criteria or CcTimestamp object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcTimestamp object + } + + if ($criteria->containsKey(CcTimestampPeer::ID) && $criteria->keyContainsValue(CcTimestampPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcTimestampPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcTimestampPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcTimestamp or Criteria object. + * + * @param mixed $values Criteria or CcTimestamp object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcTimestampPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcTimestampPeer::ID); + $value = $criteria->remove(CcTimestampPeer::ID); + if ($value) { + $selectCriteria->add(CcTimestampPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcTimestampPeer::TABLE_NAME); + } + + } else { // $values is CcTimestamp object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcTimestampPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_timestamp table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcTimestampPeer::TABLE_NAME, $con, CcTimestampPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcTimestampPeer::clearInstancePool(); + CcTimestampPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcTimestamp or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcTimestamp object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcTimestampPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcTimestamp) { // it's a model object + // invalidate the cache for this single object + CcTimestampPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcTimestampPeer::DATABASE_NAME); + $criteria->add(CcTimestampPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcTimestampPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcTimestampPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcTimestampPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcTimestamp object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcTimestamp $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcTimestampPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcTimestampPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcTimestampPeer::DATABASE_NAME, CcTimestampPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcTimestamp + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcTimestampPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcTimestampPeer::DATABASE_NAME); + $criteria->add(CcTimestampPeer::ID, $pk); + + $v = CcTimestampPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcTimestamp[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcTimestampPeer::DATABASE_NAME); + $criteria->add(CcTimestampPeer::ID, $pks, Criteria::IN); + $objs = CcTimestampPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcTimestampPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcTimestampQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcTimestampQuery.php index a3f3831129..6c4f80e58d 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcTimestampQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcTimestampQuery.php @@ -4,265 +4,398 @@ /** * Base class that represents a query for the 'cc_timestamp' table. * - * * - * @method CcTimestampQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcTimestampQuery orderByDbTimestamp($order = Criteria::ASC) Order by the timestamp column * - * @method CcTimestampQuery groupByDbId() Group by the id column - * @method CcTimestampQuery groupByDbTimestamp() Group by the timestamp column + * @method CcTimestampQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcTimestampQuery orderByDbTimestamp($order = Criteria::ASC) Order by the timestamp column * - * @method CcTimestampQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcTimestampQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcTimestampQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcTimestampQuery groupByDbId() Group by the id column + * @method CcTimestampQuery groupByDbTimestamp() Group by the timestamp column * - * @method CcTimestampQuery leftJoinCcListenerCount($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcListenerCount relation - * @method CcTimestampQuery rightJoinCcListenerCount($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcListenerCount relation - * @method CcTimestampQuery innerJoinCcListenerCount($relationAlias = '') Adds a INNER JOIN clause to the query using the CcListenerCount relation + * @method CcTimestampQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcTimestampQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcTimestampQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcTimestamp findOne(PropelPDO $con = null) Return the first CcTimestamp matching the query - * @method CcTimestamp findOneOrCreate(PropelPDO $con = null) Return the first CcTimestamp matching the query, or a new CcTimestamp object populated from the query conditions when no match is found + * @method CcTimestampQuery leftJoinCcListenerCount($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcListenerCount relation + * @method CcTimestampQuery rightJoinCcListenerCount($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcListenerCount relation + * @method CcTimestampQuery innerJoinCcListenerCount($relationAlias = null) Adds a INNER JOIN clause to the query using the CcListenerCount relation * - * @method CcTimestamp findOneByDbId(int $id) Return the first CcTimestamp filtered by the id column - * @method CcTimestamp findOneByDbTimestamp(string $timestamp) Return the first CcTimestamp filtered by the timestamp column + * @method CcTimestamp findOne(PropelPDO $con = null) Return the first CcTimestamp matching the query + * @method CcTimestamp findOneOrCreate(PropelPDO $con = null) Return the first CcTimestamp matching the query, or a new CcTimestamp object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcTimestamp objects filtered by the id column - * @method array findByDbTimestamp(string $timestamp) Return CcTimestamp objects filtered by the timestamp column + * @method CcTimestamp findOneByDbTimestamp(string $timestamp) Return the first CcTimestamp filtered by the timestamp column + * + * @method array findByDbId(int $id) Return CcTimestamp objects filtered by the id column + * @method array findByDbTimestamp(string $timestamp) Return CcTimestamp objects filtered by the timestamp column * * @package propel.generator.airtime.om */ abstract class BaseCcTimestampQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcTimestampQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcTimestamp'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcTimestampQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcTimestampQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcTimestampQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcTimestampQuery) { + return $criteria; + } + $query = new CcTimestampQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcTimestamp|CcTimestamp[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcTimestampPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcTimestampPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcTimestamp A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcTimestamp A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "timestamp" FROM "cc_timestamp" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcTimestamp(); + $obj->hydrate($row); + CcTimestampPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcTimestamp|CcTimestamp[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcTimestamp[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcTimestampQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcTimestampPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcTimestampQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcTimestampPeer::ID, $keys, Criteria::IN); + } - /** - * Initializes internal state of BaseCcTimestampQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcTimestamp', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcTimestampQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcTimestampPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcTimestampPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } - /** - * Returns a new CcTimestampQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcTimestampQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcTimestampQuery) { - return $criteria; - } - $query = new CcTimestampQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } + return $this->addUsingAlias(CcTimestampPeer::ID, $dbId, $comparison); + } - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcTimestamp|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcTimestampPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } + /** + * Filter the query on the timestamp column + * + * Example usage: + * + * $query->filterByDbTimestamp('2011-03-14'); // WHERE timestamp = '2011-03-14' + * $query->filterByDbTimestamp('now'); // WHERE timestamp = '2011-03-14' + * $query->filterByDbTimestamp(array('max' => 'yesterday')); // WHERE timestamp < '2011-03-13' + * + * + * @param mixed $dbTimestamp The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcTimestampQuery The current query, for fluid interface + */ + public function filterByDbTimestamp($dbTimestamp = null, $comparison = null) + { + if (is_array($dbTimestamp)) { + $useMinMax = false; + if (isset($dbTimestamp['min'])) { + $this->addUsingAlias(CcTimestampPeer::TIMESTAMP, $dbTimestamp['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbTimestamp['max'])) { + $this->addUsingAlias(CcTimestampPeer::TIMESTAMP, $dbTimestamp['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } + return $this->addUsingAlias(CcTimestampPeer::TIMESTAMP, $dbTimestamp, $comparison); + } - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcTimestampQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcTimestampPeer::ID, $key, Criteria::EQUAL); - } + /** + * Filter the query by a related CcListenerCount object + * + * @param CcListenerCount|PropelObjectCollection $ccListenerCount the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcTimestampQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcListenerCount($ccListenerCount, $comparison = null) + { + if ($ccListenerCount instanceof CcListenerCount) { + return $this + ->addUsingAlias(CcTimestampPeer::ID, $ccListenerCount->getDbTimestampId(), $comparison); + } elseif ($ccListenerCount instanceof PropelObjectCollection) { + return $this + ->useCcListenerCountQuery() + ->filterByPrimaryKeys($ccListenerCount->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcListenerCount() only accepts arguments of type CcListenerCount or PropelCollection'); + } + } - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcTimestampQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcTimestampPeer::ID, $keys, Criteria::IN); - } + /** + * Adds a JOIN clause to the query using the CcListenerCount relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcTimestampQuery The current query, for fluid interface + */ + public function joinCcListenerCount($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcListenerCount'); - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcTimestampQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcTimestampPeer::ID, $dbId, $comparison); - } + // 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); + } - /** - * Filter the query on the timestamp column - * - * @param string|array $dbTimestamp The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcTimestampQuery The current query, for fluid interface - */ - public function filterByDbTimestamp($dbTimestamp = null, $comparison = null) - { - if (is_array($dbTimestamp)) { - $useMinMax = false; - if (isset($dbTimestamp['min'])) { - $this->addUsingAlias(CcTimestampPeer::TIMESTAMP, $dbTimestamp['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbTimestamp['max'])) { - $this->addUsingAlias(CcTimestampPeer::TIMESTAMP, $dbTimestamp['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcTimestampPeer::TIMESTAMP, $dbTimestamp, $comparison); - } + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'CcListenerCount'); + } - /** - * Filter the query by a related CcListenerCount object - * - * @param CcListenerCount $ccListenerCount the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcTimestampQuery The current query, for fluid interface - */ - public function filterByCcListenerCount($ccListenerCount, $comparison = null) - { - return $this - ->addUsingAlias(CcTimestampPeer::ID, $ccListenerCount->getDbTimestampId(), $comparison); - } + return $this; + } - /** - * Adds a JOIN clause to the query using the CcListenerCount relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcTimestampQuery The current query, for fluid interface - */ - public function joinCcListenerCount($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcListenerCount'); - - // 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, 'CcListenerCount'); - } - - return $this; - } + /** + * Use the CcListenerCount relation CcListenerCount 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 CcListenerCountQuery A secondary query class using the current class as primary query + */ + public function useCcListenerCountQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcListenerCount($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcListenerCount', 'CcListenerCountQuery'); + } - /** - * Use the CcListenerCount relation CcListenerCount 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 CcListenerCountQuery A secondary query class using the current class as primary query - */ - public function useCcListenerCountQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcListenerCount($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcListenerCount', 'CcListenerCountQuery'); - } + /** + * Exclude object from result + * + * @param CcTimestamp $ccTimestamp Object to remove from the list of results + * + * @return CcTimestampQuery The current query, for fluid interface + */ + public function prune($ccTimestamp = null) + { + if ($ccTimestamp) { + $this->addUsingAlias(CcTimestampPeer::ID, $ccTimestamp->getDbId(), Criteria::NOT_EQUAL); + } - /** - * Exclude object from result - * - * @param CcTimestamp $ccTimestamp Object to remove from the list of results - * - * @return CcTimestampQuery The current query, for fluid interface - */ - public function prune($ccTimestamp = null) - { - if ($ccTimestamp) { - $this->addUsingAlias(CcTimestampPeer::ID, $ccTimestamp->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } + return $this; + } -} // BaseCcTimestampQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcWebstream.php b/airtime_mvc/application/models/airtime/om/BaseCcWebstream.php index 6f6e16e2b5..fedddbcbd0 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcWebstream.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcWebstream.php @@ -4,1482 +4,1741 @@ /** * Base class that represents a row from the 'cc_webstream' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcWebstream extends BaseObject implements Persistent +abstract class BaseCcWebstream extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcWebstreamPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcWebstreamPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the name field. - * @var string - */ - protected $name; - - /** - * The value for the description field. - * @var string - */ - protected $description; - - /** - * The value for the url field. - * @var string - */ - protected $url; - - /** - * The value for the length field. - * Note: this column has a database default value of: '00:00:00' - * @var string - */ - protected $length; - - /** - * The value for the creator_id field. - * @var int - */ - protected $creator_id; - - /** - * The value for the mtime field. - * @var string - */ - protected $mtime; - - /** - * The value for the utime field. - * @var string - */ - protected $utime; - - /** - * The value for the lptime field. - * @var string - */ - protected $lptime; - - /** - * The value for the mime field. - * @var string - */ - protected $mime; - - /** - * @var array CcSchedule[] Collection to store aggregation of CcSchedule objects. - */ - protected $collCcSchedules; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - 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->length = '00:00:00'; - } - - /** - * Initializes internal state of BaseCcWebstream object. - * @see applyDefaults() - */ - public function __construct() - { - parent::__construct(); - $this->applyDefaultValues(); - } - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [name] column value. - * - * @return string - */ - public function getDbName() - { - return $this->name; - } - - /** - * Get the [description] column value. - * - * @return string - */ - public function getDbDescription() - { - return $this->description; - } - - /** - * Get the [url] column value. - * - * @return string - */ - public function getDbUrl() - { - return $this->url; - } - - /** - * Get the [length] column value. - * - * @return string - */ - public function getDbLength() - { - return $this->length; - } - - /** - * Get the [creator_id] column value. - * - * @return int - */ - public function getDbCreatorId() - { - return $this->creator_id; - } - - /** - * Get the [optionally formatted] temporal [mtime] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbMtime($format = 'Y-m-d H:i:s') - { - if ($this->mtime === null) { - return null; - } - - - - try { - $dt = new DateTime($this->mtime); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->mtime, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [utime] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbUtime($format = 'Y-m-d H:i:s') - { - if ($this->utime === null) { - return null; - } - - - - try { - $dt = new DateTime($this->utime); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->utime, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [optionally formatted] temporal [lptime] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbLPtime($format = 'Y-m-d H:i:s') - { - if ($this->lptime === null) { - return null; - } - - - - try { - $dt = new DateTime($this->lptime); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->lptime, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [mime] column value. - * - * @return string - */ - public function getDbMime() - { - return $this->mime; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcWebstream The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcWebstreamPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [name] column. - * - * @param string $v new value - * @return CcWebstream The current object (for fluent API support) - */ - public function setDbName($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->name !== $v) { - $this->name = $v; - $this->modifiedColumns[] = CcWebstreamPeer::NAME; - } - - return $this; - } // setDbName() - - /** - * Set the value of [description] column. - * - * @param string $v new value - * @return CcWebstream The current object (for fluent API support) - */ - public function setDbDescription($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->description !== $v) { - $this->description = $v; - $this->modifiedColumns[] = CcWebstreamPeer::DESCRIPTION; - } - - return $this; - } // setDbDescription() - - /** - * Set the value of [url] column. - * - * @param string $v new value - * @return CcWebstream The current object (for fluent API support) - */ - public function setDbUrl($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->url !== $v) { - $this->url = $v; - $this->modifiedColumns[] = CcWebstreamPeer::URL; - } - - return $this; - } // setDbUrl() - - /** - * Set the value of [length] column. - * - * @param string $v new value - * @return CcWebstream The current object (for fluent API support) - */ - public function setDbLength($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->length !== $v || $this->isNew()) { - $this->length = $v; - $this->modifiedColumns[] = CcWebstreamPeer::LENGTH; - } - - return $this; - } // setDbLength() - - /** - * Set the value of [creator_id] column. - * - * @param int $v new value - * @return CcWebstream The current object (for fluent API support) - */ - public function setDbCreatorId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->creator_id !== $v) { - $this->creator_id = $v; - $this->modifiedColumns[] = CcWebstreamPeer::CREATOR_ID; - } - - return $this; - } // setDbCreatorId() - - /** - * Sets the value of [mtime] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcWebstream The current object (for fluent API support) - */ - public function setDbMtime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->mtime !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->mtime !== null && $tmpDt = new DateTime($this->mtime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->mtime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcWebstreamPeer::MTIME; - } - } // if either are not null - - return $this; - } // setDbMtime() - - /** - * Sets the value of [utime] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcWebstream The current object (for fluent API support) - */ - public function setDbUtime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->utime !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->utime !== null && $tmpDt = new DateTime($this->utime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->utime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcWebstreamPeer::UTIME; - } - } // if either are not null - - return $this; - } // setDbUtime() - - /** - * Sets the value of [lptime] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcWebstream The current object (for fluent API support) - */ - public function setDbLPtime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->lptime !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->lptime !== null && $tmpDt = new DateTime($this->lptime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->lptime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcWebstreamPeer::LPTIME; - } - } // if either are not null - - return $this; - } // setDbLPtime() - - /** - * Set the value of [mime] column. - * - * @param string $v new value - * @return CcWebstream The current object (for fluent API support) - */ - public function setDbMime($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->mime !== $v) { - $this->mime = $v; - $this->modifiedColumns[] = CcWebstreamPeer::MIME; - } - - return $this; - } // setDbMime() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - if ($this->length !== '00:00:00') { - return false; - } - - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->description = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->url = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->length = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; - $this->creator_id = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null; - $this->mtime = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; - $this->utime = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null; - $this->lptime = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; - $this->mime = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 10; // 10 = CcWebstreamPeer::NUM_COLUMNS - CcWebstreamPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcWebstream object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcWebstreamPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->collCcSchedules = null; - - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcWebstreamQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcWebstreamPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcWebstreamPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcWebstreamPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcWebstreamPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows = 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows = CcWebstreamPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - if ($this->collCcSchedules !== null) { - foreach ($this->collCcSchedules as $referrerFK) { - if (!$referrerFK->isDeleted()) { - $affectedRows += $referrerFK->save($con); - } - } - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - if (($retval = CcWebstreamPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - if ($this->collCcSchedules !== null) { - foreach ($this->collCcSchedules as $referrerFK) { - if (!$referrerFK->validate($columns)) { - $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); - } - } - } - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcWebstreamPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbName(); - break; - case 2: - return $this->getDbDescription(); - break; - case 3: - return $this->getDbUrl(); - break; - case 4: - return $this->getDbLength(); - break; - case 5: - return $this->getDbCreatorId(); - break; - case 6: - return $this->getDbMtime(); - break; - case 7: - return $this->getDbUtime(); - break; - case 8: - return $this->getDbLPtime(); - break; - case 9: - return $this->getDbMime(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) - { - $keys = CcWebstreamPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbName(), - $keys[2] => $this->getDbDescription(), - $keys[3] => $this->getDbUrl(), - $keys[4] => $this->getDbLength(), - $keys[5] => $this->getDbCreatorId(), - $keys[6] => $this->getDbMtime(), - $keys[7] => $this->getDbUtime(), - $keys[8] => $this->getDbLPtime(), - $keys[9] => $this->getDbMime(), - ); - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcWebstreamPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbName($value); - break; - case 2: - $this->setDbDescription($value); - break; - case 3: - $this->setDbUrl($value); - break; - case 4: - $this->setDbLength($value); - break; - case 5: - $this->setDbCreatorId($value); - break; - case 6: - $this->setDbMtime($value); - break; - case 7: - $this->setDbUtime($value); - break; - case 8: - $this->setDbLPtime($value); - break; - case 9: - $this->setDbMime($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcWebstreamPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbDescription($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbUrl($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbLength($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setDbCreatorId($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setDbMtime($arr[$keys[6]]); - if (array_key_exists($keys[7], $arr)) $this->setDbUtime($arr[$keys[7]]); - if (array_key_exists($keys[8], $arr)) $this->setDbLPtime($arr[$keys[8]]); - if (array_key_exists($keys[9], $arr)) $this->setDbMime($arr[$keys[9]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcWebstreamPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcWebstreamPeer::ID)) $criteria->add(CcWebstreamPeer::ID, $this->id); - if ($this->isColumnModified(CcWebstreamPeer::NAME)) $criteria->add(CcWebstreamPeer::NAME, $this->name); - if ($this->isColumnModified(CcWebstreamPeer::DESCRIPTION)) $criteria->add(CcWebstreamPeer::DESCRIPTION, $this->description); - if ($this->isColumnModified(CcWebstreamPeer::URL)) $criteria->add(CcWebstreamPeer::URL, $this->url); - if ($this->isColumnModified(CcWebstreamPeer::LENGTH)) $criteria->add(CcWebstreamPeer::LENGTH, $this->length); - if ($this->isColumnModified(CcWebstreamPeer::CREATOR_ID)) $criteria->add(CcWebstreamPeer::CREATOR_ID, $this->creator_id); - if ($this->isColumnModified(CcWebstreamPeer::MTIME)) $criteria->add(CcWebstreamPeer::MTIME, $this->mtime); - if ($this->isColumnModified(CcWebstreamPeer::UTIME)) $criteria->add(CcWebstreamPeer::UTIME, $this->utime); - if ($this->isColumnModified(CcWebstreamPeer::LPTIME)) $criteria->add(CcWebstreamPeer::LPTIME, $this->lptime); - if ($this->isColumnModified(CcWebstreamPeer::MIME)) $criteria->add(CcWebstreamPeer::MIME, $this->mime); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcWebstreamPeer::DATABASE_NAME); - $criteria->add(CcWebstreamPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcWebstream (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbName($this->name); - $copyObj->setDbDescription($this->description); - $copyObj->setDbUrl($this->url); - $copyObj->setDbLength($this->length); - $copyObj->setDbCreatorId($this->creator_id); - $copyObj->setDbMtime($this->mtime); - $copyObj->setDbUtime($this->utime); - $copyObj->setDbLPtime($this->lptime); - $copyObj->setDbMime($this->mime); - - if ($deepCopy) { - // important: temporarily setNew(false) because this affects the behavior of - // the getter/setter methods for fkey referrer objects. - $copyObj->setNew(false); - - foreach ($this->getCcSchedules() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCcSchedule($relObj->copy($deepCopy)); - } - } - - } // if ($deepCopy) - - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcWebstream Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcWebstreamPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcWebstreamPeer(); - } - return self::$peer; - } - - /** - * Clears out the collCcSchedules 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 addCcSchedules() - */ - public function clearCcSchedules() - { - $this->collCcSchedules = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Initializes the collCcSchedules collection. - * - * By default this just sets the collCcSchedules collection to an empty array (like clearcollCcSchedules()); - * 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 initCcSchedules() - { - $this->collCcSchedules = new PropelObjectCollection(); - $this->collCcSchedules->setModel('CcSchedule'); - } - - /** - * Gets an array of CcSchedule 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 CcWebstream 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 CcSchedule[] List of CcSchedule objects - * @throws PropelException - */ - public function getCcSchedules($criteria = null, PropelPDO $con = null) - { - if(null === $this->collCcSchedules || null !== $criteria) { - if ($this->isNew() && null === $this->collCcSchedules) { - // return empty collection - $this->initCcSchedules(); - } else { - $collCcSchedules = CcScheduleQuery::create(null, $criteria) - ->filterByCcWebstream($this) - ->find($con); - if (null !== $criteria) { - return $collCcSchedules; - } - $this->collCcSchedules = $collCcSchedules; - } - } - return $this->collCcSchedules; - } - - /** - * Returns the number of related CcSchedule objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param PropelPDO $con - * @return int Count of related CcSchedule objects. - * @throws PropelException - */ - public function countCcSchedules(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) - { - if(null === $this->collCcSchedules || null !== $criteria) { - if ($this->isNew() && null === $this->collCcSchedules) { - return 0; - } else { - $query = CcScheduleQuery::create(null, $criteria); - if($distinct) { - $query->distinct(); - } - return $query - ->filterByCcWebstream($this) - ->count($con); - } - } else { - return count($this->collCcSchedules); - } - } - - /** - * Method called to associate a CcSchedule object to this object - * through the CcSchedule foreign key attribute. - * - * @param CcSchedule $l CcSchedule - * @return void - * @throws PropelException - */ - public function addCcSchedule(CcSchedule $l) - { - if ($this->collCcSchedules === null) { - $this->initCcSchedules(); - } - if (!$this->collCcSchedules->contains($l)) { // only add it if the **same** object is not already associated - $this->collCcSchedules[]= $l; - $l->setCcWebstream($this); - } - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcWebstream is new, it will return - * an empty collection; or if this CcWebstream has previously - * been saved, it will retrieve related CcSchedules from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcWebstream. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcSchedule[] List of CcSchedule objects - */ - public function getCcSchedulesJoinCcShowInstances($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcScheduleQuery::create(null, $criteria); - $query->joinWith('CcShowInstances', $join_behavior); - - return $this->getCcSchedules($query, $con); - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this CcWebstream is new, it will return - * an empty collection; or if this CcWebstream has previously - * been saved, it will retrieve related CcSchedules from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in CcWebstream. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param PropelPDO $con optional connection object - * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return PropelCollection|array CcSchedule[] List of CcSchedule objects - */ - public function getCcSchedulesJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $query = CcScheduleQuery::create(null, $criteria); - $query->joinWith('CcFiles', $join_behavior); - - return $this->getCcSchedules($query, $con); - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->name = null; - $this->description = null; - $this->url = null; - $this->length = null; - $this->creator_id = null; - $this->mtime = null; - $this->utime = null; - $this->lptime = null; - $this->mime = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->applyDefaultValues(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - if ($this->collCcSchedules) { - foreach ((array) $this->collCcSchedules as $o) { - $o->clearAllReferences($deep); - } - } - } // if ($deep) - - $this->collCcSchedules = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcWebstream + /** + * Peer class name + */ + const PEER = 'CcWebstreamPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcWebstreamPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the name field. + * @var string + */ + protected $name; + + /** + * The value for the description field. + * @var string + */ + protected $description; + + /** + * The value for the url field. + * @var string + */ + protected $url; + + /** + * The value for the length field. + * Note: this column has a database default value of: '00:00:00' + * @var string + */ + protected $length; + + /** + * The value for the creator_id field. + * @var int + */ + protected $creator_id; + + /** + * The value for the mtime field. + * @var string + */ + protected $mtime; + + /** + * The value for the utime field. + * @var string + */ + protected $utime; + + /** + * The value for the lptime field. + * @var string + */ + protected $lptime; + + /** + * The value for the mime field. + * @var string + */ + protected $mime; + + /** + * @var PropelObjectCollection|CcSchedule[] Collection to store aggregation of CcSchedule objects. + */ + protected $collCcSchedules; + protected $collCcSchedulesPartial; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * An array of objects scheduled for deletion. + * @var PropelObjectCollection + */ + protected $ccSchedulesScheduledForDeletion = null; + + /** + * 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->length = '00:00:00'; + } + + /** + * Initializes internal state of BaseCcWebstream object. + * @see applyDefaults() + */ + public function __construct() + { + parent::__construct(); + $this->applyDefaultValues(); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [name] column value. + * + * @return string + */ + public function getDbName() + { + + return $this->name; + } + + /** + * Get the [description] column value. + * + * @return string + */ + public function getDbDescription() + { + + return $this->description; + } + + /** + * Get the [url] column value. + * + * @return string + */ + public function getDbUrl() + { + + return $this->url; + } + + /** + * Get the [length] column value. + * + * @return string + */ + public function getDbLength() + { + + return $this->length; + } + + /** + * Get the [creator_id] column value. + * + * @return int + */ + public function getDbCreatorId() + { + + return $this->creator_id; + } + + /** + * Get the [optionally formatted] temporal [mtime] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbMtime($format = 'Y-m-d H:i:s') + { + if ($this->mtime === null) { + return null; + } + + + try { + $dt = new DateTime($this->mtime); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->mtime, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [utime] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbUtime($format = 'Y-m-d H:i:s') + { + if ($this->utime === null) { + return null; + } + + + try { + $dt = new DateTime($this->utime); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->utime, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [optionally formatted] temporal [lptime] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbLPtime($format = 'Y-m-d H:i:s') + { + if ($this->lptime === null) { + return null; + } + + + try { + $dt = new DateTime($this->lptime); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->lptime, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [mime] column value. + * + * @return string + */ + public function getDbMime() + { + + return $this->mime; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcWebstream The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcWebstreamPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [name] column. + * + * @param string $v new value + * @return CcWebstream The current object (for fluent API support) + */ + public function setDbName($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->name !== $v) { + $this->name = $v; + $this->modifiedColumns[] = CcWebstreamPeer::NAME; + } + + + return $this; + } // setDbName() + + /** + * Set the value of [description] column. + * + * @param string $v new value + * @return CcWebstream The current object (for fluent API support) + */ + public function setDbDescription($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->description !== $v) { + $this->description = $v; + $this->modifiedColumns[] = CcWebstreamPeer::DESCRIPTION; + } + + + return $this; + } // setDbDescription() + + /** + * Set the value of [url] column. + * + * @param string $v new value + * @return CcWebstream The current object (for fluent API support) + */ + public function setDbUrl($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->url !== $v) { + $this->url = $v; + $this->modifiedColumns[] = CcWebstreamPeer::URL; + } + + + return $this; + } // setDbUrl() + + /** + * Set the value of [length] column. + * + * @param string $v new value + * @return CcWebstream The current object (for fluent API support) + */ + public function setDbLength($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->length !== $v) { + $this->length = $v; + $this->modifiedColumns[] = CcWebstreamPeer::LENGTH; + } + + + return $this; + } // setDbLength() + + /** + * Set the value of [creator_id] column. + * + * @param int $v new value + * @return CcWebstream The current object (for fluent API support) + */ + public function setDbCreatorId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->creator_id !== $v) { + $this->creator_id = $v; + $this->modifiedColumns[] = CcWebstreamPeer::CREATOR_ID; + } + + + return $this; + } // setDbCreatorId() + + /** + * Sets the value of [mtime] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcWebstream The current object (for fluent API support) + */ + public function setDbMtime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->mtime !== null || $dt !== null) { + $currentDateAsString = ($this->mtime !== null && $tmpDt = new DateTime($this->mtime)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->mtime = $newDateAsString; + $this->modifiedColumns[] = CcWebstreamPeer::MTIME; + } + } // if either are not null + + + return $this; + } // setDbMtime() + + /** + * Sets the value of [utime] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcWebstream The current object (for fluent API support) + */ + public function setDbUtime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->utime !== null || $dt !== null) { + $currentDateAsString = ($this->utime !== null && $tmpDt = new DateTime($this->utime)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->utime = $newDateAsString; + $this->modifiedColumns[] = CcWebstreamPeer::UTIME; + } + } // if either are not null + + + return $this; + } // setDbUtime() + + /** + * Sets the value of [lptime] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcWebstream The current object (for fluent API support) + */ + public function setDbLPtime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->lptime !== null || $dt !== null) { + $currentDateAsString = ($this->lptime !== null && $tmpDt = new DateTime($this->lptime)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->lptime = $newDateAsString; + $this->modifiedColumns[] = CcWebstreamPeer::LPTIME; + } + } // if either are not null + + + return $this; + } // setDbLPtime() + + /** + * Set the value of [mime] column. + * + * @param string $v new value + * @return CcWebstream The current object (for fluent API support) + */ + public function setDbMime($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->mime !== $v) { + $this->mime = $v; + $this->modifiedColumns[] = CcWebstreamPeer::MIME; + } + + + return $this; + } // setDbMime() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->length !== '00:00:00') { + return false; + } + + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->description = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->url = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->length = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; + $this->creator_id = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null; + $this->mtime = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; + $this->utime = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null; + $this->lptime = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; + $this->mime = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 10; // 10 = CcWebstreamPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcWebstream object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcWebstreamPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->collCcSchedules = null; + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcWebstreamQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcWebstreamPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + if ($this->ccSchedulesScheduledForDeletion !== null) { + if (!$this->ccSchedulesScheduledForDeletion->isEmpty()) { + CcScheduleQuery::create() + ->filterByPrimaryKeys($this->ccSchedulesScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->ccSchedulesScheduledForDeletion = null; + } + } + + if ($this->collCcSchedules !== null) { + foreach ($this->collCcSchedules as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcWebstreamPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcWebstreamPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_webstream_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcWebstreamPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcWebstreamPeer::NAME)) { + $modifiedColumns[':p' . $index++] = '"name"'; + } + if ($this->isColumnModified(CcWebstreamPeer::DESCRIPTION)) { + $modifiedColumns[':p' . $index++] = '"description"'; + } + if ($this->isColumnModified(CcWebstreamPeer::URL)) { + $modifiedColumns[':p' . $index++] = '"url"'; + } + if ($this->isColumnModified(CcWebstreamPeer::LENGTH)) { + $modifiedColumns[':p' . $index++] = '"length"'; + } + if ($this->isColumnModified(CcWebstreamPeer::CREATOR_ID)) { + $modifiedColumns[':p' . $index++] = '"creator_id"'; + } + if ($this->isColumnModified(CcWebstreamPeer::MTIME)) { + $modifiedColumns[':p' . $index++] = '"mtime"'; + } + if ($this->isColumnModified(CcWebstreamPeer::UTIME)) { + $modifiedColumns[':p' . $index++] = '"utime"'; + } + if ($this->isColumnModified(CcWebstreamPeer::LPTIME)) { + $modifiedColumns[':p' . $index++] = '"lptime"'; + } + if ($this->isColumnModified(CcWebstreamPeer::MIME)) { + $modifiedColumns[':p' . $index++] = '"mime"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_webstream" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"name"': + $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); + break; + case '"description"': + $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); + break; + case '"url"': + $stmt->bindValue($identifier, $this->url, PDO::PARAM_STR); + break; + case '"length"': + $stmt->bindValue($identifier, $this->length, PDO::PARAM_STR); + break; + case '"creator_id"': + $stmt->bindValue($identifier, $this->creator_id, PDO::PARAM_INT); + break; + case '"mtime"': + $stmt->bindValue($identifier, $this->mtime, PDO::PARAM_STR); + break; + case '"utime"': + $stmt->bindValue($identifier, $this->utime, PDO::PARAM_STR); + break; + case '"lptime"': + $stmt->bindValue($identifier, $this->lptime, PDO::PARAM_STR); + break; + case '"mime"': + $stmt->bindValue($identifier, $this->mime, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + if (($retval = CcWebstreamPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + if ($this->collCcSchedules !== null) { + foreach ($this->collCcSchedules as $referrerFK) { + if (!$referrerFK->validate($columns)) { + $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); + } + } + } + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcWebstreamPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbName(); + break; + case 2: + return $this->getDbDescription(); + break; + case 3: + return $this->getDbUrl(); + break; + case 4: + return $this->getDbLength(); + break; + case 5: + return $this->getDbCreatorId(); + break; + case 6: + return $this->getDbMtime(); + break; + case 7: + return $this->getDbUtime(); + break; + case 8: + return $this->getDbLPtime(); + break; + case 9: + return $this->getDbMime(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcWebstream'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcWebstream'][$this->getPrimaryKey()] = true; + $keys = CcWebstreamPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbName(), + $keys[2] => $this->getDbDescription(), + $keys[3] => $this->getDbUrl(), + $keys[4] => $this->getDbLength(), + $keys[5] => $this->getDbCreatorId(), + $keys[6] => $this->getDbMtime(), + $keys[7] => $this->getDbUtime(), + $keys[8] => $this->getDbLPtime(), + $keys[9] => $this->getDbMime(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->collCcSchedules) { + $result['CcSchedules'] = $this->collCcSchedules->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcWebstreamPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbName($value); + break; + case 2: + $this->setDbDescription($value); + break; + case 3: + $this->setDbUrl($value); + break; + case 4: + $this->setDbLength($value); + break; + case 5: + $this->setDbCreatorId($value); + break; + case 6: + $this->setDbMtime($value); + break; + case 7: + $this->setDbUtime($value); + break; + case 8: + $this->setDbLPtime($value); + break; + case 9: + $this->setDbMime($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcWebstreamPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbDescription($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbUrl($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbLength($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDbCreatorId($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setDbMtime($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setDbUtime($arr[$keys[7]]); + if (array_key_exists($keys[8], $arr)) $this->setDbLPtime($arr[$keys[8]]); + if (array_key_exists($keys[9], $arr)) $this->setDbMime($arr[$keys[9]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcWebstreamPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcWebstreamPeer::ID)) $criteria->add(CcWebstreamPeer::ID, $this->id); + if ($this->isColumnModified(CcWebstreamPeer::NAME)) $criteria->add(CcWebstreamPeer::NAME, $this->name); + if ($this->isColumnModified(CcWebstreamPeer::DESCRIPTION)) $criteria->add(CcWebstreamPeer::DESCRIPTION, $this->description); + if ($this->isColumnModified(CcWebstreamPeer::URL)) $criteria->add(CcWebstreamPeer::URL, $this->url); + if ($this->isColumnModified(CcWebstreamPeer::LENGTH)) $criteria->add(CcWebstreamPeer::LENGTH, $this->length); + if ($this->isColumnModified(CcWebstreamPeer::CREATOR_ID)) $criteria->add(CcWebstreamPeer::CREATOR_ID, $this->creator_id); + if ($this->isColumnModified(CcWebstreamPeer::MTIME)) $criteria->add(CcWebstreamPeer::MTIME, $this->mtime); + if ($this->isColumnModified(CcWebstreamPeer::UTIME)) $criteria->add(CcWebstreamPeer::UTIME, $this->utime); + if ($this->isColumnModified(CcWebstreamPeer::LPTIME)) $criteria->add(CcWebstreamPeer::LPTIME, $this->lptime); + if ($this->isColumnModified(CcWebstreamPeer::MIME)) $criteria->add(CcWebstreamPeer::MIME, $this->mime); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcWebstreamPeer::DATABASE_NAME); + $criteria->add(CcWebstreamPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcWebstream (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbName($this->getDbName()); + $copyObj->setDbDescription($this->getDbDescription()); + $copyObj->setDbUrl($this->getDbUrl()); + $copyObj->setDbLength($this->getDbLength()); + $copyObj->setDbCreatorId($this->getDbCreatorId()); + $copyObj->setDbMtime($this->getDbMtime()); + $copyObj->setDbUtime($this->getDbUtime()); + $copyObj->setDbLPtime($this->getDbLPtime()); + $copyObj->setDbMime($this->getDbMime()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + foreach ($this->getCcSchedules() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCcSchedule($relObj->copy($deepCopy)); + } + } + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcWebstream Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcWebstreamPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcWebstreamPeer(); + } + + return self::$peer; + } + + + /** + * Initializes a collection based on the name of a relation. + * Avoids crafting an 'init[$relationName]s' method name + * that wouldn't work when StandardEnglishPluralizer is used. + * + * @param string $relationName The name of the relation to initialize + * @return void + */ + public function initRelation($relationName) + { + if ('CcSchedule' == $relationName) { + $this->initCcSchedules(); + } + } + + /** + * Clears out the collCcSchedules 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 CcWebstream The current object (for fluent API support) + * @see addCcSchedules() + */ + public function clearCcSchedules() + { + $this->collCcSchedules = null; // important to set this to null since that means it is uninitialized + $this->collCcSchedulesPartial = null; + + return $this; + } + + /** + * reset is the collCcSchedules collection loaded partially + * + * @return void + */ + public function resetPartialCcSchedules($v = true) + { + $this->collCcSchedulesPartial = $v; + } + + /** + * Initializes the collCcSchedules collection. + * + * By default this just sets the collCcSchedules collection to an empty array (like clearcollCcSchedules()); + * 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. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCcSchedules($overrideExisting = true) + { + if (null !== $this->collCcSchedules && !$overrideExisting) { + return; + } + $this->collCcSchedules = new PropelObjectCollection(); + $this->collCcSchedules->setModel('CcSchedule'); + } + + /** + * Gets an array of CcSchedule 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 CcWebstream 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 PropelObjectCollection|CcSchedule[] List of CcSchedule objects + * @throws PropelException + */ + public function getCcSchedules($criteria = null, PropelPDO $con = null) + { + $partial = $this->collCcSchedulesPartial && !$this->isNew(); + if (null === $this->collCcSchedules || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcSchedules) { + // return empty collection + $this->initCcSchedules(); + } else { + $collCcSchedules = CcScheduleQuery::create(null, $criteria) + ->filterByCcWebstream($this) + ->find($con); + if (null !== $criteria) { + if (false !== $this->collCcSchedulesPartial && count($collCcSchedules)) { + $this->initCcSchedules(false); + + foreach ($collCcSchedules as $obj) { + if (false == $this->collCcSchedules->contains($obj)) { + $this->collCcSchedules->append($obj); + } + } + + $this->collCcSchedulesPartial = true; + } + + $collCcSchedules->getInternalIterator()->rewind(); + + return $collCcSchedules; + } + + if ($partial && $this->collCcSchedules) { + foreach ($this->collCcSchedules as $obj) { + if ($obj->isNew()) { + $collCcSchedules[] = $obj; + } + } + } + + $this->collCcSchedules = $collCcSchedules; + $this->collCcSchedulesPartial = false; + } + } + + return $this->collCcSchedules; + } + + /** + * Sets a collection of CcSchedule objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param PropelCollection $ccSchedules A Propel collection. + * @param PropelPDO $con Optional connection object + * @return CcWebstream The current object (for fluent API support) + */ + public function setCcSchedules(PropelCollection $ccSchedules, PropelPDO $con = null) + { + $ccSchedulesToDelete = $this->getCcSchedules(new Criteria(), $con)->diff($ccSchedules); + + + $this->ccSchedulesScheduledForDeletion = $ccSchedulesToDelete; + + foreach ($ccSchedulesToDelete as $ccScheduleRemoved) { + $ccScheduleRemoved->setCcWebstream(null); + } + + $this->collCcSchedules = null; + foreach ($ccSchedules as $ccSchedule) { + $this->addCcSchedule($ccSchedule); + } + + $this->collCcSchedules = $ccSchedules; + $this->collCcSchedulesPartial = false; + + return $this; + } + + /** + * Returns the number of related CcSchedule objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param PropelPDO $con + * @return int Count of related CcSchedule objects. + * @throws PropelException + */ + public function countCcSchedules(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) + { + $partial = $this->collCcSchedulesPartial && !$this->isNew(); + if (null === $this->collCcSchedules || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCcSchedules) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCcSchedules()); + } + $query = CcScheduleQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCcWebstream($this) + ->count($con); + } + + return count($this->collCcSchedules); + } + + /** + * Method called to associate a CcSchedule object to this object + * through the CcSchedule foreign key attribute. + * + * @param CcSchedule $l CcSchedule + * @return CcWebstream The current object (for fluent API support) + */ + public function addCcSchedule(CcSchedule $l) + { + if ($this->collCcSchedules === null) { + $this->initCcSchedules(); + $this->collCcSchedulesPartial = true; + } + + if (!in_array($l, $this->collCcSchedules->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCcSchedule($l); + + if ($this->ccSchedulesScheduledForDeletion and $this->ccSchedulesScheduledForDeletion->contains($l)) { + $this->ccSchedulesScheduledForDeletion->remove($this->ccSchedulesScheduledForDeletion->search($l)); + } + } + + return $this; + } + + /** + * @param CcSchedule $ccSchedule The ccSchedule object to add. + */ + protected function doAddCcSchedule($ccSchedule) + { + $this->collCcSchedules[]= $ccSchedule; + $ccSchedule->setCcWebstream($this); + } + + /** + * @param CcSchedule $ccSchedule The ccSchedule object to remove. + * @return CcWebstream The current object (for fluent API support) + */ + public function removeCcSchedule($ccSchedule) + { + if ($this->getCcSchedules()->contains($ccSchedule)) { + $this->collCcSchedules->remove($this->collCcSchedules->search($ccSchedule)); + if (null === $this->ccSchedulesScheduledForDeletion) { + $this->ccSchedulesScheduledForDeletion = clone $this->collCcSchedules; + $this->ccSchedulesScheduledForDeletion->clear(); + } + $this->ccSchedulesScheduledForDeletion[]= $ccSchedule; + $ccSchedule->setCcWebstream(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcWebstream is new, it will return + * an empty collection; or if this CcWebstream has previously + * been saved, it will retrieve related CcSchedules from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcWebstream. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcSchedule[] List of CcSchedule objects + */ + public function getCcSchedulesJoinCcShowInstances($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcScheduleQuery::create(null, $criteria); + $query->joinWith('CcShowInstances', $join_behavior); + + return $this->getCcSchedules($query, $con); + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this CcWebstream is new, it will return + * an empty collection; or if this CcWebstream has previously + * been saved, it will retrieve related CcSchedules from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in CcWebstream. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param PropelPDO $con optional connection object + * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return PropelObjectCollection|CcSchedule[] List of CcSchedule objects + */ + public function getCcSchedulesJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $query = CcScheduleQuery::create(null, $criteria); + $query->joinWith('CcFiles', $join_behavior); + + return $this->getCcSchedules($query, $con); + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->name = null; + $this->description = null; + $this->url = null; + $this->length = null; + $this->creator_id = null; + $this->mtime = null; + $this->utime = null; + $this->lptime = null; + $this->mime = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->collCcSchedules) { + foreach ($this->collCcSchedules as $o) { + $o->clearAllReferences($deep); + } + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + if ($this->collCcSchedules instanceof PropelCollection) { + $this->collCcSchedules->clearIterator(); + } + $this->collCcSchedules = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcWebstreamPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcWebstreamMetadata.php b/airtime_mvc/application/models/airtime/om/BaseCcWebstreamMetadata.php index f5730573cd..2976c85c4e 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcWebstreamMetadata.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcWebstreamMetadata.php @@ -4,954 +4,1074 @@ /** * Base class that represents a row from the 'cc_webstream_metadata' table. * - * + * * * @package propel.generator.airtime.om */ -abstract class BaseCcWebstreamMetadata extends BaseObject implements Persistent +abstract class BaseCcWebstreamMetadata extends BaseObject implements Persistent { - - /** - * Peer class name - */ - const PEER = 'CcWebstreamMetadataPeer'; - - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var CcWebstreamMetadataPeer - */ - protected static $peer; - - /** - * The value for the id field. - * @var int - */ - protected $id; - - /** - * The value for the instance_id field. - * @var int - */ - protected $instance_id; - - /** - * The value for the start_time field. - * @var string - */ - protected $start_time; - - /** - * The value for the liquidsoap_data field. - * @var string - */ - protected $liquidsoap_data; - - /** - * @var CcSchedule - */ - protected $aCcSchedule; - - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInSave = false; - - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected $alreadyInValidation = false; - - /** - * Get the [id] column value. - * - * @return int - */ - public function getDbId() - { - return $this->id; - } - - /** - * Get the [instance_id] column value. - * - * @return int - */ - public function getDbInstanceId() - { - return $this->instance_id; - } - - /** - * Get the [optionally formatted] temporal [start_time] column value. - * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw DateTime object will be returned. - * @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL - * @throws PropelException - if unable to parse/validate the date/time value. - */ - public function getDbStartTime($format = 'Y-m-d H:i:s') - { - if ($this->start_time === null) { - return null; - } - - - - try { - $dt = new DateTime($this->start_time); - } catch (Exception $x) { - throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->start_time, true), $x); - } - - if ($format === null) { - // Because propel.useDateTimeClass is TRUE, we return a DateTime object. - return $dt; - } elseif (strpos($format, '%') !== false) { - return strftime($format, $dt->format('U')); - } else { - return $dt->format($format); - } - } - - /** - * Get the [liquidsoap_data] column value. - * - * @return string - */ - public function getDbLiquidsoapData() - { - return $this->liquidsoap_data; - } - - /** - * Set the value of [id] column. - * - * @param int $v new value - * @return CcWebstreamMetadata The current object (for fluent API support) - */ - public function setDbId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->id !== $v) { - $this->id = $v; - $this->modifiedColumns[] = CcWebstreamMetadataPeer::ID; - } - - return $this; - } // setDbId() - - /** - * Set the value of [instance_id] column. - * - * @param int $v new value - * @return CcWebstreamMetadata The current object (for fluent API support) - */ - public function setDbInstanceId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->instance_id !== $v) { - $this->instance_id = $v; - $this->modifiedColumns[] = CcWebstreamMetadataPeer::INSTANCE_ID; - } - - if ($this->aCcSchedule !== null && $this->aCcSchedule->getDbId() !== $v) { - $this->aCcSchedule = null; - } - - return $this; - } // setDbInstanceId() - - /** - * Sets the value of [start_time] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return CcWebstreamMetadata The current object (for fluent API support) - */ - public function setDbStartTime($v) - { - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if ($v === null || $v === '') { - $dt = null; - } elseif ($v instanceof DateTime) { - $dt = $v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric($v)) { // if it's a unix timestamp - $dt = new DateTime('@'.$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - $dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - $dt = new DateTime($v); - } - } catch (Exception $x) { - throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); - } - } - - if ( $this->start_time !== null || $dt !== null ) { - // (nested ifs are a little easier to read in this case) - - $currNorm = ($this->start_time !== null && $tmpDt = new DateTime($this->start_time)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null; - $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null; - - if ( ($currNorm !== $newNorm) // normalized values don't match - ) - { - $this->start_time = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null); - $this->modifiedColumns[] = CcWebstreamMetadataPeer::START_TIME; - } - } // if either are not null - - return $this; - } // setDbStartTime() - - /** - * Set the value of [liquidsoap_data] column. - * - * @param string $v new value - * @return CcWebstreamMetadata The current object (for fluent API support) - */ - public function setDbLiquidsoapData($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->liquidsoap_data !== $v) { - $this->liquidsoap_data = $v; - $this->modifiedColumns[] = CcWebstreamMetadataPeer::LIQUIDSOAP_DATA; - } - - return $this; - } // setDbLiquidsoapData() - - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */ - public function hasOnlyDefaultValues() - { - // otherwise, everything was equal, so return TRUE - return true; - } // hasOnlyDefaultValues() - - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based "start column") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int $startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean $rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */ - public function hydrate($row, $startcol = 0, $rehydrate = false) - { - try { - - $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->instance_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; - $this->start_time = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->liquidsoap_data = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->resetModified(); - - $this->setNew(false); - - if ($rehydrate) { - $this->ensureConsistency(); - } - - return $startcol + 4; // 4 = CcWebstreamMetadataPeer::NUM_COLUMNS - CcWebstreamMetadataPeer::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception $e) { - throw new PropelException("Error populating CcWebstreamMetadata object", $e); - } - } - - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { - - if ($this->aCcSchedule !== null && $this->instance_id !== $this->aCcSchedule->getDbId()) { - $this->aCcSchedule = null; - } - } // ensureConsistency - - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean $deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO $con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload($deep = false, PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("Cannot reload a deleted object."); - } - - if ($this->isNew()) { - throw new PropelException("Cannot reload an unsaved object."); - } - - if ($con === null) { - $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - $stmt = CcWebstreamMetadataPeer::doSelectStmt($this->buildPkeyCriteria(), $con); - $row = $stmt->fetch(PDO::FETCH_NUM); - $stmt->closeCursor(); - if (!$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - $this->hydrate($row, 0, true); // rehydrate - - if ($deep) { // also de-associate any related objects? - - $this->aCcSchedule = null; - } // if (deep) - } - - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO $con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */ - public function delete(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("This object has already been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - try { - $ret = $this->preDelete($con); - if ($ret) { - CcWebstreamMetadataQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $this->postDelete($con); - $con->commit(); - $this->setDeleted(true); - } else { - $con->commit(); - } - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */ - public function save(PropelPDO $con = null) - { - if ($this->isDeleted()) { - throw new PropelException("You cannot save an object that has been deleted."); - } - - if ($con === null) { - $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $con->beginTransaction(); - $isInsert = $this->isNew(); - try { - $ret = $this->preSave($con); - if ($isInsert) { - $ret = $ret && $this->preInsert($con); - } else { - $ret = $ret && $this->preUpdate($con); - } - if ($ret) { - $affectedRows = $this->doSave($con); - if ($isInsert) { - $this->postInsert($con); - } else { - $this->postUpdate($con); - } - $this->postSave($con); - CcWebstreamMetadataPeer::addInstanceToPool($this); - } else { - $affectedRows = 0; - } - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO $con - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO $con) - { - $affectedRows = 0; // initialize var to track total num of affected rows - if (!$this->alreadyInSave) { - $this->alreadyInSave = true; - - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcSchedule !== null) { - if ($this->aCcSchedule->isModified() || $this->aCcSchedule->isNew()) { - $affectedRows += $this->aCcSchedule->save($con); - } - $this->setCcSchedule($this->aCcSchedule); - } - - if ($this->isNew() ) { - $this->modifiedColumns[] = CcWebstreamMetadataPeer::ID; - } - - // If this object has been modified, then save it to the database. - if ($this->isModified()) { - if ($this->isNew()) { - $criteria = $this->buildCriteria(); - if ($criteria->keyContainsValue(CcWebstreamMetadataPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcWebstreamMetadataPeer::ID.')'); - } - - $pk = BasePeer::doInsert($criteria, $con); - $affectedRows += 1; - $this->setDbId($pk); //[IMV] update autoincrement primary key - $this->setNew(false); - } else { - $affectedRows += CcWebstreamMetadataPeer::doUpdate($this, $con); - } - - $this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } - - $this->alreadyInSave = false; - - } - return $affectedRows; - } // doSave() - - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected $validationFailures = array(); - - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return $this->validationFailures; - } - - /** - * Validates the objects modified field values and all objects related to this table. - * - * If $columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed $columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate($columns = null) - { - $res = $this->doValidate($columns); - if ($res === true) { - $this->validationFailures = array(); - return true; - } else { - $this->validationFailures = $res; - return false; - } - } - - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array $columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate($columns = null) - { - if (!$this->alreadyInValidation) { - $this->alreadyInValidation = true; - $retval = null; - - $failureMap = array(); - - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. - - if ($this->aCcSchedule !== null) { - if (!$this->aCcSchedule->validate($columns)) { - $failureMap = array_merge($failureMap, $this->aCcSchedule->getValidationFailures()); - } - } - - - if (($retval = CcWebstreamMetadataPeer::doValidate($this, $columns)) !== true) { - $failureMap = array_merge($failureMap, $retval); - } - - - - $this->alreadyInValidation = false; - } - - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string $name name - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */ - public function getByName($name, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcWebstreamMetadataPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - $field = $this->getByPosition($pos); - return $field; - } - - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @return mixed Value of field at $pos - */ - public function getByPosition($pos) - { - switch($pos) { - case 0: - return $this->getDbId(); - break; - case 1: - return $this->getDbInstanceId(); - break; - case 2: - return $this->getDbStartTime(); - break; - case 3: - return $this->getDbLiquidsoapData(); - break; - default: - return null; - break; - } // switch() - } - - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. - * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false) - { - $keys = CcWebstreamMetadataPeer::getFieldNames($keyType); - $result = array( - $keys[0] => $this->getDbId(), - $keys[1] => $this->getDbInstanceId(), - $keys[2] => $this->getDbStartTime(), - $keys[3] => $this->getDbLiquidsoapData(), - ); - if ($includeForeignObjects) { - if (null !== $this->aCcSchedule) { - $result['CcSchedule'] = $this->aCcSchedule->toArray($keyType, $includeLazyLoadColumns, true); - } - } - return $result; - } - - /** - * Sets a field from the object by name passed in as a string. - * - * @param string $name peer name - * @param mixed $value field value - * @param string $type The type of fieldname the $name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) - { - $pos = CcWebstreamMetadataPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); - return $this->setByPosition($pos, $value); - } - - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int $pos position in xml schema - * @param mixed $value field value - * @return void - */ - public function setByPosition($pos, $value) - { - switch($pos) { - case 0: - $this->setDbId($value); - break; - case 1: - $this->setDbInstanceId($value); - break; - case 2: - $this->setDbStartTime($value); - break; - case 3: - $this->setDbLiquidsoapData($value); - break; - } // switch() - } - - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. $_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array $arr An array to populate the object from. - * @param string $keyType The type of keys the array uses. - * @return void - */ - public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) - { - $keys = CcWebstreamMetadataPeer::getFieldNames($keyType); - - if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setDbInstanceId($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbStartTime($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbLiquidsoapData($arr[$keys[3]]); - } - - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */ - public function buildCriteria() - { - $criteria = new Criteria(CcWebstreamMetadataPeer::DATABASE_NAME); - - if ($this->isColumnModified(CcWebstreamMetadataPeer::ID)) $criteria->add(CcWebstreamMetadataPeer::ID, $this->id); - if ($this->isColumnModified(CcWebstreamMetadataPeer::INSTANCE_ID)) $criteria->add(CcWebstreamMetadataPeer::INSTANCE_ID, $this->instance_id); - if ($this->isColumnModified(CcWebstreamMetadataPeer::START_TIME)) $criteria->add(CcWebstreamMetadataPeer::START_TIME, $this->start_time); - if ($this->isColumnModified(CcWebstreamMetadataPeer::LIQUIDSOAP_DATA)) $criteria->add(CcWebstreamMetadataPeer::LIQUIDSOAP_DATA, $this->liquidsoap_data); - - return $criteria; - } - - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */ - public function buildPkeyCriteria() - { - $criteria = new Criteria(CcWebstreamMetadataPeer::DATABASE_NAME); - $criteria->add(CcWebstreamMetadataPeer::ID, $this->id); - - return $criteria; - } - - /** - * Returns the primary key for this object (row). - * @return int - */ - public function getPrimaryKey() - { - return $this->getDbId(); - } - - /** - * Generic method to set the primary key (id column). - * - * @param int $key Primary key. - * @return void - */ - public function setPrimaryKey($key) - { - $this->setDbId($key); - } - - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - { - return null === $this->getDbId(); - } - - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object $copyObj An object of CcWebstreamMetadata (or compatible) type. - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto($copyObj, $deepCopy = false) - { - $copyObj->setDbInstanceId($this->instance_id); - $copyObj->setDbStartTime($this->start_time); - $copyObj->setDbLiquidsoapData($this->liquidsoap_data); - - $copyObj->setNew(true); - $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value - } - - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return CcWebstreamMetadata Clone of current object. - * @throws PropelException - */ - public function copy($deepCopy = false) - { - // we use get_class(), because this might be a subclass - $clazz = get_class($this); - $copyObj = new $clazz(); - $this->copyInto($copyObj, $deepCopy); - return $copyObj; - } - - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return CcWebstreamMetadataPeer - */ - public function getPeer() - { - if (self::$peer === null) { - self::$peer = new CcWebstreamMetadataPeer(); - } - return self::$peer; - } - - /** - * Declares an association between this object and a CcSchedule object. - * - * @param CcSchedule $v - * @return CcWebstreamMetadata The current object (for fluent API support) - * @throws PropelException - */ - public function setCcSchedule(CcSchedule $v = null) - { - if ($v === null) { - $this->setDbInstanceId(NULL); - } else { - $this->setDbInstanceId($v->getDbId()); - } - - $this->aCcSchedule = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the CcSchedule object, it will not be re-added. - if ($v !== null) { - $v->addCcWebstreamMetadata($this); - } - - return $this; - } - - - /** - * Get the associated CcSchedule object - * - * @param PropelPDO Optional Connection object. - * @return CcSchedule The associated CcSchedule object. - * @throws PropelException - */ - public function getCcSchedule(PropelPDO $con = null) - { - if ($this->aCcSchedule === null && ($this->instance_id !== null)) { - $this->aCcSchedule = CcScheduleQuery::create()->findPk($this->instance_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aCcSchedule->addCcWebstreamMetadatas($this); - */ - } - return $this->aCcSchedule; - } - - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - { - $this->id = null; - $this->instance_id = null; - $this->start_time = null; - $this->liquidsoap_data = null; - $this->alreadyInSave = false; - $this->alreadyInValidation = false; - $this->clearAllReferences(); - $this->resetModified(); - $this->setNew(true); - $this->setDeleted(false); - } - - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean $deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences($deep = false) - { - if ($deep) { - } // if ($deep) - - $this->aCcSchedule = null; - } - - /** - * Catches calls to virtual methods - */ - public function __call($name, $params) - { - if (preg_match('/get(\w+)/', $name, $matches)) { - $virtualColumn = $matches[1]; - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - // no lcfirst in php<5.3... - $virtualColumn[0] = strtolower($virtualColumn[0]); - if ($this->hasVirtualColumn($virtualColumn)) { - return $this->getVirtualColumn($virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . $name); - } - -} // BaseCcWebstreamMetadata + /** + * Peer class name + */ + const PEER = 'CcWebstreamMetadataPeer'; + + /** + * The Peer class. + * Instance provides a convenient way of calling static methods on a class + * that calling code may not be able to identify. + * @var CcWebstreamMetadataPeer + */ + protected static $peer; + + /** + * The flag var to prevent infinite loop in deep copy + * @var boolean + */ + protected $startCopy = false; + + /** + * The value for the id field. + * @var int + */ + protected $id; + + /** + * The value for the instance_id field. + * @var int + */ + protected $instance_id; + + /** + * The value for the start_time field. + * @var string + */ + protected $start_time; + + /** + * The value for the liquidsoap_data field. + * @var string + */ + protected $liquidsoap_data; + + /** + * @var CcSchedule + */ + protected $aCcSchedule; + + /** + * Flag to prevent endless save loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInSave = false; + + /** + * Flag to prevent endless validation loop, if this object is referenced + * by another object which falls in this transaction. + * @var boolean + */ + protected $alreadyInValidation = false; + + /** + * Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced + * @var boolean + */ + protected $alreadyInClearAllReferencesDeep = false; + + /** + * Get the [id] column value. + * + * @return int + */ + public function getDbId() + { + + return $this->id; + } + + /** + * Get the [instance_id] column value. + * + * @return int + */ + public function getDbInstanceId() + { + + return $this->instance_id; + } + + /** + * Get the [optionally formatted] temporal [start_time] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is null, then the raw DateTime object will be returned. + * @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getDbStartTime($format = 'Y-m-d H:i:s') + { + if ($this->start_time === null) { + return null; + } + + + try { + $dt = new DateTime($this->start_time); + } catch (Exception $x) { + throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->start_time, true), $x); + } + + if ($format === null) { + // Because propel.useDateTimeClass is true, we return a DateTime object. + return $dt; + } + + if (strpos($format, '%') !== false) { + return strftime($format, $dt->format('U')); + } + + return $dt->format($format); + + } + + /** + * Get the [liquidsoap_data] column value. + * + * @return string + */ + public function getDbLiquidsoapData() + { + + return $this->liquidsoap_data; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CcWebstreamMetadata The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CcWebstreamMetadataPeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [instance_id] column. + * + * @param int $v new value + * @return CcWebstreamMetadata The current object (for fluent API support) + */ + public function setDbInstanceId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->instance_id !== $v) { + $this->instance_id = $v; + $this->modifiedColumns[] = CcWebstreamMetadataPeer::INSTANCE_ID; + } + + if ($this->aCcSchedule !== null && $this->aCcSchedule->getDbId() !== $v) { + $this->aCcSchedule = null; + } + + + return $this; + } // setDbInstanceId() + + /** + * Sets the value of [start_time] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or DateTime value. + * Empty strings are treated as null. + * @return CcWebstreamMetadata The current object (for fluent API support) + */ + public function setDbStartTime($v) + { + $dt = PropelDateTime::newInstance($v, null, 'DateTime'); + if ($this->start_time !== null || $dt !== null) { + $currentDateAsString = ($this->start_time !== null && $tmpDt = new DateTime($this->start_time)) ? $tmpDt->format('Y-m-d H:i:s') : null; + $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null; + if ($currentDateAsString !== $newDateAsString) { + $this->start_time = $newDateAsString; + $this->modifiedColumns[] = CcWebstreamMetadataPeer::START_TIME; + } + } // if either are not null + + + return $this; + } // setDbStartTime() + + /** + * Set the value of [liquidsoap_data] column. + * + * @param string $v new value + * @return CcWebstreamMetadata The current object (for fluent API support) + */ + public function setDbLiquidsoapData($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->liquidsoap_data !== $v) { + $this->liquidsoap_data = $v; + $this->modifiedColumns[] = CcWebstreamMetadataPeer::LIQUIDSOAP_DATA; + } + + + return $this; + } // setDbLiquidsoapData() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->instance_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null; + $this->start_time = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->liquidsoap_data = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 4; // 4 = CcWebstreamMetadataPeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CcWebstreamMetadata object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcSchedule !== null && $this->instance_id !== $this->aCcSchedule->getDbId()) { + $this->aCcSchedule = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CcWebstreamMetadataPeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcSchedule = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CcWebstreamMetadataQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CcWebstreamMetadataPeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcSchedule !== null) { + if ($this->aCcSchedule->isModified() || $this->aCcSchedule->isNew()) { + $affectedRows += $this->aCcSchedule->save($con); + } + $this->setCcSchedule($this->aCcSchedule); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CcWebstreamMetadataPeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CcWebstreamMetadataPeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cc_webstream_metadata_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CcWebstreamMetadataPeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CcWebstreamMetadataPeer::INSTANCE_ID)) { + $modifiedColumns[':p' . $index++] = '"instance_id"'; + } + if ($this->isColumnModified(CcWebstreamMetadataPeer::START_TIME)) { + $modifiedColumns[':p' . $index++] = '"start_time"'; + } + if ($this->isColumnModified(CcWebstreamMetadataPeer::LIQUIDSOAP_DATA)) { + $modifiedColumns[':p' . $index++] = '"liquidsoap_data"'; + } + + $sql = sprintf( + 'INSERT INTO "cc_webstream_metadata" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"instance_id"': + $stmt->bindValue($identifier, $this->instance_id, PDO::PARAM_INT); + break; + case '"start_time"': + $stmt->bindValue($identifier, $this->start_time, PDO::PARAM_STR); + break; + case '"liquidsoap_data"': + $stmt->bindValue($identifier, $this->liquidsoap_data, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcSchedule !== null) { + if (!$this->aCcSchedule->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcSchedule->getValidationFailures()); + } + } + + + if (($retval = CcWebstreamMetadataPeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcWebstreamMetadataPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getDbInstanceId(); + break; + case 2: + return $this->getDbStartTime(); + break; + case 3: + return $this->getDbLiquidsoapData(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CcWebstreamMetadata'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CcWebstreamMetadata'][$this->getPrimaryKey()] = true; + $keys = CcWebstreamMetadataPeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getDbInstanceId(), + $keys[2] => $this->getDbStartTime(), + $keys[3] => $this->getDbLiquidsoapData(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcSchedule) { + $result['CcSchedule'] = $this->aCcSchedule->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CcWebstreamMetadataPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setDbInstanceId($value); + break; + case 2: + $this->setDbStartTime($value); + break; + case 3: + $this->setDbLiquidsoapData($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CcWebstreamMetadataPeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setDbInstanceId($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDbStartTime($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbLiquidsoapData($arr[$keys[3]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CcWebstreamMetadataPeer::DATABASE_NAME); + + if ($this->isColumnModified(CcWebstreamMetadataPeer::ID)) $criteria->add(CcWebstreamMetadataPeer::ID, $this->id); + if ($this->isColumnModified(CcWebstreamMetadataPeer::INSTANCE_ID)) $criteria->add(CcWebstreamMetadataPeer::INSTANCE_ID, $this->instance_id); + if ($this->isColumnModified(CcWebstreamMetadataPeer::START_TIME)) $criteria->add(CcWebstreamMetadataPeer::START_TIME, $this->start_time); + if ($this->isColumnModified(CcWebstreamMetadataPeer::LIQUIDSOAP_DATA)) $criteria->add(CcWebstreamMetadataPeer::LIQUIDSOAP_DATA, $this->liquidsoap_data); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CcWebstreamMetadataPeer::DATABASE_NAME); + $criteria->add(CcWebstreamMetadataPeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CcWebstreamMetadata (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setDbInstanceId($this->getDbInstanceId()); + $copyObj->setDbStartTime($this->getDbStartTime()); + $copyObj->setDbLiquidsoapData($this->getDbLiquidsoapData()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CcWebstreamMetadata Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CcWebstreamMetadataPeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CcWebstreamMetadataPeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcSchedule object. + * + * @param CcSchedule $v + * @return CcWebstreamMetadata The current object (for fluent API support) + * @throws PropelException + */ + public function setCcSchedule(CcSchedule $v = null) + { + if ($v === null) { + $this->setDbInstanceId(NULL); + } else { + $this->setDbInstanceId($v->getDbId()); + } + + $this->aCcSchedule = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcSchedule object, it will not be re-added. + if ($v !== null) { + $v->addCcWebstreamMetadata($this); + } + + + return $this; + } + + + /** + * Get the associated CcSchedule object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcSchedule The associated CcSchedule object. + * @throws PropelException + */ + public function getCcSchedule(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcSchedule === null && ($this->instance_id !== null) && $doQuery) { + $this->aCcSchedule = CcScheduleQuery::create()->findPk($this->instance_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcSchedule->addCcWebstreamMetadatas($this); + */ + } + + return $this->aCcSchedule; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->instance_id = null; + $this->start_time = null; + $this->liquidsoap_data = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcSchedule instanceof Persistent) { + $this->aCcSchedule->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcSchedule = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CcWebstreamMetadataPeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcWebstreamMetadataPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcWebstreamMetadataPeer.php index 445e9793cb..b34c28fc6c 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcWebstreamMetadataPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcWebstreamMetadataPeer.php @@ -4,976 +4,1002 @@ /** * Base static class for performing query and update operations on the 'cc_webstream_metadata' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcWebstreamMetadataPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_webstream_metadata'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcWebstreamMetadata'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcWebstreamMetadata'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcWebstreamMetadataTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 4; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_webstream_metadata.ID'; - - /** the column name for the INSTANCE_ID field */ - const INSTANCE_ID = 'cc_webstream_metadata.INSTANCE_ID'; - - /** the column name for the START_TIME field */ - const START_TIME = 'cc_webstream_metadata.START_TIME'; - - /** the column name for the LIQUIDSOAP_DATA field */ - const LIQUIDSOAP_DATA = 'cc_webstream_metadata.LIQUIDSOAP_DATA'; - - /** - * An identiy map to hold any loaded instances of CcWebstreamMetadata objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcWebstreamMetadata[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbInstanceId', 'DbStartTime', 'DbLiquidsoapData', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbInstanceId', 'dbStartTime', 'dbLiquidsoapData', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::INSTANCE_ID, self::START_TIME, self::LIQUIDSOAP_DATA, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'INSTANCE_ID', 'START_TIME', 'LIQUIDSOAP_DATA', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'instance_id', 'start_time', 'liquidsoap_data', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbInstanceId' => 1, 'DbStartTime' => 2, 'DbLiquidsoapData' => 3, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbInstanceId' => 1, 'dbStartTime' => 2, 'dbLiquidsoapData' => 3, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::INSTANCE_ID => 1, self::START_TIME => 2, self::LIQUIDSOAP_DATA => 3, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'INSTANCE_ID' => 1, 'START_TIME' => 2, 'LIQUIDSOAP_DATA' => 3, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'instance_id' => 1, 'start_time' => 2, 'liquidsoap_data' => 3, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcWebstreamMetadataPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcWebstreamMetadataPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcWebstreamMetadataPeer::ID); - $criteria->addSelectColumn(CcWebstreamMetadataPeer::INSTANCE_ID); - $criteria->addSelectColumn(CcWebstreamMetadataPeer::START_TIME); - $criteria->addSelectColumn(CcWebstreamMetadataPeer::LIQUIDSOAP_DATA); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.INSTANCE_ID'); - $criteria->addSelectColumn($alias . '.START_TIME'); - $criteria->addSelectColumn($alias . '.LIQUIDSOAP_DATA'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcWebstreamMetadataPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcWebstreamMetadataPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcWebstreamMetadata - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcWebstreamMetadataPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcWebstreamMetadataPeer::populateObjects(CcWebstreamMetadataPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcWebstreamMetadataPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcWebstreamMetadata $value A CcWebstreamMetadata object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcWebstreamMetadata $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcWebstreamMetadata object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcWebstreamMetadata) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcWebstreamMetadata object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcWebstreamMetadata Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_webstream_metadata - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcWebstreamMetadataPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcWebstreamMetadataPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcWebstreamMetadataPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcWebstreamMetadataPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcWebstreamMetadata object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcWebstreamMetadataPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcWebstreamMetadataPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcWebstreamMetadataPeer::NUM_COLUMNS; - } else { - $cls = CcWebstreamMetadataPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcWebstreamMetadataPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - - /** - * Returns the number of rows matching criteria, joining the related CcSchedule table - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinCcSchedule(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcWebstreamMetadataPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcWebstreamMetadataPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcWebstreamMetadataPeer::INSTANCE_ID, CcSchedulePeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - - /** - * Selects a collection of CcWebstreamMetadata objects pre-filled with their CcSchedule objects. - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcWebstreamMetadata objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinCcSchedule(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcWebstreamMetadataPeer::addSelectColumns($criteria); - $startcol = (CcWebstreamMetadataPeer::NUM_COLUMNS - CcWebstreamMetadataPeer::NUM_LAZY_LOAD_COLUMNS); - CcSchedulePeer::addSelectColumns($criteria); - - $criteria->addJoin(CcWebstreamMetadataPeer::INSTANCE_ID, CcSchedulePeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcWebstreamMetadataPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcWebstreamMetadataPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - - $cls = CcWebstreamMetadataPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcWebstreamMetadataPeer::addInstanceToPool($obj1, $key1); - } // if $obj1 already loaded - - $key2 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, $startcol); - if ($key2 !== null) { - $obj2 = CcSchedulePeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSchedulePeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol); - CcSchedulePeer::addInstanceToPool($obj2, $key2); - } // if obj2 already loaded - - // Add the $obj1 (CcWebstreamMetadata) to $obj2 (CcSchedule) - $obj2->addCcWebstreamMetadata($obj1); - - } // if joined row was not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - // we're going to modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcWebstreamMetadataPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcWebstreamMetadataPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - if ($con === null) { - $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria->addJoin(CcWebstreamMetadataPeer::INSTANCE_ID, CcSchedulePeer::ID, $join_behavior); - - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - - /** - * Selects a collection of CcWebstreamMetadata objects pre-filled with all related objects. - * - * @param Criteria $criteria - * @param PropelPDO $con - * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN - * @return array Array of CcWebstreamMetadata objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) - { - $criteria = clone $criteria; - - // Set the correct dbName if it has not been overridden - if ($criteria->getDbName() == Propel::getDefaultDB()) { - $criteria->setDbName(self::DATABASE_NAME); - } - - CcWebstreamMetadataPeer::addSelectColumns($criteria); - $startcol2 = (CcWebstreamMetadataPeer::NUM_COLUMNS - CcWebstreamMetadataPeer::NUM_LAZY_LOAD_COLUMNS); - - CcSchedulePeer::addSelectColumns($criteria); - $startcol3 = $startcol2 + (CcSchedulePeer::NUM_COLUMNS - CcSchedulePeer::NUM_LAZY_LOAD_COLUMNS); - - $criteria->addJoin(CcWebstreamMetadataPeer::INSTANCE_ID, CcSchedulePeer::ID, $join_behavior); - - $stmt = BasePeer::doSelect($criteria, $con); - $results = array(); - - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key1 = CcWebstreamMetadataPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj1 = CcWebstreamMetadataPeer::getInstanceFromPool($key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj1->hydrate($row, 0, true); // rehydrate - } else { - $cls = CcWebstreamMetadataPeer::getOMClass(false); - - $obj1 = new $cls(); - $obj1->hydrate($row); - CcWebstreamMetadataPeer::addInstanceToPool($obj1, $key1); - } // if obj1 already loaded - - // Add objects for joined CcSchedule rows - - $key2 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, $startcol2); - if ($key2 !== null) { - $obj2 = CcSchedulePeer::getInstanceFromPool($key2); - if (!$obj2) { - - $cls = CcSchedulePeer::getOMClass(false); - - $obj2 = new $cls(); - $obj2->hydrate($row, $startcol2); - CcSchedulePeer::addInstanceToPool($obj2, $key2); - } // if obj2 loaded - - // Add the $obj1 (CcWebstreamMetadata) to the collection in $obj2 (CcSchedule) - $obj2->addCcWebstreamMetadata($obj1); - } // if joined row not null - - $results[] = $obj1; - } - $stmt->closeCursor(); - return $results; - } - - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcWebstreamMetadataPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcWebstreamMetadataPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcWebstreamMetadataTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcWebstreamMetadataPeer::CLASS_DEFAULT : CcWebstreamMetadataPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcWebstreamMetadata or Criteria object. - * - * @param mixed $values Criteria or CcWebstreamMetadata object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcWebstreamMetadata object - } - - if ($criteria->containsKey(CcWebstreamMetadataPeer::ID) && $criteria->keyContainsValue(CcWebstreamMetadataPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcWebstreamMetadataPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcWebstreamMetadata or Criteria object. - * - * @param mixed $values Criteria or CcWebstreamMetadata object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcWebstreamMetadataPeer::ID); - $value = $criteria->remove(CcWebstreamMetadataPeer::ID); - if ($value) { - $selectCriteria->add(CcWebstreamMetadataPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcWebstreamMetadataPeer::TABLE_NAME); - } - - } else { // $values is CcWebstreamMetadata object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_webstream_metadata table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcWebstreamMetadataPeer::TABLE_NAME, $con, CcWebstreamMetadataPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcWebstreamMetadataPeer::clearInstancePool(); - CcWebstreamMetadataPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcWebstreamMetadata or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcWebstreamMetadata object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcWebstreamMetadataPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcWebstreamMetadata) { // it's a model object - // invalidate the cache for this single object - CcWebstreamMetadataPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcWebstreamMetadataPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcWebstreamMetadataPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcWebstreamMetadataPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcWebstreamMetadata object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcWebstreamMetadata $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcWebstreamMetadata $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcWebstreamMetadataPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcWebstreamMetadataPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcWebstreamMetadataPeer::DATABASE_NAME, CcWebstreamMetadataPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcWebstreamMetadata - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcWebstreamMetadataPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcWebstreamMetadataPeer::DATABASE_NAME); - $criteria->add(CcWebstreamMetadataPeer::ID, $pk); - - $v = CcWebstreamMetadataPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcWebstreamMetadataPeer::DATABASE_NAME); - $criteria->add(CcWebstreamMetadataPeer::ID, $pks, Criteria::IN); - $objs = CcWebstreamMetadataPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcWebstreamMetadataPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_webstream_metadata'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcWebstreamMetadata'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcWebstreamMetadataTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 4; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 4; + + /** the column name for the id field */ + const ID = 'cc_webstream_metadata.id'; + + /** the column name for the instance_id field */ + const INSTANCE_ID = 'cc_webstream_metadata.instance_id'; + + /** the column name for the start_time field */ + const START_TIME = 'cc_webstream_metadata.start_time'; + + /** the column name for the liquidsoap_data field */ + const LIQUIDSOAP_DATA = 'cc_webstream_metadata.liquidsoap_data'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcWebstreamMetadata objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcWebstreamMetadata[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcWebstreamMetadataPeer::$fieldNames[CcWebstreamMetadataPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbInstanceId', 'DbStartTime', 'DbLiquidsoapData', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbInstanceId', 'dbStartTime', 'dbLiquidsoapData', ), + BasePeer::TYPE_COLNAME => array (CcWebstreamMetadataPeer::ID, CcWebstreamMetadataPeer::INSTANCE_ID, CcWebstreamMetadataPeer::START_TIME, CcWebstreamMetadataPeer::LIQUIDSOAP_DATA, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'INSTANCE_ID', 'START_TIME', 'LIQUIDSOAP_DATA', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'instance_id', 'start_time', 'liquidsoap_data', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcWebstreamMetadataPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbInstanceId' => 1, 'DbStartTime' => 2, 'DbLiquidsoapData' => 3, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbInstanceId' => 1, 'dbStartTime' => 2, 'dbLiquidsoapData' => 3, ), + BasePeer::TYPE_COLNAME => array (CcWebstreamMetadataPeer::ID => 0, CcWebstreamMetadataPeer::INSTANCE_ID => 1, CcWebstreamMetadataPeer::START_TIME => 2, CcWebstreamMetadataPeer::LIQUIDSOAP_DATA => 3, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'INSTANCE_ID' => 1, 'START_TIME' => 2, 'LIQUIDSOAP_DATA' => 3, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'instance_id' => 1, 'start_time' => 2, 'liquidsoap_data' => 3, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcWebstreamMetadataPeer::getFieldNames($toType); + $key = isset(CcWebstreamMetadataPeer::$fieldKeys[$fromType][$name]) ? CcWebstreamMetadataPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcWebstreamMetadataPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcWebstreamMetadataPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcWebstreamMetadataPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcWebstreamMetadataPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcWebstreamMetadataPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcWebstreamMetadataPeer::ID); + $criteria->addSelectColumn(CcWebstreamMetadataPeer::INSTANCE_ID); + $criteria->addSelectColumn(CcWebstreamMetadataPeer::START_TIME); + $criteria->addSelectColumn(CcWebstreamMetadataPeer::LIQUIDSOAP_DATA); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.instance_id'); + $criteria->addSelectColumn($alias . '.start_time'); + $criteria->addSelectColumn($alias . '.liquidsoap_data'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcWebstreamMetadataPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcWebstreamMetadataPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcWebstreamMetadataPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcWebstreamMetadata + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcWebstreamMetadataPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcWebstreamMetadataPeer::populateObjects(CcWebstreamMetadataPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcWebstreamMetadataPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcWebstreamMetadataPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcWebstreamMetadata $obj A CcWebstreamMetadata object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcWebstreamMetadataPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcWebstreamMetadata object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcWebstreamMetadata) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcWebstreamMetadata object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcWebstreamMetadataPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcWebstreamMetadata Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcWebstreamMetadataPeer::$instances[$key])) { + return CcWebstreamMetadataPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcWebstreamMetadataPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcWebstreamMetadataPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_webstream_metadata + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcWebstreamMetadataPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcWebstreamMetadataPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcWebstreamMetadataPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcWebstreamMetadataPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcWebstreamMetadata object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcWebstreamMetadataPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcWebstreamMetadataPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcWebstreamMetadataPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcWebstreamMetadataPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcWebstreamMetadataPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcSchedule table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcSchedule(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcWebstreamMetadataPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcWebstreamMetadataPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcWebstreamMetadataPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcWebstreamMetadataPeer::INSTANCE_ID, CcSchedulePeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CcWebstreamMetadata objects pre-filled with their CcSchedule objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcWebstreamMetadata objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcSchedule(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcWebstreamMetadataPeer::DATABASE_NAME); + } + + CcWebstreamMetadataPeer::addSelectColumns($criteria); + $startcol = CcWebstreamMetadataPeer::NUM_HYDRATE_COLUMNS; + CcSchedulePeer::addSelectColumns($criteria); + + $criteria->addJoin(CcWebstreamMetadataPeer::INSTANCE_ID, CcSchedulePeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcWebstreamMetadataPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcWebstreamMetadataPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CcWebstreamMetadataPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcWebstreamMetadataPeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcSchedulePeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSchedulePeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcSchedulePeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CcWebstreamMetadata) to $obj2 (CcSchedule) + $obj2->addCcWebstreamMetadata($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcWebstreamMetadataPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcWebstreamMetadataPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CcWebstreamMetadataPeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CcWebstreamMetadataPeer::INSTANCE_ID, CcSchedulePeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CcWebstreamMetadata objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CcWebstreamMetadata objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CcWebstreamMetadataPeer::DATABASE_NAME); + } + + CcWebstreamMetadataPeer::addSelectColumns($criteria); + $startcol2 = CcWebstreamMetadataPeer::NUM_HYDRATE_COLUMNS; + + CcSchedulePeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcSchedulePeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CcWebstreamMetadataPeer::INSTANCE_ID, CcSchedulePeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CcWebstreamMetadataPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CcWebstreamMetadataPeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CcWebstreamMetadataPeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CcWebstreamMetadataPeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcSchedule rows + + $key2 = CcSchedulePeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcSchedulePeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcSchedulePeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcSchedulePeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CcWebstreamMetadata) to the collection in $obj2 (CcSchedule) + $obj2->addCcWebstreamMetadata($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcWebstreamMetadataPeer::DATABASE_NAME)->getTable(CcWebstreamMetadataPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcWebstreamMetadataPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcWebstreamMetadataPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcWebstreamMetadataTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcWebstreamMetadataPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcWebstreamMetadata or Criteria object. + * + * @param mixed $values Criteria or CcWebstreamMetadata object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcWebstreamMetadata object + } + + if ($criteria->containsKey(CcWebstreamMetadataPeer::ID) && $criteria->keyContainsValue(CcWebstreamMetadataPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcWebstreamMetadataPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcWebstreamMetadataPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcWebstreamMetadata or Criteria object. + * + * @param mixed $values Criteria or CcWebstreamMetadata object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcWebstreamMetadataPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcWebstreamMetadataPeer::ID); + $value = $criteria->remove(CcWebstreamMetadataPeer::ID); + if ($value) { + $selectCriteria->add(CcWebstreamMetadataPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcWebstreamMetadataPeer::TABLE_NAME); + } + + } else { // $values is CcWebstreamMetadata object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcWebstreamMetadataPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_webstream_metadata table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcWebstreamMetadataPeer::TABLE_NAME, $con, CcWebstreamMetadataPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcWebstreamMetadataPeer::clearInstancePool(); + CcWebstreamMetadataPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcWebstreamMetadata or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcWebstreamMetadata object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcWebstreamMetadataPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcWebstreamMetadata) { // it's a model object + // invalidate the cache for this single object + CcWebstreamMetadataPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcWebstreamMetadataPeer::DATABASE_NAME); + $criteria->add(CcWebstreamMetadataPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcWebstreamMetadataPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcWebstreamMetadataPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcWebstreamMetadataPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcWebstreamMetadata object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcWebstreamMetadata $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcWebstreamMetadataPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcWebstreamMetadataPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcWebstreamMetadataPeer::DATABASE_NAME, CcWebstreamMetadataPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcWebstreamMetadata + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcWebstreamMetadataPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcWebstreamMetadataPeer::DATABASE_NAME); + $criteria->add(CcWebstreamMetadataPeer::ID, $pk); + + $v = CcWebstreamMetadataPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcWebstreamMetadata[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcWebstreamMetadataPeer::DATABASE_NAME); + $criteria->add(CcWebstreamMetadataPeer::ID, $pks, Criteria::IN); + $objs = CcWebstreamMetadataPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcWebstreamMetadataPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcWebstreamMetadataQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcWebstreamMetadataQuery.php index ba5bfcb125..ee9ef2b0d8 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcWebstreamMetadataQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcWebstreamMetadataQuery.php @@ -4,326 +4,481 @@ /** * Base class that represents a query for the 'cc_webstream_metadata' table. * - * * - * @method CcWebstreamMetadataQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcWebstreamMetadataQuery orderByDbInstanceId($order = Criteria::ASC) Order by the instance_id column - * @method CcWebstreamMetadataQuery orderByDbStartTime($order = Criteria::ASC) Order by the start_time column - * @method CcWebstreamMetadataQuery orderByDbLiquidsoapData($order = Criteria::ASC) Order by the liquidsoap_data column * - * @method CcWebstreamMetadataQuery groupByDbId() Group by the id column - * @method CcWebstreamMetadataQuery groupByDbInstanceId() Group by the instance_id column - * @method CcWebstreamMetadataQuery groupByDbStartTime() Group by the start_time column - * @method CcWebstreamMetadataQuery groupByDbLiquidsoapData() Group by the liquidsoap_data column + * @method CcWebstreamMetadataQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcWebstreamMetadataQuery orderByDbInstanceId($order = Criteria::ASC) Order by the instance_id column + * @method CcWebstreamMetadataQuery orderByDbStartTime($order = Criteria::ASC) Order by the start_time column + * @method CcWebstreamMetadataQuery orderByDbLiquidsoapData($order = Criteria::ASC) Order by the liquidsoap_data column * - * @method CcWebstreamMetadataQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcWebstreamMetadataQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcWebstreamMetadataQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcWebstreamMetadataQuery groupByDbId() Group by the id column + * @method CcWebstreamMetadataQuery groupByDbInstanceId() Group by the instance_id column + * @method CcWebstreamMetadataQuery groupByDbStartTime() Group by the start_time column + * @method CcWebstreamMetadataQuery groupByDbLiquidsoapData() Group by the liquidsoap_data column * - * @method CcWebstreamMetadataQuery leftJoinCcSchedule($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSchedule relation - * @method CcWebstreamMetadataQuery rightJoinCcSchedule($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSchedule relation - * @method CcWebstreamMetadataQuery innerJoinCcSchedule($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSchedule relation + * @method CcWebstreamMetadataQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcWebstreamMetadataQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcWebstreamMetadataQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcWebstreamMetadata findOne(PropelPDO $con = null) Return the first CcWebstreamMetadata matching the query - * @method CcWebstreamMetadata findOneOrCreate(PropelPDO $con = null) Return the first CcWebstreamMetadata matching the query, or a new CcWebstreamMetadata object populated from the query conditions when no match is found + * @method CcWebstreamMetadataQuery leftJoinCcSchedule($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSchedule relation + * @method CcWebstreamMetadataQuery rightJoinCcSchedule($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSchedule relation + * @method CcWebstreamMetadataQuery innerJoinCcSchedule($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSchedule relation * - * @method CcWebstreamMetadata findOneByDbId(int $id) Return the first CcWebstreamMetadata filtered by the id column - * @method CcWebstreamMetadata findOneByDbInstanceId(int $instance_id) Return the first CcWebstreamMetadata filtered by the instance_id column - * @method CcWebstreamMetadata findOneByDbStartTime(string $start_time) Return the first CcWebstreamMetadata filtered by the start_time column - * @method CcWebstreamMetadata findOneByDbLiquidsoapData(string $liquidsoap_data) Return the first CcWebstreamMetadata filtered by the liquidsoap_data column + * @method CcWebstreamMetadata findOne(PropelPDO $con = null) Return the first CcWebstreamMetadata matching the query + * @method CcWebstreamMetadata findOneOrCreate(PropelPDO $con = null) Return the first CcWebstreamMetadata matching the query, or a new CcWebstreamMetadata object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcWebstreamMetadata objects filtered by the id column - * @method array findByDbInstanceId(int $instance_id) Return CcWebstreamMetadata objects filtered by the instance_id column - * @method array findByDbStartTime(string $start_time) Return CcWebstreamMetadata objects filtered by the start_time column - * @method array findByDbLiquidsoapData(string $liquidsoap_data) Return CcWebstreamMetadata objects filtered by the liquidsoap_data column + * @method CcWebstreamMetadata findOneByDbInstanceId(int $instance_id) Return the first CcWebstreamMetadata filtered by the instance_id column + * @method CcWebstreamMetadata findOneByDbStartTime(string $start_time) Return the first CcWebstreamMetadata filtered by the start_time column + * @method CcWebstreamMetadata findOneByDbLiquidsoapData(string $liquidsoap_data) Return the first CcWebstreamMetadata filtered by the liquidsoap_data column + * + * @method array findByDbId(int $id) Return CcWebstreamMetadata objects filtered by the id column + * @method array findByDbInstanceId(int $instance_id) Return CcWebstreamMetadata objects filtered by the instance_id column + * @method array findByDbStartTime(string $start_time) Return CcWebstreamMetadata objects filtered by the start_time column + * @method array findByDbLiquidsoapData(string $liquidsoap_data) Return CcWebstreamMetadata objects filtered by the liquidsoap_data column * * @package propel.generator.airtime.om */ abstract class BaseCcWebstreamMetadataQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcWebstreamMetadataQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcWebstreamMetadata'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcWebstreamMetadataQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcWebstreamMetadataQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcWebstreamMetadataQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcWebstreamMetadataQuery) { + return $criteria; + } + $query = new CcWebstreamMetadataQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcWebstreamMetadata|CcWebstreamMetadata[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcWebstreamMetadataPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcWebstreamMetadataPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcWebstreamMetadata A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcWebstreamMetadata A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "instance_id", "start_time", "liquidsoap_data" FROM "cc_webstream_metadata" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcWebstreamMetadata(); + $obj->hydrate($row); + CcWebstreamMetadataPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcWebstreamMetadata|CcWebstreamMetadata[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcWebstreamMetadata[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcWebstreamMetadataQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcWebstreamMetadataPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcWebstreamMetadataQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcWebstreamMetadataPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcWebstreamMetadataQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcWebstreamMetadataPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcWebstreamMetadataPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcWebstreamMetadataPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the instance_id column + * + * Example usage: + * + * $query->filterByDbInstanceId(1234); // WHERE instance_id = 1234 + * $query->filterByDbInstanceId(array(12, 34)); // WHERE instance_id IN (12, 34) + * $query->filterByDbInstanceId(array('min' => 12)); // WHERE instance_id >= 12 + * $query->filterByDbInstanceId(array('max' => 12)); // WHERE instance_id <= 12 + * + * + * @see filterByCcSchedule() + * + * @param mixed $dbInstanceId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcWebstreamMetadataQuery The current query, for fluid interface + */ + public function filterByDbInstanceId($dbInstanceId = null, $comparison = null) + { + if (is_array($dbInstanceId)) { + $useMinMax = false; + if (isset($dbInstanceId['min'])) { + $this->addUsingAlias(CcWebstreamMetadataPeer::INSTANCE_ID, $dbInstanceId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbInstanceId['max'])) { + $this->addUsingAlias(CcWebstreamMetadataPeer::INSTANCE_ID, $dbInstanceId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcWebstreamMetadataPeer::INSTANCE_ID, $dbInstanceId, $comparison); + } + + /** + * Filter the query on the start_time column + * + * Example usage: + * + * $query->filterByDbStartTime('2011-03-14'); // WHERE start_time = '2011-03-14' + * $query->filterByDbStartTime('now'); // WHERE start_time = '2011-03-14' + * $query->filterByDbStartTime(array('max' => 'yesterday')); // WHERE start_time < '2011-03-13' + * + * + * @param mixed $dbStartTime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcWebstreamMetadataQuery The current query, for fluid interface + */ + public function filterByDbStartTime($dbStartTime = null, $comparison = null) + { + if (is_array($dbStartTime)) { + $useMinMax = false; + if (isset($dbStartTime['min'])) { + $this->addUsingAlias(CcWebstreamMetadataPeer::START_TIME, $dbStartTime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbStartTime['max'])) { + $this->addUsingAlias(CcWebstreamMetadataPeer::START_TIME, $dbStartTime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcWebstreamMetadataPeer::START_TIME, $dbStartTime, $comparison); + } + + /** + * Filter the query on the liquidsoap_data column + * + * Example usage: + * + * $query->filterByDbLiquidsoapData('fooValue'); // WHERE liquidsoap_data = 'fooValue' + * $query->filterByDbLiquidsoapData('%fooValue%'); // WHERE liquidsoap_data LIKE '%fooValue%' + * + * + * @param string $dbLiquidsoapData 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 CcWebstreamMetadataQuery The current query, for fluid interface + */ + public function filterByDbLiquidsoapData($dbLiquidsoapData = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLiquidsoapData)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLiquidsoapData)) { + $dbLiquidsoapData = str_replace('*', '%', $dbLiquidsoapData); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcWebstreamMetadataPeer::LIQUIDSOAP_DATA, $dbLiquidsoapData, $comparison); + } + + /** + * Filter the query by a related CcSchedule object + * + * @param CcSchedule|PropelObjectCollection $ccSchedule The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcWebstreamMetadataQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcSchedule($ccSchedule, $comparison = null) + { + if ($ccSchedule instanceof CcSchedule) { + return $this + ->addUsingAlias(CcWebstreamMetadataPeer::INSTANCE_ID, $ccSchedule->getDbId(), $comparison); + } elseif ($ccSchedule instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CcWebstreamMetadataPeer::INSTANCE_ID, $ccSchedule->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcSchedule() only accepts arguments of type CcSchedule or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcSchedule relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcWebstreamMetadataQuery The current query, for fluid interface + */ + public function joinCcSchedule($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcSchedule'); + + // 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, 'CcSchedule'); + } + + return $this; + } + + /** + * Use the CcSchedule relation CcSchedule 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 CcScheduleQuery A secondary query class using the current class as primary query + */ + public function useCcScheduleQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCcSchedule($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcSchedule', 'CcScheduleQuery'); + } + + /** + * Exclude object from result + * + * @param CcWebstreamMetadata $ccWebstreamMetadata Object to remove from the list of results + * + * @return CcWebstreamMetadataQuery The current query, for fluid interface + */ + public function prune($ccWebstreamMetadata = null) + { + if ($ccWebstreamMetadata) { + $this->addUsingAlias(CcWebstreamMetadataPeer::ID, $ccWebstreamMetadata->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcWebstreamMetadataQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcWebstreamMetadata', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcWebstreamMetadataQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcWebstreamMetadataQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcWebstreamMetadataQuery) { - return $criteria; - } - $query = new CcWebstreamMetadataQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcWebstreamMetadata|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcWebstreamMetadataPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcWebstreamMetadataQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcWebstreamMetadataPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcWebstreamMetadataQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcWebstreamMetadataPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcWebstreamMetadataQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcWebstreamMetadataPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the instance_id column - * - * @param int|array $dbInstanceId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcWebstreamMetadataQuery The current query, for fluid interface - */ - public function filterByDbInstanceId($dbInstanceId = null, $comparison = null) - { - if (is_array($dbInstanceId)) { - $useMinMax = false; - if (isset($dbInstanceId['min'])) { - $this->addUsingAlias(CcWebstreamMetadataPeer::INSTANCE_ID, $dbInstanceId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbInstanceId['max'])) { - $this->addUsingAlias(CcWebstreamMetadataPeer::INSTANCE_ID, $dbInstanceId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcWebstreamMetadataPeer::INSTANCE_ID, $dbInstanceId, $comparison); - } - - /** - * Filter the query on the start_time column - * - * @param string|array $dbStartTime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcWebstreamMetadataQuery The current query, for fluid interface - */ - public function filterByDbStartTime($dbStartTime = null, $comparison = null) - { - if (is_array($dbStartTime)) { - $useMinMax = false; - if (isset($dbStartTime['min'])) { - $this->addUsingAlias(CcWebstreamMetadataPeer::START_TIME, $dbStartTime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbStartTime['max'])) { - $this->addUsingAlias(CcWebstreamMetadataPeer::START_TIME, $dbStartTime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcWebstreamMetadataPeer::START_TIME, $dbStartTime, $comparison); - } - - /** - * Filter the query on the liquidsoap_data column - * - * @param string $dbLiquidsoapData 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 CcWebstreamMetadataQuery The current query, for fluid interface - */ - public function filterByDbLiquidsoapData($dbLiquidsoapData = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLiquidsoapData)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLiquidsoapData)) { - $dbLiquidsoapData = str_replace('*', '%', $dbLiquidsoapData); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcWebstreamMetadataPeer::LIQUIDSOAP_DATA, $dbLiquidsoapData, $comparison); - } - - /** - * Filter the query by a related CcSchedule object - * - * @param CcSchedule $ccSchedule the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcWebstreamMetadataQuery The current query, for fluid interface - */ - public function filterByCcSchedule($ccSchedule, $comparison = null) - { - return $this - ->addUsingAlias(CcWebstreamMetadataPeer::INSTANCE_ID, $ccSchedule->getDbId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcSchedule relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcWebstreamMetadataQuery The current query, for fluid interface - */ - public function joinCcSchedule($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcSchedule'); - - // 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, 'CcSchedule'); - } - - return $this; - } - - /** - * Use the CcSchedule relation CcSchedule 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 CcScheduleQuery A secondary query class using the current class as primary query - */ - public function useCcScheduleQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN) - { - return $this - ->joinCcSchedule($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcSchedule', 'CcScheduleQuery'); - } - - /** - * Exclude object from result - * - * @param CcWebstreamMetadata $ccWebstreamMetadata Object to remove from the list of results - * - * @return CcWebstreamMetadataQuery The current query, for fluid interface - */ - public function prune($ccWebstreamMetadata = null) - { - if ($ccWebstreamMetadata) { - $this->addUsingAlias(CcWebstreamMetadataPeer::ID, $ccWebstreamMetadata->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcWebstreamMetadataQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCcWebstreamPeer.php b/airtime_mvc/application/models/airtime/om/BaseCcWebstreamPeer.php index c1b2f7221e..6c4dedf93e 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcWebstreamPeer.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcWebstreamPeer.php @@ -4,775 +4,797 @@ /** * Base static class for performing query and update operations on the 'cc_webstream' table. * - * * - * @package propel.generator.airtime.om + * + * @package propel.generator.airtime.om */ -abstract class BaseCcWebstreamPeer { - - /** the default database name for this class */ - const DATABASE_NAME = 'airtime'; - - /** the table name for this class */ - const TABLE_NAME = 'cc_webstream'; - - /** the related Propel class for this table */ - const OM_CLASS = 'CcWebstream'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'airtime.CcWebstream'; - - /** the related TableMap class for this table */ - const TM_CLASS = 'CcWebstreamTableMap'; - - /** The total number of columns. */ - const NUM_COLUMNS = 10; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = 0; - - /** the column name for the ID field */ - const ID = 'cc_webstream.ID'; - - /** the column name for the NAME field */ - const NAME = 'cc_webstream.NAME'; - - /** the column name for the DESCRIPTION field */ - const DESCRIPTION = 'cc_webstream.DESCRIPTION'; - - /** the column name for the URL field */ - const URL = 'cc_webstream.URL'; - - /** the column name for the LENGTH field */ - const LENGTH = 'cc_webstream.LENGTH'; - - /** the column name for the CREATOR_ID field */ - const CREATOR_ID = 'cc_webstream.CREATOR_ID'; - - /** the column name for the MTIME field */ - const MTIME = 'cc_webstream.MTIME'; - - /** the column name for the UTIME field */ - const UTIME = 'cc_webstream.UTIME'; - - /** the column name for the LPTIME field */ - const LPTIME = 'cc_webstream.LPTIME'; - - /** the column name for the MIME field */ - const MIME = 'cc_webstream.MIME'; - - /** - * An identiy map to hold any loaded instances of CcWebstream objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array CcWebstream[] - */ - public static $instances = array(); - - - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbDescription', 'DbUrl', 'DbLength', 'DbCreatorId', 'DbMtime', 'DbUtime', 'DbLPtime', 'DbMime', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbDescription', 'dbUrl', 'dbLength', 'dbCreatorId', 'dbMtime', 'dbUtime', 'dbLPtime', 'dbMime', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::NAME, self::DESCRIPTION, self::URL, self::LENGTH, self::CREATOR_ID, self::MTIME, self::UTIME, self::LPTIME, self::MIME, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'DESCRIPTION', 'URL', 'LENGTH', 'CREATOR_ID', 'MTIME', 'UTIME', 'LPTIME', 'MIME', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'description', 'url', 'length', 'creator_id', 'mtime', 'utime', 'lptime', 'mime', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ) - ); - - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbDescription' => 2, 'DbUrl' => 3, 'DbLength' => 4, 'DbCreatorId' => 5, 'DbMtime' => 6, 'DbUtime' => 7, 'DbLPtime' => 8, 'DbMime' => 9, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbDescription' => 2, 'dbUrl' => 3, 'dbLength' => 4, 'dbCreatorId' => 5, 'dbMtime' => 6, 'dbUtime' => 7, 'dbLPtime' => 8, 'dbMime' => 9, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::NAME => 1, self::DESCRIPTION => 2, self::URL => 3, self::LENGTH => 4, self::CREATOR_ID => 5, self::MTIME => 6, self::UTIME => 7, self::LPTIME => 8, self::MIME => 9, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'DESCRIPTION' => 2, 'URL' => 3, 'LENGTH' => 4, 'CREATOR_ID' => 5, 'MTIME' => 6, 'UTIME' => 7, 'LPTIME' => 8, 'MIME' => 9, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'description' => 2, 'url' => 3, 'length' => 4, 'creator_id' => 5, 'mtime' => 6, 'utime' => 7, 'lptime' => 8, 'mime' => 9, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ) - ); - - /** - * Translates a fieldname to another type - * - * @param string $name field name - * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string $toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName($name, $fromType, $toType) - { - $toNames = self::getFieldNames($toType); - $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null; - if ($key === null) { - throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true)); - } - return $toNames[$key]; - } - - /** - * Returns an array of field names. - * - * @param string $type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists($type, self::$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); - } - return self::$fieldNames[$type]; - } - - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * $c->addAlias("alias1", TablePeer::TABLE_NAME); - * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string $alias The alias for the current table. - * @param string $column The column name for current table. (i.e. CcWebstreamPeer::COLUMN_NAME). - * @return string - */ - public static function alias($alias, $column) - { - return str_replace(CcWebstreamPeer::TABLE_NAME.'.', $alias.'.', $column); - } - - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad="true" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria $criteria object containing the columns to add. - * @param string $alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria $criteria, $alias = null) - { - if (null === $alias) { - $criteria->addSelectColumn(CcWebstreamPeer::ID); - $criteria->addSelectColumn(CcWebstreamPeer::NAME); - $criteria->addSelectColumn(CcWebstreamPeer::DESCRIPTION); - $criteria->addSelectColumn(CcWebstreamPeer::URL); - $criteria->addSelectColumn(CcWebstreamPeer::LENGTH); - $criteria->addSelectColumn(CcWebstreamPeer::CREATOR_ID); - $criteria->addSelectColumn(CcWebstreamPeer::MTIME); - $criteria->addSelectColumn(CcWebstreamPeer::UTIME); - $criteria->addSelectColumn(CcWebstreamPeer::LPTIME); - $criteria->addSelectColumn(CcWebstreamPeer::MIME); - } else { - $criteria->addSelectColumn($alias . '.ID'); - $criteria->addSelectColumn($alias . '.NAME'); - $criteria->addSelectColumn($alias . '.DESCRIPTION'); - $criteria->addSelectColumn($alias . '.URL'); - $criteria->addSelectColumn($alias . '.LENGTH'); - $criteria->addSelectColumn($alias . '.CREATOR_ID'); - $criteria->addSelectColumn($alias . '.MTIME'); - $criteria->addSelectColumn($alias . '.UTIME'); - $criteria->addSelectColumn($alias . '.LPTIME'); - $criteria->addSelectColumn($alias . '.MIME'); - } - } - - /** - * Returns the number of rows matching criteria. - * - * @param Criteria $criteria - * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO $con - * @return int Number of matching rows. - */ - public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) - { - // we may modify criteria, so copy it first - $criteria = clone $criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(CcWebstreamPeer::TABLE_NAME); - - if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { - $criteria->setDistinct(); - } - - if (!$criteria->hasSelectClause()) { - CcWebstreamPeer::addSelectColumns($criteria); - } - - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - $criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if ($con === null) { - $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - // BasePeer returns a PDOStatement - $stmt = BasePeer::doCount($criteria, $con); - - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - return $count; - } - /** - * Method to select one object from the DB. - * - * @param Criteria $criteria object used to create the SELECT statement. - * @param PropelPDO $con - * @return CcWebstream - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) - { - $critcopy = clone $criteria; - $critcopy->setLimit(1); - $objects = CcWebstreamPeer::doSelect($critcopy, $con); - if ($objects) { - return $objects[0]; - } - return null; - } - /** - * Method to do selects. - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - return CcWebstreamPeer::populateObjects(CcWebstreamPeer::doSelectStmt($criteria, $con)); - } - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria $criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO $con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see BasePeer::doSelect() - */ - public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!$criteria->hasSelectClause()) { - $criteria = clone $criteria; - CcWebstreamPeer::addSelectColumns($criteria); - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - // BasePeer returns a PDOStatement - return BasePeer::doSelect($criteria, $con); - } - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param CcWebstream $value A CcWebstream object. - * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(CcWebstream $obj, $key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if ($key === null) { - $key = (string) $obj->getDbId(); - } // if key === null - self::$instances[$key] = $obj; - } - } - - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed $value A CcWebstream object or a primary key value. - */ - public static function removeInstanceFromPool($value) - { - if (Propel::isInstancePoolingEnabled() && $value !== null) { - if (is_object($value) && $value instanceof CcWebstream) { - $key = (string) $value->getDbId(); - } elseif (is_scalar($value)) { - // assume we've been passed a primary key - $key = (string) $value; - } else { - $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcWebstream object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); - throw $e; - } - - unset(self::$instances[$key]); - } - } // removeInstanceFromPool() - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string $key The key (@see getPrimaryKeyHash()) for this instance. - * @return CcWebstream Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool($key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::$instances[$key])) { - return self::$instances[$key]; - } - } - return null; // just to be explicit - } - - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::$instances = array(); - } - - /** - * Method to invalidate the instance pool of all tables related to cc_webstream - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - { - // Invalidate objects in CcSchedulePeer instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CcSchedulePeer::clearInstancePool(); - } - - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow($row, $startcol = 0) - { - // If the PK cannot be derived from the row, return NULL. - if ($row[$startcol] === null) { - return null; - } - return (string) $row[$startcol]; - } - - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow($row, $startcol = 0) - { - return (int) $row[$startcol]; - } - - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement $stmt) - { - $results = array(); - - // set the class once to avoid overhead in the loop - $cls = CcWebstreamPeer::getOMClass(false); - // populate the object(s) - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $key = CcWebstreamPeer::getPrimaryKeyHashFromRow($row, 0); - if (null !== ($obj = CcWebstreamPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, 0, true); // rehydrate - $results[] = $obj; - } else { - $obj = new $cls(); - $obj->hydrate($row); - $results[] = $obj; - CcWebstreamPeer::addInstanceToPool($obj, $key); - } // if key exists - } - $stmt->closeCursor(); - return $results; - } - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array $row PropelPDO resultset row. - * @param int $startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (CcWebstream object, last column rank) - */ - public static function populateObject($row, $startcol = 0) - { - $key = CcWebstreamPeer::getPrimaryKeyHashFromRow($row, $startcol); - if (null !== ($obj = CcWebstreamPeer::getInstanceFromPool($key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // $obj->hydrate($row, $startcol, true); // rehydrate - $col = $startcol + CcWebstreamPeer::NUM_COLUMNS; - } else { - $cls = CcWebstreamPeer::OM_CLASS; - $obj = new $cls(); - $col = $obj->hydrate($row, $startcol); - CcWebstreamPeer::addInstanceToPool($obj, $key); - } - return array($obj, $col); - } - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } - - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - $dbMap = Propel::getDatabaseMap(BaseCcWebstreamPeer::DATABASE_NAME); - if (!$dbMap->hasTable(BaseCcWebstreamPeer::TABLE_NAME)) - { - $dbMap->addTableObject(new CcWebstreamTableMap()); - } - } - - /** - * The class that the Peer will make instances of. - * - * If $withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean $withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass($withPrefix = true) - { - return $withPrefix ? CcWebstreamPeer::CLASS_DEFAULT : CcWebstreamPeer::OM_CLASS; - } - - /** - * Method perform an INSERT on the database, given a CcWebstream or Criteria object. - * - * @param mixed $values Criteria or CcWebstream object containing data that is used to create the INSERT statement. - * @param PropelPDO $con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - } else { - $criteria = $values->buildCriteria(); // build Criteria from CcWebstream object - } - - if ($criteria->containsKey(CcWebstreamPeer::ID) && $criteria->keyContainsValue(CcWebstreamPeer::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcWebstreamPeer::ID.')'); - } - - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because $criteria could contain info - // for more than one table (I guess, conceivably) - $con->beginTransaction(); - $pk = BasePeer::doInsert($criteria, $con); - $con->commit(); - } catch(PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $pk; - } - - /** - * Method perform an UPDATE on the database, given a CcWebstream or Criteria object. - * - * @param mixed $values Criteria or CcWebstream object containing data that is used to create the UPDATE statement. - * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - $selectCriteria = new Criteria(self::DATABASE_NAME); - - if ($values instanceof Criteria) { - $criteria = clone $values; // rename for clarity - - $comparison = $criteria->getComparison(CcWebstreamPeer::ID); - $value = $criteria->remove(CcWebstreamPeer::ID); - if ($value) { - $selectCriteria->add(CcWebstreamPeer::ID, $value, $comparison); - } else { - $selectCriteria->setPrimaryTableName(CcWebstreamPeer::TABLE_NAME); - } - - } else { // $values is CcWebstream object - $criteria = $values->buildCriteria(); // gets full criteria - $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - return BasePeer::doUpdate($selectCriteria, $criteria, $con); - } - - /** - * Method to DELETE all rows from the cc_webstream table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - $affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - $affectedRows += BasePeer::doDeleteAll(CcWebstreamPeer::TABLE_NAME, $con, CcWebstreamPeer::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - CcWebstreamPeer::clearInstancePool(); - CcWebstreamPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Method perform a DELETE on the database, given a CcWebstream or Criteria object OR a primary key value. - * - * @param mixed $values Criteria or CcWebstream object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO $con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete($values, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if ($values instanceof Criteria) { - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - CcWebstreamPeer::clearInstancePool(); - // rename for clarity - $criteria = clone $values; - } elseif ($values instanceof CcWebstream) { // it's a model object - // invalidate the cache for this single object - CcWebstreamPeer::removeInstanceFromPool($values); - // create criteria based on pk values - $criteria = $values->buildPkeyCriteria(); - } else { // it's a primary key, or an array of pks - $criteria = new Criteria(self::DATABASE_NAME); - $criteria->add(CcWebstreamPeer::ID, (array) $values, Criteria::IN); - // invalidate the cache for this object(s) - foreach ((array) $values as $singleval) { - CcWebstreamPeer::removeInstanceFromPool($singleval); - } - } - - // Set the correct dbName - $criteria->setDbName(self::DATABASE_NAME); - - $affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because $criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - $con->beginTransaction(); - - $affectedRows += BasePeer::doDelete($criteria, $con); - CcWebstreamPeer::clearRelatedInstancePool(); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - /** - * Validates all modified columns of given CcWebstream object. - * If parameter $columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param CcWebstream $obj The object to validate. - * @param mixed $cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(CcWebstream $obj, $cols = null) - { - $columns = array(); - - if ($cols) { - $dbMap = Propel::getDatabaseMap(CcWebstreamPeer::DATABASE_NAME); - $tableMap = $dbMap->getTable(CcWebstreamPeer::TABLE_NAME); - - if (! is_array($cols)) { - $cols = array($cols); - } - - foreach ($cols as $colName) { - if ($tableMap->containsColumn($colName)) { - $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); - $columns[$colName] = $obj->$get(); - } - } - } else { - - } - - return BasePeer::doValidate(CcWebstreamPeer::DATABASE_NAME, CcWebstreamPeer::TABLE_NAME, $columns); - } - - /** - * Retrieve a single object by pkey. - * - * @param int $pk the primary key. - * @param PropelPDO $con the connection to use - * @return CcWebstream - */ - public static function retrieveByPK($pk, PropelPDO $con = null) - { - - if (null !== ($obj = CcWebstreamPeer::getInstanceFromPool((string) $pk))) { - return $obj; - } - - if ($con === null) { - $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $criteria = new Criteria(CcWebstreamPeer::DATABASE_NAME); - $criteria->add(CcWebstreamPeer::ID, $pk); - - $v = CcWebstreamPeer::doSelect($criteria, $con); - - return !empty($v) > 0 ? $v[0] : null; - } - - /** - * Retrieve multiple objects by pkey. - * - * @param array $pks List of primary keys - * @param PropelPDO $con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function retrieveByPKs($pks, PropelPDO $con = null) - { - if ($con === null) { - $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_READ); - } - - $objs = null; - if (empty($pks)) { - $objs = array(); - } else { - $criteria = new Criteria(CcWebstreamPeer::DATABASE_NAME); - $criteria->add(CcWebstreamPeer::ID, $pks, Criteria::IN); - $objs = CcWebstreamPeer::doSelect($criteria, $con); - } - return $objs; - } +abstract class BaseCcWebstreamPeer +{ + + /** the default database name for this class */ + const DATABASE_NAME = 'airtime'; + + /** the table name for this class */ + const TABLE_NAME = 'cc_webstream'; + + /** the related Propel class for this table */ + const OM_CLASS = 'CcWebstream'; + + /** the related TableMap class for this table */ + const TM_CLASS = 'CcWebstreamTableMap'; + + /** The total number of columns. */ + const NUM_COLUMNS = 10; + + /** The number of lazy-loaded columns. */ + const NUM_LAZY_LOAD_COLUMNS = 0; + + /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ + const NUM_HYDRATE_COLUMNS = 10; + + /** the column name for the id field */ + const ID = 'cc_webstream.id'; + + /** the column name for the name field */ + const NAME = 'cc_webstream.name'; + + /** the column name for the description field */ + const DESCRIPTION = 'cc_webstream.description'; + + /** the column name for the url field */ + const URL = 'cc_webstream.url'; + + /** the column name for the length field */ + const LENGTH = 'cc_webstream.length'; + + /** the column name for the creator_id field */ + const CREATOR_ID = 'cc_webstream.creator_id'; + + /** the column name for the mtime field */ + const MTIME = 'cc_webstream.mtime'; + + /** the column name for the utime field */ + const UTIME = 'cc_webstream.utime'; + + /** the column name for the lptime field */ + const LPTIME = 'cc_webstream.lptime'; + + /** the column name for the mime field */ + const MIME = 'cc_webstream.mime'; + + /** The default string format for model objects of the related table **/ + const DEFAULT_STRING_FORMAT = 'YAML'; + + /** + * An identity map to hold any loaded instances of CcWebstream objects. + * This must be public so that other peer classes can access this when hydrating from JOIN + * queries. + * @var array CcWebstream[] + */ + public static $instances = array(); + + + /** + * holds an array of fieldnames + * + * first dimension keys are the type constants + * e.g. CcWebstreamPeer::$fieldNames[CcWebstreamPeer::TYPE_PHPNAME][0] = 'Id' + */ + protected static $fieldNames = array ( + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbDescription', 'DbUrl', 'DbLength', 'DbCreatorId', 'DbMtime', 'DbUtime', 'DbLPtime', 'DbMime', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbDescription', 'dbUrl', 'dbLength', 'dbCreatorId', 'dbMtime', 'dbUtime', 'dbLPtime', 'dbMime', ), + BasePeer::TYPE_COLNAME => array (CcWebstreamPeer::ID, CcWebstreamPeer::NAME, CcWebstreamPeer::DESCRIPTION, CcWebstreamPeer::URL, CcWebstreamPeer::LENGTH, CcWebstreamPeer::CREATOR_ID, CcWebstreamPeer::MTIME, CcWebstreamPeer::UTIME, CcWebstreamPeer::LPTIME, CcWebstreamPeer::MIME, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'DESCRIPTION', 'URL', 'LENGTH', 'CREATOR_ID', 'MTIME', 'UTIME', 'LPTIME', 'MIME', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'description', 'url', 'length', 'creator_id', 'mtime', 'utime', 'lptime', 'mime', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CcWebstreamPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbDescription' => 2, 'DbUrl' => 3, 'DbLength' => 4, 'DbCreatorId' => 5, 'DbMtime' => 6, 'DbUtime' => 7, 'DbLPtime' => 8, 'DbMime' => 9, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbDescription' => 2, 'dbUrl' => 3, 'dbLength' => 4, 'dbCreatorId' => 5, 'dbMtime' => 6, 'dbUtime' => 7, 'dbLPtime' => 8, 'dbMime' => 9, ), + BasePeer::TYPE_COLNAME => array (CcWebstreamPeer::ID => 0, CcWebstreamPeer::NAME => 1, CcWebstreamPeer::DESCRIPTION => 2, CcWebstreamPeer::URL => 3, CcWebstreamPeer::LENGTH => 4, CcWebstreamPeer::CREATOR_ID => 5, CcWebstreamPeer::MTIME => 6, CcWebstreamPeer::UTIME => 7, CcWebstreamPeer::LPTIME => 8, CcWebstreamPeer::MIME => 9, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'DESCRIPTION' => 2, 'URL' => 3, 'LENGTH' => 4, 'CREATOR_ID' => 5, 'MTIME' => 6, 'UTIME' => 7, 'LPTIME' => 8, 'MIME' => 9, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'description' => 2, 'url' => 3, 'length' => 4, 'creator_id' => 5, 'mtime' => 6, 'utime' => 7, 'lptime' => 8, 'mime' => 9, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CcWebstreamPeer::getFieldNames($toType); + $key = isset(CcWebstreamPeer::$fieldKeys[$fromType][$name]) ? CcWebstreamPeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CcWebstreamPeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CcWebstreamPeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CcWebstreamPeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CcWebstreamPeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CcWebstreamPeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CcWebstreamPeer::ID); + $criteria->addSelectColumn(CcWebstreamPeer::NAME); + $criteria->addSelectColumn(CcWebstreamPeer::DESCRIPTION); + $criteria->addSelectColumn(CcWebstreamPeer::URL); + $criteria->addSelectColumn(CcWebstreamPeer::LENGTH); + $criteria->addSelectColumn(CcWebstreamPeer::CREATOR_ID); + $criteria->addSelectColumn(CcWebstreamPeer::MTIME); + $criteria->addSelectColumn(CcWebstreamPeer::UTIME); + $criteria->addSelectColumn(CcWebstreamPeer::LPTIME); + $criteria->addSelectColumn(CcWebstreamPeer::MIME); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.name'); + $criteria->addSelectColumn($alias . '.description'); + $criteria->addSelectColumn($alias . '.url'); + $criteria->addSelectColumn($alias . '.length'); + $criteria->addSelectColumn($alias . '.creator_id'); + $criteria->addSelectColumn($alias . '.mtime'); + $criteria->addSelectColumn($alias . '.utime'); + $criteria->addSelectColumn($alias . '.lptime'); + $criteria->addSelectColumn($alias . '.mime'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CcWebstreamPeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CcWebstreamPeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CcWebstreamPeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CcWebstream + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CcWebstreamPeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CcWebstreamPeer::populateObjects(CcWebstreamPeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CcWebstreamPeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CcWebstreamPeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CcWebstream $obj A CcWebstream object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CcWebstreamPeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CcWebstream object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CcWebstream) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CcWebstream object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CcWebstreamPeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CcWebstream Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CcWebstreamPeer::$instances[$key])) { + return CcWebstreamPeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CcWebstreamPeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CcWebstreamPeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cc_webstream + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + // Invalidate objects in CcSchedulePeer instance pool, + // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. + CcSchedulePeer::clearInstancePool(); + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CcWebstreamPeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CcWebstreamPeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CcWebstreamPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CcWebstreamPeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CcWebstream object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CcWebstreamPeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CcWebstreamPeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CcWebstreamPeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CcWebstreamPeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CcWebstreamPeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CcWebstreamPeer::DATABASE_NAME)->getTable(CcWebstreamPeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCcWebstreamPeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCcWebstreamPeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CcWebstreamTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CcWebstreamPeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CcWebstream or Criteria object. + * + * @param mixed $values Criteria or CcWebstream object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CcWebstream object + } + + if ($criteria->containsKey(CcWebstreamPeer::ID) && $criteria->keyContainsValue(CcWebstreamPeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcWebstreamPeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CcWebstreamPeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CcWebstream or Criteria object. + * + * @param mixed $values Criteria or CcWebstream object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CcWebstreamPeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CcWebstreamPeer::ID); + $value = $criteria->remove(CcWebstreamPeer::ID); + if ($value) { + $selectCriteria->add(CcWebstreamPeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CcWebstreamPeer::TABLE_NAME); + } + + } else { // $values is CcWebstream object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CcWebstreamPeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cc_webstream table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CcWebstreamPeer::TABLE_NAME, $con, CcWebstreamPeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CcWebstreamPeer::clearInstancePool(); + CcWebstreamPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CcWebstream or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CcWebstream object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CcWebstreamPeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CcWebstream) { // it's a model object + // invalidate the cache for this single object + CcWebstreamPeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CcWebstreamPeer::DATABASE_NAME); + $criteria->add(CcWebstreamPeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CcWebstreamPeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CcWebstreamPeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CcWebstreamPeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CcWebstream object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CcWebstream $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CcWebstreamPeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CcWebstreamPeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CcWebstreamPeer::DATABASE_NAME, CcWebstreamPeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CcWebstream + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CcWebstreamPeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CcWebstreamPeer::DATABASE_NAME); + $criteria->add(CcWebstreamPeer::ID, $pk); + + $v = CcWebstreamPeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CcWebstream[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CcWebstreamPeer::DATABASE_NAME); + $criteria->add(CcWebstreamPeer::ID, $pks, Criteria::IN); + $objs = CcWebstreamPeer::doSelect($criteria, $con); + } + + return $objs; + } } // BaseCcWebstreamPeer diff --git a/airtime_mvc/application/models/airtime/om/BaseCcWebstreamQuery.php b/airtime_mvc/application/models/airtime/om/BaseCcWebstreamQuery.php index 6f5becfb62..e9d2f2d02e 100644 --- a/airtime_mvc/application/models/airtime/om/BaseCcWebstreamQuery.php +++ b/airtime_mvc/application/models/airtime/om/BaseCcWebstreamQuery.php @@ -4,500 +4,703 @@ /** * Base class that represents a query for the 'cc_webstream' table. * - * * - * @method CcWebstreamQuery orderByDbId($order = Criteria::ASC) Order by the id column - * @method CcWebstreamQuery orderByDbName($order = Criteria::ASC) Order by the name column - * @method CcWebstreamQuery orderByDbDescription($order = Criteria::ASC) Order by the description column - * @method CcWebstreamQuery orderByDbUrl($order = Criteria::ASC) Order by the url column - * @method CcWebstreamQuery orderByDbLength($order = Criteria::ASC) Order by the length column - * @method CcWebstreamQuery orderByDbCreatorId($order = Criteria::ASC) Order by the creator_id column - * @method CcWebstreamQuery orderByDbMtime($order = Criteria::ASC) Order by the mtime column - * @method CcWebstreamQuery orderByDbUtime($order = Criteria::ASC) Order by the utime column - * @method CcWebstreamQuery orderByDbLPtime($order = Criteria::ASC) Order by the lptime column - * @method CcWebstreamQuery orderByDbMime($order = Criteria::ASC) Order by the mime column * - * @method CcWebstreamQuery groupByDbId() Group by the id column - * @method CcWebstreamQuery groupByDbName() Group by the name column - * @method CcWebstreamQuery groupByDbDescription() Group by the description column - * @method CcWebstreamQuery groupByDbUrl() Group by the url column - * @method CcWebstreamQuery groupByDbLength() Group by the length column - * @method CcWebstreamQuery groupByDbCreatorId() Group by the creator_id column - * @method CcWebstreamQuery groupByDbMtime() Group by the mtime column - * @method CcWebstreamQuery groupByDbUtime() Group by the utime column - * @method CcWebstreamQuery groupByDbLPtime() Group by the lptime column - * @method CcWebstreamQuery groupByDbMime() Group by the mime column + * @method CcWebstreamQuery orderByDbId($order = Criteria::ASC) Order by the id column + * @method CcWebstreamQuery orderByDbName($order = Criteria::ASC) Order by the name column + * @method CcWebstreamQuery orderByDbDescription($order = Criteria::ASC) Order by the description column + * @method CcWebstreamQuery orderByDbUrl($order = Criteria::ASC) Order by the url column + * @method CcWebstreamQuery orderByDbLength($order = Criteria::ASC) Order by the length column + * @method CcWebstreamQuery orderByDbCreatorId($order = Criteria::ASC) Order by the creator_id column + * @method CcWebstreamQuery orderByDbMtime($order = Criteria::ASC) Order by the mtime column + * @method CcWebstreamQuery orderByDbUtime($order = Criteria::ASC) Order by the utime column + * @method CcWebstreamQuery orderByDbLPtime($order = Criteria::ASC) Order by the lptime column + * @method CcWebstreamQuery orderByDbMime($order = Criteria::ASC) Order by the mime column * - * @method CcWebstreamQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method CcWebstreamQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method CcWebstreamQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method CcWebstreamQuery groupByDbId() Group by the id column + * @method CcWebstreamQuery groupByDbName() Group by the name column + * @method CcWebstreamQuery groupByDbDescription() Group by the description column + * @method CcWebstreamQuery groupByDbUrl() Group by the url column + * @method CcWebstreamQuery groupByDbLength() Group by the length column + * @method CcWebstreamQuery groupByDbCreatorId() Group by the creator_id column + * @method CcWebstreamQuery groupByDbMtime() Group by the mtime column + * @method CcWebstreamQuery groupByDbUtime() Group by the utime column + * @method CcWebstreamQuery groupByDbLPtime() Group by the lptime column + * @method CcWebstreamQuery groupByDbMime() Group by the mime column * - * @method CcWebstreamQuery leftJoinCcSchedule($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSchedule relation - * @method CcWebstreamQuery rightJoinCcSchedule($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSchedule relation - * @method CcWebstreamQuery innerJoinCcSchedule($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSchedule relation + * @method CcWebstreamQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method CcWebstreamQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method CcWebstreamQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method CcWebstream findOne(PropelPDO $con = null) Return the first CcWebstream matching the query - * @method CcWebstream findOneOrCreate(PropelPDO $con = null) Return the first CcWebstream matching the query, or a new CcWebstream object populated from the query conditions when no match is found + * @method CcWebstreamQuery leftJoinCcSchedule($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSchedule relation + * @method CcWebstreamQuery rightJoinCcSchedule($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSchedule relation + * @method CcWebstreamQuery innerJoinCcSchedule($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSchedule relation * - * @method CcWebstream findOneByDbId(int $id) Return the first CcWebstream filtered by the id column - * @method CcWebstream findOneByDbName(string $name) Return the first CcWebstream filtered by the name column - * @method CcWebstream findOneByDbDescription(string $description) Return the first CcWebstream filtered by the description column - * @method CcWebstream findOneByDbUrl(string $url) Return the first CcWebstream filtered by the url column - * @method CcWebstream findOneByDbLength(string $length) Return the first CcWebstream filtered by the length column - * @method CcWebstream findOneByDbCreatorId(int $creator_id) Return the first CcWebstream filtered by the creator_id column - * @method CcWebstream findOneByDbMtime(string $mtime) Return the first CcWebstream filtered by the mtime column - * @method CcWebstream findOneByDbUtime(string $utime) Return the first CcWebstream filtered by the utime column - * @method CcWebstream findOneByDbLPtime(string $lptime) Return the first CcWebstream filtered by the lptime column - * @method CcWebstream findOneByDbMime(string $mime) Return the first CcWebstream filtered by the mime column + * @method CcWebstream findOne(PropelPDO $con = null) Return the first CcWebstream matching the query + * @method CcWebstream findOneOrCreate(PropelPDO $con = null) Return the first CcWebstream matching the query, or a new CcWebstream object populated from the query conditions when no match is found * - * @method array findByDbId(int $id) Return CcWebstream objects filtered by the id column - * @method array findByDbName(string $name) Return CcWebstream objects filtered by the name column - * @method array findByDbDescription(string $description) Return CcWebstream objects filtered by the description column - * @method array findByDbUrl(string $url) Return CcWebstream objects filtered by the url column - * @method array findByDbLength(string $length) Return CcWebstream objects filtered by the length column - * @method array findByDbCreatorId(int $creator_id) Return CcWebstream objects filtered by the creator_id column - * @method array findByDbMtime(string $mtime) Return CcWebstream objects filtered by the mtime column - * @method array findByDbUtime(string $utime) Return CcWebstream objects filtered by the utime column - * @method array findByDbLPtime(string $lptime) Return CcWebstream objects filtered by the lptime column - * @method array findByDbMime(string $mime) Return CcWebstream objects filtered by the mime column + * @method CcWebstream findOneByDbName(string $name) Return the first CcWebstream filtered by the name column + * @method CcWebstream findOneByDbDescription(string $description) Return the first CcWebstream filtered by the description column + * @method CcWebstream findOneByDbUrl(string $url) Return the first CcWebstream filtered by the url column + * @method CcWebstream findOneByDbLength(string $length) Return the first CcWebstream filtered by the length column + * @method CcWebstream findOneByDbCreatorId(int $creator_id) Return the first CcWebstream filtered by the creator_id column + * @method CcWebstream findOneByDbMtime(string $mtime) Return the first CcWebstream filtered by the mtime column + * @method CcWebstream findOneByDbUtime(string $utime) Return the first CcWebstream filtered by the utime column + * @method CcWebstream findOneByDbLPtime(string $lptime) Return the first CcWebstream filtered by the lptime column + * @method CcWebstream findOneByDbMime(string $mime) Return the first CcWebstream filtered by the mime column + * + * @method array findByDbId(int $id) Return CcWebstream objects filtered by the id column + * @method array findByDbName(string $name) Return CcWebstream objects filtered by the name column + * @method array findByDbDescription(string $description) Return CcWebstream objects filtered by the description column + * @method array findByDbUrl(string $url) Return CcWebstream objects filtered by the url column + * @method array findByDbLength(string $length) Return CcWebstream objects filtered by the length column + * @method array findByDbCreatorId(int $creator_id) Return CcWebstream objects filtered by the creator_id column + * @method array findByDbMtime(string $mtime) Return CcWebstream objects filtered by the mtime column + * @method array findByDbUtime(string $utime) Return CcWebstream objects filtered by the utime column + * @method array findByDbLPtime(string $lptime) Return CcWebstream objects filtered by the lptime column + * @method array findByDbMime(string $mime) Return CcWebstream objects filtered by the mime column * * @package propel.generator.airtime.om */ abstract class BaseCcWebstreamQuery extends ModelCriteria { + /** + * Initializes internal state of BaseCcWebstreamQuery object. + * + * @param string $dbName The dabase name + * @param string $modelName The phpName of a model, e.g. 'Book' + * @param string $modelAlias The alias for the model in this query, e.g. 'b' + */ + public function __construct($dbName = null, $modelName = null, $modelAlias = null) + { + if (null === $dbName) { + $dbName = 'airtime'; + } + if (null === $modelName) { + $modelName = 'CcWebstream'; + } + parent::__construct($dbName, $modelName, $modelAlias); + } + + /** + * Returns a new CcWebstreamQuery object. + * + * @param string $modelAlias The alias of a model in the query + * @param CcWebstreamQuery|Criteria $criteria Optional Criteria to build the query from + * + * @return CcWebstreamQuery + */ + public static function create($modelAlias = null, $criteria = null) + { + if ($criteria instanceof CcWebstreamQuery) { + return $criteria; + } + $query = new CcWebstreamQuery(null, null, $modelAlias); + + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CcWebstream|CcWebstream[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CcWebstreamPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CcWebstreamPeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcWebstream A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcWebstream A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "name", "description", "url", "length", "creator_id", "mtime", "utime", "lptime", "mime" FROM "cc_webstream" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CcWebstream(); + $obj->hydrate($row); + CcWebstreamPeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CcWebstream|CcWebstream[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CcWebstream[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CcWebstreamQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CcWebstreamPeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CcWebstreamQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CcWebstreamPeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcWebstreamQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CcWebstreamPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CcWebstreamPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcWebstreamPeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the name column + * + * Example usage: + * + * $query->filterByDbName('fooValue'); // WHERE name = 'fooValue' + * $query->filterByDbName('%fooValue%'); // WHERE name LIKE '%fooValue%' + * + * + * @param string $dbName 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 CcWebstreamQuery The current query, for fluid interface + */ + public function filterByDbName($dbName = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbName)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbName)) { + $dbName = str_replace('*', '%', $dbName); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcWebstreamPeer::NAME, $dbName, $comparison); + } + + /** + * Filter the query on the description column + * + * Example usage: + * + * $query->filterByDbDescription('fooValue'); // WHERE description = 'fooValue' + * $query->filterByDbDescription('%fooValue%'); // WHERE description LIKE '%fooValue%' + * + * + * @param string $dbDescription 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 CcWebstreamQuery The current query, for fluid interface + */ + public function filterByDbDescription($dbDescription = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbDescription)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbDescription)) { + $dbDescription = str_replace('*', '%', $dbDescription); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcWebstreamPeer::DESCRIPTION, $dbDescription, $comparison); + } + + /** + * Filter the query on the url column + * + * Example usage: + * + * $query->filterByDbUrl('fooValue'); // WHERE url = 'fooValue' + * $query->filterByDbUrl('%fooValue%'); // WHERE url LIKE '%fooValue%' + * + * + * @param string $dbUrl 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 CcWebstreamQuery The current query, for fluid interface + */ + public function filterByDbUrl($dbUrl = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbUrl)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbUrl)) { + $dbUrl = str_replace('*', '%', $dbUrl); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcWebstreamPeer::URL, $dbUrl, $comparison); + } + + /** + * Filter the query on the length column + * + * Example usage: + * + * $query->filterByDbLength('fooValue'); // WHERE length = 'fooValue' + * $query->filterByDbLength('%fooValue%'); // WHERE length LIKE '%fooValue%' + * + * + * @param string $dbLength 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 CcWebstreamQuery The current query, for fluid interface + */ + public function filterByDbLength($dbLength = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbLength)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbLength)) { + $dbLength = str_replace('*', '%', $dbLength); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcWebstreamPeer::LENGTH, $dbLength, $comparison); + } + + /** + * Filter the query on the creator_id column + * + * Example usage: + * + * $query->filterByDbCreatorId(1234); // WHERE creator_id = 1234 + * $query->filterByDbCreatorId(array(12, 34)); // WHERE creator_id IN (12, 34) + * $query->filterByDbCreatorId(array('min' => 12)); // WHERE creator_id >= 12 + * $query->filterByDbCreatorId(array('max' => 12)); // WHERE creator_id <= 12 + * + * + * @param mixed $dbCreatorId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcWebstreamQuery The current query, for fluid interface + */ + public function filterByDbCreatorId($dbCreatorId = null, $comparison = null) + { + if (is_array($dbCreatorId)) { + $useMinMax = false; + if (isset($dbCreatorId['min'])) { + $this->addUsingAlias(CcWebstreamPeer::CREATOR_ID, $dbCreatorId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbCreatorId['max'])) { + $this->addUsingAlias(CcWebstreamPeer::CREATOR_ID, $dbCreatorId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcWebstreamPeer::CREATOR_ID, $dbCreatorId, $comparison); + } + + /** + * Filter the query on the mtime column + * + * Example usage: + * + * $query->filterByDbMtime('2011-03-14'); // WHERE mtime = '2011-03-14' + * $query->filterByDbMtime('now'); // WHERE mtime = '2011-03-14' + * $query->filterByDbMtime(array('max' => 'yesterday')); // WHERE mtime < '2011-03-13' + * + * + * @param mixed $dbMtime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcWebstreamQuery The current query, for fluid interface + */ + public function filterByDbMtime($dbMtime = null, $comparison = null) + { + if (is_array($dbMtime)) { + $useMinMax = false; + if (isset($dbMtime['min'])) { + $this->addUsingAlias(CcWebstreamPeer::MTIME, $dbMtime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbMtime['max'])) { + $this->addUsingAlias(CcWebstreamPeer::MTIME, $dbMtime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcWebstreamPeer::MTIME, $dbMtime, $comparison); + } + + /** + * Filter the query on the utime column + * + * Example usage: + * + * $query->filterByDbUtime('2011-03-14'); // WHERE utime = '2011-03-14' + * $query->filterByDbUtime('now'); // WHERE utime = '2011-03-14' + * $query->filterByDbUtime(array('max' => 'yesterday')); // WHERE utime < '2011-03-13' + * + * + * @param mixed $dbUtime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcWebstreamQuery The current query, for fluid interface + */ + public function filterByDbUtime($dbUtime = null, $comparison = null) + { + if (is_array($dbUtime)) { + $useMinMax = false; + if (isset($dbUtime['min'])) { + $this->addUsingAlias(CcWebstreamPeer::UTIME, $dbUtime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbUtime['max'])) { + $this->addUsingAlias(CcWebstreamPeer::UTIME, $dbUtime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcWebstreamPeer::UTIME, $dbUtime, $comparison); + } + + /** + * Filter the query on the lptime column + * + * Example usage: + * + * $query->filterByDbLPtime('2011-03-14'); // WHERE lptime = '2011-03-14' + * $query->filterByDbLPtime('now'); // WHERE lptime = '2011-03-14' + * $query->filterByDbLPtime(array('max' => 'yesterday')); // WHERE lptime < '2011-03-13' + * + * + * @param mixed $dbLPtime The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcWebstreamQuery The current query, for fluid interface + */ + public function filterByDbLPtime($dbLPtime = null, $comparison = null) + { + if (is_array($dbLPtime)) { + $useMinMax = false; + if (isset($dbLPtime['min'])) { + $this->addUsingAlias(CcWebstreamPeer::LPTIME, $dbLPtime['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbLPtime['max'])) { + $this->addUsingAlias(CcWebstreamPeer::LPTIME, $dbLPtime['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CcWebstreamPeer::LPTIME, $dbLPtime, $comparison); + } + + /** + * Filter the query on the mime column + * + * Example usage: + * + * $query->filterByDbMime('fooValue'); // WHERE mime = 'fooValue' + * $query->filterByDbMime('%fooValue%'); // WHERE mime LIKE '%fooValue%' + * + * + * @param string $dbMime 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 CcWebstreamQuery The current query, for fluid interface + */ + public function filterByDbMime($dbMime = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbMime)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbMime)) { + $dbMime = str_replace('*', '%', $dbMime); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CcWebstreamPeer::MIME, $dbMime, $comparison); + } + + /** + * Filter the query by a related CcSchedule object + * + * @param CcSchedule|PropelObjectCollection $ccSchedule the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcWebstreamQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcSchedule($ccSchedule, $comparison = null) + { + if ($ccSchedule instanceof CcSchedule) { + return $this + ->addUsingAlias(CcWebstreamPeer::ID, $ccSchedule->getDbStreamId(), $comparison); + } elseif ($ccSchedule instanceof PropelObjectCollection) { + return $this + ->useCcScheduleQuery() + ->filterByPrimaryKeys($ccSchedule->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCcSchedule() only accepts arguments of type CcSchedule or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcSchedule relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CcWebstreamQuery The current query, for fluid interface + */ + public function joinCcSchedule($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcSchedule'); + + // 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, 'CcSchedule'); + } + + return $this; + } + + /** + * Use the CcSchedule relation CcSchedule 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 CcScheduleQuery A secondary query class using the current class as primary query + */ + public function useCcScheduleQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcSchedule($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcSchedule', 'CcScheduleQuery'); + } + + /** + * Exclude object from result + * + * @param CcWebstream $ccWebstream Object to remove from the list of results + * + * @return CcWebstreamQuery The current query, for fluid interface + */ + public function prune($ccWebstream = null) + { + if ($ccWebstream) { + $this->addUsingAlias(CcWebstreamPeer::ID, $ccWebstream->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } - /** - * Initializes internal state of BaseCcWebstreamQuery object. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = 'airtime', $modelName = 'CcWebstream', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - /** - * Returns a new CcWebstreamQuery object. - * - * @param string $modelAlias The alias of a model in the query - * @param Criteria $criteria Optional Criteria to build the query from - * - * @return CcWebstreamQuery - */ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof CcWebstreamQuery) { - return $criteria; - } - $query = new CcWebstreamQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - - /** - * Find object by primary key - * Use instance pooling to avoid a database query if the object exists - * - * $obj = $c->findPk(12, $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return CcWebstream|array|mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - if ((null !== ($obj = CcWebstreamPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return $obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria - ->filterByPrimaryKey($key) - ->getSelectStatement($con); - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - } - - /** - * Find objects by primary key - * - * $objs = $c->findPks(array(12, 56, 832), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - return $this - ->filterByPrimaryKeys($keys) - ->find($con); - } - - /** - * Filter the query by primary key - * - * @param mixed $key Primary key to use for the query - * - * @return CcWebstreamQuery The current query, for fluid interface - */ - public function filterByPrimaryKey($key) - { - return $this->addUsingAlias(CcWebstreamPeer::ID, $key, Criteria::EQUAL); - } - - /** - * Filter the query by a list of primary keys - * - * @param array $keys The list of primary key to use for the query - * - * @return CcWebstreamQuery The current query, for fluid interface - */ - public function filterByPrimaryKeys($keys) - { - return $this->addUsingAlias(CcWebstreamPeer::ID, $keys, Criteria::IN); - } - - /** - * Filter the query on the id column - * - * @param int|array $dbId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcWebstreamQuery The current query, for fluid interface - */ - public function filterByDbId($dbId = null, $comparison = null) - { - if (is_array($dbId) && null === $comparison) { - $comparison = Criteria::IN; - } - return $this->addUsingAlias(CcWebstreamPeer::ID, $dbId, $comparison); - } - - /** - * Filter the query on the name column - * - * @param string $dbName 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 CcWebstreamQuery The current query, for fluid interface - */ - public function filterByDbName($dbName = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbName)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbName)) { - $dbName = str_replace('*', '%', $dbName); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcWebstreamPeer::NAME, $dbName, $comparison); - } - - /** - * Filter the query on the description column - * - * @param string $dbDescription 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 CcWebstreamQuery The current query, for fluid interface - */ - public function filterByDbDescription($dbDescription = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbDescription)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbDescription)) { - $dbDescription = str_replace('*', '%', $dbDescription); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcWebstreamPeer::DESCRIPTION, $dbDescription, $comparison); - } - - /** - * Filter the query on the url column - * - * @param string $dbUrl 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 CcWebstreamQuery The current query, for fluid interface - */ - public function filterByDbUrl($dbUrl = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbUrl)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbUrl)) { - $dbUrl = str_replace('*', '%', $dbUrl); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcWebstreamPeer::URL, $dbUrl, $comparison); - } - - /** - * Filter the query on the length column - * - * @param string $dbLength 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 CcWebstreamQuery The current query, for fluid interface - */ - public function filterByDbLength($dbLength = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbLength)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbLength)) { - $dbLength = str_replace('*', '%', $dbLength); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcWebstreamPeer::LENGTH, $dbLength, $comparison); - } - - /** - * Filter the query on the creator_id column - * - * @param int|array $dbCreatorId The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcWebstreamQuery The current query, for fluid interface - */ - public function filterByDbCreatorId($dbCreatorId = null, $comparison = null) - { - if (is_array($dbCreatorId)) { - $useMinMax = false; - if (isset($dbCreatorId['min'])) { - $this->addUsingAlias(CcWebstreamPeer::CREATOR_ID, $dbCreatorId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbCreatorId['max'])) { - $this->addUsingAlias(CcWebstreamPeer::CREATOR_ID, $dbCreatorId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcWebstreamPeer::CREATOR_ID, $dbCreatorId, $comparison); - } - - /** - * Filter the query on the mtime column - * - * @param string|array $dbMtime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcWebstreamQuery The current query, for fluid interface - */ - public function filterByDbMtime($dbMtime = null, $comparison = null) - { - if (is_array($dbMtime)) { - $useMinMax = false; - if (isset($dbMtime['min'])) { - $this->addUsingAlias(CcWebstreamPeer::MTIME, $dbMtime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbMtime['max'])) { - $this->addUsingAlias(CcWebstreamPeer::MTIME, $dbMtime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcWebstreamPeer::MTIME, $dbMtime, $comparison); - } - - /** - * Filter the query on the utime column - * - * @param string|array $dbUtime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcWebstreamQuery The current query, for fluid interface - */ - public function filterByDbUtime($dbUtime = null, $comparison = null) - { - if (is_array($dbUtime)) { - $useMinMax = false; - if (isset($dbUtime['min'])) { - $this->addUsingAlias(CcWebstreamPeer::UTIME, $dbUtime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbUtime['max'])) { - $this->addUsingAlias(CcWebstreamPeer::UTIME, $dbUtime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcWebstreamPeer::UTIME, $dbUtime, $comparison); - } - - /** - * Filter the query on the lptime column - * - * @param string|array $dbLPtime The value to use as filter. - * Accepts an associative array('min' => $minValue, 'max' => $maxValue) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcWebstreamQuery The current query, for fluid interface - */ - public function filterByDbLPtime($dbLPtime = null, $comparison = null) - { - if (is_array($dbLPtime)) { - $useMinMax = false; - if (isset($dbLPtime['min'])) { - $this->addUsingAlias(CcWebstreamPeer::LPTIME, $dbLPtime['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dbLPtime['max'])) { - $this->addUsingAlias(CcWebstreamPeer::LPTIME, $dbLPtime['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - return $this->addUsingAlias(CcWebstreamPeer::LPTIME, $dbLPtime, $comparison); - } - - /** - * Filter the query on the mime column - * - * @param string $dbMime 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 CcWebstreamQuery The current query, for fluid interface - */ - public function filterByDbMime($dbMime = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($dbMime)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $dbMime)) { - $dbMime = str_replace('*', '%', $dbMime); - $comparison = Criteria::LIKE; - } - } - return $this->addUsingAlias(CcWebstreamPeer::MIME, $dbMime, $comparison); - } - - /** - * Filter the query by a related CcSchedule object - * - * @param CcSchedule $ccSchedule the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return CcWebstreamQuery The current query, for fluid interface - */ - public function filterByCcSchedule($ccSchedule, $comparison = null) - { - return $this - ->addUsingAlias(CcWebstreamPeer::ID, $ccSchedule->getDbStreamId(), $comparison); - } - - /** - * Adds a JOIN clause to the query using the CcSchedule relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return CcWebstreamQuery The current query, for fluid interface - */ - public function joinCcSchedule($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CcSchedule'); - - // 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, 'CcSchedule'); - } - - return $this; - } - - /** - * Use the CcSchedule relation CcSchedule 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 CcScheduleQuery A secondary query class using the current class as primary query - */ - public function useCcScheduleQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinCcSchedule($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CcSchedule', 'CcScheduleQuery'); - } - - /** - * Exclude object from result - * - * @param CcWebstream $ccWebstream Object to remove from the list of results - * - * @return CcWebstreamQuery The current query, for fluid interface - */ - public function prune($ccWebstream = null) - { - if ($ccWebstream) { - $this->addUsingAlias(CcWebstreamPeer::ID, $ccWebstream->getDbId(), Criteria::NOT_EQUAL); - } - - return $this; - } - -} // BaseCcWebstreamQuery +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCloudFile.php b/airtime_mvc/application/models/airtime/om/BaseCloudFile.php new file mode 100644 index 0000000000..988fadeb92 --- /dev/null +++ b/airtime_mvc/application/models/airtime/om/BaseCloudFile.php @@ -0,0 +1,1071 @@ +id; + } + + /** + * Get the [storage_backend] column value. + * + * @return string + */ + public function getStorageBackend() + { + + return $this->storage_backend; + } + + /** + * Get the [resource_id] column value. + * + * @return string + */ + public function getResourceId() + { + + return $this->resource_id; + } + + /** + * Get the [cc_file_id] column value. + * + * @return int + */ + public function getCcFileId() + { + + return $this->cc_file_id; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return CloudFile The current object (for fluent API support) + */ + public function setDbId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CloudFilePeer::ID; + } + + + return $this; + } // setDbId() + + /** + * Set the value of [storage_backend] column. + * + * @param string $v new value + * @return CloudFile The current object (for fluent API support) + */ + public function setStorageBackend($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->storage_backend !== $v) { + $this->storage_backend = $v; + $this->modifiedColumns[] = CloudFilePeer::STORAGE_BACKEND; + } + + + return $this; + } // setStorageBackend() + + /** + * Set the value of [resource_id] column. + * + * @param string $v new value + * @return CloudFile The current object (for fluent API support) + */ + public function setResourceId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (string) $v; + } + + if ($this->resource_id !== $v) { + $this->resource_id = $v; + $this->modifiedColumns[] = CloudFilePeer::RESOURCE_ID; + } + + + return $this; + } // setResourceId() + + /** + * Set the value of [cc_file_id] column. + * + * @param int $v new value + * @return CloudFile The current object (for fluent API support) + */ + public function setCcFileId($v) + { + if ($v !== null && is_numeric($v)) { + $v = (int) $v; + } + + if ($this->cc_file_id !== $v) { + $this->cc_file_id = $v; + $this->modifiedColumns[] = CloudFilePeer::CC_FILE_ID; + } + + if ($this->aCcFiles !== null && $this->aCcFiles->getDbId() !== $v) { + $this->aCcFiles = null; + } + + + return $this; + } // setCcFileId() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return true + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) + * @param int $startcol 0-based offset column which indicates which resultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false) + { + try { + + $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; + $this->storage_backend = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->resource_id = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->cc_file_id = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + $this->postHydrate($row, $startcol, $rehydrate); + + return $startcol + 4; // 4 = CloudFilePeer::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating CloudFile object", $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + + if ($this->aCcFiles !== null && $this->cc_file_id !== $this->aCcFiles->getDbId()) { + $this->aCcFiles = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param PropelPDO $con (optional) The PropelPDO connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getConnection(CloudFilePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $stmt = CloudFilePeer::doSelectStmt($this->buildPkeyCriteria(), $con); + $row = $stmt->fetch(PDO::FETCH_NUM); + $stmt->closeCursor(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCcFiles = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param PropelPDO $con + * @return void + * @throws PropelException + * @throws Exception + * @see BaseObject::setDeleted() + * @see BaseObject::isDeleted() + */ + public function delete(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CloudFilePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + try { + $deleteQuery = CloudFileQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @throws Exception + * @see doSave() + */ + public function save(PropelPDO $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getConnection(CloudFilePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CloudFilePeer::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param PropelPDO $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(PropelPDO $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcFiles !== null) { + if ($this->aCcFiles->isModified() || $this->aCcFiles->isNew()) { + $affectedRows += $this->aCcFiles->save($con); + } + $this->setCcFiles($this->aCcFiles); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param PropelPDO $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(PropelPDO $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = CloudFilePeer::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CloudFilePeer::ID . ')'); + } + if (null === $this->id) { + try { + $stmt = $con->query("SELECT nextval('cloud_file_id_seq')"); + $row = $stmt->fetch(PDO::FETCH_NUM); + $this->id = $row[0]; + } catch (Exception $e) { + throw new PropelException('Unable to get sequence id.', $e); + } + } + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CloudFilePeer::ID)) { + $modifiedColumns[':p' . $index++] = '"id"'; + } + if ($this->isColumnModified(CloudFilePeer::STORAGE_BACKEND)) { + $modifiedColumns[':p' . $index++] = '"storage_backend"'; + } + if ($this->isColumnModified(CloudFilePeer::RESOURCE_ID)) { + $modifiedColumns[':p' . $index++] = '"resource_id"'; + } + if ($this->isColumnModified(CloudFilePeer::CC_FILE_ID)) { + $modifiedColumns[':p' . $index++] = '"cc_file_id"'; + } + + $sql = sprintf( + 'INSERT INTO "cloud_file" (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case '"id"': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case '"storage_backend"': + $stmt->bindValue($identifier, $this->storage_backend, PDO::PARAM_STR); + break; + case '"resource_id"': + $stmt->bindValue($identifier, $this->resource_id, PDO::PARAM_STR); + break; + case '"cc_file_id"': + $stmt->bindValue($identifier, $this->cc_file_id, PDO::PARAM_INT); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param PropelPDO $con + * + * @see doSave() + */ + protected function doUpdate(PropelPDO $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con); + } + + /** + * Array of ValidationFailed objects. + * @var array ValidationFailed[] + */ + protected $validationFailures = array(); + + /** + * Gets any ValidationFailed objects that resulted from last call to validate(). + * + * + * @return array ValidationFailed[] + * @see validate() + */ + public function getValidationFailures() + { + return $this->validationFailures; + } + + /** + * Validates the objects modified field values and all objects related to this table. + * + * If $columns is either a column name or an array of column names + * only those columns are validated. + * + * @param mixed $columns Column name or an array of column names. + * @return boolean Whether all columns pass validation. + * @see doValidate() + * @see getValidationFailures() + */ + public function validate($columns = null) + { + $res = $this->doValidate($columns); + if ($res === true) { + $this->validationFailures = array(); + + return true; + } + + $this->validationFailures = $res; + + return false; + } + + /** + * This function performs the validation work for complex object models. + * + * In addition to checking the current object, all related objects will + * also be validated. If all pass then true is returned; otherwise + * an aggregated array of ValidationFailed objects will be returned. + * + * @param array $columns Array of column names to validate. + * @return mixed true if all validations pass; array of ValidationFailed objects otherwise. + */ + protected function doValidate($columns = null) + { + if (!$this->alreadyInValidation) { + $this->alreadyInValidation = true; + $retval = null; + + $failureMap = array(); + + + // We call the validate method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCcFiles !== null) { + if (!$this->aCcFiles->validate($columns)) { + $failureMap = array_merge($failureMap, $this->aCcFiles->getValidationFailures()); + } + } + + + if (($retval = CloudFilePeer::doValidate($this, $columns)) !== true) { + $failureMap = array_merge($failureMap, $retval); + } + + + + $this->alreadyInValidation = false; + } + + return (!empty($failureMap) ? $failureMap : true); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return mixed Value of field. + */ + public function getByName($name, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CloudFilePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getDbId(); + break; + case 1: + return $this->getStorageBackend(); + break; + case 2: + return $this->getResourceId(); + break; + case 3: + return $this->getCcFileId(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CloudFile'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CloudFile'][$this->getPrimaryKey()] = true; + $keys = CloudFilePeer::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getDbId(), + $keys[1] => $this->getStorageBackend(), + $keys[2] => $this->getResourceId(), + $keys[3] => $this->getCcFileId(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCcFiles) { + $result['CcFiles'] = $this->aCcFiles->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name peer name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * Defaults to BasePeer::TYPE_PHPNAME + * @return void + */ + public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) + { + $pos = CloudFilePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); + + $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setDbId($value); + break; + case 1: + $this->setStorageBackend($value); + break; + case 2: + $this->setResourceId($value); + break; + case 3: + $this->setCcFileId($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. + * The default key type is the column's BasePeer::TYPE_PHPNAME + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) + { + $keys = CloudFilePeer::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setStorageBackend($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setResourceId($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setCcFileId($arr[$keys[3]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CloudFilePeer::DATABASE_NAME); + + if ($this->isColumnModified(CloudFilePeer::ID)) $criteria->add(CloudFilePeer::ID, $this->id); + if ($this->isColumnModified(CloudFilePeer::STORAGE_BACKEND)) $criteria->add(CloudFilePeer::STORAGE_BACKEND, $this->storage_backend); + if ($this->isColumnModified(CloudFilePeer::RESOURCE_ID)) $criteria->add(CloudFilePeer::RESOURCE_ID, $this->resource_id); + if ($this->isColumnModified(CloudFilePeer::CC_FILE_ID)) $criteria->add(CloudFilePeer::CC_FILE_ID, $this->cc_file_id); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CloudFilePeer::DATABASE_NAME); + $criteria->add(CloudFilePeer::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getDbId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setDbId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getDbId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of CloudFile (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setStorageBackend($this->getStorageBackend()); + $copyObj->setResourceId($this->getResourceId()); + $copyObj->setCcFileId($this->getCcFileId()); + + if ($deepCopy && !$this->startCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + // store object hash to prevent cycle + $this->startCopy = true; + + //unflag object copy + $this->startCopy = false; + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return CloudFile Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Returns a peer instance associated with this om. + * + * Since Peer classes are not to have any instance attributes, this method returns the + * same instance for all member of this class. The method could therefore + * be static, but this would prevent one from overriding the behavior. + * + * @return CloudFilePeer + */ + public function getPeer() + { + if (self::$peer === null) { + self::$peer = new CloudFilePeer(); + } + + return self::$peer; + } + + /** + * Declares an association between this object and a CcFiles object. + * + * @param CcFiles $v + * @return CloudFile The current object (for fluent API support) + * @throws PropelException + */ + public function setCcFiles(CcFiles $v = null) + { + if ($v === null) { + $this->setCcFileId(NULL); + } else { + $this->setCcFileId($v->getDbId()); + } + + $this->aCcFiles = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the CcFiles object, it will not be re-added. + if ($v !== null) { + $v->addCloudFile($this); + } + + + return $this; + } + + + /** + * Get the associated CcFiles object + * + * @param PropelPDO $con Optional Connection object. + * @param $doQuery Executes a query to get the object if required + * @return CcFiles The associated CcFiles object. + * @throws PropelException + */ + public function getCcFiles(PropelPDO $con = null, $doQuery = true) + { + if ($this->aCcFiles === null && ($this->cc_file_id !== null) && $doQuery) { + $this->aCcFiles = CcFilesQuery::create()->findPk($this->cc_file_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCcFiles->addCloudFiles($this); + */ + } + + return $this->aCcFiles; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->storage_backend = null; + $this->resource_id = null; + $this->cc_file_id = null; + $this->alreadyInSave = false; + $this->alreadyInValidation = false; + $this->alreadyInClearAllReferencesDeep = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep && !$this->alreadyInClearAllReferencesDeep) { + $this->alreadyInClearAllReferencesDeep = true; + if ($this->aCcFiles instanceof Persistent) { + $this->aCcFiles->clearAllReferences($deep); + } + + $this->alreadyInClearAllReferencesDeep = false; + } // if ($deep) + + $this->aCcFiles = null; + } + + /** + * return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CloudFilePeer::DEFAULT_STRING_FORMAT); + } + + /** + * return true is the object is in saving state + * + * @return boolean + */ + public function isAlreadyInSave() + { + return $this->alreadyInSave; + } + + /** + * Catches calls to virtual methods + */ + public function __call($name, $params) + { + + // delegate behavior + + if (is_callable(array('CcFiles', $name))) { + if (!$delegate = $this->getCcFiles()) { + $delegate = new CcFiles(); + $this->setCcFiles($delegate); + } + + return call_user_func_array(array($delegate, $name), $params); + } + + return parent::__call($name, $params); + } + +} diff --git a/airtime_mvc/application/models/airtime/om/BaseCloudFilePeer.php b/airtime_mvc/application/models/airtime/om/BaseCloudFilePeer.php new file mode 100644 index 0000000000..4a1b641c15 --- /dev/null +++ b/airtime_mvc/application/models/airtime/om/BaseCloudFilePeer.php @@ -0,0 +1,1009 @@ + array ('DbId', 'StorageBackend', 'ResourceId', 'CcFileId', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'storageBackend', 'resourceId', 'ccFileId', ), + BasePeer::TYPE_COLNAME => array (CloudFilePeer::ID, CloudFilePeer::STORAGE_BACKEND, CloudFilePeer::RESOURCE_ID, CloudFilePeer::CC_FILE_ID, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'STORAGE_BACKEND', 'RESOURCE_ID', 'CC_FILE_ID', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'storage_backend', 'resource_id', 'cc_file_id', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. CloudFilePeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'StorageBackend' => 1, 'ResourceId' => 2, 'CcFileId' => 3, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'storageBackend' => 1, 'resourceId' => 2, 'ccFileId' => 3, ), + BasePeer::TYPE_COLNAME => array (CloudFilePeer::ID => 0, CloudFilePeer::STORAGE_BACKEND => 1, CloudFilePeer::RESOURCE_ID => 2, CloudFilePeer::CC_FILE_ID => 3, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'STORAGE_BACKEND' => 1, 'RESOURCE_ID' => 2, 'CC_FILE_ID' => 3, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'storage_backend' => 1, 'resource_id' => 2, 'cc_file_id' => 3, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) + ); + + /** + * Translates a fieldname to another type + * + * @param string $name field name + * @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @param string $toType One of the class type constants + * @return string translated name of the field. + * @throws PropelException - if the specified name could not be found in the fieldname mappings. + */ + public static function translateFieldName($name, $fromType, $toType) + { + $toNames = CloudFilePeer::getFieldNames($toType); + $key = isset(CloudFilePeer::$fieldKeys[$fromType][$name]) ? CloudFilePeer::$fieldKeys[$fromType][$name] : null; + if ($key === null) { + throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CloudFilePeer::$fieldKeys[$fromType], true)); + } + + return $toNames[$key]; + } + + /** + * Returns an array of field names. + * + * @param string $type The type of fieldnames to return: + * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME + * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM + * @return array A list of field names + * @throws PropelException - if the type is not valid. + */ + public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) + { + if (!array_key_exists($type, CloudFilePeer::$fieldNames)) { + throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); + } + + return CloudFilePeer::$fieldNames[$type]; + } + + /** + * Convenience method which changes table.column to alias.column. + * + * Using this method you can maintain SQL abstraction while using column aliases. + * + * $c->addAlias("alias1", TablePeer::TABLE_NAME); + * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); + * + * @param string $alias The alias for the current table. + * @param string $column The column name for current table. (i.e. CloudFilePeer::COLUMN_NAME). + * @return string + */ + public static function alias($alias, $column) + { + return str_replace(CloudFilePeer::TABLE_NAME.'.', $alias.'.', $column); + } + + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CloudFilePeer::ID); + $criteria->addSelectColumn(CloudFilePeer::STORAGE_BACKEND); + $criteria->addSelectColumn(CloudFilePeer::RESOURCE_ID); + $criteria->addSelectColumn(CloudFilePeer::CC_FILE_ID); + } else { + $criteria->addSelectColumn($alias . '.id'); + $criteria->addSelectColumn($alias . '.storage_backend'); + $criteria->addSelectColumn($alias . '.resource_id'); + $criteria->addSelectColumn($alias . '.cc_file_id'); + } + } + + /** + * Returns the number of rows matching criteria. + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @return int Number of matching rows. + */ + public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) + { + // we may modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CloudFilePeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CloudFilePeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + $criteria->setDbName(CloudFilePeer::DATABASE_NAME); // Set the correct dbName + + if ($con === null) { + $con = Propel::getConnection(CloudFilePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + // BasePeer returns a PDOStatement + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + /** + * Selects one object from the DB. + * + * @param Criteria $criteria object used to create the SELECT statement. + * @param PropelPDO $con + * @return CloudFile + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) + { + $critcopy = clone $criteria; + $critcopy->setLimit(1); + $objects = CloudFilePeer::doSelect($critcopy, $con); + if ($objects) { + return $objects[0]; + } + + return null; + } + /** + * Selects several row from the DB. + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con + * @return array Array of selected Objects + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelect(Criteria $criteria, PropelPDO $con = null) + { + return CloudFilePeer::populateObjects(CloudFilePeer::doSelectStmt($criteria, $con)); + } + /** + * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. + * + * Use this method directly if you want to work with an executed statement directly (for example + * to perform your own object hydration). + * + * @param Criteria $criteria The Criteria object used to build the SELECT statement. + * @param PropelPDO $con The connection to use + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return PDOStatement The executed PDOStatement object. + * @see BasePeer::doSelect() + */ + public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CloudFilePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + if (!$criteria->hasSelectClause()) { + $criteria = clone $criteria; + CloudFilePeer::addSelectColumns($criteria); + } + + // Set the correct dbName + $criteria->setDbName(CloudFilePeer::DATABASE_NAME); + + // BasePeer returns a PDOStatement + return BasePeer::doSelect($criteria, $con); + } + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doSelect*() + * methods in your stub classes -- you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by doSelect*() + * and retrieveByPK*() calls. + * + * @param CloudFile $obj A CloudFile object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if ($key === null) { + $key = (string) $obj->getDbId(); + } // if key === null + CloudFilePeer::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A CloudFile object or a primary key value. + * + * @return void + * @throws PropelException - if the value is invalid. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && $value !== null) { + if (is_object($value) && $value instanceof CloudFile) { + $key = (string) $value->getDbId(); + } elseif (is_scalar($value)) { + // assume we've been passed a primary key + $key = (string) $value; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CloudFile object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); + throw $e; + } + + unset(CloudFilePeer::$instances[$key]); + } + } // removeInstanceFromPool() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param string $key The key (@see getPrimaryKeyHash()) for this instance. + * @return CloudFile Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled. + * @see getPrimaryKeyHash() + */ + public static function getInstanceFromPool($key) + { + if (Propel::isInstancePoolingEnabled()) { + if (isset(CloudFilePeer::$instances[$key])) { + return CloudFilePeer::$instances[$key]; + } + } + + return null; // just to be explicit + } + + /** + * Clear the instance pool. + * + * @return void + */ + public static function clearInstancePool($and_clear_all_references = false) + { + if ($and_clear_all_references) { + foreach (CloudFilePeer::$instances as $instance) { + $instance->clearAllReferences(true); + } + } + CloudFilePeer::$instances = array(); + } + + /** + * Method to invalidate the instance pool of all tables related to cloud_file + * by a foreign key with ON DELETE CASCADE + */ + public static function clearRelatedInstancePool() + { + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return string A string version of PK or null if the components of primary key in result array are all null. + */ + public static function getPrimaryKeyHashFromRow($row, $startcol = 0) + { + // If the PK cannot be derived from the row, return null. + if ($row[$startcol] === null) { + return null; + } + + return (string) $row[$startcol]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $startcol = 0) + { + + return (int) $row[$startcol]; + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(PDOStatement $stmt) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = CloudFilePeer::getOMClass(); + // populate the object(s) + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key = CloudFilePeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj = CloudFilePeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CloudFilePeer::addInstanceToPool($obj, $key); + } // if key exists + } + $stmt->closeCursor(); + + return $results; + } + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row PropelPDO resultset row. + * @param int $startcol The 0-based offset for reading from the resultset row. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CloudFile object, last column rank) + */ + public static function populateObject($row, $startcol = 0) + { + $key = CloudFilePeer::getPrimaryKeyHashFromRow($row, $startcol); + if (null !== ($obj = CloudFilePeer::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $startcol, true); // rehydrate + $col = $startcol + CloudFilePeer::NUM_HYDRATE_COLUMNS; + } else { + $cls = CloudFilePeer::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $startcol); + CloudFilePeer::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + + /** + * Returns the number of rows matching criteria, joining the related CcFiles table + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinCcFiles(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CloudFilePeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CloudFilePeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CloudFilePeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CloudFilePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CloudFilePeer::CC_FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + + /** + * Selects a collection of CloudFile objects pre-filled with their CcFiles objects. + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CloudFile objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinCcFiles(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CloudFilePeer::DATABASE_NAME); + } + + CloudFilePeer::addSelectColumns($criteria); + $startcol = CloudFilePeer::NUM_HYDRATE_COLUMNS; + CcFilesPeer::addSelectColumns($criteria); + + $criteria->addJoin(CloudFilePeer::CC_FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CloudFilePeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CloudFilePeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + + $cls = CloudFilePeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CloudFilePeer::addInstanceToPool($obj1, $key1); + } // if $obj1 already loaded + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if obj2 already loaded + + // Add the $obj1 (CloudFile) to $obj2 (CcFiles) + $obj2->addCloudFile($obj1); + + } // if joined row was not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + + /** + * Returns the number of rows matching criteria, joining all related tables + * + * @param Criteria $criteria + * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return int Number of matching rows. + */ + public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + // we're going to modify criteria, so copy it first + $criteria = clone $criteria; + + // We need to set the primary table name, since in the case that there are no WHERE columns + // it will be impossible for the BasePeer::createSelectSql() method to determine which + // tables go into the FROM clause. + $criteria->setPrimaryTableName(CloudFilePeer::TABLE_NAME); + + if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { + $criteria->setDistinct(); + } + + if (!$criteria->hasSelectClause()) { + CloudFilePeer::addSelectColumns($criteria); + } + + $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count + + // Set the correct dbName + $criteria->setDbName(CloudFilePeer::DATABASE_NAME); + + if ($con === null) { + $con = Propel::getConnection(CloudFilePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria->addJoin(CloudFilePeer::CC_FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doCount($criteria, $con); + + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $count = (int) $row[0]; + } else { + $count = 0; // no rows returned; we infer that means 0 matches. + } + $stmt->closeCursor(); + + return $count; + } + + /** + * Selects a collection of CloudFile objects pre-filled with all related objects. + * + * @param Criteria $criteria + * @param PropelPDO $con + * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN + * @return array Array of CloudFile objects. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) + { + $criteria = clone $criteria; + + // Set the correct dbName if it has not been overridden + if ($criteria->getDbName() == Propel::getDefaultDB()) { + $criteria->setDbName(CloudFilePeer::DATABASE_NAME); + } + + CloudFilePeer::addSelectColumns($criteria); + $startcol2 = CloudFilePeer::NUM_HYDRATE_COLUMNS; + + CcFilesPeer::addSelectColumns($criteria); + $startcol3 = $startcol2 + CcFilesPeer::NUM_HYDRATE_COLUMNS; + + $criteria->addJoin(CloudFilePeer::CC_FILE_ID, CcFilesPeer::ID, $join_behavior); + + $stmt = BasePeer::doSelect($criteria, $con); + $results = array(); + + while ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $key1 = CloudFilePeer::getPrimaryKeyHashFromRow($row, 0); + if (null !== ($obj1 = CloudFilePeer::getInstanceFromPool($key1))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj1->hydrate($row, 0, true); // rehydrate + } else { + $cls = CloudFilePeer::getOMClass(); + + $obj1 = new $cls(); + $obj1->hydrate($row); + CloudFilePeer::addInstanceToPool($obj1, $key1); + } // if obj1 already loaded + + // Add objects for joined CcFiles rows + + $key2 = CcFilesPeer::getPrimaryKeyHashFromRow($row, $startcol2); + if ($key2 !== null) { + $obj2 = CcFilesPeer::getInstanceFromPool($key2); + if (!$obj2) { + + $cls = CcFilesPeer::getOMClass(); + + $obj2 = new $cls(); + $obj2->hydrate($row, $startcol2); + CcFilesPeer::addInstanceToPool($obj2, $key2); + } // if obj2 loaded + + // Add the $obj1 (CloudFile) to the collection in $obj2 (CcFiles) + $obj2->addCloudFile($obj1); + } // if joined row not null + + $results[] = $obj1; + } + $stmt->closeCursor(); + + return $results; + } + + /** + * Returns the TableMap related to this peer. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getDatabaseMap(CloudFilePeer::DATABASE_NAME)->getTable(CloudFilePeer::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this peer class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getDatabaseMap(BaseCloudFilePeer::DATABASE_NAME); + if (!$dbMap->hasTable(BaseCloudFilePeer::TABLE_NAME)) { + $dbMap->addTableObject(new \CloudFileTableMap()); + } + } + + /** + * The class that the Peer will make instances of. + * + * + * @return string ClassName + */ + public static function getOMClass($row = 0, $colnum = 0) + { + return CloudFilePeer::OM_CLASS; + } + + /** + * Performs an INSERT on the database, given a CloudFile or Criteria object. + * + * @param mixed $values Criteria or CloudFile object containing data that is used to create the INSERT statement. + * @param PropelPDO $con the PropelPDO connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CloudFilePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + } else { + $criteria = $values->buildCriteria(); // build Criteria from CloudFile object + } + + if ($criteria->containsKey(CloudFilePeer::ID) && $criteria->keyContainsValue(CloudFilePeer::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CloudFilePeer::ID.')'); + } + + + // Set the correct dbName + $criteria->setDbName(CloudFilePeer::DATABASE_NAME); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = BasePeer::doInsert($criteria, $con); + $con->commit(); + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + + /** + * Performs an UPDATE on the database, given a CloudFile or Criteria object. + * + * @param mixed $values Criteria or CloudFile object containing data that is used to create the UPDATE statement. + * @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions). + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doUpdate($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CloudFilePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + $selectCriteria = new Criteria(CloudFilePeer::DATABASE_NAME); + + if ($values instanceof Criteria) { + $criteria = clone $values; // rename for clarity + + $comparison = $criteria->getComparison(CloudFilePeer::ID); + $value = $criteria->remove(CloudFilePeer::ID); + if ($value) { + $selectCriteria->add(CloudFilePeer::ID, $value, $comparison); + } else { + $selectCriteria->setPrimaryTableName(CloudFilePeer::TABLE_NAME); + } + + } else { // $values is CloudFile object + $criteria = $values->buildCriteria(); // gets full criteria + $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) + } + + // set the correct dbName + $criteria->setDbName(CloudFilePeer::DATABASE_NAME); + + return BasePeer::doUpdate($selectCriteria, $criteria, $con); + } + + /** + * Deletes all rows from the cloud_file table. + * + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + * @throws PropelException + */ + public static function doDeleteAll(PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CloudFilePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += BasePeer::doDeleteAll(CloudFilePeer::TABLE_NAME, $con, CloudFilePeer::DATABASE_NAME); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CloudFilePeer::clearInstancePool(); + CloudFilePeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs a DELETE on the database, given a CloudFile or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CloudFile object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param PropelPDO $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CloudFilePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); + } + + if ($values instanceof Criteria) { + // invalidate the cache for all objects of this type, since we have no + // way of knowing (without running a query) what objects should be invalidated + // from the cache based on this Criteria. + CloudFilePeer::clearInstancePool(); + // rename for clarity + $criteria = clone $values; + } elseif ($values instanceof CloudFile) { // it's a model object + // invalidate the cache for this single object + CloudFilePeer::removeInstanceFromPool($values); + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CloudFilePeer::DATABASE_NAME); + $criteria->add(CloudFilePeer::ID, (array) $values, Criteria::IN); + // invalidate the cache for this object(s) + foreach ((array) $values as $singleval) { + CloudFilePeer::removeInstanceFromPool($singleval); + } + } + + // Set the correct dbName + $criteria->setDbName(CloudFilePeer::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + $affectedRows += BasePeer::doDelete($criteria, $con); + CloudFilePeer::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Validates all modified columns of given CloudFile object. + * If parameter $columns is either a single column name or an array of column names + * than only those columns are validated. + * + * NOTICE: This does not apply to primary or foreign keys for now. + * + * @param CloudFile $obj The object to validate. + * @param mixed $cols Column name or array of column names. + * + * @return mixed TRUE if all columns are valid or the error message of the first invalid column. + */ + public static function doValidate($obj, $cols = null) + { + $columns = array(); + + if ($cols) { + $dbMap = Propel::getDatabaseMap(CloudFilePeer::DATABASE_NAME); + $tableMap = $dbMap->getTable(CloudFilePeer::TABLE_NAME); + + if (! is_array($cols)) { + $cols = array($cols); + } + + foreach ($cols as $colName) { + if ($tableMap->hasColumn($colName)) { + $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); + $columns[$colName] = $obj->$get(); + } + } + } else { + + } + + return BasePeer::doValidate(CloudFilePeer::DATABASE_NAME, CloudFilePeer::TABLE_NAME, $columns); + } + + /** + * Retrieve a single object by pkey. + * + * @param int $pk the primary key. + * @param PropelPDO $con the connection to use + * @return CloudFile + */ + public static function retrieveByPK($pk, PropelPDO $con = null) + { + + if (null !== ($obj = CloudFilePeer::getInstanceFromPool((string) $pk))) { + return $obj; + } + + if ($con === null) { + $con = Propel::getConnection(CloudFilePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $criteria = new Criteria(CloudFilePeer::DATABASE_NAME); + $criteria->add(CloudFilePeer::ID, $pk); + + $v = CloudFilePeer::doSelect($criteria, $con); + + return !empty($v) > 0 ? $v[0] : null; + } + + /** + * Retrieve multiple objects by pkey. + * + * @param array $pks List of primary keys + * @param PropelPDO $con the connection to use + * @return CloudFile[] + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function retrieveByPKs($pks, PropelPDO $con = null) + { + if ($con === null) { + $con = Propel::getConnection(CloudFilePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + + $objs = null; + if (empty($pks)) { + $objs = array(); + } else { + $criteria = new Criteria(CloudFilePeer::DATABASE_NAME); + $criteria->add(CloudFilePeer::ID, $pks, Criteria::IN); + $objs = CloudFilePeer::doSelect($criteria, $con); + } + + return $objs; + } + +} // BaseCloudFilePeer + +// This is the static code needed to register the TableMap for this table with the main Propel class. +// +BaseCloudFilePeer::buildTableMap(); + diff --git a/airtime_mvc/application/models/airtime/om/BaseCloudFileQuery.php b/airtime_mvc/application/models/airtime/om/BaseCloudFileQuery.php new file mode 100644 index 0000000000..e57ff2797d --- /dev/null +++ b/airtime_mvc/application/models/airtime/om/BaseCloudFileQuery.php @@ -0,0 +1,470 @@ +mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con an optional connection object + * + * @return CloudFile|CloudFile[]|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CloudFilePeer::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getConnection(CloudFilePeer::DATABASE_NAME, Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Alias of findPk to use instance pooling + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CloudFile A model object, or null if the key is not found + * @throws PropelException + */ + public function findOneByDbId($key, $con = null) + { + return $this->findPk($key, $con); + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CloudFile A model object, or null if the key is not found + * @throws PropelException + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT "id", "storage_backend", "resource_id", "cc_file_id" FROM "cloud_file" WHERE "id" = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); + } + $obj = null; + if ($row = $stmt->fetch(PDO::FETCH_NUM)) { + $obj = new CloudFile(); + $obj->hydrate($row); + CloudFilePeer::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param PropelPDO $con A connection object + * + * @return CloudFile|CloudFile[]|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($stmt); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param PropelPDO $con an optional connection object + * + * @return PropelObjectCollection|CloudFile[]|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if ($con === null) { + $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $stmt = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($stmt); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return CloudFileQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(CloudFilePeer::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return CloudFileQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(CloudFilePeer::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterByDbId(1234); // WHERE id = 1234 + * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 + * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 + * + * + * @param mixed $dbId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CloudFileQuery The current query, for fluid interface + */ + public function filterByDbId($dbId = null, $comparison = null) + { + if (is_array($dbId)) { + $useMinMax = false; + if (isset($dbId['min'])) { + $this->addUsingAlias(CloudFilePeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($dbId['max'])) { + $this->addUsingAlias(CloudFilePeer::ID, $dbId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CloudFilePeer::ID, $dbId, $comparison); + } + + /** + * Filter the query on the storage_backend column + * + * Example usage: + * + * $query->filterByStorageBackend('fooValue'); // WHERE storage_backend = 'fooValue' + * $query->filterByStorageBackend('%fooValue%'); // WHERE storage_backend LIKE '%fooValue%' + * + * + * @param string $storageBackend 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 CloudFileQuery The current query, for fluid interface + */ + public function filterByStorageBackend($storageBackend = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($storageBackend)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $storageBackend)) { + $storageBackend = str_replace('*', '%', $storageBackend); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CloudFilePeer::STORAGE_BACKEND, $storageBackend, $comparison); + } + + /** + * Filter the query on the resource_id column + * + * Example usage: + * + * $query->filterByResourceId('fooValue'); // WHERE resource_id = 'fooValue' + * $query->filterByResourceId('%fooValue%'); // WHERE resource_id LIKE '%fooValue%' + * + * + * @param string $resourceId 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 CloudFileQuery The current query, for fluid interface + */ + public function filterByResourceId($resourceId = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($resourceId)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $resourceId)) { + $resourceId = str_replace('*', '%', $resourceId); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CloudFilePeer::RESOURCE_ID, $resourceId, $comparison); + } + + /** + * Filter the query on the cc_file_id column + * + * Example usage: + * + * $query->filterByCcFileId(1234); // WHERE cc_file_id = 1234 + * $query->filterByCcFileId(array(12, 34)); // WHERE cc_file_id IN (12, 34) + * $query->filterByCcFileId(array('min' => 12)); // WHERE cc_file_id >= 12 + * $query->filterByCcFileId(array('max' => 12)); // WHERE cc_file_id <= 12 + * + * + * @see filterByCcFiles() + * + * @param mixed $ccFileId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CloudFileQuery The current query, for fluid interface + */ + public function filterByCcFileId($ccFileId = null, $comparison = null) + { + if (is_array($ccFileId)) { + $useMinMax = false; + if (isset($ccFileId['min'])) { + $this->addUsingAlias(CloudFilePeer::CC_FILE_ID, $ccFileId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($ccFileId['max'])) { + $this->addUsingAlias(CloudFilePeer::CC_FILE_ID, $ccFileId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CloudFilePeer::CC_FILE_ID, $ccFileId, $comparison); + } + + /** + * Filter the query by a related CcFiles object + * + * @param CcFiles|PropelObjectCollection $ccFiles The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CloudFileQuery The current query, for fluid interface + * @throws PropelException - if the provided filter is invalid. + */ + public function filterByCcFiles($ccFiles, $comparison = null) + { + if ($ccFiles instanceof CcFiles) { + return $this + ->addUsingAlias(CloudFilePeer::CC_FILE_ID, $ccFiles->getDbId(), $comparison); + } elseif ($ccFiles instanceof PropelObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CloudFilePeer::CC_FILE_ID, $ccFiles->toKeyValue('PrimaryKey', 'DbId'), $comparison); + } else { + throw new PropelException('filterByCcFiles() only accepts arguments of type CcFiles or PropelCollection'); + } + } + + /** + * Adds a JOIN clause to the query using the CcFiles relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return CloudFileQuery The current query, for fluid interface + */ + public function joinCcFiles($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CcFiles'); + + // 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, 'CcFiles'); + } + + return $this; + } + + /** + * Use the CcFiles relation CcFiles 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 CcFilesQuery A secondary query class using the current class as primary query + */ + public function useCcFilesQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinCcFiles($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CcFiles', 'CcFilesQuery'); + } + + /** + * Exclude object from result + * + * @param CloudFile $cloudFile Object to remove from the list of results + * + * @return CloudFileQuery The current query, for fluid interface + */ + public function prune($cloudFile = null) + { + if ($cloudFile) { + $this->addUsingAlias(CloudFilePeer::ID, $cloudFile->getDbId(), Criteria::NOT_EQUAL); + } + + return $this; + } + +} diff --git a/airtime_mvc/application/modules/rest/Bootstrap.php b/airtime_mvc/application/modules/rest/Bootstrap.php new file mode 100644 index 0000000000..999798ee54 --- /dev/null +++ b/airtime_mvc/application/modules/rest/Bootstrap.php @@ -0,0 +1,37 @@ +getRouter(); + + $restRoute = new Zend_Rest_Route($front, array(), array( + 'rest'=> array('media'))); + assert($router->addRoute('rest', $restRoute)); + + $downloadRoute = new Zend_Controller_Router_Route( + 'rest/media/:id/download', + array( + 'controller' => 'media', + 'action' => 'download', + 'module' => 'rest' + ), + array( + 'id' => '\d+' + ) + ); + $router->addRoute('download', $downloadRoute); + + $clearLibraryRoute = new Zend_Controller_Router_Route( + 'rest/media/clear', + array( + 'controller' => 'media', + 'action' => 'clear', + 'module' => 'rest' + ) + ); + $router->addRoute('clear', $clearLibraryRoute); + } +} diff --git a/airtime_mvc/application/modules/rest/controllers/MediaController.php b/airtime_mvc/application/modules/rest/controllers/MediaController.php new file mode 100644 index 0000000000..c6e26b6f95 --- /dev/null +++ b/airtime_mvc/application/modules/rest/controllers/MediaController.php @@ -0,0 +1,192 @@ +view->layout()->disableLayout(); + } + + public function indexAction() + { + $files_array = array(); + foreach (CcFilesQuery::create()->find() as $file) + { + array_push($files_array, CcFiles::sanitizeResponse($file)); + } + + $this->getResponse() + ->setHttpResponseCode(200) + ->appendBody(json_encode($files_array)); + + /** TODO: Use this simpler code instead after we upgrade to Propel 1.7 (Airtime 2.6.x branch): + $this->getResponse() + ->setHttpResponseCode(200) + ->appendBody(json_encode(CcFilesQuery::create()->find()->toArray(BasePeer::TYPE_FIELDNAME))); + */ + } + + public function downloadAction() + { + $id = $this->getId(); + if (!$id) { + return; + } + + try + { + $this->getResponse() + ->setHttpResponseCode(200) + ->appendBody($this->_redirect(CcFiles::getDownloadUrl($id))); + } + catch (FileNotFoundException $e) { + $this->fileNotFoundResponse(); + Logging::error($e->getMessage()); + } + catch (Exception $e) { + $this->unknownErrorResponse(); + Logging::error($e->getMessage()); + } + } + + public function getAction() + { + $id = $this->getId(); + if (!$id) { + return; + } + + try { + $this->getResponse() + ->setHttpResponseCode(200) + ->appendBody(json_encode(CcFiles::getSantiziedFileById($id))); + } + catch (FileNotFoundException $e) { + $this->fileNotFoundResponse(); + Logging::error($e->getMessage()); + } + catch (Exception $e) { + $this->unknownErrorResponse(); + Logging::error($e->getMessage()); + } + } + + public function postAction() + { + //If we do get an ID on a POST, then that doesn't make any sense + //since POST is only for creating. + if ($id = $this->_getParam('id', false)) { + $resp = $this->getResponse(); + $resp->setHttpResponseCode(400); + $resp->appendBody("ERROR: ID should not be specified when using POST. POST is only used for file creation, and an ID will be chosen by Airtime"); + return; + } + + try { + $sanitizedFile = CcFiles::createFromUpload($this->getRequest()->getPost()); + $this->getResponse() + ->setHttpResponseCode(201) + ->appendBody(json_encode($sanitizedFile)); + } + catch (InvalidMetadataException $e) { + $this->invalidDataResponse(); + Logging::error($e->getMessage()); + } + catch (OverDiskQuotaException $e) { + $this->getResponse() + ->setHttpResponseCode(400) + ->appendBody("ERROR: Disk Quota reached."); + } + catch (Exception $e) { + $this->unknownErrorResponse(); + Logging::error($e->getMessage()); + } + } + + public function putAction() + { + $id = $this->getId(); + if (!$id) { + return; + } + + try { + $requestData = json_decode($this->getRequest()->getRawBody(), true); + $sanitizedFile = CcFiles::updateFromArray($id, $requestData); + $this->getResponse() + ->setHttpResponseCode(201) + ->appendBody(json_encode($sanitizedFile)); + } + catch (InvalidMetadataException $e) { + $this->invalidDataResponse(); + Logging::error($e->getMessage()); + } + catch (FileNotFoundException $e) { + $this->fileNotFoundResponse(); + Logging::error($e->getMessage()); + } + catch (Exception $e) { + $this->unknownErrorResponse(); + Logging::error($e->getMessage()); + } + } + + public function deleteAction() + { + $id = $this->getId(); + if (!$id) { + return; + } + try { + CcFiles::deleteById($id); + $this->getResponse() + ->setHttpResponseCode(204); + } + catch (FileNotFoundException $e) { + $this->fileNotFoundResponse(); + Logging::error($e->getMessage()); + } + catch (Exception $e) { + $this->unknownErrorResponse(); + Logging::error($e->getMessage()); + } + } + + private function getId() + { + if (!$id = $this->_getParam('id', false)) { + $resp = $this->getResponse(); + $resp->setHttpResponseCode(400); + $resp->appendBody("ERROR: No file ID specified."); + return false; + } + return $id; + } + + private function fileNotFoundResponse() + { + $resp = $this->getResponse(); + $resp->setHttpResponseCode(404); + $resp->appendBody("ERROR: Media not found."); + } + + private function importFailedResponse() + { + $resp = $this->getResponse(); + $resp->setHttpResponseCode(200); + $resp->appendBody("ERROR: Import Failed."); + } + + private function unknownErrorResponse() + { + $resp = $this->getResponse(); + $resp->setHttpResponseCode(400); + $resp->appendBody("An unknown error occurred."); + } +} + diff --git a/python_apps/pypo/media/__init__.py b/airtime_mvc/application/modules/rest/views/scripts/media/clear.phtml similarity index 100% rename from python_apps/pypo/media/__init__.py rename to airtime_mvc/application/modules/rest/views/scripts/media/clear.phtml diff --git a/python_apps/pypo/media/update/__init__.py b/airtime_mvc/application/modules/rest/views/scripts/media/delete.phtml similarity index 100% rename from python_apps/pypo/media/update/__init__.py rename to airtime_mvc/application/modules/rest/views/scripts/media/delete.phtml diff --git a/airtime_mvc/application/modules/rest/views/scripts/media/download.phtml b/airtime_mvc/application/modules/rest/views/scripts/media/download.phtml new file mode 100644 index 0000000000..e69de29bb2 diff --git a/airtime_mvc/application/modules/rest/views/scripts/media/get.phtml b/airtime_mvc/application/modules/rest/views/scripts/media/get.phtml new file mode 100644 index 0000000000..e69de29bb2 diff --git a/airtime_mvc/application/modules/rest/views/scripts/media/index.phtml b/airtime_mvc/application/modules/rest/views/scripts/media/index.phtml new file mode 100644 index 0000000000..e69de29bb2 diff --git a/airtime_mvc/application/modules/rest/views/scripts/media/post.phtml b/airtime_mvc/application/modules/rest/views/scripts/media/post.phtml new file mode 100644 index 0000000000..e69de29bb2 diff --git a/airtime_mvc/application/modules/rest/views/scripts/media/put.phtml b/airtime_mvc/application/modules/rest/views/scripts/media/put.phtml new file mode 100644 index 0000000000..e69de29bb2 diff --git a/airtime_mvc/application/services/MediaService.php b/airtime_mvc/application/services/MediaService.php new file mode 100644 index 0000000000..74b2609d03 --- /dev/null +++ b/airtime_mvc/application/services/MediaService.php @@ -0,0 +1,41 @@ +getDirectory() . "/imported/" . $ownerId; + + try { + //Copy the temporary file over to the "organize" folder so that it's off our webserver + //and accessible by airtime_analyzer which could be running on a different machine. + $newTempFilePath = Application_Model_StoredFile::copyFileToStor($tempFilePath, $originalFilename); + } catch (Exception $e) { + @unlink($tempFilePath); + Logging::error($e->getMessage()); + return; + } + + //Dispatch a message to airtime_analyzer through RabbitMQ, + //notifying it that there's a new upload to process! + Application_Model_RabbitMq::SendMessageToAnalyzer($newTempFilePath, + $importedStorageDirectory, basename($originalFilename), + $callbackUrl, $apiKey); + } +} \ No newline at end of file diff --git a/airtime_mvc/application/views/scripts/index/maintenance.phtml b/airtime_mvc/application/views/scripts/index/maintenance.phtml new file mode 100644 index 0000000000..5a2277989e --- /dev/null +++ b/airtime_mvc/application/views/scripts/index/maintenance.phtml @@ -0,0 +1 @@ +Airtime is down for maintenance. We'll be back soon! diff --git a/airtime_mvc/application/views/scripts/plupload/index.phtml b/airtime_mvc/application/views/scripts/plupload/index.phtml index 47187c63e3..6ecb303286 100644 --- a/airtime_mvc/application/views/scripts/plupload/index.phtml +++ b/airtime_mvc/application/views/scripts/plupload/index.phtml @@ -2,11 +2,35 @@ #plupload_files input[type="file"] { font-size: 200px !important; } - -
- form->getElement('csrf') ?> -
+<<<<<<< HEAD + +quotaLimitReached) { ?> +
+ Disk quota exceeded. You cannot upload files until you upgrade your storage. +
+ +quotaLimitReached) { ?> class="hidden" > + form->getElement('csrf') ?> +
+ +
+
+ +
+
+ + + +
+
+

+
+
+
+
diff --git a/airtime_mvc/build/airtime.conf b/airtime_mvc/build/airtime.conf index 7495bd9f3a..60633ed2b1 100644 --- a/airtime_mvc/build/airtime.conf +++ b/airtime_mvc/build/airtime.conf @@ -29,4 +29,4 @@ monit_password = airtime [soundcloud] connection_retries = 3 -time_between_retries = 60 +time_between_retries = 60 \ No newline at end of file diff --git a/airtime_mvc/build/build.properties b/airtime_mvc/build/build.properties index de8c64cb5c..da4a768773 100644 --- a/airtime_mvc/build/build.properties +++ b/airtime_mvc/build/build.properties @@ -1,6 +1,6 @@ #Note: project.home is automatically generated by the propel-install script. #Any manual changes to this value will be overwritten. -project.home = /home/asantoni/airtime/airtime_mvc +project.home = /home/ubuntu/airtime/airtime_mvc project.build = ${project.home}/build #Database driver diff --git a/airtime_mvc/build/schema.xml b/airtime_mvc/build/schema.xml index 71478404b0..543ff4d58a 100644 --- a/airtime_mvc/build/schema.xml +++ b/airtime_mvc/build/schema.xml @@ -18,7 +18,7 @@ - + @@ -98,6 +98,19 @@ + + + + + + + + + + + + +
diff --git a/airtime_mvc/build/sql/schema.sql b/airtime_mvc/build/sql/schema.sql index 8e80f0550b..1592c3c2f3 100644 --- a/airtime_mvc/build/sql/schema.sql +++ b/airtime_mvc/build/sql/schema.sql @@ -1,147 +1,146 @@ ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_music_dirs ------------------------------------------------------------------------------ - -DROP TABLE "cc_music_dirs" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_music_dirs" CASCADE; CREATE TABLE "cc_music_dirs" ( - "id" serial NOT NULL, - "directory" TEXT, - "type" VARCHAR(255), - "exists" BOOLEAN default 't', - "watched" BOOLEAN default 't', - PRIMARY KEY ("id"), - CONSTRAINT "cc_music_dir_unique" UNIQUE ("directory") + "id" serial NOT NULL, + "directory" TEXT, + "type" VARCHAR(255), + "exists" BOOLEAN DEFAULT 't', + "watched" BOOLEAN DEFAULT 't', + PRIMARY KEY ("id"), + CONSTRAINT "cc_music_dir_unique" UNIQUE ("directory") ); -COMMENT ON TABLE "cc_music_dirs" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_files ------------------------------------------------------------------------------ - -DROP TABLE "cc_files" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_files" CASCADE; CREATE TABLE "cc_files" ( - "id" serial NOT NULL, - "name" VARCHAR(255) default '' NOT NULL, - "mime" VARCHAR(255) default '' NOT NULL, - "ftype" VARCHAR(128) default '' NOT NULL, - "directory" INTEGER, - "filepath" TEXT default '', - "state" VARCHAR(128) default 'empty' NOT NULL, - "currentlyaccessing" INTEGER default 0 NOT NULL, - "editedby" INTEGER, - "mtime" TIMESTAMP(6), - "utime" TIMESTAMP(6), - "lptime" TIMESTAMP(6), - "md5" CHAR(32), - "track_title" VARCHAR(512), - "artist_name" VARCHAR(512), - "bit_rate" INTEGER, - "sample_rate" INTEGER, - "format" VARCHAR(128), - "length" interval default '00:00:00', - "album_title" VARCHAR(512), - "genre" VARCHAR(64), - "comments" TEXT, - "year" VARCHAR(16), - "track_number" INTEGER, - "channels" INTEGER, - "url" VARCHAR(1024), - "bpm" INTEGER, - "rating" VARCHAR(8), - "encoded_by" VARCHAR(255), - "disc_number" VARCHAR(8), - "mood" VARCHAR(64), - "label" VARCHAR(512), - "composer" VARCHAR(512), - "encoder" VARCHAR(64), - "checksum" VARCHAR(256), - "lyrics" TEXT, - "orchestra" VARCHAR(512), - "conductor" VARCHAR(512), - "lyricist" VARCHAR(512), - "original_lyricist" VARCHAR(512), - "radio_station_name" VARCHAR(512), - "info_url" VARCHAR(512), - "artist_url" VARCHAR(512), - "audio_source_url" VARCHAR(512), - "radio_station_url" VARCHAR(512), - "buy_this_url" VARCHAR(512), - "isrc_number" VARCHAR(512), - "catalog_number" VARCHAR(512), - "original_artist" VARCHAR(512), - "copyright" VARCHAR(512), - "report_datetime" VARCHAR(32), - "report_location" VARCHAR(512), - "report_organization" VARCHAR(512), - "subject" VARCHAR(512), - "contributor" VARCHAR(512), - "language" VARCHAR(512), - "file_exists" BOOLEAN default 't', - "soundcloud_id" INTEGER, - "soundcloud_error_code" INTEGER, - "soundcloud_error_msg" VARCHAR(512), - "soundcloud_link_to_file" VARCHAR(4096), - "soundcloud_upload_time" TIMESTAMP(6), - "replay_gain" NUMERIC, - "owner_id" INTEGER, - "cuein" interval default '00:00:00', - "cueout" interval default '00:00:00', - "silan_check" BOOLEAN default 'f', - "hidden" BOOLEAN default 'f', - "is_scheduled" BOOLEAN default 'f', - "is_playlist" BOOLEAN default 'f', - PRIMARY KEY ("id") + "id" serial NOT NULL, + "name" VARCHAR(255) DEFAULT '' NOT NULL, + "mime" VARCHAR(255) DEFAULT '' NOT NULL, + "ftype" VARCHAR(128) DEFAULT '' NOT NULL, + "directory" INTEGER, + "filepath" TEXT DEFAULT '', + "import_status" INTEGER DEFAULT 1 NOT NULL, + "currentlyaccessing" INTEGER DEFAULT 0 NOT NULL, + "editedby" INTEGER, + "mtime" TIMESTAMP(6), + "utime" TIMESTAMP(6), + "lptime" TIMESTAMP(6), + "md5" CHAR(32), + "track_title" VARCHAR(512), + "artist_name" VARCHAR(512), + "bit_rate" INTEGER, + "sample_rate" INTEGER, + "format" VARCHAR(128), + "length" interval DEFAULT '00:00:00', + "album_title" VARCHAR(512), + "genre" VARCHAR(64), + "comments" TEXT, + "year" VARCHAR(16), + "track_number" INTEGER, + "channels" INTEGER, + "url" VARCHAR(1024), + "bpm" INTEGER, + "rating" VARCHAR(8), + "encoded_by" VARCHAR(255), + "disc_number" VARCHAR(8), + "mood" VARCHAR(64), + "label" VARCHAR(512), + "composer" VARCHAR(512), + "encoder" VARCHAR(64), + "checksum" VARCHAR(256), + "lyrics" TEXT, + "orchestra" VARCHAR(512), + "conductor" VARCHAR(512), + "lyricist" VARCHAR(512), + "original_lyricist" VARCHAR(512), + "radio_station_name" VARCHAR(512), + "info_url" VARCHAR(512), + "artist_url" VARCHAR(512), + "audio_source_url" VARCHAR(512), + "radio_station_url" VARCHAR(512), + "buy_this_url" VARCHAR(512), + "isrc_number" VARCHAR(512), + "catalog_number" VARCHAR(512), + "original_artist" VARCHAR(512), + "copyright" VARCHAR(512), + "report_datetime" VARCHAR(32), + "report_location" VARCHAR(512), + "report_organization" VARCHAR(512), + "subject" VARCHAR(512), + "contributor" VARCHAR(512), + "language" VARCHAR(512), + "file_exists" BOOLEAN DEFAULT 't', + "soundcloud_id" INTEGER, + "soundcloud_error_code" INTEGER, + "soundcloud_error_msg" VARCHAR(512), + "soundcloud_link_to_file" VARCHAR(4096), + "soundcloud_upload_time" TIMESTAMP(6), + "replay_gain" NUMERIC, + "owner_id" INTEGER, + "cuein" interval DEFAULT '00:00:00', + "cueout" interval DEFAULT '00:00:00', + "silan_check" BOOLEAN DEFAULT 'f', + "hidden" BOOLEAN DEFAULT 'f', + "is_scheduled" BOOLEAN DEFAULT 'f', + "is_playlist" BOOLEAN DEFAULT 'f', + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_files" IS ''; - - -SET search_path TO public; CREATE INDEX "cc_files_md5_idx" ON "cc_files" ("md5"); CREATE INDEX "cc_files_name_idx" ON "cc_files" ("name"); ------------------------------------------------------------------------------ --- cc_perms ------------------------------------------------------------------------------ - -DROP TABLE "cc_perms" CASCADE; +----------------------------------------------------------------------- +-- cloud_file +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cloud_file" CASCADE; -CREATE TABLE "cc_perms" +CREATE TABLE "cloud_file" ( - "permid" INTEGER NOT NULL, - "subj" INTEGER, - "action" VARCHAR(20), - "obj" INTEGER, - "type" CHAR(1), - PRIMARY KEY ("permid"), - CONSTRAINT "cc_perms_all_idx" UNIQUE ("subj","action","obj"), - CONSTRAINT "cc_perms_permid_idx" UNIQUE ("permid") + "id" serial NOT NULL, + "storage_backend" VARCHAR(512) NOT NULL, + "resource_id" TEXT NOT NULL, + "cc_file_id" INTEGER, + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_perms" IS ''; +----------------------------------------------------------------------- +-- cc_perms +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_perms" CASCADE; + +CREATE TABLE "cc_perms" +( + "permid" INTEGER NOT NULL, + "subj" INTEGER, + "action" VARCHAR(20), + "obj" INTEGER, + "type" CHAR(1), + PRIMARY KEY ("permid"), + CONSTRAINT "cc_perms_all_idx" UNIQUE ("subj","action","obj"), + CONSTRAINT "cc_perms_permid_idx" UNIQUE ("permid") +); -SET search_path TO public; CREATE INDEX "cc_perms_subj_obj_idx" ON "cc_perms" ("subj","obj"); ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_show ------------------------------------------------------------------------------ - -DROP TABLE "cc_show" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_show" CASCADE; CREATE TABLE "cc_show" ( @@ -168,10 +167,9 @@ COMMENT ON TABLE "cc_show" IS ''; SET search_path TO public; ----------------------------------------------------------------------------- -- cc_show_instances ------------------------------------------------------------------------------ - -DROP TABLE "cc_show_instances" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_show_instances" CASCADE; CREATE TABLE "cc_show_instances" ( @@ -197,707 +195,646 @@ COMMENT ON TABLE "cc_show_instances" IS ''; SET search_path TO public; ----------------------------------------------------------------------------- -- cc_show_days ------------------------------------------------------------------------------ - -DROP TABLE "cc_show_days" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_show_days" CASCADE; CREATE TABLE "cc_show_days" ( - "id" serial NOT NULL, - "first_show" DATE NOT NULL, - "last_show" DATE, - "start_time" TIME NOT NULL, - "timezone" VARCHAR(255) NOT NULL, - "duration" VARCHAR(255) NOT NULL, - "day" INT2, - "repeat_type" INT2 NOT NULL, - "next_pop_date" DATE, - "show_id" INTEGER NOT NULL, - "record" INT2 default 0, - PRIMARY KEY ("id") -); - -COMMENT ON TABLE "cc_show_days" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ + "id" serial NOT NULL, + "first_show" DATE NOT NULL, + "last_show" DATE, + "start_time" TIME NOT NULL, + "timezone" VARCHAR NOT NULL, + "duration" VARCHAR NOT NULL, + "day" INT2, + "repeat_type" INT2 NOT NULL, + "next_pop_date" DATE, + "show_id" INTEGER NOT NULL, + "record" INT2 DEFAULT 0, + PRIMARY KEY ("id") +); + +----------------------------------------------------------------------- -- cc_show_rebroadcast ------------------------------------------------------------------------------ - -DROP TABLE "cc_show_rebroadcast" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_show_rebroadcast" CASCADE; CREATE TABLE "cc_show_rebroadcast" ( - "id" serial NOT NULL, - "day_offset" VARCHAR(255) NOT NULL, - "start_time" TIME NOT NULL, - "show_id" INTEGER NOT NULL, - PRIMARY KEY ("id") + "id" serial NOT NULL, + "day_offset" VARCHAR NOT NULL, + "start_time" TIME NOT NULL, + "show_id" INTEGER NOT NULL, + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_show_rebroadcast" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_show_hosts ------------------------------------------------------------------------------ - -DROP TABLE "cc_show_hosts" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_show_hosts" CASCADE; CREATE TABLE "cc_show_hosts" ( - "id" serial NOT NULL, - "show_id" INTEGER NOT NULL, - "subjs_id" INTEGER NOT NULL, - PRIMARY KEY ("id") + "id" serial NOT NULL, + "show_id" INTEGER NOT NULL, + "subjs_id" INTEGER NOT NULL, + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_show_hosts" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_playlist ------------------------------------------------------------------------------ - -DROP TABLE "cc_playlist" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_playlist" CASCADE; CREATE TABLE "cc_playlist" ( - "id" serial NOT NULL, - "name" VARCHAR(255) default '' NOT NULL, - "mtime" TIMESTAMP(6), - "utime" TIMESTAMP(6), - "creator_id" INTEGER, - "description" VARCHAR(512), - "length" interval default '00:00:00', - PRIMARY KEY ("id") + "id" serial NOT NULL, + "name" VARCHAR(255) DEFAULT '' NOT NULL, + "mtime" TIMESTAMP(6), + "utime" TIMESTAMP(6), + "creator_id" INTEGER, + "description" VARCHAR(512), + "length" interval DEFAULT '00:00:00', + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_playlist" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_playlistcontents ------------------------------------------------------------------------------ - -DROP TABLE "cc_playlistcontents" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_playlistcontents" CASCADE; CREATE TABLE "cc_playlistcontents" ( - "id" serial NOT NULL, - "playlist_id" INTEGER, - "file_id" INTEGER, - "block_id" INTEGER, - "stream_id" INTEGER, - "type" INT2 default 0 NOT NULL, - "position" INTEGER, - "trackoffset" FLOAT default 0 NOT NULL, - "cliplength" interval default '00:00:00', - "cuein" interval default '00:00:00', - "cueout" interval default '00:00:00', - "fadein" TIME default '00:00:00', - "fadeout" TIME default '00:00:00', - PRIMARY KEY ("id") -); - -COMMENT ON TABLE "cc_playlistcontents" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ + "id" serial NOT NULL, + "playlist_id" INTEGER, + "file_id" INTEGER, + "block_id" INTEGER, + "stream_id" INTEGER, + "type" INT2 DEFAULT 0 NOT NULL, + "position" INTEGER, + "trackoffset" FLOAT DEFAULT 0 NOT NULL, + "cliplength" interval DEFAULT '00:00:00', + "cuein" interval DEFAULT '00:00:00', + "cueout" interval DEFAULT '00:00:00', + "fadein" TIME DEFAULT '00:00:00', + "fadeout" TIME DEFAULT '00:00:00', + PRIMARY KEY ("id") +); + +----------------------------------------------------------------------- -- cc_block ------------------------------------------------------------------------------ - -DROP TABLE "cc_block" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_block" CASCADE; CREATE TABLE "cc_block" ( - "id" serial NOT NULL, - "name" VARCHAR(255) default '' NOT NULL, - "mtime" TIMESTAMP(6), - "utime" TIMESTAMP(6), - "creator_id" INTEGER, - "description" VARCHAR(512), - "length" interval default '00:00:00', - "type" VARCHAR(7) default 'static', - PRIMARY KEY ("id") + "id" serial NOT NULL, + "name" VARCHAR(255) DEFAULT '' NOT NULL, + "mtime" TIMESTAMP(6), + "utime" TIMESTAMP(6), + "creator_id" INTEGER, + "description" VARCHAR(512), + "length" interval DEFAULT '00:00:00', + "type" VARCHAR(7) DEFAULT 'static', + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_block" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_blockcontents ------------------------------------------------------------------------------ - -DROP TABLE "cc_blockcontents" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_blockcontents" CASCADE; CREATE TABLE "cc_blockcontents" ( - "id" serial NOT NULL, - "block_id" INTEGER, - "file_id" INTEGER, - "position" INTEGER, - "trackoffset" FLOAT default 0 NOT NULL, - "cliplength" interval default '00:00:00', - "cuein" interval default '00:00:00', - "cueout" interval default '00:00:00', - "fadein" TIME default '00:00:00', - "fadeout" TIME default '00:00:00', - PRIMARY KEY ("id") + "id" serial NOT NULL, + "block_id" INTEGER, + "file_id" INTEGER, + "position" INTEGER, + "trackoffset" FLOAT DEFAULT 0 NOT NULL, + "cliplength" interval DEFAULT '00:00:00', + "cuein" interval DEFAULT '00:00:00', + "cueout" interval DEFAULT '00:00:00', + "fadein" TIME DEFAULT '00:00:00', + "fadeout" TIME DEFAULT '00:00:00', + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_blockcontents" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_blockcriteria ------------------------------------------------------------------------------ - -DROP TABLE "cc_blockcriteria" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_blockcriteria" CASCADE; CREATE TABLE "cc_blockcriteria" ( - "id" serial NOT NULL, - "criteria" VARCHAR(32) NOT NULL, - "modifier" VARCHAR(16) NOT NULL, - "value" VARCHAR(512) NOT NULL, - "extra" VARCHAR(512), - "block_id" INTEGER NOT NULL, - PRIMARY KEY ("id") + "id" serial NOT NULL, + "criteria" VARCHAR(32) NOT NULL, + "modifier" VARCHAR(16) NOT NULL, + "value" VARCHAR(512) NOT NULL, + "extra" VARCHAR(512), + "block_id" INTEGER NOT NULL, + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_blockcriteria" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_pref ------------------------------------------------------------------------------ - -DROP TABLE "cc_pref" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_pref" CASCADE; CREATE TABLE "cc_pref" ( - "id" serial NOT NULL, - "subjid" INTEGER, - "keystr" VARCHAR(255), - "valstr" TEXT, - PRIMARY KEY ("id"), - CONSTRAINT "cc_pref_id_idx" UNIQUE ("id"), - CONSTRAINT "cc_pref_subj_key_idx" UNIQUE ("subjid","keystr") + "id" serial NOT NULL, + "subjid" INTEGER, + "keystr" VARCHAR(255), + "valstr" TEXT, + PRIMARY KEY ("id"), + CONSTRAINT "cc_pref_id_idx" UNIQUE ("id"), + CONSTRAINT "cc_pref_subj_key_idx" UNIQUE ("subjid","keystr") ); -COMMENT ON TABLE "cc_pref" IS ''; - - -SET search_path TO public; CREATE INDEX "cc_pref_subjid_idx" ON "cc_pref" ("subjid"); ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_schedule ------------------------------------------------------------------------------ - -DROP TABLE "cc_schedule" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_schedule" CASCADE; CREATE TABLE "cc_schedule" ( - "id" serial NOT NULL, - "starts" TIMESTAMP NOT NULL, - "ends" TIMESTAMP NOT NULL, - "file_id" INTEGER, - "stream_id" INTEGER, - "clip_length" interval default '00:00:00', - "fade_in" TIME default '00:00:00', - "fade_out" TIME default '00:00:00', - "cue_in" interval NOT NULL, - "cue_out" interval NOT NULL, - "media_item_played" BOOLEAN default 'f', - "instance_id" INTEGER NOT NULL, - "playout_status" INT2 default 1 NOT NULL, - "broadcasted" INT2 default 0 NOT NULL, - "position" INTEGER default 0 NOT NULL, - PRIMARY KEY ("id") + "id" serial NOT NULL, + "starts" TIMESTAMP NOT NULL, + "ends" TIMESTAMP NOT NULL, + "file_id" INTEGER, + "stream_id" INTEGER, + "clip_length" interval DEFAULT '00:00:00', + "fade_in" TIME DEFAULT '00:00:00', + "fade_out" TIME DEFAULT '00:00:00', + "cue_in" interval NOT NULL, + "cue_out" interval NOT NULL, + "media_item_played" BOOLEAN DEFAULT 'f', + "instance_id" INTEGER NOT NULL, + "playout_status" INT2 DEFAULT 1 NOT NULL, + "broadcasted" INT2 DEFAULT 0 NOT NULL, + "position" INTEGER DEFAULT 0 NOT NULL, + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_schedule" IS ''; - - -SET search_path TO public; CREATE INDEX "cc_schedule_instance_id_idx" ON "cc_schedule" ("instance_id"); ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_sess ------------------------------------------------------------------------------ - -DROP TABLE "cc_sess" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_sess" CASCADE; CREATE TABLE "cc_sess" ( - "sessid" CHAR(32) NOT NULL, - "userid" INTEGER, - "login" VARCHAR(255), - "ts" TIMESTAMP, - PRIMARY KEY ("sessid") + "sessid" CHAR(32) NOT NULL, + "userid" INTEGER, + "login" VARCHAR(255), + "ts" TIMESTAMP, + PRIMARY KEY ("sessid") ); -COMMENT ON TABLE "cc_sess" IS ''; - - -SET search_path TO public; CREATE INDEX "cc_sess_login_idx" ON "cc_sess" ("login"); CREATE INDEX "cc_sess_userid_idx" ON "cc_sess" ("userid"); ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_smemb ------------------------------------------------------------------------------ - -DROP TABLE "cc_smemb" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_smemb" CASCADE; CREATE TABLE "cc_smemb" ( - "id" INTEGER NOT NULL, - "uid" INTEGER default 0 NOT NULL, - "gid" INTEGER default 0 NOT NULL, - "level" INTEGER default 0 NOT NULL, - "mid" INTEGER, - PRIMARY KEY ("id"), - CONSTRAINT "cc_smemb_id_idx" UNIQUE ("id") + "id" INTEGER NOT NULL, + "uid" INTEGER DEFAULT 0 NOT NULL, + "gid" INTEGER DEFAULT 0 NOT NULL, + "level" INTEGER DEFAULT 0 NOT NULL, + "mid" INTEGER, + PRIMARY KEY ("id"), + CONSTRAINT "cc_smemb_id_idx" UNIQUE ("id") ); -COMMENT ON TABLE "cc_smemb" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_subjs ------------------------------------------------------------------------------ - -DROP TABLE "cc_subjs" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_subjs" CASCADE; CREATE TABLE "cc_subjs" ( - "id" serial NOT NULL, - "login" VARCHAR(255) default '' NOT NULL, - "pass" VARCHAR(255) default '' NOT NULL, - "type" CHAR(1) default 'U' NOT NULL, - "first_name" VARCHAR(255) default '' NOT NULL, - "last_name" VARCHAR(255) default '' NOT NULL, - "lastlogin" TIMESTAMP, - "lastfail" TIMESTAMP, - "skype_contact" VARCHAR(255), - "jabber_contact" VARCHAR(255), - "email" VARCHAR(255), - "cell_phone" VARCHAR(255), - "login_attempts" INTEGER default 0, - PRIMARY KEY ("id"), - CONSTRAINT "cc_subjs_id_idx" UNIQUE ("id"), - CONSTRAINT "cc_subjs_login_idx" UNIQUE ("login") -); - -COMMENT ON TABLE "cc_subjs" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ + "id" serial NOT NULL, + "login" VARCHAR(255) DEFAULT '' NOT NULL, + "pass" VARCHAR(255) DEFAULT '' NOT NULL, + "type" CHAR(1) DEFAULT 'U' NOT NULL, + "first_name" VARCHAR(255) DEFAULT '' NOT NULL, + "last_name" VARCHAR(255) DEFAULT '' NOT NULL, + "lastlogin" TIMESTAMP, + "lastfail" TIMESTAMP, + "skype_contact" VARCHAR, + "jabber_contact" VARCHAR, + "email" VARCHAR, + "cell_phone" VARCHAR, + "login_attempts" INTEGER DEFAULT 0, + PRIMARY KEY ("id"), + CONSTRAINT "cc_subjs_id_idx" UNIQUE ("id"), + CONSTRAINT "cc_subjs_login_idx" UNIQUE ("login") +); + +----------------------------------------------------------------------- -- cc_subjs_token ------------------------------------------------------------------------------ - -DROP TABLE "cc_subjs_token" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_subjs_token" CASCADE; CREATE TABLE "cc_subjs_token" ( - "id" serial NOT NULL, - "user_id" INTEGER NOT NULL, - "action" VARCHAR(255) NOT NULL, - "token" VARCHAR(40) NOT NULL, - "created" TIMESTAMP NOT NULL, - PRIMARY KEY ("id"), - CONSTRAINT "cc_subjs_token_idx" UNIQUE ("token") + "id" serial NOT NULL, + "user_id" INTEGER NOT NULL, + "action" VARCHAR(255) NOT NULL, + "token" VARCHAR(40) NOT NULL, + "created" TIMESTAMP NOT NULL, + PRIMARY KEY ("id"), + CONSTRAINT "cc_subjs_token_idx" UNIQUE ("token") ); -COMMENT ON TABLE "cc_subjs_token" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_country ------------------------------------------------------------------------------ - -DROP TABLE "cc_country" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_country" CASCADE; CREATE TABLE "cc_country" ( - "isocode" CHAR(3) NOT NULL, - "name" VARCHAR(255) NOT NULL, - PRIMARY KEY ("isocode") + "isocode" CHAR(3) NOT NULL, + "name" VARCHAR(255) NOT NULL, + PRIMARY KEY ("isocode") ); -COMMENT ON TABLE "cc_country" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_stream_setting ------------------------------------------------------------------------------ - -DROP TABLE "cc_stream_setting" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_stream_setting" CASCADE; CREATE TABLE "cc_stream_setting" ( - "keyname" VARCHAR(64) NOT NULL, - "value" VARCHAR(255), - "type" VARCHAR(16) NOT NULL, - PRIMARY KEY ("keyname") + "keyname" VARCHAR(64) NOT NULL, + "value" VARCHAR(255), + "type" VARCHAR(16) NOT NULL, + PRIMARY KEY ("keyname") ); -COMMENT ON TABLE "cc_stream_setting" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_login_attempts ------------------------------------------------------------------------------ - -DROP TABLE "cc_login_attempts" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_login_attempts" CASCADE; CREATE TABLE "cc_login_attempts" ( - "ip" VARCHAR(32) NOT NULL, - "attempts" INTEGER default 0, - PRIMARY KEY ("ip") + "ip" VARCHAR(32) NOT NULL, + "attempts" INTEGER DEFAULT 0, + PRIMARY KEY ("ip") ); -COMMENT ON TABLE "cc_login_attempts" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_service_register ------------------------------------------------------------------------------ - -DROP TABLE "cc_service_register" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_service_register" CASCADE; CREATE TABLE "cc_service_register" ( - "name" VARCHAR(32) NOT NULL, - "ip" VARCHAR(18) NOT NULL, - PRIMARY KEY ("name") + "name" VARCHAR(32) NOT NULL, + "ip" VARCHAR(18) NOT NULL, + PRIMARY KEY ("name") ); -COMMENT ON TABLE "cc_service_register" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_live_log ------------------------------------------------------------------------------ - -DROP TABLE "cc_live_log" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_live_log" CASCADE; CREATE TABLE "cc_live_log" ( - "id" serial NOT NULL, - "state" VARCHAR(32) NOT NULL, - "start_time" TIMESTAMP NOT NULL, - "end_time" TIMESTAMP, - PRIMARY KEY ("id") + "id" serial NOT NULL, + "state" VARCHAR(32) NOT NULL, + "start_time" TIMESTAMP NOT NULL, + "end_time" TIMESTAMP, + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_live_log" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_webstream ------------------------------------------------------------------------------ - -DROP TABLE "cc_webstream" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_webstream" CASCADE; CREATE TABLE "cc_webstream" ( - "id" serial NOT NULL, - "name" VARCHAR(255) NOT NULL, - "description" VARCHAR(255) NOT NULL, - "url" VARCHAR(512) NOT NULL, - "length" interval default '00:00:00' NOT NULL, - "creator_id" INTEGER NOT NULL, - "mtime" TIMESTAMP(6) NOT NULL, - "utime" TIMESTAMP(6) NOT NULL, - "lptime" TIMESTAMP(6), - "mime" VARCHAR(255), - PRIMARY KEY ("id") + "id" serial NOT NULL, + "name" VARCHAR(255) NOT NULL, + "description" VARCHAR(255) NOT NULL, + "url" VARCHAR(512) NOT NULL, + "length" interval DEFAULT '00:00:00' NOT NULL, + "creator_id" INTEGER NOT NULL, + "mtime" TIMESTAMP(6) NOT NULL, + "utime" TIMESTAMP(6) NOT NULL, + "lptime" TIMESTAMP(6), + "mime" VARCHAR, + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_webstream" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_webstream_metadata ------------------------------------------------------------------------------ - -DROP TABLE "cc_webstream_metadata" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_webstream_metadata" CASCADE; CREATE TABLE "cc_webstream_metadata" ( - "id" serial NOT NULL, - "instance_id" INTEGER NOT NULL, - "start_time" TIMESTAMP NOT NULL, - "liquidsoap_data" VARCHAR(1024) NOT NULL, - PRIMARY KEY ("id") + "id" serial NOT NULL, + "instance_id" INTEGER NOT NULL, + "start_time" TIMESTAMP NOT NULL, + "liquidsoap_data" VARCHAR(1024) NOT NULL, + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_webstream_metadata" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_mount_name ------------------------------------------------------------------------------ - -DROP TABLE "cc_mount_name" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_mount_name" CASCADE; CREATE TABLE "cc_mount_name" ( - "id" serial NOT NULL, - "mount_name" VARCHAR(255) NOT NULL, - PRIMARY KEY ("id") + "id" serial NOT NULL, + "mount_name" VARCHAR NOT NULL, + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_mount_name" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_timestamp ------------------------------------------------------------------------------ - -DROP TABLE "cc_timestamp" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_timestamp" CASCADE; CREATE TABLE "cc_timestamp" ( - "id" serial NOT NULL, - "timestamp" TIMESTAMP NOT NULL, - PRIMARY KEY ("id") + "id" serial NOT NULL, + "timestamp" TIMESTAMP NOT NULL, + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_timestamp" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_listener_count ------------------------------------------------------------------------------ - -DROP TABLE "cc_listener_count" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_listener_count" CASCADE; CREATE TABLE "cc_listener_count" ( - "id" serial NOT NULL, - "timestamp_id" INTEGER NOT NULL, - "mount_name_id" INTEGER NOT NULL, - "listener_count" INTEGER NOT NULL, - PRIMARY KEY ("id") + "id" serial NOT NULL, + "timestamp_id" INTEGER NOT NULL, + "mount_name_id" INTEGER NOT NULL, + "listener_count" INTEGER NOT NULL, + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_listener_count" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ --- cc_locale ------------------------------------------------------------------------------ - -DROP TABLE "cc_locale" CASCADE; - - -CREATE TABLE "cc_locale" -( - "id" serial NOT NULL, - "locale_code" VARCHAR(16) NOT NULL, - "locale_lang" VARCHAR(128) NOT NULL, - PRIMARY KEY ("id") -); - -COMMENT ON TABLE "cc_locale" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_playout_history ------------------------------------------------------------------------------ - -DROP TABLE "cc_playout_history" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_playout_history" CASCADE; CREATE TABLE "cc_playout_history" ( - "id" serial NOT NULL, - "file_id" INTEGER, - "starts" TIMESTAMP NOT NULL, - "ends" TIMESTAMP, - "instance_id" INTEGER, - PRIMARY KEY ("id") + "id" serial NOT NULL, + "file_id" INTEGER, + "starts" TIMESTAMP NOT NULL, + "ends" TIMESTAMP, + "instance_id" INTEGER, + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_playout_history" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_playout_history_metadata ------------------------------------------------------------------------------ - -DROP TABLE "cc_playout_history_metadata" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_playout_history_metadata" CASCADE; CREATE TABLE "cc_playout_history_metadata" ( - "id" serial NOT NULL, - "history_id" INTEGER NOT NULL, - "key" VARCHAR(128) NOT NULL, - "value" VARCHAR(128) NOT NULL, - PRIMARY KEY ("id") + "id" serial NOT NULL, + "history_id" INTEGER NOT NULL, + "key" VARCHAR(128) NOT NULL, + "value" VARCHAR(128) NOT NULL, + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_playout_history_metadata" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_playout_history_template ------------------------------------------------------------------------------ - -DROP TABLE "cc_playout_history_template" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_playout_history_template" CASCADE; CREATE TABLE "cc_playout_history_template" ( - "id" serial NOT NULL, - "name" VARCHAR(128) NOT NULL, - "type" VARCHAR(35) NOT NULL, - PRIMARY KEY ("id") + "id" serial NOT NULL, + "name" VARCHAR(128) NOT NULL, + "type" VARCHAR(35) NOT NULL, + PRIMARY KEY ("id") ); -COMMENT ON TABLE "cc_playout_history_template" IS ''; - - -SET search_path TO public; ------------------------------------------------------------------------------ +----------------------------------------------------------------------- -- cc_playout_history_template_field ------------------------------------------------------------------------------ - -DROP TABLE "cc_playout_history_template_field" CASCADE; +----------------------------------------------------------------------- +DROP TABLE IF EXISTS "cc_playout_history_template_field" CASCADE; CREATE TABLE "cc_playout_history_template_field" ( - "id" serial NOT NULL, - "template_id" INTEGER NOT NULL, - "name" VARCHAR(128) NOT NULL, - "label" VARCHAR(128) NOT NULL, - "type" VARCHAR(128) NOT NULL, - "is_file_md" BOOLEAN default 'f' NOT NULL, - "position" INTEGER NOT NULL, - PRIMARY KEY ("id") -); - -COMMENT ON TABLE "cc_playout_history_template_field" IS ''; - - -SET search_path TO public; -ALTER TABLE "cc_files" ADD CONSTRAINT "cc_files_owner_fkey" FOREIGN KEY ("owner_id") 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"); - -ALTER TABLE "cc_perms" ADD CONSTRAINT "cc_perms_subj_fkey" FOREIGN KEY ("subj") REFERENCES "cc_subjs" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_show_instances" ADD CONSTRAINT "cc_show_fkey" FOREIGN KEY ("show_id") REFERENCES "cc_show" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_show_instances" ADD CONSTRAINT "cc_original_show_instance_fkey" FOREIGN KEY ("instance_id") REFERENCES "cc_show_instances" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_show_instances" ADD CONSTRAINT "cc_recorded_file_fkey" FOREIGN KEY ("file_id") REFERENCES "cc_files" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_show_days" ADD CONSTRAINT "cc_show_fkey" FOREIGN KEY ("show_id") REFERENCES "cc_show" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_show_rebroadcast" ADD CONSTRAINT "cc_show_fkey" FOREIGN KEY ("show_id") REFERENCES "cc_show" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_show_hosts" ADD CONSTRAINT "cc_perm_show_fkey" FOREIGN KEY ("show_id") REFERENCES "cc_show" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_show_hosts" ADD CONSTRAINT "cc_perm_host_fkey" FOREIGN KEY ("subjs_id") REFERENCES "cc_subjs" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_playlist" ADD CONSTRAINT "cc_playlist_createdby_fkey" FOREIGN KEY ("creator_id") REFERENCES "cc_subjs" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_playlistcontents" ADD CONSTRAINT "cc_playlistcontents_file_id_fkey" FOREIGN KEY ("file_id") REFERENCES "cc_files" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_playlistcontents" ADD CONSTRAINT "cc_playlistcontents_block_id_fkey" FOREIGN KEY ("block_id") REFERENCES "cc_block" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_playlistcontents" ADD CONSTRAINT "cc_playlistcontents_playlist_id_fkey" FOREIGN KEY ("playlist_id") REFERENCES "cc_playlist" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_block" ADD CONSTRAINT "cc_block_createdby_fkey" FOREIGN KEY ("creator_id") REFERENCES "cc_subjs" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_blockcontents" ADD CONSTRAINT "cc_blockcontents_file_id_fkey" FOREIGN KEY ("file_id") REFERENCES "cc_files" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_blockcontents" ADD CONSTRAINT "cc_blockcontents_block_id_fkey" FOREIGN KEY ("block_id") REFERENCES "cc_block" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_blockcriteria" ADD CONSTRAINT "cc_blockcontents_block_id_fkey" FOREIGN KEY ("block_id") REFERENCES "cc_block" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_pref" ADD CONSTRAINT "cc_pref_subjid_fkey" FOREIGN KEY ("subjid") REFERENCES "cc_subjs" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_schedule" ADD CONSTRAINT "cc_show_inst_fkey" FOREIGN KEY ("instance_id") REFERENCES "cc_show_instances" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_schedule" ADD CONSTRAINT "cc_show_file_fkey" FOREIGN KEY ("file_id") REFERENCES "cc_files" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_schedule" ADD CONSTRAINT "cc_show_stream_fkey" FOREIGN KEY ("stream_id") REFERENCES "cc_webstream" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_sess" ADD CONSTRAINT "cc_sess_userid_fkey" FOREIGN KEY ("userid") REFERENCES "cc_subjs" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_subjs_token" ADD CONSTRAINT "cc_subjs_token_userid_fkey" FOREIGN KEY ("user_id") REFERENCES "cc_subjs" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_webstream_metadata" ADD CONSTRAINT "cc_schedule_inst_fkey" FOREIGN KEY ("instance_id") REFERENCES "cc_schedule" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_listener_count" ADD CONSTRAINT "cc_timestamp_inst_fkey" FOREIGN KEY ("timestamp_id") REFERENCES "cc_timestamp" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_listener_count" ADD CONSTRAINT "cc_mount_name_inst_fkey" FOREIGN KEY ("mount_name_id") REFERENCES "cc_mount_name" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_playout_history" ADD CONSTRAINT "cc_playout_history_file_tag_fkey" FOREIGN KEY ("file_id") REFERENCES "cc_files" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_playout_history" ADD CONSTRAINT "cc_his_item_inst_fkey" FOREIGN KEY ("instance_id") REFERENCES "cc_show_instances" ("id") ON DELETE SET NULL; - -ALTER TABLE "cc_playout_history_metadata" ADD CONSTRAINT "cc_playout_history_metadata_entry_fkey" FOREIGN KEY ("history_id") REFERENCES "cc_playout_history" ("id") ON DELETE CASCADE; - -ALTER TABLE "cc_playout_history_template_field" ADD CONSTRAINT "cc_playout_history_template_template_fkey" FOREIGN KEY ("template_id") REFERENCES "cc_playout_history_template" ("id") ON DELETE CASCADE; + "id" serial NOT NULL, + "template_id" INTEGER NOT NULL, + "name" VARCHAR(128) NOT NULL, + "label" VARCHAR(128) NOT NULL, + "type" VARCHAR(128) NOT NULL, + "is_file_md" BOOLEAN DEFAULT 'f' NOT NULL, + "position" INTEGER NOT NULL, + PRIMARY KEY ("id") +); + +ALTER TABLE "cc_files" ADD CONSTRAINT "cc_files_owner_fkey" + FOREIGN KEY ("owner_id") + 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"); + +ALTER TABLE "cloud_file" ADD CONSTRAINT "cloud_file_FK_1" + FOREIGN KEY ("cc_file_id") + REFERENCES "cc_files" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_perms" ADD CONSTRAINT "cc_perms_subj_fkey" + FOREIGN KEY ("subj") + REFERENCES "cc_subjs" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_show_instances" ADD CONSTRAINT "cc_show_fkey" + FOREIGN KEY ("show_id") + REFERENCES "cc_show" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_show_instances" ADD CONSTRAINT "cc_original_show_instance_fkey" + FOREIGN KEY ("instance_id") + REFERENCES "cc_show_instances" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_show_instances" ADD CONSTRAINT "cc_recorded_file_fkey" + FOREIGN KEY ("file_id") + REFERENCES "cc_files" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_show_days" ADD CONSTRAINT "cc_show_fkey" + FOREIGN KEY ("show_id") + REFERENCES "cc_show" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_show_rebroadcast" ADD CONSTRAINT "cc_show_fkey" + FOREIGN KEY ("show_id") + REFERENCES "cc_show" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_show_hosts" ADD CONSTRAINT "cc_perm_show_fkey" + FOREIGN KEY ("show_id") + REFERENCES "cc_show" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_show_hosts" ADD CONSTRAINT "cc_perm_host_fkey" + FOREIGN KEY ("subjs_id") + REFERENCES "cc_subjs" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_playlist" ADD CONSTRAINT "cc_playlist_createdby_fkey" + FOREIGN KEY ("creator_id") + REFERENCES "cc_subjs" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_playlistcontents" ADD CONSTRAINT "cc_playlistcontents_file_id_fkey" + FOREIGN KEY ("file_id") + REFERENCES "cc_files" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_playlistcontents" ADD CONSTRAINT "cc_playlistcontents_block_id_fkey" + FOREIGN KEY ("block_id") + REFERENCES "cc_block" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_playlistcontents" ADD CONSTRAINT "cc_playlistcontents_playlist_id_fkey" + FOREIGN KEY ("playlist_id") + REFERENCES "cc_playlist" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_block" ADD CONSTRAINT "cc_block_createdby_fkey" + FOREIGN KEY ("creator_id") + REFERENCES "cc_subjs" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_blockcontents" ADD CONSTRAINT "cc_blockcontents_file_id_fkey" + FOREIGN KEY ("file_id") + REFERENCES "cc_files" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_blockcontents" ADD CONSTRAINT "cc_blockcontents_block_id_fkey" + FOREIGN KEY ("block_id") + REFERENCES "cc_block" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_blockcriteria" ADD CONSTRAINT "cc_blockcontents_block_id_fkey" + FOREIGN KEY ("block_id") + REFERENCES "cc_block" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_pref" ADD CONSTRAINT "cc_pref_subjid_fkey" + FOREIGN KEY ("subjid") + REFERENCES "cc_subjs" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_schedule" ADD CONSTRAINT "cc_show_inst_fkey" + FOREIGN KEY ("instance_id") + REFERENCES "cc_show_instances" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_schedule" ADD CONSTRAINT "cc_show_file_fkey" + FOREIGN KEY ("file_id") + REFERENCES "cc_files" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_schedule" ADD CONSTRAINT "cc_show_stream_fkey" + FOREIGN KEY ("stream_id") + REFERENCES "cc_webstream" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_sess" ADD CONSTRAINT "cc_sess_userid_fkey" + FOREIGN KEY ("userid") + REFERENCES "cc_subjs" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_subjs_token" ADD CONSTRAINT "cc_subjs_token_userid_fkey" + FOREIGN KEY ("user_id") + REFERENCES "cc_subjs" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_webstream_metadata" ADD CONSTRAINT "cc_schedule_inst_fkey" + FOREIGN KEY ("instance_id") + REFERENCES "cc_schedule" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_listener_count" ADD CONSTRAINT "cc_timestamp_inst_fkey" + FOREIGN KEY ("timestamp_id") + REFERENCES "cc_timestamp" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_listener_count" ADD CONSTRAINT "cc_mount_name_inst_fkey" + FOREIGN KEY ("mount_name_id") + REFERENCES "cc_mount_name" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_playout_history" ADD CONSTRAINT "cc_playout_history_file_tag_fkey" + FOREIGN KEY ("file_id") + REFERENCES "cc_files" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_playout_history" ADD CONSTRAINT "cc_his_item_inst_fkey" + FOREIGN KEY ("instance_id") + REFERENCES "cc_show_instances" ("id") + ON DELETE SET NULL; + +ALTER TABLE "cc_playout_history_metadata" ADD CONSTRAINT "cc_playout_history_metadata_entry_fkey" + FOREIGN KEY ("history_id") + REFERENCES "cc_playout_history" ("id") + ON DELETE CASCADE; + +ALTER TABLE "cc_playout_history_template_field" ADD CONSTRAINT "cc_playout_history_template_template_fkey" + FOREIGN KEY ("template_id") + REFERENCES "cc_playout_history_template" ("id") + ON DELETE CASCADE; diff --git a/airtime_mvc/library/propel/CHANGELOG b/airtime_mvc/library/propel/CHANGELOG deleted file mode 100644 index fe4ff5fde1..0000000000 --- a/airtime_mvc/library/propel/CHANGELOG +++ /dev/null @@ -1,107 +0,0 @@ -= Changelog Of The Propel 1.5 Branch = - -== 2010-06-17: Version 1.5.2 == - - * [1810] Changed default table type keyword to ENGINE for MySQL (closes #969) - * [1809] Added a way to read virtual columns starting with a lowercase character (closes #993) - * [1808] Added connection object to the FK getter (closes #1018) - * [1807] Fixed namespace issue with `soft_delete` behavior (closes #1015) - * [1806] Fixed issue with instance pooling and soft_delete behavior (closes #1016) - * [1805] Added namespace declaration to model class interface (closes #1014) - * [1804] Improved generated class code when using namespaces (refs #683) - * [1803] Documented namespace.autoPackage build property (refs #1005) - * [1802] Added support for package autosetting based on namespace attribute (refs #1005) - * [1801] Fixed related instance pooling clear in case of an emulated on delete cascade / set null (refs #1012) - * [1800] Fixed onDelete cascade and setnull for self-referencing foreign keys (closes #1012) - * [1799] Fixed `ModelCriteria::find()` throws `Exception` instead of `PropelException` - * [1798] Fixed hard-to-debug unit test exception message - * [1797] Fixed cascade deletion emulation when `Criteria` is modified by `doSelect()` (closes #1008) - * [1796] Added `ModelCriteria::findOneOrCreate()` (closes #1009) - * [1795] Fixed `delete()` called in iterator breaks on demand formatter (closes #1006) - * [1794] Fixed double iteration on Propel collection (closes #1004) (patch from jeremyp) - * [1793] Documented namespaces (refs #683) - * [1792] Added support for namespaces in many-to-many relationships (refs #683) - * [1791] Added support for namespaces in single table inheritance (refs #683) - * [1790] Added mention of a common error code in runtime settings documentation - * [1789] Documented the simple templating system (refs #1002) - * [1788] Allowed namespace tests to run alongside normal tests (refs #683) - * [1787] Fixed `PropelObjectCollection::toArray()` when the collection is empty (closes #1001) - * [1786] Fixed runtime doc typo - * [1785] Refactored the `aggregate_column` behavior to take advantage of the buildtime simple templating engine (refs #1002, #995) - * [1784] Added simple templating engine for behaviors (refs #1002) - * [1783] Added a !HowTo on writing behaviors (should have been published in the blog, but Posterous is having troubles with code samples) - * [1782] Improved namespace support in generated `TableMap` classes (refs #683) - * [1781] Introducing Model Namespaces (PHP 5.3 only) (WIP) (refs #683) - * [1780] Fixed generated `filterByXXX()` for string columns when using custom comparison - * [1779] Added `aggregate_column` behavior (refs #995) - * [1778] Refactored `ForeignKey` class in generator - * [1777] [doc] Fixed typo in CRUD chapter - * [1776] Fixed generated relation names for tables with symmetrical foreign keys (closes #968) - * [1775] Fixed generated relation names for tables with more than one self-referencing foreign key (closes #972) - * [1774] Fixed copy of foreign keys with hardcoded refPhpName in concrete inheritance behavior (closes #988) - * [1773] Changing runtime autoload strategy (closes #974): - * Using absolute path in core autoloading - * introducing `PropelAutoloader` for models - * removing the need for include path change in installation docs - * [1772] Added failed SQL query to `BasePeer` exception messages (closes #979) - * [1771] Documented the schema autosuggest feature in supported IDEs - * [1770] Expanded the schema XSD annotations for easier schema autocompletion - * [1769] showcasing link to XSD file in schema to allow autocompletion on NetBeans - * [1768] Fixed typos in `ModelCriteria` doc (closes #978) (patch from Frosty) - * [1767] Fixed typo in install doc (closes #576) - * [1766] Fixed schema DTD does not validate schemas without behaviors (closes #973) - * [1765] Added the ability to comment the generated SQL query from a Criteria (closes #970) - * [1764] Fixed limitation in schema size when transformation or external schema is included (closes #971) - * [1763] Fixed limitation in schema size when no transformation nor external schema is included (closes #971) - -== 2010-05-10: Version 1.5.1 == - - * [1759] Moved ModelWith runtime class to formatter directory - * [1758] Fixed warning with new StringReader - * [1757] Reduced console logging when building an up-to-date schema - * [1756] Parsing schemas as strings instead of files (closes #967) - * [1755] Reverting r1548 to allow inclusion of external schemas (refs #967) - * [1754] Documented custom defaultJoin type (refs #870) (closes #936) - * [1749] fix Criteria::addCond() example and php-doc (closes #964) - * [1748] fix Join::addCondition() php-doc (closes #963) - * [1747] Add getJoin() method to ModelCriteria (closes #961) - * [1745] Fixed auto_add_pk behavior when using separate schemas (closes #956) - * [1743] Refactored ModelCriteria::count() to allow query cache on counts - * [1742] Fixed propel-gen executable on windows (closes #942) - * [1741] disabled query cloning by default, you can enable it on a per query basis using keepQuery() (refs #953) - * [1740] Fixed shallow Criteria cloning (refs #953) - * [1739] Fixed overriding primary key in a new object (closes #960) - * [1738] Fixed generated joinXXX() methods used in secondary Criteria (closes #958) - * [1737] Fixed array hydration (refs #954, #959) - * [1736] Added unit test to demonstrate Array Hydration regression (refs #959) - * [1735] Fixed typo in MySQL DDL builder (closes #957) - * [1734] fixed doc typos (patch from Frosty) (closes #955) - * [1733] Refactored hydration schema - * removed circular dependency between Criteria and Formatter (refs #891) - * formatters now copy the necessary hydration data from the ModelCriteria - * Should improve memory handling in large resultsets - * removed PropelFormatter::setCriteria() and checkCriteria (refs #892) - * [1732] refactored on demand hydration (refs #954), removed ModelJoin storage in ModelWith - * [1731] Refactored Joined Array hydration (refs #954) - * [1730] Changed Propel::enableInstancePooling() return value - * [1729] Added a exception to explicit the limits of one-to-many joined hydration - * [1728] Refactored joined object hydration - * Now deals correctly with any join chain (refs #954) - * Faster for large resultsets and long join chains - * [1727] refactored BasePeer::doDelete() to handle table aliases and perform better (closes #949) - * [1726] Small Criteria optimization - * [1725] Fixed ModelCriteria::delete() fails when using true table alias (closes #949) - * [1724] Allowed Merging of Criteria objects to combien conditions with an OR (closes #951) - * [1723] Added the ability to reindex a collection (closes #851) - * [1722] Gave a public way to remove an alias (useful when merging Criterias) - * [1721] Added ModelCriteria::postUpdate() and ModelCriteria::postDelete() hooks (closes #945) - * [1720] Fixed issue with instance pooling and composite fkeys in peer classes (closes #924) - * [1719] Fixed E_STRICT warning in concrete table inheritance (closes #910) - * [1718] Added unit tests for PropelObjectCollection::toKeyValue(), and made it just a little smarter (closes #943) - * [1717] Fixed typo in Relationships doc closes #941) - * [1716] Fixed reverse task and validators (closes #928) - * [1715] Fixed phpDoc for Criteria::getCriterion() (closes #929) - * [1714] Fixed regression in orderBy() used in conjunction with ignoreCase (closes #946) - * [1712] Fixed concrete table inheritance with more than one level (closes #922) - * [1711] Fixed filterByXXX() when passed an explicit Criteria::EQUAL (closes #944) - * [1710] Fixed references to 1.4 pages in documentaton (closes #937) \ No newline at end of file diff --git a/airtime_mvc/library/propel/INSTALL b/airtime_mvc/library/propel/INSTALL deleted file mode 100644 index cb7effd160..0000000000 --- a/airtime_mvc/library/propel/INSTALL +++ /dev/null @@ -1,4 +0,0 @@ -I N S T A L L I N G P R O P E L -================================== - -See docs/guide/01-Installation.txt for detailed installation instructions. \ No newline at end of file diff --git a/airtime_mvc/library/propel/LICENSE b/airtime_mvc/library/propel/LICENSE deleted file mode 100644 index 1b4925a274..0000000000 --- a/airtime_mvc/library/propel/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2005-2010 Hans Lellelid, David Zuelke, Francois Zaninotto - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/airtime_mvc/library/propel/WHATS_NEW b/airtime_mvc/library/propel/WHATS_NEW deleted file mode 100644 index 9120f63ae7..0000000000 --- a/airtime_mvc/library/propel/WHATS_NEW +++ /dev/null @@ -1,807 +0,0 @@ -= What's new in Propel 1.5? = - -[[PageOutline]] - -First and foremost, don't be frightened by the long list of new features that follows. Propel 1.5 is completely backwards compatible with Propel 1.4 and 1.3, so there is no hidden cost to benefit from these features. If you didn't do it already, upgrade the propel libraries, rebuild your model, and you're done - your application can now use the Propel 1.5 features. - -== New Query API == - -This is the killer feature of Propel 1.5. It will transform the painful task of writing Criteria queries into a fun moment. - -=== Model Queries === - -Along Model and Peer classes, Propel 1.5 now generates one Query class for each table. These Query classes inherit from Criteria, but have additional abilities since the Propel generator has a deep knowledge of your schema. That means that Propel 1.5 advises that you use ModelQueries instead of raw Criteria. - -Model queries have smart filter methods for each column, and termination methods on their own. That means that instead of writing: - -{{{ -#!php -add(BookPeer::TITLE, 'War And Peace'); -$book = BookPeer::doSelectOne($c); -}}} - -You can write: - -{{{ -#!php -filterByTitle('War And Peace'); -$book = $q->findOne(); -}}} - -In addition, each Model Query class benefits from a factory method called `create()`, which returns a new instance of the query class. And the filter methods return the current query object. So it's even easier to write the previous query as follows: - -{{{ -#!php -filterByTitle('War And Peace'); - ->findOne(); -}}} - -The termination methods are `find()`, `findOne()`, `count()`, `paginate()`, `update()`, and `delete()`. They all accept a connection object as last parameter. - -Remember that a Model Query IS a Criteria. So your Propel 1.4 code snippets still work: - -{{{ -#!php -addJoin(BookPeer::AUTHOR_ID, AuthorPeer::ID); - ->add(AuthorPeer::LAST_NAME, 'Tolstoi') - ->addAscendingOrderByColumn(BookPeer::TITLE) - ->findOne(); -}}} - -But you will soon see that it's faster to use the generated methods of the Model Query classes: - -{{{ -#!php -useAuthorQuery(); - ->filterByLastName('Tolstoi') - ->endUse() - ->orderByTitle() - ->findOne(); -}}} - -That's right, you can embed a query into another; Propel guesses the join to apply from the foreign key declared in your schema. - -That makes it very easy to package your own custom model logic into reusable query methods. After a while, your code can easily look like the following: - -{{{ -#!php -filterByPublisher($publisher) - ->cheap() - ->recent() - ->useAuthorQuery(); - ->stillAlive() - ->famous() - ->endUse() - ->orderByTitle() - ->find(); -}}} - -The Model Queries can understand `findByXXX()` method calls, where `'XXX'` is the phpName of a column of the model. That answers one of the most common customization need: - -{{{ -#!php -findOneByTitle('War And Peace'); -}}} - -Eventually, these Query classes will replace the Peer classes; you should place all the code necessary to request or alter Model object in these classes. The Criteria/Peer way of doing queries still work exactly the same as in previous Propel versions, so your existing applications won't suffer from this update. - -'''Tip''': Incidentally, if you use an IDE with code completion, you will see that writing a query has never been so easy. - -=== Collections And On-Demand Hydration === - -The `find()` method of generated Model Query objects returns a `PropelCollection` object. You can use this object just like an array of model objects, iterate over it using `foreach`, access the objects by key, etc. - -{{{ -#!php -limit(5) - ->find(); // $books is a PropelCollection object -foreach ($books as $book) { - echo $book->getTitle(); -} -}}} - -Propel also returns a `PropelCollection` object instead of an array when you use a getter for a one-to-many relationship: - -{{{ -#!php -getBooks(); // $books is a PropelCollection object -}}} - -If your code relies on list of objects being arrays, you will need to update it a little. The `PropelCollection` object provides a method for most common array operations: - -{{{ -Array | Collection object ------------------------- | ----------------------------------------- -foreach($books as $book) | foreach($books as $book) -count($books) | count($books) or $books->count() -$books[]= $book | $books[]= $book or $books->append($book) -$books[0] | $books[0] or $books->getFirst() -$books[123] | $books[123] or $books->offsetGet(123) -unset($books[1]) | unset($books[1]) or $books->remove(1) -empty($books) | $books->isEmpty() -in_array($book, $books) | $books->contains($book) -array_pop($books) | $books->pop() -etc. -}}} - -'''Warning''': `empty($books)` always returns false when using a collection, even on a non-empty one. This is a PHP limitation. Prefer `$books->isEmpty()`, or `count($books)>0`. - -'''Tip''': If you can't afford updating your code to support collections instead of arrays, you can still ask Propel to generate 1.4-compatible model objects by overriding the `propel.builder.object.class` setting in your `build.properties`, as follows: - -{{{ -#!ini -propel.builder.object.class = builder.om.PHP5ObjectNoCollectionBuilder -}}} - -The `PropelCollection` class offers even more methods that you will soon use a lot: - -{{{ -#!php -getArrayCopy() // get the array inside the collection -$books->toArray() // turn all objects to associative arrays -$books->getPrimaryKeys() // get an array of the primary keys of all the objects in the collection -$books->getModel() // return the model of the collection, e.g. 'Book' -}}} - -Another advantage of using a collection instead of an array is that Propel can hydrate model objects on demand. Using this feature, you'll never fall short of memory again. Available through the `setFormatter()` method of Model Queries, on-demand hydration is very easy to trigger: - -{{{ -#!php -limit(50000) - ->setFormatter(ModelCriteria::FORMAT_ON_DEMAND) // just add this line - ->find(); -foreach ($books as $book) { - echo $book->getTitle(); -} -}}} - -In this example, Propel will hydrate the `Book` objects row by row, after the `foreach` call, and reuse the memory between each iteration. The consequence is that the above code won't use more memory when the query returns 50,000 results than when it returns 5. - -`ModelCriteria::FORMAT_ON_DEMAND` is one of the many formatters provided by the new Query objects. You can also get a collection of associative arrays instead of objects, if you don't need any of the logic stored in your model object, by using `ModelCriteria::FORMAT_ARRAY`. - -The [wiki:Users/Documentation/1.5/ModelCriteria documentation] describes each formatter, and how to use it. - -=== Model Criteria === - -Generated Model Queries inherit from `ModelCriteria`, which extends your good old `Criteria`, and adds a few useful features. Basically, a `ModelCriteria` is a `Criteria` linked to a Model; by using the information stored in the generated TableMaps at runtime, `ModelCriteria` offers powerful methods to simplify the process of writing a query. - -For instance, `ModelCriteria::where()` provides similar functionality to `Criteria::add()`, except that its [http://www.php.net/manual/en/pdostatement.bindparam.php PDO-like syntax] removes the burden of Criteria constants for comparators. - -{{{ -#!php -where('Book.Title LIKE ?', 'War And P%') - ->findOne(); -}}} - -Propel analyzes the clause passed as first argument of `where()` to determine which escaping to use for the value passed as second argument. In the above example, the `Book::TITLE` column is declared as `VARCHAR` in the schema, so Propel will bind the title as a string. - -The `where()` method can also accept more complex clauses. You just need to explicit every column name as `'ModelClassName.ColumnPhpName'`, as follows: - -{{{ -#!php -where('UPPER(Book.Title) LIKE ?', 'WAR AND P%') - ->where('(Book.Price * 100) <= ?', 1500) - ->findOne(); -}}} - -Another great addition of `ModelCriteria` is the `join()` method, which just needs the name of a related model to build a JOIN clause: - -{{{ -#!php -join('Book.Author') - ->where('CONCAT(Author.FirstName, " ", Author.LastName) = ?', 'Leo Tolstoi') - ->find(); -}}} - -`ModelCriteria` has a built-in support for table aliases, which allows to setup a query using two joins on the same table, which was not possible with the `Criteria` object: - -{{{ -#!php -join('b.Author a') // use 'a' as an alias for 'Author' in the query - ->where('CONCAT(a.FirstName, " ", a.LastName) = ?', 'Leo Tolstoi') - ->find(); -}}} - -This syntax probably looks familiar, because it is very close to SQL. So you probably won't need long to figure out how to write a complex query with it. The documentation offers [wiki:Users/Documentation/1.5/ModelCriteria an entire chapter] dedicated to the new `ModelCriteria` class. Make sure you read it to see the power of this new query API. - -=== Criteria Enhancements === - -Generated queries and ModelQueries are not the only ones to have received a lot of attention in Propel 1.5. The Criteria object itself sees a few improvements, that will ease the writing of queries with complex logic. - -`Criteria::addOr()` operates the way you always expected it to. For instance, in Propel 1.4, `addOr()` resulted in a SQL `AND` if called on a column with no other condition: - -{{{ -#!php -add(BookPeer::TITLE, '%Leo%', Criteria::LIKE); -$c->addOr(BookPeer::TITLE, '%Tolstoi%', Criteria::LIKE); -// translates in SQL as -// WHERE (book.TITLE LIKE '%Leo%' OR book.TITLE LIKE '%Tolstoi%') - -// addOr() used to fail on a column with no existing condition -$c = new Criteria(); -$c->add(BookPeer::TITLE, '%Leo%', Criteria::LIKE); -$c->addOr(BookPeer::ISBN, '1234', Criteria::EQUAL); -// translates in SQL as -// WHERE book.TITLE LIKE '%Leo%' AND book.ISBN = '1234' -}}} - -This is fixed in Propel 1.5. This means that you don't need to call upon the `Criterion` object for a simple OR clause: - -{{{ -#!php -add(BookPeer::TITLE, '%Leo%', Criteria::LIKE); -$c->addOr(BookPeer::ISBN, '1234', Criteria::EQUAL); -// translates in SQL as -// WHERE (book.TITLE LIKE '%Leo%' OR book.ISBN = '1234') - -// and it's much faster to write than -$c = new Criteria(); -$c1 = $c->getNewCriterion(BookPeer::TITLE, '%Leo%', Criteria::LIKE); -$c2 = $c->getNewCriterion(BookPeer::ISBN, '1234', Criteria::EQUAL); -$c1->addOr($c2); -$c->add($c1); -}}} - -`add()` and `addOr()` only allow simple logical operations on a single condition. For more complex logic, Propel 1.4 forced you to use Criterions again. This is no longer the case in Propel 1.5, which provides a new `Criteria::combine()` method. It expects an array of named conditions to be combined, and an operator. Use `Criteria::addCond()` to create a condition, instead of the usual `add()`: - -{{{ -#!php -addCond('cond1', BookPeer::TITLE, 'Foo', Criteria::EQUAL); // creates a condition named 'cond1' -$c->addCond('cond2', BookPeer::TITLE, 'Bar', Criteria::EQUAL); // creates a condition named 'cond2' -$c->combine(array('cond1', 'cond2'), Criteria::LOGICAL_OR); // combine 'cond1' and 'cond2' with a logical OR -// translates in SQL as -// WHERE (book.TITLE = 'Foo' OR book.TITLE = 'Bar'); -}}} - -`combine()` accepts more than two conditions at a time: -{{{ -#!php -addCond('cond1', BookPeer::TITLE, 'Foo', Criteria::EQUAL); -$c->addCond('cond2', BookPeer::TITLE, 'Bar', Criteria::EQUAL); -$c->addCond('cond3', BookPeer::TITLE, 'FooBar', Criteria::EQUAL); -$c->combine(array('cond1', 'cond2', 'cond3'), Criteria::LOGICAL_OR); -// translates in SQL as -// WHERE ((book.TITLE = 'Foo' OR book.TITLE = 'Bar') OR book.TITLE = 'FooBar'); -}}} - -`combine()` itself can return a named condition to be combined later. So it allows for any level of logical complexity: - -{{{ -#!php -addCond('cond1', BookPeer::TITLE, 'Foo', Criteria::EQUAL); -$c->addCond('cond2', BookPeer::TITLE, 'Bar', Criteria::EQUAL); -$c->combine(array('cond1', 'cond2'), Criteria::LOGICAL_OR, 'cond12'); - -$c->addCond('cond3', BookPeer::ISBN, '1234', Criteria::EQUAL); -$c->addCond('cond4', BookPeer::ISBN, '4567', Criteria::EQUAL); -$c->combine(array('cond3', 'cond4'), Criteria::LOGICAL_OR, 'cond34'); - -$c->combine(array('cond12', 'cond34'), Criteria::LOGICAL_AND); - -// WHERE (book.TITLE = 'Foo' OR book.TITLE = 'Bar') -// AND (book.ISBN = '1234' OR book.ISBN = '4567'); -}}} - -The new `combine()` method makes it much easier to handle logically complex criterions. The good news is that if your application code already uses the old Criterion way, it will continue to work with Propel 1.5 as all these changes are backwards compatible. - -Of course, since Model Queries extend Criteria, this new feature is available for all your queries, with a slightly different syntax, in order to support column phpNames: - -{{{ -#!php -condition('cond1', 'Book.Title = ?', 'Foo') - ->condition('cond2', 'Book.Title = ?', 'Bar') - ->combine(array('cond1', 'cond2'), Criteria::LOGICAL_OR, 'cond12') - ->condition('cond3', 'Book.ISBN = ?', '1234') - ->condition('cond4', 'Book.ISBN = ?', '4567') - ->combine(array('cond3', 'cond4'), Criteria::LOGICAL_OR, 'cond34') - ->combine(array('cond12', 'cond34'), Criteria::LOGICAL_AND) - ->find(); -// WHERE (book.TITLE = 'Foo' OR book.TITLE = 'Bar') -// AND (book.ISBN = '1234' OR book.ISBN = '4567'); -}}} - -== Many-to-Many Relationships == - -At last, Propel generates the necessary methods to retrieve related objects in a many-to-many relationship. Since this feature is often needed, many developers already wrote these methods themselves. To avoid method collision, the generation of many-to-many getters is therefore optional. - -All you have to do is to add the `isCrossRef` attribute to the cross reference table, and rebuild your model. For instance, if a `User` has many `Groups`, and the `Group` has many `Users`, the many-to-many relationship is materialized by a `user_group` cross reference table: - -{{{ -#!xml -
- - -
- - - - -
- - - - - - - - - - -
-}}} - -Then, both end of the relationship see the other end through a one-to-many relationship. That means that you can deal with related objects just like you normally do, without ever creating instances of the cross reference object: - -{{{ -#!php -setName('John Doe'); -$group = new Group(); -$group->setName('Anonymous'); -// relate $user and $group -$user->addGroup($group); -// save the $user object, the $group object, and a new instance of the UserGroup class -$user->save(); - -// retrieve objects as if they shared a one-to-many relationship -$groups = $user->getGroups(); - -// the model query also features a smart filter method for the relation -$groups = GroupPeer::create() - ->filterByUser($user) - ->find(); -}}} - -The syntax should be no surprise, since it's the same as the one for one-to-many relationships. Find more details about many-to-many relationships in the [wiki:Users/Documentation/1.5/Relationships relationships documentation]. - -== New Behaviors == - -The new behavior system, introduced in Propel 1.4, starts to unleash its true power with this release. Three new behaviors implement the most common customizations of object models: `nested_sets`, `sluggable`, and `sortable`. - -=== Nested Set Behavior === - -Using the `treeMode` attribute in a schema, you could turn a Propel model into a hierarchical data store starting with Propel 1.3. This method is now deprecated in favor of a new `nested_set` behavior, that does eactly the same thing, but in a more extensible and effective way. - -The main difference between the two implementations is performance. On the first levels of a large tree, the Propel 1.3 implementation of Nested sets used to consume a very large amount of memory and CPU to retrieve the siblings or the children of a given node. This is no longer true with the new behavior. - -This performance boost comes at a small price: you must add a new "level" column to your nested set models, and let the behavior update this column for the whole tree. - -For instance, if you used nested sets to keep a list of categories, the schema used to look like: - -{{{ -#!xml - - - - - -
-}}} - -The upgrade path is then pretty straightforward: - -1 - Update the schema, by removing the `treeMode` and `nestedSet` attributes and adding the `nested_set` behavior and the `tree_level` column: - -{{{ -#!xml - - - - - - - - - - - -
-}}} - -2 - Rebuild the model - -3 - Change the parent class of your model classes (object and peer) that used the nested set `treeMode`: - -{{{ -#!php - - - - - - - - -}}} - -Now, every time you save a new `Post` object, Propel will compose its slug according to the pattern defined in the behavior parameter and save it in an additional `slug` column: - -{{{ -#!php -setTitle('How Is Life On Earth?'); -$post1->setContent('Lorem Ipsum...'); -$post1->save(); -echo $post1->getSlug(); // '/posts/how-is-life-on-earth' -}}} - -Propel replaces every name enclosed between brackets in the slug pattern by the related column value. It also cleans up the string to make it URL-compatible, and ensures that it is unique. - -If you use this slug in URLs, you will need to retrieve a `Post` object based on it. This is just a one-liner: - -{{{ -#!php -findOneBySlug('/posts/how-is-life-on-earth'); -}}} - -There are many ways to customize the `sluggable` behavior to match the needs of your applications. Check the new [wiki:Users/Documentation/1.5/Behaviors/sluggable sluggable behavior documentation] for more details. - -=== Concrete Table Inheritance Behavior === - -Propel has offered [wiki:Users/Documentation/1.5/Inheritance#SingleTableInheritance Single Table Inheritance] for a long time. But for complex table inheritance needs, it is necessary to provide [http://martinfowler.com/eaaCatalog/concreteTableInheritance.html Concrete Table Inheritance]. Starting with Propel 1.5, this inheritance implementation is supported through the new `concrete_inheritance` behavior. - -In the following example, the `article` and `video` tables use this behavior to inherit the columns and foreign keys of their parent table, `content`: - -{{{ -#!xml - - - - - - - -
- - - -
- - - - - -
- - - - - -
-}}} - -The behavior copies the columns of the parent table to the child tables. That means that the generated `Article` and `Video` models have a `Title` property and a `Category` relationship: - -{{{ -#!php -setName('Movie'); -$cat->save(); -// create a new Article -$art = new Article(); -$art->setTitle('Avatar Makes Best Opening Weekend in the History'); -$art->setCategory($cat); -$art->setContent('With $232.2 million worldwide total, Avatar had one of the best-opening weekends in the history of cinema.'); -$art->save(); -// create a new Video -$vid = new Video(); -$vid->setTitle('Avatar Trailer'); -$vid->setCategory($cat); -$vid->setResourceLink('http://www.avatarmovie.com/index.html') -$vid->save(); -}}} - -If Propel stopped there, the `concrete_inheritance` behavior would only provide a shorcut to avoid repeating tags in the schema. But wait, there is more: the `Article` and `Video` classes actually extend the `Content` class: - -{{{ -#!php -getCategory()->getName(); - } -} -echo $art->getCategoryName(); // 'Movie' -echo $vid->getCategoryName(); // 'Movie' -}}} - -And the true power of Propel's Concrete Table Inheritance is that every time you save an `Article` or a `Video` object, Propel saves a copy of the `title` and `category_id` columns in a `Content` object. Consequently, retrieving objects regardless of their child type becomes very easy: - -{{{ -#!php -find(); -foreach ($conts as $content) { - echo $content->getTitle() . "(". $content->getCategoryName() ")/n"; -} -// Avatar Makes Best Opening Weekend in the History (Movie) -// Avatar Trailer (Movie) -}}} - -The resulting relational model is denormalized - in other terms, data is copied across tables - but the behavior takes care of everything for you. That allows for very effective read queries on complex inheritance structures. - -Check out the brand new [wiki:Users/Documentation/1.5/Inheritance#ConcreteTableInheritance Inheritance Documentation] for more details on using and customizing this behavior. - -=== Sortable Behavior === - -Have you ever enhanced a Propel Model to give it the ability to move up or down in an ordered list? The `sortable` behavior, new in Propel 1.5, offers exactly that... and even more. - -As usual for behaviors, activate `sortable` in your `schema.yml`: - -{{{ -#!xml - - - - - - - - - - - -
-}}} - -Then rebuild your model, and you're done. You have just created an ordered task list for users: - -{{{ -#!php -setTitle('Wash the dishes'); -$t1->setUser($paul); -$t1->save(); -echo $t1->getRank(); // 1 -$t2 = new Task(); -$t2->setTitle('Do the laundry'); -$t2->setUser($paul); -$t2->save(); -echo $t2->getRank(); // 2 -$t3 = new Task(); -$t3->setTitle('Rest a little'); -$t3->setUser($john); -$t3->save() -echo $t3->getRank(); // 1, because John has his own task list - -// retrieve the tasks -$allPaulsTasks = TaskPeer::retrieveList($scope = $paul->getId()); -$allJohnsTasks = TaskPeer::retrieveList($scope = $john->getId()); -$t1 = TaskPeer::retrieveByRank($rank = 1, $scope = $paul->getId()); -$t2 = $t1->getNext(); -$t2->moveUp(); -echo $t2->getRank(); // 1 -echo $t1->getRank(); // 2 -}}} - -This new behavior is fully unit tested and very customizable. Check out all you can do with `sortable` in the [wiki:Users/Documentation/1.5/Behaviors/sortable sortable behavior documentation]. - -=== Timestampable Behavior === - -This behavior is not new, since it was introduced in Propel 1.4. However, with the introduction of model queries, it gains specific query methods that will ease your work when retrieving objects based on their update date: - -{{{ -#!php -recentlyUpdated() // adds a minimum value for the update date - ->lastUpdatedFirst() // orders the results by descending update date - ->find(); -}}} - -== Better `toArray()` == - -When you call `toArray()` on a model object, you can now ask for the related objects: - -{{{ -#!php -toArray($keyType = BasePeer::TYPE_COLNAME, $includeLazyLoadColumns = true, $includeForeignObjects = true); -print_r($bookArray); - => array( - 'Id' => 123, - 'Title' => 'War And Peace', - 'ISBN' => '3245234535', - 'AuthorId' => 456, - 'PublisherId' => 567 - 'Author' => array( - 'Id' => 456, - 'FirstName' => 'Leo', - 'LastName' => 'Tolstoi' - ), - 'Publisher' => array( - 'Id' => 567, - 'Name' => 'Penguin' - ) - ) -}}} - -Only the related objects that were already hydrated appear in the result, so `toArray()` never issues additional queries. Together with the ability to return arrays instead of objects when using `PropelQuery`, this addition will help to debug and optimize model code. - -== Better Oracle Support == - -The Oracle adapter for the generator, the reverse engineering, and the runtime components have been greatly improved. This should provide an easier integration of Propel with an Oracle database. - -== Code Cleanup == - -=== Directory Structure Changes === - -The organization of the Propel runtime and generator code has been reworked, in order to make navigation across Propel classes easier for developers. End users should see no difference, apart if your `build.properties` references alternate builder classes in the Propel code. In that case, you will need to update your `build.properties` with the new paths. For instance, a reference to: - -{{{ -#!ini -propel.builder.peer.class = propel.engine.builder.om.php5.PHP5PeerBuilder -}}} - -Must be changed to: - -{{{ -#!ini -propel.builder.peer.class = builder.om.PHP5PeerBuilder -}}} - -Browse the Propel generator directory structure to find the classes you need. - -=== DebugPDO Refactoring === - -To allow custom connection handlers, the debug code that was written in the `DebugPDO` class has been moved to `PropelPDO`. The change is completely backwards compatible, but makes it easier to connect to a database without using PDO. - -During the change, the [wiki:Users/Documentation/1.5/07-Logging documentation about Propel logging and debugging features] was rewritten and should now be clearer. - -== propel-gen Script Modifications == - -The `propel-gen` script no longer requires a path to the project directory if you call it from a project directory. That means that calling `propel-gen` with a single argument defaults to expecting a task name: - -{{{ -> cd /path/to/my/project -> propel-gen reverse -}}} - -By default, the `propel-gen` command called without a task name defaults to the `main` task (and builds the model, the SQL, and the generation). - -Note: The behavior of the `propel-gen` script when called with one parameter differs from what it used to be in Propel 1.4, where the script expected a path in every situation. So the following syntax won't work anymore: - -{{{ -> propel-gen /path/to/my/project -}}} - -Instead, use either: - -{{{ -> cd /path/to/my/project -> propel-gen -}}} - -or: - -{{{ -> propel-gen /path/to/my/project main -}}} - -== License Change == - -Propel is more open-source than ever. To allow for an easier distribution, the open-source license of the Propel library changes from LGPL3 to MIT. This [http://en.wikipedia.org/wiki/MIT_License MIT License] is also known as the X11 License. - -This change removes a usage restriction enforced by the LGPL3: you no longer need to release any modifications to the core Propel source code under a LGPL compatible license. - -Of course, you still have the right to use, copy, modify, merge, publish, distribute, sublicense, and/or sell Propel. In other terms, you can do whatever you want with the Propel code, without worrying about the license, as long as you leave the LICENSE file within. - -== Miscellaneous == - - * Generated model classes now offer a `fromArray()` and a `toArray()` method by default. This feature existed before, but was disabled by default in the `build.properties`. The `addGenericAccessors` and `addGenericMutators` settings are therefore enabled by default in Propel 1.5. - * You can now prefix all the table names of a database schema by setting the `tablePrefix` attribute of the `` tag. - * The `addIncludes` build property introduced in Propel 1.4 is now set to `false` by default. That means that the runtime autoloading takes care of loading all classes at runtime, including generated Base classes. - * A bugfix in the name generator for related object getter in tables with two foreign keys related to the same table may have introduced problems in applications relying on old (wrong) names. Check your generated base model classes for the `getXXXrelatedByYYY()` and modify the application code relying on it if it exists. A good rule of thumb to avoid problems in such case is to name your relations by using the `phpName` and `refPhpName` attributes in the `` element in the schema. - * XSL transformation of your schemas is no longer enabled by default. Turn the `propel.schema.transform` setting to `true` in your `build.properties` to enable it again. This change removes the requirement on the libxslt extention for Propel. - * `ModelObject::addSelectColumns()` now accepts an additional parameter to allow the use of table aliases - * Added `ModelObject::clear()` to reinitialize a model object - * Added `ModelObject::isPrimaryKeyNull()` method to check of an object was hydrated with no values (in case of a left join) - * Added `Criteria::addSelectModifier($modifier)` to add more than one select modifier (e.g. 'SQL_CALC_FOUND_ROWS', 'HIGH_PRIORITY', etc.) - * Added `PeerClass::addGetPrimaryKeyFromRow()` to retrieve the Primary key from a result row - * Added a new set of constants in the generated Peer class to list column names without the table name (this is `BasePeer::TYPE_RAW_COLNAME`) - * Removed references to Creole in the code (Propel uses PDO instead of Creole since version 1.3) \ No newline at end of file diff --git a/airtime_mvc/library/propel/contrib/dbd2propel/dbd2propel.xsl b/airtime_mvc/library/propel/contrib/dbd2propel/dbd2propel.xsl deleted file mode 100644 index 852af4acec..0000000000 --- a/airtime_mvc/library/propel/contrib/dbd2propel/dbd2propel.xsl +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - - - true - - - - - - - - - - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TIMESTAMP - LONGVARCHAR - BOOLEAN - BLOB - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - restrict - cascade - setnull - restrict - - - -
diff --git a/airtime_mvc/library/propel/contrib/dbd2propel/transform.php b/airtime_mvc/library/propel/contrib/dbd2propel/transform.php deleted file mode 100644 index 129f19f852..0000000000 --- a/airtime_mvc/library/propel/contrib/dbd2propel/transform.php +++ /dev/null @@ -1,21 +0,0 @@ -load('model.xml'); - -// load the transformation stylesheet -$xsl = new DOMDocument; -$xsl->load('dbd2propel.xsl'); - -$proc = new XSLTProcessor(); -// attach the xsl rules -$proc->importStyleSheet($xsl); - -$schema_xml = $proc->transformToXML($xml); - -file_put_contents('schema.xml', $schema_xml); diff --git a/airtime_mvc/library/propel/contrib/pat/patForms.php b/airtime_mvc/library/propel/contrib/pat/patForms.php deleted file mode 100644 index a1c66a135d..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms.php +++ /dev/null @@ -1,2784 +0,0 @@ - - * @author gERD Schaufelberger - * @author Stephan Schmidt - * @copyright 2003-2004 PHP Application Tools - * @license LGPL - * @link http://www.php-tools.net - */ - -/** - * set the include path - */ -if ( !defined( 'PATFORMS_INCLUDE_PATH' ) ) { - define( 'PATFORMS_INCLUDE_PATH', dirname( __FILE__ ). '/patForms' ); -} - -/** - * needs helper methods of patForms_Element - */ -include_once PATFORMS_INCLUDE_PATH . "/Element.php"; - -/** - * error definition: renderer base class file (renderers/_base.php) could not - * be found. - * - * @see patForms::_createModule() - */ -define( "PATFORMS_ERROR_NO_MODULE_BASE_FILE", 1001 ); - -/** - * error definition: the specified renderer could not be found. - * - * @see patForms::_createModule() - */ -define( "PATFORMS_ERROR_MODULE_NOT_FOUND", 1002 ); - -/** - * error definition: the element added via the {@link patForms::addElement()} - * is not an object. Use the {@link patForms::createElement()} method to - * create an element object. - * - * @see patForms::addElement() - * @see patForms::createElement() - */ -define( "PATFORMS_ERROR_ELEMENT_IS_NO_OBJECT", 1003 ); - -/** - * error definition: generic unexpected error. - */ -define( "PATFORMS_ERROR_UNEXPECTED_ERROR", 1004 ); - -/** - * element does not exist - */ -define( "PATFORMS_ERROR_ELEMENT_NOT_FOUND", 1012 ); - -/** - * renderer object has not been set - if you want to render the form, you have to - * set a renderer object via the {@link patForms::setRenderer()} method. To create - * a renderer, use the {@link patForms::createRenderer()} method. - * - * @see patForms::setRenderer() - * @see patForms::createRenderer() - */ -define( "PATFORMS_ERROR_NO_RENDERER_SET", 1013 ); - -/** - * invalid renderer - * - * @see createRenderer() - */ -define( "PATFORMS_ERROR_INVALID_RENDERER", 1014 ); - -/** - * invalid method - * - * @see setMethod() - */ -define( "PATFORMS_ERROR_INVALID_METHOD", 1015 ); - -/** - * Given parameter is not a boolean value - */ -define( "PATFORMS_ERROR_PARAMETER_NO_BOOL", 1016 ); - -/** - * Given Static property does not exist - */ -define( "PATFORMS_ERROR_NO_STATIC_PROPERTY", 1017 ); - -/** - * Unknown event - */ -define( "PATFORMS_ERROR_UNKNOWN_EVENT", 1018 ); - -/** - * Invalid event handler - */ -define( "PATFORMS_ERROR_INVALID_HANDLER", 1019 ); - -/** - * Event exists - */ -define( 'PATFORMS_NOTICE_EVENT_ALREADY_REGISTERED', 1020 ); - -/** - * Invalid storage container - */ -define( 'PATFORMS_ERROR_INVALID_STORAGE', 1021 ); - -define( 'PATFORMS_NOTICE_ARRAY_EXPECTED', 1022 ); - -define( 'PATFORMS_NOTICE_ATTRIBUTE_NOT_SUPPORTED', 1023 ); - -define( 'PATFORMS_NOTICE_INVALID_OPTION', 1024 ); - -define( 'PATFORMS_ERROR_ATTRIBUTE_REQUIRED', 1025 ); - -define( 'PATFORMS_ERROR_CAN_NOT_VERIFY_FORMAT', 1026 ); - -define( 'PATFORMS_ERROR_METHOD_FOR_MODE_NOT_AVAILABLE', 1027 ); - - -/** - * errors apply on translating errors matching current locale settings - */ -define( 'PATFORMS_NOTICE_VALIDATOR_ERROR_LOCALE_UNDEFINED', 1028 ); -define( 'PATFORMS_WARNING_VALIDATOR_ERROR_UNDEFINED', 1029 ); - -/** - * apply the rule before the built-in validation - */ -define( 'PATFORMS_RULE_BEFORE_VALIDATION', 1 ); - -/** - * apply the rule after the built-in validation - */ -define( 'PATFORMS_RULE_AFTER_VALIDATION', 2 ); - -/** - * apply the rule before AND after the built-in validation - */ -define( 'PATFORMS_RULE_BOTH', 3 ); - -/** - * attach the observer to the elements - */ -define( 'PATFORMS_OBSERVER_ATTACH_TO_ELEMENTS', 1 ); - -/** - * attach the observer to the form - */ -define( 'PATFORMS_OBSERVER_ATTACH_TO_FORM', 2 ); - -/** - * attach the observer to the form and the elements - */ -define( 'PATFORMS_OBSERVER_ATTACH_TO_BOTH', 3 ); - -/** - * group values should stay nested - */ -define('PATFORMS_VALUES_NESTED', 0); - -/** - * group values should be flattened - */ -define('PATFORMS_VALUES_FLATTENED', 1); - -/** - * group values should be prefixed - */ -define('PATFORMS_VALUES_PREFIXED', 2); - -/** - * Static patForms properties - used to emulate pre-PHP5 static properties. - * - * @see setStaticProperty() - * @see getStaticProperty() - */ -$GLOBALS['_patForms'] = array( - 'format' => 'html', - 'locale' => 'C', - 'customLocales' => array(), - 'autoFinalize' => true, - 'defaultAttributes' => array(), -); - -/** - * patForms form manager class - serialize form elements into any given output format - * using element classes, and build the output via renderer classes. - * - * @package patForms - * @author Sebastian Mordziol - * @author gERD Schaufelberger - * @author Stephan Schmidt - * @copyright 2003-2004 PHP Application Tools - * @license LGPL - * @link http://www.php-tools.net - * @version 0.9.0alpha - * @todo check the clientside functionality, as that can lead to broken pages - */ -class patForms -{ - /** - * javascript that will displayed only once - * - * @access private - * @var array - */ - var $globalJavascript = array(); - - /** - * javascript that will be displayed once per instance - * - * @access private - * @var array - */ - var $instanceJavascript = array(); - - /** - * stores the mode for the form. It defaults to 'default', and is only overwritten if - * set specifically. It is passed on to any elements you create. - * - * @access private - * @see setMode() - */ - var $mode = 'default'; - - /** - * XML entities - * - * @access private - * @see toXML() - * @todo This is redundant to the Element's xmlEntities property - find a way to keep this in one place - */ - var $xmlEntities = array( - "<" => "<", - ">" => ">", - "&" => "&", - "'" => "'", - '"' => """ - ); - - /** - * stores the format for the element. It defaults to 'html', and is only overwritten if - * set specifically. It is passed on to any elements you create. - * - * @access private - * @see setFormat() - */ - var $format = 'html'; - - /** - * stores the flag telling the form whether it has been submitted - this is passed on to any - * elements you create. - * - * @access private - * @see setSubmitted() - */ - var $submitted = false; - - /** - * stores the element objects of this form. - * @access private - * @see addElement() - */ - var $elements = array(); - - /** - * stores the current element count for this form, used to generate the ids for each element - * @access private - * @see getElementId() - */ - var $elementCounter = 0; - - /** - * stores a renderer - * @access private - * @see setRenderer(), renderForm() - */ - var $renderer = null; - - /** - * stores the locale to use when adding validation errors for the whole form. - * - * @access private - * @var string $locale - * @see setLocale() - */ - var $locale = 'C'; - - /** - * stores custom locale - * - * @access private - * @var array - * @see setLocale() - */ - var $customLocales = array(); - - /** - * stores the element name - * @access private - * @see getElementName() - */ - var $elementName = 'Form'; - - /** - * flag to indicate, whether form should be validated automatically - * by renderForm() - * - * @access private - * @var string - * @see setAutoValidate(), renderForm() - */ - var $autoValidate = false; - - /** - * name of the variable that indicates, whether the form has - * been submitted. - * - * @access private - * @var string - * @see setAutoValidate() - */ - var $submitVar = null; - - /** - * event handlers - * - * @access private - * @var array - * @see registerEventHandler() - * @see registerEvent() - */ - var $_eventHandler = array(); - - /** - * events that can be triggered - * - * @access private - * @var array - * @see registerEventHandler() - * @see triggerEvent() - * @see registerEvent() - */ - var $_validEvents = array( 'onInit', 'onValidate', 'onSubmit', 'onError', 'onSuccess' ); - - /** - * Stores whether the current form has been validated - * - * @access private - */ - var $validated = false; - - /** - * Stores whether the current form is valid or not (after the - * validation process) - * - * @access private - */ - var $valid = null; - - /** - * Stores the names of all static properties that patForms will use as defaults - * for the properties with the same name on startup. - * - * @access private - */ - var $staticProperties = array( - 'format' => 'setFormat', - 'autoFinalize' => 'setAutoFinalize', - 'locale' => 'setLocale', - ); - - /** - * Stores the flag for the autoFinalize feature - * - * @access private - */ - var $autoFinalize = true; - - /** - * custom validation rules - * - * @access private - * @var array - */ - var $_rules = array(); - - /** - * define error codes an messages for the form - * - * Will be set by validation rules that have been - * added to the form. - * - * @access private - * @var array $validatorErrorCodes - */ - var $validatorErrorCodes = array(); - - /** - * stores any validation errors that can occurr during the - * form's validation process. - * - * @access private - * @var array $validationErrors - */ - var $validationErrors = array(); - - /** - * next error offset for rules - * @access private - * @var integer - */ - var $nextErrorOffset = 1000; - - /** - * Attributes of the form - needed to generate the form tag - * - * @access private - * @var array $attributes - * @see setAttribute() - */ - var $attributes = array(); - - /** - * Attribute definition for the form - defines which attribute the form - * itself supports. - * - * @access public - */ - var $attributeDefinition = array( - - 'id' => array( - 'required' => false, - 'format' => 'string', - 'outputFormats' => array( 'html' ), - ), - - 'name' => array( - 'required' => true, - 'format' => 'string', - 'outputFormats' => array( 'html' ), - ), - - 'method' => array( - 'required' => true, - 'format' => 'string', - 'default' => 'post', - 'outputFormats' => array( 'html' ), - ), - - 'action' => array( - 'required' => true, - 'format' => 'string', - 'outputFormats' => array( 'html' ), - ), - - 'accept' => array( - 'required' => false, - 'format' => 'string', - 'outputFormats' => array( 'html' ), - ), - - 'accept-charset' => array( - 'required' => false, - 'format' => 'string', - 'outputFormats' => array( 'html' ), - ), - - 'enctype' => array( - 'required' => false, - 'format' => 'string', - 'outputFormats' => array( 'html' ), - ), - - 'onreset' => array( - 'required' => false, - 'format' => 'string', - 'outputFormats' => array( 'html' ), - ), - - 'onsubmit' => array( - 'required' => false, - 'format' => 'string', - 'outputFormats' => array( 'html' ), - ), - - 'target' => array( - 'required' => false, - 'format' => 'string', - 'outputFormats' => array( 'html' ), - ), - ); - - /** - * Stores all available patForms options - these are inherited by all elements - * and their dependencies, like rules. - * - * Short option overview: - * - * - scripts: enable client script integration - * - * @access public - */ - var $options = array( - - 'scripts' => array( - 'enabled' => true, - 'params' => array(), - ), - - ); - - /** - * observers of the form - * - * @access private - * @var array - */ - var $observers = array(); - - /** - * Sets the default attributes that will be inherited by any elements you add to the form. - * - * Note: You have to call this method statically before creating a new form if you use - * patForm's automatic element creation feature via the {@link createForm()} method, as the - * default attributes cannot be set after an element has been created. - * - * @static - * @access public - * @param array $attributes The list of attributes to set with key => value pairs. - */ - function setDefaultAttributes( $attributes ) - { - patForms::setStaticProperty( 'defaultAttributes', $attributes ); - } - - /** - * sets the locale (language) to use for the validation error messages of all elements - * in the form. - * - * @access public - * @param string language code - * @param string optional language file - * @return bool True on success - */ - function setLocale( $locale, $languageFile = null ) - { - if (!is_null($languageFile)) { - $languageData = patForms::parseLocaleFile($languageFile); - - $customLocales = patForms::getStaticProperty('customLocales'); - $customLocales[$locale] = $languageData; - patForms::setStaticProperty('customLocales', $customLocales); - } - - if ( isset( $this ) && is_a( $this, 'patForms' ) ) { - $this->locale = $locale; - - if ( !empty( $this->elements ) ) { - $cnt = count( $this->elements ); - for ( $i=0; $i < $cnt; $i++ ) { - $this->elements[$i]->setLocale( $locale ); - } - } - } else { - patForms::setStaticProperty('locale', $locale); - } - - return true; - } - - /** - * checks, whether a locale is a custom locale - * - * @static - * @access public - * @param string locale name - * @return boolean - */ - function isCustomLocale($locale) - { - $customLocales = patForms::getStaticProperty('customLocales'); - if (isset($customLocales[$locale])) { - return true; - } - return false; - } - - /** - * get the custom locale for an element or a rule - * - * @static - * @access public - * @param string locale - * @param string key - * @return array - */ - function getCustomLocale($locale, $key) - { - $customLocales = patForms::getStaticProperty('customLocales'); - if (!isset($customLocales[$locale])) { - return false; - } - if (!isset($customLocales[$locale][$key])) { - return false; - } - return $customLocales[$locale][$key]; - } - - /** - * parses a locale file - * - * @access private - * @param string filename - * @return array locale information - * @todo add some file checks - */ - function parseLocaleFile($filename) - { - return parse_ini_file($filename, true); - } - - /** - * sets the format of the element - this will be passed on to any elements you create. If you - * have already added some elements when you call this method, it will be passed on to them too. - * - * @access public - * @param string $format The name of the format you have implemented in your element(s). - * @return bool $result True on success - * @see setMode() - * @see format - * @see serialize() - */ - function setFormat( $format ) - { - if ( isset( $this ) && is_a( $this, 'patForms' ) ) - { - $this->format = strtolower( $format ); - - if ( !empty( $this->elements ) ) - { - $cnt = count( $this->elements ); - for ( $i=0; $i < $cnt; $i++ ) - { - $this->elements[$i]->setFormat( $format ); - } - } - } - else - { - patForms::setStaticProperty( 'format', $format ); - } - - return true; - } - - /** - * sets the mode of the form - If you have already added some elements when you call this - * method, it will be passed on to them too. - * - * @access public - * @param string $mode The mode to set the form to: default|readonly or any other mode you have implemented in your element class(es). Default is 'default'. - * @see setMode() - * @see mode - * @see serialize() - */ - function setMode( $mode ) - { - $this->mode = strtolower( $mode ); - - if ( !empty( $this->elements ) ) - { - $cnt = count( $this->elements ); - for ( $i=0; $i < $cnt; $i++ ) - { - $this->elements[$i]->setMode( $mode ); - } - } - } - - /** - * sets the current submitted state of the form. Set this to true if you want the form - * to pick up its submitted data. It will pass on this information to all elements that - * have been added so far, and new ones inherit it too. - * - * @access public - * @param bool $state True if it has been submitted, false otherwise (default). - * @see isSubmitted() - * @see submitted - */ - function setSubmitted( $state ) - { - if ( $state == true ) - { - $eventState = $this->triggerEvent( 'Submit' ); - if ( $eventState === false ) - return false; - } - - $this->submitted = $state; - - if ( !empty( $this->elements ) ) - { - $cnt = count( $this->elements ); - for ( $i=0; $i < $cnt; $i++ ) - { - $this->elements[$i]->setSubmitted( $state ); - } - } - - return $state; - } - - /** - * sets the method for the request - * - * @access public - * @param string $method GET or POST - * @see method - * @uses setAttribute() - */ - function setMethod( $method ) - { - $method = strtolower( $method ); - - if ( $method != 'get' && $method != 'post' ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_INVALID_METHOD, - 'Unknown method "'.$method.'". Currently only GET and POST are supported as patForms methods.' - ); - } - $this->setAttribute( 'method', $method ); - return true; - } - - /** - * sets the action for the form - * - * This is a only a wrapper for setAttribute() - * - * @access public - * @param string $action - * @see setAttribute() - */ - function setAction( $action ) - { - return $this->setAttribute( 'action', $action ); - } - - /** - * Sets the AutoFinalize mode for the form. The AutoFinalize mode will tell patForms to - * finalize all elements after the form has been validated successfully. - * - * @access public - * @param boolean $mode Whether to activate the AutoFinalize mode (true) or not (false). - * @return boolean $success True if okay, a patError object otherwise. - * @see finalizeForm() - */ - function setAutoFinalize( $mode ) - { - if ( !is_bool( $mode ) ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_PARAMETER_NO_BOOL, - 'The setAutoFinalize() method requires a boolean value ( true or false ) as parameter.' - ); - } - - if ( isset( $this ) && is_a( $this, 'patForms' ) ) - { - $this->autoFinalize = $mode; - } - else - { - patForms::setStaticProperty( 'autoFinalize', $mode ); - } - - return true; - } - - /** - * Wrapper method that adds a filter to all elements - * of the form at once instead of having to do it for - * each element. - * - * @access public - * @param object &$filter The filter object to apply - * @see patForms_Element::applyFilter() - * @todo add error management and docs once the element's applyFilter method has too - */ - function applyFilter( &$filter ) - { - if ( empty( $this->elements ) ) - return true; - - $cnt = count( $this->elements ); - - for ( $i = 0; $i < $cnt; $i++ ) - { - $this->elements[$i]->applyFilter( $filter ); - } - } - - /** - * creates a new patForms object and returns it; this method is made to be called statically - * to be able to create a new patForms object from anywhere. - * - * @access public - * @param array $formDefinition Optional form definition for elements that will be added to the form - * @param array $attributes The attributes to set for the form itself - * @return object patForms $form The new patForms object. - * @todo it should be possible to pass Rule definitions, so they can be loaded and added automatically. - */ - function &createForm( $formDefinition = null, $attributes = null ) - { - $form = &new patForms(); - - if ( $attributes != null ) - { - $form->setAttributes( $attributes ); - } - - if ( $formDefinition === null ) - return $form; - - foreach ( $formDefinition as $name => $element ) - { - if ( !isset( $element["filters"] ) ) - { - $element["filters"] = null; - } - if ( !isset( $element["children"] ) ) - { - $element["children"] = null; - } - - $el = &$form->createElement( $name, $element["type"], $element["attributes"], $element["filters"], $element["children"] ); - - if ( isset( $element["renderer"] ) ) { - $el->setRenderer( $element["renderer"] ); - } - - $result = $form->addElement( $el ); - if (patErrorManager::isError( $result )) { - return $result; - } - } - return $form; - } - - /** - * add a custom validation rule - * - * @access public - * @param object patForms_Rule validation rule - * @param integer time to apply rule (before or after built-in validation) - * @param boolean apply the rule, even if the form is invalid - * @param boolean should form get revalidated (not implemented yet) - * @return boolean currently always true - */ - function addRule( &$rule, $time = PATFORMS_RULE_AFTER_VALIDATION, $invalid = false, $revalidate = false ) - { - $rule->prepareRule( $this ); - - $this->_rules[] = array( - 'rule' => &$rule, - 'time' => $time, - 'invalid' => $invalid, - 'revalidate' => $revalidate - ); - } - - /** - * patForms PHP5 constructor - processes some intitialization tasks like merging the currently - * set static properties with the internal properties. - * - * @access public - */ - function __construct() - { - foreach ( $this->staticProperties as $staticProperty => $setMethod ) - { - $propValue = patForms::getStaticProperty( $staticProperty ); - if ( patErrorManager::isError( $propValue ) ) - continue; - - $this->$setMethod( $propValue ); - } - - // initialize patForms internal attribute collection - $this->loadAttributeDefaults(); - } - - /** - * patForms pre-PHP5 constructor - does nothing for the moment except being a wrapper - * for the PHP5 contructor for older PHP versions support. - * - * @access public - */ - function patForms() - { - patForms::__construct(); - } - - /** - * sets a renderer object that will be used to render - * the form. - * - * @access public - * @param object &$renderer The renderer object - * @return mixed $success True on success, patError object otherwise. - * @see createRenderer() - * @see renderForm() - */ - function setRenderer( &$renderer, $args = array() ) - { - if ( !is_object( $renderer ) ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_INVALID_RENDERER, - 'You can only set a patForms_Renderer object with the setRenderer() method, "'.gettype( $renderer ).'" given.' - ); - } - - $this->renderer = &$renderer; - - if ( isset( $args['includeElements'] ) && $args['includeElements'] === true ) - { - // check all elements - there may be some that need - // renderers too, so we give them the same renderer if - // they don't already have one. - $cnt = count( $this->elements ); - for ( $i = 0; $i < $cnt; $i++ ) - { - if ( $this->elements[$i]->usesRenderer && !is_object( $this->elements[$i]->renderer ) ) - { - $this->elements[$i]->setRenderer( $renderer ); - } - } - } - - return true; - } - - /** - * sets a storage container object that will be used to store data - * - * @access public - * @param object patForms_Storage - * @see createStorage() - */ - function setStorage( &$storage ) - { - if ( !is_object( $storage ) ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_INVALID_STORAGE, - 'You can only set a patForms_Storage object with the setStorage() method, "'.gettype( $storage ).'" given.' - ); - } - - $this->registerEventHandlerObject( $storage, - array( - 'onInit' => 'loadEntry', - 'onValidate' => 'validateEntry', - 'onSuccess' => 'storeEntry' - ) - ); - } - - /** - * renders the form with the renderer that was set via the {@link setRenderer()} - * method. - * - * WARNING: This is still in alpha state! - * - * Should this method return a reference?? - * The return value could contain large blocks of HTML or large arrays! - * Do we want to copy these? - * - * @access public - * @param mixed $args arguments that will be passed to the renderer - * @return mixed $form The rendered form, or false if failed. - */ - function renderForm( $args = null ) - { - if ( $this->renderer === null ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_NO_RENDERER_SET, - 'Form cannot be rendered, you have to set a renderer first via the setRenderer() method.' - ); - } - - // form is not submitted, or auto-validation is disabled => render it - if ( !$this->isSubmitted() || $this->autoValidate !== true ) - { - $this->triggerEvent( 'Init' ); - return $this->renderer->render( $this, $args ); - } - - $this->validateForm(); - - return $this->renderer->render( $this, $args ); - } - - /** - * Validates all elements of the form. - * - * @access public - * @param boolean Flag to indicate, whether form should be validated again, if it already has been validated. - * @return boolean True if all elements could be validated, false otherwise. - * @see finishForm() - */ - function validateForm( $revalidate = false ) - { - if ( $this->validated && !$revalidate ) - return $this->valid; - - $valid = true; - - /** - * validate custom rules - */ - if ( !$this->_applyRules( PATFORMS_RULE_BEFORE_VALIDATION ) ) - { - $valid = false; - } - - /** - * validate elements - */ - if ( $valid === true ) - { - $cnt = count( $this->elements ); - for ( $i = 0; $i < $cnt; ++$i ) - { - if ( !$this->elements[$i]->validate() ) - { - $valid = false; - } - } - } - - if ($valid === true) { - $result = $this->triggerEvent('Validate'); - if ($result === false) { - $valid = false; - } - } - - /** - * validate custom rules - */ - if ( !$this->_applyRules( PATFORMS_RULE_AFTER_VALIDATION, $valid ) ) - { - $valid = false; - } - - if ( $valid === true && $this->autoFinalize === true ) - $this->finalizeForm(); - - $this->valid = $valid; - - $this->validated = true; - - if ( $valid === true ) - { - $this->_announce( 'status', 'validated' ); - $event = 'Success'; - } - else - { - $this->_announce( 'status', 'error' ); - $event = 'Error'; - } - - $this->triggerEvent( $event ); - - return $this->valid; - } - - /** - * apply rules - * - * @access private - * @param integer time of validation - * @param boolean form is valid - * @return boolean rules are valid or not - * @todo add documentation - */ - function _applyRules( $time, $isValid = true ) - { - $valid = true; - - $cnt = count( $this->_rules ); - for ($i = 0; $i < $cnt; $i++) { - - // wrong time - if (( $this->_rules[$i]['time'] & $time ) != $time) { - continue; - } - if (!$isValid && !$this->_rules[$i]['invalid']) { - continue; - } - - $result = $this->_rules[$i]['rule']->applyRule( $this, PATFORMS_RULE_AFTER_VALIDATION ); - if ( $result === false ) { - $valid = false; - } - } - return $valid; - } - - /** - * Finalizes the form by telling each fom element to finalize - finalizing means to - * process any tasks that need to be done after the form has been validated, like - * deleting any temporary files or whatever an element needs to do at that point. - * - * @access public - * @return bool $success Wether all elements could be finalized - * @see validateForm() - */ - function finalizeForm() - { - $success = true; - - $cnt = count( $this->elements ); - for ( $i = 0; $i < $cnt; ++$i ) - { - if ( !$this->elements[$i]->finalize() ) - { - patErrorManager::raiseWarning( - PATFORMS_ERROR_ELEMENT_NOT_FINALIZED, - 'Element "'.$this->elements[$i]->elementName.'" could not be finalized. See the element error messages for more details.' - ); - - $success = false; - } - } - - return $success; - } - - /** - * creates a new renderer from the patForms renderer collection and returns it. - * - * @access public - * @param string The name of the renderer to create - have a look at the Renderer/ subfolder for a list of available renderers. - * @return object patForms_Renderer The renderer object, or error object - */ - function &createRenderer( $name ) - { - return patForms::_createModule( 'Renderer', $name ); - } - - /** - * creates a new storage container and returns it. - * - * @access public - * @param string The name of the storage to create - have a look at the Storage/ subfolder for a list of available storage containers. - * @return object patForms_Storage The storage container, or error object - */ - function &createStorage( $name ) - { - return patForms::_createModule( 'Storage', $name ); - } - - /** - * Creates a new filter and returns it. - * - * You may pass an array as second parameter that contains - * parameters for the filter. patForms will check for setter methods - * for all keys and set the corresponding values. - * - * This eases the creating of simple filter objects. - * - * @access public - * @param string The name of the filter to create - have a look at the Filter/ subfolder for a list of available filters. - * @param array Optional parameters for the filter, if you provide a parameter, make sure the filter implements a set[Paramname]() method. - * This will be automated with interceptors in the PHP5 version of patForms - * @return object patForms_Filter The filter, or error object - */ - function &createFilter( $name, $params = null ) - { - $filter = &patForms::_createModule( 'Filter', $name ); - - if ( !is_array( $params ) ) - { - return $filter; - } - - foreach ( $params as $param => $value ) - { - $setter = 'set' . ucfirst( $param ); - if ( method_exists( $filter, $setter ) ) - { - $filter->$setter( $value ); - } - } - return $filter; - } - - /** - * creates a new rule from the patForms rule collection and returns it. - * - * If your rules are not located in patForms/Rule you have to load and - * instantiate them on your own. - * - * @access public - * @param string The name of the rule to create - have a look at the Rule/ subfolder for a list of available rules. - * @param string The id of the rule, needed if the rule uses client side actions. - * @return object patForms_Rule The rule object, or error object - */ - function &createRule( $name, $id = null ) - { - $rule = &patForms::_createModule( 'Rule', $name ); - if ( $id != null ) - { - $rule->setId( $id ); - } - return $rule; - } - - /** - * creates a new observer from the patForms observer collection and returns it. - * - * If your observers are not located in patForms/Observer you have to load and - * instantiate them on your own. - * - * @access public - * @param string The name of the observer to create - have a look at the Observer/ subfolder for a list of available observers. - * @return object patForms_Observer The observer object, or error object - */ - function &createObserver( $name ) - { - $observer = &patForms::_createModule( 'Observer', $name ); - - return $observer; - } - - /** - * creates a new module for patForms - * - * @access private - * @param string $type type of the module. Possible values are 'Renderer', 'Rule' - * @param string $name The name of the renderer to create - have a look at the renderers/ subfolder for a list of available renderers. - * @return object $module The module object, or an error object - */ - function &_createModule( $type, $name ) - { - $baseFile = PATFORMS_INCLUDE_PATH . '/'.$type.'.php'; - $baseClass = 'patForms_'.$type; - - // if there is an underscore in the module name, we want - // to load the module from a subfolder, so we transform - // all underscores to slashes. - $pathName = $name; - if ( strstr( $pathName, '_' ) ) - { - $pathName = str_replace( '_', '/', $name ); - } - - $moduleFile = PATFORMS_INCLUDE_PATH . '/'.$type.'/'.$pathName.'.php'; - $moduleClass = 'patForms_'.$type.'_'.$name; - - if ( !class_exists( $baseClass ) ) - { - if ( !file_exists( $baseFile ) ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_NO_MODULE_BASE_FILE, - $type .' base file could not be found', - 'Tried to load base file in path "'.$baseFile.'"' - ); - } - - include_once $baseFile; - } - - if ( !class_exists( $moduleClass ) ) - { - if ( !file_exists( $moduleFile ) ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_MODULE_NOT_FOUND, - $type.' "'.$name.'" file "'.$moduleFile. '" could not be found.' - ); - } - - include_once $moduleFile; - } - - $module = &new $moduleClass(); - - return $module; - } - - /** - * adds an element to the form - has to be a patForms_Element object. Use the {@link createElement()} - * method to create a new element object. Also takes care of passing on the form's configuration - * including the mode, format and submitted flags to the element. - * - * @access public - * @param object &$element The patForms_Element object to add to this form. - * @return bool $success True if everything went well, false otherwise. - * @see patForms_Element - * @see createElement() - */ - function addElement( &$element ) - { - if ( !is_object( $element ) ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_ELEMENT_IS_NO_OBJECT, - 'The addElement() method expects an element object, "'.gettype( $element ).'" given.' - ); - } - - if ( patErrorManager::isError( $element ) ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_UNEXPECTED_ERROR, - 'The element you are trying to add is a patError object, and not a patForms element object.' - ); - } - - if ( !$element->getId() ) { - $element->setId( $this->getElementId() ); - } - $element->setMode( $this->getMode() ); - $element->setFormat( $this->getFormat() ); - $element->setSubmitted( $this->isSubmitted() ); - $element->setLocale( $this->getLocale() ); - - $this->elements[] =& $element; - - return true; - } - - /** - * replaces an element in the form - * - * @access public - * @param object $element The patForms_Element object to be replaced - * @param object &$replace The element that will replace the old element - * @return bool $success True if everything went well, false otherwise. - * @see patForms_Element - * @see addElement() - */ - function replaceElement( $element, &$replace ) - { - if ( !is_object( $replace ) ) { - return patErrorManager::raiseError( - PATFORMS_ERROR_ELEMENT_IS_NO_OBJECT, - 'The addElement() method expects an element object, "'.gettype( $replace ).'" given.' - ); - } - - if ( patErrorManager::isError( $replace ) ) { - return patErrorManager::raiseError( - PATFORMS_ERROR_UNEXPECTED_ERROR, - 'The element you are trying to add is a patError object, and not a patForms element object.' - ); - } - - if (is_object($element)) { - $element = $element->getId(); - } - - $cnt = count($this->elements); - for ($i = 0; $i < $cnt; $i++) { - if ($this->elements[$i]->getId() === $element) { - - if ( !$replace->getId() ) { - $replace->setId( $this->getElementId() ); - } - $replace->setMode( $this->getMode() ); - $replace->setFormat( $this->getFormat() ); - $replace->setSubmitted( $this->isSubmitted() ); - $replace->setLocale( $this->getLocale() ); - - $this->elements[$i] = &$replace; - return true; - } - - // the current element is a container - if (method_exists($this->elements[$i], 'replaceElement')) { - $result = $this->elements[$i]->replaceElement($element, $replace); - if ($result === true) { - return $result; - } - } - } - - return false; - } - - /** - * Get an element by its name. - * - * @access public - * @param string $name name of the element - * @return object patForms element - * @deprecated please use patForms::getElementByName() instead - */ - function &getElement( $name ) - { - return $this->getElementByName( $name ); - } - - /** - * Get an element by its name. - * - * @access public - * @param string $name name of the element - * @return mixed either a patForms element or an array containing patForms elements - * @see getElementById() - */ - function &getElementByName( $name ) - { - if ( $name == '__form' ) { - return $this; - } - - $elements = array(); - $cnt = count( $this->elements ); - for ($i = 0; $i < $cnt; $i++) { - if ($this->elements[$i]->getName() == $name) { - $elements[] = &$this->elements[$i]; - continue; - } - if (method_exists($this->elements[$i], 'getElementById')) { - patErrorManager::pushExpect(PATFORMS_ERROR_ELEMENT_NOT_FOUND); - $result = &$this->elements[$i]->getElementByName($name); - patErrorManager::popExpect(); - if (!patErrorManager::isError($result)) { - if (is_array($result)) { - $cnt2 = count( $result ); - for ($j = 0; $j < $cnt2; $j++) { - $elements[] = &$result[$j]; - } - } else { - $elements[] = &$result; - } - } - } - } - - switch( count( $elements ) ) - { - case 0: - return patErrorManager::raiseError( - PATFORMS_ERROR_ELEMENT_NOT_FOUND, - 'Element '.$name.' could not be found.' - ); - break; - case 1: - return $elements[0]; - break; - default: - return $elements; - break; - } - } - - /** - * Get an element by its id. - * - * @access public - * @param string $id id of the element - * @return object patForms element - */ - function &getElementById( $id ) - { - $cnt = count( $this->elements ); - for ( $i = 0; $i < $cnt; $i++ ) - { - if ( $this->elements[$i]->getId() == $id ) { - return $this->elements[$i]; - } - if (method_exists($this->elements[$i], 'getElementById')) { - patErrorManager::pushExpect(PATFORMS_ERROR_ELEMENT_NOT_FOUND); - $result = &$this->elements[$i]->getElementById($id); - patErrorManager::popExpect(); - if (!patErrorManager::isError($result)) { - return $result; - } - } - } - return patErrorManager::raiseError( - PATFORMS_ERROR_ELEMENT_NOT_FOUND, - 'Element '.$name.' could not be found.' - ); - } - - /** - * Get all elements of the form - * - * @access public - * @return array all elements of the form - */ - function &getElements() - { - return $this->elements; - } - - /** - * Creates a new form element and returns a reference to it. - * - * The optional $filters array has to be in the following format: - * - *
-	* array(
-	*       array(
-	*              'filter' => 'Multiplier',
-	*              'params' => array( 'multiplier' => 6 )
-	*            )
-	*	   )
-	* 
- * - * @access public - * @param string $name The name of the element - * @param string $type The type of the element; for a list of possible elements, have a look at the elements/ subfolder of the patForms package. - * @param array $attributes Attributes for the element - * @param array $filters Optional filters that will be applied - * @return object patForms_Element $element The element object, or patError if failed. - */ - function &createElement( $name, $type, $attributes, $filters = null, $children = null ) - { - $element =& patForms::_createModule( 'Element', $type ); - if ( patErrorManager::isError( $element ) ) - { - return $element; - } - - $attributes['name'] = $name; - if ( !isset( $attributes['id'] ) ) { - $attributes['id'] = $this->getElementId(); - } - - // add default attributes - do this the 'silent' way be checking whether - // the element supports the given attribute, as the element throws a notice - // if it does not support it - this is not expected from default attributes. - foreach ( patForms::getStaticProperty( 'defaultAttributes' ) as $attributeName => $attributeValue ) - { - if ( !$element->hasAttribute( $attributeName ) ) - { - continue; - } - - $element->setAttribute( $attributeName, $attributeValue ); - } - - // set the given attributes normally - $success = $element->setAttributes( $attributes ); - if ( patErrorManager::isError( $success ) ) - { - return $success; - } - - if (is_array($children)) { - foreach ($children as $child) { - $childName = $child['attributes']['name']; - - $childEl = &patForms::createElement($childName, $child['type'], $child['attributes']); - if ( isset( $child["renderer"] ) ) { - $childEl->setRenderer( $child["renderer"] ); - } - - $element->addElement($childEl); - } - } - - $success = $element->_init(); - if ( patErrorManager::isError( $success ) ) { - return $success; - } - - // if we don't have any filters to add, we're done - if ( !is_array( $filters ) ) - { - return $element; - } - - $cnt = count( $filters ); - for ( $i = 0; $i < $cnt; $i++ ) - { - $params = isset( $filters[$i]['params'] ) ? $filters[$i]['params'] : null; - $filter = &patForms::createFilter( $filters[$i]['filter'], $params ); - if ( patErrorManager::isError( $filter ) ) - { - continue; - } - $element->applyFilter( $filter ); - } - - return $element; - } - - /** - * retrieves the validation errors from all elements in the form. Use this if the validateForm() - * method returned false. - * - * @access public - * q - * @return array $errors Array containing an array with validation errors for each element in the form. - * @todo replace __form with the name of the form, once attributes are implemented - */ - function getValidationErrors($withElements = true) - { - $found = false; - $errors = array(); - - if ( !empty( $this->validationErrors ) ) - { - $errors['__form'] = $this->validationErrors; - $found = true; - } - - if ($withElements === false) { - return $errors; - } - - $cnt = count( $this->elements ); - for ( $i = 0; $i < $cnt; ++$i ) - { - $name = $this->elements[$i]->getAttribute( 'name' ); - if ( $name === false ) - { - continue; - } - - $elementErrors = $this->elements[$i]->getValidationErrors(); - - if ( empty( $elementErrors ) ) - continue; - - $errors[$name] = $elementErrors; - $found = true; - } - - if ( $found ) - return $errors; - - return false; - } - - /** - * retrieves the values for all elements in the form. - * - * @access public - * @param array desired fields - * @param integer Mode that should be used to return values in groups - * @return array The values for all elements, as elementname => elementvalue. - * - * @todo remove the ugly Group check and replace with something better - * @todo implement something similar for getValidation errors - */ - function getValues( $fields = null, $type = PATFORMS_VALUES_NESTED ) - { - $values = array(); - - $cnt = count( $this->elements ); - for ( $i = 0; $i < $cnt; ++$i ) - { - $name = $this->elements[$i]->getAttribute( 'name' ); - if ( $name === false ) { - continue; - } - - if ( is_array( $fields ) && !in_array( $name, $fields ) ) { - continue; - } - - $tmpVal = $this->elements[$i]->getValue(); - if (!is_array($tmpVal) || $this->elements[$i]->elementName != 'Group') { - $values[$name] = $tmpVal; - continue; - } - - switch ($type) { - case PATFORMS_VALUES_FLATTENED: - $values = array_merge($values, $tmpVal); - break; - case PATFORMS_VALUES_PREFIXED: - foreach ($tmpVal as $key => $val) { - $values[$name.'_'.$key] = $val; - } - break; - case PATFORMS_VALUES_NESTED: - default: - $values[$name] = $tmpVal; - break; - - } - } - return $values; - } - - /** - * sets the values for all elements in the form. Use this to fill your form with external - * data, like a db query. Caution: if you do this and set the form to submitted, the values - * will be overwritten by any values present in the $_GET or $_POST variables. - * - * @access public - * @param array $values The values for all elements, as elementname => elementvalue. - */ - function setValues( $values, $overrideUserInput = false ) - { - patErrorManager::pushExpect(PATFORMS_ERROR_ELEMENT_NOT_FOUND); - foreach ($values as $elName => $value) { - $el = &$this->getElementByName($elName); - if (patErrorManager::isError($el)) { - continue; - } - if ($overrideUserInput === true) { - $el->setValue($value); - } else { - $el->setDefaultValue($value); - } - } - patErrorManager::popExpect(); - return true; - } - - /** - * retrieves the current mode of the form - * - * @access public - * @return string $mode The current form mode - * @see setMode() - * @see $mode - */ - function getMode() - { - return $this->mode; - } - - /** - * returns the locale that is currently set for the form. - * - * @access public - * @return string $locale The locale. - * @see setLocale() - * @see $locale - */ - function getLocale() - { - return $this->locale; - } - - /** - * retrieves the current format of the form - * - * @access public - * @return string $format The current form format - * @see setFormat() - * @see format - */ - function getFormat() - { - return $this->format; - } - - /** - * retrieves the current method of the form - * - * @access public - * @return string $method The request method - * @see setMethod() - */ - function getMethod() - { - return $this->getAttribute( 'method' ); - } - - /** - * retrieves the current action of the form - * - * @access public - * @return string $action Action of the form - * @see setAction() - */ - function getAction() - { - $action = $this->getAttribute( 'action' ); - if ( !empty( $action ) ) - return $action; - return $_SERVER['PHP_SELF']; - } - - /** - * adds an atribute to the form's attribute collection. If the attribute - * already exists, it is overwritten. - * - * @access public - * @param string $attributeName The name of the attribute to add - * @param string $atributeValue The value of the attribute - */ - function setAttribute( $attributeName, $attributeValue ) - { - if ( !isset( $this->attributeDefinition[$attributeName] ) ) - { - patErrorManager::raiseNotice( - PATFORMS_NOTICE_ATTRIBUTE_NOT_SUPPORTED, - "The attribute '".$attributeName."' is not supported by the form, skipped it. [".get_class( $this )."]" - ); - return true; - } - - $this->attributes[$attributeName] = $attributeValue; - - return true; - } - - /** - * adds several attributes at once to the form's attribute collection. - * Any existing attributes will be overwritten. - * - * @access public - * @param array $attributes The attributes to add - * @see setAttribute() - */ - function setAttributes( $attributes ) - { - if ( !is_array( $attributes ) ) - { - return patErrorManager::raiseError( - PATFORMS_NOTICE_ARRAY_EXPECTED, - "setAttributes: array expected" - ); - } - - foreach ( $attributes as $attributeName => $attributeValue ) - { - $this->setAttribute( $attributeName, $attributeValue ); - } - - return true; - } - - /** - * retrieves the value of a form attribute. - * - * @access public - * @param string $attribute The name of the attribute to retrieve - * @return mixed $attributeValue The value of the attribute, or false if it does not exist in the attributes collection. - * @see setAttribute() - */ - function getAttribute( $attribute ) - { - if ( !isset( $this->attributes[$attribute] ) ) - { - return false; - } - - return $this->attributes[$attribute]; - } - - /** - * retrieves all attributes of the form, or only the specified attributes. - * - * @access public - * @param array $attributes Optional: The names of the attributes to retrieve. Only the attributes that exist will be returned. - * @return array $result The attributes - * @see getAttribute() - */ - function getAttributes( $attributes = array() ) - { - if ( empty( $attributes ) ) - { - return $this->attributes; - } - - $result = array(); - foreach ( $attributes as $attribute ) - { - if ( $attributeValue = $this->getAttribute( $attribute ) ) - { - $result[$attribute] = $attributeValue; - } - } - - return $result; - } - - /** - * Loads the default attribute values into the attributes collection. Done directly - * on startup (in the consructor). - * - * The action defaults to the path of the current script, with session - * ID appended automatically, if SID has been defined. - * - * @access public - * @return bool $success Always returns true. - * @see $attributeDefaults - */ - function loadAttributeDefaults() - { - foreach ( $this->attributeDefinition as $attributeName => $attributeDef ) - { - if ( isset( $attributeDef['default'] ) ) - { - $this->attributes[$attributeName] = $attributeDef['default']; - } - - if ( $attributeName == 'action' ) - { - $this->attributes[$attributeName] = $_SERVER['PHP_SELF']; - /** - * session has been started, append session ID - */ - if ( defined( 'SID' ) ) - $this->attributes[$attributeName] .= '?' . SID; - } - } - - return true; - } - - /** - * retrieves the form's current submitted state. - * - * If autoValidate is used, it will check for the submitVar and - * set the submitted flag accordingly - * - * @access public - * @return bool $state True if it has been submitted, false otherwise. - * @see setSubmitted(), setAutoValidate() - * @see submitted - */ - function isSubmitted() - { - if ( $this->submitted === true ) - { - return true; - } - - if ( !isset( $this->submitVar ) ) - { - return false; - } - - if ( !$this->autoValidate ) - { - return false; - } - - if ( isset( $_GET[$this->submitVar] ) || isset( $_POST[$this->submitVar] ) ) - { - $this->setSubmitted( true ); - } - - return $this->submitted; - } - - /** - * Creates a new patForms_Creator object - * - * @static - * @access public - * @return object $creator The creator object, or a patError object on failure - */ - function createCreator( $type ) - { - return patForms::_createModule( 'Creator', $type ); - } - - /** - * get the element name of the form - * - * @access public - * @return string name of the form - */ - function getElementName() - { - return $this->elementName; - } - - /** - * get next error offset - * - * @access public - * @return integer - */ - function getErrorOffset( $requiredCodes = 100 ) - { - $offset = $this->nextErrorOffset; - $this->nextErrorOffset = $this->nextErrorOffset + $requiredCodes; - return $offset; - } - - /** - * add error codes and messages for validator method - * - * @access public - * @param array defintions - * @param integer offset for the error codes - */ - function addValidatorErrorCodes( $defs, $offset = 1000 ) - { - foreach ( $defs as $lang => $codes ) - { - if ( !isset( $this->validatorErrorCodes[$lang] ) ) - { - $this->validatorErrorCodes[$lang] = array(); - } - - foreach ( $codes as $code => $message ) - { - $this->validatorErrorCodes[$lang][($offset+$code)] = $message; - } - } - } - - /** - * add a validation error to the whole form - * - * This can be achieved by adding a validation rule to the form. - * - * @access public - * @param integer $code - * @param array $vars fill named placeholder with values - * @return boolean $result true on success - * @see addRule() - */ - function addValidationError( $code, $vars = array() ) - { - $error = false; - $lang = $this->locale; - $element = $this->getElementName(); - - // find error message for selected language - while ( true ) - { - // error message matches language code - if ( isset( $this->validatorErrorCodes[$lang][$code] ) ) - { - $error = array( "element" => $element, "code" => $code, "message" => $this->validatorErrorCodes[$lang][$code] ); - break; - } - // no message found and no fallback-langauage available - else if ( $lang == "C" ) - { - break; - } - - $lang_old = $lang; - - // look for other languages - if ( strlen( $lang ) > 5 ) - { - list( $lang, $trash ) = explode( ".", $lang ); - } - else if ( strlen( $lang ) > 2 ) - { - list( $lang, $trash ) = explode( "_", $lang ); - } - else - { - $lang = "C"; - } - - // inform developer about missing language - patErrorManager::raiseNotice( - PATFORMS_NOTICE_VALIDATOR_ERROR_LOCALE_UNDEFINED, - "Required Validation Error-Code for language: $lang_old not available. Now trying language: $lang", - "Add language definition in used element or choose other language" - ); - - } - - // get default Error! - if ( !$error ) - { - patErrorManager::raiseWarning( - PATFORMS_WARNING_VALIDATOR_ERROR_UNDEFINED, - "No Error Message for this validation Error was defined", - "Review the error-definition for validation-errors in your element '$element'." - ); - $error = array( "element" => $element, "code" => 0, "message" => "Unknown validation Error" ); - } - - // insert values to placeholders - if ( !empty( $vars ) ) - { - foreach ( $vars as $key => $value ) - { - $error["message"] = str_replace( "[". strtoupper( $key ) ."]", $value, $error["message"] ); - } - } - - array_push( $this->validationErrors, $error ); - $this->valid = false; - return true; - } - - /** - * retreives a new element id, used to give each added element a unique id for this - * form (id can be overwritten by setting the id attribute specifically). - * - * @access private - * @return int $elementId The new element id. - */ - function getElementId() - { - $this->elementCounter++; - return 'pfo'.$this->elementCounter; - } - - /** - * attach an observer - * - * @access public - * @param object patForms_Observer - * @see createObserver() - * @uses patForms_Element::createObserver() - */ - function attachObserver( &$observer, $where = PATFORMS_OBSERVER_ATTACH_TO_ELEMENTS ) - { - /** - * attach the observer to all elements - */ - if ( ( $where & PATFORMS_OBSERVER_ATTACH_TO_ELEMENTS ) == PATFORMS_OBSERVER_ATTACH_TO_ELEMENTS ) - { - $cnt = count( $this->elements ); - for ( $i = 0; $i < $cnt; ++$i ) - { - $this->elements[$i]->attachObserver( $observer ); - } - } - - /** - * attach the observer to the form - */ - if ( ( $where & PATFORMS_OBSERVER_ATTACH_TO_FORM ) == PATFORMS_OBSERVER_ATTACH_TO_FORM ) - { - $this->observers[] = &$observer; - } - return true; - } - - /** - * Retrieve the content for the start of the form, including any - * additional content, e.g. global scripts if the scripts option - * is enabled. - * - * @access public - * @return string $formStart The form start content - * @todo use format to build a dynamic method - */ - function serializeStart() - { - $methodName = "serializeStart".ucfirst( $this->getFormat() ).ucfirst( $this->getMode() ); - - if ( !method_exists( $this, $methodName ) ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_METHOD_FOR_MODE_NOT_AVAILABLE, - "Method for patForms mode '".$this->getMode()."' (".$methodName.") is not available." - ); - } - - return $this->$methodName(); - } - - /** - * Serializes the form's start element for html format, in default mode. - * - * @access private - * @return mixed $formStart The serialized start content, or a patError object. - */ - function serializeStartHtmlDefault() - { - $attributes = $this->getAttributesFor( $this->format ); - if ( patErrorManager::isError( $attributes ) ) - { - return $attributes; - } - - $content = patForms_Element::createTag( 'form', 'opening', $attributes ); - - if ( $this->optionEnabled( 'scripts' ) ) - { - $content .= $this->getScripts(); - } - - return $content; - } - - /** - * Serializes the form's start element for html format, in readonly mode. - * - * @access private - * @return mixed $formStart The serialized start content, or a patError object. - */ - function serializeStartHtmlReadonly() - { - $attributes = $this->getAttributesFor( $this->format ); - if ( patErrorManager::isError( $attributes ) ) - { - return $attributes; - } - - return patForms_Element::createTag( 'form', 'opening', $attributes ); - } - - /** - * Retrieve the content for the end of the form. - * - * @access public - * @return string $formEnd The form end content - */ - function serializeEnd() - { - $methodName = "serializeEnd".ucfirst( $this->getFormat() ).ucfirst( $this->getMode() ); - - if ( !method_exists( $this, $methodName ) ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_METHOD_FOR_MODE_NOT_AVAILABLE, - "Method for patForms mode '".$this->getMode()."' (".$methodName.") is not available." - ); - } - - return $this->$methodName(); - } - - /** - * Retrieves the content for the end of the form for html format, - * in default mode. - * - * @access private - * @return string $formEnd The form end content - */ - function serializeEndHtmlDefault() - { - return patForms_Element::createTag( 'form', 'closing' ); - } - - /** - * Retrieves the content for the end of the form for html format, - * in readonly mode. - * - * @access private - * @return string $formEnd The form end content - */ - function serializeEndHtmlReadonly() - { - return $this->serializeEndHtmlDefault(); - } - - /** - * validates the current attribute collection according to the attributes definition - * and the given output format, and returns the list of valid attributes. - * - * @access private - * @param string $format The output format to retrieve the attributes for. - * @return mixed $attributes The list of attributes, or false if failed. - */ - function getAttributesFor( $format ) - { - $attributes = array(); - - foreach ( $this->attributeDefinition as $attributeName => $attributeDef ) - { - if ( !isset( $this->attributes[$attributeName] ) ) - { - if ( $attributeDef["required"] ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_ATTRIBUTE_REQUIRED, - 'patForms needs the attribute "'.$attributeName.'" to be set.', - 'See the patForms attribute definition of patForms for a complete attribute reference.' - ); - } - - continue; - } - - $attributeValue = $this->attributes[$attributeName]; - - if ( !in_array( $format, $attributeDef["outputFormats"] ) ) - { - continue; - } - - if ( isset( $attributeDef["format"] ) ) - { - if ( !$this->_checkAttributeFormat( $attributeValue, $attributeDef["format"] ) ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_CAN_NOT_VERIFY_FORMAT, - "Format '".$attributeDef["format"]."' could not be verified for patForms attribute '".$attributeName."' => '".$attributeValue."'" - ); - } - } - - $attributes[$attributeName] = $attributeValue; - } - - return $attributes; - } - - /** - * checks the format of an attribute value according to the given format. - * - * @access private - * @param mixed $attributeValue The attribute value to check - * @param string $format The format to check the attribute value against - * @return bool $result True if format check succeeded, false otherwise. - * @see createAttributes() - * @todo Implement this method sometime - */ - function _checkAttributeFormat( $attributeValue, $format ) - { - return true; - } - - /** - * Enables a patForms option. - * - * See the {@link $options} property for an exhaustive list of available options. - * - * @access public - * @param string $option The option to enable - * @param array $params Optional parameters for the option - * @return mixed $result True on success, patError object otherwise. - * @see disableOption() - * @see optionEnabled() - * @see $options - */ - function enableOption( $option, $params = array() ) - { - if ( !in_array( $option, array_keys( $this->options ) ) ) - { - return patErrorManager::raiseNotice( - PATFORMS_NOTICE_INVALID_OPTION, - 'The option "'.$option.'" is not a valid patForms option.' - ); - } - - $this->options[$option]['enabled'] = true; - $this->options[$option]['params'] = $params; - - // now update all available elements too - $cnt = count( $this->elements ); - for ( $i=0; $i < $cnt; $i++ ) - { - $this->elements[$i]->enableOption( $option, $params ); - } - - return true; - } - - /** - * Disables a patForms option - * - * See the {@link $options} property for an exhaustive list of available options. - * - * @access public - * @param string $option The option to disable - * @return mixed $result True on success, patError object otherwise. - * @see enableOption() - * @see optionEnabled() - * @see $options - */ - function disableOption( $option ) - { - if ( !in_array( $option, array_keys( $this->options ) ) ) - { - return patErrorManager::raiseNotice( - PATFORMS_NOTICE_INVALID_OPTION, - 'The option "'.$option.'" is not a valid patForms option.' - ); - } - - $this->options[$option]['enabled'] = false; - - // now update all available elements too - $cnt = count( $this->elements ); - for ( $i=0; $i < $cnt; $i++ ) - { - $this->elements[$i]->disableOption( $option ); - } - - return true; - } - - /** - * Checks whether the given option is enabled. - * - * @access public - * @param string $option The option to check - * @return bool $enabled True if enabled, false otherwise. - * @see enableOption() - * @see disableOption() - * @see $options - */ - function optionEnabled( $option ) - { - if ( !isset( $this->options[$option] ) ) - return false; - - return $this->options[$option]['enabled']; - } - - /** - * Set the form to auto validate - * - * If you use this method, patForms will check the _GET and _POST variables - * for the variable you specified. If it is set, patForms assumes, that - * the form has been submitted. - * - * When creating a start tag for the form, the value will be inserted automatically. - * - * @access public - * @param string $submitVar - */ - function setAutoValidate( $submitVar ) - { - $this->autoValidate = true; - $this->submitVar = $submitVar; - } - - /** - * register a new event - * - * After registering an event, you may register one or more - * event handlers for this event an then trigger the event. - * - * This lets you extend the functionality of patForms. - * - * @access public - * @param string event name - * @return boolean true, if event could be registered - * @see registerEventHandler() - * @see triggerEvent() - */ - function registerEvent( $name ) - { - $event = 'on' . $name; - if ( in_array( $event, $this->_validEvents ) ) - { - return patErrorManager::raiseNotice( - PATFORMS_NOTICE_EVENT_ALREADY_REGISTERED, - 'Event "'.$event.'" already has been registered or is built-in event' - ); - } - array_push( $this->_validEvents, $event ); - return true; - } - - /** - * Register an event handler - * - * An event handler can be any valid PHP callback. You may pass - * one of the following values: - * - string functionname to call a globally declared function - * - array( string classname, string methodname) to call a static method - * - array( object obj, string methodname) to call a method of an object - * - * When the handler is called, two parameters will be passed: - * - object form : a patForms object - * - string event : the name of the event has should be handled. - * - * An event handler should always return true. If false is returned, - * the event will be cancelled. - * - * Currently handlers for the following events can be registered: - * - onSubmit - * - onSuccess - * - onError - * - * @access public - * @param string event name - * @param mixed event handler - * @return boolean true, if the handler could be registered - * @see triggerEvent() - * @see $_validEvents - */ - function registerEventHandler( $event, $handler ) - { - if ( !in_array( $event, $this->_validEvents ) ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_UNKNOWN_EVENT, - 'Cannot register event handler for unknown event "' . $event .'".' - ); - } - - if ( !is_callable( $handler ) ) - { - return patErrorManager::raiseError( - PATFORMS_ERROR_INVALID_HANDLER, - 'Event handler is not callable.' - ); - } - - if ( !isset( $this->_eventHandler[$event] ) ) - { - $this->_eventHandler[$event] = array(); - } - - $this->_eventHandler[$event][] = &$handler; - return true; - } - - /** - * set event handler object. - * - * An event handler object is used to handle all - * registered events. The object has to provide methods - * for all events it should handle, the names of the methods - * have to be the same as the names of the events. - * - * @access public - * @param object event handler object - * @param array method names, used to change the names of the methods - * @return boolean - */ - function registerEventHandlerObject( &$obj, $methods = array() ) - { - if ( empty( $methods ) ) - { - foreach ( $this->_validEvents as $event ) - { - if ( !method_exists( $obj, $event ) ) - continue; - - $methods[$event] = $event; - } - } - - foreach ( $methods as $event => $method ) - { - if ( !isset( $this->_eventHandler[$event] ) ) - { - $this->_eventHandler[$event] = array(); - } - - $this->_eventHandler[$event][] = array( &$obj, $method ); - } - - return true; - } - - /** - * Trigger an event - * - * In most cases there's no need to call this event - * from outside the class. The method is declared public - * to allow you to trigger custom events. - * - * @access public - * @param string Event name. The event name must not contain 'on', as this will be - * prefixed automatically. - */ - function triggerEvent( $event ) - { - $handlerName = 'on' . $event; - - if ( !isset( $this->_eventHandler[$handlerName] ) || empty( $this->_eventHandler[$handlerName] ) ) - { - return true; - } - - $cnt = count( $this->_eventHandler[$handlerName] ); - for ( $i = 0; $i < $cnt; $i++ ) - { - $result = call_user_func( $this->_eventHandler[$handlerName][$i], $this, $event ); - if ( $result == false ) - { - return $result; - } - } - return true; - } - - /** - * Serializes the entire form to XML, all elements included - * - * @access public - * @param string $namespace Optional namespace to use for the tags - * @return string $xml The XML representation of the form - * @see patForms_Element::toXML() - * @todo needs patForms_Element, maybe switch to PEAR::XML_Util - */ - function toXML( $namespace = null ) - { - $tagName = 'Form'; - - // prepend Namespace - if ( $namespace != null ) - { - $tagName = $namespace.':'.$tagName; - } - - // get all attributes - $attributes = $this->getAttributes(); - - // create valid XML attributes - foreach ( $attributes as $key => $value ) - { - $attributes[$key] = strtr( $value, $this->xmlEntities ); - } - - $elements = ''; - for ( $i = 0; $i < $this->elementCounter; $i++ ) - { - $elements .= $this->elements[$i]->toXML( $namespace ); - } - - return patForms_Element::createTag( $tagName, "full", $attributes, $elements ); - } - - /** - * Set a static property. - * - * Static properties are stored in an array in a global variable, - * until PHP5 is ready to use. - * - * @static - * @param string property name - * @param mixed property value - * @see getStaticProperty() - */ - function setStaticProperty( $property, &$value ) - { - $GLOBALS["_patForms"][$property] = &$value; - } - - /** - * Get a static property. - * - * Static properties are stored in an array in a global variable, - * until PHP5 is ready to use. - * - * @static - * @param string property name - * @return mixed property value - * @see setStaticProperty() - */ - function &getStaticProperty( $property ) - { - if ( isset( $GLOBALS["_patForms"][$property] ) ) - { - return $GLOBALS["_patForms"][$property]; - } - return patErrorManager::raiseWarning( - PATFORMS_ERROR_NO_STATIC_PROPERTY, - 'Static property "'.$property.'" could not be retreived, it does not exist.' - ); - } - - /** - * Retrieves the form's name - * - * If no name is set, it will use 'patForms' as name. - * - * @access public - * @return string $name The name of the form. - */ - function getName() - { - if ( isset( $this->attributes['name'] ) ) - return $this->attributes['name']; - return 'patForms'; - } - - /** - * get the javascript for the form - * - * This is still in alpha state. It will later - * allow client side validation if the element - * provides this feature. - * - * @access public - * @return string javascript needed by the form - * @todo make this dependent on the format - * @todo add changeable linebreaks - */ - function getScripts() - { - foreach ($this->elements as $element) { - $element->registerJavascripts($this); - } - - $globalJavascript = implode ("", $this->javascripts['global']); - $instances = implode ("", $this->javascripts['instance']); - - $script = ''; - - return $script; - - /* - $globalJavascript = ''; - $instances = ''; - - $displayedTypes = array(); - - $cnt = count( $this->elements ); - for ( $i = 0; $i < $cnt; ++$i ) - { - $instances .= $this->elements[$i]->getInstanceJavascript(); - - $type = $this->elements[$i]->getElementName(); - if ( in_array( $type, $displayedTypes ) ) - continue; - - array_push( $displayedTypes, $type ); - $globalJavascript .= $this->elements[$i]->getGlobalJavascript(); - } - - $cnt = count( $this->_rules ); - for ( $i = 0; $i < $cnt; ++$i ) - { - $instances .= $this->_rules[$i]['rule']->getInstanceJavascript(); - - - $type = $this->_rules[$i]['rule']->getRuleName(); - if ( in_array( $type, $displayedTypes ) ) - continue; - - array_push( $displayedTypes, $type ); - - $globalJavascript .= $this->_rules[$i]['rule']->getGlobalJavascript(); - } - - $script = ''; - - return $script; - */ - } - - private $javascripts = array( - 'global' => array(), - 'instance' => array() - ); - - function registerGlobalJavascript($type, $script) { - - $this->javascripts['global'][$type] = $script; - } - - function registerInstanceJavascript($script) { - - $this->javascripts['instance'][] = $script; - } - - /** - * anounce a change in the element to all observers - * - * @access private - * @param string property that changed - * @param mixed new value of the property - */ - function _announce( $property, $value ) - { - $cnt = count( $this->observers ); - for ( $i = 0; $i < $cnt; $i++ ) - { - $this->observers[$i]->notify( $this, $property, $value ); - } - return true; - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Creator/Definition.php b/airtime_mvc/library/propel/contrib/pat/patForms/Creator/Definition.php deleted file mode 100644 index c2ecb4a967..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Creator/Definition.php +++ /dev/null @@ -1,42 +0,0 @@ - $definition->name - )); - - foreach ($definition->elements as $el) { - $element = &$form->createElement($el['name'], $el['type'], null); - if (!empty($el['attributes']['datasource'])) { - $ds = $el['attributes']['datasource']; - unset($el['attributes']['datasource']); - $element->setDatasource(new $ds['name']($ds)); - } - // patForms will choke when we try to set attributes that - // don't exist for an element type. So we'll have to ask. - foreach ($el['attributes'] as $name => $value) { - if ($element->hasAttribute($name)) { - $element->setAttribute($name, $value); - } - } - if (isset($el['rules'])) { - foreach ($el['rules'] as $rule) { - $element->addRule(new $rule['type']($rule)); - } - } - $form->addElement($element); - } - if (!is_null($object)) { - $form->setValues($object->toArray()); - } - if ($definition->autoValidate) { - $form->setAutoValidate($definition->autoValidate); - } - - return $form; - } - -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Creator/Propel.php b/airtime_mvc/library/propel/contrib/pat/patForms/Creator/Propel.php deleted file mode 100644 index 61876da98d..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Creator/Propel.php +++ /dev/null @@ -1,132 +0,0 @@ - - * @license LGPL, see license.txt for details - * @link http://www.php-tools.net - */ -class patForms_Creator_Propel extends patForms_Creator -{ - private static $creoleTypeMapping = array( - CreoleTypes::BOOLEAN =>'Radio', // BOOLEAN = 1; - CreoleTypes::BIGINT =>'String', // BIGINT = 2; - CreoleTypes::SMALLINT =>'String', // SMALLINT = 3; - CreoleTypes::TINYINT =>'String', // TINYINT = 4; - CreoleTypes::INTEGER =>'String', // INTEGER = 5; - CreoleTypes::CHAR =>'String', // CHAR = 6; - CreoleTypes::VARCHAR =>'String', // VARCHAR = 7; - CreoleTypes::FLOAT =>'String', // FLOAT = 8; - CreoleTypes::DOUBLE =>'String', // DOUBLE = 9; - CreoleTypes::DATE =>'Date', // DATE = 10; - CreoleTypes::TIME =>'String', // TIME = 11; - CreoleTypes::TIMESTAMP =>'Date', // TIMESTAMP = 12; - CreoleTypes::VARBINARY =>'String', // VARBINARY = 13; - CreoleTypes::NUMERIC =>'String', // NUMERIC = 14; - CreoleTypes::BLOB =>'String', // BLOB = 15; - CreoleTypes::CLOB =>'String', // CLOB = 16; - CreoleTypes::TEXT =>'Text', // TEXT = 17; - CreoleTypes::LONGVARCHAR =>'Text', // LONGVARCHAR = 17; - CreoleTypes::DECIMAL =>'String', // DECIMAL = 18; - CreoleTypes::REAL =>'String', // REAL = 19; - CreoleTypes::BINARY =>'String', // BINARY = 20; - CreoleTypes::LONGVARBINARY =>'String', // LONGVARBINARY = 21; - CreoleTypes::YEAR =>'String', // YEAR = 22; - CreoleTypes::ARR =>'String', - CreoleTypes::OTHER =>'String' - ); - - /** - * Create a form from a propel instance - * - * @access public - * @param mixed $object An instance of a Propel object - * @param array $options Any options the creator may need - * @return object $form The patForms object, or a patError object on failure. - */ - function &create( $object, $options = array() ) - { - // Propel stuff - $propel_peer = $object->getPeer(); - $propel_mapBuilder = $propel_peer->getMapBuilder(); // Not sure if we're gonna need this one - $propel_tablename = constant(get_class($propel_peer) . '::TABLE_NAME'); - $propel_tableMap = $propel_mapBuilder->getDatabaseMap()->getTable($propel_tablename); - - // The form - $form =& patForms::createForm( null, array( 'name' => 'patForms_Creator_Form' ) ); - - $propel_cols = $propel_tableMap->getColumns(); - foreach ($propel_cols as $propel_colname => $propel_col) { - - // phpName can be altered by editing the schema.xml, - // thus I think, we should lowercase()/ucfirst() this - $propel_colname = strtolower($propel_colname); - $el_displayname = ucFirst($propel_colname); - // this could be omitted of course, but I think, it's a - // convenient way to get more safe request properties - $el_name = $propel_tablename . '[' . $propel_colname . ']'; - - $el_attr = array( - 'edit' => 'yes', - 'title' => $el_displayname, - 'label' => $el_displayname, - 'name' => $el_name, - 'description' => $el_displayname - ); - - //// Obsolete ? - // Parse column info to element type info - //$type_info = $this->parseTypeInfoFromColumn($propel_col); - // Merge extra element attributes - //$el_attr = array_merge( $el_attr, $type_info['attributes'] ); - - // Is the element required ? Can we retrieve this info from the Column object ? - $el_attr['required'] = 'yes'; - // Value: for now we use default to set the value. Is there a better (more correct) way to do this ? - $el_attr['default'] = $object->{'get'.$propel_col->getPhpName()}(); - - if ($propel_col->isPrimaryKey()) { - $el_type = 'hidden'; - } else { - $el_type = self::$creoleTypeMapping[$propel_col->getCreoleType()]; - } - - $el = &$form->createElement($el_name, $el_type, null); - // patForms will choke when we try to set attributes - // that don't match the element type. So we'll ask. - foreach ($el_attr as $name => $value) { - if ($el->hasAttribute($name)) { - $el->setAttribute($name, $value); - } - } - $form->addElement($el); - } - - return $form; - } - - // Seems this function will become obsolete if we use the static $creoleTypeMapping - function parseTypeInfoFromColumn ( $column ) { - - return array( - 'type' => 'String', - 'attributes' => array() - ); - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Creator/_propel_creator_test.php b/airtime_mvc/library/propel/contrib/pat/patForms/Creator/_propel_creator_test.php deleted file mode 100644 index 33f108ed7f..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Creator/_propel_creator_test.php +++ /dev/null @@ -1,201 +0,0 @@ - - * @license LGPL, see license.txt for details - * @link http://www.php-tools.net - */ - - /** - * Main examples prepend file, needed *only* for the examples framework! - */ - //include_once 'patExampleGen/prepend.php'; - //$exampleGen->displayHead( 'Example' ); - - include('include/common.php'); - - // EXAMPLE START ------------------------------------------------------ - - /** - * main patForms class - */ - require_once ('patForms.php'); - - /** - * patErrorManager class - */ - require_once ('patErrorManager.php'); - - - // create the creator :) - $creator = &patForms::createCreator( 'Propel' ); - - // create the form object from the given propel Object class instance - - require_once('model/general/UserProfile.php'); - $userProfile = UserProfilePeer::retrieveByPK(1); - $form =& $creator->create( $userProfile ); - - //$wikipage = WikipagePeer::retrieveByPK('wiki'); - //$form =& $creator->create($wikipage); - - // create the needed renderer - $renderer =& patForms::createRenderer( "Array" ); - - // set the renderer - $form->setRenderer( $renderer ); - - // use auto-validation - $form->setAutoValidate( 'save' ); - - // serialize the elements - $elements = $form->renderForm(); - - - // ERROR DISPLAY ------------------------------------------------------ - if ( $form->isSubmitted() ) - { - displayErrors( $form ); // see patExampleGen/customFunctions.php - } - - // DISPLAY FORM ------------------------------------------------------ - displayForm( $form, $elements ); // see patExampleGen/customFunctions.php - - /** - * Takes a patForms object, asks it if there are any validation - * errors and displays them if need be. - * - * NOTE: this is just a helper method for our examples collection, - * so that you may concentrate on the relevant parts of the examples. - * It does in no way represent the way it should be done :) - * - * @access public - * @param object &$form The patForms object to use - */ - function displayErrors( &$form ) - { - // get the errors from the form object - if there are none, - // this returns false so it is easy to check if there are any. - $errors = $form->getValidationErrors(); - - // if there are any errors, display them. - if ( $errors ) - { - echo '
'; - echo '
Validation failed
'; - echo '
'; - - // the errors collection is an associative array with the - // field names as keys, so we go through that. - foreach ( $errors as $elementName => $elementErrors ) - { - $element =& $form->getElementByName( $elementName ); - - // each element can have more than one error - this - // is rare, but can happen so this is an indexed array - // with one error in each row. - foreach ( $elementErrors as $row => $error ) - { - echo '
'; - echo ' '.$element->getAttribute( 'label' ).': '.$error['message'].'('.$error['element'].' element error #'.$error['code'].')
'; - echo '
'; - } - } - - echo '
'; - echo '
'; - } - // no errors, tell the world everything is fine - else - { - - echo '
Validation successful.
'; - } - } - - - /** - * Displays a standard form from the examples collection when the - * form is rendered via the array renderer. Does not work for any - * other examples. - * - * NOTE: this is just a helper method for our examples collection, - * so that you may concentrate on the relevant parts of the examples. - * It does in no way represent the way it should be done :) - * - * @access public - * @param object &$form The current form object - * @param array $elements The rendered elements from the - * @return - * @see - */ - function displayForm( &$form, $elements ) - { - // output the opening form tag - echo $form->serializeStart(); - - echo "\n"; - foreach ( $elements as $element ) { - } - echo "
\n"; - - // display all elements - foreach ( $elements as $element ) - { - if (!isset($element['description'])) { - // would choke a warning on hidden fields - // strange enough, we've no $element['type'] for hidden inputs - echo $element['element'] . "\n"; - continue; - } - - echo '
'; - echo $element['label']."
"; - echo "
".$element["element"]."
"; - echo "".$element["description"]."
"; - - echo '
'; - - //} else { - //echo "".$element['description']."".$element['element']."\n"; - //} - } - - // submit button, closing form tag - echo '

'; - echo $form->serializeEnd(); - - - // form submitted? display all form values - if ( $form->isSubmitted() ) { - $els =& $form->getElements(); - $cnt = count( $els ); - - echo '
'; - echo '
Submitted form values
'; - echo '
'; - echo ' '; - - for ( $i = 0; $i < $cnt; $i++ ) { - echo ''; - echo ' '; - echo ''; - } - - echo '
'.$els[$i]->getAttribute('label').' : '.$els[$i]->getValue().'
'; - echo '
'; - echo '
'; - } - } diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Datasource/Propel.php b/airtime_mvc/library/propel/contrib/pat/patForms/Datasource/Propel.php deleted file mode 100644 index 08c0595351..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Datasource/Propel.php +++ /dev/null @@ -1,70 +0,0 @@ -peername = $conf['peername']; - $this->label = $conf['label']; - $this->value = $conf['value']; - } - - public function getValues() { - - $map = call_user_func(array($this->peername, 'getPhpNameMap')); - - $c = new Criteria(); - $c->clearSelectColumns(); - - foreach (array($this->label, $this->value) as $arr) { - foreach ($arr['members'] as $member) { - if (is_array($member)) { - foreach ($member as $member) { - $c->addSelectColumn(constant($this->peername . '::' . $map[$member])); - } - } else { - $c->addSelectColumn(constant($this->peername . '::' . $map[$member])); - } - } - } - - if (isset($this->label['initial']) OR isset($this->value['initial'])) { - $label = isset($this->label['initial']) ? $this->label['initial'] : ''; - $value = isset($this->value['initial']) ? $this->value['initial'] : ''; - $result[] = array( - 'value' => $value, - 'label' => $label - ); - } - - $rs = AuthorPeer::doSelectStmt($c); - $rs->setFetchmode(ResultSet::FETCHMODE_ASSOC); - while ($rs->next()) { - $row = $rs->getRow(); - foreach (array('label', 'value') as $key) { - $arr = $this->$key; - $params = array($arr['mask']); - foreach ($arr['members'] as $member) { - if (is_array($member)) { - foreach ($member as $member) { - $field_name = strtolower($map[$member]); // TODO is this always true? - $params[] = $row[$field_name]; - } - } else { - $field_name = strtolower($map[$member]); // TODO is this always true? - $params[] = $row[$field_name]; - } - } - $$key = call_user_func_array('sprintf', $params); - $tmp[$key] = $$key; - } - $result[] = $tmp; - } - - return $result; - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Definition.php b/airtime_mvc/library/propel/contrib/pat/patForms/Definition.php deleted file mode 100644 index d02ab5b789..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Definition.php +++ /dev/null @@ -1,122 +0,0 @@ -data['name'] = $name; - $this->data['mtime'] = time(); - if ($autoValidate) { - $this->data['autoValidate'] = $autoValidate; - } - } - - static public function create($conf) { - // TODO - } - - public function __get($name) { - - if (isset($this->data[$name])) { - return $this->data[$name]; - } - } - - // TODO change protocol to addElement(array $element) - public function addElement($name, $type, $attributes = array(), $rules = array()) { - - if (is_array($type)) { - extract($type); - } - - $this->data['elements'][$name]['name'] = $name; - $this->data['elements'][$name]['type'] = $type; - - foreach ($attributes as $key => $value) { - $value = $this->cast($value); - $this->data['elements'][$name]['attributes'][$key] = $value; - } - foreach ($rules as $key => $rule) { - $this->data['elements'][$name]['rules'][$key] = $rule; - } - } - - public function load($filename) { - - $data = $this->read($filename); - - foreach ($data as $key => $value) { - if ($key == 'elements') { - foreach ($value as $name => $element) { - $this->addElement($name, $element); - } - } else { - $this->data[$key] = $this->cast($value); - } - } - } - - public function save($filename) { - - $this->write($filename, $this->data); - } - - protected function read($filename) { - - $xml = file_get_contents($filename); - $unserializer = new XML_Unserializer(); - $unserializer->unserialize($xml); - return $unserializer->getUnserializedData(); - } - - protected function write($filename, $data) { - - $serializer = new XML_Serializer(array ( - 'addDecl' => true, - 'encoding' => 'ISO-8859-1', - 'indent' => ' ', - 'rootName' => 'form', - 'defaultTagName' => 'tag' - )); - $serializer->serialize($data); - $xml = $serializer->getSerializedData(); - - $fp = fopen($filename, 'w+'); - fputs($fp, $xml); - fclose($fp); - } - - protected function cast($value) { - - return $value; - - // seems as if patForms_Element(s) are broken here - // e.g. in patForms_Element_Text::serializeHtmlDefault() - // at line 245 if ( $this->attributes['display'] == 'no' ) - // will result to true if the display attribute is set - // to (php boolean) true - // so casting the 'true'/'false' and 'yes'/'no' values - // would break intended behaviour here - - if (is_array($value) OR is_bool($value)) { - return $value; - } - if ($value === 'true') { - return true; - } - if ($value === 'false') { - return false; - } - if (preg_match('/^[+-]?[0-9]+$/', $value)) { - settype($value, 'int'); - return $value; - } - if (preg_match('/^[+-]?[0-9]*\.[0-9]+$/', $value)) { - settype($value, 'double'); - return $value; - } - return $value; - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Definition/Propel.php b/airtime_mvc/library/propel/contrib/pat/patForms/Definition/Propel.php deleted file mode 100644 index d2ecbe0a07..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Definition/Propel.php +++ /dev/null @@ -1,165 +0,0 @@ - 'Switch', // BOOLEAN = 1; - CreoleTypes::BIGINT => 'String', // BIGINT = 2; - CreoleTypes::SMALLINT => 'String', // SMALLINT = 3; - CreoleTypes::TINYINT => 'String', // TINYINT = 4; - CreoleTypes::INTEGER => 'String', // INTEGER = 5; - CreoleTypes::CHAR => 'String', // CHAR = 6; - CreoleTypes::VARCHAR => 'String', // VARCHAR = 7; - CreoleTypes::FLOAT => 'String', // FLOAT = 8; - CreoleTypes::DOUBLE => 'String', // DOUBLE = 9; - CreoleTypes::DATE => 'String', // DATE = 10; - CreoleTypes::TIME => 'String', // TIME = 11; - CreoleTypes::TIMESTAMP => 'Date', // TIMESTAMP = 12; - CreoleTypes::VARBINARY => 'String', // VARBINARY = 13; - CreoleTypes::NUMERIC => 'String', // NUMERIC = 14; - CreoleTypes::BLOB => 'Text', // BLOB = 15; - CreoleTypes::CLOB => 'Text', // CLOB = 16; - CreoleTypes::TEXT => 'Text', // TEXT = 17; - CreoleTypes::LONGVARCHAR => 'Text', // LONGVARCHAR = 17; - CreoleTypes::DECIMAL => 'String', // DECIMAL = 18; - CreoleTypes::REAL => 'String', // REAL = 19; - CreoleTypes::BINARY => 'String', // BINARY = 20; - CreoleTypes::LONGVARBINARY => 'Text', // LONGVARBINARY = 21; - CreoleTypes::YEAR => 'String', // YEAR = 22; - CreoleTypes::ARR => 'String', - CreoleTypes::OTHER => 'String' - ); - - private static $validatorTypeMap = array( - 'unique' => null, - 'minLength' => 'patForms_Rule_MinLength', - 'maxLength' => 'patForms_Rule_MaxLength', - 'minValue' => 'patForms_Rule_MinValue', - 'maxValue' => 'patForms_Rule_MaxValue', - 'match' => 'patForms_Rule_Match', - 'notMatch' => 'patForms_Rule_NotMatch', - 'required' => null, // will be done by the elements "required" attribute - 'validValues' => 'patForms_Rule_ValidValues', - ); - - /** - * @param array $conf an assoc array of parameters. these are: - * - string name => $name of the propel object class - * - string filename => $filename of the form definition xml file - */ - - static public function create($conf) { - - extract($conf); - - $autoValidate = isset($autoValidate) ? $autoValidate : 'save'; - - $definition = new patForms_Definition_Propel($name, $autoValidate); - - if (0 AND file_exists($filename)) { - // load definition from xml file - $definition->load($filename); - } else { - // populate definition from table map and save it to xml file - $definition = self::populateFromTableMap($definition, $conf); - $definition->save($filename); - } - - return $definition; - } - - private function populateFromTableMap($definition, $conf) { - - extract($conf); - - $mapBuilder = call_user_func(array($name . 'Peer', 'getMapBuilder')); - $tablename = constant($name . 'Peer::TABLE_NAME'); - $tableMap = $mapBuilder->getDatabaseMap()->getTable($tablename); - $cols = $tableMap->getColumns(); - - foreach ($cols as $col) { - - $phpname = $col->getPhpName(); - // this would need a patched version of patForms in order - // to retrieve request vars after having submitted the form - // TODO - ask patForms developers to enable this - // $elementName = $tablename . '[' . $phpname . ']'; - $elementName = $phpname; - - $elementType = self::$creoleTypeMap[$col->getCreoleType()]; - - // TODO somehow retrieve element type specific default values? - $elementAttributes = array( - 'name' => $elementName, - 'title' => $phpname, - 'label' => $phpname, - 'description' => $phpname, - 'edit' => 'yes', - 'display' => $col->isPrimaryKey() ? 'no' : 'yes', - // Is the element required? - // TODO Can we retrieve this info from the Column object? - 'required' => true, - ); - - switch ($col->getCreoleType()) { - case CreoleTypes::BOOLEAN: { - $elementAttributes['value'] = 1; - break; - } - case CreoleTypes::DATE: { - // TODO doesn't seem to work for some reason - // $elementAttributes['format'] = 'date'; - // $elementAttributes['dateformat'] = 'Ymd'; - break; - } - } - - if ($col->isForeignKey()) { - - $relColname = $col->getRelatedColumnName(); - $relTablename = $col->getRelatedTableName(); - $relColPhpname = - Propel::getDatabaseMap(constant($relTablename . 'Peer::DATABASE_NAME'))-> - getTable($relTablename)->getColumn($relColname)->getPhpname(); - - $elementAttributes['datasource'] = array ( - 'name' => 'patForms_Datasource_Propel', - 'peername' => $relTablename . 'Peer', - 'label' => array( - 'initial' => 'Please select one ...', - 'members' => array($relColPhpname), - 'mask' => '%s', - ), - 'value' => array( - 'members' => array($relColPhpname), - 'mask' => '%s', - ), - ); - $elementType = 'Enum'; - } - - $rules = array(); - if ($col->hasValidators()) { - foreach ($col->getValidators() as $validator) { - $name = $validator->getName(); - $type = self::$validatorTypeMap[$name]; - if (!is_null($type)) { - $rules[$name] = array ( - 'table' => $col->getTablename(), - 'col' => $col->getColumnName(), - 'name' => $name, - 'type' => self::$validatorTypeMap[$name], - 'value' => $validator->getValue(), - 'class' => $validator->getClass(), - 'message' => $validator->getMessage(), - ); - } - } - } - - $definition->addElement($phpname, $elementType, $elementAttributes, $rules); - } - - return $definition; - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Element.php b/airtime_mvc/library/propel/contrib/pat/patForms/Element.php deleted file mode 100644 index de1a6c9ef9..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Element.php +++ /dev/null @@ -1,1954 +0,0 @@ - - * @author gERD Schaufelberger - * @author Stephan Schmidt - */ - -/** - * error definition: the attribute that was set is not supported by this element (it is - * not listed in the attributeDefinition property set in the element class). - * @see patForms_Element::attributeDefinition - */ -define( "PATFORMS_ELEMENT_NOTICE_ATTRIBUTE_NOT_SUPPORTED", 1101 ); - -/** - * error definition: the setAttributes() method expects an array, - * but given value was not. - * @see patForms_Element::setAttributes() - */ -define( "PATFORMS_ELEMENT_ERROR_ARRAY_EXPECTED", 1102 ); - -/** - * error definition: the given attribute could not be set - */ -define( "PATFORMS_ELEMENT_ERROR_ADDING_ATTRIBUTE_FAILED", 1103 ); - -/** - * error definition: the element method to serialize the element in the given mode is - * not implemented. - * @see patForms_Element::serialize() - */ -define( "PATFORMS_ELEMENT_ERROR_METHOD_FOR_MODE_NOT_AVAILABLE", 1104 ); - -/** - * error definition: the element returned an error - */ -define( "PATFORMS_ELEMENT_ERROR_ERROR_RETURNED", 1105 ); - -/** - * error definition: the utility class {@link patForms_FormatChecker} could not be found, this is - * needed for the format validation of certain variable types. - * @see patForms_FormatChecker - * @see patForms_Element::validateFormat() - */ -define( "PATFORMS_ELEMENT_ERROR_FORMAT_CHECKER_NOT_FOUND", 1106 ); - -/** - * error definition: the modifier that was set for the element is not an array. - * @see patForms_Element::_applyModifiers() - */ -define( "PATFORMS_ELEMENT_ERROR_MODIFIER_NOT_AN_ARRAY", 1107 ); - -/** - * error definition: the method for the given modifier does not exist - * @see patForms_Element::_applyModifiers() - */ -define( "PATFORMS_ELEMENT_ERROR_METHOD_FOR_MODIFIER_NOT_FOUND", 1108 ); - -/** - * error definition: the modifier returned an error, modifications could not be made. - * @see patForms_Element::_applyModifiers() - */ -define( "PATFORMS_ELEMENT_ERROR_MODIFIER_RETURNED_ERROR", 1109 ); - -/** - * error definition: the given attribute is required for the specified output format. - * @see patForms_Element::getAttributesFor() - */ -define( "PATFORMS_ELEMENT_ERROR_ATTRIBUTE_REQUIRED", 1110 ); - -/** - * error definition: given modifier could not be applied to specified attribute - * @see patForms_Element::getAttributesFor() - */ -define( "PATFORMS_ELEMENT_ERROR_UNABLE_TO_APPLY_MODIFIER_TO_ATTRIBUTE", 1111 ); - -/** - * error definition: the given attribute is not available for output in the specified - * output format. - * @see patForms_Element::getAttributesFor() - */ -define( "PATFORMS_ELEMENT_ERROR_ATTRIBUTE_NOT_AVAILABLE_FOR_OUTPUT", 1112 ); - -/** - * error definition: format of the attribute could not be verified - * @see patForms_Element::getAttributesFor() - */ -define( "PATFORMS_ELEMENT_ERROR_CAN_NOT_VERIFY_FORMAT", 1113 ); - -/** - * error definition: the attribute collection of the element could not be validated. - * @see patForms_Element::toHtml() - */ -define( "PATFORMS_ELEMENT_ERROR_CAN_NOT_VALIDATE_ATTRIBUTE_COLLECTION", 1114 ); - -/** - * error definition: validator undefined - */ -define( "PATFORMS_ELEMENT_ERROR_VALIDATOR_ERROR_UNDEFINED", 1115 ); - -/** - * error definition: undefined locale for errors output - */ -define( "PATFORMS_ELEMENT_ERROR_VALIDATOR_ERROR_LOCALE_UNDEFINED", 1116 ); - -/** - * error definition: the html source for the element could not be generated. - */ -define( "PATFORMS_ELEMENT_ERROR_NO_HTML_CONTENT", 1221 ); - -/** - * error definition: not a valid renderer - */ -define( 'PATFORMS_ELEMENT_ERROR_INVALID_RENDERER', 1222 ); - -/** - * error definition: this element does not support the use of a renderer - */ -define( 'PATFORMS_ELEMENT_RENDERER_NOT_SUPPORTED', 1223 ); - -/** - * filter is located between patForms and browser - */ -define( 'PATFORMS_FILTER_TYPE_HTTP', 1 ); - -/** - * filter is located between patForms and the PHP script - */ -define( 'PATFORMS_FILTER_TYPE_PHP', 2 ); - -/** - * base patForms element class with all needed base functionality that each element - * should have. Extend this class to create your own elements. - * - * $Id: Element.php 1347 2009-12-03 21:06:36Z francois $ - * - * @abstract - * @package patForms - * @subpackage patForms_Element - * @access protected - * @version 0.1 - * @author Sebastian Mordziol - * @author gERD Schaufelberger - * @author Stephan Schmidt - * @license LGPL, see license.txt for details - * @link http://www.php-tools.net - */ -class patForms_Element -{ - /** - * the type of the element, set this in your element class! - * @access protected - */ - var $elementType = false; - - /** - * javascript that will be displayed only once - * - * @access private - * @var array - */ - var $globalJavascript = array(); - - /** - * javascript that will be displayed once per instance - * - * @access private - * @var array - */ - var $instanceJavascript = array(); - - /** - * the value of the element - * @access protected - */ - var $value = false; - - /** - * filters that have been applied - * @access private - */ - var $filters = array(); - - /** - * observers that have been attached - * - * @access private - * @var array - */ - var $observers = array(); - - /** - * The elementName for the serialized version of the element - * - * This is needed for the toXML() method and also by the patForms - * error management. If it is not set, the element name will be - * created by extracting everything after the last underscore in - * the classname. - * - * @access protected - * @see toXML() - */ - var $elementName = null; - - /** - * the attribute collection of the element - * @access private - * @see setAttribute() - * @see setAttributes() - * @see getAttribute() - * @see getAttributes() - */ - var $attributes = array(); - - /** - * the configuration for the attributes supported by the element. Overwrite this - * in your element class. - * - * @abstract - */ - var $attributeDefinition = array(); - - /** - * Stores the attribute defaults for the element, that will be used - * if the given attributes have not been set by the user. - * - * @abstract - * @access private - * @see getAttributeDefaults() - */ - var $attributeDefaults = array(); - - /** - * stores the mode for the element. It defaults to 'default', and is only overwritten if - * set specifically. - * - * @access protected - * @see setMode() - */ - var $mode = "default"; - - /** - * stores the format for the element. It defaults to 'html', and is only overwritten if - * set specifically. - * - * @access protected - * @see setFormat() - */ - var $format = "html"; - - /** - * stores the locale to use when adding validation errors. The specified locale has - * to be set in the validationErrorCodes element class property, otherwise the default - * 'C' (as in the programming language C => english) will be used. - * - * @access private - * @var string $locale - * @see setLocale() - */ - var $locale = "C"; - - /** - * stores the flag telling the element whether it has been submitted - this is used by the - * getValue() method to determine where to get the element's value from. - * @access protected - * @see getValue() - */ - var $submitted = false; - - /** - * stores the flag whether the element is valid - * @access protected - */ - var $valid = true; - - /** - * stores any validation errors that can occurr during the element's validation process. - * - * @access private - * @var array $validationErrors - */ - var $validationErrors = array(); - - /** - * define error codes an messages for each form element - * - * @access protected - * @var array $validatorErrorCodes - */ - var $validatorErrorCodes = array(); - - /** - * defines the starting character for the modifier placeholders that can be inserted - * in the attributes listed as having modifier support. - * - * @access private - * @var string $modifierStart - */ - var $modifierStart = "["; - - /** - * defines the starting character for the modifier placeholders that can be inserted - * in the attributes listed as having modifier support. - * - * @access private - * @var string $modifierStart - */ - var $modifierEnd = "]"; - - /** - * XML entities - * - * @access protected - * @see toXML() - */ - var $xmlEntities = array( - "<" => "<", - ">" => ">", - "&" => "&", - "'" => "'", - '"' => """ - ); - /** - * shortcur to the session variables - * If "false", no session will be used, otherwise it stores the session variables for this element - * - * @access private - * @var mixed $sessionVar - */ - var $sessionVar = false; - - /** - * custom validation rules - * - * @access private - * @var array - */ - var $_rules = array(); - - /** - * next error offset for rules - * @access private - * @var integer - */ - var $nextErrorOffset = 1000; - - /** - * stores whether the element uses a renderer to serialize its content - * @access private - * @var bool - */ - var $usesRenderer = false; - - /** - * Stores the renderer object that can be set via the setRenderer method - * @access private - * @var object - */ - var $renderer = false; - - /** - * Stores all element options - * @access private - */ - var $options = array(); - - /** - * constructor - extend this in your class if you need to do specific operations - * on startup. In that case, however, don't forget to call this constructor anyway - * so that the thing happening here don't get lost. - * - * That's easy to do... just add the following line in your constructor: - * parent::patForms_Element(); - * - * @access public - * @param mixed $mode Optional: the output format, e.g. 'html' - */ - function __construct( $format = false ) - { - if ( $format !== false ) - { - $this->format = $format; - } - - $this->loadAttributeDefaults(); - } - - /** - * patForms_Element constructor for php4 - * - * @access private - * @param integer $id - * @return boolean $result true on success - * @see __construct - */ - function patForms_Element( $format = false ) - { - $this->__construct( $format ); - } - - /** - * Add any initialization routines for your element in your element class, - * for everythig your element needs to do after it has been instantiated and - * the attribute collection has been created. - * - * @abstract - * @access private - * @return mixed $success True on success, a patError object otherwise - */ - function _init() - { - // your code here - return true; - } - - /** - * sets the format of the element - this defines which method will be called in your - * element class, along with the {@link mode} property. - * - * @access public - * @param string $format The name of the format you have implemented in your element(s). Default is 'html' - * @see setFormat() - * @see format - * @see serialize() - */ - function setFormat( $format ) - { - $this->format = strtolower( $format ); - } - - /** - * sets the mode of the element that defines which methods will be called in your - * element class, along with the {@link format} property. - * - * @access public - * @param string $mode The mode to set the element to: default|readonly or any other mode you have implemented in your element class(es). Default is 'default'. - * @see setFormat() - * @see mode - * @see serialize() - */ - function setMode( $mode ) - { - $this->mode = strtolower( $mode ); - } - - /** - * sets the locale (language) to use for the validation error messages of the form. - * - * @access public - * @param string $lang - * @return bool $result True on success - * @see $locale - */ - function setLocale( $lang ) - { - $this->locale = $lang; - - // check, whether this is a custom locale - if (patForms::isCustomLocale($lang)) { - $errorMessages = patForms::getCustomLocale($lang, 'Element::' . $this->elementName); - if (is_array($errorMessages)) { - $this->validatorErrorCodes[$lang] = $errorMessages; - } - } - - return true; - } - - /** - * sets the value of the element, which will be used to fill the element with. If none is - * set and the element needs a value, it will load it using the {@link resolveValue()} method. - * - * This will override user input. - * - * @access public - * @param mixed $value The value to set - * @see $value - * @see resolveValue() - * @see getValue() - */ - function setValue( $value ) - { - $value = $this->_applyFilters( $value, 'in', PATFORMS_FILTER_TYPE_PHP ); - $this->value = $value; - } - - /** - * sets the default value of the element, which will be used to fill the element with. - * - * @access public - * @param mixed $value The value to set - * @see $value - * @see resolveValue() - * @see setValue() - * @see getValue() - */ - function setDefaultValue( $value ) - { - $this->setAttribute('default', $value); - } - - /** - * sets the current submitted state of the element. Set this to true if you want the element - * to pick up its submitted data. - * - * @access public - * @param bool $state True if it has been submitted, false otherwise (default). - * @see getSubmitted() - * @see $submitted - */ - function setSubmitted( $state ) - { - $this->submitted = $state; - } - - /** - * sets the internal ID of the element - this is only used by the {@link patForms} class to - * give each element a unique ID that will be added as ID attribute to each element if the - * id attribute has not been defined. - * - * @access public - * @param string $id The id to set for the element - * @see getId() - */ - function setId( $id ) - { - $this->attributes['id'] = $id; - } - - /** - * gets the internal ID of the element - * - * @access public - * @return string $id The id to set for the element - * @see setId() - */ - function getId() - { - return $this->getAttribute( 'id' ); - } - - /** - * checks whether a given attribute is supported by this element. - * - * @access public - * @param string $attributeName The name of the attribute to check - * @return bool $hasAttribute True if it supports the attribute, false otherwise. - */ - function hasAttribute( $attributeName ) - { - if ( isset( $this->attributeDefinition[$attributeName] ) ) - { - return true; - } - - return false; - } - - /** - * adds an attribute to the element's attribut3 collection. If the attribute - * already exists, it is overwritten. - * - * @access public - * @param string $attributeName The name of the attribute to add - * @param string $attributeValue The value of the attribute - * @return mixed $success True on success, a patError object otherwise - */ - function setAttribute( $attributeName, $attributeValue ) - { - if ( !isset( $this->attributeDefinition[$attributeName] ) ) - { - return patErrorManager::raiseNotice( - PATFORMS_ELEMENT_NOTICE_ATTRIBUTE_NOT_SUPPORTED, - 'Unknown attribute ['.$attributeName.']', - 'Ignored the attribute as the ['.$this->elementName.'] element does not support it.' - ); - } - - $this->attributes[$attributeName] = $attributeValue; - - return true; - } - - /** - * adds several attribute at once to the element's attributes collection. - * Any existing attributes will be overwritten. - * - * @access public - * @param array $attributes The attributes to add - * @return mixed $success True on success, false otherwise - */ - function setAttributes( $attributes ) - { - if ( !is_array( $attributes ) ) - { - return patErrorManager::raiseError( - PATFORMS_ELEMENT_ERROR_ARRAY_EXPECTED, - "Not an array given (setAttributes)" - ); - } - - foreach ( $attributes as $attributeName => $attributeValue ) - { - $this->setAttribute( $attributeName, $attributeValue ); - } - - return true; - } - - /** - * sets a renderer object that will be used to render - * the element. Use the serialize() method to retrieve - * the rendered content of the element. - * - * Only enabled in elements that support renderers, like - * the radio element. - * - * @access public - * @param object &$renderer The renderer object - */ - function setRenderer( &$renderer ) - { - if ( !$this->usesRenderer ) - { - return patErrorManager::raiseWarning( - PATFORMS_ELEMENT_RENDERER_NOT_SUPPORTED, - 'The element \''.$this->elementName.'\' does not support the use of renderers - you do not have to set a renderer for this element.' - ); - } - - if ( !is_object( $renderer ) ) - { - return patErrorManager::raiseError( - PATFORMS_ELEMENT_ERROR_INVALID_RENDERER, - 'You can only set a patForms_Renderer object with the setRenderer() method, "'.gettype( $renderer ).'" given.' - ); - } - - $this->renderer = &$renderer; - } - - /** - * retrieves the value of an attribute. - * - * @access public - * @param string $attribute The name of the attribute to retrieve - * @return mixed $attributeValue The value of the attribute, or false if it does not exist in the attributes collection. - * @see setAttribute() - */ - function getAttribute( $attribute ) - { - if ( !isset( $this->attributes[$attribute] ) ) - { - return false; - } - - return $this->attributes[$attribute]; - } - - /** - * retrieves all attributes, or only the specified attributes. - * - * @access public - * @param array $attributes Optional: The names of the attributes to retrieve. Only the attributes that exist will be returned. - * @return array $result The attributes - * @see getAttribute() - */ - function getAttributes( $attributes = array() ) - { - if ( empty( $attributes ) ) - { - return $this->attributes; - } - - $result = array(); - foreach ( $attributes as $attribute ) - { - if ( $attributeValue = $this->getAttribute( $attribute ) ) - { - $result[$attribute] = $attributeValue; - } - } - - return $result; - } - - /** - * Loads the default attribute values into the attributes collection. Done directly - * on startup (in the consructor), so make sure you call this if your element needs - * this feature and you have implemented a custom constructor in your element. - * - * @access public - * @return bool $success Always returns true. - * @see $attributeDefaults - */ - function loadAttributeDefaults() - { - foreach ( $this->attributeDefinition as $attributeName => $attributeDef ) - { - if ( isset( $attributeDef['default'] ) ) - { - $this->attributes[$attributeName] = $attributeDef['default']; - } - } - - return true; - } - - /** - * retrieves the current value of the element. If none is set, will try to retrieve the - * value from submitted form data. - * - * @access public - * @param boolean Determines whether the method is used from an external script - * @return mixed The value, or an empty string if none found. - * @see setValue() - * @see value - * @see resolveValue() - */ - function getValue( $external = true ) - { - if ( $this->value === false ) - { - $this->resolveValue(); - - // could not be resolved - if ( $this->value === false ) - { - $value = ''; - } - else - { - $value = $this->value; - } - } - else - { - $value = $this->value; - } - - if ( $external === false ) - { - return $value; - } - - $value = $this->_applyFilters( $value, 'out', PATFORMS_FILTER_TYPE_PHP ); - - return $value; - } - - /** - * resolves the scope the value of the element may be stored in, and returns it. - * - * @access protected - * @see getValue() - * @see value - * @todo parse element name, if it uses the array syntax - */ - function resolveValue() - { - $varName = $this->attributes['name']; - - if ( $this->submitted && isset( $_POST[$varName] ) ) - { - $this->value = $_POST[$varName]; - if ( ini_get( 'magic_quotes_gpc' ) ) - $this->value = $this->rStripSlashes( $this->value ); - $this->value = $this->_applyFilters( $this->value, 'in', PATFORMS_FILTER_TYPE_HTTP ); - return true; - } - - if ( $this->submitted && isset( $_GET[$varName] ) ) - { - $this->value = $_GET[$varName]; - if ( ini_get( 'magic_quotes_gpc' ) ) - $this->value = $this->rStripSlashes( $this->value ); - $this->value = $this->_applyFilters( $this->value, 'in', PATFORMS_FILTER_TYPE_HTTP ); - return true; - } - - if ( isset( $this->attributes['default'] ) ) - { - $this->value = $this->attributes['default']; - $this->value = $this->_applyFilters( $this->value, 'in', PATFORMS_FILTER_TYPE_PHP ); - - return true; - } - - return true; - } - - /** - * recursively strip slashes - * - * This method is used to 'fix' magic_quotes_gpc. - * - * @access public - * @param mixed user input (get or post) - * @return mixed data with slashes stripped - */ - function rStripSlashes( $value ) - { - if ( is_scalar( $value ) ) - return stripslashes( $value ); - if ( is_array( $value ) ) - { - foreach ( $value as $key => $val ) - { - $value[$key] = $this->rStripSlashes( $val ); - } - } - return $value; - } - - /** - * apply filters to a value - * - * @access private - * @param mixed value - * @param string direction of the filter ('in' or 'out') - * @param integer type of filters to apply - * @return mixed filtered value - */ - function _applyFilters( $value, $dir = 'in', $type = PATFORMS_FILTER_TYPE_PHP ) - { - if ( empty( $this->filters ) ) - return $value; - - /** - * apply filters! - */ - $cnt = count( $this->filters ); - for ( $i = 0; $i < $cnt; $i++ ) - { - /** - * check, whether filter is located between php script and form - */ - if ( $this->filters[$i]->getType() != $type ) - { - continue; - } - - $value = $this->filters[$i]->$dir( $value ); - } - return $value; - } - - /** - * retrieves the current mode of the element - * - * @access public - * @return string $mode The current element mode - * @see setMode() - * @see mode - */ - function getMode() - { - return $this->mode; - } - - /** - * retrieves the current format of the element - * - * @access public - * @return string $format The current element format - * @see setFormat() - * @see format - */ - function getFormat() - { - return $this->format; - } - - /** - * retrieves the element's current submitted state. - * - * @access public - * @return bool $state True if it has been submitted, false otherwise. - * @see setSubmitted() - * @see submitted - */ - function getSubmitted() - { - return $this->submitted; - } - - /** - * retrieves the name of the element - * - * @access public - * @return string $name name of the element - * @uses getAttribute() - */ - function getName() - { - return $this->getAttribute( 'name' ); - } - - /** - * add a custom validation rule - * - * @access public - * @param object patForms_Rule validation rule - * @param integer time, when rule has to be applied, can be before or after validation. - * If set to null, it will use the default value as specified in the rule - * @return boolean currently always true - */ - function addRule( &$rule, $time = null ) - { - if ( is_null( $time ) ) - { - $time = $rule->getTime(); - } - - $rule->prepareRule( $this ); - - $this->_rules[] = array( - 'rule' => &$rule, - 'time' => $time, - ); - return true; - } - - /** - * adds an observer to the element - * - * @access public - * @param object patForms_Observer observer - * @return boolean currently always true - */ - function attachObserver( &$observer ) - { - $this->observers[] = &$observer; - return true; - } - - /** - * dispatches the serialization of the element in the format that was set to the - * corresponding method in the element class. These methods must be named in the - * folowing scheme: - * - * serialize[format][mode](), e.g. serializeHtmlDefault() - * - * @access public - * @return string $element The created element according to the specified mode. - * @see setFormat() - * @see setMode() - * @todo serialize*() methods should return a patError object instead of false!!!! - * Has to be changed asap! - */ - function serialize() - { - $methodName = "serialize".ucfirst( $this->getFormat() ).ucfirst( $this->getMode() ); - - if ( !method_exists( $this, $methodName ) ) - { - return patErrorManager::raiseError( - PATFORMS_ELEMENT_ERROR_METHOD_FOR_MODE_NOT_AVAILABLE, - "Element method for form mode '".$this->getMode()."' (".$methodName.") is not available." - ); - } - - /** - * get the value for internal use - * The PHP-filters will not be applied - */ - $value = $this->getValue( false ); - - $element = $this->$methodName( $value ); - if ( patErrorManager::isError( $element ) ) - { - return $element; - } - - return $element; - } - - /** - * Template method that applies rules and calls the elements - * validation method - * - * @final - * @access public - * @return bool $success True on success, false otherwise - */ - function validate() - { - // apply locale, if the current locale is a custom locale - if (patForms::isCustomLocale($this->locale)) { - $cnt = count( $this->_rules ); - for ( $i = 0; $i < $cnt; $i++ ) { - $this->_rules[$i]['rule']->setLocale($this->locale); - } - } - - /** - * validate custom rules - */ - if ( !$this->_applyRules( PATFORMS_RULE_BEFORE_VALIDATION ) ) - { - $this->_announce( 'status', 'error' ); - return false; - } - - /** - * the the unfiltered value - */ - $value = $this->getValue( false ); - - $valid = $this->validateElement( $value ); - if ( $valid === false ) - { - $this->_announce( 'status', 'error' ); - return false; - } - - /** - * validate custom rules - */ - if ( !$this->_applyRules( PATFORMS_RULE_AFTER_VALIDATION ) ) - { - $this->_announce( 'status', 'error' ); - return false; - } - - $this->_announce( 'status', 'validated' ); - return true; - } - - /** - * validates the given data with the element's validation routines - * and returns the data with any needed modifications. - * - * @abstract - * @access private - * @return bool $success True on success, false otherwise - */ - function validateElement() - { - // your code here - return true; - } - - /** - * apply rules - * - * @access private - * @param integer time of validation - * @return boolean rules are valid or not - * @todo add documentation - */ - function _applyRules( $time ) - { - $valid = true; - - $cnt = count( $this->_rules ); - for ( $i = 0; $i < $cnt; $i++ ) - { - if ( ( $this->_rules[$i]['time'] & $time ) != $time ) - continue; - - $result = $this->_rules[$i]['rule']->applyRule( $this, $time ); - if ( $result === false ) - { - $valid = false; - } - } - return $valid; - } - - /** - * finalize the element. - * - * Used as a template method. - * - * @final - * @access protected - * @return bool $success True on success, false otherwise - * @uses finalizeElement() to call the user code - */ - function finalize() - { - $value = $this->getValue( false ); - return $this->finalizeElement( $value ); - } - - /** - * finalize the element - * - * Offers the possibility to process any needed operations after the element - * has been validated. Implement any tasks that you need to do then here - a - * good example is the File element, where this method enables the moving of - * the uploaded file to the correct location. - * - * @abstract - * @access private - * @param mixed value of the element - * @return bool $success True on success, false otherwise - */ - function finalizeElement( $value ) - { - return true; - } - - /** - * Enables an element option. - * - * See the {@link patForms::$options} property for an exhaustive list of available options. - * - * @access public - * @param string $option The option to enable - * @param array $params Optional parameters for the option - * @see disableOption() - * @see $options - */ - function enableOption( $option, $params = array() ) - { - if ( !isset( $this->options[$option] ) ) - $this->options[$option] = array(); - - $this->options[$option]['enabled'] = true; - $this->options[$option]['params'] = $params; - } - - /** - * Disables an element option - * - * See the {@link patForms::$options} property for an exhaustive list of available options. - * - * @access public - * @param string $option The option to disable - * @see enableOption() - * @see $options - */ - function disableOption( $option ) - { - if ( !isset( $this->options[$option] ) ) - $this->options[$option] = array(); - - $this->options[$option]['enabled'] = false; - } - - /** - * [helper method] validates the given value according to the specified method. It first - * checks if there is a method to check the format in the {@link patForms_FormatChecker} - * class, then checks in the element class itself. - * - * @access public - * @param mixed $value The value to validate the format of - * @param string $format The format to validate the value with - * @return bool $isValid True if valid, false if invalid or no method exists to validate the format. - * @see patForms_FormatChecker - */ - function validateFormat( $value, $format ) - { - if ( !class_exists( "patForms_FormatChecker" ) ) - { - $checkerFile = dirname( __FILE__ )."/FormatChecker.php"; - if ( !file_exists( $checkerFile ) ) - { - $this->valid = false; - return patErrorManager::raiseError( - PATFORMS_ELEMENT_ERROR_FORMAT_CHECKER_NOT_FOUND, - "Type checker could not be found, aborting validation." - ); - } - - include_once( $checkerFile ); - } - - $format = strtolower( $format ); - - $methodName = "is_".$format; - $option = false; - - if ( method_exists( $this, $methodName ) ) - { - return $this->$methodName( $value ); - } - - if ( in_array( $methodName, get_class_methods( "patForms_FormatChecker" ) ) ) - { - return call_user_func( array( 'patForms_FormatChecker', $methodName ), $value ); - } - - return false; - } - - /** - * get next error offset - * - * @access public - * @return integer - */ - function getErrorOffset( $requiredCodes = 100 ) - { - $offset = $this->nextErrorOffset; - $this->nextErrorOffset = $this->nextErrorOffset + $requiredCodes; - return $offset; - } - - /** - * add error codes and messages for validator method - * - * @access public - * @param array defintions - * @param integer offset for the error codes - */ - function addValidatorErrorCodes( $defs, $offset = 1000 ) - { - foreach ( $defs as $lang => $codes ) - { - if ( !isset( $this->validatorErrorCodes[$lang] ) ) { - $this->validatorErrorCodes[$lang] = array(); - } - - foreach ( $codes as $code => $message ) { - $this->validatorErrorCodes[$lang][($offset+$code)] = $message; - } - } - } - - /** - * getValidationErrors - * - * @access public - * @return array errors that occured during the validation - */ - function getValidationErrors() - { - return $this->validationErrors; - } - - /** - * addValidationError - * - * - * @access public - * @param integer $code - * @param array $vars fill named placeholder with values - * @return boolean $result true on success - */ - function addValidationError( $code, $vars = array() ) - { - $error = false; - $lang = $this->locale; - $element = $this->getElementName(); - - // find error message for selected language - while ( true ) - { - // error message matches language code - if ( isset( $this->validatorErrorCodes[$lang][$code] ) ) - { - $error = array( "element" => $element, "code" => $code, "message" => $this->validatorErrorCodes[$lang][$code] ); - break; - } - // no message found and no fallback-langauage available - else if ( $lang == "C" ) - { - break; - } - - $lang_old = $lang; - - // look for other languages - if ( strlen( $lang ) > 5 ) - { - list( $lang, $trash ) = explode( ".", $lang ); - } - else if ( strlen( $lang ) > 2 ) - { - list( $lang, $trash ) = explode( "_", $lang ); - } - else - { - $lang = "C"; - } - - // inform developer about missing language - patErrorManager::raiseNotice( - PATFORMS_ELEMENT_ERROR_VALIDATOR_ERROR_LOCALE_UNDEFINED, - "Required Validation Error-Code for language: $lang_old not available. Now trying language: $lang", - "Add language definition in used element or choose other language" - ); - - } - - // get default Error! - if ( !$error ) - { - patErrorManager::raiseWarning( - PATFORMS_ELEMENT_ERROR_VALIDATOR_ERROR_UNDEFINED, - "No Error Message for this validation Error was defined", - "Review the error-definition for validation-errors in your element '$element'." - ); - $error = array( "element" => $element, "code" => 0, "message" => "Unknown validation Error" ); - } - - // insert values to placeholders - if ( !empty( $vars ) ) - { - foreach ( $vars as $key => $value ) - { - $error["message"] = str_replace( "[". strtoupper( $key ) ."]", $value, $error["message"] ); - } - } - - array_push( $this->validationErrors, $error ); - $this->valid = false; - return true; - } - - /** - * applies the specified modifiers to an attribute value, as set in the attribute definition. - * - * @access private - * @param mixed $attributeValue The value of the attribute to modify - * @param array $modifiers Array containing the list of modifiers and their options to apply. - * @return mixed $attributeValue The modified attribute value. - * @see createAttributes() - */ - function _applyModifiers( $attributeValue, $modifiers ) - { - if ( !is_array( $modifiers ) ) - { - return patErrorManager::raiseError( - PATFORMS_ELEMENT_ERROR_MODIFIER_NOT_AN_ARRAY, - "Modifiers are not an array" - ); - } - - foreach ( $modifiers as $modifier => $modifierOptions ) - { - // compute method name for this definition and check if it exists - $modifierMethod = "_modifier".ucfirst( $modifier ); - - if ( !method_exists( $this, $modifierMethod ) ) - { - return patErrorManager::raiseError( - PATFORMS_ELEMENT_ERROR_METHOD_FOR_MODIFIER_NOT_FOUND, - "Method not found for modifier '" . $modifier . "' (".$modifierMethod.") in class '" . get_class( $this ) . "'" - ); - } - - $modifiedValue = $this->$modifierMethod( $attributeValue ); - - if ( $modifiedValue === false ) - { - return patErrorManager::raiseError( - PATFORMS_ELEMENT_ERROR_MODIFIER_RETURNED_ERROR, - "Modifier '".$modifier."' returned an error." - ); - } - - $attributeValue = $modifiedValue; - } - - return $attributeValue; - } - - /** - * insertSpecials attribute value modifier - * - * you can use special placeholders to insert dynamic values into the attribute values. - * This method inserts the correct information for each placeholder in the given string. - * - * @access private - * @param string $string The string to insert the specials in - * @return string $string The string with all needed replacements - * @see _applyModifiers() - * @todo Maybe make this configurable - * @todo Add any other relevant information - */ - function _modifierInsertSpecials( $modifyValue, $options = array() ) - { - if ( is_array( $modifyValue ) || is_object( $modifyValue ) || is_array( $this->value ) ) - return $modifyValue; - - // go through each attribute in the attribute definition and replace the strings - // with the corresponding attribute values. - foreach ( $this->attributeDefinition as $attributeName => $attributeDef ) - { - // if attribute was not set, strip the variable by setting it to empty. - $attributeValue = ""; - - // retrieve real attribute value if it was set - if ( isset( $this->attributes[$attributeName] ) && is_string( $this->attributes[$attributeName] ) ) - { - $attributeValue = $this->attributes[$attributeName]; - } - - $search = $this->modifierStart."ELEMENT_".strtoupper( $attributeName ).$this->modifierEnd; - - // make the replacement - $modifyValue = str_replace( $search, $attributeValue, $modifyValue ); - } - - // the element's value is special... - $modifyValue = str_replace( $this->modifierStart."ELEMENT_VALUE".$this->modifierEnd, $this->value, $modifyValue ); - - return $modifyValue; - } - - /** - * checks the format of an attribute value according to the given format. - * - * @access private - * @param mixed $attributeValue The attribute value to check - * @param string $format The format to check the attribute value against - * @return bool $result True if format check succeeded, false otherwise. - * @see createAttributes() - * @todo Implement this method sometime - */ - function _checkAttributeFormat( $attributeValue, $format ) - { - return true; - } - - /** - * validates the current attribute collection according to the attributes definition - * and the given output format, and returns the list of valid attributes. - * - * @access private - * @param string $format The output format to retrieve the attributes for. - * @return mixed $attributes The list of attributes, or false if failed. - */ - function getAttributesFor( $format ) - { - $attributes = array(); - - foreach ( $this->attributeDefinition as $attributeName => $attributeDef ) - { - if ( !isset( $this->attributes[$attributeName] ) ) - { - if ( $attributeDef["required"] ) - { - return patErrorManager::raiseError( - PATFORMS_ELEMENT_ERROR_ATTRIBUTE_REQUIRED, - 'The element "'.$this->getElementName().'" needs the attribute "'.$attributeName.'" to be set.', - 'See the attribute definition of the element class "'.get_class( $this ).'"' - ); - } - - continue; - } - - $attributeValue = $this->attributes[$attributeName]; - - // special case disabled attribute: skip this if it is not set to yes - // to avoid generating a disabled field anyway (empty HTML attribute) - if ( $attributeName == 'disabled' && $attributeValue != 'yes' ) - { - continue; - } - - if ( isset( $attributeDef["modifiers"] ) && !empty( $attributeDef["modifiers"] ) ) - { - $modifiedValue = $this->_applyModifiers( $attributeValue, $attributeDef["modifiers"] ); - if ( $modifiedValue === false ) - { - return patErrorManager::raiseError( - PATFORMS_ELEMENT_ERROR_UNABLE_TO_APPLY_MODIFIER_TO_ATTRIBUTE, - "Could not apply modifier to attribute '".$attributeName."' (value:'".$attributeValue."')" - ); - } - - $attributeValue = $modifiedValue; - - // store this for later use too - $this->attributes[$attributeName] = $attributeValue; - } - - if ( !in_array( $format, $attributeDef["outputFormats"] ) ) - { - continue; - } - - if ( isset( $attributeDef["format"] ) ) - { - if ( !$this->_checkAttributeFormat( $attributeValue, $attributeDef["format"] ) ) - { - return patErrorManager::raiseError( - PATFORMS_ELEMENT_ERROR_CAN_NOT_VERIFY_FORMAT, - "Format '".$attributeDef["format"]."' could not be verified for attribute '".$attributeName."' => '".$attributeValue."'" - ); - } - } - - $attributes[$attributeName] = $attributeValue; - } - - return $attributes; - } - - /** - * [helper method] wrapper for the {@link createTag()} method which automates the tag - * creation by creating the tag from the current attribute collection and element type. - * - * @access protected - * @return mixed $result The created tag, or false if failed. - * @see elementType - * @see attributes - * @see createTag() - */ - function toHtml() - { - $attributes = $this->getAttributesFor( $this->getFormat() ); - if ( patErrorManager::isError( $attributes ) ) - { - return $attributes; - } - - return $this->createTag( $this->elementType[$this->getFormat()], "full", $attributes ); - } - - /** - * [helper method] create a hidden field with the given value. Retrieves all other needed - * attributes from the attributes collection. - * @access public - */ - function createHiddenTag( $value ) - { - $attribs = array( 'type' => 'hidden', - 'name' => $this->attributes['name'], - 'value' => $value, - 'id' => $this->attributes['id'], - ); - - return $this->createTag( "input", "full", $attribs ); - } - - /** - * [helper method] creates a hidden field with the given value. Used for the - * display=no attribute, and is the same as the createHiddenTag() method, only - * that the attributes collection is initialized to ensure that any variables - * in the element's attributes get replaced. - * - * @access private - * @param mixed $value The value of the element - * @return string $element The serialized hidden tag - * @see createHiddenTag() - */ - function createDisplaylessTag( $value ) - { - // call this to initialize all attributes. This is needed - // here to make sure that if there are - $this->getAttributesFor( $this->getFormat() ); - - return $this->createHiddenTag( $value ); - } - - /** - * [helper method] create an element HTML source from its attribute collection and - * returns it. - * - * @static - * @access protected - * @param string $tagname The name of the element / tag - * @param string $type Optional: the type of element to generate. Valid parameters are full|opening|closing|empty. Defaults to "full". - * @param mixed $value The value of the element - * @return string $element The HTML source of the element - */ - function createTag( $tagname, $type = "full", $attributes = array(), $value = false ) - { - switch( $type ) - { - case "closing": - return ""; - break; - - case "empty": - case "opening": - $tag = "<".$tagname; - - // create attribute collection - foreach ( $attributes as $attributeName => $attributeValue ) - { - $tag = $tag . " ".$attributeName."=\"".htmlentities( (string)$attributeValue )."\""; - } - - // empty tag? - if ( $type == "empty" ) - { - $tag = $tag . " />"; - return $tag; - } - - $tag = $tag . ">"; - return $tag; - - break; - - case "full": - if ( $value === false ) - { - return patForms_Element::createTag( $tagname, "empty", $attributes ); - } - - return patForms_Element::createTag( $tagname, "opening", $attributes ).htmlentities( $value ).patForms_Element::createTag( $tagname, "closing" ); - break; - } - } - - /** - * create XML representation of the element - * - * This can be used when you need to store the structure - * of your form in flat files or create form templates that can - * be read by patForms_Parser at a later point. - * - * @access public - * @param string namespace - * @uses getElementName() - * @see patForms_Parser - */ - function toXML( $namespace = null ) - { - $tagName = $this->getElementName(); - - // prepend Namespace - if ( $namespace != null ) - { - $tagName = $namespace.':'.$tagName; - } - - // get all attributes - $attributes = $this->getAttributes(); - - // create valid XML attributes - foreach ( $attributes as $key => $value ) - { - $attributes[$key] = strtr( $value, $this->xmlEntities ); - } - - $value = strtr( $this->getValue(), $this->xmlEntities ); - - if ( $value != false ) - { - return $this->createTag( $tagName, "full", $attributes, $value ); - } - return $this->createTag( $tagName, "empty", $attributes ); - } - - /** - * apply a filter - * - * This is still in alpha state! - * - * @access public - * @param object patForms_Filter - * @todo add error management and docs - * @todo allow filter to be an array containg two callbacks - * array( 'in' => 'myInFunc', 'out' => 'myOutFunc' ) ) - */ - function applyFilter( &$filter ) - { - $this->filters[] = &$filter; - return true; - } - - /** - * Get the name of the element, as stored in the elementName property. - * - * This is used when serializing an element to XML to - * create a now form template. - * - * This method checks for the $elementName property and if it - * is set to null, it will extract the element name from the class name - * - * @access public - * @return string tag name - */ - function getElementName() - { - if ( $this->elementName != null ) - { - return $this->elementName; - } - - $class = get_class( $this ); - $name = substr( strrchr( $class, "_" ), 1 ); - return ucfirst( $name ); - } - - /** - * checks wheter sessions are used or switch session usage on or of - * - * If switch argument is missing, this function just reports if sessions - * will be used or not - * - * @access protected - * @param string $switch switch sessions on ("yes") or off ("yes") - * @return boolean $result true if sessions will be used, false otherwise - * @see setSessionValue() - * @see getSessionValue() - * @see unsetSessionValue() - * @todo destroy session variables if sessions won't be usead any further - */ - function useSession( $switch = null ) - { - // switch sessions on or off - if ( $switch == "yes" ) - { - $this->attributes["usesession"] = "yes"; - } - else if ( $switch == "no" ) - { - $this->attributes["usesession"] = "no"; - return false; - } - - if ( isset( $this->attributes["usesession"] ) && $this->attributes["usesession"] == "yes" ) - { - if ( !$this->sessionVar ) - { - if ( !defined( "SID" ) ) - { - session_start(); - } - - $name = $this->attributes["name"]; - if ( !isset( $_SESSION["_patforms_element"][$name] ) ) - { - $_SESSION["_patforms_element"][$name] = array(); - } - - $this->sessionVar =& $_SESSION["_patforms_element"][$name]; - } - - return true; - } - return false; - } - - /** - * save a variable to the session - * - * @access protected - * @param string $name name to identify the variable - * @param mixed $value - * @return boolean $result true on success - * @see getSessionValue() - * @see unsetSessionValue() - */ - function setSessionValue( $name, $value ) - { - if ( !$this->useSession() ) - { - return false; - } - - $this->sessionVar[$name] = $value; - return true; - } - - /** - * get a variable from session - * - * @access protected - * @param string $name name to identify the variable - * @return mixed $result false if no sessions are used, null if variable is not set or the value of the variable - * @see getSessionValue() - * @see unsetSessionValue() - */ - function getSessionValue( $name ) - { - if ( !$this->useSession() ) - { - return false; - } - - if ( isset( $this->sessionVar[$name] ) ) - { - return $this->sessionVar[$name]; - } - return null; - } - - /** - * remove a variable from session - * - * @access protected - * @param string $name name to identify the variable - * @return mixed $result false if no sessions are used, null if variable is not set or the value of the variable - * @see getSessionValue() - * @see setSessionValue) - */ - function unsetSessionValue( $name ) - { - if ( !$this->useSession() ) - { - return false; - } - - $value = null; - if ( isset( $this->sessionVar[$name] ) ) - { - $value = $this->sessionVar[$name]; - unset( $this->sessionVar[$name] ); - } - return $value; - } - - /** - * get the global javascript of the element - * - * @access public - * @return string - */ - /* - function getGlobalJavascript() - { - if ( !isset( $this->globalJavascript[$this->format] ) ) - { - $script = ''; - } - else - { - $script = $this->globalJavascript[$this->format]; - } - - $cnt = count( $this->_rules ); - for ( $i = 0; $i < $cnt; $i++ ) - { - $tmp = $this->_rules[$i]['rule']->getGlobalJavascript(); - if ( $tmp === false ) - continue; - $script .= $tmp; - } - - return $script; - } - */ - - /** - * get the instance javascript of the element - * - * @access public - * @return string javascript for this instance - */ - /* - function getInstanceJavascript() - { - if ( !isset( $this->instanceJavascript[$this->format] ) ) - { - $script = ''; - } - else - { - $script = $this->instanceJavascript[$this->format]; - - $script = str_replace( '[ELEMENT::NAME]', $this->getName(), $script ); - $script = str_replace( '[ELEMENT::ID]', $this->getId(), $script ); - } - - $cnt = count( $this->_rules ); - for ( $i = 0; $i < $cnt; $i++ ) - { - $tmp = $this->_rules[$i]['rule']->getInstanceJavascript(); - if ( $tmp === false ) - continue; - $script .= $tmp; - } - - return $script; - } - */ - - function registerJavascripts(&$form) { - - if ($script = $this->getGlobalJavascript()) { - $form->registerGlobalJavascript($this->elementName, $script); - } - - if ($script = $this->getInstanceJavascript()) { - $form->registerInstanceJavascript($script); - } - - foreach ($this->_rules as $rule) { - $rule['rule']->registerJavascripts($form); - } - } - - function getGlobalJavascript() { - - if (isset($this->globalJavascript[$this->format])) { - return $this->globalJavascript[$this->format]; - } - } - - function getInstanceJavascript() { - - if (isset($this->instanceJavascript[$this->format])) { - $script = $this->instanceJavascript[$this->format]; - $script = str_replace('[ELEMENT::NAME]', $this->getName(), $script); - $script = str_replace('[ELEMENT::ID]', $this->getId(), $script); - return $script; - } - } - - /** - * retrieves the element's current submitted state. - * - * @access public - * @return bool $state True if it has been submitted, false otherwise. - * @see submitted - */ - function isSubmitted() - { - if ( $this->submitted === true ) { - return true; - } - return false; - } - - /** - * returns the locale that is currently set for the form. - * - * @access public - * @return string $locale The locale. - * @see setLocale() - * @see $locale - */ - function getLocale() - { - return $this->locale; - } - - /** - * anounce a change in the element to all observers - * - * @access private - * @param string property that changed - * @param mixed new value of the property - */ - function _announce( $property, $value ) - { - $cnt = count( $this->observers ); - for ( $i = 0; $i < $cnt; $i++ ) - { - $this->observers[$i]->notify( $this, $property, $value ); - } - return true; - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Rule.php b/airtime_mvc/library/propel/contrib/pat/patForms/Rule.php deleted file mode 100644 index 911c0965ea..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Rule.php +++ /dev/null @@ -1,340 +0,0 @@ - - * @license LGPL, see license.txt for details - * @link http://www.php-tools.net - * @todo implement javascript helper methods (set a javascript property plus an - * array of keys that will be replaced by the properties of the rule) - */ -class patForms_Rule -{ - /** - * time when the rule should be applied - * - * Possible values are: - * -PATFORMS_RULE_BEFORE_VALIDATION - * -PATFORMS_RULE_AFTER_VALIDATION - * -PATFORMS_RULE_BOTH - * - * @access private - * @var integer - */ - var $_time = PATFORMS_RULE_AFTER_VALIDATION; - - /** - * script that will be displayed only once - * - * @access private - * @var array - */ - var $globalScript = array(); - - /** - * script that will be displayed once per instance - * - * @access private - * @var array - */ - var $instanceScript = array(); - - /** - * properties that have to be replaced in the instance script. - * - * @access private - * @var array - */ - var $scriptPlaceholders = array(); - - /** - * store the container of the rule - * - * @access private - * @var object - */ - var $container; - - /** - * define error codes an messages for each form element - * - * @abstract - * @access private - * @var array - */ - var $validatorErrorCodes = array(); - - /** - * error code offset for the rule - * - * @abstract - * @access private - */ - var $errorOffset; - - /** - * format of the rule - * - * @abstract - * @access private - */ - var $format = 'html'; - - /** - * name of the rule - * - * @abstract - * @access private - */ - var $ruleName = ''; - - /** - * Get the time when the rule should be applied. - * - * This has to be defined in the _time property of the rule. - * - * @access public - * @return integer - */ - function getTime() - { - return $this->_time; - } - - /** - * create a new rule object - * - * @access public - * @param string id - */ - function patForms_Rule( $id = null ) - { - if ( $id === null ) - { - $id = uniqid( '' ); - } - - $this->_id = $id; - } - - /** - * set the id for the rule - * - * @access public - * @param string id - */ - function setId( $id ) - { - $this->_id = $id; - } - - /** - * set the locale, this is needed to update the rule - * translations, that have been passed to the container - * element - * - * @access public - * @param string new locale - * @return boolean - */ - function setLocale( $locale ) - { - // rules do not store locale information - if (!patForms::isCustomLocale($locale)) { - return true; - } - - $errorMessages = patForms::getCustomLocale($locale, 'Rule::' . $this->getRuleName()); - - if (is_array($errorMessages)) { - $this->validatorErrorCodes[$locale] = $errorMessages; - } - - $this->container->addValidatorErrorCodes( $this->validatorErrorCodes, $this->errorOffset ); - - return true; - } - - /** - * prepare the rule - * - * This method is used to initialize the rule. - * By default it adds it validatorErrorCodes - * to the container and stores a reference to the - * container. - * - * You may extend it in your custom rules, but should always be calling - * this method using: - * - * - * patForms_Rule::prepareRule( $container ); - * - * - * @access public - * @param object Either a patForms or patForms_Element object - */ - function prepareRule( &$container ) - { - $this->format = $container->getFormat(); - - $this->container = &$container; - $this->errorOffset = $container->getErrorOffset(); - - $container->addValidatorErrorCodes( $this->validatorErrorCodes, $this->errorOffset ); - - return true; - } - - /** - * method called by patForms or any patForms_Element to validate the - * element or the form. - * - * @abstract - * @access public - * @param object Either a patForms or patForms_Element object - * @return boolean true, if rule has been applied succesfully, false otherwise - */ - function applyRule( &$container, $type = PATFORMS_RULE_BEFORE_VALIDATION ) - { - // your code - } - - /** - * addValidationError - * - * @access private - * @param integer $code - * @param array $vars fill named placeholder with values - * @return boolean $result true on success - */ - function addValidationError( $code, $vars = array() ) - { - $code= $this->errorOffset + $code; - return $this->container->addValidationError( $code, $vars ); - } - - /** - * get the name of the rule - * - * By default just return the classname, this is sufficient. - * - * @access public - * @return string - */ - function getRuleName() - { - if (!empty($this->ruleName)) { - return $this->ruleName; - } - return get_class( $this ); - } - - /** - * get the global javascript of the rule - * - * @access public - * @return string - * @todo Rules need to know the output format - */ - /* - function getGlobalJavascript() - { - if ( isset( $this->globalScript['html'] ) ) - { - return $this->globalScript['html']; - } - return ''; - } - */ - - /** - * get the instance javascript of the rule - * - * @access public - * @return string - */ - /* - function getInstanceJavascript() - { - if ( !isset( $this->instanceScript[$this->format] ) ) - { - return false; - } - // get the script for the current format - $script = $this->instanceScript[$this->format]; - - // always replace the id - $script = str_replace( '[RULE::ID]', $this->_id, $script ); - if ( method_exists( $this->container, 'getId' ) ) - { - $script = str_replace( '[CONTAINER::ID]', $this->container->getId(), $script ); - } - if ( method_exists( $this->container, 'getName' ) ) - { - $script = str_replace( '[CONTAINER::NAME]', $this->container->getName(), $script ); - } - - foreach ( $this->scriptPlaceholders as $placeholder => $property ) - { - if ( isset( $this->$property ) ) - $script = str_replace( '['.$placeholder.']', $this->$property, $script ); - else - $script = str_replace( '['.$placeholder.']', '', $script ); - } - return $script; - } - */ - - function registerJavascripts(&$form) { - - if ($script = $this->getGlobalJavascript()) { - $form->registerGlobalJavascript($this->getRuleName(), $script); - } - - if ($script = $this->getInstanceJavascript()) { - $form->registerInstanceJavascript($script); - } - } - - function getGlobalJavascript() { - - if (isset($this->globalScript[$this->format])) { - return $this->globalScript[$this->format]; - } - } - - function getInstanceJavascript(){ - - if (isset($this->instanceScript[$this->format])) { - $script = $this->instanceScript[$this->format]; - $script = str_replace('[RULE::ID]', $this->_id, $script); - if (method_exists($this->container, 'getId')) { - $script = str_replace('[CONTAINER::ID]', $this->container->getId(), $script); - } - if (method_exists($this->container, 'getName')) { - $script = str_replace('[CONTAINER::NAME]', $this->container->getName(), $script); - } - foreach ($this->scriptPlaceholders as $placeholder => $property) { - if (isset($this->$property)) { - $script = str_replace('['.$placeholder.']', $this->$property, $script); - } else { - $script = str_replace('['.$placeholder.']', '', $script); - } - } - return $script; - } - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Rule/Match.php b/airtime_mvc/library/propel/contrib/pat/patForms/Rule/Match.php deleted file mode 100644 index 3d47185f25..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Rule/Match.php +++ /dev/null @@ -1,163 +0,0 @@ - - * @license LGPL, see license.txt for details - * @link http://www.php-tools.net - */ -class patForms_Rule_Match extends patForms_Rule -{ - /** - * script that will be displayed only once - * - * @access private - * @var array - */ - - var $globalScript = array( - 'html' => "/* patForms::Rule::Match */ - -function pFRC_Match(field) { - this.field = eval('pfe_' + field); -} - -pFRC_Match.prototype.validate = function() { - value = this.field.getValue(); - if (!value.match(this.pattern)) { - alert('This is an invalid value.'); - } -} - -pFRC_Match.prototype.setValue = function(pattern) { - this.pattern = pattern; -} - -/* END: patForms::Rule::Match */ -" - ); - - /** - * javascript that will be displayed once per instance - * - * @access private - * @var array - */ - var $instanceScript = array( - 'html' => "var pfr_[RULE::ID] = new pFRC_Match('[CONTAINER::NAME]');\n" - ); - - /** - * properties that have to be replaced in the instance script. - * - * @access private - * @var array - */ - var $scriptPlaceholders = array( - 'RULE::SOURCE' => '_source', - ); - - /** - * name of the rule - * - * @abstract - * @access private - */ - var $ruleName = 'Match'; - - /** - * define error codes and messages for the rule - * - * @access private - * @var array $validatorErrorCodes - * @todo translate error messages - */ - var $validatorErrorCodes = array( - "C" => array( - 1 => "This is an invalid value.", - ), - "de" => array( - 1 => "Dies ist ein ungltiger Wert.", - ), - "fr" => array( - 1 => "This is an invalid value.", - ) - ); - - /** - * the regEx pattern - * @access private - * @var string - */ - var $_pattern; - - /** - * field id that is used - * @access private - * @var string - */ - var $_field; - - private $value = 10; - - public function __construct($params) { - - parent::__construct(); - - extract($params); - $this->_pattern = $value; - } - - /** - * prepare the rule - * - * @access public - * @param object patForms - */ - function prepareRule(&$container) { - - patForms_Rule::prepareRule($container); - - $onChange = $container->getAttribute('onchange'); - $newHandler = sprintf('pfr_%s.validate();', $this->_id); - $container->setAttribute('onchange', $newHandler . $onChange); - - return true; - } - - /** - * method called by patForms or any patForms_Element to validate the - * element or the form. - * - * @access public - * @param object patForms form object - */ - function applyRule(&$element, $type = PATFORMS_RULE_AFTER_VALIDATION) { - - if (preg_match($this->_pattern, $element->getValue()) != 0){ - return true; - } - - $this->addValidationError(1); - return false; - } - - /** - * - * - * @access public - */ - function registerJavascripts(&$form) { - - parent::registerJavascripts($form); - - $script = sprintf("pfr_%s.setValue(%s);\n", $this->_id, $this->_pattern); - $form->registerInstanceJavascript($script); - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Rule/MaxLength.php b/airtime_mvc/library/propel/contrib/pat/patForms/Rule/MaxLength.php deleted file mode 100644 index d28c2f7589..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Rule/MaxLength.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @license LGPL, see license.txt for details - * @link http://www.php-tools.net - */ -class patForms_Rule_MaxLength extends patForms_Rule -{ - /** - * script that will be displayed only once - * - * @access private - * @var array - */ - var $globalScript = array( - 'html' => "/* patForms::Rule::MaxLength */ - -function pFRC_MaxLength(field) { - this.field = eval('pfe_' + field); -} - -pFRC_MaxLength.prototype.validate = function() { - value = this.field.getValue(); - if (value.length > this.value) { - alert('Please enter a value that is max. ' + this.value + ' characters long.'); - } -} - -pFRC_MaxLength.prototype.setValue = function(value) { - this.value = value; -} - -/* END: patForms::Rule::MaxLength */ -" - ); - - /** - * javascript that will be displayed once per instance - * - * @access private - * @var array - */ - var $instanceScript = array( - 'html' => "var pfr_[RULE::ID] = new pFRC_MaxLength('[CONTAINER::NAME]');\n" - ); - - /** - * properties that have to be replaced in the instance script. - * - * @access private - * @var array - */ - var $scriptPlaceholders = array( - 'RULE::SOURCE' => '_source', - ); - - /** - * name of the rule - * - * @abstract - * @access private - */ - var $ruleName = 'MaxLength'; - - /** - * define error codes and messages for the rule - * - * @access private - * @var array $validatorErrorCodes - * @todo translate error messages - */ - var $validatorErrorCodes = array( - "C" => array( - 1 => "Please enter a value that is max. [VALUE] characters long.", - ), - "de" => array( - 1 => "Bitte geben Sie einen max. [VALUE] Zeichen langen Wert ein.", - ), - "fr" => array( - 1 => "Please enter a value that is max. [VALUE] characters long.", - ) - ); - - /** - * possible values - * @access private - * @var array - */ - var $_values; - - /** - * field id that is used - * @access private - * @var string - */ - var $_field; - - private $value = 10; - - public function __construct($params) { - - parent::__construct(); - - extract($params); - $this->value = $value; - } - - /** - * prepare the rule - * - * @access public - * @param object patForms - */ - function prepareRule(&$container) { - - patForms_Rule::prepareRule($container); - - $onChange = $container->getAttribute('onchange'); - $newHandler = sprintf('pfr_%s.validate();', $this->_id); - $container->setAttribute('onchange', $newHandler . $onChange); - - return true; - } - - /** - * method called by patForms or any patForms_Element to validate the - * element or the form. - * - * @access public - * @param object patForms form object - */ - function applyRule(&$element, $type = PATFORMS_RULE_AFTER_VALIDATION) { - - if (strlen($element->getValue()) <= $this->value) { - return true; - } - - $this->addValidationError(1, array('value' => $this->value)); - return false; - } - - /** - * - * - * @access public - */ - function registerJavascripts(&$form) { - - parent::registerJavascripts($form); - - $script = sprintf("pfr_%s.setValue(%s);\n", $this->_id, $this->value); - $form->registerInstanceJavascript($script); - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Rule/MaxValue.php b/airtime_mvc/library/propel/contrib/pat/patForms/Rule/MaxValue.php deleted file mode 100644 index 6b25b8c840..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Rule/MaxValue.php +++ /dev/null @@ -1,163 +0,0 @@ - - * @license LGPL, see license.txt for details - * @link http://www.php-tools.net - */ -class patForms_Rule_MaxValue extends patForms_Rule -{ - /** - * script that will be displayed only once - * - * @access private - * @var array - */ - - var $globalScript = array( - 'html' => "/* patForms::Rule::MaxValue */ - -function pFRC_MaxValue(field) { - this.field = eval('pfe_' + field); -} - -pFRC_MaxValue.prototype.validate = function() { - value = this.field.getValue(); - if (parseInt(value) != value) { - alert('Please enter a number that is less or equal to ' + this.value); - } - if (parseInt(value) > this.value) { - alert('Please enter a number that is less or equal to ' + this.value); - } -} - -pFRC_MaxValue.prototype.setMaxValue = function(value) { - this.value = value; -} - -/* END: patForms::Rule::MaxValue */ -" - ); - - /** - * javascript that will be displayed once per instance - * - * @access private - * @var array - */ - var $instanceScript = array( - 'html' => "var pfr_[RULE::ID] = new pFRC_MaxValue('[CONTAINER::NAME]');\n" - ); - - /** - * properties that have to be replaced in the instance script. - * - * @access private - * @var array - */ - var $scriptPlaceholders = array( - 'RULE::SOURCE' => '_source', - ); - - /** - * name of the rule - * - * @abstract - * @access private - */ - var $ruleName = 'MaxValue'; - - /** - * define error codes and messages for the rule - * - * @access private - * @var array $validatorErrorCodes - * @todo translate error messages - */ - var $validatorErrorCodes = array( - "C" => array( - 1 => "Please enter a number that is less or equal to [VALUE].", - ), - "de" => array( - 1 => "Bitte geben Sie eine Zahl kleiner oder gleich [VALUE] ein.", - ), - "fr" => array( - 1 => "Please enter a number that is less or equal to [VALUE].", - ) - ); - - /** - * the regEx pattern - * @access private - * @var string - */ - var $_value; - - /** - * field id that is used - * @access private - * @var string - */ - var $_field; - - public function __construct($params) { - - parent::__construct(); - - extract($params); - $this->_value = $value; - } - - /** - * prepare the rule - * - * @access public - * @param object patForms - */ - function prepareRule(&$container) { - - patForms_Rule::prepareRule($container); - - $onChange = $container->getAttribute('onchange'); - $newHandler = sprintf('pfr_%s.validate();', $this->_id); - $container->setAttribute('onchange', $newHandler . $onChange); - - return true; - } - - /** - * method called by patForms or any patForms_Element to validate the - * element or the form. - * - * @access public - * @param object patForms form object - */ - function applyRule(&$element, $type = PATFORMS_RULE_AFTER_VALIDATION) { - - if (intval($element->getValue()) <= intval($this->_value)){ - return true; - } - - $this->addValidationError(1, array('value' => $this->_value)); - return false; - } - - /** - * - * - * @access public - */ - function registerJavascripts(&$form) { - - parent::registerJavascripts($form); - - $script = sprintf("pfr_%s.setMaxValue(%s);\n", $this->_id, $this->_value); - $form->registerInstanceJavascript($script); - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Rule/MinLength.php b/airtime_mvc/library/propel/contrib/pat/patForms/Rule/MinLength.php deleted file mode 100644 index 427600e497..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Rule/MinLength.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @license LGPL, see license.txt for details - * @link http://www.php-tools.net - */ -class patForms_Rule_MinLength extends patForms_Rule -{ - /** - * script that will be displayed only once - * - * @access private - * @var array - */ - var $globalScript = array( - 'html' => "/* patForms::Rule::MinLength */ - -function pFRC_MinLength(field) { - this.field = eval('pfe_' + field); -} - -pFRC_MinLength.prototype.validate = function() { - value = this.field.getValue(); - if (value.length < this.value) { - alert('Please enter a value that is at least ' + this.value + ' characters long.'); - } -} - -pFRC_MinLength.prototype.setValue = function(value) { - this.value = value; -} - -/* END: patForms::Rule::MinLength */ -" - ); - - /** - * javascript that will be displayed once per instance - * - * @access private - * @var array - */ - var $instanceScript = array( - 'html' => "var pfr_[RULE::ID] = new pFRC_MinLength('[CONTAINER::NAME]');\n" - ); - - /** - * properties that have to be replaced in the instance script. - * - * @access private - * @var array - */ - var $scriptPlaceholders = array( - 'RULE::SOURCE' => '_source', - ); - - /** - * name of the rule - * - * @abstract - * @access private - */ - var $ruleName = 'MinLength'; - - /** - * define error codes and messages for the rule - * - * @access private - * @var array $validatorErrorCodes - * @todo translate error messages - */ - var $validatorErrorCodes = array( - "C" => array( - 1 => "Please enter a value that is at least [VALUE] characters long.", - ), - "de" => array( - 1 => "Bitte geben Sie einen mindestens [VALUE] Zeichen langen Wert ein.", - ), - "fr" => array( - 1 => "Please enter a value that is at least [VALUE] characters long.", - ) - ); - - /** - * possible values - * @access private - * @var array - */ - var $_values; - - /** - * field id that is used - * @access private - * @var string - */ - var $_field; - - private $value = 10; - - public function __construct($params) { - - parent::__construct(); - - extract($params); - $this->value = $value; - } - - /** - * prepare the rule - * - * @access public - * @param object patForms - */ - function prepareRule(&$container) { - - patForms_Rule::prepareRule($container); - - $onChange = $container->getAttribute('onchange'); - $newHandler = sprintf('pfr_%s.validate();', $this->_id); - $container->setAttribute('onchange', $newHandler . $onChange); - - return true; - } - - /** - * method called by patForms or any patForms_Element to validate the - * element or the form. - * - * @access public - * @param object patForms form object - */ - function applyRule(&$element, $type = PATFORMS_RULE_AFTER_VALIDATION) { - - if (strlen($element->getValue()) >= $this->value) { - return true; - } - - $this->addValidationError(1, array('value' => $this->value)); - return false; - } - - /** - * - * - * @access public - */ - function registerJavascripts(&$form) { - - parent::registerJavascripts($form); - - $script = sprintf("pfr_%s.setValue(%s);\n", $this->_id, $this->value); - $form->registerInstanceJavascript($script); - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Rule/MinValue.php b/airtime_mvc/library/propel/contrib/pat/patForms/Rule/MinValue.php deleted file mode 100644 index f31b107a4f..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Rule/MinValue.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @license LGPL, see license.txt for details - * @link http://www.php-tools.net - */ -class patForms_Rule_MinValue extends patForms_Rule -{ - /** - * script that will be displayed only once - * - * @access private - * @var array - */ - - var $globalScript = array( - 'html' => "/* patForms::Rule::MinValue */ - -function pFRC_MinValue(field) { - this.field = eval('pfe_' + field); -} - -pFRC_MinValue.prototype.validate = function() { - value = this.field.getValue(); - if (parseInt(value) != value) { - alert('Please enter a number that is greater or equal to ' + this.value); - } - if (parseInt(value) < this.value) { - alert('Please enter a number that is greater or equal to ' + this.value); - } -} - -pFRC_MinValue.prototype.setMinValue = function(value) { - this.value = value; -} - -/* END: patForms::Rule::MinValue */ -" - ); - - /** - * javascript that will be displayed once per instance - * - * @access private - * @var array - */ - var $instanceScript = array( - 'html' => "var pfr_[RULE::ID] = new pFRC_MinValue('[CONTAINER::NAME]');\n" - ); - - /** - * properties that have to be replaced in the instance script. - * - * @access private - * @var array - */ - var $scriptPlaceholders = array( - 'RULE::SOURCE' => '_source', - ); - - /** - * name of the rule - * - * @abstract - * @access private - */ - var $ruleName = 'MinValue'; - - /** - * define error codes and messages for the rule - * - * @access private - * @var array $validatorErrorCodes - * @todo translate error messages - */ - var $validatorErrorCodes = array( - "C" => array( - 1 => "Please enter a number that is greater or equal to [VALUE].", - ), - "de" => array( - 1 => "Bitte geben Sie eine Zahl grer oder gleich [VALUE] ein.", - ), - "fr" => array( - 1 => "Please enter a number that is greater or equal to [VALUE].", - ) - ); - - /** - * the regEx pattern - * @access private - * @var string - */ - var $_value; - - /** - * field id that is used - * @access private - * @var string - */ - var $_field; - - private $value = 10; - - public function __construct($params) { - - parent::__construct(); - - extract($params); - $this->_value = $value; - } - - /** - * prepare the rule - * - * @access public - * @param object patForms - */ - function prepareRule(&$container) { - - patForms_Rule::prepareRule($container); - - $onChange = $container->getAttribute('onchange'); - $newHandler = sprintf('pfr_%s.validate();', $this->_id); - $container->setAttribute('onchange', $newHandler . $onChange); - - return true; - } - - /** - * method called by patForms or any patForms_Element to validate the - * element or the form. - * - * @access public - * @param object patForms form object - */ - function applyRule(&$element, $type = PATFORMS_RULE_AFTER_VALIDATION) { - - if (intval($element->getValue()) >= intval($this->_value)){ - return true; - } - - $this->addValidationError(1, array('value' => $this->_value)); - return false; - } - - /** - * - * - * @access public - */ - function registerJavascripts(&$form) { - - parent::registerJavascripts($form); - - $script = sprintf("pfr_%s.setMinValue(%s);\n", $this->_id, $this->_value); - $form->registerInstanceJavascript($script); - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Rule/NotMatch.php b/airtime_mvc/library/propel/contrib/pat/patForms/Rule/NotMatch.php deleted file mode 100644 index c0ff7f3655..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Rule/NotMatch.php +++ /dev/null @@ -1,163 +0,0 @@ - - * @license LGPL, see license.txt for details - * @link http://www.php-tools.net - */ -class patForms_Rule_NotMatch extends patForms_Rule -{ - /** - * script that will be displayed only once - * - * @access private - * @var array - */ - - var $globalScript = array( - 'html' => "/* patForms::Rule::NotMatch */ - -function pFRC_NotMatch(field) { - this.field = eval('pfe_' + field); -} - -pFRC_NotMatch.prototype.validate = function() { - value = this.field.getValue(); - if (value.match(this.pattern)) { - alert('This is an invalid value.'); - } -} - -pFRC_NotMatch.prototype.setValue = function(pattern) { - this.pattern = pattern; -} - -/* END: patForms::Rule::NotMatch */ -" - ); - - /** - * javascript that will be displayed once per instance - * - * @access private - * @var array - */ - var $instanceScript = array( - 'html' => "var pfr_[RULE::ID] = new pFRC_NotMatch('[CONTAINER::NAME]');\n" - ); - - /** - * properties that have to be replaced in the instance script. - * - * @access private - * @var array - */ - var $scriptPlaceholders = array( - 'RULE::SOURCE' => '_source', - ); - - /** - * name of the rule - * - * @abstract - * @access private - */ - var $ruleName = 'NotMatch'; - - /** - * define error codes and messages for the rule - * - * @access private - * @var array $validatorErrorCodes - * @todo translate error messages - */ - var $validatorErrorCodes = array( - "C" => array( - 1 => "This is an invalid value.", - ), - "de" => array( - 1 => "Dies ist ein ungltiger Wert.", - ), - "fr" => array( - 1 => "This is an invalid value.", - ) - ); - - /** - * the regEx pattern - * @access private - * @var string - */ - var $_pattern; - - /** - * field id that is used - * @access private - * @var string - */ - var $_field; - - private $value = 10; - - public function __construct($params) { - - parent::__construct(); - - extract($params); - $this->_pattern = $value; - } - - /** - * prepare the rule - * - * @access public - * @param object patForms - */ - function prepareRule(&$container) { - - patForms_Rule::prepareRule($container); - - $onChange = $container->getAttribute('onchange'); - $newHandler = sprintf('pfr_%s.validate();', $this->_id); - $container->setAttribute('onchange', $newHandler . $onChange); - - return true; - } - - /** - * method called by patForms or any patForms_Element to validate the - * element or the form. - * - * @access public - * @param object patForms form object - */ - function applyRule(&$element, $type = PATFORMS_RULE_AFTER_VALIDATION) { - - if (preg_match($this->_pattern, $element->getValue()) == 0){ - return true; - } - - $this->addValidationError(1); - return false; - } - - /** - * - * - * @access public - */ - function registerJavascripts(&$form) { - - parent::registerJavascripts($form); - - $script = sprintf("pfr_%s.setValue(%s);\n", $this->_id, $this->_pattern); - $form->registerInstanceJavascript($script); - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Rule/ValidValues.php b/airtime_mvc/library/propel/contrib/pat/patForms/Rule/ValidValues.php deleted file mode 100644 index 290ace0edc..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Rule/ValidValues.php +++ /dev/null @@ -1,182 +0,0 @@ - - * @license LGPL, see license.txt for details - * @link http://www.php-tools.net - */ -class patForms_Rule_ValidValues extends patForms_Rule -{ - /** - * script that will be displayed only once - * - * @access private - * @var array - */ - var $globalScript = array( - 'html' => "/* patForms::Rule::ValidValues */ - -Array.prototype.inArray = function(value) { - var i; - for (i=0; i < this.length; i++) { - if (this[i] === value) { - return true; - } - } - return false; -}; - -function pFRC_ValidValue(field) { - this.field = eval('pfe_' + field); -} - -pFRC_ValidValue.prototype.validate = function() { - value = this.field.getValue(); - for (var i = 0; i < this.values.length; i++) { - if (this.values[i] === value) { - return true; - } - } - var msg = 'Please enter one of the following values: '; - for (var i = 0; i < this.values.length; i++) { - msg = msg + this.values[i]; - if (i < this.values.length - 1) { - msg = msg + ', '; - } - } - alert(msg); -} - -pFRC_ValidValue.prototype.setValues = function(values) { - this.values = values; -} - -/* END: patForms::Rule::ValidValue */ -" - ); - - /** - * javascript that will be displayed once per instance - * - * @access private - * @var array - */ - var $instanceScript = array( - 'html' => "var pfr_[RULE::ID] = new pFRC_ValidValue('[CONTAINER::NAME]');\n" - ); - - /** - * properties that have to be replaced in the instance script. - * - * @access private - * @var array - */ - var $scriptPlaceholders = array( - 'RULE::SOURCE' => '_source', - ); - - /** - * name of the rule - * - * @abstract - * @access private - */ - var $ruleName = 'ValidValue'; - - /** - * define error codes and messages for the rule - * - * @access private - * @var array $validatorErrorCodes - * @todo translate error messages - */ - var $validatorErrorCodes = array( - "C" => array( - 1 => "Please enter one of the following values: [VALUES].", - ), - "de" => array( - 1 => "Bitte geben Sie einen der folgenden Werte ein: [VALUES].", - ), - "fr" => array( - 1 => "Please enter one of the following values: [VALUES].", - ) - ); - - /** - * possible values - * @access private - * @var array - */ - var $_values; - - /** - * field id that is used - * @access private - * @var string - */ - var $_field; - - public function __construct($params) { - - parent::__construct(); - - extract($params); - $this->_values = explode('|', $value); - } - - /** - * prepare the rule - * - * @access public - * @param object patForms - */ - function prepareRule(&$container) { - - patForms_Rule::prepareRule($container); - - $onChange = $container->getAttribute('onchange'); - $newHandler = sprintf('pfr_%s.validate();', $this->_id); - $container->setAttribute('onchange', $newHandler . $onChange); - - return true; - } - - /** - * method called by patForms or any patForms_Element to validate the - * element or the form. - * - * @access public - * @param object patForms form object - */ - function applyRule(&$element, $type = PATFORMS_RULE_AFTER_VALIDATION) { - - if (in_array($element->getValue(), $this->_values)) { - return true; - } - - $this->addValidationError(1, array('values' => implode(', ', $this->_values))); - return false; - } - - /** - * - * - * @access public - */ - function registerJavascripts(&$form) { - - parent::registerJavascripts($form); - - foreach ($this->_values as $value) { - $values[] = "'$value'"; - } - $script = sprintf("pfr_%s.setValues(new Array(%s));\n", $this->_id, implode(', ', $values)); - $form->registerInstanceJavascript($script); - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/Storage/Propel.php b/airtime_mvc/library/propel/contrib/pat/patForms/Storage/Propel.php deleted file mode 100644 index f90c81dbba..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/Storage/Propel.php +++ /dev/null @@ -1,146 +0,0 @@ -peer = new $peername(); - $this->peername = $peername; - - $parts = explode('.', explode('.', $this->peer->getOMClass())); - $this->classname = array_pop($parts); - - $this->setPrimaryField('Id'); - } - - private function getCriteria($values) { - - $object = new $this->classname(); - //$object->populateFromArray($values); //TODO use a workaround until we'll get phpNamed keys in populateFromArray() - $object = $this->populateObjectFromArray($object, $values); - return $object->buildPkeyCriteria(); - } - - /** - * get an entry - * - * This tries to find an entry in the storage container - * that matches the current data that has been set in the - * form and populates the form with the data of this - * entry - * - * @access public - * @param object patForms patForms object that should be stored - * @return boolean true on success - */ - public function loadEntry(&$form) { - - if (!$object = $this->_entryExists($form->getValues())) { - // entry does not exists (why return an array here??) - return array(); - } - - $form->setValues($object->toArray()); - return true; - } - - public function validateEntry(&$form) { - - if (!$object = $this->_entryExists($form->getValues())) { - $object = new $this->classname(); - } - //$object->populateFromArray($form->getValues()); //TODO use a workaround until we'll get phpNamed keys in populateFromArray() - $object = $this->populateObjectFromArray($object, $form->getValues()); - $result = $object->validate(); - - if ($result !== true) { - $mapBuilder = $this->peer->getMapBuilder(); - $dbMap = $mapBuilder->getDatabaseMap(); - foreach ($result as $colname => $error) { - list($tablename, $colname) = explode('.', $colname); - $column = $dbMap->getTable($tablename)->getColumn($colname); - $element = $form->getElement($column->getPhpName()); - $element->addValidatorErrorCodes(array( - 'C' => array( - 1 => $error->getMessage() . ' (occured in Storage)', - ), - ), 1000); - $element->addValidationError(1001); - } - return false; - } - } - - /** - * adds an entry to the storage - * - * @param object patForms patForms object that should be stored - * @return boolean true on success - */ - public function _addEntry(&$form) { - - $object = new $this->classname(); - //$object->populateFromArray($form->getValues()); //TODO use a workaround until we'll get phpNamed keys in populateFromArray() - $object = $this->populateObjectFromArray($object, $form->getValues()); - $object->save(); - return true; - } - - /** - * updates an entry in the storage - * - * @param object patForms patForms object that should be stored - * @return boolean true on success - */ - public function _updateEntry(&$form, $primary) { - - $object = $this->_entryExists($form->getValues()); - //$object->populateFromArray($form->getValues()); //TODO use a workaround until we'll get phpNamed keys in populateFromArray() - $object = $this->populateObjectFromArray($object, $form->getValues()); - $object->save(); - return true; - } - - /** - * check, whether an entry exists - * - * @access private - * @param array - */ - public function _entryExists($values) { - - // This method gets called multiple times, e.g. when an existing - // object gets updated. We'll therefor cache results locally using - // a criteria string representation as hash. - - static $objects; - $criteria = $this->getCriteria($values); - $hash = $criteria->toString(); - - if (isset($objects[$hash])) { - return $objects[$hash]; - } - - $objects[$hash] = $this->peer->doSelectOne($criteria); - - if (empty($objects[$hash])) { - return false; - } - return $objects[$hash]; - } - - // this method is just a workaround - - private function populateObjectFromArray($object, $values) { - - foreach (array_keys($object->toArray()) as $key) { - if (array_key_exists($key, $values)) { - $object->{'set' . $key}($values[$key]); - } - } - return $object; - } -} diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/res/form.dynamic.tpl b/airtime_mvc/library/propel/contrib/pat/patForms/res/form.dynamic.tpl deleted file mode 100644 index 3935ea6c19..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/res/form.dynamic.tpl +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - {TITLE} - - - - - - - {START} - -
-

Validation failed

-

Sorry, your input could not be saved for the following reasons:

-
    - -
  • {FIELD}: {MESSAGE}
  • -
    -
-
-
- - - {ELEMENT} - - -
- -
{ELEMENT}
-
{DESCRIPTION}
-
-
-
-
- -
- {END} -
- - - -
\ No newline at end of file diff --git a/airtime_mvc/library/propel/contrib/pat/patForms/res/mysql-dump.bookstore.sql b/airtime_mvc/library/propel/contrib/pat/patForms/res/mysql-dump.bookstore.sql deleted file mode 100644 index 48c0ceeb1f..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms/res/mysql-dump.bookstore.sql +++ /dev/null @@ -1,10 +0,0 @@ - -# This first example is tested with a Bookstore project on MySql -# (default setting Sqlite has not been tested) -# -# Additionally, you'll need some data in your tables. In case you -# don't have - here's a mini-dump to get the example running. - -INSERT INTO `author` VALUES (1, 'Martin', 'Heidegger'); -INSERT INTO `book` VALUES (1, 'Sein und Zeit', '3484701226', NULL, NULL); -INSERT INTO `publisher` VALUES (1, 'Max Niemeyer Verlag'); \ No newline at end of file diff --git a/airtime_mvc/library/propel/contrib/pat/patForms_Storage_Propel_test.php b/airtime_mvc/library/propel/contrib/pat/patForms_Storage_Propel_test.php deleted file mode 100644 index 04d3bdff17..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patForms_Storage_Propel_test.php +++ /dev/null @@ -1,97 +0,0 @@ - 2); - - -/** - * the rest should work out of the box if you don't have any unusal - * types in your database schema.xml (strings, int etc. should work) - */ - -require_once 'bookstore/' . $classname . '.php'; -Propel::init($propelConfFilename); - -// create a form definition - -$definition = patForms_Definition_Propel::create(array( - 'name' => $classname, - 'filename' => $path . '/form.' . $classname . '.xml', -)); - -// create a storage - -$storage = patForms::createStorage('Propel'); -$storage->setStorageLocation($classname . 'peer'); - -// create a form - -$form = &patForms::createCreator('Definition')->create($definition); -$form->setRenderer(patForms::createRenderer('Array')); -$form->setStorage($storage); -if (isset($pk)) { - $form->setValues($pk); -} - -// render it to a patTemplate (could be done by other template engines) - -$tpl = new patTemplate(); -$tpl->setRoot($path); -$tpl->readTemplatesFromInput('form.dynamic.tpl'); - -$tpl->addVar('page', 'title', 'Bookstore party'); -$tpl->addVar('form', 'start', $form->serializeStart()); -$tpl->addVar('form', 'end', $form->serializeEnd()); -$tpl->addRows('elements', $form->renderForm()); - -// this should be possible to be done in a more elegant way -if ($errors = $form->getValidationErrors()) { - foreach ($errors as $field => $error) { - $tpl->addVar('error', 'field', $field); - foreach ($error as $line) { - $tpl->addVar('error', 'message', $line['message']); - $tpl->addVar('error', 'code', $line['code']); - $tpl->parseTemplate('error', 'a'); - } - } - $tpl->setAttribute('errors', 'visibility', 'visible'); -} - -$tpl->displayParsedTemplate(); diff --git a/airtime_mvc/library/propel/contrib/pat/patTemplate.php b/airtime_mvc/library/propel/contrib/pat/patTemplate.php deleted file mode 100644 index 01347f63ab..0000000000 --- a/airtime_mvc/library/propel/contrib/pat/patTemplate.php +++ /dev/null @@ -1,2378 +0,0 @@ - - * @license LGPL - * @link http://www.php-tools.net - */ - -/** - * template already exists - */ -define( 'PATTEMPLATE_ERROR_TEMPLATE_EXISTS', 5010 ); - -/** - * template does not exist - */ -define ( 'PATTEMPLATE_WARNING_NO_TEMPLATE', 5011 ); - -/** - * unknown type - */ -define ( 'PATTEMPLATE_WARNING_UNKNOWN_TYPE', 5012 ); - -/** - * base class for module could not be found - */ -define( 'PATTEMPLATE_ERROR_BASECLASS_NOT_FOUND', 5050 ); - -/** - * module could not be found - */ -define( 'PATTEMPLATE_ERROR_MODULE_NOT_FOUND', 5051 ); - -/** - * array expected - */ -define( 'PATTEMPLATE_ERROR_EXPECTED_ARRAY', 5052 ); - -/** - * No input - */ -define( 'PATTEMPLATE_ERROR_NO_INPUT', 6000 ); - -/** - * patTemplate - * - * powerful templating engine - * - * @version 3.0.0 - * @package patTemplate - * @author Stephan Schmidt - * @license LGPL - * @link http://www.php-tools.net - */ -class patTemplate -{ - /** - * standard system vars that identify pat tools - * @var array - */ - var $_systemVars = array( - 'appName' => 'patTemplate', - 'appVersion' => '3.0.0', - 'author' => array( - 'Stephan Schmidt ' - ) - ); - - /** - * default attributes for new templates - * @access private - * @var array - */ - var $_defaultAttributes = array( - 'type' => 'standard', - 'visibility' => 'visible', - 'loop' => 1, - 'unusedvars' => 'strip', - 'whitespace' => 'keep', - 'autoclear' => 'off', - 'autoload' => 'on' - ); - - /** - * options for patTemplate - * - * Currently the following options are implemented: - * - maintainBc defines, whether patTemplate should be backwards compatible. - * This means, that you may use 'default' and 'empty' for subtemplates. - * - * @access private - * @var array - */ - var $_options = array( - 'startTag' => '{', - 'endTag' => '}', - 'root' => '.', - 'namespace' => 'patTemplate', - 'maintainBc' => true - ); - - /** - * start tag - * - * @access private - * @var string - */ - var $_startTag = '{'; - - /** - * end tag - * - * @access private - * @var string - */ - var $_endTag = '}'; - - /** - * loaded modules - * - * Modules are: - * - Readers - * - Caches - * - Variable modifiers - * - Filters - * - * @access private - * @var array - */ - var $_modules = array(); - - /** - * directories, where modules can be stored - * @access private - * @var array - */ - var $_moduleDirs = array(); - - /** - * stores all template names - * @access private - * @var array - */ - var $_templateList = array(); - - /** - * stores all template data - * @access private - * @var array - */ - var $_templates = array(); - - /** - * stores all global variables - * @access private - * @var array - */ - var $_globals = array(); - - /** - * stores all local variables - * @access private - * @var array - */ - var $_vars = array(); - - /** - * stores the name of the first template that has been - * found - * - * @access private - * @var string - */ - var $_root; - - /** - * output filters that should be used - * - * @access private - * @var array - */ - var $_outputFilters = array(); - - /** - * input filters that should be used - * - * @access private - * @var array - */ - var $_inputFilters = array(); - - /** - * template cache, that should be used - * - * @access private - * @var array - */ - var $_tmplCache = null; - - /** - * Create a new patTemplate instance. - * - * The constructor accepts the type of the templates as sole parameter. - * You may choose one of: - * - html (default) - * - tex - * - * The type influences the tags you are using in your templates. - * - * @access public - * @param string type (either html or tex) - */ - function patTemplate( $type = 'html' ) - { - if ( !defined( 'PATTEMPLATE_INCLUDE_PATH' ) ) - define( 'PATTEMPLATE_INCLUDE_PATH', dirname( __FILE__ ) . '/patTemplate' ); - - $this->setType( $type ); - } - - /** - * sets an option - * - * Currently, the following options are supported - * - maintainBc (true|false) - * - namespace (string) - * - * @access public - * @param string option to set - * @param string value of the option - */ - function setOption( $option, $value ) - { - $this->_options[$option] = $value; - } - - /** - * gets an option - * - * @access public - * @param string option to get - * @return mixed value of the option - */ - function getOption( $option ) - { - if ( !isset( $this->_options[$option] ) ) - return null; - return $this->_options[$option]; - } - - /** - * sets name of directory where templates are stored - * - * @access public - * @param string dir where templates are stored - * @deprecated please use patTemplate::setRoot() instead - */ - function setBasedir( $basedir ) - { - $this->_options['root'] = $basedir; - } - - /** - * sets root base for the template - * - * The parameter depends on the reader you are using. - * - * @access public - * @param string root base of the templates - */ - function setRoot( $root ) - { - $this->_options['root'] = $root; - } - - /** - * gets name of root base for the templates - * - * @access public - * @return mixed root base - */ - function getRoot() - { - return $this->_options['root']; - } - - /** - * sets namespace of patTemplate tags - * - * @access public - * @param string namespace - */ - function setNamespace( $ns ) - { - $this->_options['namespace'] = $ns; - } - - /** - * gets namespace of patTemplate tags - * - * @access public - * @return string namespace - */ - function getNamespace() - { - return $this->_options['namespace']; - } - - /** - * set default attribute - * - * @access public - * @param string attribute name - * @param mixed attribute value - */ - function setDefaultAttribute( $name, $value ) - { - $this->_defaultAttributes[$name] = $value; - } - - /** - * set default attributes - * - * @access public - * @param array attributes - */ - function setDefaultAttributes( $attributes ) - { - $this->_defaultAttributes = array_merge( $this->_defaultAttributes, $attributes ); - } - - /** - * get default attributes - * - * @access public - * @return return default attributes - */ - function getDefaultAttributes() - { - return $this->_defaultAttributes; - } - - /** - * set the type for the templates - * - * @access public - * @param string type (html or tex) - * @return boolean true on success - */ - function setType( $type ) - { - switch( strtolower( $type ) ) - { - case "tex": - $this->setTags( '<{', '}>' ); - break; - case "html": - $this->setTags( '{', '}' ); - break; - default: - return patErrorManager::raiseWarning( - PATTEMPLATE_WARNING_UNKNOWN_TYPE, - "Unknown type '$type'. Please use 'html' or 'tex'." - ); - } - return true; - } - - /** - * set the start and end tag for variables - * - * @access public - * @param string start tag - * @param string end tag - * @return boolean true on success - */ - function setTags( $startTag, $endTag ) - { - $this->_options['startTag'] = $startTag; - $this->_options['endTag'] = $endTag; - - $this->_startTag = $startTag; - $this->_endTag = $endTag; - return true; - } - - /** - * get start tag for variables - * - * @access public - * @return string start tag - */ - function getStartTag() - { - return $this->_options['startTag']; - } - - /** - * get end tag for variables - * - * @access public - * @return string end tag - */ - function getEndTag() - { - return $this->_options['endTag']; - } - - /** - * add a directory where patTemplate should search for - * modules. - * - * You may either pass a string or an array of directories. - * - * patTemplate will be searching for a module in the same - * order you added them. If the module cannot be found in - * the custom folders, it will look in - * patTemplate/$moduleType. - * - * @access public - * @param string module type - * @param string|array directory or directories to search. - */ - function addModuleDir( $moduleType, $dir ) - { - if ( !isset( $this->_moduleDirs[$moduleType] ) ) - $this->_moduleDirs[$moduleType] = array(); - if ( is_array( $dir ) ) - $this->_moduleDirs[$moduleType] = array_merge( $this->_moduleDirs[$moduleType], $dir ); - else - array_push( $this->_moduleDirs[$moduleType], $dir ); - } - - /** - * Sets an attribute of a template - * - * supported attributes: visibilty, loop, parse, unusedvars - * - * @param string $template name of the template - * @param string $attribute name of the attribute - * @param mixed $value value of the attribute - * @access public - * @see setAttributes(),getAttribute(), clearAttribute() - */ - function setAttribute( $template, $attribute, $value ) - { - $template = strtolower( $template ); - if ( !isset( $this->_templates[$template] ) ) - { - return patErrorManager::raiseWarning( - PATTEMPLATE_WARNING_NO_TEMPLATE, - "Template '$template' does not exist." - ); - } - - $attribute = strtolower( $attribute ); - $this->_templates[$template]['attributes'][$attribute] = $value; - return true; - } - - /** - * Sets several attribute of a template - * - * $attributes has to be a assotiative arrays containing attribute/value pairs - * supported attributes: visibilty, loop, parse, unusedvars - * - * @param string $template name of the template - * @param array $attributes attribute/value pairs - * @access public - * @see setAttribute(), getAttribute(), clearAttribute() - */ - function setAttributes( $template, $attributes ) - { - if ( !is_array( $attributes ) ) - { - return patErrorManager::raiseError( PATTEMPLATE_ERROR_EXPECTED_ARRAY, 'patTemplate::setAttributes: Expected array as second parameter, '.gettype( $attributes ).' given' ); - } - - $template = strtolower( $template ); - $attributes = array_change_key_case( $attributes ); - if ( !isset( $this->_templates[$template] ) ) - { - return patErrorManager::raiseWarning( - PATTEMPLATE_WARNING_NO_TEMPLATE, - "Template '$template' does not exist." - ); - } - - $this->_templates[$template]['attributes'] = array_merge( $this->_templates[$template]['attributes'], $attributes ); - return true; - } - - /** - * Get all attributes of a template - * - * @param string name of the template - * @return array attributes - * @access public - */ - function getAttributes( $template ) - { - $template = strtolower( $template ); - if ( !isset( $this->_templates[$template] ) ) - { - return patErrorManager::raiseWarning( - PATTEMPLATE_WARNING_NO_TEMPLATE, - "Template '$template' does not exist." - ); - } - return $this->_templates[$template]['attributes']; - } - - /** - * Gets an attribute of a template - * - * supported attributes: visibilty, loop, parse, unusedvars - * - * @param string $template name of the template - * @param string $attribute name of the attribute - * @return mixed value of the attribute - * @access public - * @see setAttribute(), setAttributes(), clearAttribute() - */ - function getAttribute( $template, $attribute ) - { - $template = strtolower( $template ); - $attribute = strtolower( $attribute ); - if ( !isset( $this->_templates[$template] ) ) - { - return patErrorManager::raiseWarning( - PATTEMPLATE_WARNING_NO_TEMPLATE, - "Template '$template' does not exist." - ); - } - return $this->_templates[$template]['attributes'][$attribute]; - } - - /** - * Clears an attribute of a template - * - * supported attributes: visibilty, loop, parse, unusedvars - * - * @param string $template name of the template - * @param string $attribute name of the attribute - * @access public - * @see setAttribute(), setAttributes(), getAttribute() - */ - function clearAttribute( $template, $attribute ) - { - $template = strtolower( $template ); - $attribute = strtolower( $attribute ); - - if ( !isset( $this->_templates[$template] ) ) - { - return patErrorManager::raiseWarning( - PATTEMPLATE_WARNING_NO_TEMPLATE, - "Template '$template' does not exist." - ); - } - $this->_templates[$template]['attributes'][$attribute] = '';; - return true; - } - - /** - * Prepare a template - * - * This can be used if you want to add variables to - * a template, that has not been loaded yet. - * - * @access public - * @param string template name - */ - function prepareTemplate( $name ) - { - $name = strtolower( $name ); - if ( !isset( $this->_vars[$name] ) ) - { - $this->_vars[$name] = array( - 'scalar' => array(), - 'rows' => array() - ); - } - } - - /** - * add a variable to a template - * - * A variable may also be an indexed array, but _not_ - * an associative array! - * - * @access public - * @param string $template name of the template - * @param string $varname name of the variable - * @param mixed $value value of the variable - */ - function addVar( $template, $varname, $value ) - { - $template = strtolower( $template ); - $varname = strtoupper( $varname ); - - if ( !is_array( $value ) ) - { - $this->_vars[$template]['scalar'][$varname] = $value; - return true; - } - - $cnt = count( $value ); - for ( $i = 0; $i < $cnt; $i++ ) - { - if ( !isset( $this->_vars[$template]['rows'][$i] ) ) - $this->_vars[$template]['rows'][$i] = array(); - - $this->_vars[$template]['rows'][$i][$varname] = $value[$i]; - } - - return true; - } - - /** - * get the value of a variable - * - * @access public - * @param string name of the template - * @param string name of the variable - * @return string value of the variable, null if the variable is not set - */ - function getVar( $template, $varname ) - { - $template = strtolower( $template ); - $varname = strtoupper( $varname ); - - if ( isset( $this->_vars[$template]['scalar'][$varname] ) ) - return $this->_vars[$template]['scalar'][$varname]; - - $value = array(); - - $cnt = count( $this->_vars[$template]['rows'] ); - for ( $i = 0; $i < $cnt; $i++ ) - { - if ( !isset( $this->_vars[$template]['rows'][$i][$varname] ) ) - continue; - array_push( $value, $this->_vars[$template]['rows'][$i][$varname] ); - } - if ( !empty( $value ) ) - return $value; - return null; - } - - /** - * Adds several variables to a template - * - * Each Template can have an unlimited amount of its own variables - * $variables has to be an assotiative array containing variable/value pairs - * - * @param string $template name of the template - * @param array $variables assotiative array of the variables - * @param string $prefix prefix for all variable names - * @access public - * @see addVar(), addRows(), addGlobalVar(), addGlobalVars() - */ - function addVars( $template, $variables, $prefix = '' ) - { - $template = strtolower( $template ); - $prefix = strtoupper( $prefix ); - $variables = array_change_key_case( $variables, CASE_UPPER ); - - foreach ( $variables as $varname => $value ) - { - $varname = $prefix.$varname; - - if ( !is_array( $value ) ) { - if (!is_scalar($value)) { - continue; - } - $this->_vars[$template]['scalar'][$varname] = $value; - continue; - } - - $cnt = count( $value ); - for ( $i = 0; $i < $cnt; $i++ ) - { - if ( !isset( $this->_vars[$template]['rows'][$i] ) ) - $this->_vars[$template]['rows'][$i] = array(); - - $this->_vars[$template]['rows'][$i][$varname] = $value[$i]; - } - } - } - - /** - * Adds several rows of variables to a template - * - * Each Template can have an unlimited amount of its own variables - * Can be used to add a database result as variables to a template - * - * @param string $template name of the template - * @param array $rows array containing assotiative arrays with variable/value pairs - * @param string $prefix prefix for all variable names - * @access public - * @see addVar(), addVars(), addGlobalVar(), addGlobalVars() - */ - function addRows( $template, $rows, $prefix = '' ) - { - $template = strtolower( $template ); - $prefix = strtoupper( $prefix ); - - $cnt = count( $rows ); - for ( $i = 0; $i < $cnt; $i++ ) - { - if ( !isset( $this->_vars[$template]['rows'][$i] ) ) - $this->_vars[$template]['rows'][$i] = array(); - - $rows[$i] = array_change_key_case( $rows[$i], CASE_UPPER ); - - foreach ( $rows[$i] as $varname => $value ) - { - $this->_vars[$template]['rows'][$i][$prefix.$varname] = $value; - } - } - } - - /** - * Adds an object to a template - * - * All properties of the object will be available as template variables. - * - * @param string name of the template - * @param object|array object or array of objects - * @param string prefix for all variable names - * @access public - * @see addVar(), addRows(), addGlobalVar(), addGlobalVars() - */ - function addObject( $template, $object, $prefix = '' ) - { - if ( is_array( $object ) ) - { - $rows = array(); - foreach ( $object as $o ) - array_push( $rows, get_object_vars( $o ) ); - - $this->addRows( $template, $rows, $prefix ); - return true; - } - elseif ( is_object( $object ) ) - { - $this->addVars( $template, get_object_vars( $object ), $prefix ); - return true; - } - return false; - } - - /** - * Adds a global variable - * - * Global variables are valid in all templates of this object. - * A global variable has to be scalar, it will be converted to a string. - * - * @access public - * @param string $varname name of the global variable - * @param string $value value of the variable - * @return boolean true on success - * @see addGlobalVars(), addVar(), addVars(), addRows() - */ - function addGlobalVar( $varname, $value ) - { - $this->_globals[strtoupper( $varname )] = ( string )$value; - return true; - } - - /** - * Adds several global variables - * - * Global variables are valid in all templates of this object. - * - * $variables is an associative array, containing name/value pairs of the variables. - * - * @access public - * @param array $variables array containing the variables - * @param string $prefix prefix for variable names - * @return boolean true on success - * @see addGlobalVar(), addVar(), addVars(), addRows() - */ - function addGlobalVars( $variables, $prefix = '' ) - { - $variables = array_change_key_case( $variables, CASE_UPPER ); - $prefix = strtoupper( $prefix ); - foreach ( $variables as $varname => $value ) - { - $this->_globals[$prefix.$varname] = ( string )$value; - } - return true; - } - - /** - * get all global variables - * - * @access public - * @return array global variables - */ - function getGlobalVars() - { - return $this->_globals; - } - - /** - * checks wether a template exists - * - * @access public - * @param string name of the template - * @return boolean true, if the template exists, false otherwise - */ - function exists( $name ) - { - return in_array( strtolower( $name ), $this->_templateList ); - } - - /** - * enable a template cache - * - * A template cache will improve performace, as the templates - * do not have to be read on each request. - * - * @access public - * @param string name of the template cache - * @param array parameters for the template cache - * @return boolean true on success, patError otherwise - */ - function useTemplateCache( $cache, $params = array() ) - { - if ( !is_object( $cache ) ) - { - $cache = &$this->loadModule( 'TemplateCache', $cache, $params ); - } - if ( patErrorManager::isError( $cache ) ) - return $cache; - - $this->_tmplCache = &$cache; - return true; - } - - /** - * enable an output filter - * - * Output filters are used to modify the template - * result before it is sent to the browser. - * - * They are applied, when displayParsedTemplate() is called. - * - * @access public - * @param string name of the output filter - * @param array parameters for the output filter - * @return boolean true on success, patError otherwise - */ - function applyOutputFilter( $filter, $params = array() ) - { - if ( !is_object( $filter ) ) - { - $filter = &$this->loadModule( 'OutputFilter', $filter, $params ); - } - if ( patErrorManager::isError( $filter ) ) - return $filter; - - $this->_outputFilters[] = &$filter; - return true; - } - - /** - * enable an input filter - * - * input filters are used to modify the template - * stream before it is split into smaller templates- - * - * @access public - * @param string name of the input filter - * @param array parameters for the input filter - * @return boolean true on success, patError otherwise - */ - function applyInputFilter( $filter, $params = array() ) - { - if ( !is_object( $filter ) ) - { - $filter = &$this->loadModule( 'InputFilter', $filter, $params ); - } - if ( patErrorManager::isError( $filter ) ) - return $filter; - - $this->_inputFilters[] = &$filter; - return true; - } - - /** - * open a file and parse for patTemplate tags - * - * @access public - * @param name of the file - * @return true, if the template could be parsed - * @deprecated Use patTemplate::readTemplatesFromInput() instead, as the method name is misleading - * @see readTemplatesFromInput() - */ - function readTemplatesFromFile( $filename ) - { - return $this->readTemplatesFromInput( $filename, 'File' ); - } - - /** - * open any input and parse for patTemplate tags - * - * @access public - * @param string name of the input (filename, shm segment, etc.) - * @param string driver that is used as reader, you may also pass a Reader object - * @param array additional options that will only be used for this template - * @param string name of the template that should be used as a container, should not be used by public - * calls. - * @return boolean true, if the template could be parsed, false otherwise - */ - function readTemplatesFromInput( $input, $reader = 'File', $options = null, $parseInto = null ) - { - if ($input === '') { - return patErrorManager::raiseError(PATTEMPLATE_ERROR_NO_INPUT, 'No input to read has been passed.'); - } - - if ( is_array( $options ) ) - $options = array_merge( $this->_options, $options ); - else - $options = $this->_options; - - if ( !is_null( $parseInto ) ) - $parseInto = strtolower( $parseInto ); - - $templates = false; - if ( $this->_tmplCache !== null ) - { - /** - * get the unique cache key - */ - $key = $this->_tmplCache->getKey( $input, $options ); - - $templates = $this->_loadTemplatesFromCache( $input, $reader, $options, $key ); - - /** - * check for error returned from cache - */ - if ( patErrorManager::isError( $templates ) ) - return $templates; - } - - /** - * templates have not been loaded from cache - */ - if ( $templates === false ) - { - if ( !is_object( $reader ) ) - { - $reader = &$this->loadModule( 'Reader', $reader ); - if ( patErrorManager::isError( $reader ) ) - return $reader; - } - $reader->setOptions( $options ); - - /** - * set the root attributes - */ - if ( !is_null( $parseInto ) ) - { - $attributes = $this->getAttributes( $parseInto ); - if ( !patErrorManager::isError( $attributes ) ) - { - $reader->setRootAttributes( $attributes ); - } - } - - $templates = $reader->readTemplates( $input ); - - /** - * check for error returned from reader - */ - if ( patErrorManager::isError( $templates ) ) - return $templates; - - /** - * store the - */ - if ( $this->_tmplCache !== null ) - { - $this->_tmplCache->write( $key, $templates ); - } - } - - /** - * traverse all templates - */ - foreach ( $templates as $name => $spec ) - { - /** - * root template - */ - if ( $name == '__ptroot' ) - { - if ( $parseInto === false ) - { - continue; - } - if ( !in_array( $parseInto, $this->_templateList ) ) - continue; - - $spec['loaded'] = true; - $spec['attributes'] = $this->_templates[$parseInto]['attributes']; - $name = $parseInto; - } - else - { - /** - * store the name - */ - array_push( $this->_templateList, $name ); - } - - /** - * if this is the first template that has been loaded - * set it as the root template - */ - if ( $this->_root === null && is_null( $parseInto ) && isset( $spec['isRoot'] ) && $spec['isRoot'] == true ) - { - $this->_root = $name; - } - - /** - * set some default values - */ - $spec['iteration'] = 0; - $spec['lastMode'] = 'w'; - $spec['result'] = ''; - $spec['modifyVars'] = array(); - $spec['copyVars'] = array(); - $spec['defaultVars'] = array(); - - /** - * store the template - */ - $this->_templates[$name] = $spec; - - $this->prepareTemplate( $name ); - - /** - * store the default values of the variables - */ - foreach ( $spec['varspecs'] as $varname => $varspec ) - { - if ( isset( $varspec['modifier'] ) ) - { - $this->_templates[$name]['modifyVars'][$varname] = $varspec['modifier']; - } - - if ( isset( $varspec['copyfrom'] ) ) - { - $this->_templates[$name]['copyVars'][$varname] = $varspec['copyfrom']; - } - - if ( !isset( $varspec['default'] ) ) - continue; - - $this->_templates[$name]['defaultVars'][$varname] = $varspec['default']; - - if ( !is_null( $this->getVar( $name, $varname ) ) ) - continue; - - $this->addVar( $name, $varname, $varspec['default'] ); - } - - unset($this->_templates[$name]['varspecs']); - - /** - * autoload the template - * - * Some error management is needed here... - */ - if ( isset( $this->_templates[$name]['attributes']['src'] ) && $this->_templates[$name]['attributes']['autoload'] == 'on' ) - { - if ( $this->_templates[$name]['loaded'] !== true ) - { - if ( $this->_templates[$name]['attributes']['parse'] == 'on' ) - { - $this->readTemplatesFromInput( $this->_templates[$name]['attributes']['src'], $this->_templates[$name]['attributes']['reader'], $options, $name ); - } - else - { - $this->loadTemplateFromInput( $this->_templates[$name]['attributes']['src'], $this->_templates[$name]['attributes']['reader'], null, $name ); - } - $this->_templates[$name]['loaded'] = true; - } - } - } - - return true; - } - - /** - * load from template cache - * - * @access private - * @param string name of the input (filename, shm segment, etc.) - * @param string driver that is used as reader, you may also pass a Reader object - * @param array options for the reader - * @param string cache key - * @return array|boolean either an array containing the templates, or false - */ - function _loadTemplatesFromCache( $input, &$reader, $options, $key ) - { - if ( is_object( $reader ) ) - $statName = $reader->getName(); - else - $statName = $reader; - - $stat = &$this->loadModule( 'Stat', $statName ); - $stat->setOptions( $options ); - - /** - * get modification time - */ - $modTime = $stat->getModificationTime( $input ); - $templates = $this->_tmplCache->load( $key, $modTime ); - - return $templates; - } - - /** - * open any input and load content into template - * - * @access public - * @param string name of the input (filename, shm segment, etc.) - * @param string driver that is used as reader - * @param string name of the template that should be used as a container, - * @return boolean true, if the template could be parsed, false otherwise - */ - function loadTemplateFromInput( $input, $reader = 'File', $options = null, $parseInto = false ) - { - if ( is_array( $options ) ) - $options = array_merge( $this->_options, $options ); - else - $options = $this->_options; - - if ( !is_null( $parseInto ) ) - $parseInto = strtolower( $parseInto ); - - $reader = &$this->loadModule( 'Reader', $reader ); - if ( patErrorManager::isError( $reader ) ) - { - return $reader; - } - $reader->setOptions($options); - - $result = $reader->loadTemplate( $input ); - - if ( patErrorManager::isError( $result ) ) - { - return $result; - } - - $this->_templates[$parseInto]['content'] .= $result; - $this->_templates[$parseInto]['loaded'] = true; - return true; - } - - /** - * load a template that had autoload="off" - * - * This is needed, if you change the source of a template and want to - * load it, after changing the attribute. - * - * @access public - * @param string template name - * @return boolean true, if template could be loaded - */ - function loadTemplate( $template ) - { - $template = strtolower( $template ); - if ( !isset( $this->_templates[$template] ) ) - { - return patErrorManager::raiseWarning( - PATTEMPLATE_WARNING_NO_TEMPLATE, - "Template '$template' does not exist." - ); - } - - if ( $this->_templates[$template]['loaded'] === true ) - return true; - - if ( $this->_templates[$template]['attributes']['parse'] == 'on' ) - { - return $this->readTemplatesFromInput( $this->_templates[$template]['attributes']['src'], $this->_templates[$template]['attributes']['reader'], null, $template ); - } - else - { - return $this->loadTemplateFromInput( $this->_templates[$template]['attributes']['src'], $this->_templates[$template]['attributes']['reader'], null, $template ); - } - } - - /** - * loads a patTemplate module - * - * Modules are located in the patTemplate folder and include: - * - Readers - * - Caches - * - Variable Modifiers - * - Filters - * - Functions - * - Stats - * - * @access public - * @param string moduleType (Reader|TemplateCache|Modifier|OutputFilter|InputFilter) - * @param string moduleName - * @param array parameters for the module - * @return object - */ - function &loadModule( $moduleType, $moduleName, $params = array() ) - { - if ( !isset( $this->_modules[$moduleType] ) ) - $this->_modules[$moduleType] = array(); - - $sig = md5( $moduleName . serialize( $params ) ); - - if ( isset( $this->_modules[$moduleType][$sig] ) ) - return $this->_modules[$moduleType][$sig]; - - if ( !class_exists( 'patTemplate_Module' ) ) - { - $file = sprintf( "%s/Module.php", $this->getIncludePath() ); - if ( !@include_once $file ) - return patErrorManager::raiseError( PATTEMPLATE_ERROR_BASECLASS_NOT_FOUND, 'Could not load module base class.' ); - } - - $baseClass = 'patTemplate_' . $moduleType; - if ( !class_exists( $baseClass ) ) - { - $baseFile = sprintf( "%s/%s.php", $this->getIncludePath(), $moduleType ); - if ( !@include_once $baseFile ) - return patErrorManager::raiseError( PATTEMPLATE_ERROR_BASECLASS_NOT_FOUND, "Could not load base class for $moduleType ($baseFile)." ); - } - - $moduleClass = 'patTemplate_' . $moduleType . '_' .$moduleName; - if ( !class_exists( $moduleClass ) ) - { - if ( isset( $this->_moduleDirs[$moduleType] ) ) - $dirs = $this->_moduleDirs[$moduleType]; - else - $dirs = array(); - array_push( $dirs, $this->getIncludePath() .'/'. $moduleType ); - - foreach ( $dirs as $dir ) - { - $moduleFile = sprintf( "%s/%s.php", $dir, str_replace( '_', '/', $moduleName ) ); - if ( @include_once $moduleFile ) - break; - return patErrorManager::raiseError( PATTEMPLATE_ERROR_MODULE_NOT_FOUND, "Could not load module $moduleClass ($moduleFile)." ); - } - } - - if ( !class_exists( $moduleClass ) ) - { - return patErrorManager::raiseError( PATTEMPLATE_ERROR_MODULE_NOT_FOUND, "Module file $moduleFile does not contain class $moduleClass." ); - } - - $this->_modules[$moduleType][$sig] = &new $moduleClass; - if ( method_exists( $this->_modules[$moduleType][$sig], 'setTemplateReference' ) ) - { - $this->_modules[$moduleType][$sig]->setTemplateReference( $this ); - } - - $this->_modules[$moduleType][$sig]->setParams( $params ); - - return $this->_modules[$moduleType][$sig]; - } - - /** - * checks whether a module exists. - * - * Modules are located in the patTemplate folder and include: - * - Readers - * - Caches - * - Variable Modifiers - * - Filters - * - Functions - * - Stats - * - * @access public - * @param string moduleType (Reader|TemplateCache|Modifier|OutputFilter|InputFilter) - * @param string moduleName - * @return boolean - */ - function moduleExists( $moduleType, $moduleName ) - { - if ( isset( $this->_moduleDirs[$moduleType] ) ) - $dirs = $this->_moduleDirs[$moduleType]; - else - $dirs = array(); - array_push( $dirs, $this->getIncludePath() .'/'. $moduleType ); - - foreach ( $dirs as $dir ) - { - $moduleFile = sprintf( "%s/%s.php", $dir, str_replace( '_', '/', $moduleName ) ); - if ( !file_exists( $moduleFile ) ) - continue; - if ( !is_readable( $moduleFile ) ) - continue; - return true; - } - return false; - } - - /** - * parses a template - * - * Parses a template and stores the parsed content. - * mode can be "w" for write (delete already parsed content) or "a" for append (appends the - * new parsed content to the already parsed content) - * - * @access public - * @param string name of the template - * @param string mode for the parsing - */ - function parseTemplate( $template, $mode = 'w' ) - { - $template = strtolower( $template ); - - if ( !isset( $this->_templates[$template] ) ) - { - return patErrorManager::raiseWarning( - PATTEMPLATE_WARNING_NO_TEMPLATE, - "Template '$template' does not exist." - ); - } - - /** - * template is not visible - */ - if ( $this->_templates[$template]['attributes']['visibility'] == 'hidden' ) - { - $this->_templates[$template]['result'] = ''; - $this->_templates[$template]['parsed'] = true; - return true; - } - - /** - * check, if the template has been loaded - * and load it if necessary. - */ - if ( $this->_templates[$template]['loaded'] !== true ) - { - if ( $this->_templates[$template]['attributes']['parse'] == 'on' ) - { - $result = $this->readTemplatesFromInput( $this->_templates[$template]['attributes']['src'], $this->_templates[$template]['attributes']['reader'], null, $template ); - } - else - { - $result = $this->loadTemplateFromInput( $this->_templates[$template]['attributes']['src'], $this->_templates[$template]['attributes']['reader'], null, $template ); - } - if ( patErrorManager::isError( $result ) ) - { - return $result; - } - } - - /** - * check for autoclear - */ - if ( - isset( $this->_templates[$template]['attributes']['autoclear'] ) && - $this->_templates[$template]['attributes']['autoclear'] == 'yes' && - $mode === 'w' && - $this->_templates[$template]['lastMode'] != 'a' - ) - { - $this->_templates[$template]['parsed'] = false; - } - - /** - * template has been parsed and mode is not 'append' - */ - if ( $this->_templates[$template]['parsed'] === true && $mode === 'w' ) - { - return true; - } - - $this->_templates[$template]['lastMode'] = $mode; - - $this->_initTemplate( $template ); - - if ( !isset( $this->_vars[$template]['rows'] ) ) - $this->_vars[$template]['rows'] = array(); - $loop = count( $this->_vars[$template]['rows'] ); - - /** - * loop at least one times - */ - if ( $loop < 1 ) - $loop = 1; - - if ( isset( $this->_templates[$template]['attributes']['maxloop'] ) ) - { - $loop = ceil( $loop / $this->_templates[$template]['attributes']['maxloop'] ) * $this->_templates[$template]['attributes']['maxloop']; - } - - $this->_templates[$template]['loop'] = max( $this->_templates[$template]['attributes']['loop'], $loop ); - - $start = 0; - if ( isset( $this->_templates[$template]['attributes']['limit'] ) ) - { - $p = strpos( $this->_templates[$template]['attributes']['limit'], ',' ); - if ( $p === false ) - { - $this->_templates[$template]['loop'] = min( $this->_templates[$template]['loop'], $this->_templates[$template]['attributes']['limit'] ); - $start = 0; - } - else - { - $start = substr( $this->_templates[$template]['attributes']['limit'], 0, $p ); - $end = substr( $this->_templates[$template]['attributes']['limit'], $p+1 )+$start; - - $this->_templates[$template]['loop'] = min( $this->_templates[$template]['loop'], $end ); - } - } - - /** - * template should be cleared before parsing - */ - if ( $mode == 'w' ) - { - $this->_templates[$template]['result'] = ''; - $this->_templates[$template]['iteration'] = $start; - } - - $loopCount = 0; - for ( $i = $start; $i < $this->_templates[$template]['loop']; $i++ ) - { - $finished = false; - - unset( $this->_templates[$template]['vars'] ); - - /** - * fetch the variables - */ - $this->_fetchVariables( $template ); - - /** - * fetch the template - */ - $result = $this->_fetchTemplate( $template ); - - if ( $result === false ) - { - $this->_templates[$template]['iteration']++; - continue; - } - - /** - * parse - */ - $this->_parseVariables( $template ); - $this->_parseDependencies( $template ); - - /** - * store result - */ - $this->_templates[$template]['result'] .= $this->_templates[$template]['work']; - - $this->_templates[$template]['iteration']++; - - ++$loopCount; - - /** - * check for maximum loops - */ - if ( isset( $this->_templates[$template]['attributes']['maxloop'] ) ) - { - if ( $loopCount == $this->_templates[$template]['attributes']['maxloop'] && $i < ( $loop-1 ) ) - { - $loopCount = 0; - $finished = true; - $this->_templates[$template]['parsed'] = true; - $this->parseTemplate( $this->_templates[$template]['attributes']['parent'], 'a' ); - $this->_templates[$template]['parsed'] = false; - $this->_templates[$template]['result'] = ''; - } - } - } - - if ( !$finished && isset( $this->_templates[$template]['attributes']['maxloop'] ) ) - { - $this->_templates[$template]['parsed'] = true; - $this->parseTemplate( $this->_templates[$template]['attributes']['parent'], 'a', false ); - $this->_templates[$template]['parsed'] = false; - $this->_templates[$template]['result'] = ''; - $this->_templates[$this->_templates[$template]['attributes']['parent']]['work'] = ''; - } - - $this->_parseGlobals($template); - - $this->_handleUnusedVars( $template ); - - $this->_templates[$template]['parsed'] = true; - - if ( isset( $this->_templates[$template]['attributes']['autoclear'] ) && $this->_templates[$template]['attributes']['autoclear'] == 'yes' ) - { - $this->_vars[$template] = array( - 'scalar' => array(), - 'rows' => array() - ); - } - - return true; - } - - /** - * Initialize a template - * - * This method checks the variable specifications and - * copys variables from other templates. - * - * @access private - * @param string name of the template - * @return boolean true on success - */ - function _initTemplate( $template ) - { - foreach ( $this->_templates[$template]['copyVars'] as $dest => $src ) - { - /** - * copy from the same template - */ - if ( !is_array( $src ) ) - { - $srcTemplate = $template; - $srcVar = $src; - } - else - { - $srcTemplate = $src[0]; - $srcVar = $src[1]; - } - - $copied = false; - - /** - * copy from another template - */ - if ( isset( $this->_vars[$srcTemplate] ) ) - { - if ( isset( $this->_vars[$srcTemplate]['scalar'][$srcVar] ) ) - { - $this->_vars[$template]['scalar'][$dest] = $this->_vars[$srcTemplate]['scalar'][$srcVar]; - continue; - } - - $rows = count( $this->_vars[$srcTemplate]['rows'] ); - - for ( $i = 0; $i < $rows; $i++ ) - { - if ( !isset( $this->_vars[$srcTemplate]['rows'][$i][$srcVar] ) ) - continue; - if ( !isset( $this->_vars[$template]['rows'][$i] ) ) - $this->_vars[$template]['rows'][$i] = array(); - $this->_vars[$template]['rows'][$i][$dest] = $this->_vars[$srcTemplate]['rows'][$i][$srcVar]; - $copied = true; - } - } - if ( !$copied && isset( $this->_globals[$srcVar] )) - { - $this->_vars[$template]['scalar'][$dest] = $this->_globals[$srcVar]; - } - - } - return true; - } - - /** - * parse all variables in a template - * - * @access private - * @param string - */ - function _parseVariables( $template ) - { - /** - * modify variables before parsing - */ - $this->_applyModifers($template, $this->_templates[$template]['vars']); - - foreach ( $this->_templates[$template]['vars'] as $key => $value ) - { - if ( is_array( $value ) ) - { - if ( count( $this->_templates[$template]['currentDependencies'] ) == 1 ) - { - $child = $this->_templates[$template]['currentDependencies'][0]; - } - else - { - if ( isset( $this->_templates[$template]['attributes']['child'] ) ) - $child = $this->_templates[$template]['attributes']['child']; - else - continue; - } - - $this->setAttribute( $child, 'autoclear', 'yes' ); - $this->addVar( $child, $key, $value ); - continue; - } - - $var = $this->_startTag.$key.$this->_endTag; - $this->_templates[$template]['work'] = @str_replace( $var, $value, $this->_templates[$template]['work'] ); - } - return true; - } - - /** - * parse global variables in the template - * - * @access private - * @param string name of the template - * @return boolean - */ - function _parseGlobals($template) - { - $globalVars = $this->_globals; - $this->_applyModifers($template, $globalVars); - - foreach ( $globalVars as $key => $value ) - { - if ( is_array( $value ) ) - { - continue; - } - - $var = $this->_startTag.$key.$this->_endTag; - $this->_templates[$template]['result'] = str_replace( $var, $value, $this->_templates[$template]['result'] ); - } - return true; - } - - /** - * apply variable modifiers - * - * The variables will be passed by reference. - * - * @access private - * @param string name of the template (use modifiers from this template) - * @param array variables to which the modifiers should be applied - * @return boolean - */ - function _applyModifers($template, &$vars) - { - foreach ( $this->_templates[$template]['modifyVars'] as $varname => $modifier ) - { - if ( !isset( $vars[$varname] ) ) - continue; - - if ( ( $modifier['type'] === 'php' || $modifier['type'] === 'auto' ) && is_callable( $modifier['mod'] ) ) - { - $vars[$varname] = call_user_func( $modifier['mod'], $vars[$varname] ); - continue; - } - - if ( $modifier['type'] === 'php' ) - continue; - - $mod = &$this->loadModule( 'Modifier', ucfirst( $modifier['mod'] ) ); - $vars[$varname] = $mod->modify( $vars[$varname], $modifier['params'] ); - } - return true; - } - - /** - * parse all dependencies in a template - * - * @access private - * @param string - */ - function _parseDependencies( $template ) - { - $countDep = count( $this->_templates[$template]['currentDependencies'] ); - for ( $i = 0; $i < $countDep; $i++ ) - { - $depTemplate = $this->_templates[$template]['currentDependencies'][$i]; - $this->parseTemplate( $depTemplate ); - $var = $this->_startTag.'TMPL:'.strtoupper( $depTemplate) .$this->_endTag; - $this->_templates[$template]['work'] = str_replace( $var, $this->_templates[$depTemplate]['result'], $this->_templates[$template]['work'] ); - } - return true; - } - - /** - * fetch plain template - * - * The template content will be stored in the template - * configuration so it can be used by other - * methods. - * - * @access private - * @param string template name - * @return boolean - */ - function _fetchTemplate( $template ) - { - switch( $this->_templates[$template]['attributes']['type'] ) - { - /** - * condition template - */ - case 'condition': - $value = $this->_getConditionValue( $template, $this->_templates[$template]['attributes']['conditionvar'] ); - if ( $value === false ) - { - $this->_templates[$template]['work'] = ''; - $this->_templates[$template]['currentDependencies'] = array(); - } - else - { - $this->_templates[$template]['work'] = $this->_templates[$template]['subtemplates'][$value]['data']; - $this->_templates[$template]['currentDependencies'] = $this->_templates[$template]['subtemplates'][$value]['dependencies']; - } - break; - - /** - * condition template - */ - case 'simplecondition': - foreach ( $this->_templates[$template]['attributes']['requiredvars'] as $var ) - { - if ( $var[0] !== $template ) - $this->_fetchVariables($var[0]); - - if ( isset( $this->_templates[$var[0]]['vars'][$var[1]] ) && strlen( $this->_templates[$var[0]]['vars'][$var[1]] ) > 0 ) - continue; - if (isset($this->_templates[$template]['attributes']['useglobals'])) - { - if (isset($this->_globals[$var[1]]) && strlen($this->_globals[$var[1]]) > 1) - continue; - } - - $this->_templates[$template]['work'] = ''; - $this->_templates[$template]['currentDependencies'] = array(); - break 2; - } - $this->_templates[$template]['work'] = $this->_templates[$template]['content']; - $this->_templates[$template]['currentDependencies'] = $this->_templates[$template]['dependencies']; - break; - - /** - * modulo template - */ - case 'modulo': - // check for empty template - if ($this->_hasVariables($template)) { - $value = ( $this->_templates[$template]['iteration'] + 1 ) % $this->_templates[$template]['attributes']['modulo']; - } else { - $value = '__empty'; - } - - $value = $this->_getConditionValue( $template, $value, false ); - if ( $value === false ) - { - $this->_templates[$template]['work'] = ''; - $this->_templates[$template]['currentDependencies'] = array(); - } - else - { - $this->_templates[$template]['work'] = $this->_templates[$template]['subtemplates'][$value]['data']; - $this->_templates[$template]['currentDependencies'] = $this->_templates[$template]['subtemplates'][$value]['dependencies']; - } - break; - - /** - * standard template - */ - default: - $this->_templates[$template]['work'] = $this->_templates[$template]['content']; - $this->_templates[$template]['currentDependencies'] = $this->_templates[$template]['dependencies']; - break; - } - return true; - } - - /** - * check, whether a template contains variables - * - * @access private - * @param string template name - * @return boolean - */ - function _hasVariables($template) - { - if (!empty($this->_vars[$template]['scalar'])) { - return true; - } - if (isset($this->_vars[$template]['rows'][$this->_templates[$template]['iteration']])) { - return true; - } - return false; - } - - /** - * fetch the value of a condition variable - * - * _fetchVariables() has to be called before this - * method is being called. - * - * @access private - * @param string template name - * @param string condition value - * @param boolean flag that indicates whether value is the name of the variable that should be resolved - * - * @todo split this method into smaller check methods that will be called according to - * a priority list - */ - function _getConditionValue( $template, $value, $isVar = true ) - { - if ( $isVar === true ) - { - if ( isset( $this->_templates[$template]['attributes']['conditiontmpl'] ) ) - { - $_template = $this->_templates[$template]['attributes']['conditiontmpl']; - $this->_fetchVariables( $_template ); - } - else - { - $_template = $template; - } - - /** - * get the value from the template variables - */ - if ( !isset( $this->_templates[$_template]['vars'][$value] ) || strlen( $this->_templates[$_template]['vars'][$value] ) === 0 ) - { - if ( $this->_templates[$template]['attributes']['useglobals'] == 'yes' || $this->_templates[$template]['attributes']['useglobals'] == 'useglobals' ) - { - if ( isset( $this->_globals[$value] ) && strlen( $this->_globals[$value] ) > 0 ) - { - $value = $this->_globals[$value]; - } - else - { - $value = '__empty'; - } - } - else - { - $value = '__empty'; - } - } - else - { - $value = $this->_templates[$_template]['vars'][$value]; - } - } - else - { - $_template = $template; - } - - /** - * is __first? - */ - if ( $this->_templates[$_template]['iteration'] == 0 ) - { - if ( isset( $this->_templates[$template]['subtemplates']['__first'] ) ) - { - return '__first'; - } - } - - /** - * is __last? - */ - $max = $this->_templates[$_template]['loop'] - 1; - if ( $this->_templates[$_template]['iteration'] == $max ) - { - if ( isset( $this->_templates[$template]['subtemplates']['__last'] ) ) - { - return '__last'; - } - } - - /** - * found an exact match - */ - if ( isset( $this->_templates[$template]['subtemplates'][$value] ) ) - { - return $value; - } - - /** - * is __default? - */ - if ( isset( $this->_templates[$template]['subtemplates']['__default'] ) ) - { - return '__default'; - } - - return false; - } - - /** - * fetch variables for a template - * - * The variables will be stored in the template - * configuration so they can be used by other - * methods. - * - * @access private - * @param string template name - * @return boolean - */ - function _fetchVariables( $template ) - { - /** - * variables already have been fetched - */ - if ( isset( $this->_templates[$template]['vars'] ) ) - { - return true; - } - - $iteration = $this->_templates[$template]['iteration']; - - if ( isset( $this->_templates[$template]['attributes']['varscope'] ) ) - { - $scopeTemplate = $this->_templates[$template]['attributes']['varscope']; - if ($this->exists($scopeTemplate)) { - $this->_fetchVariables( $scopeTemplate ); - $vars = $this->_templates[$scopeTemplate]['vars']; - } else { - patErrorManager::raiseWarning(PATTEMPLATE_WARNING_NO_TEMPLATE, 'Template \''.$scopeTemplate.'\' does not exist, referenced in varscope attribute of template \''.$template.'\''); - $vars = array(); - } - } - else - { - $vars = array(); - } - - /** - * get the scalar variables - */ - if ( isset( $this->_vars[$template] ) && isset( $this->_vars[$template]['scalar'] ) ) - { - $vars = array_merge( $vars, $this->_vars[$template]['scalar'] ); - } - - /** - * get the row variables - */ - if ( isset( $this->_vars[$template]['rows'][$iteration] ) ) - { - $vars = array_merge( $vars, $this->_vars[$template]['rows'][$iteration] ); - } - - /** - * add some system variables - */ - $currentRow = $iteration + 1; - $vars['PAT_ROW_VAR'] = $currentRow; - - if ( $this->_templates[$template]['attributes']['type'] == 'modulo' ) - { - $vars['PAT_MODULO_REP'] = ceil( $currentRow / $this->_templates[$template]['attributes']['modulo'] ); - $vars['PAT_MODULO'] = ( $this->_templates[$template]['iteration'] + 1 ) % $this->_templates[$template]['attributes']['modulo']; - } - - if ( $this->_templates[$template]['attributes']['addsystemvars'] !== false ) - { - $vars['PATTEMPLATE_VERSION'] = $this->_systemVars['appVersion']; - $vars['PAT_LOOPS'] = $this->_templates[$template]['loop']; - - switch ($this->_templates[$template]['attributes']['addsystemvars']) - { - case 'boolean': - $trueValue = 'true'; - $falseValue = 'false'; - break; - case 'integer': - $trueValue = '1'; - $falseValue = '0'; - break; - default: - $trueValue = $this->_templates[$template]['attributes']['addsystemvars']; - $falseValue = ''; - break; - } - - $vars['PAT_IS_ODD'] = ( $currentRow % 2 == 1 ) ? $trueValue : $falseValue; - $vars['PAT_IS_EVEN'] = ( $currentRow % 2 == 0 ) ? $trueValue : $falseValue; - $vars['PAT_IS_FIRST'] = ( $currentRow == 1 ) ? $trueValue : $falseValue; - $vars['PAT_IS_LAST'] = ( $currentRow == $this->_templates[$template]['loop'] ) ? $trueValue : $falseValue; - } - - $this->_templates[$template]['vars'] = $vars; - return true; - } - - /** - * handle all unused variables in a template - * - * This is influenced by the 'unusedvars' attribute of the - * template - * - * @access private - * @param string - */ - function _handleUnusedVars( $template ) - { - $regexp = '/('.$this->_startTag.'[^a-z]+'.$this->_endTag.')/U'; - - switch( $this->_templates[$template]['attributes']['unusedvars'] ) - { - case 'comment': - $this->_templates[$template]['result'] = preg_replace( $regexp, '', $this->_templates[$template]['result'] ); - break; - case 'strip': - $this->_templates[$template]['result'] = preg_replace( $regexp, '', $this->_templates[$template]['result'] ); - break; - case 'nbsp': - $this->_templates[$template]['result'] = preg_replace( $regexp, ' ', $this->_templates[$template]['result'] ); - break; - case 'ignore': - break; - default: - $this->_templates[$template]['result'] = preg_replace( $regexp, $this->_templates[$template]['attributes']['unusedvars'], $this->_templates[$template]['result'] ); - break; - } - return true; - } - - /** - * returns a parsed Template - * - * If the template already has been parsed, it just returns the parsed template. - * If the template has not been loaded, it will be loaded. - * - * @access public - * @param string name of the template - * @return string Content of the parsed template - * @see displayParsedTemplate() - */ - function getParsedTemplate( $name = null ) - { - if ( is_null( $name ) ) - $name = $this->_root; - - $name = strtolower( $name ); - - $result = $this->parseTemplate( $name ); - - if ( patErrorManager::isError( $result ) ) - return $result; - - return $this->_templates[$name]['result']; - } - - /** - * displays a parsed Template - * - * If the template has not been loaded, it will be loaded. - * - * @see getParsedTemplate() - * @param string name of the template - * @return boolean true on success - * @access public - */ - function displayParsedTemplate( $name = null ) - { - $result = $this->getParsedTemplate( $name ); - - /** - * error happened - */ - if ( patErrorManager::isError( $result ) ) - return $result; - - $cnt = count( $this->_outputFilters ); - for ( $i = 0; $i < $cnt; $i++ ) - { - $result = $this->_outputFilters[$i]->apply( $result ); - } - - echo $result; - return true; - } - - /** - * parse a template and push the result into a variable of any other - * template - * - * If the template already has been parsed, it will just be pushed into the variable. - * If the template has not been loaded, it will be loaded. - * - * @access public - * @param string name of the template - * @return string Content of the parsed template - * @param boolean if set to true, the value will be appended to the value already stored. - * @see getParsedTemplate() - * @see addVar() - */ - function parseIntoVar( $srcTmpl, $destTmpl, $var, $append = false ) - { - $srcTmpl = strtolower( $srcTmpl ); - $destTmpl = strtolower( $destTmpl ); - $var = strtoupper($var); - - $result = $this->parseTemplate( $srcTmpl ); - - if ( patErrorManager::isError( $result ) ) - return $result; - - if ( $append !== true || !isset( $this->_vars[$destTmpl]['scalar'][$var] ) ) - $this->_vars[$destTmpl]['scalar'][$var] = ''; - - $this->_vars[$destTmpl]['scalar'][$var] .= $this->_templates[$srcTmpl]['result']; - - return true; - } - - /** - * clears a parsed Template - * - * Parsed Content, variables and the loop attribute are cleared - * - * If you will not be using this template anymore, then you should - * call freeTemplate() - * - * @access public - * @param string name of the template - * @param boolean set this to true to clear all child templates, too - * @see clearAllTemplates() - * @see freeTemplate() - */ - function clearTemplate( $name, $recursive = false ) - { - $name = strtolower( $name ); - $this->_templates[$name]['parsed'] = false; - $this->_templates[$name]['work'] = ''; - $this->_templates[$name]['iteration'] = 0; - $this->_templates[$name]['result'] = ''; - $this->_vars[$name] = array( - 'scalar' => array(), - 'rows' => array() - ); - if (!empty($this->_templates[$name]['defaultVars'])) { - foreach ($this->_templates[$name]['defaultVars'] as $varname => $value) { - $this->addVar($name, $varname, $value); - } - } - - /** - * clear child templates as well - */ - if ( $recursive === true ) - { - $deps = $this->_getDependencies( $name ); - foreach ( $deps as $dep ) - { - $this->clearTemplate( $dep, true ); - } - } - return true; - } - - /** - * clears all templates - * - * @access public - * @uses clearTemplate() - */ - function clearAllTemplates() - { - $templates = array_keys( $this->_templates ); - $cnt = count( $templates ); - for ( $i = 0; $i < $cnt; $i++ ) - { - $this->clearTemplate( $templates[$i] ); - } - return true; - } - - /** - * frees a template - * - * All memory consumed by the template - * will be freed. - * - * @access public - * @param string name of the template - * @param boolean clear dependencies of the template - * @see freeAllTemplates() - */ - function freeTemplate( $name, $recursive = false ) - { - $name = strtolower( $name ); - $key = array_search( $name, $this->_templateList ); - if ( $key === false ) - { - return patErrorManager::raiseWarning( - PATTEMPLATE_WARNING_NO_TEMPLATE, - "Template '$name' does not exist." - ); - } - - unset( $this->_templateList[$key] ); - $this->_templateList = array_values( $this->_templateList ); - - /** - * free child templates as well - */ - if ( $recursive === true ) - { - $deps = $this->_getDependencies( $name ); - foreach ( $deps as $dep ) - { - $this->freeTemplate( $dep, true ); - } - } - - unset( $this->_templates[$name] ); - unset( $this->_vars[$name] ); - - return true; - } - - /** - * frees all templates - * - * All memory consumed by the templates - * will be freed. - * - * @access public - * @see freeTemplate() - */ - function freeAllTemplates() - { - $this->_templates = array(); - $this->_vars = array(); - } - - /** - * get _all_ dependencies of a template, - * regardless of the subtemplates - * - * @access private - * @param string template name - * @return array list of all subtemplates - */ - function _getDependencies( $template ) - { - $deps = array(); - if ( isset( $this->_templates[$template]['dependencies'] ) ) - $deps = $this->_templates[$template]['dependencies']; - - if ( isset( $this->_templates[$template]['subtemplates'] ) ) - { - foreach ( $this->_templates[$template]['subtemplates'] as $sub ) - { - if ( isset( $sub['dependencies'] ) ) - $deps = array_merge( $deps, $sub['dependencies'] ); - } - } - $deps = array_unique( $deps ); - return $deps; - } - - /** - * Displays useful information about all or named templates - * - * This method breaks BC, as it now awaits an array instead of - * unlimited parameters. - * - * @param mixed array of templates that should be dumped, or null if you - * want all templates to be dumped - * @param string dumper - * @access public - */ - function dump( $restrict = null, $dumper = 'Html' ) - { - if ( is_string( $restrict ) ) - $restrict = array( $restrict ); - - $dumper = &$this->loadModule( 'Dump', $dumper ); - - if ( patErrorManager::isError( $dumper ) ) - { - return $dumper; - } - - if ( is_null( $restrict ) ) - { - $templates = $this->_templates; - $vars = $this->_vars; - } - else - { - $restrict = array_map( 'strtolower', $restrict ); - - $templates = array(); - $vars = array(); - - foreach ( $this->_templates as $name => $spec ) - { - if ( !in_array( $name, $restrict ) ) - continue; - $templates[$name] = $spec; - $vars[$name] = $this->_vars[$name]; - } - } - - $dumper->displayHeader(); - $dumper->dumpGlobals( $this->_globals ); - $dumper->dumpTemplates( $templates, $vars ); - $dumper->displayFooter(); - - return true; - } - - /** - * get the include path - * - * @access public - */ - function getIncludePath() - { - return PATTEMPLATE_INCLUDE_PATH; - } - - /** - * apply input filters that have been set - * - * This is being called by the readers. - * - * @access public - * @param string template - * @return string filtered templeta - */ - function applyInputFilters( $template ) - { - $cnt = count( $this->_inputFilters ); - for ( $i = 0; $i < $cnt; $i++ ) - { - $template = $this->_inputFilters[$i]->apply( $template ); - } - return $template; - } - - /** - * Convert the template to its string representation. - * - * This method allows you to just echo the patTemplate - * object in order to display the template. - * - * Requires PHP5 - * - * - * $tmpl = new patTemplate(); - * $tmpl->readTemplatesFromFile( 'myfile.tmpl' ); - * echo $tmpl; - * - * - * @access private - * @return string - */ - function __toString() - { - return $this->getParsedTemplate(); - } -} diff --git a/airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php b/airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php deleted file mode 100644 index 6a51e84fa3..0000000000 --- a/airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php +++ /dev/null @@ -1,909 +0,0 @@ -. - */ - -require_once 'HTML/QuickForm.php'; - -define('HTML_QUICKFORM_PROPEL_NO_COLUMNS', 2); -define('HTML_QUICKFORM_PROPEL_ALL_COLUMNS', 3); -define('HTML_QUICKFORM_PROPEL_COLUMN_MADE_VISIBLE', 4); -define('HTML_QUICKFORM_PROPEL_COLUMN_MADE_HIDDEN', 5); - -/* On large foreign table resultsets propel choked */ -# ini_set('memory_limit', '50M'); - -/** - * - * NOTE: HTML_QuickForm_Propel extends HTML_QuickForm, so all QuickForm functionality is available. - * - * A fictive example: - * - * $className = 'book'; - * $id = '7'; // existing item - * $id = null; // when no id is passed, it's assumed we are creating a new item - * - * $quickForm = new HTML_QuickForm_Propel($className, $id); // optionally pass it to the constructor - * $quickForm->setAction('/Bookstore/Form'); - * $quickForm->addElement('header', '', 'HTML_QuickForm_Propel'); - * $quickForm->setId($id); - * $quickForm->setClassName($className); - * $quickForm->setTarget('_self'); - * $quickForm->setMethod('post'); - * - * // use this to override the default behaviour for - * // foreign table select boxes, UserPeer::UNAME will be shown in the select list. - * // It defaults to the first string column in the foreign table. - * - * $quickForm->joinColumn(bookPeer::PUBLISHER_ID,UserPeer::UNAME); - * - * // default to all columns shown - * $quickForm->setColumnMode(HTML_QUICKFORM_PROPEL_ALL_COLUMNS); - * $quickForm->hideColumn('PASS'); - * - * // or default to no columns shown - * $quickForm->setColumnMode(HTML_QUICKFORM_PROPEL_NO_COLUMNS); - * $quickForm->showColumn('NAME'); // column name without table prefix. - * $quickForm->showColumn('UNAME'); - * $quickForm->showColumn('USER_INFO'); - * $quickForm->showColumn('EMAIL'); - * $quickForm->showColumn('FEMAIL'); - * $quickForm->showColumn('URL'); - * $quickForm->showColumn('PASS'); - * - * // generate the form - * $quickForm->build(); - * - * // after the form is build, it's possible to modify the generated elements - * $quickForm->getElement('NAME')->setSize(10); // manually tune this element - * - * if ($quickForm->validate()) { - * $quickForm->freeze(); - * - * // save the object we have editted - * $quickForm->save(); - * } else { - * $quickForm->toHtml(); // or any other QuickForm render option - * } - * - * TODO: map all creoleTypes to usefull formelements - * - * @author Rob Halff - * some improvements by Zoltan Nagy (sunshine@freemail.hu) - * @version $Rev: 1347 $ - * @copyright Copyright (c) 2005 Rob Halff: LGPL - See LICENCE - * @package propel.contrib - */ - -class HTML_QuickForm_Propel extends HTML_QuickForm { - - /** - * ID of the Propel Object. - * @var integer - * @access private - */ - private $id; - - /** - * Contains column visibility information. - * @var array - * @access private - */ - private $columnVisibility = array(); - - /** - * Contains titles of columns. - * @var array - * @access private - */ - private $columnTitle = array(); - - /** - * The Column visibility mode either. - * Possible values: - * - * HTML_QUICKFORM_PROPEL_ALL_COLUMNS - * HTML_QUICKFORM_PROPEL_NO_COLUMNS - * - * @var integer - * @access private - */ - private $columnMode; - - /** - * String containing the peerName. - * @var string - * @access private - */ - private $peerName; - - /** - * String containing the className of the propel Object. - * @var string - * @access private - */ - private $className; - - /** - * The Column objects. - * - * @var array - * @access private - */ - private $cols; - - /** - * The Object being operated on. - * @var object - * @access private - */ - private $obj; - - /** - * Seperator value. - * - * In case the option list will be build by multiple values - * This is the value these fields will be seperated with - * - * @var string - * @access private - */ - private $seperator = ' '; - - /** - * - * Not used yet. - * - * @var array - * @access private - */ - private $joinMap = array(); - - /** - * The default QuickForm rule type to use. - * Either server or client - * - * @var string - * @access private - */ - private $defaultRuleType = 'server'; - - - /** - * This is used in the QuickForm DateElement - * @var string - * @access private - */ - private $lang = 'en'; - - /** - * Rulemapping should cover all available propel rules - * - * @var array - * @access private - */ - private $ruleMapping = array( - 'mask'=>'regex', - 'maxLength'=>'maxlength', - 'minLength'=>'minlength', - 'maxValue'=>'maxvalue', - 'minValue'=>'minvalue', - 'required'=>'required', - 'validValues'=>'validvalues', - 'unique'=>'unique' - ); - - /** - * - * CreoleType to QuickForm element mapping - * - * @var array - * @access private - */ - private $typeMapping = array( - CreoleTypes::BOOLEAN =>'radio', - CreoleTypes::BIGINT =>'text', - CreoleTypes::SMALLINT =>'text', - CreoleTypes::TINYINT =>'text', - CreoleTypes::INTEGER =>'text', - CreoleTypes::NUMERIC =>'text', - CreoleTypes::DECIMAL =>'text', - CreoleTypes::REAL =>'text', - CreoleTypes::FLOAT =>'text', - CreoleTypes::DOUBLE =>'text', - CreoleTypes::CHAR =>'text', - CreoleTypes::VARCHAR =>'text', - CreoleTypes::LONGVARCHAR=>'textarea', - CreoleTypes::TEXT =>'textarea', - CreoleTypes::TIME =>'text', - CreoleTypes::TIMESTAMP =>'date', - CreoleTypes::DATE =>'date', - CreoleTypes::YEAR =>'text', - CreoleTypes::VARBINARY =>'text', - CreoleTypes::BLOB =>'text', - CreoleTypes::CLOB =>'text', - CreoleTypes::BINARY =>'text', - CreoleTypes::LONGVARBINARY=>'text', - CreoleTypes::ARR =>'text', - CreoleTypes::OTHER =>'text' - ); - - /** - * - * The Constructor - * - * Classname and id are specific to HTML_QuickForm_Propel - * - * The other parameters are needed to construct the parent QuickForm Class. - * - * @param string className - * @param string id - * @param string formName - * @param string method - * @param string action - * @param string target - * @param array attributes - * @param boolean trackSubmit - * - */ - public function __construct($className = null, $id = null, $formName='HTML_QuickForm_Propel', $method='post', $action='', $target='_self', $attributes=null, $trackSubmit = false) - { - $this->setClassName($className); - $this->setPeerName($className.'Peer'); // Is this always true ? - $this->setId($id); - parent::HTML_QuickForm($formName, $method, $action, $target, $attributes, $trackSubmit); - - // set the default column policy - $this->setColumnMode(HTML_QUICKFORM_PROPEL_ALL_COLUMNS); - } - - /** - * - * NOT IMPLEMENTED - * - * Allows for creating complex forms. - * Note that limit 1 will always be added to the criteria. - * Because we can only edit one record/row at a time. - * - * However we will be able to join tables in complex ways. - * - * @param Criteria - * - */ - public function setCriteria(Criteria $c) - { - $c->setLimit(1); - $this->criteria = $c; - } - - /** - * - * Set the action of this form - * - * @param string action - * - */ - public function setAction($action) - { - $attributes = array('action'=>$action); - $this->updateAttributes($attributes); - } - - /** - * - * Set method of this form, e.g. post or get - * - * @param string method - * - */ - public function setMethod($method) - { - $attributes = array('method'=>$method); - $this->updateAttributes($attributes); - } - - /** - * - * Set the target of this form - * - * @param string target - * - */ - public function setTarget($target) - { - $attributes = array('target'=>$target); - $this->updateAttributes($attributes); - } - - /** - * - * Set the id of the object we need to get - * - * @param string id - * - */ - public function setId($id) - { - $this->id = $id; - } - - /** - * - * Set the class - * - * @param string className - * - */ - public function setClassName($className) - { - $this->className = $className; - } - - /** - * - * Get the class name - * - * @return string className - * - */ - public function getClassName() - { - return $this->className; - } - - private function setPeerName($peerName) - { - $this->peerName = $peerName; - } - - /** - * - * Get the peer name - * - * @return string peerName - * - */ - public function getPeerName() - { - return $this->peerName; - } - - /** - * Build the form - * - * @return void - * - */ - public function build() - { - - if (!class_exists($this->peerName)) { - // some autoloading, dunno if it should belong here. - // or in the users autoload function - //$dbMap = call_user_func(array($this->peerName, 'getMapBuilder')); - // TODO: implement this. - } - - if (empty($this->id)) { - // create empty instance of this class - $this->obj = new $this->className(); - } else { - // find the object. - if (!$this->obj = call_user_func(array($this->peerName, 'retrieveByPK'), $this->id)) { - // for help me god.. what to do ? - throw new PropelException("HTML_QuickForm_Propel::build(): $this->peerName::retrieveByPK($this->id) failed."); - } - - } - - // note: getTableMap is protected by default. - // so do this handstand to get the tableMap - $mapBuilder = call_user_func(array($this->peerName, 'getMapBuilder')); - - // Note: $dbMap is re-used below to determine foreign table - $dbMap = $mapBuilder->getDatabaseMap(); - - // Get the column names for this table. - $this->cols = $dbMap->getTable(constant("$this->peerName::TABLE_NAME"))->getColumns(); - - // Do it the HTML_QuickForm way and use defaultValues - // instead of setValue() on every element. - // we have to first loop through the columns - foreach ($this->cols as $colName=>$col) { - - - $elementType = $this->typeMapping[$col->getCreoleType()]; - - if ($elementType == 'date') { - // null returns timestamp - $value = $this->obj->{'get'.$col->getPhpName()}(null); - } else { - - $value = $this->obj->{'get'.$col->getPhpName()}(); - - } - - $defaultValues[$colName] = $value; - } - - $this->setDefaults($defaultValues); - - foreach ($this->cols as $colName=>$col) { - - if ($this->isColumnHidden($colName)) { - continue; - } - - if ($col->isPrimaryKey()) { - // create a hidden field with primary key - if (!$this->checkColumn($colName, HTML_QUICKFORM_PROPEL_COLUMN_MADE_VISIBLE)) { - $this->addElement('hidden', $col->getColumnName(), $col->getColumnName()); - continue; - } - } - - // element's title - $colTitle = $this->getColumnTitle($colName); - - if ($col->isForeignKey()) { - - // TODO: check if user created an optional method for populating the select form - // this populating of the select box is just some way to show joined items in a form. - // it could also be checkboxes, radio buttons or whatever kind of widget. - - $relatedTable = $dbMap->getTable($col->getRelatedTableName()); - $relatedCols = $relatedTable->getColumns(); - $relatedPeer = $relatedTable->getPhpName().'Peer'; - - if (is_callable($relatedPeer, 'doSelect')) { - - - // TODO: allow set this criteria. - $c = new Criteria; - - $relatedList = call_user_func(array($relatedPeer,'doSelect'), $c); - - $colConstant = constant($this->peerName.'::'.$colName); - //$relatedColConstant = constant($relatedPeer.'::'.$relatedCol->getColumnName()); - $relatedGetter = 'getPrimaryKey'; - - - // TODO: this needs to be array based, to support multiple foreign columns - if (isset($this->joinMap[$colConstant])) { - // translate to getter - $relatedColConstant = $this->joinMap[$colConstant]; - if (!$relatedTable->containsColumn($relatedColConstant)) { - // throw exception, there is no such column - throw new PropelException('HTML_QuickForm_Propel::build(): there is no column named '.$relatedTable->normalizeColName($relatedConstant).'in '.$relatedTable->getTableName().' while trying to build the select list'); - } - $nameColumn = $relatedTable->getColumn($relatedColConstant); - $relatedGetter = 'get'.$nameColumn->getPhpName(); - } else { - //auto detection - // determine the first string column - foreach ($relatedCols as $relatedCol) { - if ($relatedCol->getType() == 'string') { - $relatedGetter = 'get'.$relatedCol->getPhpName(); - break; - } - } - } - - - $selectList = array(); - - // TODO: not hardcoded here. - $selectList[null] = _('Please selection an option'); - - foreach ($relatedList as $relObj) { - $key = $relObj->getPrimaryKey(); - - if (false OR $yesWannaUseEntireObjectsToUseItInTemplate) { - // TODO: IMPLEMENT THIS. - $selectList[$key] = $relObj; - } elseif (false OR $forceSomeKindOfColumnToBeDisplayed) { - // TODO: IMPLEMENT THIS. - } else { - $selectList[$key] = $relObj->{$relatedGetter}(); - } - } - - if (count($selectList) > 1) { // value of 1 depends on select message being set. - $select =& $this->addElement('select', $colName, $colTitle, $selectList); - } else { - // what to do if no records exists in the foreign table ? - $this->addElement('static', $colName, $colTitle, _('No Records')); - } - - } - - // do some recursion ? - - } else { - - //TODO: the mapping is not so generic anymore (to many exceptions) - $elementType = $this->typeMapping[$col->getCreoleType()]; - - if ($col->getCreoleType() == CreoleTypes::BOOLEAN) { - // TODO: describe how to override these options. - $radio = array(); - $radio[] = HTML_QuickForm::createElement('radio', null, null, 'Yes', true); - $radio[] = HTML_QuickForm::createElement('radio', null, null, 'No', false); - $el = $this->addGroup($radio, $colName, $colName); - - - } else { - - $el = $this->addElement( - $elementType, - $colName, - $colTitle); - - if ($elementType == 'text') { - $el->setMaxLength($col->getSize()); - } - - if ($col->getCreoleType() == CreoleTypes::TIMESTAMP) { - - /* Option Info: - var $_options = array( - 'language' => 'en', - 'format' => 'dMY', - 'minYear' => 2001, - 'maxYear' => 2010, - 'addEmptyOption' => false, - 'emptyOptionValue' => '', - 'emptyOptionText' => ' ', - 'optionIncrement' => array('i' => 1, 's' => 1) - ); - */ - - // hmm, don't like it but there seems to be no public method - // to set an option afterwards - $el->_options['language'] = $this->lang; - // TODO: is the format always the same in propel ? - $el->_options['format'] = 'Y-F-d H:i:s'; - - } - - } - // add an html id to the element - $this->addElementId($el, $colName); - - //$el->setValue($value); - - // required rule for NOT NULL columns - if ($col->isNotNull()) { - // TODO: What error message should we use? - $this->addRule($colName, - $this->getColumnTitle($colName) . ' is required', - 'required'); - } - - if ($col->hasValidators()) { - - foreach ($col->getValidators() as $validatorMap) { - - $this->addRule($colName, - $validatorMap->getMessage(), - $this->ruleMapping[$validatorMap->getName()], - $validatorMap->getValue(), - $this->defaultRuleType - ); - - } - } - - } - } - - // should HTML_QuickForm_Propel add this ? - $this->addElement('submit', 'submit', 'Submit'); - - // do this for the developer, can't think of any case where this is unwanted. - $this->applyFilter('__ALL__', 'trim'); - - } - - /** - * - * Use it to change the locale used for the Date element - * - * @param string locale - * @return void - * - */ - public function setLang($lang) - { - $this->lang = $lang; - } - - /** - * - * Save the form. - * - * @return void - * - */ - public function save() - { - $this->copyToObj(); - $this->obj->save(); - } - - /** - * - * Copy form values to Obj. - * - * @return void - * - */ - public function copyToObj() - { - // TODO: check what process does, if we leave out anything important. - - if (!isset($this->cols)) { - // throw some error, form cannot be saved before it is build. - throw new PropelException('HTML_QuickForm_Propel::save(): form cannot be saved before it is build.'); - } - - foreach ($this->cols as $colName=>$col) { - - // Has the form got this element? - if ($this->isColumnHidden($colName)) - { - continue; - } - - $value = $this->getElementValue($colName); - if ($value instanceof HTML_QuickForm_Error) - { - // TODO: What should we do if an error has occured? - continue; - } - $elementType = $this->typeMapping[$col->getCreoleType()]; - - // quickform doesn't seem to give back a timestamp, so calculate the date manually. - if ($elementType == 'date') { - - $date = array( - 'D' => null, - 'l' => null, - 'd' => null, - 'M' => null, - 'm' => null, - 'F' => null, - 'Y' => null, - 'y' => null, - 'h' => null, - 'H' => null, - 'i' => null, - 's' => null, - 'a' => null, - 'A' => null - ); - - foreach ($value as $key=>$val) { - $date[$key] = $val[0]; - - } - - $value = mktime($date['h'], $date['m'], $date['s'], $date['M'], $date['d'], $date['Y']); - } - - $this->obj->{'set'.$col->getPhpName()}($value); - } - } - - /** - * - * Get the object we are operating on. - * - * @return object a propel object - * - */ - public function getObj() - { - return $this->obj; - } - - /** - * What to do if a delete button is added - * and the user clicks on it, after the object has been delete in save() - */ - public function onDelete() - { - - - } - - public function createDeleteButton() - { - return $this->addElement('submit', 'delete', 'Delete'); - } - - public function isColumnHidden($column) - { - if ($this->checkColumn($column, HTML_QUICKFORM_PROPEL_COLUMN_MADE_HIDDEN) && $this->columnMode == HTML_QUICKFORM_PROPEL_ALL_COLUMNS) { - return true; - } - - if (!$this->checkColumn($column, HTML_QUICKFORM_PROPEL_COLUMN_MADE_VISIBLE) && $this->columnMode == HTML_QUICKFORM_PROPEL_NO_COLUMNS) { - return true; - } - - return false; - } - - private function checkColumn($column, $state) - { - if (isset($this->columnVisibility[$column])) { - return ($this->columnVisibility[$column] == $state); - } else { - return false; - } - } - - /** - * - * Sets the default visibility mode - * - * This must be either: - * HTML_QUICKFORM_PROPEL_NO_COLUMNS or - * HTML_QUICKFORM_PROPEL_ALL_COLUMNS - * - * @param string $column column name - * @return void - * - */ - public function setColumnMode($mode) - { - - if ($mode != HTML_QUICKFORM_PROPEL_NO_COLUMNS && $mode != HTML_QUICKFORM_PROPEL_ALL_COLUMNS) { - - throw new PropelException('HTML_QuickForm_Propel::setColumnMode(): invalid mode passed.'); - - } - - $this->columnMode = $mode; - } - - /** - * - * Tell HTML_QuickForm_Propel it should hide this column - * It is now passed like ID instead of somePeer::ID - * The latter is better, but the array_keys of the columns are in ID format and not somePeer::ID - * - * @param string $column column name - * @return void - * - */ - - public function hideColumn($column) - { - $this->columnVisibility[$column] = HTML_QUICKFORM_PROPEL_COLUMN_MADE_HIDDEN; - } - - /** - * - * Tell HTML_QuickForm_Propel it should show this column - * - * It is now passed like ID instead of somePeer::ID - * The latter is better, but the array_keys of the columns are in ID format and not somePeer::ID - * - * @param string $column column name - * @param string $title Title for the column, not required - * @return void - */ - public function showColumn($column, $title = NULL) - { - $this->columnVisibility[$column] = HTML_QUICKFORM_PROPEL_COLUMN_MADE_VISIBLE; - if ($title !== NULL) - { - $this->setColumnTitle($column, $title); - } - } - - /** - * - * assign a title to the column - * - * @param string $column - * @param string $title - * @return void - */ - public function setColumnTitle($column, $title) - { - $this->columnTitles[$column] = $title; - } - - /** - * - * returns column's title - * - * @param string $column - * @return void - */ - public function getColumnTitle($column) - { - // TODO: check if $column exists - return (array_key_exists($column, $this->columnTitles)) - ? $this->columnTitles[$column] - : $column; - } - - /** - * - * Try to automatically join all relatedTables. - * NOT IMPLEMENTED - * - * @param boolean $bool - * @return void - */ - public function autoJoin($bool) - { - $this->autoJoin = $bool; - } - - /** - * Override this if you don't like the (strtolower) default - * - * @param HTML_QuickForm_Element $el - * @param string $colName - * @return void - */ - protected function addElementId($el, $colName) - { - $el->updateAttributes(array('id'=>strtolower($colName))); - } - - /** - * - * Set the default rule typef - * @param string $type - * @return void - * - */ - public function setDefaultRuleType($type) - { - $this->defaultRuleType = $type; - } - - /** - * - * UNFINISHED - * - * Probably it would be nice to be able to add this to the schema xml - * - * TODO: further implement multiple columns for the select list - * - * @var colName constant - * @var foreignColName mixed (constant/array of columnName constants) - * @var $seperator string Only used if foreignColName is an array - */ - - public function joinColumn($colName, $foreignColName, $seperator = null) - { - if (isset($seperator)) { - $this->seperator = $seperator; - } - $this->joinMap[$colName] = $foreignColName; - } - -} diff --git a/airtime_mvc/library/propel/contrib/pear/Structures_DataGrid_Propel/Propel.php b/airtime_mvc/library/propel/contrib/pear/Structures_DataGrid_Propel/Propel.php deleted file mode 100644 index fcbf8afee9..0000000000 --- a/airtime_mvc/library/propel/contrib/pear/Structures_DataGrid_Propel/Propel.php +++ /dev/null @@ -1,352 +0,0 @@ -. - */ - -require_once 'Structures/DataGrid.php'; - -define('STRUCTURES_DATAGRID_PROPEL_NO_COLUMNS', 2); -define('STRUCTURES_DATAGRID_PROPEL_ALL_COLUMNS', 3); -define('STRUCTURES_DATAGRID_PROPEL_COLUMN_MADE_VISIBLE', 4); -define('STRUCTURES_DATAGRID_PROPEL_COLUMN_MADE_HIDDEN', 5); - -/** - * - * NOTE: Structures_DataGrid_Propel extends Structures_DataGrid, so all Datagrid functionality is available. - * - * A fictive example: - * // Propel and Propel project classes must be in the include_path - * - * // Propel Class name : Report - * $dg =& new Structures_DataGrid_Propel('Report'); - * - * // limit to 10 rows - * $c = new Criteria(); - * $c->setLimit(10); - * $dg->setCriteria($c); - * - * // choose what columns must be displayed - * $dg->setColumnMode(STRUCTURES_DATAGRID_PROPEL_NO_COLUMNS); - * $dg->showColumn('ACTIVE'); - * $dg->showColumn('TITLE'); - * $dg->showColumn('ID'); - * - * // generate the datagrid - * $dg->build(); - * - * // add two columns to edit the row and checkbox for further operations - * $dg->addColumn(new Structures_DataGrid_Column('', null, null, array('width' => '4%'), null, 'printEditLink()')); - * $dg->addColumn(new Structures_DataGrid_Column('', null, null, array('width' => '1%'), null, 'printCheckbox()')); - * - * // Display the datagrid - * $dg->render(); - * - * @author Marc - * @version $Rev: 1347 $ - * @copyright Copyright (c) 2005 Marc: LGPL - See LICENCE - * @package propel.contrib - */ - -class Structures_DataGrid_Propel extends Structures_DataGrid { - - /** - * Contains column visibility information. - * @var array - * @access private - */ - private $columnVisibility = array(); - - /** - * The Column visibility mode. - * Possible values: - * - * STRUCTURES_DATAGRID_PROPEL_ALL_COLUMNS - * STRUCTURES_DATAGRID_PROPEL_NO_COLUMNS - * - * @var integer - * @access private - */ - private $columnMode; - - /** - * String containing the peerName. - * @var string - * @access private - */ - private $peerName; - - /** - * String containing the className of the propel Object. - * @var string - * @access private - */ - private $className; - - /** - * Criteria of the Select query. - * @var criteria - * @access private - */ - private $criteria; - - /** - * List of primary keys - * @var array - * @access public - */ - public $primaryKeys; - - /** - * - * The Constructor - * - * Classname is specific to Structures_Datagrid_Propel - * - * The other parameters are needed to construct the parent Structures_DataGrid Class. - * - * @param string className - * @param string limit - * @param string render - * - */ - public function __construct($className = null, $limit = null, $render = DATAGRID_RENDER_HTML_TABLE) - { - - include_once $className.'.php'; - include_once $className.'Peer'.'.php'; - - $this->setClassName($className); - $this->setPeerName($className.'Peer'); // Is this always true ? - parent::Structures_DataGrid($limit,null,$render); - - // set the default column policy - $this->setColumnMode(STRUCTURES_DATAGRID_PROPEL_ALL_COLUMNS); - $this->criteria = new Criteria(); - } - - /** - * - * Set the criteria for select query - * - * @param Criteria c - * - */ - public function setCriteria(Criteria $c) - { - $this->criteria = $c; - } - - /** - * - * Set the class - * - * @param string className - * - */ - public function setClassName($className) - { - $this->className = $className; - } - - /** - * - * Get the class name - * - * @return string className - * - */ - public function getClassName() - { - return $this->className; - } - - private function setPeerName($peerName) - { - $this->peerName = $peerName; - } - - /** - * - * Get the peer name - * - * @return string peerName - * - */ - public function getPeerName() - { - return $this->peerName; - } - - /** - * - * Get the visibility of a column - * - * @return boolean true if column is set to hidden - * - */ - public function isColumnHidden($column) - { - if ($this->checkColumn($column, STRUCTURES_DATAGRID_PROPEL_COLUMN_MADE_HIDDEN) && $this->columnMode == STRUCTURES_DATAGRID_PROPEL_ALL_COLUMNS) { - return true; - } - - if (!$this->checkColumn($column, STRUCTURES_DATAGRID_PROPEL_COLUMN_MADE_VISIBLE) && $this->columnMode == STRUCTURES_DATAGRID_PROPEL_NO_COLUMNS) { - return true; - } - - return false; - } - - /** - * - * Check the state of a column - * - * @return boolean true if column is set to state - * - */ - private function checkColumn($column, $state) - { - if (isset($this->columnVisibility[$column])) { - return ($this->columnVisibility[$column] == $state); - } else { - return false; - } - } - - /** - * - * Sets the default visibility mode - * - * This must be either: - * STRUCTURES_DATAGRID_PROPEL_NO_COLUMNS or - * STRUCTURES_DATAGRID_PROPEL_ALL_COLUMNS - * - * @param string $column column name - * @return void - * - */ - public function setColumnMode($mode) - { - - if ($mode != STRUCTURES_DATAGRID_PROPEL_NO_COLUMNS && $mode != STRUCTURES_DATAGRID_PROPEL_ALL_COLUMNS) { - throw new PropelException('STRUCTURES_DATAGRID_PROPEL::setColumnMode(): invalid mode passed.'); - } - - $this->columnMode = $mode; - } - - /** - * - * Tell Structures_Datagrid_Propel it should hide this column - * It is now passed like ID instead of somePeer::ID - * The latter is better, but the array_keys of the columns are - * in ID format and not somePeer::ID - * - * @param string $column column name - * @return void - * - */ - public function hideColumn($column) - { - $this->columnVisibility[$column] = STRUCTURES_DATAGRID_PROPEL_COLUMN_MADE_HIDDEN; - } - - /** - * - * Tell Structures_Datagrid_Propel it should show this column - * - * It is now passed like ID instead of somePeer::ID - * The latter is better, but the array_keys of the columns are in ID format and not somePeer::ID - * - * @param string $column column name - * @return void - */ - public function showColumn($column) - { - $this->columnVisibility[$column] = STRUCTURES_DATAGRID_PROPEL_COLUMN_MADE_VISIBLE; - } - - /** - * - * Build the datagrid - * - * @return void - */ - public function build() - { - $mapBuilder = call_user_func(array($this->getPeerName(), 'getMapBuilder')); - $dbMap = $mapBuilder->getDatabaseMap(); - $cols = $dbMap->getTable(constant($this->getPeerName()."::TABLE_NAME"))->getColumns(); - $stmt = call_user_func(array( $this->getPeerName(), 'doSelectStmt'), $this->criteria); - - $dataset = array(); - $columns = array(); - $this->primaryKeys = array(); - $class = $this->getClassName(); - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { // use Creole ResultSet methods to iterate over resultset - $obj = new $class(); - $obj->hydrate($row); - - $row = array(); - foreach ($cols as $tmp_id => $col) - { - // save the PK in an array - if ($col->isPrimaryKey()) { - $this->primaryKeys[$col->getColumnName()] = $col->getColumnName(); - } - - $value = $obj->{'get'.$col->getPhpName()}(null); - // save the row value - - $row[$col->getColumnName()] = $value; - // save the list of propel header column name - $columns[$col->getColumnName()] = $col->getColumnName(); - - } - // add the row to dataset - $dataset[] = $row; - } - - $this->bind($dataset); - - if ($this->columnMode == STRUCTURES_DATAGRID_PROPEL_ALL_COLUMNS) { - foreach ($columns as $tmp_id => $column) { - - if (!$this->isColumnHidden($column)) { - - $this->addColumn(new Structures_DataGrid_Column($column, $column, $column, null)); - } - } - } else { - - foreach ($this->columnVisibility as $column => $visibility) { - - if (!$this->isColumnHidden($column)) { - $this->addColumn(new Structures_DataGrid_Column($column, $column, $column, null)); - } - } - } - - $this->renderer->setTableHeaderAttributes(array('class' => 'title')); - $this->renderer->setTableAttribute('class', 'list'); - $this->renderer->sortIconASC = '?'; - $this->renderer->sortIconDESC = '?'; - } - -} diff --git a/airtime_mvc/library/propel/docs/behavior/aggregate_column.txt b/airtime_mvc/library/propel/docs/behavior/aggregate_column.txt deleted file mode 100644 index e071425a72..0000000000 --- a/airtime_mvc/library/propel/docs/behavior/aggregate_column.txt +++ /dev/null @@ -1,130 +0,0 @@ -= Aggregate Column Behavior = - -The `aggregate_column` behavior keeps a column updated using an aggregate function executed on a related table. - -== Basic Usage == - -In the `schema.xml`, use the `` tag to add the `aggregate_column` behavior to a table. You must provide parameters for the aggregate column `name`, the foreign table name, and the aggegate `expression`. For instance, to add an aggregate column keeping the comment count in a `post` table: - -{{{ -#!xml - - - - - - - - -
- - - - - - -
-}}} - -Rebuild your model, and insert the table creation sql again. The model now has an additional `nb_comments` column, of type `integer` by default. And each time an record from the foreign table is added, modified, or removed, the aggregate column is updated: - -{{{ -#!php -setTitle('How Is Life On Earth?'); -$post->save(); -echo $post->getNbComments(); // 0 -$comment1 = new Comment(); -$comment1->setPost($post); -$comment1->save(); -echo $post->getNbComments(); // 1 -$comment2 = new Comment(); -$comment2->setPost($post); -$comment2->save(); -echo $post->getNbComments(); // 2 -$comment2->delete(); -echo $post->getNbComments(); // 1 -}}} - -The aggregate column is also kept up to date when related records get modified through a Query object: - -{{{ -#!php -filterByPost($post) - ->delete(): -echo $post->getNbComments(); // 0 -}}} - -== Customizing The Aggregate Calculation == - -Any aggregate function can be used on any of the foreign columns. For instance, you can use the `aggregate_column` behavior to keep the latest update date of the related comments, or the total votes on the comments. You can even keep several aggregate columns in a single table: - -{{{ -#!xml - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
-}}} - -The behavior adds a `computeXXX()` method to the `Post` class to compute the value of the aggregate function. This method, called each time records are modified in the related `comment` table, is the translation of the behavior settings into a SQL query: - -{{{ -#!php -prepare('SELECT COUNT(id) FROM `comment` WHERE comment.POST_ID = :p1'); - $stmt->bindValue(':p1', $this->getId()); - $stmt->execute(); - return $stmt->fetchColumn(); -} -}}} - -You can override this method in the model class to customize the aggregate column calculation. - -== Customizing The Aggregate Column == - -By default, the behavior adds one columns to the model. If this column is already described in the schema, the behavior detects it and doesn't add it a second time. This can be useful if you need to use a custom `type` or `phpName` for the aggregate column: - -{{{ -#!xml - - - - - - - - - -
-}}} diff --git a/airtime_mvc/library/propel/docs/behavior/alternative_coding_standards.txt b/airtime_mvc/library/propel/docs/behavior/alternative_coding_standards.txt deleted file mode 100644 index bc7462357e..0000000000 --- a/airtime_mvc/library/propel/docs/behavior/alternative_coding_standards.txt +++ /dev/null @@ -1,89 +0,0 @@ -= Alternative Coding Standards Behavior = - -The `alternative_coding_standards` behavior changes the coding standards of the model classes generated by Propel to match your own coding style. - -== Basic Usage == - -In the `schema.xml`, use the `` tag to add the `alternative_coding_standards` behavior to a table: -{{{ -#!xml - - - - -
-}}} - -Rebuild your model, and you're ready to go. The code of the model classes now uses an alternative set of coding standards: - -{{{ -#!php -title !== $v) - { - $this->title = $v; - $this->modifiedColumns[] = BookPeer::TITLE; - } - - return $this; - } - -// instead of - - /** - * Set the value of [title] column. - * - * @param string $v new value - * @return Table4 The current object (for fluent API support) - */ - public function setTitle($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->title !== $v) { - $this->title = $v; - $this->modifiedColumns[] = BookPeer::TITLE; - } - - return $this; - } // setTitle() -}}} - -The behavior replaces tabulations by whitespace (2 spaces by default), places opening brackets on newlines, removes closing brackets comments, and can even strip every comments in the generated classes if you wish. - -== Parameters == - -Each of the new coding style rules has corresponding parameter in the behavior description. Here is the default configuration: - -{{{ -#!xml - - - - - - - - - - -
-}}} - -You can change these settings to better match your own coding styles. diff --git a/airtime_mvc/library/propel/docs/behavior/auto_add_pk.txt b/airtime_mvc/library/propel/docs/behavior/auto_add_pk.txt deleted file mode 100644 index 214ddf0207..0000000000 --- a/airtime_mvc/library/propel/docs/behavior/auto_add_pk.txt +++ /dev/null @@ -1,73 +0,0 @@ -= AutoAddPk Behavior = - -The `auto_add_pk` behavior adds a primary key columns to the tables that don't have one. Using this behavior allows you to omit the declaration of primary keys in your tables. - -== Basic Usage == - -In the `schema.xml`, use the `` tag to add the `auto_add_pk` behavior to a table: -{{{ -#!xml - - - -
-}}} - -Rebuild your model, and insert the table creation sql. You will notice that the `book` table has two columns and not just one. The behavior added an `id` column, of type integer and autoincremented. This column can be used as any other column: - -{{{ -#!php -setTitle('War And Peace'); -$b->save(); -echo $b->getId(); // 1 -}}} - -This behavior is more powerful if you add it to the database instead of a table. That way, it will alter all tables not defining a primary key column - and leave the others unchanged. - -{{{ -#!xml - - - - -
-
-}}} - -You can even enable it for all your database by adding it to the default behaviors in your `build.properties` file: - -{{{ -#!ini -propel.behavior.default = auto_add_pk -}}} - -== Parameters == - -By default, the behavior adds a column named `id` to the table if the table has no primary key. You can customize all the attributes of the added column by setting corresponding parameters in the behavior definition: - -{{{ -#!xml - - - - - - - -
-
-}}} - -Once you regenerate your model, the column is now named differently: - -{{{ -#!php -setTitle('War And Peace'); -$b->setIdentifier(1); -$b->save(); -echo $b->getIdentifier(); // 1 -}}} diff --git a/airtime_mvc/library/propel/docs/behavior/nested_set.txt b/airtime_mvc/library/propel/docs/behavior/nested_set.txt deleted file mode 100644 index ad0f45077a..0000000000 --- a/airtime_mvc/library/propel/docs/behavior/nested_set.txt +++ /dev/null @@ -1,370 +0,0 @@ -= NestedSet Behavior = - -The `nested_set` behavior allows a model to become a tree structure, and provides numerous methods to traverse the tree in an efficient way. - -Many applications need to store hierarchical data in the model. For instance, a forum stores a tree of messages for each discussion. A CMS sees sections and subsections as a navigation tree. In a business organization chart, each person is a leaf of the organization tree. [http://en.wikipedia.org/wiki/Nested_set_model Nested sets] are the best way to store such hierachical data in a relational database and manipulate it. The name "nested sets" describes the algorithm used to store the position of a model in the tree ; it is also known as "modified preorder tree traversal". - -== Basic Usage == - -In the `schema.xml`, use the `` tag to add the `nested_set` behavior to a table: -{{{ -#!xml - - - - -
-}}} - -Rebuild your model, insert the table creation sql again, and you're ready to go. The model now has the ability to be inserted into a tree structure, as follows: - -{{{ -#!php -setTitle('Home'); -$s1->makeRoot(); // make this node the root of the tree -$s1->save(); -$s2 = new Section(); -$s2->setTitle('World'); -$s2->insertAsFirstChildOf($s1); // insert the node in the tree -$s2->save(); -$s3 = new Section(); -$s3->setTitle('Europe'); -$s3->insertAsFirstChildOf($s2); // insert the node in the tree -$s3->save() -$s4 = new Section(); -$s4->setTitle('Business'); -$s4->insertAsNextSiblingOf($s2); // insert the node in the tree -$s4->save(); -/* The sections are now stored in the database as a tree: - $s1:Home - | \ -$s2:World $s4:Business - | -$s3:Europe -*/ -}}} - -You can continue to insert new nodes as children or siblings of existing nodes, using any of the `insertAsFirstChildOf()`, `insertAsLastChildOf()`, `insertAsPrevSiblingOf()`, and `insertAsNextSiblingOf()` methods. - -Once you have built a tree, you can traverse it using any of the numerous methods the `nested_set` behavior adds to the query and model objects. For instance: - -{{{ -#!php -findRoot(); // $s1 -$worldNode = $rootNode->getFirstChild(); // $s2 -$businessNode = $worldNode->getNextSibling(); // $s4 -$firstLevelSections = $rootNode->getChildren(); // array($s2, $s4) -$allSections = $rootNode->getDescendants(); // array($s2, $s3, $s4) -// you can also chain the methods -$europeNode = $rootNode->getLastChild()->getPrevSibling()->getFirstChild(); // $s3 -$path = $europeNode->getAncestors(); // array($s1, $s2) -}}} - -The nodes returned by these methods are regular Propel model objects, with access to the properties and related models. The `nested_set` behavior also adds inspection methods to nodes: - -{{{ -#!php -isRoot(); // false -echo $s2->isLeaf(); // false -echo $s2->getLevel(); // 1 -echo $s2->hasChildren(); // true -echo $s2->countChildren(); // 1 -echo $s2->hasSiblings(); // true -}}} - -Each of the traversal and inspection methods result in a single database query, whatever the position of the node in the tree. This is because the information about the node position in the tree is stored in three columns of the model, named `tree_left`, `tree_left`, and `tree_level`. The value given to these columns is determined by the nested set algorithm, and it makes read queries much more effective than trees using a simple `parent_id` foreign key. - -== Manipulating Nodes == - -You can move a node - and its subtree - across the tree using any of the `moveToFirstChildOf()`, `moveToLastChildOf()`, `moveToPrevSiblingOf()`, and `moveToLastSiblingOf()` methods. These operations are immediate and don't require that you save the model afterwards: - -{{{ -#!php -moveToFirstChildOf($s4); -/* The tree is modified as follows: -$s1:Home - | -$s4:Business - | -$s2:World - | -$s3:Europe -*/ -// now move the "Europe" section directly under root, after "Business" -$s2->moveToFirstChildOf($s4); -/* The tree is modified as follows: - $s1:Home - | \ -$s4:Business $s3:Europe - | -$s2:World -*/ -}}} - -You can delete the descendants of a node using `deleteDescendants()`: - -{{{ -#!php -deleteDescendants($s4); -/* The tree is modified as follows: - $s1:Home - | \ -$s4:Business $s3:Europe -*/ -}}} - -If you `delete()` a node, all its descendants are deleted in cascade. To avoid accidental deletion of an entire tree, calling `delete()` on a root node throws an exception. Use the `delete()` Query method instead to delete an entire tree. - -== Filtering Results == - -The `nested_set` behavior adds numerous methods to the generated Query object. You can use these methods to build more complex queries. For instance, to get all the children of the root node ordered by title, build a Query as follows: - -{{{ -#!php -childrenOf($rootNode) - ->orderByTitle() - ->find(); -}}} - -Alternatively, if you already have an existing query method, you can pass it to the model object's methods to filter the results: - -{{{ -#!php -orderByTitle(); -$children = $rootNode->getChildren($orderQuery); -}}} - -== Multiple Trees == - -When you need to store several trees for a single model - for instance, several threads of posts in a forum - use a ''scope'' for each tree. This requires that you enable scope tree support in the behavior definition by setting the `use_scope` parameter to `true`: - -{{{ -#!xml - - - - - - - - - - -
-}}} - -Now, after rebuilding your model, you can have as many trees as required: - -{{{ -#!php -findPk(123); -$firstPost = PostQuery::create()->findRoot($thread->getId()); // first message of the discussion -$discussion = PostQuery::create()->findTree(thread->getId()); // all messages of the discussion -PostQuery::create()->inTree($thread->getId())->delete(); // delete an entire discussion -$firstPostOfEveryDiscussion = PostQuery::create()->findRoots(); -}}} - -== Using a RecursiveIterator == - -An alternative way to browse a tree structure extensively is to use a [http://php.net/RecursiveIterator RecursiveIterator]. The `nested_set` behavior provides an easy way to retrieve such an iterator from a node, and to parse the entire branch in a single iteration. - -For instance, to display an entire tree structure, you can use the following code: - -{{{ -#!php -findRoot(); -foreach ($root->getIterator() as $node) { - echo str_repeat(' ', $node->getLevel()) . $node->getTitle() . "\n"; -} -}}} - -The iterator parses the tree in a recursive way by retrieving the children of every node. This can be quite effective on very large trees, since the iterator hydrates only a few objects at a time. - -Beware, though, that the iterator executes many queries to parse a tree. On smaller trees, prefer the `getBranch()` method to execute only one query, and hydrate all records at once: - -{{{ -#!php -findRoot(); -foreach ($root->getBranch() as $node) { - echo str_repeat(' ', $node->getLevel()) . $node->getTitle() . "\n"; -} -}}} - -== Parameters == - -By default, the behavior adds three columns to the model - four if you use the scope feature. You can use custom names for the nested sets columns. The following schema illustrates a complete customization of the behavior: - -{{{ -#!xml - - - - - - - - - - - - - - - - - -
-}}} - -Whatever name you give to your columns, the `nested_sets` behavior always adds the following proxy methods, which are mapped to the correct column: - -{{{ -#!php -getLeftValue(); // returns $post->lft -$post->setLeftValue($left); -$post->getRightValue(); // returns $post->rgt -$post->setRightValue($right); -$post->getLevel(); // returns $post->lvl -$post->setLevel($level); -$post->getScopeValue(); // returns $post->thread_id -$post->setScopeValue($scope); -}}} - -If your application used the old nested sets builder from Propel 1.4, you can enable the `method_proxies` parameter so that the behavior generates method proxies for the methods that used a different name (e.g. `createRoot()` for `makeRoot()`, `retrieveFirstChild()` for `getFirstChild()`, etc. - -{{{ -#!xml - - - - - - -
-}}} - -== Complete API == - -Here is a list of the methods added by the behavior to the model objects: - -{{{ -#!php -` tag to add the `query_cache` behavior to a table: -{{{ -#!xml - - - - -
-}}} - -After you rebuild your model, all the queries on this object can now be cached. To trigger the query cache on a particular query, just give it a query key using the `setQueryKey()` method. The key is a unique identifier that you can choose, later used for cache lookups: - -{{{ -#!php -setQueryKey('search book by title') - ->filterByTitle($title) - ->findOne(); -}}} - -The first time Propel executes the termination method, it computes the SQL translation of the Query object and stores it into a cache backend (APC by default). Next time you run the same query, it executes faster, even with different parameters: - -{{{ -#!php -setQueryKey('search book by title') - ->filterByTitle($title) - ->findOne(); -}}} - -'''Tip''': The more complex the query, the greater the boost you get from the query cache behavior. - -== Parameters == - -You can change the cache backend and the cache lifetime (in seconds) by setting the `backend` and `lifetime` parameters: - -{{{ -#!xml - - - - - - - -
-}}} - -To implement a custom cache backend, just override the generated `cacheContains()`, `cacheFetch()` and `cacheStore()` methods in the Query object. For instance, to implement query cache using Zend_Cache and memcached, try the following: - -{{{ -#!php -getCacheBackend()->test($key); - } - - public function cacheFetch($key) - { - return $this->getCacheBackend()->load($key); - } - - public function cacheStore($key, $value) - { - return $this->getCacheBackend()->save($key, $value); - } - - protected function getCacheBackend() - { - if (self::$cacheBackend === null) { - $frontendOptions = array( - 'lifetime' => 7200, - 'automatic_serialization' => true - ); - $backendOptions = array( - 'servers' => array( - array( - 'host' => 'localhost', - 'port' => 11211, - 'persistent' => true - ) - ) - ); - self::$cacheBackend = Zend_Cache::factory('Core', 'Memcached', $frontendOptions, $backendOptions); - } - - return self::$cacheBackend; - } -} -}}} \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/behavior/sluggable.txt b/airtime_mvc/library/propel/docs/behavior/sluggable.txt deleted file mode 100644 index beb454a161..0000000000 --- a/airtime_mvc/library/propel/docs/behavior/sluggable.txt +++ /dev/null @@ -1,135 +0,0 @@ -= Sluggable Behavior = - -The `sluggable` behavior allows a model to offer a human readable identifier that can be used for search engine friendly URLs. - -== Basic Usage == - -In the `schema.xml`, use the `` tag to add the `sluggable` behavior to a table: -{{{ -#!xml - - - - -
-}}} - -Rebuild your model, insert the table creation sql again, and you're ready to go. The model now has an additional getter for its slug, which is automatically set before the object is saved: - -{{{ -#!php -setTitle('Hello, World!'); -$p1->save(); -echo $p1->getSlug(); // 'hello-world' -}}} - -By default, the behavior uses the string representation of the object to build the slug. In the example above, the `title` column is defined as `primaryString`, so the slug uses this column as a base string. The string is then cleaned up in order to allow it to appear in a URL. In the process, blanks and special characters are replaced by a dash, and the string is lowercased. - -'''Tip''': The slug is unique by design. That means that if you create a new object and that the behavior calculates a slug that already exists, the string is modified to be unique: - -{{{ -#!php -setTitle('Hello, World!'); -$p2->save(); -echo $p2->getSlug(); // 'hello-world-1' -}}} - -The generated model query offers a `findOneBySlug()` method to easily retrieve a model object based on its slug: - -{{{ -#!php -findOneBySlug('hello-world'); -}}} - -== Parameters == - -By default, the behavior adds one columns to the model. If this column is already described in the schema, the behavior detects it and doesn't add it a second time. The behavior parameters allow you to use custom patterns for the slug composition. The following schema illustrates a complete customization of the behavior: - -{{{ -#!xml - - - - - - - - - - - - -
-}}} - -Whatever `slug_column` name you choose, the `sluggable` behavior always adds the following proxy methods, which are mapped to the correct column: - -{{{ -#!php -getSlug(); // returns $post->url -$post->setSlug($slug); // $post->url = $slug -}}} - -The `slug_pattern` parameter is the rule used to build the raw slug based on the object properties. Any substring enclosed between brackets '{}' is turned into a getter, so the `Post` class generates slugs as follows: - -{{{ -#!php -getTitle(); -} -}}} - -Incidentally, that means that you can use names that don't match a real column phpName, as long as your model provides a getter for it. - -The `replace_pattern` parameter is a regular expression that shows all the characters that will end up replaced by the `replacement` parameter. In the above example, special characters like '!' or ':' are replaced by '-', but not letters, digits, nor '/'. - -The `separator` parameter is the character that separates the slug from the incremental index added in case of non-unicity. Set as '/', it makes `Post` objects sharing the same title have the following slugs: - -{{{ -'posts/hello-world' -'posts/hello-world/1' -'posts/hello-world/2' -... -}}} - -A `permanent` slug is not automatically updated when the fields that constitute it change. This is useful when the slug serves as a permalink, that should work even when the model object properties change. Note that you can still manually change the slug in a model using the `permanent` setting by calling `setSlug()`; - -== Further Customization == - -The slug is generated by the object when it is saved, via the `createSlug()` method. This method does several operations on a simple string: - -{{{ -#!php -createRawSlug(); - // truncate the slug to accomodate the size of the slug column - $slug = $this->limitSlugSize($slug); - // add an incremental index to make sure the slug is unique - $slug = $this->makeSlugUnique($slug); - - return $slug; -} - -protected function createRawSlug() -{ - // here comes the string composition code, generated according to `slug_pattern` - $slug = 'posts/' . $this->cleanupSlugPart($this->getTitle()); - // cleanupSlugPart() cleans up the slug part - // based on the `replace_pattern` and `replacement` parameters - - return $slug; -} -}}} - -You can override any of these methods in your model class, in order to implement a custom slug logic. diff --git a/airtime_mvc/library/propel/docs/behavior/soft_delete.txt b/airtime_mvc/library/propel/docs/behavior/soft_delete.txt deleted file mode 100644 index 0105edbf1f..0000000000 --- a/airtime_mvc/library/propel/docs/behavior/soft_delete.txt +++ /dev/null @@ -1,116 +0,0 @@ -= SoftDelete Behavior = - -The `soft_delete` behavior overrides the deletion methods of a model object to make them 'hide' the deleted rows but keep them in the database. Deleted objects still don't show up on select queries, but they can be retrieved or undeleted when necessary. - -== Basic Usage == - -In the `schema.xml`, use the `` tag to add the `soft_delete` behavior to a table: -{{{ -#!xml - - - - -
-}}} - -Rebuild your model, insert the table creation sql again, and you're ready to go. The model now has one new column, `deleted_at`, that stores the deletion date. Select queries don't return the deleted objects: - -{{{ -#!php -setTitle('War And Peace'); -$b->save(); -$b->delete(); -echo $b->isDeleted(); // false -echo $b->getDeletedAt(); // 2009-10-02 18:14:23 -$books = BookQuery::create()->find(); // empty collection -}}} - -Behind the curtain, the behavior adds a condition to every SELECT query to return only records where the `deleted_at` column is null. That's why the deleted objects don't appear anymore upon selection. - -You can turn off the query alteration globally by calling the static method `disableSoftDelete()` on the related Query object: - -{{{ -#!php -find(); -$book = $books[0]; -echo $book->getTitle(); // 'War And Peace' -}}} - -Note that `find()` and other selection methods automatically re-enable the `soft_delete` filter. You can also enable it manually by calling the `enableSoftDelete()` method on Peer objects. - -If you want to recover a deleted object, use the `unDelete()` method: - -{{{ -#!php -unDelete(); -$books = BookQuery::create()->find(); -$book = $books[0]; -echo $book->getTitle(); // 'War And Peace' -}}} - -If you want to force the real deletion of an object, call the `forceDelete()` method: - -{{{ -#!php -forceDelete(); -echo $book->isDeleted(); // true -$books = BookQuery::create()->find(); // empty collection -}}} - -The query methods `delete()` and `deleteAll()` also perform a soft deletion, unless you disable the behavior on the peer class: - -{{{ -#!php -setTitle('War And Peace'); -$b->save(); - -BookQuery::create()->delete($b); -$books = BookQuery::create()->find(); // empty collection -// the rows look deleted, but they are still there -BookQuery::disableSoftDelete(); -$books = BookQuery::create()->find(); -$book = $books[0]; -echo $book->getTitle(); // 'War And Peace' - -// To perform a true deletion, disable the softDelete feature -BookQuery::disableSoftDelete(); -BookQuery::create()->delete(); -// Alternatively, use forceDelete() -BookQuery::create()->forceDelete(); -}}} - -== Parameters == - -You can change the name of the column added by the behavior by setting the `deleted_column` parameter: - -{{{ -#!xml - - - - - - - -
-}}} - -{{{ -#!php -setTitle('War And Peace'); -$b->save(); -$b->delete(); -echo $b->getMyDeletionDate(); // 2009-10-02 18:14:23 -$books = BookQuery::create()->find(); // empty collection -}}} diff --git a/airtime_mvc/library/propel/docs/behavior/sortable.txt b/airtime_mvc/library/propel/docs/behavior/sortable.txt deleted file mode 100644 index b45c128431..0000000000 --- a/airtime_mvc/library/propel/docs/behavior/sortable.txt +++ /dev/null @@ -1,285 +0,0 @@ -= Sortable Behavior = - -The `sortable` behavior allows a model to become an ordered list, and provides numerous methods to traverse this list in an efficient way. - -== Basic Usage == - -In the `schema.xml`, use the `` tag to add the `sortable` behavior to a table: -{{{ -#!xml - - - - -
-}}} - -Rebuild your model, insert the table creation sql again, and you're ready to go. The model now has the ability to be inserted into an ordered list, as follows: - -{{{ -#!php -setTitle('Wash the dishes'); -$t1->save(); -echo $t1->getRank(); // 1, the first rank to be given (not 0) -$t2 = new Task(); -$t2->setTitle('Do the laundry'); -$t2->save(); -echo $t2->getRank(); // 2 -$t3 = new Task(); -$t3->setTitle('Rest a little'); -$t3->save() -echo $t3->getRank(); // 3 -}}} - -As long as you save new objects, Propel gives them the first available rank in the list. - -Once you have built an ordered list, you can traverse it using any of the methods added by the `sortable` behavior. For instance: - -{{{ -#!php -findOneByRank(1); // $t1 -$secondTask = $firstTask->getNext(); // $t2 -$lastTask = $secondTask->getNext(); // $t3 -$secondTask = $lastTask->getPrevious(); // $t2 - -$allTasks = TaskQuery::create()->findList(); -// => collection($t1, $t2, $t3) -$allTasksInReverseOrder = TaskQuery::create()->orderByRank('desc')->find(); -// => collection($t3, $t2, $t2) -}}} - -The results returned by these methods are regular Propel model objects, with access to the properties and related models. The `sortable` behavior also adds inspection methods to objects: - -{{{ -#!php -isFirst(); // false -echo $t2->isLast(); // false -echo $t2->getRank(); // 2 -}}} - -== Manipulating Objects In A List == - -You can move an object in the list using any of the `moveUp()`, `moveDown()`, `moveToTop()`, `moveToBottom()`, `moveToRank()`, and `swapWith()` methods. These operations are immediate and don't require that you save the model afterwards: - -{{{ -#!php -moveToTop(); -// The list is now 1 - Do the laundry, 2 - Wash the dishes, 3 - Rest a little -$t2->moveToBottom(); -// The list is now 1 - Wash the dishes, 2 - Rest a little, 3 - Do the laundry -$t2->moveUp(); -// The list is 1 - Wash the dishes, 2 - Do the laundry, 3 - Rest a little -$t2->swapWith($t1); -// The list is now 1 - Do the laundry, 2 - Wash the dishes, 3 - Rest a little -$t2->moveToRank(3); -// The list is now 1 - Wash the dishes, 2 - Rest a little, 3 - Do the laundry -$t2->moveToRank(2); -}}} - -By default, new objects are added at the bottom of the list. But you can also insert them at a specific position, using any of the `insertAtTop(), `insertAtBottom()`, and `insertAtRank()` methods. Note that the `insertAtXXX` methods don't save the object: - -{{{ -#!php -setTitle('Clean windows'); -$t4->insertAtRank(2); -$t4->save(); -// The list is now 1 - Wash the dishes, 2 - Clean Windows, 3 - Do the laundry, 4 - Rest a little -}}} - -Whenever you `delete()` an object, the ranks are rearranged to fill the gap: - -{{{ -#!php -delete(); -// The list is now 1 - Wash the dishes, 2 - Do the laundry, 3 - Rest a little -}}} - -'''Tip''': You can remove an object from the list without necessarily deleting it by calling `removeFromList()`. Don't forget to `save()` it afterwards so that the other objects in the lists are rearranged to fill the gap. - -== Multiple Lists == - -When you need to store several lists for a single model - for instance, one task list for each user - use a ''scope'' for each list. This requires that you enable scope support in the behavior definition by setting the `use_scope` parameter to `true`: - -{{{ -#!xml - - - - - - - - - - - -
-}}} - -Now, after rebuilding your model, you can have as many lists as required: - -{{{ -#!php -setTitle('Wash the dishes'); -$t1->setUser($paul); -$t1->save(); -echo $t1->getRank(); // 1 -$t2 = new Task(); -$t2->setTitle('Do the laundry'); -$t2->setUser($paul); -$t2->save(); -echo $t2->getRank(); // 2 -$t3 = new Task(); -$t3->setTitle('Rest a little'); -$t3->setUser($john); -$t3->save() -echo $t3->getRank(); // 1, because John has his own task list -}}} - -The generated methods now accept a `$scope` parameter to restrict the query to a given scope: - -{{{ -#!php -findOneByRank($rank = 1, $scope = $paul->getId()); // $t1 -$lastPaulTask = $firstTask->getNext(); // $t2 -$firstJohnTask = TaskPeer::create()->findOneByRank($rank = 1, $scope = $john->getId()); // $t1 -}}} - -Models using the sortable behavior with scope benefit from one additional Query methods named `inList()`: - -{{{ -#!php -inList($scope = $paul->getId())->find(); -}}} - -== Parameters == - -By default, the behavior adds one columns to the model - two if you use the scope feature. If these columns are already described in the schema, the behavior detects it and doesn't add them a second time. The behavior parameters allow you to use custom names for the sortable columns. The following schema illustrates a complete customization of the behavior: - -{{{ -#!xml - - - - - - - - - - - - - -
-}}} - -Whatever name you give to your columns, the `sortable` behavior always adds the following proxy methods, which are mapped to the correct column: - -{{{ -#!php -getRank(); // returns $task->my_rank_column -$task->setRank($rank); -$task->getScopeValue(); // returns $task->user_id -$task->setScopeValue($scope); -}}} - -The same happens for the generated Query object: - -{{{ -#!php -filterByRank(); // proxies to filterByMyRankColumn() -$query = TaskQuery::create()->orderByRank(); // proxies to orderByMyRankColumn() -$tasks = TaskQuery::create()->findOneByRank(); // proxies to findOneByMyRankColumn() -}}} - -'''Tip''': The behavior adds columns but no index. Depending on your table structure, you might want to add a column index by hand to speed up queries on sorted lists. - -== Complete API == - -Here is a list of the methods added by the behavior to the model objects: - -{{{ -#!php - $rank associative array -// only for behavior with use_scope -array inList($scope) -}}} - -The behavior also adds a few methods to the Peer classes: - -{{{ -#!php - $rank associative array -// only for behavior with use_scope -array retrieveList($scope) -int countList($scope) -int deleteList($scope) -}}} \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/behavior/timestampable.txt b/airtime_mvc/library/propel/docs/behavior/timestampable.txt deleted file mode 100644 index 146b694e99..0000000000 --- a/airtime_mvc/library/propel/docs/behavior/timestampable.txt +++ /dev/null @@ -1,92 +0,0 @@ -= Timestampable Behavior = - -The `timestampable` behavior allows you to keep track of the date of creation and last update of your model objects. - -== Basic Usage == - -In the `schema.xml`, use the `` tag to add the `timestampable` behavior to a table: -{{{ -#!xml - - - - -
-}}} - -Rebuild your model, insert the table creation sql again, and you're ready to go. The model now has two new columns, `created_at` and `updated_at`, that store a timestamp automatically updated on save: - -{{{ -#!php -setTitle('War And Peace'); -$b->save(); -echo $b->getCreatedAt(); // 2009-10-02 18:14:23 -echo $b->getUpdatedAt(); // 2009-10-02 18:14:23 -$b->setTitle('Anna Karenina'); -$b->save(); -echo $b->getCreatedAt(); // 2009-10-02 18:14:23 -echo $b->getUpdatedAt(); // 2009-10-02 18:14:25 -}}} - -The object query also has specific methods to retrieve recent objects and order them according to their update date: - -{{{ -#!php -recentlyUpdated() // adds a minimum value for the update date - ->lastUpdatedFirst() // orders the results by descending update date - ->find(); -}}} - -You can use any of the following methods in the object query: - -{{{ -#!php - - - - - - - - - - -}}} - -{{{ -#!php -setTitle('War And Peace'); -$b->save(); -echo $b->getMyCreateDate(); // 2009-10-02 18:14:23 -echo $b->getMyUpdateDate(); // 2009-10-02 18:14:23 -$b->setTitle('Anna Karenina'); -$b->save(); -echo $b->getMyCreateDate(); // 2009-10-02 18:14:23 -echo $b->getMyUpdateDate(); // 2009-10-02 18:14:25 -}}} diff --git a/airtime_mvc/library/propel/docs/build.xml b/airtime_mvc/library/propel/docs/build.xml deleted file mode 100644 index cc876c4b4e..0000000000 --- a/airtime_mvc/library/propel/docs/build.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/airtime_mvc/library/propel/docs/cookbook/Add-Custom-SQL.txt b/airtime_mvc/library/propel/docs/cookbook/Add-Custom-SQL.txt deleted file mode 100644 index fd672f7ea4..0000000000 --- a/airtime_mvc/library/propel/docs/cookbook/Add-Custom-SQL.txt +++ /dev/null @@ -1,34 +0,0 @@ -= Adding Additional SQL Files = - -In many cases you may wish to have the ''insert-sql'' task perform additional SQL operations (e.g. add views, stored procedures, triggers, sample data, etc.). Rather than have to run additional SQL statements yourself every time you re-build your object model, you can have the Propel generator do this for you. - -== 1. Create the SQL DDL files == - -Create any additional SQL files that you want executed against the database (after the base ''schema.sql'' file is applied). - -For example, if we wanted to add a default value to a column that was unsupported in the schema (e.g. where value is a SQL function): - -{{{ -#!sql --- (for postgres) -ALTER TABLE my_table ALTER COLUMN my_column SET DEFAULT CURRENT_TIMESTAMP; -}}} - -Now we save that as '''my_column-default.sql''' in the same directory as the generated '''schema.sql''' file (usually in projectdir/build/sql/). - -== 2. Tell Propel Generator about the new file == - -In that same directory (where your '''schema.sql''' is located), there is a '''sqldb.map''' file which contains a mapping of SQL DDL files to the database that they should be executed against. After running the propel generator, you will probably have a single entry in that file that looks like: - -{{{ -schema.sql=your-db-name -}}} - -We want to simply add the new file we created to this file (future builds will preserve anything you add to this file). When we're done, the file will look like this: - -{{{ -schema.sql=your-db-name -my_column-default.sql=your-db-name -}}} - -Now when you execute the ''insert-sql'' Propel generator target, the '''my_column-default.sql''' file will be executed against the ''your-db-name'' database. \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/cookbook/Copying-Objects.txt b/airtime_mvc/library/propel/docs/cookbook/Copying-Objects.txt deleted file mode 100644 index 5a67eaa4f5..0000000000 --- a/airtime_mvc/library/propel/docs/cookbook/Copying-Objects.txt +++ /dev/null @@ -1,47 +0,0 @@ -= Copying Persisted Objects = - -Propel provides the {{{copy()}}} method to perform copies of mapped row in the database. Note that Propel does '''not''' override the {{{__clone()}}} method; this allows you to create local duplicates of objects that map to the same persisted database row (should you need to do this). - -The {{{copy()}}} method by default performs shallow copies, meaning that any foreign key references will remain the same. - -{{{ -#!php -setFirstName("Aldous"); -$a->setLastName("Huxley"); - -$p = new Publisher(); -$p->setName("Harper"); - -$b = new Book(); -$b->setTitle("Brave New World"); -$b->setPublisher($p); -$b->setAuthor($a); - -$b->save(); // so that auto-increment IDs are created - -$bcopy = $b->copy(); -var_export($bcopy->getId() == $b->getId()); // FALSE -var_export($bcopy->getAuthorId() == $b->getAuthorId()); // TRUE -var_export($bcopy->getAuthor() === $b->getAuthor()); // TRUE -?> -}}} - -== Deep Copies == - -By calling {{{copy()}}} with a {{{TRUE}}} parameter, Propel will create a deep copy of the object; this means that any related objects will also be copied. - -To continue with example from above: - -{{{ -#!php -copy(true); -var_export($bcopy->getId() == $b->getId()); // FALSE -var_export($bcopy->getAuthorId() == $b->getAuthorId()); // FALSE -var_export($bcopy->getAuthor() === $b->getAuthor()); // FALSE -?> -}}} \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/cookbook/Customizing-Build.txt b/airtime_mvc/library/propel/docs/cookbook/Customizing-Build.txt deleted file mode 100644 index acfe99406d..0000000000 --- a/airtime_mvc/library/propel/docs/cookbook/Customizing-Build.txt +++ /dev/null @@ -1,153 +0,0 @@ -= Customizing Build = -It is possible to customize the Propel build process by overriding values in your propel __build.properties__ file. For maximum flexibility, you can even create your own Phing __build.xml__ file. - -== Customizing the build.properties == -The easiest way to customize your Propel build is to simply specify build properties in your project's __build.properties__ file. - -=== Understanding Phing build properties === -''Properties'' are essentially variables. These variables can be specified on the commandline or in ''properties files''. - -For example, here's how a property might be specified on the commandline: -{{{ -$> phing -Dpropertyname=value -}}} - -More typically, properties are stored in files and loaded by Phing. For those not familiar with Java properties files, these files look like PHP INI files; the main difference is that values in properties files can be references to other properties (a feature that will probably exist in in INI files in PHP 5.1). - -'''Importantly:''' properties, once loaded, are not overridden by properties with the same name unless explicitly told to do so. In the Propel build process, the order of precedence for property values is as follows: - 1. Commandline properties - 1. Project __build.properties__ - 1. Top-level __build.properties__ - 1. Top-level __default.properties__ - -This means, for example, that values specified in the project's __build.properties__ files will override those in the top-level __build.properties__ and __default.properties__ files. - -=== Changing values === -To get an idea of what you can modify in Propel, simply look through the __build.properties__ and __default.properties__ files. - -''Note, however, that some of the current values exist for legacy reasons and will be cleaned up in Propel 1.1.'' - -==== New build output directories ==== -This can easily be customized on a project-by-project basis. For example, here is a __build.properties__ file for the ''bookstore ''project that puts the generated classes in __/var/www/bookstore/classes__ and puts the generated SQL in __/var/www/bookstore/db/sql__: -{{{ -propel.project = bookstore -propel.database = sqlite -propel.database.url = sqlite://localhost/./test/bookstore.db -propel.targetPackage = bookstore - -# directories -prope.output.dir = /var/www/bookstore -propel.php.dir = ${propel.output.dir}/classes -propel.phpconf.dir = ${propel.output.dir}/conf -propel.sql.dir = ${propel.output.dir}/db/sql -}}} - -The ''targetPackage'' property is also used in determining the path of the generated classes. In the example above, the __Book.php__ class will be located at __/var/www/bookstore/classes/bookstore/Book.php__. You can change this __bookstore__ subdir by altering the ''targetPackage'' property: -{{{ -propel.targetPackage = propelom -}}} - -Now the class will be located at __/var/www/bookstore/classes/propelom/Book.php__ - -''Note that you can override the targetPackage property by specifying a package="" attribute in the tag or even the tag of the schema.xml.'' - -== Creating a custom build.xml file == - -If you want to make more major changes to the way the build script works, you can setup your own Phing build script. This actually is not a very scary task, and once you've managed to create a Phing build script, you'll probably want to create build targets for other aspects of your project (e.g. running batch unit tests is now supported in Phing 2.1-CVS). - -To start with, I suggest taking a look at the __build-propel.xml__ script (the build.xml script is just a wrapper script). Note, however, that the __build-propel.xml__ script does a lot & has a lot of complexity that is designed to make it easy to configure using properties (so, don't be scared). - -Without going into too much detail about how Phing works, the important thing is that Phing build scripts XML and they are grouped into ''targets'' which are kinda like functions. The actual work of the scripts is performed by ''tasks'', which are PHP5 classes that extend the base Phing ''Task'' class and implement its abstract methods. Propel provides some Phing tasks that work with templates to create the object model. - -=== Step 1: register the needed tasks === - -The Propel tasks must be registered so that Phing can find them. This is done using the '''' tag. You can see this near the top of the __build-propel.xml__ file. - -For example, here is how we register the ''propel-om'' task, which is the task that creates the PHP classes for your object model: -{{{ - -}}} - -Simple enough. Phing will now associate the '''' tag with the ''PropelOMTask'' class, which it expects to find at __propel/phing/PropelOMTask.php__ (on your ''include_path''). If Propel generator classes are not on your ''include_path'', you can specify that path in your '''' tag: -{{{ - -}}} - -Or, for maximum re-usability, you can create a '''' object, and then reference it (this is the way __build-propel.xml__ does it): -{{{ - - - - - -}}} - -=== Step 2: invoking the new task === - -Now that the '''' task has been registered with Phing, it can be invoked in your build file. -{{{ - - - -}}} - -In the example above, it's worth pointing out that the '''' task can actually transform multiple __schema.xml__ files, which is why there is a '''' sub-element. Phing ''filesets'' are beyond the scope of this HOWTO, but hopefully the above example is obvious enough. - -=== Step 3: putting it together into a build.xml file === - -Now that we've seen the essential elements of our custom build file, it's time to look at how to assemble them into a working whole: -{{{ - - - - - - - - - - - - - - - - - - - - - - - -}}} - -If that build script was named __build.xml__ then it could be executed by simply running ''phing'' in the directory where it is located: -{{{ -$> phing om -}}} - -Actually, specifying the ''om'' target is not necessary since it is the default. - -Refer to the __build-propel.xml__ file for examples of how to use the other Propel Phing tasks -- e.g. '''' for generating the DDL SQL, '''' for inserting the SQL, etc. \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/cookbook/Existing-Database.txt b/airtime_mvc/library/propel/docs/cookbook/Existing-Database.txt deleted file mode 100644 index 3505c0f425..0000000000 --- a/airtime_mvc/library/propel/docs/cookbook/Existing-Database.txt +++ /dev/null @@ -1,95 +0,0 @@ -= Working With Existing Databases = - -The following topics are targeted for developers who already have a working database solution in place, but would like to use Propel to work with the data. For this case, Propel provides a number of command-line utilities helping with migrations of data and data structures. - -== Working with Database Structures == - -Propel uses an abstract XML schema file to represent databases (the [wiki:Documentation/1.5/Schema schema]). Propel builds the SQL specific to a database based on this schema. Propel also provides a way to reverse-engineer the generic schema file based on database metadata. - -=== Creating an XML Schema from a DB Structure === - -To generate a schema file, create a new directory for your project & specify the connection information in your `build.properties` file for that project. For example, to create a new project, `legacyapp`, follow these steps: - - 1. Create the `legacyapp` project directory anywhere on your filesystem: -{{{ -> mkdir legacyapp -> cd legacyapp -}}} - 1. Create a `build.properties` file in `legacyapp/` directory with the DB connection parameters for your existing database, e.g.: -{{{ -propel.project = legacyapp - -# The Propel driver to use for generating SQL, etc. -propel.database = mysql - -# This must be a PDO DSN -propel.database.url = mysql:dbname=legacyapp -propel.database.user = root -# propel.database.password = -}}} - 1. Run the `reverse` task to generate the `schema.xml`: -{{{ -> propel-gen reverse -}}} - 1. Pay attention to any errors/warnings issued by Phing during the task execution and then examine the generated `schema.xml` file to make any corrections needed. - 1. '''You're done! ''' Now you have a `schema.xml` file in the `legacyapp/` project directory. You can now run the default Propel build to generate all the classes. - -The generated `schema.xml` file should be used as a guide, not a final answer. There are some datatypes that Propel may not be familiar with; also some datatypes are simply not supported by Propel (e.g. arrays in PostgreSQL). Unfamiliar datatypes will be reported as warnings and substituted with a default VARCHAR datatype. - -Tip: The reverse engineering classes may not be able to provide the same level of detail for all databases. In particular, metadata information for SQLite is often very basic since SQLite is a typeless database. - -=== Migrating Structure to a New RDBMS === - -Because Propel has both the ability to create XML schema files based on existing database structures and to create RDBMS-specific DDL SQL from the XML schema file, you can use Propel to convert one database into another. - -To do this you would simply: - 1. Follow the steps above to create the `schema.xml` file from existing db. - 1. Then you would change the target database type and specify connection URL for new database in the project's `build.properties` file: -{{{ -propel.database = pgsql -propel.database.url = pgsql://unix+localhost/newlegacyapp -}}} - 1. And then run the `sql` task to generate the new DDL: -{{{ -> propel-gen sql -}}} - 1. And (optionally) the `insert-sql` task to create the new database: -{{{ -> propel-gen insert-sql -}}} - -== Working with Database Data == - -Propel also provides several tasks to facilitate data import/export. The most important of these are `datadump` and `datasql`. The first dumps data to XML and the second converts the XML data dump to a ready-to-insert SQL file. - -Tip: Both of these tasks require that you already have generated the `schema.xml` for your database. - -=== Dumping Data to XML === - -Once you have created (or reverse-engineered) your `schema.xml` file, you can run the `datadump` task to dump data from the database into a `data.xml` file. - -{{{ -> propel-gen datadump -}}} - -The task transfers database records to XML using a simple format, where each row is an element, and each column is an attribute. So for instance, the XML representation of a row in a `publisher` table: - -||'''publisher_id'''||'''name'''|| -||1||William Morrow|| - -... is rendered in the `data.xml` as follows: -{{{ - - ... - - ... - -}}} - -=== Creating SQL from XML === - -To create the SQL files from the XML, run the `datasql` task: -{{{ -> propel-gen datasql -}}} -The generated SQL is placed in the `build/sql/` directory and will be inserted when you run the `insert-sql` task. \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/cookbook/LOB-Columns.txt b/airtime_mvc/library/propel/docs/cookbook/LOB-Columns.txt deleted file mode 100644 index d4b776d0b3..0000000000 --- a/airtime_mvc/library/propel/docs/cookbook/LOB-Columns.txt +++ /dev/null @@ -1,73 +0,0 @@ -= Working with LOB Columns = - -Propel uses PHP streams internally for storing ''Binary'' Locator Objects (BLOBs). This choice was made because PDO itself uses streams as a convention when returning LOB columns in a resultset and when binding values to prepared statements. Unfortunately, not all PDO drivers support this (see, for example, http://bugs.php.net/bug.php?id=40913); in those cases, Propel creates a {{{php://temp}}} stream to hold the LOB contents and thus provide a consistent API. - -Note that CLOB (''Character'' Locator Objects) are treated as strings in Propel, as there is no convention for them to be treated as streams by PDO. - -== Getting BLOB Values == - -BLOB values will be returned as PHP stream resources from the accessor methods. Alternatively, if the value is NULL in the database, then the accessors will return the PHP value NULL. - -{{{ -#!php -getCoverImage(); -if ($fp !== null) { - echo stream_get_contents($fp); -} -}}} - -== Setting BLOB Values == - -When setting a BLOB column, you can either pass in a stream or the blob contents. - -=== Setting using a stream === -{{{ -#!php -setCoverImage($fp); -}}} - -=== Setting using file contents === -{{{ -#!php -setCoverImage(file_get_contents("/path/to/file.ext")); -}}} - -Regardless of which setting method you choose, the BLOB will always be represented internally as a stream resource -- ''and subsequent calls to the accessor methods will return a stream.'' - -For example: -{{{ -#!php -setCoverImage(file_get_contents("/path/to/file.ext")); - -$fp = $media->getCoverImage(); -print gettype($fp); // "resource" -}}} - -=== Setting BLOB columns and isModified() === - -Note that because a stream contents may be externally modified, ''mutator methods for BLOB columns will always set the '''isModified()''' to report true'' -- even if the stream has the same identity as the stream that was returned. - -For example: -{{{ -#!php -getCoverImage(); -$media->setCoverImage($fp); - -var_export($media->isModified()); // TRUE -}}} \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/cookbook/Master-Slave.txt b/airtime_mvc/library/propel/docs/cookbook/Master-Slave.txt deleted file mode 100644 index 2e28f49034..0000000000 --- a/airtime_mvc/library/propel/docs/cookbook/Master-Slave.txt +++ /dev/null @@ -1,94 +0,0 @@ -= Replication = - -Propel can be used in a master-slave replication environment. These environments are set up to improve the performance of web applications by dispatching the database-load to multiple database-servers. While a single master database is responsible for all write-queries, multiple slave-databases handle the read-queries. The slaves are synchronised with the master by a fast binary log (depending on the database). - -== Configuring Propel for Replication == - - * Set up a replication environment (see the Databases section below) - * Use the latest Propel-Version from SVN - * add a slaves-section to your {{{runtime-conf.xml}}} file - * verify the correct setup by checking the masters log file (should not contain "select ..." statements) - -You can configure Propel to support replication by adding a element with nested element(s) to your {{{runtime-conf.xml}}}. - -The section is at the same level as the master and contains multiple nested elements with the same information as the top-level (master) . It is recommended that they are numbered. The follwing example shows a slaves section with a several slave connections configured where "localhost" is the master and "slave-server1" and "slave-server2" are the slave-database connections. - -{{{ -#!xml - - - - propel-bookstore - console - 7 - - - - - sqlite - - mysql:host=localhost;dbname=bookstore - testuser - password - - - - mysql:host=slave-server1; dbname=bookstore - testuser - password - - - mysql:host=slave-server2; dbname=bookstore - testuser - password - - - - - - -}}} - -== Implementation == - -The replication functionality is implemented in the Propel connection configuration and initialization code and in the generated Peer and Object classes. - -=== Propel::getConnection() === - -When requesting a connection from Propel ('''Propel::getConnection()'''), you can either specify that you want a READ connection (slave) or WRITE connection (master). Methods that are designed to perform READ operations, like the '''doSelect*()''' methods of your generated Peer classes, will always request a READ connection like so: -{{{ -#!php -query('SELECT * FROM my'); -/* ... */ -}}} - -=== Propel::setForceMasterConnection() === - -You can force Propel to always return a WRITE (master) connection from '''Propel::getConnection()''' by calling '''Propel::setForceMasterConnection(true);'''. This can be useful if you must be sure that you are getting the most up-to-date data (i.e. if there is some latency possible between master and slaves). - -== Databases == - -=== MySql === - -http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html - -== References == - - * Henderson Carl (2006): Building Scalable Web Sites. The Flickr Way. O'Reilly. ISBN-596-10235-6. - diff --git a/airtime_mvc/library/propel/docs/cookbook/Multi-Component.txt b/airtime_mvc/library/propel/docs/cookbook/Multi-Component.txt deleted file mode 100644 index f033ce70ce..0000000000 --- a/airtime_mvc/library/propel/docs/cookbook/Multi-Component.txt +++ /dev/null @@ -1,297 +0,0 @@ -= Multi-Component Data Model = - -Propel comes along with packaging capabilities that allow you to more easily integrate Propel into a packaged or modularized application. - -== Muliple Schemas == - -You can use as many `schema.xml` files as you want. Schema files have to be named `(*.)schema.xml`, so names like `schema.xml`, `package1.schema.xml`, `core.package1.schema.xml` are all acceptable. These files ''have'' to be located in your project directory. - -Each schema file has to contain a `` element with a `name` attribute. This name references the connection settings to be used for this database (and configured in the `runtime-conf.xml`), so separated schemas can share a common database name. - -Whenever you call a propel build taks, Propel will consider all these schema files and build the classes (or the SQL) for all the tables. - -== Understanding Packages == - -In Propel, a ''package'' represents a group of models. This is a convenient way to organize your code in a modularized way, since classes and SQL files of a given package are be grouped together and separated from the other packages. By carefully choosing the package of each model, applications end up in smaller, independent modules that are easier to manage. - -=== Package Cascade === - -The package is defined in a configuration cascade. You can set it up for the whole project, for all the tables of a schema, or for a single table. - -For the whole project, the main package is set in the `build.properties`: - -{{{ -#!ini -propel.targetPackage = my_project -}}} - -By default, all the tables of all the schemas in the project use this package. However, you can override the package for a given `` by setting its `package` attribute: - -{{{ -#!xml - - -
- -
-
- - - - - -
- - -
-
-}}} - -In this example, thanks to the `package` attribute, the tables are grouped into the following packages: - - * `my_project.author` package: `author` table - * `my_project.book` package: `book` and `review` tables - -'''Warning''': If you separate tables related by a foreign key into separate packages (like `book` and `author` in this example), you must enable the `packageObjectModel` build property to let Propel consider other packages for relations. - -You can also override the `package` attribute at the `` element level. - -{{{ -#!xml - - -
- -
-
- - - - - -
- - -
-
-}}} - -This ends up in the following package: - - * `my_project.author` package: `author` table - * `my_project.book` package: `book` table - * `my_project.review` package: `review` table - -Notice that tables can end up in separated packages even though they belong to the same schema file. - -'''Tip''': You can use dots in a package name to add more package levels. - -=== Packages and Generated Model Files === - -The `package` attribute of a table translates to the directory in which Propel generates the Model classes for this table. - -For instance, if no `package` attribute is defined at the database of table level, Propel places all classes according to the `propel.targetPackage` from the `build.properties`: - -{{{ -build/ - classes/ - my_project/ - om/ - map/ - Author.php - AuthorPeer.php - AuthorQuery.php - Book.php - BookPeer.php - BookQuery.php - Review.php - ReviewPeer.php - ReviewQuery.php -}}} - -You can further tweak the location where Propel puts the created files by changing the `propel.output.dir` build property. By default this property is set to: - -{{{ -#!ini -propel.output.dir = ${propel.project.dir}/build -}}} - -You can change it to use any other directory as your build directory. - -If you set up packages for `` elements, Propel splits up the generated model classes into subdirectories named after the package attribute: - -{{{ -build/ - classes/ - my_project/ - author/ - om/ - map/ - Author.php - AuthorPeer.php - AuthorQuery.php - book/ - om/ - map/ - Book.php - BookPeer.php - BookQuery.php - Review.php - ReviewPeer.php - ReviewQuery.php -}}} - -And of course, if you specialize the `package` attribute per table, you can have one table use its own package: - -{{{ -build/ - classes/ - my_project/ - author/ - om/ - map/ - Author.php - AuthorPeer.php - AuthorQuery.php - book/ - om/ - map/ - Book.php - BookPeer.php - BookQuery.php - review/ - om/ - map/ - Review.php - ReviewPeer.php - ReviewQuery.php -}}} - -=== Packages And SQL Files === - -Propel also considers packages for SQL generation. In practice, Propel generates one SQL file per package. Each file contains the CREATE TABLE SQL statements necessary to create all the tables of a given package. - -So by default, all the tables end up in a single SQL file: - -{{{ -build/ - sql/ - schema.sql -}}} - -If you specialize the `package` for each `` element, Propel uses it for SQL files: - -{{{ -build/ - sql/ - author.schema.sql // contains CREATE TABLE author - book.schema.sql // contains CREATE TABLE book and CREATE TABLE review -}}} - -And, as you probably expect it, a package overridden at the table level also accounts for an independent SQL file: - -{{{ -build/ - sql/ - author.schema.sql // contains CREATE TABLE author - book.schema.sql // contains CREATE TABLE book - review.schema.sql // contains CREATE TABLE review -}}} - -== Understanding The packageObjectModel Build Property == - -The `propel.packageObjectModel` build property enables the "packaged" build process. This modifies the build tasks behavior by joining `` elements of the same name - but keeping their packages separate. That allows to split a large schema into several files, regardless of foreign key dependencies, since Propel will join all schemas using the same database name. - -To switch this on, simply add the following line to the `build.properties` file in your project directory: -{{{ -propel.packageObjectModel = true -}}} - -== The Bookstore Packaged Example == - -In the bookstore-packaged example you'll find the following schema files: - - * author.schema.xml - * book.schema.xml - * club.schema.xml - * media.schema.xml - * publisher.schema.xml - * review.schema.xml - * log.schema.xml - -Each schema file has to contain a `` tag that has its `package` attribute set to the package name where ''all'' of the tables in this schema file/database belong to. - -For example, in the bookstore-packaged example the `author.schema.xml` contains the following `` tag: - -{{{ - -}}} - -That means, that the Author OM classes will be created in a subdirectory `core/author/` of the build output directory. - -You can have more than one schema file that belong to one package. For example, in the the bookstore-packaged example both the `book.schema.xml` and `media.schema.xml` belong to the same package "core.book". The generated OM classes for these schemas will therefore end up in the same `core/book/` subdirectory. - -=== The OM build === - -To run the packaged bookstore example build simply go to the `propel/test/fixtures/bookstore-packages/` directory and type: - -{{{ -../../../generator/bin/propel-gen om -}}} - -This should run without any complaints. When you have a look at the projects/bookstore-packaged/build/classes directory, the following directory tree should have been created: -{{{ -addon/ - club/ - BookClubList.php - BookClubListPeer.php - BookListRel.php - BookListRelPeer.php -core/ - author/ - Author.php - AuthorPeer.php - book/ - Book.php - BookPeer.php - - Media.php - MediaPeer.php - publisher/ - Publisher.php - PublisherPeer.php - review/ - Review.php - ReviewPeer.php -util/ - log/ - BookstoreLog.php - BookstoreLogPeer.php -}}} - -(The additional subdirectories map/ and om/ in each of these directories have been omitted for clarity.) - -== The SQL build == - -From the same schema files, run the SQL generation by calling: - -{{{ -../../../generator/bin/propel-gen sql -}}} - -Then, have a look at the `build/sql/` directory: you will see that for each package (that is specified as a package attribute in the schema file database tags), one sql file has been created: - - * addon.club.schema.sql - * core.author.schema.sql - * core.book.schema.sql - * core.publisher.schema.sql - * core.review.schema.sql - * util.log.schema.sql - -These files contain the CREATE TABLE SQL statements necessary for each package. - -When you now run the insert-sql task by typing: -{{{ -../../../generator/bin/propel-gen insert-sql -}}} -these SQL statements will be executed on a SQLite database located in the Propel/generator/test/ directory. \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/cookbook/Namespaces.txt b/airtime_mvc/library/propel/docs/cookbook/Namespaces.txt deleted file mode 100644 index 705d5ed685..0000000000 --- a/airtime_mvc/library/propel/docs/cookbook/Namespaces.txt +++ /dev/null @@ -1,133 +0,0 @@ -= How to Use PHP 5.3 Namespaces = - -The generated model classes can use a namespace. It eases the management of large database models, and makes the Propel model classes integrate with PHP 5.3 applications in a clean way. - -== Namespace Declaration And Inheritance == - -To define a namespace for a model class, you just need to specify it in a `namespace` attribute of the `` element for a single table, or in the `` element to set the same namespace to all the tables. - -Here is an example schema using namespaces: - -{{{ -#!xml - - - -
- - - - - - - - - - - - -
- - - - - - -
- - - - -
- - - - - -
- -
-}}} - -The `` element defines a `namespace` attribute. The `book` and `author` tables inherit their namespace from the database, therefore the generated classes for these tables will be `\Bookstore\Book` and `\Bookstore\Author`. - -The `publisher` table defines a `namespace` attribute on ots own, which ''extends'' the database namespace. That means that the generated class will be `\Bookstore\Book\Publisher`. - -As for the `user` table, it defines an absolute namespace (starting with a backslash), which ''overrides'' the database namespace. The generated class for the `user` table will be `Admin\User`. - -'''Tip''': You can use subnamespaces (i.e. namespaces containing backslashes) in the `namespace` attribute. - -== Using Namespaced Models == - -Namespaced models benefit from the Propel runtime autoloading just like the other model classes. You just need to alias them, or to use their fully qualified name. - -{{{ -#!php -setAuthor($author); -$book->save(); -}}} - -The namespace is used for the ActiveRecord class, but also for the Query and Peer classes. Just remember that when you use relation names ina query, the namespace should not appear: - -{{{ -#!php -useBookQuery() - ->filterByPrice(array('max' => 10)) - ->endUse() - ->findOne(); -}}} - -Related tables can have different namespaces, it doesn't interfere with the functionality provided by the object model: - -{{{ -#!php -findOne(); -echo get_class($book->getPublisher()); -// \Bookstore\Book\Publisher -}}} - -'''Tip''': Using namespaces make generated model code incompatible with versions of PHP less than 5.3. Beware that you will not be able to use your model classes in an older PHP application. - -== Using Namespaces As A Directory Structure == - -In a schema, you can define a `package` attribute on a `` or a `` tag to generate model classes in a subdirectory (see [wiki:Documentation/1.5/Multi-Component]). If you use namespaces to autoload your classes based on a SplClassAutoloader (see http://groups.google.com/group/php-standards), then you may find yourself repeating the `namespace` data in the `package` attribute: - -{{{ -#!xml - -}}} - -To avoid such repetitions, just set the `propel.namespace.autoPackage` setting to `true` in your `build.properties`: - -{{{ -#!ini -propel.namespace.autoPackage = true -}}} - -Now Propel will automatically create a `package` attribute, and therefore distribute model classes in subdirectories, based on the `namespace` attribute, and you can omit the manual `package` attribute in the schema: - -{{{ -#!xml - -}}} \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/cookbook/Nested-Set.txt b/airtime_mvc/library/propel/docs/cookbook/Nested-Set.txt deleted file mode 100644 index 8cf7fed7ec..0000000000 --- a/airtime_mvc/library/propel/docs/cookbook/Nested-Set.txt +++ /dev/null @@ -1,183 +0,0 @@ -= !NestedSet support in Propel = - -'''Warning''': Since Propel 1.5, the support for nested sets was moved to the `nested_set` behavior. The method described here is deprecated.''' - -== Description == - -With !NestedSet implementation, trees are stored using different approach in databases: [http://www.sitepoint.com/article/hierarchical-data-database] - -Nested Set implementation requires three dedicated fields in table structure - - * left - * right - -Plus an optional fields for multi nested set support - * scope - -''NB: fields name are free and must be defined in schema.xml'' - -To enable !NestedSet support in table, schema.xml must define some specific attributes: -'''treeMode''' which must take the value '''!NestedSet''' - -{{{ -#!xml -
-}}} - -Then, left and right field must be defined that way '''nestedSetLeftKey''' as a boolean value as '''nestedSetRightKey''' - -{{{ -#!xml - - -}}} - -For multi nestedset support, an other column must be defined with boolean attribute '''treeScopeKey''' set to true -{{{ -#!xml - -}}} - -And then, let's the propel generator automagically create all the needed model and stub classes. - -== !NestedSet usage in Propel == - -''ex:'' -'''schema.xml''' extract -{{{ -#!xml -
- - - - - - - - - - - - - - - -
-}}} - -=== !NestedSet insertion === -{{{ -#!php -setText('Google'); -$root->setLink('http://www.google.com'); - -$root->makeRoot(); -$root->save(); - -$menu = new Menu(); -$menu->setText('Google Mail'); -$menu->setLink('http://mail.google.com'); -$menu->insertAsLastChildOf($root); -$menu->save(); - -$child = new Menu(); -$child->setText('Google Maps'); -$child->setLink('http://maps.google.com'); -$child->insertAsLastChildOf($root); -$child->save(); - -$sibling = new Menu(); -$sibling->setText('Yahoo!'); -$sibling->setLink('http://www.yahoo.com'); -$sibling->insertAsNextSiblingOf($root); -$sibling->save(); - -$child = new Menu(); -$child->setText('Yahoo! Mail'); -$child->setLink('http://mail.yahoo.com'); -$child->insertAsLastChildOf($sibling); -$child->save(); -}}} - -=== Multi !NestedSet insertion === -{{{ -#!php -setText('Google'); -$root->setLink('http://www.google.com'); - -$root->makeRoot(); -$root->setScopeIdValue(1); // Tree 1 -$root->save(); - -$menu = new Menu(); -$menu->setText('Google Mail'); -$menu->setLink('http://mail.google.com'); -$menu->insertAsLastChildOf($root); -$menu->save(); - -// Create secund root node -$root2 = new Menu(); -$root2->setText('Yahoo!'); -$root2->setLink('http://www.yahoo.com'); - -$root2->makeRoot(); -$root2->setScopeIdValue(2); // Tree 2 -$root2->save(); - -$menu = new Menu(); -$menu->setText('Yahoo! Mail'); -$menu->setLink('http://mail.yahoo.com'); -$menu->insertAsLastChildOf($root2); -$menu->save(); -}}} - -=== Tree retrieval === -{{{ -#!php -getDepth()); - } - - function endChildren() { - echo str_repeat("\t", $this->getDepth() - 1); - } -} - -$menu = MenuPeer::retrieveTree($scopeId); -$it = new myMenuOutput($menu); -foreach($it as $m) { - echo $m->getText(), '[', $m->getLeftValue(), '-', $m->getRightValue(), "]\n"; -} -}}} -=== Tree traversal === - -!NestetSet implementation use the [http://somabo.de/talks/200504_php_quebec_spl_for_the_masses.pdf SPL RecursiveIterator] as suggested by soenke - -== !NestedSet known broken behaviour == - -=== Issue description === -For every changes applied on the tree, several entries in the database can be involved. So all already loaded nodes have to be refreshed with their new left/right values. - -=== InstancePool enabled === -In order to refresh all loaded nodes, an automatic internal call is made after each tree change to retrieve all instance in InstancePool and update them. -And it works fine. - -=== InstancePool disabled === -When InstancePool is disabled, their is no way to retrieve references to all already loaded node and get them updated. -So in most case, all loaded nodes are not updated and it leads to an inconsistency state. -So, workaround is to do an explicit reload for any node you use after tree change. - - diff --git a/airtime_mvc/library/propel/docs/cookbook/Runtime-Introspection.txt b/airtime_mvc/library/propel/docs/cookbook/Runtime-Introspection.txt deleted file mode 100644 index dce769231d..0000000000 --- a/airtime_mvc/library/propel/docs/cookbook/Runtime-Introspection.txt +++ /dev/null @@ -1,164 +0,0 @@ -= Model Introspection At Runtime = - -In addition to the object and peer classes used to do C.R.U.D. operations, Propel generates an object mapping for your tables to allow runtime introspection. - -The intospection objects are instances of the map classes. Propel maps databases, tables, columns, validators, and relations into objects that you can easily use. - -== Retrieving a TableMap == - -The starting point for runtime introspection is usually a table map. This objects stores every possible property of a table, as defined in the `schema.xml`, but accessible at runtime. - -To retrieve a table map for a table, use the `getTableMap()` static method of the related peer class. For instance, to retrieve the table map for the `book` table, just call: - -{{{ -#!php -getName(); // 'table' -echo $bookTable->getPhpName(); // 'Table' -echo $bookTable->getPackage(); // 'bookstore' -echo $bookTable->isUseIdGenerator(); // true -}}} - -Tip: A TableMap object also references the `DatabaseMap` that contains it. From the database map, you can also retrieve other table maps using the table name or the table phpName: -{{{ -#!php -getDatabaseMap(); -$authorTable = $dbMap->getTable('author'); -$authorTable = $dbMap->getTablebyPhpName('Author'); -}}} - -To introspect the columns of a table, use any of the `getColumns()`, `getPrimaryKeys()`, and `getForeignKeys()` `TableMap` methods. They all return an array of `ColumnMap` objects. - -{{{ -#!php -getColumns(); -foreach ($bookColumns as $column) { - echo $column->getName(); -} -}}} - -Alternatively, if you know a column name, you can retrieve the corresponding ColumnMap directly using the of `getColumn($name)` method. - -{{{ -#!php -getColumn('title'); -}}} - -The `DatabaseMap` object offers a shortcut to every `ColumnMap` object if you know the fully qualified column name: -{{{ -#!php -getColumn('book.TITLE'); -}}} - -== ColumnMaps == - -A `ColumnMap` instance offers a lot of information about a table column. Check the following examples: - -{{{ -#!php -getTableName(); // 'book' -$bookTitleColumn->getTablePhpName(); // 'Book' -$bookTitleColumn->getType(); // 'VARCHAR' -$bookTitleColumn->getSize(); // 255 -$bookTitleColumn->getDefaultValue(); // null -$bookTitleColumn->isLob(); // false -$bookTitleColumn->isTemporal(); // false -$bookTitleColumn->isEpochTemporal(); // false -$bookTitleColumn->isNumeric(); // false -$bookTitleColumn->isText(); // true -$bookTitleColumn->isPrimaryKey(); // false -$bookTitleColumn->isForeignKey(); // false -$bookTitleColumn->hasValidators(); // false -}}} - -`ColumnMap` objects also keep a reference to their parent `TableMap` object: - -{{{ -#!php -getTable(); -}}} - -Foreign key columns give access to more information, including the related table and column: - -{{{ -#!php -getColumn('publisher_id'); -echo $bookPublisherIdColumn->isForeignKey(); // true -echo $bookPublisherIdColumn->getRelatedName(); // 'publisher.ID' -echo $bookPublisherIdColumn->getRelatedTableName(); // 'publisher' -echo $bookPublisherIdColumn->getRelatedColumnName(); // 'ID' -$publisherTable = $bookPublisherIdColumn->getRelatedTable(); -$publisherRelation = $bookPublisherIdColumn->getRelation(); -}}} - -== RelationMaps == - -To get an insight on all the relationships of a table, including the ones relying on a foreign key located in another table, you must use the `RelationMap` objects related to a table. - -If you know its name, you can retrieve a `RelationMap` object using `TableMap::getRelation($relationName)`. Note that the relation name is the phpName of the related table, unless the foreign key defines a phpName in the schema. For instance, the name of the `RelationMap` object related to the `book.PUBLISHER_ID` column is 'Publisher'. - -{{{ -#!php -getRelation('Publisher'); -}}} - -alternatively, you can access a `RelationMap` from a foreign key column using `ColumnMap::getRelation()`, as follows: - -{{{ -#!php -getColumn('publisher_id')->getRelation(); -}}} - -Once you have a `RelationMap` instance, inspect its properties using any of the following methods: - -{{{ -#!php -getType(); // RelationMap::MANY_TO_ONE -echo $publisherRelation->getOnDelete(); // 'SET NULL' -$bookTable = $publisherRelation->getLocalTable(); -$publisherTable = $publisherRelation->getForeignTable(); -print_r($publisherRelation->getColumnMappings()); - // array('book.PUBLISHER_ID' => 'publisher.ID') -print_r(publisherRelation->getLocalColumns()); - // array($bookPublisherIdColumn) -print_r(publisherRelation->getForeignColumns()); - // array($publisherBookIdColumn) -}}} - -This also works for relationships referencing the current table: - -{{{ -#!php -getRelation('Review'); -echo $reviewRelation->getType(); // RelationMap::ONE_TO_MANY -echo $reviewRelation->getOnDelete(); // 'CASCADE' -$reviewTable = $reviewRelation->getLocalTable(); -$bookTable = $reviewRelation->getForeignTable(); -print_r($reviewRelation->getColumnMappings()); - // array('review.BOOK_ID' => 'book.ID') -}}} - -To retrieve all the relations of a table, call `TableMap::getRelations()`. You can then iterate over an array of `RelationMap` objects. - -Tip: RelationMap objects are lazy-loaded, which means that the `TableMap` will not instanciate any relation object until you call `getRelations()`. This allows the `TableMap` to remain lightweight for when you don't use relationship introspection. diff --git a/airtime_mvc/library/propel/docs/cookbook/Writing-Behavior.txt b/airtime_mvc/library/propel/docs/cookbook/Writing-Behavior.txt deleted file mode 100644 index 33ceebc634..0000000000 --- a/airtime_mvc/library/propel/docs/cookbook/Writing-Behavior.txt +++ /dev/null @@ -1,424 +0,0 @@ -= How to Write A Behavior = - -Behaviors are a good way to reuse code across models without requiring inheritance (a.k.a. horizontal reuse). This step-by-step tutorial explains how to port model code to a behavior, focusing on a simple example. - -In the tutorial "[http://propel.posterous.com/getting-to-know-propel-15-keeping-an-aggregat Keeping an Aggregate Column up-to-date]", posted in the [http://propel.posterous.com/ Propel blog], the `TotalNbVotes` property of a `PollQuestion` object was updated each time a related `PollAnswer` object was saved, edited, or deleted. This "aggregate column" behavior was implemented by hand using hooks in the model classes. To make it truly reusable, the custom model code needs to be refactored and moved to a Behavior class. - -== Boostrapping A Behavior == - -A behavior is a class that can alter the generated classes for a table of your model. It must only extend the [browser:branches/1.5/generator/lib/model/Behavior.php `Behavior`] class and implement special "hook" methods. Here is the class skeleton to start with for the `aggregate_column` behavior: - -{{{ -#!php - null, - ); -} -}}} - -Save this class in a file called `AggregateColumnBehavior.php`, and set the path for the class file in the project `build.properties` (just replace directory separators with dots). Remember that the `build.properties` paths are relative to the include path: - -{{{ -#!ini -propel.behavior.aggregate_column.class = path.to.AggregateColumnBehavior -}}} - -Test the behavior by adding it to a table of your model, for instance to a `poll_question` table: - -{{{ -#!xml - - - - - - - -
-
-}}} - -Rebuild your model, and check the generated `PollQuestionTableMap` class under the `map` subdirectory of your build class directory. This class carries the structure metadata for the `PollQuestion` ActiveRecord class at runtime. The class should feature a `getBehaviors()` method as follows, proving that the behavior was correctly applied: - -{{{ -#!php - array('name' => 'total_nb_votes', ), - ); - } // getBehaviors() -} -}}} - -== Adding A Column == - -The behavior works, but it still does nothing at all. Let's make it useful by allowing it to add a column. In the `AggregateColumnBehavior` class, just implement the `modifyTable()` method with the following code: - -{{{ -#!php -getTable(); - if (!$columnName = $this->getParameter('name')) { - throw new InvalidArgumentException(sprintf( - 'You must define a \'name\' parameter for the \'aggregate_column\' behavior in the \'%s\' table', - $table->getName() - )); - } - // add the aggregate column if not present - if(!$table->containsColumn($columnName)) { - $table->addColumn(array( - 'name' => $columnName, - 'type' => 'INTEGER', - )); - } - } -} -}}} - -This method shows that a behavior class has access to the `` defined for it in the `schema.xml` through the `getParameter()` command. Behaviors can also always access the `Table` object attached to them, by calling `getTable()`. A `Table` can check if a column exists and add a new one easily. The `Table` class is one of the numerous generator classes that serve to describe the object model at buildtime, together with `Column`, `ForeignKey`, `Index`, and a lot more classes. You can find all the buildtime model classes under the [browser:branches/1.5/generator/lib/model generator/lib/model] directory. - -'''Tip''': Don't mix up the ''runtime'' database model (`DatabaseMap`, `TableMap`, `ColumnMap`, `ValidatorMap`, `RelationMap`) with the ''buildtime'' database model (`Database`, `Table`, `Column`, `Validator`, etc.). The buildtime model is very detailed, in order to ease the work of the builders that write the ActiveRecord and Query classes. On the other hand, the runtime model is optimized for speed, and carries minimal information to allow correct hydration and binding at runtime. Behaviors use the buildtime object model, because they are run at buildtime, so they have access to the most powerful model. - -Now rebuild the model and the SQL, and sure enough, the new column is there. `BasePollQuestion` offers a `getTotalNbVotes()` and a `setTotalNbVotes()` method, and the table creation SQL now includes the additional `total_nb_votes` column: - -{{{ -#!sql -DROP TABLE IF EXISTS poll_question; -CREATE TABLE poll_question -( - id INTEGER NOT NULL AUTO_INCREMENT, - title VARCHAR(100), - total_nb_votes INTEGER, - PRIMARY KEY (id) -)Type=InnoDB; -}}} - -'''Tip''': The behavior only adds the column if it's not present (`!$table->containsColumn($columnName)`). So if a user needs to customize the column type, or any other attribute, he can include a `` tag in the table with the same name as defined in the behavior, and the `modifyTable()` will then skip the column addition. - -== Adding A Method To The ActiveRecord Class == - -In the previous post, a method of the ActiveRecord class was in charge of updating the `total_nb_votes` column. A behavior can easily add such methods by implementing the `objectMethods()` method: - -{{{ -#!php -addUpdateAggregateColumn(); - return $script; - } - - protected function addUpdateAggregateColumn() - { - $sql = sprintf('SELECT %s FROM %s WHERE %s = ?', - $this->getParameter('expression'), - $this->getParameter('foreign_table'), - $this->getParameter('foreign_column') - ); - $table = $this->getTable(); - $aggregateColumn = $table->getColumn($this->getParameter('name')); - $columnPhpName = $aggregateColumn->getPhpName(); - $localColumn = $table->getColumn($this->getParameter('local_column')); - return " -/** - * Updates the aggregate column {$aggregateColumn->getName()} - * - * @param PropelPDO \$con A connection object - */ -public function update{$columnPhpName}(PropelPDO \$con) -{ - \$sql = '{$sql}'; - \$stmt = \$con->prepare(\$sql); - \$stmt->execute(array(\$this->get{$localColumn->getPhpName()}())); - \$this->set{$columnPhpName}(\$stmt->fetchColumn()); - \$this->save(\$con); -} -"; - } -} -}}} - -The ActiveRecord class builder expects a string in return to the call to `Behavior::objectMethods()`, and appends this string to the generated code of the ActiveRecord class. Don't bother about indentation: builder classes know how to properly indent a string returned by a behavior. A good rule of thumb is to create one behavior method for each added method, to provide better readability. - -Of course, the schema must be modified to supply the necessary parameters to the behavior: - -{{{ -#!xml - - - - - - - - - - - -
- - - - - - - - -
-
-}}} - -Now if you rebuild the model, you will see the new `updateTotalNbVotes()` method in the generated `BasePollQuestion` class: - -{{{ -#!php -prepare($sql); - $stmt->execute(array($this->getId())); - $this->setTotalNbVotes($stmt->fetchColumn()); - $this->save($con); - } -} -}}} - -Behaviors offer similar hook methods to allow the addition of methods to the query classes (`queryMethods()`) and to the peer classes (`peerMethods()`). And if you need to add attributes, just implement one of the `objectAttributes()`, `queryAttributes()`, or `peerAttributes()` methods. - -== Using a Template For Generated Code == - -The behavior's `addUpdateAggregateColumn()` method is somehow hard to read, because of the large string containing the PHP code canvas for the added method. Propel behaviors can take advantage of Propel's simple templating system to use an external file as template for the code to insert. - -Let's refactor the `addUpdateAggregateColumn()` method to take advantage of this feature: - -{{{ -#!php -getParameter('expression'), - $this->getParameter('foreign_table'), - $this->getParameter('foreign_column') - ); - $table = $this->getTable(); - $aggregateColumn = $table->getColumn($this->getParameter('name')); - return $this->renderTemplate('objectUpdateAggregate', array( - 'aggregateColumn' => $aggregateColumn, - 'columnPhpName' => $aggregateColumn->getPhpName(), - 'localColumn' => $table->getColumn($this->getParameter('local_column')), - 'sql' => $sql, - )); - } -} -}}} - -The method no longer returns a string created by hand, but a ''rendered template''. Propel templates are simple PHP files executed in a sandbox - they have only access to the variables declared as second argument of the `renderTemplate()` call. - -Now create a `templates/` directory in the same directory as the `AggregateColumnBehavior` class file, and add in a `objectUpdateAggregate.php` file with the following code: - -{{{ -#!php -/** - * Updates the aggregate column getName() ?> - * - * @param PropelPDO $con A connection object - */ -public function update(PropelPDO $con) -{ - $sql = ''; - $stmt = $con->prepare($sql); - $stmt->execute(array($this->getgetPhpName() ?>())); - $this->set($stmt->fetchColumn()); - $this->save($con); -} -}}} - -No need to escape dollar signs anymore: this syntax allows for a cleaner separation, and is very convenient for large behaviors. - -== Adding Another Behavior From A Behavior == - -This is where it's getting tricky. In the [http://propel.posterous.com/getting-to-know-propel-15-keeping-an-aggregat blog post] describing the column aggregation technique, the calls to the `updateTotalNbVotes()` method come from the `postSave()` and `postDelete()` hooks of the `PollAnswer` class. But the current behavior is applied to the `poll_question` table, how can it modify the code of a class based on another table? - -The short answer is: it can't. To modify the classes built for the `poll_answer` table, a behavior must be registered on the `poll_answer` table. But a behavior is just like a column or a foreign key: it has an object counterpart in the buildtime database model. So the trick here is to modify the `AggregateColumnBehavior::modifyTable()` method to ''add a new behavior'' to the foreign table. This second behavior will be in charge of implementing the `postSave()` and `postDelete()` hooks of the `PollAnswer` class. - -{{{ -#!php -getDatabase()->getTable($this->getParameter('foreign_table')); - if (!$foreignTable->hasBehavior('concrete_inheritance_parent')) { - require_once 'AggregateColumnRelationBehavior.php'; - $relationBehavior = new AggregateColumnRelationBehavior(); - $relationBehavior->setName('aggregate_column_relation'); - $relationBehavior->addParameter(array( - 'name' => 'foreign_table', - 'value' => $table->getName() - )); - $relationBehavior->addParameter(array( - 'name' => 'foreign_column', - 'value' => $this->getParameter('name') - )); - $foreignTable->addBehavior($relationBehavior); - } - } -} -}}} - -In practice, everything now happens as if the `poll_answer` had its own behavior: - -{{{ -#!xml - - - - - - - - -
-
-}}} - -Adding a behavior to a `Table` instance, as well as adding a `Parameter` to a `Behavior` instance, is quite straightforward. And since the second behavior class file is required in the `modifyTable()` method, there is no need to add a path for it in the `build.properties`. - -== Adding Code For Model Hooks == - -The new `AggregateColumnRelationBehavior` is yet to write. It must implement a call to `PollQuestion::updateTotalNbVotes()` in the `postSave()` and `postDelete()` hooks. - -Adding code to hooks from a behavior is just like adding methods: add a method with the right hook name returning a code string, and the code will get appended at the right place. Unsurprisingly, the behavior hook methods for `postSave()` and `postDelete()` are called `postSave()` and `postDelete()`: - -{{{ -#!php - null, - 'foreignColumn' => null, - ); - - public function postSave() - { - $table = $this->getTable(); - $foreignTable = $table->getDatabase()->getTable($this->getParameter('foreign_table')); - $foreignColumn = $foreignTable->getColumn($this->getParameter('foreign_column')); - $foreignColumnPhpName = $foreignColumn->getPhpName(); - return "\$this->updateRelated{$foreignColumnPhpName}(\$con)"; - } - - public function postDelete() - { - return $this->postSave(); - } - - public function objectMethods() - { - $script = ''; - $script .= $this->addUpdateRelatedAggregateColumn(); - return $script; - } - - protected function addUpdateRelatedAggregateColumn() - { - $table = $this->getTable(); - $foreignTable = $table->getDatabase()->getTable($this->getParameter('foreign_table')); - $foreignTablePhpName = foreignTable->getPhpName(); - $foreignColumn = $foreignTable->getColumn($this->getParameter('foreign_column')); - $foreignColumnPhpName = $foreignColumn->getPhpName(); - return " -/** - * Updates an aggregate column in the foreign {$foreignTable->getName()} table - * - * @param PropelPDO \$con A connection object - */ -protected function updateRelated{$foreignColumnPhpName}(PropelPDO \$con) -{ - if (\$parent{$foreignTablePhpName} = \$this->get{$foreignTablePhpName}()) { - \$parent{$foreignTablePhpName}->update{$foreignColumnPhpName}(\$con); - } -} -"; - } -} -}}} - -The `postSave()` and `postDelete()` behavior hooks will not add code to the ActiveRecord `postSave()` and `postDelete()` methods - to allow users to further implement these methods - but instead it adds code directly to the `save()` and `delete()` methods, inside a transaction. Check the generated `BasePollAnswer` class for the added code in these methods: - -{{{ -#!php -updateRelatedTotalNbVotes($con); -}}} - -You will also see the new `updateRelatedTotalNbVotes()` method added by `AggregateColumnBehavior::objectMethods()`: - -{{{ -#!php -getPollQuestion()) { - $parentPollQuestion->updateTotalNbVotes($con); - } -} -}}} - -== What's Left == - -These are the basics of behavior writing: implement one of the methods documented in the [wiki:Documentation/1.5/Behaviors#WritingaBehavior behaviors chapter] of the Propel guide, and return strings containing the code to be added to the ActiveRecord, Query, and Peer classes. In addition to the behavior code, you should always write unit tests - all the behaviors bundled with Propel have full unit test coverage. And to make your behavior usable by others, documentation is highly recommended. Once again, Propel core behaviors are fully documented, to let users understand the behavior usage without having to peek into the code. - -As for the `AggregateColumnBehavior`, the job is not finished. The [http://propel.posterous.com/getting-to-know-propel-15-keeping-an-aggregat blog post] emphasized the need for hooks in the Query class, and these are not yet implemented in the above code. Besides, the post kept quiet about one use case that left the aggregate column not up to date (when a question is detached from a poll without deleting it). Lastly, the parameters required for this behavior are currently a bit verbose, especially concerning the need to define the foreign table and the foreign key - this could be simplified thanks to the knowledge of the object model that behaviors have. - -All this is left to the reader as an exercise. Fortunately, the final behavior is part of the Propel core behaviors, so the [browser:branches/1.5/generator/lib/behavior/aggregate_column code], [browser:branches/1.5/test/testsuite/generator/behavior/aggregate_column unit tests], and [wiki:Documentation/1.5/Behaviors/aggregate_column documentation] are all ready to help you to further understand the power of Propel's behavior system. \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/guide/01-Installation.txt b/airtime_mvc/library/propel/docs/guide/01-Installation.txt deleted file mode 100644 index f5ca02442a..0000000000 --- a/airtime_mvc/library/propel/docs/guide/01-Installation.txt +++ /dev/null @@ -1,164 +0,0 @@ -= Installing Propel = - -[[PageOutline]] - -Propel is available as a [http://pear.php.net/manual/en/installation.getting.php PEAR] package, as a "traditional" tgz or zip package, and as a checkout from a Subversion repository. Whatever installation method you may choose, getting Propel to work is pretty straightforward. - -== Prerequisites == - -Propel requirements are very light, allowing it to run on most PHP platforms: - - * [http://www.php.net/ PHP 5.2.4] or newer, with the DOM (libxml2) module enabled - * A supported database (MySQL, MS SQL Server, PostgreSQL, SQLite, Oracle) - -'''Tip''': Propel uses the PDO and SPL components, which are bundled and enabled by default in PHP5. - -== Propel Components == - -The Propel library is made of two components: a '''generator''', and a '''runtime library'''. These components are not co-dependent, and can be installed independently from each other. - -The generator is needed to build the object model, but is not required for running applications that use Propel. - -The runtime classes provide the shared functionality that is used by the Propel-generated object model classes. These are necessary to run applications that use Propel to access the database. - -Usually, both the generator and the runtime components are installed on development environments, while the actual test or production servers need only the runtime components installed. For your first contact with Propel, just install both. - -== Installing Propel == - -=== Installing Propel From PEAR === - -In order to install the Propel packages, you must add the `pear.propelorm.org` channel to your PEAR environment. Once the channel is discovered, you can install the generator package, or the runtime package, or both. Use the '-a' option to let PEAR download and install dependencies. - -{{{ -#!sh -> pear channel-discover pear.propelorm.org -> pear install -a propel/propel_generator -> pear install -a propel/propel_runtime -}}} - -Propel is now installed, and you can test it by following the instructions of the '''Testing Propel Installation''' section at the end of this page. - -Tip: If you want to install non-stable versions of Propel, change your `preferred_state` PEAR environment variable before installoing the Propel packages. Valid states include 'stable', 'beta', 'alpha', and 'devel': - -{{{ -#!sh -> pear config-set preferred_state beta -}}} - -=== Dependencies for Tarball and Subversion Versions === - -The Propel generator uses [http://phing.info/ Phing 2.3.3] to manage command line tasks; both the generator and the runtime classes use [http://pear.php.net/package/Log/ PEAR Log] to log events. - -If you choose to install Propel via PEAR, these components will be automatically installed as dependencies. If you choose to install Propel from a tarball or a Subversion checkout, you'll have to install them manually: - -{{{ -#!sh -> pear channel-discover pear.phing.info -> pear install phing/phing -> pear install Log -}}} - -Refer to their respective websites for alternative installation strategies for Phing and Log. - -=== Installing Propel From Subversion === - -Installing from SVN trunk ensures that you have the most up-to-date source code. - -{{{ -#!sh -> svn checkout http://svn.propelorm.org/branches/1.5 /usr/local/propel -}}} - -This will export both the generator and runtime components to your local `propel` directory. In addition, you'll also get Propel documentation and unit tests - that's why this method is the preferred installation method for Propel contributors. - -Once this is done, you'll need to setup your PHP environment to use this library - see the '''Setting Up PHP for Propel''' section below. - -Note: `branches/1.5` is currently more uptodate code than `trunk`; trunk is what will become 2.0, however it has had very little work done to it in a long time. - -=== Installing Propel From a Tarball === - -Download a tarball of each of the Propel components from the Propel website, and uncompress them into the location that best suits your need. For instance, in Linux: - -{{{ -#!sh -> cd /usr/local -> mkdir propel -> cd propel -> wget http://pear.propelorm.org/get/propel_generator-1.5.0.tgz -> tar zxvf propel_generator-1.5.0.tgz -> wget http://pear.propelorm.org/get/propel_runtime-1.5.0.tgz -> tar zxvf propel_runtime-1.5.0.tgz -}}} - -Once this is done, you'll need to setup your PHP environment to use this library. - -== Setting Up PHP for the Propel Generator == - -The following instructions are only required if you installed Propel from a tarball, or from Subversion. - -The Propel generator component bundles a `propel-gen` sh script (and a `propel-gen.bat` script for Windows). This script simplifies the commandline invocation of the Propel generator by hiding any references to Phing. - -You can call it directly from the command line: - -{{{ -#!sh -> /usr/local/propel/generator/bin/propel-gen -}}} - -In order to allow an easier execution the script, you can also: - - * add the propel generator's `bin/` directory to your PATH, - * or copy the `propel-gen` script to a location on your PAH, - * or (on Linux systems) create a symlink. For example: - -{{{ -#!sh -> cd /usr/local/bin -> ln -s /usr/local/propel/generator/bin/propel-gen propel-gen -}}} - -== Testing Propel Installation == - -You can test that the '''Propel generator''' component is properly installed by calling the `propel-gen` script from the CLI: - -{{{ -#!sh -> propel-gen -}}} - -The script should output a few lines before displaying a 'BUILD FAILED' message, which is normal - you haven't defined a database model yet. - -You can test that the '''Propel runtime''' component is properly installed by requiring the `Propel.php` script, as follows: - -{{{ -#!php -` tag: - -{{{ -#!xml - - - - -}}} - -The `name` attribute defines the name of the connection that Propel uses for the tables in this schema. It is not necessarily the name of the actual database. In fact, Propel uses a second file to link a connection name with real connection settings (like databae name, user and password). This `runtime-conf.xml` file will be explained later in this chapter. - -The `defaultIdMethod` attribute indicates that the tables in this schema use the database's "native" auto-increment/sequence features to handle id columns that are set to auto-increment. - -'''Tip''': You can define several schemas for a single project. Just make sure that each of the schema filenames end with `schema.xml`. - -=== Tables And Columns === - -Within the `` tag, Propel expects one `` tag for each table: - -{{{ -#!xml - - -
- -
- - -
- - -
-
-}}} - -This time, the `name` attributes are the real table names. The `phpName` is the name that Propel will use for the generated PHP class. By default, Propel uses a CamelCase version of the table name as its phpName - that means that you could omit the `phpName` attribute in the example above. - -Within each set of `` tags, define the columns that belong to that table: - -{{{ -#!xml - - -
- - - - - -
- - - - -
- - - -
-
-}}} - -Each column has a `name` (the one used by the database), and an optional `phpName` attribute. Once again, the Propel default behavior is to use a CamelCase version of the `name` as `phpName` when not specified. - -Each column also requires a `type`. The XML schema is database agnostic, so the column types and attributes are probably not exactly the same as the one you use in your own database. But Propel knows how to map the schema types with SQL types for many database vendors. Existing Propel column types are boolean, tinyint, smallint, integer, bigint, double, float, real, decimal, char, varchar, longvarchar, date, time, timestamp, blob, and clob. Some column types use a `size` (like `varchar` and `int`), some have unlimited size (`longvarchar`, `clob`, `blob`). - -As for the other column attributes, `required`, `primaryKey`, and `autoIncrement`, they mean exactly what their names suppose. - -'''Tip''': Propel supports namespaces (for PHP > 5.3). If you specify a `namespace` attribute in a `` element, the generated PHP classes for this table will use this namespace. - -=== Foreign Keys === - -A table can have several `` tags, describing foreign keys to foreign tables. Each `` tag consists of one or more mappings between a local column and a foreign column. - -{{{ -#!xml - - -
- - - - - - - - - - - -
- - - - -
- - - -
-
-}}} - -A foreign key represents a relationship. Just like a table or a column, a relationship has a `phpName`. By default, Propel uses the `phpName` of the foreign table as the `phpName` of the relation. The `refPhpName` defines the name of the relation as seen from the foreign table. - -There are many more attributes and elements available to describe a datamodel. Propel's documentation provides a complete [wiki:Documentation/1.5/Schema reference of the schema syntax], together with a [source:branches/1.5/generator/resources/dtd/database.dtd DTD] and a [source:branches/1.5/generator/resources/xsd/database.xsd XSD] schema for its validation. - -== Building The Model == - -=== Setting Up Build Configuration === - -The build process is highly customizable. Whether you need the generated classes to inherit one of your classes rather than Propel's base classes, or to enable/disable some methods in the generated classes, pretty much every customization is possible. Of course, Propel provides sensible defaults, so that you actually need to define only two settings for the build process to start: the RDBMS you are going to use, and a name for your project. - -Propel expects the build configuration to be stored in a file called `build.properties`, and stored at the same level as the `schema.xml`. Here is an example for a MySQL database: - -{{{ -#!ini -# Database driver -propel.database = mysql - -# Project name -propel.project = bookstore -}}} - -Use your own database vendor driver, chosen among pgsql, mysql, sqlite, mssql, and oracle. - -You can learn more about the available build settings and their possible values in the [wiki:Documentation/1.5/BuildConfiguration build configuration reference]. - -=== Using the `propel-gen` Script To Build The Model === - -The Propel generator uses the `propel-gen` script, as seen in the previous chapter. This executable expects a command name as its argument. - -Open a terminal and browse to the `bookstore/` directory, where you saved the two previous files (`schema.xml`, and `build.properties`). Then use the `propel-gen` script to call the "Object Model generator" command using its shortcut - "om": - -{{{ -> cd /path/to/bookstore -> propel-gen om -}}} - -You should normally see a some colored lines appear in the terminal, logging all the class generation, and ending with "BUILD FINISHED". If not, look for red lines in the log and follow the directions in the error messages. - -=== Generated Object Model === - -The "om" command added a new directory in the `bookstore/` project, called `build/`. The generated model classes are located under the `classes/bookstore/` subdirectory: - -{{{ -> cd /path/to/bookstore -> cd build/classes/bookstore/ -> ls - om/ - map/ - Author.php - AuthorPeer.php - AuthorQuery.php - Book.php - BookPeer.php - BookQuery.php - Publisher.php - PublisherPeer.php - PublisherQuery.php -}}} - -For every table in the database, Propel creates 3 PHP classes: - - * a ''model'' class (e.g. `Book`), which represents a row in the database; - * a ''peer'' class (e.g. `BookPeer`), offering static constants and methods mostly for compatibility with previous Propel versions; - * a ''query'' class (e.g. `BookQuery`), used to operate on a table to retrieve and update rows - -Propel uses the `phpName` attribute of each table as the base for the PHP class names. - -All these classes are empty, but they inherit from `Base` classes that you will find under the `om/` directory: - -{{{ -#!php - cd /path/to/bookstore -> propel-gen sql -}}} - -The generated SQL definition can be found in the `build/sql/schema.sql` file. The code is optimized for the database driver defined in the `build.properties`. - -=== Using The SQL File === - -Create the database and setup the access permissions using your favorite database client. For instance, to create the `my_db_name` database with MySQL, type: - -{{{ -> mysqladmin -u root -p create my_db_name -}}} - -Now you can use the generated code directly: - -{{{ -> mysql -u root -p my_db_name < build/sql/schema.sql -}}} - -'''Tip''': The `schema.sql` file will DROP any existing table before creating them, which will effectively erase your database. - -Depending on which RDBMS you are using, it may be normal to see some errors (e.g. "unable to DROP...") when you first run this command. This is because some databases have no way of checking to see whether a database object exists before attempting to DROP it (MySQL is a notable exception). It is safe to disregard these errors, and you can always run the script a second time to make sure that the errors are no longer present. - -=== Inserting SQL With `propel-gen` === - -As an alternative to using the generated sql code directly, you can ask Propel to insert it directly into your database. Start by defining the database connection settings in the `build.properties`, as follows: - -{{{ -# Connection parameters -propel.database.url = mysql:host=localhost;dbname=my_db_name -propel.database.user = my_db_user -propel.database.password = my_db_password - -# Other examples: -# propel.database.url = sqlite:/path/to/bookstore.db -# propel.database.url = pgsql:host=localhost dbname=my_db_name user=my_db_user password=my_db_password -}}} - -The `propel.database.url` setting should be a PDO DSN (see the [http://www.php.net/pdo PDO documentation] for more information about vendor-specific DSN). The `user` and `password` are only necessary for the `mysql` and `oracle` drivers. - -Then use the `propel-gen` script with the "insert-sql" command to connect to the database and inject the generated SQL code: - -{{{ -> cd /path/to/bookstore -> propel-gen insert-sql -}}} - -== Runtime Connection Settings == - -The database and PHP classes are now ready to be used. But they don't know yet how to communicate with each other at runtime. You must add a configuration file so that the generated object model classes and the shared Propel runtime classes can connect to the database, and log the Propel activity. - -=== Writing The XML Runtime Configuration === - -Create a file called `runtime-conf.xml` at the root of the `bookstore` project, using the following content: -{{{ -#!xml - - - - - - - mysql - - mysql:host=localhost;dbname=my_db_name - my_db_user - my_db_password - - - - - -}}} - -Notice how the `id` attribute of the `` tag matches the connection name defined in the `` tag of the `schema.xml`. This is how Propel maps a database description to a connection. - -Replace the `` and the `` settings wit hthe ones of your database. - -See the [wiki:Documentation/1.5/RuntimeConfiguration runtime configuration reference] for a more detailed explanation of this file. - -'''Tip''': If you uncomment the `` section, Propel will attempt to instantiate the `Log` class (from the [http://pear.php.net/package/Log/ PEAR Log] package) with the specified parameters and use that to log queries. Propel's statement logging happens at the DEBUG level (7); errors and warnings are logged at the appropriate (non-debug) level. - -=== Building the Runtime Configuration === - -For performance reasons, Propel prefers to use a PHP version of the connection settings rather than the XML file you just defined. So you must use the `propel-gen` script one last time to build the PHP version of the `runtime-conf.xml` configuration: - -{{{ -> cd /path/to/bookstore -> propel-gen convert-conf -}}} - -The resulting file can be found under `build/conf/bookstore-conf.php`, where "bookstore" is the name of the project you defined in `build.properties`. - -'''Tip''': As you saw, a Propel project setup requires that you call three commands with the `propel-gen` script: `om`, `sql`, and `convert-conf`. This is so usual that if you call the `propel-gen` script with no parameter, it will execute these three commands in a row: - -{{{ -> cd /path/to/bookstore -> propel-gen -}}} - -== Setting Up Propel == - -This is the final step: initialize Propel in your PHP script. You may wish to do this step in an init or setup script that is included at the beginning of your PHP scripts. - -Here is a sample initialization file: - -{{{ -#!php -setFirstName('Jane'); -$author->setLastName('austen'); -$author->save(); -}}} - -The column names used in the `setXXX()` methods correspond to the `phpName` attribute of the `` tag in your schema, or to a CamelCase version of the column name if the `phpName` is not set. - -In the background, the call to `save()` results in the following SQL being executed on the database: -{{{ -#!sql -INSERT INTO author (first_name, last_name) VALUES ('Jane', 'Austen'); -}}} - -== Reading Object Properties == - -Propel maps the columns of a table into properties of the generated objects. For each property, you can use a generated getter to access it. - -{{{ -#!php -getId(); // 1 -echo $author->getFirstName(); // 'Jane' -echo $author->getLastName(); // 'austen' -}}} - -The `id` column was set automatically by the database, since the `schema.xml` defines it as an `autoIncrement` column. The value is very easy to retrieve once the object is saved: just call the getter on the column phpName. - -These calls don't issue a database query, since the `Author` object is already loaded in memory. - -== Retrieving Rows == - -Retrieving objects from the database, also referred to as ''hydrating'' objects, is essentially the process of executing a SELECT query against the database and populating a new instance of the appropriate object with the contents of each returned row. - -In Propel, you use the generated Query objects to select existing rows from the database. - -=== Retrieving by Primary Key === - -The simplest way to retrieve a row from the database, is to use the generated `findPK()` method. It simply expects the value of the primary key of the row to be retrieved. - -{{{ -#!php -findPK(1); -// now $firstBook is an Author object, or NULL if no match was found. -}}} - -This issues a simple SELECT SQL query. For instance, for MySQL: - -{{{ -#!sql -SELECT author.id, author.first_name, author.last_name -FROM `author` -WHERE author.id = 1 -LIMIT 1; -}}} - -When the primary key consists of more than one column, `findPK()` accepts multiple parameters, one for each primary key column. - -'''Tip''': Every generated Query objects offers a factory method called `create()`. This methods creates a new instance of the query, and allows you to write queries in a single line: - -{{{ -#!php -findPK(1); -}}} - -You can also select multiple objects based on their primary keys, by calling the generated `findPKs()` method. It takes an array of primary keys as a parameter: - -{{{ -#!php -findPKs(array(1,2,3,4,5,6,7)); -// $selectedAuthors is a collection of Author objects -}}} - -=== Querying the Database === - -To retrieve rows other than by the primary key, use the Query's `find()` method. - -An empty Query object carries no condition, and returns all the rows of the table -{{{ -#!php -find(); -// $authors contains a collection of Author objects -// one object for every row of the author table -foreach($authors as $author) { - echo $author->getFirstName(); -} -}}} - -To add a simple condition on a given column, use one of the generated `filterByXXX()` methods of the Query object, where `XXX` is a column phpName. Since `filterByXXX()` methods return the current query object, you can continue to add conditions or end the query with the result of the method call. For instance, to filter by first name: - -{{{ -#!php -filterByFirstName('Jane') - ->find(); -}}} - -When you pass a value to a `filterByXXX()` method, Propel uses the column type to escape this value in PDO. This protects you from SQL injection risks. - -You can also easily limit and order the results on a query. Once again, the Query methods return the current Query object, so you can easily chain them: - -{{{ -#!php -orderByLastName() - ->limit(10) - ->find(); -}}} - -`find()` always returns a collection of objects, even if there is only one result. If you know that you need a single result, use `findOne()` instead of `find()`. It will add the limit and return a single object instead of an array: - -{{{ -#!php -filterByFirstName('Jane') - ->findOne(); -}}} - -'''Tip''': Propel provides magic methods for this simple use case. So you can write the above query as: - -{{{ -#!php -findOneByFirstName('Jane'); -}}} - -The Propel Query API is very powerful. The next chapter will teach you to use it to add conditions on related objects. If you can't wait, jump to the [wiki:Documentation/1.5/ModelCriteria Query API reference]. - -=== Using Custom SQL === - -The `Query` class provides a relatively simple approach to constructing a query. Its database neutrality and logical simplicity make it a good choice for expressing many common queries. However, for a very complex query, it may prove more effective (and less painful) to simply use a custom SQL query to hydrate your Propel objects. - -As Propel uses PDO to query the underlying database, you can always write custom queries using the PDO syntax. For instance, if you have to use a sub-select: - -{{{ -#!php -prepare($sql); -$stmt->execute(array(':name' => 'Tolstoy'); -}}} - -With only a little bit more work, you can also populate `Book` objects from the resulting statement. Create a new `PropelObjectCollection` for the `Book` model, and call the `format()` method using the statement: - -{{{ -#!php -setModelName('Book'); -$books = $coll->format($stmt); -// $books contains a collection of Book objects -}}} - -There are a few important things to remember when using custom SQL to populate Propel: - * The resultset columns must be numerically indexed - * The resultset must contain all columns in the object - * The resultset must have columns ''in the same order'' as they are defined in the `schema.xml` file - -== Updating Objects == - -Updating database rows basically involves retrieving objects, modifying the contents, and then saving them. In practice, for Propel, this is a combination of what you've already seen in the previous sections: - -{{{ -#!php -findOneByFirstName('Jane'); -$author->setLastName('Austen'); -$author->save(); -}}} - -Alternatively, you can update several rows based on a Query using the query object's `update()` method: - -{{{ -#!php -filterByFirstName('Jane') - ->update(array('LastName' => 'Austen')); -}}} - -This last method is better for updating several rows at once, or if you didn't retrieve the objects before. - -== Deleting Objects == - -Deleting objects works the same as updating them. You can either delete an existing object: - -{{{ -#!php -findOneByFirstName('Jane'); -$author->delete(); -}}} - -Or use the `delete()` method in the query: - -{{{ -#!php -filterByFirstName('Jane') - ->delete(); -}}} - -'''Tip''': A deleted object still lives in the PHP code. It is marked as deleted and cannot be saved anymore, but you can still read its properties: - -{{{ -#!php -isDeleted(); // true -echo $author->getFirstName(); // 'Jane' -}}} - -== Termination Methods == - -The Query methods that don't return the current query object are called "Termination Methods". You've alread seen come of them: `find()`, `findOne()`, `update()`, `delete()`. There are two more termination methods that you should know about: - -{{{ -#!php -count(); -// You could also count the number of results from a find(), but that would be less effective, -// since it implies hydrating objects just to count them - -// paginate() returns a paginated list of results -$authorPager = AuthorQuery::create()->paginate($page = 1, $maxPerPage = 10); -// This method will compute an offset and a limit -// based on the number of the page and the max number of results per page. -// The result is a PropelModelPager object, over which you can iterate: -foreach ($authorPager as $author) { - echo $author->getFirstName(); -} -// a pager object gives more information -echo $pager->getNbResults(); // total number of results if not paginated -echo $pager->haveToPaginate(); // return true if the total number of results exceeds the maximum per page -echo $pager->getFirstIndex(); // index of the first result in the page -echo $pager->getLastIndex(); // index of the last result in the page -$links = $pager->getLinks(5); // array of page numbers around the current page; useful to display pagination controls -}}} - -== Collections And On-Demand Hydration == - -The `find()` method of generated Model Query objects returns a `PropelCollection` object. You can use this object just like an array of model objects, iterate over it using `foreach`, access the objects by key, etc. - -{{{ -#!php -limit(5) - ->find(); -foreach ($authors as $author) { - echo $authors->getFirstName(); -} -}}} - -The advantage of using a collection instead of an array is that Propel can hydrate model objects on demand. Using this feature, you'll never fall short of memory when retrieving a large number of results. Available through the `setFormatter()` method of Model Queries, on-demand hydration is very easy to trigger: - -{{{ -#!php -limit(50000) - ->setFormatter(ModelCriteria::FORMAT_ON_DEMAND) // just add this line - ->find(); -foreach ($authors as $author) { - echo $author->getFirstName(); -} -}}} - -In this example, Propel will hydrate the `Author` objects row by row, after the `foreach` call, and reuse the memory between each iteration. The consequence is that the above code won't use more memory when the query returns 50,000 results than when it returns 5. - -`ModelCriteria::FORMAT_ON_DEMAND` is one of the many formatters provided by the Query objects. You can also get a collection of associative arrays instead of objects, if you don't need any of the logic stored in your model object, by using `ModelCriteria::FORMAT_ARRAY`. - -The [wiki:Documentation/1.5/ModelCriteria Query API reference] describes each formatter, and how to use it. - -== Propel Instance Pool == - -Propel keeps a list of the objects that you already retrieved in memory to avoid calling the same request twice in a PHP script. This list is called the instance pool, and is automatically populated from your past requests: - -{{{ -#!php -findPk(1); -// Issues a SELECT query -... -// second call -$author2 = AuthorQuery::create()->findPk(1); -// Skips the SQL query and returns the existing $author1 object -}}} diff --git a/airtime_mvc/library/propel/docs/guide/04-Relationships.txt b/airtime_mvc/library/propel/docs/guide/04-Relationships.txt deleted file mode 100644 index 6e5de3c682..0000000000 --- a/airtime_mvc/library/propel/docs/guide/04-Relationships.txt +++ /dev/null @@ -1,386 +0,0 @@ -= Basic Relationships = - -[[PageOutline]] - -The definition of foreign keys in your schema allows Propel to add smart methods to the generated model and query objects. In practice, these generated methods mean that you will never actually have to deal with primary and foreign keys yourself. It makes the task of dealing with relations extremely straightforward. - -== Inserting A Related Row == - -Propel creates setters for related objects that simplify the foreign key handling. You don't actually have to define a foreign key value. Instead, just set a related object, as follows: - -{{{ -#!php -setFirstName("Leo"); -$author->setLastName("Tolstoy"); -$author->save(); - -$book = new Book(); -$book->setTitle("War & Peace"); -// associate the $author object with the current $book -$book->setAuthor($author); -$book->save(); -}}} - -Propel generates the `setAuthor()` method based on the `phpName` attribute of the `` element in the schema. When the attribute is not set, Propel uses the `phpName` of the related table instead. - -Internally, the call to `Book::setAuthor($author)` translates into `Book::setAuthorId($author->getId())`. But you don't actually have to save a Propel object before associating it to another. In fact, Propel automatically "cascades" INSERT statements when a new object has other related objects added to it. - -For one-to-many relationships - meaning, from the other side of a many-to-one relationship - the process is a little different. In the previous example, one `Book` has one `Author`, but one `Author` has many `Books`. From the `Author` point of view, a one-to-many relationships relates it to `Book`. So Propel doesn't generate an `Author::setBook()`, but rather an `Author::addBook()`: - -{{{ -#!php -setTitle("War & Peace"); -// associate the $author object with the current $book -$book->save(); - -$author = new Author(); -$author->setFirstName("Leo"); -$author->setLastName("Tolstoy"); -$author->addBook($book); -$author->save(); -}}} - -The result is the same in the database - the `author_id` column of the `book` row is correctly set to the `id` of the `author` row. - -== Save Cascade == - -As a matter of fact, you don't need to `save()` an object before relating it. Propel knows which objects are related to each other, and is capable of saving all the unsaved objects if they are related to each other. - -The following example shows how to create new `Author` and `Publisher` objects, which are then added to a new `Book` object; all 3 objects are saved when the `Book::save()` method is eventually invoked. - -{{{ -#!php -setFirstName("Leo"); -$author->setLastName("Tolstoy"); -// no need to save the author yet - -$publisher = new Publisher(); -$publisher->setName("Viking Press"); -// no need to the publisher yet - -$book = new Book(); -$book->setTitle("War & Peace"); -$book->setIsbn("0140444173"); -$book->setPublisher($publisher); -$book->setAuthor($author); -$book->save(); // saves all 3 objects! -}}} - -In practice, Propel '''cascades''' the `save()` action to the related objects. - -== Reading Related Object Properties == - -Just like the related object setters, Propel generates a getter for every relation: - -{{{ -#!php -findPk(1); -$author = $book->getAuthor(); -echo $author->getFirstName(); // 'Leo' -}}} - -Since a relationship can also be seen from the other end, Propel allows the foreign table to retrieve the related objects as well: - -{{{ -#!php -findPk(1); -$books = $author->getBooks(); -foreach ($books as $book) { - echo $book->getTitle(); -} -}}} - -Notice that Propel generated a `getBooks()` method returning an array of `Book` objects, rather than a `getBook()` method. This is because the definition of a foreign key defines a many-to-one relationship, seen from the other end as a one-to-many relationship. - -'''Tip''': Propel also generates a `countBooks()` methods to get the number of related objects without hydrating all the `Book` objects. for performance reasons, you should prefer this method to `count($author->getBooks())`. - -Getters for one-to-many relationship accept an optional query object. This allows you to hydrate related objects, or retrieve only a subset of the related objects, or to reorder the list of results: - -{{{ -#!php -orderByTitle() - ->joinWith('Book.Publisher'); -$books = $author->getBooks($query); -}}} - -== Using Relationships In A Query == - -=== Finding Records Related To Another One === - -If you need to find objects related to a model object that you already have, you can take advantage of the generated `filterByXXX()` methods in the query objects, where `XXX` is a relation name: - -{{{ -#!php -findPk(1); -$books = BookQuery::create() - ->filterByAuthor($author) - ->orderByTitle() - ->find(); -}}} - -You don't need to specify that the `author_id` column of the `Book` object should match the `id` column of the `Author` object. Since you already defined the foreign key mapping in your schema, Propel knows enough to figure it out. - -=== Embedding Queries === - -In SQL queries, relationships often translate to a JOIN statement. Propel abstracts this relational logic in the query objects, by allowing you to ''embed'' a related query into another. - -In practice, Propel generates one `useXXXQuery()` method for every relation in the Query objects. So the `BookQuery` class offers a `useAuthorQuery()` and a `usePublisherQuery()` method. These methods return a new Query instance of the related query class, that you can eventually merge into the main query by calling `endUse()`. - -To illustrate this, let's see how to write the following SQL query with the Propel Query API: - -{{{ -#!sql -SELECT book.* -FROM book INNER JOIN author ON book.AUTHOR_ID = author.ID -WHERE book.ISBN = '0140444173' AND author.FIRST_NAME = 'Leo' -ORDER BY book.TITLE ASC -LIMIT 10; -}}} - -That would simply give: - -{{{ -#!php -filterByISBN('0140444173') - ->useAuthorQuery() // returns a new AuthorQuery instance - ->filterByFirstName('Leo') // this is an AuthorQuery method - ->endUse() // merges the Authorquery in the main Bookquery and returns the BookQuery - ->orderByTitle() - ->limit(10) - ->find(); -}}} - -Propel knows the columns to use in the `ON` clause from the definition of foreign keys in the schema. The ability to use methods of a related Query object allows you to keep your model logic where it belongs. - -Of course, you can embed several queries to issue a query of any complexity level: - -{{{ -#!php -useBookQuery() - ->usePublisherQuery() - ->filterByName('Viking Press') - ->endUse() - ->endUse() - ->find(); -}}} - -You can see how the indentation of the method calls provide a clear explanation of the embedding logic. That's why it is a good practice to format your Propel queries with a single method call per line, and to add indentation every time a `useXXXQuery()` method is used. - -== Many-to-Many Relationships == - -Databases typically use a cross-reference table, or junction table, to materialize the relationship. For instance, if the `user` and `group` tables are related by a many-to-many relationship, this happens through the rows of a `user_group` table. To inform Propel about the many-to-many relationship, set the `isCrossRef` attribute of the cross reference table to true: - -{{{ -#!xml - - - -
- - - - -
- - - - - - - - - - -
-}}} - -Once you rebuild your model, the relationship is seen as a one-to-many relationship from both the `User` and the `Group` models. That means that you can deal with adding and reading relationships the same way as you usually do: - -{{{ -#!php -setName('John Doe'); -$group = new Group(); -$group->setName('Anonymous'); -// relate $user and $group -$user->addGroup($group); -// save the $user object, the $group object, and a new instance of the UserGroup class -$user->save(); -}}} - -The same happens for reading related objects ; Both ends see the relationship as a one-to-many relationship: - -{{{ -#!php -getUsers(); -$nbUsers = $group->countUsers(); -$groups = $user->getGroups(); -$nbGroups = $user->countGroups(); -}}} - -Just like regular related object getters, these generated methods accept an optional query object, to further filter the results. - -To facilitate queries, Propel also adds new methods to the `UserQuery` and `GroupQuery` classes: - -{{{ -#!php -filterByGroup($group) - ->find(); -$groups = GroupQuery::create() - ->filterByUser($user) - ->find(); -}}} - -== One-to-One Relationships == - -Propel supports the special case of one-to-one relationships. These relationships are defined when the primary key is also a foreign key. For example : - -{{{ -#!xml - - - -
- - - - - - - - -
-}}} - -Because the primary key of the `bookstore_employee_account` is also a foreign key to the `bookstore_employee` table, Propel interprets this as a one-to-one relationship and will generate singular methods for both sides of the relationship (`BookstoreEmployee::getBookstoreEmployeeAccount()`, and `BookstoreEmployeeAccount::getBookstoreEmployee()`). - -== On-Update and On-Delete Triggers = - -Propel also supports the ''ON UPDATE'' and ''ON DELETE'' aspect of foreign keys. These properties can be specified in the `` tag using the `onUpdate` and `onDelete` attributes. Propel supports values of `CASCADE`, `SETNULL`, and `RESTRICT` for these attributes. For databases that have native foreign key support, these trigger events will be specified at the datbase level when the foreign keys are created. For databases that do not support foreign keys, this functionality will be emulated by Propel. - -{{{ -#!xml - - - - - - - -
-}}} - -In the example above, the `review` rows will be automatically removed if the related `book` row is deleted. - -== Minimizing Queries == - -Even if you use a foreign query, Propel will issue new queries when you fetch related objects: - -{{{ -#!php -useAuthorQuery() - ->filterByFirstName('Leo') - ->endUse() - ->findOne(); -$author = $book->getAuthor(); // Needs another database query -}}} - -Propel allows you to retrieve the main object together with related objects in a single query. You just the `with()` method to specify which objects the main object should be hydrated with. - -{{{ -#!php -useAuthorQuery() - ->filterByFirstName('Leo') - ->endUse() - ->with('Author') - ->findOne(); -$author = $book->getAuthor(); // Same result, with no supplementary query -}}} - -Since the call to `with()` adds the columns of the related object to the SELECT part of the query, and uses these columns to populate the related object, that means that a query using `with()` is slower and consumes more memory. So use it only when you actually need the related objects afterwards. - -If you don't want to add a filter on a related object but still need to hydrate it, calling `useXXXQuery()`, `endUse()`, and then `with()` can be a little cumbersome. For this case, Propel provides a proxy method called `joinWith()`. It expects a string made of the initial query name and the foreign query name. For instance: - -{{{ -#!php -joinWith('Book.Author') - ->findOne(); -$author = $book->getAuthor(); // Same result, with no supplementary query -}}} - -`with()` and `joinWith()` are not limited to immediate relationships. As a matter of fact, just like you can nest `use()` calls, you can call `with()` several times to populate a chain of objects: - -{{{ -#!php -joinWith('Review.Book') - ->joinWith('Book.Author') - ->joinWith('Book.Publisher') - ->findOne(); -$book = $review->getBook() // No additional query needed -$author = $book->getAuthor(); // No additional query needed -$publisher = $book->getPublisher(); // No additional query needed -}}} - -So `with()` is very useful to minimize the number of database queries. As soon as you see that the number of queries necessary to perform an action is proportional to the number of results, adding a `with()` call is the trick to get down to a more reasonnable query count. - -'''Tip''': `with()` also works for left joins on one-to-many relationships, but you musn't use a `limit()` in the query in this case. This is because Propel has no way to determine the actual number of rows of the main object in such a case. - -{{{ -#!php -leftJoinWith('Author.Book') - ->find(); -// this does not work -$authors = AuthorQuery::create() - ->leftJoinWith('Author.Book') - ->limit(5) - ->find(); -}}} - -However, it is quite easy to achieve hydration of related objects with only one additional query: - -{{{ - #!php -find(); -$authors->populateRelation('Book'); -// now you can iterate over each author's book without further queries -foreach ($authors as $author) { - foreach ($authors->getBooks() as $book) { // no database query, the author already has a Books collection - // do stuff with $book and $author - } -} -}}} \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/guide/05-Validators.txt b/airtime_mvc/library/propel/docs/guide/05-Validators.txt deleted file mode 100644 index 352ea6e1d7..0000000000 --- a/airtime_mvc/library/propel/docs/guide/05-Validators.txt +++ /dev/null @@ -1,253 +0,0 @@ -= Validators = - -[[PageOutline]] - -Validators help you to validate an input before perstisting it to the database. In Propel, validators are rules describing what type of data a column accepts. Validators are referenced in the `schema.xml` file, using `` tags. - -Validators are applied at the PHP level, they are not created as constraints on the database itself. That means that if you also use another language to work with the database, the validator rules will not be enforced. -You can also apply multiple rule entries per validator entry in the schema.xml file. - -== Overview == - -In the following example, the `username` column is defined to have a minimum length of 4 characters: - -{{{ -#!xml - - - - - - -
-}}} - -Every column rule is represented by a `` tag. A `` is a set of `` tags bound to a column. - -At runtime, you can validate an instance of the model by calling the `validate()` method: - -{{{ -#!php -setUsername("foo"); // only 3 in length, which is too short... -if ($objUser->validate()) { - // no validation errors, so the data can be persisted - $user->save(); -} else { - // Something went wrong. - // Use the validationFailures to check what - $failures = $objUser->getValidationFailures(); - foreach($failures as $failure) { - echo $objValidationFailure->getMessage() . "
\n"; - } -} -}}} - -`validate()` returns a boolean. If the validation failed, you can access the array `ValidationFailed` objects by way of the `getValidationFailures()` method. Each `ValidationFailed` instance gives access to the column, the messagen and the validator that caused the failure. - -== Core Validators == - -Propel bundles a set of validatorts that should help you deal with the most common cases. - -=== !MatchValidator === - -The `MatchValidator` is used to run a regular expression of choice against the column. Note that this is a `preg`, not `ereg` (check [http://www.php.net/preg_match the preg_match documentation] for more information about regexps). - -{{{ -#!xml - - - - -}}} - -=== !NotMatchValidator === - -Opposite of `MatchValidator, this validator returns false if the regex returns true - -{{{ -#!xml - - - - - -}}} - -=== !MaxLengthValidator === - -When you want to limit the size of the string to be inserted in a column, use the `MaxLengthValidator`. Internally, it uses `strlen()` to get the length of the string. For instance, some database completely ignore the lentgh of `LONGVARCHAR` columns; you can enforce it using a validator: - -{{{ -#!xml - - - - -}}} - -'''Tip''': If you have specified the `size` attribute in the `` tag, you don't have to specify the `value` attribute in the validator rule again, as this is done automatically. - -=== !MinLengthValidator === - -{{{ -#!xml - - - - -}}} - -=== !MaxValueValidator === - -To limit the value of an integer column, use the `MaxValueValidator`. Note that this validator uses a non-strict comparison ('less than or equal'): - -{{{ -#!xml - - - - -}}} - -=== !MinValueValidator === - -{{{ -#!xml - - - - -}}} - -'''Tip''': You can run multiple validators against a single column. - -{{{ -#!xml - - - - - -}}} - -=== !RequiredValidator === - -This validtor checks the same rule as a `required=true` on the column at the database level. However it will not give you a clean error to work with. - -{{{ -#!xml - - - - -}}} - -=== !UniqueValidator === - -To check whether the value already exists in the table, use the `UniqueValidator`: - -{{{ -#!xml - - - - -}}} - -=== !ValidValuesValidator === - -This rule restricts the valid values to a list delimited by a pipe ('|'). - -{{{ -#!xml - - - - -}}} - -=== !TypeValidator === - -Restrict values to a certain PHP type using the `TypeValidator`: - -{{{ -#!xml - - - - -}}} - -== Adding A Custom Validator == - -You can easily add a custom validator. A validator is a class extending `BasicValidator` providing a public `isValid()` method. For instance: - -{{{ -#!php -` tag. So `$map->getValue()` returns the `value` attribute. - -'''Tip''': Make sure that `isValid()` returns a boolean, so really true or false. Propel is very strict about this. Returning a mixed value just won't do. - -To enable the new validator on a column, add a corresponding `` in your schema and use 'class' as the rule `name`. - -{{{ -#!xml - - - -}}} - -The `class` attribute of the `` tag should contain a path to the validator class accessible from the include_path, where the directory separator is replaced by a dot. \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/guide/06-Transactions.txt b/airtime_mvc/library/propel/docs/guide/06-Transactions.txt deleted file mode 100644 index 55a9240cc4..0000000000 --- a/airtime_mvc/library/propel/docs/guide/06-Transactions.txt +++ /dev/null @@ -1,291 +0,0 @@ -= Transactions = - -[[PageOutline]] - -Database transactions are the key to assure the data integrity and the performance of database queries. Propel uses transactions internally, and provides a simple API to use them in your own code. - -'''Tip''': If the [http://en.wikipedia.org/wiki/ACID ACID] acronym doesn't ring a bell, you should probably learn some [http://en.wikipedia.org/wiki/Database_transaction fundamentals about database transactions] before reading further. - -== Wrapping Queries Inside a Transaction == - -Propel uses PDO as database abstraction layer, and therefore uses [http://www.php.net/manual/en/pdo.transactions.php PDO's built-in support for database transactions]. The syntax is the same, as you can see in the classical "money transfer" example: - -{{{ -#!php -beginTransaction(); - - try { - // remove the amount from $fromAccount - $fromAccount->setValue($fromAccount->getValue() - $amount); - $fromAccount->save($con); - // add the amount to $toAccount - $toAccount->setValue($toAccount->getValue() + $amount); - $toAccount->save($con); - - $con->commit(); - } catch (Exception $e) { - $con->rollback(); - throw $e; - } -} -}}} - -The transaction statements are `beginTransaction()`, `commit()` and `rollback()`, which are methods of the PDO connection object. Transaction methods are typically used inside a `try/catch` block. The exception is rethrown after rolling back the transaction: That ensures that the user knows that something wrong happenned. - -In this example, if something wrong happens while saving either one of the two accounts, an `Exception` is thrown, and the whole operation is rolled back. That means that the transfer is cancelled, with an insurance that the money hasn't vanished (that's the A in ACID, which stands for "Atomicity"). If both account modifications work as expected, the whole transaction is committed, meaning that the data changes enclosed in the transaction are persisted in the database. - -Tip: In order to build a transaction, you need a connection object. The connection object for a Propel model is always available through `Propel::getConnection([ModelName]Peer::DATABASE_NAME)`. - -== Denormalization And Transactions == - -Another example of the use of transactions is for [http://en.wikipedia.org/wiki/Denormalization denormalized schemas]. - -For instance, suppose that you have an `Author` model with a one to many relationship to a `Book` model. every time you need to display the number of books written by an author, you call `countBooks()` on the author object, which issues a new query to the database: - -{{{ -#!php -
    - -
  • getName() ?> (countBooks() ?> books)
  • - -
-}}} - -If you have a large number of authors and books, this simple code snippet can be a real performance blow to your application. The usual way to optimize it is to ''denormalize'' your schema by storing the number of books by each author in a new `nb_books` column, in the `author` table. - -{{{ -#!xml - - - - -
-}}} - -You must update this new column every time you save or delete a `Book` object; this will make write queries a little slower, but read queries much faster. Fortunately, Propel model objects support pre- and post- hooks for the `save()` and `delete()` methods, so this is quite easy to implement: - -{{{ -#!php -updateNbBooks($con); - } - - public function postDelete(PropelPDO $con) - { - $this->updateNbBooks($con); - } - - public function updateNbBooks(PropelPDO $con) - { - $author = $this->getAuthor(); - $nbBooks = $author->countBooks($con); - $author->setNbBooks($nbBooks); - $author->save($con); - } -} -}}} - -The `BaseBook::save()` method wraps the actual database INSERT/UPDATE query inside a transaction, together with any other query registered in a pre- or post- save hook. That means that when you save a book, the `postSave()` code is executed in the same transaction as the actual `$book->save()` method. Everything happens as is the code was the following: - -{{{ -#!php -beginTransaction(); - - try { - // insert/update query for the current object - $this->doSave($con); - - // postSave hook - $author = $this->getAuthor(); - $nbBooks = $author->countBooks($con); - $author->setNbBooks($nbBooks); - $author->save($con); - - $con->commit(); - } catch (Exception $e) { - $con->rollback(); - throw $e; - } - } -} -}}} - -In this example, the `nb_books` column of the `author` table will always we synchronized with the number of books. If anything happens during the transaction, the saving of the book is rolled back, as well as the `nb_books` column update. The transaction serves to preserve data consistency in a denormalized schema ("Consistency" stands for the C in ACID). - -'''Tip''': Check the [wiki:Documentation/1.5/Behaviors behaviors documentation] for details about the pre- and post- hooks in Propel model objects. - -== Nested Transactions == - -Some RDBMS offer the ability to nest transactions, to allow partial rollback of a set of transactions. PDO does not provide this ability at the PHP level; nevertheless, Propel emulates nested transactions for all supported database engines: - -{{{ -#!php -beginTransaction(); - try { - $c = new Criteria(); - $c->add(BookPeer::PRICE, null, Criteria::ISNULL); - BookPeer::doDelete($c, $con); - $con->commit(); - } catch (Exception $e) { - $con->rollback(); - throw $e; - } -} - -function deleteAuthorsWithNoEmail(PropelPDO $con) -{ - $con->beginTransaction(); - try { - $c = new Criteria(); - $c->add(AuthorPeer::EMAIL, null, Criteria::ISNULL); - AuthorPeer::doDelete($c, $con); - $con->commit(); - } catch (Exception $e) { - $con->rollback(); - throw $e; - } -} - -function cleanup(PropelPDO $con) -{ - $con->beginTransaction(); - try { - deleteBooksWithNoPrice($con); - deleteAuthorsWithNoEmail($con); - $con->commit(); - } catch (Exception $e) { - $con->rollback(); - throw $e; - } -} -}}} - -All three functions alter data in a transaction, ensuring data integrity for each. In addition, the `cleanup()` function actually executes two nested transactions inside one main transaction. - -Propel deals with this case by seeing only the outermost transaction, and ignoring the `beginTransaction()`, `commit()` and `rollback()` statements of nested transactions. If nothing wrong happens, then the last `commit()` call (after both `deleteBooksWithNoPrice()` and `deleteAuthorsWithNoEmail()` end) triggers the actual database commit. However, if an exception is thrown in either one of these nested transactions, it is escalated to the main `catch` statement in `cleanup()` so that the entire transaction (starting at the main `beginTransaction()`) is rolled back. - -So you can use transactions everywhere it's necessary in your code, without worrying about nesting them. Propel will always commit or rollback everything altogether, whether the RDBMS supports nested transactions or not. - -'''Tip''': This allows you to wrap all your application code inside one big transaction for a better integrity. - -== Using Transactions To Boost Performance == - -A database transaction has a cost in terms of performance. In fact, for simple data manipulation, the cost of the transaction is more important than the cost of the query itself. Take the following example: - -{{{ -#!php -setTitle($i . ': A Space Odyssey'); - $book->save($con); -} -}}} - -As explained earlier, Propel wraps every save operation inside a transaction. In terms of execution time, this is very expensive. Here is how the above code would translate to MySQL in an InnodDB table: - -{{{ -#!sql -BEGIN; -INSERT INTO book (`ID`,`TITLE`) VALUES (NULL,'0: A Space Odyssey'); -COMMIT; -BEGIN; -INSERT INTO book (`ID`,`TITLE`) VALUES (NULL,'1: A Space Odyssey'); -COMMIT; -BEGIN; -INSERT INTO book (`ID`,`TITLE`) VALUES (NULL,'2: A Space Odyssey'); -COMMIT; -... -}}} - -You can take advantage of Propel's nested transaction capabilities to encapsulate the whole loop inside one single transaction. This will reduce the execution time drastically: - -{{{ -#!php -beginTransaction(); -for ($i=0; $i<2002; $i++) -{ - $book = new Book(); - $book->setTitle($i . ': A Space Odyssey'); - $book->save($con); -} -$con->commit(); -}}} - -The transactions inside each `save()` will become nested, and therefore not translated into actual database transactions. Only the outmost transaction will become a database transaction. So this will translate to MySQL as: - -{{{ -#!sql -BEGIN; -INSERT INTO book (`ID`,`TITLE`) VALUES (NULL,'0: A Space Odyssey'); -INSERT INTO book (`ID`,`TITLE`) VALUES (NULL,'1: A Space Odyssey'); -INSERT INTO book (`ID`,`TITLE`) VALUES (NULL,'2: A Space Odyssey'); -... -COMMIT; -}}} - -In practice, encapsulating a large amount of simple queries inside a single transaction significantly improves performance. - -Tip: Until the final `commit()` is called, most database engines lock updated rows, or even tables, to prevent any query outside the transaction from seeing the partially committed data (this is how transactions preserve Isolation, which is the I in ACID). That means that large transactions will queue every other queries for potentially a long time. Consequently, use large transactions only when concurrency is not a requirement. - -== Why Is The Connection Always Passed As Parameter? == - -All the code examples in this chapter show the connection object passed a a parameter to Propel methods that trigger a database query: - -{{{ -#!php -setValue($fromAccount->getValue() - $amount); -$fromAccount->save($con); -}}} - -The same code works without explicitely passing the connection object, because Propel knows how to get the right connection from a Model: - -{{{ -#!php -setValue($fromAccount->getValue() - $amount); -$fromAccount->save(); -}}} - -However, it's a good practice to pass the connection explicitely, and for three reasons: - - * Propel doesn't need to look for a connection object, and this results in a tiny boost in performance. - * You can use a specific connection, which is required in distributed (master/slave) environments, in order to distinguish read and write operations. - * Most importantly, transactions are tied to a single connection. You can't enclose two queries using different connections in a single transaction. So it's very useful to identify the connection you want to use for every query, as Propel will throw an exception if you use the wrong connection. - -== Limitations == - - * Currently there is no support for row locking (e.g. `SELECT blah FOR UPDATE`). - * You must rethrow the exception caught in the `catch` statement of nested transactions, otherwise there is a risk that the global rollback doesn't occur. - * True nested transactions, with partial rollback, are only possible in MSSQL, and can be emulated in other RDBMS through savepoints. This feature may be added to Propel in the future, but for the moment, only the outermost PHP transaction triggers a database transaction. - * If you rollback a partially executed transaction and ignore the exception thrown, there are good chances that some of your objects are out of sync with the database. The good practice is to always let a transaction exception escalate until it stops the script execution. - diff --git a/airtime_mvc/library/propel/docs/guide/07-Behaviors.txt b/airtime_mvc/library/propel/docs/guide/07-Behaviors.txt deleted file mode 100644 index fe0025ec12..0000000000 --- a/airtime_mvc/library/propel/docs/guide/07-Behaviors.txt +++ /dev/null @@ -1,280 +0,0 @@ -= Behaviors = - -[[PageOutline]] - -Behaviors are a great way to package model extensions for reusability. They are the powerful, versatile, fast, and help you organize your code in a better way. - -== Pre and Post Hooks For `save()` And `delete()` Methods == - -The `save()` and `delete()` methods of your generated objects are easy to override. In fact, Propel looks for one of the following methods in your objects and executes them when needed: - -{{{ -#!php - - ... - - -}}} - -Then, you can force the update of the `created_at` column before every insertion as follows: - -{{{ -#!php -setCreatedAt(time()); - return true; - } -} -}}} - -Whenever you call `save()` on a new object, Propel now executes the `preInsert()` method on this objects and therefore update the `created_at` column: - -{{{ -#!php -setTitle('War And Peace'); -$b->save(); -echo $b->getCreatedAt(); // 2009-10-02 18:14:23 -}}} - -If you implement `preInsert()`, `preUpdate()`, `preSave()` or `preDelete()`, these methods must return a boolean value. This determines whether the action (save or delete) may proceed. - -'''Tip''': Since this feature adds a small overhead to write operations, you can deactivate it completely in your build properties by setting `propel.addHooks` to `false`. - -{{{ -#!ini -# ------------------- -# TEMPLATE VARIABLES -# ------------------- -propel.addHooks = false -}}} - -== Introducing Behaviors == - -When several of your custom model classes end up with similar methods added, it is time to refactor the common code. - -For example, you may want to add the same ability you gave to `Book` to all the other objects in your model. Let's call this the "Timestampable behavior", because then all of your rows have a timestamp marking their creation. In order to achieve this behavior, you have to repeat the same operations on every table. First, add a `created_at` column to the other tables: - -{{{ -#!xml - - ... - -
- - ... - -
-}}} - -Then, add a `preInsert()` hook to the object stub classes: - -{{{ -#!php -setCreatedAt(time()); - } -} - -class Author extends BaseAuthor -{ - public function preInsert() - { - $this->setCreatedAt(time()); - } -} -}}} - -Even if the code of this example is very simple, the repetition of code is already too much. Just imagine a more complex behavior, and you will understand that using the copy-and-paste technique soon leads to a maintenance nightmare. - -Propel offers three ways to achieve the refactoring of the common behavior. The first one is to use a custom builder during the build process. This can work if all of your models share one single behavior. The second way is to use table inheritance. The inherited methods then offer limited capabilities. And the third way is to use Propel behaviors. This is the right way to refactor common model logic. - -Behaviors are special objects that use events called during the build process to enhance the generated model classes. Behaviors can add attributes and methods to both the Peer and model classes, they can modify the course of some of the generated methods, and they can even modify the structure of a database by adding columns or tables. - -For instance, Propel bundles a behavior called `timestampable`, which does exatcly the same thing as described above. But instead of adding columns and methods by hand, all you have to do is to declare it in a `` tag in your `schema.xml`, as follows: - -{{{ -#!xml - - ... - -
- - ... - -
-}}} - -Then rebuild your model, and there you go: two columns, `created_at` and `updated_at`, were automatically added to both the `book` and `author` tables. Besides, the generated `BaseBook` and `BaseAuthor` classes already contain the code necessary to auto-set the current time on creation and on insertion. - -== Bundled Behaviors == - -Propel currently bundles several behaviors. Check the behavior documentation for details on usage: - - * [wiki:Documentation/1.5/Behaviors/aggregate_column aggregate_column] - * [wiki:Documentation/1.5/Behaviors/alternative_coding_standards alternative_coding_standards] - * [wiki:Documentation/1.5/Behaviors/auto_add_pk auto_add_pk] - * [wiki:Documentation/1.5/Behaviors/timestampable timestampable] - * [wiki:Documentation/1.5/Behaviors/sluggable sluggable] - * [wiki:Documentation/1.5/Behaviors/soft_delete soft_delete] - * [wiki:Documentation/1.5/Behaviors/sortable sortable] - * [wiki:Documentation/1.5/Behaviors/nested_set nested_set] - * [wiki:Documentation/1.5/Behaviors/query_cache query_cache] - * And [wiki:Documentation/1.5/Inheritance#ConcreteTableInheritance concrete_inheritance], documented in the Inheritance Chapter even if it's a behavior - -Behaviors bundled with Propel require no further installation and work out of the box. - -== Customizing Behaviors == - -Behaviors often offer some parameters to tweak their effect. For instance, the `timestampable` behavior allows you to customize the names of the columns added to store the creation date and the update date. The behavior customization occurs in the `schema.xml`, inside `` tags nested in the `` tag. So let's set the behavior to use `created_on` instead of `created_at` for the creation date column name (and same for the update date column): - -{{{ -#!xml - - ... - - - - -
-}}} - -If the columns already exist in your schema, a behavior is smart enough not to add them one more time. - -{{{ -#!xml - - ... - - - - - - -
-}}} - -== Using Third-Party Behaviors == - -As a Propel behavior can be packaged into a single class, behaviors are quite easy to reuse and distribute across several projects. All you need to do is to copy the behavior file into your project, and declare it in `build.properties`, as follows: - -{{{ -#!ini -# ---------------------------------- -# B E H A V I O R S E T T I N G S -# ---------------------------------- - -propel.behavior.timestampable.class = propel.engine.behavior.timestampable.TimestampableBehavior -# Add your custom behavior pathes here -propel.behavior.formidable.class = path.to.FormidableBehavior -}}} - -Propel will then find the `FormidableBehavior` class whenever you use the `formidable` behavior in your schema: - -{{{ -#!xml - - ... - - -
-}}} - -'''Tip''': If you use autoloading during the build process, and if the behavior classes benefit from the autoloading, then you don't even need to declare the path to the behavior class. - -== Applying a Behavior To All Tables == - -You can add a `` tag directly under the `` tag. That way, the behavior will be applied to all the tables of the database. - -{{{ -#!xml - - - - ... -
- - ... -
-
-}}} - -In this example, both the `book` and `author` table benefit from the `timestampable` behavior, and therefore automatically update their `created_at` and `updated_at` columns upon saving. - -Going one step further, you can even apply a behavior to all the databases of your project, provided the behavior doesn't need parameters - or can use default parameters. To add a behavior to all databases, simply declare it in the project's `build.properties` under the `propel.behavior.default` key, as follows: - -{{{ -#!ini -propel.behavior.default = soft_delete, timestampable -}}} - -== Writing a Behavior == - -Behaviors can modify their table, and even add another table, by implementing the `modifyTable` method. In this method, use `$this->getTable()` to retrieve the table buildtime model and manipulate it. - -Behaviors can add code to the generated model object by implementing one of the following methods: - -{{{ -objectAttributes() // add attributes to the object -objectMethods() // add methods to the object -preInsert() // add code to be executed before insertion of a new object -postInsert() // add code to be executed after insertion of a new object -preUpdate() // add code to be executed before update of an existing object -postUpdate() // add code to be executed after update of an existing object -preSave() // add code to be executed before saving an object (new or existing) -postSave() // add code to be executed after saving an object (new or existing) -preDelete() // add code to be executed before deleting an object -postDelete() // add code to be executed after deleting an object -objectCall() // add code to be executed inside the object's __call() -objectFilter(&$script) // do whatever you want with the generated code, passed as reference -}}} - -Behaviors can also add code to the generated query objects by implementing one of the following methods: - -{{{ -queryAttributes() // add attributes to the query class -queryMethods() // add methods to the query class -preSelectQuery() // add code to be executed before selection of a existing objects -preUpdateQuery() // add code to be executed before update of a existing objects -postUpdateQuery() // add code to be executed after update of a existing objects -preDeleteQuery() // add code to be executed before deletion of a existing objects -postDeleteQuery() // add code to be executed after deletion of a existing objects -queryFilter(&$script) // do whatever you want with the generated code, passed as reference -}}} - -Behaviors can also add code to the generated peer objects by implementing one of the following methods: - -{{{ -staticAttributes() // add static attributes to the peer class -staticMethods() // add static methods to the peer class -preSelect() // adds code before every select query -peerFilter(&$script) // do whatever you want with the generated code, passed as reference -}}} - -Check the behaviors bundled with Propel to see how to implement your own behavior. diff --git a/airtime_mvc/library/propel/docs/guide/08-Logging.txt b/airtime_mvc/library/propel/docs/guide/08-Logging.txt deleted file mode 100644 index 80445f17d6..0000000000 --- a/airtime_mvc/library/propel/docs/guide/08-Logging.txt +++ /dev/null @@ -1,448 +0,0 @@ -= Logging And Debugging = - -[[PageOutline]] - -Propel provides tools to monitor and debug your model. Whether you need to check the SQL code of slow queries, or to look for error messages previously thrown, Propel is your best friend for finding and fixing problems. - -== Propel Logs == - -Propel uses the logging facility configured in `runtime-conf.xml` to record errors, warnings, and debug information. - -By default Propel will attempt to use the Log framework that is distributed with PEAR. If you are not familiar with it, check its [http://www.indelible.org/php/Log/guide.html online documentation]. It is also easy to configure Propel to use your own logging framework -- or none at all. - -=== Logger Configuration === - -The Propel log handler is configured in the `` section of your project's `runtime-conf.xml` file. Here is the accepted format for this section with the default values that Propel uses: - -{{{ -#!xml - - - - file - ./propel.log - propel - 7 - - - - ... - - -}}} - -Using these parameters, Propel creates a ''file'' Log handler in the background, and keeps it for later use: - -{{{ -#!php -` nested elements may vary, depending on which log handler you are using. Refer to the [http://www.indelible.org/php/Log/guide.html#standard-log-handlers PEAR::Log] documentation for more details on log handlers configuration and options. - -Note that the `` tag needs to correspond to the integer represented by one of the `PEAR_LOG_*` constants: - -||'''Constant'''||'''Value'''||'''Description''' -||PEAR_LOG_EMERG||0||System is unusable|| -||PEAR_LOG_ALERT||1||Immediate action required|| -||PEAR_LOG_CRIT||2||Critical conditions|| -||PEAR_LOG_ERR||3||Error conditions|| -||PEAR_LOG_WARNING||4||Warning conditions|| -||PEAR_LOG_NOTICE||5||Normal but significant|| -||PEAR_LOG_INFO||6||Informational|| -||PEAR_LOG_DEBUG||7||Debug-level messages|| - -=== Logging Messages === - -Use the static `Propel::log()` method to log a message using the configured log handler: - -{{{ -#!php -setName('foo'); -Propel::log('uh-oh, something went wrong with ' . $myObj->getName(), Propel::LOG_ERROR); -}}} - -You can log your own messages from the generated model objects by using their `log()` method, inherited from `BaseObject`: - -{{{ -#!php -log('uh-oh, something went wrong', Propel::LOG_ERROR); -}}} - -The log messages will show up in the log handler defined in `runtime-conf.xml` (`propel.log` file by default) as follows: - -{{{ -Oct 04 00:00:18 [error] uh-oh, something went wrong with foo -Oct 04 00:00:18 [error] MyObj: uh-oh, something went wrong -}}} - -Tip: All serious errors coming from the Propel core do not only issue a log message, they are also thrown as `PropelException`. - -=== Using An Alternative PEAR Log Handler === - -In many cases you may wish to integrate Propel's logging facility with the rest of your web application. In `runtime-conf.xml`, you can customize a different PEAR logger. Here are a few examples: - -'''Example 1:''' Using 'display' container (for output to HTML) -{{{ -#!xml - - display - 6 - -}}} - -'''Example 2:''' Using 'syslog' container -{{{ -#!xml - - syslog - 8 - propel - 6 - -}}} - -=== Using A Custom Logger === - -If you omit the `` section of your `runtime-conf.xml`, then Propel will not setup ''any'' logging for you. In this case, you can set a custom logging facility and pass it to Propel at runtime. - -Here's an example of how you could configure your own logger and then set Propel to use it: - -{{{ -#!php -log($m, Propel::LOG_EMERG); - } - public function alert($m) - { - $this->log($m, Propel::LOG_ALERT); - } - public function crit($m) - { - $this->log($m, Propel::LOG_CRIT); - } - public function err($m) - { - $this->log($m, Propel::LOG_ERR); - } - public function warning($m) - { - $this->log($m, Propel::LOG_WARNING); - } - public function notice($m) - { - $this->log($m, Propel::LOG_NOTICE); - } - public function info($m) - { - $this->log($m, Propel::LOG_INFO); - } - public function debug($m) - { - $this->log($m, Propel::LOG_DEBUG); - } - - public function log($message, $priority) - { - $color = $this->priorityToColor($priority); - echo '

$message

'; - } - - private function priorityToColor($priority) - { - switch($priority) { - case Propel::LOG_EMERG: - case Propel::LOG_ALERT: - case Propel::LOG_CRIT: - case Propel::LOG_ERR: - return 'red'; - break; - case Propel::LOG_WARNING: - return 'orange'; - break; - case Propel::LOG_NOTICE: - return 'green'; - break; - case Propel::LOG_INFO: - return 'blue'; - break; - case Propel::LOG_DEBUG: - return 'grey'; - break; - } - } -} -}}} - -Tip: There is also a bundled `MojaviLogAdapter` class which allows you to use a Mojavi logger with Propel. - -== Debugging Database Activity == - -By default, Propel uses `PropelPDO` for database connections. This class, which extends PHP's `PDO`, offers a debug mode to keep track of all the database activity, including all the executed queries. - -=== Enabling The Debug Mode === - -The debug mode is disabled by default, but you can enable it at runtime as follows: - -{{{ -#!php -useDebug(true); -}}} - -You can also disable the debug mode at runtime, by calling `PropelPDO::useDebug(false)`. Using this method, you can choose to enable the debug mode for only one particular query, or for all queries. - -Alternatively, you can ask Propel to always enable the debug mode for a particular connection by using the `DebugPDO` class instead of the default `PropelPDO` class. This is accomplished in the `runtime-conf.xml` file, in the `` tag of a given datasource connection (see the [wiki:Documentation/1.5/RuntimeConfiguration runtime configuration reference] for more details). - -{{{ -#!xml - - - - - - sqlite - - - DebugPDO -}}} - -'''Tip''': You can use your own connection class there, but make sure that it extends `PropelPDO` and not only `PDO`. Propel requires certain fixes to PDO API that are provided by `PropelPDO`. - -=== Counting Queries === - -In debug mode, `PropelPDO` keeps track of the number of queries that are executed. Use `PropelPDO::getQueryCount()` to retrieve this number: - -{{{ -#!php -getQueryCount(); // 1 -}}} - -Tip: You cannot use persistent connections if you want the query count to work. Actually, the debug mode in general requires that you don't use persistent connections in order for it to correctly log bound values and count executed statements. - -=== Retrieving The Latest Executed Query === - -For debugging purposes, you may need the SQL code of the latest executed query. It is available at runtime in debug mode using `PropelPDO::getLastExecutedQuery()`, as follows: - -{{{ -#!php -getLastExecutedQuery(); // 'SELECT * FROM my_obj'; -}}} - -Tip: You can also get a decent SQL representation of the criteria being used in a SELECT query by using the `Criteria->toString()` method. - -Propel also keeps track of the queries executed directly on the connection object, and displays the bound values correctly. - -{{{ -#!php -prepare('SELECT * FROM my_obj WHERE name = :p1'); -$stmt->bindValue(':p1', 'foo'); -$stmt->execute(); -echo $con->getLastExecutedQuery(); // 'SELECT * FROM my_obj where name = "foo"'; -}}} - -'''Tip''': The debug mode is intended for development use only. Do not use it in production environment, it logs too much information for a production server, and adds a small overhead to the database queries. - -== Full Query Logging == - -The combination of the debug mode and a logging facility provides a powerful debugging tool named ''full query logging''. If you have properly configured a log handler, enabling the debug mode (or using `DebugPDO`) automatically logs the executed queries into Propel's default log file: - -{{{ -Oct 04 00:00:18 propel-bookstore [debug] INSERT INTO publisher (`ID`,`NAME`) VALUES (NULL,'William Morrow') -Oct 04 00:00:18 propel-bookstore [debug] INSERT INTO author (`ID`,`FIRST_NAME`,`LAST_NAME`) VALUES (NULL,'J.K.','Rowling') -Oct 04 00:00:18 propel-bookstore [debug] INSERT INTO book (`ID`,`TITLE`,`ISBN`,`PRICE`,`PUBLISHER_ID`,`AUTHOR_ID`) VALUES (NULL,'Harry Potter and the Order of the Phoenix','043935806X',10.99,53,58) -Oct 04 00:00:18 propel-bookstore [debug] INSERT INTO review (`ID`,`REVIEWED_BY`,`REVIEW_DATE`,`RECOMMENDED`,`BOOK_ID`) VALUES (NULL,'Washington Post','2009-10-04',1,52) -... -Oct 04 00:00:18 propel-bookstore [debug] SELECT bookstore_employee_account.EMPLOYEE_ID, bookstore_employee_account.LOGIN FROM `bookstore_employee_account` WHERE bookstore_employee_account.EMPLOYEE_ID=25 -}}} - -By default, Propel logs all SQL queries, together with the date of the query and the name of the connection. - -=== Setting The Data To Log === - -The full query logging feature can be configured either in the `runtime-conf.xml` configuration file, or using the runtime configuration API. - -In `runtime-conf.xml`, tweak the feature by adding a `` tag under ``: - -{{{ -#!xml - - - - ... - - - - ... - - - -
- - true - - - - true - -
-
-
-
-
-}}} - -To accomplish the same configuration as above at runtime, change the settings in your main include file, after `Propel::init()`, as follows: - -{{{ -#!php -setParameter('debugpdo.logging.details.method.enabled', true); -$config->setParameter('debugpdo.logging.details.time.enabled', true); -$config->setParameter('debugpdo.logging.details.mem.enabled', true); -}}} - -Let's see a few of the provided parameters. - -=== Logging More Connection Messages === - -`PropelPDO` can log queries, but also connection events (open and close), and transaction events (begin, commit and rollback). Since Propel can emulate nested transactions, you may need to know when an actual `COMMIT` or `ROLLBACK` is issued. - -To extend which methods of `PropelPDO` do log messages in debug mode, customize the `'debugpdo.logging.methods'` parameter, as follows: - -{{{ -#!php -setParameter('debugpdo.logging.methods', $allMethods); -}}} - -By default, only the messages coming from `PropelPDO::exec`, `PropelPDO::query`, and `DebugPDOStatement::execute` are logged. - -=== Logging Execution Time And Memory === - -In debug mode, Propel counts the time and memory necessary for each database query. This very valuable data can be added to the log messages on demand, by adding the following configuration: - -{{{ -#!php -setParameter('debugpdo.logging.details.time.enabled', true); -$config->setParameter('debugpdo.logging.details.mem.enabled', true); -}}} - -Enabling the options shown above, you get log output along the lines of: - -{{{ -Feb 23 16:41:04 Propel [debug] time: 0.000 sec | mem: 1.4 MB | SET NAMES 'utf8' -Feb 23 16:41:04 Propel [debug] time: 0.002 sec | mem: 1.6 MB | SELECT COUNT(tags.NAME) FROM tags WHERE tags.IMAGEID = 12 -Feb 23 16:41:04 Propel [debug] time: 0.012 sec | mem: 2.4 MB | SELECT tags.NAME, image.FILENAME FROM tags LEFT JOIN image ON tags.IMAGEID = image.ID WHERE image.ID = 12 -}}} - -The order in which the logging details are enabled is significant, since it determines the order in which they will appear in the log file. - -=== Complete List Of Logging Options === - -The following settings can be customized at runtime or in the configuration file: - -||'''Parameter'''||'''Default'''||'''Meaning'''|| -||`debugpdo.logging.enabled`||`true`||Should any logging take place|| -||`debugpdo.logging.innerglue`||`": "`||String to use for combining the title of a detail and its value|| -||`debugpdo.logging.outerglue`||`" | "`||String to use for combining details together on a log line|| -||`debugpdo.logging.realmemoryusage`||`false`||Parameter to [http://www.php.net/manual/en/function.memory-get-usage.php memory_get_usage()] and [http://www.php.net/manual/en/function.memory-get-peak-usage.php memory_get_peak_usage()] calls|| -||`debugpdo.logging.methods`||[http://propel.propelorm.org/browser/branches/1.5/runtime/classes/propel/util/DebugPDO.php#L151 array(...)]||An array of method names `Class::method`) to be included in method call logging|| -||`debugpdo.logging.details.slow.enabled`||`false`||Enables flagging of slow method calls|| -||`debugpdo.logging.details.slow.threshold`||`0.1`||Method calls taking more seconds than this threshold are considered slow|| -||`debugpdo.logging.details.time.enabled`||`false`||Enables logging of method execution times|| -||`debugpdo.logging.details.time.precision`||`3`||Determines the precision of the execution time logging|| -||`debugpdo.logging.details.time.pad`||`10`||How much horizontal space to reserve for the execution time on a log line|| -||`debugpdo.logging.details.mem.enabled`||`false`||Enables logging of the instantaneous PHP memory consumption|| -||`debugpdo.logging.details.mem.precision`||`1`||Determines the precision of the memory consumption logging|| -||`debugpdo.logging.details.mem.pad`||`9`||How much horizontal space to reserve for the memory consumption on a log line|| -||`debugpdo.logging.details.memdelta.enabled`||`false`||Enables logging differences in memory consumption before and after the method call|| -||`debugpdo.logging.details.memdelta.precision`||`1`||Determines the precision of the memory difference logging|| -||`debugpdo.logging.details.memdelta.pad`||`10`||How much horizontal space to reserve for the memory difference on a log line|| -||`debugpdo.logging.details.mempeak.enabled`||`false`||Enables logging the peak memory consumption thus far by the currently executing PHP script|| -||`debugpdo.logging.details.mempeak.precision`||`1`||Determines the precision of the memory peak logging|| -||`debugpdo.logging.details.mempeak.pad`||`9`||How much horizontal space to reserve for the memory peak on a log line|| -||`debugpdo.logging.details.querycount.enabled`||`false`||Enables logging of the number of queries performed by the DebugPDO instance thus far|| -||`debugpdo.logging.details.querycount.pad`||`2`||How much horizontal space to reserve for the query count on a log line|| -||`debugpdo.logging.details.method.enabled`||`false`||Enables logging of the name of the method call|| -||`debugpdo.logging.details.method.pad`||`28`||How much horizontal space to reserve for the method name on a log line|| - -=== Changing the Log Level === - -By default the connection log messages are logged at the `Propel::LOG_DEBUG` level. This can be changed by calling the `setLogLevel()` method on the connection object: - -{{{ -#!php -setLogLevel(Propel::LOG_INFO); -}}} - -Now all queries and bind param values will be logged at the INFO level. - -=== Configuring a Different Full Query Logger === - -By default the `PropelPDO` connection logs queries and binds param values using the `Propel::log()` static method. As explained above, this method uses the log storage configured by the `` tag in the `runtime-conf.xml` file. - -If you would like the queries to be logged using a different logger (e.g. to a different file, or with different ident, etc.), you can set a logger explicitly on the connection at runtime, using `Propel::setLogger()`: - -{{{ -#!php -setLogger($logger); -} -}}} - -This will not affect the general Propel logging, but only the full query logging. That way you can log the Propel error and warnings in one file, and the SQL queries in another file. diff --git a/airtime_mvc/library/propel/docs/guide/09-Inheritance.txt b/airtime_mvc/library/propel/docs/guide/09-Inheritance.txt deleted file mode 100644 index 25e03b8e1b..0000000000 --- a/airtime_mvc/library/propel/docs/guide/09-Inheritance.txt +++ /dev/null @@ -1,329 +0,0 @@ -= Inheritance = - -[[PageOutline]] - -Developers often need one model table to extend another model table. Inheritance being an object-oriented notion, it doesn't have a true equivalent in the database world, so this is something an ORM must emulate. Propel offers two types of table inheritance: [http://www.martinfowler.com/eaaCatalog/singleTableInheritance.html Single Table Inheritance], which is the most efficient implementations from a SQL and query performance perspective, but is limited to a small number of inherited fields ; and [http://www.martinfowler.com/eaaCatalog/concreteTableInheritance.html Concrete Table Inheritance], which provides the most features but adds a small overhead on write queries. - -== Single Table Inheritance == - -In this implementation, one table is used for all subclasses. This has the implication that your table must have all columns needed by the main class and subclasses. Propel will create stub subclasses. - -Let's illustrate this idea with an example. Consider an object model with three classes, `Book`, `Essay`, and `Comic` - the first class being parent of the other two. With single table inheritance, the data of all three classes is stored in one table, named `book`. - -=== Schema Definition === - -A table using Single Table Inheritance requires a column to identify which class should be used to represent the ''table'' row. Classically, this column is named `class_key` - but you can choose whatever name fits your taste. The column needs the `inheritance="single"` attribute to make Propel understand that it's the class key column. Note that this 'key' column must be a real column in the table. - -{{{ -#!xml - - - - - - - - -
-}}} - -Once you rebuild your model, Propel generated all three model classes (`Book`, `Essay`, and `Comic`) and three query classes (`BookQuery`, `EssayQuery`, and `ComicQuery`). The `Essay` and `Comic` classes extend the `Book` class, the `EssayQuery` and `ComicQuery` classes extend `BookQuery`. - -'''Tip''': An inherited class can extend another inherited class. That mean that you can add a `Manga` kind of book that extends `Comic` instead of `Book`. - -=== Using Inherited Objects === - -Use inherited objects just like you use regular Propel model objects: - -{{{ -#!php -setTitle('War And Peace'); -$book->save(); -$essay = new Essay(); -$essay->setTitle('On the Duty of Civil Disobedience'); -$essay->save(); -$comic = new Comic(); -$comic->setTitle('Little Nemo In Slumberland'); -$comic->save(); -}}} - -Inherited objects share the same properties and methods by default, but you can add your own logic to each of the generated classes. - -Behind the curtain, Propel sets the `class_key` column based on the model class. So the previous code stores the following rows in the database: - -{{{ -id | title | class_key ----|-----------------------------------|---------- -1 | War And Peace | Book -2 | On the Duty of Civil Disobedience | Essay -3 | Little Nemo In Slumberland | Comic -}}} - -Incidentally, that means that you can add new classes manually, even if they are not defined as `` tags in the `schema.xml`: - -{{{ -#!php -setClassKey('Novel'); - } -} -$novel = new Novel(); -$novel->setTitle('Harry Potter'); -$novel->save(); -}}} - -=== Retrieving Inherited objects === - -In order to retrieve books, use the Query object of the main class, as you would usually do. Propel will hydrate children objects instead of the parent object when necessary: - -{{{ -#!php -find(); -foreach ($books as $book) { - echo get_class($book) . ': ' . $book->getTitle() . "\n"; -} -// Book: War And Peace -// Essay: On the Duty of Civil Disobedience -// Comic: Little Nemo In Slumberland -// Novel: Harry Potter -}}} - -If you want to retrieve only objects of a certain class, use the inherited query classes: - -{{{ -#!php -findOne(); -echo get_class($comic) . ': ' . $comic->getTitle() . "\n"; -// Comic: Little Nemo In Slumberland -}}} - -'''Tip''': You can override the base peer's `getOMClass()` to return the classname to use based on more complex logic (or query). - -=== Abstract Entities === - -If you wish to enforce using subclasses of an entity, you may declare a table "abstract" in your XML data model: - -{{{ -#!xml - - ... -}}} - -That way users will only be able to instanciate `Essay` or `Comic` books, but not `Book`. - -== Concrete Table Inheritance == - -Concrete Table Inheritance uses one table for each class in the hierarchy. Each table contains columns for the class and all its ancestors, so any fields in a superclass are duplicated across the tables of the subclasses. - -Propel implements Concrete Table Inheritance through a behavior. - -=== Schema Definition === - -Once again, this is easier to understand through an example. In a Content Management System, content types are often organized in a hierarchy, each subclass adding more fields to the superclass. So let's consider the following schema, where the `article` and `video` tables use the same fields as the main `content` tables, plus additional fields: - -{{{ -#!xml -
- - - - - - -
- - - -
- - - - - - - - -
- - - - - - - - -
-}}} - -Since the columns of the main table are copied to the child tables, this schema is a simple implementation of Concrete Table Inheritance. This is something that you can write by hand, but the repetition makes it tedious. Instead, you should let the `concrete_inheritance` behavior do it for you: - -{{{ -#!xml - - - - - - - -
- - - -
- - - - - -
- - - - - -
-}}} - -'''Tip''': The `concrete_inheritance` behavior copies columns, foreign keys, indices and validators. - -=== Using Inherited Model Classes === - -For each of the tables in the schema above, Propel generates a Model class: - -{{{ -#!php -setName('Movie'); -$cat->save(); -// create a new Article -$art = new Article(); -$art->setTitle('Avatar Makes Best Opening Weekend in the History'); -$art->setCategory($cat); -$art->setContent('With $232.2 million worldwide total, Avatar had one of the best-opening weekends in the history of cinema.'); -$art->save(); -// create a new Video -$vid = new Video(); -$vid->setTitle('Avatar Trailer'); -$vid->setCategory($cat); -$vid->setResourceLink('http://www.avatarmovie.com/index.html') -$vid->save(); -}}} - -And since the `concrete_inheritance` behavior tag defines a parent table, the `Article` and `Video` classes extend the `Content` class (same for the generated Query classes): - -{{{ -#!php -getCategory()->getName(); - } -} -echo $art->getCategoryName(); // 'Movie' -echo $vid->getCategoryName(); // 'Movie' - -// methods of the parent query are accessible to the child query -class ContentQuery extends BaseContentQuery -{ - public function filterByCategoryName($name) - { - return $this - ->useCategoryQuery() - ->filterByName($name) - ->endUse(); - } -} -$articles = ArticleQuery::create() - ->filterByCategoryName('Movie') - ->find(); -}}} - -That makes of Concrete Table Inheritance a powerful way to organize your model logic and to avoid repetition, both in the schema and in the model code. - -=== Data Replication === - -By default, every time you save an `Article` or a `Video` object, Propel saves a copy of the `title` and `category_id` columns in a `Content` object. Consequently, retrieving objects regardless of their child type becomes very easy: - -{{{ -#!php -find(); -foreach ($conts as $content) { - echo $content->getTitle() . "(". $content->getCategoryName() ")/n"; -} -// Avatar Makes Best Opening Weekend in the History (Movie) -// Avatar Trailer (Movie) -}}} - -Propel also creates a one-to-one relationship between a object and its parent copy. That's why the schema definition above doesn't define any primary key for the `article` and `video` tables: the `concrete_inheritance` behavior creates the `id` primary key which is also a foreign key to the parent `id` column. So once you have a parent object, getting the child object is just one method call away: - -{{{ -#!php -getContent(); - } -} -class Movie extends BaseMovie -{ - public function getPreview() - { - return $this->getResourceLink(); - } -} -$conts = ContentQuery::create()->find(); -foreach ($conts as $content) { - echo $content->getTitle() . "(". $content->getCategoryName() ")/n" - if ($content->hasChildObject()) { - echo ' ' . $content->getChildObject()->getPreview(), "\n"; -} -// Avatar Makes Best Opening Weekend in the History (Movie) -// With $232.2 million worldwide total, Avatar had one of the best-opening -// weekends in the history of cinema. -// Avatar Trailer (Movie) -// http://www.avatarmovie.com/index.html -}}} - -The `hasChildObject()` and `getChildObject()` methods are automatically added by the behavior to the parent class. Behind the curtain, the saved `content` row has an additional `descendant_column` field allowing it to use the right model for the job. - -'''Tip''' You can disable the data replication by setting the `copy_data_to_parent` parameter to "false". In that case, the `concrete_inheritance` behavior simply modifies the table at buildtime and does nothing at runtime. Also, with `copy_data_to_parent` disabled, any primary key copied from the parent table is not turned into a foreign key: - -{{{ -#!xml - - - - - - -
-// results in - - - - - - - - -
-}}} \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/reference/Buildtime-Configuration.txt b/airtime_mvc/library/propel/docs/reference/Buildtime-Configuration.txt deleted file mode 100644 index 36fbe642b9..0000000000 --- a/airtime_mvc/library/propel/docs/reference/Buildtime-Configuration.txt +++ /dev/null @@ -1,312 +0,0 @@ -= Build Properties Reference = - -[[PageOutline]] - -Here is a list of properties that can be set to affect how Propel builds database files. For a complete list, see the {{{default.properties}}} file that is bundled with your version of Propel generator (this will be in PEAR's data directory if you are using a PEAR-installed version of Propel). - -First, some conventions: - - * Text surrounded by a '''/''' is text that you would provide and is not defined in the language. (i.e. a table name is a good example of this.) - * Items where you have an alternative choice have a '''|''' character between them (i.e. true|false) - * Alternative choices may be delimited by '''{''' and '''}''' to indicate that this is the default option, if not overridden elsewhere. - -== Where to Specify Properties == - -=== In the Project build.properties File === - -The most natural place to specify properties for a file are in the project's {{{build.properties}}} file. This file is expected to be found in the project directory. - -=== In a global build.properties file === - -You can also create a {{{global build.properties}}} file in the same directory as Propel's {{{default.properties}}} file. For users who have installed Propel using PEAR, this will be in PEAR data directory structure. - -=== On the Command Line === - -You can also specify properties on the commandline when you invoke Propel: - -{{{ -$ propel-gen /path/to/project -Dpropel.someOtherProperty=value -}}} - -''Note that there is '''no space''' between the -D and the property name.'' - -== The Properties == - -=== General Build Settings === - -{{{ -propel.project = Your-Project-Name -}}} - -The name of your project. This affects names of generated files, etc. - -{{{ -propel.targetPackage = {propel.project} -}}} - -The package to use for the generated classes. This affects the value of the @package phpdoc tag, and it also affects the directory that the classes are placed in. By default this will be the same as the project. Note that the target package (and thus the target directory for generated classes) can be overridden in each `` and `` element in the XML schema. - -{{{ -propel.packageObjectModel = true|{false} -}}} - -Whether to join schemas using the same database name into a single schema. This allows splitting schemas in packages, and referencing tables in another schema (but in the same database) in a foreign key. Beware that database behaviors will also be joined when this parameter is set to true. - -{{{ -propel.schema.validate = {true}|false -}}} - -Whether to validate the schema using the XSD file. The default XSD file is located under `generator/resources/xsd/database.xsd`, and you can use a custom XSD file by changing the `propel.schema.xsd.file` property. - -{{{ -propel.schema.transform = true|{false} -}}} - -Whether to transform the schema using the XSL file. This was used in previous Propel versions to clean up the schema, but tended to hide problems in the schema. It is disabled by default since Propel 1.5. The default XSL file is located under `generator/resources/xsd/database.xsl`, and you can use a custom XSL file by changing the `propel.schema.xsl.file` property. - -=== Database Settings === - -{{{ -propel.database = pgsql|mysql|sqlite|mssql|oracle -}}} - -The Propel platform that will be used to determine how to build the SQL DDL, etc. - - -{{{ -propel.database.url = /PDO database connection string/ -propel.database.user = -propel.database.password = -}}} - -Propel will use this information as the default to connect to your database. Note that for PDO some drivers (e.g. mysql, oracle) require that you specify the username and password separately from the DSN, which is why they are available as options. - - -{{{ -propel.database.buildUrl = /PDO database connection string, defaults to use ${propel.database.url}/ -}}} - -This property is used by Propel to connect to a database to reverse engineer or data dump. The default is to use the database connection defined by the ''propel.database.url'' property. - - -{{{ -propel.database.createUrl = /PDO database connection string, defaults to use ${propel.database.url}/ -}}} - -This property is used by Propel for creating a database. Of course, Propel is unable to create many databases because they do not provide a SQL method for creation; therefore, it is usually recommended that you actually create your database by hand. - -{{{ -propel.database.schema = /schema-name/ -}}} - -Where supported by the RDBMS, you can specify a schema name for Propel to use. - -{{{ -propel.database.encoding = -}}} -The encoding to use for the database. This can affect things such as transforming charsets when exporting to XML, etc. - -{{{ -propel.tablePrefix = {empty}|string -}}} - -Add a prefix to all the table names in the database. This does not affect the tables phpName. This setting can be overridden on a per-database basis in the schema. - -=== Reverse-Engineering Settings === - -{{{ -propel.samePhpName = true|{false} -}}} -Whether to specify PHP names that are the same as the column names. - -{{{ -propel.addVendorInfo = true|{false} -}}} -Whether to add the vendor info. This is currently only used for MySQL, but does provide additional information (such as full-text indexes) which can affect the generation of the DDL from the schema. - -{{{ -propel.addValidators = {none}|maxvalue|type|required|unique|all -}}} -Which Propel validators to add to the generated schema (based on the db constraints). - -=== Customizing Generated Object Model === - -{{{ -propel.addGenericAccessors = true|{false} -propel.addGenericMutators = true|{false} -}}} -Whether to add generic getter/setter methods -- e.g. '''getByName()''', '''setByName()'''. - -{{{ -propel.addTimeStamp = true|{false} -}}} -Whether to add a timestamp to the phpdoc header of generated OM classes. - -{{{ -propel.addValidateMethod = {true}|false -}}} -Whether to add `validate()` method to your classes. Set to false if you don't use Propel validation. - -{{{ -propel.addIncludes = {true}|false -}}} -Whether to add `require` statements on the generated stub classes. Set to false if you autoload every classe at runtime. - -{{{ -propel.addHooks = {true}|false -}}} -Whether to support pre- and post- hooks on `save()` and `delete()` methods. Set to false if you never use these hooks for a small speed boost. - -{{{ -propel.basePrefix = {Base}|/YourPrefix/ -}}} -The prefix to use for the base (super) classes that are generated. - -{{{ -propel.classPrefix = {empty}|string; -}}} -Some sort of "namespacing": All Propel classes with get the Prefix "My_ORM_Prefix_" just like "My_ORM_Prefix_BookPeer". - -{{{ -propel.disableIdentifierQuoting = true|{false} -}}} -Identifier quoting is only implemented at the DDL layer at this point. Since this may result in undesired behavior (especially in Postgres), it can be disabled by setting this property to true. - -{{{ -propel.useLeftJoinsInDoJoinMethods = {true}|false -}}} -Set whether the '''doSelectJoin*()''' methods use LEFT JOIN or INNER JOIN (see ticket:491 and ticket:588 to understand more about why this might be important). - -=== MySQL-specific Settings === - -{{{ -propel.mysqlTableType = /DefaultTableEngine/ -}}} -Default table engine - defaults to MyISAM. You can override this setting if you wish to default to another engine for all tables (for instance InnoDB, or HEAP). This setting can also be overridden on a per-table basis using the `` element in the schema (see [wiki:Documentation/1.5/Schema#AddingVendorInfo]). - -{{{ -propel.mysqlTableEngineKeyword = /EngineKeyword/ -}}} -Keyword used to specify the table engine in the CREATE SQL statement. Defaults to 'ENGINE', users of MYSQL < 5 should use 'TYPE' instead. - -=== Date/Time Settings === - -{{{ -propel.useDateTimeClass = true|{false} -}}} -This is how you enable full use of the new DateTime class in Propel. Setting this to true means that getter methods for date/time/timestamp columns will return a DateTime object ''when the default format is empty''. Note that the current default of ''false'' is only for backwards compatibility; in the future ''true'' will be the only option here. - -{{{ -propel.dateTimeClass = {DateTime}|string -}}} -Specify a custom DateTime subclass that you wish to have Propel use for temporal values. - -{{{ -propel.defaultTimeStampFormat = {Y-m-d H:i:s}|string -propel.defaultTimeFormat = {%X}|string -propel.defaultDateFormat = {%x}|string -}}} -These are the default formats that will be used when fetching values from temporal columns in Propel. You can always specify these when calling the methods directly, but for methods like getByName() it is nice to change the defaults. - -To have these methods return DateTime objects instead, you should set these to empty values, for example: -{{{ -propel.defaultTimeStampFormat = -}}} - -=== Directories === - -{{{ -propel.project.dir = default-depends-on-installation-type -}}} - -''This is not necessarily a property you can change.'' The project directory is the directory where you project files (build.properties, schema.xml, runtime-conf.xml, etc.) are located. For example, if you use the {{{propel-gen}}} script, this value will get overridden to the path you pass to {{{propel-gen}}}. - -{{{ -propel.output.dir = ${propel.project.dir}/build -}}} -The default top-level directory for output of classes, sql, config, etc. - -{{{ -propel.schema.dir = ${propel.project.dir} -}}} -The directory where Propel expects to find your schema.xml file. - -{{{ -propel.conf.dir = ${propel.project.dir} -}}} -The directory where Propel expects to find your {{{runtime-conf.xml}}} file. - -{{{ -propel.php.dir = ${propel.output.dir}/classes -}}} -The directory where Propel will create generated object model classes. - -{{{ -propel.phpconf.dir = ${propel.output.dir}/conf -}}} -The directory where Propel will place the php-ified version of your {{{runtime-conf.xml}}}. - -{{{ -propel.sql.dir = ${propel.output.dir}/sql -}}} -The directory where Propel will place generated DDL (or data insert statements, etc.) - - -=== Overriding Builder Classes === - -{{{ -# Object Model builders -propel.builder.peer.class = propel.engine.builder.om.php5.PHP5ComplexPeerBuilder -propel.builder.object.class = propel.engine.builder.om.php5.PHP5ComplexObjectBuilder -propel.builder.objectstub.class = propel.engine.builder.om.php5.PHP5ExtensionObjectBuilder -propel.builder.peerstub.class = propel.engine.builder.om.php5.PHP5ExtensionPeerBuilder - -propel.builder.objectmultiextend.class = propel.engine.builder.om.php5.PHP5MultiExtendObjectBuilder - -propel.builder.tablemap.class = propel.engine.builder.om.php5.PHP5TableMapBuilder - -propel.builder.interface.class = propel.engine.builder.om.php5.PHP5InterfaceBuilder - -propel.builder.node.class = propel.engine.builder.om.php5.PHP5NodeBuilder -propel.builder.nodepeer.class = propel.engine.builder.om.php5.PHP5NodePeerBuilder -propel.builder.nodestub.class = propel.engine.builder.om.php5.PHP5ExtensionNodeBuilder -propel.builder.nodepeerstub.class = propel.engine.builder.om.php5.PHP5ExtensionNodePeerBuilder - -propel.builder.nestedset.class = propel.engine.builder.om.php5.PHP5NestedSetBuilder -propel.builder.nestedsetpeer.class = propel.engine.builder.om.php5.PHP5NestedSetPeerBuilder - -# SQL builders - -propel.builder.ddl.class = propel.engine.builder.sql.${propel.database}.${propel.database}DDLBuilder -propel.builder.datasql.class = propel.engine.builder.sql.${propel.database}.${propel.database}DataSQLBuilder - -# Platform classes - -propel.platform.class = propel.engine.platform.${propel.database}Platform - -# Pluralizer class (used to generate plural forms) - -propel.builder.pluralizer.class = propel.engine.builder.util.DefaultEnglishPluralizer -}}} - -As you can see, you can specify your own builder and platform classes if you want to extend & override behavior in the default classes - -=== Adding Behaviors === - -{{{ -propel.behavior.timestampable.class = propel.engine.behavior.TimestampableBehavior -}}} - -Define the path to the class to be used for the `timestampable` behavior. This behavior is bundled wit hPropel, but if you want to override it, you can specify a different path. - -If you want to add more behaviors, write their path following the same model: - -{{{ -propel.behavior.my_behavior.class = my.custom.path.to.MyBehaviorClass -}}} - -Behaviors are enabled on a per-table basis in the `schema.xml`. However, you can add behaviors for all your schemas, provided that you define them in the `propel.behavior.default` setting: - -{{{ -propel.behavior.default = soft_delete,my_behavior -}}} \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/reference/ModelCriteria.txt b/airtime_mvc/library/propel/docs/reference/ModelCriteria.txt deleted file mode 100644 index d5c4042d36..0000000000 --- a/airtime_mvc/library/propel/docs/reference/ModelCriteria.txt +++ /dev/null @@ -1,1025 +0,0 @@ -= Propel Query Reference = - -[[PageOutline]] - -Propel's Query classes make it easy to write queries of any level of complexity in a simple and reusable way. - -== Overview == - -Propel proposes an object-oriented API for writing database queries. That means that you don't need to write any SQL code to interact with the database. Object orientation also facilitates code reuse and readability. Here is how to query the database for records in the `book` table ordered by the `title` column and published in the last month: - -{{{ -#!php -filterByPublishedAt(array('min' => time() - 30 * 24 * 60 * 60)) - ->orderByTitle() - ->find(); -}}} - -The first thing to notice here is the fluid interface. Propel queries are made of method calls that return the current query object - `filterByPublishedAt()` and `orderByTitle()` return the current query augmented with conditions. `find()`, on the other hand, is a ''termination method'' that doesn't return the query, but its result - in this case, a collection of `Book` objects. - -Propel generates one `filterByXXX()` method for every column in the table. The column name used in the PHP method is not the actual column name in the database ('`published_at`'), but rather a CamelCase version of it ('`PublishedAt`'), called the column ''phpName''. Remember to always use the phpName in the PHP code ; the actual SQL name only appears in the SQL code. - -When a termination method like `find()` is called, Propel builds the SQL code and executes it. The previous example generates the following code when `find()` is called: - -{{{ -#!php -= :p1 -ORDER BY book.TITLE ASC'; -}}} - -Propel uses the column name in conjunction with the schema to determine the column type. In this case, `published_at` is defined in the schema as a `TIMESTAMP`. Then, Propel ''binds'' the value to the condition using the column type. This prevents SQL injection attacks that often plague web applications. Behind the curtain, Propel uses PDO to achieve this binding: - -{{{ -#!php -prepare($query); -$stmt->bind(':p1', time() - 30 * 24 * 60 * 60, PDO::PARAM_INT); -$res = $stmt->execute(); -}}} - -The final `find()` doesn't just execute the SQL query above, it also instanciates `Book` objects and populates them with the results of the query. Eventually, it returns a `PropelCollection` object with these `Book` objects inside. For the sake of clarity, you can consider this collection object as an array. In fact, you can use it as if it were a true PHP array and iterate over the result list the usual way: - -{{{ -#!php -getTitle(); -} -}}} - -So Propel queries are a very powerful tool to write your queries in an object-oriented fashion. They are also very natural - if you know how to write an SQL query, chances are that you will write Propel queries in minutes. - -== Generated Query Methods == - -For each object, Propel creates a few methods in the generated query object. - -=== Column Filter Methods === - -`filterByXXX()`, generated for each column, provides a different feature and a different functionality depending on the column type: - - * For all columns, `filterByXXX()` translates to a simple SQL `WHERE` condition by default: - -{{{ -#!php -filterByTitle('War And Peace') - ->find(); -// example Query generated for a MySQL database -$query = 'SELECT book.* from `book` -WHERE book.TITLE = :p1'; // :p1 => 'War And Peace' -}}} - - * For string columns, `filterByXXX()` translates to a SQL `WHERE ... LIKE` if the value contains wildcards: - -{{{ -#!php -filterByTitle('War%') - ->find(); -// example Query generated for a MySQL database -$query = 'SELECT book.* from `book` -WHERE book.TITLE LIKE :p1'; // :p1 => 'War%' -}}} - - * For integer columns, `filterByXXX()` translates into a SQL `WHERE ... IN` if the value is an array: - -{{{ -#!php -filterByAuthorId(array(123, 456)) - ->find(); -// example Query generated for a MySQL database -$query = 'SELECT book.* from `book` -WHERE book.AUTHOR_ID IN (:p1, :p2)'; // :p1 => 123, :p2 => 456 -}}} - - * For Boolean columns, `filterByXXX()` translates the value to a boolean using smart casting: - -{{{ -#!php -filterByIsPublished('yes') - ->filterByIsSoldOut('no') - ->find(); -// example Query generated for a MySQL database -$query = 'SELECT book.* from `book` -WHERE book.IS_PUBLISHED = :p1 - AND book.IS_SOLD_OUT = :p2'; // :p1 => true, :p2 => false -}}} - -=== Relation Filter Methods === - -Propel also generates a `filterByXXX()` method for every foreign key. The filter expects an object of the related class as parameter: - -{{{ -#!php -findPk(123); -$books = BookQuery::create() - ->filterByAuthor($author) - ->find(); -// example Query generated for a MySQL database -$query = 'SELECT book.* from `book` -WHERE book.AUTHOR_ID = :p1'; // :p1 => 123 -}}} - -Check the generated BaseQuery classes for a complete view of the generated query methods. Every generated method comes with a detailed phpDoc comment, making code completion very easy on supported IDEs. - -=== Embedding a Related Query === - -In order to add conditions on related tables, a propel query can ''embed'' the query of the related table. The generated `useXXXQuery()` serve that purpose. For instance, here is how to query the database for books written by 'Leo Tolstoi': - -{{{ -#!php -useAuthorQuery() - ->filterByName('Leo Tolstoi') - ->endUse() - ->find(); -}}} - -`useAuthorQuery()` returns a new instance of `AuthorQuery` already joined with the current `BookQuery` instance. The next method is therefore called on a different object - that's why the `filterByName()` call is further indented in the code example. Finally, `endUse()` merges the conditions applied on the `AuthorQuery` to the `BookQuery`, and returns the original `BookQuery` object. - -Propel knows how to join the `Book` model to the `Author` model, since you already defined a foreign key between the two tables in the `schema.xml`. Propel takes advantage of this knowledge of your model relationships to help you write faster queries and omit the most obvious data. - -{{{ -#!php - 'Leo Tolstoi' -}}} - -You can customize the related table alias and the join type by passing arguments to the `useXXXQuery()` method: - -{{{ -#!php -useAuthorQuery('a', 'left join') - ->filterByName('Leo Tolstoi') - ->endUse() - ->find(); -// example Query generated for a MySQL database -$query = 'SELECT book.* from book -LEFT JOIN author a ON book.AUTHOR_ID = a.ID -WHERE a.NAME = :p1'; // :p1 => 'Leo Tolstoi' -}}} - -The `useXXXQuery()` methods allow for very complex queries. You can mix them, nest them, and reopen them to add more conditions. - -== Inherited Methods == - -The generated Query classes extend a core Propel class named `ModelCriteria`, which provides even more methods for building your queries. - -=== Finding An Object From Its Primary Key === - -{{{ -#!php -findPk(123); -// Finding the books having primary keys 123 and 456 -$books = BookQuery::create()->findPks(array(123, 456)); -// Also works for objects with composite primary keys -$bookOpinion = BookOpinionQuery::create()->findPk(array($bookId, $userId)); -}}} - -=== Finding Objects === - -{{{ -#!php -find(); -// Finding 3 Books -$articles = BookQuery::create() - ->limit(3) - ->find(); -// Finding a single Book -$article = BookQuery::create() - ->findOne(); -}}} - -=== Using Magic Query Methods === - -{{{ -#!php -findOneByTitle('War And Peace'); -// same as -$book = BookQuery::create() - ->filterByTitle('War And Peace') - ->findOne(); - -$books = BookQuery::create()->findByTitle('War And Peace'); -// same as -$books = BookQuery::create() - ->filterByTitle('War And Peace') - ->find(); - -// You can even combine several column conditions in a method name, if you separate them with 'And' -$book = BookQuery::create()->findOneByTitleAndAuthorId('War And Peace', 123); -// same as -$book = BookQuery::create() - ->filterByTitle('War And Peace') - ->filterById(123) - ->findOne(); -}}} - -=== Ordering Results === - -{{{ -#!php -orderByPublishedAt() - ->find(); -// Finding all Books ordered by published_at desc -$books = BookQuery::create() - ->orderByPublishedAt('desc') - ->find(); -}}} - -=== Specifying A Connection === - -{{{ -#!php -findOne($con); -}}} - -'''Tip''': In debug mode, the connection object provides a way to check the latest executed query, by calling `$con->getLastExecutedQuery()`. See the [wiki:Documentation/1.5/07-Logging Logging documentation] for more details. - -=== Counting Objects === - -{{{ -#!php -count($con); -// This is much faster than counting the results of a find() -// since count() doesn't populate Model objects -}}} - -=== Deleting Objects === - -{{{ -#!php -deleteAll($con); -// Deleting a selection of Books -$nbDeletedBooks = BookQuery::create() - ->filterByTitle('Pride And Prejudice') - ->delete($con); -}}} - -=== Updating Objects === - -{{{ -#!php -setName('Jane Austen'); -$author1->save(); -$author2 = new Author(); -$author2->setName('Leo Tolstoy'); -$author2->save(); - -// update() issues an UPDATE ... SET query based on an associative array column => value -$nbUpdatedRows = AuthorQuery::create() - ->filterByName('Leo Tolstoy') - ->update(array('Name' => 'Leo Tolstoi'), $con); - -// update() returns the number of modified columns -echo $nbUpdatedRows; // 1 - -// Beware that update() updates all records found in a single row -// And bypasses any behavior registered on the save() hooks -// You can force a one-by-one update by setting the third parameter of update() to true -$nbUpdatedRows = AuthorQuery::create() - ->filterByName('Leo Tolstoy') - ->update(array('Name' => 'Leo Tolstoi'), $con, true); -// Beware that it may take a long time -}}} - -=== Creating An Object Based on a Query === - -You may often create a new object based on values used in conditions if a query returns no result. This happens a lot when dealing with cross-reference tables in many-to-many relationships. To avoid repeating yourself, use `findOneOrCreate()` instead of `findOne()` in such cases: - -{{{ -#!php -filterByBook($book) - ->filterByTag('crime') - ->findOne(); -if (!$bookTag) { - $bookTag = new BookTag(); - $bookTag->setBook($book); - $bookTag->setTag('crime'); -} -// The short way -$bookTag = BookTagQuery::create() - ->filterByBook($book) - ->filterByTag('crime') - ->findOneOrCreate(); -}}} - -=== Reusing A Query === - -By default, termination methods like `findOne()`, `find()`, `count()`, `paginate()`, or `delete()` alter the original query. That means that if you need to reuse a query after a termination method, you must call the `keepQuery()` method first: - -{{{ -#!php -filterByIsPublished(true); -$book = $q->findOneByTitle('War And Peace'); -// findOneByXXX() adds a limit() to the query -// so further reuses of the query may show side effects -echo $q->count(); // 1 - -// to allos query reuse, call keepQuery() before the termination method -$q = BookQuery::create()->filterByIsPublished(true)->keepQuery(); -$book = $q->findOneByTitle('War And Peace'); -echo $q->count(); // 34 -}}} - -== Relational API == - -For more complex queries, you can use an alternative set of methods, closer to the relational logic of SQL, to make sure that Propel issues exactly the SQL query you need. - -This alternative API uses methods like `where()`, `join()` and `orderBy()` that translate directly to their SQL equivalent - `WHERE`, `JOIN`, etc. Here is an example: - -{{{ -#!php -join('Book.Author') - ->where('Author.Name = ?', 'Leo Tolstoi') - ->orderBy('Book.Title', 'asc') - ->find(); - -}}} - -The names passed as parameters in these methods, like 'Book.Author', 'Author.Name', and 'Book.Title', are ''explicit column names''. These names are composed of the phpName of the model, and the phpName of the column, separated by a dot (e.g. 'Author.Name'). Manipulating object model names allows you to be detached from the actual data storage, and alter the database names without necessarily updating the PHP code. It also makes the use of table aliases much easier - more on that matter later. - -Propel knows how to map the explicit column names to database column names in order to translate the Propel query into an actual database query: - -{{{ -#!php -where('Book.Title = ?', 'War And Peace') - ->find(); -// Finding all Books where title is like 'War%' -$books = BookQuery::create() - ->where('Book.Title LIKE ?', 'War%') - ->find(); -// Finding all Books published after $date -$books = BookQuery::create() - ->where('Book.PublishedAt > ?', $date) - ->find(); -// Finding all Books with no author -$books = BookQuery::create() - ->where('Book.AuthorId IS NULL') - ->find(); -// Finding all books from a list of authors -$books = BookQuery::create() - ->where('Book.AuthorId IN ?', array(123, 542, 563)) - ->find(); -// You can even use SQL functions inside conditions -$books = BookQuery::create() - ->where('UPPER(Book.Title) = ?', 'WAR AND PEACE') - ->find(); -}}} - -=== Combining Several Conditions === - -For speed reasons, `where()` only accepts simple conditions, with a single interrogation point for the value replacement. When you need to apply more than one condition, and combine them with a logical operator, you have to call `where()` multiple times. - -{{{ -#!php -where('Book.Title = ?', 'War And Peace') - ->where('Book.PublishedAt > ?', $date) - ->find(); -// For conditions chained with OR, use orWhere() instead of where() -$books = BookQuery::create() - ->where('Book.Title = ?', 'War And Peace') - ->orWhere('Book.Title LIKE ?', 'War%') - ->find(); -}}} - -The use of `where()` and `orWhere()` doesn't allow logically complex conditions, that you would write in SQL with parenthesis. For such cases, create named conditions with `condition()`, and then combine them in an array that you can pass to `where()` instead of a single condition, as follows: - -{{{ -#!php -condition('cond1', 'Book.Title = ?', 'War And Peace') // create a condition named 'cond1' - ->condition('cond2', 'Book.Title LIKE ?', 'War%') // create a condition named 'cond2' - ->where(array('cond1', 'cond2'), 'or')-> // combine 'cond1' and 'cond2' with a logical OR - ->find(); - // SELECT book.* from book WHERE (book.TITLE = 'War And Peace' OR book.TITLE LIKE 'War%'); - -// You can create a named condition from the combination of other named conditions by using `combine()` -// That allows for any level of complexity -$books = BookQuery::create() - ->condition('cond1', 'Book.Title = ?', 'War And Peace') // create a condition named 'cond1' - ->condition('cond2', 'Book.Title LIKE ?', 'War%') // create a condition named 'cond2' - ->combine(array('cond1', 'cond2'), 'or', 'cond12') // create a condition named 'cond12' from 'cond1' and 'cond2' - ->condition('cond3', 'Book.PublishedAt <= ?', $end) // create a condition named 'cond3' - ->condition('cond4', 'Book.PublishedAt >= ?', $begin) // create a condition named 'cond4' - ->combine(array('cond3', 'cond4'), 'and', 'cond34') // create a condition named 'cond34' from 'cond3' and 'cond4' - ->where(array('cond12', 'cond34'), 'and') // combine the two conditions in a where - ->find(); - // SELECT book.* FROM book WHERE ( - // (book.TITLE = 'War And Peace' OR book.TITLE LIKE 'War%') - // AND - // (book.PUBLISHED_AT <= $end AND book.PUBLISHED_AT >= $begin) - // ); -}}} - -=== Joining Tables === - -{{{ -#!php -setName('Jane Austen'); -$author1->save(); -$book1 = new Book(); -$book1->setTitle('Pride And Prejudice'); -$book1->setAuthor($author1); -$book1->save(); - -// Add a join statement -// No need to tell the query which columns to use for the join, just the related Class -// After all, the columns of the FK are already defined in the schema. -$book = BookQuery::create() - ->join('Book.Author') - ->where('Author.Name = ?', 'Jane Austen') - ->findOne(); - // SELECT book.* FROM book - // INNER JOIN author ON book.AUTHOR_ID = author.ID - // WHERE author.NAME = 'Jane Austin' - // LIMIT 1; - -// The default join() call results in a SQL INNER JOIN clause -// For LEFT JOIN or RIGHT JOIN clauses, use leftJoin() or rightJoin() instead of join() -$book = BookQuery::create() - ->leftJoin('Book.Author') - ->where('Author.Name = ?', 'Jane Austen') - ->findOne(); - -// You can chain joins if you want to make more complex queries -$review = new Review(); -$review->setBook($book1); -$review->setRecommended(true); -$review->save(); - -$author = BookQuery::create() - ->join('Author.Book') - ->join('Book.Review') - ->where('Review.Recommended = ?', true) - ->findOne(); - -// Alternatively, you can use the generated joinXXX() methods -// Which are a bit faster than join(), but limited to the current model's relationships -$book = BookQuery::create() - ->joinAuthor() - ->where('Author.Name = ?', 'Jane Austen') - ->findOne(); -// The join type depends on the required attribute of the foreign key column -// If the column is required, then the default join type is an INNER JOIN -// Otherwise, the default join type is a LEFT JOIN -// You can override the default join type for a given relationship -// By setting the joinType attribute of the foreign key element in the schema.xml -}}} - -=== Table Aliases === - -{{{ -#!php -where('b.Title = ?', 'Pride And Prejudice') - ->find(); - -// join(), leftJoin() and rightJoin() also allow table aliases -$author = AuthorQuery::create('a') - ->join('a.Book b') - ->join('b.Review r') - ->where('r.Recommended = ?', true) - ->findOne(); - -// Table aliases can be used in all query methods (where, groupBy, orderBy, etc.) -$books = BookQuery::create('b') - ->where('b.Title = ?', 'Pride And Prejudice') - ->orderBy('b.Title') - ->find(); - -// Table aliases are mostly useful to join the current table, -// or to handle multiple foreign keys on the same column -$employee = EmployeeQuery::create('e') - ->innerJoin('e.Supervisor s') - ->where('s.Name = ?', 'John') - ->find(); -}}} - -=== Minimizing Queries === - -Even if you do a join, Propel will issue new queries when you fetch related objects: - -{{{ -#!php -join('Book.Author') - ->where('Author.Name = ?', 'Jane Austen') - ->findOne(); -$author = $book->getAuthor(); // Needs another database query -}}} - -Propel allows you to retrieve the main object together with related objects in a single query. You just have to call the `with()` method to specify which objects the main object should be hydrated with. - -{{{ -#!php -join('Book.Author') - ->with('Author') - ->where('Author.Name = ?', 'Jane Austen') - ->findOne(); -$author = $book->getAuthor(); // Same result, with no supplementary query -}}} - -`with()` expects a relation name, as declared previously by `join()`. In practice, that means that `with()` and `join()` should always come one after the other. To avoid repetition, use `joinWith()` to both add a `join()` and a `with()` on a relation. So the shorter way to write the previous query is: - -{{{ -#!php -joinWith('Book.Author') - ->where('Author.Name = ?', 'Jane Austen') - ->findOne(); -$author = $book->getAuthor(); // Same result, with no supplementary query -}}} - -Since the call to `with()` adds the columns of the related object to the SELECT part of the query, and uses these columns to populate the related object, that means that `joinWith()` is slower and consumes more memory that `join()`. So use it only when you actually need the related objects afterwards. - -`with()` and `joinWith()` are not limited to immediate relationships. As a matter of fact, just like you can chain `join()` calls, you can chain `joinWith()` calls to populate a chain of objects: - -{{{ -#!php -joinWith('Review.Book') - ->joinWith('Book.Author') - ->joinWith('Book.Publisher') - ->findOne(); -$book = $review->getBook() // No additional query needed -$author = $book->getAuthor(); // No additional query needed -$publisher = $book->getPublisher(); // No additional query needed -}}} - -So `joinWith()` is very useful to minimize the number of database queries. As soon as you see that the number of queries necessary to perform an action is proportional to the number of results, adding `With` after `join()` calls is the trick to get down to a more reasonnable query count. - -=== Adding Columns === - -Sometimes you don't need to hydrate a full object in addition to the main object. If you only need one additional column, the `withColumn()` method is a good alternative to `joinWith()`, and it speeds up the query: - -{{{ -#!php -join('Book.Author') - ->withColumn('Author.Name', 'AuthorName') - ->findOne(); -$authorName = $book->getAuthorName(); -}}} - -Propel adds the 'with' column to the SELECT clause of the query, and uses the second argument of the `withColumn()` call as a column alias. This additional column is later available as a 'virtual' column, i.e. using a getter that does not correspond to a real column. You don't actually need to write the `getAuthorName()` method ; Propel uses the magic `__call()` method of the generated `Book` class to catch the call to a virtual column. - -`withColumn()` is also of great use to add calculated columns: - -{{{ -#!php -join('Author.Book') - ->withColumn('COUNT(Book.Id)', 'NbBooks') - ->groupBy('Author.Id') - ->find(); -foreach ($authors as $author) { - echo $author->getName() . ': ' . $author->getNbBooks() . " books\n"; -} -}}} - -With a single SQL query, you can have both a list of objects and an additional column for each object. That makes of `withColumn()` a great query saver. - -'''Tip''': You can call `withColumn()` multiple times to add more than one virtual column to the resulting objects. - -=== Adding A Comment === - -{{{ -#!php -setComment('Author Deletion') - ->filterByName('Leo Tolstoy') - ->delete($con); -// The comment ends up in the generated SQL query -// DELETE /* Author Deletion */ FROM `author` WHERE author.NAME = 'Leo Tolstoy' -}}} - -=== Using Methods From Another Query Class === - -After writing custom methods to query objects, developers often meet the need to use the method from another query. For instance, in order to select the authors of the most recent books, you may want to write: - -{{{ -#!php -join('Author.Book') - ->recent() - ->find(); -}}} - -The problem is that `recent()` is a method of `BookQuery`, not of the `AuthorQuery` class that the `create()` factory returns. - -Does that mean that you must repeat the `BookQuery::recent()` code into a new `AuthorQuery::recentBooks()` method? That would imply repeating the same code in two classes, which is not a good practice. Instead, use the `useQuery()` and `endUse()` combination to use the methods of `BookQuery` inside `AuthorQuery`: - -{{{ -#!php -join('Author.Book') - ->useQuery('Book') - ->recent() - ->endUse() - ->find(); -}}} - -This is excatly whath the generated `useBookQuery()` does, except that you have more control over the join type and alias when you use the relational API. Behind the scene, `useQuery('Book')` creates a `BookQuery` instance and returns it. So the `recent()` call is actually called on `BookQuery`, not on `ArticleQuery`. Upon calling `endUse()`, the `BookQuery` merges into the original `ArticleQuery` and returns it. So the final `find()` is indeed called on the `AuthorQuery` instance. - -You can nest queries in as many levels as you like, in order to avoid the repetition of code in your model. - -'''Tip''': If you define an alias for the relation in `join()`, you must pass this alias instead of the model name in `useQuery()`. - -{{{ -#!php -join('a.Book b') - ->useQuery('b') - ->recent() - ->endUse() - ->find(); -}}} - -=== Fluid Conditions === - -Thanks to the query factories and the fluid interface, developers can query the database without creating a variable for the Query object. This helps a lot to reduce the amount of code necessary to write a query, and it also makes the code more readable. - -But when you need to call a method on a Query object only if a certain condition is satisfied, it becomes compulsory to use a variable for the Query object: - -{{{ -#!php -isEditor()) { - $query->where('Book.IsPublished = ?', true); -} -$books = $query - ->orderByTitle() - ->find(); -}}} - -The `ModelCriteria` class offers a neat way to keep your code to a minimum in such occasions. It provides `_if()` and `_endif()` methods allowing for inline conditions. Using thses methods, the previous query can be written as follows: - -{{{ -#!php -_if(!$user->isEditor()) - ->where('Book.IsPublished = ?', true) - ->_endif() - ->orderByTitle() - ->find(); -}}} - -The method calls enclosed between `_if($cond)` and `_endif()` will only be executed if the condition is true. To complete the list of tools available for fluid conditions, you can also use `_else()` and `_elseif($cond)`. - -=== More Complex Queries === - -The Propel Query objects have even more methods that allow you to write queries of any level of complexity. Check the API documentation for the `ModelCriteria` class to see all methods. - -{{{ -#!php -find(); // $books behaves like an array -?> -There are books: -
    - -
  • - getTitle() ?> -
  • - -
- -find(); // $books is an object -?> - -isEmpty()): ?> -There are no books. - -There are count() ?> books: -
    - -
  • - getTitle() ?> -
  • - isLast()): ?> -
  • Do you want more books?
  • - - -
- -}}} - -Here is the list of methods you can call on a PropelCollection: - -{{{ -#!php -setFormatter('PropelArrayFormatter') - ->findOne(); -print_r($book); - => array('Id' => 123, 'Title' => 'War And Peace', 'ISBN' => '3245234535', 'AuthorId' => 456, 'PublisherId' => 567) -}}} - -Of course, the formatters take the calls to `with()` into account, so you can end up with a precise array representation of a model object: - -{{{ -#!php -setFormatter('PropelArrayFormatter') - ->with('Book.Author') - ->with('Book.Publisher') - ->findOne(); -print_r($book); - => array( - 'Id' => 123, - 'Title' => 'War And Peace', - 'ISBN' => '3245234535', - 'AuthorId' => 456, - 'PublisherId' => 567 - 'Author' => array( - 'Id' => 456, - 'FirstName' => 'Leo', - 'LastName' => 'Tolstoi' - ), - 'Publisher' => array( - 'Id' => 567, - 'Name' => 'Penguin' - ) - ) -}}} - -Propel provides four formatters: - * `PropelObjectFormatter`: The default formatter, returning a model object for `findOne()`, and a `PropelObjectCollection` of model objects for `find()` - * `PropelOnDemandFormatter`: To save memory for large resultsets, prefer this formatter ; it hydrates rows one by one as they are iterated on, and doesn't create a new Propel Model object at each row. Note that this formatter doesn't use the Instance Pool. - * `PropelArrayFormatter`: The array formatter, returning an associative array for `findOne()`, and a `PropelArrayCollection` of arrays for `find()` - * `PropelStatementFormatter`: The 'raw' formatter, returning a `PDOStatement` in any case. - -You can easily write your own formatter to format the resultas the way you want. A formatter is basically a subclass of `PropelFormatter` providing a `format()` and a `formatOne()` method expecting a PDO statement. - -== Writing Your Own business Logic Into A Query == - -=== Custom Filters === - -You can add custom methods to the query objects to make your queries smarter, more reusable, and more readable. Don't forget to return the current object (`$this`) in the new methods. - -{{{ -#!php -filterByPublishedAt(array('min' => time() - $nbDays * 24 * 60 * 60)); - } - - public function mostRecentFirst() - { - return $this->orderByPublishedAt('desc'); - } -} - -// You can now use your custom query and its methods together with the usual ones -$books = BookQuery::create() - ->recent() - ->mostRecentFirst() - ->find(); -}}} - -=== Custom Hooks === - -The query objects also allow you to add code to be executed before each query, by implementing one of the following methods: `preSelect()`, `preUpdate()`, and `preDelete()`. It makes the implementation of a 'soft delete' behavior very straightforward: - -{{{ -#!php -filterByDeletedAt(null); - } - - public function preDelete($con) - { - // mark the records as deleted instead of deleting them - return $this->update(array('DeletedAt' => time())); - } -} -}}} - -'''Tip''': You can create several custom queries for a given model, in order to separate the methods into logical classes. - -{{{ -#!php -where($this->getModelAliasOrName() . '.PublishedAt IS NOT NULL'); - } -} -// Use 'frontendBook' instead of 'Book' in the frontend to retrieve only published articles -$q = new frontendBookQuery(); -$books = $q->find(); -}}} - -'''Tip''': Due to late static binding issues in PHP 5.2, you cannot use the `create()` factory on an inherited query - unless you override it yoursel in the descendant class. Alternatively, Propel offers a global query factory named `PropelQuery`: - -{{{ -#!php -find(); -}}} \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/reference/Runtime-Configuration.txt b/airtime_mvc/library/propel/docs/reference/Runtime-Configuration.txt deleted file mode 100644 index 256c0a45e5..0000000000 --- a/airtime_mvc/library/propel/docs/reference/Runtime-Configuration.txt +++ /dev/null @@ -1,318 +0,0 @@ -= Runtime Configuration File = - -[[PageOutline]] - -== Example {{{runtime-conf.xml}}} File == - -Here is a the sample runtime configuration file. - -{{{ -#!xml - - - - propel-bookstore - console - 7 - - - - - sqlite - - DebugPDO - mysql:host=localhost;dbname=bookstore - testuser - password - - - - - - - - utf8 - - set search_path myschema, public - INSERT INTO BAR ('hey', 'there') - - - - - - mysql:host=slave-server1; dbname=bookstore - - - mysql:host=slave-server2; dbname=bookstore - - - - - - -
- - true - - - - true - 1 - -
-
-
-
-
-}}} - -== Explanation of Configuration Sections == - -Below you will find an explanation of the primary elements in the configuration. - -=== === - -If the '''''' element is present, Propel will use the specified information to instantiate a [http://pear.php.net/Log PEAR Log] logger. - -{{{ -#!xml - - - file - /path/to/logger.log - my-app - 7 - -}}} - -The nested elements correspond to the configuration options for the logger (options that would otherwise be passed to '''Log::factory()''' method). - -||'''Element'''||'''Default'''||'''Description'''|| -||''''''||file||The logger type.|| -||''''''||./propel.log||Name of log, meaning is dependent on type specified. (For ''file'' type this is the filename).|| -||''''''||propel||The identifier tag for the log.|| -||''''''||7 (PEAR_LOG_DEBUG)||The logging level.|| - -This log configuring API is designed to provide a simple way to get log output from Propel; however, if your application already has a logging mechanism, we recommend instead that you use your existing logger (writing a simple log adapter, if you are using an unsupported logger). See the [wiki:Documentation/1.5/07-Logging Logging documentation] for more info. - -=== === - -This is the top-level tag for Propel datasources configuration. - -{{{ -#!xml - - - -}}} - -=== === - -{{{ -#!xml - - - - -}}} -A specific datasource being configured. - * The @id must match the @name attribute from your {{{schema.xml}}}. - -=== === - -The adapter to use for Propel. Currently supported adapters: sqlite, pgsql, mysql, oracle, mssql. Note that it is possible that your adapter could be different from your connection driver (e.g. if using ODBC to connect to MSSQL database, you would use an ODBC PDO driver, but MSSQL Propel adapter). - -{{{ -#!xml - - - - - sqlite -}}} - -=== === - -The PDO database connection for the specified datasource. - -Nested elements define the DSN, connection options, other PDO attributes, and finally some Propel-specific initialization settings. - -{{{ -#!xml - - - - - -}}} - -==== ==== - -A custom PDO class (must be a PropelPDO subclass) that you would like to use for the PDO connection. - -{{{ -#!xml - - - - - - DebugPDO -}}} - -This can be used to specify the alternative '''DebugPDO''' class bundled with Propel, or your own subclass. ''Your class must extend PropelPDO, because Propel requires the ability to nest transactions (without having exceptions being thrown by PDO).'' - -==== ==== - -The PDO DSN that Propel will use to connect to the database for this datasource. - -{{{ -#!xml - - - - - - mysql:host=localhost;dbname=bookstore -}}} - -See the PHP documentation for specific format: - * [http://www.php.net/manual/en/ref.pdo-mysql.connection.php MySQL DSN] - * [http://www.php.net/manual/en/ref.pdo-pgsql.connection.php PostgreSQL DSN] - * [http://www.php.net/manual/en/ref.pdo-sqlite.connection.php SQLite DSN] - * [http://www.php.net/manual/en/ref.pdo-oci.connection.php Oracle DSN] - * [http://www.php.net/manual/en/ref.pdo-dblib.connection.php MSSQL DSN] - -Note that some database (e.g. PostgreSQL) specify username and password as part of the DSN while the others specify user and password separately. - -==== and ==== - -Specifies credentials for databases that specify username and password separately (e.g. MySQL, Oracle). - -{{{ -#!xml - - - - - - mysql:host=localhost;dbname=bookstore - test - testpass -}}} - -==== ==== - -Specify any options which ''must'' be specified when the PDO connection is created. For example, the ATTR_PERSISTENT option must be specified at object creation time. - -See the [http://www.php.net/pdo PDO documentation] for more details. - -{{{ -#!xml - - - - - - - - - -}}} - -==== ==== - -`` are similar to ``; the difference is that options specified in `` are set after the PDO object has been created. These are set using the [http://us.php.net/PDO-setAttribute PDO->setAttribute()] method. - -In addition to the standard attributes that can be set on the PDO object, there are also the following Propel-specific attributes that change the behavior of the PropelPDO connection: - -|| '''Attribute constant''' || '''Valid Values (Default)''' || '''Description''' || -|| PropelPDO::PROPEL_ATTR_CACHE_PREPARES || true/false (false) || Whether to have the PropelPDO connection cache the PDOStatement prepared statements. This will improve performance if you are executing the same query multiple times by your script (within a single request / script run). || - -''Note that attributes in the XML can be specified with or without the PDO:: (or PropelPDO::) constant prefix.'' - -{{{ -#!xml - - - - - - - - - - - -}}} - -'''Tip''': If you are using MySQL and get the following error : "SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active", you can try adding the following attribute: - -{{{ - -}}} - -==== ==== - -Settings are Propel-specific options used to further configure the connection -- or perform other user-defined initialization tasks. - -Currently supported settings are: - * charset - * queries - -===== charset ===== - -Specifies the character set to use. Currently you must specify the charset in the way that is understood by your RDBMS. Also note that not all database systems support specifying charset (e.g. SQLite must be compiled with specific charset support). Specifying this option will likely result in an exception if your database doesn't support the specified charset. - -{{{ -#!xml - - - - - - - - utf8 - -}}} - -===== queries ===== - -Specifies any SQL statements to run when the database connection is initialized. This can be used for any environment setup or db initialization you would like to perform. These statements will be executed with every Propel initialization (e.g. every PHP script load). - -{{{ -#!xml - - - - - - - - - set search_path myschema, public - INSERT INTO BAR ('hey', 'there') - - -}}} - -=== === - -{{{ -#!xml - - - - - -}}} - -The `` tag groups slave `` elements which provide support for configuring slave db servers -- when using Propel in a master-slave replication environment. See the [wiki:Documentation/1.5/Master-Slave Master-Slave documentation] for more information. The nested `` elements are configured the same way as the top-level `` element is configured. - -=== === - -The optional `` element may be provided to pass additional logging configuration options to DebugPDO. Note that these settings have no effect unless DebugPDO has been selected in [1.5/RuntimeConfiguration#debugpdo `runtime-conf.xml`] as the PDO connection class. See the [wiki:Documentation/1.5/07-Logging Logging documentation] for more information on configuring DebugPDO. \ No newline at end of file diff --git a/airtime_mvc/library/propel/docs/reference/Schema.txt b/airtime_mvc/library/propel/docs/reference/Schema.txt deleted file mode 100644 index b130c03fb7..0000000000 --- a/airtime_mvc/library/propel/docs/reference/Schema.txt +++ /dev/null @@ -1,398 +0,0 @@ -= Database Schema = - -[[PageOutline]] - -The schema for `schema.xml` contains a small number of elements with required and optional attributes. The Propel generator contains a [source:branches/1.5/generator/resources/dtd/database.dtd DTD] that can be used to validate your `schema.xml` document. Also, when you build your SQL and OM, the Propel generator will automatically validate your `schema.xml` file using a highly-detailed [source:branches/1.5/generator/resources/xsd/database.xsd XSD]. - -== At-a-Glance == - -The hierarchical tree relationship for the elements is: - -{{{ -#!xml - - -
- - - - - - - - - - - - - -
-
-}}} - -**Tip**: If you use an IDE supporting autocompletion in XML documents, you can take advantage of the XSD describing the `schema.xml` syntax to suggest elements and attributes as you type. To enable it, add a `xmlns:xsi` and a `xsi:noNamespaceSchemaLocation` attribute to the leading `` tag: - -{{{ -#!xml - -}}} - -== Detailed Reference == - -This page provides an alternate rendering of the Appendix B - Schema Reference from the user's guide. -It spells out in specific detail, just where each attribute or element belongs. - -First, some conventions: - - * Text surrounded by a '''/''' is text that you would provide and is not defined in the language. (i.e. a table name is a good example of this.) - * Optional items are surrounded by '''[''' and ''']''' characters. - * Items where you have an alternative choice have a '''|''' character between them (i.e. true|false) - * Alternative choices may be delimited by '''{''' and '''}''' to indicate that this is the default option, if not overridden elsewhere. - * '''...''' means repeat the previous item. - -=== element === - -Starting with the {{{}}} element. The ''attributes'' and ''elements'' available are: - -{{{ -#!xml - - - - ... - -}}} - -The `package`, `baseClass`, `basePeer`, `defaultPhpNamingMethod`, and `heavyIndexing` attributes are generally optional. -A Database element may include an `` element, or multiple `
` elements. - - * `defaultIdMethod` sets the default id method to use for auto-increment columns. - * `package` specifies the "package" for the generated classes. Classes are created in subdirectories according to the `package` value. - * `namespace` specifies the default namespace that generated model classes will use (PHP 5.3 only). This attribute can be completed or overridden at the table level. - * `baseClass` allows you to specify a default base class that all generated Propel objects should extend (in place of `propel.om.BaseObject`). - * `basePeer` instructs Propel to use a different SQL-generating `BasePeer` class (or sub-class of `BasePeer`) for all generated objects. - * `defaultPhpNamingMethod` the default naming method to use for tables of this database. Defaults to `underscore`, which transforms table names into CamelCase phpNames. - * `heavyIndexing` adds indexes for each component of the primary key (when using composite primary keys). - * `tablePrefix` adds a prefix to all the SQL table names. - -=== element === - -The `` element is pretty simple. It just includes a schema file from somewhere on the file systems. The format is: - -{{{ -#!xml - -}}} - -===
element === - -The `
` element is the most complicated of the usable elements. Its definition looks like this: - -{{{ -#!xml -
- - - ... - - ... - - ... - - ... - - ... -
-}}} - -According to the schema, `name` is the only required attribute. Also, the `idMethod`, `package`, `namespace`, `phpNamingMethod`, `baseClass`, `basePeer`, and `heavyIndexing` attributes all default to what is specified by the `` element. - -==== Description of Attributes ==== - - * `idMethod` sets the id method to use for auto-increment columns. - * `phpName` specifies object model class name. By default, Propel uses a CamelCase version of the table name as phpName. - * `package` specifies the "package" (or subdirectory) in which model classes get generated. - * `namespace` specifies the namespace that the generated model classes will use (PHP 5.3 only). If the table namespace starts with a `\`, it overrides the namespace defined in the `` tag; otherwise, the actual table namespace is the concatenation of the database namespace and the table namespace. - * `skipSql` instructs Propel not to generate DDL SQL for the specified table. This can be used together with `readOnly` for supperting VIEWS in Propel. - * `abstract` Whether the generated ''stub'' class will be abstract (e.g. if you're using inheritance) - * `phpNamingMethod` the naming method to use. Defaults to `underscore`, which transforms the table name into a CamelCase phpName. - * `baseClass` allows you to specify a class that the generated Propel objects should extend ({{{in place of propel.om.BaseObject}}}). - * `basePeer` instructs Propel to use a different SQL-generating `BasePeer` class (or sub-class of `BasePeer`). - * `heavyIndexing` adds indexes for each component of the primary key (when using composite primary keys). - * `readOnly` suppresses the mutator/setter methods, save() and delete() methods. - * `treeMode` is used to indicate that this table is part of a node tree. Currently the only supported values are "!NestedSet" (see [wiki:Documentation/1.5/Behaviors/nested_set]) and "!MaterializedPath" (deprecated). - * `reloadOnInsert` is used to indicate that the object should be reloaded from the database when an INSERT is performed. This is useful if you have triggers (or other server-side functionality like column default expressions) that alters the database row on INSERT. - * `reloadOnUpdate` is used to indicate that the object should be reloaded from the database when an UPDATE is performed. This is useful if you have triggers (or other server-side functionality like column default expressions) that alters the database row on UPDATE. - * `allowPkInsert` can be used if you want to define the primary key of a new object being inserted. By default if idMethod is "native", Propel would throw an exception. However, in some cases this feature is useful, for example if you do some replication of data in an master-master environment. It defaults to false. - -=== element === - -{{{ -#!xml - - [] - -}}} - -==== Description of Attributes ==== - - * {{{defaultValue}}} The default value that the object will have for this column in the PHP instance after creating a "new Object". This value is always interpreted as a string. - * {{{defaultExpr}}} The default value for this column as expressed in SQL. This value is used solely for the "sql" target which builds your database from the schema.xml file. The defaultExpr is the SQL expression used as the "default" for the column. - * {{{primaryString}}} A column defined as primary string serves as default value for a `__toString()` method in the generated Propel object. - -=== element === - -To link a column to another table use the following syntax: - -{{{ -#!xml - - - -}}} - -==== Description of Attributes ==== - - * {{{defaultJoin}}} This affects the default join type used in the generated `joinXXX()` methods in the model query class. Propel uses an INNER JOIN for foreign keys attached to a required column, and a LEFT JOIN for foreign keys attached to a non-required column, but you can override this in the foreign key element. - -=== element === - -To create an index on one or more columns, use the following syntax: - -{{{ -#!xml - - - ... - -}}} - -In some cases your RDBMS may require you to specify an index size. - -=== element === - -To create a unique index on one or more columns, use the following syntax: - -{{{ -#!xml - - - ... - -}}} - -In some cases your RDBMS may require you to specify an index size for unique indexes. - -=== element === - -If you are using a database that uses sequences for auto-increment columns (e.g. PostgreSQL or Oracle), you can customize the name of the sequence using the tag: - -{{{ -#!xml - -}}} - -== Column Types == - -Here are the Propel column types with some example mappings to native database and PHP types. There are also several ways to customize the mapping between these types. - -=== Text Types === - -||'''Propel Type'''||'''Desc'''||'''Example Default DB Type (MySQL)'''||'''Default PHP Native Type'''|| -||CHAR||Fixed-lenght character data||CHAR||string|| -||VARCHAR||Variable-lenght character data||VARCHAR||string|| -||LONGVARCHAR||Long variable-length character data||TEXT||string|| -||CLOB||Character LOB (locator object)||LONGTEXT||string|| - -=== Numeric Types === - -||'''Propel Type'''||'''Desc'''||'''Example Default DB Type (MySQL)'''||'''Default PHP Native Type'''|| -||NUMERIC||Numeric data||DECIMAL||string (PHP int is limited)|| -||DECIMAL||Decimal data||DECIMAL||string (PHP int is limited)|| -||TINYINT||Tiny integer ||TINYINT||int|| -||SMALLINT||Small integer ||SMALLINT||int|| -||INTEGER||Integer||INTEGER||int|| -||BIGINT||Large integer||BIGINT||string (PHP int is limited)|| -||REAL||Real number||REAL||double|| -||FLOAT||Floating point number||FLOAT||double|| -||DOUBLE||Floating point number||DOUBLE||double|| - -=== Binary Types === - -||'''Propel Type'''||'''Desc'''||'''Example Default DB Type (MySQL)'''||'''Default PHP Native Type'''|| -||BINARY||Fixed-length binary data||BLOB||double|| -||VARBINARY||Variable-length binary data||MEDIUMBLOB||double|| -||LONGVARBINARY||Long variable-length binary data||LONGBLOB||double|| -||BLOB||Binary LOB (locator object)||LONGBLOB||string|| - -=== Temporal (Date/Time) Types === - - -||'''Propel Type'''||'''Desc'''||'''Example Default DB Type (MySQL)'''||'''Default PHP Native Type'''|| -||DATE||Date (e.g. YYYY-MM-DD)||DATE||DateTime object|| -||TIME||Time (e.g. HH:MM:SS)||TIME||DateTime object|| -||TIMESTAMP||Date + time (e.g. YYYY-MM-DD HH:MM:SS)||TIMESTAMP||DateTime object|| - -==== Legacy Temporal Types ==== - -The following Propel 1.2 types are still supported, but are no longer needed with Propel 1.3. - -||'''Propel Type'''||'''Desc'''||'''Example Default DB Type (MySQL)'''||'''Default PHP Native Type'''|| -||BU_DATE||Pre-/post-epoch date (e.g. 1201-03-02)||DATE||DateTime object|| -||BU_TIMESTAMP||Pre-/post-epoch Date + time (e.g. 1201-03-02 12:33:00)||TIMESTAMP||DateTime object|| - -== Customizing Mappings == - -=== Specify Column Attributes === - -You can change the way that Propel maps its own types to native SQL types or to PHP types by overriding the values for a specific column. - -For example: - -(Overriding PHP type) -{{{ -#!xml - -}}} - -(Overriding SQL type) -{{{ -#!xml - -}}} - -=== Adding Vendor Info === - -Propel supports database-specific elements in the schema (currently only for MySQL). This "vendor" parameters affect the generated SQL. To add vendor data, add a `` tag with a `type` attribute specifying the target database vendor. In the `` tag, add `` tags with a `name` and a `value` attribue. For instance: - -{{{ -#!xml - - - - - -
-}}} - -This will change the generated SQL table creation to look like: - -{{{ -#!sql -CREATE TABLE book - () - ENGINE = InnoDB - DEFAULT CHARACTER SET utf8; -}}} - -Propel supports the following vendor parameters for MySQL: - -{{{ -Name | Example values ------------------|--------------- -// in element -Engine | MYISAM (default), BDB, HEAP, ISAM, InnoDB, MERGE, MRG_MYISAM -Charset | utf8, latin1, etc. -Collate | utf8_unicode_ci, latin1_german1_ci, etc. -Checksum | 0, 1 -Pack_Keys | 0, 1, DEFAULT -Delay_key_write | 0, 1 -// in element -Charset | utf8, latin1, etc. -Collate | utf8_unicode_ci, latin1_german1_ci, etc. -// in element -Index_type | FULLTEXT -}}} - -=== Using Custom Platform === - -For overriding the mapping between Propel types and native SQL types, you can create your own Platform class and override the mapping. - -For example: - -{{{ -#!php -setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, "DECIMAL")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "TEXT")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BLOB")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "MEDIUMBLOB")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "LONGBLOB")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, "LONGBLOB")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "LONGTEXT")); - } -} -}}} - -You must then specify that mapping in the {{{build.properties}}} for your project: - -{{{ -propel.platform.class = propel.engine.platform.${propel.database}Platform -}}} diff --git a/airtime_mvc/library/propel/generator/bin/propel-gen b/airtime_mvc/library/propel/generator/bin/propel-gen deleted file mode 100755 index ea10819b51..0000000000 --- a/airtime_mvc/library/propel/generator/bin/propel-gen +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/sh -# Shell wrapper for Propel generator -# $Id$ -# -# This script will do the following: -# - check for PHING_COMMAND env, if found, use it. -# - if not found assume php is on the path -# - check for PROPEL_GEN_HOME env, if found use it -# - if not look for it - -if [ -z "$PROPEL_GEN_HOME" ] ; then - - # try to find Propel - if [ -d /opt/propel/generator ] ; then - PROPEL_GEN_HOME=/opt/propel/generator - fi - - if [ -d "${HOME}/opt/propel/generator" ] ; then - PROPEL_GEN_HOME="${HOME}/opt/propel/generator" - fi - - if [ -d "/usr/local/propel/generator" ] ; then - PROPEL_GEN_HOME="/usr/local/propel/generator" - fi - - if [ -d "${HOME}/usr/propel/generator" ] ; then - PROPEL_GEN_HOME="${HOME}/usr/propel/generator" - fi - - ## resolve links - the script name may be a link to phing's home - PRG="$0" - progname=`basename "$0"` - saveddir=`pwd` - - # need this for relative symlinks - dirname_prg=`dirname "$PRG"` - cd "$dirname_prg" - - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi - done - - cd "$saveddir" - - PROPEL_GEN_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - PROPEL_GEN_HOME=`cd "$PROPEL_GEN_HOME" && pwd` - - # make it available in PHP via getenv("PROPEL_GEN_HOME") - export PROPEL_GEN_HOME - -fi - -if [ -z "$PHING_COMMAND" ] ; then - # echo "WARNING: PHING_COMMAND environment not set. (Assuming phing on PATH)" - export PHING_COMMAND="phing" -fi - -if [ $# = 1 ] ; then - $PHING_COMMAND -f $PROPEL_GEN_HOME/build.xml -Dusing.propel-gen=true -Dproject.dir=$saveddir $* -else - $PHING_COMMAND -f $PROPEL_GEN_HOME/build.xml -Dusing.propel-gen=true -Dproject.dir=$* -fi diff --git a/airtime_mvc/library/propel/generator/build-propel.xml b/airtime_mvc/library/propel/generator/build-propel.xml deleted file mode 100644 index 0365442485..0000000000 --- a/airtime_mvc/library/propel/generator/build-propel.xml +++ /dev/null @@ -1,513 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ATTENTION: It appears you are using PostgreSQL and you have identifier-quoting turned on. - It is suggested that you disable identifier quoting when using PostgreSQL -- especially if you - have case-sensitive columns in your database. - - To disable identifier quoting, add the following property to your build.properties (or specify - it using -D on commandline): - - propel.disableIdentifierQuoting=true - - You can ignore this warning if you understand the issues related to case-sensitivity and Propel's - DDL-only implementation of identifier quoting. - - - - - - - - - - - - ATTENTION: It appears you are using the mysqli driver. - - This driver is no longer supported by Propel because Propel now uses PDO for database connections. - Please use mysqli driver instead. - Use 'mysql' instead of 'mysqli' for your propel.database property. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Output file: ${propel.runtime.phpconf.file} - XMLFile: ${propel.conf.dir}/${propel.runtime.conf.file} - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/build.properties-sample b/airtime_mvc/library/propel/generator/build.properties-sample deleted file mode 100644 index e94312a218..0000000000 --- a/airtime_mvc/library/propel/generator/build.properties-sample +++ /dev/null @@ -1,192 +0,0 @@ -# ------------------------------------------------------------------- -# -# P R O P E L C O N F I G U R A T I O N F I L E -# -# ------------------------------------------------------------------- -# This file contains some example properties. Ideally properties -# should be specified in the project-specific build.properties file; -# however, this file can be used to specify non-default properties -# that you would like to use accross all of your Propel projects. -# ------------------------------------------------------------------- -# - -propel.home = . - -# ------------------------------------------------------------------- -# -# P R O J E C T -# -# ------------------------------------------------------------------- -# This is the name of your Propel project. The name of your Propel -# project is used (by default) to determine where the generator will -# find needed configuration files and will place resuilting build -# files. E.g. if your project is named 'killerapp', Propel will -# look here for schema.xml and runtime-conf.xml files: -# -# projects/killerapp/ -# -# ------------------------------------------------------------------- - -# You can set this here, but it's preferrable to set this in a -# project-specific build.properties file. -# -# propel.project = bookstore - -# ------------------------------------------------------------------- -# -# T A R G E T D A T A B A S E -# -# ------------------------------------------------------------------- -# This is the target database, only considered when generating -# the SQL for your Propel project. Your possible choices are: -# -# mssql, mysql, oracle, pgsql, sqlite -# ------------------------------------------------------------------- - -# You can set this here, but it's preferrable to set this in a -# project-specific build.properties file. -# -# propel.database = mysql - -# ------------------------------------------------------------------- -# -# O B J E C T M O D E L I N F O R M A T I O N -# -# ------------------------------------------------------------------- -# These settings will allow you to customize the way your -# Peer-based object model is created. -# ------------------------------------------------------------------- -# addGenericAccessors -# If true, Propel adds methods to get database fields by name/position. -# -# addGenericMutators -# If true, Propel adds methods to set database fields by name/position. -# -# addSaveMethod -# If true, Propel adds tracking code to determine how to save objects. -# -# addTimeStamp -# If true, Propel true puts time stamps in phpdoc of generated om files. -# -# basePrefix -# A string to pre-pend to the file names of base data and peer objects. -# -# complexObjectModel -# If true, Propel generates data objects with collection support and -# methods to easily retreive foreign key relationships. -# -# targetPackage -# Sets the PHP "package" the om files will generated to, e.g. -# "com.company.project.om". -# -# targetPlatform -# Sets whether Propel is building classes for php5 (default) -# or php4 (experimental). -# -# packageObjectModel -# Sets whether Propel is packaging ObjectModel fro several -# [package].schema.xml files. The -# attribute has to be set then. (warning: this is experimental!) -# -# ------------------------------------------------------------------- - -# classes will be put in (and included from) this directory -# e.g. if package is "bookstore" then om will expect include('bookstore/Book.php'); to work. -# use dot-path notation -- e.g. my.bookstore -> my/bookstore. -# -propel.targetPackage = ${propel.project} - -propel.addGenericAccessors = false -propel.addGenericMutators = false -propel.addSaveMethod = true -propel.addTimeStamp = true -propel.basePrefix = Base -propel.complexObjectModel = true -propel.targetPlatform = php5 -propel.packageObjectModel = false - -# ------------------------------------------------------------------- -# -# D B C O N N E C T I O N S E T T I N G S -# -# ------------------------------------------------------------------- -# PDO connection settings. These connection settings are used by -# build tagets that perform database operations (e.g. 'insert-sql', -# 'reverse'). -# -# You can set them here, but it's preferrable to set these properties -# in a project-specific build.properties file. -# - -# If you want to use a custom driver, specify it below, otherwise -# leave it blank or comment it out to use Creole stock driver. -# -# propel.database.driver = creole.drivers.sqlite.SQLiteConnection - -# Note that if you do not wish to specify the database (e.g. if you -# are using multiple databses) you can use the @DB@ token which -# will be replaced with a database at runtime. -# -# propel.database.url = mysql:host=$host;dbname=$database - -# For MySQL or Oracle, you also need to specify username & password -# propel.database.user = [db username] -# propel.database.password = [db password] - -# Use the URL below to specify a DSN to used to create the database. -# Note that this URL should not contain the database name, as you will -# get an error if the database does not exist. -# (This does not apply to SQLite since the databse is automatically created -# when the connection is made -- if it does not already exist.) -# -# propel.database.createUrl = mysql:host=$host;dbname=$database - - -# ------------------------------------------------------------------- -# -# D A T A B A S E TO X M L -# -# ------------------------------------------------------------------- -# -# samePhpName -# If true, the reverse task will set the phpName attribute for the -# tables and columns to be the same as SQL name. -# -# addVendorInfo -# If true, the reverse task will add vendor specific information -# to the database schema -# -# addValidators -# Bitfield like option to turn on/off addition of Validator and -# Rule tags to the schema. Uses a boolean syntax like in php.ini. -# Allowed tokens are: -# none add no validators) -# all add all validators) -# maxlength add maxlengths for string type columns) -# maxvalue add maxvalue for numeric columns) -# type add notmatch validators for numeric columns) -# required add required validators for required columns) -# unique add unique validators for unique indexes) -# Allowed operators are: -# & bitwise AND -# | bitwise OR -# ~ bitwise NOT -# -# ------------------------------------------------------------------- - -# propel.samePhpName = false -# propel.addVendorInfo=true -# propel.addValidators=none - - -# ------------------------------------------------------------------- -# -# D A T A B A S E B U I L D C O N F I G -# -# ------------------------------------------------------------------- -# Some databases provide some configuration options that can be set -# in this script. -# -# === MySQL -# propel.mysql.tableType -# Use this property to set the table type of generated tables (e.g. InnoDB, MyISAM). diff --git a/airtime_mvc/library/propel/generator/build.xml b/airtime_mvc/library/propel/generator/build.xml deleted file mode 100644 index 5005dae112..0000000000 --- a/airtime_mvc/library/propel/generator/build.xml +++ /dev/null @@ -1,184 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Project name - - - - - No project.dir was specified, using default path: ./projects/${project} - - - - - - - - Processing additional properties file: ${additional.properties} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/airtime_mvc/library/propel/generator/build.xml-local b/airtime_mvc/library/propel/generator/build.xml-local deleted file mode 100644 index ff57c3b2b8..0000000000 --- a/airtime_mvc/library/propel/generator/build.xml-local +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/airtime_mvc/library/propel/generator/default.properties b/airtime_mvc/library/propel/generator/default.properties deleted file mode 100644 index 3d914e514b..0000000000 --- a/airtime_mvc/library/propel/generator/default.properties +++ /dev/null @@ -1,267 +0,0 @@ -# ------------------------------------------------------------------- -# -# D E F A U L T P R O P E R T I E S -# -# ------------------------------------------------------------------- -# This file sets default properties. You can override any of these -# by specifying your new value in the build.properties file for your -# project or a top-level build.properties file. Either way, you -# should not need to edit this file. -# ------------------------------------------------------------------- - - -# ------------------------------------------------------------------- -# -# B A S I C P R O P E R T I E S -# -# ------------------------------------------------------------------- - -propel.version = 1.5.2 - -propel.home = . - -propel.project = -propel.database = -propel.targetPackage = ${propel.project} -propel.runOnlyOnSchemaChange = false - -# Default behavior settings -# -propel.targetPlatform = php5 -propel.packageObjectModel = false -propel.useDateTimeClass = true -propel.dateTimeClass = DateTime - -propel.schema.validate = true -propel.schema.transform = false - -# controls what type of joins will be used in the doSelectJoin*() peer methods, -# if set to true, LEFT JOINS will be used, INNER JOINS otherwise -# see ticket #491, #588 -propel.useLeftJoinsInDoJoinMethods = true - -# ------------------------------------------------------------------- -# -# D A T A B A S E S E T T I N G S -# -# ------------------------------------------------------------------- - -propel.database.url = -propel.database.buildUrl = ${propel.database.url} -propel.database.createUrl = ${propel.database.buildUrl} - -propel.database.driver = - -propel.database.schema = -propel.database.encoding = -propel.database.manualCreation = false - -# if these arent blank then when we try to connect with insert-sql to a database -# that doesnt require them and it isnt in the build.properties it sends -# the ${blah} for the username and password -propel.database.user = -propel.database.password = - -# ------------------------------------------------------------------- -# -# D A T A B A S E T O X M L S E T T I N G S -# -# ------------------------------------------------------------------- - -propel.samePhpName = false -propel.addVendorInfo = false -propel.addValidators = none - -# ------------------------------------------------------------------- -# -# T E M P L A T E V A R I A B L E S -# -# ------------------------------------------------------------------- - -propel.addGenericAccessors = true -propel.addGenericMutators = true -propel.addSaveMethod = true -propel.addTimeStamp = false -propel.addValidateMethod = true -propel.addIncludes = false -propel.addHooks = true -propel.basePrefix = Base -propel.saveException = PropelException -propel.emulateForeignKeyConstraints = false - -# Identifier quoting is only implemented at the DDL layer at this point. -# Since this may result in undesired behavior (especially in Postgres), -# it can be disabled by setting this property to true in your build.properties file. -propel.disableIdentifierQuoting = false - -# These are the default formats that will be used when fetching values -# from temporal columns in Propel. You can always specify these when -# calling the methods directly, but for methods like getByName() -# it is nice to change the defaults. - -propel.defaultTimeStampFormat = Y-m-d H:i:s -propel.defaultTimeFormat = %X -propel.defaultDateFormat = %x - -propel.namespace.om = om -propel.namespace.map = map -propel.namespace.autoPackage = false - -propel.omtar.src.base = false -propel.omtar.src.extension = false -propel.omtar.bin.base = false -propel.omtar.bin.extension = false -propel.omtar.deleteFiles = false - -# ------------------------------------------------------------------- -# -# D I R E C T O R I E S -# -# ------------------------------------------------------------------- - -propel.project.dir = ${propel.home}/projects/${propel.project} - -propel.output.dir = ${propel.project.dir}/build -propel.schema.dir = ${propel.project.dir} -propel.templatePath = ${propel.home}/templates -propel.conf.dir = ${propel.project.dir} - -propel.doc.dir = ${propel.output.dir}/doc -propel.php.dir = ${propel.output.dir}/classes -propel.phpconf.dir = ${propel.output.dir}/conf -propel.phpdoc.dir = ${propel.output.dir}/phpdoc -propel.sql.dir = ${propel.output.dir}/sql -propel.graph.dir = ${propel.output.dir}/graph -propel.omtar.dir = ${propel.output.dir} - -# ------------------------------------------------------------------- -# -# D E F A U L T F I L E N A M ES -# -# ------------------------------------------------------------------- - -# propel.sqlfile - -propel.runtime.conf.file = runtime-conf.xml -propel.runtime.phpconf.file = ${propel.project}-conf.php -propel.runtime.phpconf-classmap.file = ${propel.project}-classmap.php -propel.default.schema.basename = schema - -# Can't use because of inconsistencies in where the files -# are named (some from build-propel.xml, but some from within templates) -# propel.default.data.basename = ${propel.project}-data - -propel.schema.xsd.file = ${propel.home}/resources/xsd/database.xsd -propel.schema.xsl.file = ${propel.home}/resources/xsl/database.xsl - -# ------------------------------------------------------------------- -# -# I N C L U D E A N D E X C L U D E S E T T I N G S -# -# ------------------------------------------------------------------- - -propel.schema.sql.includes = *schema.xml -propel.schema.sql.excludes = -propel.schema.doc.includes = *schema.xml -propel.schema.doc.excludes = -propel.schema.create-db.includes = *schema.xml -propel.schema.create-db.excludes = -propel.schema.init-sql.includes = *schema.xml -propel.schema.init-sql.excludes = id-table-schema.xml -propel.schema.om.includes = *schema.xml -propel.schema.om.excludes = id-table-schema.xml -propel.schema.datadtd.includes = *schema.xml -propel.schema.datadtd.excludes = id-table-schema.xml - -# ------------------------------------------------------------------- -# -# M A P P E R S E T T I N G S -# -# ------------------------------------------------------------------- - -# (note: data xml files are selected based on datadbmap file) -propel.datasql.mapper.from = *.xml -propel.datasql.mapper.to = *.sql - -propel.datadump.mapper.from = *schema.xml -propel.datadump.mapper.to = *data.xml - -propel.datadtd.mapper.from = *.xml -propel.datadtd.mapper.to = *.dtd - -propel.sql.mapper.from = *.xml -propel.sql.mapper.to = *.sql - - -# ------------------------------------------------------------------- -# -# B U I L D E R S E T T I N G S -# -# ------------------------------------------------------------------- - -# Object Model builders -propel.builder.peer.class = builder.om.PHP5PeerBuilder -propel.builder.object.class = builder.om.PHP5ObjectBuilder -propel.builder.objectstub.class = builder.om.PHP5ExtensionObjectBuilder -propel.builder.peerstub.class = builder.om.PHP5ExtensionPeerBuilder - -propel.builder.objectmultiextend.class = builder.om.PHP5MultiExtendObjectBuilder - -propel.builder.tablemap.class = builder.om.PHP5TableMapBuilder -propel.builder.query.class = builder.om.QueryBuilder -propel.builder.querystub.class = builder.om.ExtensionQueryBuilder -propel.builder.queryinheritance.class = builder.om.QueryInheritanceBuilder -propel.builder.queryinheritancestub.class = builder.om.ExtensionQueryInheritanceBuilder - -propel.builder.interface.class = builder.om.PHP5InterfaceBuilder - -propel.builder.node.class = builder.om.PHP5NodeBuilder -propel.builder.nodepeer.class = builder.om.PHP5NodePeerBuilder -propel.builder.nodestub.class = builder.om.PHP5ExtensionNodeBuilder -propel.builder.nodepeerstub.class = builder.om.PHP5ExtensionNodePeerBuilder - -propel.builder.nestedset.class = builder.om.PHP5NestedSetBuilder -propel.builder.nestedsetpeer.class = builder.om.PHP5NestedSetPeerBuilder - -propel.builder.pluralizer.class = builder.util.DefaultEnglishPluralizer - -# SQL builders - -propel.builder.ddl.class = builder.sql.${propel.database}.${propel.database}DDLBuilder -propel.builder.datasql.class = builder.sql.${propel.database}.${propel.database}DataSQLBuilder - -# Platform classes - -propel.platform.class = platform.${propel.database}Platform - -# Schema Parser (reverse-engineering) classes - -propel.reverse.parser.class = reverse.${propel.database}.${propel.database}SchemaParser - -# ------------------------------------------------------------------- -# -# M Y S Q L S P E C I F I C S E T T I N G S -# -# ------------------------------------------------------------------- - -# Default table type -propel.mysqlTableType = MyISAM -# Keyword used to specify table type. MYSQL < 5 should use TYPE instead -propel.mysqlTableEngineKeyword = ENGINE - -# ------------------------------------------------------------------- -# -# B E H A V I O R S E T T I N G S -# -# ------------------------------------------------------------------- - -propel.behavior.timestampable.class = behavior.TimestampableBehavior -propel.behavior.alternative_coding_standards.class = behavior.AlternativeCodingStandardsBehavior -propel.behavior.soft_delete.class = behavior.SoftDeleteBehavior -propel.behavior.auto_add_pk.class = behavior.AutoAddPkBehavior -propel.behavior.nested_set.class = behavior.nestedset.NestedSetBehavior -propel.behavior.sortable.class = behavior.sortable.SortableBehavior -propel.behavior.sluggable.class = behavior.sluggable.SluggableBehavior -propel.behavior.concrete_inheritance.class = behavior.concrete_inheritance.ConcreteInheritanceBehavior -propel.behavior.query_cache.class = behavior.query_cache.QueryCacheBehavior -propel.behavior.aggregate_column.class = behavior.aggregate_column.AggregateColumnBehavior \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/AlternativeCodingStandardsBehavior.php b/airtime_mvc/library/propel/generator/lib/behavior/AlternativeCodingStandardsBehavior.php deleted file mode 100644 index d9a9de6e20..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/AlternativeCodingStandardsBehavior.php +++ /dev/null @@ -1,133 +0,0 @@ - 'true', - 'remove_closing_comments' => 'true', - 'use_whitespace' => 'true', - 'tab_size' => 2, - 'strip_comments' => 'false' - ); - - public function objectFilter(&$script) - { - return $this->filter($script); - } - - public function extensionObjectFilter(&$script) - { - return $this->filter($script); - } - - public function queryFilter(&$script) - { - return $this->filter($script); - } - - public function extensionQueryFilter(&$script) - { - return $this->filter($script); - } - - public function peerFilter(&$script) - { - return $this->filter($script); - } - - public function extensionPeerFilter(&$script) - { - return $this->filter($script); - } - - public function tableMapFilter(&$script) - { - return $this->filter($script); - } - - /** - * Transform the coding standards of a PHP sourcecode string - * - * @param string $script A script string to be filtered, passed as reference - */ - protected function filter(&$script) - { - $filter = array(); - if($this->getParameter('brackets_newline') == 'true') { - $filter['#^(\t*)\}\h(else|elseif|catch)(.*)\h\{$#m'] = "$1} -$1$2$3 -$1{"; - $filter['#^(\t*)(\w.*)\h\{$#m'] = "$1$2 -$1{"; - } - if ($this->getParameter('remove_closing_comments') == 'true') { - $filter['#^(\t*)} //.*$#m'] = "$1}"; - } - if ($this->getParameter('use_whitespace') == 'true') { - $filter['#\t#'] = str_repeat(' ', $this->getParameter('tab_size')); - } - - $script = preg_replace(array_keys($filter), array_values($filter), $script); - - if ($this->getParameter('strip_comments') == 'true') { - $script = self::stripComments($script); - } - } - - /** - * Remove inline and codeblock comments from a PHP code string - * @param string $code The input code - * @return string The input code, without comments - */ - public static function stripComments($code) - { - $output = ''; - $commentTokens = array(T_COMMENT, T_DOC_COMMENT); - foreach (token_get_all($code) as $token) { - if (is_array($token)) { - if (in_array($token[0], $commentTokens)) continue; - $token = $token[1]; - } - $output .= $token; - } - - return $output; - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/AutoAddPkBehavior.php b/airtime_mvc/library/propel/generator/lib/behavior/AutoAddPkBehavior.php deleted file mode 100644 index 10b8f4edb9..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/AutoAddPkBehavior.php +++ /dev/null @@ -1,54 +0,0 @@ - 'id', - 'autoIncrement' => 'true', - 'type' => 'INTEGER' - ); - - /** - * Copy the behavior to the database tables - * Only for tables that have no Pk - */ - public function modifyDatabase() - { - foreach ($this->getDatabase()->getTables() as $table) { - if(!$table->hasPrimaryKey()) { - $b = clone $this; - $table->addBehavior($b); - } - } - } - - /** - * Add the primary key to the current table - */ - public function modifyTable() - { - $table = $this->getTable(); - if (!$table->hasPrimaryKey() && !$table->hasBehavior('concrete_inheritance')) { - $columnAttributes = array_merge(array('primaryKey' => 'true'), $this->getParameters()); - $this->getTable()->addColumn($columnAttributes); - } - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/SoftDeleteBehavior.php b/airtime_mvc/library/propel/generator/lib/behavior/SoftDeleteBehavior.php deleted file mode 100644 index f87bec0bb1..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/SoftDeleteBehavior.php +++ /dev/null @@ -1,467 +0,0 @@ - 'deleted_at', - ); - - /** - * Add the deleted_column to the current table - */ - public function modifyTable() - { - if(!$this->getTable()->containsColumn($this->getParameter('deleted_column'))) { - $this->getTable()->addColumn(array( - 'name' => $this->getParameter('deleted_column'), - 'type' => 'TIMESTAMP' - )); - } - } - - protected function getColumnSetter() - { - return 'set' . $this->getColumnForParameter('deleted_column')->getPhpName(); - } - - public function objectMethods($builder) - { - $script = ''; - $this->addObjectForceDelete($script); - $this->addObjectUndelete($script); - return $script; - } - - public function addObjectForceDelete(&$script) - { - $script .= " -/** - * Bypass the soft_delete behavior and force a hard delete of the current object - */ -public function forceDelete(PropelPDO \$con = null) -{ - {$this->getTable()->getPhpName()}Peer::disableSoftDelete(); - \$this->delete(\$con); -} -"; - } - - public function addObjectUndelete(&$script) - { - $script .= " -/** - * Undelete a row that was soft_deleted - * - * @return int The number of rows affected by this update and any referring fk objects' save() operations. - */ -public function unDelete(PropelPDO \$con = null) -{ - \$this->{$this->getColumnSetter()}(null); - return \$this->save(\$con); -} -"; - } - - public function preDelete($builder) - { - return <<getStubQueryBuilder()->getClassname()}::isSoftDeleteEnabled()) { - \$this->{$this->getColumnSetter()}(time()); - \$this->save(\$con); - \$con->commit(); - {$builder->getStubPeerBuilder()->getClassname()}::removeInstanceFromPool(\$this); - return; -} -EOT; - } - - public function queryAttributes() - { - return "protected static \$softDelete = true; -protected \$localSoftDelete = true; -"; - } - - public function queryMethods($builder) - { - $this->builder = $builder; - $script = ''; - $this->addQueryIncludeDeleted($script); - $this->addQuerySoftDelete($script); - $this->addQueryForceDelete($script); - $this->addQueryForceDeleteAll($script); - $this->addQueryUnDelete($script); - $this->addQueryEnableSoftDelete($script); - $this->addQueryDisableSoftDelete($script); - $this->addQueryIsSoftDeleteEnabled($script); - - return $script; - } - - public function addQueryIncludeDeleted(&$script) - { - $script .= " -/** - * Temporarily disable the filter on deleted rows - * Valid only for the current query - * - * @see {$this->builder->getStubQueryBuilder()->getClassname()}::disableSoftDelete() to disable the filter for more than one query - * - * @return {$this->builder->getStubQueryBuilder()->getClassname()} The current query, for fuid interface - */ -public function includeDeleted() -{ - \$this->localSoftDelete = false; - return \$this; -} -"; - } - - public function addQuerySoftDelete(&$script) - { - $script .= " -/** - * Soft delete the selected rows - * - * @param PropelPDO \$con an optional connection object - * - * @return int Number of updated rows - */ -public function softDelete(PropelPDO \$con = null) -{ - return \$this->update(array('{$this->getColumnForParameter('deleted_column')->getPhpName()}' => time()), \$con); -} -"; - } - - public function addQueryForceDelete(&$script) - { - $script .= " -/** - * Bypass the soft_delete behavior and force a hard delete of the selected rows - * - * @param PropelPDO \$con an optional connection object - * - * @return int Number of deleted rows - */ -public function forceDelete(PropelPDO \$con = null) -{ - return {$this->builder->getPeerClassname()}::doForceDelete(\$this, \$con); -} -"; - } - - public function addQueryForceDeleteAll(&$script) - { - $script .= " -/** - * Bypass the soft_delete behavior and force a hard delete of all the rows - * - * @param PropelPDO \$con an optional connection object - * - * @return int Number of deleted rows - */ -public function forceDeleteAll(PropelPDO \$con = null) -{ - return {$this->builder->getPeerClassname()}::doForceDeleteAll(\$con);} -"; - } - - public function addQueryUnDelete(&$script) - { - $script .= " -/** - * Undelete selected rows - * - * @param PropelPDO \$con an optional connection object - * - * @return int The number of rows affected by this update and any referring fk objects' save() operations. - */ -public function unDelete(PropelPDO \$con = null) -{ - return \$this->update(array('{$this->getColumnForParameter('deleted_column')->getPhpName()}' => null), \$con); -} -"; - } - - public function addQueryEnableSoftDelete(&$script) - { - $script .= " -/** - * Enable the soft_delete behavior for this model - */ -public static function enableSoftDelete() -{ - self::\$softDelete = true; -} -"; - } - - public function addQueryDisableSoftDelete(&$script) - { - $script .= " -/** - * Disable the soft_delete behavior for this model - */ -public static function disableSoftDelete() -{ - self::\$softDelete = false; -} -"; - } - - public function addQueryIsSoftDeleteEnabled(&$script) - { - $script .= " -/** - * Check the soft_delete behavior for this model - * - * @return boolean true if the soft_delete behavior is enabled - */ -public static function isSoftDeleteEnabled() -{ - return self::\$softDelete; -} -"; - } - - public function preSelectQuery($builder) - { - return <<getStubQueryBuilder()->getClassname()}::isSoftDeleteEnabled() && \$this->localSoftDelete) { - \$this->addUsingAlias({$this->getColumnForParameter('deleted_column')->getConstantName()}, null, Criteria::ISNULL); -} else { - {$this->getTable()->getPhpName()}Peer::enableSoftDelete(); -} -EOT; - } - - public function preDeleteQuery($builder) - { - return <<getStubQueryBuilder()->getClassname()}::isSoftDeleteEnabled() && \$this->localSoftDelete) { - return \$this->softDelete(\$con); -} else { - return \$this->hasWhereClause() ? \$this->forceDelete(\$con) : \$this->forceDeleteAll(\$con); -} -EOT; - } - - public function staticMethods($builder) - { - $builder->declareClassFromBuilder($builder->getStubQueryBuilder()); - $this->builder = $builder; - $script = ''; - $this->addPeerEnableSoftDelete($script); - $this->addPeerDisableSoftDelete($script); - $this->addPeerIsSoftDeleteEnabled($script); - $this->addPeerDoSoftDelete($script); - $this->addPeerDoDelete2($script); - $this->addPeerDoSoftDeleteAll($script); - $this->addPeerDoDeleteAll2($script); - - return $script; - } - - public function addPeerEnableSoftDelete(&$script) - { - $script .= " -/** - * Enable the soft_delete behavior for this model - */ -public static function enableSoftDelete() -{ - {$this->builder->getStubQueryBuilder()->getClassname()}::enableSoftDelete(); - // some soft_deleted objects may be in the instance pool - {$this->builder->getStubPeerBuilder()->getClassname()}::clearInstancePool(); -} -"; - } - - public function addPeerDisableSoftDelete(&$script) - { - $script .= " -/** - * Disable the soft_delete behavior for this model - */ -public static function disableSoftDelete() -{ - {$this->builder->getStubQueryBuilder()->getClassname()}::disableSoftDelete(); -} -"; - } - - public function addPeerIsSoftDeleteEnabled(&$script) - { - $script .= " -/** - * Check the soft_delete behavior for this model - * @return boolean true if the soft_delete behavior is enabled - */ -public static function isSoftDeleteEnabled() -{ - return {$this->builder->getStubQueryBuilder()->getClassname()}::isSoftDeleteEnabled(); -} -"; - } - - public function addPeerDoSoftDelete(&$script) - { - $script .= " -/** - * Soft delete records, given a {$this->getTable()->getPhpName()} or Criteria object OR a primary key value. - * - * @param mixed \$values Criteria or {$this->getTable()->getPhpName()} object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO \$con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ -public static function doSoftDelete(\$values, PropelPDO \$con = null) -{ - if (\$values instanceof Criteria) { - // rename for clarity - \$criteria = clone \$values; - } elseif (\$values instanceof {$this->getTable()->getPhpName()}) { - // create criteria based on pk values - \$criteria = \$values->buildPkeyCriteria(); - } else { - // it must be the primary key - \$criteria = new Criteria(self::DATABASE_NAME);"; - $pks = $this->getTable()->getPrimaryKey(); - if (count($pks)>1) { - $i = 0; - foreach ($pks as $col) { - $script .= " - \$criteria->add({$col->getConstantName()}, \$values[$i], Criteria::EQUAL);"; - $i++; - } - } else { - $col = $pks[0]; - $script .= " - \$criteria->add({$col->getConstantName()}, (array) \$values, Criteria::IN);"; - } - $script .= " - } - \$criteria->add({$this->getColumnForParameter('deleted_column')->getConstantName()}, time()); - return {$this->getTable()->getPhpName()}Peer::doUpdate(\$criteria, \$con); -} -"; - } - - public function addPeerDoDelete2(&$script) - { - $script .= " -/** - * Delete or soft delete records, depending on {$this->getTable()->getPhpName()}Peer::\$softDelete - * - * @param mixed \$values Criteria or {$this->getTable()->getPhpName()} object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO \$con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ -public static function doDelete2(\$values, PropelPDO \$con = null) -{ - if ({$this->getTable()->getPhpName()}Peer::isSoftDeleteEnabled()) { - return {$this->getTable()->getPhpName()}Peer::doSoftDelete(\$values, \$con); - } else { - return {$this->getTable()->getPhpName()}Peer::doForceDelete(\$values, \$con); - } -}"; - } - - public function addPeerDoSoftDeleteAll(&$script) - { - $script .= " -/** - * Method to soft delete all rows from the {$this->getTable()->getName()} table. - * - * @param PropelPDO \$con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ -public static function doSoftDeleteAll(PropelPDO \$con = null) -{ - if (\$con === null) { - \$con = Propel::getConnection({$this->getTable()->getPhpName()}Peer::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - \$selectCriteria = new Criteria(); - \$selectCriteria->add({$this->getColumnForParameter('deleted_column')->getConstantName()}, null, Criteria::ISNULL); - \$selectCriteria->setDbName({$this->getTable()->getPhpName()}Peer::DATABASE_NAME); - \$modifyCriteria = new Criteria(); - \$modifyCriteria->add({$this->getColumnForParameter('deleted_column')->getConstantName()}, time()); - return BasePeer::doUpdate(\$selectCriteria, \$modifyCriteria, \$con); -} -"; - } - - public function addPeerDoDeleteAll2(&$script) - { - $script .= " -/** - * Delete or soft delete all records, depending on {$this->getTable()->getPhpName()}Peer::\$softDelete - * - * @param PropelPDO \$con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ -public static function doDeleteAll2(PropelPDO \$con = null) -{ - if ({$this->getTable()->getPhpName()}Peer::isSoftDeleteEnabled()) { - return {$this->getTable()->getPhpName()}Peer::doSoftDeleteAll(\$con); - } else { - return {$this->getTable()->getPhpName()}Peer::doForceDeleteAll(\$con); - } -} -"; - } - - public function preSelect($builder) - { - return <<getStubQueryBuilder()->getClassname()}::isSoftDeleteEnabled()) { - \$criteria->add({$this->getColumnForParameter('deleted_column')->getConstantName()}, null, Criteria::ISNULL); -} else { - {$this->getTable()->getPhpName()}Peer::enableSoftDelete(); -} -EOT; - } - - public function peerFilter(&$script) - { - $script = str_replace(array( - 'public static function doDelete(', - 'public static function doDelete2(', - 'public static function doDeleteAll(', - 'public static function doDeleteAll2(' - ), array( - 'public static function doForceDelete(', - 'public static function doDelete(', - 'public static function doForceDeleteAll(', - 'public static function doDeleteAll(' - ), $script); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/TimestampableBehavior.php b/airtime_mvc/library/propel/generator/lib/behavior/TimestampableBehavior.php deleted file mode 100644 index bf73b76690..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/TimestampableBehavior.php +++ /dev/null @@ -1,171 +0,0 @@ - 'created_at', - 'update_column' => 'updated_at' - ); - - /** - * Add the create_column and update_columns to the current table - */ - public function modifyTable() - { - if(!$this->getTable()->containsColumn($this->getParameter('create_column'))) { - $this->getTable()->addColumn(array( - 'name' => $this->getParameter('create_column'), - 'type' => 'TIMESTAMP' - )); - } - if(!$this->getTable()->containsColumn($this->getParameter('update_column'))) { - $this->getTable()->addColumn(array( - 'name' => $this->getParameter('update_column'), - 'type' => 'TIMESTAMP' - )); - } - } - - /** - * Get the setter of one of the columns of the behavior - * - * @param string $column One of the behavior colums, 'create_column' or 'update_column' - * @return string The related setter, 'setCreatedOn' or 'setUpdatedOn' - */ - protected function getColumnSetter($column) - { - return 'set' . $this->getColumnForParameter($column)->getPhpName(); - } - - /** - * Add code in ObjectBuilder::preUpdate - * - * @return string The code to put at the hook - */ - public function preUpdate() - { - return "if (\$this->isModified() && !\$this->isColumnModified(" . $this->getColumnForParameter('update_column')->getConstantName() . ")) { - \$this->" . $this->getColumnSetter('update_column') . "(time()); -}"; - } - - /** - * Add code in ObjectBuilder::preInsert - * - * @return string The code to put at the hook - */ - public function preInsert() - { - return "if (!\$this->isColumnModified(" . $this->getColumnForParameter('create_column')->getConstantName() . ")) { - \$this->" . $this->getColumnSetter('create_column') . "(time()); -} -if (!\$this->isColumnModified(" . $this->getColumnForParameter('update_column')->getConstantName() . ")) { - \$this->" . $this->getColumnSetter('update_column') . "(time()); -}"; - } - - public function objectMethods($builder) - { - return " -/** - * Mark the current object so that the update date doesn't get updated during next save - * - * @return " . $builder->getStubObjectBuilder()->getClassname() . " The current object (for fluent API support) - */ -public function keepUpdateDateUnchanged() -{ - \$this->modifiedColumns[] = " . $this->getColumnForParameter('update_column')->getConstantName() . "; - return \$this; -} -"; - } - - public function queryMethods($builder) - { - $queryClassName = $builder->getStubQueryBuilder()->getClassname(); - $updateColumnConstant = $this->getColumnForParameter('update_column')->getConstantName(); - $createColumnConstant = $this->getColumnForParameter('create_column')->getConstantName(); - return " -/** - * Filter by the latest updated - * - * @param int \$nbDays Maximum age of the latest update in days - * - * @return $queryClassName The current query, for fuid interface - */ -public function recentlyUpdated(\$nbDays = 7) -{ - return \$this->addUsingAlias($updateColumnConstant, time() - \$nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL); -} - -/** - * Filter by the latest created - * - * @param int \$nbDays Maximum age of in days - * - * @return $queryClassName The current query, for fuid interface - */ -public function recentlyCreated(\$nbDays = 7) -{ - return \$this->addUsingAlias($createColumnConstant, time() - \$nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL); -} - -/** - * Order by update date desc - * - * @return $queryClassName The current query, for fuid interface - */ -public function lastUpdatedFirst() -{ - return \$this->addDescendingOrderByColumn($updateColumnConstant); -} - -/** - * Order by update date asc - * - * @return $queryClassName The current query, for fuid interface - */ -public function firstUpdatedFirst() -{ - return \$this->addAscendingOrderByColumn($updateColumnConstant); -} - -/** - * Order by create date desc - * - * @return $queryClassName The current query, for fuid interface - */ -public function lastCreatedFirst() -{ - return \$this->addDescendingOrderByColumn($createColumnConstant); -} - -/** - * Order by create date asc - * - * @return $queryClassName The current query, for fuid interface - */ -public function firstCreatedFirst() -{ - return \$this->addAscendingOrderByColumn($createColumnConstant); -} -"; - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/AggregateColumnBehavior.php b/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/AggregateColumnBehavior.php deleted file mode 100644 index 16a9964663..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/AggregateColumnBehavior.php +++ /dev/null @@ -1,122 +0,0 @@ - null, - 'expression' => null, - 'foreign_table' => null, - ); - - /** - * Add the aggregate key to the current table - */ - public function modifyTable() - { - $table = $this->getTable(); - if (!$columnName = $this->getParameter('name')) { - throw new InvalidArgumentException(sprintf('You must define a \'name\' parameter for the \'aggregate_column\' behavior in the \'%s\' table', $table->getName())); - } - - // add the aggregate column if not present - if(!$this->getTable()->containsColumn($columnName)) { - $column = $this->getTable()->addColumn(array( - 'name' => $columnName, - 'type' => 'INTEGER', - )); - } - - // add a behavior in the foreign table to autoupdate the aggregate column - $foreignTable = $this->getForeignTable(); - if (!$foreignTable->hasBehavior('concrete_inheritance_parent')) { - $relationBehavior = new AggregateColumnRelationBehavior(); - $relationBehavior->setName('aggregate_column_relation'); - $foreignKey = $this->getForeignKey(); - $relationBehavior->addParameter(array('name' => 'foreign_table', 'value' => $table->getName())); - $relationBehavior->addParameter(array('name' => 'update_method', 'value' => 'update' . $this->getColumn()->getPhpName())); - $foreignTable->addBehavior($relationBehavior); - } - } - - public function objectMethods($builder) - { - if (!$foreignTableName = $this->getParameter('foreign_table')) { - throw new InvalidArgumentException(sprintf('You must define a \'foreign_table\' parameter for the \'aggregate_column\' behavior in the \'%s\' table', $this->getTable()->getName())); - } - $script = ''; - $script .= $this->addObjectCompute(); - $script .= $this->addObjectUpdate(); - - return $script; - } - - protected function addObjectCompute() - { - $conditions = array(); - $bindings = array(); - foreach ($this->getForeignKey()->getColumnObjectsMapping() as $index => $columnReference) { - $conditions[] = $columnReference['local']->getFullyQualifiedName() . ' = :p' . ($index + 1); - $bindings[$index + 1] = $columnReference['foreign']->getPhpName(); - } - $sql = sprintf('SELECT %s FROM %s WHERE %s', - $this->getParameter('expression'), - $this->getTable()->getDatabase()->getPlatform()->quoteIdentifier($this->getParameter('foreign_table')), - implode(' AND ', $conditions) - ); - - return $this->renderTemplate('objectCompute', array( - 'column' => $this->getColumn(), - 'sql' => $sql, - 'bindings' => $bindings, - )); - } - - protected function addObjectUpdate() - { - return $this->renderTemplate('objectUpdate', array( - 'column' => $this->getColumn(), - )); - } - - protected function getForeignTable() - { - return $this->getTable()->getDatabase()->getTable($this->getParameter('foreign_table')); - } - - protected function getForeignKey() - { - $foreignTable = $this->getForeignTable(); - // let's infer the relation from the foreign table - $fks = $foreignTable->getForeignKeysReferencingTable($this->getTable()->getName()); - if (!$fks) { - throw new InvalidArgumentException(sprintf('You must define a foreign key to the \'%s\' table in the \'%s\' table to enable the \'aggregate_column\' behavior', $this->getTable()->getName(), $foreignTable->getName())); - } - // FIXME doesn't work when more than one fk to the same table - return array_shift($fks); - } - - protected function getColumn() - { - return $this->getTable()->getColumn($this->getParameter('name')); - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/AggregateColumnRelationBehavior.php b/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/AggregateColumnRelationBehavior.php deleted file mode 100644 index 1fce170a1b..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/AggregateColumnRelationBehavior.php +++ /dev/null @@ -1,164 +0,0 @@ - '', - 'update_method' => '', - ); - - public function postSave($builder) - { - $relationName = $this->getRelationName($builder); - return "\$this->updateRelated{$relationName}(\$con);"; - } - - // no need for a postDelete() hook, since delete() uses Query::delete(), - // which already has a hook - - public function objectAttributes($builder) - { - $relationName = $this->getRelationName($builder); - return "protected \$old{$relationName}; -"; - } - - public function objectMethods($builder) - { - return $this->addObjectUpdateRelated($builder); - } - - protected function addObjectUpdateRelated($builder) - { - $relationName = $this->getRelationName($builder); - $updateMethodName = $this->getParameter('update_method'); - return $this->renderTemplate('objectUpdateRelated', array( - 'relationName' => $relationName, - 'variableName' => self::lcfirst($relationName), - 'updateMethodName' => $this->getParameter('update_method'), - )); - } - - public function objectFilter(&$script, $builder) - { - $relationName = $this->getRelationName($builder); - $relatedClass = $this->getForeignTable()->getPhpName(); - $search = " public function set{$relationName}({$relatedClass} \$v = null) - {"; - $replace = $search . " - // aggregate_column_relation behavior - if (null !== \$this->a{$relationName} && \$v !== \$this->a{$relationName}) { - \$this->old{$relationName} = \$this->a{$relationName}; - }"; - $script = str_replace($search, $replace, $script); - } - - public function preUpdateQuery($builder) - { - return $this->getFindRelated($builder); - } - - public function preDeleteQuery($builder) - { - return $this->getFindRelated($builder); - } - - protected function getFindRelated($builder) - { - $relationName = $this->getRelationName($builder); - return "\$this->findRelated{$relationName}s(\$con);"; - } - - public function postUpdateQuery($builder) - { - return $this->getUpdateRelated($builder); - } - - public function postDeleteQuery($builder) - { - return $this->getUpdateRelated($builder); - } - - protected function getUpdateRelated($builder) - { - $relationName = $this->getRelationName($builder); - return "\$this->updateRelated{$relationName}s(\$con);"; - } - - public function queryMethods($builder) - { - $script = ''; - $script .= $this->addQueryFindRelated($builder); - $script .= $this->addQueryUpdateRelated($builder); - - return $script; - } - - protected function addQueryFindRelated($builder) - { - $foreignKey = $this->getForeignKey(); - $relationName = $this->getRelationName($builder); - return $this->renderTemplate('queryFindRelated', array( - 'foreignTable' => $this->getForeignTable(), - 'relationName' => $relationName, - 'variableName' => self::lcfirst($relationName), - 'foreignQueryName' => $foreignKey->getForeignTable()->getPhpName() . 'Query', - 'refRelationName' => $builder->getRefFKPhpNameAffix($foreignKey), - )); - } - - protected function addQueryUpdateRelated($builder) - { - $relationName = $this->getRelationName($builder); - return $this->renderTemplate('queryUpdateRelated', array( - 'relationName' => $relationName, - 'variableName' => self::lcfirst($relationName), - 'updateMethodName' => $this->getParameter('update_method'), - )); - } - - protected function getForeignTable() - { - return $this->getTable()->getDatabase()->getTable($this->getParameter('foreign_table')); - } - - protected function getForeignKey() - { - $foreignTable = $this->getForeignTable(); - // let's infer the relation from the foreign table - $fks = $this->getTable()->getForeignKeysReferencingTable($foreignTable->getName()); - // FIXME doesn't work when more than one fk to the same table - return array_shift($fks); - } - - protected function getRelationName($builder) - { - return $builder->getFKPhpNameAffix($this->getForeignKey()); - } - - protected static function lcfirst($input) - { - // no lcfirst in php<5.3... - $input[0] = strtolower($input[0]); - return $input; - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/objectCompute.php b/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/objectCompute.php deleted file mode 100644 index 00e1838724..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/objectCompute.php +++ /dev/null @@ -1,17 +0,0 @@ - -/** - * Computes the value of the aggregate column getName() ?> - * - * @param PropelPDO $con A connection object - * - * @return mixed The scalar result from the aggregate query - */ -public function computegetPhpName() ?>(PropelPDO $con) -{ - $stmt = $con->prepare(''); - $binding): ?> - $stmt->bindValue(':p', $this->get()); - - $stmt->execute(); - return $stmt->fetchColumn(); -} diff --git a/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/objectUpdate.php b/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/objectUpdate.php deleted file mode 100644 index 9236bad3ee..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/objectUpdate.php +++ /dev/null @@ -1,11 +0,0 @@ - -/** - * Updates the aggregate column getName() ?> - * - * @param PropelPDO $con A connection object - */ -public function updategetPhpName() ?>(PropelPDO $con) -{ - $this->setgetPhpName() ?>($this->computegetPhpName() ?>($con)); - $this->save($con); -} diff --git a/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/objectUpdateRelated.php b/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/objectUpdateRelated.php deleted file mode 100644 index d5892b0f23..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/objectUpdateRelated.php +++ /dev/null @@ -1,16 +0,0 @@ - -/** - * Update the aggregate column in the related object - * - * @param PropelPDO $con A connection object - */ -protected function updateRelated(PropelPDO $con) -{ - if ($ = $this->get()) { - $->($con); - } - if ($this->old) { - $this->old->($con); - $this->old = null; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/queryFindRelated.php b/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/queryFindRelated.php deleted file mode 100644 index 252adf1959..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/queryFindRelated.php +++ /dev/null @@ -1,20 +0,0 @@ - -/** - * Finds the related getPhpName() ?> objects and keep them for later - * - * @param PropelPDO $con A connection object - */ -protected function findRelateds($con) -{ - $criteria = clone $this; - if ($this->useAliasInSQL) { - $alias = $this->getModelAlias(); - $criteria->removeAlias($alias); - } else { - $alias = ''; - } - $this->s = ::create() - ->join($alias) - ->mergeWith($criteria) - ->find($con); -} diff --git a/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/queryUpdateRelated.php b/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/queryUpdateRelated.php deleted file mode 100644 index 056264c557..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/aggregate_column/templates/queryUpdateRelated.php +++ /dev/null @@ -1,8 +0,0 @@ - -protected function updateRelateds($con) -{ - foreach ($this->s as $) { - $->($con); - } - $this->s = array(); -} diff --git a/airtime_mvc/library/propel/generator/lib/behavior/concrete_inheritance/ConcreteInheritanceBehavior.php b/airtime_mvc/library/propel/generator/lib/behavior/concrete_inheritance/ConcreteInheritanceBehavior.php deleted file mode 100644 index 8d5011a94c..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/concrete_inheritance/ConcreteInheritanceBehavior.php +++ /dev/null @@ -1,235 +0,0 @@ - '', - 'descendant_column' => 'descendant_class', - 'copy_data_to_parent' => 'true' - ); - - public function modifyTable() - { - $table = $this->getTable(); - $parentTable = $this->getParentTable(); - - if ($this->isCopyData()) { - // tell the parent table that it has a descendant - if (!$parentTable->hasBehavior('concrete_inheritance_parent')) { - $parentBehavior = new ConcreteInheritanceParentBehavior(); - $parentBehavior->setName('concrete_inheritance_parent'); - $parentBehavior->addParameter(array('name' => 'descendant_column', 'value' => $this->getParameter('descendant_column'))); - $parentTable->addBehavior($parentBehavior); - // The parent table's behavior modifyTable() must be executed before this one - $parentBehavior->getTableModifier()->modifyTable(); - $parentBehavior->setTableModified(true); - } - } - - // Add the columns of the parent table - foreach ($parentTable->getColumns() as $column) { - if ($column->getName() == $this->getParameter('descendant_column')) { - continue; - } - if ($table->containsColumn($column->getName())) { - continue; - } - $copiedColumn = clone $column; - if ($column->isAutoIncrement() && $this->isCopyData()) { - $copiedColumn->setAutoIncrement(false); - } - $table->addColumn($copiedColumn); - if ($column->isPrimaryKey() && $this->isCopyData()) { - $fk = new ForeignKey(); - $fk->setForeignTableName($column->getTable()->getName()); - $fk->setOnDelete('CASCADE'); - $fk->setOnUpdate(null); - $fk->addReference($copiedColumn, $column); - $fk->isParentChild = true; - $table->addForeignKey($fk); - } - } - - // add the foreign keys of the parent table - foreach ($parentTable->getForeignKeys() as $fk) { - $copiedFk = clone $fk; - $copiedFk->setName(''); - $copiedFk->setRefPhpName(''); - $this->getTable()->addForeignKey($copiedFk); - } - - // add the validators of the parent table - foreach ($parentTable->getValidators() as $validator) { - $copiedValidator = clone $validator; - $this->getTable()->addValidator($copiedValidator); - } - - // add the indices of the parent table - foreach ($parentTable->getIndices() as $index) { - $copiedIndex = clone $index; - $copiedIndex->setName(''); - $this->getTable()->addIndex($copiedIndex); - } - - // add the unique indices of the parent table - foreach ($parentTable->getUnices() as $unique) { - $copiedUnique = clone $unique; - $copiedUnique->setName(''); - $this->getTable()->addUnique($copiedUnique); - } - - // give name to newly added foreign keys and indices - // (this is already done for other elements of the current table) - $table->doNaming(); - - // add the Behaviors of the parent table - foreach ($parentTable->getBehaviors() as $behavior) { - if ($behavior->getName() == 'concrete_inheritance_parent' || $behavior->getName() == 'concrete_inheritance') { - continue; - } - $copiedBehavior = clone $behavior; - $this->getTable()->addBehavior($copiedBehavior); - } - - } - - protected function getParentTable() - { - return $this->getTable()->getDatabase()->getTable($this->getParameter('extends')); - } - - protected function isCopyData() - { - return $this->getParameter('copy_data_to_parent') == 'true'; - } - - public function parentClass($builder) - { - switch (get_class($builder)) { - case 'PHP5ObjectBuilder': - return $builder->getNewStubObjectBuilder($this->getParentTable())->getClassname(); - break; - case 'QueryBuilder': - return $builder->getNewStubQueryBuilder($this->getParentTable())->getClassname(); - break; - default: - return null; - break; - } - } - - public function preSave($script) - { - if ($this->isCopyData()) { - return "\$parent = \$this->getSyncParent(\$con); -\$parent->save(\$con); -\$this->setPrimaryKey(\$parent->getPrimaryKey()); -"; - } - } - - public function postDelete($script) - { - if ($this->isCopyData()) { - return "\$this->getParentOrCreate(\$con)->delete(\$con); -"; - } - } - - public function objectMethods($builder) - { - if (!$this->isCopyData()) { - return; - } - $this->builder = $builder; - $script .= ''; - $this->addObjectGetParentOrCreate($script); - $this->addObjectGetSyncParent($script); - - return $script; - } - - protected function addObjectGetParentOrCreate(&$script) - { - $parentTable = $this->getParentTable(); - $parentClass = $this->builder->getNewStubObjectBuilder($parentTable)->getClassname(); - $script .= " -/** - * Get or Create the parent " . $parentClass . " object of the current object - * - * @return " . $parentClass . " The parent object - */ -public function getParentOrCreate(\$con = null) -{ - if (\$this->isNew()) { - \$parent = new " . $parentClass . "(); - \$parent->set" . $this->getParentTable()->getColumn($this->getParameter('descendant_column'))->getPhpName() . "('" . $this->builder->getStubObjectBuilder()->getClassname() . "'); - return \$parent; - } else { - return " . $this->builder->getNewStubQueryBuilder($parentTable)->getClassname() . "::create()->findPk(\$this->getPrimaryKey(), \$con); - } -} -"; - } - - protected function addObjectGetSyncParent(&$script) - { - $parentTable = $this->getParentTable(); - $pkeys = $parentTable->getPrimaryKey(); - $cptype = $pkeys[0]->getPhpType(); - $script .= " -/** - * Create or Update the parent " . $parentTable->getPhpName() . " object - * And return its primary key - * - * @return " . $cptype . " The primary key of the parent object - */ -public function getSyncParent(\$con = null) -{ - \$parent = \$this->getParentOrCreate(\$con);"; - foreach ($parentTable->getColumns() as $column) { - if ($column->isPrimaryKey() || $column->getName() == $this->getParameter('descendant_column')) { - continue; - } - $phpName = $column->getPhpName(); - $script .= " - \$parent->set{$phpName}(\$this->get{$phpName}());"; - } - foreach ($parentTable->getForeignKeys() as $fk) { - if (isset($fk->isParentChild) && $fk->isParentChild) { - continue; - } - $refPhpName = $this->builder->getFKPhpNameAffix($fk, $plural = false); - $script .= " - if (\$this->get" . $refPhpName . "() && \$this->get" . $refPhpName . "()->isNew()) { - \$parent->set" . $refPhpName . "(\$this->get" . $refPhpName . "()); - }"; - } - $script .= " - - return \$parent; -} -"; - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/concrete_inheritance/ConcreteInheritanceParentBehavior.php b/airtime_mvc/library/propel/generator/lib/behavior/concrete_inheritance/ConcreteInheritanceParentBehavior.php deleted file mode 100644 index e2cdb2fc6a..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/concrete_inheritance/ConcreteInheritanceParentBehavior.php +++ /dev/null @@ -1,89 +0,0 @@ - 'descendant_class' - ); - - public function modifyTable() - { - $table = $this->getTable(); - if (!$table->containsColumn($this->getParameter('descendant_column'))) { - $table->addColumn(array( - 'name' => $this->getParameter('descendant_column'), - 'type' => 'VARCHAR', - 'size' => 100 - )); - } - } - - protected function getColumnGetter() - { - return 'get' . $this->getColumnForParameter('descendant_column')->getPhpName(); - } - - public function objectMethods($builder) - { - $this->builder = $builder; - $script .= ''; - $this->addHasChildObject($script); - $this->addGetChildObject($script); - - return $script; - } - - protected function addHasChildObject(&$script) - { - $script .= " -/** - * Whether or not this object is the parent of a child object - * - * @return bool - */ -public function hasChildObject() -{ - return \$this->" . $this->getColumnGetter() . "() !== null; -} -"; - } - - protected function addGetChildObject(&$script) - { - $script .= " -/** - * Get the child object of this object - * - * @return mixed - */ -public function getChildObject() -{ - if (!\$this->hasChildObject()) { - return null; - } - \$childObjectClass = \$this->" . $this->getColumnGetter() . "(); - \$childObject = PropelQuery::from(\$childObjectClass)->findPk(\$this->getPrimaryKey()); - return \$childObject->hasChildObject() ? \$childObject->getChildObject() : \$childObject; -} -"; - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/nestedset/NestedSetBehavior.php b/airtime_mvc/library/propel/generator/lib/behavior/nestedset/NestedSetBehavior.php deleted file mode 100644 index 5e89963526..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/nestedset/NestedSetBehavior.php +++ /dev/null @@ -1,99 +0,0 @@ - 'tree_left', - 'right_column' => 'tree_right', - 'level_column' => 'tree_level', - 'use_scope' => 'false', - 'scope_column' => 'tree_scope', - 'method_proxies' => 'false' - ); - - protected $objectBuilderModifier, $queryBuilderModifier, $peerBuilderModifier; - - /** - * Add the left, right and scope to the current table - */ - public function modifyTable() - { - if(!$this->getTable()->containsColumn($this->getParameter('left_column'))) { - $this->getTable()->addColumn(array( - 'name' => $this->getParameter('left_column'), - 'type' => 'INTEGER' - )); - } - if(!$this->getTable()->containsColumn($this->getParameter('right_column'))) { - $this->getTable()->addColumn(array( - 'name' => $this->getParameter('right_column'), - 'type' => 'INTEGER' - )); - } - if(!$this->getTable()->containsColumn($this->getParameter('level_column'))) { - $this->getTable()->addColumn(array( - 'name' => $this->getParameter('level_column'), - 'type' => 'INTEGER' - )); - } - if ($this->getParameter('use_scope') == 'true' && - !$this->getTable()->containsColumn($this->getParameter('scope_column'))) { - $this->getTable()->addColumn(array( - 'name' => $this->getParameter('scope_column'), - 'type' => 'INTEGER' - )); - } - } - - public function getObjectBuilderModifier() - { - if (is_null($this->objectBuilderModifier)) - { - $this->objectBuilderModifier = new NestedSetBehaviorObjectBuilderModifier($this); - } - return $this->objectBuilderModifier; - } - - public function getQueryBuilderModifier() - { - if (is_null($this->queryBuilderModifier)) - { - $this->queryBuilderModifier = new NestedSetBehaviorQueryBuilderModifier($this); - } - return $this->queryBuilderModifier; - } - - public function getPeerBuilderModifier() - { - if (is_null($this->peerBuilderModifier)) - { - $this->peerBuilderModifier = new NestedSetBehaviorPeerBuilderModifier($this); - } - return $this->peerBuilderModifier; - } - - public function useScope() - { - return $this->getParameter('use_scope') == 'true'; - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/nestedset/NestedSetBehaviorObjectBuilderModifier.php b/airtime_mvc/library/propel/generator/lib/behavior/nestedset/NestedSetBehaviorObjectBuilderModifier.php deleted file mode 100644 index 3b99c2c87a..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/nestedset/NestedSetBehaviorObjectBuilderModifier.php +++ /dev/null @@ -1,1540 +0,0 @@ - - * @package propel.generator.behavior.nestedset - */ -class NestedSetBehaviorObjectBuilderModifier -{ - protected $behavior, $table, $builder, $objectClassname, $peerClassname; - - public function __construct($behavior) - { - $this->behavior = $behavior; - $this->table = $behavior->getTable(); - } - - protected function getParameter($key) - { - return $this->behavior->getParameter($key); - } - - protected function getColumnAttribute($name) - { - return strtolower($this->behavior->getColumnForParameter($name)->getName()); - } - - protected function getColumnPhpName($name) - { - return $this->behavior->getColumnForParameter($name)->getPhpName(); - } - - protected function setBuilder($builder) - { - $this->builder = $builder; - $this->objectClassname = $builder->getStubObjectBuilder()->getClassname(); - $this->queryClassname = $builder->getStubQueryBuilder()->getClassname(); - $this->peerClassname = $builder->getStubPeerBuilder()->getClassname(); - } - - /* - public function objectFilter(&$script, $builder) - { - $script = str_replace('implements Persistent', 'implements Persistent, NodeObject', $script); - } - */ - - public function objectAttributes($builder) - { - $objectClassname = $builder->getStubObjectBuilder()->getClassname(); - return " -/** - * Queries to be executed in the save transaction - * @var array - */ -protected \$nestedSetQueries = array(); - -/** - * Internal cache for children nodes - * @var null|PropelObjectCollection - */ -protected \$collNestedSetChildren = null; - -/** - * Internal cache for parent node - * @var null|$objectClassname - */ -protected \$aNestedSetParent = null; - -"; - } - - public function preSave($builder) - { - return "\$this->processNestedSetQueries(\$con);"; - } - - public function preDelete($builder) - { - $peerClassname = $builder->getStubPeerBuilder()->getClassname(); - return "if (\$this->isRoot()) { - throw new PropelException('Deletion of a root node is disabled for nested sets. Use $peerClassname::deleteTree(" . ($this->behavior->useScope() ? '$scope' : '') . ") instead to delete an entire tree'); -} -\$this->deleteDescendants(\$con); -"; - } - - public function postDelete($builder) - { - $peerClassname = $builder->getStubPeerBuilder()->getClassname(); - return "// fill up the room that was used by the node -$peerClassname::shiftRLValues(-2, \$this->getRightValue() + 1, null" . ($this->behavior->useScope() ? ", \$this->getScopeValue()" : "") . ", \$con); -"; - } - - public function objectClearReferences($builder) - { - return "\$this->collNestedSetChildren = null; -\$this->aNestedSetParent = null;"; - } - - public function objectMethods($builder) - { - $this->setBuilder($builder); - $script = ''; - - $this->addProcessNestedSetQueries($script); - - $this->addGetLeft($script); - $this->addGetRight($script); - $this->addGetLevel($script); - if ($this->getParameter('use_scope') == 'true') - { - $this->addGetScope($script); - } - - $this->addSetLeft($script); - $this->addSetRight($script); - $this->addSetLevel($script); - if ($this->getParameter('use_scope') == 'true') - { - $this->addSetScope($script); - } - - $this->addMakeRoot($script); - - $this->addIsInTree($script); - $this->addIsRoot($script); - $this->addIsLeaf($script); - $this->addIsDescendantOf($script); - $this->addIsAncestorOf($script); - - $this->addHasParent($script); - $this->addSetParent($script); - $this->addGetParent($script); - - $this->addHasPrevSibling($script); - $this->addGetPrevSibling($script); - - $this->addHasNextSibling($script); - $this->addGetNextSibling($script); - - $this->addNestedSetChildrenClear($script); - $this->addNestedSetChildrenInit($script); - $this->addNestedSetChildAdd($script); - $this->addHasChildren($script); - $this->addGetChildren($script); - $this->addCountChildren($script); - - $this->addGetFirstChild($script); - $this->addGetLastChild($script); - $this->addGetSiblings($script); - $this->addGetDescendants($script); - $this->addCountDescendants($script); - $this->addGetBranch($script); - $this->addGetAncestors($script); - - $this->addAddChild($script); - $this->addInsertAsFirstChildOf($script); - $this->addInsertAsLastChildOf($script); - $this->addInsertAsPrevSiblingOf($script); - $this->addInsertAsNextSiblingOf($script); - - $this->addMoveToFirstChildOf($script); - $this->addMoveToLastChildOf($script); - $this->addMoveToPrevSiblingOf($script); - $this->addMoveToNextSiblingOf($script); - $this->addMoveSubtreeTo($script); - - $this->addDeleteDescendants($script); - - $this->addGetIterator($script); - - if ($this->getParameter('method_proxies') == 'true') - { - $this->addCompatibilityProxies($script); - } - - return $script; - } - - protected function addProcessNestedSetQueries(&$script) - { - $script .= " -/** - * Execute queries that were saved to be run inside the save transaction - */ -protected function processNestedSetQueries(\$con) -{ - foreach (\$this->nestedSetQueries as \$query) { - \$query['arguments'][]= \$con; - call_user_func_array(\$query['callable'], \$query['arguments']); - } - \$this->nestedSetQueries = array(); -} -"; - } - protected function addGetLeft(&$script) - { - $script .= " -/** - * Wraps the getter for the nested set left value - * - * @return int - */ -public function getLeftValue() -{ - return \$this->{$this->getColumnAttribute('left_column')}; -} -"; - } - - protected function addGetRight(&$script) - { - $script .= " -/** - * Wraps the getter for the nested set right value - * - * @return int - */ -public function getRightValue() -{ - return \$this->{$this->getColumnAttribute('right_column')}; -} -"; - } - - protected function addGetLevel(&$script) - { - $script .= " -/** - * Wraps the getter for the nested set level - * - * @return int - */ -public function getLevel() -{ - return \$this->{$this->getColumnAttribute('level_column')}; -} -"; - } - - protected function addGetScope(&$script) - { - $script .= " -/** - * Wraps the getter for the scope value - * - * @return int or null if scope is disabled - */ -public function getScopeValue() -{ - return \$this->{$this->getColumnAttribute('scope_column')}; -} -"; - } - - protected function addSetLeft(&$script) - { - $script .= " -/** - * Set the value left column - * - * @param int \$v new value - * @return {$this->objectClassname} The current object (for fluent API support) - */ -public function setLeftValue(\$v) -{ - return \$this->set{$this->getColumnPhpName('left_column')}(\$v); -} -"; - } - - protected function addSetRight(&$script) - { - $script .= " -/** - * Set the value of right column - * - * @param int \$v new value - * @return {$this->objectClassname} The current object (for fluent API support) - */ -public function setRightValue(\$v) -{ - return \$this->set{$this->getColumnPhpName('right_column')}(\$v); -} -"; - } - - protected function addSetLevel(&$script) - { - $script .= " -/** - * Set the value of level column - * - * @param int \$v new value - * @return {$this->objectClassname} The current object (for fluent API support) - */ -public function setLevel(\$v) -{ - return \$this->set{$this->getColumnPhpName('level_column')}(\$v); -} -"; - } - - protected function addSetScope(&$script) - { - $script .= " -/** - * Set the value of scope column - * - * @param int \$v new value - * @return {$this->objectClassname} The current object (for fluent API support) - */ -public function setScopeValue(\$v) -{ - return \$this->set{$this->getColumnPhpName('scope_column')}(\$v); -} -"; - } - - protected function addMakeRoot(&$script) - { - $script .= " -/** - * Creates the supplied node as the root node. - * - * @return {$this->objectClassname} The current object (for fluent API support) - * @throws PropelException - */ -public function makeRoot() -{ - if (\$this->getLeftValue() || \$this->getRightValue()) { - throw new PropelException('Cannot turn an existing node into a root node.'); - } - - \$this->setLeftValue(1); - \$this->setRightValue(2); - \$this->setLevel(0); - return \$this; -} -"; - } - - protected function addIsInTree(&$script) - { - $script .= " -/** - * Tests if onbject is a node, i.e. if it is inserted in the tree - * - * @return bool - */ -public function isInTree() -{ - return \$this->getLeftValue() > 0 && \$this->getRightValue() > \$this->getLeftValue(); -} -"; - } - - protected function addIsRoot(&$script) - { - $script .= " -/** - * Tests if node is a root - * - * @return bool - */ -public function isRoot() -{ - return \$this->isInTree() && \$this->getLeftValue() == 1; -} -"; - } - - protected function addIsLeaf(&$script) - { - $script .= " -/** - * Tests if node is a leaf - * - * @return bool - */ -public function isLeaf() -{ - return \$this->isInTree() && (\$this->getRightValue() - \$this->getLeftValue()) == 1; -} -"; - } - - protected function addIsDescendantOf(&$script) - { - $objectClassname = $this->objectClassname; - $script .= " -/** - * Tests if node is a descendant of another node - * - * @param $objectClassname \$node Propel node object - * @return bool - */ -public function isDescendantOf(\$parent) -{"; - if ($this->behavior->useScope()) { - $script .= " - if (\$this->getScopeValue() !== \$parent->getScopeValue()) { - throw new PropelException('Comparing two nodes of different trees'); - }"; - } - $script .= " - return \$this->isInTree() && \$this->getLeftValue() > \$parent->getLeftValue() && \$this->getRightValue() < \$parent->getRightValue(); -} -"; - } - - protected function addIsAncestorOf(&$script) - { - $objectClassname = $this->objectClassname; - $script .= " -/** - * Tests if node is a ancestor of another node - * - * @param $objectClassname \$node Propel node object - * @return bool - */ -public function isAncestorOf(\$child) -{ - return \$child->isDescendantOf(\$this); -} -"; - } - - protected function addHasParent(&$script) - { - $script .= " -/** - * Tests if object has an ancestor - * - * @param PropelPDO \$con Connection to use. - * @return bool - */ -public function hasParent(PropelPDO \$con = null) -{ - return \$this->getLevel() > 0; -} -"; - } - - protected function addSetParent(&$script) - { - $objectClassname = $this->objectClassname; - $script .= " -/** - * Sets the cache for parent node of the current object. - * Warning: this does not move the current object in the tree. - * Use moveTofirstChildOf() or moveToLastChildOf() for that purpose - * - * @param $objectClassname \$parent - * @return $objectClassname The current object, for fluid interface - */ -public function setParent(\$parent = null) -{ - \$this->aNestedSetParent = \$parent; - return \$this; -} -"; - } - - - protected function addGetParent(&$script) - { - $script .= " -/** - * Gets parent node for the current object if it exists - * The result is cached so further calls to the same method don't issue any queries - * - * @param PropelPDO \$con Connection to use. - * @return mixed Propel object if exists else false - */ -public function getParent(PropelPDO \$con = null) -{ - if (\$this->aNestedSetParent === null && \$this->hasParent()) { - \$this->aNestedSetParent = {$this->queryClassname}::create() - ->ancestorsOf(\$this) - ->orderByLevel(true) - ->findOne(\$con); - } - return \$this->aNestedSetParent; -} -"; - } - - protected function addHasPrevSibling(&$script) - { - $peerClassname = $this->peerClassname; - $queryClassname = $this->queryClassname; - $script .= " -/** - * Determines if the node has previous sibling - * - * @param PropelPDO \$con Connection to use. - * @return bool - */ -public function hasPrevSibling(PropelPDO \$con = null) -{ - if (!{$this->peerClassname}::isValid(\$this)) { - return false; - } - return $queryClassname::create() - ->filterBy" . $this->getColumnPhpName('right_column') . "(\$this->getLeftValue() - 1)"; - if ($this->behavior->useScope()) { - $script .= " - ->inTree(\$this->getScopeValue())"; - } - $script .= " - ->count(\$con) > 0; -} -"; - } - - protected function addGetPrevSibling(&$script) - { - $queryClassname = $this->queryClassname; - $script .= " -/** - * Gets previous sibling for the given node if it exists - * - * @param PropelPDO \$con Connection to use. - * @return mixed Propel object if exists else false - */ -public function getPrevSibling(PropelPDO \$con = null) -{ - return $queryClassname::create() - ->filterBy" . $this->getColumnPhpName('right_column') . "(\$this->getLeftValue() - 1)"; - if ($this->behavior->useScope()) { - $script .= " - ->inTree(\$this->getScopeValue())"; - } - $script .= " - ->findOne(\$con); -} -"; - } - - protected function addHasNextSibling(&$script) - { - $peerClassname = $this->peerClassname; - $queryClassname = $this->queryClassname; - $script .= " -/** - * Determines if the node has next sibling - * - * @param PropelPDO \$con Connection to use. - * @return bool - */ -public function hasNextSibling(PropelPDO \$con = null) -{ - if (!{$this->peerClassname}::isValid(\$this)) { - return false; - } - return $queryClassname::create() - ->filterBy" . $this->getColumnPhpName('left_column') . "(\$this->getRightValue() + 1)"; - if ($this->behavior->useScope()) { - $script .= " - ->inTree(\$this->getScopeValue())"; - } - $script .= " - ->count(\$con) > 0; -} -"; - } - - protected function addGetNextSibling(&$script) - { - $queryClassname = $this->queryClassname; - $script .= " -/** - * Gets next sibling for the given node if it exists - * - * @param PropelPDO \$con Connection to use. - * @return mixed Propel object if exists else false - */ -public function getNextSibling(PropelPDO \$con = null) -{ - return $queryClassname::create() - ->filterBy" . $this->getColumnPhpName('left_column') . "(\$this->getRightValue() + 1)"; - if ($this->behavior->useScope()) { - $script .= " - ->inTree(\$this->getScopeValue())"; - } - $script .= " - ->findOne(\$con); -} -"; - } - - protected function addNestedSetChildrenClear(&$script) - { - $script .= " -/** - * Clears out the \$collNestedSetChildren 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 - */ -public function clearNestedSetChildren() -{ - \$this->collNestedSetChildren = null; -} -"; - } - - protected function addNestedSetChildrenInit(&$script) - { - $script .= " -/** - * Initializes the \$collNestedSetChildren collection. - * - * @return void - */ -public function initNestedSetChildren() -{ - \$this->collNestedSetChildren = new PropelObjectCollection(); - \$this->collNestedSetChildren->setModel('" . $this->builder->getNewStubObjectBuilder($this->table)->getClassname() . "'); -} -"; - } - - protected function addNestedSetChildAdd(&$script) - { - $objectClassname = $this->objectClassname; - $objectName = '$' . $this->table->getStudlyPhpName(); - $script .= " -/** - * Adds an element to the internal \$collNestedSetChildren collection. - * Beware that this doesn't insert a node in the tree. - * This method is only used to facilitate children hydration. - * - * @param $objectClassname $objectName - * - * @return void - */ -public function addNestedSetChild($objectName) -{ - if (\$this->collNestedSetChildren === null) { - \$this->initNestedSetChildren(); - } - if (!\$this->collNestedSetChildren->contains($objectName)) { // only add it if the **same** object is not already associated - \$this->collNestedSetChildren[]= $objectName; - {$objectName}->setParent(\$this); - } -} -"; - } - - protected function addHasChildren(&$script) - { - $script .= " -/** - * Tests if node has children - * - * @return bool - */ -public function hasChildren() -{ - return (\$this->getRightValue() - \$this->getLeftValue()) > 1; -} -"; - } - - protected function addGetChildren(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $queryClassname = $this->queryClassname; - $script .= " -/** - * Gets the children of the given node - * - * @param Criteria \$criteria Criteria to filter results. - * @param PropelPDO \$con Connection to use. - * @return array List of $objectClassname objects - */ -public function getChildren(\$criteria = null, PropelPDO \$con = null) -{ - if(null === \$this->collNestedSetChildren || null !== \$criteria) { - if (\$this->isLeaf() || (\$this->isNew() && null === \$this->collNestedSetChildren)) { - // return empty collection - \$this->initNestedSetChildren(); - } else { - \$collNestedSetChildren = $queryClassname::create(null, \$criteria) - ->childrenOf(\$this) - ->orderByBranch() - ->find(\$con); - if (null !== \$criteria) { - return \$collNestedSetChildren; - } - \$this->collNestedSetChildren = \$collNestedSetChildren; - } - } - return \$this->collNestedSetChildren; -} -"; - } - - protected function addCountChildren(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $queryClassname = $this->queryClassname; - $script .= " -/** - * Gets number of children for the given node - * - * @param Criteria \$criteria Criteria to filter results. - * @param PropelPDO \$con Connection to use. - * @return int Number of children - */ -public function countChildren(\$criteria = null, PropelPDO \$con = null) -{ - if(null === \$this->collNestedSetChildren || null !== \$criteria) { - if (\$this->isLeaf() || (\$this->isNew() && null === \$this->collNestedSetChildren)) { - return 0; - } else { - return $queryClassname::create(null, \$criteria) - ->childrenOf(\$this) - ->count(\$con); - } - } else { - return count(\$this->collNestedSetChildren); - } -} -"; - } - - protected function addGetFirstChild(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $queryClassname = $this->queryClassname; - $script .= " -/** - * Gets the first child of the given node - * - * @param Criteria \$query Criteria to filter results. - * @param PropelPDO \$con Connection to use. - * @return array List of $objectClassname objects - */ -public function getFirstChild(\$query = null, PropelPDO \$con = null) -{ - if(\$this->isLeaf()) { - return array(); - } else { - return $queryClassname::create(null, \$query) - ->childrenOf(\$this) - ->orderByBranch() - ->findOne(\$con); - } -} -"; - } - - protected function addGetLastChild(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $queryClassname = $this->queryClassname; - $script .= " -/** - * Gets the last child of the given node - * - * @param Criteria \$query Criteria to filter results. - * @param PropelPDO \$con Connection to use. - * @return array List of $objectClassname objects - */ -public function getLastChild(\$query = null, PropelPDO \$con = null) -{ - if(\$this->isLeaf()) { - return array(); - } else { - return $queryClassname::create(null, \$query) - ->childrenOf(\$this) - ->orderByBranch(true) - ->findOne(\$con); - } -} -"; - } - - protected function addGetSiblings(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $queryClassname = $this->queryClassname; - $script .= " -/** - * Gets the siblings of the given node - * - * @param bool \$includeNode Whether to include the current node or not - * @param Criteria \$query Criteria to filter results. - * @param PropelPDO \$con Connection to use. - * - * @return array List of $objectClassname objects - */ -public function getSiblings(\$includeNode = false, \$query = null, PropelPDO \$con = null) -{ - if(\$this->isRoot()) { - return array(); - } else { - \$query = $queryClassname::create(null, \$query) - ->childrenOf(\$this->getParent(\$con)) - ->orderByBranch(true); - if (!\$includeNode) { - \$query->prune(\$this); - } - return \$query->find(\$con); - } -} -"; - } - - protected function addGetDescendants(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $queryClassname = $this->queryClassname; - $script .= " -/** - * Gets descendants for the given node - * - * @param Criteria \$query Criteria to filter results. - * @param PropelPDO \$con Connection to use. - * @return array List of $objectClassname objects - */ -public function getDescendants(\$query = null, PropelPDO \$con = null) -{ - if(\$this->isLeaf()) { - return array(); - } else { - return $queryClassname::create(null, \$query) - ->descendantsOf(\$this) - ->orderByBranch() - ->find(\$con); - } -} -"; - } - - protected function addCountDescendants(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $queryClassname = $this->queryClassname; - $script .= " -/** - * Gets number of descendants for the given node - * - * @param Criteria \$query Criteria to filter results. - * @param PropelPDO \$con Connection to use. - * @return int Number of descendants - */ -public function countDescendants(\$query = null, PropelPDO \$con = null) -{ - if(\$this->isLeaf()) { - // save one query - return 0; - } else { - return $queryClassname::create(null, \$query) - ->descendantsOf(\$this) - ->count(\$con); - } -} -"; - } - - protected function addGetBranch(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $queryClassname = $this->queryClassname; - $script .= " -/** - * Gets descendants for the given node, plus the current node - * - * @param Criteria \$query Criteria to filter results. - * @param PropelPDO \$con Connection to use. - * @return array List of $objectClassname objects - */ -public function getBranch(\$query = null, PropelPDO \$con = null) -{ - return $queryClassname::create(null, \$query) - ->branchOf(\$this) - ->orderByBranch() - ->find(\$con); -} -"; - } - - protected function addGetAncestors(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $queryClassname = $this->queryClassname; - $script .= " -/** - * Gets ancestors for the given node, starting with the root node - * Use it for breadcrumb paths for instance - * - * @param Criteria \$query Criteria to filter results. - * @param PropelPDO \$con Connection to use. - * @return array List of $objectClassname objects - */ -public function getAncestors(\$query = null, PropelPDO \$con = null) -{ - if(\$this->isRoot()) { - // save one query - return array(); - } else { - return $queryClassname::create(null, \$query) - ->ancestorsOf(\$this) - ->orderByBranch() - ->find(\$con); - } -} -"; - } - - protected function addAddChild(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Inserts the given \$child node as first child of current - * The modifications in the current object and the tree - * are not persisted until the child object is saved. - * - * @param $objectClassname \$child Propel object for child node - * - * @return $objectClassname The current Propel object - */ -public function addChild($objectClassname \$child) -{ - if (\$this->isNew()) { - throw new PropelException('A $objectClassname object must not be new to accept children.'); - } - \$child->insertAsFirstChildOf(\$this); - return \$this; -} -"; - } - - protected function addInsertAsFirstChildOf(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Inserts the current node as first child of given \$parent node - * The modifications in the current object and the tree - * are not persisted until the current object is saved. - * - * @param $objectClassname \$parent Propel object for parent node - * - * @return $objectClassname The current Propel object - */ -public function insertAsFirstChildOf(\$parent) -{ - if (\$this->isInTree()) { - throw new PropelException('A $objectClassname object must not already be in the tree to be inserted. Use the moveToFirstChildOf() instead.'); - } - \$left = \$parent->getLeftValue() + 1; - // Update node properties - \$this->setLeftValue(\$left); - \$this->setRightValue(\$left + 1); - \$this->setLevel(\$parent->getLevel() + 1);"; - if ($useScope) - { - $script .= " - \$scope = \$parent->getScopeValue(); - \$this->setScopeValue(\$scope);"; - } - $script .= " - // update the children collection of the parent - \$parent->addNestedSetChild(\$this); - - // Keep the tree modification query for the save() transaction - \$this->nestedSetQueries []= array( - 'callable' => array('$peerClassname', 'makeRoomForLeaf'), - 'arguments' => array(\$left" . ($useScope ? ", \$scope" : "") . ") - ); - return \$this; -} -"; - } - - protected function addInsertAsLastChildOf(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Inserts the current node as last child of given \$parent node - * The modifications in the current object and the tree - * are not persisted until the current object is saved. - * - * @param $objectClassname \$parent Propel object for parent node - * - * @return $objectClassname The current Propel object - */ -public function insertAsLastChildOf(\$parent) -{ - if (\$this->isInTree()) { - throw new PropelException('A $objectClassname object must not already be in the tree to be inserted. Use the moveToLastChildOf() instead.'); - } - \$left = \$parent->getRightValue(); - // Update node properties - \$this->setLeftValue(\$left); - \$this->setRightValue(\$left + 1); - \$this->setLevel(\$parent->getLevel() + 1);"; - if ($useScope) - { - $script .= " - \$scope = \$parent->getScopeValue(); - \$this->setScopeValue(\$scope);"; - } - $script .= " - // update the children collection of the parent - \$parent->addNestedSetChild(\$this); - - // Keep the tree modification query for the save() transaction - \$this->nestedSetQueries []= array( - 'callable' => array('$peerClassname', 'makeRoomForLeaf'), - 'arguments' => array(\$left" . ($useScope ? ", \$scope" : "") . ") - ); - return \$this; -} -"; - } - - protected function addInsertAsPrevSiblingOf(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Inserts the current node as prev sibling given \$sibling node - * The modifications in the current object and the tree - * are not persisted until the current object is saved. - * - * @param $objectClassname \$sibling Propel object for parent node - * - * @return $objectClassname The current Propel object - */ -public function insertAsPrevSiblingOf(\$sibling) -{ - if (\$this->isInTree()) { - throw new PropelException('A $objectClassname object must not already be in the tree to be inserted. Use the moveToPrevSiblingOf() instead.'); - } - \$left = \$sibling->getLeftValue(); - // Update node properties - \$this->setLeftValue(\$left); - \$this->setRightValue(\$left + 1); - \$this->setLevel(\$sibling->getLevel());"; - if ($useScope) - { - $script .= " - \$scope = \$sibling->getScopeValue(); - \$this->setScopeValue(\$scope);"; - } - $script .= " - // Keep the tree modification query for the save() transaction - \$this->nestedSetQueries []= array( - 'callable' => array('$peerClassname', 'makeRoomForLeaf'), - 'arguments' => array(\$left" . ($useScope ? ", \$scope" : "") . ") - ); - return \$this; -} -"; - } - - protected function addInsertAsNextSiblingOf(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Inserts the current node as next sibling given \$sibling node - * The modifications in the current object and the tree - * are not persisted until the current object is saved. - * - * @param $objectClassname \$sibling Propel object for parent node - * - * @return $objectClassname The current Propel object - */ -public function insertAsNextSiblingOf(\$sibling) -{ - if (\$this->isInTree()) { - throw new PropelException('A $objectClassname object must not already be in the tree to be inserted. Use the moveToNextSiblingOf() instead.'); - } - \$left = \$sibling->getRightValue() + 1; - // Update node properties - \$this->setLeftValue(\$left); - \$this->setRightValue(\$left + 1); - \$this->setLevel(\$sibling->getLevel());"; - if ($useScope) - { - $script .= " - \$scope = \$sibling->getScopeValue(); - \$this->setScopeValue(\$scope);"; - } - $script .= " - // Keep the tree modification query for the save() transaction - \$this->nestedSetQueries []= array( - 'callable' => array('$peerClassname', 'makeRoomForLeaf'), - 'arguments' => array(\$left" . ($useScope ? ", \$scope" : "") . ") - ); - return \$this; -} -"; - } - - protected function addMoveToFirstChildOf(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $script .= " -/** - * Moves current node and its subtree to be the first child of \$parent - * The modifications in the current object and the tree are immediate - * - * @param $objectClassname \$parent Propel object for parent node - * @param PropelPDO \$con Connection to use. - * - * @return $objectClassname The current Propel object - */ -public function moveToFirstChildOf(\$parent, PropelPDO \$con = null) -{ - if (!\$this->isInTree()) { - throw new PropelException('A $objectClassname object must be already in the tree to be moved. Use the insertAsFirstChildOf() instead.'); - }"; - if ($this->behavior->useScope()) { - $script .= " - if (\$parent->getScopeValue() != \$this->getScopeValue()) { - throw new PropelException('Moving nodes across trees is not supported'); - }"; - } - $script .= " - if (\$parent->isDescendantOf(\$this)) { - throw new PropelException('Cannot move a node as child of one of its subtree nodes.'); - } - - \$this->moveSubtreeTo(\$parent->getLeftValue() + 1, \$parent->getLevel() - \$this->getLevel() + 1, \$con); - - return \$this; -} -"; - } - - protected function addMoveToLastChildOf(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $script .= " -/** - * Moves current node and its subtree to be the last child of \$parent - * The modifications in the current object and the tree are immediate - * - * @param $objectClassname \$parent Propel object for parent node - * @param PropelPDO \$con Connection to use. - * - * @return $objectClassname The current Propel object - */ -public function moveToLastChildOf(\$parent, PropelPDO \$con = null) -{ - if (!\$this->isInTree()) { - throw new PropelException('A $objectClassname object must be already in the tree to be moved. Use the insertAsLastChildOf() instead.'); - }"; - if ($this->behavior->useScope()) { - $script .= " - if (\$parent->getScopeValue() != \$this->getScopeValue()) { - throw new PropelException('Moving nodes across trees is not supported'); - }"; - } - $script .= " - if (\$parent->isDescendantOf(\$this)) { - throw new PropelException('Cannot move a node as child of one of its subtree nodes.'); - } - - \$this->moveSubtreeTo(\$parent->getRightValue(), \$parent->getLevel() - \$this->getLevel() + 1, \$con); - - return \$this; -} -"; - } - - protected function addMoveToPrevSiblingOf(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $script .= " -/** - * Moves current node and its subtree to be the previous sibling of \$sibling - * The modifications in the current object and the tree are immediate - * - * @param $objectClassname \$sibling Propel object for sibling node - * @param PropelPDO \$con Connection to use. - * - * @return $objectClassname The current Propel object - */ -public function moveToPrevSiblingOf(\$sibling, PropelPDO \$con = null) -{ - if (!\$this->isInTree()) { - throw new PropelException('A $objectClassname object must be already in the tree to be moved. Use the insertAsPrevSiblingOf() instead.'); - } - if (\$sibling->isRoot()) { - throw new PropelException('Cannot move to previous sibling of a root node.'); - }"; - if ($this->behavior->useScope()) { - $script .= " - if (\$sibling->getScopeValue() != \$this->getScopeValue()) { - throw new PropelException('Moving nodes across trees is not supported'); - }"; - } - $script .= " - if (\$sibling->isDescendantOf(\$this)) { - throw new PropelException('Cannot move a node as sibling of one of its subtree nodes.'); - } - - \$this->moveSubtreeTo(\$sibling->getLeftValue(), \$sibling->getLevel() - \$this->getLevel(), \$con); - - return \$this; -} -"; - } - - protected function addMoveToNextSiblingOf(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $script .= " -/** - * Moves current node and its subtree to be the next sibling of \$sibling - * The modifications in the current object and the tree are immediate - * - * @param $objectClassname \$sibling Propel object for sibling node - * @param PropelPDO \$con Connection to use. - * - * @return $objectClassname The current Propel object - */ -public function moveToNextSiblingOf(\$sibling, PropelPDO \$con = null) -{ - if (!\$this->isInTree()) { - throw new PropelException('A $objectClassname object must be already in the tree to be moved. Use the insertAsNextSiblingOf() instead.'); - } - if (\$sibling->isRoot()) { - throw new PropelException('Cannot move to next sibling of a root node.'); - }"; - if ($this->behavior->useScope()) { - $script .= " - if (\$sibling->getScopeValue() != \$this->getScopeValue()) { - throw new PropelException('Moving nodes across trees is not supported'); - }"; - } - $script .= " - if (\$sibling->isDescendantOf(\$this)) { - throw new PropelException('Cannot move a node as sibling of one of its subtree nodes.'); - } - - \$this->moveSubtreeTo(\$sibling->getRightValue() + 1, \$sibling->getLevel() - \$this->getLevel(), \$con); - - return \$this; -} -"; - } - - protected function addMoveSubtreeTo(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Move current node and its children to location \$destLeft and updates rest of tree - * - * @param int \$destLeft Destination left value - * @param int \$levelDelta Delta to add to the levels - * @param PropelPDO \$con Connection to use. - */ -protected function moveSubtreeTo(\$destLeft, \$levelDelta, PropelPDO \$con = null) -{ - \$left = \$this->getLeftValue(); - \$right = \$this->getRightValue();"; - if ($useScope) { - $script .= " - \$scope = \$this->getScopeValue();"; - } - $script .= " - - \$treeSize = \$right - \$left +1; - - if (\$con === null) { - \$con = Propel::getConnection($peerClassname::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - \$con->beginTransaction(); - try { - // make room next to the target for the subtree - $peerClassname::shiftRLValues(\$treeSize, \$destLeft, null" . ($useScope ? ", \$scope" : "") . ", \$con); - - if (\$left >= \$destLeft) { // src was shifted too? - \$left += \$treeSize; - \$right += \$treeSize; - } - - if (\$levelDelta) { - // update the levels of the subtree - $peerClassname::shiftLevel(\$levelDelta, \$left, \$right" . ($useScope ? ", \$scope" : "") . ", \$con); - } - - // move the subtree to the target - $peerClassname::shiftRLValues(\$destLeft - \$left, \$left, \$right" . ($useScope ? ", \$scope" : "") . ", \$con); - - // remove the empty room at the previous location of the subtree - $peerClassname::shiftRLValues(-\$treeSize, \$right + 1, null" . ($useScope ? ", \$scope" : "") . ", \$con); - - // update all loaded nodes - $peerClassname::updateLoadedNodes(\$con); - - \$con->commit(); - } catch (PropelException \$e) { - \$con->rollback(); - throw \$e; - } -} -"; - } - - protected function addDeleteDescendants(&$script) - { - $objectClassname = $this->objectClassname; - $peerClassname = $this->peerClassname; - $queryClassname = $this->queryClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Deletes all descendants for the given node - * Instance pooling is wiped out by this command, - * so existing $objectClassname instances are probably invalid (except for the current one) - * - * @param PropelPDO \$con Connection to use. - * - * @return int number of deleted nodes - */ -public function deleteDescendants(PropelPDO \$con = null) -{ - if(\$this->isLeaf()) { - // save one query - return; - } - if (\$con === null) { - \$con = Propel::getConnection($peerClassname::DATABASE_NAME, Propel::CONNECTION_READ); - } - \$left = \$this->getLeftValue(); - \$right = \$this->getRightValue();"; - if ($useScope) { - $script .= " - \$scope = \$this->getScopeValue();"; - } - $script .= " - \$con->beginTransaction(); - try { - // delete descendant nodes (will empty the instance pool) - \$ret = $queryClassname::create() - ->descendantsOf(\$this) - ->delete(\$con); - - // fill up the room that was used by descendants - $peerClassname::shiftRLValues(\$left - \$right + 1, \$right, null" . ($useScope ? ", \$scope" : "") . ", \$con); - - // fix the right value for the current node, which is now a leaf - \$this->setRightValue(\$left + 1); - - \$con->commit(); - } catch (Exception \$e) { - \$con->rollback(); - throw \$e; - } - - return \$ret; -} -"; - } - - protected function addGetIterator(&$script) - { - $script .= " -/** - * Returns a pre-order iterator for this node and its children. - * - * @return RecursiveIterator - */ -public function getIterator() -{ - return new NestedSetRecursiveIterator(\$this); -} -"; - } - - protected function addCompatibilityProxies(&$script) - { - $objectClassname = $this->objectClassname; - $script .= " -/** - * Alias for makeRoot(), for BC with Propel 1.4 nested sets - * - * @deprecated since 1.5 - * @see makeRoot - */ -public function createRoot() -{ - return \$this->makeRoot(); -} - -/** - * Alias for getParent(), for BC with Propel 1.4 nested sets - * - * @deprecated since 1.5 - * @see getParent - */ -public function retrieveParent(PropelPDO \$con = null) -{ - return \$this->getParent(\$con); -} - -/** - * Alias for setParent(), for BC with Propel 1.4 nested sets - * - * @deprecated since 1.5 - * @see setParent - */ -public function setParentNode(\$parent = null) -{ - return \$this->setParent(\$parent); -} - -/** - * Alias for countDecendants(), for BC with Propel 1.4 nested sets - * - * @deprecated since 1.5 - * @see setParent - */ -public function getNumberOfDescendants(PropelPDO \$con = null) -{ - return \$this->countDescendants(null, \$con); -} - -/** - * Alias for countChildren(), for BC with Propel 1.4 nested sets - * - * @deprecated since 1.5 - * @see setParent - */ -public function getNumberOfChildren(PropelPDO \$con = null) -{ - return \$this->countChildren(null, \$con); -} - -/** - * Alias for getPrevSibling(), for BC with Propel 1.4 nested sets - * - * @deprecated since 1.5 - * @see getParent - */ -public function retrievePrevSibling(PropelPDO \$con = null) -{ - return \$this->getPrevSibling(\$con); -} - -/** - * Alias for getNextSibling(), for BC with Propel 1.4 nested sets - * - * @deprecated since 1.5 - * @see getParent - */ -public function retrieveNextSibling(PropelPDO \$con = null) -{ - return \$this->getNextSibling(\$con); -} - -/** - * Alias for getFirstChild(), for BC with Propel 1.4 nested sets - * - * @deprecated since 1.5 - * @see getParent - */ -public function retrieveFirstChild(PropelPDO \$con = null) -{ - return \$this->getFirstChild(null, \$con); -} - -/** - * Alias for getLastChild(), for BC with Propel 1.4 nested sets - * - * @deprecated since 1.5 - * @see getParent - */ -public function retrieveLastChild(PropelPDO \$con = null) -{ - return \$this->getLastChild(null, \$con); -} - -/** - * Alias for getAncestors(), for BC with Propel 1.4 nested sets - * - * @deprecated since 1.5 - * @see getAncestors - */ -public function getPath(PropelPDO \$con = null) -{ - return \$this->getAncestors(null, \$con); -} -"; - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/nestedset/NestedSetBehaviorPeerBuilderModifier.php b/airtime_mvc/library/propel/generator/lib/behavior/nestedset/NestedSetBehaviorPeerBuilderModifier.php deleted file mode 100644 index 17bbb96303..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/nestedset/NestedSetBehaviorPeerBuilderModifier.php +++ /dev/null @@ -1,555 +0,0 @@ - - * @package propel.generator.behavior.nestedset - */ -class NestedSetBehaviorPeerBuilderModifier -{ - protected $behavior, $table, $builder, $objectClassname, $peerClassname; - - public function __construct($behavior) - { - $this->behavior = $behavior; - $this->table = $behavior->getTable(); - } - - protected function getParameter($key) - { - return $this->behavior->getParameter($key); - } - - protected function getColumn($name) - { - return $this->behavior->getColumnForParameter($name); - } - - protected function getColumnAttribute($name) - { - return strtolower($this->getColumn($name)->getName()); - } - - protected function getColumnConstant($name) - { - return strtoupper($this->getColumn($name)->getName()); - } - - protected function getColumnPhpName($name) - { - return $this->getColumn($name)->getPhpName(); - } - - protected function setBuilder($builder) - { - $this->builder = $builder; - $this->objectClassname = $builder->getStubObjectBuilder()->getClassname(); - $this->peerClassname = $builder->getStubPeerBuilder()->getClassname(); - } - - public function staticAttributes($builder) - { - $tableName = $this->table->getName(); - - $script = " -/** - * Left column for the set - */ -const LEFT_COL = '" . $tableName . '.' . $this->getColumnConstant('left_column') . "'; - -/** - * Right column for the set - */ -const RIGHT_COL = '" . $tableName . '.' . $this->getColumnConstant('right_column') . "'; - -/** - * Level column for the set - */ -const LEVEL_COL = '" . $tableName . '.' . $this->getColumnConstant('level_column') . "'; -"; - - if ($this->behavior->useScope()) { - $script .= " -/** - * Scope column for the set - */ -const SCOPE_COL = '" . $tableName . '.' . $this->getColumnConstant('scope_column') . "'; -"; - } - - return $script; - } - - public function staticMethods($builder) - { - $this->setBuilder($builder); - $script = ''; - - if ($this->getParameter('use_scope') == 'true') - { - $this->addRetrieveRoots($script); - } - $this->addRetrieveRoot($script); - $this->addRetrieveTree($script); - $this->addIsValid($script); - $this->addDeleteTree($script); - $this->addShiftRLValues($script); - $this->addShiftLevel($script); - $this->addUpdateLoadedNodes($script); - $this->addMakeRoomForLeaf($script); - $this->addFixLevels($script); - - return $script; - } - - protected function addRetrieveRoots(&$script) - { - $peerClassname = $this->peerClassname; - $script .= " -/** - * Returns the root nodes for the tree - * - * @param PropelPDO \$con Connection to use. - * @return {$this->objectClassname} Propel object for root node - */ -public static function retrieveRoots(Criteria \$criteria = null, PropelPDO \$con = null) -{ - if (\$criteria === null) { - \$criteria = new Criteria($peerClassname::DATABASE_NAME); - } - \$criteria->add($peerClassname::LEFT_COL, 1, Criteria::EQUAL); - - return $peerClassname::doSelect(\$criteria, \$con); -} -"; - } - - protected function addRetrieveRoot(&$script) - { - $peerClassname = $this->peerClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Returns the root node for a given scope - *"; - if($useScope) { - $script .= " - * @param int \$scope Scope to determine which root node to return"; - } - $script .= " - * @param PropelPDO \$con Connection to use. - * @return {$this->objectClassname} Propel object for root node - */ -public static function retrieveRoot(" . ($useScope ? "\$scope = null, " : "") . "PropelPDO \$con = null) -{ - \$c = new Criteria($peerClassname::DATABASE_NAME); - \$c->add($peerClassname::LEFT_COL, 1, Criteria::EQUAL);"; - if($useScope) { - $script .= " - \$c->add($peerClassname::SCOPE_COL, \$scope, Criteria::EQUAL);"; - } - $script .= " - - return $peerClassname::doSelectOne(\$c, \$con); -} -"; - } - - protected function addRetrieveTree(&$script) - { - $peerClassname = $this->peerClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Returns the whole tree node for a given scope - *"; - if($useScope) { - $script .= " - * @param int \$scope Scope to determine which root node to return"; - } - $script .= " - * @param Criteria \$criteria Optional Criteria to filter the query - * @param PropelPDO \$con Connection to use. - * @return {$this->objectClassname} Propel object for root node - */ -public static function retrieveTree(" . ($useScope ? "\$scope = null, " : "") . "Criteria \$criteria = null, PropelPDO \$con = null) -{ - if (\$criteria === null) { - \$criteria = new Criteria($peerClassname::DATABASE_NAME); - } - \$criteria->addAscendingOrderByColumn($peerClassname::LEFT_COL);"; - if($useScope) { - $script .= " - \$criteria->add($peerClassname::SCOPE_COL, \$scope, Criteria::EQUAL);"; - } - $script .= " - - return $peerClassname::doSelect(\$criteria, \$con); -} -"; - } - - protected function addIsValid(&$script) - { - $objectClassname = $this->objectClassname; - $script .= " -/** - * Tests if node is valid - * - * @param $objectClassname \$node Propel object for src node - * @return bool - */ -public static function isValid($objectClassname \$node = null) -{ - if (is_object(\$node) && \$node->getRightValue() > \$node->getLeftValue()) { - return true; - } else { - return false; - } -} -"; - } - - protected function addDeleteTree(&$script) - { - $peerClassname = $this->peerClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Delete an entire tree - * "; - if($useScope) { - $script .= " - * @param int \$scope Scope to determine which tree to delete"; - } - $script .= " - * @param PropelPDO \$con Connection to use. - * - * @return int The number of deleted nodes - */ -public static function deleteTree(" . ($useScope ? "\$scope = null, " : "") . "PropelPDO \$con = null) -{"; - if($useScope) { - $script .= " - \$c = new Criteria($peerClassname::DATABASE_NAME); - \$c->add($peerClassname::SCOPE_COL, \$scope, Criteria::EQUAL); - return $peerClassname::doDelete(\$c, \$con);"; - } else { - $script .= " - return $peerClassname::doDeleteAll(\$con);"; - } - $script .= " -} -"; - } - - protected function addShiftRLValues(&$script) - { - $peerClassname = $this->peerClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Adds \$delta to all L and R values that are >= \$first and <= \$last. - * '\$delta' can also be negative. - * - * @param int \$delta Value to be shifted by, can be negative - * @param int \$first First node to be shifted - * @param int \$last Last node to be shifted (optional)"; - if($useScope) { - $script .= " - * @param int \$scope Scope to use for the shift"; - } - $script .= " - * @param PropelPDO \$con Connection to use. - */ -public static function shiftRLValues(\$delta, \$first, \$last = null" . ($useScope ? ", \$scope = null" : ""). ", PropelPDO \$con = null) -{ - if (\$con === null) { - \$con = Propel::getConnection($peerClassname::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - // Shift left column values - \$whereCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$criterion = \$whereCriteria->getNewCriterion($peerClassname::LEFT_COL, \$first, Criteria::GREATER_EQUAL); - if (null !== \$last) { - \$criterion->addAnd(\$whereCriteria->getNewCriterion($peerClassname::LEFT_COL, \$last, Criteria::LESS_EQUAL)); - } - \$whereCriteria->add(\$criterion);"; - if ($useScope) { - $script .= " - \$whereCriteria->add($peerClassname::SCOPE_COL, \$scope, Criteria::EQUAL);"; - } - $script .= " - - \$valuesCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$valuesCriteria->add($peerClassname::LEFT_COL, array('raw' => $peerClassname::LEFT_COL . ' + ?', 'value' => \$delta), Criteria::CUSTOM_EQUAL); - - {$this->builder->getBasePeerClassname()}::doUpdate(\$whereCriteria, \$valuesCriteria, \$con); - - // Shift right column values - \$whereCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$criterion = \$whereCriteria->getNewCriterion($peerClassname::RIGHT_COL, \$first, Criteria::GREATER_EQUAL); - if (null !== \$last) { - \$criterion->addAnd(\$whereCriteria->getNewCriterion($peerClassname::RIGHT_COL, \$last, Criteria::LESS_EQUAL)); - } - \$whereCriteria->add(\$criterion);"; - if ($useScope) { - $script .= " - \$whereCriteria->add($peerClassname::SCOPE_COL, \$scope, Criteria::EQUAL);"; - } - $script .= " - - \$valuesCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$valuesCriteria->add($peerClassname::RIGHT_COL, array('raw' => $peerClassname::RIGHT_COL . ' + ?', 'value' => \$delta), Criteria::CUSTOM_EQUAL); - - {$this->builder->getBasePeerClassname()}::doUpdate(\$whereCriteria, \$valuesCriteria, \$con); -} -"; - } - - protected function addShiftLevel(&$script) - { - $peerClassname = $this->peerClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Adds \$delta to level for nodes having left value >= \$first and right value <= \$last. - * '\$delta' can also be negative. - * - * @param int \$delta Value to be shifted by, can be negative - * @param int \$first First node to be shifted - * @param int \$last Last node to be shifted"; - if($useScope) { - $script .= " - * @param int \$scope Scope to use for the shift"; - } - $script .= " - * @param PropelPDO \$con Connection to use. - */ -public static function shiftLevel(\$delta, \$first, \$last" . ($useScope ? ", \$scope = null" : ""). ", PropelPDO \$con = null) -{ - if (\$con === null) { - \$con = Propel::getConnection($peerClassname::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - \$whereCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$whereCriteria->add($peerClassname::LEFT_COL, \$first, Criteria::GREATER_EQUAL); - \$whereCriteria->add($peerClassname::RIGHT_COL, \$last, Criteria::LESS_EQUAL);"; - if ($useScope) { - $script .= " - \$whereCriteria->add($peerClassname::SCOPE_COL, \$scope, Criteria::EQUAL);"; - } - $script .= " - - \$valuesCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$valuesCriteria->add($peerClassname::LEVEL_COL, array('raw' => $peerClassname::LEVEL_COL . ' + ?', 'value' => \$delta), Criteria::CUSTOM_EQUAL); - - {$this->builder->getBasePeerClassname()}::doUpdate(\$whereCriteria, \$valuesCriteria, \$con); -} -"; - } - - protected function addUpdateLoadedNodes(&$script) - { - $peerClassname = $this->peerClassname; - $script .= " -/** - * Reload all already loaded nodes to sync them with updated db - * - * @param PropelPDO \$con Connection to use. - */ -public static function updateLoadedNodes(PropelPDO \$con = null) -{ - if (Propel::isInstancePoolingEnabled()) { - \$keys = array(); - foreach ($peerClassname::\$instances as \$obj) { - \$keys[] = \$obj->getPrimaryKey(); - } - - if (!empty(\$keys)) { - // We don't need to alter the object instance pool; we're just modifying these ones - // already in the pool. - \$criteria = new Criteria($peerClassname::DATABASE_NAME);"; - if (count($this->table->getPrimaryKey()) === 1) { - $pkey = $this->table->getPrimaryKey(); - $col = array_shift($pkey); - $script .= " - \$criteria->add(".$this->builder->getColumnConstant($col).", \$keys, Criteria::IN); -"; - } else { - $fields = array(); - foreach ($this->table->getPrimaryKey() as $k => $col) { - $fields[] = $this->builder->getColumnConstant($col); - }; - $script .= " - - // Loop on each instances in pool - foreach (\$keys as \$values) { - // Create initial Criterion - \$cton = \$criteria->getNewCriterion(" . $fields[0] . ", \$values[0]);"; - unset($fields[0]); - foreach ($fields as $k => $col) { - $script .= " - - // Create next criterion - \$nextcton = \$criteria->getNewCriterion(" . $col . ", \$values[$k]); - // And merge it with the first - \$cton->addAnd(\$nextcton);"; - } - $script .= " - - // Add final Criterion to Criteria - \$criteria->addOr(\$cton); - }"; - } - - $script .= " - \$stmt = $peerClassname::doSelectStmt(\$criteria, \$con); - while (\$row = \$stmt->fetch(PDO::FETCH_NUM)) { - \$key = $peerClassname::getPrimaryKeyHashFromRow(\$row, 0); - if (null !== (\$object = $peerClassname::getInstanceFromPool(\$key))) {"; - $n = 0; - foreach ($this->table->getColumns() as $col) { - if ($col->getPhpName() == $this->getColumnPhpName('left_column')) { - $script .= " - \$object->setLeftValue(\$row[$n]);"; - } else if ($col->getPhpName() == $this->getColumnPhpName('right_column')) { - $script .= " - \$object->setRightValue(\$row[$n]);"; - } else if ($col->getPhpName() == $this->getColumnPhpName('level_column')) { - $script .= " - \$object->setLevel(\$row[$n]); - \$object->clearNestedSetChildren();"; - } - $n++; - } - $script .= " - } - } - \$stmt->closeCursor(); - } - } -} -"; - } - - protected function addMakeRoomForLeaf(&$script) - { - $peerClassname = $this->peerClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Update the tree to allow insertion of a leaf at the specified position - * - * @param int \$left left column value"; - if ($useScope) { - $script .= " - * @param integer \$scope scope column value"; - } - $script .= " - * @param PropelPDO \$con Connection to use. - */ -public static function makeRoomForLeaf(\$left" . ($useScope ? ", \$scope" : ""). ", PropelPDO \$con = null) -{ - // Update database nodes - $peerClassname::shiftRLValues(2, \$left, null" . ($useScope ? ", \$scope" : "") . ", \$con); - - // Update all loaded nodes - $peerClassname::updateLoadedNodes(\$con); -} -"; - } - - protected function addFixLevels(&$script) - { - $peerClassname = $this->peerClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Update the tree to allow insertion of a leaf at the specified position - *"; - if ($useScope) { - $script .= " - * @param integer \$scope scope column value"; - } - $script .= " - * @param PropelPDO \$con Connection to use. - */ -public static function fixLevels(" . ($useScope ? "\$scope, " : ""). "PropelPDO \$con = null) -{ - \$c = new Criteria();"; - if ($useScope) { - $script .= " - \$c->add($peerClassname::SCOPE_COL, \$scope, Criteria::EQUAL);"; - } - $script .= " - \$c->addAscendingOrderByColumn($peerClassname::LEFT_COL); - \$stmt = $peerClassname::doSelectStmt(\$c, \$con); - "; - if (!$this->table->getChildrenColumn()) { - $script .= " - // set the class once to avoid overhead in the loop - \$cls = $peerClassname::getOMClass(false);"; - } - - $script .= " - \$level = null; - // iterate over the statement - while (\$row = \$stmt->fetch(PDO::FETCH_NUM)) { - - // hydrate object - \$key = $peerClassname::getPrimaryKeyHashFromRow(\$row, 0); - if (null === (\$obj = $peerClassname::getInstanceFromPool(\$key))) {"; - if ($this->table->getChildrenColumn()) { - $script .= " - // class must be set each time from the record row - \$cls = $peerClassname::getOMClass(\$row, 0); - \$cls = substr('.'.\$cls, strrpos('.'.\$cls, '.') + 1); - " . $this->builder->buildObjectInstanceCreationCode('$obj', '$cls') . " - \$obj->hydrate(\$row); - $peerClassname::addInstanceToPool(\$obj, \$key);"; - } else { - $script .= " - " . $this->builder->buildObjectInstanceCreationCode('$obj', '$cls') . " - \$obj->hydrate(\$row); - $peerClassname::addInstanceToPool(\$obj, \$key);"; - } - $script .= " - } - - // compute level - // Algorithm shamelessly stolen from sfPropelActAsNestedSetBehaviorPlugin - // Probably authored by Tristan Rivoallan - if (\$level === null) { - \$level = 0; - \$i = 0; - \$prev = array(\$obj->getRightValue()); - } else { - while (\$obj->getRightValue() > \$prev[\$i]) { - \$i--; - } - \$level = ++\$i; - \$prev[\$i] = \$obj->getRightValue(); - } - - // update level in node if necessary - if (\$obj->getLevel() !== \$level) { - \$obj->setLevel(\$level); - \$obj->save(\$con); - } - } - \$stmt->closeCursor(); -} -"; - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/nestedset/NestedSetBehaviorQueryBuilderModifier.php b/airtime_mvc/library/propel/generator/lib/behavior/nestedset/NestedSetBehaviorQueryBuilderModifier.php deleted file mode 100644 index 31cd32d58b..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/nestedset/NestedSetBehaviorQueryBuilderModifier.php +++ /dev/null @@ -1,357 +0,0 @@ -behavior = $behavior; - $this->table = $behavior->getTable(); - } - - protected function getParameter($key) - { - return $this->behavior->getParameter($key); - } - - protected function getColumn($name) - { - return $this->behavior->getColumnForParameter($name); - } - - protected function setBuilder($builder) - { - $this->builder = $builder; - $this->objectClassname = $builder->getStubObjectBuilder()->getClassname(); - $this->queryClassname = $builder->getStubQueryBuilder()->getClassname(); - $this->peerClassname = $builder->getStubPeerBuilder()->getClassname(); - } - - public function queryMethods($builder) - { - $this->setBuilder($builder); - $script = ''; - - // select filters - if ($this->behavior->useScope()) { - $this->addTreeRoots($script); - $this->addInTree($script); - } - $this->addDescendantsOf($script); - $this->addBranchOf($script); - $this->addChildrenOf($script); - $this->addSiblingsOf($script); - $this->addAncestorsOf($script); - $this->addRootsOf($script); - // select orders - $this->addOrderByBranch($script); - $this->addOrderByLevel($script); - // select termination methods - $this->addFindRoot($script); - $this->addFindTree($script); - - return $script; - } - - protected function addTreeRoots(&$script) - { - $script .= " -/** - * Filter the query to restrict the result to root objects - * - * @return {$this->queryClassname} The current query, for fuid interface - */ -public function treeRoots() -{ - return \$this->addUsingAlias({$this->peerClassname}::LEFT_COL, 1, Criteria::EQUAL); -} -"; - } - - protected function addInTree(&$script) - { - $script .= " -/** - * Returns the objects in a certain tree, from the tree scope - * - * @param int \$scope Scope to determine which objects node to return - * - * @return {$this->queryClassname} The current query, for fuid interface - */ -public function inTree(\$scope = null) -{ - return \$this->addUsingAlias({$this->peerClassname}::SCOPE_COL, \$scope, Criteria::EQUAL); -} -"; - } - - protected function addDescendantsOf(&$script) - { - $objectName = '$' . $this->table->getStudlyPhpName(); - $script .= " -/** - * Filter the query to restrict the result to descendants of an object - * - * @param {$this->objectClassname} $objectName The object to use for descendant search - * - * @return {$this->queryClassname} The current query, for fuid interface - */ -public function descendantsOf($objectName) -{ - return \$this"; - if ($this->behavior->useScope()) { - $script .= " - ->inTree({$objectName}->getScopeValue())"; - } - $script .= " - ->addUsingAlias({$this->peerClassname}::LEFT_COL, {$objectName}->getLeftValue(), Criteria::GREATER_THAN) - ->addUsingAlias({$this->peerClassname}::RIGHT_COL, {$objectName}->getRightValue(), Criteria::LESS_THAN); -} -"; - } - - protected function addBranchOf(&$script) - { - $objectName = '$' . $this->table->getStudlyPhpName(); - $script .= " -/** - * Filter the query to restrict the result to the branch of an object. - * Same as descendantsOf(), except that it includes the object passed as parameter in the result - * - * @param {$this->objectClassname} $objectName The object to use for branch search - * - * @return {$this->queryClassname} The current query, for fuid interface - */ -public function branchOf($objectName) -{ - return \$this"; - if ($this->behavior->useScope()) { - $script .= " - ->inTree({$objectName}->getScopeValue())"; - } - $script .= " - ->addUsingAlias({$this->peerClassname}::LEFT_COL, {$objectName}->getLeftValue(), Criteria::GREATER_EQUAL) - ->addUsingAlias({$this->peerClassname}::RIGHT_COL, {$objectName}->getRightValue(), Criteria::LESS_EQUAL); -} -"; - } - - protected function addChildrenOf(&$script) - { - $objectName = '$' . $this->table->getStudlyPhpName(); - $script .= " -/** - * Filter the query to restrict the result to children of an object - * - * @param {$this->objectClassname} $objectName The object to use for child search - * - * @return {$this->queryClassname} The current query, for fuid interface - */ -public function childrenOf($objectName) -{ - return \$this - ->descendantsOf($objectName) - ->addUsingAlias({$this->peerClassname}::LEVEL_COL, {$objectName}->getLevel() + 1, Criteria::EQUAL); -} -"; - } - - protected function addSiblingsOf(&$script) - { - $objectName = '$' . $this->table->getStudlyPhpName(); - $script .= " -/** - * Filter the query to restrict the result to siblings of an object. - * The result does not include the object passed as parameter. - * - * @param {$this->objectClassname} $objectName The object to use for sibling search - * @param PropelPDO \$con Connection to use. - * - * @return {$this->queryClassname} The current query, for fuid interface - */ -public function siblingsOf($objectName, PropelPDO \$con = null) -{ - if ({$objectName}->isRoot()) { - return \$this-> - add({$this->peerClassname}::LEVEL_COL, '1<>1', Criteria::CUSTOM); - } else { - return \$this - ->childrenOf({$objectName}->getParent(\$con)) - ->prune($objectName); - } -} -"; - } - - protected function addAncestorsOf(&$script) - { - $objectName = '$' . $this->table->getStudlyPhpName(); - $script .= " -/** - * Filter the query to restrict the result to ancestors of an object - * - * @param {$this->objectClassname} $objectName The object to use for ancestors search - * - * @return {$this->queryClassname} The current query, for fuid interface - */ -public function ancestorsOf($objectName) -{ - return \$this"; - if ($this->behavior->useScope()) { - $script .= " - ->inTree({$objectName}->getScopeValue())"; - } - $script .= " - ->addUsingAlias({$this->peerClassname}::LEFT_COL, {$objectName}->getLeftValue(), Criteria::LESS_THAN) - ->addUsingAlias({$this->peerClassname}::RIGHT_COL, {$objectName}->getRightValue(), Criteria::GREATER_THAN); -} -"; - } - - protected function addRootsOf(&$script) - { - $objectName = '$' . $this->table->getStudlyPhpName(); - $script .= " -/** - * Filter the query to restrict the result to roots of an object. - * Same as ancestorsOf(), except that it includes the object passed as parameter in the result - * - * @param {$this->objectClassname} $objectName The object to use for roots search - * - * @return {$this->queryClassname} The current query, for fuid interface - */ -public function rootsOf($objectName) -{ - return \$this"; - if ($this->behavior->useScope()) { - $script .= " - ->inTree({$objectName}->getScopeValue())"; - } - $script .= " - ->addUsingAlias({$this->peerClassname}::LEFT_COL, {$objectName}->getLeftValue(), Criteria::LESS_EQUAL) - ->addUsingAlias({$this->peerClassname}::RIGHT_COL, {$objectName}->getRightValue(), Criteria::GREATER_EQUAL); -} -"; - } - - protected function addOrderByBranch(&$script) - { - $script .= " -/** - * Order the result by branch, i.e. natural tree order - * - * @param bool \$reverse if true, reverses the order - * - * @return {$this->queryClassname} The current query, for fuid interface - */ -public function orderByBranch(\$reverse = false) -{ - if (\$reverse) { - return \$this - ->addDescendingOrderByColumn({$this->peerClassname}::LEFT_COL); - } else { - return \$this - ->addAscendingOrderByColumn({$this->peerClassname}::LEFT_COL); - } -} -"; - } - - protected function addOrderByLevel(&$script) - { - $script .= " -/** - * Order the result by level, the closer to the root first - * - * @param bool \$reverse if true, reverses the order - * - * @return {$this->queryClassname} The current query, for fuid interface - */ -public function orderByLevel(\$reverse = false) -{ - if (\$reverse) { - return \$this - ->addAscendingOrderByColumn({$this->peerClassname}::RIGHT_COL); - } else { - return \$this - ->addDescendingOrderByColumn({$this->peerClassname}::RIGHT_COL); - } -} -"; - } - - protected function addFindRoot(&$script) - { - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Returns " . ($useScope ? 'a' : 'the') ." root node for the tree - *"; - if($useScope) { - $script .= " - * @param int \$scope Scope to determine which root node to return"; - } - $script .= " - * @param PropelPDO \$con Connection to use. - * - * @return {$this->objectClassname} The tree root object - */ -public function findRoot(" . ($useScope ? "\$scope = null, " : "") . "\$con = null) -{ - return \$this - ->addUsingAlias({$this->peerClassname}::LEFT_COL, 1, Criteria::EQUAL)"; - if ($useScope) { - $script .= " - ->inTree(\$scope)"; - } - $script .= " - ->findOne(\$con); -} -"; - } - - protected function addFindTree(&$script) - { - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Returns " . ($useScope ? 'a' : 'the') ." tree of objects - *"; - if($useScope) { - $script .= " - * @param int \$scope Scope to determine which tree node to return"; - } - $script .= " - * @param PropelPDO \$con Connection to use. - * - * @return mixed the list of results, formatted by the current formatter - */ -public function findTree(" . ($useScope ? "\$scope = null, " : "") . "\$con = null) -{ - return \$this"; - if ($useScope) { - $script .= " - ->inTree(\$scope)"; - } - $script .= " - ->orderByBranch() - ->find(\$con); -} -"; - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/query_cache/QueryCacheBehavior.php b/airtime_mvc/library/propel/generator/lib/behavior/query_cache/QueryCacheBehavior.php deleted file mode 100644 index 44db968aeb..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/query_cache/QueryCacheBehavior.php +++ /dev/null @@ -1,262 +0,0 @@ - 'apc', - 'lifetime' => 3600, - ); - - public function queryAttributes($builder) - { - $script = "protected \$queryKey = ''; -"; - switch ($this->getParameter('backend')) { - case 'backend': - $script .= "protected static \$cacheBackend = array(); - "; - break; - case 'apc': - break; - case 'custom': - default: - $script .= "protected static \$cacheBackend; - "; - break; - } - - return $script; - } - - public function queryMethods($builder) - { - $this->peerClassname = $builder->getStubPeerBuilder()->getClassname(); - $script = ''; - $this->addSetQueryKey($script); - $this->addGetQueryKey($script); - $this->addCacheContains($script); - $this->addCacheFetch($script); - $this->addCacheStore($script); - $this->addGetSelectStatement($script); - $this->addGetCountStatement($script); - - return $script; - } - - protected function addSetQueryKey(&$script) - { - $script .= " -public function setQueryKey(\$key) -{ - \$this->queryKey = \$key; - return \$this; -} -"; - } - - protected function addGetQueryKey(&$script) - { - $script .= " -public function getQueryKey() -{ - return \$this->queryKey; -} -"; - } - - protected function addCacheContains(&$script) - { - $script .= " -public function cacheContains(\$key) -{"; - switch ($this->getParameter('backend')) { - case 'apc': - $script .= " - return apc_fetch(\$key);"; - break; - case 'array': - $script .= " - return isset(self::\$cacheBackend[\$key]);"; - break; - case 'custom': - default: - $script .= " - throw new PropelException('You must override the cacheContains(), cacheStore(), and cacheFetch() methods to enable query cache');"; - break; - - } - $script .= " -} -"; - } - - protected function addCacheStore(&$script) - { - $script .= " -public function cacheStore(\$key, \$value, \$lifetime = " .$this->getParameter('lifetime') . ") -{"; - switch ($this->getParameter('backend')) { - case 'apc': - $script .= " - apc_store(\$key, \$value, \$lifetime);"; - break; - case 'array': - $script .= " - self::\$cacheBackend[\$key] = \$value;"; - break; - case 'custom': - default: - $script .= " - throw new PropelException('You must override the cacheContains(), cacheStore(), and cacheFetch() methods to enable query cache');"; - break; - } - $script .= " -} -"; - } - - protected function addCacheFetch(&$script) - { - $script .= " -public function cacheFetch(\$key) -{"; - switch ($this->getParameter('backend')) { - case 'apc': - $script .= " - return apc_fetch(\$key);"; - break; - case 'array': - $script .= " - return isset(self::\$cacheBackend[\$key]) ? self::\$cacheBackend[\$key] : null;"; - break; - case 'custom': - default: - $script .= " - throw new PropelException('You must override the cacheContains(), cacheStore(), and cacheFetch() methods to enable query cache');"; - break; - } - $script .= " -} -"; - } - - protected function addGetSelectStatement(&$script) - { - $script .= " -protected function getSelectStatement(\$con = null) -{ - \$dbMap = Propel::getDatabaseMap(" . $this->peerClassname ."::DATABASE_NAME); - \$db = Propel::getDB(" . $this->peerClassname ."::DATABASE_NAME); - if (\$con === null) { - \$con = Propel::getConnection(" . $this->peerClassname ."::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!\$this->hasSelectClause()) { - \$this->addSelfSelectColumns(); - } - - \$con->beginTransaction(); - try { - \$this->basePreSelect(\$con); - \$key = \$this->getQueryKey(); - if (\$key && \$this->cacheContains(\$key)) { - \$params = \$this->getParams(); - \$sql = \$this->cacheFetch(\$key); - } else { - \$params = array(); - \$sql = BasePeer::createSelectSql(\$this, \$params); - if (\$key) { - \$this->cacheStore(\$key, \$sql); - } - } - \$stmt = \$con->prepare(\$sql); - BasePeer::populateStmtValues(\$stmt, \$params, \$dbMap, \$db); - \$stmt->execute(); - \$con->commit(); - } catch (PropelException \$e) { - \$con->rollback(); - throw \$e; - } - - return \$stmt; -} -"; - } - - protected function addGetCountStatement(&$script) - { - $script .= " -protected function getCountStatement(\$con = null) -{ - \$dbMap = Propel::getDatabaseMap(\$this->getDbName()); - \$db = Propel::getDB(\$this->getDbName()); - if (\$con === null) { - \$con = Propel::getConnection(\$this->getDbName(), Propel::CONNECTION_READ); - } - - \$con->beginTransaction(); - try { - \$this->basePreSelect(\$con); - \$key = \$this->getQueryKey(); - if (\$key && \$this->cacheContains(\$key)) { - \$params = \$this->getParams(); - \$sql = \$this->cacheFetch(\$key); - } else { - if (!\$this->hasSelectClause() && !\$this->getPrimaryCriteria()) { - \$this->addSelfSelectColumns(); - } - \$params = array(); - \$needsComplexCount = \$this->getGroupByColumns() - || \$this->getOffset() - || \$this->getLimit() - || \$this->getHaving() - || in_array(Criteria::DISTINCT, \$this->getSelectModifiers()); - if (\$needsComplexCount) { - if (BasePeer::needsSelectAliases(\$this)) { - if (\$this->getHaving()) { - throw new PropelException('Propel cannot create a COUNT query when using HAVING and duplicate column names in the SELECT part'); - } - BasePeer::turnSelectColumnsToAliases(\$this); - } - \$selectSql = BasePeer::createSelectSql(\$this, \$params); - \$sql = 'SELECT COUNT(*) FROM (' . \$selectSql . ') propelmatch4cnt'; - } else { - // Replace SELECT columns with COUNT(*) - \$this->clearSelectColumns()->addSelectColumn('COUNT(*)'); - \$sql = BasePeer::createSelectSql(\$this, \$params); - } - if (\$key) { - \$this->cacheStore(\$key, \$sql); - } - } - \$stmt = \$con->prepare(\$sql); - BasePeer::populateStmtValues(\$stmt, \$params, \$dbMap, \$db); - \$stmt->execute(); - \$con->commit(); - } catch (PropelException \$e) { - \$con->rollback(); - throw \$e; - } - - return \$stmt; -} -"; - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/sluggable/SluggableBehavior.php b/airtime_mvc/library/propel/generator/lib/behavior/sluggable/SluggableBehavior.php deleted file mode 100644 index d9909a3356..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/sluggable/SluggableBehavior.php +++ /dev/null @@ -1,332 +0,0 @@ - 'slug', - 'slug_pattern' => '', - 'replace_pattern' => '/\W+/', // Tip: use '/[^\\pL\\d]+/u' instead if you're in PHP5.3 - 'replacement' => '-', - 'separator' => '-', - 'permanent' => 'false' - ); - - /** - * Add the slug_column to the current table - */ - public function modifyTable() - { - if(!$this->getTable()->containsColumn($this->getParameter('slug_column'))) { - $this->getTable()->addColumn(array( - 'name' => $this->getParameter('slug_column'), - 'type' => 'VARCHAR', - 'size' => 255 - )); - // add a unique to column - $unique = new Unique($this->getColumnForParameter('slug_column')); - $unique->setName($this->getTable()->getName() . '_slug'); - $unique->addColumn($this->getTable()->getColumn($this->getParameter('slug_column'))); - $this->getTable()->addUnique($unique); - } - } - - /** - * Get the getter of the column of the behavior - * - * @return string The related getter, e.g. 'getSlug' - */ - protected function getColumnGetter() - { - return 'get' . $this->getColumnForParameter('slug_column')->getPhpName(); - } - - /** - * Get the setter of the column of the behavior - * - * @return string The related setter, e.g. 'setSlug' - */ - protected function getColumnSetter() - { - return 'set' . $this->getColumnForParameter('slug_column')->getPhpName(); - } - - /** - * Add code in ObjectBuilder::preSave - * - * @return string The code to put at the hook - */ - public function preSave($builder) - { - $const = $builder->getColumnConstant($this->getColumnForParameter('slug_column'), $this->getTable()->getPhpName() . 'Peer'); - $script = " -if (\$this->isColumnModified($const) && \$this->{$this->getColumnGetter()}()) { - \$this->{$this->getColumnSetter()}(\$this->makeSlugUnique(\$this->{$this->getColumnGetter()}()));"; - if ($this->getParameter('permanent') == 'true') { - $script .= " -} elseif (!\$this->{$this->getColumnGetter()}()) { - \$this->{$this->getColumnSetter()}(\$this->createSlug()); -}"; - } else { - $script .= " -} else { - \$this->{$this->getColumnSetter()}(\$this->createSlug()); -}"; - } - - return $script; - } - - public function objectMethods($builder) - { - $this->builder = $builder; - $script = ''; - if ($this->getParameter('slug_column') != 'slug') { - $this->addSlugSetter($script); - $this->addSlugGetter($script); - } - $this->addCreateSlug($script); - $this->addCreateRawSlug($script); - $this->addCleanupSlugPart($script); - $this->addLimitSlugSize($script); - $this->addMakeSlugUnique($script); - - return $script; - } - - protected function addSlugSetter(&$script) - { - $script .= " -/** - * Wrap the setter for slug value - * - * @param string - * @return " . $this->getTable()->getPhpName() . " - */ -public function setSlug(\$v) -{ - return \$this->" . $this->getColumnSetter() . "(\$v); -} -"; - } - - protected function addSlugGetter(&$script) - { - $script .= " -/** - * Wrap the getter for slug value - * - * @return string - */ -public function getSlug() -{ - return \$this->" . $this->getColumnGetter() . "(); -} -"; - } - - protected function addCreateSlug(&$script) - { - $script .= " -/** - * Create a unique slug based on the object - * - * @return string The object slug - */ -protected function createSlug() -{ - \$slug = \$this->createRawSlug(); - \$slug = \$this->limitSlugSize(\$slug); - \$slug = \$this->makeSlugUnique(\$slug); - - return \$slug; -} -"; - } - - protected function addCreateRawSlug(&$script) - { - $pattern = $this->getParameter('slug_pattern'); - $script .= " -/** - * Create the slug from the appropriate columns - * - * @return string - */ -protected function createRawSlug() -{ - "; - if ($pattern) { - $script .= "return '" . str_replace(array('{', '}'), array('\' . $this->cleanupSlugPart($this->get', '()) . \''), $pattern). "';"; - } else { - $script .= "return \$this->cleanupSlugPart(\$this->__toString());"; - } - $script .= " -} -"; - return $script; - } - - public function addCleanupSlugPart(&$script) - { - $script .= " -/** - * Cleanup a string to make a slug of it - * Removes special characters, replaces blanks with a separator, and trim it - * - * @param string \$text the text to slugify - * @param string \$separator the separator used by slug - * @return string the slugified text - */ -protected static function cleanupSlugPart(\$slug, \$replacement = '" . $this->getParameter('replacement') . "') -{ - // transliterate - if (function_exists('iconv')) { - \$slug = iconv('utf-8', 'us-ascii//TRANSLIT', \$slug); - } - - // lowercase - if (function_exists('mb_strtolower')) { - \$slug = mb_strtolower(\$slug); - } else { - \$slug = strtolower(\$slug); - } - - // remove accents resulting from OSX's iconv - \$slug = str_replace(array('\'', '`', '^'), '', \$slug); - - // replace non letter or digits with separator - \$slug = preg_replace('" . $this->getParameter('replace_pattern') . "', \$replacement, \$slug); - - // trim - \$slug = trim(\$slug, \$replacement); - - if (empty(\$slug)) { - return 'n-a'; - } - - return \$slug; -} -"; - } - - public function addLimitSlugSize(&$script) - { - $size = $this->getColumnForParameter('slug_column')->getSize(); - $script .= " - -/** - * Make sure the slug is short enough to accomodate the column size - * - * @param string \$slug the slug to check - * - * @return string the truncated slug - */ -protected static function limitSlugSize(\$slug, \$incrementReservedSpace = 3) -{ - // check length, as suffix could put it over maximum - if (strlen(\$slug) > ($size - \$incrementReservedSpace)) { - \$slug = substr(\$slug, 0, $size - \$incrementReservedSpace); - } - return \$slug; -} -"; - } - - public function addMakeSlugUnique(&$script) - { - $script .= " - -/** - * Get the slug, ensuring its uniqueness - * - * @param string \$slug the slug to check - * @param string \$separator the separator used by slug - * @return string the unique slug - */ -protected function makeSlugUnique(\$slug, \$separator = '" . $this->getParameter('separator') ."', \$increment = 0) -{ - \$slug2 = empty(\$increment) ? \$slug : \$slug . \$separator . \$increment; - \$slugAlreadyExists = " . $this->builder->getStubQueryBuilder()->getClassname() . "::create() - ->filterBySlug(\$slug2) - ->prune(\$this)"; - // watch out: some of the columns may be hidden by the soft_delete behavior - if ($this->table->hasBehavior('soft_delete')) { - $script .= " - ->includeDeleted()"; - } - $script .= " - ->count(); - if (\$slugAlreadyExists) { - return \$this->makeSlugUnique(\$slug, \$separator, ++\$increment); - } else { - return \$slug2; - } -} -"; - } - - public function queryMethods($builder) - { - $this->builder = $builder; - $script = ''; - if ($this->getParameter('slug_column') != 'slug') { - $this->addFilterBySlug($script); - } - $this->addFindOneBySlug($script); - - return $script; - } - - protected function addFilterBySlug(&$script) - { - $script .= " -/** - * Filter the query on the slug column - * - * @param string \$slug The value to use as filter. - * - * @return " . $this->builder->getStubQueryBuilder()->getClassname() . " The current query, for fluid interface - */ -public function filterBySlug(\$slug) -{ - return \$this->addUsingAlias(" . $this->builder->getColumnConstant($this->getColumnForParameter('slug_column')) . ", \$slug, Criteria::EQUAL); -} -"; - } - - protected function addFindOneBySlug(&$script) - { - $script .= " -/** - * Find one object based on its slug - * - * @param string \$slug The value to use as filter. - * @param PropelPDO \$con The optional connection object - * - * @return " . $this->builder->getStubObjectBuilder()->getClassname() . " the result, formatted by the current formatter - */ -public function findOneBySlug(\$slug, \$con = null) -{ - return \$this->filterBySlug(\$slug)->findOne(\$con); -} -"; - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/behavior/sortable/SortableBehavior.php b/airtime_mvc/library/propel/generator/lib/behavior/sortable/SortableBehavior.php deleted file mode 100644 index 3fe78cb9cf..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/sortable/SortableBehavior.php +++ /dev/null @@ -1,83 +0,0 @@ - 'sortable_rank', - 'use_scope' => 'false', - 'scope_column' => 'sortable_scope', - ); - - protected $objectBuilderModifier, $queryBuilderModifier, $peerBuilderModifier; - - /** - * Add the rank_column to the current table - */ - public function modifyTable() - { - if (!$this->getTable()->containsColumn($this->getParameter('rank_column'))) { - $this->getTable()->addColumn(array( - 'name' => $this->getParameter('rank_column'), - 'type' => 'INTEGER' - )); - } - if ($this->getParameter('use_scope') == 'true' && - !$this->getTable()->containsColumn($this->getParameter('scope_column'))) { - $this->getTable()->addColumn(array( - 'name' => $this->getParameter('scope_column'), - 'type' => 'INTEGER' - )); - } - } - - public function getObjectBuilderModifier() - { - if (is_null($this->objectBuilderModifier)) { - $this->objectBuilderModifier = new SortableBehaviorObjectBuilderModifier($this); - } - return $this->objectBuilderModifier; - } - - public function getQueryBuilderModifier() - { - if (is_null($this->queryBuilderModifier)) { - $this->queryBuilderModifier = new SortableBehaviorQueryBuilderModifier($this); - } - return $this->queryBuilderModifier; - } - - public function getPeerBuilderModifier() - { - if (is_null($this->peerBuilderModifier)) { - $this->peerBuilderModifier = new SortableBehaviorPeerBuilderModifier($this); - } - return $this->peerBuilderModifier; - } - - public function useScope() - { - return $this->getParameter('use_scope') == 'true'; - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/behavior/sortable/SortableBehaviorObjectBuilderModifier.php b/airtime_mvc/library/propel/generator/lib/behavior/sortable/SortableBehaviorObjectBuilderModifier.php deleted file mode 100644 index a59d28b0ea..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/sortable/SortableBehaviorObjectBuilderModifier.php +++ /dev/null @@ -1,636 +0,0 @@ - - * @package propel.generator.behavior.sortable - */ -class SortableBehaviorObjectBuilderModifier -{ - protected $behavior, $table, $builder, $objectClassname, $peerClassname; - - public function __construct($behavior) - { - $this->behavior = $behavior; - $this->table = $behavior->getTable(); - } - - protected function getParameter($key) - { - return $this->behavior->getParameter($key); - } - - protected function getColumnAttribute($name) - { - return strtolower($this->behavior->getColumnForParameter($name)->getName()); - } - - protected function getColumnPhpName($name) - { - return $this->behavior->getColumnForParameter($name)->getPhpName(); - } - - protected function setBuilder($builder) - { - $this->builder = $builder; - $this->objectClassname = $builder->getStubObjectBuilder()->getClassname(); - $this->queryClassname = $builder->getStubQueryBuilder()->getClassname(); - $this->peerClassname = $builder->getStubPeerBuilder()->getClassname(); - } - - /** - * Get the getter of the column of the behavior - * - * @return string The related getter, e.g. 'getRank' - */ - protected function getColumnGetter($columnName = 'rank_column') - { - return 'get' . $this->behavior->getColumnForParameter($columnName)->getPhpName(); - } - - /** - * Get the setter of the column of the behavior - * - * @return string The related setter, e.g. 'setRank' - */ - protected function getColumnSetter($columnName = 'rank_column') - { - return 'set' . $this->behavior->getColumnForParameter($columnName)->getPhpName(); - } - - public function preSave($builder) - { - return "\$this->processSortableQueries(\$con);"; - } - - public function preInsert($builder) - { - $useScope = $this->behavior->useScope(); - $this->setBuilder($builder); - return "if (!\$this->isColumnModified({$this->peerClassname}::RANK_COL)) { - \$this->{$this->getColumnSetter()}({$this->queryClassname}::create()->getMaxRank(" . ($useScope ? "\$this->{$this->getColumnGetter('scope_column')}(), " : '') . "\$con) + 1); -} -"; - } - - public function preDelete($builder) - { - $useScope = $this->behavior->useScope(); - $this->setBuilder($builder); - return " -{$this->peerClassname}::shiftRank(-1, \$this->{$this->getColumnGetter()}() + 1, null, " . ($useScope ? "\$this->{$this->getColumnGetter('scope_column')}(), " : '') . "\$con); -{$this->peerClassname}::clearInstancePool(); -"; - } - - public function objectAttributes($builder) - { - return " -/** - * Queries to be executed in the save transaction - * @var array - */ -protected \$sortableQueries = array(); -"; - } - - public function objectMethods($builder) - { - $this->setBuilder($builder); - $script = ''; - if ($this->getParameter('rank_column') != 'rank') { - $this->addRankAccessors($script); - } - if ($this->behavior->useScope() && - $this->getParameter('scope_column') != 'scope_value') { - $this->addScopeAccessors($script); - } - $this->addIsFirst($script); - $this->addIsLast($script); - $this->addGetNext($script); - $this->addGetPrevious($script); - $this->addInsertAtRank($script); - $this->addInsertAtBottom($script); - $this->addInsertAtTop($script); - $this->addMoveToRank($script); - $this->addSwapWith($script); - $this->addMoveUp($script); - $this->addMoveDown($script); - $this->addMoveToTop($script); - $this->addMoveToBottom($script); - $this->addRemoveFromList($script); - $this->addProcessSortableQueries($script); - - return $script; - } - - /** - * Get the wraps for getter/setter, if the rank column has not the default name - * - * @return string - */ - protected function addRankAccessors(&$script) - { - $script .= " -/** - * Wrap the getter for rank value - * - * @return int - */ -public function getRank() -{ - return \$this->{$this->getColumnAttribute('rank_column')}; -} - -/** - * Wrap the setter for rank value - * - * @param int - * @return {$this->objectClassname} - */ -public function setRank(\$v) -{ - return \$this->{$this->getColumnSetter()}(\$v); -} -"; - } - - /** - * Get the wraps for getter/setter, if the scope column has not the default name - * - * @return string - */ - protected function addScopeAccessors(&$script) - { - $script .= " -/** - * Wrap the getter for scope value - * - * @return int - */ -public function getScopeValue() -{ - return \$this->{$this->getColumnAttribute('scope_column')}; -} - -/** - * Wrap the setter for scope value - * - * @param int - * @return {$this->objectClassname} - */ -public function setScopeValue(\$v) -{ - return \$this->{$this->getColumnSetter('scope_column')}(\$v); -} -"; - } - - protected function addIsFirst(&$script) - { - $script .= " -/** - * Check if the object is first in the list, i.e. if it has 1 for rank - * - * @return boolean - */ -public function isFirst() -{ - return \$this->{$this->getColumnGetter()}() == 1; -} -"; - } - - protected function addIsLast(&$script) - { - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Check if the object is last in the list, i.e. if its rank is the highest rank - * - * @param PropelPDO \$con optional connection - * - * @return boolean - */ -public function isLast(PropelPDO \$con = null) -{ - return \$this->{$this->getColumnGetter()}() == {$this->queryClassname}::create()->getMaxRank(" . ($useScope ? "\$this->{$this->getColumnGetter('scope_column')}(), " : '') . "\$con); -} -"; - } - - protected function addGetNext(&$script) - { - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Get the next item in the list, i.e. the one for which rank is immediately higher - * - * @param PropelPDO \$con optional connection - * - * @return {$this->objectClassname} - */ -public function getNext(PropelPDO \$con = null) -{"; - if ($this->behavior->getParameter('rank_column') == 'rank' && $useScope) { - $script .= " - return {$this->queryClassname}::create() - ->filterByRank(\$this->{$this->getColumnGetter()}() + 1) - ->inList(\$this->{$this->getColumnGetter('scope_column')}()) - ->findOne(\$con);"; - } else { - $script .= " - return {$this->queryClassname}::create()->findOneByRank(\$this->{$this->getColumnGetter()}() + 1, " . ($useScope ? "\$this->{$this->getColumnGetter('scope_column')}(), " : '') . "\$con);"; - } - - $script .= " -} -"; - } - - protected function addGetPrevious(&$script) - { - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Get the previous item in the list, i.e. the one for which rank is immediately lower - * - * @param PropelPDO \$con optional connection - * - * @return {$this->objectClassname} - */ -public function getPrevious(PropelPDO \$con = null) -{"; - if ($this->behavior->getParameter('rank_column') == 'rank' && $useScope) { - $script .= " - return {$this->queryClassname}::create() - ->filterByRank(\$this->{$this->getColumnGetter()}() - 1) - ->inList(\$this->{$this->getColumnGetter('scope_column')}()) - ->findOne(\$con);"; - } else { - $script .= " - return {$this->queryClassname}::create()->findOneByRank(\$this->{$this->getColumnGetter()}() - 1, " . ($useScope ? "\$this->{$this->getColumnGetter('scope_column')}(), " : '') . "\$con);"; - } - $script .= " -} -"; - } - - protected function addInsertAtRank(&$script) - { - $useScope = $this->behavior->useScope(); - $peerClassname = $this->peerClassname; - $script .= " -/** - * Insert at specified rank - * The modifications are not persisted until the object is saved. - * - * @param integer \$rank rank value - * @param PropelPDO \$con optional connection - * - * @return {$this->objectClassname} the current object - * - * @throws PropelException - */ -public function insertAtRank(\$rank, PropelPDO \$con = null) -{"; - if ($useScope) { - $script .= " - if (null === \$this->{$this->getColumnGetter('scope_column')}()) { - throw new PropelException('The scope must be defined before inserting an object in a suite'); - }"; - } - $script .= " - \$maxRank = {$this->queryClassname}::create()->getMaxRank(" . ($useScope ? "\$this->{$this->getColumnGetter('scope_column')}(), " : '') . "\$con); - if (\$rank < 1 || \$rank > \$maxRank + 1) { - throw new PropelException('Invalid rank ' . \$rank); - } - // move the object in the list, at the given rank - \$this->{$this->getColumnSetter()}(\$rank); - if (\$rank != \$maxRank + 1) { - // Keep the list modification query for the save() transaction - \$this->sortableQueries []= array( - 'callable' => array('$peerClassname', 'shiftRank'), - 'arguments' => array(1, \$rank, null, " . ($useScope ? "\$this->{$this->getColumnGetter('scope_column')}()" : '') . ") - ); - } - - return \$this; -} -"; - } - - protected function addInsertAtBottom(&$script) - { - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Insert in the last rank - * The modifications are not persisted until the object is saved. - * - * @param PropelPDO \$con optional connection - * - * @return {$this->objectClassname} the current object - * - * @throws PropelException - */ -public function insertAtBottom(PropelPDO \$con = null) -{"; - if ($useScope) { - $script .= " - if (null === \$this->{$this->getColumnGetter('scope_column')}()) { - throw new PropelException('The scope must be defined before inserting an object in a suite'); - }"; - } - $script .= " - \$this->{$this->getColumnSetter()}({$this->queryClassname}::create()->getMaxRank(" . ($useScope ? "\$this->{$this->getColumnGetter('scope_column')}(), " : '') . "\$con) + 1); - - return \$this; -} -"; - } - - protected function addInsertAtTop(&$script) - { - $script .= " -/** - * Insert in the first rank - * The modifications are not persisted until the object is saved. - * - * @return {$this->objectClassname} the current object - */ -public function insertAtTop() -{ - return \$this->insertAtRank(1); -} -"; - } - - protected function addMoveToRank(&$script) - { - $useScope = $this->behavior->useScope(); - $peerClassname = $this->peerClassname; - $script .= " -/** - * Move the object to a new rank, and shifts the rank - * Of the objects inbetween the old and new rank accordingly - * - * @param integer \$newRank rank value - * @param PropelPDO \$con optional connection - * - * @return {$this->objectClassname} the current object - * - * @throws PropelException - */ -public function moveToRank(\$newRank, PropelPDO \$con = null) -{ - if (\$this->isNew()) { - throw new PropelException('New objects cannot be moved. Please use insertAtRank() instead'); - } - if (\$con === null) { - \$con = Propel::getConnection($peerClassname::DATABASE_NAME); - } - if (\$newRank < 1 || \$newRank > {$this->queryClassname}::create()->getMaxRank(" . ($useScope ? "\$this->{$this->getColumnGetter('scope_column')}(), " : '') . "\$con)) { - throw new PropelException('Invalid rank ' . \$newRank); - } - - \$oldRank = \$this->{$this->getColumnGetter()}(); - if (\$oldRank == \$newRank) { - return \$this; - } - - \$con->beginTransaction(); - try { - // shift the objects between the old and the new rank - \$delta = (\$oldRank < \$newRank) ? -1 : 1; - $peerClassname::shiftRank(\$delta, min(\$oldRank, \$newRank), max(\$oldRank, \$newRank), " . ($useScope ? "\$this->{$this->getColumnGetter('scope_column')}(), " : '') . "\$con); - - // move the object to its new rank - \$this->{$this->getColumnSetter()}(\$newRank); - \$this->save(\$con); - - \$con->commit(); - return \$this; - } catch (Exception \$e) { - \$con->rollback(); - throw \$e; - } -} -"; - } - - protected function addSwapWith(&$script) - { - $script .= " -/** - * Exchange the rank of the object with the one passed as argument, and saves both objects - * - * @param {$this->objectClassname} \$object - * @param PropelPDO \$con optional connection - * - * @return {$this->objectClassname} the current object - * - * @throws Exception if the database cannot execute the two updates - */ -public function swapWith(\$object, PropelPDO \$con = null) -{ - if (\$con === null) { - \$con = Propel::getConnection({$this->peerClassname}::DATABASE_NAME); - } - \$con->beginTransaction(); - try { - \$oldRank = \$this->{$this->getColumnGetter()}(); - \$newRank = \$object->{$this->getColumnGetter()}(); - \$this->{$this->getColumnSetter()}(\$newRank); - \$this->save(\$con); - \$object->{$this->getColumnSetter()}(\$oldRank); - \$object->save(\$con); - \$con->commit(); - - return \$this; - } catch (Exception \$e) { - \$con->rollback(); - throw \$e; - } -} -"; - } - - protected function addMoveUp(&$script) - { - $script .= " -/** - * Move the object higher in the list, i.e. exchanges its rank with the one of the previous object - * - * @param PropelPDO \$con optional connection - * - * @return {$this->objectClassname} the current object - */ -public function moveUp(PropelPDO \$con = null) -{ - if (\$this->isFirst()) { - return \$this; - } - if (\$con === null) { - \$con = Propel::getConnection({$this->peerClassname}::DATABASE_NAME); - } - \$con->beginTransaction(); - try { - \$prev = \$this->getPrevious(\$con); - \$this->swapWith(\$prev, \$con); - \$con->commit(); - - return \$this; - } catch (Exception \$e) { - \$con->rollback(); - throw \$e; - } -} -"; - } - - protected function addMoveDown(&$script) - { - $script .= " -/** - * Move the object higher in the list, i.e. exchanges its rank with the one of the next object - * - * @param PropelPDO \$con optional connection - * - * @return {$this->objectClassname} the current object - */ -public function moveDown(PropelPDO \$con = null) -{ - if (\$this->isLast(\$con)) { - return \$this; - } - if (\$con === null) { - \$con = Propel::getConnection({$this->peerClassname}::DATABASE_NAME); - } - \$con->beginTransaction(); - try { - \$next = \$this->getNext(\$con); - \$this->swapWith(\$next, \$con); - \$con->commit(); - - return \$this; - } catch (Exception \$e) { - \$con->rollback(); - throw \$e; - } -} -"; - } - - protected function addMoveToTop(&$script) - { - $script .= " -/** - * Move the object to the top of the list - * - * @param PropelPDO \$con optional connection - * - * @return {$this->objectClassname} the current object - */ -public function moveToTop(PropelPDO \$con = null) -{ - if (\$this->isFirst()) { - return \$this; - } - return \$this->moveToRank(1, \$con); -} -"; - } - - protected function addMoveToBottom(&$script) - { - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Move the object to the bottom of the list - * - * @param PropelPDO \$con optional connection - * - * @return integer the old object's rank - */ -public function moveToBottom(PropelPDO \$con = null) -{ - if (\$this->isLast(\$con)) { - return false; - } - if (\$con === null) { - \$con = Propel::getConnection({$this->peerClassname}::DATABASE_NAME); - } - \$con->beginTransaction(); - try { - \$bottom = {$this->queryClassname}::create()->getMaxRank(" . ($useScope ? "\$this->{$this->getColumnGetter('scope_column')}(), " : '') . "\$con); - \$res = \$this->moveToRank(\$bottom, \$con); - \$con->commit(); - - return \$res; - } catch (Exception \$e) { - \$con->rollback(); - throw \$e; - } -} -"; - } - - protected function addRemoveFromList(&$script) - { - $useScope = $this->behavior->useScope(); - $peerClassname = $this->peerClassname; - $script .= " -/** - * Removes the current object from the list. - * The modifications are not persisted until the object is saved. - * - * @return {$this->objectClassname} the current object - */ -public function removeFromList() -{ - // Keep the list modification query for the save() transaction - \$this->sortableQueries []= array( - 'callable' => array('$peerClassname', 'shiftRank'), - 'arguments' => array(-1, \$this->{$this->getColumnGetter()}() + 1, null" . ($useScope ? ", \$this->{$this->getColumnGetter('scope_column')}()" : '') . ") - ); - // remove the object from the list - \$this->{$this->getColumnSetter('rank_column')}(null);"; - if ($useScope) { - $script .= " - \$this->{$this->getColumnSetter('scope_column')}(null);"; - } - $script .= " - - return \$this; -} -"; - } - - protected function addProcessSortableQueries(&$script) - { - $script .= " -/** - * Execute queries that were saved to be run inside the save transaction - */ -protected function processSortableQueries(\$con) -{ - foreach (\$this->sortableQueries as \$query) { - \$query['arguments'][]= \$con; - call_user_func_array(\$query['callable'], \$query['arguments']); - } - \$this->sortableQueries = array(); -} -"; - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/sortable/SortableBehaviorPeerBuilderModifier.php b/airtime_mvc/library/propel/generator/lib/behavior/sortable/SortableBehaviorPeerBuilderModifier.php deleted file mode 100644 index bb2b687ff4..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/sortable/SortableBehaviorPeerBuilderModifier.php +++ /dev/null @@ -1,367 +0,0 @@ - - * @package propel.generator.behavior.sortable - */ -class SortableBehaviorPeerBuilderModifier -{ - protected $behavior, $table, $builder, $objectClassname, $peerClassname; - - public function __construct($behavior) - { - $this->behavior = $behavior; - $this->table = $behavior->getTable(); - } - - protected function getParameter($key) - { - return $this->behavior->getParameter($key); - } - - protected function getColumnAttribute($name) - { - return strtolower($this->behavior->getColumnForParameter($name)->getName()); - } - - protected function getColumnConstant($name) - { - return strtoupper($this->behavior->getColumnForParameter($name)->getName()); - } - - protected function getColumnPhpName($name) - { - return $this->behavior->getColumnForParameter($name)->getPhpName(); - } - - protected function setBuilder($builder) - { - $this->builder = $builder; - $this->objectClassname = $builder->getStubObjectBuilder()->getClassname(); - $this->peerClassname = $builder->getStubPeerBuilder()->getClassname(); - } - - public function staticAttributes($builder) - { - $tableName = $this->table->getName(); - $script = " -/** - * rank column - */ -const RANK_COL = '" . $tableName . '.' . $this->getColumnConstant('rank_column') . "'; -"; - - if ($this->behavior->useScope()) { - $script .= " -/** - * Scope column for the set - */ -const SCOPE_COL = '" . $tableName . '.' . $this->getColumnConstant('scope_column') . "'; -"; - } - - return $script; - } - - /** - * Static methods - * - * @return string - */ - public function staticMethods($builder) - { - $this->setBuilder($builder); - $script = ''; - - $this->addGetMaxRank($script); - $this->addRetrieveByRank($script); - $this->addReorder($script); - $this->addDoSelectOrderByRank($script); - if ($this->behavior->useScope()) { - $this->addRetrieveList($script); - $this->addCountList($script); - $this->addDeleteList($script); - } - $this->addShiftRank($script); - - return $script; - } - - protected function addGetMaxRank(&$script) - { - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Get the highest rank - * "; - if($useScope) { - $script .= " - * @param int \$scope Scope to determine which suite to consider"; - } - $script .= " - * @param PropelPDO optional connection - * - * @return integer highest position - */ -public static function getMaxRank(" . ($useScope ? "\$scope = null, " : "") . "PropelPDO \$con = null) -{ - if (\$con === null) { - \$con = Propel::getConnection({$this->peerClassname}::DATABASE_NAME); - } - // shift the objects with a position lower than the one of object - \$c = new Criteria(); - \$c->addSelectColumn('MAX(' . {$this->peerClassname}::RANK_COL . ')');"; - if ($useScope) { - $script .= " - \$c->add({$this->peerClassname}::SCOPE_COL, \$scope, Criteria::EQUAL);"; - } - $script .= " - \$stmt = {$this->peerClassname}::doSelectStmt(\$c, \$con); - - return \$stmt->fetchColumn(); -} -"; - } - - protected function addRetrieveByRank(&$script) - { - $peerClassname = $this->peerClassname; - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Get an item from the list based on its rank - * - * @param integer \$rank rank"; - if($useScope) { - $script .= " - * @param int \$scope Scope to determine which suite to consider"; - } - $script .= " - * @param PropelPDO \$con optional connection - * - * @return {$this->objectClassname} - */ -public static function retrieveByRank(\$rank, " . ($useScope ? "\$scope = null, " : "") . "PropelPDO \$con = null) -{ - if (\$con === null) { - \$con = Propel::getConnection($peerClassname::DATABASE_NAME); - } - - \$c = new Criteria; - \$c->add($peerClassname::RANK_COL, \$rank);"; - if($useScope) { - $script .= " - \$c->add($peerClassname::SCOPE_COL, \$scope, Criteria::EQUAL);"; - } - $script .= " - - return $peerClassname::doSelectOne(\$c, \$con); -} -"; - } - - protected function addReorder(&$script) - { - $peerClassname = $this->peerClassname; - $columnGetter = 'get' . $this->behavior->getColumnForParameter('rank_column')->getPhpName(); - $columnSetter = 'set' . $this->behavior->getColumnForParameter('rank_column')->getPhpName(); - $script .= " -/** - * Reorder a set of sortable objects based on a list of id/position - * Beware that there is no check made on the positions passed - * So incoherent positions will result in an incoherent list - * - * @param array \$order id => rank pairs - * @param PropelPDO \$con optional connection - * - * @return boolean true if the reordering took place, false if a database problem prevented it - */ -public static function reorder(array \$order, PropelPDO \$con = null) -{ - if (\$con === null) { - \$con = Propel::getConnection($peerClassname::DATABASE_NAME); - } - - \$con->beginTransaction(); - try { - \$ids = array_keys(\$order); - \$objects = $peerClassname::retrieveByPKs(\$ids); - foreach (\$objects as \$object) { - \$pk = \$object->getPrimaryKey(); - if (\$object->$columnGetter() != \$order[\$pk]) { - \$object->$columnSetter(\$order[\$pk]); - \$object->save(\$con); - } - } - \$con->commit(); - - return true; - } catch (PropelException \$e) { - \$con->rollback(); - throw \$e; - } -} -"; - } - - protected function addDoSelectOrderByRank(&$script) - { - $peerClassname = $this->peerClassname; - $script .= " -/** - * Return an array of sortable objects ordered by position - * - * @param Criteria \$criteria optional criteria object - * @param string \$order sorting order, to be chosen between Criteria::ASC (default) and Criteria::DESC - * @param PropelPDO \$con optional connection - * - * @return array list of sortable objects - */ -public static function doSelectOrderByRank(Criteria \$criteria = null, \$order = Criteria::ASC, PropelPDO \$con = null) -{ - if (\$con === null) { - \$con = Propel::getConnection($peerClassname::DATABASE_NAME); - } - - if (\$criteria === null) { - \$criteria = new Criteria(); - } elseif (\$criteria instanceof Criteria) { - \$criteria = clone \$criteria; - } - - \$criteria->clearOrderByColumns(); - - if (\$order == Criteria::ASC) { - \$criteria->addAscendingOrderByColumn($peerClassname::RANK_COL); - } else { - \$criteria->addDescendingOrderByColumn($peerClassname::RANK_COL); - } - - return $peerClassname::doSelect(\$criteria, \$con); -} -"; - } - - protected function addRetrieveList(&$script) - { - $peerClassname = $this->peerClassname; - $script .= " -/** - * Return an array of sortable objects in the given scope ordered by position - * - * @param int \$scope the scope of the list - * @param string \$order sorting order, to be chosen between Criteria::ASC (default) and Criteria::DESC - * @param PropelPDO \$con optional connection - * - * @return array list of sortable objects - */ -public static function retrieveList(\$scope, \$order = Criteria::ASC, PropelPDO \$con = null) -{ - \$c = new Criteria(); - \$c->add($peerClassname::SCOPE_COL, \$scope); - - return $peerClassname::doSelectOrderByRank(\$c, \$order, \$con); -} -"; - } - - protected function addCountList(&$script) - { - $peerClassname = $this->peerClassname; - $script .= " -/** - * Return the number of sortable objects in the given scope - * - * @param int \$scope the scope of the list - * @param PropelPDO \$con optional connection - * - * @return array list of sortable objects - */ -public static function countList(\$scope, PropelPDO \$con = null) -{ - \$c = new Criteria(); - \$c->add($peerClassname::SCOPE_COL, \$scope); - - return $peerClassname::doCount(\$c, \$con); -} -"; - } - - protected function addDeleteList(&$script) - { - $peerClassname = $this->peerClassname; - $script .= " -/** - * Deletes the sortable objects in the given scope - * - * @param int \$scope the scope of the list - * @param PropelPDO \$con optional connection - * - * @return int number of deleted objects - */ -public static function deleteList(\$scope, PropelPDO \$con = null) -{ - \$c = new Criteria(); - \$c->add($peerClassname::SCOPE_COL, \$scope); - - return $peerClassname::doDelete(\$c, \$con); -} -"; - } - protected function addShiftRank(&$script) - { - $useScope = $this->behavior->useScope(); - $peerClassname = $this->peerClassname; - $script .= " -/** - * Adds \$delta to all Rank values that are >= \$first and <= \$last. - * '\$delta' can also be negative. - * - * @param int \$delta Value to be shifted by, can be negative - * @param int \$first First node to be shifted - * @param int \$last Last node to be shifted"; - if($useScope) { - $script .= " - * @param int \$scope Scope to use for the shift"; - } - $script .= " - * @param PropelPDO \$con Connection to use. - */ -public static function shiftRank(\$delta, \$first, \$last = null, " . ($useScope ? "\$scope = null, " : "") . "PropelPDO \$con = null) -{ - if (\$con === null) { - \$con = Propel::getConnection($peerClassname::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - \$whereCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$criterion = \$whereCriteria->getNewCriterion($peerClassname::RANK_COL, \$first, Criteria::GREATER_EQUAL); - if (null !== \$last) { - \$criterion->addAnd(\$whereCriteria->getNewCriterion($peerClassname::RANK_COL, \$last, Criteria::LESS_EQUAL)); - } - \$whereCriteria->add(\$criterion);"; - if ($useScope) { - $script .= " - \$whereCriteria->add($peerClassname::SCOPE_COL, \$scope, Criteria::EQUAL);"; - } - $script .= " - - \$valuesCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$valuesCriteria->add($peerClassname::RANK_COL, array('raw' => $peerClassname::RANK_COL . ' + ?', 'value' => \$delta), Criteria::CUSTOM_EQUAL); - - {$this->builder->getPeerBuilder()->getBasePeerClassname()}::doUpdate(\$whereCriteria, \$valuesCriteria, \$con); - $peerClassname::clearInstancePool(); -} -"; - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/behavior/sortable/SortableBehaviorQueryBuilderModifier.php b/airtime_mvc/library/propel/generator/lib/behavior/sortable/SortableBehaviorQueryBuilderModifier.php deleted file mode 100644 index 5e469ca326..0000000000 --- a/airtime_mvc/library/propel/generator/lib/behavior/sortable/SortableBehaviorQueryBuilderModifier.php +++ /dev/null @@ -1,283 +0,0 @@ -behavior = $behavior; - $this->table = $behavior->getTable(); - } - - protected function getParameter($key) - { - return $this->behavior->getParameter($key); - } - - protected function getColumn($name) - { - return $this->behavior->getColumnForParameter($name); - } - - protected function setBuilder($builder) - { - $this->builder = $builder; - $this->objectClassname = $builder->getStubObjectBuilder()->getClassname(); - $this->queryClassname = $builder->getStubQueryBuilder()->getClassname(); - $this->peerClassname = $builder->getStubPeerBuilder()->getClassname(); - } - - public function queryMethods($builder) - { - $this->setBuilder($builder); - $script = ''; - - // select filters - if ($this->behavior->useScope()) { - $this->addInList($script); - } - if ($this->getParameter('rank_column') != 'rank') { - $this->addFilterByRank($script); - $this->addOrderByRank($script); - } - - // select termination methods - if ($this->getParameter('rank_column') != 'rank') { - $this->addFindOneByRank($script); - } - $this->addFindList($script); - - // utilities - $this->addGetMaxRank($script); - $this->addReorder($script); - - return $script; - } - - protected function addInList(&$script) - { - $script .= " -/** - * Returns the objects in a certain list, from the list scope - * - * @param int \$scope Scope to determine which objects node to return - * - * @return {$this->queryClassname} The current query, for fuid interface - */ -public function inList(\$scope = null) -{ - return \$this->addUsingAlias({$this->peerClassname}::SCOPE_COL, \$scope, Criteria::EQUAL); -} -"; - } - - protected function addFilterByRank(&$script) - { - $useScope = $this->behavior->useScope(); - $peerClassname = $this->peerClassname; - $script .= " -/** - * Filter the query based on a rank in the list - * - * @param integer \$rank rank"; - if($useScope) { - $script .= " - * @param int \$scope Scope to determine which suite to consider"; - } - $script .= " - * - * @return " . $this->queryClassname . " The current query, for fluid interface - */ -public function filterByRank(\$rank" . ($useScope ? ", \$scope = null" : "") . ") -{ - return \$this"; - if ($useScope) { - $script .= " - ->inList(\$scope)"; - } - $script .= " - ->addUsingAlias($peerClassname::RANK_COL, \$rank, Criteria::EQUAL); -} -"; - } - - protected function addOrderByRank(&$script) - { - $script .= " -/** - * Order the query based on the rank in the list. - * Using the default \$order, returns the item with the lowest rank first - * - * @param string \$order either Criteria::ASC (default) or Criteria::DESC - * - * @return " . $this->queryClassname . " The current query, for fluid interface - */ -public function orderByRank(\$order = Criteria::ASC) -{ - \$order = strtoupper(\$order); - switch (\$order) { - case Criteria::ASC: - return \$this->addAscendingOrderByColumn(\$this->getAliasedColName(" . $this->peerClassname . "::RANK_COL)); - break; - case Criteria::DESC: - return \$this->addDescendingOrderByColumn(\$this->getAliasedColName(" . $this->peerClassname . "::RANK_COL)); - break; - default: - throw new PropelException('" . $this->queryClassname . "::orderBy() only accepts \"asc\" or \"desc\" as argument'); - } -} -"; - } - - protected function addFindOneByRank(&$script) - { - $useScope = $this->behavior->useScope(); - $peerClassname = $this->peerClassname; - $script .= " -/** - * Get an item from the list based on its rank - * - * @param integer \$rank rank"; - if($useScope) { - $script .= " - * @param int \$scope Scope to determine which suite to consider"; - } - $script .= " - * @param PropelPDO \$con optional connection - * - * @return {$this->objectClassname} - */ -public function findOneByRank(\$rank, " . ($useScope ? "\$scope = null, " : "") . "PropelPDO \$con = null) -{ - return \$this - ->filterByRank(\$rank" . ($useScope ? ", \$scope" : "") . ") - ->findOne(\$con); -} -"; - } - - protected function addFindList(&$script) - { - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Returns " . ($useScope ? 'a' : 'the') ." list of objects - *"; - if($useScope) { - $script .= " - * @param int \$scope Scope to determine which list to return"; - } - $script .= " - * @param PropelPDO \$con Connection to use. - * - * @return mixed the list of results, formatted by the current formatter - */ -public function findList(" . ($useScope ? "\$scope = null, " : "") . "\$con = null) -{ - return \$this"; - if ($useScope) { - $script .= " - ->inList(\$scope)"; - } - $script .= " - ->orderByRank() - ->find(\$con); -} -"; - } - - protected function addGetMaxRank(&$script) - { - $useScope = $this->behavior->useScope(); - $script .= " -/** - * Get the highest rank - * "; - if($useScope) { - $script .= " - * @param int \$scope Scope to determine which suite to consider"; - } - $script .= " - * @param PropelPDO optional connection - * - * @return integer highest position - */ -public function getMaxRank(" . ($useScope ? "\$scope = null, " : "") . "PropelPDO \$con = null) -{ - if (\$con === null) { - \$con = Propel::getConnection({$this->peerClassname}::DATABASE_NAME); - } - // shift the objects with a position lower than the one of object - \$this->addSelectColumn('MAX(' . {$this->peerClassname}::RANK_COL . ')');"; - if ($useScope) { - $script .= " - \$this->add({$this->peerClassname}::SCOPE_COL, \$scope, Criteria::EQUAL);"; - } - $script .= " - \$stmt = \$this->getSelectStatement(\$con); - - return \$stmt->fetchColumn(); -} -"; - } - - protected function addReorder(&$script) - { - $peerClassname = $this->peerClassname; - $columnGetter = 'get' . $this->behavior->getColumnForParameter('rank_column')->getPhpName(); - $columnSetter = 'set' . $this->behavior->getColumnForParameter('rank_column')->getPhpName(); - $script .= " -/** - * Reorder a set of sortable objects based on a list of id/position - * Beware that there is no check made on the positions passed - * So incoherent positions will result in an incoherent list - * - * @param array \$order id => rank pairs - * @param PropelPDO \$con optional connection - * - * @return boolean true if the reordering took place, false if a database problem prevented it - */ -public function reorder(array \$order, PropelPDO \$con = null) -{ - if (\$con === null) { - \$con = Propel::getConnection($peerClassname::DATABASE_NAME); - } - - \$con->beginTransaction(); - try { - \$ids = array_keys(\$order); - \$objects = \$this->findPks(\$ids, \$con); - foreach (\$objects as \$object) { - \$pk = \$object->getPrimaryKey(); - if (\$object->$columnGetter() != \$order[\$pk]) { - \$object->$columnSetter(\$order[\$pk]); - \$object->save(\$con); - } - } - \$con->commit(); - - return true; - } catch (PropelException \$e) { - \$con->rollback(); - throw \$e; - } -} -"; - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/builder/DataModelBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/DataModelBuilder.php deleted file mode 100644 index 605f0d5d1a..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/DataModelBuilder.php +++ /dev/null @@ -1,607 +0,0 @@ - - * @package propel.generator.builder - */ -abstract class DataModelBuilder -{ - - /** - * The current table. - * @var Table - */ - private $table; - - /** - * The generator config object holding build properties, etc. - * - * @var GeneratorConfig - */ - private $generatorConfig; - - /** - * An array of warning messages that can be retrieved for display (e.g. as part of phing build process). - * @var array string[] - */ - private $warnings = array(); - - /** - * Peer builder class for current table. - * @var DataModelBuilder - */ - private $peerBuilder; - - /** - * Stub Peer builder class for current table. - * @var DataModelBuilder - */ - private $stubPeerBuilder; - - /** - * Object builder class for current table. - * @var DataModelBuilder - */ - private $objectBuilder; - - /** - * Stub Object builder class for current table. - * @var DataModelBuilder - */ - private $stubObjectBuilder; - - /** - * Query builder class for current table. - * @var DataModelBuilder - */ - private $queryBuilder; - - /** - * Stub Query builder class for current table. - * @var DataModelBuilder - */ - private $stubQueryBuilder; - - /** - * TableMap builder class for current table. - * @var DataModelBuilder - */ - protected $tablemapBuilder; - - /** - * Stub Interface builder class for current table. - * @var DataModelBuilder - */ - private $interfaceBuilder; - - /** - * Stub child object for current table. - * @var DataModelBuilder - */ - private $multiExtendObjectBuilder; - - /** - * Node object builder for current table. - * @var DataModelBuilder - */ - private $nodeBuilder; - - /** - * Node peer builder for current table. - * @var DataModelBuilder - */ - private $nodePeerBuilder; - - /** - * Stub node object builder for current table. - * @var DataModelBuilder - */ - private $stubNodeBuilder; - - /** - * Stub node peer builder for current table. - * @var DataModelBuilder - */ - private $stubNodePeerBuilder; - - /** - * NestedSet object builder for current table. - * @var DataModelBuilder - */ - private $nestedSetBuilder; - - /** - * NestedSet peer builder for current table. - * @var DataModelBuilder - */ - private $nestedSetPeerBuilder; - - /** - * The DDL builder for current table. - * @var DDLBuilder - */ - private $ddlBuilder; - - /** - * The Data-SQL builder for current table. - * @var DataSQLBuilder - */ - private $dataSqlBuilder; - - /** - * The Pluralizer class to use. - * @var Pluralizer - */ - private $pluralizer; - - - /** - * Creates new instance of DataModelBuilder subclass. - * @param Table $table The Table which we are using to build [OM, DDL, etc.]. - */ - public function __construct(Table $table) - { - $this->table = $table; - } - - /** - * Returns new or existing Peer builder class for this table. - * @return PeerBuilder - */ - public function getPeerBuilder() - { - if (!isset($this->peerBuilder)) { - $this->peerBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'peer'); - } - return $this->peerBuilder; - } - - /** - * Returns new or existing Pluralizer class. - * @return Pluralizer - */ - public function getPluralizer() - { - if (!isset($this->pluralizer)) { - $this->pluralizer = $this->getGeneratorConfig()->getConfiguredPluralizer(); - } - return $this->pluralizer; - } - - /** - * Returns new or existing stub Peer builder class for this table. - * @return PeerBuilder - */ - public function getStubPeerBuilder() - { - if (!isset($this->stubPeerBuilder)) { - $this->stubPeerBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'peerstub'); - } - return $this->stubPeerBuilder; - } - - /** - * Returns new or existing Object builder class for this table. - * @return ObjectBuilder - */ - public function getObjectBuilder() - { - if (!isset($this->objectBuilder)) { - $this->objectBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'object'); - } - return $this->objectBuilder; - } - - /** - * Returns new or existing stub Object builder class for this table. - * @return ObjectBuilder - */ - public function getStubObjectBuilder() - { - if (!isset($this->stubObjectBuilder)) { - $this->stubObjectBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'objectstub'); - } - return $this->stubObjectBuilder; - } - - /** - * Returns new or existing Query builder class for this table. - * @return ObjectBuilder - */ - public function getQueryBuilder() - { - if (!isset($this->queryBuilder)) { - $this->queryBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'query'); - } - return $this->queryBuilder; - } - - /** - * Returns new or existing stub Query builder class for this table. - * @return ObjectBuilder - */ - public function getStubQueryBuilder() - { - if (!isset($this->stubQueryBuilder)) { - $this->stubQueryBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'querystub'); - } - return $this->stubQueryBuilder; - } - - /** - * Returns new or existing Object builder class for this table. - * @return ObjectBuilder - */ - public function getTableMapBuilder() - { - if (!isset($this->tablemapBuilder)) { - $this->tablemapBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'tablemap'); - } - return $this->tablemapBuilder; - } - - /** - * Returns new or existing stub Interface builder class for this table. - * @return ObjectBuilder - */ - public function getInterfaceBuilder() - { - if (!isset($this->interfaceBuilder)) { - $this->interfaceBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'interface'); - } - return $this->interfaceBuilder; - } - - /** - * Returns new or existing stub child object builder class for this table. - * @return ObjectBuilder - */ - public function getMultiExtendObjectBuilder() - { - if (!isset($this->multiExtendObjectBuilder)) { - $this->multiExtendObjectBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'objectmultiextend'); - } - return $this->multiExtendObjectBuilder; - } - - /** - * Returns new or existing node Object builder class for this table. - * @return ObjectBuilder - */ - public function getNodeBuilder() - { - if (!isset($this->nodeBuilder)) { - $this->nodeBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'node'); - } - return $this->nodeBuilder; - } - - /** - * Returns new or existing node Peer builder class for this table. - * @return PeerBuilder - */ - public function getNodePeerBuilder() - { - if (!isset($this->nodePeerBuilder)) { - $this->nodePeerBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'nodepeer'); - } - return $this->nodePeerBuilder; - } - - /** - * Returns new or existing stub node Object builder class for this table. - * @return ObjectBuilder - */ - public function getStubNodeBuilder() - { - if (!isset($this->stubNodeBuilder)) { - $this->stubNodeBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'nodestub'); - } - return $this->stubNodeBuilder; - } - - /** - * Returns new or existing stub node Peer builder class for this table. - * @return PeerBuilder - */ - public function getStubNodePeerBuilder() - { - if (!isset($this->stubNodePeerBuilder)) { - $this->stubNodePeerBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'nodepeerstub'); - } - return $this->stubNodePeerBuilder; - } - - /** - * Returns new or existing nested set object builder class for this table. - * @return ObjectBuilder - */ - public function getNestedSetBuilder() - { - if (!isset($this->nestedSetBuilder)) { - $this->nestedSetBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'nestedset'); - } - return $this->nestedSetBuilder; - } - - /** - * Returns new or existing nested set Peer builder class for this table. - * @return PeerBuilder - */ - public function getNestedSetPeerBuilder() - { - if (!isset($this->nestedSetPeerBuilder)) { - $this->nestedSetPeerBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'nestedsetpeer'); - } - return $this->nestedSetPeerBuilder; - } - - /** - * Returns new or existing ddl builder class for this table. - * @return DDLBuilder - */ - public function getDDLBuilder() - { - if (!isset($this->ddlBuilder)) { - $this->ddlBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'ddl'); - } - return $this->ddlBuilder; - } - - /** - * Returns new or existing data sql builder class for this table. - * @return DataSQLBuilder - */ - public function getDataSQLBuilder() - { - if (!isset($this->dataSqlBuilder)) { - $this->dataSqlBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'datasql'); - } - return $this->dataSqlBuilder; - } - - /** - * Convenience method to return a NEW Peer class builder instance. - * - * This is used very frequently from the peer and object builders to get - * a peer builder for a RELATED table. - * - * @param Table $table - * @return PeerBuilder - */ - public function getNewPeerBuilder(Table $table) - { - return $this->getGeneratorConfig()->getConfiguredBuilder($table, 'peer'); - } - - /** - * Convenience method to return a NEW Peer stub class builder instance. - * - * This is used from the peer and object builders to get - * a peer builder for a RELATED table. - * - * @param Table $table - * @return PeerBuilder - */ - public function getNewStubPeerBuilder(Table $table) - { - return $this->getGeneratorConfig()->getConfiguredBuilder($table, 'peerstub'); - } - - /** - * Convenience method to return a NEW Object class builder instance. - * - * This is used very frequently from the peer and object builders to get - * an object builder for a RELATED table. - * - * @param Table $table - * @return ObjectBuilder - */ - public function getNewObjectBuilder(Table $table) - { - return $this->getGeneratorConfig()->getConfiguredBuilder($table, 'object'); - } - - /** - * Convenience method to return a NEW Object stub class builder instance. - * - * This is used from the query builders to get - * an object builder for a RELATED table. - * - * @param Table $table - * @return ObjectBuilder - */ - public function getNewStubObjectBuilder(Table $table) - { - return $this->getGeneratorConfig()->getConfiguredBuilder($table, 'objectstub'); - } - - /** - * Convenience method to return a NEW query class builder instance. - * - * This is used from the query builders to get - * a query builder for a RELATED table. - * - * @param Table $table - * @return QueryBuilder - */ - public function getNewQueryBuilder(Table $table) - { - return $this->getGeneratorConfig()->getConfiguredBuilder($table, 'query'); - } - - /** - * Convenience method to return a NEW query stub class builder instance. - * - * This is used from the query builders to get - * a query builder for a RELATED table. - * - * @param Table $table - * @return QueryBuilder - */ - public function getNewStubQueryBuilder(Table $table) - { - return $this->getGeneratorConfig()->getConfiguredBuilder($table, 'querystub'); - } - - /** - * Returns new Query Inheritance builder class for this table. - * @return ObjectBuilder - */ - public function getNewQueryInheritanceBuilder($child) - { - $queryInheritanceBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'queryinheritance'); - $queryInheritanceBuilder->setChild($child); - return $queryInheritanceBuilder; - } - - /** - * Returns new stub Query Inheritance builder class for this table. - * @return ObjectBuilder - */ - public function getNewStubQueryInheritanceBuilder($child) - { - $stubQueryInheritanceBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'queryinheritancestub'); - $stubQueryInheritanceBuilder->setChild($child); - return $stubQueryInheritanceBuilder; - } - - /** - * Gets the GeneratorConfig object. - * - * @return GeneratorConfig - */ - public function getGeneratorConfig() - { - return $this->generatorConfig; - } - - /** - * Get a specific [name transformed] build property. - * - * @param string $name - * @return string - */ - public function getBuildProperty($name) - { - if ($this->getGeneratorConfig()) { - return $this->getGeneratorConfig()->getBuildProperty($name); - } - return null; // just to be explicit - } - - /** - * Sets the GeneratorConfig object. - * - * @param GeneratorConfig $v - */ - public function setGeneratorConfig(GeneratorConfig $v) - { - $this->generatorConfig = $v; - } - - /** - * Sets the table for this builder. - * @param Table $table - */ - public function setTable(Table $table) - { - $this->table = $table; - } - - /** - * Returns the current Table object. - * @return Table - */ - public function getTable() - { - return $this->table; - } - - /** - * Convenience method to returns the Platform class for this table (database). - * @return Platform - */ - public function getPlatform() - { - if ($this->getTable() && $this->getTable()->getDatabase()) { - return $this->getTable()->getDatabase()->getPlatform(); - } - } - - /** - * Convenience method to returns the database for current table. - * @return Database - */ - public function getDatabase() - { - if ($this->getTable()) { - return $this->getTable()->getDatabase(); - } - } - - /** - * Pushes a message onto the stack of warnings. - * @param string $msg The warning message. - */ - protected function warn($msg) - { - $this->warnings[] = $msg; - } - - /** - * Gets array of warning messages. - * @return array string[] - */ - public function getWarnings() - { - return $this->warnings; - } - - /** - * Wraps call to Platform->quoteIdentifier() with a check to see whether quoting is enabled. - * - * All subclasses should call this quoteIdentifier() method rather than calling the Platform - * method directly. This method is used by both DataSQLBuilder and DDLBuilder, and potentially - * in the OM builders also, which is why it is defined in this class. - * - * @param string $text The text to quote. - * @return string Quoted text. - */ - public function quoteIdentifier($text) - { - if (!$this->getBuildProperty('disableIdentifierQuoting')) { - return $this->getPlatform()->quoteIdentifier($text); - } - return $text; - } - - /** - * Returns the name of the current class being built, with a possible prefix. - * @return string - * @see OMBuilder#getClassname() - */ - public function prefixClassname($identifier) - { - return $this->getBuildProperty('classPrefix') . $identifier; - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/ClassTools.php b/airtime_mvc/library/propel/generator/lib/builder/om/ClassTools.php deleted file mode 100644 index 5e3b5a5f23..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/ClassTools.php +++ /dev/null @@ -1,120 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.generator.builder.om - */ -class ClassTools -{ - - /** - * Gets just classname, given a dot-path to class. - * @param string $qualifiedName - * @return string - */ - public static function classname($qualifiedName) - { - $pos = strrpos($qualifiedName, '.'); - if ($pos === false) { - return $qualifiedName; // there is no '.' in the qualifed name - } else { - return substr($qualifiedName, $pos + 1); // start just after '.' - } - } - - /** - * Gets the path to be used in include()/require() statement. - * - * Supports multiple function signatures: - * - * (1) getFilePath($dotPathClass); - * (2) getFilePath($dotPathPrefix, $className); - * (3) getFilePath($dotPathPrefix, $className, $extension); - * - * @param string $path dot-path to class or to package prefix. - * @param string $classname class name - * @param string $extension The extension to use on the file. - * @return string The constructed file path. - */ - public static function getFilePath($path, $classname = null, $extension = '.php') - { - $path = strtr(ltrim($path, '.'), '.', '/'); - if ($classname !== null) { - if ($path !== "") { $path .= '/'; } - return $path . $classname . $extension; - } else { - return $path . $extension; - } - } - - /** - * Gets the basePeer path if specified for table/db. - * If not, will return 'propel.util.BasePeer' - * @return string - */ - public static function getBasePeer(Table $table) { - $class = $table->getBasePeer(); - if ($class === null) { - $class = "propel.util.BasePeer"; - } - return $class; - } - - /** - * Gets the baseClass path if specified for table/db. - * If not, will return 'propel.om.BaseObject' - * @return string - */ - public static function getBaseClass(Table $table) { - $class = $table->getBaseClass(); - if ($class === null) { - $class = "propel.om.BaseObject"; - } - return $class; - } - - /** - * Gets the interface path if specified for table. - * If not, will return 'propel.om.Persistent'. - * @return string - */ - public static function getInterface(Table $table) { - $interface = $table->getInterface(); - if ($interface === null && !$table->isReadOnly()) { - $interface = "propel.om.Persistent"; - } - return $interface; - } - - /** - * Gets a list of PHP reserved words. - * - * @return array string[] - */ - public static function getPhpReservedWords() - { - return array( - 'and', 'or', 'xor', 'exception', '__FILE__', '__LINE__', - 'array', 'as', 'break', 'case', 'class', 'const', 'continue', - 'declare', 'default', 'die', 'do', 'echo', 'else', 'elseif', 'empty', - 'enddeclare', 'endfor', 'endforeach', 'endif', 'endswitch', 'endwhile', - 'eval', 'exit', 'extends', 'for', 'foreach', 'function', 'global', - 'if', 'include', 'include_once', 'isset', 'list', 'new', 'print', 'require', - 'require_once', 'return', 'static', 'switch', 'unset', 'use', 'var', 'while', - '__FUNCTION__', '__CLASS__', '__METHOD__', 'final', 'php_user_filter', 'interface', - 'implements', 'extends', 'public', 'protected', 'private', 'abstract', 'clone', 'try', 'catch', - 'throw', 'this', 'namespace' - ); - } -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/ExtensionQueryBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/ExtensionQueryBuilder.php deleted file mode 100644 index 8472c677c4..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/ExtensionQueryBuilder.php +++ /dev/null @@ -1,139 +0,0 @@ -getTable()->getPhpName() . 'Query'; - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - $requiredClassFilePath = $this->getQueryBuilder()->getClassFilePath(); - - $script .=" -require '".$requiredClassFilePath."'; -"; - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - $table = $this->getTable(); - $this->declareClassFromBuilder($this->getQueryBuilder()); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - $baseClassname = $this->getQueryBuilder()->getClassname(); - - $script .= " - -/** - * Skeleton subclass for performing query and update operations on the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * You should add additional methods to this class to meet the - * application requirements. This class will only be generated as - * long as it does not already exist in the output directory. - * - * @package propel.generator.".$this->getPackage()." - */ -class ".$this->getClassname()." extends $baseClassname { -"; - } - - /** - * Specifies the methods that are added as part of the stub query class. - * - * By default there are no methods for the empty stub classes; override this method - * if you want to change that behavior. - * - * @see QueryBuilder::addClassBody() - */ - - protected function addClassBody(&$script) - { - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - $this->applyBehaviorModifier('extensionQueryFilter', $script, ""); - } - - /** - * Checks whether any registered behavior on that table has a modifier for a hook - * @param string $hookName The name of the hook as called from one of this class methods, e.g. "preSave" - * @return boolean - */ - public function hasBehaviorModifier($hookName, $modifier = null) - { - return parent::hasBehaviorModifier($hookName, 'QueryBuilderModifier'); - } - - /** - * Checks whether any registered behavior on that table has a modifier for a hook - * @param string $hookName The name of the hook as called from one of this class methods, e.g. "preSave" - * @param string &$script The script will be modified in this method. - */ - public function applyBehaviorModifier($hookName, &$script, $tab = " ") - { - return $this->applyBehaviorModifierBase($hookName, 'QueryBuilderModifier', $script, $tab); - } - - /** - * Checks whether any registered behavior content creator on that table exists a contentName - * @param string $contentName The name of the content as called from one of this class methods, e.g. "parentClassname" - */ - public function getBehaviorContent($contentName) - { - return $this->getBehaviorContentBase($contentName, 'QueryBuilderModifier'); - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/ExtensionQueryInheritanceBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/ExtensionQueryInheritanceBuilder.php deleted file mode 100644 index 2b8e3f30e9..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/ExtensionQueryInheritanceBuilder.php +++ /dev/null @@ -1,138 +0,0 @@ -getChild()->getClassName() . 'Query'; - } - - /** - * Set the child object that we're operating on currrently. - * @param $child Inheritance - */ - public function setChild(Inheritance $child) - { - $this->child = $child; - } - - /** - * Returns the child object we're operating on currently. - * @return Inheritance - * @throws BuildException - if child was not set. - */ - public function getChild() - { - if (!$this->child) { - throw new BuildException("The PHP5MultiExtendObjectBuilder needs to be told which child class to build (via setChild() method) before it can build the stub class."); - } - return $this->child; - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - $requiredClassFilePath = $this->getStubQueryBuilder()->getClassFilePath(); - - $script .=" -require '".$requiredClassFilePath."'; -"; - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - $table = $this->getTable(); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - - $baseBuilder = $this->getNewQueryInheritanceBuilder($this->getChild()); - $this->declareClassFromBuilder($baseBuilder); - $baseClassname = $baseBuilder->getClassname(); - - $script .= " - -/** - * Skeleton subclass for representing a query for one of the subclasses of the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * You should add additional methods to this class to meet the - * application requirements. This class will only be generated as - * long as it does not already exist in the output directory. - * - * @package propel.generator.".$this->getPackage()." - */ -class " .$this->getClassname() . " extends " . $baseClassname . " { -"; - } - - /** - * Specifies the methods that are added as part of the stub object class. - * - * By default there are no methods for the empty stub classes; override this method - * if you want to change that behavior. - * - * @see ObjectBuilder::addClassBody() - */ - protected function addClassBody(&$script) - { - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - } - -} // MultiExtensionQueryBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/OMBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/OMBuilder.php deleted file mode 100644 index c783347087..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/OMBuilder.php +++ /dev/null @@ -1,526 +0,0 @@ - - * @package propel.generator.builder.om - */ -abstract class OMBuilder extends DataModelBuilder -{ - /** - * Declared fully qualified classnames, to build the 'namespace' statements - * according to this table's namespace. - * @var array - */ - protected $declaredClasses = array(); - - /** - * Builds the PHP source for current class and returns it as a string. - * - * This is the main entry point and defines a basic structure that classes should follow. - * In most cases this method will not need to be overridden by subclasses. This method - * does assume that the output language is PHP code, so it will need to be overridden if - * this is not the case. - * - * @return string The resulting PHP sourcecode. - */ - public function build() - { - $this->validateModel(); - - $script = ''; - if ($this->isAddIncludes()) { - $this->addIncludes($script); - } - $this->addClassOpen($script); - $this->addClassBody($script); - $this->addClassClose($script); - - if($useStatements = $this->getUseStatements($ignoredNamespace = $this->getNamespace())) { - $script = $useStatements . $script; - } - if($namespaceStatement = $this->getNamespaceStatement()) { - $script = $namespaceStatement . $script; - } - //if($this->getTable()->getName() == 'book_club_list') die($ignoredNamespace); - - return "<" . "?php - -" . $script; - } - - /** - * Validates the current table to make sure that it won't - * result in generated code that will not parse. - * - * This method may emit warnings for code which may cause problems - * and will throw exceptions for errors that will definitely cause - * problems. - */ - protected function validateModel() - { - // Validation is currently only implemented in the subclasses. - } - - /** - * Creates a $obj = new Book(); code snippet. Can be used by frameworks, for instance, to - * extend this behavior, e.g. initialize the object after creating the instance or so. - * - * @return string Some code - */ - public function buildObjectInstanceCreationCode($objName, $clsName) - { - return "$objName = new $clsName();"; - } - - /** - * Returns the qualified (prefixed) classname that is being built by the current class. - * This method must be implemented by child classes. - * @return string - */ - abstract public function getUnprefixedClassname(); - - /** - * Returns the prefixed classname that is being built by the current class. - * @return string - * @see DataModelBuilder#prefixClassname() - */ - public function getClassname() - { - return $this->prefixClassname($this->getUnprefixedClassname()); - } - - /** - * Returns the namespaced classname if there is a namespace, and the raw classname otherwise - * @return string - */ - public function getFullyQualifiedClassname() - { - if ($namespace = $this->getNamespace()) { - return $namespace . '\\' . $this->getClassname(); - } else { - return $this->getClassname(); - } - } - - /** - * Gets the dot-path representation of current class being built. - * @return string - */ - public function getClasspath() - { - if ($this->getPackage()) { - $path = $this->getPackage() . '.' . $this->getClassname(); - } else { - $path = $this->getClassname(); - } - return $path; - } - - /** - * Gets the full path to the file for the current class. - * @return string - */ - public function getClassFilePath() - { - return ClassTools::getFilePath($this->getPackage(), $this->getClassname()); - } - - /** - * Gets package name for this table. - * This is overridden by child classes that have different packages. - * @return string - */ - public function getPackage() - { - $pkg = ($this->getTable()->getPackage() ? $this->getTable()->getPackage() : $this->getDatabase()->getPackage()); - if (!$pkg) { - $pkg = $this->getBuildProperty('targetPackage'); - } - return $pkg; - } - - /** - * Returns filesystem path for current package. - * @return string - */ - public function getPackagePath() - { - return strtr($this->getPackage(), '.', '/'); - } - - /** - * Return the user-defined namespace for this table, - * or the database namespace otherwise. - * - * @return string - */ - public function getNamespace() - { - return $this->getTable()->getNamespace(); - } - - public function declareClassNamespace($class, $namespace = '') - { - if (isset($this->declaredClasses[$namespace]) - && in_array($class, $this->declaredClasses[$namespace])) { - return; - } - $this->declaredClasses[$namespace][] = $class; - } - - public function declareClass($fullyQualifiedClassName) - { - $fullyQualifiedClassName = trim($fullyQualifiedClassName, '\\'); - if (($pos = strrpos($fullyQualifiedClassName, '\\')) !== false) { - $this->declareClassNamespace(substr($fullyQualifiedClassName, $pos + 1), substr($fullyQualifiedClassName, 0, $pos)); - } else { - // root namespace - $this->declareClassNamespace($fullyQualifiedClassName); - } - } - - public function declareClassFromBuilder($builder) - { - $this->declareClassNamespace($builder->getClassname(), $builder->getNamespace()); - } - - public function declareClasses() - { - $args = func_get_args(); - foreach ($args as $class) { - $this->declareClass($class); - } - } - - public function getDeclaredClasses($namespace = null) - { - if (null !== $namespace && isset($this->declaredClasses[$namespace])) { - return $this->declaredClasses[$namespace]; - } else { - return $this->declaredClasses; - } - } - - public function getNamespaceStatement() - { - $namespace = $this->getNamespace(); - if ($namespace != '') { - return sprintf("namespace %s; - -", $namespace); - } - } - - public function getUseStatements($ignoredNamespace = null) - { - $declaredClasses = $this->declaredClasses; - unset($declaredClasses[$ignoredNamespace]); - ksort($declaredClasses); - foreach ($declaredClasses as $namespace => $classes) { - sort($classes); - foreach ($classes as $class) { - $script .= sprintf("use %s\\%s; -", $namespace, $class); - } - } - return $script; - } - - /** - * Shortcut method to return the [stub] peer classname for current table. - * This is the classname that is used whenever object or peer classes want - * to invoke methods of the peer classes. - * @return string (e.g. 'MyPeer') - * @see StubPeerBuilder::getClassname() - */ - public function getPeerClassname() { - return $this->getStubPeerBuilder()->getClassname(); - } - - /** - * Shortcut method to return the [stub] query classname for current table. - * This is the classname that is used whenever object or peer classes want - * to invoke methods of the query classes. - * @return string (e.g. 'Myquery') - * @see StubQueryBuilder::getClassname() - */ - public function getQueryClassname() { - return $this->getStubQueryBuilder()->getClassname(); - } - - /** - * Returns the object classname for current table. - * This is the classname that is used whenever object or peer classes want - * to invoke methods of the object classes. - * @return string (e.g. 'My') - * @see StubPeerBuilder::getClassname() - */ - public function getObjectClassname() { - return $this->getStubObjectBuilder()->getClassname(); - } - - /** - * Get the column constant name (e.g. PeerName::COLUMN_NAME). - * - * @param Column $col The column we need a name for. - * @param string $classname The Peer classname to use. - * - * @return string If $classname is provided, then will return $classname::COLUMN_NAME; if not, then the peername is looked up for current table to yield $currTablePeer::COLUMN_NAME. - */ - public function getColumnConstant($col, $classname = null) - { - if ($col === null) { - $e = new Exception("No col specified."); - print $e; - throw $e; - } - if ($classname === null) { - return $this->getBuildProperty('classPrefix') . $col->getConstantName(); - } - // was it overridden in schema.xml ? - if ($col->getPeerName()) { - $const = strtoupper($col->getPeerName()); - } else { - $const = strtoupper($col->getName()); - } - return $classname.'::'.$const; - } - - /** - * Gets the basePeer path if specified for table/db. - * If not, will return 'propel.util.BasePeer' - * @return string - */ - public function getBasePeer(Table $table) { - $class = $table->getBasePeer(); - if ($class === null) { - $class = "propel.util.BasePeer"; - } - return $class; - } - - /** - * Convenience method to get the foreign Table object for an fkey. - * @deprecated use ForeignKey::getForeignTable() instead - * @return Table - */ - protected function getForeignTable(ForeignKey $fk) - { - return $this->getTable()->getDatabase()->getTable($fk->getForeignTableName()); - } - - /** - * Convenience method to get the default Join Type for a relation. - * If the key is required, an INNER JOIN will be returned, else a LEFT JOIN will be suggested, - * unless the schema is provided with the DefaultJoin attribute, which overrules the default Join Type - * - * @param ForeignKey $fk - * @return string - */ - protected function getJoinType(ForeignKey $fk) - { - return $fk->getDefaultJoin() ? - "'".$fk->getDefaultJoin()."'" : - ($fk->isLocalColumnsRequired() ? 'Criteria::INNER_JOIN' : 'Criteria::LEFT_JOIN'); - } - - /** - * Gets the PHP method name affix to be used for fkeys for the current table (not referrers to this table). - * - * The difference between this method and the getRefFKPhpNameAffix() method is that in this method the - * classname in the affix is the foreign table classname. - * - * @param ForeignKey $fk The local FK that we need a name for. - * @param boolean $plural Whether the php name should be plural (e.g. initRelatedObjs() vs. addRelatedObj() - * @return string - */ - public function getFKPhpNameAffix(ForeignKey $fk, $plural = false) - { - if ($fk->getPhpName()) { - if ($plural) { - return $this->getPluralizer()->getPluralForm($fk->getPhpName()); - } else { - return $fk->getPhpName(); - } - } else { - $className = $fk->getForeignTable()->getPhpName(); - if ($plural) { - $className = $this->getPluralizer()->getPluralForm($className); - } - return $className . $this->getRelatedBySuffix($fk); - } - } - - /** - * Gets the "RelatedBy*" suffix (if needed) that is attached to method and variable names. - * - * The related by suffix is based on the local columns of the foreign key. If there is more than - * one column in a table that points to the same foreign table, then a 'RelatedByLocalColName' suffix - * will be appended. - * - * @return string - */ - protected static function getRelatedBySuffix(ForeignKey $fk) - { - $relCol = ''; - foreach ($fk->getLocalForeignMapping() as $localColumnName => $foreignColumnName) { - $localTable = $fk->getTable(); - $localColumn = $localTable->getColumn($localColumnName); - if (!$localColumn) { - throw new Exception("Could not fetch column: $columnName in table " . $localTable->getName()); - } - if (count($localTable->getForeignKeysReferencingTable($fk->getForeignTableName())) > 1 - || count($fk->getForeignTable()->getForeignKeysReferencingTable($fk->getTableName())) > 0 - || $fk->getForeignTableName() == $fk->getTableName()) { - // self referential foreign key, or several foreign keys to the same table, or cross-reference fkey - $relCol .= $localColumn->getPhpName(); - } - } - - if ($relCol != '') { - $relCol = 'RelatedBy' . $relCol; - } - - return $relCol; - } - - /** - * Gets the PHP method name affix to be used for referencing foreign key methods and variable names (e.g. set????(), $coll???). - * - * The difference between this method and the getFKPhpNameAffix() method is that in this method the - * classname in the affix is the classname of the local fkey table. - * - * @param ForeignKey $fk The referrer FK that we need a name for. - * @param boolean $plural Whether the php name should be plural (e.g. initRelatedObjs() vs. addRelatedObj() - * @return string - */ - public function getRefFKPhpNameAffix(ForeignKey $fk, $plural = false) - { - if ($fk->getRefPhpName()) { - if ($plural) { - return $this->getPluralizer()->getPluralForm($fk->getRefPhpName()); - } else { - return $fk->getRefPhpName(); - } - } else { - $className = $fk->getTable()->getPhpName(); - if ($plural) { - $className = $this->getPluralizer()->getPluralForm($className); - } - return $className . $this->getRefRelatedBySuffix($fk); - } - } - - protected static function getRefRelatedBySuffix(ForeignKey $fk) - { - $relCol = ''; - foreach ($fk->getLocalForeignMapping() as $localColumnName => $foreignColumnName) { - $localTable = $fk->getTable(); - $localColumn = $localTable->getColumn($localColumnName); - if (!$localColumn) { - throw new Exception("Could not fetch column: $columnName in table " . $localTable->getName()); - } - $foreignKeysToForeignTable = $localTable->getForeignKeysReferencingTable($fk->getForeignTableName()); - if ($fk->getForeignTableName() == $fk->getTableName()) { - // self referential foreign key - $relCol .= $fk->getForeignTable()->getColumn($foreignColumnName)->getPhpName(); - if (count($foreignKeysToForeignTable) > 1) { - // several self-referential foreign keys - $relCol .= array_search($fk, $foreignKeysToForeignTable); - } - } elseif (count($foreignKeysToForeignTable) > 1 || count($fk->getForeignTable()->getForeignKeysReferencingTable($fk->getTableName())) > 0) { - // several foreign keys to the same table, or symmetrical foreign key in foreign table - $relCol .= $localColumn->getPhpName(); - } - } - - if ($relCol != '') { - $relCol = 'RelatedBy' . $relCol; - } - - return $relCol; - } - - /** - * Whether to add the include statements. - * This is based on the build property propel.addIncludes - */ - protected function isAddIncludes() - { - return $this->getBuildProperty('addIncludes'); - } - - /** - * Checks whether any registered behavior on that table has a modifier for a hook - * @param string $hookName The name of the hook as called from one of this class methods, e.g. "preSave" - * @param string $modifier The name of the modifier object providing the method in the behavior - * @return boolean - */ - public function hasBehaviorModifier($hookName, $modifier) - { - $modifierGetter = 'get' . $modifier; - foreach ($this->getTable()->getBehaviors() as $behavior) { - if(method_exists($behavior->$modifierGetter(), $hookName)) { - return true; - } - } - return false; - } - - /** - * Checks whether any registered behavior on that table has a modifier for a hook - * @param string $hookName The name of the hook as called from one of this class methods, e.g. "preSave" - * @param string $modifier The name of the modifier object providing the method in the behavior - * @param string &$script The script will be modified in this method. - */ - public function applyBehaviorModifierBase($hookName, $modifier, &$script, $tab = " ") - { - $modifierGetter = 'get' . $modifier; - foreach ($this->getTable()->getBehaviors() as $behavior) { - $modifier = $behavior->$modifierGetter(); - if(method_exists($modifier, $hookName)) { - if (strpos($hookName, 'Filter') !== false) { - // filter hook: the script string will be modified by the behavior - $modifier->$hookName($script, $this); - } else { - // regular hook: the behavior returns a string to append to the script string - $script .= "\n" . $tab . '// ' . $behavior->getName() . " behavior\n"; - $script .= preg_replace('/^/m', $tab, $modifier->$hookName($this)); - } - } - } - } - - /** - * Checks whether any registered behavior content creator on that table exists a contentName - * @param string $contentName The name of the content as called from one of this class methods, e.g. "parentClassname" - * @param string $modifier The name of the modifier object providing the method in the behavior - */ - public function getBehaviorContentBase($contentName, $modifier) - { - $modifierGetter = 'get' . $modifier; - foreach ($this->getTable()->getBehaviors() as $behavior) { - $modifier = $behavior->$modifierGetter(); - if(method_exists($modifier, $contentName)) { - return $modifier->$contentName($this); - } - } - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/ObjectBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/ObjectBuilder.php deleted file mode 100644 index a8ed43bfd5..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/ObjectBuilder.php +++ /dev/null @@ -1,186 +0,0 @@ - - * @package propel.generator.builder.om - */ -abstract class ObjectBuilder extends OMBuilder -{ - - /** - * Constructs a new PeerBuilder subclass. - */ - public function __construct(Table $table) { - parent::__construct($table); - } - - /** - * This method adds the contents of the generated class to the script. - * - * This method is abstract and should be overridden by the subclasses. - * - * Hint: Override this method in your subclass if you want to reorganize or - * drastically change the contents of the generated peer class. - * - * @param string &$script The script will be modified in this method. - */ - abstract protected function addClassBody(&$script); - - /** - * Adds the getter methods for the column values. - * This is here because it is probably generic enough to apply to templates being generated - * in different langauges (e.g. PHP4 and PHP5). - * @param string &$script The script will be modified in this method. - */ - protected function addColumnAccessorMethods(&$script) - { - $table = $this->getTable(); - - foreach ($table->getColumns() as $col) { - - // if they're not using the DateTime class than we will generate "compatibility" accessor method - if ($col->getType() === PropelTypes::DATE || $col->getType() === PropelTypes::TIME || $col->getType() === PropelTypes::TIMESTAMP) { - $this->addTemporalAccessor($script, $col); - } else { - $this->addDefaultAccessor($script, $col); - } - - if ($col->isLazyLoad()) { - $this->addLazyLoader($script, $col); - } - } - } - - /** - * Adds the mutator (setter) methods for setting column values. - * This is here because it is probably generic enough to apply to templates being generated - * in different langauges (e.g. PHP4 and PHP5). - * @param string &$script The script will be modified in this method. - */ - protected function addColumnMutatorMethods(&$script) - { - foreach ($this->getTable()->getColumns() as $col) { - - if ($col->isLobType()) { - $this->addLobMutator($script, $col); - } elseif ($col->getType() === PropelTypes::DATE || $col->getType() === PropelTypes::TIME || $col->getType() === PropelTypes::TIMESTAMP) { - $this->addTemporalMutator($script, $col); - } else { - $this->addDefaultMutator($script, $col); - } - } - } - - - /** - * Gets the baseClass path if specified for table/db. - * If not, will return 'propel.om.BaseObject' - * @return string - */ - protected function getBaseClass() { - $class = $this->getTable()->getBaseClass(); - if ($class === null) { - $class = "propel.om.BaseObject"; - } - return $class; - } - - /** - * Gets the interface path if specified for current table. - * If not, will return 'propel.om.Persistent'. - * @return string - */ - protected function getInterface() { - $interface = $this->getTable()->getInterface(); - if ($interface === null && !$this->getTable()->isReadOnly()) { - $interface = "propel.om.Persistent"; - } - return $interface; - } - - /** - * Whether to add the generic mutator methods (setByName(), setByPosition(), fromArray()). - * This is based on the build property propel.addGenericMutators, and also whether the - * table is read-only or an alias. - */ - protected function isAddGenericMutators() - { - $table = $this->getTable(); - return (!$table->isAlias() && $this->getBuildProperty('addGenericMutators') && !$table->isReadOnly()); - } - - /** - * Whether to add the generic accessor methods (getByName(), getByPosition(), toArray()). - * This is based on the build property propel.addGenericAccessors, and also whether the - * table is an alias. - */ - protected function isAddGenericAccessors() - { - $table = $this->getTable(); - return (!$table->isAlias() && $this->getBuildProperty('addGenericAccessors')); - } - - /** - * Whether to add the validate() method. - * This is based on the build property propel.addValidateMethod - */ - protected function isAddValidateMethod() - { - return $this->getBuildProperty('addValidateMethod'); - } - - protected function hasDefaultValues() - { - foreach ($this->getTable()->getColumns() as $col) { - if($col->getDefaultValue() !== null) return true; - } - return false; - } - - /** - * Checks whether any registered behavior on that table has a modifier for a hook - * @param string $hookName The name of the hook as called from one of this class methods, e.g. "preSave" - * @return boolean - */ - public function hasBehaviorModifier($hookName, $modifier = null) - { - return parent::hasBehaviorModifier($hookName, 'ObjectBuilderModifier'); - } - - /** - * Checks whether any registered behavior on that table has a modifier for a hook - * @param string $hookName The name of the hook as called from one of this class methods, e.g. "preSave" - * @param string &$script The script will be modified in this method. - */ - public function applyBehaviorModifier($hookName, &$script, $tab = " ") - { - return $this->applyBehaviorModifierBase($hookName, 'ObjectBuilderModifier', $script, $tab); - } - - /** - * Checks whether any registered behavior content creator on that table exists a contentName - * @param string $contentName The name of the content as called from one of this class methods, e.g. "parentClassname" - */ - public function getBehaviorContent($contentName) - { - return $this->getBehaviorContentBase($contentName, 'ObjectBuilderModifier'); - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ExtensionNodeBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ExtensionNodeBuilder.php deleted file mode 100644 index 8b1bdae652..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ExtensionNodeBuilder.php +++ /dev/null @@ -1,111 +0,0 @@ - - * @package propel.generator.builder.om - */ -class PHP5ExtensionNodeBuilder extends ObjectBuilder -{ - - /** - * Returns the name of the current class being built. - * @return string - */ - public function getUnprefixedClassname() - { - return $this->getTable()->getPhpName() . 'Node'; - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - $script .= " -require '".$this->getNodeBuilder()->getClassFilePath()."'; -"; - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - - $table = $this->getTable(); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - - $baseClassname = $this->getNodeBuilder()->getClassname(); - - $script .= " - -/** - * Skeleton subclass for representing a node from the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * You should add additional methods to this class to meet the - * application requirements. This class will only be generated as - * long as it does not already exist in the output directory. - * - * @package propel.generator.".$this->getPackage()." - */ -class ".$this->getClassname()." extends $baseClassname { -"; - } - - /** - * Specifies the methods that are added as part of the stub object class. - * - * By default there are no methods for the empty stub classes; override this method - * if you want to change that behavior. - * - * @see ObjectBuilder::addClassBody() - */ - protected function addClassBody(&$script) - { - // there is no class body - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - } - -} // PHP5ExtensionObjectBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ExtensionNodePeerBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ExtensionNodePeerBuilder.php deleted file mode 100644 index 8f5f16cf46..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ExtensionNodePeerBuilder.php +++ /dev/null @@ -1,112 +0,0 @@ - - * @package propel.generator.builder.om - */ -class PHP5ExtensionNodePeerBuilder extends PeerBuilder -{ - - /** - * Returns the name of the current class being built. - * @return string - */ - public function getUnprefixedClassname() - { - return $this->getStubNodeBuilder()->getClassname() . 'Peer'; - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - $script .=" -require '".$this->getNodePeerBuilder()->getClassFilePath()."'; -"; - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - - $table = $this->getTable(); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - - $baseClassname = $this->getNodePeerBuilder()->getClassname(); - - $script .= " - -/** - * Skeleton subclass for performing query and update operations on nodes of the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * You should add additional methods to this class to meet the - * application requirements. This class will only be generated as - * long as it does not already exist in the output directory. - * - * @package propel.generator.".$this->getPackage()." - */ -class ".$this->getClassname()." extends $baseClassname { -"; - } - - /** - * Specifies the methods that are added as part of the stub peer class. - * - * By default there are no methods for the empty stub classes; override this method - * if you want to change that behavior. - * - * @see ObjectBuilder::addClassBody() - */ - - protected function addClassBody(&$script) - { - // there is no class body - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - } - -} // PHP5ExtensionPeerBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ExtensionObjectBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ExtensionObjectBuilder.php deleted file mode 100644 index b88e1df0d8..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ExtensionObjectBuilder.php +++ /dev/null @@ -1,133 +0,0 @@ - - * @package propel.generator.builder.om - */ -class PHP5ExtensionObjectBuilder extends ObjectBuilder -{ - - /** - * Returns the name of the current class being built. - * @return string - */ - public function getUnprefixedClassname() - { - return $this->getTable()->getPhpName(); - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - switch($this->getTable()->treeMode()) { - case 'NestedSet': - $requiredClassFilePath = $this->getNestedSetBuilder()->getClassFilePath(); - break; - - case 'MaterializedPath': - case 'AdjacencyList': - default: - $requiredClassFilePath = $this->getObjectBuilder()->getClassFilePath(); - break; - } - - $script .=" -require '".$requiredClassFilePath."'; -"; - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - $table = $this->getTable(); - $this->declareClassFromBuilder($this->getObjectBuilder()); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - - switch($table->treeMode()) { - case 'NestedSet': - $baseClassname = $this->getNestedSetBuilder()->getClassname(); - break; - - case 'MaterializedPath': - case "AdjacencyList": - default: - $baseClassname = $this->getObjectBuilder()->getClassname(); - break; - } - - $script .= " - -/** - * Skeleton subclass for representing a row from the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * You should add additional methods to this class to meet the - * application requirements. This class will only be generated as - * long as it does not already exist in the output directory. - * - * @package propel.generator.".$this->getPackage()." - */ -".($table->isAbstract() ? "abstract " : "")."class ".$this->getClassname()." extends $baseClassname { -"; - } - - /** - * Specifies the methods that are added as part of the stub object class. - * - * By default there are no methods for the empty stub classes; override this method - * if you want to change that behavior. - * - * @see ObjectBuilder::addClassBody() - */ - protected function addClassBody(&$script) - { - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - $this->applyBehaviorModifier('extensionObjectFilter', $script, ""); - } - -} // PHP5ExtensionObjectBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ExtensionPeerBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ExtensionPeerBuilder.php deleted file mode 100644 index ef22ae4caf..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ExtensionPeerBuilder.php +++ /dev/null @@ -1,136 +0,0 @@ - - * @package propel.generator.builder.om - */ -class PHP5ExtensionPeerBuilder extends PeerBuilder -{ - - /** - * Returns the name of the current class being built. - * @return string - */ - public function getUnprefixedClassname() - { - return $this->getStubObjectBuilder()->getUnprefixedClassname() . 'Peer'; - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - switch($this->getTable()->treeMode()) { - case 'NestedSet': - $requiredClassFilePath = $this->getNestedSetPeerBuilder()->getClassFilePath(); - break; - - case 'MaterializedPath': - case 'AdjacencyList': - default: - $requiredClassFilePath = $this->getPeerBuilder()->getClassFilePath(); - break; - } - - $script .=" -require '".$requiredClassFilePath."'; -"; - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - $table = $this->getTable(); - $this->declareClassFromBuilder($this->getPeerBuilder()); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - - switch($table->treeMode()) { - case 'NestedSet': - $baseClassname = $this->getNestedSetPeerBuilder()->getClassname(); - break; - - case 'MaterializedPath': - case 'AdjacencyList': - default: - $baseClassname = $this->getPeerBuilder()->getClassname(); - break; - } - - $script .= " - -/** - * Skeleton subclass for performing query and update operations on the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * You should add additional methods to this class to meet the - * application requirements. This class will only be generated as - * long as it does not already exist in the output directory. - * - * @package propel.generator.".$this->getPackage()." - */ -class ".$this->getClassname()." extends $baseClassname { -"; - } - - /** - * Specifies the methods that are added as part of the stub peer class. - * - * By default there are no methods for the empty stub classes; override this method - * if you want to change that behavior. - * - * @see ObjectBuilder::addClassBody() - */ - - protected function addClassBody(&$script) - { - // there is no class body - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - $this->applyBehaviorModifier('extensionPeerFilter', $script, ""); - } - - -} // PHP5ExtensionPeerBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5InterfaceBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PHP5InterfaceBuilder.php deleted file mode 100644 index ba6f094a28..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5InterfaceBuilder.php +++ /dev/null @@ -1,108 +0,0 @@ - - * @package propel.generator.builder.om - */ -class PHP5InterfaceBuilder extends ObjectBuilder -{ - - /** - * Returns the name of the current class being built. - * @return string - */ - public function getUnprefixedClassname() - { - return ClassTools::classname($this->getInterface()); - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - - $table = $this->getTable(); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - - $baseClassname = $this->getObjectBuilder()->getClassname(); - - $script .= " -/** - * This is an interface that should be filled with the public api of the $tableName objects. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * You should add additional method declarations to this interface to meet the - * application requirements. This interface will only be generated as - * long as it does not already exist in the output directory. - * - * @package propel.generator.".$this->getPackage()." - */ -interface ".$this->getClassname()." { -"; - } - - /** - * Specifies the methods that are added as part of the stub object class. - * - * By default there are no methods for the empty stub classes; override this method - * if you want to change that behavior. - * - * @see ObjectBuilder::addClassBody() - */ - protected function addClassBody(&$script) - { - // there is no class body - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - } - -} // PHP5ExtensionObjectBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5MultiExtendObjectBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PHP5MultiExtendObjectBuilder.php deleted file mode 100644 index 5ac7eae06a..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5MultiExtendObjectBuilder.php +++ /dev/null @@ -1,196 +0,0 @@ - - * @package propel.generator.builder.om - */ -class PHP5MultiExtendObjectBuilder extends ObjectBuilder -{ - - /** - * The current child "object" we are operating on. - */ - private $child; - - /** - * Returns the name of the current class being built. - * @return string - */ - public function getUnprefixedClassname() - { - return $this->getChild()->getClassname(); - } - - /** - * Override method to return child package, if specified. - * @return string - */ - public function getPackage() - { - return ($this->child->getPackage() ? $this->child->getPackage() : parent::getPackage()); - } - - /** - * Set the child object that we're operating on currrently. - * @param $child Inheritance - */ - public function setChild(Inheritance $child) - { - $this->child = $child; - } - - /** - * Returns the child object we're operating on currently. - * @return Inheritance - * @throws BuildException - if child was not set. - */ - public function getChild() - { - if (!$this->child) { - throw new BuildException("The PHP5MultiExtendObjectBuilder needs to be told which child class to build (via setChild() method) before it can build the stub class."); - } - return $this->child; - } - - /** - * Returns classpath to parent class. - * @return string - */ - protected function getParentClasspath() - { - if ($this->getChild()->getAncestor()) { - return $this->getChild()->getAncestor(); - } else { - return $this->getObjectBuilder()->getClasspath(); - } - } - - /** - * Returns classname of parent class. - * @return string - */ - protected function getParentClassname() - { - return ClassTools::classname($this->getParentClasspath()); - } - - /** - * Gets the file path to the parent class. - * @return string - */ - protected function getParentClassFilePath() - { - return ClassTools::getFilePath($this->getParentClasspath()); - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - if ($this->getChild()->getAncestor()) { - $this->declareClassFromBuilder($this->getNewStubObjectBuilder($this->getDatabase()->getTableByPhpName($this->getChild()->getAncestor()))); - } else { - $this->declareClassFromBuilder($this->getObjectBuilder()); - } - $table = $this->getTable(); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - - $baseClassname = $this->getObjectBuilder()->getClassname(); - - $script .= " - -/** - * Skeleton subclass for representing a row from one of the subclasses of the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * You should add additional methods to this class to meet the - * application requirements. This class will only be generated as - * long as it does not already exist in the output directory. - * - * @package propel.generator.".$this->getPackage()." - */ -class ".$this->getClassname()." extends ".$this->getParentClassname()." { -"; - } - - /** - * Specifies the methods that are added as part of the stub object class. - * - * By default there are no methods for the empty stub classes; override this method - * if you want to change that behavior. - * - * @see ObjectBuilder::addClassBody() - */ - protected function addClassBody(&$script) - { - $this->declareClassFromBuilder($this->getStubPeerBuilder()); - $child = $this->getChild(); - $col = $child->getColumn(); - $cfc = $col->getPhpName(); - - $const = "CLASSKEY_".strtoupper($child->getKey()); - - $script .= " - /** - * Constructs a new ".$this->getChild()->getClassname()." class, setting the ".$col->getName()." column to ".$this->getPeerClassname()."::$const. - */ - public function __construct() - {"; - $script .= " - parent::__construct(); - \$this->set$cfc(".$this->getPeerClassname()."::CLASSKEY_".strtoupper($child->getKey())."); - } -"; - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - } - -} // PHP5ExtensionObjectBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5NestedSetBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PHP5NestedSetBuilder.php deleted file mode 100644 index d7e0bb8fc8..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5NestedSetBuilder.php +++ /dev/null @@ -1,1136 +0,0 @@ - - * @package propel.generator.builder.om - */ -class PHP5NestedSetBuilder extends ObjectBuilder -{ - - /** - * Gets the package for the [base] object classes. - * @return string - */ - public function getPackage() - { - return parent::getPackage() . ".om"; - } - - /** - * Returns the name of the current class being built. - * @return string - */ - public function getUnprefixedClassname() - { - return $this->getBuildProperty('basePrefix') . $this->getStubObjectBuilder()->getUnprefixedClassname() . 'NestedSet'; - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - $script .=" -require '".$this->getObjectBuilder()->getClassFilePath()."'; -"; - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - - $table = $this->getTable(); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - - $script .= " -/** - * Base class that represents a row from the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * @deprecated Since Propel 1.5. Use the nested_set behavior instead of the NestedSet treeMode - * @package propel.generator.".$this->getPackage()." - */ -abstract class ".$this->getClassname()." extends ".$this->getObjectBuilder()->getClassname()." implements NodeObject { -"; - } - - /** - * Specifies the methods that are added as part of the basic OM class. - * This can be overridden by subclasses that wish to add more methods. - * @see ObjectBuilder::addClassBody() - */ - protected function addClassBody(&$script) - { - $table = $this->getTable(); - - $this->addAttributes($script); - - $this->addGetIterator($script); - - $this->addSave($script); - $this->addDelete($script); - - $this->addMakeRoot($script); - - $this->addGetLevel($script); - $this->addGetPath($script); - - $this->addGetNumberOfChildren($script); - $this->addGetNumberOfDescendants($script); - - $this->addGetChildren($script); - $this->addGetDescendants($script); - - $this->addSetLevel($script); - - $this->addSetChildren($script); - $this->addSetParentNode($script); - $this->addSetPrevSibling($script); - $this->addSetNextSibling($script); - - $this->addIsRoot($script); - $this->addIsLeaf($script); - $this->addIsEqualTo($script); - - $this->addHasParent($script); - $this->addHasChildren($script); - $this->addHasPrevSibling($script); - $this->addHasNextSibling($script); - - $this->addRetrieveParent($script); - $this->addRetrieveFirstChild($script); - $this->addRetrieveLastChild($script); - $this->addRetrievePrevSibling($script); - $this->addRetrieveNextSibling($script); - - $this->addInsertAsFirstChildOf($script); - $this->addInsertAsLastChildOf($script); - - $this->addInsertAsPrevSiblingOf($script); - $this->addInsertAsNextSiblingOf($script); - - $this->addMoveToFirstChildOf($script); - $this->addMoveToLastChildOf($script); - - $this->addMoveToPrevSiblingOf($script); - $this->addMoveToNextSiblingOf($script); - - $this->addInsertAsParentOf($script); - - $this->addGetLeft($script); - $this->addGetRight($script); - $this->addGetScopeId($script); - - $this->addSetLeft($script); - $this->addSetRight($script); - $this->addSetScopeId($script); - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - } - - - /** - * Adds class attributes. - * @param string &$script The script will be modified in this method. - */ - protected function addAttributes(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $script .= " - /** - * Store level of node - * @var int - */ - protected \$level = null; - - /** - * Store if node has prev sibling - * @var bool - */ - protected \$hasPrevSibling = null; - - /** - * Store node if has prev sibling - * @var $objectClassName - */ - protected \$prevSibling = null; - - /** - * Store if node has next sibling - * @var bool - */ - protected \$hasNextSibling = null; - - /** - * Store node if has next sibling - * @var $objectClassName - */ - protected \$nextSibling = null; - - /** - * Store if node has parent node - * @var bool - */ - protected \$hasParentNode = null; - - /** - * The parent node for this node. - * @var $objectClassName - */ - protected \$parentNode = null; - - /** - * Store children of the node - * @var array - */ - protected \$_children = null; -"; - } - - protected function addGetIterator(&$script) - { - $script .= " - /** - * Returns a pre-order iterator for this node and its children. - * - * @return NodeIterator - */ - public function getIterator() - { - return new NestedSetRecursiveIterator(\$this); - } -"; - } - - protected function addSave(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Saves modified object data to the datastore. - * If object is saved without left/right values, set them as undefined (0) - * - * @param PropelPDO Connection to use. - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * May be unreliable with parent/children/brother changes - * @throws PropelException - */ - public function save(PropelPDO \$con = null) - { - \$left = \$this->getLeftValue(); - \$right = \$this->getRightValue(); - if (empty(\$left) || empty(\$right)) { - \$root = $peerClassname::retrieveRoot(\$this->getScopeIdValue(), \$con); - $peerClassname::insertAsLastChildOf(\$this, \$root, \$con); - } - - return parent::save(\$con); - } -"; - } - - protected function addDelete(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Removes this object and all descendants from datastore. - * - * @param PropelPDO Connection to use. - * @return void - * @throws PropelException - */ - public function delete(PropelPDO \$con = null) - { - // delete node first - parent::delete(\$con); - - // delete descendants and then shift tree - $peerClassname::deleteDescendants(\$this, \$con); - } -"; - } - - protected function addMakeRoot(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Sets node properties to make it a root node. - * - * @return $objectClassName The current object (for fluent API support) - * @throws PropelException - */ - public function makeRoot() - { - $peerClassname::createRoot(\$this); - return \$this; - } -"; - } - - protected function addGetLevel(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets the level if set, otherwise calculates this and returns it - * - * @param PropelPDO Connection to use. - * @return int - */ - public function getLevel(PropelPDO \$con = null) - { - if (null === \$this->level) { - \$this->level = $peerClassname::getLevel(\$this, \$con); - } - return \$this->level; - } -"; - } - - protected function addSetLevel(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $script .= " - /** - * Sets the level of the node in the tree - * - * @param int \$v new value - * @return $objectClassName The current object (for fluent API support) - */ - public function setLevel(\$level) - { - \$this->level = \$level; - return \$this; - } -"; - } - - protected function addSetChildren(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $script .= " - /** - * Sets the children array of the node in the tree - * - * @param array of $objectClassName \$children array of Propel node object - * @return $objectClassName The current object (for fluent API support) - */ - public function setChildren(array \$children) - { - \$this->_children = \$children; - return \$this; - } -"; - } - - protected function addSetParentNode(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Sets the parentNode of the node in the tree - * - * @param $objectClassName \$parent Propel node object - * @return $objectClassName The current object (for fluent API support) - */ - public function setParentNode(NodeObject \$parent = null) - { - \$this->parentNode = (true === (\$this->hasParentNode = $peerClassname::isValid(\$parent))) ? \$parent : null; - return \$this; - } -"; - } - - protected function addSetPrevSibling(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Sets the previous sibling of the node in the tree - * - * @param $objectClassName \$node Propel node object - * @return $objectClassName The current object (for fluent API support) - */ - public function setPrevSibling(NodeObject \$node = null) - { - \$this->prevSibling = \$node; - \$this->hasPrevSibling = $peerClassname::isValid(\$node); - return \$this; - } -"; - } - - protected function addSetNextSibling(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Sets the next sibling of the node in the tree - * - * @param $objectClassName \$node Propel node object - * @return $objectClassName The current object (for fluent API support) - */ - public function setNextSibling(NodeObject \$node = null) - { - \$this->nextSibling = \$node; - \$this->hasNextSibling = $peerClassname::isValid(\$node); - return \$this; - } -"; - } - - protected function addGetPath(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Get the path to the node in the tree - * - * @param PropelPDO Connection to use. - * @return array - */ - public function getPath(PropelPDO \$con = null) - { - return $peerClassname::getPath(\$this, \$con); - } -"; - } - - protected function addGetNumberOfChildren(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets the number of children for the node (direct descendants) - * - * @param PropelPDO Connection to use. - * @return int - */ - public function getNumberOfChildren(PropelPDO \$con = null) - { - return $peerClassname::getNumberOfChildren(\$this, \$con); - } -"; - } - - protected function addGetNumberOfDescendants(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets the total number of descendants for the node - * - * @param PropelPDO Connection to use. - * @return int - */ - public function getNumberOfDescendants(PropelPDO \$con = null) - { - return $peerClassname::getNumberOfDescendants(\$this, \$con); - } -"; - } - - protected function addGetChildren(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets the children for the node - * - * @param PropelPDO Connection to use. - * @return array - */ - public function getChildren(PropelPDO \$con = null) - { - \$this->getLevel(); - - if (is_array(\$this->_children)) { - return \$this->_children; - } - - return $peerClassname::retrieveChildren(\$this, \$con); - } -"; - } - - protected function addGetDescendants(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets the descendants for the node - * - * @param PropelPDO Connection to use. - * @return array - */ - public function getDescendants(PropelPDO \$con = null) - { - \$this->getLevel(); - - return $peerClassname::retrieveDescendants(\$this, \$con); - } -"; - } - - protected function addIsRoot(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Returns true if node is the root node of the tree. - * - * @return bool - */ - public function isRoot() - { - return $peerClassname::isRoot(\$this); - } -"; - } - - protected function addIsLeaf(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Return true if the node is a leaf node - * - * @return bool - */ - public function isLeaf() - { - return $peerClassname::isLeaf(\$this); - } -"; - } - - protected function addIsEqualTo(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Tests if object is equal to \$node - * - * @param object \$node Propel object for node to compare to - * @return bool - */ - public function isEqualTo(NodeObject \$node) - { - return $peerClassname::isEqualTo(\$this, \$node); - } -"; - } - - protected function addHasParent(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Tests if object has an ancestor - * - * @param PropelPDO \$con Connection to use. - * @return bool - */ - public function hasParent(PropelPDO \$con = null) - { - if (null === \$this->hasParentNode) { - $peerClassname::hasParent(\$this, \$con); - } - return \$this->hasParentNode; - } -"; - } - - protected function addHasChildren(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Determines if the node has children / descendants - * - * @return bool - */ - public function hasChildren() - { - return $peerClassname::hasChildren(\$this); - } -"; - } - - protected function addHasPrevSibling(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Determines if the node has previous sibling - * - * @param PropelPDO \$con Connection to use. - * @return bool - */ - public function hasPrevSibling(PropelPDO \$con = null) - { - if (null === \$this->hasPrevSibling) { - $peerClassname::hasPrevSibling(\$this, \$con); - } - return \$this->hasPrevSibling; - } -"; - } - - protected function addHasNextSibling(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Determines if the node has next sibling - * - * @param PropelPDO \$con Connection to use. - * @return bool - */ - public function hasNextSibling(PropelPDO \$con = null) - { - if (null === \$this->hasNextSibling) { - $peerClassname::hasNextSibling(\$this, \$con); - } - return \$this->hasNextSibling; - } -"; - } - - protected function addRetrieveParent(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets ancestor for the given node if it exists - * - * @param PropelPDO \$con Connection to use. - * @return mixed Propel object if exists else false - */ - public function retrieveParent(PropelPDO \$con = null) - { - if (null === \$this->hasParentNode) { - \$this->parentNode = $peerClassname::retrieveParent(\$this, \$con); - \$this->hasParentNode = $peerClassname::isValid(\$this->parentNode); - } - return \$this->parentNode; - } -"; - } - - protected function addRetrieveFirstChild(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets first child if it exists - * - * @param PropelPDO \$con Connection to use. - * @return mixed Propel object if exists else false - */ - public function retrieveFirstChild(PropelPDO \$con = null) - { - if (\$this->hasChildren(\$con)) { - if (is_array(\$this->_children)) { - return \$this->_children[0]; - } - - return $peerClassname::retrieveFirstChild(\$this, \$con); - } - return false; - } -"; - } - - protected function addRetrieveLastChild(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets last child if it exists - * - * @param PropelPDO \$con Connection to use. - * @return mixed Propel object if exists else false - */ - public function retrieveLastChild(PropelPDO \$con = null) - { - if (\$this->hasChildren(\$con)) { - if (is_array(\$this->_children)) { - \$last = count(\$this->_children) - 1; - return \$this->_children[\$last]; - } - - return $peerClassname::retrieveLastChild(\$this, \$con); - } - return false; - } -"; - } - - protected function addRetrievePrevSibling(&$script) - { - $script .= " - /** - * Gets prev sibling for the given node if it exists - * - * @param PropelPDO \$con Connection to use. - * @return mixed Propel object if exists else false - */ - public function retrievePrevSibling(PropelPDO \$con = null) - { - if (\$this->hasPrevSibling(\$con)) { - return \$this->prevSibling; - } - return \$this->hasPrevSibling; - } -"; - } - - protected function addRetrieveNextSibling(&$script) - { - $script .= " - /** - * Gets next sibling for the given node if it exists - * - * @param PropelPDO \$con Connection to use. - * @return mixed Propel object if exists else false - */ - public function retrieveNextSibling(PropelPDO \$con = null) - { - if (\$this->hasNextSibling(\$con)) { - return \$this->nextSibling; - } - return \$this->hasNextSibling; - } -"; - } - - protected function addInsertAsFirstChildOf(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Inserts as first child of given destination node \$parent - * - * @param $objectClassName \$parent Propel object for destination node - * @param PropelPDO \$con Connection to use. - * @return $objectClassName The current object (for fluent API support) - * @throws PropelException - if this object already exists - */ - public function insertAsFirstChildOf(NodeObject \$parent, PropelPDO \$con = null) - { - if (!\$this->isNew()) - { - throw new PropelException(\"$objectClassName must be new.\"); - } - $peerClassname::insertAsFirstChildOf(\$this, \$parent, \$con); - return \$this; - } -"; - } - - protected function addInsertAsLastChildOf(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Inserts as last child of given destination node \$parent - * - * @param $objectClassName \$parent Propel object for destination node - * @param PropelPDO \$con Connection to use. - * @return $objectClassName The current object (for fluent API support) - * @throws PropelException - if this object already exists - */ - public function insertAsLastChildOf(NodeObject \$parent, PropelPDO \$con = null) - { - if (!\$this->isNew()) - { - throw new PropelException(\"$objectClassName must be new.\"); - } - $peerClassname::insertAsLastChildOf(\$this, \$parent, \$con); - return \$this; - } -"; - } - - protected function addInsertAsPrevSiblingOf(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Inserts \$node as previous sibling to given destination node \$dest - * - * @param $objectClassName \$dest Propel object for destination node - * @param PropelPDO \$con Connection to use. - * @return $objectClassName The current object (for fluent API support) - * @throws PropelException - if this object already exists - */ - public function insertAsPrevSiblingOf(NodeObject \$dest, PropelPDO \$con = null) - { - if (!\$this->isNew()) - { - throw new PropelException(\"$objectClassName must be new.\"); - } - $peerClassname::insertAsPrevSiblingOf(\$this, \$dest, \$con); - return \$this; - } -"; - } - - protected function addInsertAsNextSiblingOf(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Inserts \$node as next sibling to given destination node \$dest - * - * @param $objectClassName \$dest Propel object for destination node - * @param PropelPDO \$con Connection to use. - * @return $objectClassName The current object (for fluent API support) - * @throws PropelException - if this object already exists - */ - public function insertAsNextSiblingOf(NodeObject \$dest, PropelPDO \$con = null) - { - if (!\$this->isNew()) - { - throw new PropelException(\"$objectClassName must be new.\"); - } - $peerClassname::insertAsNextSiblingOf(\$this, \$dest, \$con); - return \$this; - } -"; - } - - protected function addMoveToFirstChildOf(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Moves node to be first child of \$parent - * - * @param $objectClassName \$parent Propel object for destination node - * @param PropelPDO \$con Connection to use. - * @return $objectClassName The current object (for fluent API support) - */ - public function moveToFirstChildOf(NodeObject \$parent, PropelPDO \$con = null) - { - if (\$this->isNew()) - { - throw new PropelException(\"$objectClassName must exist in tree.\"); - } - $peerClassname::moveToFirstChildOf(\$parent, \$this, \$con); - return \$this; - } -"; - } - - protected function addMoveToLastChildOf(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Moves node to be last child of \$parent - * - * @param $objectClassName \$parent Propel object for destination node - * @param PropelPDO \$con Connection to use. - * @return $objectClassName The current object (for fluent API support) - */ - public function moveToLastChildOf(NodeObject \$parent, PropelPDO \$con = null) - { - if (\$this->isNew()) - { - throw new PropelException(\"$objectClassName must exist in tree.\"); - } - $peerClassname::moveToLastChildOf(\$parent, \$this, \$con); - return \$this; - } -"; - } - - protected function addMoveToPrevSiblingOf(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Moves node to be prev sibling to \$dest - * - * @param $objectClassName \$dest Propel object for destination node - * @param PropelPDO \$con Connection to use. - * @return $objectClassName The current object (for fluent API support) - */ - public function moveToPrevSiblingOf(NodeObject \$dest, PropelPDO \$con = null) - { - if (\$this->isNew()) - { - throw new PropelException(\"$objectClassName must exist in tree.\"); - } - $peerClassname::moveToPrevSiblingOf(\$dest, \$this, \$con); - return \$this; - } -"; - } - - protected function addMoveToNextSiblingOf(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Moves node to be next sibling to \$dest - * - * @param $objectClassName \$dest Propel object for destination node - * @param PropelPDO \$con Connection to use. - * @return $objectClassName The current object (for fluent API support) - */ - public function moveToNextSiblingOf(NodeObject \$dest, PropelPDO \$con = null) - { - if (\$this->isNew()) - { - throw new PropelException(\"$objectClassName must exist in tree.\"); - } - $peerClassname::moveToNextSiblingOf(\$dest, \$this, \$con); - return \$this; - } -"; - } - - protected function addInsertAsParentOf(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Inserts node as parent of given node. - * - * @param $objectClassName \$node Propel object for destination node - * @param PropelPDO \$con Connection to use. - * @return $objectClassName The current object (for fluent API support) - */ - public function insertAsParentOf(NodeObject \$node, PropelPDO \$con = null) - { - $peerClassname::insertAsParentOf(\$this, \$node, \$con); - return \$this; - } -"; - } - - protected function addGetLeft(&$script) - { - $table = $this->getTable(); - - foreach ($table->getColumns() as $col) { - if ($col->isNestedSetLeftKey()) { - $left_col_getter_name = 'get'.$col->getPhpName(); - break; - } - } - - $script .= " - /** - * Wraps the getter for the left value - * - * @return int - */ - public function getLeftValue() - { - return \$this->$left_col_getter_name(); - } -"; - } - - protected function addGetRight(&$script) - { - $table = $this->getTable(); - - foreach ($table->getColumns() as $col) { - if ($col->isNestedSetRightKey()) { - $right_col_getter_name = 'get'.$col->getPhpName(); - break; - } - } - - $script .= " - /** - * Wraps the getter for the right value - * - * @return int - */ - public function getRightValue() - { - return \$this->$right_col_getter_name(); - } -"; - } - - protected function addGetScopeId(&$script) - { - $table = $this->getTable(); - - $scope_col_getter_name = null; - foreach ($table->getColumns() as $col) { - if ($col->isTreeScopeKey()) { - $scope_col_getter_name = 'get'.$col->getPhpName(); - break; - } - } - - $script .= " - /** - * Wraps the getter for the scope value - * - * @return int or null if scope is disabled - */ - public function getScopeIdValue() - {"; - if ($scope_col_getter_name) { - $script .= " - return \$this->$scope_col_getter_name();"; - } else { - $script .= " - return null;"; - } - $script .= " - } -"; - } - - protected function addSetLeft(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $table = $this->getTable(); - - foreach ($table->getColumns() as $col) { - if ($col->isNestedSetLeftKey()) { - $left_col_setter_name = 'set'.$col->getPhpName(); - break; - } - } - - $script .= " - /** - * Set the value left column - * - * @param int \$v new value - * @return $objectClassName The current object (for fluent API support) - */ - public function setLeftValue(\$v) - { - \$this->$left_col_setter_name(\$v); - return \$this; - } -"; - } - - protected function addSetRight(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $table = $this->getTable(); - - foreach ($table->getColumns() as $col) { - if ($col->isNestedSetRightKey()) { - $right_col_setter_name = 'set'.$col->getPhpName(); - break; - } - } - - $script .= " - /** - * Set the value of right column - * - * @param int \$v new value - * @return $objectClassName The current object (for fluent API support) - */ - public function setRightValue(\$v) - { - \$this->$right_col_setter_name(\$v); - return \$this; - } -"; - } - - protected function addSetScopeId(&$script) - { - $objectClassName = $this->getStubObjectBuilder()->getClassname(); - $table = $this->getTable(); - - $scope_col_setter_name = null; - foreach ($table->getColumns() as $col) { - if ($col->isTreeScopeKey()) { - $scope_col_setter_name = 'set'.$col->getPhpName(); - break; - } - } - - $script .= " - /** - * Set the value of scope column - * - * @param int \$v new value - * @return $objectClassName The current object (for fluent API support) - */ - public function setScopeIdValue(\$v) - {"; - if ($scope_col_setter_name) { - $script .= " - \$this->$scope_col_setter_name(\$v);"; - } - $script .= " - return \$this; - } -"; - - } - -} // PHP5NestedSetBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5NestedSetPeerBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PHP5NestedSetPeerBuilder.php deleted file mode 100644 index ad5fa05c19..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5NestedSetPeerBuilder.php +++ /dev/null @@ -1,1727 +0,0 @@ - - * @package propel.generator.builder.om - */ -class PHP5NestedSetPeerBuilder extends PeerBuilder -{ - - /** - * Gets the package for the [base] object classes. - * @return string - */ - public function getPackage() - { - return parent::getPackage() . ".om"; - } - - /** - * Returns the name of the current class being built. - * @return string - */ - public function getUnprefixedClassname() - { - return $this->getBuildProperty('basePrefix') . $this->getStubObjectBuilder()->getUnprefixedClassname() . 'NestedSetPeer'; - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - $script .=" -require '".$this->getPeerBuilder()->getClassFilePath()."'; -"; - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - - $table = $this->getTable(); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - - $script .= " -/** - * Base static class for performing query operations on the tree contained by the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * @deprecated Since Propel 1.5. Use the nested_set behavior instead of the NestedSet treeMode - * @package propel.generator.".$this->getPackage()." - */ -abstract class ".$this->getClassname()." extends ".$this->getPeerBuilder()->getClassName()." implements NodePeer { -"; - } - - /** - * Specifies the methods that are added as part of the basic OM class. - * This can be overridden by subclasses that wish to add more methods. - * @see ObjectBuilder::addClassBody() - */ - protected function addClassBody(&$script) - { - $table = $this->getTable(); - - // FIXME - // - Probably the build needs to be customized for supporting - // tables that are "aliases". -- definitely a fringe usecase, though. - - $this->addConstants($script); - - $this->addCreateRoot($script); - - $this->addRetrieveRoot($script); - - $this->addInsertAsFirstChildOf($script); - $this->addInsertAsLastChildOf($script); - $this->addInsertAsPrevSiblingOf($script); - $this->addInsertAsNextSiblingOf($script); - $this->addInsertAsParentOf($script); - - $this->addInsertRoot($script); - $this->addInsertParent($script); - - $this->addDeleteRoot($script); - $this->addDeleteNode($script); - - $this->addMoveToFirstChildOf($script); - $this->addMoveToLastChildOf($script); - $this->addMoveToPrevSiblingOf($script); - $this->addMoveToNextSiblingOf($script); - - $this->addRetrieveFirstChild($script); - $this->addRetrieveLastChild($script); - $this->addRetrievePrevSibling($script); - $this->addRetrieveNextSibling($script); - - $this->addRetrieveTree($script); - $this->addRetrieveBranch($script); - $this->addRetrieveChildren($script); - $this->addRetrieveDescendants($script); - $this->addRetrieveSiblings($script); - $this->addRetrieveParent($script); - - $this->addGetLevel($script); - $this->addGetNumberOfChildren($script); - $this->addGetNumberOfDescendants($script); - $this->addGetPath($script); - - $this->addIsValid($script); - $this->addIsRoot($script); - $this->addIsLeaf($script); - $this->addIsChildOf($script); - $this->addIsChildOfOrSiblingTo($script); - $this->addIsEqualTo($script); - - $this->addHasParent($script); - $this->addHasPrevSibling($script); - $this->addHasNextSibling($script); - $this->addHasChildren($script); - - $this->addDeleteDescendants($script); - - $this->addGetNode($script); - - $this->addHydrateDescendants($script); - $this->addHydrateChildren($script); - - $this->addShiftRParent($script); - $this->addUpdateLoadedNode($script); - $this->addUpdateDBNode($script); - - $this->addShiftRLValues($script); - $this->addShiftRLRange($script); - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - } - - protected function addConstants(&$script) - { - $table = $this->getTable(); - $tableName = $table->getName(); - - $colname = array(); - - foreach ($table->getColumns() as $col) { - if ($col->isNestedSetLeftKey()) { - $colname['left'] = $tableName . '.' . strtoupper($col->getName()); - } - - if ($col->isNestedSetRightKey()) { - $colname['right'] = $tableName . '.' . strtoupper($col->getName()); - } - - if ($col->isTreeScopeKey()) { - $colname['scope'] = $tableName . '.' . strtoupper($col->getName()); - } - - if (3 == count($colname)) { - break; - } - } - - if(!isset($colname['left'])) { - throw new EngineException("One column must have nestedSetLeftKey attribute set to true for [" . $table->getName() . "] table"); - } - - if(!isset($colname['right'])) { - throw new EngineException("One column must have nestedSetRightKey attribute set to true for [" . $table->getName() . "] table"); - } - - $colname['scope'] = isset($colname['scope']) ? $colname['scope'] : null; - - $script .= " - /** - * Left column for the set - */ - const LEFT_COL = " . var_export($colname['left'], true) . "; - - /** - * Right column for the set - */ - const RIGHT_COL = " . var_export($colname['right'], true) . "; - - /** - * Scope column for the set - */ - const SCOPE_COL = " . var_export($colname['scope'], true) . "; -"; - } - - protected function addCreateRoot(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Creates the supplied node as the root node. - * - * @param $objectClassname \$node Propel object for model - * @throws PropelException - */ - public static function createRoot(NodeObject \$node) - { - if (\$node->getLeftValue()) { - throw new PropelException('Cannot turn an existing node into a root node.'); - } - - \$node->setLeftValue(1); - \$node->setRightValue(2); - } -"; - } - - protected function addRetrieveRoot(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Returns the root node for a given scope id - * - * @param int \$scopeId Scope id to determine which root node to return - * @param PropelPDO \$con Connection to use. - * @return $objectClassname Propel object for root node - */ - public static function retrieveRoot(\$scopeId = null, PropelPDO \$con = null) - { - \$c = new Criteria($peerClassname::DATABASE_NAME); - - \$c->add(self::LEFT_COL, 1, Criteria::EQUAL); - - if (self::SCOPE_COL) { - \$c->add(self::SCOPE_COL, \$scopeId, Criteria::EQUAL); - } - - return $peerClassname::doSelectOne(\$c, \$con); - } -"; - } - - protected function addInsertAsFirstChildOf(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Inserts \$child as first child of given \$parent node - * - * @param $objectClassname \$child Propel object for child node - * @param $objectClassname \$parent Propel object for parent node - * @param PropelPDO \$con Connection to use. - * @return void - */ - public static function insertAsFirstChildOf(NodeObject \$child, NodeObject \$parent, PropelPDO \$con = null) - { - // Update \$child node properties - \$child->setLeftValue(\$parent->getLeftValue() + 1); - \$child->setRightValue(\$parent->getLeftValue() + 2); - \$child->setParentNode(\$parent); - - \$sidv = null; - if (self::SCOPE_COL) { - \$child->setScopeIdValue(\$sidv = \$parent->getScopeIdValue()); - } - - // Update database nodes - self::shiftRLValues(\$child->getLeftValue(), 2, \$con, \$sidv); - - // Update all loaded nodes - self::updateLoadedNode(\$parent, 2, \$con); - } -"; - } - - protected function addInsertAsLastChildOf(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Inserts \$child as last child of destination node \$parent - * - * @param $objectClassname \$child Propel object for child node - * @param $objectClassname \$parent Propel object for parent node - * @param PropelPDO \$con Connection to use. - * @return void - */ - public static function insertAsLastChildOf(NodeObject \$child, NodeObject \$parent, PropelPDO \$con = null) - { - // Update \$child node properties - \$child->setLeftValue(\$parent->getRightValue()); - \$child->setRightValue(\$parent->getRightValue() + 1); - \$child->setParentNode(\$parent); - - \$sidv = null; - if (self::SCOPE_COL) { - \$child->setScopeIdValue(\$sidv = \$parent->getScopeIdValue()); - } - - // Update database nodes - self::shiftRLValues(\$child->getLeftValue(), 2, \$con, \$sidv); - - // Update all loaded nodes - self::updateLoadedNode(\$parent, 2, \$con); - } -"; - } - - protected function addInsertAsPrevSiblingOf(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Inserts \$sibling as previous sibling to destination node \$node - * - * @param $objectClassname \$node Propel object for destination node - * @param $objectClassname \$sibling Propel object for source node - * @param PropelPDO \$con Connection to use. - * @return void - */ - public static function insertAsPrevSiblingOf(NodeObject \$node, NodeObject \$sibling, PropelPDO \$con = null) - { - if (\$sibling->isRoot()) { - throw new PropelException('Root nodes cannot have siblings'); - } - - \$node->setLeftValue(\$sibling->getLeftValue()); - \$node->setRightValue(\$sibling->getLeftValue() + 1); - \$node->setParentNode(\$sibling->retrieveParent()); - - \$sidv = null; - if (self::SCOPE_COL) { - \$node->setScopeIdValue(\$sidv = \$sibling->getScopeIdValue()); - } - - // Update database nodes - self::shiftRLValues(\$node->getLeftValue(), 2, \$con, \$sidv); - - // Update all loaded nodes - self::updateLoadedNode(\$sibling->retrieveParent(), 2, \$con); - } -"; - } - - protected function addInsertAsNextSiblingOf(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Inserts \$sibling as next sibling to destination node \$node - * - * @param $objectClassname \$node Propel object for destination node - * @param $objectClassname \$sibling Propel object for source node - * @param PropelPDO \$con Connection to use. - * @return void - */ - public static function insertAsNextSiblingOf(NodeObject \$node, NodeObject \$sibling, PropelPDO \$con = null) - { - if (\$sibling->isRoot()) { - throw new PropelException('Root nodes cannot have siblings'); - } - - \$node->setLeftValue(\$sibling->getRightValue() + 1); - \$node->setRightValue(\$sibling->getRightValue() + 2); - \$node->setParentNode(\$sibling->retrieveParent()); - - \$sidv = null; - if (self::SCOPE_COL) { - \$node->setScopeIdValue(\$sidv = \$sibling->getScopeIdValue()); - } - - // Update database nodes - self::shiftRLValues(\$node->getLeftValue(), 2, \$con, \$sidv); - - // Update all loaded nodes - self::updateLoadedNode(\$sibling->retrieveParent(), 2, \$con); - } -"; - } - - protected function addInsertAsParentOf(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Inserts \$parent as parent of given node. - * - * @param $objectClassname \$parent Propel object for given parent node - * @param $objectClassname \$node Propel object for given destination node - * @param PropelPDO \$con Connection to use. - * @return void - */ - public static function insertAsParentOf(NodeObject \$parent, NodeObject \$node, PropelPDO \$con = null) - { - \$sidv = null; - if (self::SCOPE_COL) { - \$sidv = \$node->getScopeIdValue(); - } - - self::shiftRLValues(\$node->getLeftValue(), 1, \$con, \$sidv); - self::shiftRLValues(\$node->getRightValue() + 2, 1, \$con, \$sidv); - - if (self::SCOPE_COL) { - \$parent->setScopeIdValue(\$sidv); - } - - \$parent->setLeftValue(\$node->getLeftValue()); - \$parent->setRightValue(\$node->getRightValue() + 2); - - \$previous_parent = \$node->retrieveParent(); - \$parent->setParentNode(\$previous_parent); - \$node->setParentNode(\$parent); - - \$node->save(\$con); - - // Update all loaded nodes - self::updateLoadedNode(\$previous_parent, 2, \$con); - } -"; - } - - protected function addInsertRoot(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Inserts \$node as root node - * - * @param $objectClassname \$node Propel object as root node - * @param PropelPDO \$con Connection to use. - * @return void - */ - public static function insertRoot(NodeObject \$node, PropelPDO \$con = null) - { - \$sidv = null; - if (self::SCOPE_COL) { - \$sidv = \$node->getScopeIdValue(); - } - - $peerClassname::insertAsParentOf($peerClassname::retrieveRoot(\$sidv, \$con), \$node, \$con); - } -"; - } - - protected function addInsertParent(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Inserts \$parent as parent to destination node \$child - * - * @deprecated 1.3 - 2007/11/06 - * @see insertAsParentOf() - * @param $objectClassname \$child Propel object to become child node - * @param $objectClassname \$parent Propel object as parent node - * @param PropelPDO \$con Connection to use. - * @return void - */ - public static function insertParent(NodeObject \$child, NodeObject \$parent, PropelPDO \$con = null) - { - self::insertAsParentOf(\$parent, \$child, \$con); - } -"; - } - - protected function addDeleteRoot(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Delete root node - * - * @param PropelPDO \$con Connection to use. - * @return boolean Deletion status - */ - public static function deleteRoot(\$scopeId = null, PropelPDO \$con = null) - { - if (!self::SCOPE_COL) { - \$scopeId = null; - } - \$root = $peerClassname::retrieveRoot(\$scopeId, \$con); - if ($peerClassname::getNumberOfChildren(\$root) == 1) { - return $peerClassname::deleteNode(\$root, \$con); - } else { - return false; - } - } -"; - } - - protected function addDeleteNode(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Delete \$dest node - * - * @param $objectClassname \$dest Propel object node to delete - * @param PropelPDO \$con Connection to use. - * @return boolean Deletion status - */ - public static function deleteNode(NodeObject \$dest, PropelPDO \$con = null) - { - if (\$dest->getLeftValue() == 1) { - // deleting root implies conditions (see deleteRoot() method) - return $peerClassname::deleteRoot(\$con); - } - - \$sidv = null; - if (self::SCOPE_COL) { - \$sidv = \$dest->getScopeIdValue(); - } - - self::shiftRLRange(\$dest->getLeftValue(), \$dest->getRightValue(), -1, \$con, \$sidv); - self::shiftRLValues(\$dest->getRightValue() + 1, -2, \$con, \$sidv); - return \$dest->delete(\$con); - } -"; - } - - protected function addMoveToFirstChildOf(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Moves \$child to be first child of \$parent - * - * @param $objectClassname \$parent Propel object for parent node - * @param $objectClassname \$child Propel object for child node - * @param PropelPDO \$con Connection to use. - * @return void - */ - public static function moveToFirstChildOf(NodeObject \$parent, NodeObject \$child, PropelPDO \$con = null) - { - if (\$parent->getScopeIdValue() != \$child->getScopeIdValue()) { - throw new PropelException('Moving nodes across trees is not supported'); - } - \$destLeft = \$parent->getLeftValue() + 1; - self::updateDBNode(\$child, \$destLeft, \$con); - - // Update all loaded nodes - self::updateLoadedNode(\$parent, 2, \$con); - } -"; - } - - protected function addMoveToLastChildOf(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Moves \$child to be last child of \$parent - * - * @param $objectClassname \$parent Propel object for parent node - * @param $objectClassname \$child Propel object for child node - * @param PropelPDO \$con Connection to use. - * @return void - */ - public static function moveToLastChildOf(NodeObject \$parent, NodeObject \$child, PropelPDO \$con = null) - { - if (\$parent->getScopeIdValue() != \$child->getScopeIdValue()) { - throw new PropelException('Moving nodes across trees is not supported'); - } - \$destLeft = \$parent->getRightValue(); - self::updateDBNode(\$child, \$destLeft, \$con); - - // Update all loaded nodes - self::updateLoadedNode(\$parent, 2, \$con); - } -"; - } - - protected function addMoveToPrevSiblingOf(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Moves \$node to be prev sibling to \$dest - * - * @param $objectClassname \$dest Propel object for destination node - * @param $objectClassname \$node Propel object for source node - * @param PropelPDO \$con Connection to use. - * @return void - */ - public static function moveToPrevSiblingOf(NodeObject \$dest, NodeObject \$node, PropelPDO \$con = null) - { - if (\$dest->getScopeIdValue() != \$node->getScopeIdValue()) { - throw new PropelException('Moving nodes across trees is not supported'); - } - \$destLeft = \$dest->getLeftValue(); - self::updateDBNode(\$node, \$destLeft, \$con); - - // Update all loaded nodes - self::updateLoadedNode(\$dest->retrieveParent(), 2, \$con); - } -"; - } - - protected function addMoveToNextSiblingOf(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Moves \$node to be next sibling to \$dest - * - * @param $objectClassname \$dest Propel object for destination node - * @param $objectClassname \$node Propel object for source node - * @param PropelPDO \$con Connection to use. - * @return void - */ - public static function moveToNextSiblingOf(NodeObject \$dest, NodeObject \$node, PropelPDO \$con = null) - { - if (\$dest->getScopeIdValue() != \$node->getScopeIdValue()) { - throw new PropelException('Moving nodes across trees is not supported'); - } - \$destLeft = \$dest->getRightValue(); - \$destLeft = \$destLeft + 1; - self::updateDBNode(\$node, \$destLeft, \$con); - - // Update all loaded nodes - self::updateLoadedNode(\$dest->retrieveParent(), 2, \$con); - } -"; - } - - protected function addRetrieveFirstChild(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets first child for the given node if it exists - * - * @param $objectClassname \$node Propel object for src node - * @param PropelPDO \$con Connection to use. - * @return mixed Propel object if exists else false - */ - public static function retrieveFirstChild(NodeObject \$node, PropelPDO \$con = null) - { - \$c = new Criteria($peerClassname::DATABASE_NAME); - \$c->add(self::LEFT_COL, \$node->getLeftValue() + 1, Criteria::EQUAL); - if (self::SCOPE_COL) { - \$c->add(self::SCOPE_COL, \$node->getScopeIdValue(), Criteria::EQUAL); - } - - return $peerClassname::doSelectOne(\$c, \$con); - } -"; - } - - protected function addRetrieveLastChild(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets last child for the given node if it exists - * - * @param $objectClassname \$node Propel object for src node - * @param PropelPDO \$con Connection to use. - * @return mixed Propel object if exists else false - */ - public static function retrieveLastChild(NodeObject \$node, PropelPDO \$con = null) - { - \$c = new Criteria($peerClassname::DATABASE_NAME); - \$c->add(self::RIGHT_COL, \$node->getRightValue() - 1, Criteria::EQUAL); - if (self::SCOPE_COL) { - \$c->add(self::SCOPE_COL, \$node->getScopeIdValue(), Criteria::EQUAL); - } - - return $peerClassname::doSelectOne(\$c, \$con); - } -"; - } - - protected function addRetrievePrevSibling(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets prev sibling for the given node if it exists - * - * @param $objectClassname \$node Propel object for src node - * @param PropelPDO \$con Connection to use. - * @return mixed Propel object if exists else null - */ - public static function retrievePrevSibling(NodeObject \$node, PropelPDO \$con = null) - { - \$c = new Criteria($peerClassname::DATABASE_NAME); - \$c->add(self::RIGHT_COL, \$node->getLeftValue() - 1, Criteria::EQUAL); - if (self::SCOPE_COL) { - \$c->add(self::SCOPE_COL, \$node->getScopeIdValue(), Criteria::EQUAL); - } - \$prevSibling = $peerClassname::doSelectOne(\$c, \$con); - \$node->setPrevSibling(\$prevSibling); - return \$prevSibling; - } -"; - } - - protected function addRetrieveNextSibling(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets next sibling for the given node if it exists - * - * @param $objectClassname \$node Propel object for src node - * @param PropelPDO \$con Connection to use. - * @return mixed Propel object if exists else false - */ - public static function retrieveNextSibling(NodeObject \$node, PropelPDO \$con = null) - { - \$c = new Criteria($peerClassname::DATABASE_NAME); - \$c->add(self::LEFT_COL, \$node->getRightValue() + 1, Criteria::EQUAL); - if (self::SCOPE_COL) { - \$c->add(self::SCOPE_COL, \$node->getScopeIdValue(), Criteria::EQUAL); - } - \$nextSibling = $peerClassname::doSelectOne(\$c, \$con); - \$node->setNextSibling(\$nextSibling); - return \$nextSibling; - } -"; - } - - protected function addRetrieveTree(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Retrieves the entire tree from root - * - * @param PropelPDO \$con Connection to use. - */ - public static function retrieveTree(\$scopeId = null, PropelPDO \$con = null) - { - \$c = new Criteria($peerClassname::DATABASE_NAME); - \$c->addAscendingOrderByColumn(self::LEFT_COL); - if (self::SCOPE_COL) { - \$c->add(self::SCOPE_COL, \$scopeId, Criteria::EQUAL); - } - \$stmt = $peerClassname::doSelectStmt(\$c, \$con); - if (false !== (\$row = \$stmt->fetch(PDO::FETCH_NUM))) { - \$omClass = $peerClassname::getOMClass(\$row, 0); - \$cls = substr('.'.\$omClass, strrpos('.'.\$omClass, '.') + 1); - - \$key = ".$peerClassname."::getPrimaryKeyHashFromRow(\$row, 0); - if (null === (\$root = ".$peerClassname."::getInstanceFromPool(\$key))) { - " . $this->buildObjectInstanceCreationCode('$root', '$cls') . " - \$root->hydrate(\$row); - } - - \$root->setLevel(0); - $peerClassname::hydrateDescendants(\$root, \$stmt); - $peerClassname::addInstanceToPool(\$root); - - \$stmt->closeCursor(); - return \$root; - } - return false; - } -"; - } - - protected function addRetrieveBranch(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Retrieves the entire tree from parent \$node - * - * @param $objectClassname \$node Propel object for parent node - * @param PropelPDO \$con Connection to use. - */ - public static function retrieveBranch(NodeObject \$node, PropelPDO \$con = null) - { - return $peerClassname::retrieveDescendants(\$node, \$con); - } -"; - } - - protected function addRetrieveChildren(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets direct children for the node - * - * @param $objectClassname \$node Propel object for parent node - * @param PropelPDO \$con Connection to use. - */ - public static function retrieveChildren(NodeObject \$node, PropelPDO \$con = null) - { - \$c = new Criteria($peerClassname::DATABASE_NAME); - \$c->addAscendingOrderByColumn(self::LEFT_COL); - if (self::SCOPE_COL) { - \$c->add(self::SCOPE_COL, \$node->getScopeIdValue(), Criteria::EQUAL); - } - \$c->add(self::LEFT_COL, \$node->getLeftValue(), Criteria::GREATER_THAN); - \$c->addAnd(self::RIGHT_COL, \$node->getRightValue(), Criteria::LESS_THAN); - \$stmt = $peerClassname::doSelectStmt(\$c, \$con); - - return $peerClassname::hydrateChildren(\$node, \$stmt); - } -"; - } - - protected function addRetrieveDescendants(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets all descendants for the node - * - * @param $objectClassname \$node Propel object for parent node - * @param PropelPDO \$con Connection to use. - */ - public static function retrieveDescendants(NodeObject \$node, PropelPDO \$con = null) - { - \$c = new Criteria($peerClassname::DATABASE_NAME); - \$c->addAscendingOrderByColumn(self::LEFT_COL); - if (self::SCOPE_COL) { - \$c->add(self::SCOPE_COL, \$node->getScopeIdValue(), Criteria::EQUAL); - } - \$c->add(self::LEFT_COL, \$node->getLeftValue(), Criteria::GREATER_THAN); - \$c->addAnd(self::RIGHT_COL, \$node->getRightValue(), Criteria::LESS_THAN); - \$stmt = $peerClassname::doSelectStmt(\$c, \$con); - - return $peerClassname::hydrateDescendants(\$node, \$stmt); - } -"; - } - - protected function addRetrieveSiblings(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets all siblings for the node - * - * @param $objectClassname \$node Propel object for src node - * @param PropelPDO \$con Connection to use. - */ - public static function retrieveSiblings(NodeObject \$node, PropelPDO \$con = null) - { - \$parent = $peerClassname::retrieveParent(\$node, \$con); - \$siblings = $peerClassname::retrieveChildren(\$parent, \$con); - - return \$siblings; - } -"; - } - - protected function addRetrieveParent(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets immediate ancestor for the given node if it exists - * - * @param $objectClassname \$node Propel object for src node - * @param PropelPDO \$con Connection to use. - * @return mixed Propel object if exists else null - */ - public static function retrieveParent(NodeObject \$node, PropelPDO \$con = null) - { - \$c = new Criteria($peerClassname::DATABASE_NAME); - \$c1 = \$c->getNewCriterion(self::LEFT_COL, \$node->getLeftValue(), Criteria::LESS_THAN); - \$c2 = \$c->getNewCriterion(self::RIGHT_COL, \$node->getRightValue(), Criteria::GREATER_THAN); - - \$c1->addAnd(\$c2); - - \$c->add(\$c1); - if (self::SCOPE_COL) { - \$c->add(self::SCOPE_COL, \$node->getScopeIdValue(), Criteria::EQUAL); - } - \$c->addAscendingOrderByColumn(self::RIGHT_COL); - - \$parent = $peerClassname::doSelectOne(\$c, \$con); - - \$node->setParentNode(\$parent); - - return \$parent; - } -"; - } - - protected function addGetLevel(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets level for the given node - * - * @param $objectClassname \$node Propel object for src node - * @param PropelPDO \$con Connection to use. - * @return int Level for the given node - */ - public static function getLevel(NodeObject \$node, PropelPDO \$con = null) - { - if (\$con === null) { - \$con = Propel::getConnection($peerClassname::DATABASE_NAME, Propel::CONNECTION_READ); - } - - \$sql = \"SELECT COUNT(*) AS level FROM \" . self::TABLE_NAME . \" WHERE \" . self::LEFT_COL . \" < :left AND \" . self::RIGHT_COL . \" > :right\"; - - if (self::SCOPE_COL) { - \$sql .= ' AND ' . self::SCOPE_COL . ' = :scope'; - } - - \$stmt = \$con->prepare(\$sql); - \$stmt->bindValue(':left', \$node->getLeftValue(), PDO::PARAM_INT); - \$stmt->bindValue(':right', \$node->getRightValue(), PDO::PARAM_INT); - if (self::SCOPE_COL) { - \$stmt->bindValue(':scope', \$node->getScopeIdValue()); - } - \$stmt->execute(); - \$row = \$stmt->fetch(); - return \$row['level']; - } -"; - } - - protected function addGetNumberOfChildren(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets number of direct children for given node - * - * @param $objectClassname \$node Propel object for src node - * @param PropelPDO \$con Connection to use. - * @return int Level for the given node - */ - public static function getNumberOfChildren(NodeObject \$node, PropelPDO \$con = null) - { - \$children = $peerClassname::retrieveChildren(\$node); - return count(\$children); - } -"; - } - - protected function addGetNumberOfDescendants(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Gets number of descendants for given node - * - * @param $objectClassname \$node Propel object for src node - * @param PropelPDO \$con Connection to use. - * @return int Level for the given node - */ - public static function getNumberOfDescendants(NodeObject \$node, PropelPDO \$con = null) - { - \$right = \$node->getRightValue(); - \$left = \$node->getLeftValue(); - \$num = (\$right - \$left - 1) / 2; - return \$num; - } -"; - } - - protected function addGetPath(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Returns path to a specific node as an array, useful to create breadcrumbs - * - * @param $objectClassname \$node Propel object of node to create path to - * @param PropelPDO \$con Connection to use. - * @return array Array in order of heirarchy - */ - public static function getPath(NodeObject \$node, PropelPDO \$con = null) - { - \$criteria = new Criteria(); - if (self::SCOPE_COL) { - \$criteria->add(self::SCOPE_COL, \$node->getScopeIdValue(), Criteria::EQUAL); - } - \$criteria->add(self::LEFT_COL, \$node->getLeftValue(), Criteria::LESS_EQUAL); - \$criteria->add(self::RIGHT_COL, \$node->getRightValue(), Criteria::GREATER_EQUAL); - \$criteria->addAscendingOrderByColumn(self::LEFT_COL); - - return self::doSelect(\$criteria, \$con); - } -"; - } - - protected function addIsValid(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Tests if node is valid - * - * @param $objectClassname \$node Propel object for src node - * @return bool - */ - public static function isValid(NodeObject \$node = null) - { - if (is_object(\$node) && \$node->getRightValue() > \$node->getLeftValue()) { - return true; - } else { - return false; - } - } -"; - } - - protected function addIsRoot(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Tests if node is a root - * - * @param $objectClassname \$node Propel object for src node - * @return bool - */ - public static function isRoot(NodeObject \$node) - { - return (\$node->getLeftValue()==1); - } -"; - } - - protected function addIsLeaf(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Tests if node is a leaf - * - * @param $objectClassname \$node Propel object for src node - * @return bool - */ - public static function isLeaf(NodeObject \$node) - { - return ((\$node->getRightValue()-\$node->getLeftValue())==1); - } -"; - } - - protected function addIsChildOf(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Tests if \$child is a child of \$parent - * - * @param $objectClassname \$child Propel object for node - * @param $objectClassname \$parent Propel object for node - * @return bool - */ - public static function isChildOf(NodeObject \$child, NodeObject \$parent) - { - return ((\$child->getLeftValue()>\$parent->getLeftValue()) && (\$child->getRightValue()<\$parent->getRightValue())); - } -"; - } - - protected function addIsChildOfOrSiblingTo(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Tests if \$node1 is a child of or equal to \$node2 - * - * @deprecated 1.3 - 2007/11/09 - * @param $objectClassname \$node1 Propel object for node - * @param $objectClassname \$node2 Propel object for node - * @return bool - */ - public static function isChildOfOrSiblingTo(NodeObject \$node1, NodeObject \$node2) - { - return ((\$node1->getLeftValue()>=\$node2->getLeftValue()) and (\$node1->getRightValue()<=\$node2->getRightValue())); - } -"; - } - - protected function addIsEqualTo(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Tests if \$node1 is equal to \$node2 - * - * @param $objectClassname \$node1 Propel object for node - * @param $objectClassname \$node2 Propel object for node - * @return bool - */ - public static function isEqualTo(NodeObject \$node1, NodeObject \$node2) - { - \$also = true; - if (self::SCOPE_COL) { - \$also = (\$node1->getScopeIdValue() === \$node2->getScopeIdValue()); - } - return \$node1->getLeftValue() == \$node2->getLeftValue() && \$node1->getRightValue() == \$node2->getRightValue() && \$also; - } -"; - } - - protected function addHasParent(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Tests if \$node has an ancestor - * - * @param $objectClassname \$node Propel object for node - * @param PropelPDO \$con Connection to use. - * @return bool - */ - public static function hasParent(NodeObject \$node, PropelPDO \$con = null) - { - return $peerClassname::isValid($peerClassname::retrieveParent(\$node, \$con)); - } -"; - } - - protected function addHasPrevSibling(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Tests if \$node has prev sibling - * - * @param $objectClassname \$node Propel object for node - * @param PropelPDO \$con Connection to use. - * @return bool - */ - public static function hasPrevSibling(NodeObject \$node, PropelPDO \$con = null) - { - return $peerClassname::isValid($peerClassname::retrievePrevSibling(\$node, \$con)); - } -"; - } - - protected function addHasNextSibling(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Tests if \$node has next sibling - * - * @param $objectClassname \$node Propel object for node - * @param PropelPDO \$con Connection to use. - * @return bool - */ - public static function hasNextSibling(NodeObject \$node, PropelPDO \$con = null) - { - return $peerClassname::isValid($peerClassname::retrieveNextSibling(\$node, \$con)); - } -"; - } - - protected function addHasChildren(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Tests if \$node has children - * - * @param $objectClassname \$node Propel object for node - * @return bool - */ - public static function hasChildren(NodeObject \$node) - { - return ((\$node->getRightValue()-\$node->getLeftValue())>1); - } -"; - } - - protected function addDeleteDescendants(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Deletes \$node and all of its descendants - * - * @param $objectClassname \$node Propel object for source node - * @param PropelPDO \$con Connection to use. - */ - public static function deleteDescendants(NodeObject \$node, PropelPDO \$con = null) - { - \$left = \$node->getLeftValue(); - \$right = \$node->getRightValue(); - - \$c = new Criteria($peerClassname::DATABASE_NAME); - \$c1 = \$c->getNewCriterion(self::LEFT_COL, \$left, Criteria::GREATER_THAN); - \$c2 = \$c->getNewCriterion(self::RIGHT_COL, \$right, Criteria::LESS_THAN); - - \$c1->addAnd(\$c2); - - \$c->add(\$c1); - if (self::SCOPE_COL) { - \$c->add(self::SCOPE_COL, \$node->getScopeIdValue(), Criteria::EQUAL); - } - \$c->addAscendingOrderByColumn(self::RIGHT_COL); - - \$result = $peerClassname::doDelete(\$c, \$con); - - self::shiftRLValues(\$right + 1, \$left - \$right -1, \$con, \$node->getScopeIdValue()); - - return \$result; - } -"; - } - - protected function addGetNode(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Returns a node given its primary key or the node itself - * - * @param int/$objectClassname \$node Primary key/instance of required node - * @param PropelPDO \$con Connection to use. - * @return object Propel object for model - */ - public static function getNode(\$node, PropelPDO \$con = null) - { - if (is_object(\$node)) { - return \$node; - } else { - \$object = $peerClassname::retrieveByPK(\$node, \$con); - \$rtn = is_object(\$object) ? \$object : false; - return \$rtn; - } - } -"; - } - - protected function addHydrateDescendants(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $table = $this->getTable(); - $script .= " - /** - * Hydrate recursively the descendants of the given node - * @param $objectClassname \$node Propel object for src node - * @param PDOStatement \$stmt Executed PDOStatement - */ - protected static function hydrateDescendants(NodeObject \$node, PDOStatement \$stmt) - { - \$descendants = array(); - \$children = array(); - \$prevSibling = null; -"; - - if (!$table->getChildrenColumn()) { - $script .= " - // set the class once to avoid overhead in the loop - \$cls = $peerClassname::getOMClass(); - \$cls = substr('.'.\$cls, strrpos('.'.\$cls, '.') + 1); -"; - } - - $script .= " - while (\$row = \$stmt->fetch(PDO::FETCH_NUM)) { - \$key = ".$peerClassname."::getPrimaryKeyHashFromRow(\$row, 0); - if (null === (\$child = ".$peerClassname."::getInstanceFromPool(\$key))) {"; - - if ($table->getChildrenColumn()) { - $script .= " - // class must be set each time from the record row - \$cls = ".$peerClassname."::getOMClass(\$row, 0); - \$cls = substr('.'.\$cls, strrpos('.'.\$cls, '.') + 1); -"; - } - - $script .= " - " . $this->buildObjectInstanceCreationCode('$child', '$cls') . " - \$child->hydrate(\$row); - } - - \$child->setLevel(\$node->getLevel() + 1); - \$child->setParentNode(\$node); - if (!empty(\$prevSibling)) { - \$child->setPrevSibling(\$prevSibling); - \$prevSibling->setNextSibling(\$child); - } - - \$descendants[] = \$child; - - if (\$child->hasChildren()) { - \$descendants = array_merge(\$descendants, $peerClassname::hydrateDescendants(\$child, \$stmt)); - } else { - \$child->setChildren(array()); - } - - \$children[] = \$child; - \$prevSibling = \$child; - - $peerClassname::addInstanceToPool(\$child); - if (\$child->getRightValue() + 1 == \$node->getRightValue()) { - \$child->setNextSibling(null); - break; - } - } - \$node->setChildren(\$children); - return \$descendants; - } -"; - } - - protected function addHydrateChildren(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $table = $this->getTable(); - $script .= " - /** - * Hydrate the children of the given node - * @param $objectClassname \$node Propel object for src node - * @param PDOStatement \$stmt Executed PDOStatement - */ - protected static function hydrateChildren(NodeObject \$node, PDOStatement \$stmt) - { - \$children = array(); - \$prevRight = 0; -"; - - if (!$table->getChildrenColumn()) { - $script .= " - // set the class once to avoid overhead in the loop - \$cls = $peerClassname::getOMClass(); - \$cls = substr('.'.\$cls, strrpos('.'.\$cls, '.') + 1); -"; - } - - $script .= " - while (\$row = \$stmt->fetch(PDO::FETCH_NUM)) { - \$key = ".$peerClassname."::getPrimaryKeyHashFromRow(\$row, 0); - if (null === (\$child = ".$peerClassname."::getInstanceFromPool(\$key))) {"; - - if ($table->getChildrenColumn()) { - $script .= " - // class must be set each time from the record row - \$cls = ".$peerClassname."::getOMClass(\$row, 0); - \$cls = substr('.'.\$cls, strrpos('.'.\$cls, '.') + 1); -"; - } - - $script .= " - " . $this->buildObjectInstanceCreationCode('$child', '$cls') . " - \$child->hydrate(\$row); - } - - \$child->setLevel(\$node->getLevel() + 1); - - if (\$child->getRightValue() > \$prevRight) { - \$children[] = \$child; - \$prevRight = \$child->getRightValue(); - } - - if (\$child->getRightValue() + 1 == \$node->getRightValue()) { - break; - } - } - \$node->setChildren(\$children); - return \$children; - } -"; - } - - /** - * @deprecated 1.3 - 2008/03/11 - * Won't be fixed, defect by design - * Never trust it - */ - protected function addShiftRParent(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Adds '\$delta' to all parent R values. - * '\$delta' can also be negative. - * - * @deprecated 1.3 - 2008/03/11 - * @param $objectClassname \$node Propel object for parent node - * @param int \$delta Value to be shifted by, can be negative - * @param PropelPDO \$con Connection to use. - */ - protected static function shiftRParent(NodeObject \$node, \$delta, PropelPDO \$con = null) - { - if (\$node->hasParent(\$con)) { - \$parent = \$node->retrieveParent(); - self::shiftRParent(\$parent, \$delta, \$con); - } - \$node->setRightValue(\$node->getRightValue() + \$delta); - } -"; - } - - protected function addUpdateLoadedNode(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $table = $this->getTable(); - - $script .= " - /** - * Reload all already loaded nodes to sync them with updated db - * - * @param $objectClassname \$node Propel object for parent node - * @param int \$delta Value to be shifted by, can be negative - * @param PropelPDO \$con Connection to use. - */ - protected static function updateLoadedNode(NodeObject \$node, \$delta, PropelPDO \$con = null) - { - if (Propel::isInstancePoolingEnabled()) { - \$keys = array(); - foreach (self::\$instances as \$obj) { - \$keys[] = \$obj->getPrimaryKey(); - } - - if (!empty(\$keys)) { - // We don't need to alter the object instance pool; we're just modifying these ones - // already in the pool. - \$criteria = new Criteria(self::DATABASE_NAME);"; - if (count($table->getPrimaryKey()) === 1) { - $pkey = $table->getPrimaryKey(); - $col = array_shift($pkey); - $script .= " - \$criteria->add(".$this->getColumnConstant($col).", \$keys, Criteria::IN); -"; - } else { - $fields = array(); - foreach ($table->getPrimaryKey() as $k => $col) { - $fields[] = $this->getColumnConstant($col); - }; - $script .= " - - // Loop on each instances in pool - foreach (\$keys as \$values) { - // Create initial Criterion - \$cton = \$criteria->getNewCriterion(" . $fields[0] . ", \$values[0]);"; - unset($fields[0]); - foreach ($fields as $k => $col) { - $script .= " - - // Create next criterion - \$nextcton = \$criteria->getNewCriterion(" . $col . ", \$values[$k]); - // And merge it with the first - \$cton->addAnd(\$nextcton);"; - } - $script .= " - - // Add final Criterion to Criteria - \$criteria->addOr(\$cton); - }"; - } - - $script .= " - \$stmt = $peerClassname::doSelectStmt(\$criteria, \$con); - while (\$row = \$stmt->fetch(PDO::FETCH_NUM)) { - \$key = $peerClassname::getPrimaryKeyHashFromRow(\$row, 0); - if (null !== (\$object = $peerClassname::getInstanceFromPool(\$key))) {"; - $n = 0; - foreach ($table->getColumns() as $col) { - if ($col->isNestedSetLeftKey()) { - $script .= " - \$object->setLeftValue(\$row[$n]);"; - } else if ($col->isNestedSetRightKey()) { - $script .= " - \$object->setRightValue(\$row[$n]);"; - } - $n++; - } - $script .= " - } - } - \$stmt->closeCursor(); - } - } - } -"; - } - - protected function addUpdateDBNode(&$script) - { - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - $script .= " - /** - * Move \$node and its children to location \$destLeft and updates rest of tree - * - * @param $objectClassname \$node Propel object for node to update - * @param int \$destLeft Destination left value - * @param PropelPDO \$con Connection to use. - */ - protected static function updateDBNode(NodeObject \$node, \$destLeft, PropelPDO \$con = null) - { - \$left = \$node->getLeftValue(); - \$right = \$node->getRightValue(); - - \$treeSize = \$right - \$left +1; - - self::shiftRLValues(\$destLeft, \$treeSize, \$con, \$node->getScopeIdValue()); - - if (\$left >= \$destLeft) { // src was shifted too? - \$left += \$treeSize; - \$right += \$treeSize; - } - - // now there's enough room next to target to move the subtree - self::shiftRLRange(\$left, \$right, \$destLeft - \$left, \$con, \$node->getScopeIdValue()); - - // correct values after source - self::shiftRLValues(\$right + 1, -\$treeSize, \$con, \$node->getScopeIdValue()); - } -"; - } - - protected function addShiftRLValues(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Adds '\$delta' to all L and R values that are >= '\$first'. '\$delta' can also be negative. - * - * @param int \$first First node to be shifted - * @param int \$delta Value to be shifted by, can be negative - * @param PropelPDO \$con Connection to use. - */ - protected static function shiftRLValues(\$first, \$delta, PropelPDO \$con = null, \$scopeId = null) - { - if (\$con === null) { - \$con = Propel::getConnection($peerClassname::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - \$leftUpdateCol = self::LEFT_COL; - \$rightUpdateCol = self::RIGHT_COL; - - // Shift left column values - \$whereCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$criterion = \$whereCriteria->getNewCriterion( - self::LEFT_COL, - \$first, - Criteria::GREATER_EQUAL); - - if (self::SCOPE_COL) { - \$criterion->addAnd( - \$whereCriteria->getNewCriterion( - self::SCOPE_COL, - \$scopeId, - Criteria::EQUAL)); - } - \$whereCriteria->add(\$criterion); - - \$valuesCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$valuesCriteria->add( - self::LEFT_COL, - array('raw' => \$leftUpdateCol . ' + ?', 'value' => \$delta), - Criteria::CUSTOM_EQUAL); - - {$this->basePeerClassname}::doUpdate(\$whereCriteria, \$valuesCriteria, \$con); - - // Shift right column values - \$whereCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$criterion = \$whereCriteria->getNewCriterion( - self::RIGHT_COL, - \$first, - Criteria::GREATER_EQUAL); - - if (self::SCOPE_COL) { - \$criterion->addAnd( - \$whereCriteria->getNewCriterion( - self::SCOPE_COL, - \$scopeId, - Criteria::EQUAL)); - } - \$whereCriteria->add(\$criterion); - - \$valuesCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$valuesCriteria->add( - self::RIGHT_COL, - array('raw' => \$rightUpdateCol . ' + ?', 'value' => \$delta), - Criteria::CUSTOM_EQUAL); - - {$this->basePeerClassname}::doUpdate(\$whereCriteria, \$valuesCriteria, \$con); - } -"; - } - - protected function addShiftRLRange(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $script .= " - /** - * Adds '\$delta' to all L and R values that are >= '\$first' and <= '\$last'. - * '\$delta' can also be negative. - * - * @param int \$first First node to be shifted (L value) - * @param int \$last Last node to be shifted (L value) - * @param int \$delta Value to be shifted by, can be negative - * @param PropelPDO \$con Connection to use. - * @return array Shifted L and R values - */ - protected static function shiftRLRange(\$first, \$last, \$delta, PropelPDO \$con = null, \$scopeId = null) - { - if (\$con === null) { - \$con = Propel::getConnection($peerClassname::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - \$leftUpdateCol = substr(self::LEFT_COL, strrpos(self::LEFT_COL, '.') + 1); - \$rightUpdateCol = substr(self::RIGHT_COL, strrpos(self::RIGHT_COL, '.') + 1); - - // Shift left column values - \$whereCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$criterion = \$whereCriteria->getNewCriterion(self::LEFT_COL, \$first, Criteria::GREATER_EQUAL); - \$criterion->addAnd(\$whereCriteria->getNewCriterion(self::LEFT_COL, \$last, Criteria::LESS_EQUAL)); - if (self::SCOPE_COL) { - \$criterion->addAnd(\$whereCriteria->getNewCriterion(self::SCOPE_COL, \$scopeId, Criteria::EQUAL)); - } - \$whereCriteria->add(\$criterion); - - \$valuesCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$valuesCriteria->add( - self::LEFT_COL, - array('raw' => \$leftUpdateCol . ' + ?', 'value' => \$delta), - Criteria::CUSTOM_EQUAL); - - {$this->basePeerClassname}::doUpdate(\$whereCriteria, \$valuesCriteria, \$con); - - // Shift right column values - \$whereCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$criterion = \$whereCriteria->getNewCriterion(self::RIGHT_COL, \$first, Criteria::GREATER_EQUAL); - \$criterion->addAnd(\$whereCriteria->getNewCriterion(self::RIGHT_COL, \$last, Criteria::LESS_EQUAL)); - if (self::SCOPE_COL) { - \$criterion->addAnd(\$whereCriteria->getNewCriterion(self::SCOPE_COL, \$scopeId, Criteria::EQUAL)); - } - \$whereCriteria->add(\$criterion); - - \$valuesCriteria = new Criteria($peerClassname::DATABASE_NAME); - \$valuesCriteria->add( - self::RIGHT_COL, - array('raw' => \$rightUpdateCol . ' + ?', 'value' => \$delta), - Criteria::CUSTOM_EQUAL); - - {$this->basePeerClassname}::doUpdate(\$whereCriteria, \$valuesCriteria, \$con); - - return array('left' => \$first + \$delta, 'right' => \$last + \$delta); - } -"; - } - -} // PHP5NestedSetPeerBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5NodeBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PHP5NodeBuilder.php deleted file mode 100644 index 1f5b0eca1b..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5NodeBuilder.php +++ /dev/null @@ -1,1104 +0,0 @@ - - * @package propel.generator.builder.om - */ -class PHP5NodeBuilder extends ObjectBuilder -{ - - /** - * Gets the package for the [base] object classes. - * @return string - */ - public function getPackage() - { - return parent::getPackage() . ".om"; - } - - /** - * Returns the name of the current class being built. - * @return string - */ - public function getUnprefixedClassname() - { - return $this->getBuildProperty('basePrefix') . $this->getStubNodeBuilder()->getUnprefixedClassname(); - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - - $table = $this->getTable(); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - - $script .= " -/** - * Base class that represents a row from the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * @package propel.generator.".$this->getPackage()." - */ -abstract class ".$this->getClassname()." implements IteratorAggregate { -"; - } - - /** - * Specifies the methods that are added as part of the basic OM class. - * This can be overridden by subclasses that wish to add more methods. - * @see ObjectBuilder::addClassBody() - */ - protected function addClassBody(&$script) - { - $table = $this->getTable(); - - $this->addAttributes($script); - - $this->addConstructor($script); - - $this->addCallOverload($script); - $this->addSetIteratorOptions($script); - $this->addGetIterator($script); - - $this->addGetNodeObj($script); - $this->addGetNodePath($script); - $this->addGetNodeIndex($script); - $this->addGetNodeLevel($script); - - $this->addHasChildNode($script); - $this->addGetChildNodeAt($script); - $this->addGetFirstChildNode($script); - $this->addGetLastChildNode($script); - $this->addGetSiblingNode($script); - - $this->addGetParentNode($script); - $this->addGetAncestors($script); - $this->addIsRootNode($script); - - $this->addSetNew($script); - $this->addSetDeleted($script); - $this->addAddChildNode($script); - $this->addMoveChildNode($script); - $this->addSave($script); - - $this->addDelete($script); - $this->addEquals($script); - - $this->addAttachParentNode($script); - $this->addAttachChildNode($script); - $this->addDetachParentNode($script); - $this->addDetachChildNode($script); - $this->addShiftChildNodes($script); - $this->addInsertNewChildNode($script); - - $this->addAdjustStatus($script); - $this->addAdjustNodePath($script); - - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - } - - - /** - * Adds class attributes. - * @param string &$script The script will be modified in this method. - */ - protected function addAttributes(&$script) - { - $script .= " - /** - * @var ".$this->getStubObjectBuilder()->getClassname()." object wrapped by this node. - */ - protected \$obj = null; - - /** - * The parent node for this node. - * @var ".$this->getStubNodeBuilder()->getClassname()." - */ - protected \$parentNode = null; - - /** - * Array of child nodes for this node. Nodes indexes are one-based. - * @var array - */ - protected \$childNodes = array(); -"; - } - - /** - * Adds the constructor. - * @param string &$script The script will be modified in this method. - */ - protected function addConstructor(&$script) - { - $script .= " - /** - * Constructor. - * - * @param ".$this->getStubObjectBuilder()->getClassname()." \$obj Object wrapped by this node. - */ - public function __construct(\$obj = null) - { - if (\$obj !== null) { - \$this->obj = \$obj; - } else { - \$setNodePath = 'set' . ".$this->getStubNodePeerBuilder()->getClassname()."::NPATH_PHPNAME; - \$this->obj = new ".$this->getStubObjectBuilder()->getClassname()."(); - \$this->obj->\$setNodePath('0'); - } - } -"; - } - - - - protected function addCallOverload(&$script) - { - $script .= " - /** - * Convenience overload for wrapped object methods. - * - * @param string Method name to call on wrapped object. - * @param mixed Parameter accepted by wrapped object set method. - * @return mixed Return value of wrapped object method. - * @throws PropelException Fails if method is not defined for wrapped object. - */ - public function __call(\$name, \$parms) - { - if (method_exists(\$this->obj, \$name)) - return call_user_func_array(array(\$this->obj, \$name), \$parms); - else - throw new PropelException('get method not defined: \$name'); - } -"; - } - - protected function addSetIteratorOptions(&$script) - { - $script .= " - - /** - * Sets the default options for iterators created from this object. - * The options are specified in map format. The following options - * are supported by all iterators. Some iterators may support other - * options: - * - * \"querydb\" - True if nodes should be retrieved from database. - * \"con\" - Connection to use if retrieving from database. - * - * @param string Type of iterator to use (\"pre\", \"post\", \"level\"). - * @param array Map of option name => value. - * @return void - * @todo Implement other iterator types (i.e. post-order, level, etc.) - */ - public function setIteratorOptions(\$type, \$opts) - { - \$this->itType = \$type; - \$this->itOpts = \$opts; - } -"; - } - - protected function addGetIterator(&$script) - { - $script .= " - /** - * Returns a pre-order iterator for this node and its children. - * - * @param string Type of iterator to use (\"pre\", \"post\", \"level\") - * @param array Map of option name => value. - * @return NodeIterator - */ - public function getIterator(\$type = null, \$opts = null) - { - if (\$type === null) - \$type = (isset(\$this->itType) ? \$this->itType : 'Pre'); - - if (\$opts === null) - \$opts = (isset(\$this->itOpts) ? \$this->itOpts : array()); - - \$itclass = ucfirst(strtolower(\$type)) . 'OrderNodeIterator'; - - require_once('propel/om/' . \$itclass . '.php'); - return new \$itclass(\$this, \$opts); - } -"; - } - - protected function addGetNodeObj(&$script) - { - $script .= " - /** - * Returns the object wrapped by this class. - * @return ".$this->getStubObjectBuilder()->getClassname()." - */ - public function getNodeObj() - { - return \$this->obj; - } -"; - } - - protected function addGetNodePath(&$script) - { - $script .= " - /** - * Convenience method for retrieving nodepath. - * @return string - */ - public function getNodePath() - { - \$getNodePath = 'get' . ".$this->getStubNodePeerBuilder()->getClassname()."::NPATH_PHPNAME; - return \$this->obj->\$getNodePath(); - } -"; - } - - protected function addGetNodeIndex(&$script) - { - $script .= " - /** - * Returns one-based node index among siblings. - * @return int - */ - public function getNodeIndex() - { - \$npath =& \$this->getNodePath(); - \$sep = strrpos(\$npath, ".$this->getStubNodePeerBuilder()->getClassname()."::NPATH_SEP); - return (int) (\$sep !== false ? substr(\$npath, \$sep+1) : \$npath); - } -"; - } - - protected function addGetNodeLevel(&$script) - { - $script .= " - /** - * Returns one-based node level within tree (root node is level 1). - * @return int - */ - public function getNodeLevel() - { - return (substr_count(\$this->getNodePath(), ".$this->getStubNodePeerBuilder()->getClassname()."::NPATH_SEP) + 1); - } -"; - } - - protected function addHasChildNode(&$script) - { - $script .= " - /** - * Returns true if specified node is a child of this node. If recurse is - * true, checks if specified node is a descendant of this node. - * - * @param ".$this->getStubNodeBuilder()->getClassname()." Node to look for. - * @param boolean True if strict comparison should be used. - * @param boolean True if all descendants should be checked. - * @return boolean - */ - public function hasChildNode(\$node, \$strict = false, \$recurse = false) - { - foreach (\$this->childNodes as \$childNode) - { - if (\$childNode->equals(\$node, \$strict)) - return true; - - if (\$recurse && \$childNode->hasChildNode(\$node, \$recurse)) - return true; - } - - return false; - } -"; - } - - protected function addGetChildNodeAt(&$script) - { - $script .= " - /** - * Returns child node at one-based index. Retrieves from database if not - * loaded yet. - * - * @param int One-based child node index. - * @param boolean True if child should be retrieved from database. - * @param PropelPDO Connection to use if retrieving from database. - * @return ".$this->getStubNodeBuilder()->getClassname()." - */ - public function getChildNodeAt(\$i, \$querydb = false, PropelPDO \$con = null) - { - if (\$querydb && - !\$this->obj->isNew() && - !\$this->obj->isDeleted() && - !isset(\$this->childNodes[\$i])) - { - \$criteria = new Criteria(".$this->getStubPeerBuilder()->getClassname()."::DATABASE_NAME); - \$criteria->add(".$this->getStubNodePeerBuilder()->getClassname()."::NPATH_COLNAME, \$this->getNodePath() . ".$this->getStubNodePeerBuilder()->getClassname()."::NPATH_SEP . \$i, Criteria::EQUAL); - - if (\$childObj = ".$this->getStubPeerBuilder()->getClassname()."::doSelectOne(\$criteria, \$con)) - \$this->attachChildNode(new ".$this->getStubNodeBuilder()->getClassname()."(\$childObj)); - } - - return (isset(\$this->childNodes[\$i]) ? \$this->childNodes[\$i] : null); - } -"; - } - - protected function addGetFirstChildNode(&$script) - { - $script .= " - /** - * Returns first child node (if any). Retrieves from database if not loaded yet. - * - * @param boolean True if child should be retrieved from database. - * @param PropelPDO Connection to use if retrieving from database. - * @return ".$this->getStubNodeBuilder()->getClassname()." - */ - public function getFirstChildNode(\$querydb = false, PropelPDO \$con = null) - { - return \$this->getChildNodeAt(1, \$querydb, \$con); - } -"; - } - - protected function addGetLastChildNode(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - - $script .= " - /** - * Returns last child node (if any). - * - * @param boolean True if child should be retrieved from database. - * @param PropelPDO Connection to use if retrieving from database. - */ - public function getLastChildNode(\$querydb = false, PropelPDO \$con = null) - { - \$lastNode = null; - - if (\$this->obj->isNew() || \$this->obj->isDeleted()) - { - end(\$this->childNodes); - \$lastNode = (count(\$this->childNodes) ? current(\$this->childNodes) : null); - } - else if (\$querydb) - { - \$db = Propel::getDb($peerClassname::DATABASE_NAME); - \$criteria = new Criteria($peerClassname::DATABASE_NAME); - \$criteria->add($nodePeerClassname::NPATH_COLNAME, \$this->getNodePath() . $nodePeerClassname::NPATH_SEP . '%', Criteria::LIKE); - \$criteria->addAnd($nodePeerClassname::NPATH_COLNAME, \$this->getNodePath() . $nodePeerClassname::NPATH_SEP . '%' . $nodePeerClassname::NPATH_SEP . '%', Criteria::NOT_LIKE); - $peerClassname::addSelectColumns(\$criteria); - \$criteria->addAsColumn('npathlen', \$db->strLength($nodePeerClassname::NPATH_COLNAME)); - \$criteria->addDescendingOrderByColumn('npathlen'); - \$criteria->addDescendingOrderByColumn($nodePeerClassname::NPATH_COLNAME); - - \$lastObj = $peerClassname::doSelectOne(\$criteria, \$con); - - if (\$lastObj !== null) - { - \$lastNode = new ".$this->getStubNodeBuilder()->getClassname()."(\$lastObj); - - end(\$this->childNodes); - \$endNode = (count(\$this->childNodes) ? current(\$this->childNodes) : null); - - if (\$endNode) - { - if (\$endNode->getNodePath() > \$lastNode->getNodePath()) - throw new PropelException('Cached child node inconsistent with database.'); - else if (\$endNode->getNodePath() == \$lastNode->getNodePath()) - \$lastNode = \$endNode; - else - \$this->attachChildNode(\$lastNode); - } - else - { - \$this->attachChildNode(\$lastNode); - } - } - } - - return \$lastNode; - } -"; - } - - protected function addGetSiblingNode(&$script) - { - $script .= " - /** - * Returns next (or previous) sibling node or null. Retrieves from database if - * not loaded yet. - * - * @param boolean True if previous sibling should be returned. - * @param boolean True if sibling should be retrieved from database. - * @param PropelPDO Connection to use if retrieving from database. - * @return ".$this->getStubNodeBuilder()->getClassname()." - */ - public function getSiblingNode(\$prev = false, \$querydb = false, PropelPDO \$con = null) - { - \$nidx = \$this->getNodeIndex(); - - if (\$this->isRootNode()) - { - return null; - } - else if (\$prev) - { - if (\$nidx > 1 && (\$parentNode = \$this->getParentNode(\$querydb, \$con))) - return \$parentNode->getChildNodeAt(\$nidx-1, \$querydb, \$con); - else - return null; - } - else - { - if (\$parentNode = \$this->getParentNode(\$querydb, \$con)) - return \$parentNode->getChildNodeAt(\$nidx+1, \$querydb, \$con); - else - return null; - } - } -"; - } - - protected function addGetParentNode(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - - $script .= " - /** - * Returns parent node. Loads from database if not cached yet. - * - * @param boolean True if parent should be retrieved from database. - * @param PropelPDO Connection to use if retrieving from database. - * @return ".$this->getStubNodeBuilder()->getClassname()." - */ - public function getParentNode(\$querydb = true, PropelPDO \$con = null) - { - if (\$querydb && - \$this->parentNode === null && - !\$this->isRootNode() && - !\$this->obj->isNew() && - !\$this->obj->isDeleted()) - { - \$npath =& \$this->getNodePath(); - \$sep = strrpos(\$npath, $nodePeerClassname::NPATH_SEP); - \$ppath = substr(\$npath, 0, \$sep); - - \$criteria = new Criteria($peerClassname::DATABASE_NAME); - \$criteria->add($nodePeerClassname::NPATH_COLNAME, \$ppath, Criteria::EQUAL); - - if (\$parentObj = $peerClassname::doSelectOne(\$criteria, \$con)) - { - \$parentNode = new ".$this->getStubNodeBuilder()->getClassname()."(\$parentObj); - \$parentNode->attachChildNode(\$this); - } - } - - return \$this->parentNode; - } -"; - } - - protected function addGetAncestors(&$script) - { - $script .= " - /** - * Returns an array of all ancestor nodes, starting with the root node - * first. - * - * @param boolean True if ancestors should be retrieved from database. - * @param PropelPDO Connection to use if retrieving from database. - * @return array - */ - public function getAncestors(\$querydb = false, PropelPDO \$con = null) - { - \$ancestors = array(); - \$parentNode = \$this; - - while (\$parentNode = \$parentNode->getParentNode(\$querydb, \$con)) - array_unshift(\$ancestors, \$parentNode); - - return \$ancestors; - } -"; - } - - protected function addIsRootNode(&$script) - { - $script .= " - /** - * Returns true if node is the root node of the tree. - * @return boolean - */ - public function isRootNode() - { - return (\$this->getNodePath() === '1'); - } -"; - } - - protected function addSetNew(&$script) - { - $script .= " - /** - * Changes the state of the object and its descendants to 'new'. - * Also changes the node path to '0' to indicate that it is not a - * stored node. - * - * @param boolean - * @return void - */ - public function setNew(\$b) - { - \$this->adjustStatus('new', \$b); - \$this->adjustNodePath(\$this->getNodePath(), '0'); - } -"; - } - - protected function addSetDeleted(&$script) - { - $script .= " - /** - * Changes the state of the object and its descendants to 'deleted'. - * - * @param boolean - * @return void - */ - public function setDeleted(\$b) - { - \$this->adjustStatus('deleted', \$b); - } -"; - } - - protected function addAddChildNode(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - - $script .= " - /** - * Adds the specified node (and its children) as a child to this node. If a - * valid \$beforeNode is specified, the node will be inserted in front of - * \$beforeNode. If \$beforeNode is not specified the node will be appended to - * the end of the child nodes. - * - * @param ".$this->getStubNodeBuilder()->getClassname()." Node to add. - * @param ".$this->getStubNodeBuilder()->getClassname()." Node to insert before. - * @param PropelPDO Connection to use. - */ - public function addChildNode(\$node, \$beforeNode = null, PropelPDO \$con = null) - { - if (\$this->obj->isNew() && !\$node->obj->isNew()) - throw new PropelException('Cannot add stored nodes to a new node.'); - - if (\$this->obj->isDeleted() || \$node->obj->isDeleted()) - throw new PropelException('Cannot add children in a deleted state.'); - - if (\$this->hasChildNode(\$node)) - throw new PropelException('Node is already a child of this node.'); - - if (\$beforeNode && !\$this->hasChildNode(\$beforeNode)) - throw new PropelException('Invalid beforeNode.'); - - if (\$con === null) - \$con = Propel::getConnection($peerClassname::DATABASE_NAME, Propel::CONNECTION_WRITE); - - if (!\$this->obj->isNew()) \$con->beginTransaction(); - - try { - if (\$beforeNode) - { - // Inserting before a node. - \$childIdx = \$beforeNode->getNodeIndex(); - \$this->shiftChildNodes(1, \$beforeNode->getNodeIndex(), \$con); - } - else - { - // Appending child node. - if (\$lastNode = \$this->getLastChildNode(true, \$con)) - \$childIdx = \$lastNode->getNodeIndex()+1; - else - \$childIdx = 1; - } - - // Add the child (and its children) at the specified index. - - if (!\$this->obj->isNew() && \$node->obj->isNew()) - { - \$this->insertNewChildNode(\$node, \$childIdx, \$con); - } - else - { - // \$this->isNew() && \$node->isNew() || - // !\$this->isNew() && !node->isNew() - - \$srcPath = \$node->getNodePath(); - \$dstPath = \$this->getNodePath() . $nodePeerClassname::NPATH_SEP . \$childIdx; - - if (!\$node->obj->isNew()) - { - $nodePeerClassname::moveNodeSubTree(\$srcPath, \$dstPath, \$con); - \$parentNode = \$node->getParentNode(true, \$con); - } - else - { - \$parentNode = \$node->getParentNode(); - } - - if (\$parentNode) - { - \$parentNode->detachChildNode(\$node); - \$parentNode->shiftChildNodes(-1, \$node->getNodeIndex()+1, \$con); - } - - \$node->adjustNodePath(\$srcPath, \$dstPath); - } - - if (!\$this->obj->isNew()) \$con->commit(); - - \$this->attachChildNode(\$node); - - } catch (SQLException \$e) { - if (!\$this->obj->isNew()) \$con->rollBack(); - throw new PropelException(\$e); - } - } -"; - } - - protected function addMoveChildNode(&$script) - { - $script .= " - /** - * Moves the specified child node in the specified direction. - * - * @param ".$this->getStubNodeBuilder()->getClassname()." Node to move. - * @param int Number of spaces to move among siblings (may be negative). - * @param PropelPDO Connection to use. - * @throws PropelException - */ - public function moveChildNode(\$node, \$direction, PropelPDO \$con = null) - { - throw new PropelException('moveChildNode() not implemented yet.'); - } -"; - } - - - protected function addSave(&$script) - { - - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - $script .= " - /** - * Saves modified object data to the datastore. - * - * @param boolean If true, descendants will be saved as well. - * @param PropelPDO Connection to use. - */ - public function save(\$recurse = false, PropelPDO \$con = null) - { - if (\$this->obj->isDeleted()) - throw new PropelException('Cannot save deleted node.'); - - if (substr(\$this->getNodePath(), 0, 1) == '0') - throw new PropelException('Cannot save unattached node.'); - - if (\$this->obj->isColumnModified($nodePeerClassname::NPATH_COLNAME)) - throw new PropelException('Cannot save manually modified node path.'); - - \$this->obj->save(\$con); - - if (\$recurse) - { - foreach (\$this->childNodes as \$childNode) - \$childNode->save(\$recurse, \$con); - } - } -"; - } - - - protected function addDelete(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - $script .= " - /** - * Removes this object and all descendants from datastore. - * - * @param PropelPDO Connection to use. - * @return void - * @throws PropelException - */ - public function delete(PropelPDO \$con = null) - { - if (\$this->obj->isDeleted()) { - throw new PropelException('This node has already been deleted.'); - } - - if (\$con === null) { - \$con = Propel::getConnection($peerClassname::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if (!\$this->obj->isNew()) { - $nodePeerClassname::deleteNodeSubTree(\$this->getNodePath(), \$con); - } - - if (\$parentNode = \$this->getParentNode(true, \$con)) { - \$parentNode->detachChildNode(\$this); - \$parentNode->shiftChildNodes(-1, \$this->getNodeIndex()+1, \$con); - } - - \$this->setDeleted(true); - } -"; - } - - protected function addEquals(&$script) - { - $nodeClassname = $this->getStubNodeBuilder()->getClassname(); - $script .= " - /** - * Compares the object wrapped by this node with that of another node. Use - * this instead of equality operators to prevent recursive dependency - * errors. - * - * @param $nodeClassname Node to compare. - * @param boolean True if strict comparison should be used. - * @return boolean - */ - public function equals(\$node, \$strict = false) - { - if (\$strict) { - return (\$this->obj === \$node->obj); - } else { - return (\$this->obj == \$node->obj); - } - } -"; - } - - protected function addAttachParentNode(&$script) - { - $nodeClassname = $this->getStubNodeBuilder()->getClassname(); - $script .= " - /** - * This method is used internally when constructing the tree structure - * from the database. To set the parent of a node, you should call - * addChildNode() on the parent. - * - * @param $nodeClassname Parent node to attach. - * @return void - * @throws PropelException - */ - public function attachParentNode(\$node) - { - if (!\$node->hasChildNode(\$this, true)) - throw new PropelException('Failed to attach parent node for non-child.'); - - \$this->parentNode = \$node; - } -"; - } - - - protected function addAttachChildNode(&$script) - { - $nodeClassname = $this->getStubNodeBuilder()->getClassname(); - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - $script .= " - /** - * This method is used internally when constructing the tree structure - * from the database. To add a child to a node you should call the - * addChildNode() method instead. - * - * @param $nodeClassname Child node to attach. - * @return void - * @throws PropelException - */ - public function attachChildNode(\$node) - { - if (\$this->hasChildNode(\$node)) - throw new PropelException('Failed to attach child node. Node already exists.'); - - if (\$this->obj->isDeleted() || \$node->obj->isDeleted()) - throw new PropelException('Failed to attach node in deleted state.'); - - if (\$this->obj->isNew() && !\$node->obj->isNew()) - throw new PropelException('Failed to attach non-new child to new node.'); - - if (!\$this->obj->isNew() && \$node->obj->isNew()) - throw new PropelException('Failed to attach new child to non-new node.'); - - if (\$this->getNodePath() . $nodePeerClassname::NPATH_SEP . \$node->getNodeIndex() != \$node->getNodePath()) - throw new PropelException('Failed to attach child node. Node path mismatch.'); - - \$this->childNodes[\$node->getNodeIndex()] = \$node; - ksort(\$this->childNodes); - - \$node->attachParentNode(\$this); - } -"; - } - - protected function addDetachParentNode(&$script) - { - $nodeClassname = $this->getStubNodeBuilder()->getClassname(); - $script .= " - /** - * This method is used internally when deleting nodes. It is used to break - * the link to this node's parent. - * @param $nodeClassname Parent node to detach from. - * @return void - * @throws PropelException - */ - public function detachParentNode(\$node) - { - if (!\$node->hasChildNode(\$this, true)) - throw new PropelException('Failed to detach parent node from non-child.'); - - unset(\$node->childNodes[\$this->getNodeIndex()]); - \$this->parentNode = null; - } -"; - } - - protected function addDetachChildNode(&$script) - { - $script .= " - /** - * This method is used internally when deleting nodes. It is used to break - * the link to this between this node and the specified child. - * @param ".$this->getStubNodeBuilder()->getClassname()." Child node to detach. - * @return void - * @throws PropelException - */ - public function detachChildNode(\$node) - { - if (!\$this->hasChildNode(\$node, true)) - throw new PropelException('Failed to detach non-existent child node.'); - - unset(\$this->childNodes[\$node->getNodeIndex()]); - \$node->parentNode = null; - } -"; - } - - protected function addShiftChildNodes(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - - $script .= " - /** - * Shifts child nodes in the specified direction and offset index. This - * method assumes that there is already space available in the - * direction/offset indicated. - * - * @param int Direction/# spaces to shift. 1=leftshift, 1=rightshift - * @param int Node index to start shift at. - * @param PropelPDO The connection to be used. - * @return void - * @throws PropelException - */ - protected function shiftChildNodes(\$direction, \$offsetIdx, PropelPDO \$con) - { - if (\$this->obj->isDeleted()) - throw new PropelException('Cannot shift nodes for deleted object'); - - \$lastNode = \$this->getLastChildNode(true, \$con); - \$lastIdx = (\$lastNode !== null ? \$lastNode->getNodeIndex() : 0); - - if (\$lastNode === null || \$offsetIdx > \$lastIdx) - return; - - if (\$con === null) - \$con = Propel::getConnection($peerClassname::DATABASE_NAME); - - if (!\$this->obj->isNew()) - { - // Shift nodes in database. - - \$con->beginTransaction(); - - try { - \$n = \$lastIdx - \$offsetIdx + 1; - \$i = \$direction < 1 ? \$offsetIdx : \$lastIdx; - - while (\$n--) - { - \$srcPath = \$this->getNodePath() . $nodePeerClassname::NPATH_SEP . \$i; // 1.2.2 - \$dstPath = \$this->getNodePath() . $nodePeerClassname::NPATH_SEP . (\$i+\$direction); // 1.2.3 - - $nodePeerClassname::moveNodeSubTree(\$srcPath, \$dstPath, \$con); - - \$i -= \$direction; - } - - \$con->commit(); - - } catch (SQLException \$e) { - \$con->rollBack(); - throw new PropelException(\$e); - } - } - - // Shift the in-memory objects. - - \$n = \$lastIdx - \$offsetIdx + 1; - \$i = \$direction < 1 ? \$offsetIdx : \$lastIdx; - - while (\$n--) - { - if (isset(\$this->childNodes[\$i])) - { - \$srcPath = \$this->getNodePath() . $nodePeerClassname::NPATH_SEP . \$i; // 1.2.2 - \$dstPath = \$this->getNodePath() . $nodePeerClassname::NPATH_SEP . (\$i+\$direction); // 1.2.3 - - \$this->childNodes[\$i+\$direction] = \$this->childNodes[\$i]; - \$this->childNodes[\$i+\$direction]->adjustNodePath(\$srcPath, \$dstPath); - - unset(\$this->childNodes[\$i]); - } - - \$i -= \$direction; - } - - ksort(\$this->childNodes); - } -"; - } - - protected function addInsertNewChildNode(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - $nodeClassname = $this->getStubNodePeerBuilder()->getClassname(); - - $script .= " - /** - * Inserts the node and its children at the specified childIdx. - * - * @param $nodeClassname Node to insert. - * @param int One-based child index to insert at. - * @param PropelPDO Connection to use. - * @param void - */ - protected function insertNewChildNode(\$node, \$childIdx, PropelPDO \$con) - { - if (!\$node->obj->isNew()) - throw new PropelException('Failed to insert non-new node.'); - - \$setNodePath = 'set' . $nodePeerClassname::NPATH_PHPNAME; - - \$node->obj->\$setNodePath(\$this->getNodePath() . $nodePeerClassname::NPATH_SEP . \$childIdx); - \$node->obj->save(\$con); - - \$i = 1; - foreach (\$node->childNodes as \$childNode) - \$node->insertNewChildNode(\$childNode, \$i++, \$con); - } -"; - } - - protected function addAdjustStatus(&$script) - { - $script .= " - /** - * Adjust new/deleted status of node and all children. - * - * @param string Status to change ('New' or 'Deleted') - * @param boolean Value for status. - * @return void - */ - protected function adjustStatus(\$status, \$b) - { - \$setStatus = 'set' . \$status; - - \$this->obj->\$setStatus(\$b); - - foreach (\$this->childNodes as \$childNode) - \$childNode->obj->\$setStatus(\$b); - } -"; - } - - protected function addAdjustNodePath(&$script) - { - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - $script .= " - /** - * Adjust path of node and all children. This is used internally when - * inserting/moving nodes. - * - * @param string Section of old path to change. - * @param string New section to replace old path with. - * @return void - */ - protected function adjustNodePath(\$oldBasePath, \$newBasePath) - { - \$setNodePath = 'set' . $nodePeerClassname::NPATH_PHPNAME; - - \$this->obj->\$setNodePath(\$newBasePath . substr(\$this->getNodePath(), strlen(\$oldBasePath))); - \$this->obj->resetModified($nodePeerClassname::NPATH_COLNAME); - - foreach (\$this->childNodes as \$childNode) - \$childNode->adjustNodePath(\$oldBasePath, \$newBasePath); - } -"; - } - -} // PHP5NodeObjectBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5NodePeerBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PHP5NodePeerBuilder.php deleted file mode 100644 index b84021e702..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5NodePeerBuilder.php +++ /dev/null @@ -1,754 +0,0 @@ - - * @package propel.generator.builder.om - */ -class PHP5NodePeerBuilder extends PeerBuilder -{ - - /** - * Gets the package for the [base] object classes. - * @return string - */ - public function getPackage() - { - return parent::getPackage() . ".om"; - } - - /** - * Returns the name of the current class being built. - * @return string - */ - public function getUnprefixedClassname() - { - return $this->getBuildProperty('basePrefix') . $this->getStubNodePeerBuilder()->getUnprefixedClassname(); - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - - $table = $this->getTable(); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - - $script .= " -/** - * Base static class for performing query operations on the tree contained by the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * @package propel.generator.".$this->getPackage()." - */ -abstract class ".$this->getClassname()." { -"; - } - - /** - * Specifies the methods that are added as part of the basic OM class. - * This can be overridden by subclasses that wish to add more methods. - * @see ObjectBuilder::addClassBody() - */ - protected function addClassBody(&$script) - { - $table = $this->getTable(); - - // FIXME - // - Probably the build needs to be customized for supporting - // tables that are "aliases". -- definitely a fringe usecase, though. - - $this->addConstants($script); - - $this->addIsCodeBase($script); - - $this->addRetrieveMethods($script); - - $this->addCreateNewRootNode($script); - $this->addInsertNewRootNode($script); - $this->addMoveNodeSubTree($script); - $this->addDeleteNodeSubTree($script); - - $this->addBuildFamilyCriteria($script); - $this->addBuildTree($script); - - $this->addPopulateNodes($script); - - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - } - - protected function addConstants(&$script) - { - $table = $this->getTable(); - - $npath_colname = ''; - $npath_phpname = ''; - $npath_len = 0; - $npath_sep = ''; - foreach ($table->getColumns() as $col) { - if ($col->isNodeKey()) { - $npath_colname = $table->getName() . '.' . strtoupper($col->getName()); - $npath_phpname = $col->getPhpName(); - $npath_len = $col->getSize(); - $npath_sep = $col->getNodeKeySep(); - break; - } - } - $script .= " - const NPATH_COLNAME = '$npath_colname'; - const NPATH_PHPNAME = '$npath_phpname'; - const NPATH_SEP = '$npath_sep'; - const NPATH_LEN = $npath_len; -"; - } - - - protected function addIsCodeBase(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - - $script .= " - /** - * Temp function for CodeBase hacks that will go away. - */ - public static function isCodeBase(\$con = null) - { - if (\$con === null) - \$con = Propel::getConnection($peerClassname::DATABASE_NAME); - - return (get_class(\$con) == 'ODBCConnection' && - get_class(\$con->getAdapter()) == 'CodeBaseAdapter'); - } -"; - } - - - protected function addCreateNewRootNode(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - $nodeObjectClassname = $this->getStubNodeBuilder()->getClassname(); - - $script .= " - /** - * Create a new Node at the top of tree. This method will destroy any - * existing root node (along with its children). - * - * Use at your own risk! - * - * @param $objectClassname Object wrapped by new node. - * @param PropelPDO Connection to use. - * @return $nodeObjectClassname - * @throws PropelException - */ - public static function createNewRootNode(\$obj, PropelPDO \$con = null) - { - if (\$con === null) - \$con = Propel::getConnection($peerClassname::DATABASE_NAME, Propel::CONNECTION_WRITE); - - \$con->beginTransaction(); - - try { - self::deleteNodeSubTree('1', \$con); - - \$setNodePath = 'set' . self::NPATH_PHPNAME; - - \$obj->\$setNodePath('1'); - \$obj->save(\$con); - - \$con->commit(); - } catch (PropelException \$e) { - \$con->rollBack(); - throw \$e; - } - - return new $nodeObjectClassname(\$obj); - } -"; - } - - protected function addInsertNewRootNode(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - $nodeObjectClassname = $this->getStubNodeBuilder()->getClassname(); - - $script .= " - /** - * Inserts a new Node at the top of tree. Any existing root node (along with - * its children) will be made a child of the new root node. This is a - * safer alternative to createNewRootNode(). - * - * @param $objectClassname Object wrapped by new node. - * @param PropelPDO Connection to use. - * @return $nodeObjectClassname - * @throws PropelException - */ - public static function insertNewRootNode(\$obj, PropelPDO \$con = null) - { - if (\$con === null) - \$con = Propel::getConnection($peerClassname::DATABASE_NAME, Propel::CONNECTION_WRITE); - - \$con->beginTransaction(); - try { - // Move root tree to an invalid node path. - $nodePeerClassname::moveNodeSubTree('1', '0', \$con); - - \$setNodePath = 'set' . self::NPATH_PHPNAME; - - // Insert the new root node. - \$obj->\$setNodePath('1'); - \$obj->save(\$con); - - // Move the old root tree as a child of the new root. - $nodePeerClassname::moveNodeSubTree('0', '1' . self::NPATH_SEP . '1', \$con); - - \$con->commit(); - } catch (PropelException \$e) { - \$con->rollBack(); - throw \$e; - } - - return new $nodeObjectClassname(\$obj); - } -"; - } - - /** - * Adds the methods for retrieving nodes. - */ - protected function addRetrieveMethods(&$script) - { - $this->addRetrieveNodes($script); - $this->addRetrieveNodeByPK($script); - $this->addRetrieveNodeByNP($script); - $this->addRetrieveRootNode($script); - - } - - protected function addRetrieveNodes(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - - $script .= " - /** - * Retrieves an array of tree nodes based on specified criteria. Optionally - * includes all parent and/or child nodes of the matching nodes. - * - * @param Criteria Criteria to use. - * @param boolean True if ancestors should also be retrieved. - * @param boolean True if descendants should also be retrieved. - * @param PropelPDO Connection to use. - * @return array Array of root nodes. - */ - public static function retrieveNodes(\$criteria, \$ancestors = false, \$descendants = false, PropelPDO \$con = null) - { - \$criteria = $nodePeerClassname::buildFamilyCriteria(\$criteria, \$ancestors, \$descendants); - \$stmt = ".$this->getStubPeerBuilder()->getClassname()."::doSelectStmt(\$criteria, \$con); - return self::populateNodes(\$stmt, \$criteria); - } -"; - } - - protected function addRetrieveNodeByPK(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - $nodeObjectClassname = $this->getStubNodeBuilder()->getClassname(); - - $script .= " - /** - * Retrieves a tree node based on a primary key. Optionally includes all - * parent and/or child nodes of the matching node. - * - * @param mixed $objectClassname primary key (array for composite keys) - * @param boolean True if ancestors should also be retrieved. - * @param boolean True if descendants should also be retrieved. - * @param PropelPDO Connection to use. - * @return $nodeObjectClassname - */ - public static function retrieveNodeByPK(\$pk, \$ancestors = false, \$descendants = false, PropelPDO \$con = null) - { - throw new PropelException('retrieveNodeByPK() not implemented yet.'); - } -"; - } - - protected function addRetrieveNodeByNP(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - $nodeObjectClassname = $this->getStubNodeBuilder()->getClassname(); - - $script .= " - /** - * Retrieves a tree node based on a node path. Optionally includes all - * parent and/or child nodes of the matching node. - * - * @param string Node path to retrieve. - * @param boolean True if ancestors should also be retrieved. - * @param boolean True if descendants should also be retrieved. - * @param PropelPDO Connection to use. - * @return $objectClassname - */ - public static function retrieveNodeByNP(\$np, \$ancestors = false, \$descendants = false, PropelPDO \$con = null) - { - \$criteria = new Criteria($peerClassname::DATABASE_NAME); - \$criteria->add(self::NPATH_COLNAME, \$np, Criteria::EQUAL); - \$criteria = self::buildFamilyCriteria(\$criteria, \$ancestors, \$descendants); - \$stmt = $peerClassname::doSelectStmt(\$criteria, \$con); - \$nodes = self::populateNodes(\$stmt, \$criteria); - return (count(\$nodes) == 1 ? \$nodes[0] : null); - } -"; - } - - protected function addRetrieveRootNode(&$script) - { - $script .= " - /** - * Retrieves the root node. - * - * @param string Node path to retrieve. - * @param boolean True if descendants should also be retrieved. - * @param PropelPDO Connection to use. - * @return ".$this->getStubNodeBuilder()->getClassname()." - */ - public static function retrieveRootNode(\$descendants = false, PropelPDO \$con = null) - { - return self::retrieveNodeByNP('1', false, \$descendants, \$con); - } -"; - } - - protected function addMoveNodeSubTree(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - $nodeObjectClassname = $this->getStubNodeBuilder()->getClassname(); - - $script .= " - /** - * Moves the node subtree at srcpath to the dstpath. This method is intended - * for internal use by the BaseNode object. Note that it does not check for - * preexisting nodes at the dstpath. It also does not update the node path - * of any Node objects that might currently be in memory. - * - * Use at your own risk! - * - * @param string Source node path to move (root of the src subtree). - * @param string Destination node path to move to (root of the dst subtree). - * @param PropelPDO Connection to use. - * @return void - * @throws PropelException - * @todo This is currently broken for simulated 'onCascadeDelete's. - * @todo Need to abstract the SQL better. The CONCAT sql function doesn't - * seem to be standardized (i.e. mssql), so maybe it needs to be moved - * to DBAdapter. - */ - public static function moveNodeSubTree(\$srcPath, \$dstPath, PropelPDO \$con = null) - { - if (substr(\$dstPath, 0, strlen(\$srcPath)) == \$srcPath) - throw new PropelException('Cannot move a node subtree within itself.'); - - if (\$con === null) - \$con = Propel::getConnection($peerClassname::DATABASE_NAME, Propel::CONNECTION_WRITE); - - /** - * Example: - * UPDATE table - * SET npath = CONCAT('1.3', SUBSTRING(npath, 6, 74)) - * WHERE npath = '1.2.2' OR npath LIKE '1.2.2.%' - */ - - \$npath = $nodePeerClassname::NPATH_COLNAME; - //the following dot isn`t mean`t a nodeKeySeperator - \$setcol = substr(\$npath, strrpos(\$npath, '.')+1); - \$setcollen = $nodePeerClassname::NPATH_LEN; - \$db = Propel::getDb($peerClassname::DATABASE_NAME); - - // - if ($nodePeerClassname::isCodeBase(\$con)) - { - // This is a hack to get CodeBase working. It will eventually be removed. - // It is a workaround for the following CodeBase bug: - // -Prepared statement parameters cannot be embedded in SQL functions (i.e. CONCAT) - \$sql = \"UPDATE \" . $peerClassname::TABLE_NAME . \" \" . - \"SET \$setcol=\" . \$db->concatString(\"'\$dstPath'\", \$db->subString(\$npath, strlen(\$srcPath)+1, \$setcollen)) . \" \" . - \"WHERE \$npath = '\$srcPath' OR \$npath LIKE '\" . \$srcPath . $nodePeerClassname::NPATH_SEP . \"%'\"; - - \$con->executeUpdate(\$sql); - } - else - { - // - \$sql = \"UPDATE \" . $peerClassname::TABLE_NAME . \" \" . - \"SET \$setcol=\" . \$db->concatString('?', \$db->subString(\$npath, '?', '?')) . \" \" . - \"WHERE \$npath = ? OR \$npath LIKE ?\"; - - \$stmt = \$con->prepare(\$sql); - \$stmt->bindValue(1, \$dstPath); // string - \$srcPathPlus1 = strlen(\$srcPath)+1; - \$stmt->bindValue(2, \$srcPathPlus1); // int - \$stmt->bindValue(3, \$setcollen);// int - \$stmt->bindValue(4, \$srcPath);// string - \$srcPathWC = \$srcPath . $nodePeerClassname::NPATH_SEP . '%'; - \$stmt->bindValue(5, \$srcPathWC); // string - \$stmt->execute(); - // - } - } -"; - } - - protected function addDeleteNodeSubTree(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - $nodeObjectClassname = $this->getStubNodeBuilder()->getClassname(); - - $script .= " - /** - * Deletes the node subtree at the specified node path from the database. - * - * @param string Node path to delete - * @param PropelPDO Connection to use. - * @return void - * @throws PropelException - * @todo This is currently broken for simulated 'onCascadeDelete's. - */ - public static function deleteNodeSubTree(\$nodePath, PropelPDO \$con = null) - { - if (\$con === null) - \$con = Propel::getConnection($peerClassname::DATABASE_NAME, Propel::CONNECTION_WRITE); - - /** - * DELETE FROM table - * WHERE npath = '1.2.2' OR npath LIKE '1.2.2.%' - */ - - \$criteria = new Criteria($peerClassname::DATABASE_NAME); - \$criteria->add($nodePeerClassname::NPATH_COLNAME, \$nodePath, Criteria::EQUAL); - \$criteria->addOr($nodePeerClassname::NPATH_COLNAME, \$nodePath . self::NPATH_SEP . '%', Criteria::LIKE); - {$this->basePeerClassname}::doDelete(\$criteria, \$con); - } -"; - } - - protected function addBuildFamilyCriteria(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - $nodeObjectClassname = $this->getStubNodeBuilder()->getClassname(); - - $script .= " - /** - * Builds the criteria needed to retrieve node ancestors and/or descendants. - * - * @param Criteria Criteria to start with - * @param boolean True if ancestors should be retrieved. - * @param boolean True if descendants should be retrieved. - * @return Criteria - */ - public static function buildFamilyCriteria(\$criteria, \$ancestors = false, \$descendants = false) - { - /* - Example SQL to retrieve nodepath '1.2.3' with both ancestors and descendants: - - SELECT L.NPATH, L.LABEL, test.NPATH, UCASE(L.NPATH) - FROM test L, test - WHERE test.NPATH='1.2.3' AND - (L.NPATH=SUBSTRING(test.NPATH, 1, LENGTH(L.NPATH)) OR - test.NPATH=SUBSTRING(L.NPATH, 1, LENGTH(test.NPATH))) - ORDER BY UCASE(L.NPATH) ASC - */ - - if (\$criteria === null) - \$criteria = new Criteria($peerClassname::DATABASE_NAME); - - if (!\$criteria->getSelectColumns()) - $peerClassname::addSelectColumns(\$criteria); - - \$db = Propel::getDb(\$criteria->getDbName()); - - if ((\$ancestors || \$descendants) && \$criteria->size()) - { - // If we are retrieving ancestors/descendants, we need to do a - // self-join to locate them. The exception to this is if no search - // criteria is specified. In this case we're retrieving all nodes - // anyway, so there is no need to do a self-join. - - // The left-side of the self-join will contain the columns we'll - // use to build node objects (target node records along with their - // ancestors and/or descendants). The right-side of the join will - // contain the target node records specified by the initial criteria. - // These are used to match the appropriate ancestor/descendant on - // the left. - - // Specify an alias for the left-side table to use. - \$criteria->addAlias('L', $peerClassname::TABLE_NAME); - - // Make sure we have select columns to begin with. - if (!\$criteria->getSelectColumns()) - $peerClassname::addSelectColumns(\$criteria); - - // Replace any existing columns for the right-side table with the - // left-side alias. - \$selectColumns = \$criteria->getSelectColumns(); - \$criteria->clearSelectColumns(); - foreach (\$selectColumns as \$colName) - \$criteria->addSelectColumn(str_replace($peerClassname::TABLE_NAME, 'L', \$colName)); - - \$a = null; - \$d = null; - - \$npathL = $peerClassname::alias('L', $nodePeerClassname::NPATH_COLNAME); - \$npathR = $nodePeerClassname::NPATH_COLNAME; - \$npath_len = $nodePeerClassname::NPATH_LEN; - - if (\$ancestors) - { - // For ancestors, match left-side node paths which are contained - // by right-side node paths. - \$a = \$criteria->getNewCriterion(\$npathL, - \"\$npathL=\" . \$db->subString(\$npathR, 1, \$db->strLength(\$npathL), \$npath_len), - Criteria::CUSTOM); - } - - if (\$descendants) - { - // For descendants, match left-side node paths which contain - // right-side node paths. - \$d = \$criteria->getNewCriterion(\$npathR, - \"\$npathR=\" . \$db->subString(\$npathL, 1, \$db->strLength(\$npathR), \$npath_len), - Criteria::CUSTOM); - } - - if (\$a) - { - if (\$d) \$a->addOr(\$d); - \$criteria->addAnd(\$a); - } - else if (\$d) - { - \$criteria->addAnd(\$d); - } - - // Add the target node path column. This is used by populateNodes(). - \$criteria->addSelectColumn(\$npathR); - - // Sort by node path to speed up tree construction in populateNodes() - \$criteria->addAsColumn('npathlen', \$db->strLength(\$npathL)); - \$criteria->addAscendingOrderByColumn('npathlen'); - \$criteria->addAscendingOrderByColumn(\$npathL); - } - else - { - // Add the target node path column. This is used by populateNodes(). - \$criteria->addSelectColumn($nodePeerClassname::NPATH_COLNAME); - - // Sort by node path to speed up tree construction in populateNodes() - \$criteria->addAsColumn('npathlen', \$db->strLength($nodePeerClassname::NPATH_COLNAME)); - \$criteria->addAscendingOrderByColumn('npathlen'); - \$criteria->addAscendingOrderByColumn($nodePeerClassname::NPATH_COLNAME); - } - - return \$criteria; - } -"; - } - - protected function addBuildTree(&$script) - { - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - $nodeObjectClassname = $this->getStubNodeBuilder()->getClassname(); - - $script .= " - /** - * This method reconstructs as much of the tree structure as possible from - * the given array of objects. Depending on how you execute your query, it - * is possible for the ResultSet to contain multiple tree fragments (i.e. - * subtrees). The array returned by this method will contain one entry - * for each subtree root node it finds. The remaining subtree nodes are - * accessible from the $nodeObjectClassname methods of the - * subtree root nodes. - * - * @param array Array of $nodeObjectClassname objects - * @return array Array of $nodeObjectClassname objects - */ - public static function buildTree(\$nodes) - { - // Subtree root nodes to return - \$rootNodes = array(); - - // Build the tree relations - foreach (\$nodes as \$node) - { - \$sep = strrpos(\$node->getNodePath(), $nodePeerClassname::NPATH_SEP); - \$parentPath = (\$sep !== false ? substr(\$node->getNodePath(), 0, \$sep) : ''); - \$parentNode = null; - - // Scan other nodes for parent. - foreach (\$nodes as \$pnode) - { - if (\$pnode->getNodePath() === \$parentPath) - { - \$parentNode = \$pnode; - break; - } - } - - // If parent was found, attach as child, otherwise its a subtree root - if (\$parentNode) - \$parentNode->attachChildNode(\$node); - else - \$rootNodes[] = \$node; - } - - return \$rootNodes; - } -"; - } - - protected function addPopulateNodes(&$script) - { - $table = $this->getTable(); - - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $objectClassname = $this->getStubObjectBuilder()->getClassname(); - - $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); - $nodeObjectClassname = $this->getStubNodeBuilder()->getClassname(); - - $script .= " - /** - * Populates the $objectClassname objects from the - * specified ResultSet, wraps them in $nodeObjectClassname - * objects and build the appropriate node relationships. - * The array returned by this method will only include the initial targets - * of the query, even if ancestors/descendants were also requested. - * The ancestors/descendants will be cached in memory and are accessible via - * the getNode() methods. - * - * @param PDOStatement \$stmt Executed PDOStatement - * @param Criteria - * @return array Array of $nodeObjectClassname objects. - */ - public static function populateNodes(PDOStatement \$stmt, \$criteria) - { - \$nodes = array(); - \$targets = array(); - \$targetfld = count(\$criteria->getSelectColumns()); -"; - - if (!$table->getChildrenColumn()) { - $script .= " - // set the class once to avoid overhead in the loop - \$cls = $peerClassname::getOMClass(); - \$cls = substr('.'.\$cls, strrpos('.'.\$cls, '.') + 1); -"; - } - - $script .= " - // populate the object(s) - foreach(\$stmt->fetchAll() AS \$row) - { - if (!isset(\$nodes[\$row[0]])) - { -"; - if ($table->getChildrenColumn()) { - $script .= " - // class must be set each time from the record row - \$cls = $peerClassname::getOMClass(\$row, 1); - \$cls = substr('.'.\$cls, strrpos('.'.\$cls, '.') + 1); -"; - } - - $script .= " - " . $this->buildObjectInstanceCreationCode('$obj', '$cls') . " - \$obj->hydrate(\$row); - - \$nodes[\$row[0]] = new $nodeObjectClassname(\$obj); - } - - \$node = \$nodes[\$row[0]]; - - if (\$node->getNodePath() === \$row[\$targetfld]) - \$targets[\$node->getNodePath()] = \$node; - } - - $nodePeerClassname::buildTree(\$nodes); - - return array_values(\$targets); - } -"; - } - -} // PHP5NodePeerBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ObjectBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ObjectBuilder.php deleted file mode 100644 index e77e547b84..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ObjectBuilder.php +++ /dev/null @@ -1,4250 +0,0 @@ - - * @package propel.generator.builder.om - */ -class PHP5ObjectBuilder extends ObjectBuilder -{ - - /** - * Gets the package for the [base] object classes. - * @return string - */ - public function getPackage() - { - return parent::getPackage() . ".om"; - } - - public function getNamespace() - { - if ($namespace = parent::getNamespace()) { - if ($this->getGeneratorConfig() && $omns = $this->getGeneratorConfig()->getBuildProperty('namespaceOm')) { - return $namespace . '\\' . $omns; - } else { - return $namespace; - } - } - } - - /** - * Returns the name of the current class being built. - * @return string - */ - public function getUnprefixedClassname() - { - return $this->getBuildProperty('basePrefix') . $this->getStubObjectBuilder()->getUnprefixedClassname(); - } - - /** - * Validates the current table to make sure that it won't - * result in generated code that will not parse. - * - * This method may emit warnings for code which may cause problems - * and will throw exceptions for errors that will definitely cause - * problems. - */ - protected function validateModel() - { - parent::validateModel(); - - $table = $this->getTable(); - - // Check to see whether any generated foreign key names - // will conflict with column names. - - $colPhpNames = array(); - $fkPhpNames = array(); - - foreach ($table->getColumns() as $col) { - $colPhpNames[] = $col->getPhpName(); - } - - foreach ($table->getForeignKeys() as $fk) { - $fkPhpNames[] = $this->getFKPhpNameAffix($fk, $plural = false); - } - - $intersect = array_intersect($colPhpNames, $fkPhpNames); - if (!empty($intersect)) { - throw new EngineException("One or more of your column names for [" . $table->getName() . "] table conflict with foreign key names (" . implode(", ", $intersect) . ")"); - } - - // Check foreign keys to see if there are any foreign keys that - // are also matched with an inversed referencing foreign key - // (this is currently unsupported behavior) - // see: http://propel.phpdb.org/trac/ticket/549 - - foreach ($table->getForeignKeys() as $fk) { - if ($fk->isMatchedByInverseFK()) { - throw new EngineException("The 1:1 relationship expressed by foreign key " . $fk->getName() . " is defined in both directions; Propel does not currently support this (if you must have both foreign key constraints, consider adding this constraint with a custom SQL file.)" ); - } - } - } - - /** - * Returns the appropriate formatter (from platform) for a date/time column. - * @param Column $col - * @return string - */ - protected function getTemporalFormatter(Column $col) - { - $fmt = null; - if ($col->getType() === PropelTypes::DATE) { - $fmt = $this->getPlatform()->getDateFormatter(); - } elseif ($col->getType() === PropelTypes::TIME) { - $fmt = $this->getPlatform()->getTimeFormatter(); - } elseif ($col->getType() === PropelTypes::TIMESTAMP) { - $fmt = $this->getPlatform()->getTimestampFormatter(); - } - return $fmt; - } - - /** - * Returns the type-casted and stringified default value for the specified Column. - * This only works for scalar default values currently. - * @return string The default value or 'NULL' if there is none. - */ - protected function getDefaultValueString(Column $col) - { - $defaultValue = var_export(null, true); - if (($val = $col->getPhpDefaultValue()) !== null) { - if ($col->isTemporalType()) { - $fmt = $this->getTemporalFormatter($col); - try { - if (!($this->getPlatform() instanceof MysqlPlatform && - ($val === '0000-00-00 00:00:00' || $val === '0000-00-00'))) { - // while technically this is not a default value of NULL, - // this seems to be closest in meaning. - $defDt = new DateTime($val); - $defaultValue = var_export($defDt->format($fmt), true); - } - } catch (Exception $x) { - // prevent endless loop when timezone is undefined - date_default_timezone_set('America/Los_Angeles'); - throw new EngineException("Unable to parse default temporal value for " . $col->getFullyQualifiedName() . ": " .$this->getDefaultValueString($col), $x); - } - } else { - if ($col->isPhpPrimitiveType()) { - settype($val, $col->getPhpType()); - $defaultValue = var_export($val, true); - } elseif ($col->isPhpObjectType()) { - $defaultValue = 'new '.$col->getPhpType().'(' . var_export($val, true) . ')'; - } else { - throw new EngineException("Cannot get default value string for " . $col->getFullyQualifiedName()); - } - } - } - return $defaultValue; - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - - $table = $this->getTable(); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - $interface = $this->getInterface(); - $parentClass = $this->getBehaviorContent('parentClass'); - $parentClass = (null !== $parentClass) ? $parentClass : ClassTools::classname($this->getBaseClass()); - $script .= " -/** - * Base class that represents a row from the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * @package propel.generator.".$this->getPackage()." - */ -abstract class ".$this->getClassname()." extends ".$parentClass." "; - - $interface = ClassTools::getInterface($table); - if ($interface) { - $script .= " implements " . ClassTools::classname($interface); - } - if ($this->getTable()->getInterface()) { - $this->declareClassFromBuilder($this->getInterfaceBuilder()); - } - - $script .= " -{ -"; - } - - /** - * Specifies the methods that are added as part of the basic OM class. - * This can be overridden by subclasses that wish to add more methods. - * @see ObjectBuilder::addClassBody() - */ - protected function addClassBody(&$script) - { - $this->declareClassFromBuilder($this->getStubPeerBuilder()); - $this->declareClassFromBuilder($this->getStubQueryBuilder()); - $this->declareClasses('Propel', 'PropelException', 'PDO', 'PropelPDO', 'Criteria', 'BaseObject', 'Persistent', 'BasePeer', 'PropelObjectcollection'); - - $table = $this->getTable(); - if (!$table->isAlias()) { - $this->addConstants($script); - $this->addAttributes($script); - } - - if ($this->hasDefaultValues()) { - $this->addApplyDefaultValues($script); - $this->addConstructor($script); - } - - $this->addColumnAccessorMethods($script); - $this->addColumnMutatorMethods($script); - - $this->addHasOnlyDefaultValues($script); - - $this->addHydrate($script); - $this->addEnsureConsistency($script); - - if (!$table->isReadOnly()) { - $this->addManipulationMethods($script); - } - - if ($this->isAddValidateMethod()) { - $this->addValidationMethods($script); - } - - if ($this->isAddGenericAccessors()) { - $this->addGetByName($script); - $this->addGetByPosition($script); - $this->addToArray($script); - } - - if ($this->isAddGenericMutators()) { - $this->addSetByName($script); - $this->addSetByPosition($script); - $this->addFromArray($script); - } - - $this->addBuildCriteria($script); - $this->addBuildPkeyCriteria($script); - $this->addGetPrimaryKey($script); - $this->addSetPrimaryKey($script); - $this->addIsPrimaryKeyNull($script); - - $this->addCopy($script); - - if (!$table->isAlias()) { - $this->addGetPeer($script); - } - - $this->addFKMethods($script); - $this->addRefFKMethods($script); - $this->addCrossFKMethods($script); - $this->addClear($script); - $this->addClearAllReferences($script); - - $this->addPrimaryString($script); - - // apply behaviors - $this->applyBehaviorModifier('objectMethods', $script, " "); - - $this->addMagicCall($script); - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - $this->applyBehaviorModifier('objectFilter', $script, ""); - } - - /** - * Adds any constants to the class. - * @param string &$script The script will be modified in this method. - */ - protected function addConstants(&$script) - { - $script .= " - /** - * Peer class name - */ - const PEER = '" . addslashes($this->getStubPeerBuilder()->getFullyQualifiedClassname()) . "'; -"; - } - - /** - * Adds class attributes. - * @param string &$script The script will be modified in this method. - */ - protected function addAttributes(&$script) - { - $table = $this->getTable(); - - $script .= " - /** - * The Peer class. - * Instance provides a convenient way of calling static methods on a class - * that calling code may not be able to identify. - * @var ".$this->getPeerClassname()." - */ - protected static \$peer; -"; - if (!$table->isAlias()) { - $this->addColumnAttributes($script); - } - - foreach ($table->getForeignKeys() as $fk) { - $this->addFKAttributes($script, $fk); - } - - foreach ($table->getReferrers() as $refFK) { - $this->addRefFKAttributes($script, $refFK); - } - - // many-to-many relationships - foreach ($table->getCrossFks() as $fkList) { - $crossFK = $fkList[1]; - $this->addCrossFKAttributes($script, $crossFK); - } - - - $this->addAlreadyInSaveAttribute($script); - $this->addAlreadyInValidationAttribute($script); - - // apply behaviors - $this->applyBehaviorModifier('objectAttributes', $script, " "); - } - - /** - * Adds variables that store column values. - * @param string &$script The script will be modified in this method. - * @see addColumnNameConstants() - */ - protected function addColumnAttributes(&$script) - { - - $table = $this->getTable(); - - foreach ($table->getColumns() as $col) { - $this->addColumnAttributeComment($script, $col); - $this->addColumnAttributeDeclaration($script, $col); - if ($col->isLazyLoad() ) { - $this->addColumnAttributeLoaderComment($script, $col); - $this->addColumnAttributeLoaderDeclaration($script, $col); - } - } - } - - /** - * Add comment about the attribute (variable) that stores column values - * @param string &$script The script will be modified in this method. - * @param Column $col - **/ - protected function addColumnAttributeComment(&$script, Column $col) - { - $cptype = $col->getPhpType(); - $clo = strtolower($col->getName()); - - $script .= " - /** - * The value for the $clo field."; - if ($col->getDefaultValue()) { - if ($col->getDefaultValue()->isExpression()) { - $script .= " - * Note: this column has a database default value of: (expression) ".$col->getDefaultValue()->getValue(); - } else { - $script .= " - * Note: this column has a database default value of: ". $this->getDefaultValueString($col); - } - } - $script .= " - * @var $cptype - */"; - } - - /** - * Adds the declaration of a column value storage attribute - * @param string &$script The script will be modified in this method. - * @param Column $col - **/ - protected function addColumnAttributeDeclaration(&$script, Column $col) - { - $clo = strtolower($col->getName()); - $script .= " - protected \$" . $clo . "; -"; - } - - /** - * Adds the comment about the attribute keeping track if an attribute value has been loaded - * @param string &$script The script will be modified in this method. - * @param Column $col - **/ - protected function addColumnAttributeLoaderComment(&$script, Column $col) - { - $clo = strtolower($col->getName()); - $script .= " - /** - * Whether the lazy-loaded \$$clo value has been loaded from database. - * This is necessary to avoid repeated lookups if \$$clo column is NULL in the db. - * @var boolean - */"; - } - - /** - * Adds the declaration of the attribute keeping track of an attribute's loaded state - * @param string &$script The script will be modified in this method. - * @param Column $col - **/ - protected function addColumnAttributeLoaderDeclaration(&$script, Column $col) - { - $clo = strtolower($col->getName()); - $script .= " - protected \$".$clo."_isLoaded = false; -"; - } - - /** - * Adds the getPeer() method. - * This is a convenient, non introspective way of getting the Peer class for a particular object. - * @param string &$script The script will be modified in this method. - */ - protected function addGetPeer(&$script) - { - $this->addGetPeerComment($script); - $this->addGetPeerFunctionOpen($script); - $this->addGetPeerFunctionBody($script); - $this->addGetPeerFunctionClose($script); - } - - /** - * Add the comment for the getPeer method - * @param string &$script The script will be modified in this method. - **/ - protected function addGetPeerComment(&$script) { - $script .= " - /** - * Returns a peer instance associated with this om. - * - * Since Peer classes are not to have any instance attributes, this method returns the - * same instance for all member of this class. The method could therefore - * be static, but this would prevent one from overriding the behavior. - * - * @return ".$this->getPeerClassname()." - */"; - } - - /** - * Adds the function declaration (function opening) for the getPeer method - * @param string &$script The script will be modified in this method. - **/ - protected function addGetPeerFunctionOpen(&$script) { - $script .= " - public function getPeer() - {"; - } - - /** - * Adds the body of the getPeer method - * @param string &$script The script will be modified in this method. - **/ - protected function addGetPeerFunctionBody(&$script) { - $script .= " - if (self::\$peer === null) { - " . $this->buildObjectInstanceCreationCode('self::$peer', $this->getPeerClassname()) . " - } - return self::\$peer;"; - } - - /** - * Add the function close for the getPeer method - * Note: this is just a } and the body ends with a return statement, so it's quite useless. But it's here anyway for consisency, cause there's a close function for all functions and in some other instances, they are useful - * @param string &$script The script will be modified in this method. - **/ - protected function addGetPeerFunctionClose(&$script) { - $script .= " - } -"; - } - - /** - * Adds the constructor for this object. - * @param string &$script The script will be modified in this method. - * @see addConstructor() - */ - protected function addConstructor(&$script) - { - $this->addConstructorComment($script); - $this->addConstructorOpen($script); - $this->addConstructorBody($script); - $this->addConstructorClose($script); - } - - /** - * Adds the comment for the constructor - * @param string &$script The script will be modified in this method. - **/ - protected function addConstructorComment(&$script) { - $script .= " - /** - * Initializes internal state of ".$this->getClassname()." object. - * @see applyDefaults() - */"; - } - - /** - * Adds the function declaration for the constructor - * @param string &$script The script will be modified in this method. - **/ - protected function addConstructorOpen(&$script) { - $script .= " - public function __construct() - {"; - } - - /** - * Adds the function body for the constructor - * @param string &$script The script will be modified in this method. - **/ - protected function addConstructorBody(&$script) { - $script .= " - parent::__construct(); - \$this->applyDefaultValues();"; - } - - /** - * Adds the function close for the constructor - * @param string &$script The script will be modified in this method. - **/ - protected function addConstructorClose(&$script) { - $script .= " - } -"; - } - - /** - * Adds the applyDefaults() method, which is called from the constructor. - * @param string &$script The script will be modified in this method. - * @see addConstructor() - */ - protected function addApplyDefaultValues(&$script) - { - $this->addApplyDefaultValuesComment($script); - $this->addApplyDefaultValuesOpen($script); - $this->addApplyDefaultValuesBody($script); - $this->addApplyDefaultValuesClose($script); - } - - /** - * Adds the comment for the applyDefaults method - * @param string &$script The script will be modified in this method. - * @see addApplyDefaultValues() - **/ - protected function addApplyDefaultValuesComment(&$script) { - $script .= " - /** - * Applies default values to this object. - * This method should be called from the object's constructor (or - * equivalent initialization method). - * @see __construct() - */"; - } - - /** - * Adds the function declaration for the applyDefaults method - * @param string &$script The script will be modified in this method. - * @see addApplyDefaultValues() - **/ - protected function addApplyDefaultValuesOpen(&$script) { - $script .= " - public function applyDefaultValues() - {"; - } - - /** - * Adds the function body of the applyDefault method - * @param string &$script The script will be modified in this method. - * @see addApplyDefaultValues() - **/ - protected function addApplyDefaultValuesBody(&$script) { - $table = $this->getTable(); - // FIXME - Apply support for PHP default expressions here - // see: http://propel.phpdb.org/trac/ticket/378 - - $colsWithDefaults = array(); - foreach ($table->getColumns() as $col) { - $def = $col->getDefaultValue(); - if ($def !== null && !$def->isExpression()) { - $colsWithDefaults[] = $col; - } - } - - $colconsts = array(); - foreach ($colsWithDefaults as $col) { - $clo = strtolower($col->getName()); - $script .= " - \$this->".$clo." = ".$this->getDefaultValueString($col).";"; - - } - } - - - /** - * Adds the function close for the applyDefaults method - * @param string &$script The script will be modified in this method. - * @see addApplyDefaultValues() - **/ - protected function addApplyDefaultValuesClose(&$script) { - $script .= " - } -"; - } - - // -------------------------------------------------------------- - // - // A C C E S S O R M E T H O D S - // - // -------------------------------------------------------------- - - /** - * Adds a date/time/timestamp getter method. - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see parent::addColumnAccessors() - */ - protected function addTemporalAccessor(&$script, Column $col) - { - $this->addTemporalAccessorComment($script, $col); - $this->addTemporalAccessorOpen($script, $col); - $this->addTemporalAccessorBody($script, $col); - $this->addTemporalAccessorClose($script, $col); - } // addTemporalAccessor - - - /** - * Adds the comment for a temporal accessor - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addTemporalAccessor - **/ - protected function addTemporalAccessorComment(&$script, Column $col) { - $clo = strtolower($col->getName()); - $useDateTime = $this->getBuildProperty('useDateTimeClass'); - - $dateTimeClass = $this->getBuildProperty('dateTimeClass'); - if (!$dateTimeClass) { - $dateTimeClass = 'DateTime'; - } - - $handleMysqlDate = false; - if ($this->getPlatform() instanceof MysqlPlatform) { - if ($col->getType() === PropelTypes::TIMESTAMP) { - $handleMysqlDate = true; - $mysqlInvalidDateString = '0000-00-00 00:00:00'; - } elseif ($col->getType() === PropelTypes::DATE) { - $handleMysqlDate = true; - $mysqlInvalidDateString = '0000-00-00'; - } - // 00:00:00 is a valid time, so no need to check for that. - } - - $script .= " - /** - * Get the [optionally formatted] temporal [$clo] column value. - * ".$col->getDescription(); - if (!$useDateTime) { - $script .= " - * This accessor only only work with unix epoch dates. Consider enabling the propel.useDateTimeClass - * option in order to avoid converstions to integers (which are limited in the dates they can express)."; - } - $script .= " - * - * @param string \$format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw ".($useDateTime ? 'DateTime object' : 'unix timestamp integer')." will be returned."; - if ($useDateTime) { - $script .= " - * @return mixed Formatted date/time value as string or $dateTimeClass object (if format is NULL), NULL if column is NULL" .($handleMysqlDate ? ', and 0 if column value is ' . $mysqlInvalidDateString : ''); - } else { - $script .= " - * @return mixed Formatted date/time value as string or (integer) unix timestamp (if format is NULL), NULL if column is NULL".($handleMysqlDate ? ', and 0 if column value is ' . $mysqlInvalidDateString : ''); - } - $script .= " - * @throws PropelException - if unable to parse/validate the date/time value. - */"; - } - - - /** - * Adds the function declaration for a temporal accessor - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addTemporalAccessor - **/ - protected function addTemporalAccessorOpen(&$script, Column $col) { - $cfc = $col->getPhpName(); - - $defaultfmt = null; - $visibility = $col->getAccessorVisibility(); - - // Default date/time formatter strings are specified in build.properties - if ($col->getType() === PropelTypes::DATE) { - $defaultfmt = $this->getBuildProperty('defaultDateFormat'); - } elseif ($col->getType() === PropelTypes::TIME) { - $defaultfmt = $this->getBuildProperty('defaultTimeFormat'); - } elseif ($col->getType() === PropelTypes::TIMESTAMP) { - $defaultfmt = $this->getBuildProperty('defaultTimeStampFormat'); - } - if (empty($defaultfmt)) { $defaultfmt = null; } - - $script .= " - ".$visibility." function get$cfc(\$format = ".var_export($defaultfmt, true).""; - if ($col->isLazyLoad()) $script .= ", \$con = null"; - $script .= ") - {"; - } - - /** - * Adds the body of the temporal accessor - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addTemporalAccessor - **/ - protected function addTemporalAccessorBody(&$script, Column $col) { - $cfc = $col->getPhpName(); - $clo = strtolower($col->getName()); - - $useDateTime = $this->getBuildProperty('useDateTimeClass'); - - $dateTimeClass = $this->getBuildProperty('dateTimeClass'); - if (!$dateTimeClass) { - $dateTimeClass = 'DateTime'; - } - - $defaultfmt = null; - - // Default date/time formatter strings are specified in build.properties - if ($col->getType() === PropelTypes::DATE) { - $defaultfmt = $this->getBuildProperty('defaultDateFormat'); - } elseif ($col->getType() === PropelTypes::TIME) { - $defaultfmt = $this->getBuildProperty('defaultTimeFormat'); - } elseif ($col->getType() === PropelTypes::TIMESTAMP) { - $defaultfmt = $this->getBuildProperty('defaultTimeStampFormat'); - } - if (empty($defaultfmt)) { $defaultfmt = null; } - - $handleMysqlDate = false; - if ($this->getPlatform() instanceof MysqlPlatform) { - if ($col->getType() === PropelTypes::TIMESTAMP) { - $handleMysqlDate = true; - $mysqlInvalidDateString = '0000-00-00 00:00:00'; - } elseif ($col->getType() === PropelTypes::DATE) { - $handleMysqlDate = true; - $mysqlInvalidDateString = '0000-00-00'; - } - // 00:00:00 is a valid time, so no need to check for that. - } - - if ($col->isLazyLoad()) { - $script .= " - if (!\$this->".$clo."_isLoaded && \$this->$clo === null && !\$this->isNew()) { - \$this->load$cfc(\$con); - } -"; - } - $script .= " - if (\$this->$clo === null) { - return null; - } - -"; - if ($handleMysqlDate) { - $script .= " - if (\$this->$clo === '$mysqlInvalidDateString') { - // while technically this is not a default value of NULL, - // this seems to be closest in meaning. - return null; - } else { - try { - \$dt = new $dateTimeClass(\$this->$clo); - } catch (Exception \$x) { - throw new PropelException(\"Internally stored date/time/timestamp value could not be converted to $dateTimeClass: \" . var_export(\$this->$clo, true), \$x); - } - } -"; - } else { - $script .= " - - try { - \$dt = new $dateTimeClass(\$this->$clo); - } catch (Exception \$x) { - throw new PropelException(\"Internally stored date/time/timestamp value could not be converted to $dateTimeClass: \" . var_export(\$this->$clo, true), \$x); - } -"; - } // if handleMyqlDate - - $script .= " - if (\$format === null) {"; - if ($useDateTime) { - $script .= " - // Because propel.useDateTimeClass is TRUE, we return a $dateTimeClass object. - return \$dt;"; - } else { - $script .= " - // We cast here to maintain BC in API; obviously we will lose data if we're dealing with pre-/post-epoch dates. - return (int) \$dt->format('U');"; - } - $script .= " - } elseif (strpos(\$format, '%') !== false) { - return strftime(\$format, \$dt->format('U')); - } else { - return \$dt->format(\$format); - }"; - } - - - /** - * Adds the body of the temporal accessor - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addTemporalAccessorClose - **/ - protected function addTemporalAccessorClose(&$script, Column $col) { - $script .= " - } -"; - } - - /** - * Adds a normal (non-temporal) getter method. - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see parent::addColumnAccessors() - */ - protected function addDefaultAccessor(&$script, Column $col) - { - $this->addDefaultAccessorComment($script, $col); - $this->addDefaultAccessorOpen($script, $col); - $this->addDefaultAccessorBody($script, $col); - $this->addDefaultAccessorClose($script, $col); - } - - /** - * Add the comment for a default accessor method (a getter) - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addDefaultAccessor() - **/ - protected function addDefaultAccessorComment(&$script, Column $col) { - $clo=strtolower($col->getName()); - - $script .= " - /** - * Get the [$clo] column value. - * ".$col->getDescription(); - if ($col->isLazyLoad()) { - $script .= " - * @param PropelPDO An optional PropelPDO connection to use for fetching this lazy-loaded column."; - } - $script .= " - * @return ".$col->getPhpType()." - */"; - } - - /** - * Adds the function declaration for a default accessor - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addDefaultAccessor() - **/ - protected function addDefaultAccessorOpen(&$script, Column $col) { - $cfc = $col->getPhpName(); - $visibility = $col->getAccessorVisibility(); - - $script .= " - ".$visibility." function get$cfc("; - if ($col->isLazyLoad()) $script .= "PropelPDO \$con = null"; - $script .= ") - {"; - } - - /** - * Adds the function body for a default accessor method - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addDefaultAccessor() - **/ - protected function addDefaultAccessorBody(&$script, Column $col) { - $cfc = $col->getPhpName(); - $clo = strtolower($col->getName()); - if ($col->isLazyLoad()) { - $script .= " - if (!\$this->".$clo."_isLoaded && \$this->$clo === null && !\$this->isNew()) { - \$this->load$cfc(\$con); - } -"; - } - - $script .= " - return \$this->$clo;"; - } - - /** - * Adds the function close for a default accessor method - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addDefaultAccessor() - **/ - protected function addDefaultAccessorClose(&$script, Column $col) { - $script .= " - } -"; - } - - /** - * Adds the lazy loader method. - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see parent::addColumnAccessors() - */ - protected function addLazyLoader(&$script, Column $col) - { - $this->addLazyLoaderComment($script, $col); - $this->addLazyLoaderOpen($script, $col); - $this->addLazyLoaderBody($script, $col); - $this->addLazyLoaderClose($script, $col); - } - - /** - * Adds the comment for the lazy loader method - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addLazyLoader() - **/ - protected function addLazyLoaderComment(&$script, Column $col) { - $clo = strtolower($col->getName()); - - $script .= " - /** - * Load the value for the lazy-loaded [$clo] column. - * - * This method performs an additional query to return the value for - * the [$clo] column, since it is not populated by - * the hydrate() method. - * - * @param \$con PropelPDO (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - any underlying error will be wrapped and re-thrown. - */"; - } - - /** - * Adds the function declaration for the lazy loader method - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addLazyLoader() - **/ - protected function addLazyLoaderOpen(&$script, Column $col) { - $cfc = $col->getPhpName(); - $script .= " - protected function load$cfc(PropelPDO \$con = null) - {"; - } - - /** - * Adds the function body for the lazy loader method - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addLazyLoader() - **/ - protected function addLazyLoaderBody(&$script, Column $col) { - $platform = $this->getPlatform(); - $clo = strtolower($col->getName()); - - $script .= " - \$c = \$this->buildPkeyCriteria(); - \$c->addSelectColumn(".$this->getColumnConstant($col)."); - try { - \$stmt = ".$this->getPeerClassname()."::doSelectStmt(\$c, \$con); - \$row = \$stmt->fetch(PDO::FETCH_NUM); - \$stmt->closeCursor();"; - - if ($col->getType() === PropelTypes::CLOB && $this->getPlatform() instanceof OraclePlatform) { - // PDO_OCI returns a stream for CLOB objects, while other PDO adapters return a string... - $script .= " - \$this->$clo = stream_get_contents(\$row[0]);"; - } elseif ($col->isLobType() && !$platform->hasStreamBlobImpl()) { - $script .= " - if (\$row[0] !== null) { - \$this->$clo = fopen('php://memory', 'r+'); - fwrite(\$this->$clo, \$row[0]); - rewind(\$this->$clo); - } else { - \$this->$clo = null; - }"; - } elseif ($col->isPhpPrimitiveType()) { - $script .= " - \$this->$clo = (\$row[0] !== null) ? (".$col->getPhpType().") \$row[0] : null;"; - } elseif ($col->isPhpObjectType()) { - $script .= " - \$this->$clo = (\$row[0] !== null) ? new ".$col->getPhpType()."(\$row[0]) : null;"; - } else { - $script .= " - \$this->$clo = \$row[0];"; - } - - $script .= " - \$this->".$clo."_isLoaded = true; - } catch (Exception \$e) { - throw new PropelException(\"Error loading value for [$clo] column on demand.\", \$e); - }"; - } - - /** - * Adds the function close for the lazy loader - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addLazyLoader() - **/ - protected function addLazyLoaderClose(&$script, Column $col) { - $script .= " - }"; - } // addLazyLoader() - - // -------------------------------------------------------------- - // - // M U T A T O R M E T H O D S - // - // -------------------------------------------------------------- - - /** - * Adds the open of the mutator (setter) method for a column. - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - */ - protected function addMutatorOpen(&$script, Column $col) - { - $this->addMutatorComment($script, $col); - $this->addMutatorOpenOpen($script, $col); - $this->addMutatorOpenBody($script, $col); - } - - /** - * Adds the comment for a mutator - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addMutatorOpen() - **/ - protected function addMutatorComment(&$script, Column $col) { - $clo = strtolower($col->getName()); - $script .= " - /** - * Set the value of [$clo] column. - * ".$col->getDescription()." - * @param ".$col->getPhpType()." \$v new value - * @return ".$this->getObjectClassname()." The current object (for fluent API support) - */"; - } - - /** - * Adds the mutator function declaration - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addMutatorOpen() - **/ - protected function addMutatorOpenOpen(&$script, Column $col) { - $cfc = $col->getPhpName(); - $visibility = $col->getMutatorVisibility(); - - $script .= " - ".$visibility." function set$cfc(\$v) - {"; - } - - /** - * Adds the mutator open body part - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addMutatorOpen() - **/ - protected function addMutatorOpenBody(&$script, Column $col) { - $clo = strtolower($col->getName()); - $cfc = $col->getPhpName(); - if ($col->isLazyLoad()) { - $script .= " - // explicitly set the is-loaded flag to true for this lazy load col; - // it doesn't matter if the value is actually set or not (logic below) as - // any attempt to set the value means that no db lookup should be performed - // when the get$cfc() method is called. - \$this->".$clo."_isLoaded = true; -"; - } - } - - /** - * Adds the close of the mutator (setter) method for a column. - * - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - */ - protected function addMutatorClose(&$script, Column $col) - { - $this->addMutatorCloseBody($script, $col); - $this->addMutatorCloseClose($script, $col); - } - - /** - * Adds the body of the close part of a mutator - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addMutatorClose() - **/ - protected function addMutatorCloseBody(&$script, Column $col) { - $table = $this->getTable(); - $cfc = $col->getPhpName(); - $clo = strtolower($col->getName()); - - if ($col->isForeignKey()) { - - foreach ($col->getForeignKeys() as $fk) { - - $tblFK = $table->getDatabase()->getTable($fk->getForeignTableName()); - $colFK = $tblFK->getColumn($fk->getMappedForeignColumn($col->getName())); - - $varName = $this->getFKVarName($fk); - - $script .= " - if (\$this->$varName !== null && \$this->".$varName."->get".$colFK->getPhpName()."() !== \$v) { - \$this->$varName = null; - } -"; - } // foreach fk - } /* if col is foreign key */ - - foreach ($col->getReferrers() as $refFK) { - - $tblFK = $this->getDatabase()->getTable($refFK->getForeignTableName()); - - if ( $tblFK->getName() != $table->getName() ) { - - foreach ($col->getForeignKeys() as $fk) { - - $tblFK = $table->getDatabase()->getTable($fk->getForeignTableName()); - $colFK = $tblFK->getColumn($fk->getMappedForeignColumn($col->getName())); - - if ($refFK->isLocalPrimaryKey()) { - $varName = $this->getPKRefFKVarName($refFK); - $script .= " - // update associated ".$tblFK->getPhpName()." - if (\$this->$varName !== null) { - \$this->{$varName}->set".$colFK->getPhpName()."(\$v); - } -"; - } else { - $collName = $this->getRefFKCollVarName($refFK); - $script .= " - - // update associated ".$tblFK->getPhpName()." - if (\$this->$collName !== null) { - foreach (\$this->$collName as \$referrerObject) { - \$referrerObject->set".$colFK->getPhpName()."(\$v); - } - } -"; - } // if (isLocalPrimaryKey - } // foreach col->getPrimaryKeys() - } // if tablFk != table - - } // foreach - } - - /** - * Adds the close for the mutator close - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addMutatorClose() - **/ - protected function addMutatorCloseClose(&$script, Column $col) { - $cfc = $col->getPhpName(); - $script .= " - return \$this; - } // set$cfc() -"; - } - - /** - * Adds a setter for BLOB columns. - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see parent::addColumnMutators() - */ - protected function addLobMutator(&$script, Column $col) - { - $this->addMutatorOpen($script, $col); - $clo = strtolower($col->getName()); - $script .= " - // Because BLOB columns are streams in PDO we have to assume that they are - // always modified when a new value is passed in. For example, the contents - // of the stream itself may have changed externally. - if (!is_resource(\$v) && \$v !== null) { - \$this->$clo = fopen('php://memory', 'r+'); - fwrite(\$this->$clo, \$v); - rewind(\$this->$clo); - } else { // it's already a stream - \$this->$clo = \$v; - } - \$this->modifiedColumns[] = ".$this->getColumnConstant($col)."; -"; - $this->addMutatorClose($script, $col); - } // addLobMutatorSnippet - - /** - * Adds a setter method for date/time/timestamp columns. - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see parent::addColumnMutators() - */ - protected function addTemporalMutator(&$script, Column $col) - { - $cfc = $col->getPhpName(); - $clo = strtolower($col->getName()); - $visibility = $col->getMutatorVisibility(); - - $dateTimeClass = $this->getBuildProperty('dateTimeClass'); - if (!$dateTimeClass) { - $dateTimeClass = 'DateTime'; - } - - $script .= " - /** - * Sets the value of [$clo] column to a normalized version of the date/time value specified. - * ".$col->getDescription()." - * @param mixed \$v string, integer (timestamp), or DateTime value. Empty string will - * be treated as NULL for temporal objects. - * @return ".$this->getObjectClassname()." The current object (for fluent API support) - */ - ".$visibility." function set$cfc(\$v) - {"; - if ($col->isLazyLoad()) { - $script .= " - // explicitly set the is-loaded flag to true for this lazy load col; - // it doesn't matter if the value is actually set or not (logic below) as - // any attempt to set the value means that no db lookup should be performed - // when the get$cfc() method is called. - \$this->".$clo."_isLoaded = true; -"; - } - - $fmt = var_export($this->getTemporalFormatter($col), true); - - $script .= " - // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') - // -- which is unexpected, to say the least. - if (\$v === null || \$v === '') { - \$dt = null; - } elseif (\$v instanceof DateTime) { - \$dt = \$v; - } else { - // some string/numeric value passed; we normalize that so that we can - // validate it. - try { - if (is_numeric(\$v)) { // if it's a unix timestamp - \$dt = new $dateTimeClass('@'.\$v, new DateTimeZone('UTC')); - // We have to explicitly specify and then change the time zone because of a - // DateTime bug: http://bugs.php.net/bug.php?id=43003 - \$dt->setTimeZone(new DateTimeZone(date_default_timezone_get())); - } else { - \$dt = new $dateTimeClass(\$v); - } - } catch (Exception \$x) { - throw new PropelException('Error parsing date/time value: ' . var_export(\$v, true), \$x); - } - } - - if ( \$this->$clo !== null || \$dt !== null ) { - // (nested ifs are a little easier to read in this case) - - \$currNorm = (\$this->$clo !== null && \$tmpDt = new $dateTimeClass(\$this->$clo)) ? \$tmpDt->format($fmt) : null; - \$newNorm = (\$dt !== null) ? \$dt->format($fmt) : null; - - if ( (\$currNorm !== \$newNorm) // normalized values don't match "; - - if (($def = $col->getDefaultValue()) !== null && !$def->isExpression()) { - $defaultValue = $this->getDefaultValueString($col); - $script .= " - || (\$dt->format($fmt) === $defaultValue) // or the entered value matches the default"; - } - - $script .= " - ) - { - \$this->$clo = (\$dt ? \$dt->format($fmt) : null); - \$this->modifiedColumns[] = ".$this->getColumnConstant($col)."; - } - } // if either are not null -"; - $this->addMutatorClose($script, $col); - } - - /** - * Adds setter method for "normal" columns. - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see parent::addColumnMutators() - */ - protected function addDefaultMutator(&$script, Column $col) - { - $clo = strtolower($col->getName()); - - $this->addMutatorOpen($script, $col); - - // Perform type-casting to ensure that we can use type-sensitive - // checking in mutators. - if ($col->isPhpPrimitiveType()) { - $script .= " - if (\$v !== null) { - \$v = (".$col->getPhpType().") \$v; - } -"; - } - - $script .= " - if (\$this->$clo !== \$v"; - if (($def = $col->getDefaultValue()) !== null && !$def->isExpression()) { - $script .= " || \$this->isNew()"; - } - $script .= ") { - \$this->$clo = \$v; - \$this->modifiedColumns[] = ".$this->getColumnConstant($col)."; - } -"; - $this->addMutatorClose($script, $col); - } - - /** - * Adds the hasOnlyDefaultValues() method. - * @param string &$script The script will be modified in this method. - */ - protected function addHasOnlyDefaultValues(&$script) - { - $this->addHasOnlyDefaultValuesComment($script); - $this->addHasOnlyDefaultValuesOpen($script); - $this->addHasOnlyDefaultValuesBody($script); - $this->addHasOnlyDefaultValuesClose($script); - } - - /** - * Adds the comment for the hasOnlyDefaultValues method - * @param string &$script The script will be modified in this method. - * @see addHasOnlyDefaultValues - **/ - protected function addHasOnlyDefaultValuesComment(&$script) { - $script .= " - /** - * Indicates whether the columns in this object are only set to default values. - * - * This method can be used in conjunction with isModified() to indicate whether an object is both - * modified _and_ has some values set which are non-default. - * - * @return boolean Whether the columns in this object are only been set with default values. - */"; - } - - /** - * Adds the function declaration for the hasOnlyDefaultValues method - * @param string &$script The script will be modified in this method. - * @see addHasOnlyDefaultValues - **/ - protected function addHasOnlyDefaultValuesOpen(&$script) { - $script .= " - public function hasOnlyDefaultValues() - {"; - } - - /** - * Adds the function body for the hasOnlyDefaultValues method - * @param string &$script The script will be modified in this method. - * @see addHasOnlyDefaultValues - **/ - protected function addHasOnlyDefaultValuesBody(&$script) { - $table = $this->getTable(); - $colsWithDefaults = array(); - foreach ($table->getColumns() as $col) { - $def = $col->getDefaultValue(); - if ($def !== null && !$def->isExpression()) { - $colsWithDefaults[] = $col; - } - } - - foreach ($colsWithDefaults as $col) { - - $clo = strtolower($col->getName()); - $def = $col->getDefaultValue(); - - $script .= " - if (\$this->$clo !== " . $this->getDefaultValueString($col).") { - return false; - } -"; - } - } - - /** - * Adds the function close for the hasOnlyDefaultValues method - * @param string &$script The script will be modified in this method. - * @see addHasOnlyDefaultValues - **/ - protected function addHasOnlyDefaultValuesClose(&$script) { - $script .= " - // otherwise, everything was equal, so return TRUE - return true;"; - $script .= " - } // hasOnlyDefaultValues() -"; - } - - /** - * Adds the hydrate() method, which sets attributes of the object based on a ResultSet. - * @param string &$script The script will be modified in this method. - */ - protected function addHydrate(&$script) - { - $this->addHydrateComment($script); - $this->addHydrateOpen($script); - $this->addHydrateBody($script); - $this->addHydrateClose($script); - } - - /** - * Adds the comment for the hydrate method - * @param string &$script The script will be modified in this method. - * @see addHydrate() - */ - protected function addHydrateComment(&$script) { - $script .= " - /** - * Hydrates (populates) the object variables with values from the database resultset. - * - * An offset (0-based \"start column\") is specified so that objects can be hydrated - * with a subset of the columns in the resultset rows. This is needed, for example, - * for results of JOIN queries where the resultset row includes columns from two or - * more tables. - * - * @param array \$row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) - * @param int \$startcol 0-based offset column which indicates which restultset column to start with. - * @param boolean \$rehydrate Whether this object is being re-hydrated from the database. - * @return int next starting column - * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. - */"; - } - - /** - * Adds the function declaration for the hydrate method - * @param string &$script The script will be modified in this method. - * @see addHydrate() - */ - protected function addHydrateOpen(&$script) { - $script .= " - public function hydrate(\$row, \$startcol = 0, \$rehydrate = false) - {"; - } - - /** - * Adds the function body for the hydrate method - * @param string &$script The script will be modified in this method. - * @see addHydrate() - */ - protected function addHydrateBody(&$script) { - $table = $this->getTable(); - $platform = $this->getPlatform(); - $script .= " - try { -"; - $n = 0; - foreach ($table->getColumns() as $col) { - if (!$col->isLazyLoad()) { - $clo = strtolower($col->getName()); - if ($col->getType() === PropelTypes::CLOB_EMU && $this->getPlatform() instanceof OraclePlatform) { - // PDO_OCI returns a stream for CLOB objects, while other PDO adapters return a string... - $script .= " - \$this->$clo = stream_get_contents(\$row[\$startcol + $n]);"; - } elseif ($col->isLobType() && !$platform->hasStreamBlobImpl()) { - $script .= " - if (\$row[\$startcol + $n] !== null) { - \$this->$clo = fopen('php://memory', 'r+'); - fwrite(\$this->$clo, \$row[\$startcol + $n]); - rewind(\$this->$clo); - } else { - \$this->$clo = null; - }"; - } elseif ($col->isPhpPrimitiveType()) { - $script .= " - \$this->$clo = (\$row[\$startcol + $n] !== null) ? (".$col->getPhpType().") \$row[\$startcol + $n] : null;"; - } elseif ($col->isPhpObjectType()) { - $script .= " - \$this->$clo = (\$row[\$startcol + $n] !== null) ? new ".$col->getPhpType()."(\$row[\$startcol + $n]) : null;"; - } else { - $script .= " - \$this->$clo = \$row[\$startcol + $n];"; - } - $n++; - } // if col->isLazyLoad() - } /* foreach */ - - if ($this->getBuildProperty("addSaveMethod")) { - $script .= " - \$this->resetModified(); -"; - } - - $script .= " - \$this->setNew(false); - - if (\$rehydrate) { - \$this->ensureConsistency(); - } - - return \$startcol + $n; // $n = ".$this->getPeerClassname()."::NUM_COLUMNS - ".$this->getPeerClassname()."::NUM_LAZY_LOAD_COLUMNS). - - } catch (Exception \$e) { - throw new PropelException(\"Error populating ".$this->getStubObjectBuilder()->getClassname()." object\", \$e); - }"; - } - - /** - * Adds the function close for the hydrate method - * @param string &$script The script will be modified in this method. - * @see addHydrate() - */ - protected function addHydrateClose(&$script) { - $script .= " - } -"; - } - - /** - * Adds the buildPkeyCriteria method - * @param string &$script The script will be modified in this method. - **/ - protected function addBuildPkeyCriteria(&$script) { - $this->addBuildPkeyCriteriaComment($script); - $this->addBuildPkeyCriteriaOpen($script); - $this->addBuildPkeyCriteriaBody($script); - $this->addBuildPkeyCriteriaClose($script); - } - - /** - * Adds the comment for the buildPkeyCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildPkeyCriteria() - **/ - protected function addBuildPkeyCriteriaComment(&$script) { - $script .= " - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */"; - } - - /** - * Adds the function declaration for the buildPkeyCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildPkeyCriteria() - **/ - protected function addBuildPkeyCriteriaOpen(&$script) { - $script .= " - public function buildPkeyCriteria() - {"; - } - - /** - * Adds the function body for the buildPkeyCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildPkeyCriteria() - **/ - protected function addBuildPkeyCriteriaBody(&$script) { - $script .= " - \$criteria = new Criteria(".$this->getPeerClassname()."::DATABASE_NAME);"; - foreach ($this->getTable()->getPrimaryKey() as $col) { - $clo = strtolower($col->getName()); - $script .= " - \$criteria->add(".$this->getColumnConstant($col).", \$this->$clo);"; - } - } - - /** - * Adds the function close for the buildPkeyCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildPkeyCriteria() - **/ - protected function addBuildPkeyCriteriaClose(&$script) { - $script .= " - - return \$criteria; - } -"; - } - - /** - * Adds the buildCriteria method - * @param string &$script The script will be modified in this method. - **/ - protected function addBuildCriteria(&$script) - { - $this->addBuildCriteriaComment($script); - $this->addBuildCriteriaOpen($script); - $this->addBuildCriteriaBody($script); - $this->addBuildCriteriaClose($script); - } - - /** - * Adds comment for the buildCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildCriteria() - **/ - protected function addBuildCriteriaComment(&$script) { - $script .= " - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */"; - } - - /** - * Adds the function declaration of the buildCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildCriteria() - **/ - protected function addBuildCriteriaOpen(&$script) { - $script .= " - public function buildCriteria() - {"; - } - - /** - * Adds the function body of the buildCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildCriteria() - **/ - protected function addBuildCriteriaBody(&$script) { - $script .= " - \$criteria = new Criteria(".$this->getPeerClassname()."::DATABASE_NAME); -"; - foreach ($this->getTable()->getColumns() as $col) { - $clo = strtolower($col->getName()); - $script .= " - if (\$this->isColumnModified(".$this->getColumnConstant($col).")) \$criteria->add(".$this->getColumnConstant($col).", \$this->$clo);"; - } - } - - /** - * Adds the function close of the buildCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildCriteria() - **/ - protected function addBuildCriteriaClose(&$script) { - $script .= " - - return \$criteria; - } -"; - } - - /** - * Adds the toArray method - * @param string &$script The script will be modified in this method. - **/ - protected function addToArray(&$script) - { - $fks = $this->getTable()->getForeignKeys(); - $hasFks = count($fks) > 0; - $script .= " - /** - * Exports the object as an array. - * - * You can specify the key type of the array by passing one of the class - * type constants. - * - * @param string \$keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * Defaults to BasePeer::TYPE_PHPNAME. - * @param boolean \$includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE."; - if ($hasFks) { - $script .= " - * @param boolean \$includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE."; - } - $script .= " - * - * @return array an associative array containing the field names (as keys) and field values - */ - public function toArray(\$keyType = BasePeer::TYPE_PHPNAME, \$includeLazyLoadColumns = true" . ($hasFks ? ", \$includeForeignObjects = false" : '') . ") - { - \$keys = ".$this->getPeerClassname()."::getFieldNames(\$keyType); - \$result = array("; - foreach ($this->getTable()->getColumns() as $num => $col) { - if ($col->isLazyLoad()) { - $script .= " - \$keys[$num] => (\$includeLazyLoadColumns) ? \$this->get".$col->getPhpName()."() : null,"; - } else { - $script .= " - \$keys[$num] => \$this->get".$col->getPhpName()."(),"; - } - } - $script .= " - );"; - if ($hasFks) { - $script .= " - if (\$includeForeignObjects) {"; - foreach ($fks as $fk) { - $script .= " - if (null !== \$this->" . $this->getFKVarName($fk) . ") { - \$result['" . $this->getFKPhpNameAffix($fk, $plural = false) . "'] = \$this->" . $this->getFKVarName($fk) . "->toArray(\$keyType, \$includeLazyLoadColumns, true); - }"; - } - $script .= " - }"; - } - $script .= " - return \$result; - } -"; - } // addToArray() - - /** - * Adds the getByName method - * @param string &$script The script will be modified in this method. - **/ - protected function addGetByName(&$script) - { - $this->addGetByNameComment($script); - $this->addGetByNameOpen($script); - $this->addGetByNameBody($script); - $this->addGetByNameClose($script); - } - - /** - * Adds the comment for the getByName method - * @param string &$script The script will be modified in this method. - * @see addGetByName - **/ - protected function addGetByNameComment(&$script) { - $script .= " - /** - * Retrieves a field from the object by name passed in as a string. - * - * @param string \$name name - * @param string \$type The type of fieldname the \$name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return mixed Value of field. - */"; - } - - /** - * Adds the function declaration for the getByName method - * @param string &$script The script will be modified in this method. - * @see addGetByName - **/ - protected function addGetByNameOpen(&$script) { - $script .= " - public function getByName(\$name, \$type = BasePeer::TYPE_PHPNAME) - {"; - } - - /** - * Adds the function body for the getByName method - * @param string &$script The script will be modified in this method. - * @see addGetByName - **/ - protected function addGetByNameBody(&$script) { - $script .= " - \$pos = ".$this->getPeerClassname()."::translateFieldName(\$name, \$type, BasePeer::TYPE_NUM); - \$field = \$this->getByPosition(\$pos);"; - } - - /** - * Adds the function close for the getByName method - * @param string &$script The script will be modified in this method. - * @see addGetByName - **/ - protected function addGetByNameClose(&$script) { - $script .= " - return \$field; - } -"; - } - - /** - * Adds the getByPosition method - * @param string &$script The script will be modified in this method. - **/ - protected function addGetByPosition(&$script) - { - $this->addGetByPositionComment($script); - $this->addGetByPositionOpen($script); - $this->addGetByPositionBody($script); - $this->addGetByPositionClose($script); - } - - /** - * Adds comment for the getByPosition method - * @param string &$script The script will be modified in this method. - * @see addGetByPosition - **/ - protected function addGetByPositionComment(&$script) { - $script .= " - /** - * Retrieves a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int \$pos position in xml schema - * @return mixed Value of field at \$pos - */"; - } - - /** - * Adds the function declaration for the getByPosition method - * @param string &$script The script will be modified in this method. - * @see addGetByPosition - **/ - protected function addGetByPositionOpen(&$script) { - $script .= " - public function getByPosition(\$pos) - {"; - } - - /** - * Adds the function body for the getByPosition method - * @param string &$script The script will be modified in this method. - * @see addGetByPosition - **/ - protected function addGetByPositionBody(&$script) { - $table = $this->getTable(); - $script .= " - switch(\$pos) {"; - $i = 0; - foreach ($table->getColumns() as $col) { - $cfc = $col->getPhpName(); - $script .= " - case $i: - return \$this->get$cfc(); - break;"; - $i++; - } /* foreach */ - $script .= " - default: - return null; - break; - } // switch()"; - } - - /** - * Adds the function close for the getByPosition method - * @param string &$script The script will be modified in this method. - * @see addGetByPosition - **/ - protected function addGetByPositionClose(&$script) { - $script .= " - } -"; - } - - protected function addSetByName(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Sets a field from the object by name passed in as a string. - * - * @param string \$name peer name - * @param mixed \$value field value - * @param string \$type The type of fieldname the \$name is of: - * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return void - */ - public function setByName(\$name, \$value, \$type = BasePeer::TYPE_PHPNAME) - { - \$pos = ".$this->getPeerClassname()."::translateFieldName(\$name, \$type, BasePeer::TYPE_NUM); - return \$this->setByPosition(\$pos, \$value); - } -"; - } - - protected function addSetByPosition(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Sets a field from the object by Position as specified in the xml schema. - * Zero-based. - * - * @param int \$pos position in xml schema - * @param mixed \$value field value - * @return void - */ - public function setByPosition(\$pos, \$value) - { - switch(\$pos) {"; - $i = 0; - foreach ($table->getColumns() as $col) { - $cfc = $col->getPhpName(); - $cptype = $col->getPhpType(); - $script .= " - case $i: - \$this->set$cfc(\$value); - break;"; - $i++; - } /* foreach */ - $script .= " - } // switch() - } -"; - } // addSetByPosition() - - protected function addFromArray(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Populates the object using an array. - * - * This is particularly useful when populating an object from one of the - * request arrays (e.g. \$_POST). This method goes through the column - * names, checking to see whether a matching key exists in populated - * array. If so the setByName() method is called for that column. - * - * You can specify the key type of the array by additionally passing one - * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. - * The default key type is the column's phpname (e.g. 'AuthorId') - * - * @param array \$arr An array to populate the object from. - * @param string \$keyType The type of keys the array uses. - * @return void - */ - public function fromArray(\$arr, \$keyType = BasePeer::TYPE_PHPNAME) - { - \$keys = ".$this->getPeerClassname()."::getFieldNames(\$keyType); -"; - foreach ($table->getColumns() as $num => $col) { - $cfc = $col->getPhpName(); - $cptype = $col->getPhpType(); - $script .= " - if (array_key_exists(\$keys[$num], \$arr)) \$this->set$cfc(\$arr[\$keys[$num]]);"; - } /* foreach */ - $script .= " - } -"; - } // addFromArray - - /** - * Adds a delete() method to remove the object form the datastore. - * @param string &$script The script will be modified in this method. - */ - protected function addDelete(&$script) - { - $this->addDeleteComment($script); - $this->addDeleteOpen($script); - $this->addDeleteBody($script); - $this->addDeleteClose($script); - } - - /** - * Adds the comment for the delete function - * @param string &$script The script will be modified in this method. - * @see addDelete() - **/ - protected function addDeleteComment(&$script) { - $script .= " - /** - * Removes this object from datastore and sets delete attribute. - * - * @param PropelPDO \$con - * @return void - * @throws PropelException - * @see BaseObject::setDeleted() - * @see BaseObject::isDeleted() - */"; - } - - /** - * Adds the function declaration for the delete function - * @param string &$script The script will be modified in this method. - * @see addDelete() - **/ - protected function addDeleteOpen(&$script) { - $script .= " - public function delete(PropelPDO \$con = null) - {"; - } - - /** - * Adds the function body for the delete function - * @param string &$script The script will be modified in this method. - * @see addDelete() - **/ - protected function addDeleteBody(&$script) { - $script .= " - if (\$this->isDeleted()) { - throw new PropelException(\"This object has already been deleted.\"); - } - - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - \$con->beginTransaction(); - try {"; - if($this->getGeneratorConfig()->getBuildProperty('addHooks')) { - $script .= " - \$ret = \$this->preDelete(\$con);"; - // apply behaviors - $this->applyBehaviorModifier('preDelete', $script, " "); - $script .= " - if (\$ret) { - ".$this->getQueryClassname()."::create() - ->filterByPrimaryKey(\$this->getPrimaryKey()) - ->delete(\$con); - \$this->postDelete(\$con);"; - // apply behaviors - $this->applyBehaviorModifier('postDelete', $script, " "); - $script .= " - \$con->commit(); - \$this->setDeleted(true); - } else { - \$con->commit(); - }"; - } else { - // apply behaviors - $this->applyBehaviorModifier('preDelete', $script, " "); - $script .= " - ".$this->getPeerClassname()."::doDelete(\$this, \$con);"; - // apply behaviors - $this->applyBehaviorModifier('postDelete', $script, " "); - $script .= " - \$con->commit(); - \$this->setDeleted(true);"; - } - - $script .= " - } catch (PropelException \$e) { - \$con->rollBack(); - throw \$e; - }"; - } - - /** - * Adds the function close for the delete function - * @param string &$script The script will be modified in this method. - * @see addDelete() - **/ - protected function addDeleteClose(&$script) { - $script .= " - } -"; - } // addDelete() - - /** - * Adds a reload() method to re-fetch the data for this object from the database. - * @param string &$script The script will be modified in this method. - */ - protected function addReload(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean \$deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO \$con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload(\$deep = false, PropelPDO \$con = null) - { - if (\$this->isDeleted()) { - throw new PropelException(\"Cannot reload a deleted object.\"); - } - - if (\$this->isNew()) { - throw new PropelException(\"Cannot reload an unsaved object.\"); - } - - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - \$stmt = ".$this->getPeerClassname()."::doSelectStmt(\$this->buildPkeyCriteria(), \$con); - \$row = \$stmt->fetch(PDO::FETCH_NUM); - \$stmt->closeCursor(); - if (!\$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - \$this->hydrate(\$row, 0, true); // rehydrate -"; - - // support for lazy load columns - foreach ($table->getColumns() as $col) { - if ($col->isLazyLoad()) { - $clo = strtolower($col->getName()); - $script .= " - // Reset the $clo lazy-load column - \$this->" . $clo . " = null; - \$this->".$clo."_isLoaded = false; -"; - } - } - - $script .= " - if (\$deep) { // also de-associate any related objects? -"; - - foreach ($table->getForeignKeys() as $fk) { - $varName = $this->getFKVarName($fk); - $script .= " - \$this->".$varName." = null;"; - } - - foreach ($table->getReferrers() as $refFK) { - if ($refFK->isLocalPrimaryKey()) { - $script .= " - \$this->".$this->getPKRefFKVarName($refFK)." = null; -"; - } else { - $script .= " - \$this->".$this->getRefFKCollVarName($refFK)." = null; -"; - } - } - - $script .= " - } // if (deep) - } -"; - } // addReload() - - /** - * Adds the methods related to refreshing, saving and deleting the object. - * @param string &$script The script will be modified in this method. - */ - protected function addManipulationMethods(&$script) - { - $this->addReload($script); - $this->addDelete($script); - $this->addSave($script); - $this->addDoSave($script); - } - - /** - * Adds the methods related to validationg the object. - * @param string &$script The script will be modified in this method. - */ - protected function addValidationMethods(&$script) - { - $this->addValidationFailuresAttribute($script); - $this->addGetValidationFailures($script); - $this->addValidate($script); - $this->addDoValidate($script); - } - - /** - * Adds the $validationFailures attribute to store ValidationFailed objects. - * @param string &$script The script will be modified in this method. - */ - protected function addValidationFailuresAttribute(&$script) - { - $script .= " - /** - * Array of ValidationFailed objects. - * @var array ValidationFailed[] - */ - protected \$validationFailures = array(); -"; - } - - /** - * Adds the getValidationFailures() method. - * @param string &$script The script will be modified in this method. - */ - protected function addGetValidationFailures(&$script) - { - $script .= " - /** - * Gets any ValidationFailed objects that resulted from last call to validate(). - * - * - * @return array ValidationFailed[] - * @see validate() - */ - public function getValidationFailures() - { - return \$this->validationFailures; - } -"; - } // addGetValidationFailures() - - /** - * Adds the correct getPrimaryKey() method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addGetPrimaryKey(&$script) - { - $pkeys = $this->getTable()->getPrimaryKey(); - if (count($pkeys) == 1) { - $this->addGetPrimaryKey_SinglePK($script); - } elseif (count($pkeys) > 1) { - $this->addGetPrimaryKey_MultiPK($script); - } else { - // no primary key -- this is deprecated, since we don't *need* this method anymore - $this->addGetPrimaryKey_NoPK($script); - } - } - - /** - * Adds the getPrimaryKey() method for tables that contain a single-column primary key. - * @param string &$script The script will be modified in this method. - */ - protected function addGetPrimaryKey_SinglePK(&$script) - { - $table = $this->getTable(); - $pkeys = $table->getPrimaryKey(); - $cptype = $pkeys[0]->getPhpType(); - - $script .= " - /** - * Returns the primary key for this object (row). - * @return $cptype - */ - public function getPrimaryKey() - { - return \$this->get".$pkeys[0]->getPhpName()."(); - } -"; - } // addetPrimaryKey_SingleFK - - /** - * Adds the setPrimaryKey() method for tables that contain a multi-column primary key. - * @param string &$script The script will be modified in this method. - */ - protected function addGetPrimaryKey_MultiPK(&$script) - { - - $script .= " - /** - * Returns the composite primary key for this object. - * The array elements will be in same order as specified in XML. - * @return array - */ - public function getPrimaryKey() - { - \$pks = array();"; - $i = 0; - foreach ($this->getTable()->getPrimaryKey() as $pk) { - $script .= " - \$pks[$i] = \$this->get".$pk->getPhpName()."();"; - $i++; - } /* foreach */ - $script .= " - - return \$pks; - } -"; - } // addGetPrimaryKey_MultiFK() - - /** - * Adds the getPrimaryKey() method for objects that have no primary key. - * This "feature" is dreprecated, since the getPrimaryKey() method is not required - * by the Persistent interface (or used by the templates). Hence, this method is also - * deprecated. - * @param string &$script The script will be modified in this method. - * @deprecated - */ - protected function addGetPrimaryKey_NoPK(&$script) - { - $script .= " - /** - * Returns NULL since this table doesn't have a primary key. - * This method exists only for BC and is deprecated! - * @return null - */ - public function getPrimaryKey() - { - return null; - } -"; - } - /** - * Adds the correct setPrimaryKey() method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addSetPrimaryKey(&$script) - { - $pkeys = $this->getTable()->getPrimaryKey(); - if (count($pkeys) == 1) { - $this->addSetPrimaryKey_SinglePK($script); - } elseif (count($pkeys) > 1) { - $this->addSetPrimaryKey_MultiPK($script); - } else { - // no primary key -- this is deprecated, since we don't *need* this method anymore - $this->addSetPrimaryKey_NoPK($script); - } - } - - /** - * Adds the setPrimaryKey() method for tables that contain a single-column primary key. - * @param string &$script The script will be modified in this method. - */ - protected function addSetPrimaryKey_SinglePK(&$script) - { - - $pkeys = $this->getTable()->getPrimaryKey(); - $col = $pkeys[0]; - $clo=strtolower($col->getName()); - $ctype = $col->getPhpType(); - - $script .= " - /** - * Generic method to set the primary key ($clo column). - * - * @param $ctype \$key Primary key. - * @return void - */ - public function setPrimaryKey(\$key) - { - \$this->set".$col->getPhpName()."(\$key); - } -"; - } // addSetPrimaryKey_SinglePK - - /** - * Adds the setPrimaryKey() method for tables that contain a multi-columnprimary key. - * @param string &$script The script will be modified in this method. - */ - protected function addSetPrimaryKey_MultiPK(&$script) - { - - $script .=" - /** - * Set the [composite] primary key. - * - * @param array \$keys The elements of the composite key (order must match the order in XML file). - * @return void - */ - public function setPrimaryKey(\$keys) - {"; - $i = 0; - foreach ($this->getTable()->getPrimaryKey() as $pk) { - $pktype = $pk->getPhpType(); - $script .= " - \$this->set".$pk->getPhpName()."(\$keys[$i]);"; - $i++; - } /* foreach ($table->getPrimaryKey() */ - $script .= " - } -"; - } // addSetPrimaryKey_MultiPK - - /** - * Adds the setPrimaryKey() method for objects that have no primary key. - * This "feature" is dreprecated, since the setPrimaryKey() method is not required - * by the Persistent interface (or used by the templates). Hence, this method is also - * deprecated. - * @param string &$script The script will be modified in this method. - * @deprecated - */ - protected function addSetPrimaryKey_NoPK(&$script) - { - $script .=" - /** - * Dummy primary key setter. - * - * This function only exists to preserve backwards compatibility. It is no longer - * needed or required by the Persistent interface. It will be removed in next BC-breaking - * release of Propel. - * - * @deprecated - */ - public function setPrimaryKey(\$pk) - { - // do nothing, because this object doesn't have any primary keys - } -"; - } - - /** - * Adds the isPrimaryKeyNull() method - * @param string &$script The script will be modified in this method. - */ - protected function addIsPrimaryKeyNull(&$script) - { - $table = $this->getTable(); - $pkeys = $table->getPrimaryKey(); - - $script .= " - /** - * Returns true if the primary key for this object is null. - * @return boolean - */ - public function isPrimaryKeyNull() - {"; - if (count($pkeys) == 1) { - $script .= " - return null === \$this->get" . $pkeys[0]->getPhpName() . "();"; - } else { - $tests = array(); - foreach ($pkeys as $pkey) { - $tests[]= "(null === \$this->get" . $pkey->getPhpName() . "())"; - } - $script .= " - return " . join(' && ', $tests) . ";"; - } - $script .= " - } -"; - } // addetPrimaryKey_SingleFK - - // -------------------------------------------------------------------- - // Complex OM Methods - // -------------------------------------------------------------------- - - /** - * Constructs variable name for fkey-related objects. - * @param ForeignKey $fk - * @return string - */ - protected function getFKVarName(ForeignKey $fk) - { - return 'a' . $this->getFKPhpNameAffix($fk, $plural = false); - } - - /** - * Constructs variable name for objects which referencing current table by specified foreign key. - * @param ForeignKey $fk - * @return string - */ - protected function getRefFKCollVarName(ForeignKey $fk) - { - return 'coll' . $this->getRefFKPhpNameAffix($fk, $plural = true); - } - - /** - * Constructs variable name for single object which references current table by specified foreign key - * which is ALSO a primary key (hence one-to-one relationship). - * @param ForeignKey $fk - * @return string - */ - protected function getPKRefFKVarName(ForeignKey $fk) - { - return 'single' . $this->getRefFKPhpNameAffix($fk, $plural = false); - } - - // ---------------------------------------------------------------- - // - // F K M E T H O D S - // - // ---------------------------------------------------------------- - - /** - * Adds the methods that get & set objects related by foreign key to the current object. - * @param string &$script The script will be modified in this method. - */ - protected function addFKMethods(&$script) - { - foreach ($this->getTable()->getForeignKeys() as $fk) { - $this->declareClassFromBuilder($this->getNewStubObjectBuilder($fk->getForeignTable())); - $this->declareClassFromBuilder($this->getNewStubQueryBuilder($fk->getForeignTable())); - $this->addFKMutator($script, $fk); - $this->addFKAccessor($script, $fk); - } // foreach fk - } - - /** - * Adds the class attributes that are needed to store fkey related objects. - * @param string &$script The script will be modified in this method. - */ - protected function addFKAttributes(&$script, ForeignKey $fk) - { - $className = $this->getForeignTable($fk)->getPhpName(); - $varName = $this->getFKVarName($fk); - - $script .= " - /** - * @var $className - */ - protected $".$varName."; -"; - } - - /** - * Adds the mutator (setter) method for setting an fkey related object. - * @param string &$script The script will be modified in this method. - */ - protected function addFKMutator(&$script, ForeignKey $fk) - { - $table = $this->getTable(); - $tblFK = $this->getForeignTable($fk); - - $joinTableObjectBuilder = $this->getNewObjectBuilder($tblFK); - $className = $joinTableObjectBuilder->getObjectClassname(); - - $varName = $this->getFKVarName($fk); - - $script .= " - /** - * Declares an association between this object and a $className object. - * - * @param $className \$v - * @return ".$this->getObjectClassname()." The current object (for fluent API support) - * @throws PropelException - */ - public function set".$this->getFKPhpNameAffix($fk, $plural = false)."($className \$v = null) - {"; - foreach ($fk->getLocalColumns() as $columnName) { - $column = $table->getColumn($columnName); - $lfmap = $fk->getLocalForeignMapping(); - $colFKName = $lfmap[$columnName]; - $colFK = $tblFK->getColumn($colFKName); - $script .= " - if (\$v === null) { - \$this->set".$column->getPhpName()."(".$this->getDefaultValueString($column)."); - } else { - \$this->set".$column->getPhpName()."(\$v->get".$colFK->getPhpName()."()); - } -"; - - } /* foreach local col */ - - $script .= " - \$this->$varName = \$v; -"; - - // Now add bi-directional relationship binding, taking into account whether this is - // a one-to-one relationship. - - if ($fk->isLocalPrimaryKey()) { - $script .= " - // Add binding for other direction of this 1:1 relationship. - if (\$v !== null) { - \$v->set".$this->getRefFKPhpNameAffix($fk, $plural = false)."(\$this); - } -"; - } else { - $script .= " - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the $className object, it will not be re-added. - if (\$v !== null) { - \$v->add".$this->getRefFKPhpNameAffix($fk, $plural = false)."(\$this); - } -"; - - } - - $script .= " - return \$this; - } -"; - } - - /** - * Adds the accessor (getter) method for getting an fkey related object. - * @param string &$script The script will be modified in this method. - */ - protected function addFKAccessor(&$script, ForeignKey $fk) - { - $table = $this->getTable(); - - $varName = $this->getFKVarName($fk); - $pCollName = $this->getFKPhpNameAffix($fk, $plural = true); - - $fkPeerBuilder = $this->getNewPeerBuilder($this->getForeignTable($fk)); - $fkQueryBuilder = $this->getNewStubQueryBuilder($this->getForeignTable($fk)); - $fkObjectBuilder = $this->getNewObjectBuilder($this->getForeignTable($fk))->getStubObjectBuilder(); - $className = $fkObjectBuilder->getClassname(); // get the Classname that has maybe a prefix - - $and = ""; - $comma = ""; - $conditional = ""; - $argmap = array(); // foreign -> local mapping - $argsize = 0; - foreach ($fk->getLocalColumns() as $columnName) { - - $lfmap = $fk->getLocalForeignMapping(); - - $localColumn = $table->getColumn($columnName); - $foreignColumn = $fk->getForeignTable()->getColumn($lfmap[$columnName]); - - $column = $table->getColumn($columnName); - $cptype = $column->getPhpType(); - $clo = strtolower($column->getName()); - - if ($cptype == "integer" || $cptype == "float" || $cptype == "double") { - $conditional .= $and . "\$this->". $clo ." != 0"; - } elseif ($cptype == "string") { - $conditional .= $and . "(\$this->" . $clo ." !== \"\" && \$this->".$clo." !== null)"; - } else { - $conditional .= $and . "\$this->" . $clo ." !== null"; - } - - $argmap[] = array('foreign' => $foreignColumn, 'local' => $localColumn); - $and = " && "; - $comma = ", "; - $argsize = $argsize + 1; - } - - // If the related column is a primary kay and if it's a simple association, - // The use retrieveByPk() instead of doSelect() to take advantage of instance pooling - $useRetrieveByPk = count($argmap) == 1 && $argmap[0]['foreign']->isPrimaryKey(); - - $script .= " - - /** - * Get the associated $className object - * - * @param PropelPDO Optional Connection object. - * @return $className The associated $className object. - * @throws PropelException - */ - public function get".$this->getFKPhpNameAffix($fk, $plural = false)."(PropelPDO \$con = null) - {"; - $script .= " - if (\$this->$varName === null && ($conditional)) {"; - if ($useRetrieveByPk) { - $script .= " - \$this->$varName = ".$fkQueryBuilder->getClassname()."::create()->findPk(\$this->$clo, \$con);"; - } else { - $script .= " - \$this->$varName = ".$fkQueryBuilder->getClassname()."::create() - ->filterBy" . $this->getRefFKPhpNameAffix($fk, $plural = false) . "(\$this) // here - ->findOne(\$con);"; - } - if ($fk->isLocalPrimaryKey()) { - $script .= " - // Because this foreign key represents a one-to-one relationship, we will create a bi-directional association. - \$this->{$varName}->set".$this->getRefFKPhpNameAffix($fk, $plural = false)."(\$this);"; - } else { - $script .= " - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - \$this->{$varName}->add".$this->getRefFKPhpNameAffix($fk, $plural = true)."(\$this); - */"; - } - - $script .= " - } - return \$this->$varName; - } -"; - - } // addFKAccessor - - /** - * Adds a convenience method for setting a related object by specifying the primary key. - * This can be used in conjunction with the getPrimaryKey() for systems where nothing is known - * about the actual objects being related. - * @param string &$script The script will be modified in this method. - */ - protected function addFKByKeyMutator(&$script, ForeignKey $fk) - { - $table = $this->getTable(); - - #$className = $this->getForeignTable($fk)->getPhpName(); - $methodAffix = $this->getFKPhpNameAffix($fk); - #$varName = $this->getFKVarName($fk); - - $script .= " - /** - * Provides convenient way to set a relationship based on a - * key. e.g. - * \$bar->setFooKey(\$foo->getPrimaryKey()) - *"; - if (count($fk->getLocalColumns()) > 1) { - $script .= " - * Note: It is important that the xml schema used to create this class - * maintains consistency in the order of related columns between - * ".$table->getName()." and ". $tblFK->getName().". - * If for some reason this is impossible, this method should be - * overridden in ".$table->getPhpName()."."; - } - $script .= " - * @return ".$this->getObjectClassname()." The current object (for fluent API support) - * @throws PropelException - */ - public function set".$methodAffix."Key(\$key) - { -"; - if (count($fk->getLocalColumns()) > 1) { - $i = 0; - foreach ($fk->getLocalColumns() as $colName) { - $col = $table->getColumn($colName); - $fktype = $col->getPhpType(); - $script .= " - \$this->set".$col->getPhpName()."( ($fktype) \$key[$i] ); -"; - $i++; - } /* foreach */ - } else { - $lcols = $fk->getLocalColumns(); - $colName = $lcols[0]; - $col = $table->getColumn($colName); - $fktype = $col->getPhpType(); - $script .= " - \$this->set".$col->getPhpName()."( ($fktype) \$key); -"; - } - $script .= " - return \$this; - } -"; - } // addFKByKeyMutator() - - /** - * Adds the method that fetches fkey-related (referencing) objects but also joins in data from another table. - * @param string &$script The script will be modified in this method. - */ - protected function addRefFKGetJoinMethods(&$script, ForeignKey $refFK) - { - $table = $this->getTable(); - $tblFK = $refFK->getTable(); - $join_behavior = $this->getGeneratorConfig()->getBuildProperty('useLeftJoinsInDoJoinMethods') ? 'Criteria::LEFT_JOIN' : 'Criteria::INNER_JOIN'; - - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $fkQueryClassname = $this->getNewStubQueryBuilder($refFK->getTable())->getClassname(); - $relCol = $this->getRefFKPhpNameAffix($refFK, $plural=true); - $collName = $this->getRefFKCollVarName($refFK); - - $fkPeerBuilder = $this->getNewPeerBuilder($tblFK); - $className = $fkPeerBuilder->getObjectClassname(); - - $lastTable = ""; - foreach ($tblFK->getForeignKeys() as $fk2) { - - $tblFK2 = $this->getForeignTable($fk2); - $doJoinGet = !$tblFK2->isForReferenceOnly(); - - // it doesn't make sense to join in rows from the curent table, since we are fetching - // objects related to *this* table (i.e. the joined rows will all be the same row as current object) - if ($this->getTable()->getPhpName() == $tblFK2->getPhpName()) { - $doJoinGet = false; - } - - $relCol2 = $this->getFKPhpNameAffix($fk2, $plural = false); - - if ( $this->getRelatedBySuffix($refFK) != "" && - ($this->getRelatedBySuffix($refFK) == $this->getRelatedBySuffix($fk2))) { - $doJoinGet = false; - } - - if ($doJoinGet) { - $script .= " - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this ".$table->getPhpName()." is new, it will return - * an empty collection; or if this ".$table->getPhpName()." has previously - * been saved, it will retrieve related $relCol from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in ".$table->getPhpName().". - * - * @param Criteria \$criteria optional Criteria object to narrow the query - * @param PropelPDO \$con optional connection object - * @param string \$join_behavior optional join type to use (defaults to $join_behavior) - * @return PropelCollection|array {$className}[] List of $className objects - */ - public function get".$relCol."Join".$relCol2."(\$criteria = null, \$con = null, \$join_behavior = $join_behavior) - {"; - $script .= " - \$query = $fkQueryClassname::create(null, \$criteria); - \$query->joinWith('" . $this->getFKPhpNameAffix($fk2, $plural=false) . "', \$join_behavior); - - return \$this->get". $relCol . "(\$query, \$con); - } -"; - } /* end if ($doJoinGet) */ - - } /* end foreach ($tblFK->getForeignKeys() as $fk2) { */ - - } // function - - - // ---------------------------------------------------------------- - // - // R E F E R R E R F K M E T H O D S - // - // ---------------------------------------------------------------- - - /** - * Adds the attributes used to store objects that have referrer fkey relationships to this object. - * protected collVarName; - * private lastVarNameCriteria = null; - * @param string &$script The script will be modified in this method. - */ - protected function addRefFKAttributes(&$script, ForeignKey $refFK) - { - $joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable()); - $className = $joinedTableObjectBuilder->getObjectClassname(); - - if ($refFK->isLocalPrimaryKey()) { - $script .= " - /** - * @var $className one-to-one related $className object - */ - protected $".$this->getPKRefFKVarName($refFK)."; -"; - } else { - $script .= " - /** - * @var array {$className}[] Collection to store aggregation of $className objects. - */ - protected $".$this->getRefFKCollVarName($refFK)."; -"; - } - } - - /** - * Adds the methods for retrieving, initializing, adding objects that are related to this one by foreign keys. - * @param string &$script The script will be modified in this method. - */ - protected function addRefFKMethods(&$script) - { - foreach ($this->getTable()->getReferrers() as $refFK) { - $this->declareClassFromBuilder($this->getNewStubObjectBuilder($refFK->getTable())); - $this->declareClassFromBuilder($this->getNewStubQueryBuilder($refFK->getTable())); - if ($refFK->isLocalPrimaryKey()) { - $this->addPKRefFKGet($script, $refFK); - $this->addPKRefFKSet($script, $refFK); - } else { - $this->addRefFKClear($script, $refFK); - $this->addRefFKInit($script, $refFK); - $this->addRefFKGet($script, $refFK); - $this->addRefFKCount($script, $refFK); - $this->addRefFKAdd($script, $refFK); - $this->addRefFKGetJoinMethods($script, $refFK); - } - } - } - - /** - * Adds the method that clears the referrer fkey collection. - * @param string &$script The script will be modified in this method. - */ - protected function addRefFKClear(&$script, ForeignKey $refFK) { - - $relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true); - $collName = $this->getRefFKCollVarName($refFK); - - $script .= " - /** - * Clears out the $collName 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 add$relCol() - */ - public function clear$relCol() - { - \$this->$collName = null; // important to set this to NULL since that means it is uninitialized - } -"; - } // addRefererClear() - - /** - * Adds the method that initializes the referrer fkey collection. - * @param string &$script The script will be modified in this method. - */ - protected function addRefFKInit(&$script, ForeignKey $refFK) { - - $relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true); - $collName = $this->getRefFKCollVarName($refFK); - - $script .= " - /** - * Initializes the $collName collection. - * - * By default this just sets the $collName collection to an empty array (like clear$collName()); - * 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 init$relCol() - { - \$this->$collName = new PropelObjectCollection(); - \$this->{$collName}->setModel('" . $this->getNewStubObjectBuilder($refFK->getTable())->getClassname() . "'); - } -"; - } // addRefererInit() - - /** - * Adds the method that adds an object into the referrer fkey collection. - * @param string &$script The script will be modified in this method. - */ - protected function addRefFKAdd(&$script, ForeignKey $refFK) - { - $tblFK = $refFK->getTable(); - - $joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable()); - $className = $joinedTableObjectBuilder->getObjectClassname(); - - $collName = $this->getRefFKCollVarName($refFK); - - $script .= " - /** - * Method called to associate a $className object to this object - * through the $className foreign key attribute. - * - * @param $className \$l $className - * @return void - * @throws PropelException - */ - public function add".$this->getRefFKPhpNameAffix($refFK, $plural = false)."($className \$l) - { - if (\$this->$collName === null) { - \$this->init".$this->getRefFKPhpNameAffix($refFK, $plural = true)."(); - } - if (!\$this->{$collName}->contains(\$l)) { // only add it if the **same** object is not already associated - \$this->{$collName}[]= \$l; - \$l->set".$this->getFKPhpNameAffix($refFK, $plural = false)."(\$this); - } - } -"; - } // addRefererAdd - - /** - * Adds the method that returns the size of the referrer fkey collection. - * @param string &$script The script will be modified in this method. - */ - protected function addRefFKCount(&$script, ForeignKey $refFK) - { - $table = $this->getTable(); - $tblFK = $refFK->getTable(); - - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $fkQueryClassname = $this->getNewStubQueryBuilder($refFK->getTable())->getClassname(); - $relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true); - - $collName = $this->getRefFKCollVarName($refFK); - - $joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable()); - $className = $joinedTableObjectBuilder->getObjectClassname(); - - $script .= " - /** - * Returns the number of related $className objects. - * - * @param Criteria \$criteria - * @param boolean \$distinct - * @param PropelPDO \$con - * @return int Count of related $className objects. - * @throws PropelException - */ - public function count$relCol(Criteria \$criteria = null, \$distinct = false, PropelPDO \$con = null) - { - if(null === \$this->$collName || null !== \$criteria) { - if (\$this->isNew() && null === \$this->$collName) { - return 0; - } else { - \$query = $fkQueryClassname::create(null, \$criteria); - if(\$distinct) { - \$query->distinct(); - } - return \$query - ->filterBy" . $this->getFKPhpNameAffix($refFK) . "(\$this) - ->count(\$con); - } - } else { - return count(\$this->$collName); - } - } -"; - } // addRefererCount - - /** - * Adds the method that returns the referrer fkey collection. - * @param string &$script The script will be modified in this method. - */ - protected function addRefFKGet(&$script, ForeignKey $refFK) - { - $table = $this->getTable(); - $tblFK = $refFK->getTable(); - - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $fkQueryClassname = $this->getNewStubQueryBuilder($refFK->getTable())->getClassname(); - $relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true); - - $collName = $this->getRefFKCollVarName($refFK); - - $joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable()); - $className = $joinedTableObjectBuilder->getObjectClassname(); - - $script .= " - /** - * Gets an array of $className 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 ".$this->getObjectClassname()." 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 {$className}[] List of $className objects - * @throws PropelException - */ - public function get$relCol(\$criteria = null, PropelPDO \$con = null) - { - if(null === \$this->$collName || null !== \$criteria) { - if (\$this->isNew() && null === \$this->$collName) { - // return empty collection - \$this->init".$this->getRefFKPhpNameAffix($refFK, $plural = true)."(); - } else { - \$$collName = $fkQueryClassname::create(null, \$criteria) - ->filterBy" . $this->getFKPhpNameAffix($refFK) . "(\$this) - ->find(\$con); - if (null !== \$criteria) { - return \$$collName; - } - \$this->$collName = \$$collName; - } - } - return \$this->$collName; - } -"; - } // addRefererGet() - - /** - * Adds the method that gets a one-to-one related referrer fkey. - * This is for one-to-one relationship special case. - * @param string &$script The script will be modified in this method. - */ - protected function addPKRefFKGet(&$script, ForeignKey $refFK) - { - $table = $this->getTable(); - $tblFK = $refFK->getTable(); - - $joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable()); - $className = $joinedTableObjectBuilder->getObjectClassname(); - - $queryClassname = $this->getNewStubQueryBuilder($refFK->getTable())->getClassname(); - - $varName = $this->getPKRefFKVarName($refFK); - - $script .= " - /** - * Gets a single $className object, which is related to this object by a one-to-one relationship. - * - * @param PropelPDO \$con optional connection object - * @return $className - * @throws PropelException - */ - public function get".$this->getRefFKPhpNameAffix($refFK, $plural = false)."(PropelPDO \$con = null) - { -"; - $script .= " - if (\$this->$varName === null && !\$this->isNew()) { - \$this->$varName = $queryClassname::create()->findPk(\$this->getPrimaryKey(), \$con); - } - - return \$this->$varName; - } -"; - } // addPKRefFKGet() - - /** - * Adds the method that sets a one-to-one related referrer fkey. - * This is for one-to-one relationships special case. - * @param string &$script The script will be modified in this method. - * @param ForeignKey $refFK The referencing foreign key. - */ - protected function addPKRefFKSet(&$script, ForeignKey $refFK) - { - $tblFK = $refFK->getTable(); - - $joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable()); - $className = $joinedTableObjectBuilder->getObjectClassname(); - - $varName = $this->getPKRefFKVarName($refFK); - - $script .= " - /** - * Sets a single $className object as related to this object by a one-to-one relationship. - * - * @param $className \$v $className - * @return ".$this->getObjectClassname()." The current object (for fluent API support) - * @throws PropelException - */ - public function set".$this->getRefFKPhpNameAffix($refFK, $plural = false)."($className \$v = null) - { - \$this->$varName = \$v; - - // Make sure that that the passed-in $className isn't already associated with this object - if (\$v !== null && \$v->get".$this->getFKPhpNameAffix($refFK, $plural = false)."() === null) { - \$v->set".$this->getFKPhpNameAffix($refFK, $plural = false)."(\$this); - } - - return \$this; - } -"; - } // addPKRefFKSet - - protected function addCrossFKAttributes(&$script, ForeignKey $crossFK) - { - $joinedTableObjectBuilder = $this->getNewObjectBuilder($crossFK->getForeignTable()); - $className = $joinedTableObjectBuilder->getObjectClassname(); - $script .= " - /** - * @var array {$className}[] Collection to store aggregation of $className objects. - */ - protected $" . $this->getCrossFKVarName($crossFK) . "; -"; - } - - protected function getCrossFKVarName(ForeignKey $crossFK) - { - return 'coll' . $this->getFKPhpNameAffix($crossFK, $plural = true); - } - - protected function addCrossFKMethods(&$script) - { - foreach ($this->getTable()->getCrossFks() as $fkList) { - list($refFK, $crossFK) = $fkList; - $this->declareClassFromBuilder($this->getNewStubObjectBuilder($crossFK->getForeignTable())); - $this->declareClassFromBuilder($this->getNewStubQueryBuilder($crossFK->getForeignTable())); - - $this->addCrossFKClear($script, $crossFK); - $this->addCrossFKInit($script, $crossFK); - $this->addCrossFKGet($script, $refFK, $crossFK); - $this->addCrossFKCount($script, $refFK, $crossFK); - $this->addCrossFKAdd($script, $refFK, $crossFK); - } - } - - /** - * Adds the method that clears the referrer fkey collection. - * @param string &$script The script will be modified in this method. - */ - protected function addCrossFKClear(&$script, ForeignKey $crossFK) { - - $relCol = $this->getFKPhpNameAffix($crossFK, $plural = true); - $collName = $this->getCrossFKVarName($crossFK); - - $script .= " - /** - * Clears out the $collName 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 add$relCol() - */ - public function clear$relCol() - { - \$this->$collName = null; // important to set this to NULL since that means it is uninitialized - } -"; - } // addRefererClear() - - /** - * Adds the method that initializes the referrer fkey collection. - * @param string &$script The script will be modified in this method. - */ - protected function addCrossFKInit(&$script, ForeignKey $crossFK) { - - $relCol = $this->getFKPhpNameAffix($crossFK, $plural = true); - $collName = $this->getCrossFKVarName($crossFK); - $relatedObjectClassName = $this->getNewStubObjectBuilder($crossFK->getForeignTable())->getClassname(); - - $script .= " - /** - * Initializes the $collName collection. - * - * By default this just sets the $collName collection to an empty collection (like clear$relCol()); - * 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 init$relCol() - { - \$this->$collName = new PropelObjectCollection(); - \$this->{$collName}->setModel('$relatedObjectClassName'); - } -"; - } - - protected function addCrossFKGet(&$script, $refFK, $crossFK) - { - $relatedName = $this->getFKPhpNameAffix($crossFK, $plural = true); - $relatedObjectClassName = $this->getNewStubObjectBuilder($crossFK->getForeignTable())->getClassname(); - $selfRelationName = $this->getFKPhpNameAffix($refFK, $plural = false); - $relatedQueryClassName = $this->getNewStubQueryBuilder($crossFK->getForeignTable())->getClassname(); - $crossRefTableName = $crossFK->getTableName(); - $collName = $this->getCrossFKVarName($crossFK); - $script .= " - /** - * Gets a collection of $relatedObjectClassName objects related by a many-to-many relationship - * to the current object by way of the $crossRefTableName cross-reference table. - * - * 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 ".$this->getObjectClassname()." is new, it will return - * an empty collection or the current collection; the criteria is ignored on a new object. - * - * @param Criteria \$criteria Optional query object to filter the query - * @param PropelPDO \$con Optional connection object - * - * @return PropelCollection|array {$relatedObjectClassName}[] List of {$relatedObjectClassName} objects - */ - public function get{$relatedName}(\$criteria = null, PropelPDO \$con = null) - { - if(null === \$this->$collName || null !== \$criteria) { - if (\$this->isNew() && null === \$this->$collName) { - // return empty collection - \$this->init{$relatedName}(); - } else { - \$$collName = $relatedQueryClassName::create(null, \$criteria) - ->filterBy{$selfRelationName}(\$this) - ->find(\$con); - if (null !== \$criteria) { - return \$$collName; - } - \$this->$collName = \$$collName; - } - } - return \$this->$collName; - } -"; - } - - protected function addCrossFKCount(&$script, $refFK, $crossFK) - { - $relatedName = $this->getFKPhpNameAffix($crossFK, $plural = true); - $relatedObjectClassName = $this->getNewStubObjectBuilder($crossFK->getForeignTable())->getClassname(); - $selfRelationName = $this->getFKPhpNameAffix($refFK, $plural = false); - $relatedQueryClassName = $this->getNewStubQueryBuilder($crossFK->getForeignTable())->getClassname(); - $crossRefTableName = $refFK->getTableName(); - $collName = $this->getCrossFKVarName($crossFK); - $script .= " - /** - * Gets the number of $relatedObjectClassName objects related by a many-to-many relationship - * to the current object by way of the $crossRefTableName cross-reference table. - * - * @param Criteria \$criteria Optional query object to filter the query - * @param boolean \$distinct Set to true to force count distinct - * @param PropelPDO \$con Optional connection object - * - * @return int the number of related $relatedObjectClassName objects - */ - public function count{$relatedName}(\$criteria = null, \$distinct = false, PropelPDO \$con = null) - { - if(null === \$this->$collName || null !== \$criteria) { - if (\$this->isNew() && null === \$this->$collName) { - return 0; - } else { - \$query = $relatedQueryClassName::create(null, \$criteria); - if(\$distinct) { - \$query->distinct(); - } - return \$query - ->filterBy{$selfRelationName}(\$this) - ->count(\$con); - } - } else { - return count(\$this->$collName); - } - } -"; - } - - /** - * Adds the method that adds an object into the referrer fkey collection. - * @param string &$script The script will be modified in this method. - */ - protected function addCrossFKAdd(&$script, ForeignKey $refFK, ForeignKey $crossFK) - { - $relCol = $this->getFKPhpNameAffix($crossFK, $plural = true); - $collName = $this->getCrossFKVarName($crossFK); - - $tblFK = $refFK->getTable(); - - $joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable()); - $className = $joinedTableObjectBuilder->getObjectClassname(); - - $foreignObjectName = '$' . $tblFK->getStudlyPhpName(); - $crossObjectName = '$' . $crossFK->getForeignTable()->getStudlyPhpName(); - $crossObjectClassName = $this->getNewObjectBuilder($crossFK->getForeignTable())->getObjectClassname(); - - $script .= " - /** - * Associate a " . $crossObjectClassName . " object to this object - * through the " . $tblFK->getName() . " cross reference table. - * - * @param " . $crossObjectClassName . " " . $crossObjectName . " The $className object to relate - * @return void - */ - public function add" . $this->getFKPhpNameAffix($crossFK, $plural = false) . "(" . $crossObjectName. ") - { - if (\$this->" . $collName . " === null) { - \$this->init" . $relCol . "(); - } - if (!\$this->" . $collName . "->contains(" . $crossObjectName . ")) { // only add it if the **same** object is not already associated - " . $foreignObjectName . " = new " . $className . "(); - " . $foreignObjectName . "->set" . $this->getFKPhpNameAffix($crossFK, $plural = false) . "(" . $crossObjectName . "); - \$this->add" . $this->getRefFKPhpNameAffix($refFK, $plural = false) . "(" . $foreignObjectName . "); - - \$this->" . $collName . "[]= " . $crossObjectName . "; - } - } -"; - } - - // ---------------------------------------------------------------- - // - // M A N I P U L A T I O N M E T H O D S - // - // ---------------------------------------------------------------- - - /** - * Adds the workhourse doSave() method. - * @param string &$script The script will be modified in this method. - */ - protected function addDoSave(&$script) - { - $table = $this->getTable(); - - $reloadOnUpdate = $table->isReloadOnUpdate(); - $reloadOnInsert = $table->isReloadOnInsert(); - - $script .= " - /** - * Performs the work of inserting or updating the row in the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All related objects are also updated in this method. - * - * @param PropelPDO \$con"; - if ($reloadOnUpdate || $reloadOnInsert) { - $script .= " - * @param boolean \$skipReload Whether to skip the reload for this object from database."; - } - $script .= " - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see save() - */ - protected function doSave(PropelPDO \$con".($reloadOnUpdate || $reloadOnInsert ? ", \$skipReload = false" : "").") - { - \$affectedRows = 0; // initialize var to track total num of affected rows - if (!\$this->alreadyInSave) { - \$this->alreadyInSave = true; -"; - if ($reloadOnInsert || $reloadOnUpdate) { - $script .= " - \$reloadObject = false; -"; - } - - if (count($table->getForeignKeys())) { - - $script .= " - // We call the save method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. -"; - - foreach ($table->getForeignKeys() as $fk) { - $aVarName = $this->getFKVarName($fk); - $script .= " - if (\$this->$aVarName !== null) { - if (\$this->" . $aVarName . "->isModified() || \$this->" . $aVarName . "->isNew()) { - \$affectedRows += \$this->" . $aVarName . "->save(\$con); - } - \$this->set".$this->getFKPhpNameAffix($fk, $plural = false)."(\$this->$aVarName); - } -"; - } // foreach foreign k - } // if (count(foreign keys)) - - if ($table->hasAutoIncrementPrimaryKey() ) { - $script .= " - if (\$this->isNew() ) { - \$this->modifiedColumns[] = " . $this->getColumnConstant($table->getAutoIncrementPrimaryKey() ) . "; - }"; - } - - $script .= " - - // If this object has been modified, then save it to the database. - if (\$this->isModified()) { - if (\$this->isNew()) { - \$criteria = \$this->buildCriteria();"; - - - foreach ($table->getColumns() as $col) { - if ($col->isPrimaryKey() && $col->isAutoIncrement() && $table->getIdMethod() != "none" && !$table->isAllowPkInsert()) { - $colConst = $this->getColumnConstant($col); - $script .= " - if (\$criteria->keyContainsValue(" . $colConst . ") ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('." . $colConst . ".')'); - } -"; - if (!$this->getPlatform()->supportsInsertNullPk()) { - $script .= " - // remove pkey col since this table uses auto-increment and passing a null value for it is not valid - \$criteria->remove(" . $colConst . "); -"; - } - } elseif ($col->isPrimaryKey() && $col->isAutoIncrement() && $table->getIdMethod() != "none" && $table->isAllowPkInsert() && !$this->getPlatform()->supportsInsertNullPk()) { - $script .= " - // remove pkey col if it is null since this table does not accept that - if (\$criteria->containsKey(" . $colConst . ") && !\$criteria->keyContainsValue(" . $colConst . ") ) { - \$criteria->remove(" . $colConst . "); - }"; - } - } - - $script .= " - \$pk = " . $this->getNewPeerBuilder($table)->getBasePeerClassname() . "::doInsert(\$criteria, \$con);"; - if ($reloadOnInsert) { - $script .= " - if (!\$skipReload) { - \$reloadObject = true; - }"; - } - $operator = count($table->getForeignKeys()) ? '+=' : '='; - $script .= " - \$affectedRows " . $operator . " 1;"; - if ($table->getIdMethod() != IDMethod::NO_ID_METHOD) { - - if (count($pks = $table->getPrimaryKey())) { - foreach ($pks as $pk) { - if ($pk->isAutoIncrement()) { - if ($table->isAllowPkInsert()) { - $script .= " - if (\$pk !== null) { - \$this->set".$pk->getPhpName()."(\$pk); //[IMV] update autoincrement primary key - }"; - } else { - $script .= " - \$this->set".$pk->getPhpName()."(\$pk); //[IMV] update autoincrement primary key"; - } - } - } - } - } // if (id method != "none") - - $script .= " - \$this->setNew(false); - } else {"; - if ($reloadOnUpdate) { - $script .= " - if (!\$skipReload) { - \$reloadObject = true; - }"; - } - $operator = count($table->getForeignKeys()) ? '+=' : '='; - $script .= " - \$affectedRows " . $operator . " ".$this->getPeerClassname()."::doUpdate(\$this, \$con); - } -"; - - // We need to rewind any LOB columns - foreach ($table->getColumns() as $col) { - $clo = strtolower($col->getName()); - if ($col->isLobType()) { - $script .= " - // Rewind the $clo LOB column, since PDO does not rewind after inserting value. - if (\$this->$clo !== null && is_resource(\$this->$clo)) { - rewind(\$this->$clo); - } -"; - } - } - - $script .= " - \$this->resetModified(); // [HL] After being saved an object is no longer 'modified' - } -"; - - foreach ($table->getReferrers() as $refFK) { - - if ($refFK->isLocalPrimaryKey()) { - $varName = $this->getPKRefFKVarName($refFK); - $script .= " - if (\$this->$varName !== null) { - if (!\$this->{$varName}->isDeleted()) { - \$affectedRows += \$this->{$varName}->save(\$con); - } - } -"; - } else { - $collName = $this->getRefFKCollVarName($refFK); - $script .= " - if (\$this->$collName !== null) { - foreach (\$this->$collName as \$referrerFK) { - if (!\$referrerFK->isDeleted()) { - \$affectedRows += \$referrerFK->save(\$con); - } - } - } -"; - } // if refFK->isLocalPrimaryKey() - - } /* foreach getReferrers() */ - $script .= " - \$this->alreadyInSave = false; -"; - if ($reloadOnInsert || $reloadOnUpdate) { - $script .= " - if (\$reloadObject) { - \$this->reload(\$con); - } -"; - } - $script .= " - } - return \$affectedRows; - } // doSave() -"; - - } - - /** - * Adds the $alreadyInSave attribute, which prevents attempting to re-save the same object. - * @param string &$script The script will be modified in this method. - */ - protected function addAlreadyInSaveAttribute(&$script) - { - $script .= " - /** - * Flag to prevent endless save loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected \$alreadyInSave = false; -"; - } - - /** - * Adds the save() method. - * @param string &$script The script will be modified in this method. - */ - protected function addSave(&$script) - { - $this->addSaveComment($script); - $this->addSaveOpen($script); - $this->addSaveBody($script); - $this->addSaveClose($script); - } - - /** - * Adds the comment for the save method - * @param string &$script The script will be modified in this method. - * @see addSave() - **/ - protected function addSaveComment(&$script) { - $table = $this->getTable(); - $reloadOnUpdate = $table->isReloadOnUpdate(); - $reloadOnInsert = $table->isReloadOnInsert(); - - $script .= " - /** - * Persists this object to the database. - * - * If the object is new, it inserts it; otherwise an update is performed. - * All modified related objects will also be persisted in the doSave() - * method. This method wraps all precipitate database operations in a - * single transaction."; - if ($reloadOnUpdate) { - $script .= " - * - * Since this table was configured to reload rows on update, the object will - * be reloaded from the database if an UPDATE operation is performed (unless - * the \$skipReload parameter is TRUE)."; - } - if ($reloadOnInsert) { - $script .= " - * - * Since this table was configured to reload rows on insert, the object will - * be reloaded from the database if an INSERT operation is performed (unless - * the \$skipReload parameter is TRUE)."; - } - $script .= " - * - * @param PropelPDO \$con"; - if ($reloadOnUpdate || $reloadOnInsert) { - $script .= " - * @param boolean \$skipReload Whether to skip the reload for this object from database."; - } - $script .= " - * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. - * @throws PropelException - * @see doSave() - */"; - } - - /** - * Adds the function declaration for the save method - * @param string &$script The script will be modified in this method. - * @see addSave() - **/ - protected function addSaveOpen(&$script) { - $table = $this->getTable(); - $reloadOnUpdate = $table->isReloadOnUpdate(); - $reloadOnInsert = $table->isReloadOnInsert(); - $script .= " - public function save(PropelPDO \$con = null".($reloadOnUpdate || $reloadOnInsert ? ", \$skipReload = false" : "").") - {"; - } - - /** - * Adds the function body for the save method - * @param string &$script The script will be modified in this method. - * @see addSave() - **/ - protected function addSaveBody(&$script) { - $table = $this->getTable(); - $reloadOnUpdate = $table->isReloadOnUpdate(); - $reloadOnInsert = $table->isReloadOnInsert(); - - $script .= " - if (\$this->isDeleted()) { - throw new PropelException(\"You cannot save an object that has been deleted.\"); - } - - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - \$con->beginTransaction(); - \$isInsert = \$this->isNew(); - try {"; - - if($this->getGeneratorConfig()->getBuildProperty('addHooks')) { - // save with runtime hools - $script .= " - \$ret = \$this->preSave(\$con);"; - $this->applyBehaviorModifier('preSave', $script, " "); - $script .= " - if (\$isInsert) { - \$ret = \$ret && \$this->preInsert(\$con);"; - $this->applyBehaviorModifier('preInsert', $script, " "); - $script .= " - } else { - \$ret = \$ret && \$this->preUpdate(\$con);"; - $this->applyBehaviorModifier('preUpdate', $script, " "); - $script .= " - } - if (\$ret) { - \$affectedRows = \$this->doSave(\$con".($reloadOnUpdate || $reloadOnInsert ? ", \$skipReload" : "")."); - if (\$isInsert) { - \$this->postInsert(\$con);"; - $this->applyBehaviorModifier('postInsert', $script, " "); - $script .= " - } else { - \$this->postUpdate(\$con);"; - $this->applyBehaviorModifier('postUpdate', $script, " "); - $script .= " - } - \$this->postSave(\$con);"; - $this->applyBehaviorModifier('postSave', $script, " "); - $script .= " - ".$this->getPeerClassname()."::addInstanceToPool(\$this); - } else { - \$affectedRows = 0; - } - \$con->commit(); - return \$affectedRows;"; - } else { - // save without runtime hooks - $this->applyBehaviorModifier('preSave', $script, " "); - if ($this->hasBehaviorModifier('preUpdate')) - { - $script .= " - if(!\$isInsert) {"; - $this->applyBehaviorModifier('preUpdate', $script, " "); - $script .= " - }"; - } - if ($this->hasBehaviorModifier('preInsert')) - { - $script .= " - if(\$isInsert) {"; - $this->applyBehaviorModifier('preInsert', $script, " "); - $script .= " - }"; - } - $script .= " - \$affectedRows = \$this->doSave(\$con".($reloadOnUpdate || $reloadOnInsert ? ", \$skipReload" : "").");"; - $this->applyBehaviorModifier('postSave', $script, " "); - if ($this->hasBehaviorModifier('postUpdate')) - { - $script .= " - if(!\$isInsert) {"; - $this->applyBehaviorModifier('postUpdate', $script, " "); - $script .= " - }"; - } - if ($this->hasBehaviorModifier('postInsert')) - { - $script .= " - if(\$isInsert) {"; - $this->applyBehaviorModifier('postInsert', $script, " "); - $script .= " - }"; - } - $script .= " - \$con->commit(); - ".$this->getPeerClassname()."::addInstanceToPool(\$this); - return \$affectedRows;"; - } - - $script .= " - } catch (PropelException \$e) { - \$con->rollBack(); - throw \$e; - }"; - } - - /** - * Adds the function close for the save method - * @param string &$script The script will be modified in this method. - * @see addSave() - **/ - protected function addSaveClose(&$script) { - $script .= " - } -"; - } - - /** - * Adds the $alreadyInValidation attribute, which prevents attempting to re-validate the same object. - * @param string &$script The script will be modified in this method. - */ - protected function addAlreadyInValidationAttribute(&$script) - { - $script .= " - /** - * Flag to prevent endless validation loop, if this object is referenced - * by another object which falls in this transaction. - * @var boolean - */ - protected \$alreadyInValidation = false; -"; - } - - /** - * Adds the validate() method. - * @param string &$script The script will be modified in this method. - */ - protected function addValidate(&$script) - { - $script .= " - /** - * Validates the objects modified field values and all objects related to this table. - * - * If \$columns is either a column name or an array of column names - * only those columns are validated. - * - * @param mixed \$columns Column name or an array of column names. - * @return boolean Whether all columns pass validation. - * @see doValidate() - * @see getValidationFailures() - */ - public function validate(\$columns = null) - { - \$res = \$this->doValidate(\$columns); - if (\$res === true) { - \$this->validationFailures = array(); - return true; - } else { - \$this->validationFailures = \$res; - return false; - } - } -"; - } // addValidate() - - /** - * Adds the workhourse doValidate() method. - * @param string &$script The script will be modified in this method. - */ - protected function addDoValidate(&$script) - { - $table = $this->getTable(); - - $script .= " - /** - * This function performs the validation work for complex object models. - * - * In addition to checking the current object, all related objects will - * also be validated. If all pass then true is returned; otherwise - * an aggreagated array of ValidationFailed objects will be returned. - * - * @param array \$columns Array of column names to validate. - * @return mixed true if all validations pass; array of ValidationFailed objets otherwise. - */ - protected function doValidate(\$columns = null) - { - if (!\$this->alreadyInValidation) { - \$this->alreadyInValidation = true; - \$retval = null; - - \$failureMap = array(); -"; - if (count($table->getForeignKeys()) != 0) { - $script .= " - - // We call the validate method on the following object(s) if they - // were passed to this object by their coresponding set - // method. This object relates to these object(s) by a - // foreign key reference. -"; - foreach ($table->getForeignKeys() as $fk) { - $aVarName = $this->getFKVarName($fk); - $script .= " - if (\$this->".$aVarName." !== null) { - if (!\$this->".$aVarName."->validate(\$columns)) { - \$failureMap = array_merge(\$failureMap, \$this->".$aVarName."->getValidationFailures()); - } - } -"; - } /* for () */ - } /* if count(fkeys) */ - - $script .= " - - if ((\$retval = ".$this->getPeerClassname()."::doValidate(\$this, \$columns)) !== true) { - \$failureMap = array_merge(\$failureMap, \$retval); - } - -"; - - foreach ($table->getReferrers() as $refFK) { - if ($refFK->isLocalPrimaryKey()) { - $varName = $this->getPKRefFKVarName($refFK); - $script .= " - if (\$this->$varName !== null) { - if (!\$this->".$varName."->validate(\$columns)) { - \$failureMap = array_merge(\$failureMap, \$this->".$varName."->getValidationFailures()); - } - } -"; - } else { - $collName = $this->getRefFKCollVarName($refFK); - $script .= " - if (\$this->$collName !== null) { - foreach (\$this->$collName as \$referrerFK) { - if (!\$referrerFK->validate(\$columns)) { - \$failureMap = array_merge(\$failureMap, \$referrerFK->getValidationFailures()); - } - } - } -"; - } - } /* foreach getReferrers() */ - - $script .= " - - \$this->alreadyInValidation = false; - } - - return (!empty(\$failureMap) ? \$failureMap : true); - } -"; - } // addDoValidate() - - /** - * Adds the ensureConsistency() method to ensure that internal state is correct. - * @param string &$script The script will be modified in this method. - */ - protected function addEnsureConsistency(&$script) - { - $table = $this->getTable(); - - $script .= " - /** - * Checks and repairs the internal consistency of the object. - * - * This method is executed after an already-instantiated object is re-hydrated - * from the database. It exists to check any foreign keys to make sure that - * the objects related to the current object are correct based on foreign key. - * - * You can override this method in the stub class, but you should always invoke - * the base method from the overridden method (i.e. parent::ensureConsistency()), - * in case your model changes. - * - * @throws PropelException - */ - public function ensureConsistency() - { -"; - foreach ($table->getColumns() as $col) { - - $clo=strtolower($col->getName()); - - if ($col->isForeignKey()) { - foreach ($col->getForeignKeys() as $fk) { - - $tblFK = $table->getDatabase()->getTable($fk->getForeignTableName()); - $colFK = $tblFK->getColumn($fk->getMappedForeignColumn($col->getName())); - $varName = $this->getFKVarName($fk); - - $script .= " - if (\$this->".$varName." !== null && \$this->$clo !== \$this->".$varName."->get".$colFK->getPhpName()."()) { - \$this->$varName = null; - }"; - } // foraech - } /* if col is foreign key */ - - } // foreach - - $script .= " - } // ensureConsistency -"; - } // addCheckRelConsistency - - /** - * Adds the copy() method, which (in complex OM) includes the $deepCopy param for making copies of related objects. - * @param string &$script The script will be modified in this method. - */ - protected function addCopy(&$script) - { - $this->addCopyInto($script); - - $table = $this->getTable(); - - $script .= " - /** - * Makes a copy of this object that will be inserted as a new row in table when saved. - * It creates a new object filling in the simple attributes, but skipping any primary - * keys that are defined for the table. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param boolean \$deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return ".$this->getObjectClassname()." Clone of current object. - * @throws PropelException - */ - public function copy(\$deepCopy = false) - { - // we use get_class(), because this might be a subclass - \$clazz = get_class(\$this); - " . $this->buildObjectInstanceCreationCode('$copyObj', '$clazz') . " - \$this->copyInto(\$copyObj, \$deepCopy); - return \$copyObj; - } -"; - } // addCopy() - - /** - * Adds the copyInto() method, which takes an object and sets contents to match current object. - * In complex OM this method includes the $deepCopy param for making copies of related objects. - * @param string &$script The script will be modified in this method. - */ - protected function addCopyInto(&$script) - { - $table = $this->getTable(); - - $script .= " - /** - * Sets contents of passed object to values from current object. - * - * If desired, this method can also make copies of all associated (fkey referrers) - * objects. - * - * @param object \$copyObj An object of ".$this->getObjectClassname()." (or compatible) type. - * @param boolean \$deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @throws PropelException - */ - public function copyInto(\$copyObj, \$deepCopy = false) - {"; - - $autoIncCols = array(); - foreach ($table->getColumns() as $col) { - /* @var $col Column */ - if ($col->isAutoIncrement()) { - $autoIncCols[] = $col; - } - } - - foreach ($table->getColumns() as $col) { - if (!in_array($col, $autoIncCols, true)) { - $script .= " - \$copyObj->set".$col->getPhpName()."(\$this->".strtolower($col->getName()).");"; - } - } // foreach - - // Avoid useless code by checking to see if there are any referrers - // to this table: - if (count($table->getReferrers()) > 0) { - $script .= " - - if (\$deepCopy) { - // important: temporarily setNew(false) because this affects the behavior of - // the getter/setter methods for fkey referrer objects. - \$copyObj->setNew(false); -"; - foreach ($table->getReferrers() as $fk) { - //HL: commenting out self-referrential check below - // it seems to work as expected and is probably desireable to have those referrers from same table deep-copied. - //if ( $fk->getTable()->getName() != $table->getName() ) { - - if ($fk->isLocalPrimaryKey()) { - - $afx = $this->getRefFKPhpNameAffix($fk, $plural = false); - $script .= " - \$relObj = \$this->get$afx(); - if (\$relObj) { - \$copyObj->set$afx(\$relObj->copy(\$deepCopy)); - } -"; - } else { - - $script .= " - foreach (\$this->get".$this->getRefFKPhpNameAffix($fk, true)."() as \$relObj) { - if (\$relObj !== \$this) { // ensure that we don't try to copy a reference to ourselves - \$copyObj->add".$this->getRefFKPhpNameAffix($fk)."(\$relObj->copy(\$deepCopy)); - } - } -"; - } - // HL: commenting out close of self-referential check - // } /* if tblFK != table */ - } /* foreach */ - $script .= " - } // if (\$deepCopy) -"; - } /* if (count referrers > 0 ) */ - - $script .= " - - \$copyObj->setNew(true);"; - - // Note: we're no longer resetting non-autoincrement primary keys to default values - // due to: http://propel.phpdb.org/trac/ticket/618 - foreach ($autoIncCols as $col) { - $coldefval = $col->getPhpDefaultValue(); - $coldefval = var_export($coldefval, true); - $script .= " - \$copyObj->set".$col->getPhpName() ."($coldefval); // this is a auto-increment column, so set to default value"; - } // foreach - $script .= " - } -"; - } // addCopyInto() - - /** - * Adds clear method - * @param string &$script The script will be modified in this method. - */ - protected function addClear(&$script) - { - $table = $this->getTable(); - - $script .= " - /** - * Clears the current object and sets all attributes to their default values - */ - public function clear() - {"; - foreach ($table->getColumns() as $col) { - $script .= " - \$this->" . strtolower($col->getName()) . " = null;"; - } - - $script .= " - \$this->alreadyInSave = false; - \$this->alreadyInValidation = false; - \$this->clearAllReferences();"; - - if ($this->hasDefaultValues()) { - $script .= " - \$this->applyDefaultValues();"; - } - - $script .= " - \$this->resetModified(); - \$this->setNew(true); - \$this->setDeleted(false); - } -"; - } - - - /** - * Adds clearAllReferencers() method which resets all the collections of referencing - * fk objects. - * @param string &$script The script will be modified in this method. - */ - protected function addClearAllReferences(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Resets all collections of referencing foreign keys. - * - * This method is a user-space workaround for PHP's inability to garbage collect objects - * with circular references. This is currently necessary when using Propel in certain - * daemon or large-volumne/high-memory operations. - * - * @param boolean \$deep Whether to also clear the references on all associated objects. - */ - public function clearAllReferences(\$deep = false) - { - if (\$deep) {"; - $vars = array(); - foreach ($this->getTable()->getReferrers() as $refFK) { - if ($refFK->isLocalPrimaryKey()) { - $varName = $this->getPKRefFKVarName($refFK); - $vars[] = $varName; - $script .= " - if (\$this->$varName) { - \$this->{$varName}->clearAllReferences(\$deep); - }"; - } else { - $varName = $this->getRefFKCollVarName($refFK); - $vars[] = $varName; - $script .= " - if (\$this->$varName) { - foreach ((array) \$this->$varName as \$o) { - \$o->clearAllReferences(\$deep); - } - }"; - } - } - - $script .= " - } // if (\$deep) -"; - - $this->applyBehaviorModifier('objectClearReferences', $script, " "); - - foreach ($vars as $varName) { - $script .= " - \$this->$varName = null;"; - } - - foreach ($table->getForeignKeys() as $fk) { - $className = $this->getForeignTable($fk)->getPhpName(); - $varName = $this->getFKVarName($fk); - $script .= " - \$this->$varName = null;"; - } - - $script .= " - } -"; - } - - /** - * Adds a magic __toString() method if a string column was defined as primary string - * @param string &$script The script will be modified in this method. - */ - protected function addPrimaryString(&$script) - { - foreach ($this->getTable()->getColumns() as $column) { - if ($column->isPrimaryString()) { - $script .= " - /** - * Return the string representation of this object - * - * @return string The value of the '{$column->getName()}' column - */ - public function __toString() - { - return (string) \$this->get{$column->getPhpName()}(); - } -"; - break; - } - } - } - - /** - * Adds a magic __call() method - * @param string &$script The script will be modified in this method. - */ - protected function addMagicCall(&$script) - { - $script .= " - /** - * Catches calls to virtual methods - */ - public function __call(\$name, \$params) - {"; - $this->applyBehaviorModifier('objectCall', $script, " "); - $script .= " - if (preg_match('/get(\w+)/', \$name, \$matches)) { - \$virtualColumn = \$matches[1]; - if (\$this->hasVirtualColumn(\$virtualColumn)) { - return \$this->getVirtualColumn(\$virtualColumn); - } - // no lcfirst in php<5.3... - \$virtualColumn[0] = strtolower(\$virtualColumn[0]); - if (\$this->hasVirtualColumn(\$virtualColumn)) { - return \$this->getVirtualColumn(\$virtualColumn); - } - } - throw new PropelException('Call to undefined method: ' . \$name); - } -"; - } -} // PHP5ObjectBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php deleted file mode 100644 index 8b96998a9c..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php +++ /dev/null @@ -1,962 +0,0 @@ - - * propel.builder.object.class = builder.om.PHP5ObjectNoCollectionBuilder - * - * - * @deprecated Since Propel 1.5 - * @author Hans Lellelid - * @package propel.generator.builder.om - */ -class PHP5ObjectNoCollectionBuilder extends PHP5ObjectBuilder -{ - - /** - * Adds the lazy loader method. - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see parent::addColumnAccessors() - */ - protected function addLazyLoader(&$script, Column $col) - { - $this->addLazyLoaderComment($script, $col); - $this->addLazyLoaderOpen($script, $col); - $this->addLazyLoaderBody($script, $col); - $this->addLazyLoaderClose($script, $col); - } - - /** - * Adds the comment for the lazy loader method - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addLazyLoader() - **/ - protected function addLazyLoaderComment(&$script, Column $col) { - $clo = strtolower($col->getName()); - - $script .= " - /** - * Load the value for the lazy-loaded [$clo] column. - * - * This method performs an additional query to return the value for - * the [$clo] column, since it is not populated by - * the hydrate() method. - * - * @param \$con PropelPDO (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - any underlying error will be wrapped and re-thrown. - */"; - } - - /** - * Adds the function declaration for the lazy loader method - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addLazyLoader() - **/ - protected function addLazyLoaderOpen(&$script, Column $col) { - $cfc = $col->getPhpName(); - $script .= " - protected function load$cfc(PropelPDO \$con = null) - {"; - } - - /** - * Adds the function body for the lazy loader method - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addLazyLoader() - **/ - protected function addLazyLoaderBody(&$script, Column $col) { - $platform = $this->getPlatform(); - $clo = strtolower($col->getName()); - - $script .= " - \$c = \$this->buildPkeyCriteria(); - \$c->addSelectColumn(".$this->getColumnConstant($col)."); - try { - \$stmt = ".$this->getPeerClassname()."::doSelectStmt(\$c, \$con); - \$row = \$stmt->fetch(PDO::FETCH_NUM); - \$stmt->closeCursor();"; - - if ($col->getType() === PropelTypes::CLOB && $this->getPlatform() instanceof OraclePlatform) { - // PDO_OCI returns a stream for CLOB objects, while other PDO adapters return a string... - $script .= " - \$this->$clo = stream_get_contents(\$row[0]);"; - } elseif ($col->isLobType() && !$platform->hasStreamBlobImpl()) { - $script .= " - if (\$row[0] !== null) { - \$this->$clo = fopen('php://memory', 'r+'); - fwrite(\$this->$clo, \$row[0]); - rewind(\$this->$clo); - } else { - \$this->$clo = null; - }"; - } elseif ($col->isPhpPrimitiveType()) { - $script .= " - \$this->$clo = (\$row[0] !== null) ? (".$col->getPhpType().") \$row[0] : null;"; - } elseif ($col->isPhpObjectType()) { - $script .= " - \$this->$clo = (\$row[0] !== null) ? new ".$col->getPhpType()."(\$row[0]) : null;"; - } else { - $script .= " - \$this->$clo = \$row[0];"; - } - - $script .= " - \$this->".$clo."_isLoaded = true; - } catch (Exception \$e) { - throw new PropelException(\"Error loading value for [$clo] column on demand.\", \$e); - }"; - } - - /** - * Adds the function close for the lazy loader - * @param string &$script The script will be modified in this method. - * @param Column $col The current column. - * @see addLazyLoader() - **/ - protected function addLazyLoaderClose(&$script, Column $col) { - $script .= " - }"; - } // addLazyLoader() - - /** - * Adds the buildPkeyCriteria method - * @param string &$script The script will be modified in this method. - **/ - protected function addBuildPkeyCriteria(&$script) { - $this->addBuildPkeyCriteriaComment($script); - $this->addBuildPkeyCriteriaOpen($script); - $this->addBuildPkeyCriteriaBody($script); - $this->addBuildPkeyCriteriaClose($script); - } - - /** - * Adds the comment for the buildPkeyCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildPkeyCriteria() - **/ - protected function addBuildPkeyCriteriaComment(&$script) { - $script .= " - /** - * Builds a Criteria object containing the primary key for this object. - * - * Unlike buildCriteria() this method includes the primary key values regardless - * of whether or not they have been modified. - * - * @return Criteria The Criteria object containing value(s) for primary key(s). - */"; - } - - /** - * Adds the function declaration for the buildPkeyCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildPkeyCriteria() - **/ - protected function addBuildPkeyCriteriaOpen(&$script) { - $script .= " - public function buildPkeyCriteria() - {"; - } - - /** - * Adds the function body for the buildPkeyCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildPkeyCriteria() - **/ - protected function addBuildPkeyCriteriaBody(&$script) { - $script .= " - \$criteria = new Criteria(".$this->getPeerClassname()."::DATABASE_NAME);"; - foreach ($this->getTable()->getColumns() as $col) { - $clo = strtolower($col->getName()); - if ($col->isPrimaryKey()) { - $script .= " - \$criteria->add(".$this->getColumnConstant($col).", \$this->$clo);"; - } - } - } - - /** - * Adds the function close for the buildPkeyCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildPkeyCriteria() - **/ - protected function addBuildPkeyCriteriaClose(&$script) { - $script .= " - - return \$criteria; - } -"; - } - - /** - * Adds the buildCriteria method - * @param string &$script The script will be modified in this method. - **/ - protected function addBuildCriteria(&$script) - { - $this->addBuildCriteriaComment($script); - $this->addBuildCriteriaOpen($script); - $this->addBuildCriteriaBody($script); - $this->addBuildCriteriaClose($script); - } - - /** - * Adds comment for the buildCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildCriteria() - **/ - protected function addBuildCriteriaComment(&$script) { - $script .= " - /** - * Build a Criteria object containing the values of all modified columns in this object. - * - * @return Criteria The Criteria object containing all modified values. - */"; - } - - /** - * Adds the function declaration of the buildCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildCriteria() - **/ - protected function addBuildCriteriaOpen(&$script) { - $script .= " - public function buildCriteria() - {"; - } - - /** - * Adds the function body of the buildCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildCriteria() - **/ - protected function addBuildCriteriaBody(&$script) { - $script .= " - \$criteria = new Criteria(".$this->getPeerClassname()."::DATABASE_NAME); -"; - foreach ($this->getTable()->getColumns() as $col) { - $clo = strtolower($col->getName()); - $script .= " - if (\$this->isColumnModified(".$this->getColumnConstant($col).")) \$criteria->add(".$this->getColumnConstant($col).", \$this->$clo);"; - } - } - - /** - * Adds the function close of the buildCriteria method - * @param string &$script The script will be modified in this method. - * @see addBuildCriteria() - **/ - protected function addBuildCriteriaClose(&$script) { - $script .= " - - return \$criteria; - } -"; - } - - /** - * Adds the function body for the delete function - * @param string &$script The script will be modified in this method. - * @see addDelete() - **/ - protected function addDeleteBody(&$script) { - $script .= " - if (\$this->isDeleted()) { - throw new PropelException(\"This object has already been deleted.\"); - } - - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - \$con->beginTransaction(); - try {"; - if($this->getGeneratorConfig()->getBuildProperty('addHooks')) { - $script .= " - \$ret = \$this->preDelete(\$con);"; - // apply behaviors - $this->applyBehaviorModifier('preDelete', $script, " "); - $script .= " - if (\$ret) { - ".$this->getPeerClassname()."::doDelete(\$this, \$con); - \$this->postDelete(\$con);"; - // apply behaviors - $this->applyBehaviorModifier('postDelete', $script, " "); - $script .= " - \$con->commit(); - \$this->setDeleted(true); - } else { - \$con->commit(); - }"; - } else { - // apply behaviors - $this->applyBehaviorModifier('preDelete', $script, " "); - $script .= " - ".$this->getPeerClassname()."::doDelete(\$this, \$con);"; - // apply behaviors - $this->applyBehaviorModifier('postDelete', $script, " "); - $script .= " - \$con->commit(); - \$this->setDeleted(true);"; - } - - $script .= " - } catch (PropelException \$e) { - \$con->rollBack(); - throw \$e; - }"; - } - - /** - * Adds a reload() method to re-fetch the data for this object from the database. - * @param string &$script The script will be modified in this method. - */ - protected function addReload(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. - * - * This will only work if the object has been saved and has a valid primary key set. - * - * @param boolean \$deep (optional) Whether to also de-associated any related objects. - * @param PropelPDO \$con (optional) The PropelPDO connection to use. - * @return void - * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db - */ - public function reload(\$deep = false, PropelPDO \$con = null) - { - if (\$this->isDeleted()) { - throw new PropelException(\"Cannot reload a deleted object.\"); - } - - if (\$this->isNew()) { - throw new PropelException(\"Cannot reload an unsaved object.\"); - } - - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_READ); - } - - // We don't need to alter the object instance pool; we're just modifying this instance - // already in the pool. - - \$stmt = ".$this->getPeerClassname()."::doSelectStmt(\$this->buildPkeyCriteria(), \$con); - \$row = \$stmt->fetch(PDO::FETCH_NUM); - \$stmt->closeCursor(); - if (!\$row) { - throw new PropelException('Cannot find matching row in the database to reload object values.'); - } - \$this->hydrate(\$row, 0, true); // rehydrate -"; - - // support for lazy load columns - foreach ($table->getColumns() as $col) { - if ($col->isLazyLoad()) { - $clo = strtolower($col->getName()); - $script .= " - // Reset the $clo lazy-load column - \$this->" . $clo . " = null; - \$this->".$clo."_isLoaded = false; -"; - } - } - - $script .= " - if (\$deep) { // also de-associate any related objects? -"; - - foreach ($table->getForeignKeys() as $fk) { - $varName = $this->getFKVarName($fk); - $script .= " - \$this->".$varName." = null;"; - } - - foreach ($table->getReferrers() as $refFK) { - if ($refFK->isLocalPrimaryKey()) { - $script .= " - \$this->".$this->getPKRefFKVarName($refFK)." = null; -"; - } else { - $script .= " - \$this->".$this->getRefFKCollVarName($refFK)." = null; - \$this->".$this->getRefFKLastCriteriaVarName($refFK)." = null; -"; - } - } - - $script .= " - } // if (deep) - } -"; - } // addReload() - - /** - * Gets variable name for the Criteria which was used to fetch the objects which - * referencing current table by specified foreign key. - * @param ForeignKey $fk - * @return string - */ - protected function getRefFKLastCriteriaVarName(ForeignKey $fk) - { - return 'last' . $this->getRefFKPhpNameAffix($fk, $plural = false) . 'Criteria'; - } - - - - /** - * Adds the accessor (getter) method for getting an fkey related object. - * @param string &$script The script will be modified in this method. - */ - protected function addFKAccessor(&$script, ForeignKey $fk) - { - $table = $this->getTable(); - - $varName = $this->getFKVarName($fk); - $pCollName = $this->getFKPhpNameAffix($fk, $plural = true); - - $fkPeerBuilder = $this->getNewPeerBuilder($this->getForeignTable($fk)); - $fkObjectBuilder = $this->getNewObjectBuilder($this->getForeignTable($fk))->getStubObjectBuilder(); - $className = $fkObjectBuilder->getClassname(); // get the Classname that has maybe a prefix - - $and = ""; - $comma = ""; - $conditional = ""; - $argmap = array(); // foreign -> local mapping - $argsize = 0; - foreach ($fk->getLocalColumns() as $columnName) { - - $lfmap = $fk->getLocalForeignMapping(); - - $localColumn = $table->getColumn($columnName); - $foreignColumn = $fk->getForeignTable()->getColumn($lfmap[$columnName]); - - $column = $table->getColumn($columnName); - $cptype = $column->getPhpType(); - $clo = strtolower($column->getName()); - - if ($cptype == "integer" || $cptype == "float" || $cptype == "double") { - $conditional .= $and . "\$this->". $clo ." != 0"; - } elseif ($cptype == "string") { - $conditional .= $and . "(\$this->" . $clo ." !== \"\" && \$this->".$clo." !== null)"; - } else { - $conditional .= $and . "\$this->" . $clo ." !== null"; - } - - $argmap[] = array('foreign' => $foreignColumn, 'local' => $localColumn); - $and = " && "; - $comma = ", "; - $argsize = $argsize + 1; - } - - // If the related column is a primary kay and if it's a simple association, - // The use retrieveByPk() instead of doSelect() to take advantage of instance pooling - $useRetrieveByPk = count($argmap) == 1 && $argmap[0]['foreign']->isPrimaryKey(); - - $script .= " - - /** - * Get the associated $className object - * - * @param PropelPDO Optional Connection object. - * @return $className The associated $className object. - * @throws PropelException - */ - public function get".$this->getFKPhpNameAffix($fk, $plural = false)."(PropelPDO \$con = null) - {"; - $script .= " - if (\$this->$varName === null && ($conditional)) {"; - if ($useRetrieveByPk) { - $script .= " - \$this->$varName = ".$fkPeerBuilder->getPeerClassname()."::retrieveByPk(\$this->$clo);"; - } else { - $script .= " - \$c = new Criteria(".$fkPeerBuilder->getPeerClassname()."::DATABASE_NAME);"; - foreach ($argmap as $el) { - $fcol = $el['foreign']; - $lcol = $el['local']; - $clo = strtolower($lcol->getName()); - $script .= " - \$c->add(".$fkPeerBuilder->getColumnConstant($fcol).", \$this->".$clo.");"; - } - $script .= " - \$this->$varName = ".$fkPeerBuilder->getPeerClassname()."::doSelectOne(\$c, \$con);"; - } - if ($fk->isLocalPrimaryKey()) { - $script .= " - // Because this foreign key represents a one-to-one relationship, we will create a bi-directional association. - \$this->{$varName}->set".$this->getRefFKPhpNameAffix($fk, $plural = false)."(\$this);"; - } else { - $script .= " - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - \$this->{$varName}->add".$this->getRefFKPhpNameAffix($fk, $plural = true)."(\$this); - */"; - } - - $script .= " - } - return \$this->$varName; - } -"; - - } // addFKAccessor - - - /** - * Adds the method that fetches fkey-related (referencing) objects but also joins in data from another table. - * @param string &$script The script will be modified in this method. - */ - protected function addRefFKGetJoinMethods(&$script, ForeignKey $refFK) - { - $table = $this->getTable(); - $tblFK = $refFK->getTable(); - $join_behavior = $this->getGeneratorConfig()->getBuildProperty('useLeftJoinsInDoJoinMethods') ? 'Criteria::LEFT_JOIN' : 'Criteria::INNER_JOIN'; - - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $relCol = $this->getRefFKPhpNameAffix($refFK, $plural=true); - $collName = $this->getRefFKCollVarName($refFK); - $lastCriteriaName = $this->getRefFKLastCriteriaVarName($refFK); - - $fkPeerBuilder = $this->getNewPeerBuilder($tblFK); - - $lastTable = ""; - foreach ($tblFK->getForeignKeys() as $fk2) { - - $tblFK2 = $this->getForeignTable($fk2); - $doJoinGet = !$tblFK2->isForReferenceOnly(); - - // it doesn't make sense to join in rows from the curent table, since we are fetching - // objects related to *this* table (i.e. the joined rows will all be the same row as current object) - if ($this->getTable()->getPhpName() == $tblFK2->getPhpName()) { - $doJoinGet = false; - } - - $relCol2 = $this->getFKPhpNameAffix($fk2, $plural = false); - - if ( $this->getRelatedBySuffix($refFK) != "" && - ($this->getRelatedBySuffix($refFK) == $this->getRelatedBySuffix($fk2))) { - $doJoinGet = false; - } - - if ($doJoinGet) { - $script .= " - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this ".$table->getPhpName()." is new, it will return - * an empty collection; or if this ".$table->getPhpName()." has previously - * been saved, it will retrieve related $relCol from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in ".$table->getPhpName().". - */ - public function get".$relCol."Join".$relCol2."(\$criteria = null, \$con = null, \$join_behavior = $join_behavior) - {"; - $script .= " - if (\$criteria === null) { - \$criteria = new Criteria($peerClassname::DATABASE_NAME); - } - elseif (\$criteria instanceof Criteria) - { - \$criteria = clone \$criteria; - } - - if (\$this->$collName === null) { - if (\$this->isNew()) { - \$this->$collName = array(); - } else { -"; - foreach ($refFK->getForeignColumns() as $columnName) { - $column = $table->getColumn($columnName); - $flMap = $refFK->getForeignLocalMapping(); - $colFKName = $flMap[$columnName]; - $colFK = $tblFK->getColumn($colFKName); - if ($colFK === null) { - throw new EngineException("Column $colFKName not found in " . $tblFK->getName()); - } - $clo = strtolower($column->getName()); - $script .= " - \$criteria->add(".$fkPeerBuilder->getColumnConstant($colFK).", \$this->$clo); -"; - } // end foreach ($fk->getForeignColumns() - - $script .= " - \$this->$collName = ".$fkPeerBuilder->getPeerClassname()."::doSelectJoin$relCol2(\$criteria, \$con, \$join_behavior); - } - } else { - // the following code is to determine if a new query is - // called for. If the criteria is the same as the last - // one, just return the collection. -"; - foreach ($refFK->getForeignColumns() as $columnName) { - $column = $table->getColumn($columnName); - $flMap = $refFK->getForeignLocalMapping(); - $colFKName = $flMap[$columnName]; - $colFK = $tblFK->getColumn($colFKName); - $clo = strtolower($column->getName()); - $script .= " - \$criteria->add(".$fkPeerBuilder->getColumnConstant($colFK).", \$this->$clo); -"; - } /* end foreach ($fk->getForeignColumns() */ - - $script .= " - if (!isset(\$this->$lastCriteriaName) || !\$this->".$lastCriteriaName."->equals(\$criteria)) { - \$this->$collName = ".$fkPeerBuilder->getPeerClassname()."::doSelectJoin$relCol2(\$criteria, \$con, \$join_behavior); - } - } - \$this->$lastCriteriaName = \$criteria; - - return \$this->$collName; - } -"; - } /* end if ($doJoinGet) */ - - } /* end foreach ($tblFK->getForeignKeys() as $fk2) { */ - - } // function - - /** - * Adds the method that initializes the referrer fkey collection. - * @param string &$script The script will be modified in this method. - */ - protected function addRefFKInit(&$script, ForeignKey $refFK) { - - $relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true); - $collName = $this->getRefFKCollVarName($refFK); - - $script .= " - /** - * Initializes the $collName collection (array). - * - * By default this just sets the $collName collection to an empty array (like clear$collName()); - * 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 init$relCol() - { - \$this->$collName = array(); - } -"; - } // addRefererInit() - - /** - * Adds the method that adds an object into the referrer fkey collection. - * @param string &$script The script will be modified in this method. - */ - protected function addRefFKAdd(&$script, ForeignKey $refFK) - { - $tblFK = $refFK->getTable(); - - $joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable()); - $className = $joinedTableObjectBuilder->getObjectClassname(); - - $collName = $this->getRefFKCollVarName($refFK); - - $script .= " - /** - * Method called to associate a $className object to this object - * through the $className foreign key attribute. - * - * @param $className \$l $className - * @return void - * @throws PropelException - */ - public function add".$this->getRefFKPhpNameAffix($refFK, $plural = false)."($className \$l) - { - if (\$this->$collName === null) { - \$this->init".$this->getRefFKPhpNameAffix($refFK, $plural = true)."(); - } - if (!in_array(\$l, \$this->$collName, true)) { // only add it if the **same** object is not already associated - array_push(\$this->$collName, \$l); - \$l->set".$this->getFKPhpNameAffix($refFK, $plural = false)."(\$this); - } - } -"; - } // addRefererAdd - - /** - * Adds the method that returns the size of the referrer fkey collection. - * @param string &$script The script will be modified in this method. - */ - protected function addRefFKCount(&$script, ForeignKey $refFK) - { - $table = $this->getTable(); - $tblFK = $refFK->getTable(); - - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - - $fkPeerBuilder = $this->getNewPeerBuilder($refFK->getTable()); - $relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true); - - $collName = $this->getRefFKCollVarName($refFK); - $lastCriteriaName = $this->getRefFKLastCriteriaVarName($refFK); - - $className = $fkPeerBuilder->getObjectClassname(); - - $script .= " - /** - * Returns the number of related $className objects. - * - * @param Criteria \$criteria - * @param boolean \$distinct - * @param PropelPDO \$con - * @return int Count of related $className objects. - * @throws PropelException - */ - public function count$relCol(Criteria \$criteria = null, \$distinct = false, PropelPDO \$con = null) - {"; - - $script .= " - if (\$criteria === null) { - \$criteria = new Criteria($peerClassname::DATABASE_NAME); - } else { - \$criteria = clone \$criteria; - } - - if (\$distinct) { - \$criteria->setDistinct(); - } - - \$count = null; - - if (\$this->$collName === null) { - if (\$this->isNew()) { - \$count = 0; - } else { -"; - foreach ($refFK->getLocalColumns() as $colFKName) { - // $colFKName is local to the referring table (i.e. foreign to this table) - $lfmap = $refFK->getLocalForeignMapping(); - $localColumn = $this->getTable()->getColumn($lfmap[$colFKName]); - $colFK = $refFK->getTable()->getColumn($colFKName); - $clo = strtolower($localColumn->getName()); - $script .= " - \$criteria->add(".$fkPeerBuilder->getColumnConstant($colFK).", \$this->$clo); -"; - } // end foreach ($fk->getForeignColumns() - - $script .= " - \$count = ".$fkPeerBuilder->getPeerClassname()."::doCount(\$criteria, false, \$con); - } - } else { - // criteria has no effect for a new object - if (!\$this->isNew()) { - // the following code is to determine if a new query is - // called for. If the criteria is the same as the last - // one, just return count of the collection. -"; - foreach ($refFK->getLocalColumns() as $colFKName) { - // $colFKName is local to the referring table (i.e. foreign to this table) - $lfmap = $refFK->getLocalForeignMapping(); - $localColumn = $this->getTable()->getColumn($lfmap[$colFKName]); - $colFK = $refFK->getTable()->getColumn($colFKName); - $clo = strtolower($localColumn->getName()); - $script .= " - - \$criteria->add(".$fkPeerBuilder->getColumnConstant($colFK).", \$this->$clo); -"; - } // foreach ($fk->getForeignColumns() - $script .= " - if (!isset(\$this->$lastCriteriaName) || !\$this->".$lastCriteriaName."->equals(\$criteria)) { - \$count = ".$fkPeerBuilder->getPeerClassname()."::doCount(\$criteria, false, \$con); - } else { - \$count = count(\$this->$collName); - } - } else { - \$count = count(\$this->$collName); - } - } - return \$count; - } -"; - } // addRefererCount - - /** - * Adds the method that returns the referrer fkey collection. - * @param string &$script The script will be modified in this method. - */ - protected function addRefFKGet(&$script, ForeignKey $refFK) - { - $table = $this->getTable(); - $tblFK = $refFK->getTable(); - - $peerClassname = $this->getStubPeerBuilder()->getClassname(); - $fkPeerBuilder = $this->getNewPeerBuilder($refFK->getTable()); - $relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true); - - $collName = $this->getRefFKCollVarName($refFK); - $lastCriteriaName = $this->getRefFKLastCriteriaVarName($refFK); - - $className = $fkPeerBuilder->getObjectClassname(); - - $script .= " - /** - * Gets an array of $className objects which contain a foreign key that references this object. - * - * If this collection has already been initialized with an identical Criteria, it returns the collection. - * Otherwise if this ".$this->getObjectClassname()." has previously been saved, it will retrieve - * related $relCol from storage. If this ".$this->getObjectClassname()." is new, it will return - * an empty collection or the current collection, the criteria is ignored on a new object. - * - * @param PropelPDO \$con - * @param Criteria \$criteria - * @return array {$className}[] - * @throws PropelException - */ - public function get$relCol(\$criteria = null, PropelPDO \$con = null) - {"; - - $script .= " - if (\$criteria === null) { - \$criteria = new Criteria($peerClassname::DATABASE_NAME); - } - elseif (\$criteria instanceof Criteria) - { - \$criteria = clone \$criteria; - } - - if (\$this->$collName === null) { - if (\$this->isNew()) { - \$this->$collName = array(); - } else { -"; - foreach ($refFK->getLocalColumns() as $colFKName) { - // $colFKName is local to the referring table (i.e. foreign to this table) - $lfmap = $refFK->getLocalForeignMapping(); - $localColumn = $this->getTable()->getColumn($lfmap[$colFKName]); - $colFK = $refFK->getTable()->getColumn($colFKName); - - $clo = strtolower($localColumn->getName()); - - $script .= " - \$criteria->add(".$fkPeerBuilder->getColumnConstant($colFK).", \$this->$clo); -"; - } // end foreach ($fk->getForeignColumns() - - $script .= " - ".$fkPeerBuilder->getPeerClassname()."::addSelectColumns(\$criteria); - \$this->$collName = ".$fkPeerBuilder->getPeerClassname()."::doSelect(\$criteria, \$con); - } - } else { - // criteria has no effect for a new object - if (!\$this->isNew()) { - // the following code is to determine if a new query is - // called for. If the criteria is the same as the last - // one, just return the collection. -"; - foreach ($refFK->getLocalColumns() as $colFKName) { - // $colFKName is local to the referring table (i.e. foreign to this table) - $lfmap = $refFK->getLocalForeignMapping(); - $localColumn = $this->getTable()->getColumn($lfmap[$colFKName]); - $colFK = $refFK->getTable()->getColumn($colFKName); - $clo = strtolower($localColumn->getName()); - $script .= " - - \$criteria->add(".$fkPeerBuilder->getColumnConstant($colFK).", \$this->$clo); -"; - } // foreach ($fk->getForeignColumns() - $script .= " - ".$fkPeerBuilder->getPeerClassname()."::addSelectColumns(\$criteria); - if (!isset(\$this->$lastCriteriaName) || !\$this->".$lastCriteriaName."->equals(\$criteria)) { - \$this->$collName = ".$fkPeerBuilder->getPeerClassname()."::doSelect(\$criteria, \$con); - } - } - } - \$this->$lastCriteriaName = \$criteria; - return \$this->$collName; - } -"; - } // addRefererGet() - - /** - * Adds the method that gets a one-to-one related referrer fkey. - * This is for one-to-one relationship special case. - * @param string &$script The script will be modified in this method. - */ - protected function addPKRefFKGet(&$script, ForeignKey $refFK) - { - $table = $this->getTable(); - $tblFK = $refFK->getTable(); - - $joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable()); - $joinedTablePeerBuilder = $this->getNewObjectBuilder($refFK->getTable()); - $className = $joinedTableObjectBuilder->getObjectClassname(); - - $varName = $this->getPKRefFKVarName($refFK); - - $script .= " - /** - * Gets a single $className object, which is related to this object by a one-to-one relationship. - * - * @param PropelPDO \$con - * @return $className - * @throws PropelException - */ - public function get".$this->getRefFKPhpNameAffix($refFK, $plural = false)."(PropelPDO \$con = null) - { -"; - $script .= " - if (\$this->$varName === null && !\$this->isNew()) {"; - - $lfmap = $refFK->getLocalForeignMapping(); - - // remember: this object represents the foreign table, - // so we need foreign columns of the reffk to know the local columns - // that we need to set :) - - $localcols = $refFK->getForeignColumns(); - - // we know that at least every column in the primary key of the foreign table - // is represented in this foreign key - - $params = array(); - foreach ($tblFK->getPrimaryKey() as $col) { - $localColumn = $table->getColumn($lfmap[$col->getName()]); - $clo = strtolower($localColumn->getName()); - $params[] = "\$this->$clo"; - } - - $script .= " - \$this->$varName = ".$joinedTableObjectBuilder->getPeerClassname()."::retrieveByPK(".implode(", ", $params).", \$con); - } - - return \$this->$varName; - } -"; - } // addPKRefFKGet() - -} // PHP5ObjectBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5PeerBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PHP5PeerBuilder.php deleted file mode 100644 index bcb486b132..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5PeerBuilder.php +++ /dev/null @@ -1,2761 +0,0 @@ - - * @package propel.generator.builder.om - */ -class PHP5PeerBuilder extends PeerBuilder -{ - - /** - * Validates the current table to make sure that it won't - * result in generated code that will not parse. - * - * This method may emit warnings for code which may cause problems - * and will throw exceptions for errors that will definitely cause - * problems. - */ - protected function validateModel() - { - parent::validateModel(); - - $table = $this->getTable(); - - // Check to see if any of the column constants are PHP reserved words. - $colConstants = array(); - - foreach ($table->getColumns() as $col) { - $colConstants[] = $this->getColumnName($col); - } - - $reservedConstants = array_map('strtoupper', ClassTools::getPhpReservedWords()); - - $intersect = array_intersect($reservedConstants, $colConstants); - if (!empty($intersect)) { - throw new EngineException("One or more of your column names for [" . $table->getName() . "] table conflict with a PHP reserved word (" . implode(", ", $intersect) . ")"); - } - } - - /** - * Returns the name of the current class being built. - * @return string - */ - public function getUnprefixedClassname() - { - return $this->getBuildProperty('basePrefix') . $this->getStubPeerBuilder()->getUnprefixedClassname(); - } - - /** - * Gets the package for the [base] peer classes. - * @return string - */ - public function getPackage() - { - return parent::getPackage() . ".om"; - } - - public function getNamespace() - { - if ($namespace = parent::getNamespace()) { - if ($this->getGeneratorConfig() && $omns = $this->getGeneratorConfig()->getBuildProperty('namespaceOm')) { - return $namespace . '\\' . $omns; - } else { - return $namespace; - } - } - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) { - - $tableName = $this->getTable()->getName(); - $tableDesc = $this->getTable()->getDescription(); - - $script .= " -/** - * Base static class for performing query and update operations on the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - - $extendingPeerClass = ''; - $parentClass = $this->getBehaviorContent('parentClass'); - if (null !== $parentClass) { - $extendingPeerClass = ' extends ' . $parentClass; - } elseif ($this->basePeerClassname !== 'BasePeer') { - $extendingPeerClass = ' extends ' . $this->basePeerClassname; - } - - $script .= " - * @package propel.generator.".$this->getPackage()." - */ -abstract class ".$this->getClassname(). $extendingPeerClass . " { -"; - } - - protected function addClassBody(&$script) - { - $this->declareClassFromBuilder($this->getStubPeerBuilder()); - $this->declareClassFromBuilder($this->getStubObjectBuilder()); - parent::addClassBody($script); - $this->declareClasses('Propel', 'PropelException', 'PropelPDO', 'BasePeer', 'Criteria', 'PDO', 'PDOStatement'); - } - - /** - * Closes class. - * Adds closing brace at end of class and the static map builder registration code. - * @param string &$script The script will be modified in this method. - * @see addStaticTableMapRegistration() - */ - protected function addClassClose(&$script) - { - // apply behaviors - $this->applyBehaviorModifier('staticMethods', $script, " "); - - $script .= " -} // " . $this->getClassname() . " -"; - $this->addStaticTableMapRegistration($script); - } - - /** - * Adds the static map builder registration code. - * @param string &$script The script will be modified in this method. - */ - protected function addStaticTableMapRegistration(&$script) - { - $table = $this->getTable(); - - $script .= " -// This is the static code needed to register the TableMap for this table with the main Propel class. -// -".$this->getClassName()."::buildTableMap(); - -"; - $this->applyBehaviorModifier('peerFilter', $script, ""); - } - - public function getTableMapClass() - { - return $this->getTablePhpName() . 'TableMap'; - } - - public function getTablePhpName() - { - return ($this->getTable()->isAbstract() ? '' : $this->getStubObjectBuilder()->getClassname()); - } - - /** - * Adds constant and variable declarations that go at the top of the class. - * @param string &$script The script will be modified in this method. - * @see addColumnNameConstants() - */ - protected function addConstantsAndAttributes(&$script) - { - $dbName = $this->getDatabase()->getName(); - $tableName = $this->getTable()->getName(); - $tablePhpName = $this->getTable()->isAbstract() ? '' : addslashes($this->getStubObjectBuilder()->getFullyQualifiedClassname()); - $script .= " - /** the default database name for this class */ - const DATABASE_NAME = '$dbName'; - - /** the table name for this class */ - const TABLE_NAME = '$tableName'; - - /** the related Propel class for this table */ - const OM_CLASS = '$tablePhpName'; - - /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = '".$this->getStubObjectBuilder()->getClasspath()."'; - - /** the related TableMap class for this table */ - const TM_CLASS = '".$this->getTableMapClass()."'; - - /** The total number of columns. */ - const NUM_COLUMNS = ".$this->getTable()->getNumColumns()."; - - /** The number of lazy-loaded columns. */ - const NUM_LAZY_LOAD_COLUMNS = ".$this->getTable()->getNumLazyLoadColumns()."; -"; - $this->addColumnNameConstants($script); - $this->addInheritanceColumnConstants($script); - - $script .= " - /** - * An identiy map to hold any loaded instances of ".$this->getObjectClassname()." objects. - * This must be public so that other peer classes can access this when hydrating from JOIN - * queries. - * @var array ".$this->getObjectClassname()."[] - */ - public static \$instances = array(); - -"; - - // apply behaviors - $this->applyBehaviorModifier('staticAttributes', $script, " "); - - $this->addFieldNamesAttribute($script); - $this->addFieldKeysAttribute($script); - } - - /** - * Adds the COLUMN_NAME contants to the class definition. - * @param string &$script The script will be modified in this method. - */ - protected function addColumnNameConstants(&$script) - { - foreach ($this->getTable()->getColumns() as $col) { - $script .= " - /** the column name for the ".strtoupper($col->getName()) ." field */ - const ".$this->getColumnName($col) ." = '" . $this->getTable()->getName() . ".".strtoupper($col->getName())."'; -"; - } // foreach - } - - protected function addFieldNamesAttribute(&$script) - { - $table = $this->getTable(); - - $tableColumns = $table->getColumns(); - - $script .= " - /** - * holds an array of fieldnames - * - * first dimension keys are the type constants - * e.g. self::\$fieldNames[self::TYPE_PHPNAME][0] = 'Id' - */ - private static \$fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ("; - foreach ($tableColumns as $col) { - $script .= "'".$col->getPhpName()."', "; - } - $script .= "), - BasePeer::TYPE_STUDLYPHPNAME => array ("; - foreach ($tableColumns as $col) { - $script .= "'".$col->getStudlyPhpName()."', "; - } - $script .= "), - BasePeer::TYPE_COLNAME => array ("; - foreach ($tableColumns as $col) { - $script .= $this->getColumnConstant($col, 'self').", "; - } - $script .= "), - BasePeer::TYPE_RAW_COLNAME => array ("; - foreach ($tableColumns as $col) { - $script .= "'" . $col->getConstantColumnName() . "', "; - } - $script .= "), - BasePeer::TYPE_FIELDNAME => array ("; - foreach ($tableColumns as $col) { - $script .= "'".$col->getName()."', "; - } - $script .= "), - BasePeer::TYPE_NUM => array ("; - foreach ($tableColumns as $num => $col) { - $script .= "$num, "; - } - $script .= ") - ); -"; - } - - protected function addFieldKeysAttribute(&$script) - { - $table = $this->getTable(); - - $tableColumns = $table->getColumns(); - - $script .= " - /** - * holds an array of keys for quick access to the fieldnames array - * - * first dimension keys are the type constants - * e.g. self::\$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 - */ - private static \$fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ("; - foreach ($tableColumns as $num => $col) { - $script .= "'".$col->getPhpName()."' => $num, "; - } - $script .= "), - BasePeer::TYPE_STUDLYPHPNAME => array ("; - foreach ($tableColumns as $num => $col) { - $script .= "'".$col->getStudlyPhpName()."' => $num, "; - } - $script .= "), - BasePeer::TYPE_COLNAME => array ("; - foreach ($tableColumns as $num => $col) { - $script .= $this->getColumnConstant($col, 'self')." => $num, "; - } - $script .= "), - BasePeer::TYPE_RAW_COLNAME => array ("; - foreach ($tableColumns as $num => $col) { - $script .= "'" . $col->getConstantColumnName() . "' => $num, "; - } - $script .= "), - BasePeer::TYPE_FIELDNAME => array ("; - foreach ($tableColumns as $num => $col) { - $script .= "'".$col->getName()."' => $num, "; - } - $script .= "), - BasePeer::TYPE_NUM => array ("; - foreach ($tableColumns as $num => $col) { - $script .= "$num, "; - } - $script .= ") - ); -"; - } // addFielKeysAttribute - - - protected function addGetFieldNames(&$script) - { - $script .= " - /** - * Returns an array of field names. - * - * @param string \$type The type of fieldnames to return: - * One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @return array A list of field names - */ - - static public function getFieldNames(\$type = BasePeer::TYPE_PHPNAME) - { - if (!array_key_exists(\$type, self::\$fieldNames)) { - throw new PropelException('Method getFieldNames() expects the parameter \$type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . \$type . ' was given.'); - } - return self::\$fieldNames[\$type]; - } -"; - - } // addGetFieldNames() - - protected function addTranslateFieldName(&$script) - { - $script .= " - /** - * Translates a fieldname to another type - * - * @param string \$name field name - * @param string \$fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME - * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM - * @param string \$toType One of the class type constants - * @return string translated name of the field. - * @throws PropelException - if the specified name could not be found in the fieldname mappings. - */ - static public function translateFieldName(\$name, \$fromType, \$toType) - { - \$toNames = self::getFieldNames(\$toType); - \$key = isset(self::\$fieldKeys[\$fromType][\$name]) ? self::\$fieldKeys[\$fromType][\$name] : null; - if (\$key === null) { - throw new PropelException(\"'\$name' could not be found in the field names of type '\$fromType'. These are: \" . print_r(self::\$fieldKeys[\$fromType], true)); - } - return \$toNames[\$key]; - } -"; - } // addTranslateFieldName() - - /** - * Adds the buildTableMap() method. - * @param string &$script The script will be modified in this method. - */ - protected function addBuildTableMap(&$script) - { - $this->declareClassFromBuilder($this->getTableMapBuilder()); - $script .= " - /** - * Add a TableMap instance to the database for this peer class. - */ - public static function buildTableMap() - { - \$dbMap = Propel::getDatabaseMap(".$this->getClassname()."::DATABASE_NAME); - if (!\$dbMap->hasTable(".$this->getClassname()."::TABLE_NAME)) - { - \$dbMap->addTableObject(new ".$this->getTableMapClass()."()); - } - } -"; - } - - /** - * Adds the CLASSKEY_* and CLASSNAME_* constants used for inheritance. - * @param string &$script The script will be modified in this method. - */ - public function addInheritanceColumnConstants(&$script) - { - if ($this->getTable()->getChildrenColumn()) { - - $col = $this->getTable()->getChildrenColumn(); - $cfc = $col->getPhpName(); - - if ($col->isEnumeratedClasses()) { - - if ($col->isPhpPrimitiveNumericType()) $quote = ""; - else $quote = '"'; - - foreach ($col->getChildren() as $child) { - $childBuilder = $this->getMultiExtendObjectBuilder(); - $childBuilder->setChild($child); - - $script .= " - /** A key representing a particular subclass */ - const CLASSKEY_".strtoupper($child->getKey())." = '" . $child->getKey() . "'; -"; - - if (strtoupper($child->getClassname()) != strtoupper($child->getKey())) { - $script .= " - /** A key representing a particular subclass */ - const CLASSKEY_".strtoupper($child->getClassname())." = '" . $child->getKey() . "'; -"; - } - - $script .= " - /** A class that can be returned by this peer. */ - const CLASSNAME_".strtoupper($child->getKey())." = '". $childBuilder->getClasspath() . "'; -"; - } /* foreach children */ - } /* if col->isenumerated...() */ - } /* if table->getchildrencolumn() */ - - } // - - /** - * Adds the alias() utility method. - * @param string &$script The script will be modified in this method. - */ - protected function addAlias(&$script) - { - $script .= " - /** - * Convenience method which changes table.column to alias.column. - * - * Using this method you can maintain SQL abstraction while using column aliases. - * - * \$c->addAlias(\"alias1\", TablePeer::TABLE_NAME); - * \$c->addJoin(TablePeer::alias(\"alias1\", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); - * - * @param string \$alias The alias for the current table. - * @param string \$column The column name for current table. (i.e. ".$this->getPeerClassname()."::COLUMN_NAME). - * @return string - */ - public static function alias(\$alias, \$column) - { - return str_replace(".$this->getPeerClassname()."::TABLE_NAME.'.', \$alias.'.', \$column); - } -"; - } // addAliasMethod - - /** - * Adds the addSelectColumns() method. - * @param string &$script The script will be modified in this method. - */ - protected function addAddSelectColumns(&$script) - { - $script .= " - /** - * Add all the columns needed to create a new object. - * - * Note: any columns that were marked with lazyLoad=\"true\" in the - * XML schema will not be added to the select list and only loaded - * on demand. - * - * @param Criteria \$criteria object containing the columns to add. - * @param string \$alias optional table alias - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function addSelectColumns(Criteria \$criteria, \$alias = null) - { - if (null === \$alias) {"; - foreach ($this->getTable()->getColumns() as $col) { - if (!$col->isLazyLoad()) { - $script .= " - \$criteria->addSelectColumn(".$this->getPeerClassname()."::".$this->getColumnName($col).");"; - } // if !col->isLazyLoad - } // foreach - $script .= " - } else {"; - foreach ($this->getTable()->getColumns() as $col) { - if (!$col->isLazyLoad()) { - $script .= " - \$criteria->addSelectColumn(\$alias . '." . $col->getConstantColumnName()."');"; - } // if !col->isLazyLoad - } // foreach - $script .= " - }"; - $script .=" - } -"; - } // addAddSelectColumns() - - /** - * Adds the doCount() method. - * @param string &$script The script will be modified in this method. - */ - protected function addDoCount(&$script) - { - $script .= " - /** - * Returns the number of rows matching criteria. - * - * @param Criteria \$criteria - * @param boolean \$distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO \$con - * @return int Number of matching rows. - */ - public static function doCount(Criteria \$criteria, \$distinct = false, PropelPDO \$con = null) - { - // we may modify criteria, so copy it first - \$criteria = clone \$criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - \$criteria->setPrimaryTableName(".$this->getPeerClassname()."::TABLE_NAME); - - if (\$distinct && !in_array(Criteria::DISTINCT, \$criteria->getSelectModifiers())) { - \$criteria->setDistinct(); - } - - if (!\$criteria->hasSelectClause()) { - ".$this->getPeerClassname()."::addSelectColumns(\$criteria); - } - - \$criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - \$criteria->setDbName(self::DATABASE_NAME); // Set the correct dbName - - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_READ); - }"; - - // apply behaviors - $this->applyBehaviorModifier('preSelect', $script); - - $script .= " - // BasePeer returns a PDOStatement - \$stmt = ".$this->basePeerClassname."::doCount(\$criteria, \$con); - - if (\$row = \$stmt->fetch(PDO::FETCH_NUM)) { - \$count = (int) \$row[0]; - } else { - \$count = 0; // no rows returned; we infer that means 0 matches. - } - \$stmt->closeCursor(); - return \$count; - }"; - } - - /** - * Adds the doSelectOne() method. - * @param string &$script The script will be modified in this method. - */ - protected function addDoSelectOne(&$script) - { - $script .= " - /** - * Method to select one object from the DB. - * - * @param Criteria \$criteria object used to create the SELECT statement. - * @param PropelPDO \$con - * @return ".$this->getObjectClassname()." - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectOne(Criteria \$criteria, PropelPDO \$con = null) - { - \$critcopy = clone \$criteria; - \$critcopy->setLimit(1); - \$objects = ".$this->getPeerClassname()."::doSelect(\$critcopy, \$con); - if (\$objects) { - return \$objects[0]; - } - return null; - }"; - } - - /** - * Adds the doSelect() method. - * @param string &$script The script will be modified in this method. - */ - protected function addDoSelect(&$script) - { - $script .= " - /** - * Method to do selects. - * - * @param Criteria \$criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO \$con - * @return array Array of selected Objects - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelect(Criteria \$criteria, PropelPDO \$con = null) - { - return ".$this->getPeerClassname()."::populateObjects(".$this->getPeerClassname()."::doSelectStmt(\$criteria, \$con)); - }"; - } - - /** - * Adds the doSelectStmt() method. - * @param string &$script The script will be modified in this method. - */ - protected function addDoSelectStmt(&$script) - { - - $script .= " - /** - * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. - * - * Use this method directly if you want to work with an executed statement durirectly (for example - * to perform your own object hydration). - * - * @param Criteria \$criteria The Criteria object used to build the SELECT statement. - * @param PropelPDO \$con The connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return PDOStatement The executed PDOStatement object. - * @see ".$this->basePeerClassname."::doSelect() - */ - public static function doSelectStmt(Criteria \$criteria, PropelPDO \$con = null) - { - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_READ); - } - - if (!\$criteria->hasSelectClause()) { - \$criteria = clone \$criteria; - ".$this->getPeerClassname()."::addSelectColumns(\$criteria); - } - - // Set the correct dbName - \$criteria->setDbName(self::DATABASE_NAME);"; - // apply behaviors - if ($this->hasBehaviorModifier('preSelect')) - { - $this->applyBehaviorModifier('preSelect', $script); - } - $script .= " - - // BasePeer returns a PDOStatement - return ".$this->basePeerClassname."::doSelect(\$criteria, \$con); - }"; - } - - /** - * Adds the PHP code to return a instance pool key for the passed-in primary key variable names. - * - * @param array $pkphp An array of PHP var names / method calls representing complete pk. - */ - public function getInstancePoolKeySnippet($pkphp) - { - $pkphp = (array) $pkphp; // make it an array if it is not. - $script = ""; - if (count($pkphp) > 1) { - $script .= "serialize(array("; - $i = 0; - foreach ($pkphp as $pkvar) { - $script .= ($i++ ? ', ' : '') . "(string) $pkvar"; - } - $script .= "))"; - } else { - $script .= "(string) " . $pkphp[0]; - } - return $script; - } - - /** - * Creates a convenience method to add objects to an instance pool. - * @param string &$script The script will be modified in this method. - */ - protected function addAddInstanceToPool(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Adds an object to the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doSelect*() - * methods in your stub classes -- you may need to explicitly add objects - * to the cache in order to ensure that the same objects are always returned by doSelect*() - * and retrieveByPK*() calls. - * - * @param ".$this->getObjectClassname()." \$value A ".$this->getObjectClassname()." object. - * @param string \$key (optional) key to use for instance map (for performance boost if key was already calculated externally). - */ - public static function addInstanceToPool(".$this->getObjectClassname()." \$obj, \$key = null) - { - if (Propel::isInstancePoolingEnabled()) { - if (\$key === null) {"; - - $pks = $this->getTable()->getPrimaryKey(); - - $php = array(); - foreach ($pks as $pk) { - $php[] = '$obj->get' . $pk->getPhpName() . '()'; - } - $script .= " - \$key = ".$this->getInstancePoolKeySnippet($php).";"; - $script .= " - } // if key === null - self::\$instances[\$key] = \$obj; - } - } -"; - } // addAddInstanceToPool() - - /** - * Creates a convenience method to remove objects form an instance pool. - * @param string &$script The script will be modified in this method. - */ - protected function addRemoveInstanceFromPool(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Removes an object from the instance pool. - * - * Propel keeps cached copies of objects in an instance pool when they are retrieved - * from the database. In some cases -- especially when you override doDelete - * methods in your stub classes -- you may need to explicitly remove objects - * from the cache in order to prevent returning objects that no longer exist. - * - * @param mixed \$value A ".$this->getObjectClassname()." object or a primary key value. - */ - public static function removeInstanceFromPool(\$value) - {"; - $script .= " - if (Propel::isInstancePoolingEnabled() && \$value !== null) {"; - $pks = $table->getPrimaryKey(); - - $script .= " - if (is_object(\$value) && \$value instanceof ".$this->getObjectClassname().") {"; - - $php = array(); - foreach ($pks as $pk) { - $php[] = '$value->get' . $pk->getPhpName() . '()'; - } - $script .= " - \$key = ".$this->getInstancePoolKeySnippet($php).";"; - - $script .= " - } elseif (".(count($pks) > 1 ? "is_array(\$value) && count(\$value) === " . count($pks) : "is_scalar(\$value)").") { - // assume we've been passed a primary key"; - - if (count($pks) > 1) { - $php = array(); - for ($i=0; $i < count($pks); $i++) { - $php[] = "\$value[$i]"; - } - } else { - $php = '$value'; - } - $script .= " - \$key = ".$this->getInstancePoolKeySnippet($php).";"; - $script .= " - } else { - \$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or ".$this->getObjectClassname()." object; got \" . (is_object(\$value) ? get_class(\$value) . ' object.' : var_export(\$value,true))); - throw \$e; - } - - unset(self::\$instances[\$key]); - } - } // removeInstanceFromPool() -"; - } // addRemoveFromInstancePool() - - /** - * Adds method to clear the instance pool. - * @param string &$script The script will be modified in this method. - */ - protected function addClearInstancePool(&$script) - { - $script .= " - /** - * Clear the instance pool. - * - * @return void - */ - public static function clearInstancePool() - { - self::\$instances = array(); - } - "; - } - - /** - * Adds method to clear the instance pool of related tables. - * @param string &$script The script will be modified in this method. - */ - protected function addClearRelatedInstancePool(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Method to invalidate the instance pool of all tables related to " . $table->getName() . " - * by a foreign key with ON DELETE CASCADE - */ - public static function clearRelatedInstancePool() - {"; - // Handle ON DELETE CASCADE for updating instance pool - - foreach ($table->getReferrers() as $fk) { - - // $fk is the foreign key in the other table, so localTableName will - // actually be the table name of other table - $tblFK = $fk->getTable(); - - $joinedTablePeerBuilder = $this->getNewStubPeerBuilder($tblFK); - $this->declareClassFromBuilder($joinedTablePeerBuilder); - $tblFKPackage = $joinedTablePeerBuilder->getStubPeerBuilder()->getPackage(); - - if (!$tblFK->isForReferenceOnly()) { - // we can't perform operations on tables that are - // not within the schema (i.e. that we have no map for, etc.) - - if ($fk->getOnDelete() == ForeignKey::CASCADE || $fk->getOnDelete() == ForeignKey::SETNULL) { - $script .= " - // Invalidate objects in ".$joinedTablePeerBuilder->getClassname()." instance pool, - // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - ".$joinedTablePeerBuilder->getClassname()."::clearInstancePool();"; - } // if fk is on delete cascade - } // if (! for ref only) - } // foreach - $script .= " - } -"; - } - - /** - * Adds method to get an the instance from the pool, given a key. - * @param string &$script The script will be modified in this method. - */ - protected function addGetInstanceFromPool(&$script) - { - $script .= " - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param string \$key The key (@see getPrimaryKeyHash()) for this instance. - * @return ".$this->getObjectClassname()." Found object or NULL if 1) no instance exists for specified key or 2) instance pooling has been disabled. - * @see getPrimaryKeyHash() - */ - public static function getInstanceFromPool(\$key) - { - if (Propel::isInstancePoolingEnabled()) { - if (isset(self::\$instances[\$key])) { - return self::\$instances[\$key]; - } - } - return null; // just to be explicit - } - "; - } - - /** - * Adds method to get a version of the primary key that can be used as a unique key for identifier map. - * @param string &$script The script will be modified in this method. - */ - protected function addGetPrimaryKeyHash(&$script) - { - $script .= " - /** - * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. - * - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, a serialize()d version of the primary key will be returned. - * - * @param array \$row PropelPDO resultset row. - * @param int \$startcol The 0-based offset for reading from the resultset row. - * @return string A string version of PK or NULL if the components of primary key in result array are all null. - */ - public static function getPrimaryKeyHashFromRow(\$row, \$startcol = 0) - {"; - - // We have to iterate through all the columns so that we know the offset of the primary - // key columns. - $n = 0; - $pk = array(); - $cond = array(); - foreach ($this->getTable()->getColumns() as $col) { - if (!$col->isLazyLoad()) { - if ($col->isPrimaryKey()) { - $part = $n ? "\$row[\$startcol + $n]" : "\$row[\$startcol]"; - $cond[] = $part . " === null"; - $pk[] = $part; - } - $n++; - } - } - - $script .= " - // If the PK cannot be derived from the row, return NULL. - if (".implode(' && ', $cond).") { - return null; - } - return ".$this->getInstancePoolKeySnippet($pk)."; - } -"; - } // addGetPrimaryKeyHash - - /** - * Adds method to get the primary key from a row - * @param string &$script The script will be modified in this method. - */ - protected function addGetPrimaryKeyFromRow(&$script) - { - $script .= " - /** - * Retrieves the primary key from the DB resultset row - * For tables with a single-column primary key, that simple pkey value will be returned. For tables with - * a multi-column primary key, an array of the primary key columns will be returned. - * - * @param array \$row PropelPDO resultset row. - * @param int \$startcol The 0-based offset for reading from the resultset row. - * @return mixed The primary key of the row - */ - public static function getPrimaryKeyFromRow(\$row, \$startcol = 0) - {"; - - // We have to iterate through all the columns so that we know the offset of the primary - // key columns. - $table = $this->getTable(); - $n = 0; - $pks = array(); - foreach ($table->getColumns() as $col) { - if (!$col->isLazyLoad()) { - if ($col->isPrimaryKey()) { - $pk = '(' . $col->getPhpType() . ') ' . ($n ? "\$row[\$startcol + $n]" : "\$row[\$startcol]"); - if ($table->hasCompositePrimaryKey()) { - $pks[] = $pk; - } - } - $n++; - } - } - if ($table->hasCompositePrimaryKey()) { - $script .= " - return array(" . implode($pks, ', '). ");"; - } else { - $script .= " - return " . $pk . ";"; - } - $script .= " - } - "; - } // addGetPrimaryKeyFromRow - - /** - * Adds the populateObjects() method. - * @param string &$script The script will be modified in this method. - */ - protected function addPopulateObjects(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * The returned array will contain objects of the default type or - * objects that inherit from the default. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function populateObjects(PDOStatement \$stmt) - { - \$results = array(); - "; - if (!$table->getChildrenColumn()) { - $script .= " - // set the class once to avoid overhead in the loop - \$cls = ".$this->getPeerClassname()."::getOMClass(false);"; - } - - $script .= " - // populate the object(s) - while (\$row = \$stmt->fetch(PDO::FETCH_NUM)) { - \$key = ".$this->getPeerClassname()."::getPrimaryKeyHashFromRow(\$row, 0); - if (null !== (\$obj = ".$this->getPeerClassname()."::getInstanceFromPool(\$key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // \$obj->hydrate(\$row, 0, true); // rehydrate - \$results[] = \$obj; - } else {"; - if ($table->getChildrenColumn()) { - $script .= " - // class must be set each time from the record row - \$cls = ".$this->getPeerClassname()."::getOMClass(\$row, 0); - \$cls = substr('.'.\$cls, strrpos('.'.\$cls, '.') + 1); - " . $this->buildObjectInstanceCreationCode('$obj', '$cls') . " - \$obj->hydrate(\$row); - \$results[] = \$obj; - ".$this->getPeerClassname()."::addInstanceToPool(\$obj, \$key);"; - } else { - $script .= " - " . $this->buildObjectInstanceCreationCode('$obj', '$cls') . " - \$obj->hydrate(\$row); - \$results[] = \$obj; - ".$this->getPeerClassname()."::addInstanceToPool(\$obj, \$key);"; - } - $script .= " - } // if key exists - } - \$stmt->closeCursor(); - return \$results; - }"; - } - - /** - * Adds the populateObject() method. - * @param string &$script The script will be modified in this method. - */ - protected function addPopulateObject(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Populates an object of the default type or an object that inherit from the default. - * - * @param array \$row PropelPDO resultset row. - * @param int \$startcol The 0-based offset for reading from the resultset row. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - * @return array (" . $this->getStubObjectBuilder()->getClassName(). " object, last column rank) - */ - public static function populateObject(\$row, \$startcol = 0) - { - \$key = ".$this->getPeerClassname()."::getPrimaryKeyHashFromRow(\$row, \$startcol); - if (null !== (\$obj = ".$this->getPeerClassname()."::getInstanceFromPool(\$key))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // \$obj->hydrate(\$row, \$startcol, true); // rehydrate - \$col = \$startcol + " . $this->getPeerClassname() . "::NUM_COLUMNS;"; - if ($table->isAbstract()) { - $script .= " - } elseif (null == \$key) { - // empty resultset, probably from a left join - // since this table is abstract, we can't hydrate an empty object - \$obj = null; - \$col = \$startcol + " . $this->getPeerClassname() . "::NUM_COLUMNS;"; - } - $script .= " - } else {"; - if (!$table->getChildrenColumn()) { - $script .= " - \$cls = ".$this->getPeerClassname()."::OM_CLASS;"; - } else { - $script .= " - \$cls = ".$this->getPeerClassname()."::getOMClass(\$row, \$startcol, false);"; - } - $script .= " - \$obj = new \$cls(); - \$col = \$obj->hydrate(\$row, \$startcol); - " . $this->getPeerClassname() . "::addInstanceToPool(\$obj, \$key); - } - return array(\$obj, \$col); - }"; - } - - /** - * Adds a getOMClass() for non-abstract tables that have inheritance. - * @param string &$script The script will be modified in this method. - */ - protected function addGetOMClass_Inheritance(&$script) - { - $col = $this->getTable()->getChildrenColumn(); - $script .= " - /** - * The returned Class will contain objects of the default type or - * objects that inherit from the default. - * - * @param array \$row PropelPDO result row. - * @param int \$colnum Column to examine for OM class information (first is 0). - * @param boolean \$withPrefix Whether or not to return the path with the class name - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getOMClass(\$row, \$colnum, \$withPrefix = true) - { - try { -"; - if ($col->isEnumeratedClasses()) { - $script .= " - \$omClass = null; - \$classKey = \$row[\$colnum + " . ($col->getPosition() - 1) . "]; - - switch(\$classKey) { -"; - foreach ($col->getChildren() as $child) { - $script .= " - case self::CLASSKEY_".strtoupper($child->getKey()).": - \$omClass = self::CLASSNAME_".strtoupper($child->getKey())."; - break; -"; - } /* foreach */ - $script .= " - default: - \$omClass = self::CLASS_DEFAULT; -"; - $script .= " - } // switch - if (!\$withPrefix) { - \$omClass = substr('.'.\$omClass, strrpos('.'.\$omClass, '.') + 1); - } -"; - } else { /* if not enumerated */ - $script .= " - \$omClass = \$row[\$colnum + ".($col->getPosition()-1)."]; - \$omClass = substr('.'.\$omClass, strrpos('.'.\$omClass, '.') + 1); -"; - } - $script .= " - } catch (Exception \$e) { - throw new PropelException('Unable to get OM class.', \$e); - } - return \$omClass; - } -"; - } - - /** - * Adds a getOMClass() for non-abstract tables that do note use inheritance. - * @param string &$script The script will be modified in this method. - */ - protected function addGetOMClass_NoInheritance(&$script) - { - $script .= " - /** - * The class that the Peer will make instances of. - * - * If \$withPrefix is true, the returned path - * uses a dot-path notation which is tranalted into a path - * relative to a location on the PHP include_path. - * (e.g. path.to.MyClass -> 'path/to/MyClass.php') - * - * @param boolean \$withPrefix Whether or not to return the path with the class name - * @return string path.to.ClassName - */ - public static function getOMClass(\$withPrefix = true) - { - return \$withPrefix ? ".$this->getPeerClassname()."::CLASS_DEFAULT : ".$this->getPeerClassname()."::OM_CLASS; - } -"; - } - - /** - * Adds a getOMClass() signature for abstract tables that do not have inheritance. - * @param string &$script The script will be modified in this method. - */ - protected function addGetOMClass_NoInheritance_Abstract(&$script) - { - $script .= " - /** - * The class that the Peer will make instances of. - * - * This method must be overridden by the stub subclass, because - * ".$this->getObjectClassname()." is declared abstract in the schema. - */ - abstract public static function getOMClass(\$withPrefix = true); -"; - } - - /** - * Adds the doInsert() method. - * @param string &$script The script will be modified in this method. - */ - protected function addDoInsert(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Method perform an INSERT on the database, given a ".$this->getObjectClassname()." or Criteria object. - * - * @param mixed \$values Criteria or ".$this->getObjectClassname()." object containing data that is used to create the INSERT statement. - * @param PropelPDO \$con the PropelPDO connection to use - * @return mixed The new primary key. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doInsert(\$values, PropelPDO \$con = null) - { - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if (\$values instanceof Criteria) { - \$criteria = clone \$values; // rename for clarity - } else { - \$criteria = \$values->buildCriteria(); // build Criteria from ".$this->getObjectClassname()." object - } -"; - - foreach ($table->getColumns() as $col) { - $cfc = $col->getPhpName(); - if ($col->isPrimaryKey() && $col->isAutoIncrement() && $table->getIdMethod() != "none" && !$table->isAllowPkInsert()) { - $script .= " - if (\$criteria->containsKey(".$this->getColumnConstant($col).") && \$criteria->keyContainsValue(" . $this->getColumnConstant($col) . ") ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.".$this->getColumnConstant($col).".')'); - } -"; - if (!$this->getPlatform()->supportsInsertNullPk()) - { - $script .= " - // remove pkey col since this table uses auto-increment and passing a null value for it is not valid - \$criteria->remove(".$this->getColumnConstant($col)."); -"; - } - } elseif ($col->isPrimaryKey() && $col->isAutoIncrement() && $table->getIdMethod() != "none" && $table->isAllowPkInsert() && !$this->getPlatform()->supportsInsertNullPk()) { - $script .= " - // remove pkey col if it is null since this table does not accept that - if (\$criteria->containsKey(".$this->getColumnConstant($col).") && !\$criteria->keyContainsValue(" . $this->getColumnConstant($col) . ") ) { - \$criteria->remove(".$this->getColumnConstant($col)."); - } -"; - } - } - $script .= " - - // Set the correct dbName - \$criteria->setDbName(self::DATABASE_NAME); - - try { - // use transaction because \$criteria could contain info - // for more than one table (I guess, conceivably) - \$con->beginTransaction(); - \$pk = ".$this->basePeerClassname."::doInsert(\$criteria, \$con); - \$con->commit(); - } catch(PropelException \$e) { - \$con->rollBack(); - throw \$e; - } - - return \$pk; - } -"; - } - - /** - * Adds the doUpdate() method. - * @param string &$script The script will be modified in this method. - */ - protected function addDoUpdate(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Method perform an UPDATE on the database, given a ".$this->getObjectClassname()." or Criteria object. - * - * @param mixed \$values Criteria or ".$this->getObjectClassname()." object containing data that is used to create the UPDATE statement. - * @param PropelPDO \$con The connection to use (specify PropelPDO connection object to exert more control over transactions). - * @return int The number of affected rows (if supported by underlying database driver). - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doUpdate(\$values, PropelPDO \$con = null) - { - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - \$selectCriteria = new Criteria(self::DATABASE_NAME); - - if (\$values instanceof Criteria) { - \$criteria = clone \$values; // rename for clarity -"; - foreach ($table->getColumns() as $col) { - if ($col->isPrimaryKey()) { - $script .= " - \$comparison = \$criteria->getComparison(".$this->getColumnConstant($col)."); - \$value = \$criteria->remove(".$this->getColumnConstant($col)."); - if (\$value) { - \$selectCriteria->add(".$this->getColumnConstant($col).", \$value, \$comparison); - } else { - \$selectCriteria->setPrimaryTableName(".$this->getPeerClassname()."::TABLE_NAME); - } -"; - } /* if col is prim key */ - } /* foreach */ - - $script .= " - } else { // \$values is ".$this->getObjectClassname()." object - \$criteria = \$values->buildCriteria(); // gets full criteria - \$selectCriteria = \$values->buildPkeyCriteria(); // gets criteria w/ primary key(s) - } - - // set the correct dbName - \$criteria->setDbName(self::DATABASE_NAME); - - return {$this->basePeerClassname}::doUpdate(\$selectCriteria, \$criteria, \$con); - } -"; - } - - /** - * Adds the doDeleteAll() method. - * @param string &$script The script will be modified in this method. - */ - protected function addDoDeleteAll(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Method to DELETE all rows from the ".$table->getName()." table. - * - * @return int The number of affected rows (if supported by underlying database driver). - */ - public static function doDeleteAll(\$con = null) - { - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - \$affectedRows = 0; // initialize var to track total num of affected rows - try { - // use transaction because \$criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - \$con->beginTransaction(); - "; - if ($this->isDeleteCascadeEmulationNeeded()) { - $script .="\$affectedRows += ".$this->getPeerClassname()."::doOnDeleteCascade(new Criteria(".$this->getPeerClassname()."::DATABASE_NAME), \$con); - "; - } - if ($this->isDeleteSetNullEmulationNeeded()) { - $script .= $this->getPeerClassname() . "::doOnDeleteSetNull(new Criteria(".$this->getPeerClassname() . "::DATABASE_NAME), \$con); - "; - } - $script .= "\$affectedRows += {$this->basePeerClassname}::doDeleteAll(".$this->getPeerClassname()."::TABLE_NAME, \$con, ".$this->getPeerClassname()."::DATABASE_NAME); - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - ".$this->getPeerClassname()."::clearInstancePool(); - ".$this->getPeerClassname()."::clearRelatedInstancePool(); - \$con->commit(); - return \$affectedRows; - } catch (PropelException \$e) { - \$con->rollBack(); - throw \$e; - } - } -"; - } - - /** - * Adds the doDelete() method. - * @param string &$script The script will be modified in this method. - */ - protected function addDoDelete(&$script) - { - $table = $this->getTable(); - $emulateCascade = $this->isDeleteCascadeEmulationNeeded() || $this->isDeleteSetNullEmulationNeeded(); - $script .= " - /** - * Method perform a DELETE on the database, given a ".$this->getObjectClassname()." or Criteria object OR a primary key value. - * - * @param mixed \$values Criteria or ".$this->getObjectClassname()." object or primary key or array of primary keys - * which is used to create the DELETE statement - * @param PropelPDO \$con the connection to use - * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows - * if supported by native driver or if emulated using Propel. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doDelete(\$values, PropelPDO \$con = null) - { - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_WRITE); - } - - if (\$values instanceof Criteria) {"; - if (!$emulateCascade) { - $script .= " - // invalidate the cache for all objects of this type, since we have no - // way of knowing (without running a query) what objects should be invalidated - // from the cache based on this Criteria. - ".$this->getPeerClassname()."::clearInstancePool();"; - } - $script .= " - // rename for clarity - \$criteria = clone \$values; - } elseif (\$values instanceof ".$this->getObjectClassname().") { // it's a model object"; - if (!$emulateCascade) { - $script .= " - // invalidate the cache for this single object - ".$this->getPeerClassname()."::removeInstanceFromPool(\$values);"; - } - if (count($table->getPrimaryKey()) > 0) { - $script .= " - // create criteria based on pk values - \$criteria = \$values->buildPkeyCriteria();"; - } else { - $script .= " - // create criteria based on pk value - \$criteria = \$values->buildCriteria();"; - } - - $script .= " - } else { // it's a primary key, or an array of pks"; - $script .= " - \$criteria = new Criteria(self::DATABASE_NAME);"; - - if (count($table->getPrimaryKey()) === 1) { - $pkey = $table->getPrimaryKey(); - $col = array_shift($pkey); - $script .= " - \$criteria->add(".$this->getColumnConstant($col).", (array) \$values, Criteria::IN);"; - if (!$emulateCascade) { - $script .= " - // invalidate the cache for this object(s) - foreach ((array) \$values as \$singleval) { - ".$this->getPeerClassname()."::removeInstanceFromPool(\$singleval); - }"; - } - } else { - $script .= " - // primary key is composite; we therefore, expect - // the primary key passed to be an array of pkey values - if (count(\$values) == count(\$values, COUNT_RECURSIVE)) { - // array is not multi-dimensional - \$values = array(\$values); - } - foreach (\$values as \$value) {"; - $i=0; - foreach ($table->getPrimaryKey() as $col) { - if ($i == 0) { - $script .= " - \$criterion = \$criteria->getNewCriterion(".$this->getColumnConstant($col).", \$value[$i]);"; - } else { - $script .= " - \$criterion->addAnd(\$criteria->getNewCriterion(".$this->getColumnConstant($col).", \$value[$i]));"; - } - $i++; - } - $script .= " - \$criteria->addOr(\$criterion);"; - if (!$emulateCascade) { - $script .= " - // we can invalidate the cache for this single PK - ".$this->getPeerClassname()."::removeInstanceFromPool(\$value);"; - } - $script .= " - }"; - } /* if count(table->getPrimaryKeys()) */ - - $script .= " - } - - // Set the correct dbName - \$criteria->setDbName(self::DATABASE_NAME); - - \$affectedRows = 0; // initialize var to track total num of affected rows - - try { - // use transaction because \$criteria could contain info - // for more than one table or we could emulating ON DELETE CASCADE, etc. - \$con->beginTransaction(); - "; - - if ($this->isDeleteCascadeEmulationNeeded()) { - $script .= " - // cloning the Criteria in case it's modified by doSelect() or doSelectStmt() - \$c = clone \$criteria; - \$affectedRows += ".$this->getPeerClassname()."::doOnDeleteCascade(\$c, \$con); - "; - } - if ($this->isDeleteSetNullEmulationNeeded()) { - $script .= " - // cloning the Criteria in case it's modified by doSelect() or doSelectStmt() - \$c = clone \$criteria; - " . $this->getPeerClassname() . "::doOnDeleteSetNull(\$c, \$con); - "; - } - - if ($emulateCascade) { - $script .= " - // Because this db requires some delete cascade/set null emulation, we have to - // clear the cached instance *after* the emulation has happened (since - // instances get re-added by the select statement contained therein). - if (\$values instanceof Criteria) { - ".$this->getPeerClassname()."::clearInstancePool(); - } elseif (\$values instanceof ".$this->getObjectClassname().") { // it's a model object - ".$this->getPeerClassname()."::removeInstanceFromPool(\$values); - } else { // it's a primary key, or an array of pks - foreach ((array) \$values as \$singleval) { - ".$this->getPeerClassname()."::removeInstanceFromPool(\$singleval); - } - } - "; - } - - $script .= " - \$affectedRows += {$this->basePeerClassname}::doDelete(\$criteria, \$con); - ".$this->getPeerClassname()."::clearRelatedInstancePool(); - \$con->commit(); - return \$affectedRows; - } catch (PropelException \$e) { - \$con->rollBack(); - throw \$e; - } - } -"; - } - - /** - * Adds the doOnDeleteCascade() method, which provides ON DELETE CASCADE emulation. - * @param string &$script The script will be modified in this method. - */ - protected function addDoOnDeleteCascade(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * This is a method for emulating ON DELETE CASCADE for DBs that don't support this - * feature (like MySQL or SQLite). - * - * This method is not very speedy because it must perform a query first to get - * the implicated records and then perform the deletes by calling those Peer classes. - * - * This method should be used within a transaction if possible. - * - * @param Criteria \$criteria - * @param PropelPDO \$con - * @return int The number of affected rows (if supported by underlying database driver). - */ - protected static function doOnDeleteCascade(Criteria \$criteria, PropelPDO \$con) - { - // initialize var to track total num of affected rows - \$affectedRows = 0; - - // first find the objects that are implicated by the \$criteria - \$objects = ".$this->getPeerClassname()."::doSelect(\$criteria, \$con); - foreach (\$objects as \$obj) { -"; - - foreach ($table->getReferrers() as $fk) { - - // $fk is the foreign key in the other table, so localTableName will - // actually be the table name of other table - $tblFK = $fk->getTable(); - - $joinedTablePeerBuilder = $this->getNewPeerBuilder($tblFK); - $tblFKPackage = $joinedTablePeerBuilder->getStubPeerBuilder()->getPackage(); - - if (!$tblFK->isForReferenceOnly()) { - // we can't perform operations on tables that are - // not within the schema (i.e. that we have no map for, etc.) - - $fkClassName = $joinedTablePeerBuilder->getObjectClassname(); - - if ($fk->getOnDelete() == ForeignKey::CASCADE) { - - // backwards on purpose - $columnNamesF = $fk->getLocalColumns(); - $columnNamesL = $fk->getForeignColumns(); - - $script .= " - - // delete related $fkClassName objects - \$criteria = new Criteria(".$joinedTablePeerBuilder->getPeerClassname()."::DATABASE_NAME); - "; - for ($x=0,$xlen=count($columnNamesF); $x < $xlen; $x++) { - $columnFK = $tblFK->getColumn($columnNamesF[$x]); - $columnL = $table->getColumn($columnNamesL[$x]); - - $script .= " - \$criteria->add(".$joinedTablePeerBuilder->getColumnConstant($columnFK) .", \$obj->get".$columnL->getPhpName()."());"; - } - - $script .= " - \$affectedRows += ".$joinedTablePeerBuilder->getPeerClassname()."::doDelete(\$criteria, \$con);"; - - } // if cascade && fkey table name != curr table name - - } // if not for ref only - } // foreach foreign keys - $script .= " - } - return \$affectedRows; - } -"; - } // end addDoOnDeleteCascade - - /** - * Adds the doOnDeleteSetNull() method, which provides ON DELETE SET NULL emulation. - * @param string &$script The script will be modified in this method. - */ - protected function addDoOnDeleteSetNull(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * This is a method for emulating ON DELETE SET NULL DBs that don't support this - * feature (like MySQL or SQLite). - * - * This method is not very speedy because it must perform a query first to get - * the implicated records and then perform the deletes by calling those Peer classes. - * - * This method should be used within a transaction if possible. - * - * @param Criteria \$criteria - * @param PropelPDO \$con - * @return void - */ - protected static function doOnDeleteSetNull(Criteria \$criteria, PropelPDO \$con) - { - - // first find the objects that are implicated by the \$criteria - \$objects = ".$this->getPeerClassname()."::doSelect(\$criteria, \$con); - foreach (\$objects as \$obj) { -"; - - // This logic is almost exactly the same as that in doOnDeleteCascade() - // it may make sense to refactor this, provided that thigns don't - // get too complicated. - - foreach ($table->getReferrers() as $fk) { - - // $fk is the foreign key in the other table, so localTableName will - // actually be the table name of other table - $tblFK = $fk->getTable(); - $refTablePeerBuilder = $this->getNewPeerBuilder($tblFK); - - if (!$tblFK->isForReferenceOnly()) { - // we can't perform operations on tables that are - // not within the schema (i.e. that we have no map for, etc.) - - $fkClassName = $refTablePeerBuilder->getObjectClassname(); - - if ($fk->getOnDelete() == ForeignKey::SETNULL) { - - // backwards on purpose - $columnNamesF = $fk->getLocalColumns(); - $columnNamesL = $fk->getForeignColumns(); // should be same num as foreign - $script .= " - // set fkey col in related $fkClassName rows to NULL - \$selectCriteria = new Criteria(".$this->getPeerClassname()."::DATABASE_NAME); - \$updateValues = new Criteria(".$this->getPeerClassname()."::DATABASE_NAME);"; - - for ($x=0,$xlen=count($columnNamesF); $x < $xlen; $x++) { - $columnFK = $tblFK->getColumn($columnNamesF[$x]); - $columnL = $table->getColumn($columnNamesL[$x]); - $script .= " - \$selectCriteria->add(".$refTablePeerBuilder->getColumnConstant($columnFK).", \$obj->get".$columnL->getPhpName()."()); - \$updateValues->add(".$refTablePeerBuilder->getColumnConstant($columnFK).", null); -"; - } - - $script .= " - {$this->basePeerClassname}::doUpdate(\$selectCriteria, \$updateValues, \$con); // use BasePeer because generated Peer doUpdate() methods only update using pkey -"; - } // if setnull && fkey table name != curr table name - } // if not for ref only - } // foreach foreign keys - - $script .= " - } - } -"; - } - - /** - * Adds the doValidate() method. - * @param string &$script The script will be modified in this method. - */ - protected function addDoValidate(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Validates all modified columns of given ".$this->getObjectClassname()." object. - * If parameter \$columns is either a single column name or an array of column names - * than only those columns are validated. - * - * NOTICE: This does not apply to primary or foreign keys for now. - * - * @param ".$this->getObjectClassname()." \$obj The object to validate. - * @param mixed \$cols Column name or array of column names. - * - * @return mixed TRUE if all columns are valid or the error message of the first invalid column. - */ - public static function doValidate(".$this->getObjectClassname()." \$obj, \$cols = null) - { - \$columns = array(); - - if (\$cols) { - \$dbMap = Propel::getDatabaseMap(".$this->getPeerClassname()."::DATABASE_NAME); - \$tableMap = \$dbMap->getTable(".$this->getPeerClassname()."::TABLE_NAME); - - if (! is_array(\$cols)) { - \$cols = array(\$cols); - } - - foreach (\$cols as \$colName) { - if (\$tableMap->containsColumn(\$colName)) { - \$get = 'get' . \$tableMap->getColumn(\$colName)->getPhpName(); - \$columns[\$colName] = \$obj->\$get(); - } - } - } else { -"; - foreach ($table->getValidators() as $val) { - $col = $val->getColumn(); - if (!$col->isAutoIncrement()) { - $script .= " - if (\$obj->isNew() || \$obj->isColumnModified(".$this->getColumnConstant($col).")) - \$columns[".$this->getColumnConstant($col)."] = \$obj->get".$col->getPhpName()."(); -"; - } // if - } // foreach - - $script .= " - } - - return {$this->basePeerClassname}::doValidate(".$this->getPeerClassname()."::DATABASE_NAME, ".$this->getPeerClassname()."::TABLE_NAME, \$columns); - } -"; - } // end addDoValidate() - - /** - * Adds the retrieveByPK method for tables with single-column primary key. - * @param string &$script The script will be modified in this method. - */ - protected function addRetrieveByPK_SinglePK(&$script) - { - $table = $this->getTable(); - $pks = $table->getPrimaryKey(); - $col = $pks[0]; - - $script .= " - /** - * Retrieve a single object by pkey. - * - * @param ".$col->getPhpType()." \$pk the primary key. - * @param PropelPDO \$con the connection to use - * @return " .$this->getObjectClassname(). " - */ - public static function ".$this->getRetrieveMethodName()."(\$pk, PropelPDO \$con = null) - { - - if (null !== (\$obj = ".$this->getPeerClassname()."::getInstanceFromPool(".$this->getInstancePoolKeySnippet('$pk')."))) { - return \$obj; - } - - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_READ); - } - - \$criteria = new Criteria(".$this->getPeerClassname()."::DATABASE_NAME); - \$criteria->add(".$this->getColumnConstant($col).", \$pk); - - \$v = ".$this->getPeerClassname()."::doSelect(\$criteria, \$con); - - return !empty(\$v) > 0 ? \$v[0] : null; - } -"; - } - - /** - * Adds the retrieveByPKs method for tables with single-column primary key. - * @param string &$script The script will be modified in this method. - */ - protected function addRetrieveByPKs_SinglePK(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Retrieve multiple objects by pkey. - * - * @param array \$pks List of primary keys - * @param PropelPDO \$con the connection to use - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function ".$this->getRetrieveMethodName()."s(\$pks, PropelPDO \$con = null) - { - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_READ); - } - - \$objs = null; - if (empty(\$pks)) { - \$objs = array(); - } else { - \$criteria = new Criteria(".$this->getPeerClassname()."::DATABASE_NAME);"; - $k1 = $table->getPrimaryKey(); - $script .= " - \$criteria->add(".$this->getColumnConstant($k1[0]).", \$pks, Criteria::IN);"; - $script .= " - \$objs = ".$this->getPeerClassname()."::doSelect(\$criteria, \$con); - } - return \$objs; - } -"; - } - - /** - * Adds the retrieveByPK method for tables with multi-column primary key. - * @param string &$script The script will be modified in this method. - */ - protected function addRetrieveByPK_MultiPK(&$script) - { - $table = $this->getTable(); - $script .= " - /** - * Retrieve object using using composite pkey values."; - foreach ($table->getPrimaryKey() as $col) { - $clo = strtolower($col->getName()); - $cptype = $col->getPhpType(); - $script .= " - * @param $cptype $".$clo; - } - $script .= " - * @param PropelPDO \$con - * @return ".$this->getObjectClassname()." - */ - public static function ".$this->getRetrieveMethodName()."("; - - $php = array(); - foreach ($table->getPrimaryKey() as $col) { - $clo = strtolower($col->getName()); - $php[] = '$' . $clo; - } /* foreach */ - - $script .= implode(', ', $php); - - $script .= ", PropelPDO \$con = null) { - \$_instancePoolKey = ".$this->getInstancePoolKeySnippet($php).";"; - $script .= " - if (null !== (\$obj = ".$this->getPeerClassname()."::getInstanceFromPool(\$_instancePoolKey))) { - return \$obj; - } - - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_READ); - } - \$criteria = new Criteria(".$this->getPeerClassname()."::DATABASE_NAME);"; - foreach ($table->getPrimaryKey() as $col) { - $clo = strtolower($col->getName()); - $script .= " - \$criteria->add(".$this->getColumnConstant($col).", $".$clo.");"; - } - $script .= " - \$v = ".$this->getPeerClassname()."::doSelect(\$criteria, \$con); - - return !empty(\$v) ? \$v[0] : null; - }"; - } - - /** - * Adds the getTableMap() method which is a convenience method for apps to get DB metadata. - * @param string &$script The script will be modified in this method. - */ - protected function addGetTableMap(&$script) - { - $script .= " - /** - * Returns the TableMap related to this peer. - * This method is not needed for general use but a specific application could have a need. - * @return TableMap - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function getTableMap() - { - return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME); - } -"; - } - - /** - * Adds the complex OM methods to the base addSelectMethods() function. - * @param string &$script The script will be modified in this method. - * @see PeerBuilder::addSelectMethods() - */ - protected function addSelectMethods(&$script) - { - $table = $this->getTable(); - - parent::addSelectMethods($script); - - $this->addDoCountJoin($script); - $this->addDoSelectJoin($script); - - $countFK = count($table->getForeignKeys()); - - $includeJoinAll = true; - - foreach ($this->getTable()->getForeignKeys() as $fk) { - $tblFK = $table->getDatabase()->getTable($fk->getForeignTableName()); - $this->declareClassFromBuilder($this->getNewStubPeerBuilder($tblFK)); - if ($tblFK->isForReferenceOnly()) { - $includeJoinAll = false; - } - } - - if ($includeJoinAll) { - if ($countFK > 0) { - $this->addDoCountJoinAll($script); - $this->addDoSelectJoinAll($script); - } - if ($countFK > 1) { - $this->addDoCountJoinAllExcept($script); - $this->addDoSelectJoinAllExcept($script); - } - } - - } - - /** - * Get the column offsets of the primary key(s) for specified table. - * - * @param Table $tbl - * @return array int[] The column offsets of the primary key(s). - */ - protected function getPrimaryKeyColOffsets(Table $tbl) - { - $offsets = array(); - $idx = 0; - foreach ($tbl->getColumns() as $col) { - if ($col->isPrimaryKey()) { - $offsets[] = $idx; - } - $idx++; - } - return $offsets; - } - - public function addCriteriaJoin($fk, $table, $joinTable, $joinedTablePeerBuilder) - { - $script = ''; - $lfMap = $fk->getLocalForeignMapping(); - $lftCols = $fk->getLocalColumns(); - if (count($lftCols) == 1) - { - // simple foreign key - $lftCol = $lftCols[0]; - $script .= sprintf(" - \$criteria->addJoin(%s, %s, \$join_behavior);\n", - $this->getColumnConstant($table->getColumn($lftCol) ), - $joinedTablePeerBuilder->getColumnConstant($joinTable->getColumn( $lfMap[$lftCol] ) )); - } - else - { - // composite foreign key - $script .= " - \$criteria->addMultipleJoin(array(\n"; - foreach ($lftCols as $columnName ) { - $script .= sprintf(" array(%s, %s),\n", - $this->getColumnConstant($table->getColumn($columnName) ), - $joinedTablePeerBuilder->getColumnConstant($joinTable->getColumn( $lfMap[$columnName] ) ) - ); - } - $script .= " ), \$join_behavior);\n"; - } - return $script; - } - - /** - * Adds the doSelectJoin*() methods. - * @param string &$script The script will be modified in this method. - */ - protected function addDoSelectJoin(&$script) - { - $table = $this->getTable(); - $className = $this->getObjectClassname(); - $countFK = count($table->getForeignKeys()); - $join_behavior = $this->getJoinBehavior(); - - if ($countFK >= 1) { - - foreach ($table->getForeignKeys() as $fk) { - - $joinTable = $table->getDatabase()->getTable($fk->getForeignTableName()); - - if (!$joinTable->isForReferenceOnly()) { - - // This condition is necessary because Propel lacks a system for - // aliasing the table if it is the same table. - if ( $fk->getForeignTableName() != $table->getName() ) { - - $thisTableObjectBuilder = $this->getNewObjectBuilder($table); - $joinedTableObjectBuilder = $this->getNewObjectBuilder($joinTable); - $joinedTablePeerBuilder = $this->getNewPeerBuilder($joinTable); - - $joinClassName = $joinedTableObjectBuilder->getObjectClassname(); - - $script .= " - - /** - * Selects a collection of $className objects pre-filled with their $joinClassName objects. - * @param Criteria \$criteria - * @param PropelPDO \$con - * @param String \$join_behavior the type of joins to use, defaults to $join_behavior - * @return array Array of $className objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoin".$thisTableObjectBuilder->getFKPhpNameAffix($fk, $plural = false)."(Criteria \$criteria, \$con = null, \$join_behavior = $join_behavior) - { - \$criteria = clone \$criteria; - - // Set the correct dbName if it has not been overridden - if (\$criteria->getDbName() == Propel::getDefaultDB()) { - \$criteria->setDbName(self::DATABASE_NAME); - } - - ".$this->getPeerClassname()."::addSelectColumns(\$criteria); - \$startcol = (".$this->getPeerClassname()."::NUM_COLUMNS - ".$this->getPeerClassname()."::NUM_LAZY_LOAD_COLUMNS); - ".$joinedTablePeerBuilder->getPeerClassname()."::addSelectColumns(\$criteria); -"; - - $script .= $this->addCriteriaJoin($fk, $table, $joinTable, $joinedTablePeerBuilder); - - // apply behaviors - $this->applyBehaviorModifier('preSelect', $script); - - $script .= " - \$stmt = ".$this->basePeerClassname."::doSelect(\$criteria, \$con); - \$results = array(); - - while (\$row = \$stmt->fetch(PDO::FETCH_NUM)) { - \$key1 = ".$this->getPeerClassname()."::getPrimaryKeyHashFromRow(\$row, 0); - if (null !== (\$obj1 = ".$this->getPeerClassname()."::getInstanceFromPool(\$key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // \$obj1->hydrate(\$row, 0, true); // rehydrate - } else { -"; - if ($table->getChildrenColumn()) { - $script .= " - \$omClass = ".$this->getPeerClassname()."::getOMClass(\$row, 0); - \$cls = substr('.'.\$omClass, strrpos('.'.\$omClass, '.') + 1); -"; - } else { - $script .= " - \$cls = ".$this->getPeerClassname()."::getOMClass(false); -"; - } - $script .= " - " . $this->buildObjectInstanceCreationCode('$obj1', '$cls') . " - \$obj1->hydrate(\$row); - ".$this->getPeerClassname()."::addInstanceToPool(\$obj1, \$key1); - } // if \$obj1 already loaded - - \$key2 = ".$joinedTablePeerBuilder->getPeerClassname()."::getPrimaryKeyHashFromRow(\$row, \$startcol); - if (\$key2 !== null) { - \$obj2 = ".$joinedTablePeerBuilder->getPeerClassname()."::getInstanceFromPool(\$key2); - if (!\$obj2) { -"; - if ($joinTable->getChildrenColumn()) { - $script .= " - \$omClass = ".$joinedTablePeerBuilder->getPeerClassname()."::getOMClass(\$row, \$startcol); - \$cls = substr('.'.\$omClass, strrpos('.'.\$omClass, '.') + 1); -"; - } else { - $script .= " - \$cls = ".$joinedTablePeerBuilder->getPeerClassname()."::getOMClass(false); -"; - } - - $script .= " - " . $this->buildObjectInstanceCreationCode('$obj2', '$cls') . " - \$obj2->hydrate(\$row, \$startcol); - ".$joinedTablePeerBuilder->getPeerClassname()."::addInstanceToPool(\$obj2, \$key2); - } // if obj2 already loaded - - // Add the \$obj1 (".$this->getObjectClassname().") to \$obj2 (".$joinedTablePeerBuilder->getObjectClassname().")"; - if ($fk->isLocalPrimaryKey()) { - $script .= " - // one to one relationship - \$obj1->set" . $joinedTablePeerBuilder->getObjectClassname() . "(\$obj2);"; - } else { - $script .= " - \$obj2->add" . $joinedTableObjectBuilder->getRefFKPhpNameAffix($fk, $plural = false)."(\$obj1);"; - } - $script .= " - - } // if joined row was not null - - \$results[] = \$obj1; - } - \$stmt->closeCursor(); - return \$results; - } -"; - } // if fk table name != this table name - } // if ! is reference only - } // foreach column - } // if count(fk) > 1 - - } // addDoSelectJoin() - - /** - * Adds the doCountJoin*() methods. - * @param string &$script The script will be modified in this method. - */ - protected function addDoCountJoin(&$script) - { - $table = $this->getTable(); - $className = $this->getObjectClassname(); - $countFK = count($table->getForeignKeys()); - $join_behavior = $this->getJoinBehavior(); - - if ($countFK >= 1) { - - foreach ($table->getForeignKeys() as $fk) { - - $joinTable = $table->getDatabase()->getTable($fk->getForeignTableName()); - - if (!$joinTable->isForReferenceOnly()) { - - if ( $fk->getForeignTableName() != $table->getName() ) { - - $thisTableObjectBuilder = $this->getNewObjectBuilder($table); - $joinedTableObjectBuilder = $this->getNewObjectBuilder($joinTable); - $joinedTablePeerBuilder = $this->getNewPeerBuilder($joinTable); - - $joinClassName = $joinedTableObjectBuilder->getObjectClassname(); - - $script .= " - - /** - * Returns the number of rows matching criteria, joining the related ".$thisTableObjectBuilder->getFKPhpNameAffix($fk, $plural = false)." table - * - * @param Criteria \$criteria - * @param boolean \$distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO \$con - * @param String \$join_behavior the type of joins to use, defaults to $join_behavior - * @return int Number of matching rows. - */ - public static function doCountJoin".$thisTableObjectBuilder->getFKPhpNameAffix($fk, $plural = false)."(Criteria \$criteria, \$distinct = false, PropelPDO \$con = null, \$join_behavior = $join_behavior) - { - // we're going to modify criteria, so copy it first - \$criteria = clone \$criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - \$criteria->setPrimaryTableName(".$this->getPeerClassname()."::TABLE_NAME); - - if (\$distinct && !in_array(Criteria::DISTINCT, \$criteria->getSelectModifiers())) { - \$criteria->setDistinct(); - } - - if (!\$criteria->hasSelectClause()) { - ".$this->getPeerClassname()."::addSelectColumns(\$criteria); - } - - \$criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - \$criteria->setDbName(self::DATABASE_NAME); - - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_READ); - } -"; - $script .= $this->addCriteriaJoin($fk, $table, $joinTable, $joinedTablePeerBuilder); - - // apply behaviors - $this->applyBehaviorModifier('preSelect', $script); - - $script .= " - \$stmt = ".$this->basePeerClassname."::doCount(\$criteria, \$con); - - if (\$row = \$stmt->fetch(PDO::FETCH_NUM)) { - \$count = (int) \$row[0]; - } else { - \$count = 0; // no rows returned; we infer that means 0 matches. - } - \$stmt->closeCursor(); - return \$count; - } -"; - } // if fk table name != this table name - } // if ! is reference only - } // foreach column - } // if count(fk) > 1 - - } // addDoCountJoin() - - /** - * Adds the doSelectJoinAll() method. - * @param string &$script The script will be modified in this method. - */ - protected function addDoSelectJoinAll(&$script) - { - $table = $this->getTable(); - $className = $this->getObjectClassname(); - $join_behavior = $this->getJoinBehavior(); - - $script .= " - - /** - * Selects a collection of $className objects pre-filled with all related objects. - * - * @param Criteria \$criteria - * @param PropelPDO \$con - * @param String \$join_behavior the type of joins to use, defaults to $join_behavior - * @return array Array of $className objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAll(Criteria \$criteria, \$con = null, \$join_behavior = $join_behavior) - { - \$criteria = clone \$criteria; - - // Set the correct dbName if it has not been overridden - if (\$criteria->getDbName() == Propel::getDefaultDB()) { - \$criteria->setDbName(self::DATABASE_NAME); - } - - ".$this->getPeerClassname()."::addSelectColumns(\$criteria); - \$startcol2 = (".$this->getPeerClassname()."::NUM_COLUMNS - ".$this->getPeerClassname()."::NUM_LAZY_LOAD_COLUMNS); -"; - $index = 2; - foreach ($table->getForeignKeys() as $fk) { - - // Want to cover this case, but the code is not there yet. - // Propel lacks a system for aliasing tables of the same name. - if ( $fk->getForeignTableName() != $table->getName() ) { - $joinTable = $table->getDatabase()->getTable($fk->getForeignTableName()); - $new_index = $index + 1; - - $joinedTablePeerBuilder = $this->getNewPeerBuilder($joinTable); - $joinClassName = $joinedTablePeerBuilder->getObjectClassname(); - - $script .= " - ".$joinedTablePeerBuilder->getPeerClassname()."::addSelectColumns(\$criteria); - \$startcol$new_index = \$startcol$index + (".$joinedTablePeerBuilder->getPeerClassname()."::NUM_COLUMNS - ".$joinedTablePeerBuilder->getPeerClassname()."::NUM_LAZY_LOAD_COLUMNS); -"; - $index = $new_index; - - } // if fk->getForeignTableName != table->getName - } // foreach [sub] foreign keys - - foreach ($table->getForeignKeys() as $fk) { - // want to cover this case, but the code is not there yet. - if ( $fk->getForeignTableName() != $table->getName() ) { - $joinTable = $table->getDatabase()->getTable($fk->getForeignTableName()); - $joinedTablePeerBuilder = $this->getNewPeerBuilder($joinTable); - $script .= $this->addCriteriaJoin($fk, $table, $joinTable, $joinedTablePeerBuilder); - } - } - - // apply behaviors - $this->applyBehaviorModifier('preSelect', $script); - - $script .= " - \$stmt = ".$this->basePeerClassname."::doSelect(\$criteria, \$con); - \$results = array(); - - while (\$row = \$stmt->fetch(PDO::FETCH_NUM)) { - \$key1 = ".$this->getPeerClassname()."::getPrimaryKeyHashFromRow(\$row, 0); - if (null !== (\$obj1 = ".$this->getPeerClassname()."::getInstanceFromPool(\$key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // \$obj1->hydrate(\$row, 0, true); // rehydrate - } else {"; - - if ($table->getChildrenColumn()) { - $script .= " - \$omClass = ".$this->getPeerClassname()."::getOMClass(\$row, 0); - \$cls = substr('.'.\$omClass, strrpos('.'.\$omClass, '.') + 1); -"; - } else { - $script .= " - \$cls = ".$this->getPeerClassname()."::getOMClass(false); -"; - } - - $script .= " - " . $this->buildObjectInstanceCreationCode('$obj1', '$cls') . " - \$obj1->hydrate(\$row); - ".$this->getPeerClassname()."::addInstanceToPool(\$obj1, \$key1); - } // if obj1 already loaded -"; - - $index = 1; - foreach ($table->getForeignKeys() as $fk ) { - // want to cover this case, but the code is not there yet. - // Why not? -because we'd have to alias the tables in the JOIN - if ( $fk->getForeignTableName() != $table->getName() ) { - $joinTable = $table->getDatabase()->getTable($fk->getForeignTableName()); - - $thisTableObjectBuilder = $this->getNewObjectBuilder($table); - $joinedTableObjectBuilder = $this->getNewObjectBuilder($joinTable); - $joinedTablePeerBuilder = $this->getNewPeerBuilder($joinTable); - - - $joinClassName = $joinedTableObjectBuilder->getObjectClassname(); - $interfaceName = $joinClassName; - - if ($joinTable->getInterface()) { - $interfaceName = $this->prefixClassname($joinTable->getInterface()); - } - - $index++; - - $script .= " - // Add objects for joined $joinClassName rows - - \$key$index = ".$joinedTablePeerBuilder->getPeerClassname()."::getPrimaryKeyHashFromRow(\$row, \$startcol$index); - if (\$key$index !== null) { - \$obj$index = ".$joinedTablePeerBuilder->getPeerClassname()."::getInstanceFromPool(\$key$index); - if (!\$obj$index) { -"; - if ($joinTable->getChildrenColumn()) { - $script .= " - \$omClass = ".$joinedTablePeerBuilder->getPeerClassname()."::getOMClass(\$row, \$startcol$index); - \$cls = substr('.'.\$omClass, strrpos('.'.\$omClass, '.') + 1); -"; - } else { - $script .= " - \$cls = ".$joinedTablePeerBuilder->getPeerClassname()."::getOMClass(false); -"; - } /* $joinTable->getChildrenColumn() */ - - $script .= " - " . $this->buildObjectInstanceCreationCode('$obj' . $index, '$cls') . " - \$obj".$index."->hydrate(\$row, \$startcol$index); - ".$joinedTablePeerBuilder->getPeerClassname()."::addInstanceToPool(\$obj$index, \$key$index); - } // if obj$index loaded - - // Add the \$obj1 (".$this->getObjectClassname().") to the collection in \$obj".$index." (".$joinedTablePeerBuilder->getObjectClassname().")"; - if ($fk->isLocalPrimaryKey()) { - $script .= " - \$obj1->set".$joinedTablePeerBuilder->getObjectClassname()."(\$obj".$index.");"; - } else { - $script .= " - \$obj".$index."->add".$joinedTableObjectBuilder->getRefFKPhpNameAffix($fk, $plural = false)."(\$obj1);"; - } - $script .= " - } // if joined row not null -"; - - } // $fk->getForeignTableName() != $table->getName() - } //foreach foreign key - - $script .= " - \$results[] = \$obj1; - } - \$stmt->closeCursor(); - return \$results; - } -"; - - } // end addDoSelectJoinAll() - - - /** - * Adds the doCountJoinAll() method. - * @param string &$script The script will be modified in this method. - */ - protected function addDoCountJoinAll(&$script) - { - $table = $this->getTable(); - $className = $this->getObjectClassname(); - $join_behavior = $this->getJoinBehavior(); - - $script .= " - - /** - * Returns the number of rows matching criteria, joining all related tables - * - * @param Criteria \$criteria - * @param boolean \$distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO \$con - * @param String \$join_behavior the type of joins to use, defaults to $join_behavior - * @return int Number of matching rows. - */ - public static function doCountJoinAll(Criteria \$criteria, \$distinct = false, PropelPDO \$con = null, \$join_behavior = $join_behavior) - { - // we're going to modify criteria, so copy it first - \$criteria = clone \$criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - \$criteria->setPrimaryTableName(".$this->getPeerClassname()."::TABLE_NAME); - - if (\$distinct && !in_array(Criteria::DISTINCT, \$criteria->getSelectModifiers())) { - \$criteria->setDistinct(); - } - - if (!\$criteria->hasSelectClause()) { - ".$this->getPeerClassname()."::addSelectColumns(\$criteria); - } - - \$criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // Set the correct dbName - \$criteria->setDbName(self::DATABASE_NAME); - - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_READ); - } -"; - - foreach ($table->getForeignKeys() as $fk) { - // want to cover this case, but the code is not there yet. - if ( $fk->getForeignTableName() != $table->getName() ) { - $joinTable = $table->getDatabase()->getTable($fk->getForeignTableName()); - $joinedTablePeerBuilder = $this->getNewPeerBuilder($joinTable); - $script .= $this->addCriteriaJoin($fk, $table, $joinTable, $joinedTablePeerBuilder); - } // if fk->getForeignTableName != table->getName - } // foreach [sub] foreign keys - - // apply behaviors - $this->applyBehaviorModifier('preSelect', $script); - - $script .= " - \$stmt = ".$this->basePeerClassname."::doCount(\$criteria, \$con); - - if (\$row = \$stmt->fetch(PDO::FETCH_NUM)) { - \$count = (int) \$row[0]; - } else { - \$count = 0; // no rows returned; we infer that means 0 matches. - } - \$stmt->closeCursor(); - return \$count; - }"; - } // end addDoCountJoinAll() - - /** - * Adds the doSelectJoinAllExcept*() methods. - * @param string &$script The script will be modified in this method. - */ - protected function addDoSelectJoinAllExcept(&$script) - { - $table = $this->getTable(); - $join_behavior = $this->getJoinBehavior(); - - // ------------------------------------------------------------------------ - // doSelectJoinAllExcept*() - // ------------------------------------------------------------------------ - - // 2) create a bunch of doSelectJoinAllExcept*() methods - // -- these were existing in original Torque, so we should keep them for compatibility - - $fkeys = $table->getForeignKeys(); // this sep assignment is necessary otherwise sub-loops over - // getForeignKeys() will cause this to only execute one time. - foreach ($fkeys as $fk ) { - - $tblFK = $table->getDatabase()->getTable($fk->getForeignTableName()); - - $excludedTable = $table->getDatabase()->getTable($fk->getForeignTableName()); - - $thisTableObjectBuilder = $this->getNewObjectBuilder($table); - $excludedTableObjectBuilder = $this->getNewObjectBuilder($excludedTable); - $excludedTablePeerBuilder = $this->getNewPeerBuilder($excludedTable); - - $excludedClassName = $excludedTableObjectBuilder->getObjectClassname(); - - - $script .= " - - /** - * Selects a collection of ".$this->getObjectClassname()." objects pre-filled with all related objects except ".$thisTableObjectBuilder->getFKPhpNameAffix($fk).". - * - * @param Criteria \$criteria - * @param PropelPDO \$con - * @param String \$join_behavior the type of joins to use, defaults to $join_behavior - * @return array Array of ".$this->getObjectClassname()." objects. - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function doSelectJoinAllExcept".$thisTableObjectBuilder->getFKPhpNameAffix($fk, $plural = false)."(Criteria \$criteria, \$con = null, \$join_behavior = $join_behavior) - { - \$criteria = clone \$criteria; - - // Set the correct dbName if it has not been overridden - // \$criteria->getDbName() will return the same object if not set to another value - // so == check is okay and faster - if (\$criteria->getDbName() == Propel::getDefaultDB()) { - \$criteria->setDbName(self::DATABASE_NAME); - } - - ".$this->getPeerClassname()."::addSelectColumns(\$criteria); - \$startcol2 = (".$this->getPeerClassname()."::NUM_COLUMNS - ".$this->getPeerClassname()."::NUM_LAZY_LOAD_COLUMNS); -"; - $index = 2; - foreach ($table->getForeignKeys() as $subfk) { - // want to cover this case, but the code is not there yet. - // Why not? - because we would have to alias the tables in the join - if ( !($subfk->getForeignTableName() == $table->getName())) { - $joinTable = $table->getDatabase()->getTable($subfk->getForeignTableName()); - $joinTablePeerBuilder = $this->getNewPeerBuilder($joinTable); - $joinClassName = $joinTablePeerBuilder->getObjectClassname(); - - if ($joinClassName != $excludedClassName) { - $new_index = $index + 1; - $script .= " - ".$joinTablePeerBuilder->getPeerClassname()."::addSelectColumns(\$criteria); - \$startcol$new_index = \$startcol$index + (".$joinTablePeerBuilder->getPeerClassname()."::NUM_COLUMNS - ".$joinTablePeerBuilder->getPeerClassname()."::NUM_LAZY_LOAD_COLUMNS); -"; - $index = $new_index; - } // if joinClassName not excludeClassName - } // if subfk is not curr table - } // foreach [sub] foreign keys - - foreach ($table->getForeignKeys() as $subfk) { - // want to cover this case, but the code is not there yet. - if ( $subfk->getForeignTableName() != $table->getName() ) { - $joinTable = $table->getDatabase()->getTable($subfk->getForeignTableName()); - $joinedTablePeerBuilder = $this->getNewPeerBuilder($joinTable); - $joinClassName = $joinedTablePeerBuilder->getObjectClassname(); - - if ($joinClassName != $excludedClassName) - { - $script .= $this->addCriteriaJoin($subfk, $table, $joinTable, $joinedTablePeerBuilder); - } - } - } // foreach fkeys - - // apply behaviors - $this->applyBehaviorModifier('preSelect', $script); - - $script .= " - - \$stmt = ".$this->basePeerClassname ."::doSelect(\$criteria, \$con); - \$results = array(); - - while (\$row = \$stmt->fetch(PDO::FETCH_NUM)) { - \$key1 = ".$this->getPeerClassname()."::getPrimaryKeyHashFromRow(\$row, 0); - if (null !== (\$obj1 = ".$this->getPeerClassname()."::getInstanceFromPool(\$key1))) { - // We no longer rehydrate the object, since this can cause data loss. - // See http://www.propelorm.org/ticket/509 - // \$obj1->hydrate(\$row, 0, true); // rehydrate - } else {"; - if ($table->getChildrenColumn()) { - $script .= " - \$omClass = ".$this->getPeerClassname()."::getOMClass(\$row, 0); - \$cls = substr('.'.\$omClass, strrpos('.'.\$omClass, '.') + 1); -"; - } else { - $script .= " - \$cls = ".$this->getPeerClassname()."::getOMClass(false); -"; - } - - $script .= " - " . $this->buildObjectInstanceCreationCode('$obj1', '$cls') . " - \$obj1->hydrate(\$row); - ".$this->getPeerClassname()."::addInstanceToPool(\$obj1, \$key1); - } // if obj1 already loaded -"; - - $index = 1; - foreach ($table->getForeignKeys() as $subfk ) { - // want to cover this case, but the code is not there yet. - if ( $subfk->getForeignTableName() != $table->getName() ) { - - $joinTable = $table->getDatabase()->getTable($subfk->getForeignTableName()); - - $joinedTableObjectBuilder = $this->getNewObjectBuilder($joinTable); - $joinedTablePeerBuilder = $this->getNewPeerBuilder($joinTable); - - $joinClassName = $joinedTableObjectBuilder->getObjectClassname(); - - $interfaceName = $joinClassName; - if ($joinTable->getInterface()) { - $interfaceName = $this->prefixClassname($joinTable->getInterface()); - } - - if ($joinClassName != $excludedClassName) { - - $index++; - - $script .= " - // Add objects for joined $joinClassName rows - - \$key$index = ".$joinedTablePeerBuilder->getPeerClassname()."::getPrimaryKeyHashFromRow(\$row, \$startcol$index); - if (\$key$index !== null) { - \$obj$index = ".$joinedTablePeerBuilder->getPeerClassname()."::getInstanceFromPool(\$key$index); - if (!\$obj$index) { - "; - - if ($joinTable->getChildrenColumn()) { - $script .= " - \$omClass = ".$joinedTablePeerBuilder->getPeerClassname()."::getOMClass(\$row, \$startcol$index); - \$cls = substr('.'.\$omClass, strrpos('.'.\$omClass, '.') + 1); -"; - } else { - $script .= " - \$cls = ".$joinedTablePeerBuilder->getPeerClassname()."::getOMClass(false); -"; - } /* $joinTable->getChildrenColumn() */ - $script .= " - " . $this->buildObjectInstanceCreationCode('$obj' . $index, '$cls') . " - \$obj".$index."->hydrate(\$row, \$startcol$index); - ".$joinedTablePeerBuilder->getPeerClassname()."::addInstanceToPool(\$obj$index, \$key$index); - } // if \$obj$index already loaded - - // Add the \$obj1 (".$this->getObjectClassname().") to the collection in \$obj".$index." (".$joinedTablePeerBuilder->getObjectClassname().")"; - if ($subfk->isLocalPrimaryKey()) { - $script .= " - \$obj1->set".$joinedTablePeerBuilder->getObjectClassname()."(\$obj".$index.");"; - } else { - $script .= " - \$obj".$index."->add".$joinedTableObjectBuilder->getRefFKPhpNameAffix($subfk, $plural = false)."(\$obj1);"; - } - $script .= " - - } // if joined row is not null -"; - } // if ($joinClassName != $excludedClassName) { - } // $subfk->getForeignTableName() != $table->getName() - } // foreach - $script .= " - \$results[] = \$obj1; - } - \$stmt->closeCursor(); - return \$results; - } -"; - } // foreach fk - - } // addDoSelectJoinAllExcept - - /** - * Adds the doCountJoinAllExcept*() methods. - * @param string &$script The script will be modified in this method. - */ - protected function addDoCountJoinAllExcept(&$script) - { - $table = $this->getTable(); - $join_behavior = $this->getJoinBehavior(); - - $fkeys = $table->getForeignKeys(); // this sep assignment is necessary otherwise sub-loops over - // getForeignKeys() will cause this to only execute one time. - foreach ($fkeys as $fk ) { - - $tblFK = $table->getDatabase()->getTable($fk->getForeignTableName()); - - $excludedTable = $table->getDatabase()->getTable($fk->getForeignTableName()); - - $thisTableObjectBuilder = $this->getNewObjectBuilder($table); - $excludedTableObjectBuilder = $this->getNewObjectBuilder($excludedTable); - $excludedTablePeerBuilder = $this->getNewPeerBuilder($excludedTable); - - $excludedClassName = $excludedTableObjectBuilder->getObjectClassname(); - - $script .= " - - /** - * Returns the number of rows matching criteria, joining the related ".$thisTableObjectBuilder->getFKPhpNameAffix($fk, $plural = false)." table - * - * @param Criteria \$criteria - * @param boolean \$distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. - * @param PropelPDO \$con - * @param String \$join_behavior the type of joins to use, defaults to $join_behavior - * @return int Number of matching rows. - */ - public static function doCountJoinAllExcept".$thisTableObjectBuilder->getFKPhpNameAffix($fk, $plural = false)."(Criteria \$criteria, \$distinct = false, PropelPDO \$con = null, \$join_behavior = $join_behavior) - { - // we're going to modify criteria, so copy it first - \$criteria = clone \$criteria; - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - \$criteria->setPrimaryTableName(".$this->getPeerClassname()."::TABLE_NAME); - - if (\$distinct && !in_array(Criteria::DISTINCT, \$criteria->getSelectModifiers())) { - \$criteria->setDistinct(); - } - - if (!\$criteria->hasSelectClause()) { - ".$this->getPeerClassname()."::addSelectColumns(\$criteria); - } - - \$criteria->clearOrderByColumns(); // ORDER BY should not affect count - - // Set the correct dbName - \$criteria->setDbName(self::DATABASE_NAME); - - if (\$con === null) { - \$con = Propel::getConnection(".$this->getPeerClassname()."::DATABASE_NAME, Propel::CONNECTION_READ); - } - "; - - foreach ($table->getForeignKeys() as $subfk) { - // want to cover this case, but the code is not there yet. - if ( $subfk->getForeignTableName() != $table->getName() ) { - $joinTable = $table->getDatabase()->getTable($subfk->getForeignTableName()); - $joinedTablePeerBuilder = $this->getNewPeerBuilder($joinTable); - $joinClassName = $joinedTablePeerBuilder->getObjectClassname(); - - if ($joinClassName != $excludedClassName) - { - $script .= $this->addCriteriaJoin($subfk, $table, $joinTable, $joinedTablePeerBuilder); - } - } - } // foreach fkeys - - // apply behaviors - $this->applyBehaviorModifier('preSelect', $script); - - $script .= " - \$stmt = ".$this->basePeerClassname."::doCount(\$criteria, \$con); - - if (\$row = \$stmt->fetch(PDO::FETCH_NUM)) { - \$count = (int) \$row[0]; - } else { - \$count = 0; // no rows returned; we infer that means 0 matches. - } - \$stmt->closeCursor(); - return \$count; - } -"; - } // foreach fk - - } // addDoCountJoinAllExcept - - /** - * returns the desired join behavior as set in the build properties - * see trac ticket #588, #491 - * - */ - protected function getJoinBehavior() - { - return $this->getGeneratorConfig()->getBuildProperty('useLeftJoinsInDoJoinMethods') ? 'Criteria::LEFT_JOIN' : 'Criteria::INNER_JOIN'; - } - -} // PHP5PeerBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5TableMapBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PHP5TableMapBuilder.php deleted file mode 100644 index a156b29bfa..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PHP5TableMapBuilder.php +++ /dev/null @@ -1,354 +0,0 @@ - - * @package propel.generator.builder.om - */ -class PHP5TableMapBuilder extends OMBuilder -{ - - /** - * Gets the package for the map builder classes. - * @return string - */ - public function getPackage() - { - return parent::getPackage() . '.map'; - } - - public function getNamespace() - { - if ($namespace = parent::getNamespace()) { - if ($this->getGeneratorConfig() && $omns = $this->getGeneratorConfig()->getBuildProperty('namespaceMap')) { - return $namespace . '\\' . $omns; - } else { - return $namespace; - } - } - } - - /** - * Returns the name of the current class being built. - * @return string - */ - public function getUnprefixedClassname() - { - return $this->getTable()->getPhpName() . 'TableMap'; - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - $table = $this->getTable(); - $script .= " - -/** - * This class defines the structure of the '".$table->getName()."' table. - * - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * - * This map class is used by Propel to do runtime db structure discovery. - * For example, the createSelectSql() method checks the type of a given column used in an - * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive - * (i.e. if it's a text column type). - * - * @package propel.generator.".$this->getPackage()." - */ -class ".$this->getClassname()." extends TableMap { -"; - } - - /** - * Specifies the methods that are added as part of the map builder class. - * This can be overridden by subclasses that wish to add more methods. - * @see ObjectBuilder::addClassBody() - */ - protected function addClassBody(&$script) - { - $this->declareClasses('TableMap', 'RelationMap'); - $this->addConstants($script); - $this->addAttributes($script); - $this->addInitialize($script); - $this->addBuildRelations($script); - $this->addGetBehaviors($script); - } - - /** - * Adds any constants needed for this TableMap class. - * @param string &$script The script will be modified in this method. - */ - protected function addConstants(&$script) - { - $script .= " - /** - * The (dot-path) name of this class - */ - const CLASS_NAME = '".$this->getClasspath()."'; -"; - } - - /** - * Adds any attributes needed for this TableMap class. - * @param string &$script The script will be modified in this method. - */ - protected function addAttributes(&$script) - { - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - $this->applyBehaviorModifier('tableMapFilter', $script, ""); - } - - /** - * Adds the addInitialize() method to the table map class. - * @param string &$script The script will be modified in this method. - */ - protected function addInitialize(&$script) - { - - $table = $this->getTable(); - $platform = $this->getPlatform(); - $ddlBuilder = $this->getDDLBuilder(); - - $script .= " - /** - * Initialize the table attributes, columns and validators - * Relations are not initialized by this method since they are lazy loaded - * - * @return void - * @throws PropelException - */ - public function initialize() - { - // attributes - \$this->setName('".$table->getName()."'); - \$this->setPhpName('".$table->getPhpName()."'); - \$this->setClassname('" . addslashes($this->getStubObjectBuilder()->getFullyQualifiedClassname()) . "'); - \$this->setPackage('" . parent::getPackage() . "');"; - if ($table->getIdMethod() == "native") { - $script .= " - \$this->setUseIdGenerator(true);"; - } else { - $script .= " - \$this->setUseIdGenerator(false);"; - } - - if ($table->getIdMethodParameters()) { - $params = $table->getIdMethodParameters(); - $imp = $params[0]; - $script .= " - \$this->setPrimaryKeyMethodInfo('".$imp->getValue()."');"; - } elseif ($table->getIdMethod() == IDMethod::NATIVE && ($platform->getNativeIdMethod() == Platform::SEQUENCE || $platform->getNativeIdMethod() == Platform::SERIAL)) { - $script .= " - \$this->setPrimaryKeyMethodInfo('".$ddlBuilder->getSequenceName()."');"; - } - - if ($this->getTable()->getChildrenColumn()) { - $script .= " - \$this->setSingleTableInheritance(true);"; - } - - // Add columns to map - $script .= " - // columns"; - foreach ($table->getColumns() as $col) { - $cup=strtoupper($col->getName()); - $cfc=$col->getPhpName(); - if (!$col->getSize()) { - $size = "null"; - } else { - $size = $col->getSize(); - } - $default = $col->getDefaultValueString(); - if ($col->isPrimaryKey()) { - if ($col->isForeignKey()) { - foreach ($col->getForeignKeys() as $fk) { - $script .= " - \$this->addForeignPrimaryKey('$cup', '$cfc', '".$col->getType()."' , '".$fk->getForeignTableName()."', '".strtoupper($fk->getMappedForeignColumn($col->getName()))."', ".($col->isNotNull() ? 'true' : 'false').", ".$size.", $default);"; - } - } else { - $script .= " - \$this->addPrimaryKey('$cup', '$cfc', '".$col->getType()."', ".var_export($col->isNotNull(), true).", ".$size.", $default);"; - } - } else { - if ($col->isForeignKey()) { - foreach ($col->getForeignKeys() as $fk) { - $script .= " - \$this->addForeignKey('$cup', '$cfc', '".$col->getType()."', '".$fk->getForeignTableName()."', '".strtoupper($fk->getMappedForeignColumn($col->getName()))."', ".($col->isNotNull() ? 'true' : 'false').", ".$size.", $default);"; - } - } else { - $script .= " - \$this->addColumn('$cup', '$cfc', '".$col->getType()."', ".var_export($col->isNotNull(), true).", ".$size.", $default);"; - } - } // if col-is prim key - } // foreach - - // validators - $script .= " - // validators"; - foreach ($table->getValidators() as $val) { - $col = $val->getColumn(); - $cup = strtoupper($col->getName()); - foreach ($val->getRules() as $rule) { - if ($val->getTranslate() !== Validator::TRANSLATE_NONE) { - $script .= " - \$this->addValidator('$cup', '".$rule->getName()."', '".$rule->getClass()."', '".str_replace("'", "\'", $rule->getValue())."', ".$val->getTranslate()."('".str_replace("'", "\'", $rule->getMessage())."'));"; - } else { - $script .= " - \$this->addValidator('$cup', '".$rule->getName()."', '".$rule->getClass()."', '".str_replace("'", "\'", $rule->getValue())."', '".str_replace("'", "\'", $rule->getMessage())."');"; - } // if ($rule->getTranslation() ... - } // foreach rule - } // foreach validator - - $script .= " - } // initialize() -"; - - } - - /** - * Adds the method that build the RelationMap objects - * @param string &$script The script will be modified in this method. - */ - protected function addBuildRelations(&$script) - { - $script .= " - /** - * Build the RelationMap objects for this table relationships - */ - public function buildRelations() - {"; - foreach ($this->getTable()->getForeignKeys() as $fkey) - { - $columnMapping = 'array('; - foreach ($fkey->getLocalForeignMapping() as $key => $value) - { - $columnMapping .= "'$key' => '$value', "; - } - $columnMapping .= ')'; - $onDelete = $fkey->hasOnDelete() ? "'" . $fkey->getOnDelete() . "'" : 'null'; - $onUpdate = $fkey->hasOnUpdate() ? "'" . $fkey->getOnUpdate() . "'" : 'null'; - $script .= " - \$this->addRelation('" . $this->getFKPhpNameAffix($fkey) . "', '" . addslashes($this->getNewStubObjectBuilder($fkey->getForeignTable())->getFullyQualifiedClassname()) . "', RelationMap::MANY_TO_ONE, $columnMapping, $onDelete, $onUpdate);"; - } - foreach ($this->getTable()->getReferrers() as $fkey) - { - $columnMapping = 'array('; - foreach ($fkey->getForeignLocalMapping() as $key => $value) - { - $columnMapping .= "'$key' => '$value', "; - } - $columnMapping .= ')'; - $onDelete = $fkey->hasOnDelete() ? "'" . $fkey->getOnDelete() . "'" : 'null'; - $onUpdate = $fkey->hasOnUpdate() ? "'" . $fkey->getOnUpdate() . "'" : 'null'; - $script .= " - \$this->addRelation('" . $this->getRefFKPhpNameAffix($fkey) . "', '" . addslashes($this->getNewStubObjectBuilder($fkey->getTable())->getFullyQualifiedClassname()) . "', RelationMap::ONE_TO_" . ($fkey->isLocalPrimaryKey() ? "ONE" : "MANY") .", $columnMapping, $onDelete, $onUpdate);"; - } - foreach ($this->getTable()->getCrossFks() as $fkList) - { - list($refFK, $crossFK) = $fkList; - $onDelete = $fkey->hasOnDelete() ? "'" . $fkey->getOnDelete() . "'" : 'null'; - $onUpdate = $fkey->hasOnUpdate() ? "'" . $fkey->getOnUpdate() . "'" : 'null'; - $script .= " - \$this->addRelation('" . $this->getFKPhpNameAffix($crossFK) . "', '" . addslashes($this->getNewStubObjectBuilder($crossFK->getForeignTable())->getFullyQualifiedClassname()) . "', RelationMap::MANY_TO_MANY, array(), $onDelete, $onUpdate);"; - } - $script .= " - } // buildRelations() -"; - } - - /** - * Adds the behaviors getter - * @param string &$script The script will be modified in this method. - */ - protected function addGetBehaviors(&$script) - { - if ($behaviors = $this->getTable()->getBehaviors()) - { - $script .= " - /** - * - * Gets the list of behaviors registered for this table - * - * @return array Associative array (name => parameters) of behaviors - */ - public function getBehaviors() - { - return array("; - foreach ($behaviors as $behavior) - { - $script .= " - '{$behavior->getName()}' => array("; - foreach ($behavior->getParameters() as $key => $value) - { - $script .= "'$key' => '$value', "; - } - $script .= "),"; - } - $script .= " - ); - } // getBehaviors() -"; - } - } - - /** - * Checks whether any registered behavior on that table has a modifier for a hook - * @param string $hookName The name of the hook as called from one of this class methods, e.g. "preSave" - * @return boolean - */ - public function hasBehaviorModifier($hookName, $modifier = null) - { - return parent::hasBehaviorModifier($hookName, 'TableMapBuilderModifier'); - } - - /** - * Checks whether any registered behavior on that table has a modifier for a hook - * @param string $hookName The name of the hook as called from one of this class methods, e.g. "preSave" - * @param string &$script The script will be modified in this method. - */ - public function applyBehaviorModifier($hookName, &$script, $tab = " ") - { - return $this->applyBehaviorModifierBase($hookName, 'TableMapBuilderModifier', $script, $tab); - } -} // PHP5TableMapBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/PeerBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/PeerBuilder.php deleted file mode 100644 index 36c8ecb6f2..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/PeerBuilder.php +++ /dev/null @@ -1,305 +0,0 @@ - - * @package propel.generator.builder.om - */ -abstract class PeerBuilder extends OMBuilder -{ - - protected $basePeerClass; - protected $basePeerClassname; - - /** - * Constructs a new PeerBuilder subclass. - */ - public function __construct(Table $table) { - parent::__construct($table); - $this->basePeerClassname = $this->basePeerClass = $this->getBasePeer($table); - $pos = strrpos($this->basePeerClassname, '.'); - if ($pos !== false) { - $this->basePeerClassname = substr($this->basePeerClassname, $pos + 1); - } - } - - /** - * Adds the addSelectColumns(), doCount(), etc. methods. - * @param string &$script The script will be modified in this method. - */ - protected function addSelectMethods(&$script) - { - $this->addAddSelectColumns($script); - - $this->addDoCount($script); - - // consider refactoring the doSelect stuff - // into a top-level method - $this->addDoSelectOne($script); - $this->addDoSelect($script); - $this->addDoSelectStmt($script); // <-- there's PDO code in here - - $this->addAddInstanceToPool($script); - $this->addRemoveInstanceFromPool($script); - $this->addGetInstanceFromPool($script); - $this->addClearInstancePool($script); - $this->addClearRelatedInstancePool($script); - - $this->addGetPrimaryKeyHash($script); - $this->addGetPrimaryKeyFromRow($script); - $this->addPopulateObjects($script); // <-- there's PDO code in here - $this->addPopulateObject($script); - - } - - /** - * Adds the correct getOMClass() method, depending on whether this table uses inheritance. - * @param string &$script The script will be modified in this method. - */ - protected function addGetOMClassMethod(&$script) - { - $table = $this->getTable(); - if ($table->getChildrenColumn()) { - $this->addGetOMClass_Inheritance($script); - } else { - if ($table->isAbstract()) { - $this->addGetOMClass_NoInheritance_Abstract($script); - } else { - $this->addGetOMClass_NoInheritance($script); - } - } - } - - /** - * Adds the doInsert(), doUpdate(), doDeleteAll(), doValidate(), etc. methods. - * @param string &$script The script will be modified in this method. - */ - protected function addUpdateMethods(&$script) - { - $this->addDoInsert($script); - $this->addDoUpdate($script); - $this->addDoDeleteAll($script); - $this->addDoDelete($script); - if ($this->isDeleteCascadeEmulationNeeded()) { - $this->addDoOnDeleteCascade($script); - } - if ($this->isDeleteSetNullEmulationNeeded()) { - $this->addDoOnDeleteSetNull($script); - } - $this->addDoValidate($script); - } - - /** - * Adds the retrieveByPK() (and possibly retrieveByPKs()) method(s) appropriate for this class. - * @param string &$script The script will be modified in this method. - */ - protected function addRetrieveByPKMethods(&$script) - { - if (count($this->getTable()->getPrimaryKey()) === 1) { - $this->addRetrieveByPK_SinglePK($script); - $this->addRetrieveByPKs_SinglePK($script); - } else { - $this->addRetrieveByPK_MultiPK($script); - } - } - - /** - * This method adds the contents of the generated class to the script. - * - * This method contains the high-level logic that determines which methods - * get generated. - * - * Hint: Override this method in your subclass if you want to reorganize or - * drastically change the contents of the generated peer class. - * - * @param string &$script The script will be modified in this method. - */ - protected function addClassBody(&$script) - { - - $table = $this->getTable(); - - if (!$table->isAlias()) { - $this->addConstantsAndAttributes($script); - } - - $this->addTranslateFieldName($script); - $this->addGetFieldNames($script); - - if (!$table->isAlias()) { - $this->addAlias($script); // alias() utility method (deprecated?) - $this->addSelectMethods($script); - $this->addGetTableMap($script); - } - - $this->addBuildTableMap($script); - - $this->addGetOMClassMethod($script); - - // add the insert, update, delete, validate etc. methods - if (!$table->isAlias() && !$table->isReadOnly()) { - $this->addUpdateMethods($script); - } - - if (count($table->getPrimaryKey()) > 0) { - $this->addRetrieveByPKMethods($script); - } - } - - /** - * Whether the platform in use requires ON DELETE CASCADE emulation and whether there are references to this table. - * @return boolean - */ - protected function isDeleteCascadeEmulationNeeded() - { - $table = $this->getTable(); - if ((!$this->getPlatform()->supportsNativeDeleteTrigger() || $this->getBuildProperty('emulateForeignKeyConstraints')) && count($table->getReferrers()) > 0) { - foreach ($table->getReferrers() as $fk) { - if ($fk->getOnDelete() == ForeignKey::CASCADE) { - return true; - } - } - } - return false; - } - - /** - * Whether the platform in use requires ON DELETE SETNULL emulation and whether there are references to this table. - * @return boolean - */ - protected function isDeleteSetNullEmulationNeeded() - { - $table = $this->getTable(); - if ((!$this->getPlatform()->supportsNativeDeleteTrigger() || $this->getBuildProperty('emulateForeignKeyConstraints')) && count($table->getReferrers()) > 0) { - foreach ($table->getReferrers() as $fk) { - if ($fk->getOnDelete() == ForeignKey::SETNULL) { - return true; - } - } - } - return false; - } - - /** - * Whether to add the generic mutator methods (setByName(), setByPosition(), fromArray()). - * This is based on the build property propel.addGenericMutators, and also whether the - * table is read-only or an alias. - * @return boolean - */ - protected function isAddGenericMutators() - { - $table = $this->getTable(); - return (!$table->isAlias() && $this->getBuildProperty('addGenericMutators') && !$table->isReadOnly()); - } - - /** - * Whether to add the generic accessor methods (getByName(), getByPosition(), toArray()). - * This is based on the build property propel.addGenericAccessors, and also whether the - * table is an alias. - * @return boolean - */ - protected function isAddGenericAccessors() - { - $table = $this->getTable(); - return (!$table->isAlias() && $this->getBuildProperty('addGenericAccessors')); - } - - /** - * Returns the retrieveByPK method name to use for this table. - * If the table is an alias then the method name looks like "retrieveTablenameByPK" - * otherwise simply "retrieveByPK". - * @return string - */ - public function getRetrieveMethodName() - { - if ($this->getTable()->isAlias()) { - $retrieveMethod = "retrieve" . $this->getTable()->getPhpName() . "ByPK"; - } else { - $retrieveMethod = "retrieveByPK"; - } - return $retrieveMethod; - } - - - /** - * COMPATIBILITY: Get the column constant name (e.g. PeerName::COLUMN_NAME). - * - * This method exists simply because it belonged to the 'PeerBuilder' that this - * class is replacing (because of name conflict more than actual functionality overlap). - * When the new builder model is finished this method will be removed. - * - * @param Column $col The column we need a name for. - * @param string $phpName The PHP Name of the peer class. The 'Peer' is appended automatically. - * - * @return string If $phpName is provided, then will return {$phpName}Peer::COLUMN_NAME; if not, just COLUMN_NAME. - * @deprecated - */ - public static function getColumnName(Column $col, $phpName = null) { - // was it overridden in schema.xml ? - if ($col->getPeerName()) { - $const = strtoupper($col->getPeerName()); - } else { - $const = strtoupper($col->getName()); - } - if ($phpName !== null) { - return $phpName . 'Peer::' . $const; - } else { - return $const; - } - } - - /** - * Checks whether any registered behavior on that table has a modifier for a hook - * @param string $hookName The name of the hook as called from one of this class methods, e.g. "preSave" - * @return boolean - */ - public function hasBehaviorModifier($hookName, $modifier = null) - { - return parent::hasBehaviorModifier($hookName, 'PeerBuilderModifier'); - } - - /** - * Checks whether any registered behavior on that table has a modifier for a hook - * @param string $hookName The name of the hook as called from one of this class methods, e.g. "preSave" - * @param string &$script The script will be modified in this method. - */ - public function applyBehaviorModifier($hookName, &$script, $tab = " ") - { - return $this->applyBehaviorModifierBase($hookName, 'PeerBuilderModifier', $script, $tab); - } - - /** - * Checks whether any registered behavior content creator on that table exists a contentName - * @param string $contentName The name of the content as called from one of this class methods, e.g. "parentClassname" - */ - public function getBehaviorContent($contentName) - { - return $this->getBehaviorContentBase($contentName, 'PeerBuilderModifier'); - } - - /** - * Get the BasePeer class name for the current table (e.g. 'BasePeer') - * - * @return string The Base Peer Class name - */ - public function getBasePeerClassname() - { - return $this->basePeerClassname; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/QueryBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/QueryBuilder.php deleted file mode 100644 index 1d21aa59a2..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/QueryBuilder.php +++ /dev/null @@ -1,1065 +0,0 @@ -getGeneratorConfig() && $omns = $this->getGeneratorConfig()->getBuildProperty('namespaceOm')) { - return $namespace . '\\' . $omns; - } else { - return $namespace; - } - } - } - - /** - * Returns the name of the current class being built. - * @return string - */ - public function getUnprefixedClassname() - { - return $this->getBuildProperty('basePrefix') . $this->getStubQueryBuilder()->getUnprefixedClassname(); - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - } - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - $table = $this->getTable(); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - $queryClass = $this->getStubQueryBuilder()->getClassname(); - $modelClass = $this->getStubObjectBuilder()->getClassname(); - $parentClass = $this->getBehaviorContent('parentClass'); - $parentClass = null === $parentClass ? 'ModelCriteria' : $parentClass; - $script .= " -/** - * Base class that represents a query for the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - - // magic orderBy() methods, for IDE completion - foreach ($this->getTable()->getColumns() as $column) { - $script .= " - * @method $queryClass orderBy" . $column->getPhpName() . "(\$order = Criteria::ASC) Order by the " . $column->getName() . " column"; - } - $script .= " - *"; - - // magic groupBy() methods, for IDE completion - foreach ($this->getTable()->getColumns() as $column) { - $script .= " - * @method $queryClass groupBy" . $column->getPhpName() . "() Group by the " . $column->getName() . " column"; - } - - // override the signature of ModelCriteria::left-, right- and innerJoin to specify the class of the returned object, for IDE completion - $script .= " - * - * @method $queryClass leftJoin(\$relation) Adds a LEFT JOIN clause to the query - * @method $queryClass rightJoin(\$relation) Adds a RIGHT JOIN clause to the query - * @method $queryClass innerJoin(\$relation) Adds a INNER JOIN clause to the query - *"; - - // magic XXXjoinYYY() methods, for IDE completion - foreach ($this->getTable()->getForeignKeys() as $fk) { - $relationName = $this->getFKPhpNameAffix($fk); - - $script .= " - * @method $queryClass leftJoin" . $relationName . "(\$relationAlias = '') Adds a LEFT JOIN clause to the query using the " . $relationName . " relation - * @method $queryClass rightJoin" . $relationName . "(\$relationAlias = '') Adds a RIGHT JOIN clause to the query using the " . $relationName . " relation - * @method $queryClass innerJoin" . $relationName . "(\$relationAlias = '') Adds a INNER JOIN clause to the query using the " . $relationName . " relation - *"; - } - foreach ($this->getTable()->getReferrers() as $refFK) { - $relationName = $this->getRefFKPhpNameAffix($refFK); - - $script .= " - * @method $queryClass leftJoin" . $relationName . "(\$relationAlias = '') Adds a LEFT JOIN clause to the query using the " . $relationName . " relation - * @method $queryClass rightJoin" . $relationName . "(\$relationAlias = '') Adds a RIGHT JOIN clause to the query using the " . $relationName . " relation - * @method $queryClass innerJoin" . $relationName . "(\$relationAlias = '') Adds a INNER JOIN clause to the query using the " . $relationName . " relation - *"; - } - - // override the signature of ModelCriteria::findOne() to specify the class of the returned object, for IDE completion - $script .= " - * @method $modelClass findOne(PropelPDO \$con = null) Return the first $modelClass matching the query - * @method $modelClass findOneOrCreate(PropelPDO \$con = null) Return the first $modelClass matching the query, or a new $modelClass object populated from the query conditions when no match is found - *"; - - // magic findBy() methods, for IDE completion - foreach ($this->getTable()->getColumns() as $column) { - $script .= " - * @method $modelClass findOneBy" . $column->getPhpName() . "(" . $column->getPhpType() . " \$" . $column->getName() . ") Return the first $modelClass filtered by the " . $column->getName() . " column"; - } - $script .= " - *"; - foreach ($this->getTable()->getColumns() as $column) { - $script .= " - * @method array findBy" . $column->getPhpName() . "(" . $column->getPhpType() . " \$" . $column->getName() . ") Return $modelClass objects filtered by the " . $column->getName() . " column"; - } - - $script .= " - * - * @package propel.generator.".$this->getPackage()." - */ -abstract class ".$this->getClassname()." extends " . $parentClass . " -{ -"; - } - - /** - * Specifies the methods that are added as part of the stub object class. - * - * By default there are no methods for the empty stub classes; override this method - * if you want to change that behavior. - * - * @see ObjectBuilder::addClassBody() - */ - protected function addClassBody(&$script) - { - // namespaces - $this->declareClasses('ModelCriteria', 'Criteria', 'ModelJoin'); - $this->declareClassFromBuilder($this->getStubQueryBuilder()); - $this->declareClassFromBuilder($this->getStubPeerBuilder()); - - // apply behaviors - $this->applyBehaviorModifier('queryAttributes', $script, " "); - $this->addConstructor($script); - $this->addFactory($script); - $this->addFindPk($script); - $this->addFindPks($script); - $this->addFilterByPrimaryKey($script); - $this->addFilterByPrimaryKeys($script); - foreach ($this->getTable()->getColumns() as $col) { - $this->addFilterByCol($script, $col); - } - foreach ($this->getTable()->getForeignKeys() as $fk) { - $this->addFilterByFK($script, $fk); - $this->addJoinFk($script, $fk); - $this->addUseFKQuery($script, $fk); - } - foreach ($this->getTable()->getReferrers() as $refFK) { - $this->addFilterByRefFK($script, $refFK); - $this->addJoinRefFk($script, $refFK); - $this->addUseRefFKQuery($script, $refFK); - } - foreach ($this->getTable()->getCrossFks() as $fkList) { - list($refFK, $crossFK) = $fkList; - $this->addFilterByCrossFK($script, $refFK, $crossFK); - } - $this->addPrune($script); - $this->addBasePreSelect($script); - $this->addBasePreDelete($script); - $this->addBasePostDelete($script); - $this->addBasePreUpdate($script); - $this->addBasePostUpdate($script); - // apply behaviors - $this->applyBehaviorModifier('queryMethods', $script, " "); - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - $this->applyBehaviorModifier('queryFilter', $script, ""); - } - - /** - * Adds the constructor for this object. - * @param string &$script The script will be modified in this method. - * @see addConstructor() - */ - protected function addConstructor(&$script) - { - $this->addConstructorComment($script); - $this->addConstructorOpen($script); - $this->addConstructorBody($script); - $this->addConstructorClose($script); - } - - /** - * Adds the comment for the constructor - * @param string &$script The script will be modified in this method. - **/ - protected function addConstructorComment(&$script) - { - $script .= " - /** - * Initializes internal state of ".$this->getClassname()." object. - * - * @param string \$dbName The dabase name - * @param string \$modelName The phpName of a model, e.g. 'Book' - * @param string \$modelAlias The alias for the model in this query, e.g. 'b' - */"; - } - - /** - * Adds the function declaration for the constructor - * @param string &$script The script will be modified in this method. - **/ - protected function addConstructorOpen(&$script) - { - $table = $this->getTable(); - $script .= " - public function __construct(\$dbName = '" . $table->getDatabase()->getName() . "', \$modelName = '" . addslashes($this->getNewStubObjectBuilder($table)->getFullyQualifiedClassname()) . "', \$modelAlias = null) - {"; - } - - /** - * Adds the function body for the constructor - * @param string &$script The script will be modified in this method. - **/ - protected function addConstructorBody(&$script) - { - $script .= " - parent::__construct(\$dbName, \$modelName, \$modelAlias);"; - } - - /** - * Adds the function close for the constructor - * @param string &$script The script will be modified in this method. - **/ - protected function addConstructorClose(&$script) - { - $script .= " - } -"; - } - - /** - * Adds the factory for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addFactory(&$script) - { - $this->addFactoryComment($script); - $this->addFactoryOpen($script); - $this->addFactoryBody($script); - $this->addFactoryClose($script); - } - - /** - * Adds the comment for the factory - * @param string &$script The script will be modified in this method. - **/ - protected function addFactoryComment(&$script) - { - $classname = $this->getNewStubQueryBuilder($this->getTable())->getClassname(); - $script .= " - /** - * Returns a new " . $classname . " object. - * - * @param string \$modelAlias The alias of a model in the query - * @param Criteria \$criteria Optional Criteria to build the query from - * - * @return " . $classname . " - */"; - } - - /** - * Adds the function declaration for the factory - * @param string &$script The script will be modified in this method. - **/ - protected function addFactoryOpen(&$script) - { - $script .= " - public static function create(\$modelAlias = null, \$criteria = null) - {"; - } - - /** - * Adds the function body for the factory - * @param string &$script The script will be modified in this method. - **/ - protected function addFactoryBody(&$script) - { - $classname = $this->getNewStubQueryBuilder($this->getTable())->getClassname(); - $script .= " - if (\$criteria instanceof " . $classname . ") { - return \$criteria; - } - \$query = new " . $classname . "(); - if (null !== \$modelAlias) { - \$query->setModelAlias(\$modelAlias); - } - if (\$criteria instanceof Criteria) { - \$query->mergeWith(\$criteria); - } - return \$query;"; - } - - /** - * Adds the function close for the factory - * @param string &$script The script will be modified in this method. - **/ - protected function addFactoryClose(&$script) - { - $script .= " - } -"; - } - - - /** - * Adds the findPk method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addFindPk(&$script) - { - $table = $this->getTable(); - $pks = $table->getPrimaryKey(); - $class = $class = $this->getStubObjectBuilder()->getClassname(); - $script .= " - /** - * Find object by primary key"; - if (count($pks) === 1) { - $pkType = 'mixed'; - $script .= " - * Use instance pooling to avoid a database query if the object exists - * - * \$obj = \$c->findPk(12, \$con);"; - } else { - $examplePk = array_slice(array(12, 34, 56, 78, 91), 0, count($pks)); - $colNames = array(); - foreach ($pks as $col) { - $colNames[]= '$' . $col->getName(); - } - $pkType = 'array['. join($colNames, ', ') . ']'; - $script .= " - * - * \$obj = \$c->findPk(array(" . join($examplePk, ', ') . "), \$con);"; - } - $script .= " - * - * @param " . $pkType . " \$key Primary key to use for the query - * @param PropelPDO \$con an optional connection object - * - * @return " . $class . "|array|mixed the result, formatted by the current formatter - */ - public function findPk(\$key, \$con = null) - {"; - if (count($pks) === 1) { - $poolKeyHashParams = '$key'; - } else { - $poolKeyHashParams = array(); - for ($i = 0, $count = count($pks); $i < $count; $i++) { - $poolKeyHashParams[]= '$key[' . $i . ']'; - } - } - // tip: we don't use findOne() to avoid putting an unecessary LIMIT 1 statement, - // which may be costly on platforms not natively supporting LIMIT (like Oracle) - $script .= " - if ((null !== (\$obj = ".$this->getPeerClassname()."::getInstanceFromPool(".$this->getPeerBuilder()->getInstancePoolKeySnippet($poolKeyHashParams)."))) && \$this->getFormatter()->isObjectFormatter()) { - // the object is alredy in the instance pool - return \$obj; - } else { - // the object has not been requested yet, or the formatter is not an object formatter - \$criteria = \$this->isKeepQuery() ? clone \$this : \$this; - \$stmt = \$criteria - ->filterByPrimaryKey(\$key) - ->getSelectStatement(\$con); - return \$criteria->getFormatter()->init(\$criteria)->formatOne(\$stmt); - } - } -"; - } - - /** - * Adds the findPks method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addFindPks(&$script) - { - $table = $this->getTable(); - $pks = $table->getPrimaryKey(); - $count = count($pks); - $script .= " - /** - * Find objects by primary key - * "; - if ($count === 1) { - $script .= " - * \$objs = \$c->findPks(array(12, 56, 832), \$con);"; - } else { - $script .= " - * \$objs = \$c->findPks(array(array(12, 56), array(832, 123), array(123, 456)), \$con);"; - } - $script .= " - * - * @param array \$keys Primary keys to use for the query - * @param PropelPDO \$con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function findPks(\$keys, \$con = null) - { - \$criteria = \$this->isKeepQuery() ? clone \$this : \$this; - return \$this - ->filterByPrimaryKeys(\$keys) - ->find(\$con); - } -"; - } - - /** - * Adds the filterByPrimaryKey method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addFilterByPrimaryKey(&$script) - { - $script .= " - /** - * Filter the query by primary key - * - * @param mixed \$key Primary key to use for the query - * - * @return " . $this->getStubQueryBuilder()->getClassname() . " The current query, for fluid interface - */ - public function filterByPrimaryKey(\$key) - {"; - $table = $this->getTable(); - $pks = $table->getPrimaryKey(); - if (count($pks) === 1) { - // simple primary key - $col = $pks[0]; - $const = $this->getColumnConstant($col); - $script .= " - return \$this->addUsingAlias($const, \$key, Criteria::EQUAL);"; - } else { - // composite primary key - $i = 0; - foreach ($pks as $col) { - $const = $this->getColumnConstant($col); - $script .= " - \$this->addUsingAlias($const, \$key[$i], Criteria::EQUAL);"; - $i++; - } - $script .= " - - return \$this;"; - } - $script .= " - } -"; - } - - /** - * Adds the filterByPrimaryKey method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addFilterByPrimaryKeys(&$script) - { - $script .= " - /** - * Filter the query by a list of primary keys - * - * @param array \$keys The list of primary key to use for the query - * - * @return " . $this->getStubQueryBuilder()->getClassname() . " The current query, for fluid interface - */ - public function filterByPrimaryKeys(\$keys) - {"; - $table = $this->getTable(); - $pks = $table->getPrimaryKey(); - if (count($pks) === 1) { - // simple primary key - $col = $pks[0]; - $const = $this->getColumnConstant($col); - $script .= " - return \$this->addUsingAlias($const, \$keys, Criteria::IN);"; - } else { - // composite primary key - $script .= " - foreach (\$keys as \$key) {"; - $i = 0; - foreach ($pks as $col) { - $const = $this->getColumnConstant($col); - $script .= " - \$cton$i = \$this->getNewCriterion($const, \$key[$i], Criteria::EQUAL);"; - if ($i>0) { - $script .= " - \$cton0->addAnd(\$cton$i);"; - } - $i++; - } - $script .= " - \$this->addOr(\$cton0); - }"; - $script .= " - - return \$this;"; - } - $script .= " - } -"; - } - - /** - * Adds the filterByCol method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addFilterByCol(&$script, $col) - { - $colPhpName = $col->getPhpName(); - $colName = $col->getName(); - $variableName = $col->getStudlyPhpName(); - $qualifiedName = $this->getColumnConstant($col); - $script .= " - /** - * Filter the query on the $colName column - * "; - if ($col->isNumericType() || $col->isTemporalType()) { - $script .= " - * @param " . $col->getPhpType() . "|array \$$variableName The value to use as filter. - * Accepts an associative array('min' => \$minValue, 'max' => \$maxValue)"; - } elseif ($col->isTextType()) { - $script .= " - * @param string \$$variableName The value to use as filter. - * Accepts wildcards (* and % trigger a LIKE)"; - } elseif ($col->isBooleanType()) { - $script .= " - * @param boolean|string \$$variableName The value to use as filter. - * Accepts strings ('false', 'off', '-', 'no', 'n', and '0' are false, the rest is true)"; - } else { - $script .= " - * @param mixed \$$variableName The value to use as filter"; - } - $script .= " - * @param string \$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return " . $this->getStubQueryBuilder()->getClassname() . " The current query, for fluid interface - */ - public function filterBy$colPhpName(\$$variableName = null, \$comparison = null) - {"; - if ($col->isPrimaryKey() && ($col->getType() == PropelTypes::INTEGER || $col->getType() == PropelTypes::BIGINT)) { - $script .= " - if (is_array(\$$variableName) && null === \$comparison) { - \$comparison = Criteria::IN; - }"; - } elseif ($col->isNumericType() || $col->isTemporalType()) { - $script .= " - if (is_array(\$$variableName)) { - \$useMinMax = false; - if (isset(\${$variableName}['min'])) { - \$this->addUsingAlias($qualifiedName, \${$variableName}['min'], Criteria::GREATER_EQUAL); - \$useMinMax = true; - } - if (isset(\${$variableName}['max'])) { - \$this->addUsingAlias($qualifiedName, \${$variableName}['max'], Criteria::LESS_EQUAL); - \$useMinMax = true; - } - if (\$useMinMax) { - return \$this; - } - if (null === \$comparison) { - \$comparison = Criteria::IN; - } - }"; - } elseif ($col->isTextType()) { - $script .= " - if (null === \$comparison) { - if (is_array(\$$variableName)) { - \$comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', \$$variableName)) { - \$$variableName = str_replace('*', '%', \$$variableName); - \$comparison = Criteria::LIKE; - } - }"; - } elseif ($col->isBooleanType()) { - $script .= " - if (is_string(\$$variableName)) { - \$$colName = in_array(strtolower(\$$variableName), array('false', 'off', '-', 'no', 'n', '0')) ? false : true; - }"; - } - $script .= " - return \$this->addUsingAlias($qualifiedName, \$$variableName, \$comparison); - } -"; - } - - /** - * Adds the filterByFk method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addFilterByFk(&$script, $fk) - { - $table = $this->getTable(); - $queryClass = $this->getStubQueryBuilder()->getClassname(); - $fkTable = $this->getForeignTable($fk); - $fkPhpName = $this->getNewStubObjectBuilder($fkTable)->getClassname(); - $relationName = $this->getFKPhpNameAffix($fk); - $objectName = '$' . $fkTable->getStudlyPhpName(); - $script .= " - /** - * Filter the query by a related $fkPhpName object - * - * @param $fkPhpName $objectName the related object to use as filter - * @param string \$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return $queryClass The current query, for fluid interface - */ - public function filterBy$relationName($objectName, \$comparison = null) - { - return \$this"; - foreach ($fk->getLocalForeignMapping() as $localColumn => $foreignColumn) { - $localColumnObject = $table->getColumn($localColumn); - $foreignColumnObject = $fkTable->getColumn($foreignColumn); - $script .= " - ->addUsingAlias(" . $this->getColumnConstant($localColumnObject) . ", " . $objectName . "->get" . $foreignColumnObject->getPhpName() . "(), \$comparison)"; - } - $script .= "; - } -"; - } - - /** - * Adds the filterByRefFk method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addFilterByRefFk(&$script, $fk) - { - $table = $this->getTable(); - $queryClass = $this->getStubQueryBuilder()->getClassname(); - $fkTable = $this->getTable()->getDatabase()->getTable($fk->getTableName()); - $fkPhpName = $this->getNewStubObjectBuilder($fkTable)->getClassname(); - $relationName = $this->getRefFKPhpNameAffix($fk); - $objectName = '$' . $fkTable->getStudlyPhpName(); - $script .= " - /** - * Filter the query by a related $fkPhpName object - * - * @param $fkPhpName $objectName the related object to use as filter - * @param string \$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return $queryClass The current query, for fluid interface - */ - public function filterBy$relationName($objectName, \$comparison = null) - { - return \$this"; - foreach ($fk->getForeignLocalMapping() as $localColumn => $foreignColumn) { - $localColumnObject = $table->getColumn($localColumn); - $foreignColumnObject = $fkTable->getColumn($foreignColumn); - $script .= " - ->addUsingAlias(" . $this->getColumnConstant($localColumnObject) . ", " . $objectName . "->get" . $foreignColumnObject->getPhpName() . "(), \$comparison)"; - } - $script .= "; - } -"; - } - - /** - * Adds the joinFk method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addJoinFk(&$script, $fk) - { - $table = $this->getTable(); - $queryClass = $this->getStubQueryBuilder()->getClassname(); - $fkTable = $this->getForeignTable($fk); - $relationName = $this->getFKPhpNameAffix($fk); - $joinType = $this->getJoinType($fk); - $this->addJoinRelated($script, $fkTable, $queryClass, $relationName, $joinType); - } - - /** - * Adds the joinRefFk method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addJoinRefFk(&$script, $fk) - { - $table = $this->getTable(); - $queryClass = $this->getStubQueryBuilder()->getClassname(); - $fkTable = $this->getTable()->getDatabase()->getTable($fk->getTableName()); - $relationName = $this->getRefFKPhpNameAffix($fk); - $joinType = $this->getJoinType($fk); - $this->addJoinRelated($script, $fkTable, $queryClass, $relationName, $joinType); - } - - /** - * Adds a joinRelated method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addJoinRelated(&$script, $fkTable, $queryClass, $relationName, $joinType) - { - $script .= " - /** - * Adds a JOIN clause to the query using the " . $relationName . " relation - * - * @param string \$relationAlias optional alias for the relation - * @param string \$joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return ". $queryClass . " The current query, for fluid interface - */ - public function join" . $relationName . "(\$relationAlias = '', \$joinType = " . $joinType . ") - { - \$tableMap = \$this->getTableMap(); - \$relationMap = \$tableMap->getRelation('" . $relationName . "'); - - // 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, '" . $relationName . "'); - } - - return \$this; - } -"; - } - - /** - * Adds the useFkQuery method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addUseFkQuery(&$script, $fk) - { - $table = $this->getTable(); - $fkTable = $this->getForeignTable($fk); - $queryClass = $this->getNewStubQueryBuilder($fkTable)->getClassname(); - $relationName = $this->getFKPhpNameAffix($fk); - $joinType = $this->getJoinType($fk); - $this->addUseRelatedQuery($script, $fkTable, $queryClass, $relationName, $joinType); - } - - /** - * Adds the useFkQuery method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addUseRefFkQuery(&$script, $fk) - { - $table = $this->getTable(); - $fkTable = $this->getTable()->getDatabase()->getTable($fk->getTableName()); - $queryClass = $this->getNewStubQueryBuilder($fkTable)->getClassname(); - $relationName = $this->getRefFKPhpNameAffix($fk); - $joinType = $this->getJoinType($fk); - $this->addUseRelatedQuery($script, $fkTable, $queryClass, $relationName, $joinType); - } - - /** - * Adds a useRelatedQuery method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addUseRelatedQuery(&$script, $fkTable, $queryClass, $relationName, $joinType) - { - $script .= " - /** - * Use the $relationName relation " . $fkTable->getPhpName() . " 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 $queryClass A secondary query class using the current class as primary query - */ - public function use" . $relationName . "Query(\$relationAlias = '', \$joinType = " . $joinType . ") - { - return \$this - ->join" . $relationName . "(\$relationAlias, \$joinType) - ->useQuery(\$relationAlias ? \$relationAlias : '$relationName', '$queryClass'); - } -"; - } - - protected function addFilterByCrossFK(&$script, $refFK, $crossFK) - { - $queryClass = $this->getStubQueryBuilder()->getClassname(); - $crossRefTable = $crossFK->getTable(); - $foreignTable = $crossFK->getForeignTable(); - $fkPhpName = $foreignTable->getPhpName(); - $crossTableName = $crossRefTable->getName(); - $relName = $this->getFKPhpNameAffix($crossFK, $plural = false); - $objectName = '$' . $foreignTable->getStudlyPhpName(); - $relationName = $this->getRefFKPhpNameAffix($refFK, $plural = false); - $script .= " - /** - * Filter the query by a related $fkPhpName object - * using the $crossTableName table as cross reference - * - * @param $fkPhpName $objectName the related object to use as filter - * @param string \$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return $queryClass The current query, for fluid interface - */ - public function filterBy{$relName}($objectName, \$comparison = Criteria::EQUAL) - { - return \$this - ->use{$relationName}Query() - ->filterBy{$relName}($objectName, \$comparison) - ->endUse(); - } - "; - } - - /** - * Adds the prune method for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addPrune(&$script) - { - $table = $this->getTable(); - $class = $this->getStubObjectBuilder()->getClassname(); - $objectName = '$' . $table->getStudlyPhpName(); - $script .= " - /** - * Exclude object from result - * - * @param $class $objectName Object to remove from the list of results - * - * @return " . $this->getStubQueryBuilder()->getClassname() . " The current query, for fluid interface - */ - public function prune($objectName = null) - { - if ($objectName) {"; - $pks = $table->getPrimaryKey(); - if (count($pks) > 1) { - $i = 0; - $conditions = array(); - foreach ($pks as $col) { - $const = $this->getColumnConstant($col); - $condName = "'pruneCond" . $i . "'"; - $conditions[]= $condName; - $script .= " - \$this->addCond(". $condName . ", \$this->getAliasedColName($const), " . $objectName . "->get" . $col->getPhpName() . "(), Criteria::NOT_EQUAL);"; - $i++; - } - $conditionsString = implode(', ', $conditions); - $script .= " - \$this->combine(array(" . $conditionsString . "), Criteria::LOGICAL_OR);"; - } else { - $col = $pks[0]; - $const = $this->getColumnConstant($col); - $script .= " - \$this->addUsingAlias($const, " . $objectName . "->get" . $col->getPhpName() . "(), Criteria::NOT_EQUAL);"; - } - $script .= " - } - - return \$this; - } -"; - } - - /** - * Adds the basePreSelect hook for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addBasePreSelect(&$script) - { - $behaviorCode = ''; - $this->applyBehaviorModifier('preSelectQuery', $behaviorCode, " "); - if (!$behaviorCode) { - return; - } - $script .= " - /** - * Code to execute before every SELECT statement - * - * @param PropelPDO \$con The connection object used by the query - */ - protected function basePreSelect(PropelPDO \$con) - {" . $behaviorCode . " - - return \$this->preSelect(\$con); - } -"; - } - - /** - * Adds the basePreDelete hook for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addBasePreDelete(&$script) - { - $behaviorCode = ''; - $this->applyBehaviorModifier('preDeleteQuery', $behaviorCode, " "); - if (!$behaviorCode) { - return; - } - $script .= " - /** - * Code to execute before every DELETE statement - * - * @param PropelPDO \$con The connection object used by the query - */ - protected function basePreDelete(PropelPDO \$con) - {" . $behaviorCode . " - - return \$this->preDelete(\$con); - } -"; - } - - /** - * Adds the basePostDelete hook for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addBasePostDelete(&$script) - { - $behaviorCode = ''; - $this->applyBehaviorModifier('postDeleteQuery', $behaviorCode, " "); - if (!$behaviorCode) { - return; - } - $script .= " - /** - * Code to execute after every DELETE statement - * - * @param int \$affectedRows the number of deleted rows - * @param PropelPDO \$con The connection object used by the query - */ - protected function basePostDelete(\$affectedRows, PropelPDO \$con) - {" . $behaviorCode . " - - return \$this->postDelete(\$affectedRows, \$con); - } -"; - } - - /** - * Adds the basePreUpdate hook for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addBasePreUpdate(&$script) - { - $behaviorCode = ''; - $this->applyBehaviorModifier('preUpdateQuery', $behaviorCode, " "); - if (!$behaviorCode) { - return; - } - $script .= " - /** - * Code to execute before every UPDATE statement - * - * @param array \$values The associatiove array of columns and values for the update - * @param PropelPDO \$con The connection object used by the query - * @param boolean \$forceIndividualSaves If false (default), the resulting call is a BasePeer::doUpdate(), ortherwise it is a series of save() calls on all the found objects - */ - protected function basePreUpdate(&\$values, PropelPDO \$con, \$forceIndividualSaves = false) - {" . $behaviorCode . " - - return \$this->preUpdate(\$values, \$con, \$forceIndividualSaves); - } -"; - } - - /** - * Adds the basePostUpdate hook for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addBasePostUpdate(&$script) - { - $behaviorCode = ''; - $this->applyBehaviorModifier('postUpdateQuery', $behaviorCode, " "); - if (!$behaviorCode) { - return; - } - $script .= " - /** - * Code to execute after every UPDATE statement - * - * @param int \$affectedRows the number of udated rows - * @param PropelPDO \$con The connection object used by the query - */ - protected function basePostUpdate(\$affectedRows, PropelPDO \$con) - {" . $behaviorCode . " - - return \$this->postUpdate(\$affectedRows, \$con); - } -"; - } - - /** - * Checks whether any registered behavior on that table has a modifier for a hook - * @param string $hookName The name of the hook as called from one of this class methods, e.g. "preSave" - * @return boolean - */ - public function hasBehaviorModifier($hookName, $modifier = null) - { - return parent::hasBehaviorModifier($hookName, 'QueryBuilderModifier'); - } - - /** - * Checks whether any registered behavior on that table has a modifier for a hook - * @param string $hookName The name of the hook as called from one of this class methods, e.g. "preSave" - * @param string &$script The script will be modified in this method. - */ - public function applyBehaviorModifier($hookName, &$script, $tab = " ") - { - return $this->applyBehaviorModifierBase($hookName, 'QueryBuilderModifier', $script, $tab); - } - - /** - * Checks whether any registered behavior content creator on that table exists a contentName - * @param string $contentName The name of the content as called from one of this class methods, e.g. "parentClassname" - */ - public function getBehaviorContent($contentName) - { - return $this->getBehaviorContentBase($contentName, 'QueryBuilderModifier'); - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/om/QueryInheritanceBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/om/QueryInheritanceBuilder.php deleted file mode 100644 index 316a87949c..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/om/QueryInheritanceBuilder.php +++ /dev/null @@ -1,276 +0,0 @@ -getBuildProperty('basePrefix') . $this->getNewStubQueryInheritanceBuilder($this->getChild())->getUnprefixedClassname(); - } - - /** - * Gets the package for the [base] object classes. - * @return string - */ - public function getPackage() - { - return parent::getPackage() . ".om"; - } - - public function getNamespace() - { - if ($namespace = parent::getNamespace()) { - if ($this->getGeneratorConfig() && $omns = $this->getGeneratorConfig()->getBuildProperty('namespaceOm')) { - return $namespace . '\\' . $omns; - } else { - return $namespace; - } - } - } - - /** - * Set the child object that we're operating on currrently. - * @param $child Inheritance - */ - public function setChild(Inheritance $child) - { - $this->child = $child; - } - - /** - * Returns the child object we're operating on currently. - * @return Inheritance - * @throws BuildException - if child was not set. - */ - public function getChild() - { - if (!$this->child) { - throw new BuildException("The PHP5MultiExtendObjectBuilder needs to be told which child class to build (via setChild() method) before it can build the stub class."); - } - return $this->child; - } - - /** - * Adds the include() statements for files that this class depends on or utilizes. - * @param string &$script The script will be modified in this method. - */ - protected function addIncludes(&$script) - { - $requiredClassFilePath = $this->getStubQueryBuilder()->getClassFilePath(); - - $script .=" -require '".$requiredClassFilePath."'; -"; - } // addIncludes() - - /** - * Adds class phpdoc comment and openning of class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassOpen(&$script) - { - $table = $this->getTable(); - $tableName = $table->getName(); - $tableDesc = $table->getDescription(); - - $baseBuilder = $this->getStubQueryBuilder(); - $this->declareClassFromBuilder($baseBuilder); - $baseClassname = $baseBuilder->getClassname(); - - $script .= " -/** - * Skeleton subclass for representing a query for one of the subclasses of the '$tableName' table. - * - * $tableDesc - *"; - if ($this->getBuildProperty('addTimeStamp')) { - $now = strftime('%c'); - $script .= " - * This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on: - * - * $now - *"; - } - $script .= " - * You should add additional methods to this class to meet the - * application requirements. This class will only be generated as - * long as it does not already exist in the output directory. - * - * @package propel.generator.".$this->getPackage()." - */ -class " .$this->getClassname() . " extends " . $baseClassname . " { -"; - } - - /** - * Specifies the methods that are added as part of the stub object class. - * - * By default there are no methods for the empty stub classes; override this method - * if you want to change that behavior. - * - * @see ObjectBuilder::addClassBody() - */ - protected function addClassBody(&$script) - { - $this->declareClassFromBuilder($this->getStubPeerBuilder()); - $this->declareClasses('PropelPDO', 'Criteria'); - $this->addFactory($script); - $this->addPreSelect($script); - $this->addPreUpdate($script); - $this->addPreDelete($script); - $this->addDoDeleteAll($script); - } - - /** - * Adds the factory for this object. - * @param string &$script The script will be modified in this method. - */ - protected function addFactory(&$script) - { - $builder = $this->getNewStubQueryInheritanceBuilder($this->getChild()); - $this->declareClassFromBuilder($builder); - $classname = $builder->getClassname(); - $script .= " - /** - * Returns a new " . $classname . " object. - * - * @param string \$modelAlias The alias of a model in the query - * @param Criteria \$criteria Optional Criteria to build the query from - * - * @return " . $classname . " - */ - public static function create(\$modelAlias = null, \$criteria = null) - { - if (\$criteria instanceof " . $classname . ") { - return \$criteria; - } - \$query = new " . $classname . "(); - if (null !== \$modelAlias) { - \$query->setModelAlias(\$modelAlias); - } - if (\$criteria instanceof Criteria) { - \$query->mergeWith(\$criteria); - } - return \$query; - } -"; - } - - protected function addPreSelect(&$script) - { - $child = $this->getChild(); - $col = $child->getColumn(); - - $script .= " - /** - * Filters the query to target only " . $child->getClassname() . " objects. - */ - public function preSelect(PropelPDO \$con) - { - " . $this->getClassKeyCondition() . " - } -"; - } - - protected function addPreUpdate(&$script) - { - $child = $this->getChild(); - $col = $child->getColumn(); - - $script .= " - /** - * Filters the query to target only " . $child->getClassname() . " objects. - */ - public function preUpdate(&\$values, PropelPDO \$con, \$forceIndividualSaves = false) - { - " . $this->getClassKeyCondition() . " - } -"; - } - - protected function addPreDelete(&$script) - { - $child = $this->getChild(); - $col = $child->getColumn(); - - $script .= " - /** - * Filters the query to target only " . $child->getClassname() . " objects. - */ - public function preDelete(PropelPDO \$con) - { - " . $this->getClassKeyCondition() . " - } -"; - } - - protected function getClassKeyCondition() - { - $child = $this->getChild(); - $col = $child->getColumn(); - return "\$this->addUsingAlias(" . $col->getConstantName() . ", " . $this->getPeerClassname()."::CLASSKEY_".strtoupper($child->getKey()).");"; - } - - protected function addDoDeleteAll(&$script) - { - $child = $this->getChild(); - - $script .= " - /** - * Issue a DELETE query based on the current ModelCriteria deleting all rows in the table - * Having the " . $child->getClassname() . " class. - * This method is called by ModelCriteria::deleteAll() inside a transaction - * - * @param PropelPDO \$con a connection object - * - * @return integer the number of deleted rows - */ - public function doDeleteAll(\$con) - { - // condition on class key is already added in preDelete() - return parent::doDelete(\$con); - } -"; - } - - /** - * Closes class. - * @param string &$script The script will be modified in this method. - */ - protected function addClassClose(&$script) - { - $script .= " -} // " . $this->getClassname() . " -"; - } - -} // MultiExtensionQueryBuilder diff --git a/airtime_mvc/library/propel/generator/lib/builder/sql/DDLBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/sql/DDLBuilder.php deleted file mode 100644 index db7fffa79d..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/sql/DDLBuilder.php +++ /dev/null @@ -1,166 +0,0 @@ - - * @package propel.generator.builder.sql - */ -abstract class DDLBuilder extends DataModelBuilder -{ - - /** - * Builds the SQL for current table and returns it as a string. - * - * This is the main entry point and defines a basic structure that classes should follow. - * In most cases this method will not need to be overridden by subclasses. - * - * @return string The resulting SQL DDL. - */ - public function build() - { - $script = ""; - $this->addTable($script); - $this->addIndices($script); - $this->addForeignKeys($script); - return $script; - } - - /** - * Gets the name to use for creating a sequence for the current table. - * - * This will create a new name or use one specified in an id-method-parameter - * tag, if specified. - * - * @return string Sequence name for this table. - */ - public function getSequenceName() - { - $table = $this->getTable(); - static $longNamesMap = array(); - $result = null; - if ($table->getIdMethod() == IDMethod::NATIVE) { - $idMethodParams = $table->getIdMethodParameters(); - $maxIdentifierLength = $table->getDatabase()->getPlatform()->getMaxColumnNameLength(); - if (empty($idMethodParams)) { - if (strlen($table->getName() . "_SEQ") > $maxIdentifierLength) { - if (!isset($longNamesMap[$table->getName()])) { - $longNamesMap[$table->getName()] = strval(count($longNamesMap) + 1); - } - $result = substr($table->getName(), 0, $maxIdentifierLength - strlen("_SEQ_" . $longNamesMap[$table->getName()])) . "_SEQ_" . $longNamesMap[$table->getName()]; - } - else { - $result = substr($table->getName(), 0, $maxIdentifierLength -4) . "_SEQ"; - } - } else { - $result = substr($idMethodParams[0]->getValue(), 0, $maxIdentifierLength); - } - } - return $result; - } - - /** - * Builds the DDL SQL for a Column object. - * @return string - */ - public function getColumnDDL(Column $col) - { - $platform = $this->getPlatform(); - $domain = $col->getDomain(); - - $sb = ""; - $sb .= $this->quoteIdentifier($col->getName()) . " "; - $sb .= $domain->getSqlType(); - if ($platform->hasSize($domain->getSqlType())) { - $sb .= $domain->printSize(); - } - $sb .= " "; - $sb .= $col->getDefaultSetting() . " "; - $sb .= $col->getNotNullString() . " "; - $sb .= $col->getAutoIncrementString(); - - return trim($sb); - } - - /** - * Creates a delimiter-delimited string list of column names, quoted using quoteIdentifier(). - * @param array Column[] or string[] - * @param string $delim The delimiter to use in separating the column names. - * @return string - */ - public function getColumnList($columns, $delim=',') - { - $list = array(); - foreach ($columns as $col) { - if ($col instanceof Column) { - $col = $col->getName(); - } - $list[] = $this->quoteIdentifier($col); - } - return implode($delim, $list); - } - - /** - * This function adds any _database_ start/initialization SQL. - * This is designed to be called for a database, not a specific table, hence it is static. - * @return string The DDL is returned as astring. - */ - public static function getDatabaseStartDDL() - { - return ''; - } - - /** - * This function adds any _database_ end/cleanup SQL. - * This is designed to be called for a database, not a specific table, hence it is static. - * @return string The DDL is returned as astring. - */ - public static function getDatabaseEndDDL() - { - return ''; - } - - /** - * Resets any static variables between building a SQL file for a database. - * - * Theoretically, Propel could build multiple .sql files for multiple databases; in - * many cases we don't want static values to persist between these. This method provides - * a way to clear out static values between iterations, if the subclasses choose to implement - * it. - */ - public static function reset() - { - // nothing by default - } - - /** - * Adds table definition. - * @param string &$script The script will be modified in this method. - */ - abstract protected function addTable(&$script); - - /** - * Adds index definitions. - * @param string &$script The script will be modified in this method. - */ - abstract protected function addIndices(&$script); - - /** - * Adds foreign key constraint definitions. - * @param string &$script The script will be modified in this method. - */ - abstract protected function addForeignKeys(&$script); - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/sql/DataSQLBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/sql/DataSQLBuilder.php deleted file mode 100644 index 0124986029..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/sql/DataSQLBuilder.php +++ /dev/null @@ -1,253 +0,0 @@ - - * @package propel.generator.builder.sql - */ -abstract class DataSQLBuilder extends DataModelBuilder -{ - - /** - * Perform any reset between runs of this builder. - * - * This can be used, for example, to clear any stored start/end SQL. - */ - public static function reset() - { - // does nothing by default - } - - /** - * Gets any SQL to place at the start of all the row inserts. - * - * @return string - */ - public static function getDatabaseStartSql() - { - return ''; - } - - /** - * Gets any SQL to place at the end of all the row inserts. - * - * @return string - */ - public static function getDatabaseEndSql() - { - return ''; - } - - /** - * Gets any SQL to place before row inserts for a new table. - * - * @return string - */ - public function getTableStartSql() - { - return ''; - } - - /** - * Gets any SQL to place at the end of row inserts for a table. - * - * @return string - */ - public function getTableEndSql() - { - return ''; - } - - /** - * The main method in this class, returns the SQL for INSERTing data into a row. - * @param DataRow $row The row to process. - * @return string - */ - public function buildRowSql(DataRow $row) - { - $sql = ""; - $platform = $this->getPlatform(); - $table = $this->getTable(); - - $sql .= "INSERT INTO ".$this->quoteIdentifier($this->getTable()->getName())." ("; - - // add column names to SQL - $colNames = array(); - foreach ($row->getColumnValues() as $colValue) { - $colNames[] = $this->quoteIdentifier($colValue->getColumn()->getName()); - } - - $sql .= implode(',', $colNames); - - $sql .= ") VALUES ("; - - $colVals = array(); - foreach ($row->getColumnValues() as $colValue) { - $colVals[] = $this->getColumnValueSql($colValue); - } - - $sql .= implode(',', $colVals); - $sql .= "); -"; - - return $sql; - } - - /** - * Gets the propertly escaped (and quoted) value for a column. - * @param ColumnValue $colValue - * @return mixed The proper value to be added to the string. - */ - protected function getColumnValueSql(ColumnValue $colValue) - { - $column = $colValue->getColumn(); - $method = 'get' . $column->getPhpNative() . 'Sql'; - return $this->$method($colValue->getValue()); - } - - - - /** - * Gets a representation of a binary value suitable for use in a SQL statement. - * Default behavior is true = 1, false = 0. - * @param boolean $value - * @return int - */ - protected function getBooleanSql($value) - { - return (int) $value; - } - - - /** - * Gets a representation of a BLOB/LONGVARBINARY value suitable for use in a SQL statement. - * @param mixed $blob Blob object or string data. - * @return string - */ - protected function getBlobSql($blob) - { - // they took magic __toString() out of PHP5.0.0; this sucks - if (is_object($blob)) { - return $this->getPlatform()->quote($blob->__toString()); - } else { - return $this->getPlatform()->quote($blob); - } - } - - /** - * Gets a representation of a CLOB/LONGVARCHAR value suitable for use in a SQL statement. - * @param mixed $clob Clob object or string data. - * @return string - */ - protected function getClobSql($clob) - { - // they took magic __toString() out of PHP5.0.0; this sucks - if (is_object($clob)) { - return $this->getPlatform()->quote($clob->__toString()); - } else { - return $this->getPlatform()->quote($clob); - } - } - - /** - * Gets a representation of a date value suitable for use in a SQL statement. - * @param string $value - * @return string - */ - protected function getDateSql($value) - { - return "'" . date('Y-m-d', strtotime($value)) . "'"; - } - - /** - * Gets a representation of a decimal value suitable for use in a SQL statement. - * @param double $value - * @return float - */ - protected function getDecimalSql($value) - { - return (float) $value; - } - - /** - * Gets a representation of a double value suitable for use in a SQL statement. - * @param double $value - * @return double - */ - protected function getDoubleSql($value) - { - return (double) $value; - } - - /** - * Gets a representation of a float value suitable for use in a SQL statement. - * @param float $value - * @return float - */ - protected function getFloatSql($value) - { - return (float) $value; - } - - /** - * Gets a representation of an integer value suitable for use in a SQL statement. - * @param int $value - * @return int - */ - protected function getIntSql($value) - { - return (int) $value; - } - - /** - * Gets a representation of a NULL value suitable for use in a SQL statement. - * @return null - */ - protected function getNullSql() - { - return 'NULL'; - } - - /** - * Gets a representation of a string value suitable for use in a SQL statement. - * @param string $value - * @return string - */ - protected function getStringSql($value) - { - return $this->getPlatform()->quote($value); - } - - /** - * Gets a representation of a time value suitable for use in a SQL statement. - * @param string $value - * @return string - */ - protected function getTimeSql($paramIndex, $value) - { - return "'" . date('H:i:s', strtotime($value)) . "'"; - } - - /** - * Gets a representation of a timestamp value suitable for use in a SQL statement. - * @param string $value - * @return string - */ - function getTimestampSql($value) - { - return "'" . date('Y-m-d H:i:s', strtotime($value)) . "'"; - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/sql/mssql/MssqlDDLBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/sql/mssql/MssqlDDLBuilder.php deleted file mode 100644 index 2bd923e3b0..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/sql/mssql/MssqlDDLBuilder.php +++ /dev/null @@ -1,173 +0,0 @@ - - * @package propel.generator.builder.sql.pgsql - */ -class MssqlDDLBuilder extends DDLBuilder -{ - - private static $dropCount = 0; - - /** - * - * @see parent::addDropStatement() - */ - protected function addDropStatements(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - foreach ($table->getForeignKeys() as $fk) { - $script .= " -IF EXISTS (SELECT 1 FROM sysobjects WHERE type ='RI' AND name='".$fk->getName()."') - ALTER TABLE ".$this->quoteIdentifier($table->getName())." DROP CONSTRAINT ".$this->quoteIdentifier($fk->getName())."; -"; - } - - - self::$dropCount++; - - $script .= " -IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = '".$table->getName()."') -BEGIN - DECLARE @reftable_".self::$dropCount." nvarchar(60), @constraintname_".self::$dropCount." nvarchar(60) - DECLARE refcursor CURSOR FOR - select reftables.name tablename, cons.name constraintname - from sysobjects tables, - sysobjects reftables, - sysobjects cons, - sysreferences ref - where tables.id = ref.rkeyid - and cons.id = ref.constid - and reftables.id = ref.fkeyid - and tables.name = '".$table->getName()."' - OPEN refcursor - FETCH NEXT from refcursor into @reftable_".self::$dropCount.", @constraintname_".self::$dropCount." - while @@FETCH_STATUS = 0 - BEGIN - exec ('alter table '+@reftable_".self::$dropCount."+' drop constraint '+@constraintname_".self::$dropCount.") - FETCH NEXT from refcursor into @reftable_".self::$dropCount.", @constraintname_".self::$dropCount." - END - CLOSE refcursor - DEALLOCATE refcursor - DROP TABLE ".$this->quoteIdentifier($table->getName())." -END -"; - } - - /** - * @see parent::addColumns() - */ - protected function addTable(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - $script .= " -/* ---------------------------------------------------------------------- */ -/* ".$table->getName()." */ -/* ---------------------------------------------------------------------- */ - -"; - - $this->addDropStatements($script); - - $script .= " - -CREATE TABLE ".$this->quoteIdentifier($table->getName())." -( - "; - - $lines = array(); - - foreach ($table->getColumns() as $col) { - $lines[] = $this->getColumnDDL($col); - } - - if ($table->hasPrimaryKey()) { - $lines[] = "CONSTRAINT ".$this->quoteIdentifier($table->getName()."_PK") . " PRIMARY KEY (".$this->getColumnList($table->getPrimaryKey()).")"; - } - - foreach ($table->getUnices() as $unique ) { - $lines[] = "UNIQUE (".$this->getColumnList($unique->getColumns()).")"; - } - - $sep = ", - "; - $script .= implode($sep, $lines); - $script .= " -); -"; - } - - /** - * Adds CREATE INDEX statements for this table. - * @see parent::addIndices() - */ - protected function addIndices(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - foreach ($table->getIndices() as $index) { - $script .= " -CREATE "; - if ($index->getIsUnique()) { - $script .= "UNIQUE"; - } - $script .= "INDEX ".$this->quoteIdentifier($index->getName())." ON ".$this->quoteIdentifier($table->getName())." (".$this->getColumnList($index->getColumns())."); -"; - } - } - - /** - * - * @see parent::addForeignKeys() - */ - protected function addForeignKeys(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - foreach ($table->getForeignKeys() as $fk) { - $script .= " -BEGIN -ALTER TABLE ".$this->quoteIdentifier($table->getName())." ADD CONSTRAINT ".$this->quoteIdentifier($fk->getName())." FOREIGN KEY (".$this->getColumnList($fk->getLocalColumns()) .") REFERENCES ".$this->quoteIdentifier($fk->getForeignTableName())." (".$this->getColumnList($fk->getForeignColumns()).")"; - if ($fk->hasOnUpdate()) { - if ($fk->getOnUpdate() == ForeignKey::SETNULL) { // there may be others that also won't work - // we have to skip this because it's unsupported. - $this->warn("MSSQL doesn't support the 'SET NULL' option for ON UPDATE (ignoring for ".$this->getColumnList($fk->getLocalColumns())." fk)."); - } else { - $script .= " ON UPDATE ".$fk->getOnUpdate(); - } - - } - if ($fk->hasOnDelete()) { - if ($fk->getOnDelete() == ForeignKey::SETNULL) { // there may be others that also won't work - // we have to skip this because it's unsupported. - $this->warn("MSSQL doesn't support the 'SET NULL' option for ON DELETE (ignoring for ".$this->getColumnList($fk->getLocalColumns())." fk)."); - } else { - $script .= " ON DELETE ".$fk->getOnDelete(); - } - } - $script .= " -END -; -"; - } - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/sql/mssql/MssqlDataSQLBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/sql/mssql/MssqlDataSQLBuilder.php deleted file mode 100644 index a72bad2e08..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/sql/mssql/MssqlDataSQLBuilder.php +++ /dev/null @@ -1,37 +0,0 @@ - - * @package propel.generator.builder.sql.mssql - */ -class MssqlDataSQLBuilder extends DataSQLBuilder -{ - - /** - * - * @param mixed $blob Blob object or string containing data. - * @return string - */ - protected function getBlobSql($blob) - { - // they took magic __toString() out of PHP5.0.0; this sucks - if (is_object($blob)) { - $blob = $blob->__toString(); - } - $data = unpack("H*hex", $blob); - return '0x'.$data['hex']; // no surrounding quotes! - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/sql/mysql/MysqlDDLBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/sql/mysql/MysqlDDLBuilder.php deleted file mode 100644 index 67fb15b199..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/sql/mysql/MysqlDDLBuilder.php +++ /dev/null @@ -1,413 +0,0 @@ - - * @package propel.generator.builder.sql.mysql - */ -class MysqlDDLBuilder extends DDLBuilder -{ - - /** - * Returns some header SQL that disables foreign key checking. - * @return string DDL - */ - public static function getDatabaseStartDDL() - { - $ddl = " -# This is a fix for InnoDB in MySQL >= 4.1.x -# It \"suspends judgement\" for fkey relationships until are tables are set. -SET FOREIGN_KEY_CHECKS = 0; -"; - return $ddl; - } - - /** - * Returns some footer SQL that re-enables foreign key checking. - * @return string DDL - */ - public static function getDatabaseEndDDL() - { - $ddl = " -# This restores the fkey checks, after having unset them earlier -SET FOREIGN_KEY_CHECKS = 1; -"; - return $ddl; - } - - - /** - * - * @see parent::addDropStatement() - */ - protected function addDropStatements(&$script) - { - $script .= " -DROP TABLE IF EXISTS ".$this->quoteIdentifier($this->getTable()->getName())."; -"; - } - - /** - * Builds the SQL for current table and returns it as a string. - * - * This is the main entry point and defines a basic structure that classes should follow. - * In most cases this method will not need to be overridden by subclasses. - * - * @return string The resulting SQL DDL. - */ - public function build() - { - $script = ""; - $this->addTable($script); - return $script; - } - - /** - * - * @see parent::addColumns() - */ - protected function addTable(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - $script .= " -#----------------------------------------------------------------------------- -#-- ".$table->getName()." -#----------------------------------------------------------------------------- -"; - - $this->addDropStatements($script); - - $script .= " - -CREATE TABLE ".$this->quoteIdentifier($table->getName())." -( - "; - - $lines = array(); - - $databaseType = $this->getPlatform()->getDatabaseType(); - - foreach ($table->getColumns() as $col) { - $entry = $this->getColumnDDL($col); - $colinfo = $col->getVendorInfoForType($databaseType); - if ( $colinfo->hasParameter('Charset') ) { - $entry .= ' CHARACTER SET '.$platform->quote($colinfo->getParameter('Charset')); - } - if ( $colinfo->hasParameter('Collation') ) { - $entry .= ' COLLATE '.$platform->quote($colinfo->getParameter('Collation')); - } elseif ( $colinfo->hasParameter('Collate') ) { - $entry .= ' COLLATE '.$platform->quote($colinfo->getParameter('Collate')); - } - if ($col->getDescription()) { - $entry .= " COMMENT ".$platform->quote($col->getDescription()); - } - $lines[] = $entry; - } - - if ($table->hasPrimaryKey()) { - $lines[] = "PRIMARY KEY (".$this->getColumnList($table->getPrimaryKey()).")"; - } - - $this->addIndicesLines($lines); - $this->addForeignKeysLines($lines); - - $sep = ", - "; - $script .= implode($sep, $lines); - - $script .= " -)"; - - $vendorSpecific = $table->getVendorInfoForType($this->getPlatform()->getDatabaseType()); - if ($vendorSpecific->hasParameter('Type')) { - $mysqlTableType = $vendorSpecific->getParameter('Type'); - } elseif ($vendorSpecific->hasParameter('Engine')) { - $mysqlTableType = $vendorSpecific->getParameter('Engine'); - } else { - $mysqlTableType = $this->getBuildProperty("mysqlTableType"); - } - - $script .= sprintf(' %s=%s', $this->getBuildProperty("mysqlTableEngineKeyword"), $mysqlTableType); - - $dbVendorSpecific = $table->getDatabase()->getVendorInfoForType($databaseType); - $tableVendorSpecific = $table->getVendorInfoForType($databaseType); - $vendorSpecific = $dbVendorSpecific->getMergedVendorInfo($tableVendorSpecific); - - if ( $vendorSpecific->hasParameter('Charset') ) { - $script .= ' CHARACTER SET '.$platform->quote($vendorSpecific->getParameter('Charset')); - } - if ( $vendorSpecific->hasParameter('Collate') ) { - $script .= ' COLLATE '.$platform->quote($vendorSpecific->getParameter('Collate')); - } - if ( $vendorSpecific->hasParameter('Checksum') ) { - $script .= ' CHECKSUM='.$platform->quote($vendorSpecific->getParameter('Checksum')); - } - if ( $vendorSpecific->hasParameter('Pack_Keys') ) { - $script .= ' PACK_KEYS='.$platform->quote($vendorSpecific->getParameter('Pack_Keys')); - } - if ( $vendorSpecific->hasParameter('Delay_key_write') ) { - $script .= ' DELAY_KEY_WRITE='.$platform->quote($vendorSpecific->getParameter('Delay_key_write')); - } - - if ($table->getDescription()) { - $script .= " COMMENT=".$platform->quote($table->getDescription()); - } - $script .= "; -"; - } - - /** - * Creates a comma-separated list of column names for the index. - * For MySQL unique indexes there is the option of specifying size, so we cannot simply use - * the getColumnsList() method. - * @param Index $index - * @return string - */ - private function getIndexColumnList(Index $index) - { - $platform = $this->getPlatform(); - - $cols = $index->getColumns(); - $list = array(); - foreach ($cols as $col) { - $list[] = $this->quoteIdentifier($col) . ($index->hasColumnSize($col) ? '(' . $index->getColumnSize($col) . ')' : ''); - } - return implode(', ', $list); - } - - /** - * Adds indexes - */ - protected function addIndicesLines(&$lines) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - foreach ($table->getUnices() as $unique) { - $lines[] = "UNIQUE KEY ".$this->quoteIdentifier($unique->getName())." (".$this->getIndexColumnList($unique).")"; - } - - foreach ($table->getIndices() as $index ) { - $vendorInfo = $index->getVendorInfoForType($platform->getDatabaseType()); - $lines[] .= (($vendorInfo && $vendorInfo->getParameter('Index_type') == 'FULLTEXT') ? 'FULLTEXT ' : '') . "KEY " . $this->quoteIdentifier($index->getName()) . "(" . $this->getIndexColumnList($index) . ")"; - } - - } - - /** - * Adds foreign key declarations & necessary indexes for mysql (if they don't exist already). - * @see parent::addForeignKeys() - */ - protected function addForeignKeysLines(&$lines) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - - /** - * A collection of indexed columns. The keys is the column name - * (concatenated with a comma in the case of multi-col index), the value is - * an array with the names of the indexes that index these columns. We use - * it to determine which additional indexes must be created for foreign - * keys. It could also be used to detect duplicate indexes, but this is not - * implemented yet. - * @var array - */ - $_indices = array(); - - $this->collectIndexedColumns('PRIMARY', $table->getPrimaryKey(), $_indices, 'getName'); - - $_tableIndices = array_merge($table->getIndices(), $table->getUnices()); - foreach ($_tableIndices as $_index) { - $this->collectIndexedColumns($_index->getName(), $_index->getColumns(), $_indices); - } - - // we're determining which tables have foreign keys that point to this table, since MySQL needs an index on - // any column that is referenced by another table (yep, MySQL _is_ a PITA) - $counter = 0; - $allTables = $table->getDatabase()->getTables(); - foreach ($allTables as $_table) { - foreach ($_table->getForeignKeys() as $_foreignKey) { - if ($_foreignKey->getForeignTableName() == $table->getName()) { - $referencedColumns = $_foreignKey->getForeignColumns(); - $referencedColumnsHash = $this->getColumnList($referencedColumns); - if (!array_key_exists($referencedColumnsHash, $_indices)) { - // no matching index defined in the schema, so we have to create one - $indexName = "I_referenced_".$_foreignKey->getName()."_".(++$counter); - $lines[] = "INDEX ".$this->quoteIdentifier($indexName)." (" .$referencedColumnsHash.")"; - // Add this new index to our collection, otherwise we might add it again (bug #725) - $this->collectIndexedColumns($indexName, $referencedColumns, $_indices); - } - } - } - } - - foreach ($table->getForeignKeys() as $fk) { - - $indexName = $this->quoteIdentifier(substr_replace($fk->getName(), 'FI_', strrpos($fk->getName(), 'FK_'), 3)); - - $localColumns = $fk->getLocalColumns(); - $localColumnsHash = $this->getColumnList($localColumns); - - if (!array_key_exists($localColumnsHash, $_indices)) { - // no matching index defined in the schema, so we have to create one. MySQL needs indices on any columns that serve as foreign keys. these are not auto-created prior to 4.1.2 - $lines[] = "INDEX $indexName (".$localColumnsHash.")"; - $this->collectIndexedColumns($indexName, $localColumns, $_indices); - } - $str = "CONSTRAINT ".$this->quoteIdentifier($fk->getName())." - FOREIGN KEY (".$this->getColumnList($fk->getLocalColumns()).") - REFERENCES ".$this->quoteIdentifier($fk->getForeignTableName()) . " (".$this->getColumnList($fk->getForeignColumns()).")"; - if ($fk->hasOnUpdate()) { - $str .= " - ON UPDATE ".$fk->getOnUpdate(); - } - if ($fk->hasOnDelete()) { - $str .= " - ON DELETE ".$fk->getOnDelete(); - } - $lines[] = $str; - } - } - - /** - * Helper function to collect indexed columns. - * @param array $columns The column names, or objects with a $callback method - * @param array $indexedColumns The collected indexes - * @param string $callback The name of a method to call on each of $columns to get the column name, if needed. - * @return unknown_type - */ - private function collectIndexedColumns($indexName, $columns, &$collectedIndexes, $callback = null) - { - // Get the actual column names, using the callback if needed. - // DDLBuilder::getColumnList tests $col instanceof Column, and no callback - maybe we should too? - $colnames = $columns; - if ($callback) { - $colnames = array(); - foreach ($columns as $col) { - $colnames[] = $col->$callback(); - } - } - - /** - * "If the table has a multiple-column index, any leftmost prefix of the - * index can be used by the optimizer to find rows. For example, if you - * have a three-column index on (col1, col2, col3), you have indexed search - * capabilities on (col1), (col1, col2), and (col1, col2, col3)." - * @link http://dev.mysql.com/doc/refman/5.5/en/mysql-indexes.html - */ - $indexedColumns = array(); - foreach ($colnames as $colname) { - $indexedColumns[] = $this->quoteIdentifier($colname); - $indexedColumnsHash = implode(',', $indexedColumns); - if (!array_key_exists($indexedColumnsHash, $collectedIndexes)) { - $collectedIndexes[$indexedColumnsHash] = array(); - } - $collectedIndexes[$indexedColumnsHash][] = $indexName; - } - } - - /** - * Checks whether passed-in array of Column objects contains a column with specified name. - * @param array Column[] or string[] - * @param string $searchcol Column name to search for - */ - private function containsColname($columns, $searchcol) - { - foreach ($columns as $col) { - if ($col instanceof Column) { - $col = $col->getName(); - } - if ($col == $searchcol) { - return true; - } - } - return false; - } - - /** - * Not used for MySQL since foreign keys are declared inside table declaration. - * @see addForeignKeysLines() - */ - protected function addForeignKeys(&$script) - { - } - - /** - * Not used for MySQL since indexes are declared inside table declaration. - * @see addIndicesLines() - */ - protected function addIndices(&$script) - { - } - - /** - * Builds the DDL SQL for a Column object. - * @return string - */ - public function getColumnDDL(Column $col) - { - $platform = $this->getPlatform(); - $domain = $col->getDomain(); - $sqlType = $domain->getSqlType(); - $notNullString = $col->getNotNullString(); - $defaultSetting = $col->getDefaultSetting(); - - // Special handling of TIMESTAMP/DATETIME types ... - // See: http://propel.phpdb.org/trac/ticket/538 - if ($sqlType == 'DATETIME') { - $def = $domain->getDefaultValue(); - if ($def && $def->isExpression()) { // DATETIME values can only have constant expressions - $sqlType = 'TIMESTAMP'; - } - } elseif ($sqlType == 'DATE') { - $def = $domain->getDefaultValue(); - if ($def && $def->isExpression()) { - throw new EngineException("DATE columns cannot have default *expressions* in MySQL."); - } - } elseif ($sqlType == 'TEXT' || $sqlType == 'BLOB') { - if ($domain->getDefaultValue()) { - throw new EngineException("BLOB and TEXT columns cannot have DEFAULT values. in MySQL."); - } - } - - $sb = ""; - $sb .= $this->quoteIdentifier($col->getName()) . " "; - $sb .= $sqlType; - if ($platform->hasSize($sqlType)) { - $sb .= $domain->printSize(); - } - $sb .= " "; - - if ($sqlType == 'TIMESTAMP') { - $notNullString = $col->getNotNullString(); - $defaultSetting = $col->getDefaultSetting(); - if ($notNullString == '') { - $notNullString = 'NULL'; - } - if ($defaultSetting == '' && $notNullString == 'NOT NULL') { - $defaultSetting = 'DEFAULT CURRENT_TIMESTAMP'; - } - $sb .= $notNullString . " " . $defaultSetting . " "; - } else { - $sb .= $defaultSetting . " "; - $sb .= $notNullString . " "; - } - $sb .= $col->getAutoIncrementString(); - - return trim($sb); - } -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/sql/mysql/MysqlDataSQLBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/sql/mysql/MysqlDataSQLBuilder.php deleted file mode 100644 index 5938b6e64c..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/sql/mysql/MysqlDataSQLBuilder.php +++ /dev/null @@ -1,22 +0,0 @@ - - * @package propel.generator.builder.sql.mysql - */ -class MysqlDataSQLBuilder extends DataSQLBuilder -{ - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/sql/oracle/OracleDDLBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/sql/oracle/OracleDDLBuilder.php deleted file mode 100644 index 8503f18342..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/sql/oracle/OracleDDLBuilder.php +++ /dev/null @@ -1,185 +0,0 @@ - - * @package propel.generator.builder.sql.pgsql - */ -class OracleDDLBuilder extends DDLBuilder -{ - - /** - * This function adds any _database_ start/initialization SQL. - * This is designed to be called for a database, not a specific table, hence it is static. - * @see parent::getDatabaseStartDDL() - * - * @return string The DDL is returned as astring. - */ - public static function getDatabaseStartDDL() - { - return " -ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD'; -ALTER SESSION SET NLS_TIMESTAMP_FORMAT='YYYY-MM-DD HH24:MI:SS'; -"; - } - - /** - * - * @see parent::addDropStatement() - */ - protected function addDropStatements(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - $script .= " -DROP TABLE ".$this->quoteIdentifier($table->getName())." CASCADE CONSTRAINTS; -"; - if ($table->getIdMethod() == "native") { - $script .= " -DROP SEQUENCE ".$this->quoteIdentifier($this->getSequenceName())."; -"; - } - } - - /** - * - * @see parent::addColumns() - */ - protected function addTable(&$script) - { - $table = $this->getTable(); - $script .= " - ------------------------------------------------------------------------ --- ".$table->getName()." ------------------------------------------------------------------------ -"; - - $this->addDropStatements($script); - - $script .= " -CREATE TABLE ".$this->quoteIdentifier($table->getName())." -( - "; - - $lines = array(); - - foreach ($table->getColumns() as $col) { - $lines[] = $this->getColumnDDL($col); - } - - $sep = ", - "; - $script .= implode($sep, $lines); - $script .= " -); -"; - $this->addPrimaryKey($script); - $this->addSequences($script); - - } - - /** - * - * - */ - protected function addPrimaryKey(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - $tableName = $table->getName(); - $length = strlen($tableName); - if ($length > 27) { - $length = 27; - } - if ( is_array($table->getPrimaryKey()) && count($table->getPrimaryKey()) ) { - $script .= " -ALTER TABLE ".$this->quoteIdentifier($table->getName())." - ADD CONSTRAINT ".$this->quoteIdentifier(substr($tableName,0,$length)."_PK")." - PRIMARY KEY ("; - $delim = ""; - foreach ($table->getPrimaryKey() as $col) { - $script .= $delim . $this->quoteIdentifier($col->getName()); - $delim = ","; - } - $script .= "); -"; - } - } - - /** - * Adds CREATE SEQUENCE statements for this table. - * - */ - protected function addSequences(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - if ($table->getIdMethod() == "native") { - $script .= " -CREATE SEQUENCE ".$this->quoteIdentifier($this->getSequenceName())." - INCREMENT BY 1 START WITH 1 NOMAXVALUE NOCYCLE NOCACHE ORDER; -"; - } - } - - - /** - * Adds CREATE INDEX statements for this table. - * @see parent::addIndices() - */ - protected function addIndices(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - foreach ($table->getIndices() as $index) { - $script .= " -CREATE "; - if ($index->getIsUnique()) { - $script .= "UNIQUE"; - } - $script .= "INDEX ".$this->quoteIdentifier($index->getName()) ." ON ".$this->quoteIdentifier($table->getName())." (".$this->getColumnList($index->getColumns())."); -"; - } - } - - /** - * - * @see parent::addForeignKeys() - */ - protected function addForeignKeys(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - foreach ($table->getForeignKeys() as $fk) { - $script .= " -ALTER TABLE ".$this->quoteIdentifier($table->getName())." - ADD CONSTRAINT ".$this->quoteIdentifier($fk->getName())." - FOREIGN KEY (".$this->getColumnList($fk->getLocalColumns()) .") REFERENCES ".$this->quoteIdentifier($fk->getForeignTableName())." (".$this->getColumnList($fk->getForeignColumns()).")"; - if ($fk->hasOnUpdate()) { - $this->warn("ON UPDATE not yet implemented for Oracle builder.(ignoring for ".$this->getColumnList($fk->getLocalColumns())." fk)."); - //$script .= " ON UPDATE ".$fk->getOnUpdate(); - } - if ($fk->hasOnDelete()) { - $script .= " - ON DELETE ".$fk->getOnDelete(); - } - $script .= "; -"; - } - } - - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/sql/oracle/OracleDataSQLBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/sql/oracle/OracleDataSQLBuilder.php deleted file mode 100644 index bf7a35daeb..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/sql/oracle/OracleDataSQLBuilder.php +++ /dev/null @@ -1,22 +0,0 @@ - - * @package propel.generator.builder.sql.oracle - */ -class OracleDataSQLBuilder extends DataSQLBuilder -{ - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/sql/pgsql/PgsqlDDLBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/sql/pgsql/PgsqlDDLBuilder.php deleted file mode 100644 index 92e0185d11..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/sql/pgsql/PgsqlDDLBuilder.php +++ /dev/null @@ -1,304 +0,0 @@ - - * @package propel.generator.builder.sql.pgsql - */ -class PgsqlDDLBuilder extends DDLBuilder -{ - - /** - * Array that keeps track of already - * added schema names - * - * @var Array of schema names - */ - protected static $addedSchemas = array(); - - /** - * Queue of constraint SQL that will be added to script at the end. - * - * PostgreSQL seems (now?) to not like constraints for tables that don't exist, - * so the solution is to queue up the statements and execute it at the end. - * - * @var array - */ - protected static $queuedConstraints = array(); - - /** - * Reset static vars between db iterations. - */ - public static function reset() - { - self::$addedSchemas = array(); - self::$queuedConstraints = array(); - } - - /** - * Returns all the ALTER TABLE ADD CONSTRAINT lines for inclusion at end of file. - * @return string DDL - */ - public static function getDatabaseEndDDL() - { - $ddl = implode("", self::$queuedConstraints); - return $ddl; - } - - /** - * Get the schema for the current table - * - * @author Markus Lervik - * @access protected - * @return schema name if table has one, else - * null - **/ - protected function getSchema() - { - $table = $this->getTable(); - $vi = $table->getVendorInfoForType($this->getPlatform()->getDatabaseType()); - if ($vi->hasParameter('schema')) { - return $vi->getParameter('schema'); - } - return null; - } - - /** - * Add a schema to the generated SQL script - * - * @author Markus Lervik - * @access protected - * @return string with CREATE SCHEMA statement if - * applicable, else empty string - **/ - protected function addSchema() - { - - $schemaName = $this->getSchema(); - - if ($schemaName !== null) { - - if (!in_array($schemaName, self::$addedSchemas)) { - $platform = $this->getPlatform(); - self::$addedSchemas[] = $schemaName; - return "\nCREATE SCHEMA " . $this->quoteIdentifier($schemaName) . ";\n"; - } - } - - return ''; - - } - - /** - * - * @see parent::addDropStatement() - */ - protected function addDropStatements(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - $script .= " -DROP TABLE ".$this->quoteIdentifier($table->getName())." CASCADE; -"; - - if ($table->getIdMethod() == IDMethod::NATIVE && $table->getIdMethodParameters()) { - $script .= " -DROP SEQUENCE ".$this->quoteIdentifier(strtolower($this->getSequenceName()))."; -"; - } - } - - /** - * - * @see parent::addColumns() - */ - protected function addTable(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - $script .= " ------------------------------------------------------------------------------ --- ".$table->getName()." ------------------------------------------------------------------------------ -"; - - $script .= $this->addSchema(); - - $schemaName = $this->getSchema(); - if ($schemaName !== null) { - $script .= "\nSET search_path TO " . $this->quoteIdentifier($schemaName) . ";\n"; - } - - $this->addDropStatements($script); - $this->addSequences($script); - - $script .= " - -CREATE TABLE ".$this->quoteIdentifier($table->getName())." -( - "; - - $lines = array(); - - foreach ($table->getColumns() as $col) { - /* @var $col Column */ - $colDDL = $this->getColumnDDL($col); - if ($col->isAutoIncrement() && $table->getIdMethodParameters() == null) { - if ($col->getType() === PropelTypes::BIGINT) { - $colDDL = str_replace($col->getDomain()->getSqlType(), 'bigserial', $colDDL); - } else { - $colDDL = str_replace($col->getDomain()->getSqlType(), 'serial', $colDDL); - } - } - $lines[] = $colDDL; - } - - if ($table->hasPrimaryKey()) { - $lines[] = "PRIMARY KEY (".$this->getColumnList($table->getPrimaryKey()).")"; - } - - foreach ($table->getUnices() as $unique ) { - $lines[] = "CONSTRAINT ".$this->quoteIdentifier($unique->getName())." UNIQUE (".$this->getColumnList($unique->getColumns()).")"; - } - - $sep = ", - "; - $script .= implode($sep, $lines); - $script .= " -); - -COMMENT ON TABLE ".$this->quoteIdentifier($table->getName())." IS " . $platform->quote($table->getDescription())."; - -"; - - $this->addColumnComments($script); - - $script .= "\nSET search_path TO public;"; - - } - - /** - * Adds comments for the columns. - * - */ - protected function addColumnComments(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - foreach ($this->getTable()->getColumns() as $col) { - if ( $col->getDescription() != '' ) { - $script .= " -COMMENT ON COLUMN ".$this->quoteIdentifier($table->getName()).".".$this->quoteIdentifier($col->getName())." IS ".$platform->quote($col->getDescription()) ."; -"; - } - } - } - - /** - * Override to provide sequence names that conform to postgres' standard when - * no id-method-parameter specified. - * - * @see DataModelBuilder::getSequenceName() - * @return string - */ - public function getSequenceName() - { - $table = $this->getTable(); - static $longNamesMap = array(); - $result = null; - if ($table->getIdMethod() == IDMethod::NATIVE) { - $idMethodParams = $table->getIdMethodParameters(); - if (empty($idMethodParams)) { - $result = null; - // We're going to ignore a check for max length (mainly - // because I'm not sure how Postgres would handle this w/ SERIAL anyway) - foreach ($table->getColumns() as $col) { - if ($col->isAutoIncrement()) { - $result = $table->getName() . '_' . $col->getName() . '_seq'; - break; // there's only one auto-increment column allowed - } - } - } else { - $result = $idMethodParams[0]->getValue(); - } - } - return $result; - } - - /** - * Adds CREATE SEQUENCE statements for this table. - * - */ - protected function addSequences(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - if ($table->getIdMethod() == IDMethod::NATIVE && $table->getIdMethodParameters() != null) { - $script .= " -CREATE SEQUENCE ".$this->quoteIdentifier(strtolower($this->getSequenceName()))."; -"; - } - } - - - /** - * Adds CREATE INDEX statements for this table. - * @see parent::addIndices() - */ - protected function addIndices(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - foreach ($table->getIndices() as $index) { - $script .= " -CREATE "; - if ($index->getIsUnique()) { - $script .= "UNIQUE"; - } - $script .= "INDEX ".$this->quoteIdentifier($index->getName())." ON ".$this->quoteIdentifier($table->getName())." (".$this->getColumnList($index->getColumns())."); -"; - } - } - - /** - * - * @see parent::addForeignKeys() - */ - protected function addForeignKeys(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - foreach ($table->getForeignKeys() as $fk) { - $privscript = " -ALTER TABLE ".$this->quoteIdentifier($table->getName())." ADD CONSTRAINT ".$this->quoteIdentifier($fk->getName())." FOREIGN KEY (".$this->getColumnList($fk->getLocalColumns()) .") REFERENCES ".$this->quoteIdentifier($fk->getForeignTableName())." (".$this->getColumnList($fk->getForeignColumns()).")"; - if ($fk->hasOnUpdate()) { - $privscript .= " ON UPDATE ".$fk->getOnUpdate(); - } - if ($fk->hasOnDelete()) { - $privscript .= " ON DELETE ".$fk->getOnDelete(); - } - $privscript .= "; -"; - self::$queuedConstraints[] = $privscript; - } - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/sql/pgsql/PgsqlDataSQLBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/sql/pgsql/PgsqlDataSQLBuilder.php deleted file mode 100644 index c5a644bba1..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/sql/pgsql/PgsqlDataSQLBuilder.php +++ /dev/null @@ -1,102 +0,0 @@ - - * @package propel.generator.builder.sql.pgsql - */ -class PgsqlDataSQLBuilder extends DataSQLBuilder -{ - - /** - * The largets serial value encountered this far. - * - * @var int - */ - private $maxSeqVal; - - /** - * Construct a new PgsqlDataSQLBuilder object. - * - * @param Table $table - */ - public function __construct(Table $table) - { - parent::__construct($table); - } - - /** - * The main method in this class, returns the SQL for INSERTing data into a row. - * @param DataRow $row The row to process. - * @return string - */ - public function buildRowSql(DataRow $row) - { - $sql = parent::buildRowSql($row); - - $table = $this->getTable(); - - if ($table->hasAutoIncrementPrimaryKey() && $table->getIdMethod() == IDMethod::NATIVE) { - foreach ($row->getColumnValues() as $colValue) { - if ($colValue->getColumn()->isAutoIncrement()) { - if ($colValue->getValue() > $this->maxSeqVal) { - $this->maxSeqVal = $colValue->getValue(); - } - } - } - } - - return $sql; - } - - public function getTableEndSql() - { - $table = $this->getTable(); - $sql = ""; - if ($table->hasAutoIncrementPrimaryKey() && $table->getIdMethod() == IDMethod::NATIVE) { - $seqname = $this->getDDLBuilder()->getSequenceName(); - $sql .= "SELECT pg_catalog.setval('$seqname', ".((int)$this->maxSeqVal)."); -"; - } - return $sql; - } - - /** - * Get SQL value to insert for Postgres BOOLEAN column. - * @param boolean $value - * @return string The representation of boolean for Postgres ('t' or 'f'). - */ - protected function getBooleanSql($value) - { - if ($value === 'f' || $value === 'false' || $value === "0") { - $value = false; - } - return ($value ? "'t'" : "'f'"); - } - - /** - * - * @param mixed $blob Blob object or string containing data. - * @return string - */ - protected function getBlobSql($blob) - { - // they took magic __toString() out of PHP5.0.0; this sucks - if (is_object($blob)) { - $blob = $blob->__toString(); - } - return "'" . pg_escape_bytea($blob) . "'"; - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/sql/sqlite/SqliteDDLBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/sql/sqlite/SqliteDDLBuilder.php deleted file mode 100644 index 3a2c3c041d..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/sql/sqlite/SqliteDDLBuilder.php +++ /dev/null @@ -1,119 +0,0 @@ - - * @package propel.generator.builder.sql.pgsql - */ -class SqliteDDLBuilder extends DDLBuilder -{ - - /** - * - * @see parent::addDropStatement() - */ - protected function addDropStatements(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - $script .= " -DROP TABLE ".$this->quoteIdentifier($table->getName())."; -"; - } - - /** - * - * @see parent::addColumns() - */ - protected function addTable(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - $script .= " ------------------------------------------------------------------------------ --- ".$table->getName()." ------------------------------------------------------------------------------ -"; - - $this->addDropStatements($script); - - $script .= " - -CREATE TABLE ".$this->quoteIdentifier($table->getName())." -( - "; - - $lines = array(); - - foreach ($table->getColumns() as $col) { - $lines[] = $this->getColumnDDL($col); - } - - if ($table->hasPrimaryKey() && count($table->getPrimaryKey()) > 1) { - $lines[] = "PRIMARY KEY (".$this->getColumnList($table->getPrimaryKey()).")"; - } - - foreach ($table->getUnices() as $unique ) { - $lines[] = "UNIQUE (".$this->getColumnList($unique->getColumns()).")"; - } - - $sep = ", - "; - $script .= implode($sep, $lines); - $script .= " -); -"; - } - - /** - * Adds CREATE INDEX statements for this table. - * @see parent::addIndices() - */ - protected function addIndices(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - foreach ($table->getIndices() as $index) { - $script .= " -CREATE "; - if ($index->getIsUnique()) { - $script .= "UNIQUE"; - } - $script .= "INDEX ".$this->quoteIdentifier($index->getName())." ON ".$this->quoteIdentifier($table->getName())." (".$this->getColumnList($index->getColumns())."); -"; - } - } - - /** - * - * @see parent::addForeignKeys() - */ - protected function addForeignKeys(&$script) - { - $table = $this->getTable(); - $platform = $this->getPlatform(); - - foreach ($table->getForeignKeys() as $fk) { - $script .= " --- SQLite does not support foreign keys; this is just for reference --- FOREIGN KEY (".$this->getColumnList($fk->getLocalColumns()).") REFERENCES ".$fk->getForeignTableName()." (".$this->getColumnList($fk->getForeignColumns()).") -"; - } - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/sql/sqlite/SqliteDataSQLBuilder.php b/airtime_mvc/library/propel/generator/lib/builder/sql/sqlite/SqliteDataSQLBuilder.php deleted file mode 100644 index 7f266afb40..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/sql/sqlite/SqliteDataSQLBuilder.php +++ /dev/null @@ -1,36 +0,0 @@ - - * @package propel.generator.builder.sql.sqlite - */ -class SqliteDataSQLBuilder extends DataSQLBuilder -{ - - /** - * Returns string processed by sqlite_udf_encode_binary() to ensure that binary contents will be handled correctly by sqlite. - * @param mixed $blob Blob or string - * @return string encoded text - */ - protected function getBlobSql($blob) - { - // they took magic __toString() out of PHP5.0.0; this sucks - if (is_object($blob)) { - $blob = $blob->__toString(); - } - return "'" . sqlite_udf_encode_binary($blob) . "'"; - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/util/DefaultEnglishPluralizer.php b/airtime_mvc/library/propel/generator/lib/builder/util/DefaultEnglishPluralizer.php deleted file mode 100644 index 7d0fad6997..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/util/DefaultEnglishPluralizer.php +++ /dev/null @@ -1,33 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.generator.builder.util - */ -class DefaultEnglishPluralizer implements Pluralizer -{ - - /** - * Generate a plural name based on the passed in root. - * @param string $root The root that needs to be pluralized (e.g. Author) - * @return string The plural form of $root (e.g. Authors). - */ - public function getPluralForm($root) - { - return $root . 's'; - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/util/Pluralizer.php b/airtime_mvc/library/propel/generator/lib/builder/util/Pluralizer.php deleted file mode 100644 index 9f382718ac..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/util/Pluralizer.php +++ /dev/null @@ -1,28 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.generator.builder.util - */ -interface Pluralizer -{ - - /** - * Generate a plural name based on the passed in root. - * @param string $root The root that needs to be pluralized (e.g. Author) - * @return string The plural form of $root. - */ - public function getPluralForm($root); - -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/util/PropelStringReader.php b/airtime_mvc/library/propel/generator/lib/builder/util/PropelStringReader.php deleted file mode 100644 index fb9fd09923..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/util/PropelStringReader.php +++ /dev/null @@ -1,91 +0,0 @@ -_string = $string; - } - - public function skip($n) - { - $this->currPos = $this->currPos + $n; - } - - public function eof() - { - return $this->currPos == strlen($this->_string); - } - - public function read($len = null) - { - if ($len === null) { - return $this->_string; - } else { - if ($this->currPos >= strlen($this->_string)) { - return -1; - } - $out = substr($this->_string, $this->currPos, $len); - $this->currPos += $len; - return $out; - } - } - - public function mark() - { - $this->mark = $this->currPos; - } - - public function reset() - { - $this->currPos = $this->mark; - } - - public function close() {} - - public function open() {} - - public function ready() {} - - public function markSupported() - { - return true; - } - - public function getResource() - { - return '(string) "'.$this->_string . '"'; - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/lib/builder/util/PropelTemplate.php b/airtime_mvc/library/propel/generator/lib/builder/util/PropelTemplate.php deleted file mode 100644 index dd8f937a43..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/util/PropelTemplate.php +++ /dev/null @@ -1,92 +0,0 @@ - - * $template->setTemplate('This is '); - * - * - * @param string $template the template string - */ - public function setTemplate($template) - { - $this->template = $template; - } - - /** - * Set a file as a template. The file can be any regular PHP file. - * - * - * $template->setTemplateFile(dirname(__FILE__) . '/template/foo.php'); - * - * - * @param string $filePath The (absolute or relative to the include path) file path - */ - public function setTemplateFile($filePath) - { - $this->templateFile = $filePath; - } - - /** - * Render the template using the variable provided as arguments. - * - * - * $template = new PropelTemplate(); - * $template->setTemplate('This is '); - * echo $template->render(array('name' => 'Mike')); - * // This is Mike - * - * - * @param array $vars An associative array of argumens to be rendered - * - * @return string The rendered template - */ - public function render($vars = array()) - { - if (null === $this->templateFile && null === $this->template) { - throw new InvalidArgumentException('You must set a template or a template file before rendering'); - } - - extract($vars); - ob_start(); - ob_implicit_flush(0); - - try - { - if (null !== $this->templateFile) { - require($this->templateFile); - } else { - eval('?>' . $this->template . ' (Propel) - * @author Leon Messerschmidt (Torque) - * @author Jason van Zyl (Torque) - * @author Martin Poeschl (Torque) - * @author Daniel Rall (Torque) - * @version $Revision: 1764 $ - * @package propel.generator.builder.util - */ -class XmlToAppData extends AbstractHandler -{ - - /** enables debug output */ - const DEBUG = false; - - private $app; - private $platform; - private $currDB; - private $currTable; - private $currColumn; - private $currFK; - private $currIndex; - private $currUnique; - private $currValidator; - private $currBehavior; - private $currVendorObject; - - private $isForReferenceOnly; - private $currentPackage; - private $currentXmlFile; - private $defaultPackage; - - private $encoding; - - /** two-dimensional array, - first dimension is for schemas(key is the path to the schema file), - second is for tags within the schema */ - private $schemasTagsStack = array(); - - public $parser; - - /** - * Creates a new instance for the specified database type. - * - * @param Platform $platform The type of database for the application. - * @param string $defaultPackage the default PHP package used for the om - * @param string $encoding The database encoding. - */ - public function __construct(Platform $platform, $defaultPackage, $encoding = 'iso-8859-1') - { - $this->app = new AppData($platform); - $this->platform = $platform; - $this->defaultPackage = $defaultPackage; - $this->firstPass = true; - $this->encoding = $encoding; - } - - /** - * Parses a XML input file and returns a newly created and - * populated AppData structure. - * - * @param string $xmlFile The input file to parse. - * @return AppData populated by xmlFile. - */ - public function parseFile($xmlFile) - { - // we don't want infinite recursion - if ($this->isAlreadyParsed($xmlFile)) { - return; - } - - $f = new PhingFile($xmlFile); - - return $this->parseString($f->contents(), $xmlFile); - } - - /** - * Parses a XML input string and returns a newly created and - * populated AppData structure. - * - * @param string $xmlString The input string to parse. - * @param string $xmlFile The input file name. - * @return AppData populated by xmlFile. - */ - public function parseString($xmlString, $xmlFile) - { - // we don't want infinite recursion - if ($this->isAlreadyParsed($xmlFile)) { - return; - } - - // store current schema file path - $this->schemasTagsStack[$xmlFile] = array(); - - $this->currentXmlFile = $xmlFile; - - try { - $sr = new PropelStringReader($xmlString); - - } catch (Exception $e) { - $f = new PhingFile($xmlFile); - throw new Exception("XML File not found: " . $f->getAbsolutePath()); - } - - $br = new BufferedReader($sr); - - $this->parser = new ExpatParser($br); - $this->parser->parserSetOption(XML_OPTION_CASE_FOLDING, 0); - $this->parser->setHandler($this); - - try { - $this->parser->parse(); - } catch (Exception $e) { - $br->close(); - throw $e; - } - $br->close(); - - array_pop($this->schemasTagsStack); - - return $this->app; - } - - /** - * Handles opening elements of the xml file. - * - * @param string $uri - * @param string $localName The local name (without prefix), or the empty string if - * Namespace processing is not being performed. - * @param string $rawName The qualified name (with prefix), or the empty string if - * qualified names are not available. - * @param string $attributes The specified or defaulted attributes - */ - public function startElement($name, $attributes) { - - try { - - $parentTag = $this->peekCurrentSchemaTag(); - - if ($parentTag === false) { - - switch($name) { - case "database": - if ($this->isExternalSchema()) { - $this->currentPackage = @$attributes["package"]; - if ($this->currentPackage === null) { - $this->currentPackage = $this->defaultPackage; - } - } else { - $this->currDB = $this->app->addDatabase($attributes); - } - break; - - default: - $this->_throwInvalidTagException($name); - } - - } elseif ($parentTag == "database") { - - switch($name) { - - case "external-schema": - $xmlFile = @$attributes["filename"]; - - //"referenceOnly" attribute is valid in the main schema XML file only, - //and it's ingnored in the nested external-schemas - if (!$this->isExternalSchema()) { - $isForRefOnly = @$attributes["referenceOnly"]; - $this->isForReferenceOnly = ($isForRefOnly !== null ? (strtolower($isForRefOnly) === "true") : true); // defaults to TRUE - } - - if ($xmlFile{0} != '/') { - $f = new PhingFile($this->currentXmlFile); - $xf = new PhingFile($f->getParent(), $xmlFile); - $xmlFile = $xf->getPath(); - } - - $this->parseFile($xmlFile); - break; - - case "domain": - $this->currDB->addDomain($attributes); - break; - - case "table": - $this->currTable = $this->currDB->addTable($attributes); - if ($this->isExternalSchema()) { - $this->currTable->setForReferenceOnly($this->isForReferenceOnly); - $this->currTable->setPackage($this->currentPackage); - } - break; - - case "vendor": - $this->currVendorObject = $this->currDB->addVendorInfo($attributes); - break; - - case "behavior": - $this->currBehavior = $this->currDB->addBehavior($attributes); - break; - - default: - $this->_throwInvalidTagException($name); - } - - } elseif ($parentTag == "table") { - - switch($name) { - case "column": - $this->currColumn = $this->currTable->addColumn($attributes); - break; - - case "foreign-key": - $this->currFK = $this->currTable->addForeignKey($attributes); - break; - - case "index": - $this->currIndex = $this->currTable->addIndex($attributes); - break; - - case "unique": - $this->currUnique = $this->currTable->addUnique($attributes); - break; - - case "vendor": - $this->currVendorObject = $this->currTable->addVendorInfo($attributes); - break; - - case "validator": - $this->currValidator = $this->currTable->addValidator($attributes); - break; - - case "id-method-parameter": - $this->currTable->addIdMethodParameter($attributes); - break; - - case "behavior": - $this->currBehavior = $this->currTable->addBehavior($attributes); - break; - - default: - $this->_throwInvalidTagException($name); - } - - } elseif ($parentTag == "column") { - - switch($name) { - case "inheritance": - $this->currColumn->addInheritance($attributes); - break; - - case "vendor": - $this->currVendorObject = $this->currColumn->addVendorInfo($attributes); - break; - - default: - $this->_throwInvalidTagException($name); - } - - } elseif ($parentTag == "foreign-key") { - - switch($name) { - case "reference": - $this->currFK->addReference($attributes); - break; - - case "vendor": - $this->currVendorObject = $this->currUnique->addVendorInfo($attributes); - break; - - default: - $this->_throwInvalidTagException($name); - } - - } elseif ($parentTag == "index") { - - switch($name) { - case "index-column": - $this->currIndex->addColumn($attributes); - break; - - case "vendor": - $this->currVendorObject = $this->currIndex->addVendorInfo($attributes); - break; - - default: - $this->_throwInvalidTagException($name); - } - - } elseif ($parentTag == "unique") { - - switch($name) { - case "unique-column": - $this->currUnique->addColumn($attributes); - break; - - case "vendor": - $this->currVendorObject = $this->currUnique->addVendorInfo($attributes); - break; - - default: - $this->_throwInvalidTagException($name); - } - } elseif ($parentTag == "behavior") { - - switch($name) { - case "parameter": - $this->currBehavior->addParameter($attributes); - break; - - default: - $this->_throwInvalidTagException($name); - } - } elseif ($parentTag == "validator") { - switch($name) { - case "rule": - $this->currValidator->addRule($attributes); - break; - default: - $this->_throwInvalidTagException($name); - } - } elseif ($parentTag == "vendor") { - - switch($name) { - case "parameter": - $this->currVendorObject->addParameter($attributes); - break; - default: - $this->_throwInvalidTagException($name); - } - - } else { - // it must be an invalid tag - $this->_throwInvalidTagException($name); - } - - $this->pushCurrentSchemaTag($name); - - } catch (BuildException $e) { - throw $e; - } catch (Exception $e) { - echo $e; - echo "\n"; - throw $e; - } - } - - function _throwInvalidTagException($tag_name) - { - throw new BuildException("Unexpected tag <" . $tag_name . ">", $this->parser->getLocation()); - } - - /** - * Handles closing elements of the xml file. - * - * @param uri - * @param localName The local name (without prefix), or the empty string if - * Namespace processing is not being performed. - * @param rawName The qualified name (with prefix), or the empty string if - * qualified names are not available. - */ - public function endElement($name) - { - if (self::DEBUG) { - print("endElement(" . $name . ") called\n"); - } - - $this->popCurrentSchemaTag(); - } - - protected function peekCurrentSchemaTag() - { - $keys = array_keys($this->schemasTagsStack); - return end($this->schemasTagsStack[end($keys)]); - } - - protected function popCurrentSchemaTag() - { - $keys = array_keys($this->schemasTagsStack); - array_pop($this->schemasTagsStack[end($keys)]); - } - - protected function pushCurrentSchemaTag($tag) - { - $keys = array_keys($this->schemasTagsStack); - $this->schemasTagsStack[end($keys)][] = $tag; - } - - protected function isExternalSchema() - { - return count($this->schemasTagsStack) > 1; - } - - protected function isAlreadyParsed($filePath) - { - return isset($this->schemasTagsStack[$filePath]); - } -} diff --git a/airtime_mvc/library/propel/generator/lib/builder/util/XmlToDataSQL.php b/airtime_mvc/library/propel/generator/lib/builder/util/XmlToDataSQL.php deleted file mode 100644 index 09854080e1..0000000000 --- a/airtime_mvc/library/propel/generator/lib/builder/util/XmlToDataSQL.php +++ /dev/null @@ -1,265 +0,0 @@ - (Propel) - * @version $Revision: 1612 $ - * @package propel.generator.builder.util - */ -class XmlToDataSQL extends AbstractHandler -{ - - /** - * The GeneratorConfig associated with the build. - * - * @var GeneratorConfig - */ - private $generatorConfig; - - /** - * The database. - * - * @var Database - */ - private $database; - - /** - * The output writer for the SQL file. - * - * @var Writer - */ - private $sqlWriter; - - /** - * The database (and output SQL file) encoding. - * - * Values will be converted to this encoding in the output file. - * - * @var string - */ - private $encoding; - - /** - * The classname of the static class that will perform the building. - * - * This is needed because there are some pre/post methods that get called - * on the static class. - * - * @var string - */ - private $builderClazz; - - /** - * The name of the current table being processed. - * - * @var string - */ - private $currTableName; - - /** - * The DataSQLBuilder for the current table. - * - * @var DataSQLBuilder - */ - private $currBuilder; - - /** - * Expat Parser. - * - * @var ExpatParser - */ - public $parser; - - /** - * Flag for enabing debug output to aid in parser tracing. - */ - const DEBUG = false; - - /** - * Construct new XmlToDataSQL class. - * - * This class is passed the Database object so that it knows what to expect from - * the XML file. - * - * @param Database $database - * @param GeneratorConfig $config - * @param string $encoding Database encoding - */ - public function __construct(Database $database, GeneratorConfig $config, $encoding = 'iso-8859-1') - { - $this->database = $database; - $this->generatorConfig = $config; - $this->encoding = $encoding; - } - - /** - * Transform the data dump input file into SQL and writes it to the output stream. - * - * @param PhingFile $xmlFile - * @param Writer $out - */ - public function transform(PhingFile $xmlFile, Writer $out) - { - $this->sqlWriter = $out; - - // Reset some vars just in case this is being run multiple times. - $this->currTableName = $this->currBuilder = null; - - $this->builderClazz = $this->generatorConfig->getBuilderClassname('datasql'); - - try { - $fr = new FileReader($xmlFile); - } catch (Exception $e) { - throw new BuildException("XML File not found: " . $xmlFile->getAbsolutePath()); - } - - $br = new BufferedReader($fr); - - $this->parser = new ExpatParser($br); - $this->parser->parserSetOption(XML_OPTION_CASE_FOLDING, 0); - $this->parser->setHandler($this); - - try { - $this->parser->parse(); - } catch (Exception $e) { - print $e->getMessage() . "\n"; - $br->close(); - } - $br->close(); - } - - /** - * Handles opening elements of the xml file. - */ - public function startElement($name, $attributes) - { - try { - if ($name == "dataset") { - // Clear any start/end DLL - call_user_func(array($this->builderClazz, 'reset')); - $this->sqlWriter->write(call_user_func(array($this->builderClazz, 'getDatabaseStartSql'))); - } else { - - // we're processing a row of data - // where tag name is phpName e.g. - - $table = $this->database->getTableByPhpName($name); - - $columnValues = array(); - foreach ($attributes as $name => $value) { - $col = $table->getColumnByPhpName($name); - $columnValues[] = new ColumnValue($col, iconv('utf-8',$this->encoding, $value)); - } - - $data = new DataRow($table, $columnValues); - - if ($this->currTableName !== $table->getName()) { - // new table encountered - - if ($this->currBuilder !== null) { - $this->sqlWriter->write($this->currBuilder->getTableEndSql()); - } - - $this->currTableName = $table->getName(); - $this->currBuilder = $this->generatorConfig->getConfiguredBuilder($table, 'datasql'); - - $this->sqlWriter->write($this->currBuilder->getTableStartSql()); - } - - // Write the SQL - $this->sqlWriter->write($this->currBuilder->buildRowSql($data)); - - } - - } catch (Exception $e) { - // Exceptions have traditionally not bubbled up nicely from the expat parser, - // so we also print the stack trace here. - print $e; - throw $e; - } - } - - - /** - * Handles closing elements of the xml file. - * - * @param $name The local name (without prefix), or the empty string if - * Namespace processing is not being performed. - */ - public function endElement($name) - { - if (self::DEBUG) { - print("endElement(" . $name . ") called\n"); - } - if ($name == "dataset") { - if ($this->currBuilder !== null) { - $this->sqlWriter->write($this->currBuilder->getTableEndSql()); - } - $this->sqlWriter->write(call_user_func(array($this->builderClazz, 'getDatabaseEndSql'))); - } - } - -} // XmlToData - -/** - * "inner class" - * @package propel.generator.builder.util - */ -class DataRow -{ - private $table; - private $columnValues; - - public function __construct(Table $table, $columnValues) - { - $this->table = $table; - $this->columnValues = $columnValues; - } - - public function getTable() - { - return $this->table; - } - - public function getColumnValues() - { - return $this->columnValues; - } -} - -/** - * "inner" class - * @package propel.generator.builder.util - */ -class ColumnValue { - - private $col; - private $val; - - public function __construct(Column $col, $val) - { - $this->col = $col; - $this->val = $val; - } - - public function getColumn() - { - return $this->col; - } - - public function getValue() - { - return $this->val; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/config/GeneratorConfig.php b/airtime_mvc/library/propel/generator/lib/config/GeneratorConfig.php deleted file mode 100644 index 1190079100..0000000000 --- a/airtime_mvc/library/propel/generator/lib/config/GeneratorConfig.php +++ /dev/null @@ -1,217 +0,0 @@ - - * @package propel.generator.config - */ -class GeneratorConfig { - - /** - * The build properties. - * - * @var array - */ - private $buildProperties = array(); - - /** - * Construct a new GeneratorConfig. - * @param mixed $props Array or Iterator - */ - public function __construct($props = null) - { - if ($props) $this->setBuildProperties($props); - } - - /** - * Gets the build properties. - * @return array - */ - public function getBuildProperties() - { - return $this->buildProperties; - } - - /** - * Parses the passed-in properties, renaming and saving eligible properties in this object. - * - * Renames the propel.xxx properties to just xxx and renames any xxx.yyy properties - * to xxxYyy as PHP doesn't like the xxx.yyy syntax. - * - * @param mixed $props Array or Iterator - */ - public function setBuildProperties($props) - { - $this->buildProperties = array(); - - $renamedPropelProps = array(); - foreach ($props as $key => $propValue) { - if (strpos($key, "propel.") === 0) { - $newKey = substr($key, strlen("propel.")); - $j = strpos($newKey, '.'); - while ($j !== false) { - $newKey = substr($newKey, 0, $j) . ucfirst(substr($newKey, $j + 1)); - $j = strpos($newKey, '.'); - } - $this->setBuildProperty($newKey, $propValue); - } - } - } - - /** - * Gets a specific propel (renamed) property from the build. - * - * @param string $name - * @return mixed - */ - public function getBuildProperty($name) - { - return isset($this->buildProperties[$name]) ? $this->buildProperties[$name] : null; - } - - /** - * Sets a specific propel (renamed) property from the build. - * - * @param string $name - * @param mixed $value - */ - public function setBuildProperty($name, $value) - { - $this->buildProperties[$name] = $value; - } - - /** - * Resolves and returns the class name based on the specified property value. - * - * @param string $propname The name of the property that holds the class path (dot-path notation). - * @return string The class name. - * @throws BuildException If the classname cannot be determined or class cannot be loaded. - */ - public function getClassname($propname) - { - $classpath = $this->getBuildProperty($propname); - if (empty($classpath)) { - throw new BuildException("Unable to find class path for '$propname' property."); - } - - // This is a slight hack to workaround camel case inconsistencies for the DDL classes. - // Basically, we want to turn ?.?.?.sqliteDDLBuilder into ?.?.?.SqliteDDLBuilder - $lastdotpos = strrpos($classpath, '.'); - if ($lastdotpos !== null) { - $classpath{$lastdotpos+1} = strtoupper($classpath{$lastdotpos+1}); - } else { - $classpath = ucfirst($classpath); - } - - if (empty($classpath)) { - throw new BuildException("Unable to find class path for '$propname' property."); - } - - $clazz = Phing::import($classpath); - - return $clazz; - } - - /** - * Resolves and returns the builder class name. - * - * @param string $type - * @return string The class name. - */ - public function getBuilderClassname($type) - { - $propname = 'builder' . ucfirst(strtolower($type)) . 'Class'; - return $this->getClassname($propname); - } - - /** - * Creates and configures a new Platform class. - * - * @param PDO $con - * @return Platform - */ - public function getConfiguredPlatform(PDO $con = null) - { - $clazz = $this->getClassname("platformClass"); - $platform = new $clazz(); - - if (!$platform instanceof Platform) { - throw new BuildException("Specified platform class ($clazz) does not implement Platform interface.", $this->getLocation()); - } - - $platform->setConnection($con); - $platform->setGeneratorConfig($this); - return $platform; - } - - /** - * Creates and configures a new SchemaParser class for specified platform. - * @param PDO $con - * @return SchemaParser - */ - public function getConfiguredSchemaParser(PDO $con = null) - { - $clazz = $this->getClassname("reverseParserClass"); - $parser = new $clazz(); - if (!$parser instanceof SchemaParser) { - throw new BuildException("Specified platform class ($clazz) does implement SchemaParser interface.", $this->getLocation()); - } - $parser->setConnection($con); - $parser->setGeneratorConfig($this); - return $parser; - } - - /** - * Gets a configured data model builder class for specified table and based on type. - * - * @param Table $table - * @param string $type The type of builder ('ddl', 'sql', etc.) - * @return DataModelBuilder - */ - public function getConfiguredBuilder(Table $table, $type, $cache = true) - { - $classname = $this->getBuilderClassname($type); - $builder = new $classname($table); - $builder->setGeneratorConfig($this); - return $builder; - } - - /** - * Gets a configured Pluralizer class. - * - * @return Pluralizer - */ - public function getConfiguredPluralizer() - { - $classname = $this->getBuilderClassname('pluralizer'); - $pluralizer = new $classname(); - return $pluralizer; - } - - /** - * Gets a configured behavior class - * - * @param string $name a behavior name - * @return string a behavior class name - */ - public function getConfiguredBehavior($name) - { - $propname = 'behavior' . ucfirst(strtolower($name)) . 'Class'; - try { - $ret = $this->getClassname($propname); - } catch (BuildException $e) { - // class path not configured - $ret = false; - } - return $ret; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/exception/EngineException.php b/airtime_mvc/library/propel/generator/lib/exception/EngineException.php deleted file mode 100644 index e296c6bbc1..0000000000 --- a/airtime_mvc/library/propel/generator/lib/exception/EngineException.php +++ /dev/null @@ -1,22 +0,0 @@ - (Propel) - * @author Daniel Rall (Torque) - * @author Jason van Zyl (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.exception - */ -class EngineException extends BuildException {} diff --git a/airtime_mvc/library/propel/generator/lib/model/AppData.php b/airtime_mvc/library/propel/generator/lib/model/AppData.php deleted file mode 100644 index 39bb749d02..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/AppData.php +++ /dev/null @@ -1,222 +0,0 @@ - (Propel) - * @author Leon Messerschmidt (Torque) - * @author John McNally (Torque) - * @author Daniel Rall (Torque) - * @version $Revision: 1640 $ - * @package propel.generator.model - */ -class AppData -{ - - /** - * The list of databases for this application. - * @var array Database[] - */ - private $dbList = array(); - - /** - * The platform class for our database(s). - * @var string - */ - private $platform; - - /** - * Name of the database. Only one database definition - * is allowed in one XML descriptor. - */ - private $name; - - /** - * Flag to ensure that initialization is performed only once. - * @var boolean - */ - private $isInitialized = false; - - /** - * Creates a new instance for the specified database type. - * - * @param Platform $platform The platform object to use for any databases added to this application model. - */ - public function __construct(Platform $platform) - { - $this->platform = $platform; - } - - /** - * Gets the platform object to use for any databases added to this application model. - * - * @return Platform - */ - public function getPlatform() - { - return $this->platform; - } - - /** - * Set the name of the database. - * - * @param name of the database. - */ - public function setName($name) - { - $this->name = $name; - } - - /** - * Get the name of the database. - * - * @return String name - */ - public function getName() - { - return $this->name; - } - - /** - * Get the short name of the database (without the '-schema' postfix). - * - * @return String name - */ - public function getShortName() - { - return str_replace("-schema", "", $this->name); - } - - /** - * Return an array of all databases - * - * @return Array of Database objects - */ - public function getDatabases($doFinalInit = true) - { - // this is temporary until we'll have a clean solution - // for packaging datamodels/requiring schemas - if ($doFinalInit) { - $this->doFinalInitialization(); - } - return $this->dbList; - } - - /** - * Returns whether this application has multiple databases. - * - * @return boolean True if the application has multiple databases - */ - public function hasMultipleDatabases() - { - return (count($this->dbList) > 1); - } - - /** - * Return the database with the specified name. - * - * @param name database name - * @return A Database object. If it does not exist it returns null - */ - public function getDatabase($name = null, $doFinalInit = true) - { - // this is temporary until we'll have a clean solution - // for packaging datamodels/requiring schemas - if ($doFinalInit) { - $this->doFinalInitialization(); - } - - if ($name === null) { - return $this->dbList[0]; - } - - for ($i=0,$size=count($this->dbList); $i < $size; $i++) { - $db = $this->dbList[$i]; - if ($db->getName() === $name) { - return $db; - } - } - return null; - } - - /** - * Checks whether a database with the specified nam exists in this AppData - * - * @param name database name - * @return boolean - */ - public function hasDatabase($name) - { - foreach ($this->dbList as $db) { - if ($db->getName() === $name) { - return true; - } - } - return false; - } - - /** - * Add a database to the list and sets the AppData property to this - * AppData - * - * @param db the database to add - */ - public function addDatabase($db) - { - if ($db instanceof Database) { - $db->setAppData($this); - if ($db->getPlatform() === null) { - $db->setPlatform($this->platform); - } - $this->dbList[] = $db; - return $db; - } else { - // XML attributes array / hash - $d = new Database(); - $d->setAppData($this); - if ($d->getPlatform() === null) { - $d->setPlatform($this->platform); - } - $d->loadFromXML($db); - return $this->addDatabase($d); // calls self w/ different param type - } - - } - - public function doFinalInitialization() - { - if (!$this->isInitialized) { - for ($i=0, $size=count($this->dbList); $i < $size; $i++) { - $this->dbList[$i]->doFinalInitialization(); - } - $this->isInitialized = true; - } - } - - /** - * Creats a string representation of this AppData. - * The representation is given in xml format. - * - * @return string Representation in xml format - */ - public function toString() - { - $result = "\n"; - for ($i=0,$size=count($this->dbList); $i < $size; $i++) { - $result .= $this->dbList[$i]->toString(); - } - $result .= ""; - return $result; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/Behavior.php b/airtime_mvc/library/propel/generator/lib/model/Behavior.php deleted file mode 100644 index 281158311d..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/Behavior.php +++ /dev/null @@ -1,247 +0,0 @@ -name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setTable(Table $table) - { - $this->table = $table; - } - - public function getTable() - { - return $this->table; - } - - public function setDatabase(Database $database) - { - $this->database = $database; - } - - public function getDatabase() - { - return $this->database; - } - - /** - * Add a parameter - * Expects an associative array looking like array('name' => 'foo', 'value' => bar) - * - * @param array associative array with name and value keys - */ - public function addParameter($attribute) - { - $attribute = array_change_key_case($attribute, CASE_LOWER); - $this->parameters[$attribute['name']] = $attribute['value']; - } - - /** - * Overrides the behavior parameters - * Expects an associative array looking like array('foo' => 'bar') - * - * @param array associative array - */ - public function setParameters($parameters) - { - $this->parameters = $parameters; - } - - /** - * Get the associative array of parameters - * @return array - */ - public function getParameters() - { - return $this->parameters; - } - - public function getParameter($name) - { - return $this->parameters[$name]; - } - - /** - * This method is automatically called on database behaviors when the database model is finished - * Propagate the behavior to the tables of the database - * Override this method to have a database behavior do something special - */ - public function modifyDatabase() - { - foreach ($this->getDatabase()->getTables() as $table) - { - $b = clone $this; - $table->addBehavior($b); - } - } - - /** - * This method is automatically called on table behaviors when the database model is finished - * Override it to add columns to the current table - */ - public function modifyTable() - { - } - - public function setTableModified($bool) - { - $this->isTableModified = $bool; - } - - public function isTableModified() - { - return $this->isTableModified; - } - - public function setEarly($bool = true) - { - $this->isEarly = $bool; - } - - public function isEarly() - { - return $this->isEarly; - } - - /** - * Use Propel's simple templating system to render a PHP file - * using variables passed as arguments. - * - * @param string $filename The template file name, relative to the behavior's dirname - * @param array $vars An associative array of argumens to be rendered - * @param string $templateDir The name of the template subdirectory - * - * @return string The rendered template - */ - public function renderTemplate($filename, $vars = array(), $templateDir = '/templates/') - { - $filePath = $this->getDirname() . $templateDir . $filename; - if (!file_exists($filePath)) { - // try with '.php' at the end - $filePath = $filePath . '.php'; - if (!file_exists($filePath)) { - throw new InvalidArgumentException(sprintf('Template "%s" not found in "%s" directory', - $filename, - $this->getDirname() . $templateDir - )); - } - } - $template = new PropelTemplate(); - $template->setTemplateFile($filePath); - $vars = array_merge($vars, array('behavior' => $this)); - - return $template->render($vars); - } - - /** - * Returns the current dirname of this behavior (also works for descendants) - * - * @return string The absolute directory name - */ - protected function getDirname() - { - if (null === $this->dirname) { - $r = new ReflectionObject($this); - $this->dirname = dirname($r->getFileName()); - } - return $this->dirname; - } - - /** - * Retrieve a column object using a name stored in the behavior parameters - * Useful for table behaviors - * - * @param string $param Name of the parameter storing the column name - * @return ColumnMap The column of the table supporting the behavior - */ - public function getColumnForParameter($param) - { - return $this->getTable()->getColumn($this->getParameter($param)); - } - - /** - * Sets up the Behavior object based on the attributes that were passed to loadFromXML(). - * @see parent::loadFromXML() - */ - protected function setupObject() - { - $this->name = $this->getAttribute("name"); - } - - /** - * @see parent::appendXml(DOMNode) - */ - public function appendXml(DOMNode $node) - { - $doc = ($node instanceof DOMDocument) ? $node : $node->ownerDocument; - - $bNode = $node->appendChild($doc->createElement('behavior')); - $bNode->setAttribute('name', $this->getName()); - - foreach ($this->parameters as $name => $value) { - $parameterNode = $bNode->appendChild($doc->createElement('parameter')); - $parameterNode->setAttribute('name', $name); - $parameterNode->setAttribute('value', $value); - } - } - - public function getTableModifier() - { - return $this; - } - - public function getObjectBuilderModifier() - { - return $this; - } - - public function getQueryBuilderModifier() - { - return $this; - } - - public function getPeerBuilderModifier() - { - return $this; - } - - public function getTableMapBuilderModifier() - { - return $this; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/Column.php b/airtime_mvc/library/propel/generator/lib/model/Column.php deleted file mode 100644 index 053d78066d..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/Column.php +++ /dev/null @@ -1,1188 +0,0 @@ - (Propel) - * @author Leon Messerschmidt (Torque) - * @author Jason van Zyl (Torque) - * @author Jon S. Stevens (Torque) - * @author Daniel Rall (Torque) - * @author Byron Foster (Torque) - * @author Bernd Goldschmidt - * @version $Revision: 1778 $ - * @package propel.generator.model - */ -class Column extends XMLElement -{ - - const DEFAULT_TYPE = "VARCHAR"; - const DEFAULT_VISIBILITY = 'public'; - public static $valid_visibilities = array('public', 'protected', 'private'); - - private $name; - private $description; - private $phpName = null; - private $phpNamingMethod; - private $isNotNull = false; - private $size; - private $namePrefix; - private $accessorVisibility; - private $mutatorVisibility; - - /** - * The name to use for the Peer constant that identifies this column. - * (Will be converted to all-uppercase in the templates.) - * @var string - */ - private $peerName; - - /** - * Native PHP type (scalar or class name) - * @var string "string", "boolean", "int", "double" - */ - private $phpType; - - /** - * @var Table - */ - private $parentTable; - - private $position; - private $isPrimaryKey = false; - private $isNodeKey = false; - private $nodeKeySep; - private $isNestedSetLeftKey = false; - private $isNestedSetRightKey = false; - private $isTreeScopeKey = false; - private $isUnique = false; - private $isAutoIncrement = false; - private $isLazyLoad = false; - private $defaultValue; - private $referrers; - private $isPrimaryString = false; - - // only one type is supported currently, which assumes the - // column either contains the classnames or a key to - // classnames specified in the schema. Others may be - // supported later. - private $inheritanceType; - private $isInheritance; - private $isEnumeratedClasses; - private $inheritanceList; - private $needsTransactionInPostgres; //maybe this can be retrieved from vendorSpecificInfo - - /** class name to do input validation on this column */ - private $inputValidator = null; - - /** - * @var Domain The domain object associated with this Column. - */ - private $domain; - - /** - * Creates a new column and set the name - * - * @param name column name - */ - public function __construct($name = null) - { - $this->name = $name; - } - - /** - * Return a comma delimited string listing the specified columns. - * - * @param columns Either a list of Column objects, or - * a list of String objects with column names. - * @deprecated Use the DDLBuilder->getColumnList() method instead; this will be removed in 1.3 - */ - public static function makeList($columns, Platform $platform) - { - $list = array(); - foreach ($columns as $col) { - if ($col instanceof Column) { - $col = $col->getName(); - } - $list[] = $platform->quoteIdentifier($col); - } - return implode(", ", $list); - } - - /** - * Sets up the Column object based on the attributes that were passed to loadFromXML(). - * @see parent::loadFromXML() - */ - protected function setupObject() - { - try { - $dom = $this->getAttribute("domain"); - if ($dom) { - $this->getDomain()->copy($this->getTable()->getDatabase()->getDomain($dom)); - } else { - $type = strtoupper($this->getAttribute("type")); - if ($type) { - $this->getDomain()->copy($this->getPlatform()->getDomainForType($type)); - } else { - $this->getDomain()->copy($this->getPlatform()->getDomainForType(self::DEFAULT_TYPE)); - } - } - - $this->name = $this->getAttribute("name"); - $this->phpName = $this->getAttribute("phpName"); - $this->phpType = $this->getAttribute("phpType"); - - if ($this->getAttribute("prefix", null) !== null) { - $this->namePrefix = $this->getAttribute("prefix"); - } elseif ($this->getTable()->getAttribute('columnPrefix', null) !== null) { - $this->namePrefix = $this->getTable()->getAttribute('columnPrefix'); - } else { - $this->namePrefix = ''; - } - - // Accessor visibility - if ($this->getAttribute('accessorVisibility', null) !== null) { - $this->setAccessorVisibility($this->getAttribute('accessorVisibility')); - } elseif ($this->getTable()->getAttribute('defaultAccessorVisibility', null) !== null) { - $this->setAccessorVisibility($this->getTable()->getAttribute('defaultAccessorVisibility')); - } elseif ($this->getTable()->getDatabase()->getAttribute('defaultAccessorVisibility', null) !== null) { - $this->setAccessorVisibility($this->getTable()->getDatabase()->getAttribute('defaultAccessorVisibility')); - } else { - $this->setAccessorVisibility(self::DEFAULT_VISIBILITY); - } - - // Mutator visibility - if ($this->getAttribute('mutatorVisibility', null) !== null) { - $this->setMutatorVisibility($this->getAttribute('mutatorVisibility')); - } elseif ($this->getTable()->getAttribute('defaultMutatorVisibility', null) !== null) { - $this->setMutatorVisibility($this->getTable()->getAttribute('defaultMutatorVisibility')); - } elseif ($this->getTable()->getDatabase()->getAttribute('defaultMutatorVisibility', null) !== null) { - $this->setMutatorVisibility($this->getTable()->getDatabase()->getAttribute('defaultMutatorVisibility')); - } else { - $this->setMutatorVisibility(self::DEFAULT_VISIBILITY); - } - - $this->peerName = $this->getAttribute("peerName"); - - // retrieves the method for converting from specified name to a PHP name, defaulting to parent tables default method - $this->phpNamingMethod = $this->getAttribute("phpNamingMethod", $this->parentTable->getDatabase()->getDefaultPhpNamingMethod()); - - $this->isPrimaryString = $this->booleanValue($this->getAttribute("primaryString")); - - $this->isPrimaryKey = $this->booleanValue($this->getAttribute("primaryKey")); - - $this->isNodeKey = $this->booleanValue($this->getAttribute("nodeKey")); - $this->nodeKeySep = $this->getAttribute("nodeKeySep", "."); - - $this->isNestedSetLeftKey = $this->booleanValue($this->getAttribute("nestedSetLeftKey")); - $this->isNestedSetRightKey = $this->booleanValue($this->getAttribute("nestedSetRightKey")); - $this->isTreeScopeKey = $this->booleanValue($this->getAttribute("treeScopeKey")); - - $this->isNotNull = ($this->booleanValue($this->getAttribute("required"), false) || $this->isPrimaryKey); // primary keys are required - - //AutoIncrement/Sequences - $this->isAutoIncrement = $this->booleanValue($this->getAttribute("autoIncrement")); - $this->isLazyLoad = $this->booleanValue($this->getAttribute("lazyLoad")); - - // Add type, size information to associated Domain object - $this->getDomain()->replaceSqlType($this->getAttribute("sqlType")); - if (!$this->getAttribute("size") && $this->getDomain()->getType() == 'VARCHAR' && !$this->getAttribute("sqlType")) { - $size = 255; - } else { - $size = $this->getAttribute("size"); - } - $this->getDomain()->replaceSize($size); - $this->getDomain()->replaceScale($this->getAttribute("scale")); - - $defval = $this->getAttribute("defaultValue", $this->getAttribute("default")); - if ($defval !== null && strtolower($defval) !== 'null') { - $this->getDomain()->setDefaultValue(new ColumnDefaultValue($defval, ColumnDefaultValue::TYPE_VALUE)); - } elseif ($this->getAttribute("defaultExpr") !== null) { - $this->getDomain()->setDefaultValue(new ColumnDefaultValue($this->getAttribute("defaultExpr"), ColumnDefaultValue::TYPE_EXPR)); - } - - $this->inheritanceType = $this->getAttribute("inheritance"); - $this->isInheritance = ($this->inheritanceType !== null - && $this->inheritanceType !== "false"); // here we are only checking for 'false', so don't - // use boleanValue() - - $this->inputValidator = $this->getAttribute("inputValidator"); - $this->description = $this->getAttribute("description"); - } catch (Exception $e) { - throw new EngineException("Error setting up column " . var_export($this->getAttribute("name"), true) . ": " . $e->getMessage()); - } - } - - /** - * Gets domain for this column, creating a new empty domain object if none is set. - * @return Domain - */ - public function getDomain() - { - if ($this->domain === null) { - $this->domain = new Domain(); - } - return $this->domain; - } - - /** - * Returns table.column - */ - public function getFullyQualifiedName() - { - return ($this->parentTable->getName() . '.' . strtoupper($this->getName())); - } - - /** - * Get the name of the column - */ - public function getName() - { - return $this->name; - } - - /** - * Set the name of the column - */ - public function setName($newName) - { - $this->name = $newName; - } - - /** - * Get the description for the Table - */ - public function getDescription() - { - return $this->description; - } - - /** - * Set the description for the Table - * - * @param newDescription description for the Table - */ - public function setDescription($newDescription) - { - $this->description = $newDescription; - } - - /** - * Get name to use in PHP sources. It will set & return - * a self-generated phpName from it's name if it's - * not already set. - * @return string - */ - public function getPhpName() - { - if ($this->phpName === null) { - $this->setPhpName(); - } - return $this->phpName; - } - - /** - * Set name to use in PHP sources. - * - * It will generate a phpName from it's name if no - * $phpName is passed. - * - * @param String $phpName PhpName to be set - */ - public function setPhpName($phpName = null) - { - if ($phpName == null) { - $this->phpName = self::generatePhpName($this->name, $this->phpNamingMethod, $this->namePrefix); - } else { - $this->phpName = $phpName; - } - } - - /** - * Get studly version of PHP name. - * - * The studly name is the PHP name with the first character lowercase. - * - * @return string - */ - public function getStudlyPhpName() - { - $phpname = $this->getPhpName(); - if (strlen($phpname) > 1) { - return strtolower(substr($phpname, 0, 1)) . substr($phpname, 1); - } else { // 0 or 1 chars (I suppose that's rare) - return strtolower($phpname); - } - } - - /** - * Get the visibility of the accessors of this column / attribute - * @return string - */ - public function getAccessorVisibility() { - if ($this->accessorVisibility !== null) { - return $this->accessorVisibility; - } else { - return self::DEFAULT_VISIBILITY; - } - } - - /** - * Set the visibility of the accessor methods for this column / attribute - * @param $newVisibility string - */ - public function setAccessorVisibility($newVisibility) { - if (in_array($newVisibility, self::$valid_visibilities)) { - $this->accessorVisibility = $newVisibility; - } else { - $this->accessorVisibility = self::DEFAULT_VISIBILITY; - } - - } - - /** - * Get the visibility of the mutator of this column / attribute - * @return string - */ - public function getMutatorVisibility() { - if ($this->mutatorVisibility !== null) { - return $this->mutatorVisibility; - } else { - return self::DEFAULT_VISIBILITY; - } - } - - /** - * Set the visibility of the mutator methods for this column / attribute - * @param $newVisibility string - */ - public function setMutatorVisibility($newVisibility) { - if (in_array($newVisibility, self::$valid_visibilities)) { - $this->mutatorVisibility = $newVisibility; - } else { - $this->mutatorVisibility = self::DEFAULT_VISIBILITY; - } - - } - - /** - * Get the column constant name (e.g. PeerName::COLUMN_NAME). - * - * @return string A column constant name for insertion into PHP code - */ - public function getConstantName() - { - $classname = $this->getTable()->getPhpName() . 'Peer'; - $const = $this->getConstantColumnName(); - return $classname.'::'.$const; - } - - public function getConstantColumnName() - { - // was it overridden in schema.xml ? - if ($this->getPeerName()) { - return strtoupper($this->getPeerName()); - } else { - return strtoupper($this->getName()); - } - } - - /** - * Get the Peer constant name that will identify this column. - * @return string - */ - public function getPeerName() { - return $this->peerName; - } - - /** - * Set the Peer constant name that will identify this column. - * @param $name string - */ - public function setPeerName($name) { - $this->peerName = $name; - } - - /** - * Get type to use in PHP sources. - * - * If no type has been specified, then uses results of getPhpNative(). - * - * @return string The type name. - * @see getPhpNative() - */ - public function getPhpType() - { - if ($this->phpType !== null) { - return $this->phpType; - } - return $this->getPhpNative(); - } - - /** - * Get the location of this column within the table (one-based). - * @return int value of position. - */ - public function getPosition() - { - return $this->position; - } - - /** - * Get the location of this column within the table (one-based). - * @param int $v Value to assign to position. - */ - public function setPosition($v) - { - $this->position = $v; - } - - /** - * Set the parent Table of the column - */ - public function setTable(Table $parent) - { - $this->parentTable = $parent; - } - - /** - * Get the parent Table of the column - */ - public function getTable() - { - return $this->parentTable; - } - - /** - * Returns the Name of the table the column is in - */ - public function getTableName() - { - return $this->parentTable->getName(); - } - - /** - * Adds a new inheritance definition to the inheritance list and set the - * parent column of the inheritance to the current column - * @param mixed $inhdata Inheritance or XML data. - */ - public function addInheritance($inhdata) - { - if ($inhdata instanceof Inheritance) { - $inh = $inhdata; - $inh->setColumn($this); - if ($this->inheritanceList === null) { - $this->inheritanceList = array(); - $this->isEnumeratedClasses = true; - } - $this->inheritanceList[] = $inh; - return $inh; - } else { - $inh = new Inheritance(); - $inh->loadFromXML($inhdata); - return $this->addInheritance($inh); - } - } - - /** - * Get the inheritance definitions. - */ - public function getChildren() - { - return $this->inheritanceList; - } - - /** - * Determine if this column is a normal property or specifies a - * the classes that are represented in the table containing this column. - */ - public function isInheritance() - { - return $this->isInheritance; - } - - /** - * Determine if possible classes have been enumerated in the xml file. - */ - public function isEnumeratedClasses() - { - return $this->isEnumeratedClasses; - } - - /** - * Return the isNotNull property of the column - */ - public function isNotNull() - { - return $this->isNotNull; - } - - /** - * Set the isNotNull property of the column - */ - public function setNotNull($status) - { - $this->isNotNull = (boolean) $status; - } - - /** - * Return NOT NULL String for this column - * - * @return "NOT NULL" if null values are not allowed or an empty string. - */ - public function getNotNullString() - { - return $this->getTable()->getDatabase()->getPlatform()->getNullString($this->isNotNull()); - } - - /** - * Set whether the column is the primary string, - * i.e. whether its value is the default string representation of the table - * @param boolean $v - */ - public function setPrimaryString($v) - { - $this->isPrimaryString = (boolean) $v; - } - - /** - * Return true if the column is the primary string, - * i.e. if its value is the default string representation of the table - */ - public function isPrimaryString() - { - return $this->isPrimaryString; - } - - /** - * Set whether the column is a primary key or not. - * @param boolean $v - */ - public function setPrimaryKey($v) - { - $this->isPrimaryKey = (boolean) $v; - } - - /** - * Return true if the column is a primary key - */ - public function isPrimaryKey() - { - return $this->isPrimaryKey; - } - - /** - * Set if the column is the node key of a tree - */ - public function setNodeKey($nk) - { - $this->isNodeKey = (boolean) $nk; - } - - /** - * Return true if the column is a node key of a tree - */ - public function isNodeKey() - { - return $this->isNodeKey; - } - - /** - * Set if the column is the node key of a tree - */ - public function setNodeKeySep($sep) - { - $this->nodeKeySep = (string) $sep; - } - - /** - * Return true if the column is a node key of a tree - */ - public function getNodeKeySep() - { - return $this->nodeKeySep; - } - - /** - * Set if the column is the nested set left key of a tree - */ - public function setNestedSetLeftKey($nslk) - { - $this->isNestedSetLeftKey = (boolean) $nslk; - } - - /** - * Return true if the column is a nested set key of a tree - */ - public function isNestedSetLeftKey() - { - return $this->isNestedSetLeftKey; - } - - /** - * Set if the column is the nested set right key of a tree - */ - public function setNestedSetRightKey($nsrk) - { - $this->isNestedSetRightKey = (boolean) $nsrk; - } - - /** - * Return true if the column is a nested set right key of a tree - */ - public function isNestedSetRightKey() - { - return $this->isNestedSetRightKey; - } - - /** - * Set if the column is the scope key of a tree - */ - public function setTreeScopeKey($tsk) - { - $this->isTreeScopeKey = (boolean) $tsk; - } - - /** - * Return true if the column is a scope key of a tree - * @return boolean - */ - public function isTreeScopeKey() - { - return $this->isTreeScopeKey; - } - - /** - * Set true if the column is UNIQUE - * @param boolean $u - */ - public function setUnique($u) - { - $this->isUnique = $u; - } - - /** - * Get the UNIQUE property. - * @return boolean - */ - public function isUnique() - { - return $this->isUnique; - } - - /** - * Return true if the column requires a transaction in Postgres - * @return boolean - */ - public function requiresTransactionInPostgres() - { - return $this->needsTransactionInPostgres; - } - - /** - * Utility method to determine if this column is a foreign key. - * @return boolean - */ - public function isForeignKey() - { - return (count($this->getForeignKeys()) > 0); - } - - /** - * Whether this column is a part of more than one foreign key. - * @return boolean - */ - public function hasMultipleFK() - { - return (count($this->getForeignKeys()) > 1); - } - - /** - * Get the foreign key objects for this column (if it is a foreign key or part of a foreign key) - * @return array - */ - public function getForeignKeys() - { - return $this->parentTable->getColumnForeignKeys($this->name); - } - - /** - * Adds the foreign key from another table that refers to this column. - */ - public function addReferrer(ForeignKey $fk) - { - if ($this->referrers === null) { - $this->referrers = array(); - } - $this->referrers[] = $fk; - } - - /** - * Get list of references to this column. - */ - public function getReferrers() - { - if ($this->referrers === null) { - $this->referrers = array(); - } - return $this->referrers; - } - - /** - * Sets the domain up for specified Propel type. - * - * Calling this method will implicitly overwrite any previously set type, - * size, scale (or other domain attributes). - * - * @param string $propelType - */ - public function setDomainForType($propelType) - { - $this->getDomain()->copy($this->getPlatform()->getDomainForType($propelType)); - } - - /** - * Sets the propel colunm type. - * @param string $propelType - * @see Domain::setType() - */ - public function setType($propelType) - { - $this->getDomain()->setType($propelType); - if ($propelType == PropelTypes::VARBINARY|| $propelType == PropelTypes::LONGVARBINARY || $propelType == PropelTypes::BLOB) { - $this->needsTransactionInPostgres = true; - } - } - - /** - * Returns the Propel column type as a string. - * @return string The constant representing Propel type: e.g. "VARCHAR". - * @see Domain::getType() - */ - public function getType() - { - return $this->getDomain()->getType(); - } - - /** - * Returns the column PDO type integer for this column's Propel type. - * @return int The integer value representing PDO type param: e.g. PDO::PARAM_INT - */ - public function getPDOType() - { - return PropelTypes::getPDOType($this->getType()); - } - - /** - * Returns the column type as given in the schema as an object - */ - public function getPropelType() - { - return $this->getType(); - } - - /** - * Utility method to know whether column needs Blob/Lob handling. - * @return boolean - */ - public function isLobType() - { - return PropelTypes::isLobType($this->getType()); - } - - /** - * Utility method to see if the column is text type. - */ - public function isTextType() - { - return PropelTypes::isTextType($this->getType()); - } - - /** - * Utility method to see if the column is numeric type. - * @return boolean - */ - public function isNumericType() - { - return PropelTypes::isNumericType($this->getType()); - } - - /** - * Utility method to see if the column is boolean type. - * @return boolean - */ - public function isBooleanType() - { - return PropelTypes::isBooleanType($this->getType()); - } - - /** - * Utility method to know whether column is a temporal column. - * @return boolean - */ - public function isTemporalType() - { - return PropelTypes::isTemporalType($this->getType()); - } - - /** - * @see XMLElement::appendXml(DOMNode) - */ - public function appendXml(DOMNode $node) - { - $doc = ($node instanceof DOMDocument) ? $node : $node->ownerDocument; - - $colNode = $node->appendChild($doc->createElement('column')); - $colNode->setAttribute('name', $this->name); - - if ($this->phpName !== null) { - $colNode->setAttribute('phpName', $this->getPhpName()); - } - - $colNode->setAttribute('type', $this->getType()); - - $domain = $this->getDomain(); - - if ($domain->getSize() !== null) { - $colNode->setAttribute('size', $domain->getSize()); - } - - if ($domain->getScale() !== null) { - $colNode->setAttribute('scale', $domain->getScale()); - } - - if ($this->isPrimaryKey) { - $colNode->setAttribute('primaryKey', var_export($this->isPrimaryKey, true)); - } - - if ($this->isAutoIncrement) { - $colNode->setAttribute('autoIncrement', var_export($this->isAutoIncrement, true)); - } - - if ($this->isNotNull) { - $colNode->setAttribute('required', 'true'); - } else { - $colNode->setAttribute('required', 'false'); - } - - if ($domain->getDefaultValue() !== null) { - $def = $domain->getDefaultValue(); - if ($def->isExpression()) { - $colNode->setAttribute('defaultExpr', $def->getValue()); - } else { - $colNode->setAttribute('defaultValue', $def->getValue()); - } - } - - if ($this->isInheritance()) { - $colNode->setAttribute('inheritance', $this->inheritanceType); - foreach ($this->inheritanceList as $inheritance) { - $inheritance->appendXml($colNode); - } - } - - if ($this->isNodeKey()) { - $colNode->setAttribute('nodeKey', 'true'); - if ($this->getNodeKeySep() !== null) { - $colNode->setAttribute('nodeKeySep', $this->nodeKeySep); - } - } - - foreach ($this->vendorInfos as $vi) { - $vi->appendXml($colNode); - } - } - - /** - * Returns the size of the column - * @return string - */ - public function getSize() - { - return $this->domain->getSize(); - } - - /** - * Set the size of the column - * @param string $newSize - */ - public function setSize($newSize) - { - $this->domain->setSize($newSize); - } - - /** - * Returns the scale of the column - * @return string - */ - public function getScale() - { - return $this->domain->getScale(); - } - - /** - * Set the scale of the column - * @param string $newScale - */ - public function setScale($newScale) - { - $this->domain->setScale($newScale); - } - - /** - * Return the size in brackets for use in an sql - * schema if the type is String. Otherwise return an empty string - */ - public function printSize() - { - return $this->domain->printSize(); - } - - /** - * Return a string that will give this column a default value. - * @return string - */ - public function getDefaultSetting() - { - $dflt = ""; - $defaultValue = $this->getDefaultValue(); - if ($defaultValue !== null) { - $dflt .= "default "; - - if ($this->getDefaultValue()->isExpression()) { - $dflt .= $this->getDefaultValue()->getValue(); - } else { - if ($this->isTextType()) { - $dflt .= $this->getPlatform()->quote($defaultValue->getValue()); - } elseif ($this->getType() == PropelTypes::BOOLEAN) { - $dflt .= $this->getPlatform()->getBooleanString($defaultValue->getValue()); - } else { - $dflt .= $defaultValue->getValue(); - } - } - } - return $dflt; - } - - /** - * Return a string that will give this column a default value in PHP - * @return string - */ - public function getDefaultValueString() - { - $defaultValue = $this->getDefaultValue(); - if ($defaultValue !== null) { - if ($this->isNumericType()) { - $dflt = (float) $defaultValue->getValue(); - } elseif ($this->isTextType() || $this->getDefaultValue()->isExpression()) { - $dflt = "'" . str_replace("'", "\'", $defaultValue->getValue()) . "'"; - } elseif ($this->getType() == PropelTypes::BOOLEAN) { - $dflt = $this->booleanValue($defaultValue->getValue()) ? 'true' : 'false'; - } else { - $dflt = "'" . $defaultValue->getValue() . "'"; - } - } else { - $dflt = "null"; - } - return $dflt; - } - - /** - * Set a string that will give this column a default value. - */ - public function setDefaultValue($def) - { - $this->domain->setDefaultValue($def); - } - - /** - * Get the default value object for this column. - * @return ColumnDefaultValue - * @see Domain::getDefaultValue() - */ - public function getDefaultValue() - { - return $this->domain->getDefaultValue(); - } - - /** - * Get the default value suitable for use in PHP. - * @return mixed - * @see Domain::getPhpDefaultValue() - */ - public function getPhpDefaultValue() - { - return $this->domain->getPhpDefaultValue(); - } - - /** - * Returns the class name to do input validation - */ - public function getInputValidator() - { - return $this->inputValidator; - } - - /** - * Return auto increment/sequence string for the target database. We need to - * pass in the props for the target database! - */ - public function isAutoIncrement() - { - return $this->isAutoIncrement; - } - - /** - * Return auto increment/sequence string for the target database. We need to - * pass in the props for the target database! - */ - public function isLazyLoad() - { - return $this->isLazyLoad; - } - - /** - * Gets the auto-increment string. - * @return string - */ - public function getAutoIncrementString() - { - if ($this->isAutoIncrement()&& IDMethod::NATIVE === $this->getTable()->getIdMethod()) { - return $this->getPlatform()->getAutoIncrement(); - } elseif ($this->isAutoIncrement()) { - throw new EngineException("You have specified autoIncrement for column '" . $this->name . "' but you have not specified idMethod=\"native\" for table '" . $this->getTable()->getName() . "'."); - } - return ""; - } - - /** - * Set the auto increment value. - * Use isAutoIncrement() to find out if it is set or not. - */ - public function setAutoIncrement($value) - { - $this->isAutoIncrement = (boolean) $value; - } - - /** - * Set the column type from a string property - * (normally a string from an sql input file) - * - * @deprecated Do not use; this will be removed in next release. - */ - public function setTypeFromString($typeName, $size) - { - $tn = strtoupper($typeName); - $this->setType($tn); - - if ($size !== null) { - $this->size = $size; - } - - if (strpos($tn, "CHAR") !== false) { - $this->domain->setType(PropelTypes::VARCHAR); - } elseif (strpos($tn, "INT") !== false) { - $this->domain->setType(PropelTypes::INTEGER); - } elseif (strpos($tn, "FLOAT") !== false) { - $this->domain->setType(PropelTypes::FLOAT); - } elseif (strpos($tn, "DATE") !== false) { - $this->domain->setType(PropelTypes::DATE); - } elseif (strpos($tn, "TIME") !== false) { - $this->domain->setType(PropelTypes::TIMESTAMP); - } else if (strpos($tn, "BINARY") !== false) { - $this->domain->setType(PropelTypes::LONGVARBINARY); - } else { - $this->domain->setType(PropelTypes::VARCHAR); - } - } - - /** - * Return a string representation of the native PHP type which corresponds - * to the propel type of this column. Use in the generation of Base objects. - * - * @return string PHP datatype used by propel. - */ - public function getPhpNative() - { - return PropelTypes::getPhpNative($this->getType()); - } - - /** - * Returns true if the column's PHP native type is an boolean, int, long, float, double, string. - * @return boolean - * @see PropelTypes::isPhpPrimitiveType() - */ - public function isPhpPrimitiveType() - { - return PropelTypes::isPhpPrimitiveType($this->getPhpType()); - } - - /** - * Return true if column's PHP native type is an boolean, int, long, float, double. - * @return boolean - * @see PropelTypes::isPhpPrimitiveNumericType() - */ - public function isPhpPrimitiveNumericType() - { - return PropelTypes::isPhpPrimitiveNumericType($this->getPhpType()); - } - - /** - * Returns true if the column's PHP native type is a class name. - * @return boolean - * @see PropelTypes::isPhpObjectType() - */ - public function isPhpObjectType() - { - return PropelTypes::isPhpObjectType($this->getPhpType()); - } - - /** - * Get the platform/adapter impl. - * - * @return Platform - */ - public function getPlatform() - { - return $this->getTable()->getDatabase()->getPlatform(); - } - - /** - * - * @return string - * @deprecated Use DDLBuilder->getColumnDDL() instead; this will be removed in 1.3 - */ - public function getSqlString() - { - $sb = ""; - $sb .= $this->getPlatform()->quoteIdentifier($this->getName()) . " "; - $sb .= $this->getDomain()->getSqlType(); - if ($this->getPlatform()->hasSize($this->getDomain()->getSqlType())) { - $sb .= $this->getDomain()->printSize(); - } - $sb .= " "; - $sb .= $this->getDefaultSetting() . " "; - $sb .= $this->getNotNullString() . " "; - $sb .= $this->getAutoIncrementString(); - return trim($sb); - } - - public static function generatePhpName($name, $phpNamingMethod = PhpNameGenerator::CONV_METHOD_CLEAN, $namePrefix = null) { - return NameFactory::generateName(NameFactory::PHP_GENERATOR, array($name, $phpNamingMethod, $namePrefix)); - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/ColumnDefaultValue.php b/airtime_mvc/library/propel/generator/lib/model/ColumnDefaultValue.php deleted file mode 100644 index 212fc44e43..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/ColumnDefaultValue.php +++ /dev/null @@ -1,91 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -class ColumnDefaultValue -{ - - const TYPE_VALUE = "value"; - const TYPE_EXPR = "expr"; - - /** - * @var string The default value, as specified in the schema. - */ - private $value; - - /** - * @var string The type of value represented by this object (DefaultValue::TYPE_VALUE or DefaultValue::TYPE_EXPR). - */ - private $type = ColumnDefaultValue::TYPE_VALUE; - - /** - * Creates a new DefaultValue object. - * - * @param string $value The default value, as specified in the schema. - * @param string $type The type of default value (DefaultValue::TYPE_VALUE or DefaultValue::TYPE_EXPR) - */ - public function __construct($value, $type = null) - { - $this->setValue($value); - if ($type !== null) { - $this->setType($type); - } - } - - /** - * @return string The type of default value (DefaultValue::TYPE_VALUE or DefaultValue::TYPE_EXPR) - */ - public function getType() - { - return $this->type; - } - - /** - * @param string $type The type of default value (DefaultValue::TYPE_VALUE or DefaultValue::TYPE_EXPR) - */ - public function setType($type) - { - $this->type = $type; - } - - /** - * Convenience method to indicate whether the value in this object is an expression (as opposed to simple value). - * - * @return boolean Whether value this object holds is an expression. - */ - public function isExpression() - { - return ($this->type == self::TYPE_EXPR); - } - - /** - * @return string The value, as specified in the schema. - */ - public function getValue() - { - return $this->value; - } - - /** - * @param string $value The value, as specified in the schema. - */ - public function setValue($value) - { - $this->value = $value; - } - - -} diff --git a/airtime_mvc/library/propel/generator/lib/model/ConstraintNameGenerator.php b/airtime_mvc/library/propel/generator/lib/model/ConstraintNameGenerator.php deleted file mode 100644 index 735fea1b8f..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/ConstraintNameGenerator.php +++ /dev/null @@ -1,72 +0,0 @@ -NameGenerator implementation for table-specific - * constraints. Conforms to the maximum column name length for the - * type of database in use. - * - * @author Hans Lellelid (Propel) - * @author Daniel Rall (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -class ConstraintNameGenerator implements NameGenerator -{ - /** - * Conditional compilation flag. - */ - const DEBUG = false; - - /** - * First element of inputs should be of type {@link Database}, second - * should be a table name, third is the type identifier (spared if - * trimming is necessary due to database type length constraints), - * and the fourth is a Integer indicating the number - * of this contraint. - * - * @see NameGenerator - * @throws EngineException - */ - public function generateName($inputs) - { - - $db = $inputs[0]; - $name = $inputs[1]; - $namePostfix = $inputs[2]; - $constraintNbr = (string) $inputs[3]; - - // Calculate maximum RDBMS-specific column character limit. - $maxBodyLength = -1; - try { - $maxColumnNameLength = (int) $db->getPlatform()->getMaxColumnNameLength(); - $maxBodyLength = ($maxColumnNameLength - strlen($namePostfix) - - strlen($constraintNbr) - 2); - - if (self::DEBUG) { - print("maxColumnNameLength=" . $maxColumnNameLength - . " maxBodyLength=" . $maxBodyLength . "\n"); - } - } catch (EngineException $e) { - echo $e; - throw $e; - } - - // Do any necessary trimming. - if ($maxBodyLength !== -1 && strlen($name) > $maxBodyLength) { - $name = substr($name, 0, $maxBodyLength); - } - - $name .= self::STD_SEPARATOR_CHAR . $namePostfix - . self::STD_SEPARATOR_CHAR . $constraintNbr; - - return $name; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/Database.php b/airtime_mvc/library/propel/generator/lib/model/Database.php deleted file mode 100644 index e34e4485d9..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/Database.php +++ /dev/null @@ -1,676 +0,0 @@ - (Propel) - * @author Leon Messerschmidt (Torque) - * @author John McNally (Torque) - * @author Martin Poeschl (Torque) - * @author Daniel Rall (Torque) - * @author Byron Foster (Torque) - * @version $Revision: 1802 $ - * @package propel.generator.model - */ -class Database extends XMLElement -{ - - private $platform; - private $tableList = array(); - private $curColumn; - private $name; - private $pkg; - - /** - * Namespace for the generated OM. - * - * @var string - */ - protected $namespace; - - private $baseClass; - private $basePeer; - private $defaultIdMethod; - private $defaultPhpNamingMethod; - private $defaultTranslateMethod; - private $dbParent; - private $tablesByName = array(); - private $tablesByPhpName = array(); - private $heavyIndexing; - protected $tablePrefix = ''; - - private $domainMap = array(); - - /** - * List of behaviors registered for this table - * - * @var array - */ - protected $behaviors = array(); - - /** - * Constructs a new Database object. - * - * @param string $name - */ - public function __construct($name = null) - { - $this->name = $name; - } - - /** - * Sets up the Database object based on the attributes that were passed to loadFromXML(). - * @see parent::loadFromXML() - */ - protected function setupObject() - { - $this->name = $this->getAttribute("name"); - $namespace = $this->getAttribute("namespace", ''); - $package = $this->getAttribute("package"); - if ($namespace && !$package && $this->getBuildProperty('namespaceAutoPackage')) { - $package = str_replace('\\', '.', $namespace); - } - $this->namespace = $namespace; - $this->pkg = $package; - $this->baseClass = $this->getAttribute("baseClass"); - $this->basePeer = $this->getAttribute("basePeer"); - $this->defaultIdMethod = $this->getAttribute("defaultIdMethod", IDMethod::NATIVE); - $this->defaultPhpNamingMethod = $this->getAttribute("defaultPhpNamingMethod", NameGenerator::CONV_METHOD_UNDERSCORE); - $this->defaultTranslateMethod = $this->getAttribute("defaultTranslateMethod", Validator::TRANSLATE_NONE); - $this->heavyIndexing = $this->booleanValue($this->getAttribute("heavyIndexing")); - $this->tablePrefix = $this->getAttribute('tablePrefix', $this->getBuildProperty('tablePrefix')); - } - - /** - * Returns the Platform implementation for this database. - * - * @return Platform a Platform implementation - */ - public function getPlatform() - { - return $this->platform; - } - - /** - * Sets the Platform implementation for this database. - * - * @param Platform $platform A Platform implementation - */ - public function setPlatform($platform) - { - $this->platform = $platform; - } - - /** - * Get the name of the Database - */ - public function getName() - { - return $this->name; - } - - /** - * Set the name of the Database - */ - public function setName($name) - { - $this->name = $name; - } - - /** - * Get the value of package. - * @return value of package. - */ - public function getPackage() - { - return $this->pkg; - } - - /** - * Set the value of package. - * @param v Value to assign to package. - */ - public function setPackage($v) - { - $this->pkg = $v; - } - - /** - * Get the value of the namespace. - * @return value of namespace. - */ - public function getNamespace() - { - return $this->namespace; - } - - /** - * Set the value of the namespace. - * @param v Value to assign to namespace. - */ - public function setNamespace($v) - { - $this->namespace = $v; - } - - /** - * Get the value of baseClass. - * @return value of baseClass. - */ - public function getBaseClass() - { - return $this->baseClass; - } - - /** - * Set the value of baseClass. - * @param v Value to assign to baseClass. - */ - public function setBaseClass($v) - { - $this->baseClass = $v; - } - - /** - * Get the value of basePeer. - * @return value of basePeer. - */ - public function getBasePeer() - { - return $this->basePeer; - } - - /** - * Set the value of basePeer. - * @param v Value to assign to basePeer. - */ - public function setBasePeer($v) - { - $this->basePeer = $v; - } - - /** - * Get the value of defaultIdMethod. - * @return value of defaultIdMethod. - */ - public function getDefaultIdMethod() - { - return $this->defaultIdMethod; - } - - /** - * Set the value of defaultIdMethod. - * @param v Value to assign to defaultIdMethod. - */ - public function setDefaultIdMethod($v) - { - $this->defaultIdMethod = $v; - } - - /** - * Get the value of defaultPHPNamingMethod which specifies the - * method for converting schema names for table and column to PHP names. - * @return string The default naming conversion used by this database. - */ - public function getDefaultPhpNamingMethod() - { - return $this->defaultPhpNamingMethod; - } - - /** - * Set the value of defaultPHPNamingMethod. - * @param string $v The default naming conversion for this database to use. - */ - public function setDefaultPhpNamingMethod($v) - { - $this->defaultPhpNamingMethod = $v; - } - - /** - * Get the value of defaultTranslateMethod which specifies the - * method for translate validator error messages. - * @return string The default translate method. - */ - public function getDefaultTranslateMethod() - { - return $this->defaultTranslateMethod; - } - - /** - * Set the value of defaultTranslateMethod. - * @param string $v The default translate method to use. - */ - public function setDefaultTranslateMethod($v) - { - $this->defaultTranslateMethod = $v; - } - - /** - * Get the value of heavyIndexing. - * - * This is a synonym for getHeavyIndexing(). - * - * @return boolean Value of heavyIndexing. - * @see getHeavyIndexing() - */ - public function isHeavyIndexing() - { - return $this->getHeavyIndexing(); - } - - /** - * Get the value of heavyIndexing. - * - * @return boolean Value of heavyIndexing. - */ - public function getHeavyIndexing() - { - return $this->heavyIndexing; - } - - /** - * Set the value of heavyIndexing. - * @param boolean $v Value to assign to heavyIndexing. - */ - public function setHeavyIndexing($v) - { - $this->heavyIndexing = (boolean) $v; - } - - /** - * Return an array of all tables - */ - public function getTables() - { - return $this->tableList; - } - - /** - * Check whether the database has a table. - * @return boolean - */ - public function hasTable($name) - { - return array_key_exists($name, $this->tablesByName); - } - - /** - * Return the table with the specified name. - * @param string $name The name of the table (e.g. 'my_table') - * @return Table a Table object or null if it doesn't exist - */ - public function getTable($name) - { - if ($this->hasTable($name)) { - return $this->tablesByName[$name]; - } - return null; // just to be explicit - } - - /** - * Return the table with the specified phpName. - * @param string $phpName the PHP Name of the table (e.g. 'MyTable') - * @return Table a Table object or null if it doesn't exist - */ - public function getTableByPhpName($phpName) - { - if (isset($this->tablesByPhpName[$phpName])) { - return $this->tablesByPhpName[$phpName]; - } - return null; // just to be explicit - } - - /** - * An utility method to add a new table from an xml attribute. - */ - public function addTable($data) - { - if ($data instanceof Table) { - $tbl = $data; // alias - $tbl->setDatabase($this); - if (isset($this->tablesByName[$tbl->getName()])) { - throw new EngineException("Duplicate table declared: " . $tbl->getName()); - } - $this->tableList[] = $tbl; - $this->tablesByName[ $tbl->getName() ] = $tbl; - $this->tablesByPhpName[ $tbl->getPhpName() ] = $tbl; - if ($tbl->getPackage() === null) { - $tbl->setPackage($this->getPackage()); - } - return $tbl; - } else { - $tbl = new Table(); - $tbl->setDatabase($this); - $tbl->loadFromXML($data); - return $this->addTable($tbl); // call self w/ different param - } - } - - /** - * Set the parent of the database - */ - public function setAppData(AppData $parent) - { - $this->dbParent = $parent; - } - - /** - * Get the parent of the table - */ - public function getAppData() - { - return $this->dbParent; - } - - /** - * Adds Domain object from tag. - * @param mixed XML attributes (array) or Domain object. - */ - public function addDomain($data) { - - if ($data instanceof Domain) { - $domain = $data; // alias - $domain->setDatabase($this); - $this->domainMap[ $domain->getName() ] = $domain; - return $domain; - } else { - $domain = new Domain(); - $domain->setDatabase($this); - $domain->loadFromXML($data); - return $this->addDomain($domain); // call self w/ different param - } - } - - /** - * Get already configured Domain object by name. - * @return Domain - */ - public function getDomain($domainName) - { - if (isset($this->domainMap[$domainName])) { - return $this->domainMap[$domainName]; - } - return null; // just to be explicit - } - - public function getGeneratorConfig() - { - if ($this->getAppData() && $this->getAppData()->getPlatform()) { - return $this->getAppData()->getPlatform()->getGeneratorConfig(); - } else { - return null; - } - } - - public function getBuildProperty($key) - { - if($config = $this->getGeneratorConfig()) { - return $config->getBuildProperty($key); - } else { - return ''; - } - } - - /** - * Adds a new Behavior to the database - * @return Behavior A behavior instance - */ - public function addBehavior($bdata) - { - if ($bdata instanceof Behavior) { - $behavior = $bdata; - $behavior->setDatabase($this); - $this->behaviors[$behavior->getName()] = $behavior; - return $behavior; - } else { - $class = $this->getConfiguredBehavior($bdata['name']); - $behavior = new $class(); - $behavior->loadFromXML($bdata); - return $this->addBehavior($behavior); - } - } - - /** - * Get the database behaviors - * @return Array of Behavior objects - */ - public function getBehaviors() - { - return $this->behaviors; - } - - /** - * check if the database has a behavior by name - * - * @param string $name the behavior name - * @return boolean True if the behavior exists - */ - public function hasBehavior($name) - { - return array_key_exists($name, $this->behaviors); - } - - /** - * Get one database behavior by name - * @param string $name the behavior name - * @return Behavior a behavior object - */ - public function getBehavior($name) - { - return $this->behaviors[$name]; - } - - /** - * Get the table prefix for this database - * - * @return string the table prefix - */ - public function getTablePrefix() - { - return $this->tablePrefix; - } - - - public function doFinalInitialization() - { - if($defaultBehaviors = $this->getBuildProperty('behaviorDefault')) { - // add generic behaviors from build.properties - $defaultBehaviors = explode(',', $defaultBehaviors); - foreach ($defaultBehaviors as $behavior) { - $this->addBehavior(array('name' => trim($behavior))); - } - } - - // execute behavior database modifiers - foreach ($this->getBehaviors() as $behavior) { - $behavior->modifyDatabase(); - } - - $tables = $this->getTables(); - - // execute early table behaviors - foreach ($tables as $table) { - foreach ($table->getEarlyBehaviors() as $behavior) { - if (!$behavior->isTableModified()) { - $behavior->getTableModifier()->modifyTable(); - $behavior->setTableModified(true); - } - } - } - - for ($i=0,$size=count($tables); $i < $size; $i++) { - $currTable = $tables[$i]; - - // check schema integrity - // if idMethod="autoincrement", make sure a column is - // specified as autoIncrement="true" - // FIXME: Handle idMethod="native" via DB adapter. - /* - - --- REMOVING THIS BECAUSE IT'S ANNOYING - - if ($currTable->getIdMethod() == IDMethod::NATIVE ) { - $columns = $currTable->getColumns(); - $foundOne = false; - for ($j=0, $cLen=count($columns); $j < $cLen && !$foundOne; $j++) { - $foundOne = $columns[$j]->isAutoIncrement(); - } - - if (!$foundOne) { - $errorMessage = "Table '" . $currTable->getName() - . "' is set to use native id generation, but it does not " - . "have a column which declared as the one to " - . "auto increment (i.e. autoIncrement=\"true\")"; - - throw new BuildException($errorMessage); - } - } - */ - - $currTable->doFinalInitialization(); - - // setup reverse fk relations - $fks = $currTable->getForeignKeys(); - for ($j=0, $fksLen=count($fks); $j < $fksLen; $j++) { - $currFK = $fks[$j]; - $foreignTable = $this->getTable($currFK->getForeignTableName()); - if ($foreignTable === null) { - throw new BuildException("ERROR!! Attempt to set foreign" - . " key to nonexistent table, " - . $currFK->getForeignTableName() . "!"); - } - - $referrers = $foreignTable->getReferrers(); - if ($referrers === null || !in_array($currFK, $referrers, true) ) { - $foreignTable->addReferrer($currFK); - } - - // local column references - $localColumnNames = $currFK->getLocalColumns(); - - for ($k=0,$lcnLen=count($localColumnNames); $k < $lcnLen; $k++) { - - $local = $currTable->getColumn($localColumnNames[$k]); - - // give notice of a schema inconsistency. - // note we do not prevent the npe as there is nothing - // that we can do, if it is to occur. - if ($local === null) { - throw new BuildException("ERROR!! Attempt to define foreign" - . " key with nonexistent column, " - . $localColumnNames[$k] . ", in table, " - . $currTable->getName() . "!"); - } - - //check for foreign pk's - if ($local->isPrimaryKey()) { - $currTable->setContainsForeignPK(true); - } - - } // for each local col name - - // foreign column references - $foreignColumnNames = $currFK->getForeignColumns(); - for ($k=0,$fcnLen=count($localColumnNames); $k < $fcnLen; $k++) { - $foreign = $foreignTable->getColumn($foreignColumnNames[$k]); - // if the foreign column does not exist, we may have an - // external reference or a misspelling - if ($foreign === null) { - throw new BuildException("ERROR!! Attempt to set foreign" - . " key to nonexistent column, " - . $foreignColumnNames[$k] . ", in table, " - . $foreignTable->getName() . "!"); - } else { - $foreign->addReferrer($currFK); - } - } // for each foreign col ref - } - } - - // Behaviors may have added behaviors of their own - // These behaviors must launch their modifyTable() method, - // Until there is no behavior left - $behaviorsLeft = true; - while ($behaviorsLeft) { - $behaviorsLeft = false; - foreach ($tables as $table) { - foreach ($table->getBehaviors() as $behavior) { - if (!$behavior->isTableModified()) { - $behavior->getTableModifier()->modifyTable(); - $behavior->setTableModified(true); - $behaviorsLeft = true; - } - } - } - } - } - - /** - * @see XMLElement::appendXml(DOMNode) - */ - public function appendXml(DOMNode $node) - { - $doc = ($node instanceof DOMDocument) ? $node : $node->ownerDocument; - - $dbNode = $node->appendChild($doc->createElement('database')); - - $dbNode->setAttribute('name', $this->name); - - if ($this->pkg) { - $dbNode->setAttribute('package', $this->pkg); - } - - if ($this->defaultIdMethod) { - $dbNode->setAttribute('defaultIdMethod', $this->defaultIdMethod); - } - - if ($this->baseClass) { - $dbNode->setAttribute('baseClass', $this->baseClass); - } - - if ($this->basePeer) { - $dbNode->setAttribute('basePeer', $this->basePeer); - } - - if ($this->defaultPhpNamingMethod) { - $dbNode->setAttribute('defaultPhpNamingMethod', $this->defaultPhpNamingMethod); - } - - if ($this->defaultTranslateMethod) { - $dbNode->setAttribute('defaultTranslateMethod', $this->defaultTranslateMethod); - } - - /* - - FIXME - Before we can add support for domains in the schema, we need - to have a method of the Column that indicates whether the column was mapped - to a SPECIFIC domain (since Column->getDomain() will always return a Domain object) - - foreach ($this->domainMap as $domain) { - $domain->appendXml($dbNode); - } - */ - foreach ($this->vendorInfos as $vi) { - $vi->appendXml($dbNode); - } - - foreach ($this->tableList as $table) { - $table->appendXml($dbNode); - } - - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/Domain.php b/airtime_mvc/library/propel/generator/lib/model/Domain.php deleted file mode 100644 index 632e3f3749..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/Domain.php +++ /dev/null @@ -1,386 +0,0 @@ - (Propel) - * @author Martin Poeschl (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -class Domain extends XMLElement -{ - - /** - * @var string The name of this domain - */ - private $name; - - /** - * @var string Description for this domain. - */ - private $description; - - /** - * @var int Size - */ - private $size; - - /** - * @var int Scale - */ - private $scale; - - /** - * @var int Propel type from schema - */ - private $propelType; - - /** - * @var string The SQL type to use for this column - */ - private $sqlType; - - /** - * @var ColumnDefaultValue A default value - */ - private $defaultValue; - - /** - * @var Database - */ - private $database; - - /** - * Creates a new Domain object. - * If this domain needs a name, it must be specified manually. - * - * @param string $type Propel type. - * @param string $sqlType SQL type. - * @param string $size - * @param string $scale - */ - public function __construct($type = null, $sqlType = null, $size = null, $scale = null) - { - $this->propelType = $type; - $this->sqlType = ($sqlType !== null) ? $sqlType : $type; - $this->size = $size; - $this->scale = $scale; - } - - /** - * Copy the values from current object into passed-in Domain. - * @param Domain $domain Domain to copy values into. - */ - public function copy(Domain $domain) - { - $this->defaultValue = $domain->getDefaultValue(); - $this->description = $domain->getDescription(); - $this->name = $domain->getName(); - $this->scale = $domain->getScale(); - $this->size = $domain->getSize(); - $this->sqlType = $domain->getSqlType(); - $this->propelType = $domain->getType(); - } - - /** - * Sets up the Domain object based on the attributes that were passed to loadFromXML(). - * @see parent::loadFromXML() - */ - protected function setupObject() - { - $schemaType = strtoupper($this->getAttribute("type")); - $this->copy($this->getDatabase()->getPlatform()->getDomainForType($schemaType)); - - //Name - $this->name = $this->getAttribute("name"); - - // Default value - $defval = $this->getAttribute("defaultValue", $this->getAttribute("default")); - if ($defval !== null) { - $this->setDefaultValue(new ColumnDefaultValue($defval, ColumnDefaultValue::TYPE_VALUE)); - } elseif ($this->getAttribute("defaultExpr") !== null) { - $this->setDefaultValue(new ColumnDefaultValue($this->getAttribute("defaultExpr"), ColumnDefaultValue::TYPE_EXPR)); - } - - $this->size = $this->getAttribute("size"); - $this->scale = $this->getAttribute("scale"); - $this->description = $this->getAttribute("description"); - } - - /** - * Sets the owning database object (if this domain is being setup via XML). - * @param Database $database - */ - public function setDatabase(Database $database) - { - $this->database = $database; - } - - /** - * Gets the owning database object (if this domain was setup via XML). - * @return Database - */ - public function getDatabase() - { - return $this->database; - } - - /** - * @return string Returns the description. - */ - public function getDescription() - { - return $this->description; - } - - /** - * @param string $description The description to set. - */ - public function setDescription($description) - { - $this->description = $description; - } - - /** - * @return string Returns the name. - */ - public function getName() - { - return $this->name; - } - - /** - * @param string $name The name to set. - */ - public function setName($name) - { - $this->name = $name; - } - - /** - * @return string Returns the scale. - */ - public function getScale() - { - return $this->scale; - } - - /** - * @param string $scale The scale to set. - */ - public function setScale($scale) - { - $this->scale = $scale; - } - - /** - * Replaces the size if the new value is not null. - * - * @param string $value The size to set. - */ - public function replaceScale($value) - { - if ($value !== null) { - $this->scale = $value; - } - } - - /** - * @return int Returns the size. - */ - public function getSize() - { - return $this->size; - } - - /** - * @param int $size The size to set. - */ - public function setSize($size) - { - $this->size = $size; - } - - /** - * Replaces the size if the new value is not null. - * - * @param int $value The size to set. - */ - public function replaceSize($value) - { - if ($value !== null) { - $this->size = $value; - } - } - - /** - * @return string Returns the propelType. - */ - public function getType() - { - return $this->propelType; - } - - /** - * @param string $propelType The PropelTypes type to set. - */ - public function setType($propelType) - { - $this->propelType = $propelType; - } - - /** - * Replaces the type if the new value is not null. - * - * @param string $value The tyep to set. - */ - public function replaceType($value) - { - if ($value !== null) { - $this->propelType = $value; - } - } - - /** - * Gets the default value object. - * @return ColumnDefaultValue The default value object for this domain. - */ - public function getDefaultValue() - { - return $this->defaultValue; - } - - /** - * Gets the default value, type-casted for use in PHP OM. - * @return mixed - * @see getDefaultValue() - */ - public function getPhpDefaultValue() - { - if ($this->defaultValue === null) { - return null; - } else { - if ($this->defaultValue->isExpression()) { - throw new EngineException("Cannot get PHP version of default value for default value EXPRESSION."); - } - if ($this->propelType === PropelTypes::BOOLEAN || $this->propelType === PropelTypes::BOOLEAN_EMU) { - return $this->booleanValue($this->defaultValue->getValue()); - } else { - return $this->defaultValue->getValue(); - } - } - } - - /** - * @param ColumnDefaultValue $value The column default value to set. - */ - public function setDefaultValue(ColumnDefaultValue $value) - { - $this->defaultValue = $value; - } - - /** - * Replaces the default value if the new value is not null. - * - * @param ColumnDefaultValue $value The defualt value object - */ - public function replaceDefaultValue(ColumnDefaultValue $value = null) - { - if ($value !== null) { - $this->defaultValue = $value; - } - } - - /** - * @return string Returns the sqlType. - */ - public function getSqlType() - { - return $this->sqlType; - } - - /** - * @param string $sqlType The sqlType to set. - */ - public function setSqlType($sqlType) - { - $this->sqlType = $sqlType; - } - - /** - * Replaces the SQL type if the new value is not null. - * @param string $sqlType The native SQL type to use for this domain. - */ - public function replaceSqlType($sqlType) - { - if ($sqlType !== null) { - $this->sqlType = $sqlType; - } - } - - /** - * Return the size and scale in brackets for use in an sql schema. - * - * @return string Size and scale or an empty String if there are no values - * available. - */ - public function printSize() - { - if ($this->size !== null && $this->scale !== null) { - return '(' . $this->size . ',' . $this->scale . ')'; - } elseif ($this->size !== null) { - return '(' . $this->size . ')'; - } else { - return ""; - } - } - - /** - * @see XMLElement::appendXml(DOMNode) - */ - public function appendXml(DOMNode $node) - { - $doc = ($node instanceof DOMDocument) ? $node : $node->ownerDocument; - - $domainNode = $node->appendChild($doc->createElement('domain')); - $domainNode->setAttribute('type', $this->getType()); - $domainNode->setAttribute('name', $this->getName()); - - if ($this->sqlType !== $this->getType()) { - $domainNode->setAttribute('sqlType', $this->sqlType); - } - - $def = $this->getDefaultValue(); - if ($def) { - if ($def->isExpression()) { - $domainNode->setAttribute('defaultExpr', $def->getValue()); - } else { - $domainNode->setAttribute('defaultValue', $def->getValue()); - } - } - - if ($this->size) { - $domainNode->setAttribute('size', $this->size); - } - - if ($this->scale) { - $domainNode->setAttribute('scale', $this->scale); - } - - if ($this->description) { - $domainNode->setAttribute('description', $this->description); - } - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/model/ForeignKey.php b/airtime_mvc/library/propel/generator/lib/model/ForeignKey.php deleted file mode 100644 index 75b11584e4..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/ForeignKey.php +++ /dev/null @@ -1,509 +0,0 @@ - - * @author Fedor - * @author Daniel Rall - * @version $Revision: 1778 $ - * @package propel.generator.model - */ -class ForeignKey extends XMLElement -{ - - protected $foreignTableName; - protected $name; - protected $phpName; - protected $refPhpName; - protected $defaultJoin; - protected $onUpdate; - protected $onDelete; - protected $parentTable; - protected $localColumns = array(); - protected $foreignColumns = array(); - - // the uppercase equivalent of the onDelete/onUpdate values in the dtd - const NONE = ""; // No "ON [ DELETE | UPDATE]" behaviour specified. - const NOACTION = "NO ACTION"; - const CASCADE = "CASCADE"; - const RESTRICT = "RESTRICT"; - const SETDEFAULT = "SET DEFAULT"; - const SETNULL = "SET NULL"; - - /** - * Constructs a new ForeignKey object. - * - * @param string $name - */ - public function __construct($name=null) - { - $this->name = $name; - } - - /** - * Sets up the ForeignKey object based on the attributes that were passed to loadFromXML(). - * @see parent::loadFromXML() - */ - protected function setupObject() - { - $this->foreignTableName = $this->getTable()->getDatabase()->getTablePrefix() . $this->getAttribute("foreignTable"); - $this->name = $this->getAttribute("name"); - $this->phpName = $this->getAttribute("phpName"); - $this->refPhpName = $this->getAttribute("refPhpName"); - $this->defaultJoin = $this->getAttribute('defaultJoin'); - $this->onUpdate = $this->normalizeFKey($this->getAttribute("onUpdate")); - $this->onDelete = $this->normalizeFKey($this->getAttribute("onDelete")); - } - - /** - * normalizes the input of onDelete, onUpdate attributes - */ - private function normalizeFKey($attrib) - { - if ($attrib === null || strtoupper($attrib) == "NONE") { - $attrib = self::NONE; - } - $attrib = strtoupper($attrib); - if ($attrib == "SETNULL") { - $attrib = self::SETNULL; - } - return $attrib; - } - - /** - * returns whether or not the onUpdate attribute is set - */ - public function hasOnUpdate() - { - return ($this->onUpdate !== self::NONE); - } - - /** - * returns whether or not the onDelete attribute is set - */ - public function hasOnDelete() - { - return ($this->onDelete !== self::NONE); - } - - /** - * returns the onUpdate attribute - * @return string - */ - public function getOnUpdate() - { - return $this->onUpdate; - } - - /** - * Returns the onDelete attribute - * @return string - */ - public function getOnDelete() - { - return $this->onDelete; - } - - /** - * sets the onDelete attribute - */ - public function setOnDelete($value) - { - $this->onDelete = $this->normalizeFKey($value); - } - - /** - * sets the onUpdate attribute - */ - public function setOnUpdate($value) - { - $this->onUpdate = $this->normalizeFKey($value); - } - - /** - * Returns the name attribute. - */ - public function getName() - { - return $this->name; - } - - /** - * Sets the name attribute. - */ - public function setName($name) - { - $this->name = $name; - } - - /** - * Gets the phpName for this foreign key (if any). - * @return string - */ - public function getPhpName() - { - return $this->phpName; - } - - /** - * Sets a phpName to use for this foreign key. - * @param string $name - */ - public function setPhpName($name) - { - $this->phpName = $name; - } - - /** - * Gets the refPhpName for this foreign key (if any). - * @return string - */ - public function getRefPhpName() - { - return $this->refPhpName; - } - - /** - * Sets a refPhpName to use for this foreign key. - * @param string $name - */ - public function setRefPhpName($name) - { - $this->refPhpName = $name; - } - - /** - * Gets the defaultJoin for this foreign key (if any). - * @return string - */ - public function getDefaultJoin() - { - return $this->defaultJoin; - } - - /** - * Sets a defaultJoin to use for this foreign key. - * @param string $name - */ - public function setDefaultJoin($defaultJoin) - { - $this->defaultJoin = $defaultJoin; - } - - /** - * Get the foreignTableName of the FK - */ - public function getForeignTableName() - { - return $this->foreignTableName; - } - - /** - * Set the foreignTableName of the FK - */ - public function setForeignTableName($tableName) - { - $this->foreignTableName = $tableName; - } - - /** - * Gets the resolved foreign Table model object. - * @return Table - */ - public function getForeignTable() - { - return $this->getTable()->getDatabase()->getTable($this->getForeignTableName()); - } - - /** - * Set the parent Table of the foreign key - */ - public function setTable(Table $parent) - { - $this->parentTable = $parent; - } - - /** - * Get the parent Table of the foreign key - */ - public function getTable() - { - return $this->parentTable; - } - - /** - * Returns the Name of the table the foreign key is in - */ - public function getTableName() - { - return $this->parentTable->getName(); - } - - /** - * Adds a new reference entry to the foreign key. - */ - public function addReference($p1, $p2 = null) - { - if (is_array($p1)) { - $this->addReference(@$p1["local"], @$p1["foreign"]); - } else { - if ($p1 instanceof Column) { - $p1 = $p1->getName(); - } - if ($p2 instanceof Column) { - $p2 = $p2->getName(); - } - $this->localColumns[] = $p1; - $this->foreignColumns[] = $p2; - } - } - - /** - * Clear the references of this foreign key - */ - public function clearReferences() - { - $this->localColumns[] = array(); - $this->foreignColumns[] = array(); - } - - /** - * Return a comma delimited string of local column names - * @deprecated because Column::makeList() is deprecated; use the array-returning getLocalColumns() and DDLBuilder->getColumnList() instead instead. - */ - public function getLocalColumnNames() - { - return Column::makeList($this->getLocalColumns(), $this->getTable()->getDatabase()->getPlatform()); - } - - /** - * Return a comma delimited string of foreign column names - * @deprecated because Column::makeList() is deprecated; use the array-returning getForeignColumns() and DDLBuilder->getColumnList() instead instead. - */ - public function getForeignColumnNames() - { - return Column::makeList($this->getForeignColumns(), $this->getTable()->getDatabase()->getPlatform()); - } - - /** - * Return an array of local column names. - * @return array string[] - */ - public function getLocalColumns() - { - return $this->localColumns; - } - - /** - * Utility method to get local column to foreign column - * mapping for this foreign key. - */ - public function getLocalForeignMapping() - { - $h = array(); - for ($i=0, $size=count($this->localColumns); $i < $size; $i++) { - $h[$this->localColumns[$i]] = $this->foreignColumns[$i]; - } - return $h; - } - - /** - * Utility method to get local column to foreign column - * mapping for this foreign key. - */ - public function getForeignLocalMapping() - { - $h = array(); - for ($i=0, $size=count($this->localColumns); $i < $size; $i++) { - $h[$this->foreignColumns[$i]] = $this->localColumns[$i]; - } - return $h; - } - - /** - * Utility method to get local and foreign column objects - * mapping for this foreign key. - */ - public function getColumnObjectsMapping() - { - $mapping = array(); - $localTable = $this->getTable(); - $foreignTable = $this->getForeignTable(); - for ($i=0, $size=count($this->localColumns); $i < $size; $i++) { - $mapping[]= array( - 'local' => $localTable->getColumn($this->localColumns[$i]), - 'foreign' => $foreignTable->getColumn($this->foreignColumns[$i]), - ); - } - return $mapping; - } - - /** - * Get the foreign column mapped to specified local column. - * @return string Column name. - */ - public function getMappedForeignColumn($local) - { - $m = $this->getLocalForeignMapping(); - if (isset($m[$local])) { - return $m[$local]; - } - return null; - } - - /** - * Get the local column mapped to specified foreign column. - * @return string Column name. - */ - public function getMappedLocalColumn($foreign) - { - $m = $this->getForeignLocalMapping(); - if (isset($m[$foreign])) { - return $m[$foreign]; - } - return null; - } - - /** - * Return an array of foreign column objects. - * @return array Column[] - */ - public function getForeignColumns() - { - return $this->foreignColumns; - } - - /** - * Whether this foreign key uses a required column, or a list or required columns. - * - * @return boolean - */ - public function isLocalColumnsRequired() - { - foreach ($this->getLocalColumns() as $columnName) { - if (!$this->getTable()->getColumn($columnName)->isNotNull()) { - return false; - } - } - return true; - } - - /** - * Whether this foreign key is also the primary key of the local table. - * - * @return boolean - */ - public function isLocalPrimaryKey() - { - $localCols = $this->getLocalColumns(); - - $localPKColumnObjs = $this->getTable()->getPrimaryKey(); - - $localPKCols = array(); - foreach ($localPKColumnObjs as $lPKCol) { - $localPKCols[] = $lPKCol->getName(); - } - - return (!array_diff($localPKCols, $localCols)); - } - - /** - * Whether this foreign key is matched by an invertes foreign key (on foreign table). - * - * This is to prevent duplicate columns being generated for a 1:1 relationship that is represented - * by foreign keys on both tables. I don't know if that's good practice ... but hell, why not - * support it. - * - * @param ForeignKey $fk - * @return boolean - * @link http://propel.phpdb.org/trac/ticket/549 - */ - public function isMatchedByInverseFK() - { - return (bool) $this->getInverseFK(); - } - - public function getInverseFK() - { - $foreignTable = $this->getForeignTable(); - $map = $this->getForeignLocalMapping(); - - foreach ($foreignTable->getForeignKeys() as $refFK) { - $fkMap = $refFK->getLocalForeignMapping(); - if ( ($refFK->getTableName() == $this->getTableName()) && ($map == $fkMap) ) { // compares keys and values, but doesn't care about order, included check to make sure it's the same table (fixes #679) - return $refFK; - } - } - } - - /** - * Get the other foreign keys starting on the same table - * Used in many-to-many relationships - * - * @return ForeignKey - */ - public function getOtherFks() - { - $fks = array(); - foreach ($this->getTable()->getForeignKeys() as $fk) { - if ($fk !== $this) { - $fks[]= $fk; - } - } - return $fks; - } - - /** - * @see XMLElement::appendXml(DOMNode) - */ - public function appendXml(DOMNode $node) - { - $doc = ($node instanceof DOMDocument) ? $node : $node->ownerDocument; - - $fkNode = $node->appendChild($doc->createElement('foreign-key')); - - $fkNode->setAttribute('foreignTable', $this->getForeignTableName()); - $fkNode->setAttribute('name', $this->getName()); - - if ($this->getPhpName()) { - $fkNode->setAttribute('phpName', $this->getPhpName()); - } - - if ($this->getRefPhpName()) { - $fkNode->setAttribute('refPhpName', $this->getRefPhpName()); - } - - if ($this->getDefaultJoin()) { - $fkNode->setAttribute('defaultJoin', $this->getDefaultJoin()); - } - - if ($this->getOnDelete()) { - $fkNode->setAttribute('onDelete', $this->getOnDelete()); - } - - if ($this->getOnUpdate()) { - $fkNode->setAttribute('onUpdate', $this->getOnUpdate()); - } - - for ($i=0, $size=count($this->localColumns); $i < $size; $i++) { - $refNode = $fkNode->appendChild($doc->createElement('reference')); - $refNode->setAttribute('local', $this->localColumns[$i]); - $refNode->setAttribute('foreign', $this->foreignColumns[$i]); - } - - foreach ($this->vendorInfos as $vi) { - $vi->appendXml($fkNode); - } - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/IDMethod.php b/airtime_mvc/library/propel/generator/lib/model/IDMethod.php deleted file mode 100644 index 469ddfd857..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/IDMethod.php +++ /dev/null @@ -1,35 +0,0 @@ - (Propel) - * @author Daniel Rall (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -interface IDMethod -{ - - /** - * Key generation via database-specific ID method - * (i.e. auto-increment for MySQL, sequence for Oracle, etc.). - */ - const NATIVE = "native"; - - /** - * No RDBMS key generation (keys may be generated by the - * application). - */ - const NO_ID_METHOD = "none"; - -} diff --git a/airtime_mvc/library/propel/generator/lib/model/IdMethodParameter.php b/airtime_mvc/library/propel/generator/lib/model/IdMethodParameter.php deleted file mode 100644 index f9f1eb60c7..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/IdMethodParameter.php +++ /dev/null @@ -1,108 +0,0 @@ - (Propel) - * @author John McNally (Torque) - * @author Daniel Rall (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -class IdMethodParameter extends XMLElement -{ - - private $name; - private $value; - private $parentTable; - - /** - * Sets up the IdMethodParameter object based on the attributes that were passed to loadFromXML(). - * @see parent::loadFromXML() - */ - protected function setupObject() - { - $this->name = $this->getAttribute("name"); - $this->value = $this->getAttribute("value"); - } - - /** - * Get the parameter name - */ - public function getName() - { - return $this->name; - } - - /** - * Set the parameter name - */ - public function setName($name) - { - $this->name = $name; - } - - /** - * Get the parameter value - */ - public function getValue() - { - return $this->value; - } - - /** - * Set the parameter value - */ - public function setValue($value) - { - $this->value = $value; - } - - /** - * Set the parent Table of the id method - */ - public function setTable(Table $parent) - { - $this->parentTable = $parent; - } - - /** - * Get the parent Table of the id method - */ - public function getTable() - { - return $this->parentTable; - } - - /** - * Returns the Name of the table the id method is in - */ - public function getTableName() - { - return $this->parentTable->getName(); - } - - /** - * @see XMLElement::appendXml(DOMNode) - */ - public function appendXml(DOMNode $node) - { - $doc = ($node instanceof DOMDocument) ? $node : $node->ownerDocument; - - $paramNode = $node->appendChild($doc->createElement('id-method-parameter')); - if ($this->getName()) { - $paramNode->setAttribute('name', $this->getName()); - } - $paramNode->setAttribute('value', $this->getValue()); - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/Index.php b/airtime_mvc/library/propel/generator/lib/model/Index.php deleted file mode 100644 index 3e6add9a43..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/Index.php +++ /dev/null @@ -1,285 +0,0 @@ - - * @author Daniel Rall - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -class Index extends XMLElement -{ - - /** enables debug output */ - const DEBUG = false; - - private $indexName; - private $parentTable; - - /** @var array string[] */ - private $indexColumns; - - /** @var array */ - private $indexColumnSizes = array(); - - /** - * Creates a new Index instance. - * - * @param string $name - */ - public function __construct($name=null) - { - $this->indexName = $name; - } - - private function createName() - { - $table = $this->getTable(); - $inputs = array(); - $inputs[] = $table->getDatabase(); - $inputs[] = $table->getName(); - if ($this->isUnique()) { - $inputs[] = "U"; - } else { - $inputs[] = "I"; - } - // ASSUMPTION: This Index not yet added to the list. - if ($this->isUnique()) { - $inputs[] = count($table->getUnices()) + 1; - } else { - $inputs[] = count($table->getIndices()) + 1; - } - - $this->indexName = NameFactory::generateName( - NameFactory::CONSTRAINT_GENERATOR, $inputs); - } - - /** - * Sets up the Index object based on the attributes that were passed to loadFromXML(). - * @see parent::loadFromXML() - */ - protected function setupObject() - { - $this->indexName = $this->getAttribute("name"); - } - - /** - * @see #isUnique() - * @deprecated Use isUnique() instead. - */ - public function getIsUnique() - { - return $this->isUnique(); - } - - /** - * Returns the uniqueness of this index. - */ - public function isUnique() - { - return false; - } - - /** - * @see #getName() - * @deprecated Use getName() instead. - */ - public function getIndexName() - { - return $this->getName(); - } - - /** - * Gets the name of this index. - */ - public function getName() - { - if ($this->indexName === null) { - try { - // generate an index name if we don't have a supplied one - $this->createName(); - } catch (EngineException $e) { - // still no name - } - } - return substr($this->indexName, 0, $this->getTable()->getDatabase()->getPlatform()->getMaxColumnNameLength()); - } - - /** - * @see #setName(String name) - * @deprecated Use setName(String name) instead. - */ - public function setIndexName($name) - { - $this->setName($name); - } - - /** - * Set the name of this index. - */ - public function setName($name) - { - $this->indexName = $name; - } - - /** - * Set the parent Table of the index - */ - public function setTable(Table $parent) - { - $this->parentTable = $parent; - } - - /** - * Get the parent Table of the index - */ - public function getTable() - { - return $this->parentTable; - } - - /** - * Returns the Name of the table the index is in - */ - public function getTableName() - { - return $this->parentTable->getName(); - } - - /** - * Adds a new column to an index. - * @param mixed $data Column or attributes from XML. - */ - public function addColumn($data) - { - if ($data instanceof Column) { - $column = $data; - $this->indexColumns[] = $column->getName(); - if ($column->getSize()) { - $this->indexColumnSizes[$column->getName()] = $column->getSize(); - } - } else { - $attrib = $data; - $name = $attrib["name"]; - $this->indexColumns[] = $name; - if (isset($attrib["size"])) { - $this->indexColumnSizes[$name] = $attrib["size"]; - } - } - } - - /** - * Sets array of columns to use for index. - * - * @param array $indexColumns Column[] - */ - public function setColumns(array $indexColumns) - { - $this->indexColumns = array(); - $this->indexColumnSizes = array(); - foreach ($indexColumns as $col) { - $this->addColumn($col); - } - } - - /** - * Whether there is a size for the specified column. - * @param string $name - * @return boolean - */ - public function hasColumnSize($name) - { - return isset($this->indexColumnSizes[$name]); - } - - /** - * Returns the size for the specified column, if given. - * @param string $name - * @return numeric The size or NULL - */ - public function getColumnSize($name) - { - if (isset($this->indexColumnSizes[$name])) { - return $this->indexColumnSizes[$name]; - } - return null; // just to be explicit - } - - /** - * @see #getColumnList() - * @deprecated Use getColumnList() instead (which is not deprecated too!) - */ - public function getIndexColumnList() - { - return $this->getColumnList(); - } - - /** - * Return a comma delimited string of the columns which compose this index. - * @deprecated because Column::makeList() is deprecated; use the array-returning getColumns() and DDLBuilder->getColumnList() instead instead. - */ - public function getColumnList() - { - return Column::makeList($this->getColumns(), $this->getTable()->getDatabase()->getPlatform()); - } - - /** - * @see #getColumns() - * @deprecated Use getColumns() instead. - */ - public function getIndexColumns() - { - return $this->getColumns(); - } - - - /** - * Check whether the index has columns. - * @return boolean - */ - public function hasColumns() - { - return count($this->indexColumns) > 0; - } - - /** - * Return the list of local columns. You should not edit this list. - * @return array string[] - */ - public function getColumns() - { - return $this->indexColumns; - } - - /** - * @see XMLElement::appendXml(DOMNode) - */ - public function appendXml(DOMNode $node) - { - $doc = ($node instanceof DOMDocument) ? $node : $node->ownerDocument; - - $idxNode = $node->appendChild($doc->createElement('index')); - $idxNode->setAttribute('name', $this->getName()); - - foreach ($this->indexColumns as $colname) { - $idxColNode = $idxNode->appendChild($doc->createElement('index-column')); - $idxColNode->setAttribute('name', $colname); - } - - foreach ($this->vendorInfos as $vi) { - $vi->appendXml($idxNode); - } - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/Inheritance.php b/airtime_mvc/library/propel/generator/lib/model/Inheritance.php deleted file mode 100644 index d5dc0336a3..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/Inheritance.php +++ /dev/null @@ -1,147 +0,0 @@ - (Propel) - * @author John McNally (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -class Inheritance extends XMLElement -{ - - private $key; - private $className; - private $pkg; - private $ancestor; - private $parent; - - /** - * Sets up the Inheritance object based on the attributes that were passed to loadFromXML(). - * @see parent::loadFromXML() - */ - protected function setupObject() - { - $this->key = $this->getAttribute("key"); - $this->className = $this->getAttribute("class"); - $this->pkg = $this->getAttribute("package"); - $this->ancestor = $this->getAttribute("extends"); - } - - /** - * Get the value of key. - * @return value of key. - */ - public function getKey() - { - return $this->key; - } - - /** - * Set the value of key. - * @param v Value to assign to key. - */ - public function setKey($v) - { - $this->key = $v; - } - - /** - * Get the value of parent. - * @return value of parent. - */ - public function getColumn() - { - return $this->parent; - } - - /** - * Set the value of parent. - * @param v Value to assign to parent. - */ - public function setColumn(Column $v) - { - $this->parent = $v; - } - - /** - * Get the value of className. - * @return value of className. - */ - public function getClassName() - { - return $this->className; - } - - /** - * Set the value of className. - * @param v Value to assign to className. - */ - public function setClassName($v) - { - $this->className = $v; - } - - /** - * Get the value of package. - * @return value of package. - */ - public function getPackage() - { - return $this->pkg; - } - - /** - * Set the value of package. - * @param v Value to assign to package. - */ - public function setPackage($v) - { - $this->pkg = $v; - } - - /** - * Get the value of ancestor. - * @return value of ancestor. - */ - public function getAncestor() - { - return $this->ancestor; - } - - /** - * Set the value of ancestor. - * @param v Value to assign to ancestor. - */ - public function setAncestor($v) - { - $this->ancestor = $v; - } - - /** - * @see XMLElement::appendXml(DOMNode) - */ - public function appendXml(DOMNode $node) - { - $doc = ($node instanceof DOMDocument) ? $node : $node->ownerDocument; - - $inherNode = $node->appendChild($doc->createElement('inheritance')); - $inherNode->setAttribute('key', $this->key); - $inherNode->setAttribute('class', $this->className); - - if ($this->ancestor !== null) { - $inherNode->setAttribute('extends', $this->ancestor); - } - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/NameFactory.php b/airtime_mvc/library/propel/generator/lib/model/NameFactory.php deleted file mode 100644 index dc78531eb3..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/NameFactory.php +++ /dev/null @@ -1,77 +0,0 @@ - (Propel) - * @author Daniel Rall (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -class NameFactory -{ - - /** - * The class name of the PHP name generator. - */ - const PHP_GENERATOR = 'PhpNameGenerator'; - - /** - * The fully qualified class name of the constraint name generator. - */ - const CONSTRAINT_GENERATOR = 'ConstraintNameGenerator'; - - /** - * The single instance of this class. - */ - private static $instance; - - /** - * The cache of NameGenerator algorithms in use for - * name generation, keyed by fully qualified class name. - */ - private static $algorithms = array(); - - /** - * Factory method which retrieves an instance of the named generator. - * - * @param name The fully qualified class name of the name - * generation algorithm to retrieve. - */ - protected static function getAlgorithm($name) - { - if (!isset(self::$algorithms[$name])) { - self::$algorithms[$name] = new $name(); - } - return self::$algorithms[$name]; - } - - /** - * Given a list of String objects, implements an - * algorithm which produces a name. - * - * @param string $algorithmName The fully qualified class name of the {@link NameGenerator} - * implementation to use to generate names. - * @param array $inputs Inputs used to generate a name. - * @return The generated name. - * @throws EngineException - */ - public static function generateName($algorithmName, $inputs) - { - $algorithm = self::getAlgorithm($algorithmName); - return $algorithm->generateName($inputs); - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/NameGenerator.php b/airtime_mvc/library/propel/generator/lib/model/NameGenerator.php deleted file mode 100644 index 78b9077c23..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/NameGenerator.php +++ /dev/null @@ -1,73 +0,0 @@ - (Propel) - * @author Daniel Rall (Torque) - * @author Byron Foster (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -interface NameGenerator -{ - - /** - * The character used by most implementations as the separator - * between name elements. - */ - const STD_SEPARATOR_CHAR = '_'; - - /** - * Traditional method for converting schema table and column names - * to PHP names. The CONV_METHOD_XXX constants - * define how names for columns and tables in the database schema - * will be converted to PHP source names. - * - * @see PhpNameGenerator::underscoreMethod() - */ - const CONV_METHOD_UNDERSCORE = "underscore"; - - /** - * Heavier method for converting schema table and column names - * to PHP names. Similar to {@link #CONV_METHOD_UNDERSCORE} but - * this one will pass only letters and numbers through and will - * use as separator any character that is not a letter or a number - * inside the string to be converted. The CONV_METHOD_XXX - * constants define how names for columns and tales in the - * database schema will be converted to PHP source names. - */ - const CONV_METHOD_CLEAN = "clean"; - - /** - * Similar to {@link #CONV_METHOD_UNDERSCORE} except nothing is - * converted to lowercase. - * - * @see PhpNameGenerator::phpnameMethod() - */ - const CONV_METHOD_PHPNAME = "phpname"; - - /** - * Specifies no modification when converting from a schema column - * or table name to a PHP name. - */ - const CONV_METHOD_NOCHANGE = "nochange"; - - /** - * Given a list of String objects, implements an - * algorithm which produces a name. - * - * @param inputs Inputs used to generate a name. - * @return The generated name. - * @throws EngineException - */ - public function generateName($inputs); -} diff --git a/airtime_mvc/library/propel/generator/lib/model/PhpNameGenerator.php b/airtime_mvc/library/propel/generator/lib/model/PhpNameGenerator.php deleted file mode 100644 index fc777ce023..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/PhpNameGenerator.php +++ /dev/null @@ -1,167 +0,0 @@ -NameGenerator implementation for PHP-esque names. - * - * @author Hans Lellelid (Propel) - * @author Daniel Rall (Torque) - * @author Byron Foster (Torque) - * @author Bernd Goldschmidt - * @version $Revision: 1793 $ - * @package propel.generator.model - */ -class PhpNameGenerator implements NameGenerator -{ - - /** - * inputs should consist of two (three) elements, the - * original name of the database element and the method for - * generating the name. - * The optional third element may contain a prefix that will be - * stript from name prior to generate the resulting name. - * There are currently three methods: - * CONV_METHOD_NOCHANGE - xml names are converted - * directly to php names without modification. - * CONV_METHOD_UNDERSCORE will capitalize the first - * letter, remove underscores, and capitalize each letter before - * an underscore. All other letters are lowercased. "phpname" - * works the same as the CONV_METHOD_PHPNAME method - * but will not lowercase any characters. - * - * @param inputs list expected to contain two (optional: three) parameters, - * element 0 contains name to convert, element 1 contains method for conversion, - * optional element 2 contains prefix to be striped from name - * @return The generated name. - * @see NameGenerator - */ - public function generateName($inputs) - { - $schemaName = $inputs[0]; - $method = $inputs[1]; - - if (count($inputs)>2) { - $prefix = $inputs[2]; - if ($prefix != '' && substr($schemaName, 0, strlen($prefix)) == $prefix) { - $schemaName = substr($schemaName, strlen($prefix)); - } - } - - $phpName = null; - - switch ($method) { - case self::CONV_METHOD_CLEAN: - $phpName = $this->cleanMethod($schemaName); - break; - case self::CONV_METHOD_PHPNAME: - $phpName = $this->phpnameMethod($schemaName); - break; - case self::CONV_METHOD_NOCHANGE: - $phpName = $this->nochangeMethod($schemaName); - break; - case self::CONV_METHOD_UNDERSCORE: - default: - $phpName = $this->underscoreMethod($schemaName); - } - - return $phpName; - } - - /** - * Converts a database schema name to php object name by Camelization. - * Removes STD_SEPARATOR_CHAR, capitilizes first letter - * of name and each letter after the STD_SEPERATOR, - * converts the rest of the letters to lowercase. - * - * This method should be named camelizeMethod() for clarity - * - * my_CLASS_name -> MyClassName - * - * @param string $schemaName name to be converted. - * @return string Converted name. - * @see NameGenerator - * @see #underscoreMethod() - */ - protected function underscoreMethod($schemaName) - { - $name = ""; - $tok = strtok($schemaName, self::STD_SEPARATOR_CHAR); - while ($tok) { - $name .= ucfirst(strtolower($tok)); - $tok = strtok(self::STD_SEPARATOR_CHAR); - } - return $name; - } - - /** - * Converts a database schema name to php object name. Removes - * any character that is not a letter or a number and capitilizes - * first letter of the name, the first letter of each alphanumeric - * block and converts the rest of the letters to lowercase. - * - * T$NAMA$RFO_max => TNamaRfoMax - * - * @param string $schemaName name to be converted. - * @return string Converted name. - * @see NameGenerator - * @see #underscoreMethod() - */ - protected function cleanMethod($schemaName) - { - $name = ""; - $regexp = '/([a-z0-9]+)/i'; - $matches = array(); - if (preg_match_all($regexp, $schemaName, $matches)) { - foreach($matches[1] AS $tok) { - $name .= ucfirst(strtolower($tok)); - } - } else { - return $schemaName; - } - return $name; - } - - /** - * Converts a database schema name to php object name. Operates - * same as underscoreMethod but does not convert anything to - * lowercase. - * - * my_CLASS_name -> MyCLASSName - * - * @param string $schemaName name to be converted. - * @return string Converted name. - * @see NameGenerator - * @see #underscoreMethod(String) - */ - protected function phpnameMethod($schemaName) - { - $name = ""; - $tok = strtok($schemaName, self::STD_SEPARATOR_CHAR); - while ($tok !== false) { - $name .= ucfirst($tok); - $tok = strtok(self::STD_SEPARATOR_CHAR); - } - return $name; - } - - /** - * Converts a database schema name to PHP object name. In this - * case no conversion is made. - * - * @param string $name name to be converted. - * @return string The name parameter, unchanged. - */ - protected function nochangeMethod($name) - { - return $name; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/PropelTypes.php b/airtime_mvc/library/propel/generator/lib/model/PropelTypes.php deleted file mode 100644 index 8a037f5535..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/PropelTypes.php +++ /dev/null @@ -1,343 +0,0 @@ - (Propel) - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -class PropelTypes -{ - - const CHAR = "CHAR"; - const VARCHAR = "VARCHAR"; - const LONGVARCHAR = "LONGVARCHAR"; - const CLOB = "CLOB"; - const CLOB_EMU = "CLOB_EMU"; - const NUMERIC = "NUMERIC"; - const DECIMAL = "DECIMAL"; - const TINYINT = "TINYINT"; - const SMALLINT = "SMALLINT"; - const INTEGER = "INTEGER"; - const BIGINT = "BIGINT"; - const REAL = "REAL"; - const FLOAT = "FLOAT"; - const DOUBLE = "DOUBLE"; - const BINARY = "BINARY"; - const VARBINARY = "VARBINARY"; - const LONGVARBINARY = "LONGVARBINARY"; - const BLOB = "BLOB"; - const DATE = "DATE"; - const TIME = "TIME"; - const TIMESTAMP = "TIMESTAMP"; - const BU_DATE = "BU_DATE"; - const BU_TIMESTAMP = "BU_TIMESTAMP"; - const BOOLEAN = "BOOLEAN"; - const BOOLEAN_EMU = "BOOLEAN_EMU"; - - private static $TEXT_TYPES = array( - self::CHAR, self::VARCHAR, self::LONGVARCHAR, self::CLOB, self::DATE, self::TIME, self::TIMESTAMP, self::BU_DATE, self::BU_TIMESTAMP - ); - - private static $LOB_TYPES = array( - self::VARBINARY, self::LONGVARBINARY, self::BLOB - ); - - private static $TEMPORAL_TYPES = array( - self::DATE, self::TIME, self::TIMESTAMP, self::BU_DATE, self::BU_TIMESTAMP - ); - - private static $NUMERIC_TYPES = array( - self::SMALLINT, self::TINYINT, self::INTEGER, self::BIGINT, self::FLOAT, self::DOUBLE, self::NUMERIC, self::DECIMAL, self::REAL - ); - - private static $BOOLEAN_TYPES = array( - self::BOOLEAN, self::BOOLEAN_EMU - ); - - const CHAR_NATIVE_TYPE = "string"; - const VARCHAR_NATIVE_TYPE = "string"; - const LONGVARCHAR_NATIVE_TYPE = "string"; - const CLOB_NATIVE_TYPE = "string"; - const CLOB_EMU_NATIVE_TYPE = "resource"; - const NUMERIC_NATIVE_TYPE = "string"; - const DECIMAL_NATIVE_TYPE = "string"; - const TINYINT_NATIVE_TYPE = "int"; - const SMALLINT_NATIVE_TYPE = "int"; - const INTEGER_NATIVE_TYPE = "int"; - const BIGINT_NATIVE_TYPE = "string"; - const REAL_NATIVE_TYPE = "double"; - const FLOAT_NATIVE_TYPE = "double"; - const DOUBLE_NATIVE_TYPE = "double"; - const BINARY_NATIVE_TYPE = "string"; - const VARBINARY_NATIVE_TYPE = "string"; - const LONGVARBINARY_NATIVE_TYPE = "string"; - const BLOB_NATIVE_TYPE = "resource"; - const BU_DATE_NATIVE_TYPE = "string"; - const DATE_NATIVE_TYPE = "string"; - const TIME_NATIVE_TYPE = "string"; - const TIMESTAMP_NATIVE_TYPE = "string"; - const BU_TIMESTAMP_NATIVE_TYPE = "string"; - const BOOLEAN_NATIVE_TYPE = "boolean"; - const BOOLEAN_EMU_NATIVE_TYPE = "boolean"; - - /** - * Mapping between Propel types and PHP native types. - * - * @var array - */ - private static $propelToPHPNativeMap = array( - self::CHAR => self::CHAR_NATIVE_TYPE, - self::VARCHAR => self::VARCHAR_NATIVE_TYPE, - self::LONGVARCHAR => self::LONGVARCHAR_NATIVE_TYPE, - self::CLOB => self::CLOB_NATIVE_TYPE, - self::CLOB_EMU => self::CLOB_EMU_NATIVE_TYPE, - self::NUMERIC => self::NUMERIC_NATIVE_TYPE, - self::DECIMAL => self::DECIMAL_NATIVE_TYPE, - self::TINYINT => self::TINYINT_NATIVE_TYPE, - self::SMALLINT => self::SMALLINT_NATIVE_TYPE, - self::INTEGER => self::INTEGER_NATIVE_TYPE, - self::BIGINT => self::BIGINT_NATIVE_TYPE, - self::REAL => self::REAL_NATIVE_TYPE, - self::FLOAT => self::FLOAT_NATIVE_TYPE, - self::DOUBLE => self::DOUBLE_NATIVE_TYPE, - self::BINARY => self::BINARY_NATIVE_TYPE, - self::VARBINARY => self::VARBINARY_NATIVE_TYPE, - self::LONGVARBINARY => self::LONGVARBINARY_NATIVE_TYPE, - self::BLOB => self::BLOB_NATIVE_TYPE, - self::DATE => self::DATE_NATIVE_TYPE, - self::BU_DATE => self::BU_DATE_NATIVE_TYPE, - self::TIME => self::TIME_NATIVE_TYPE, - self::TIMESTAMP => self::TIMESTAMP_NATIVE_TYPE, - self::BU_TIMESTAMP => self::BU_TIMESTAMP_NATIVE_TYPE, - self::BOOLEAN => self::BOOLEAN_NATIVE_TYPE, - self::BOOLEAN_EMU => self::BOOLEAN_EMU_NATIVE_TYPE, - ); - - /** - * Mapping between Propel types and Creole types (for rev-eng task) - * - * @var array - */ - private static $propelTypeToCreoleTypeMap = array( - - self::CHAR => self::CHAR, - self::VARCHAR => self::VARCHAR, - self::LONGVARCHAR => self::LONGVARCHAR, - self::CLOB => self::CLOB, - self::NUMERIC => self::NUMERIC, - self::DECIMAL => self::DECIMAL, - self::TINYINT => self::TINYINT, - self::SMALLINT => self::SMALLINT, - self::INTEGER => self::INTEGER, - self::BIGINT => self::BIGINT, - self::REAL => self::REAL, - self::FLOAT => self::FLOAT, - self::DOUBLE => self::DOUBLE, - self::BINARY => self::BINARY, - self::VARBINARY => self::VARBINARY, - self::LONGVARBINARY => self::LONGVARBINARY, - self::BLOB => self::BLOB, - self::DATE => self::DATE, - self::TIME => self::TIME, - self::TIMESTAMP => self::TIMESTAMP, - self::BOOLEAN => self::BOOLEAN, - self::BOOLEAN_EMU => self::BOOLEAN_EMU, - - // These are pre-epoch dates, which we need to map to String type - // since they cannot be properly handled using strtotime() -- or even numeric - // timestamps on Windows. - self::BU_DATE => self::VARCHAR, - self::BU_TIMESTAMP => self::VARCHAR, - - ); - - /** - * Mapping between Propel types and PDO type contants (for prepared statement setting). - * - * @var array - */ - private static $propelTypeToPDOTypeMap = array( - self::CHAR => PDO::PARAM_STR, - self::VARCHAR => PDO::PARAM_STR, - self::LONGVARCHAR => PDO::PARAM_STR, - self::CLOB => PDO::PARAM_STR, - self::CLOB_EMU => PDO::PARAM_STR, - self::NUMERIC => PDO::PARAM_INT, - self::DECIMAL => PDO::PARAM_STR, - self::TINYINT => PDO::PARAM_INT, - self::SMALLINT => PDO::PARAM_INT, - self::INTEGER => PDO::PARAM_INT, - self::BIGINT => PDO::PARAM_INT, - self::REAL => PDO::PARAM_STR, - self::FLOAT => PDO::PARAM_STR, - self::DOUBLE => PDO::PARAM_STR, - self::BINARY => PDO::PARAM_STR, - self::VARBINARY => PDO::PARAM_LOB, - self::LONGVARBINARY => PDO::PARAM_LOB, - self::BLOB => PDO::PARAM_LOB, - self::DATE => PDO::PARAM_STR, - self::TIME => PDO::PARAM_STR, - self::TIMESTAMP => PDO::PARAM_STR, - self::BOOLEAN => PDO::PARAM_BOOL, - self::BOOLEAN_EMU => PDO::PARAM_INT, - - // These are pre-epoch dates, which we need to map to String type - // since they cannot be properly handled using strtotime() -- or even numeric - // timestamps on Windows. - self::BU_DATE => PDO::PARAM_STR, - self::BU_TIMESTAMP => PDO::PARAM_STR, - ); - - /** - * Return native PHP type which corresponds to the - * Creole type provided. Use in the base object class generation. - * - * @param $propelType The Propel type name. - * @return string Name of the native PHP type - */ - public static function getPhpNative($propelType) - { - return self::$propelToPHPNativeMap[$propelType]; - } - - /** - * Returns the correct Creole type _name_ for propel added types - * - * @param $type the propel added type. - * @return string Name of the the correct Creole type (e.g. "VARCHAR"). - */ - public static function getCreoleType($type) - { - return self::$propelTypeToCreoleTypeMap[$type]; - } - - /** - * Resturns the PDO type (PDO::PARAM_* constant) value. - * @return int - */ - public static function getPDOType($type) - { - return self::$propelTypeToPDOTypeMap[$type]; - } - - /** - * Returns Propel type constant corresponding to Creole type code. - * Used but Propel Creole task. - * - * @param int $sqlType The Creole SQL type constant. - * @return string The Propel type to use or NULL if none found. - */ - public static function getPropelType($sqlType) - { - if (isset(self::$creoleToPropelTypeMap[$sqlType])) { - return self::$creoleToPropelTypeMap[$sqlType]; - } - } - - /** - * Get array of Propel types. - * - * @return array string[] - */ - public static function getPropelTypes() - { - return array_keys(self::$propelTypeToCreoleTypeMap); - } - - /** - * Whether passed type is a temporal (date/time/timestamp) type. - * - * @param string $type Propel type - * @return boolean - */ - public static function isTemporalType($type) - { - return in_array($type, self::$TEMPORAL_TYPES); - } - - /** - * Returns true if values for the type need to be quoted. - * - * @param string $type The Propel type to check. - * @return boolean True if values for the type need to be quoted. - */ - public static function isTextType($type) - { - return in_array($type, self::$TEXT_TYPES); - } - - /** - * Returns true if values for the type are numeric. - * - * @param string $type The Propel type to check. - * @return boolean True if values for the type need to be quoted. - */ - public static function isNumericType($type) - { - return in_array($type, self::$NUMERIC_TYPES); - } - - /** - * Returns true if values for the type are boolean. - * - * @param string $type The Propel type to check. - * @return boolean True if values for the type need to be quoted. - */ - public static function isBooleanType($type) - { - return in_array($type, self::$BOOLEAN_TYPES); - } - - /** - * Returns true if type is a LOB type (i.e. would be handled by Blob/Clob class). - * @param string $type Propel type to check. - * @return boolean - */ - public static function isLobType($type) - { - return in_array($type, self::$LOB_TYPES); - } - - /** - * Convenience method to indicate whether a passed-in PHP type is a primitive. - * - * @param string $phpType The PHP type to check - * @return boolean Whether the PHP type is a primitive (string, int, boolean, float) - */ - public static function isPhpPrimitiveType($phpType) - { - return in_array($phpType, array("boolean", "int", "double", "float", "string")); - } - - /** - * Convenience method to indicate whether a passed-in PHP type is a numeric primitive. - * - * @param string $phpType The PHP type to check - * @return boolean Whether the PHP type is a primitive (string, int, boolean, float) - */ - public static function isPhpPrimitiveNumericType($phpType) - { - return in_array($phpType, array("boolean", "int", "double", "float")); - } - - /** - * Convenience method to indicate whether a passed-in PHP type is an object. - * - * @param string $phpType The PHP type to check - * @return boolean Whether the PHP type is a primitive (string, int, boolean, float) - */ - public static function isPhpObjectType($phpType) - { - return (!self::isPhpPrimitiveType($phpType) && !in_array($phpType, array("resource", "array"))); - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/Rule.php b/airtime_mvc/library/propel/generator/lib/model/Rule.php deleted file mode 100644 index d69e4e76be..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/Rule.php +++ /dev/null @@ -1,194 +0,0 @@ - (Propel) - * @author John McNally (Intake) - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -class Rule extends XMLElement -{ - - private $name; - private $value; - private $message; - private $validator; - private $classname; - - /** - * Sets up the Rule object based on the attributes that were passed to loadFromXML(). - * @see parent::loadFromXML() - */ - protected function setupObject() - { - $this->name = $this->getAttribute("name"); - $this->value = $this->getAttribute("value"); - $this->classname = $this->getAttribute("class"); - - /* - * Set some default values if they are not specified. - * This is escpecially useful for maxLength; the size - * is already known by the column and this way it is - * not necessary to manage the same size two times. - * - * Currently there is only one such supported default: - * - maxLength value = column max length - * (this default cannot be easily set at runtime w/o changing - * design of class system in undesired ways) - */ - if ($this->value === null) { - switch($this->name) { - case 'maxLength': - $this->value = $this->validator->getColumn()->getSize(); - break; - } - } - - $this->message = $this->getAttribute("message"); - } - - /** - * Sets the owning validator for this rule. - * @param Validator $validator - * @see Validator::addRule() - */ - public function setValidator(Validator $validator) - { - $this->validator = $validator; - } - - /** - * Gets the owning validator for this rule. - * @return Validator - */ - public function getValidator() - { - return $this->validator; - } - - /** - * Sets the dot-path name of class to use for rule. - * If no class is specified in XML, then a classname will - * be built based on the 'name' attrib. - * @param string $classname dot-path classname (e.g. myapp.propel.MyValidator) - */ - public function setClass($classname) - { - $this->classname = $classname; - } - - /** - * Gets the dot-path name of class to use for rule. - * If no class was specified, this method will build a default classname - * based on the 'name' attribute. E.g. 'maxLength' -> 'propel.validator.MaxLengthValidator' - * @return string dot-path classname (e.g. myapp.propel.MyValidator) - */ - public function getClass() - { - if ($this->classname === null && $this->name !== null) { - return "propel.validator." . ucfirst($this->name) . "Validator"; - } - return $this->classname; - } - - /** - * Sets the name of the validator for this rule. - * This name is used to build the classname if none was specified. - * @param string $name Validator name for this rule (e.g. "maxLength", "required"). - * @see getClass() - */ - public function setName($name) - { - $this->name = $name; - } - - /** - * Gets the name of the validator for this rule. - * @return string Validator name for this rule (e.g. "maxLength", "required"). - */ - public function getName() - { - return $this->name; - } - - /** - * Sets the value parameter for this validator rule. - * Note: not all validators need a value parameter (e.g. 'required' validator - * does not). - * @param string $value - */ - public function setValue($value) - { - $this->value = $value; - } - - /** - * Gets the value parameter for this validator rule. - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Sets the message that will be displayed to the user if validation fails. - * This message may be a Gettext msgid (if translation="gettext") or some other - * id for an alternative not-yet-supported translation system. It may also - * be a simple, single-language string. - * @param string $message - * @see setTranslation() - */ - public function setMessage($message) - { - $this->message = $message; - } - - /** - * Gets the message that will be displayed to the user if validation fails. - * This message may be a Gettext msgid (if translation="gettext") or some other - * id for an alternative not-yet-supported translation system. It may also - * be a simple, single-language string. - * @return string - * @see setTranslation() - */ - public function getMessage() - { - $message = str_replace('${value}', $this->getValue(), $this->message); - return $message; - } - - /** - * @see XMLElement::appendXml(DOMNode) - */ - public function appendXml(DOMNode $node) - { - $doc = ($node instanceof DOMDocument) ? $node : $node->ownerDocument; - - $ruleNode = $node->appendChild($doc->createElement('rule')); - $ruleNode->setAttribute('name', $this->getName()); - - if ($this->getValue() !== null) { - $ruleNode->setAttribute('value', $this->getValue()); - } - - if ($this->classname !== null) { - $ruleNode->setAttribute('class', $this->getClass()); - } - - $ruleNode->setAttribute('message', $this->getMessage()); - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/model/Table.php b/airtime_mvc/library/propel/generator/lib/model/Table.php deleted file mode 100644 index 9198e27b1f..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/Table.php +++ /dev/null @@ -1,1579 +0,0 @@ - (Propel) - * @author Leon Messerschmidt (Torque) - * @author Jason van Zyl (Torque) - * @author Martin Poeschl (Torque) - * @author John McNally (Torque) - * @author Daniel Rall (Torque) - * @author Byron Foster (Torque) - * @version $Revision: 1802 $ - * @package propel.generator.model - */ -class Table extends XMLElement implements IDMethod -{ - - /** - * Enables some debug printing. - */ - const DEBUG = false; - - /** - * Columns for this table. - * - * @var array Column[] - */ - private $columnList = array(); - - /** - * Validators for this table. - * - * @var array Validator[] - */ - private $validatorList = array(); - - /** - * Foreign keys for this table. - * - * @var array ForeignKey[] - */ - private $foreignKeys = array(); - - /** - * Indexes for this table. - * - * @var array Index[] - */ - private $indices = array(); - - /** - * Unique indexes for this table. - * - * @var array Unique[] - */ - private $unices = array(); - - /** - * Any parameters for the ID method (currently supports changing sequence name). - * - * @var array - */ - private $idMethodParameters = array(); - - /** - * Table name. - * - * @var string - */ - private $name; - - /** - * Table description. - * - * @var string - */ - private $description; - - /** - * phpName for the table. - * - * @var string - */ - private $phpName; - - /** - * Namespace for the generated OM. - * - * @var string - */ - protected $namespace; - - /** - * ID method for the table (e.g. IDMethod::NATIVE, IDMethod::NONE). - * - * @var string - */ - private $idMethod; - - /** - * Wether an INSERT with set PK is allowed on tables with IDMethod::NATIVE - * - * @var boolean - */ - private $allowPkInsert; - - /** - * Strategry to use for converting column name to phpName. - * - * @var string - */ - private $phpNamingMethod; - - /** - * The Database that this table belongs to. - * - * @var Database - */ - private $database; - - /** - * Foreign Keys that refer to this table. - * - * @var array ForeignKey[] - */ - private $referrers = array(); - - /** - * Names of foreign tables. - * - * @var array string[] - */ - private $foreignTableNames; - - /** - * Whether this table contains a foreign primary key. - * - * @var boolean - */ - private $containsForeignPK; - - /** - * The inheritance column for this table (if any). - * - * @var Column - */ - private $inheritanceColumn; - - /** - * Whether to skip generation of SQL for this table. - * - * @var boolean - */ - private $skipSql; - - /** - * Whether this table is "read-only". - * - * @var boolean - */ - private $readOnly; - - /** - * Whether this table should result in abstract OM classes. - * - * @var boolean - */ - private $abstractValue; - - /** - * Whether this table is an alias for another table. - * - * @var string - */ - private $alias; - - /** - * The interface that the generated "object" class should implement. - * - * @var string - */ - private $enterface; - - /** - * The package for the generated OM. - * - * @var string - */ - private $pkg; - - /** - * The base class to extend for the generated "object" class. - * - * @var string - */ - private $baseClass; - - /** - * The base peer class to extend for generated "peer" class. - * - * @var string - */ - private $basePeer; - - /** - * Map of columns by name. - * - * @var array - */ - private $columnsByName = array(); - - /** - * Map of columns by phpName. - * - * @var array - */ - private $columnsByPhpName = array(); - - /** - * Whether this table needs to use transactions in Postgres. - * - * @var string - * @deprecated - */ - private $needsTransactionInPostgres; - - /** - * Whether to perform additional indexing on this table. - * - * @var boolean - */ - private $heavyIndexing; - - /** - * Whether this table is for reference only. - * - * @var boolean - */ - private $forReferenceOnly; - - /** - * The tree mode (nested set, etc.) implemented by this table. - * - * @var string - */ - private $treeMode; - - /** - * Whether to reload the rows in this table after insert. - * - * @var boolean - */ - private $reloadOnInsert; - - /** - * Whether to reload the rows in this table after update. - * - * @var boolean - */ - private $reloadOnUpdate; - - /** - * List of behaviors registered for this table - * - * @var array - */ - protected $behaviors = array(); - - /** - * Whether this table is a cross-reference table for a many-to-many relationship - * - * @var boolean - */ - protected $isCrossRef = false; - - /** - * Constructs a table object with a name - * - * @param string $name table name - */ - public function __construct($name = null) - { - $this->name = $name; - } - - /** - * Sets up the Rule object based on the attributes that were passed to loadFromXML(). - * @see parent::loadFromXML() - */ - public function setupObject() - { - $this->name = $this->getDatabase()->getTablePrefix() . $this->getAttribute("name"); - // retrieves the method for converting from specified name to a PHP name. - $this->phpNamingMethod = $this->getAttribute("phpNamingMethod", $this->getDatabase()->getDefaultPhpNamingMethod()); - $this->phpName = $this->getAttribute("phpName", $this->buildPhpName($this->getAttribute('name'))); - - $namespace = $this->getAttribute("namespace", ''); - $package = $this->getAttribute("package"); - if ($namespace && !$package && $this->getDatabase()->getBuildProperty('namespaceAutoPackage')) { - $package = str_replace('\\', '.', $namespace); - } - $this->namespace = $namespace; - $this->pkg = $package; - - $this->namespace = $this->getAttribute("namespace"); - $this->idMethod = $this->getAttribute("idMethod", $this->getDatabase()->getDefaultIdMethod()); - $this->allowPkInsert = $this->booleanValue($this->getAttribute("allowPkInsert")); - - - $this->skipSql = $this->booleanValue($this->getAttribute("skipSql")); - $this->readOnly = $this->booleanValue($this->getAttribute("readOnly")); - - $this->abstractValue = $this->booleanValue($this->getAttribute("abstract")); - $this->baseClass = $this->getAttribute("baseClass"); - $this->basePeer = $this->getAttribute("basePeer"); - $this->alias = $this->getAttribute("alias"); - - $this->heavyIndexing = ( $this->booleanValue($this->getAttribute("heavyIndexing")) - || ("false" !== $this->getAttribute("heavyIndexing") - && $this->getDatabase()->isHeavyIndexing() ) ); - $this->description = $this->getAttribute("description"); - $this->enterface = $this->getAttribute("interface"); // sic ('interface' is reserved word) - $this->treeMode = $this->getAttribute("treeMode"); - - $this->reloadOnInsert = $this->booleanValue($this->getAttribute("reloadOnInsert")); - $this->reloadOnUpdate = $this->booleanValue($this->getAttribute("reloadOnUpdate")); - $this->isCrossRef = $this->getAttribute("isCrossRef", false); - } - - /** - *

A hook for the SAX XML parser to call when this table has - * been fully loaded from the XML, and all nested elements have - * been processed.

- * - *

Performs heavy indexing and naming of elements which weren't - * provided with a name.

- */ - public function doFinalInitialization() - { - // Heavy indexing must wait until after all columns composing - // a table's primary key have been parsed. - if ($this->heavyIndexing) { - $this->doHeavyIndexing(); - } - - // Name any indices which are missing a name using the - // appropriate algorithm. - $this->doNaming(); - - // execute behavior table modifiers - foreach ($this->getBehaviors() as $behavior) - { - if (!$behavior->isTableModified()) { - $behavior->getTableModifier()->modifyTable(); - $behavior->setTableModified(true); - } - } - - // if idMethod is "native" and in fact there are no autoIncrement - // columns in the table, then change it to "none" - $anyAutoInc = false; - foreach ($this->getColumns() as $col) { - if ($col->isAutoIncrement()) { - $anyAutoInc = true; - } - } - if ($this->getIdMethod() === IDMethod::NATIVE && !$anyAutoInc) { - $this->setIdMethod(IDMethod::NO_ID_METHOD); - } - - // If there is no PK, then throw an error. Propel 1.3 requires primary keys. - $pk = $this->getPrimaryKey(); - if (empty($pk)) { - throw new EngineException("Table '".$this->getName()."' does not have a primary key defined. Propel requires all tables to have a primary key."); - } - - } - - /** - *

Adds extra indices for multi-part primary key columns.

- * - *

For databases like MySQL, values in a where clause much - * match key part order from the left to right. So, in the key - * definition PRIMARY KEY (FOO_ID, BAR_ID), - * FOO_ID must be the first element used in - * the where clause of the SQL query used against - * this table for the primary key index to be used. This feature - * could cause problems under MySQL with heavily indexed tables, - * as MySQL currently only supports 16 indices per table (i.e. it - * might cause too many indices to be created).

- * - *

See the - * manual for a better description of why heavy indexing is - * useful for quickly searchable database tables.

- */ - private function doHeavyIndexing() - { - if (self::DEBUG) { - print("doHeavyIndex() called on table " . $this->name."\n"); - } - - $pk = $this->getPrimaryKey(); - $size = count($pk); - - // We start at an offset of 1 because the entire column - // list is generally implicitly indexed by the fact that - // it's a primary key. - for ($i=1; $i < $size; $i++) { - $idx = new Index(); - $idx->setColumns(array_slice($pk, $i, $size)); - $this->addIndex($idx); - } - } - - /** - * Names composing objects which haven't yet been named. This - * currently consists of foreign-key and index entities. - */ - public function doNaming() { - - // Assure names are unique across all databases. - try { - for ($i=0, $size = count($this->foreignKeys); $i < $size; $i++) { - $fk = $this->foreignKeys[$i]; - $name = $fk->getName(); - if (empty($name)) { - $name = $this->acquireConstraintName("FK", $i + 1); - $fk->setName($name); - } - } - - for ($i = 0, $size = count($this->indices); $i < $size; $i++) { - $index = $this->indices[$i]; - $name = $index->getName(); - if (empty($name)) { - $name = $this->acquireConstraintName("I", $i + 1); - $index->setName($name); - } - } - - for ($i = 0, $size = count($this->unices); $i < $size; $i++) { - $index = $this->unices[$i]; - $name = $index->getName(); - if (empty($name)) { - $name = $this->acquireConstraintName("U", $i + 1); - $index->setName($name); - } - } - - // NOTE: Most RDBMSes can apparently name unique column - // constraints/indices themselves (using MySQL and Oracle - // as test cases), so we'll assume that we needn't add an - // entry to the system name list for these. - } catch (EngineException $nameAlreadyInUse) { - print $nameAlreadyInUse->getMessage() . "\n"; - print $nameAlreadyInUse->getTraceAsString(); - } - } - - /** - * Macro to a constraint name. - * - * @param nameType constraint type - * @param nbr unique number for this constraint type - * @return unique name for constraint - * @throws EngineException - */ - private function acquireConstraintName($nameType, $nbr) - { - $inputs = array(); - $inputs[] = $this->getDatabase(); - $inputs[] = $this->getName(); - $inputs[] = $nameType; - $inputs[] = $nbr; - return NameFactory::generateName(NameFactory::CONSTRAINT_GENERATOR, $inputs); - } - - /** - * Gets the value of base class for classes produced from this table. - * - * @return The base class for classes produced from this table. - */ - public function getBaseClass() - { - if ($this->isAlias() && $this->baseClass === null) { - return $this->alias; - } elseif ($this->baseClass === null) { - return $this->getDatabase()->getBaseClass(); - } else { - return $this->baseClass; - } - } - - /** - * Set the value of baseClass. - * @param v Value to assign to baseClass. - */ - public function setBaseClass($v) - { - $this->baseClass = $v; - } - - /** - * Get the value of basePeer. - * @return value of basePeer. - */ - public function getBasePeer() - { - if ($this->isAlias() && $this->basePeer === null) { - return $this->alias . "Peer"; - } elseif ($this->basePeer === null) { - return $this->getDatabase()->getBasePeer(); - } else { - return $this->basePeer; - } - } - - /** - * Set the value of basePeer. - * @param v Value to assign to basePeer. - */ - public function setBasePeer($v) - { - $this->basePeer = $v; - } - - /** - * A utility function to create a new column from attrib and add it to this - * table. - * - * @param $coldata xml attributes or Column class for the column to add - * @return the added column - */ - public function addColumn($data) - { - if ($data instanceof Column) { - $col = $data; - $col->setTable($this); - if ($col->isInheritance()) { - $this->inheritanceColumn = $col; - } - if (isset($this->columnsByName[$col->getName()])) { - throw new EngineException('Duplicate column declared: ' . $col->getName()); - } - $this->columnList[] = $col; - $this->columnsByName[$col->getName()] = $col; - $this->columnsByPhpName[$col->getPhpName()] = $col; - $col->setPosition(count($this->columnList)); - $this->needsTransactionInPostgres |= $col->requiresTransactionInPostgres(); - return $col; - } else { - $col = new Column(); - $col->setTable($this); - $col->loadFromXML($data); - return $this->addColumn($col); // call self w/ different param - } - } - - /** - * Add a validator to this table. - * - * Supports two signatures: - * - addValidator(Validator $validator) - * - addValidator(array $attribs) - * - * @param mixed $data Validator object or XML attribs (array) from element. - * @return Validator The added Validator. - * @throws EngineException - */ - public function addValidator($data) - { - if ($data instanceof Validator) { - $validator = $data; - $col = $this->getColumn($validator->getColumnName()); - if ($col == null) { - throw new EngineException("Failed adding validator to table '" . $this->getName() . - "': column '" . $validator->getColumnName() . "' does not exist !"); - } - $validator->setColumn($col); - $validator->setTable($this); - $this->validatorList[] = $validator; - return $validator; - } else { - $validator = new Validator(); - $validator->setTable($this); - $validator->loadFromXML($data); - return $this->addValidator($validator); - } - } - - /** - * A utility function to create a new foreign key - * from attrib and add it to this table. - */ - public function addForeignKey($fkdata) - { - if ($fkdata instanceof ForeignKey) { - $fk = $fkdata; - $fk->setTable($this); - $this->foreignKeys[] = $fk; - - if ($this->foreignTableNames === null) { - $this->foreignTableNames = array(); - } - if (!in_array($fk->getForeignTableName(), $this->foreignTableNames)) { - $this->foreignTableNames[] = $fk->getForeignTableName(); - } - return $fk; - } else { - $fk = new ForeignKey(); - $fk->setTable($this); - $fk->loadFromXML($fkdata); - return $this->addForeignKey($fk); - } - } - - /** - * Gets the column that subclasses of the class representing this - * table can be produced from. - * @return Column - */ - public function getChildrenColumn() - { - return $this->inheritanceColumn; - } - - /** - * Get the subclasses that can be created from this table. - * @return array string[] Class names - */ - public function getChildrenNames() - { - if ($this->inheritanceColumn === null - || !$this->inheritanceColumn->isEnumeratedClasses()) { - return null; - } - $children = $this->inheritanceColumn->getChildren(); - $names = array(); - for ($i = 0, $size=count($children); $i < $size; $i++) { - $names[] = get_class($children[$i]); - } - return $names; - } - - /** - * Adds the foreign key from another table that refers to this table. - */ - public function addReferrer(ForeignKey $fk) - { - if ($this->referrers === null) { - $this->referrers = array(); - } - $this->referrers[] = $fk; - } - - /** - * Get list of references to this table. - */ - public function getReferrers() - { - return $this->referrers; - } - - public function getCrossFks() - { - $crossFks = array(); - foreach ($this->getReferrers() as $refFK) { - if ($refFK->getTable()->getIsCrossRef()) { - foreach ($refFK->getOtherFks() as $crossFK) { - $crossFks[]= array($refFK, $crossFK); - } - } - } - return $crossFks; - } - - /** - * Set whether this table contains a foreign PK - */ - public function setContainsForeignPK($b) - { - $this->containsForeignPK = (boolean) $b; - } - - /** - * Determine if this table contains a foreign PK - */ - public function getContainsForeignPK() - { - return $this->containsForeignPK; - } - - /** - * A list of tables referenced by foreign keys in this table - */ - public function getForeignTableNames() - { - if ($this->foreignTableNames === null) { - $this->foreignTableNames = array(); - } - return $this->foreignTableNames; - } - - /** - * Return true if the column requires a transaction in Postgres - */ - public function requiresTransactionInPostgres() - { - return $this->needsTransactionInPostgres; - } - - /** - * A utility function to create a new id method parameter - * from attrib or object and add it to this table. - */ - public function addIdMethodParameter($impdata) - { - if ($impdata instanceof IdMethodParameter) { - $imp = $impdata; - $imp->setTable($this); - if ($this->idMethodParameters === null) { - $this->idMethodParameters = array(); - } - $this->idMethodParameters[] = $imp; - return $imp; - } else { - $imp = new IdMethodParameter(); - $imp->loadFromXML($impdata); - return $this->addIdMethodParameter($imp); // call self w/ diff param - } - } - - /** - * Adds a new index to the index list and set the - * parent table of the column to the current table - */ - public function addIndex($idxdata) - { - if ($idxdata instanceof Index) { - $index = $idxdata; - $index->setTable($this); - $index->getName(); // we call this method so that the name is created now if it doesn't already exist. - $this->indices[] = $index; - return $index; - } else { - $index = new Index($this); - $index->loadFromXML($idxdata); - return $this->addIndex($index); - } - } - - /** - * Adds a new Unique to the Unique list and set the - * parent table of the column to the current table - */ - public function addUnique($unqdata) - { - if ($unqdata instanceof Unique) { - $unique = $unqdata; - $unique->setTable($this); - $unique->getName(); // we call this method so that the name is created now if it doesn't already exist. - $this->unices[] = $unique; - return $unique; - } else { - $unique = new Unique($this); - $unique->loadFromXML($unqdata); - return $this->addUnique($unique); - } - } - - /** - * Retrieves the configuration object, filled by build.properties - * - * @return GeneratorConfig - */ - public function getGeneratorConfig() - { - return $this->getDatabase()->getAppData()->getPlatform()->getGeneratorConfig(); - } - - /** - * Adds a new Behavior to the table - * @return Behavior A behavior instance - */ - public function addBehavior($bdata) - { - if ($bdata instanceof Behavior) { - $behavior = $bdata; - $behavior->setTable($this); - $this->behaviors[$behavior->getName()] = $behavior; - return $behavior; - } else { - $class = $this->getConfiguredBehavior($bdata['name']); - $behavior = new $class(); - $behavior->loadFromXML($bdata); - return $this->addBehavior($behavior); - } - } - - /** - * Get the table behaviors - * @return Array of Behavior objects - */ - public function getBehaviors() - { - return $this->behaviors; - } - - /** - * Get the early table behaviors - * @return Array of Behavior objects - */ - public function getEarlyBehaviors() - { - $behaviors = array(); - foreach ($this->behaviors as $name => $behavior) { - if ($behavior->isEarly()) { - $behaviors[$name] = $behavior; - } - } - return $behaviors; - } - - /** - * check if the table has a behavior by name - * - * @param string $name the behavior name - * @return boolean True if the behavior exists - */ - public function hasBehavior($name) - { - return array_key_exists($name, $this->behaviors); - } - - /** - * Get one table behavior by name - * - * @param string $name the behavior name - * @return Behavior a behavior object - */ - public function getBehavior($name) - { - return $this->behaviors[$name]; - } - - /** - * Get the name of the Table - */ - public function getName() - { - return $this->name; - } - - /** - * Set the name of the Table - */ - public function setName($newName) - { - $this->name = $newName; - } - - /** - * Get the description for the Table - */ - public function getDescription() - { - return $this->description; - } - - /** - * Set the description for the Table - * - * @param newDescription description for the Table - */ - public function setDescription($newDescription) - { - $this->description = $newDescription; - } - - /** - * Get name to use in PHP sources - * @return string - */ - public function getPhpName() - { - if ($this->phpName === null) { - $inputs = array(); - $inputs[] = $this->name; - $inputs[] = $this->phpNamingMethod; - try { - $this->phpName = NameFactory::generateName(NameFactory::PHP_GENERATOR, $inputs); - } catch (EngineException $e) { - print $e->getMessage() . "\n"; - print $e->getTraceAsString(); - } - } - return $this->phpName; - } - - /** - * Set name to use in PHP sources - * @param string $phpName - */ - public function setPhpName($phpName) - { - $this->phpName = $phpName; - } - - public function buildPhpName($name) - { - return NameFactory::generateName(NameFactory::PHP_GENERATOR, array($name, $this->phpNamingMethod)); - } - - /** - * Get studly version of PHP name. - * - * The studly name is the PHP name with the first character lowercase. - * - * @return string - */ - public function getStudlyPhpName() - { - $phpname = $this->getPhpName(); - if (strlen($phpname) > 1) { - return strtolower(substr($phpname, 0, 1)) . substr($phpname, 1); - } else { // 0 or 1 chars (I suppose that's rare) - return strtolower($phpname); - } - } - - /** - * Get the value of the namespace. - * @return value of namespace. - */ - public function getNamespace() - { - if (strpos($this->namespace, '\\') === 0) { - // absolute table namespace - return substr($this->namespace, 1); - } elseif ($this->namespace && $this->getDatabase() && $this->getDatabase()->getNamespace()) { - return $this->getDatabase()->getNamespace() . '\\' . $this->namespace; - } elseif ($this->getDatabase() && $this->getDatabase()->getNamespace()) { - return $this->getDatabase()->getNamespace(); - } else { - return $this->namespace; - } - } - - /** - * Set the value of the namespace. - * @param v Value to assign to namespace. - */ - public function setNamespace($v) - { - $this->namespace = $v; - } - - /** - * Get the method for generating pk's - * [HL] changing behavior so that Database default method is returned - * if no method has been specified for the table. - * - * @return string - */ - public function getIdMethod() - { - if ($this->idMethod === null) { - return IDMethod::NO_ID_METHOD; - } else { - return $this->idMethod; - } - } - - /** - * Whether we allow to insert primary keys on tables with - * idMethod=native - * - * @return boolean - */ - public function isAllowPkInsert() - { - return $this->allowPkInsert; - } - - - /** - * Set the method for generating pk's - */ - public function setIdMethod($idMethod) - { - $this->idMethod = $idMethod; - } - - /** - * Skip generating sql for this table (in the event it should - * not be created from scratch). - * @return boolean Value of skipSql. - */ - public function isSkipSql() - { - return ($this->skipSql || $this->isAlias() || $this->isForReferenceOnly()); - } - - /** - * Is table read-only, in which case only accessors (and relationship setters) - * will be created. - * @return boolan Value of readOnly. - */ - public function isReadOnly() - { - return $this->readOnly; - } - - /** - * Set whether this table should have its creation sql generated. - * @param boolean $v Value to assign to skipSql. - */ - public function setSkipSql($v) - { - $this->skipSql = $v; - } - - /** - * Whether to force object to reload on INSERT. - * @return boolean - */ - public function isReloadOnInsert() - { - return $this->reloadOnInsert; - } - - /** - * Whether to force object to reload on UPDATE. - * @return boolean - */ - public function isReloadOnUpdate() - { - return $this->reloadOnUpdate; - } - - /** - * PhpName of om object this entry references. - * @return value of external. - */ - public function getAlias() - { - return $this->alias; - } - - /** - * Is this table specified in the schema or is there just - * a foreign key reference to it. - * @return value of external. - */ - public function isAlias() - { - return ($this->alias !== null); - } - - /** - * Set whether this table specified in the schema or is there just - * a foreign key reference to it. - * @param v Value to assign to alias. - */ - public function setAlias($v) - { - $this->alias = $v; - } - - - /** - * Interface which objects for this table will implement - * @return value of interface. - */ - public function getInterface() - { - return $this->enterface; - } - - /** - * Interface which objects for this table will implement - * @param v Value to assign to interface. - */ - public function setInterface($v) - { - $this->enterface = $v; - } - - /** - * When a table is abstract, it marks the business object class that is - * generated as being abstract. If you have a table called "FOO", then the - * Foo BO will be public abstract class Foo - * This helps support class hierarchies - * - * @return value of abstractValue. - */ - public function isAbstract() - { - return $this->abstractValue; - } - - /** - * When a table is abstract, it marks the business object - * class that is generated as being abstract. If you have a - * table called "FOO", then the Foo BO will be - * public abstract class Foo - * This helps support class hierarchies - * - * @param v Value to assign to abstractValue. - */ - public function setAbstract($v) - { - $this->abstractValue = (boolean) $v; - } - - /** - * Get the value of package. - * @return value of package. - */ - public function getPackage() - { - return $this->pkg; - } - - /** - * Set the value of package. - * @param v Value to assign to package. - */ - public function setPackage($v) - { - $this->pkg = $v; - } - - /** - * Returns an Array containing all the columns in the table - * @return array Column[] - */ - public function getColumns() - { - return $this->columnList; - } - - /** - * Utility method to get the number of columns in this table - */ - public function getNumColumns() - { - return count($this->columnList); - } - - /** - * Utility method to get the number of columns in this table - */ - public function getNumLazyLoadColumns() - { - $count = 0; - foreach ($this->columnList as $col) { - if ($col->isLazyLoad()) { - $count++; - } - } - return $count; - } - - /** - * Returns an Array containing all the validators in the table - * @return array Validator[] - */ - public function getValidators() - { - return $this->validatorList; - } - - /** - * Returns an Array containing all the FKs in the table. - * @return array ForeignKey[] - */ - public function getForeignKeys() - { - return $this->foreignKeys; - } - - /** - * Returns a Collection of parameters relevant for the chosen - * id generation method. - */ - public function getIdMethodParameters() - { - return $this->idMethodParameters; - } - - /** - * Returns an Array containing all the FKs in the table - * @return array Index[] - */ - public function getIndices() - { - return $this->indices; - } - - /** - * Returns an Array containing all the UKs in the table - * @return array Unique[] - */ - public function getUnices() - { - return $this->unices; - } - - /** - * Check whether the table has a column. - * @return boolean - */ - public function hasColumn($name) - { - return array_key_exists($name, $this->columnsByName); - } - - /** - * Returns a specified column. - * @return Column Return a Column object or null if it does not exist. - */ - public function getColumn($name) - { - return @$this->columnsByName[$name]; - } - - /** - * Returns a specified column. - * @return Column Return a Column object or null if it does not exist. - */ - public function getColumnByPhpName($phpName) - { - return @$this->columnsByPhpName[$phpName]; - } - - /** - * Get all the foreign keys from this table to the specified table. - * @return array ForeignKey[] - */ - public function getForeignKeysReferencingTable($tablename) - { - $matches = array(); - $keys = $this->getForeignKeys(); - foreach ($keys as $fk) { - if ($fk->getForeignTableName() === $tablename) { - $matches[] = $fk; - } - } - return $matches; - } - - /** - * Return the foreign keys that includes col in it's list of local columns. - * Eg. Foreign key (a,b,c) refrences tbl(x,y,z) will be returned of col is either a,b or c. - * @param string $col - * @return array ForeignKey[] or null if there is no FK for specified column. - */ - public function getColumnForeignKeys($colname) - { - $matches = array(); - foreach ($this->foreignKeys as $fk) { - if (in_array($colname, $fk->getLocalColumns())) { - $matches[] = $fk; - } - } - return $matches; - } - - /** - * Returns true if the table contains a specified column - * @param mixed $col Column or column name. - */ - public function containsColumn($col) - { - if ($col instanceof Column) { - return in_array($col, $this->columnList); - } else { - return ($this->getColumn($col) !== null); - } - } - - /** - * Set the database that contains this table. - * - * @param Database $db - */ - public function setDatabase(Database $db) - { - $this->database = $db; - } - - /** - * Get the database that contains this table. - * - * @return Database - */ - public function getDatabase() - { - return $this->database; - } - - /** - * Flag to determine if code/sql gets created for this table. - * Table will be skipped, if return true. - * @return boolean - */ - public function isForReferenceOnly() - { - return $this->forReferenceOnly; - } - - /** - * Flag to determine if code/sql gets created for this table. - * Table will be skipped, if set to true. - * @param boolean $v - */ - public function setForReferenceOnly($v) - { - $this->forReferenceOnly = (boolean) $v; - } - - /** - * Flag to determine if tree node class should be generated for this table. - * @return valur of treeMode - */ - public function treeMode() - { - return $this->treeMode; - } - - /** - * Flag to determine if tree node class should be generated for this table. - * @param v Value to assign to treeMode. - */ - public function setTreeMode($v) - { - $this->treeMode = $v; - } - - /** - * Appends XML nodes to passed-in DOMNode. - * - * @param DOMNode $node - */ - public function appendXml(DOMNode $node) - { - $doc = ($node instanceof DOMDocument) ? $node : $node->ownerDocument; - - $tableNode = $node->appendChild($doc->createElement('table')); - $tableNode->setAttribute('name', $this->getName()); - - if ($this->phpName !== null) { - $tableNode->setAttribute('phpName', $this->phpName); - } - - if ($this->idMethod !== null) { - $tableNode->setAttribute('idMethod', $this->idMethod); - } - - if ($this->skipSql !== null) { - $tableNode->setAttribute('idMethod', var_export($this->skipSql, true)); - } - - if ($this->readOnly !== null) { - $tableNode->setAttribute('readOnly', var_export($this->readOnly, true)); - } - - if ($this->treeMode !== null) { - $tableNode->setAttribute('treeMode', $this->treeMode); - } - - if ($this->reloadOnInsert !== null) { - $tableNode->setAttribute('reloadOnInsert', var_export($this->reloadOnInsert, true)); - } - - if ($this->reloadOnUpdate !== null) { - $tableNode->setAttribute('reloadOnUpdate', var_export($this->reloadOnUpdate, true)); - } - - if ($this->forReferenceOnly !== null) { - $tableNode->setAttribute('forReferenceOnly', var_export($this->forReferenceOnly, true)); - } - - if ($this->abstractValue !== null) { - $tableNode->setAttribute('abstract', var_export($this->abstractValue, true)); - } - - if ($this->enterface !== null) { - $tableNode->setAttribute('interface', $this->enterface); - } - - if ($this->description !== null) { - $tableNode->setAttribute('description', $this->description); - } - - if ($this->baseClass !== null) { - $tableNode->setAttribute('baseClass', $this->baseClass); - } - - if ($this->basePeer !== null) { - $tableNode->setAttribute('basePeer', $this->basePeer); - } - - if ($this->getIsCrossRef()) { - $tableNode->setAttribute('isCrossRef', $this->getIsCrossRef()); - } - - - foreach ($this->columnList as $col) { - $col->appendXml($tableNode); - } - - foreach ($this->validatorList as $validator) { - $validator->appendXml($tableNode); - } - - foreach ($this->foreignKeys as $fk) { - $fk->appendXml($tableNode); - } - - foreach ($this->idMethodParameters as $param) { - $param->appendXml($tableNode); - } - - foreach ($this->indices as $index) { - $index->appendXml($tableNode); - } - - foreach ($this->unices as $unique) { - $unique->appendXml($tableNode); - } - - foreach ($this->vendorInfos as $vi) { - $vi->appendXml($tableNode); - } - - } - - /** - * Returns the collection of Columns which make up the single primary - * key for this table. - * - * @return array Column[] A list of the primary key parts. - */ - public function getPrimaryKey() - { - $pk = array(); - foreach ($this->columnList as $col) { - if ($col->isPrimaryKey()) { - $pk[] = $col; - } - } - return $pk; - } - - /** - * Determine whether this table has a primary key. - * - * @return boolean Whether this table has any primary key parts. - */ - public function hasPrimaryKey() - { - return (count($this->getPrimaryKey()) > 0); - } - - /** - * Determine whether this table has a composite primary key. - * - * @return boolean Whether this table has more than one primary key parts. - */ - public function hasCompositePrimaryKey() - { - return (count($this->getPrimaryKey()) > 1); - } - - /** - * Determine whether this table has any auto-increment primary key(s). - * - * @return boolean Whether this table has a non-"none" id method and has a primary key column that is auto-increment. - */ - public function hasAutoIncrementPrimaryKey() - { - if ($this->getIdMethod() != IDMethod::NO_ID_METHOD) { - $pks =$this->getPrimaryKey(); - foreach ($pks as $pk) { - if ($pk->isAutoIncrement()) { - return true; - } - } - } - return false; - } - - /** - * Gets the auto increment PK - * - * @return Column if any auto increment PK column - */ - public function getAutoIncrementPrimaryKey() - { - if ($this->getIdMethod() != IDMethod::NO_ID_METHOD) { - $pks =$this->getPrimaryKey(); - foreach ($pks as $pk) { - if ($pk->isAutoIncrement()) { - return $pk; - } - } - } - return null; - } - - /** - * Returns all parts of the primary key, separated by commas. - * - * @return A CSV list of primary key parts. - * @deprecated Use the DDLBuilder->getColumnList() with the #getPrimaryKey() method. - */ - public function printPrimaryKey() - { - return $this->printList($this->columnList); - } - - /** - * Gets the crossRef status for this foreign key - * @return boolean - */ - public function getIsCrossRef() - { - return $this->isCrossRef; - } - - /** - * Sets a crossref status for this foreign key. - * @param boolean $isCrossRef - */ - public function setIsCrossRef($isCrossRef) - { - $this->isCrossRef = (bool) $isCrossRef; - } - - /** - * Returns the elements of the list, separated by commas. - * @param array $list - * @return A CSV list. - * @deprecated Use the DDLBuilder->getColumnList() with the #getPrimaryKey() method. - */ - private function printList($list){ - $result = ""; - $comma = 0; - for ($i=0,$_i=count($list); $i < $_i; $i++) { - $col = $list[$i]; - if ($col->isPrimaryKey()) { - $result .= ($comma++ ? ',' : '') . $this->getDatabase()->getPlatform()->quoteIdentifier($col->getName()); - } - } - return $result; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/Unique.php b/airtime_mvc/library/propel/generator/lib/model/Unique.php deleted file mode 100644 index feec89fcd9..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/Unique.php +++ /dev/null @@ -1,58 +0,0 @@ - (Propel) - * @author Jason van Zyl (Torque) - * @author Daniel Rall (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -class Unique extends Index -{ - - /** - * Returns true. - */ - public function isUnique() - { - return true; - } - - /** - * @see XMLElement::appendXml(DOMNode) - */ - public function appendXml(DOMNode $node) - { - $doc = ($node instanceof DOMDocument) ? $node : $node->ownerDocument; - - $uniqueNode = $node->appendChild($doc->createElement('unique')); - $uniqueNode->setAttribute('name', $this->getName()); - $columns = $this->getColumns(); - foreach ($this->getColumns() as $colname) { - $uniqueColNode = $uniqueNode->appendChild($doc->createElement('unique-column')); - $uniqueColNode->setAttribute('name', $colname); - } - - foreach ($this->vendorInfos as $vi) { - $vi->appendXml($uniqueNode); - } - } - - -} diff --git a/airtime_mvc/library/propel/generator/lib/model/Validator.php b/airtime_mvc/library/propel/generator/lib/model/Validator.php deleted file mode 100644 index 10e3d85754..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/Validator.php +++ /dev/null @@ -1,184 +0,0 @@ - (Propel) - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -class Validator extends XMLElement -{ - - const TRANSLATE_NONE = "none"; - const TRANSLATE_GETTEXT = "gettext"; - - /** - * The column this validator applies to. - * - * @var Column - */ - private $column; - - /** - * The rules for the validation. - * - * @var array Rule[] - */ - private $ruleList = array(); - - /** - * The translation mode. - * - * @var string - */ - private $translate; - - /** - * Parent table. - * - * @var Table - */ - private $table; - - /** - * Sets up the Validator object based on the attributes that were passed to loadFromXML(). - * @see parent::loadFromXML() - */ - protected function setupObject() - { - $this->column = $this->getTable()->getColumn($this->getAttribute("column")); - $this->translate = $this->getAttribute("translate", $this->getTable()->getDatabase()->getDefaultTranslateMethod());; - } - - /** - * Add a Rule to this validator. - * Supports two signatures: - * - addRule(Rule $rule) - * - addRule(array $attribs) - * @param mixed $data Rule object or XML attribs (array) from element. - * @return Rule The added Rule. - */ - public function addRule($data) - { - if ($data instanceof Rule) { - $rule = $data; // alias - $rule->setValidator($this); - $this->ruleList[] = $rule; - return $rule; - } - else { - $rule = new Rule(); - $rule->setValidator($this); - $rule->loadFromXML($data); - return $this->addRule($rule); // call self w/ different param - } - } - - /** - * Gets an array of all added rules for this validator. - * @return array Rule[] - */ - public function getRules() - { - return $this->ruleList; - } - - /** - * Gets the name of the column that this Validator applies to. - * @return string - */ - public function getColumnName() - { - return $this->column->getName(); - } - - /** - * Sets the Column object that this validator applies to. - * @param Column $column - * @see Table::addValidator() - */ - public function setColumn(Column $column) - { - $this->column = $column; - } - - /** - * Gets the Column object that this validator applies to. - * @return Column - */ - public function getColumn() - { - return $this->column; - } - - /** - * Set the owning Table. - * @param Table $table - */ - public function setTable(Table $table) - { - $this->table = $table; - } - - /** - * Get the owning Table. - * @return Table - */ - public function getTable() - { - return $this->table; - } - - /** - * Set the translation mode to use for the message. - * Currently only "gettext" and "none" are supported. The default is "none". - * @param string $method Translation method ("gettext", "none"). - */ - public function setTranslate($method) - { - $this->translate = $method; - } - - /** - * Get the translation mode to use for the message. - * Currently only "gettext" and "none" are supported. The default is "none". - * @return string Translation method ("gettext", "none"). - */ - public function getTranslate() - { - return $this->translate; - } - - /** - * @see XMLElement::appendXml(DOMNode) - */ - public function appendXml(DOMNode $node) - { - $doc = ($node instanceof DOMDocument) ? $node : $node->ownerDocument; - - $valNode = $node->appendChild($doc->createElement('validator')); - $valNode->setAttribute('column', $this->getColumnName()); - - if ($this->translate !== null) { - $valNode->setAttribute('translate', $this->translate); - } - - foreach ($this->ruleList as $rule) { - $rule->appendXml($valNode); - } - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/VendorInfo.php b/airtime_mvc/library/propel/generator/lib/model/VendorInfo.php deleted file mode 100644 index 9f4f19f396..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/VendorInfo.php +++ /dev/null @@ -1,172 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -class VendorInfo extends XMLElement -{ - - /** - * The vendor RDBMS type. - * - * @var string - */ - private $type; - - /** - * Vendor parameters. - * - * @var array - */ - private $parameters = array(); - - /** - * Creates a new VendorInfo instance. - * - * @param string $type RDBMS type (optional) - */ - public function __construct($type = null) - { - $this->type = $type; - } - - /** - * Sets up this object based on the attributes that were passed to loadFromXML(). - * @see parent::loadFromXML() - */ - protected function setupObject() - { - $this->type = $this->getAttribute("type"); - } - - /** - * Set RDBMS type for this vendor-specific info. - * - * @param string $v - */ - public function setType($v) - { - $this->type = $v; - } - - /** - * Get RDBMS type for this vendor-specific info. - * - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Adds a new vendor parameter to this object. - * @param array $attrib Attributes from XML. - */ - public function addParameter($attrib) - { - $name = $attrib["name"]; - $this->parameters[$name] = $attrib["value"]; - } - - /** - * Sets parameter value. - * - * @param string $name - * @param mixed $value The value for the parameter. - */ - public function setParameter($name, $value) - { - $this->parameters[$name] = $value; - } - - /** - * Gets parameter value. - * - * @param string $name - * @return mixed Paramter value. - */ - public function getParameter($name) - { - if (isset($this->parameters[$name])) { - return $this->parameters[$name]; - } - return null; // just to be explicit - } - - /** - * Whether parameter exists. - * - * @param string $name - */ - public function hasParameter($name) - { - return isset($this->parameters[$name]); - } - - /** - * Sets assoc array of parameters for venfor specific info. - * - * @param array $params Paramter data. - */ - public function setParameters(array $params = array()) - { - $this->parameters = $params; - } - - /** - * Gets assoc array of parameters for venfor specific info. - * - * @return array - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * Gets a new merged VendorInfo object. - * @param VendorInfo $info - * @return VendorInfo new object with merged parameters - */ - public function getMergedVendorInfo(VendorInfo $merge) - { - $newParams = array_merge($this->getParameters(), $merge->getParameters()); - $newInfo = new VendorInfo($this->getType()); - $newInfo->setParameters($newParams); - return $newInfo; - } - - /** - * @see XMLElement::appendXml(DOMNode) - */ - public function appendXml(DOMNode $node) - { - $doc = ($node instanceof DOMDocument) ? $node : $node->ownerDocument; - - $vendorNode = $node->appendChild($doc->createElement("vendor")); - $vendorNode->setAttribute("type", $this->getType()); - - foreach ($this->parameters as $key => $value) { - $parameterNode = $doc->createElement("parameter"); - $parameterNode->setAttribute("name", $key); - $parameterNode->setAttribute("value", $value); - $vendorNode->appendChild($parameterNode); - } - } -} diff --git a/airtime_mvc/library/propel/generator/lib/model/XMLElement.php b/airtime_mvc/library/propel/generator/lib/model/XMLElement.php deleted file mode 100644 index cb8008c40b..0000000000 --- a/airtime_mvc/library/propel/generator/lib/model/XMLElement.php +++ /dev/null @@ -1,182 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.generator.model - */ -abstract class XMLElement -{ - - /** - * The name => value attributes from XML. - * - * @var array - */ - protected $attributes = array(); - - /** - * Any associated vendor-specific information objects. - * - * @var array VendorInfo[] - */ - protected $vendorInfos = array(); - - /** - * Replaces the old loadFromXML() so that we can use loadFromXML() to load the attribs into the class. - */ - abstract protected function setupObject(); - - /** - * This is the entry point method for loading data from XML. - * It calls a setupObject() method that must be implemented by the child class. - * @param array $attributes The attributes for the XML tag. - */ - public function loadFromXML($attributes) - { - $this->attributes = array_change_key_case($attributes, CASE_LOWER); - $this->setupObject(); - } - - /** - * Returns the assoc array of attributes. - * All attribute names (keys) are lowercase. - * @return array - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Gets a particular attribute by [case-insensitive] name. - * If attribute is not set then the $defaultValue is returned. - * @param string $name The [case-insensitive] name of the attribute to lookup. - * @param mixed $defaultValue The default value to use in case the attribute is not set. - * @return mixed The value of the attribute or $defaultValue if not set. - */ - public function getAttribute($name, $defaultValue = null) - { - $name = strtolower($name); - if (isset($this->attributes[$name])) { - return $this->attributes[$name]; - } else { - return $defaultValue; - } - } - - /** - * Converts value specified in XML to a boolean value. - * This is to support the default value when used w/ a boolean column. - * @return value - */ - protected function booleanValue($val) - { - if (is_numeric($val)) { - return (bool) $val; - } else { - return (in_array(strtolower($val), array('true', 't', 'y', 'yes'), true) ? true : false); - } - } - - /** - * Appends DOM elements to represent this object in XML. - * @param DOMNode $node - */ - abstract public function appendXml(DOMNode $node); - - /** - * Sets an associated VendorInfo object. - * - * @param mixed $data VendorInfo object or XML attrib data (array) - * @return VendorInfo - */ - public function addVendorInfo($data) - { - if ($data instanceof VendorInfo) { - $vi = $data; - $this->vendorInfos[$vi->getType()] = $vi; - return $vi; - } else { - $vi = new VendorInfo(); - $vi->loadFromXML($data); - return $this->addVendorInfo($vi); // call self w/ different param - } - } - - /** - * Gets the any associated VendorInfo object. - * @return VendorInfo - */ - public function getVendorInfoForType($type) - { - if (isset($this->vendorInfos[$type])) { - return $this->vendorInfos[$type]; - } else { - // return an empty object - return new VendorInfo(); - } - } - - /** - * Find the best class name for a given behavior - * Looks in build.properties for path like propel.behavior.[bname].class - * If not found, tries to autoload [Bname]Behavior - * If no success, returns 'Behavior' - * - * @param string $bname behavior name, e.g. 'timestampable' - * @return string behavior class name, e.g. 'TimestampableBehavior' - */ - public function getConfiguredBehavior($bname) - { - if ($config = $this->getGeneratorConfig()) { - if ($class = $config->getConfiguredBehavior($bname)) { - return $class; - } - } - // first fallback: maybe the behavior is loaded or autoloaded - $gen = new PhpNameGenerator(); - if(class_exists($class = $gen->generateName($bname, PhpNameGenerator::CONV_METHOD_PHPNAME) . 'Behavior')) { - return $class; - } - // second fallback: use parent behavior class (mostly for unit tests) - return 'Behavior'; - } - - /** - * String representation of the current object. - * - * This is an xml representation with the XML declaration removed. - * - * @see appendXml() - */ - public function toString() - { - $doc = new DOMDocument('1.0'); - $doc->formatOutput = true; - $this->appendXml($doc); - $xmlstr = $doc->saveXML(); - return trim(preg_replace('/<\?xml.*?\?>/', '', $xmlstr)); - } - - /** - * Magic string method - * @see toString() - */ - public function __toString() - { - return $this->toString(); - } -} diff --git a/airtime_mvc/library/propel/generator/lib/platform/DefaultPlatform.php b/airtime_mvc/library/propel/generator/lib/platform/DefaultPlatform.php deleted file mode 100644 index 889d55ec94..0000000000 --- a/airtime_mvc/library/propel/generator/lib/platform/DefaultPlatform.php +++ /dev/null @@ -1,299 +0,0 @@ - (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.platform - */ -class DefaultPlatform implements Platform -{ - - /** - * Mapping from Propel types to Domain objects. - * - * @var array - */ - protected $schemaDomainMap; - - /** - * GeneratorConfig object holding build properties. - * - * @var GeneratorConfig - */ - private $generatorConfig; - - /** - * @var PDO Database connection. - */ - private $con; - - /** - * Default constructor. - * @param PDO $con Optional database connection to use in this platform. - */ - public function __construct(PDO $con = null) - { - if ($con) $this->setConnection($con); - $this->initialize(); - } - - /** - * Set the database connection to use for this Platform class. - * @param PDO $con Database connection to use in this platform. - */ - public function setConnection(PDO $con = null) - { - $this->con = $con; - } - - /** - * Sets the GeneratorConfig to use in the parsing. - * - * @param GeneratorConfig $config - */ - public function setGeneratorConfig(GeneratorConfig $config) - { - $this->generatorConfig = $config; - } - - /** - * Gets the GeneratorConfig option. - * - * @return GeneratorConfig - */ - public function getGeneratorConfig() - { - return $this->generatorConfig; - } - - /** - * Gets a specific propel (renamed) property from the build. - * - * @param string $name - * @return mixed - */ - protected function getBuildProperty($name) - { - if ($this->generatorConfig !== null) { - return $this->generatorConfig->getBuildProperty($name); - } - return null; - } - - /** - * Returns the database connection to use for this Platform class. - * @return PDO The database connection or NULL if none has been set. - */ - public function getConnection() - { - return $this->con; - } - - /** - * Initialize the type -> Domain mapping. - */ - protected function initialize() - { - $this->schemaDomainMap = array(); - foreach (PropelTypes::getPropelTypes() as $type) { - $this->schemaDomainMap[$type] = new Domain($type); - } - // BU_* no longer needed, so map these to the DATE/TIMESTAMP domains - $this->schemaDomainMap[PropelTypes::BU_DATE] = new Domain(PropelTypes::DATE); - $this->schemaDomainMap[PropelTypes::BU_TIMESTAMP] = new Domain(PropelTypes::TIMESTAMP); - - // Boolean is a bit special, since typically it must be mapped to INT type. - $this->schemaDomainMap[PropelTypes::BOOLEAN] = new Domain(PropelTypes::BOOLEAN, "INTEGER"); - } - - /** - * Adds a mapping entry for specified Domain. - * @param Domain $domain - */ - protected function setSchemaDomainMapping(Domain $domain) - { - $this->schemaDomainMap[$domain->getType()] = $domain; - } - - /** - * Returns the short name of the database type that this platform represents. - * For example MysqlPlatform->getDatabaseType() returns 'mysql'. - * @return string - */ - public function getDatabaseType() - { - $clazz = get_class($this); - $pos = strpos($clazz, 'Platform'); - return strtolower(substr($clazz,0,$pos)); - } - - /** - * @see Platform::getMaxColumnNameLength() - */ - public function getMaxColumnNameLength() - { - return 64; - } - - /** - * @see Platform::getNativeIdMethod() - */ - public function getNativeIdMethod() - { - return Platform::IDENTITY; - } - - /** - * @see Platform::getDomainForType() - */ - public function getDomainForType($propelType) - { - if (!isset($this->schemaDomainMap[$propelType])) { - throw new EngineException("Cannot map unknown Propel type " . var_export($propelType, true) . " to native database type."); - } - return $this->schemaDomainMap[$propelType]; - } - - /** - * @return string Returns the SQL fragment to use if null values are disallowed. - * @see Platform::getNullString(boolean) - */ - public function getNullString($notNull) - { - return ($notNull ? "NOT NULL" : ""); - } - - /** - * @see Platform::getAutoIncrement() - */ - public function getAutoIncrement() - { - return "IDENTITY"; - } - - /** - * @see Platform::hasScale(String) - */ - public function hasScale($sqlType) - { - return true; - } - - /** - * @see Platform::hasSize(String) - */ - public function hasSize($sqlType) - { - return true; - } - - /** - * @see Platform::quote() - */ - public function quote($text) - { - if ($this->getConnection()) { - return $this->getConnection()->quote($text); - } else { - return "'" . $this->disconnectedEscapeText($text) . "'"; - } - } - - /** - * Method to escape text when no connection has been set. - * - * The subclasses can implement this using string replacement functions - * or native DB methods. - * - * @param string $text Text that needs to be escaped. - * @return string - */ - protected function disconnectedEscapeText($text) - { - return str_replace("'", "''", $text); - } - - /** - * @see Platform::quoteIdentifier() - */ - public function quoteIdentifier($text) - { - return '"' . $text . '"'; - } - - /** - * @see Platform::supportsNativeDeleteTrigger() - */ - public function supportsNativeDeleteTrigger() - { - return false; - } - - /** - * @see Platform::supportsInsertNullPk() - */ - public function supportsInsertNullPk() - { - return true; - } - - /** - * Whether the underlying PDO driver for this platform returns BLOB columns as streams (instead of strings). - * @return boolean - */ - public function hasStreamBlobImpl() - { - return false; - } - - /** - * @see Platform::getBooleanString() - */ - public function getBooleanString($b) - { - $b = ($b === true || strtolower($b) === 'true' || $b === 1 || $b === '1' || strtolower($b) === 'y' || strtolower($b) === 'yes'); - return ($b ? '1' : '0'); - } - - /** - * Gets the preferred timestamp formatter for setting date/time values. - * @return string - */ - public function getTimestampFormatter() - { - return DateTime::ISO8601; - } - - /** - * Gets the preferred time formatter for setting date/time values. - * @return string - */ - public function getTimeFormatter() - { - return 'H:i:s'; - } - - /** - * Gets the preferred date formatter for setting date/time values. - * @return string - */ - public function getDateFormatter() - { - return 'Y-m-d'; - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/platform/MssqlPlatform.php b/airtime_mvc/library/propel/generator/lib/platform/MssqlPlatform.php deleted file mode 100644 index b8330d9b86..0000000000 --- a/airtime_mvc/library/propel/generator/lib/platform/MssqlPlatform.php +++ /dev/null @@ -1,107 +0,0 @@ - (Propel) - * @author Martin Poeschl (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.platform - */ -class MssqlPlatform extends DefaultPlatform -{ - - /** - * Initializes db specific domain mapping. - */ - protected function initialize() - { - parent::initialize(); - $this->setSchemaDomainMapping(new Domain(PropelTypes::INTEGER, "INT")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BOOLEAN, "INT")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::DOUBLE, "FLOAT")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "TEXT")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "TEXT")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, "DATETIME")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BU_DATE, "DATETIME")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::TIME, "DATETIME")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "DATETIME")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BU_TIMESTAMP, "DATETIME")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BINARY(7132)")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "IMAGE")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "IMAGE")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, "IMAGE")); - } - - /** - * @see Platform#getMaxColumnNameLength() - */ - public function getMaxColumnNameLength() - { - return 128; - } - - /** - * @return Explicitly returns NULL if null values are - * allowed (as recomended by Microsoft). - * @see Platform#getNullString(boolean) - */ - public function getNullString($notNull) - { - return ($notNull ? "NOT NULL" : "NULL"); - } - - /** - * @see Platform::supportsNativeDeleteTrigger() - */ - public function supportsNativeDeleteTrigger() - { - return true; - } - - /** - * @see Platform::supportsInsertNullPk() - */ - public function supportsInsertNullPk() - { - return false; - } - - /** - * @see Platform::hasSize(String) - */ - public function hasSize($sqlType) - { - return !("INT" == $sqlType || "TEXT" == $sqlType); - } - - /** - * @see Platform::quoteIdentifier() - */ - public function quoteIdentifier($text) - { - return '[' . $text . ']'; - } - - /** - * Gets the preferred timestamp formatter for setting date/time values. - * @return string - */ - public function getTimestampFormatter() - { - return 'Y-m-d H:i:s'; - } - - -} diff --git a/airtime_mvc/library/propel/generator/lib/platform/MysqlPlatform.php b/airtime_mvc/library/propel/generator/lib/platform/MysqlPlatform.php deleted file mode 100644 index 8bbc0b9db5..0000000000 --- a/airtime_mvc/library/propel/generator/lib/platform/MysqlPlatform.php +++ /dev/null @@ -1,110 +0,0 @@ - (Propel) - * @author Martin Poeschl (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.platform - */ -class MysqlPlatform extends DefaultPlatform -{ - - /** - * Initializes db specific domain mapping. - */ - protected function initialize() - { - parent::initialize(); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BOOLEAN, "TINYINT")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, "DECIMAL")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "TEXT")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BLOB")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "MEDIUMBLOB")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "LONGBLOB")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, "LONGBLOB")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "LONGTEXT")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "DATETIME")); - } - - /** - * @see Platform#getAutoIncrement() - */ - public function getAutoIncrement() - { - return "AUTO_INCREMENT"; - } - - /** - * @see Platform#getMaxColumnNameLength() - */ - public function getMaxColumnNameLength() - { - return 64; - } - - /** - * @see Platform::supportsNativeDeleteTrigger() - */ - public function supportsNativeDeleteTrigger() - { - $usingInnoDB = false; - if (class_exists('DataModelBuilder', false)) - { - $usingInnoDB = strtolower($this->getBuildProperty('mysqlTableType')) == 'innodb'; - } - return $usingInnoDB || false; - } - - /** - * @see Platform#hasSize(String) - */ - public function hasSize($sqlType) - { - return !("MEDIUMTEXT" == $sqlType || "LONGTEXT" == $sqlType - || "BLOB" == $sqlType || "MEDIUMBLOB" == $sqlType - || "LONGBLOB" == $sqlType); - } - - /** - * Escape the string for RDBMS. - * @param string $text - * @return string - */ - public function disconnectedEscapeText($text) - { - if (function_exists('mysql_escape_string')) { - return mysql_escape_string($text); - } else { - return addslashes($text); - } - } - - /** - * @see Platform::quoteIdentifier() - */ - public function quoteIdentifier($text) - { - return '`' . $text . '`'; - } - - /** - * Gets the preferred timestamp formatter for setting date/time values. - * @return string - */ - public function getTimestampFormatter() - { - return 'Y-m-d H:i:s'; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/platform/OraclePlatform.php b/airtime_mvc/library/propel/generator/lib/platform/OraclePlatform.php deleted file mode 100644 index 7ecf100b75..0000000000 --- a/airtime_mvc/library/propel/generator/lib/platform/OraclePlatform.php +++ /dev/null @@ -1,113 +0,0 @@ - (Propel) - * @author Martin Poeschl (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.platform - */ -class OraclePlatform extends DefaultPlatform -{ - - /** - * Initializes db specific domain mapping. - */ - protected function initialize() - { - parent::initialize(); - $this->schemaDomainMap[PropelTypes::BOOLEAN] = new Domain(PropelTypes::BOOLEAN_EMU, "NUMBER", "1", "0"); - $this->schemaDomainMap[PropelTypes::CLOB] = new Domain(PropelTypes::CLOB_EMU, "CLOB"); - $this->schemaDomainMap[PropelTypes::CLOB_EMU] = $this->schemaDomainMap[PropelTypes::CLOB]; - $this->setSchemaDomainMapping(new Domain(PropelTypes::TINYINT, "NUMBER", "3", "0")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::SMALLINT, "NUMBER", "5", "0")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::INTEGER, "NUMBER")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BIGINT, "NUMBER", "20", "0")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::REAL, "NUMBER")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::DOUBLE, "FLOAT")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::DECIMAL, "NUMBER")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, "NUMBER")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::VARCHAR, "NVARCHAR2")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "NVARCHAR2", "2000")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::TIME, "DATE")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, "DATE")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "TIMESTAMP")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "LONG RAW")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "BLOB")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "LONG RAW")); - } - - /** - * @see Platform#getMaxColumnNameLength() - */ - public function getMaxColumnNameLength() - { - return 30; - } - - /** - * @see Platform#getNativeIdMethod() - */ - public function getNativeIdMethod() - { - return Platform::SEQUENCE; - } - - /** - * @see Platform#getAutoIncrement() - */ - public function getAutoIncrement() - { - return ""; - } - - /** - * @see Platform::supportsNativeDeleteTrigger() - */ - public function supportsNativeDeleteTrigger() - { - return true; - } - - /** - * Whether the underlying PDO driver for this platform returns BLOB columns as streams (instead of strings). - * @return boolean - */ - public function hasStreamBlobImpl() - { - return true; - } - - /** - * Quotes identifiers used in database SQL. - * @see Platform::quoteIdentifier() - * @param string $text - * @return string Quoted identifier. - */ - public function quoteIdentifier($text) - { - return $text; - } - - /** - * Gets the preferred timestamp formatter for setting date/time values. - * @see Platform::getTimestampFormatter() - * @return string - */ - public function getTimestampFormatter() - { - return 'Y-m-d H:i:s'; - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/platform/PgsqlPlatform.php b/airtime_mvc/library/propel/generator/lib/platform/PgsqlPlatform.php deleted file mode 100644 index 8e8511b9e0..0000000000 --- a/airtime_mvc/library/propel/generator/lib/platform/PgsqlPlatform.php +++ /dev/null @@ -1,118 +0,0 @@ - (Propel) - * @author Martin Poeschl (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.platform - */ -class PgsqlPlatform extends DefaultPlatform -{ - - /** - * Initializes db specific domain mapping. - */ - protected function initialize() - { - parent::initialize(); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BOOLEAN, "BOOLEAN")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::TINYINT, "INT2")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::SMALLINT, "INT2")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BIGINT, "INT8")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::REAL, "FLOAT")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::DOUBLE, "DOUBLE PRECISION")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "TEXT")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BYTEA")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "BYTEA")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "BYTEA")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, "BYTEA")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "TEXT")); - } - - /** - * @see Platform#getNativeIdMethod() - */ - public function getNativeIdMethod() - { - return Platform::SERIAL; - } - - /** - * @see Platform#getAutoIncrement() - */ - public function getAutoIncrement() - { - return ""; - } - - /** - * @see Platform#getMaxColumnNameLength() - */ - public function getMaxColumnNameLength() - { - return 32; - } - - /** - * Escape the string for RDBMS. - * @param string $text - * @return string - */ - public function disconnectedEscapeText($text) - { - if (function_exists('pg_escape_string')) { - return pg_escape_string($text); - } else { - return parent::disconnectedEscapeText($text); - } - } - - /** - * @see Platform::getBooleanString() - */ - public function getBooleanString($b) - { - // parent method does the checking for allowes tring - // representations & returns integer - $b = parent::getBooleanString($b); - return ($b ? "'t'" : "'f'"); - } - - /** - * @see Platform::supportsNativeDeleteTrigger() - */ - public function supportsNativeDeleteTrigger() - { - return true; - } - - /** - * @see Platform::hasSize(String) - * TODO collect info for all platforms - */ - public function hasSize($sqlType) - { - return !("BYTEA" == $sqlType || "TEXT" == $sqlType); - } - - /** - * Whether the underlying PDO driver for this platform returns BLOB columns as streams (instead of strings). - * @return boolean - */ - public function hasStreamBlobImpl() - { - return true; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/platform/Platform.php b/airtime_mvc/library/propel/generator/lib/platform/Platform.php deleted file mode 100644 index 184116ce21..0000000000 --- a/airtime_mvc/library/propel/generator/lib/platform/Platform.php +++ /dev/null @@ -1,182 +0,0 @@ - (Propel) - * @author Martin Poeschl (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.platform - */ -interface Platform -{ - - /** - * Constant for auto-increment id method. - */ - const IDENTITY = "identity"; - - /** - * Constant for sequence id method. - */ - const SEQUENCE = "sequence"; - - /** - * Constant for serial id method (postgresql). - */ - const SERIAL = "serial"; - - /** - * Sets a database connection to use (for quoting, etc.). - * @param PDO $con The database connection to use in this Platform class. - */ - public function setConnection(PDO $con = null); - - /** - * Returns the database connection to use for this Platform class. - * @return PDO The database connection or NULL if none has been set. - */ - public function getConnection(); - - /** - * Sets the GeneratorConfig which contains any generator build properties. - * - * @param GeneratorConfig $config - */ - public function setGeneratorConfig(GeneratorConfig $config); - - /** - * Gets the GeneratorConfig object. - * - * @return GeneratorConfig - */ - public function getGeneratorConfig(); - - /** - * Returns the short name of the database type that this platform represents. - * For example MysqlPlatform->getDatabaseType() returns 'mysql'. - * @return string - */ - public function getDatabaseType(); - - /** - * Returns the native IdMethod (sequence|identity) - * - * @return string The native IdMethod (Platform:IDENTITY, Platform::SEQUENCE). - */ - public function getNativeIdMethod(); - - /** - * Returns the max column length supported by the db. - * - * @return int The max column length - */ - public function getMaxColumnNameLength(); - - /** - * Returns the db specific domain for a propelType. - * - * @param string $propelType the Propel type name. - * @return Domain The db specific domain. - */ - public function getDomainForType($propelType); - - /** - * @return string The RDBMS-specific SQL fragment for NULL - * or NOT NULL. - */ - public function getNullString($notNull); - - /** - * @return The RDBMS-specific SQL fragment for autoincrement. - */ - public function getAutoIncrement(); - - /** - * Returns if the RDBMS-specific SQL type has a size attribute. - * - * @param string $sqlType the SQL type - * @return boolean True if the type has a size attribute - */ - public function hasSize($sqlType); - - /** - * Returns if the RDBMS-specific SQL type has a scale attribute. - * - * @param string $sqlType the SQL type - * @return boolean True if the type has a scale attribute - */ - public function hasScale($sqlType); - - /** - * Quote and escape needed characters in the string for unerlying RDBMS. - * @param string $text - * @return string - */ - public function quote($text); - - /** - * Quotes identifiers used in database SQL. - * @param string $text - * @return string Quoted identifier. - */ - public function quoteIdentifier($text); - - /** - * Whether RDBMS supports native ON DELETE triggers (e.g. ON DELETE CASCADE). - * @return boolean - */ - public function supportsNativeDeleteTrigger(); - - /** - * Whether RDBMS supports INSERT null values in autoincremented primary keys - * @return boolean - */ - public function supportsInsertNullPk(); - - /** - * Returns the boolean value for the RDBMS. - * - * This value should match the boolean value that is set - * when using Propel's PreparedStatement::setBoolean(). - * - * This function is used to set default column values when building - * SQL. - * - * @param mixed $tf A boolean or string representation of boolean ('y', 'true'). - * @return mixed - */ - public function getBooleanString($tf); - - /** - * Whether the underlying PDO driver for this platform returns BLOB columns as streams (instead of strings). - * @return boolean - */ - public function hasStreamBlobImpl(); - - /** - * Gets the preferred timestamp formatter for setting date/time values. - * @return string - */ - public function getTimestampFormatter(); - - /** - * Gets the preferred date formatter for setting time values. - * @return string - */ - public function getDateFormatter(); - - /** - * Gets the preferred time formatter for setting time values. - * @return string - */ - public function getTimeFormatter(); -} diff --git a/airtime_mvc/library/propel/generator/lib/platform/SqlitePlatform.php b/airtime_mvc/library/propel/generator/lib/platform/SqlitePlatform.php deleted file mode 100644 index d42dcb9781..0000000000 --- a/airtime_mvc/library/propel/generator/lib/platform/SqlitePlatform.php +++ /dev/null @@ -1,87 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.generator.platform - */ -class SqlitePlatform extends DefaultPlatform -{ - - /** - * Initializes db specific domain mapping. - */ - protected function initialize() - { - parent::initialize(); - $this->setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, "DECIMAL")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "MEDIUMTEXT")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, "DATETIME")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BLOB")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "MEDIUMBLOB")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "LONGBLOB")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, "LONGBLOB")); - $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "LONGTEXT")); - } - - /** - * @see Platform#getAutoIncrement() - * @link http://www.sqlite.org/autoinc.html - */ - public function getAutoIncrement() - { - - return "PRIMARY KEY"; - } - - /** - * @see Platform#getMaxColumnNameLength() - */ - public function getMaxColumnNameLength() - { - return 1024; - } - - /** - * @see Platform#hasSize(String) - */ - public function hasSize($sqlType) { - return !("MEDIUMTEXT" == $sqlType || "LONGTEXT" == $sqlType - || "BLOB" == $sqlType || "MEDIUMBLOB" == $sqlType - || "LONGBLOB" == $sqlType); - } - - /** - * Escape the string for RDBMS. - * @param string $text - * @return string - */ - public function disconnectedEscapeText($text) - { - if (function_exists('sqlite_escape_string')) { - return sqlite_escape_string($text); - } else { - return parent::disconnectedEscapeText($text); - } - } - - /** - * @see Platform::quoteIdentifier() - */ - public function quoteIdentifier($text) - { - return '[' . $text . ']'; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/reverse/BaseSchemaParser.php b/airtime_mvc/library/propel/generator/lib/reverse/BaseSchemaParser.php deleted file mode 100644 index ae80621d97..0000000000 --- a/airtime_mvc/library/propel/generator/lib/reverse/BaseSchemaParser.php +++ /dev/null @@ -1,188 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.generator.reverse - */ -abstract class BaseSchemaParser implements SchemaParser -{ - - /** - * The database connection. - * @var PDO - */ - protected $dbh; - - /** - * Stack of warnings. - * - * @var array string[] - */ - protected $warnings = array(); - - /** - * GeneratorConfig object holding build properties. - * - * @var GeneratorConfig - */ - private $generatorConfig; - - /** - * Map native DB types to Propel types. - * (Override in subclasses.) - * @var array - */ - protected $nativeToPropelTypeMap; - - /** - * Map to hold reverse type mapping (initialized on-demand). - * - * @var array - */ - protected $reverseTypeMap; - - /** - * @param PDO $dbh Optional database connection - */ - public function __construct(PDO $dbh = null) - { - if ($dbh) $this->setConnection($dbh); - } - - /** - * Sets the database connection. - * - * @param PDO $dbh - */ - public function setConnection(PDO $dbh) - { - $this->dbh = $dbh; - } - - /** - * Gets the database connection. - * @return PDO - */ - public function getConnection() - { - return $this->dbh; - } - - /** - * Pushes a message onto the stack of warnings. - * - * @param string $msg The warning message. - */ - protected function warn($msg) - { - $this->warnings[] = $msg; - } - - /** - * Gets array of warning messages. - * - * @return array string[] - */ - public function getWarnings() - { - return $this->warnings; - } - - /** - * Sets the GeneratorConfig to use in the parsing. - * - * @param GeneratorConfig $config - */ - public function setGeneratorConfig(GeneratorConfig $config) - { - $this->generatorConfig = $config; - } - - /** - * Gets the GeneratorConfig option. - * - * @return GeneratorConfig - */ - public function getGeneratorConfig() - { - return $this->generatorConfig; - } - - /** - * Gets a specific propel (renamed) property from the build. - * - * @param string $name - * @return mixed - */ - public function getBuildProperty($name) - { - if ($this->generatorConfig !== null) { - return $this->generatorConfig->getBuildProperty($name); - } - return null; - } - - /** - * Gets a type mapping from native type to Propel type. - * - * @return array The mapped Propel type. - */ - abstract protected function getTypeMapping(); - - /** - * Gets a mapped Propel type for specified native type. - * - * @param string $nativeType - * @return string The mapped Propel type. - */ - protected function getMappedPropelType($nativeType) - { - if ($this->nativeToPropelTypeMap === null) { - $this->nativeToPropelTypeMap = $this->getTypeMapping(); - } - if (isset($this->nativeToPropelTypeMap[$nativeType])) { - return $this->nativeToPropelTypeMap[$nativeType]; - } - return null; - } - - /** - * Give a best guess at the native type. - * - * @param string $propelType - * @return string The native SQL type that best matches the specified Propel type. - */ - protected function getMappedNativeType($propelType) - { - if ($this->reverseTypeMap === null) { - $this->reverseTypeMap = array_flip($this->getTypeMapping()); - } - return isset($this->reverseTypeMap[$propelType]) ? $this->reverseTypeMap[$propelType] : null; - } - - /** - * Gets a new VendorInfo object for this platform with specified params. - * - * @param array $params - */ - protected function getNewVendorInfoObject(array $params) - { - $type = $this->getGeneratorConfig()->getConfiguredPlatform()->getDatabaseType(); - $vi = new VendorInfo($type); - $vi->setParameters($params); - return $vi; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/reverse/SchemaParser.php b/airtime_mvc/library/propel/generator/lib/reverse/SchemaParser.php deleted file mode 100644 index 4f6366767f..0000000000 --- a/airtime_mvc/library/propel/generator/lib/reverse/SchemaParser.php +++ /dev/null @@ -1,63 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.generator.reverse - */ -interface SchemaParser -{ - - /** - * Gets the database connection. - * @return PDO - */ - public function getConnection(); - - /** - * Sets the database connection. - * - * @param PDO $dbh - */ - public function setConnection(PDO $dbh); - - /** - * Sets the GeneratorConfig to use in the parsing. - * - * @param GeneratorConfig $config - */ - public function setGeneratorConfig(GeneratorConfig $config); - - /** - * Gets a specific propel (renamed) property from the build. - * - * @param string $name - * @return mixed - */ - public function getBuildProperty($name); - - /** - * Gets array of warning messages. - * @return array string[] - */ - public function getWarnings(); - - /** - * Parse the schema and populate passed-in Database model object. - * - * @param Database $database - * - * @return int number of generated tables - */ - public function parse(Database $database, PDOTask $task = null); -} diff --git a/airtime_mvc/library/propel/generator/lib/reverse/mssql/MssqlSchemaParser.php b/airtime_mvc/library/propel/generator/lib/reverse/mssql/MssqlSchemaParser.php deleted file mode 100644 index d28c3973df..0000000000 --- a/airtime_mvc/library/propel/generator/lib/reverse/mssql/MssqlSchemaParser.php +++ /dev/null @@ -1,240 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.generator.reverse.mssql - */ -class MssqlSchemaParser extends BaseSchemaParser -{ - - /** - * Map MSSQL native types to Propel types. - * @var array - */ - private static $mssqlTypeMap = array( - "binary" => PropelTypes::BINARY, - "bit" => PropelTypes::BOOLEAN, - "char" => PropelTypes::CHAR, - "datetime" => PropelTypes::TIMESTAMP, - "decimal() identity" => PropelTypes::DECIMAL, - "decimal" => PropelTypes::DECIMAL, - "image" => PropelTypes::LONGVARBINARY, - "int" => PropelTypes::INTEGER, - "int identity" => PropelTypes::INTEGER, - "integer" => PropelTypes::INTEGER, - "money" => PropelTypes::DECIMAL, - "nchar" => PropelTypes::CHAR, - "ntext" => PropelTypes::LONGVARCHAR, - "numeric() identity" => PropelTypes::NUMERIC, - "numeric" => PropelTypes::NUMERIC, - "nvarchar" => PropelTypes::VARCHAR, - "real" => PropelTypes::REAL, - "float" => PropelTypes::FLOAT, - "smalldatetime" => PropelTypes::TIMESTAMP, - "smallint" => PropelTypes::SMALLINT, - "smallint identity" => PropelTypes::SMALLINT, - "smallmoney" => PropelTypes::DECIMAL, - "sysname" => PropelTypes::VARCHAR, - "text" => PropelTypes::LONGVARCHAR, - "timestamp" => PropelTypes::BINARY, - "tinyint identity" => PropelTypes::TINYINT, - "tinyint" => PropelTypes::TINYINT, - "uniqueidentifier" => PropelTypes::CHAR, - "varbinary" => PropelTypes::VARBINARY, - "varchar" => PropelTypes::VARCHAR, - "uniqueidentifier" => PropelTypes::CHAR, - // SQL Server 2000 only - "bigint identity" => PropelTypes::BIGINT, - "bigint" => PropelTypes::BIGINT, - "sql_variant" => PropelTypes::VARCHAR, - ); - - /** - * Gets a type mapping from native types to Propel types - * - * @return array - */ - protected function getTypeMapping() - { - return self::$mssqlTypeMap; - } - - /** - * - */ - public function parse(Database $database, PDOTask $task = null) - { - $stmt = $this->dbh->query("SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME <> 'dtproperties'"); - - // First load the tables (important that this happen before filling out details of tables) - $tables = array(); - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $name = $row[0]; - $table = new Table($name); - $database->addTable($table); - $tables[] = $table; - } - - // Now populate only columns. - foreach ($tables as $table) { - $this->addColumns($table); - } - - // Now add indexes and constraints. - foreach ($tables as $table) { - $this->addForeignKeys($table); - $this->addIndexes($table); - $this->addPrimaryKey($table); - } - - return count($tables); - - } - - - /** - * Adds Columns to the specified table. - * - * @param Table $table The Table model class to add columns to. - */ - protected function addColumns(Table $table) - { - $stmt = $this->dbh->query("sp_columns '" . $table->getName() . "'"); - - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - - $name = $row['COLUMN_NAME']; - $type = $row['TYPE_NAME']; - $size = $row['LENGTH']; - $is_nullable = $row['NULLABLE']; - $default = $row['COLUMN_DEF']; - $precision = $row['PRECISION']; - $scale = $row['SCALE']; - $autoincrement = false; - if (strtolower($type) == "int identity") { - $autoincrement = true; - } - - $propelType = $this->getMappedPropelType($type); - if (!$propelType) { - $propelType = Column::DEFAULT_TYPE; - $this->warn("Column [" . $table->getName() . "." . $name. "] has a column type (".$type.") that Propel does not support."); - } - - $column = new Column($name); - $column->setTable($table); - $column->setDomainForType($propelType); - // We may want to provide an option to include this: - // $column->getDomain()->replaceSqlType($type); - $column->getDomain()->replaceSize($size); - $column->getDomain()->replaceScale($scale); - if ($default !== null) { - $column->getDomain()->setDefaultValue(new ColumnDefaultValue($default, ColumnDefaultValue::TYPE_VALUE)); - } - $column->setAutoIncrement($autoincrement); - $column->setNotNull(!$is_nullable); - - $table->addColumn($column); - } - - - } // addColumn() - - /** - * Load foreign keys for this table. - */ - protected function addForeignKeys(Table $table) - { - $database = $table->getDatabase(); - - $stmt = $this->dbh->query("SELECT ccu1.TABLE_NAME, ccu1.COLUMN_NAME, ccu2.TABLE_NAME AS FK_TABLE_NAME, ccu2.COLUMN_NAME AS FK_COLUMN_NAME - FROM INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE ccu1 INNER JOIN - INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc1 ON tc1.CONSTRAINT_NAME = ccu1.CONSTRAINT_NAME AND - CONSTRAINT_TYPE = 'Foreign Key' INNER JOIN - INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS rc1 ON rc1.CONSTRAINT_NAME = tc1.CONSTRAINT_NAME INNER JOIN - INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE ccu2 ON ccu2.CONSTRAINT_NAME = rc1.UNIQUE_CONSTRAINT_NAME - WHERE (ccu1.table_name = '".$table->getName()."')"); - - $row = $stmt->fetch(PDO::FETCH_NUM); - - $foreignKeys = array(); // local store to avoid duplicates - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - - $lcol = $row['COLUMN_NAME']; - $ftbl = $row['FK_TABLE_NAME']; - $fcol = $row['FK_COLUMN_NAME']; - - - $foreignTable = $database->getTable($ftbl); - $foreignColumn = $foreignTable->getColumn($fcol); - $localColumn = $table->getColumn($lcol); - - if (!isset($foreignKeys[$name])) { - $fk = new ForeignKey($name); - $fk->setForeignTableName($foreignTable->getName()); - //$fk->setOnDelete($fkactions['ON DELETE']); - //$fk->setOnUpdate($fkactions['ON UPDATE']); - $table->addForeignKey($fk); - $foreignKeys[$name] = $fk; - } - $foreignKeys[$name]->addReference($localColumn, $foreignColumn); - } - - } - - /** - * Load indexes for this table - */ - protected function addIndexes(Table $table) - { - $stmt = $this->dbh->query("sp_indexes_rowset " . $table->getName()); - - $indexes = array(); - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - $colName = $row["COLUMN_NAME"]; - $name = $row['INDEX_NAME']; - - // FIXME -- Add UNIQUE support - if (!isset($indexes[$name])) { - $indexes[$name] = new Index($name); - $table->addIndex($indexes[$name]); - } - - $indexes[$name]->addColumn($table->getColumn($colName)); - } - } - - /** - * Loads the primary key for this table. - */ - protected function addPrimaryKey(Table $table) - { - $stmt = $this->dbh->query("SELECT COLUMN_NAME - FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS - INNER JOIN INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE ON - INFORMATION_SCHEMA.TABLE_CONSTRAINTS.CONSTRAINT_NAME = INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE.constraint_name - WHERE (INFORMATION_SCHEMA.TABLE_CONSTRAINTS.CONSTRAINT_TYPE = 'PRIMARY KEY') AND - (INFORMATION_SCHEMA.TABLE_CONSTRAINTS.TABLE_NAME = '".$table->getName()."')"); - - // Loop through the returned results, grouping the same key_name together - // adding each column for that key. - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $name = $row[0]; - $table->getColumn($name)->setPrimaryKey(true); - } - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/reverse/mysql/MysqlSchemaParser.php b/airtime_mvc/library/propel/generator/lib/reverse/mysql/MysqlSchemaParser.php deleted file mode 100644 index e88f5634e2..0000000000 --- a/airtime_mvc/library/propel/generator/lib/reverse/mysql/MysqlSchemaParser.php +++ /dev/null @@ -1,340 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.generator.reverse.mysql - */ -class MysqlSchemaParser extends BaseSchemaParser -{ - - /** - * @var boolean - */ - private $addVendorInfo = false; - - /** - * Map MySQL native types to Propel types. - * @var array - */ - private static $mysqlTypeMap = array( - 'tinyint' => PropelTypes::TINYINT, - 'smallint' => PropelTypes::SMALLINT, - 'mediumint' => PropelTypes::SMALLINT, - 'int' => PropelTypes::INTEGER, - 'integer' => PropelTypes::INTEGER, - 'bigint' => PropelTypes::BIGINT, - 'int24' => PropelTypes::BIGINT, - 'real' => PropelTypes::REAL, - 'float' => PropelTypes::FLOAT, - 'decimal' => PropelTypes::DECIMAL, - 'numeric' => PropelTypes::NUMERIC, - 'double' => PropelTypes::DOUBLE, - 'char' => PropelTypes::CHAR, - 'varchar' => PropelTypes::VARCHAR, - 'date' => PropelTypes::DATE, - 'time' => PropelTypes::TIME, - 'year' => PropelTypes::INTEGER, - 'datetime' => PropelTypes::TIMESTAMP, - 'timestamp' => PropelTypes::TIMESTAMP, - 'tinyblob' => PropelTypes::BINARY, - 'blob' => PropelTypes::BLOB, - 'mediumblob' => PropelTypes::BLOB, - 'longblob' => PropelTypes::BLOB, - 'longtext' => PropelTypes::CLOB, - 'tinytext' => PropelTypes::VARCHAR, - 'mediumtext' => PropelTypes::LONGVARCHAR, - 'text' => PropelTypes::LONGVARCHAR, - 'enum' => PropelTypes::CHAR, - 'set' => PropelTypes::CHAR, - ); - - /** - * Gets a type mapping from native types to Propel types - * - * @return array - */ - protected function getTypeMapping() - { - return self::$mysqlTypeMap; - } - - /** - * - */ - public function parse(Database $database, PDOTask $task = null) - { - $this->addVendorInfo = $this->getGeneratorConfig()->getBuildProperty('addVendorInfo'); - - $stmt = $this->dbh->query("SHOW TABLES"); - - // First load the tables (important that this happen before filling out details of tables) - $tables = array(); - $task->log("Reverse Engineering Tables"); - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $name = $row[0]; - $task->log(" Adding table '" . $name . "'"); - $table = new Table($name); - $database->addTable($table); - $tables[] = $table; - } - - // Now populate only columns. - $task->log("Reverse Engineering Columns"); - foreach ($tables as $table) { - $task->log(" Adding columns for table '" . $table->getName() . "'"); - $this->addColumns($table); - } - - // Now add indices and constraints. - $task->log("Reverse Engineering Indices And Constraints"); - foreach ($tables as $table) { - $task->log(" Adding indices and constraints for table '" . $table->getName() . "'"); - $this->addForeignKeys($table); - $this->addIndexes($table); - $this->addPrimaryKey($table); - if ($this->addVendorInfo) { - $this->addTableVendorInfo($table); - } - } - - return count($tables); - } - - - /** - * Adds Columns to the specified table. - * - * @param Table $table The Table model class to add columns to. - */ - protected function addColumns(Table $table) - { - $stmt = $this->dbh->query("SHOW COLUMNS FROM `" . $table->getName() . "`"); - - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - - $name = $row['Field']; - $is_nullable = ($row['Null'] == 'YES'); - $autoincrement = (strpos($row['Extra'], 'auto_increment') !== false); - $size = null; - $precision = null; - $scale = null; - - if (preg_match('/^(\w+)[\(]?([\d,]*)[\)]?( |$)/', $row['Type'], $matches)) { - // colname[1] size/precision[2] - $nativeType = $matches[1]; - if ($matches[2]) { - if ( ($cpos = strpos($matches[2], ',')) !== false) { - $size = (int) substr($matches[2], 0, $cpos); - $precision = $size; - $scale = (int) substr($matches[2], $cpos + 1); - } else { - $size = (int) $matches[2]; - } - } - } elseif (preg_match('/^(\w+)\(/', $row['Type'], $matches)) { - $nativeType = $matches[1]; - } else { - $nativeType = $row['Type']; - } - - //BLOBs can't have any default values in MySQL - $default = preg_match('~blob|text~', $nativeType) ? null : $row['Default']; - - $propelType = $this->getMappedPropelType($nativeType); - if (!$propelType) { - $propelType = Column::DEFAULT_TYPE; - $this->warn("Column [" . $table->getName() . "." . $name. "] has a column type (".$nativeType.") that Propel does not support."); - } - - $column = new Column($name); - $column->setTable($table); - $column->setDomainForType($propelType); - // We may want to provide an option to include this: - // $column->getDomain()->replaceSqlType($type); - $column->getDomain()->replaceSize($size); - $column->getDomain()->replaceScale($scale); - if ($default !== null) { - if (in_array($default, array('CURRENT_TIMESTAMP'))) { - $type = ColumnDefaultValue::TYPE_EXPR; - } else { - $type = ColumnDefaultValue::TYPE_VALUE; - } - $column->getDomain()->setDefaultValue(new ColumnDefaultValue($default, $type)); - } - $column->setAutoIncrement($autoincrement); - $column->setNotNull(!$is_nullable); - - if ($this->addVendorInfo) { - $vi = $this->getNewVendorInfoObject($row); - $column->addVendorInfo($vi); - } - - $table->addColumn($column); - } - - - } // addColumn() - - /** - * Load foreign keys for this table. - */ - protected function addForeignKeys(Table $table) - { - $database = $table->getDatabase(); - - $stmt = $this->dbh->query("SHOW CREATE TABLE `" . $table->getName(). "`"); - $row = $stmt->fetch(PDO::FETCH_NUM); - - $foreignKeys = array(); // local store to avoid duplicates - - // Get the information on all the foreign keys - $regEx = '/CONSTRAINT `([^`]+)` FOREIGN KEY \((.+)\) REFERENCES `([^`]*)` \((.+)\)(.*)/'; - if (preg_match_all($regEx,$row[1],$matches)) { - $tmpArray = array_keys($matches[0]); - foreach ($tmpArray as $curKey) { - $name = $matches[1][$curKey]; - $rawlcol = $matches[2][$curKey]; - $ftbl = $matches[3][$curKey]; - $rawfcol = $matches[4][$curKey]; - $fkey = $matches[5][$curKey]; - - $lcols = array(); - foreach(preg_split('/`, `/', $rawlcol) as $piece) { - $lcols[] = trim($piece, '` '); - } - - $fcols = array(); - foreach(preg_split('/`, `/', $rawfcol) as $piece) { - $fcols[] = trim($piece, '` '); - } - - //typical for mysql is RESTRICT - $fkactions = array( - 'ON DELETE' => ForeignKey::RESTRICT, - 'ON UPDATE' => ForeignKey::RESTRICT, - ); - - if ($fkey) { - //split foreign key information -> search for ON DELETE and afterwords for ON UPDATE action - foreach (array_keys($fkactions) as $fkaction) { - $result = NULL; - preg_match('/' . $fkaction . ' (' . ForeignKey::CASCADE . '|' . ForeignKey::SETNULL . ')/', $fkey, $result); - if ($result && is_array($result) && isset($result[1])) { - $fkactions[$fkaction] = $result[1]; - } - } - } - - $localColumns = array(); - $foreignColumns = array(); - - $foreignTable = $database->getTable($ftbl); - - foreach($fcols as $fcol) { - $foreignColumns[] = $foreignTable->getColumn($fcol); - } - foreach($lcols as $lcol) { - $localColumns[] = $table->getColumn($lcol); - } - - if (!isset($foreignKeys[$name])) { - $fk = new ForeignKey($name); - $fk->setForeignTableName($foreignTable->getName()); - $fk->setOnDelete($fkactions['ON DELETE']); - $fk->setOnUpdate($fkactions['ON UPDATE']); - $table->addForeignKey($fk); - $foreignKeys[$name] = $fk; - } - - for($i=0; $i < count($localColumns); $i++) { - $foreignKeys[$name]->addReference($localColumns[$i], $foreignColumns[$i]); - } - - } - - } - - } - - /** - * Load indexes for this table - */ - protected function addIndexes(Table $table) - { - $stmt = $this->dbh->query("SHOW INDEX FROM `" . $table->getName() . "`"); - - // Loop through the returned results, grouping the same key_name together - // adding each column for that key. - - $indexes = array(); - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - $colName = $row["Column_name"]; - $name = $row["Key_name"]; - - if ($name == "PRIMARY") { - continue; - } - - if (!isset($indexes[$name])) { - $isUnique = ($row["Non_unique"] == 0); - if ($isUnique) { - $indexes[$name] = new Unique($name); - } else { - $indexes[$name] = new Index($name); - } - if ($this->addVendorInfo) { - $vi = $this->getNewVendorInfoObject($row); - $indexes[$name]->addVendorInfo($vi); - } - $table->addIndex($indexes[$name]); - } - - $indexes[$name]->addColumn($table->getColumn($colName)); - } - } - - /** - * Loads the primary key for this table. - */ - protected function addPrimaryKey(Table $table) - { - $stmt = $this->dbh->query("SHOW KEYS FROM `" . $table->getName() . "`"); - - // Loop through the returned results, grouping the same key_name together - // adding each column for that key. - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - // Skip any non-primary keys. - if ($row['Key_name'] !== 'PRIMARY') { - continue; - } - $name = $row["Column_name"]; - $table->getColumn($name)->setPrimaryKey(true); - } - } - - /** - * Adds vendor-specific info for table. - * - * @param Table $table - */ - protected function addTableVendorInfo(Table $table) - { - $stmt = $this->dbh->query("SHOW TABLE STATUS LIKE '" . $table->getName() . "'"); - $row = $stmt->fetch(PDO::FETCH_ASSOC); - $vi = $this->getNewVendorInfoObject($row); - $table->addVendorInfo($vi); - } -} diff --git a/airtime_mvc/library/propel/generator/lib/reverse/oracle/OracleSchemaParser.php b/airtime_mvc/library/propel/generator/lib/reverse/oracle/OracleSchemaParser.php deleted file mode 100644 index 0e30a7c7d7..0000000000 --- a/airtime_mvc/library/propel/generator/lib/reverse/oracle/OracleSchemaParser.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @author Guillermo Gutierrez (Adaptation) - * @version $Revision: 1612 $ - * @package propel.generator.reverse.oracle - */ -class OracleSchemaParser extends BaseSchemaParser -{ - - /** - * Map Oracle native types to Propel types. - * - * There really aren't any Oracle native types, so we're just - * using the MySQL ones here. - * - * Left as unsupported: - * BFILE, - * RAW, - * ROWID - * - * Supported but non existant as a specific type in Oracle: - * DECIMAL (NUMBER with scale), - * DOUBLE (FLOAT with precision = 126) - * - * @var array - */ - private static $oracleTypeMap = array( - 'BLOB' => PropelTypes::BLOB, - 'CHAR' => PropelTypes::CHAR, - 'CLOB' => PropelTypes::CLOB, - 'DATE' => PropelTypes::DATE, - 'DECIMAL' => PropelTypes::DECIMAL, - 'DOUBLE' => PropelTypes::DOUBLE, - 'FLOAT' => PropelTypes::FLOAT, - 'LONG' => PropelTypes::LONGVARCHAR, - 'NCHAR' => PropelTypes::CHAR, - 'NCLOB' => PropelTypes::CLOB, - 'NUMBER' => PropelTypes::BIGINT, - 'NVARCHAR2' => PropelTypes::VARCHAR, - 'TIMESTAMP' => PropelTypes::TIMESTAMP, - 'VARCHAR2' => PropelTypes::VARCHAR, - ); - - /** - * Gets a type mapping from native types to Propel types - * - * @return array - */ - protected function getTypeMapping() - { - return self::$oracleTypeMap; - } - - /** - * Searches for tables in the database. Maybe we want to search also the views. - * @param Database $database The Database model class to add tables to. - */ - public function parse(Database $database, PDOTask $task = null) - { - $tables = array(); - $stmt = $this->dbh->query("SELECT OBJECT_NAME FROM USER_OBJECTS WHERE OBJECT_TYPE = 'TABLE'"); - - $task->log("Reverse Engineering Table Structures"); - // First load the tables (important that this happen before filling out details of tables) - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - if (strpos($row['OBJECT_NAME'], '$') !== false) { - // this is an Oracle internal table or materialized view - prune - continue; - } - $table = new Table($row['OBJECT_NAME']); - $task->log("Adding table '" . $table->getName() . "'"); - $database->addTable($table); - // Add columns, primary keys and indexes. - $this->addColumns($table); - $this->addPrimaryKey($table); - $this->addIndexes($table); - $tables[] = $table; - } - - $task->log("Reverse Engineering Foreign Keys"); - - foreach ($tables as $table) { - $task->log("Adding foreign keys for table '" . $table->getName() . "'"); - $this->addForeignKeys($table); - } - - return count($tables); - } - - /** - * Adds Columns to the specified table. - * - * @param Table $table The Table model class to add columns to. - */ - protected function addColumns(Table $table) - { - $stmt = $this->dbh->query("SELECT COLUMN_NAME, DATA_TYPE, NULLABLE, DATA_LENGTH, DATA_SCALE, DATA_DEFAULT FROM USER_TAB_COLS WHERE TABLE_NAME = '" . $table->getName() . "'"); - /* @var stmt PDOStatement */ - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - if (strpos($row['COLUMN_NAME'], '$') !== false) { - // this is an Oracle internal column - prune - continue; - } - $size = $row["DATA_LENGTH"]; - $scale = $row["DATA_SCALE"]; - $default = $row['DATA_DEFAULT']; - $type = $row["DATA_TYPE"]; - $isNullable = ($row['NULLABLE'] == 'Y'); - if ($type == "NUMBER" && $row["DATA_SCALE"] > 0) { - $type = "DECIMAL"; - } - if ($type == "FLOAT"&& $row["DATA_PRECISION"] == 126) { - $type = "DOUBLE"; - } - if (strpos($type, 'TIMESTAMP(') !== false) { - $type = substr($type, 0, strpos($type, '(')); - $default = "0000-00-00 00:00:00"; - $size = null; - $scale = null; - } - if ($type == "DATE") { - $default = "0000-00-00"; - $size = null; - $scale = null; - } - - $propelType = $this->getMappedPropelType($type); - if (!$propelType) { - $propelType = Column::DEFAULT_TYPE; - $this->warn("Column [" . $table->getName() . "." . $row['COLUMN_NAME']. "] has a column type (".$row["DATA_TYPE"].") that Propel does not support."); - } - - $column = new Column($row['COLUMN_NAME']); - $column->setPhpName(); // Prevent problems with strange col names - $column->setTable($table); - $column->setDomainForType($propelType); - $column->getDomain()->replaceSize($size); - $column->getDomain()->replaceScale($scale); - if ($default !== null) { - $column->getDomain()->setDefaultValue(new ColumnDefaultValue($default, ColumnDefaultValue::TYPE_VALUE)); - } - $column->setAutoIncrement(false); // Not yet supported - $column->setNotNull(!$isNullable); - $table->addColumn($column); - } - - } // addColumn() - - /** - * Adds Indexes to the specified table. - * - * @param Table $table The Table model class to add columns to. - */ - protected function addIndexes(Table $table) - { - $stmt = $this->dbh->query("SELECT COLUMN_NAME, INDEX_NAME FROM USER_IND_COLUMNS WHERE TABLE_NAME = '" . $table->getName() . "' ORDER BY COLUMN_NAME"); - $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); - - $indices = array(); - foreach ($rows as $row) { - $indices[$row['INDEX_NAME']][]= $row['COLUMN_NAME']; - } - - foreach ($indices as $indexName => $columnNames) { - $index = new Index($indexName); - foreach($columnNames AS $columnName) { - // Oracle deals with complex indices using an internal reference, so... - // let's ignore this kind of index - if ($table->hasColumn($columnName)) { - $index->addColumn($table->getColumn($columnName)); - } - } - // since some of the columns are pruned above, we must only add an index if it has columns - if ($index->hasColumns()) { - $table->addIndex($index); - } - } - } - - /** - * Load foreign keys for this table. - * - * @param Table $table The Table model class to add FKs to - */ - protected function addForeignKeys(Table $table) - { - // local store to avoid duplicates - $foreignKeys = array(); - - $stmt = $this->dbh->query("SELECT CONSTRAINT_NAME, DELETE_RULE, R_CONSTRAINT_NAME FROM USER_CONSTRAINTS WHERE CONSTRAINT_TYPE = 'R' AND TABLE_NAME = '" . $table->getName(). "'"); - /* @var stmt PDOStatement */ - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - // Local reference - $stmt2 = $this->dbh->query("SELECT COLUMN_NAME FROM USER_CONS_COLUMNS WHERE CONSTRAINT_NAME = '".$row['CONSTRAINT_NAME']."' AND TABLE_NAME = '" . $table->getName(). "'"); - /* @var stmt2 PDOStatement */ - $localReferenceInfo = $stmt2->fetch(PDO::FETCH_ASSOC); - - // Foreign reference - $stmt2 = $this->dbh->query("SELECT TABLE_NAME, COLUMN_NAME FROM USER_CONS_COLUMNS WHERE CONSTRAINT_NAME = '".$row['R_CONSTRAINT_NAME']."'"); - $foreignReferenceInfo = $stmt2->fetch(PDO::FETCH_ASSOC); - - if (!isset($foreignKeys[$row["CONSTRAINT_NAME"]])) { - $fk = new ForeignKey($row["CONSTRAINT_NAME"]); - $fk->setForeignTableName($foreignReferenceInfo['TABLE_NAME']); - $onDelete = ($row["DELETE_RULE"] == 'NO ACTION') ? 'NONE' : $row["DELETE_RULE"]; - $fk->setOnDelete($onDelete); - $fk->setOnUpdate($onDelete); - $fk->addReference(array("local" => $localReferenceInfo['COLUMN_NAME'], "foreign" => $foreignReferenceInfo['COLUMN_NAME'])); - $table->addForeignKey($fk); - $foreignKeys[$row["CONSTRAINT_NAME"]] = $fk; - } - } - } - - /** - * Loads the primary key for this table. - * - * @param Table $table The Table model class to add PK to. - */ - protected function addPrimaryKey(Table $table) - { - $stmt = $this->dbh->query("SELECT COLS.COLUMN_NAME FROM USER_CONSTRAINTS CONS, USER_CONS_COLUMNS COLS WHERE CONS.CONSTRAINT_NAME = COLS.CONSTRAINT_NAME AND CONS.TABLE_NAME = '".$table->getName()."' AND CONS.CONSTRAINT_TYPE = 'P'"); - /* @var stmt PDOStatement */ - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - // This fixes a strange behavior by PDO. Sometimes the - // row values are inside an index 0 of an array - if (array_key_exists(0, $row)) { - $row = $row[0]; - } - $table->getColumn($row['COLUMN_NAME'])->setPrimaryKey(true); - } - } - -} - diff --git a/airtime_mvc/library/propel/generator/lib/reverse/pgsql/PgsqlSchemaParser.php b/airtime_mvc/library/propel/generator/lib/reverse/pgsql/PgsqlSchemaParser.php deleted file mode 100644 index 8acfb18856..0000000000 --- a/airtime_mvc/library/propel/generator/lib/reverse/pgsql/PgsqlSchemaParser.php +++ /dev/null @@ -1,548 +0,0 @@ - - * @version $Revision: 1667 $ - * @package propel.generator.reverse.pgsql - */ -class PgsqlSchemaParser extends BaseSchemaParser -{ - - /** - * Map PostgreSQL native types to Propel types. - * @var array - */ - /** Map MySQL native types to Propel (JDBC) types. */ - private static $pgsqlTypeMap = array( - 'bool' => PropelTypes::BOOLEAN, - 'boolean' => PropelTypes::BOOLEAN, - 'tinyint' => PropelTypes::TINYINT, - 'smallint' => PropelTypes::SMALLINT, - 'mediumint' => PropelTypes::SMALLINT, - 'int' => PropelTypes::INTEGER, - 'int4' => PropelTypes::INTEGER, - 'integer' => PropelTypes::INTEGER, - 'int8' => PropelTypes::BIGINT, - 'bigint' => PropelTypes::BIGINT, - 'int24' => PropelTypes::BIGINT, - 'real' => PropelTypes::REAL, - 'float' => PropelTypes::FLOAT, - 'decimal' => PropelTypes::DECIMAL, - 'numeric' => PropelTypes::NUMERIC, - 'double' => PropelTypes::DOUBLE, - 'char' => PropelTypes::CHAR, - 'varchar' => PropelTypes::VARCHAR, - 'date' => PropelTypes::DATE, - 'time' => PropelTypes::TIME, - 'timetz' => PropelTypes::TIME, - //'year' => PropelTypes::YEAR, PropelTypes::YEAR does not exist... does this need to be mapped to a different propel type? - 'datetime' => PropelTypes::TIMESTAMP, - 'timestamp' => PropelTypes::TIMESTAMP, - 'timestamptz' => PropelTypes::TIMESTAMP, - 'bytea' => PropelTypes::BLOB, - 'text' => PropelTypes::LONGVARCHAR, - ); - - /** - * Gets a type mapping from native types to Propel types - * - * @return array - */ - protected function getTypeMapping() - { - return self::$pgsqlTypeMap; - } - - /** - * - */ - public function parse(Database $database, PDOTask $task = null) - { - $stmt = $this->dbh->query("SELECT version() as ver"); - $nativeVersion = $stmt->fetchColumn(); - - if (!$nativeVersion) { - throw new EngineException("Failed to get database version"); - } - - $arrVersion = sscanf ($nativeVersion, '%*s %d.%d'); - $version = sprintf ("%d.%d", $arrVersion[0], $arrVersion[1]); - - // Clean up - $stmt = null; - - $stmt = $this->dbh->query("SELECT c.oid, - case when n.nspname='public' then c.relname else n.nspname||'.'||c.relname end as relname - FROM pg_class c join pg_namespace n on (c.relnamespace=n.oid) - WHERE c.relkind = 'r' - AND n.nspname NOT IN ('information_schema','pg_catalog') - AND n.nspname NOT LIKE 'pg_temp%' - AND n.nspname NOT LIKE 'pg_toast%' - ORDER BY relname"); - - $tableWraps = array(); - - // First load the tables (important that this happen before filling out details of tables) - $task->log("Reverse Engineering Tables"); - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - $name = $row['relname']; - $task->log(" Adding table '" . $name . "'"); - $oid = $row['oid']; - $table = new Table($name); - $database->addTable($table); - - // Create a wrapper to hold these tables and their associated OID - $wrap = new stdClass; - $wrap->table = $table; - $wrap->oid = $oid; - $tableWraps[] = $wrap; - } - - // Now populate only columns. - $task->log("Reverse Engineering Columns"); - foreach ($tableWraps as $wrap) { - $task->log(" Adding columns for table '" . $wrap->table->getName() . "'"); - $this->addColumns($wrap->table, $wrap->oid, $version); - } - - // Now add indexes and constraints. - $task->log("Reverse Engineering Indices And Constraints"); - foreach ($tableWraps as $wrap) { - $task->log(" Adding indices and constraints for table '" . $wrap->table->getName() . "'"); - $this->addForeignKeys($wrap->table, $wrap->oid, $version); - $this->addIndexes($wrap->table, $wrap->oid, $version); - $this->addPrimaryKey($wrap->table, $wrap->oid, $version); - } - - // TODO - Handle Sequences ... - - return count($tableWraps); - - } - - - /** - * Adds Columns to the specified table. - * - * @param Table $table The Table model class to add columns to. - * @param int $oid The table OID - * @param string $version The database version. - */ - protected function addColumns(Table $table, $oid, $version) - { - - // Get the columns, types, etc. - // Based on code from pgAdmin3 (http://www.pgadmin.org/) - $stmt = $this->dbh->prepare("SELECT - att.attname, - att.atttypmod, - att.atthasdef, - att.attnotnull, - def.adsrc, - CASE WHEN att.attndims > 0 THEN 1 ELSE 0 END AS isarray, - CASE - WHEN ty.typname = 'bpchar' - THEN 'char' - WHEN ty.typname = '_bpchar' - THEN '_char' - ELSE - ty.typname - END AS typname, - ty.typtype - FROM pg_attribute att - JOIN pg_type ty ON ty.oid=att.atttypid - LEFT OUTER JOIN pg_attrdef def ON adrelid=att.attrelid AND adnum=att.attnum - WHERE att.attrelid = ? AND att.attnum > 0 - AND att.attisdropped IS FALSE - ORDER BY att.attnum"); - - $stmt->bindValue(1, $oid, PDO::PARAM_INT); - $stmt->execute(); - - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - - $size = null; - $precision = null; - $scale = null; - - // Check to ensure that this column isn't an array data type - if (((int) $row['isarray']) === 1) { - throw new EngineException (sprintf ("Array datatypes are not currently supported [%s.%s]", $this->name, $row['attname'])); - } // if (((int) $row['isarray']) === 1) - - $name = $row['attname']; - - // If they type is a domain, Process it - if (strtolower ($row['typtype']) == 'd') { - $arrDomain = $this->processDomain ($row['typname']); - $type = $arrDomain['type']; - $size = $arrDomain['length']; - $precision = $size; - $scale = $arrDomain['scale']; - $boolHasDefault = (strlen (trim ($row['atthasdef'])) > 0) ? $row['atthasdef'] : $arrDomain['hasdefault']; - $default = (strlen (trim ($row['adsrc'])) > 0) ? $row['adsrc'] : $arrDomain['default']; - $is_nullable = (strlen (trim ($row['attnotnull'])) > 0) ? $row['attnotnull'] : $arrDomain['notnull']; - $is_nullable = (($is_nullable == 't') ? false : true); - } else { - $type = $row['typname']; - $arrLengthPrecision = $this->processLengthScale ($row['atttypmod'], $type); - $size = $arrLengthPrecision['length']; - $precision = $size; - $scale = $arrLengthPrecision['scale']; - $boolHasDefault = $row['atthasdef']; - $default = $row['adsrc']; - $is_nullable = (($row['attnotnull'] == 't') ? false : true); - } // else (strtolower ($row['typtype']) == 'd') - - $autoincrement = null; - - // if column has a default - if (($boolHasDefault == 't') && (strlen (trim ($default)) > 0)) { - if (!preg_match('/^nextval\(/', $default)) { - $strDefault= preg_replace ('/::[\W\D]*/', '', $default); - $default = str_replace ("'", '', $strDefault); - } else { - $autoincrement = true; - $default = null; - } - } else { - $default = null; - } - - $propelType = $this->getMappedPropelType($type); - if (!$propelType) { - $propelType = Column::DEFAULT_TYPE; - $this->warn("Column [" . $table->getName() . "." . $name. "] has a column type (".$type.") that Propel does not support."); - } - - $column = new Column($name); - $column->setTable($table); - $column->setDomainForType($propelType); - // We may want to provide an option to include this: - // $column->getDomain()->replaceSqlType($type); - $column->getDomain()->replaceSize($size); - $column->getDomain()->replaceScale($scale); - if ($default !== null) { - if (in_array($default, array('now()'))) { - $type = ColumnDefaultValue::TYPE_EXPR; - } else { - $type = ColumnDefaultValue::TYPE_VALUE; - } - $column->getDomain()->setDefaultValue(new ColumnDefaultValue($default, $type)); - } - $column->setAutoIncrement($autoincrement); - $column->setNotNull(!$is_nullable); - - $table->addColumn($column); - } - - - } // addColumn() - - private function processLengthScale($intTypmod, $strName) - { - // Define the return array - $arrRetVal = array ('length'=>null, 'scale'=>null); - - // Some datatypes don't have a Typmod - if ($intTypmod == -1) - { - return $arrRetVal; - } // if ($intTypmod == -1) - - // Numeric Datatype? - if ($strName == $this->getMappedNativeType(PropelTypes::NUMERIC)) { - $intLen = ($intTypmod - 4) >> 16; - $intPrec = ($intTypmod - 4) & 0xffff; - $intLen = sprintf ("%ld", $intLen); - if ($intPrec) - { - $intPrec = sprintf ("%ld", $intPrec); - } // if ($intPrec) - $arrRetVal['length'] = $intLen; - $arrRetVal['scale'] = $intPrec; - } // if ($strName == $this->getMappedNativeType(PropelTypes::NUMERIC)) - elseif ($strName == $this->getMappedNativeType(PropelTypes::TIME) || $strName == 'timetz' - || $strName == $this->getMappedNativeType(PropelTypes::TIMESTAMP) || $strName == 'timestamptz' - || $strName == 'interval' || $strName == 'bit') - { - $arrRetVal['length'] = sprintf ("%ld", $intTypmod); - } // elseif (TIME, TIMESTAMP, INTERVAL, BIT) - else - { - $arrRetVal['length'] = sprintf ("%ld", ($intTypmod - 4)); - } // else - return $arrRetVal; - } // private function processLengthScale ($intTypmod, $strName) - - private function processDomain($strDomain) - { - if (strlen(trim ($strDomain)) < 1) { - throw new EngineException ("Invalid domain name [" . $strDomain . "]"); - } - - $stmt = $this->dbh->prepare("SELECT - d.typname as domname, - b.typname as basetype, - d.typlen, - d.typtypmod, - d.typnotnull, - d.typdefault - FROM pg_type d - INNER JOIN pg_type b ON b.oid = CASE WHEN d.typndims > 0 then d.typelem ELSE d.typbasetype END - WHERE - d.typtype = 'd' - AND d.typname = ? - ORDER BY d.typname"); - $stmt->bindValue(1, $strDomain); - $stmt->execute(); - - $row = $stmt->fetch(PDO::FETCH_ASSOC); - if (!$row) { - throw new EngineException ("Domain [" . $strDomain . "] not found."); - } - - $arrDomain = array (); - $arrDomain['type'] = $row['basetype']; - $arrLengthPrecision = $this->processLengthScale($row['typtypmod'], $row['basetype']); - $arrDomain['length'] = $arrLengthPrecision['length']; - $arrDomain['scale'] = $arrLengthPrecision['scale']; - $arrDomain['notnull'] = $row['typnotnull']; - $arrDomain['default'] = $row['typdefault']; - $arrDomain['hasdefault'] = (strlen (trim ($row['typdefault'])) > 0) ? 't' : 'f'; - - $stmt = null; // cleanup - return $arrDomain; - } // private function processDomain($strDomain) - - /** - * Load foreign keys for this table. - */ - protected function addForeignKeys(Table $table, $oid, $version) - { - $database = $table->getDatabase(); - $stmt = $this->dbh->prepare("SELECT - conname, - confupdtype, - confdeltype, - CASE nl.nspname WHEN 'public' THEN cl.relname ELSE nl.nspname||'.'||cl.relname END as fktab, - a2.attname as fkcol, - CASE nr.nspname WHEN 'public' THEN cr.relname ELSE nr.nspname||'.'||cr.relname END as reftab, - a1.attname as refcol - FROM pg_constraint ct - JOIN pg_class cl ON cl.oid=conrelid - JOIN pg_class cr ON cr.oid=confrelid - JOIN pg_namespace nl ON nl.oid = cl.relnamespace - JOIN pg_namespace nr ON nr.oid = cr.relnamespace - LEFT JOIN pg_catalog.pg_attribute a1 ON a1.attrelid = ct.confrelid - LEFT JOIN pg_catalog.pg_attribute a2 ON a2.attrelid = ct.conrelid - WHERE - contype='f' - AND conrelid = ? - AND a2.attnum = ct.conkey[1] - AND a1.attnum = ct.confkey[1] - ORDER BY conname"); - $stmt->bindValue(1, $oid); - $stmt->execute(); - - $foreignKeys = array(); // local store to avoid duplicates - - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - - $name = $row['conname']; - $local_table = $row['fktab']; - $local_column = $row['fkcol']; - $foreign_table = $row['reftab']; - $foreign_column = $row['refcol']; - - // On Update - switch ($row['confupdtype']) { - case 'c': - $onupdate = ForeignKey::CASCADE; break; - case 'd': - $onupdate = ForeignKey::SETDEFAULT; break; - case 'n': - $onupdate = ForeignKey::SETNULL; break; - case 'r': - $onupdate = ForeignKey::RESTRICT; break; - default: - case 'a': - //NOACTION is the postgresql default - $onupdate = ForeignKey::NONE; break; - } - // On Delete - switch ($row['confdeltype']) { - case 'c': - $ondelete = ForeignKey::CASCADE; break; - case 'd': - $ondelete = ForeignKey::SETDEFAULT; break; - case 'n': - $ondelete = ForeignKey::SETNULL; break; - case 'r': - $ondelete = ForeignKey::RESTRICT; break; - default: - case 'a': - //NOACTION is the postgresql default - $ondelete = ForeignKey::NONE; break; - } - - $foreignTable = $database->getTable($foreign_table); - $foreignColumn = $foreignTable->getColumn($foreign_column); - - $localTable = $database->getTable($local_table); - $localColumn = $localTable->getColumn($local_column); - - if (!isset($foreignKeys[$name])) { - $fk = new ForeignKey($name); - $fk->setForeignTableName($foreignTable->getName()); - $fk->setOnDelete($ondelete); - $fk->setOnUpdate($onupdate); - $table->addForeignKey($fk); - $foreignKeys[$name] = $fk; - } - - $foreignKeys[$name]->addReference($localColumn, $foreignColumn); - } - } - - /** - * Load indexes for this table - */ - protected function addIndexes(Table $table, $oid, $version) - { - $stmt = $this->dbh->prepare("SELECT - DISTINCT ON(cls.relname) - cls.relname as idxname, - indkey, - indisunique - FROM pg_index idx - JOIN pg_class cls ON cls.oid=indexrelid - WHERE indrelid = ? AND NOT indisprimary - ORDER BY cls.relname"); - - $stmt->bindValue(1, $oid); - $stmt->execute(); - - $stmt2 = $this->dbh->prepare("SELECT a.attname - FROM pg_catalog.pg_class c JOIN pg_catalog.pg_attribute a ON a.attrelid = c.oid - WHERE c.oid = ? AND a.attnum = ? AND NOT a.attisdropped - ORDER BY a.attnum"); - - $indexes = array(); - - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - $name = $row["idxname"]; - $unique = ($row["indisunique"] == 't') ? true : false; - if (!isset($indexes[$name])) { - if ($unique) { - $indexes[$name] = new Unique($name); - } else { - $indexes[$name] = new Index($name); - } - $table->addIndex($indexes[$name]); - } - - $arrColumns = explode (' ', $row['indkey']); - foreach ($arrColumns as $intColNum) - { - $stmt2->bindValue(1, $oid); - $stmt2->bindValue(2, $intColNum); - $stmt2->execute(); - - $row2 = $stmt2->fetch(PDO::FETCH_ASSOC); - - $indexes[$name]->addColumn($table->getColumn($row2['attname'])); - - } // foreach ($arrColumns as $intColNum) - - } - - } - - /** - * Loads the primary key for this table. - */ - protected function addPrimaryKey(Table $table, $oid, $version) - { - - $stmt = $this->dbh->prepare("SELECT - DISTINCT ON(cls.relname) - cls.relname as idxname, - indkey, - indisunique - FROM pg_index idx - JOIN pg_class cls ON cls.oid=indexrelid - WHERE indrelid = ? AND indisprimary - ORDER BY cls.relname"); - $stmt->bindValue(1, $oid); - $stmt->execute(); - - // Loop through the returned results, grouping the same key_name together - // adding each column for that key. - - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - $arrColumns = explode (' ', $row['indkey']); - foreach ($arrColumns as $intColNum) { - $stmt2 = $this->dbh->prepare("SELECT a.attname - FROM pg_catalog.pg_class c JOIN pg_catalog.pg_attribute a ON a.attrelid = c.oid - WHERE c.oid = ? AND a.attnum = ? AND NOT a.attisdropped - ORDER BY a.attnum"); - $stmt2->bindValue(1, $oid); - $stmt2->bindValue(2, $intColNum); - $stmt2->execute(); - - $row2 = $stmt2->fetch(PDO::FETCH_ASSOC); - $table->getColumn($row2['attname'])->setPrimaryKey(true); - - } // foreach ($arrColumns as $intColNum) - } - - } - - /** - * Adds the sequences for this database. - * - * @return void - * @throws SQLException - */ - protected function addSequences(Database $database) - { - /* - -- WE DON'T HAVE ANY USE FOR THESE YET IN REVERSE ENGINEERING ... - $this->sequences = array(); - $result = pg_query($this->conn->getResource(), "SELECT c.oid, - case when n.nspname='public' then c.relname else n.nspname||'.'||c.relname end as relname - FROM pg_class c join pg_namespace n on (c.relnamespace=n.oid) - WHERE c.relkind = 'S' - AND n.nspname NOT IN ('information_schema','pg_catalog') - AND n.nspname NOT LIKE 'pg_temp%' - AND n.nspname NOT LIKE 'pg_toast%' - ORDER BY relname"); - - if (!$result) { - throw new SQLException("Could not list sequences", pg_last_error($this->dblink)); - } - - while ($row = pg_fetch_assoc($result)) { - // FIXME -- decide what info we need for sequences & then create a SequenceInfo object (if needed) - $obj = new stdClass; - $obj->name = $row['relname']; - $obj->oid = $row['oid']; - $this->sequences[strtoupper($row['relname'])] = $obj; - } - */ - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/reverse/sqlite/SqliteSchemaParser.php b/airtime_mvc/library/propel/generator/lib/reverse/sqlite/SqliteSchemaParser.php deleted file mode 100644 index 518d0d049d..0000000000 --- a/airtime_mvc/library/propel/generator/lib/reverse/sqlite/SqliteSchemaParser.php +++ /dev/null @@ -1,195 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.generator.reverse.sqlite - */ -class SqliteSchemaParser extends BaseSchemaParser -{ - - /** - * Map Sqlite native types to Propel types. - * - * There really aren't any SQLite native types, so we're just - * using the MySQL ones here. - * - * @var array - */ - private static $sqliteTypeMap = array( - 'tinyint' => PropelTypes::TINYINT, - 'smallint' => PropelTypes::SMALLINT, - 'mediumint' => PropelTypes::SMALLINT, - 'int' => PropelTypes::INTEGER, - 'integer' => PropelTypes::INTEGER, - 'bigint' => PropelTypes::BIGINT, - 'int24' => PropelTypes::BIGINT, - 'real' => PropelTypes::REAL, - 'float' => PropelTypes::FLOAT, - 'decimal' => PropelTypes::DECIMAL, - 'numeric' => PropelTypes::NUMERIC, - 'double' => PropelTypes::DOUBLE, - 'char' => PropelTypes::CHAR, - 'varchar' => PropelTypes::VARCHAR, - 'date' => PropelTypes::DATE, - 'time' => PropelTypes::TIME, - 'year' => PropelTypes::INTEGER, - 'datetime' => PropelTypes::TIMESTAMP, - 'timestamp' => PropelTypes::TIMESTAMP, - 'tinyblob' => PropelTypes::BINARY, - 'blob' => PropelTypes::BLOB, - 'mediumblob' => PropelTypes::BLOB, - 'longblob' => PropelTypes::BLOB, - 'longtext' => PropelTypes::CLOB, - 'tinytext' => PropelTypes::VARCHAR, - 'mediumtext' => PropelTypes::LONGVARCHAR, - 'text' => PropelTypes::LONGVARCHAR, - 'enum' => PropelTypes::CHAR, - 'set' => PropelTypes::CHAR, - ); - - /** - * Gets a type mapping from native types to Propel types - * - * @return array - */ - protected function getTypeMapping() - { - return self::$sqliteTypeMap; - } - - /** - * - */ - public function parse(Database $database, PDOTask $task = null) - { - $stmt = $this->dbh->query("SELECT name FROM sqlite_master WHERE type='table' UNION ALL SELECT name FROM sqlite_temp_master WHERE type='table' ORDER BY name;"); - - // First load the tables (important that this happen before filling out details of tables) - $tables = array(); - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $name = $row[0]; - $table = new Table($name); - $database->addTable($table); - $tables[] = $table; - } - - // Now populate only columns. - foreach ($tables as $table) { - $this->addColumns($table); - } - - // Now add indexes and constraints. - foreach ($tables as $table) { - $this->addIndexes($table); - } - - return count($tables); - - } - - - /** - * Adds Columns to the specified table. - * - * @param Table $table The Table model class to add columns to. - * @param int $oid The table OID - * @param string $version The database version. - */ - protected function addColumns(Table $table) - { - $stmt = $this->dbh->query("PRAGMA table_info('" . $table->getName() . "')"); - - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - - $name = $row['name']; - - $fulltype = $row['type']; - $size = null; - $precision = null; - $scale = null; - - if (preg_match('/^([^\(]+)\(\s*(\d+)\s*,\s*(\d+)\s*\)$/', $fulltype, $matches)) { - $type = $matches[1]; - $precision = $matches[2]; - $scale = $matches[3]; // aka precision - } elseif (preg_match('/^([^\(]+)\(\s*(\d+)\s*\)$/', $fulltype, $matches)) { - $type = $matches[1]; - $size = $matches[2]; - } else { - $type = $fulltype; - } - // If column is primary key and of type INTEGER, it is auto increment - // See: http://sqlite.org/faq.html#q1 - $autoincrement = ($row['pk'] == 1 && strtolower($type) == 'integer'); - $not_null = $row['notnull']; - $default = $row['dflt_value']; - - - $propelType = $this->getMappedPropelType($type); - if (!$propelType) { - $propelType = Column::DEFAULT_TYPE; - $this->warn("Column [" . $table->getName() . "." . $name. "] has a column type (".$type.") that Propel does not support."); - } - - $column = new Column($name); - $column->setTable($table); - $column->setDomainForType($propelType); - // We may want to provide an option to include this: - // $column->getDomain()->replaceSqlType($type); - $column->getDomain()->replaceSize($size); - $column->getDomain()->replaceScale($scale); - if ($default !== null) { - $column->getDomain()->setDefaultValue(new ColumnDefaultValue($default, ColumnDefaultValue::TYPE_VALUE)); - } - $column->setAutoIncrement($autoincrement); - $column->setNotNull($not_null); - - - if (($row['pk'] == 1) || (strtolower($type) == 'integer')) { - $column->setPrimaryKey(true); - } - - $table->addColumn($column); - - } - - - } // addColumn() - - /** - * Load indexes for this table - */ - protected function addIndexes(Table $table) - { - $stmt = $this->dbh->query("PRAGMA index_list('" . $table->getName() . "')"); - - while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - - $name = $row['name']; - $index = new Index($name); - - $stmt2 = $this->dbh->query("PRAGMA index_info('".$name."')"); - while ($row2 = $stmt2->fetch(PDO::FETCH_ASSOC)) { - $colname = $row2['name']; - $index->addColumn($table->getColumn($colname)); - } - - $table->addIndex($index); - - } - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/task/AbstractPropelDataModelTask.php b/airtime_mvc/library/propel/generator/lib/task/AbstractPropelDataModelTask.php deleted file mode 100644 index 597efff24c..0000000000 --- a/airtime_mvc/library/propel/generator/lib/task/AbstractPropelDataModelTask.php +++ /dev/null @@ -1,593 +0,0 @@ - (Propel) - * @author Jason van Zyl (Torque) - * @author Daniel Rall (Torque) - * @package propel.generator.task - */ -abstract class AbstractPropelDataModelTask extends Task -{ - - /** - * Fileset of XML schemas which represent our data models. - * @var array Fileset[] - */ - protected $schemaFilesets = array(); - - /** - * Data models that we collect. One from each XML schema file. - */ - protected $dataModels = array(); - - /** - * Have datamodels been initialized? - * @var boolean - */ - private $dataModelsLoaded = false; - - /** - * Map of data model name to database name. - * Should probably stick to the convention - * of them being the same but I know right now - * in a lot of cases they won't be. - */ - protected $dataModelDbMap; - - /** - * The target database(s) we are generating SQL - * for. Right now we can only deal with a single - * target, but we will support multiple targets - * soon. - */ - protected $targetDatabase; - - /** - * DB encoding to use for XmlToAppData object - */ - protected $dbEncoding = 'iso-8859-1'; - - /** - * Target PHP package to place the generated files in. - */ - protected $targetPackage; - - /** - * @var Mapper - */ - protected $mapperElement; - - /** - * Destination directory for results of template scripts. - * @var PhingFile - */ - protected $outputDirectory; - - /** - * Whether to package the datamodels or not - * @var PhingFile - */ - protected $packageObjectModel; - - /** - * Whether to perform validation (XSD) on the schema.xml file(s). - * @var boolean - */ - protected $validate; - - /** - * The XSD schema file to use for validation. - * @var PhingFile - */ - protected $xsdFile; - - /** - * XSL file to use to normalize (or otherwise transform) schema before validation. - * @var PhingFile - */ - protected $xslFile; - - /** - * Optional database connection url. - * @var string - */ - private $url = null; - - /** - * Optional database connection user name. - * @var string - */ - private $userId = null; - - /** - * Optional database connection password. - * @var string - */ - private $password = null; - - /** - * PDO Connection. - * @var PDO - */ - private $conn = false; - - /** - * An initialized GeneratorConfig object containing the converted Phing props. - * - * @var GeneratorConfig - */ - private $generatorConfig; - - /** - * Return the data models that have been - * processed. - * - * @return List data models - */ - public function getDataModels() - { - if (!$this->dataModelsLoaded) { - $this->loadDataModels(); - } - return $this->dataModels; - } - - /** - * Return the data model to database name map. - * - * @return Hashtable data model name to database name map. - */ - public function getDataModelDbMap() - { - if (!$this->dataModelsLoaded) { - $this->loadDataModels(); - } - return $this->dataModelDbMap; - } - - /** - * Adds a set of xml schema files (nested fileset attribute). - * - * @param set a Set of xml schema files - */ - public function addSchemaFileset(Fileset $set) - { - $this->schemaFilesets[] = $set; - } - - /** - * Get the current target database. - * - * @return String target database(s) - */ - public function getTargetDatabase() - { - return $this->targetDatabase; - } - - /** - * Set the current target database. (e.g. mysql, oracle, ..) - * - * @param v target database(s) - */ - public function setTargetDatabase($v) - { - $this->targetDatabase = $v; - } - - /** - * Get the current target package. - * - * @return string target PHP package. - */ - public function getTargetPackage() - { - return $this->targetPackage; - } - - /** - * Set the current target package. This is where generated PHP classes will - * live. - * - * @param string $v target PHP package. - */ - public function setTargetPackage($v) - { - $this->targetPackage = $v; - } - - /** - * Set the packageObjectModel switch on/off - * - * @param string $v The build.property packageObjectModel - */ - public function setPackageObjectModel($v) - { - $this->packageObjectModel = ($v === '1' ? true : false); - } - - /** - * Set whether to perform validation on the datamodel schema.xml file(s). - * @param boolean $v - */ - public function setValidate($v) - { - $this->validate = $v; - } - - /** - * Set the XSD schema to use for validation of any datamodel schema.xml file(s). - * @param $v PhingFile - */ - public function setXsd(PhingFile $v) - { - $this->xsdFile = $v; - } - - /** - * Set the normalization XSLT to use to transform datamodel schema.xml file(s) before validation and parsing. - * @param $v PhingFile - */ - public function setXsl(PhingFile $v) - { - $this->xslFile = $v; - } - - /** - * [REQUIRED] Set the output directory. It will be - * created if it doesn't exist. - * @param PhingFile $outputDirectory - * @return void - * @throws Exception - */ - public function setOutputDirectory(PhingFile $outputDirectory) { - try { - if (!$outputDirectory->exists()) { - $this->log("Output directory does not exist, creating: " . $outputDirectory->getPath(),Project::MSG_VERBOSE); - if (!$outputDirectory->mkdirs()) { - throw new IOException("Unable to create Ouptut directory: " . $outputDirectory->getAbsolutePath()); - } - } - $this->outputDirectory = $outputDirectory->getCanonicalPath(); - } catch (IOException $ioe) { - throw new BuildException($ioe); - } - } - - /** - * Set the current target database encoding. - * - * @param v target database encoding - */ - public function setDbEncoding($v) - { - $this->dbEncoding = $v; - } - - /** - * Set the DB connection url. - * - * @param string $url connection url - */ - public function setUrl($url) - { - $this->url = $url; - } - - /** - * Set the user name for the DB connection. - * - * @param string $userId database user - */ - public function setUserid($userId) - { - $this->userId = $userId; - } - - /** - * Set the password for the DB connection. - * - * @param string $password database password - */ - public function setPassword($password) - { - $this->password = $password; - } - - /** - * Get the output directory. - * @return string - */ - public function getOutputDirectory() { - return $this->outputDirectory; - } - - /** - * Nested creator, creates one Mapper for this task. - * - * @return Mapper The created Mapper type object. - * @throws BuildException - */ - public function createMapper() { - if ($this->mapperElement !== null) { - throw new BuildException("Cannot define more than one mapper.", $this->location); - } - $this->mapperElement = new Mapper($this->project); - return $this->mapperElement; - } - - /** - * Maps the passed in name to a new filename & returns resolved File object. - * @param string $from - * @return PhingFile Resolved File object. - * @throws BuilException - if no Mapper element se - * - if unable to map new filename. - */ - protected function getMappedFile($from) - { - if (!$this->mapperElement) { - throw new BuildException("This task requires you to use a element to describe how filename changes should be handled."); - } - - $mapper = $this->mapperElement->getImplementation(); - $mapped = $mapper->main($from); - if (!$mapped) { - throw new BuildException("Cannot create new filename based on: " . $from); - } - // Mappers always return arrays since it's possible for some mappers to map to multiple names. - $outFilename = array_shift($mapped); - $outFile = new PhingFile($this->getOutputDirectory(), $outFilename); - return $outFile; - } - - /** - * Gets the PDO connection, if URL specified. - * @return PDO Connection to use (for quoting, Platform class, etc.) or NULL if no connection params were specified. - */ - public function getConnection() - { - if ($this->conn === false) { - $this->conn = null; - if ($this->url) { - $buf = "Using database settings:\n" - . " URL: " . $this->url . "\n" - . ($this->userId ? " user: " . $this->userId . "\n" : "") - . ($this->password ? " password: " . $this->password . "\n" : ""); - - $this->log($buf, Project::MSG_VERBOSE); - - // Set user + password to null if they are empty strings - if (!$this->userId) { $this->userId = null; } - if (!$this->password) { $this->password = null; } - try { - $this->conn = new PDO($this->url, $this->userId, $this->password); - $this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - } catch (PDOException $x) { - $this->log("Unable to create a PDO connection: " . $x->getMessage(), Project::MSG_WARN); - } - } - } - return $this->conn; - } - - /** - * Gets all matching XML schema files and loads them into data models for class. - * @return void - */ - protected function loadDataModels() - { - $ads = array(); - - // Get all matched files from schemaFilesets - foreach ($this->schemaFilesets as $fs) { - $ds = $fs->getDirectoryScanner($this->project); - $srcDir = $fs->getDir($this->project); - - $dataModelFiles = $ds->getIncludedFiles(); - - $platform = $this->getGeneratorConfig()->getConfiguredPlatform(); - - // Make a transaction for each file - foreach ($dataModelFiles as $dmFilename) { - - $this->log("Processing: ".$dmFilename); - $xmlFile = new PhingFile($srcDir, $dmFilename); - - $dom = new DomDocument('1.0', 'UTF-8'); - $dom->load($xmlFile->getAbsolutePath()); - - // modify schema to include any external schemas (and remove the external-schema nodes) - $this->includeExternalSchemas($dom, $srcDir); - - // normalize (or transform) the XML document using XSLT - if ($this->getGeneratorConfig()->getBuildProperty('schemaTransform') && $this->xslFile) { - $this->log("Transforming " . $xmlFile->getPath() . " using stylesheet " . $this->xslFile->getPath(), Project::MSG_VERBOSE); - if (!class_exists('XSLTProcessor')) { - $this->log("Could not perform XLST transformation. Make sure PHP has been compiled/configured to support XSLT.", Project::MSG_ERR); - } else { - // normalize the document using normalizer stylesheet - $xslDom = new DomDocument('1.0', 'UTF-8'); - $xslDom->load($this->xslFile->getAbsolutePath()); - $xsl = new XsltProcessor(); - $xsl->importStyleSheet($xslDom); - $dom = $xsl->transformToDoc($dom); - } - } - - // validate the XML document using XSD schema - if ($this->validate && $this->xsdFile) { - $this->log("Validating XML doc (".$xmlFile->getPath().") using schema file " . $this->xsdFile->getPath(), Project::MSG_VERBOSE); - if (!$dom->schemaValidate($this->xsdFile->getAbsolutePath())) { - throw new EngineException("XML schema file (".$xmlFile->getPath().") does not validate. See warnings above for reasons validation failed (make sure error_reporting is set to show E_WARNING if you don't see any).", $this->getLocation()); - } - } - - $xmlParser = new XmlToAppData($platform, $this->getTargetPackage(), $this->dbEncoding); - $ad = $xmlParser->parseString($dom->saveXML(), $xmlFile->getAbsolutePath()); - - $ad->setName($dmFilename); - $ads[] = $ad; - } - } - - if (empty($ads)) { - throw new BuildException("No schema files were found (matching your schema fileset definition)."); - } - - foreach ($ads as $ad) { - // map schema filename with database name - $this->dataModelDbMap[$ad->getName()] = $ad->getDatabase(null, false)->getName(); - } - - if (count($ads)>1 && $this->packageObjectModel) { - $ad = $this->joinDataModels($ads); - $this->dataModels = array($ad); - } else { - $this->dataModels = $ads; - } - - foreach ($this->dataModels as &$ad) { - $ad->doFinalInitialization(); - } - - $this->dataModelsLoaded = true; - } - - /** - * Replaces all external-schema nodes with the content of xml schema that node refers to - * - * Recurses to include any external schema referenced from in an included xml (and deeper) - * Note: this function very much assumes at least a reasonable XML schema, maybe it'll proof - * users don't have those and adding some more informative exceptions would be better - * - * @param DomDocument $dom - * @param string $srcDir - * @return void (objects, DomDocument, are references by default in PHP 5, so returning it is useless) - **/ - protected function includeExternalSchemas(DomDocument $dom, $srcDir) { - $databaseNode = $dom->getElementsByTagName("database")->item(0); - $externalSchemaNodes = $dom->getElementsByTagName("external-schema"); - $fs = FileSystem::getFileSystem(); - $nbIncludedSchemas = 0; - while ($externalSchema = $externalSchemaNodes->item(0)) { - $include = $externalSchema->getAttribute("filename"); - $this->log("Processing external schema: ".$include); - $externalSchema->parentNode->removeChild($externalSchema); - if ($fs->prefixLength($include) != 0) { - $externalSchemaFile = new PhingFile($include); - } else { - $externalSchemaFile = new PhingFile($srcDir, $include); - } - $externalSchemaDom = new DomDocument('1.0', 'UTF-8'); - $externalSchemaDom->load($externalSchemaFile->getAbsolutePath()); - // The external schema may have external schemas of its own ; recurse - $this->includeExternalSchemas($externalSchemaDom, $srcDir); - foreach ($externalSchemaDom->getElementsByTagName("table") as $tableNode) { // see xsd, datatase may only have table or external-schema, the latter was just deleted so this should cover everything - $databaseNode->appendChild($dom->importNode($tableNode, true)); - } - $nbIncludedSchemas++; - } - return $nbIncludedSchemas; - } - - /** - * Joins the datamodels collected from schema.xml files into one big datamodel. - * We need to join the datamodels in this case to allow for foreign keys - * that point to tables in different packages. - * - * @param array[AppData] $ads The datamodels to join - * @return AppData The single datamodel with all other datamodels joined in - */ - protected function joinDataModels($ads) - { - $mainAppData = null; - foreach ($ads as $appData) { - if (null === $mainAppData) { - $mainAppData = $appData; - $appData->setName('JoinedDataModel'); - continue; - } - // merge subsequent schemas to the first one - foreach ($appData->getDatabases(false) as $addDb) { - $addDbName = $addDb->getName(); - if ($mainAppData->hasDatabase($addDbName)) { - $db = $mainAppData->getDatabase($addDbName, false); - // join tables - foreach ($addDb->getTables() as $addTable) { - if ($db->getTable($addTable->getName())) { - throw new BuildException('Duplicate table found: ' . $addDbName . '.'); - } - $db->addTable($addTable); - } - // join database behaviors - foreach ($addDb->getBehaviors() as $addBehavior) { - if (!$db->hasBehavior($addBehavior->getName())) { - $db->addBehavior($addBehavior); - } - } - } else { - $mainAppData->addDatabase($addDb); - } - } - } - return $mainAppData; - } - - /** - * Gets the GeneratorConfig object for this task or creates it on-demand. - * @return GeneratorConfig - */ - protected function getGeneratorConfig() - { - if ($this->generatorConfig === null) { - $this->generatorConfig = new GeneratorConfig(); - $this->generatorConfig->setBuildProperties($this->getProject()->getProperties()); - } - return $this->generatorConfig; - } - - /** - * Checks this class against Basic requrements of any propel datamodel task. - * - * @throws BuildException - if schema fileset was not defined - * - if no output directory was specified - */ - protected function validate() - { - if (empty($this->schemaFilesets)) { - throw new BuildException("You must specify a fileset of XML schemas.", $this->getLocation()); - } - - // Make sure the output directory is set. - if ($this->outputDirectory === null) { - throw new BuildException("The output directory needs to be defined!", $this->getLocation()); - } - - if ($this->validate) { - if (!$this->xsdFile) { - throw new BuildException("'validate' set to TRUE, but no XSD specified (use 'xsd' attribute).", $this->getLocation()); - } - } - - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/task/PropelConvertConfTask.php b/airtime_mvc/library/propel/generator/lib/task/PropelConvertConfTask.php deleted file mode 100644 index 53865c0d6d..0000000000 --- a/airtime_mvc/library/propel/generator/lib/task/PropelConvertConfTask.php +++ /dev/null @@ -1,344 +0,0 @@ - - * @package propel.generator.task - */ -class PropelConvertConfTask extends AbstractPropelDataModelTask -{ - - /** - * @var PhingFile The XML runtime configuration file to be converted. - */ - private $xmlConfFile; - - /** - * @var string This is the file where the converted conf array dump will be placed. - */ - private $outputFile; - - /** - * @var string This is the file where the classmap manifest converted conf array dump will be placed. - */ - private $outputClassmapFile; - - /** - * [REQUIRED] Set the input XML runtime conf file. - * @param PhingFile $v The XML runtime configuration file to be converted. - */ - public function setXmlConfFile(PhingFile $v) - { - $this->xmlConfFile = $v; - } - - /** - * [REQUIRED] Set the output filename for the converted runtime conf. - * The directory is specified using AbstractPropelDataModelTask#setOutputDirectory(). - * @param string $outputFile - * @see AbstractPropelDataModelTask#setOutputDirectory() - */ - public function setOutputFile($outputFile) - { - // this is a string, not a file - $this->outputFile = $outputFile; - } - - /** - * [REQUIRED] Set the output filename for the autoload classmap. - * The directory is specified using AbstractPropelDataModelTask#setOutputDirectory(). - * @param string $outputFile - * @see AbstractPropelDataModelTask#setOutputDirectory() - */ - public function setOutputClassmapFile($outputFile) - { - // this is a string, not a file - $this->outputClassmapFile = $outputFile; - } - - /** - * The main method does the work of the task. - */ - public function main() - { - // Check to make sure the input and output files were specified and that the input file exists. - - if (!$this->xmlConfFile || !$this->xmlConfFile->exists()) { - throw new BuildException("No valid xmlConfFile specified.", $this->getLocation()); - } - - if (!$this->outputFile) { - throw new BuildException("No outputFile specified.", $this->getLocation()); - } - - // Create a PHP array from the runtime-conf.xml file - - $xmlDom = new DOMDocument(); - $xmlDom->load($this->xmlConfFile->getAbsolutePath()); - $xml = simplexml_load_string($xmlDom->saveXML()); - $phpconf = self::simpleXmlToArray($xml); - - /* For some reason the array generated from runtime-conf.xml has separate - * 'log' section and 'propel' sections. To maintain backward compatibility - * we need to put 'log' back into the 'propel' section. - */ - $log = array(); - if (isset($phpconf['log'])) { - $phpconf['propel']['log'] = $phpconf['log']; - unset($phpconf['log']); - } - - if(isset($phpconf['propel'])) { - $phpconf = $phpconf['propel']; - } - - // add generator version - $phpconf['generator_version'] = $this->getGeneratorConfig()->getBuildProperty('version'); - - if (!$this->outputClassmapFile) { - // We'll create a default one for BC - $this->outputClassmapFile = 'classmap-' . $this->outputFile; - } - - // Write resulting PHP data to output file - $outfile = new PhingFile($this->outputDirectory, $this->outputFile); - $output = "getGeneratorConfig()->getBuildProperty('addTimestamp') ? " on " . strftime("%c") : '') . "\n"; - $output .= "// from XML runtime conf file " . $this->xmlConfFile->getPath() . "\n"; - $output .= "\$conf = "; - $output .= var_export($phpconf, true); - $output .= ";\n"; - $output .= "\$conf['classmap'] = include(dirname(__FILE__) . DIRECTORY_SEPARATOR . '".$this->outputClassmapFile."');\n"; - $output .= "return \$conf;"; - - - $this->log("Creating PHP runtime conf file: " . $outfile->getPath()); - if (!file_put_contents($outfile->getAbsolutePath(), $output)) { - throw new BuildException("Error creating output file: " . $outfile->getAbsolutePath(), $this->getLocation()); - } - - // add classmap - $phpconfClassmap = $this->getClassMap(); - $outfile = new PhingFile($this->outputDirectory, $this->outputClassmapFile); - $output = '<' . '?' . "php\n"; - $output .= "// This file generated by Propel " . $phpconf['generator_version'] . " convert-conf target".($this->getGeneratorConfig()->getBuildProperty('addTimestamp') ? " on " . strftime("%c") : '') . "\n"; - $output .= "return "; - $output .= var_export($phpconfClassmap, true); - $output .= ";"; - $this->log("Creating PHP classmap runtime file: " . $outfile->getPath()); - if (!file_put_contents($outfile->getAbsolutePath(), $output)) { - throw new BuildException("Error creating output file: " . $outfile->getAbsolutePath(), $this->getLocation()); - } - - } // main() - - /** - * Recursive function that converts an SimpleXML object into an array. - * @author Christophe VG (based on code form php.net manual comment) - * @param object SimpleXML object. - * @return array Array representation of SimpleXML object. - */ - private static function simpleXmlToArray($xml) - { - $ar = array(); - - foreach ( $xml->children() as $k => $v ) { - - // recurse the child - $child = self::simpleXmlToArray( $v ); - - //print "Recursed down and found: " . var_export($child, true) . "\n"; - - // if it's not an array, then it was empty, thus a value/string - if ( count($child) == 0 ) { - $child = self::getConvertedXmlValue($v); - - } - - // add the childs attributes as if they where children - foreach ( $v->attributes() as $ak => $av ) { - - // if the child is not an array, transform it into one - if ( !is_array( $child ) ) { - $child = array( "value" => $child ); - } - - if ($ak == 'id') { - // special exception: if there is a key named 'id' - // then we will name the current key after that id - $k = self::getConvertedXmlValue($av); - } else { - // otherwise, just add the attribute like a child element - $child[$ak] = self::getConvertedXmlValue($av); - } - } - - // if the $k is already in our children list, we need to transform - // it into an array, else we add it as a value - if ( !in_array( $k, array_keys($ar) ) ) { - $ar[$k] = $child; - } else { - // (This only applies to nested nodes that do not have an @id attribute) - - // if the $ar[$k] element is not already an array, then we need to make it one. - // this is a bit of a hack, but here we check to also make sure that if it is an - // array, that it has numeric keys. this distinguishes it from simply having other - // nested element data. - - if ( !is_array($ar[$k]) || !isset($ar[$k][0]) ) { $ar[$k] = array($ar[$k]); } - $ar[$k][] = $child; - } - - } - - return $ar; - } - - /** - * Process XML value, handling boolean, if appropriate. - * @param object The simplexml value object. - * @return mixed - */ - private static function getConvertedXmlValue($value) - { - $value = (string) $value; // convert from simplexml to string - // handle booleans specially - $lwr = strtolower($value); - if ($lwr === "false") { - $value = false; - } elseif ($lwr === "true") { - $value = true; - } - return $value; - } - - /** - * Lists data model classes and builds an associative array className => classPath - * To be used for autoloading - * @return array - */ - protected function getClassMap() - { - $phpconfClassmap = array(); - - $generatorConfig = $this->getGeneratorConfig(); - - foreach ($this->getDataModels() as $dataModel) { - - foreach ($dataModel->getDatabases() as $database) { - - $classMap = array(); - - foreach ($database->getTables() as $table) { - - if (!$table->isForReferenceOnly()) { - - // ----------------------------------------------------- - // Add TableMap class, - // Peer, Object & Query stub classes, - // and Peer, Object & Query base classes - // ----------------------------------------------------- - // (this code is based on PropelOMTask) - - foreach (array('tablemap', 'peerstub', 'objectstub', 'querystub', 'peer', 'object', 'query') as $target) { - $builder = $generatorConfig->getConfiguredBuilder($table, $target); - $this->log("Adding class mapping: " . $builder->getClassname() . ' => ' . $builder->getClassFilePath()); - $classMap[$builder->getFullyQualifiedClassname()] = $builder->getClassFilePath(); - } - - // ----------------------------------------------------- - // Add children classes for object and query, - // as well as base child query, - // for single tabel inheritance tables. - // ----------------------------------------------------- - - if ($col = $table->getChildrenColumn()) { - if ($col->isEnumeratedClasses()) { - foreach ($col->getChildren() as $child) { - foreach (array('objectmultiextend', 'queryinheritance', 'queryinheritancestub') as $target) { - $builder = $generatorConfig->getConfiguredBuilder($table, $target); - $builder->setChild($child); - $this->log("Adding class mapping: " . $builder->getClassname() . ' => ' . $builder->getClassFilePath()); - $classMap[$builder->getFullyQualifiedClassname()] = $builder->getClassFilePath(); - } - } - } - } - - // ----------------------------------------------------- - // Add base classes for alias tables (undocumented) - // ----------------------------------------------------- - - $baseClass = $table->getBaseClass(); - if ( $baseClass !== null ) { - $className = ClassTools::classname($baseClass); - if (!isset($classMap[$className])) { - $classPath = ClassTools::getFilePath($baseClass); - $this->log('Adding class mapping: ' . $className . ' => ' . $classPath); - $classMap[$className] = $classPath; - } - } - - $basePeer = $table->getBasePeer(); - if ( $basePeer !== null ) { - $className = ClassTools::classname($basePeer); - if (!isset($classMap[$className])) { - $classPath = ClassTools::getFilePath($basePeer); - $this->log('Adding class mapping: ' . $className . ' => ' . $classPath); - $classMap[$className] = $classPath; - } - } - - // ---------------------------------------------- - // Add classes for interface - // ---------------------------------------------- - - if ($table->getInterface()) { - $builder = $generatorConfig->getConfiguredBuilder($table, 'interface'); - $this->log("Adding class mapping: " . $builder->getClassname() . ' => ' . $builder->getClassFilePath()); - $classMap[$builder->getFullyQualifiedClassname()] = $builder->getClassFilePath(); - } - - // ---------------------------------------------- - // Add classes from old treeMode implementations - // ---------------------------------------------- - - if ($table->treeMode() == 'MaterializedPath') { - foreach (array('nodepeerstub', 'nodestub', 'nodepeer', 'node') as $target) { - $builder = $generatorConfig->getConfiguredBuilder($table, $target); - $this->log("Adding class mapping: " . $builder->getClassname() . ' => ' . $builder->getClassFilePath()); - $classMap[$builder->getFullyQualifiedClassname()] = $builder->getClassFilePath(); - } - } - if ($table->treeMode() == 'NestedSet') { - foreach (array('nestedset', 'nestedsetpeer') as $target) { - $builder = $generatorConfig->getConfiguredBuilder($table, $target); - $this->log("Adding class mapping: " . $builder->getClassname() . ' => ' . $builder->getClassFilePath()); - $classMap[$builder->getFullyQualifiedClassname()] = $builder->getClassFilePath(); - } - } - - } // if (!$table->isReferenceOnly()) - } - - $phpconfClassmap = array_merge($phpconfClassmap, $classMap); - } - } - - return $phpconfClassmap; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/task/PropelDataDTDTask.php b/airtime_mvc/library/propel/generator/lib/task/PropelDataDTDTask.php deleted file mode 100644 index 7252ae6769..0000000000 --- a/airtime_mvc/library/propel/generator/lib/task/PropelDataDTDTask.php +++ /dev/null @@ -1,68 +0,0 @@ - - * @package propel.generator.task - */ -class PropelDataDTDTask extends PropelDataModelTemplateTask -{ - - public function main() - { - // check to make sure task received all correct params - $this->validate(); - - if (!$this->mapperElement) { - throw new BuildException("You must use a element to describe how names should be transformed."); - } - - $basepath = $this->getOutputDirectory(); - - // Get new Capsule context - $generator = $this->createContext(); - $generator->put("basepath", $basepath); // make available to other templates - - // we need some values that were loaded into the template context - $basePrefix = $generator->get('basePrefix'); - $project = $generator->get('project'); - - foreach ($this->getDataModels() as $dataModel) { - - $this->log("Processing Datamodel : " . $dataModel->getName()); - - foreach ($dataModel->getDatabases() as $database) { - - $outFile = $this->getMappedFile($dataModel->getName()); - - $generator->put("tables", $database->getTables()); - $generator->parse("data/dtd/dataset.tpl", $outFile->getAbsolutePath()); - - $this->log("Generating DTD for database: " . $database->getName()); - $this->log("Creating DTD file: " . $outFile->getPath()); - - foreach ($database->getTables() as $tbl) { - $this->log("\t + " . $tbl->getName()); - $generator->put("table", $tbl); - $generator->parse("data/dtd/table.tpl", $outFile->getAbsolutePath(), true); - } - - } // foreach database - - } // foreach dataModel - - - } // main() -} diff --git a/airtime_mvc/library/propel/generator/lib/task/PropelDataDumpTask.php b/airtime_mvc/library/propel/generator/lib/task/PropelDataDumpTask.php deleted file mode 100644 index 17cf860ba2..0000000000 --- a/airtime_mvc/library/propel/generator/lib/task/PropelDataDumpTask.php +++ /dev/null @@ -1,354 +0,0 @@ - (Propel) - * @author Fedor Karpelevitch (Torque) - * @author Jason van Zyl (Torque) - * @author Daniel Rall (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.task - */ -class PropelDataDumpTask extends AbstractPropelDataModelTask -{ - - /** - * Database name. - * The database name may be optionally specified in the XML if you only want - * to dump the contents of one database. - */ - private $databaseName; - - /** - * Database URL used for Propel connection. - * This is a PEAR-compatible (loosely) DSN URL. - */ - private $databaseUrl; - - /** - * Database driver used for Propel connection. - * This should normally be left blank so that default (Propel built-in) driver for database type is used. - */ - private $databaseDriver; - - /** - * Database user used for Propel connection. - * @deprecated Put username in databaseUrl. - */ - private $databaseUser; - - /** - * Database password used for Propel connection. - * @deprecated Put password in databaseUrl. - */ - private $databasePassword; - - /** - * Properties file that maps a data XML file to a particular database. - * @var PhingFile - */ - private $datadbmap; - - /** - * The database connection used to retrieve the data to dump. - * Needs to be public so that the TableInfo class can access it. - */ - public $conn; - - /** - * The statement used to acquire the data to dump. - */ - private $stmt; - - /** - * Set the file that maps between data XML files and databases. - * - * @param PhingFile $sqldbmap the db map - * @return void - */ - public function setDataDbMap(PhingFile $datadbmap) - { - $this->datadbmap = $datadbmap; - } - - /** - * Get the file that maps between data XML files and databases. - * - * @return PhingFile $datadbmap. - */ - public function getDataDbMap() - { - return $this->datadbmap; - } - - /** - * Get the database name to dump - * - * @return The DatabaseName value - */ - public function getDatabaseName() - { - return $this->databaseName; - } - - /** - * Set the database name - * - * @param v The new DatabaseName value - */ - public function setDatabaseName($v) - { - $this->databaseName = $v; - } - - /** - * Get the database url - * - * @return The DatabaseUrl value - */ - public function getDatabaseUrl() - { - return $this->databaseUrl; - } - - /** - * Set the database url - * - * @param string $v The PEAR-compatible database DSN URL. - */ - public function setDatabaseUrl($v) - { - $this->databaseUrl = $v; - } - - /** - * Get the database user - * - * @return string database user - * @deprecated - */ - public function getDatabaseUser() - { - return $this->databaseUser; - } - - /** - * Set the database user - * - * @param string $v The new DatabaseUser value - * @deprecated Specify user in DSN URL. - */ - public function setDatabaseUser($v) - { - $this->databaseUser = $v; - } - - /** - * Get the database password - * - * @return string database password - */ - public function getDatabasePassword() - { - return $this->databasePassword; - } - - /** - * Set the database password - * - * @param string $v The new DatabasePassword value - * @deprecated Specify database password in DSN URL. - */ - public function setDatabasePassword($v) - { - $this->databasePassword = $v; - } - - /** - * Get the database driver name - * - * @return string database driver name - */ - public function getDatabaseDriver() - { - return $this->databaseDriver; - } - - /** - * Set the database driver name - * - * @param string $v The new DatabaseDriver value - */ - public function setDatabaseDriver($v) - { - $this->databaseDriver = $v; - } - - /** - * Create the data XML -> database map. - * - * This is necessary because there is currently no other method of knowing which - * data XML files correspond to which database. This map allows us to convert multiple - * data XML files into SQL. - * - * @throws IOException - if unable to store properties - */ - private function createDataDbMap() - { - if ($this->getDataDbMap() === null) { - return; - } - - // Produce the sql -> database map - $datadbmap = new Properties(); - - // Check to see if the sqldbmap has already been created. - if ($this->getDataDbMap()->exists()) { - $datadbmap->load($this->getDataDbMap()); - } - - foreach ($this->getDataModels() as $dataModel) { // there is really one 1 db per datamodel - foreach ($dataModel->getDatabases() as $database) { - - // if database name is specified, then we only want to dump that one db. - if (empty($this->databaseName) || ($this->databaseName && $database->getName() == $this->databaseName)) { - $outFile = $this->getMappedFile($dataModel->getName()); - $datadbmap->setProperty($outFile->getName(), $database->getName()); - } - } - } - - try { - $datadbmap->store($this->getDataDbMap(), "Data XML file -> Database map"); - } catch (IOException $e) { - throw new IOException("Unable to store properties: ". $e->getMessage()); - } - } - - /** - * Iterates through each datamodel/database, dumps the contents of all tables and creates a DOM XML doc. - * - * @return void - * @throws BuildException - */ - public function main() - { - $this->validate(); - - $buf = "Database settings:\n" - . " driver: " . ($this->databaseDriver ? $this->databaseDriver : "(default)" ). "\n" - . " URL: " . $this->databaseUrl . "\n" - . ($this->databaseUser ? " user: " . $this->databaseUser . "\n" : "") - . ($this->databasePassword ? " password: " . $this->databasePassword . "\n" : ""); - - $this->log($buf, Project::MSG_VERBOSE); - - // 1) First create the Data XML -> database name map. - $this->createDataDbMap(); - - // 2) Now go create the XML files from teh database(s) - foreach ($this->getDataModels() as $dataModel) { // there is really one 1 db per datamodel - foreach ($dataModel->getDatabases() as $database) { - - // if database name is specified, then we only want to dump that one db. - if (empty($this->databaseName) || ($this->databaseName && $database->getName() == $this->databaseName)) { - - $outFile = $this->getMappedFile($dataModel->getName()); - - $this->log("Dumping data to XML for database: " . $database->getName()); - $this->log("Writing to XML file: " . $outFile->getName()); - - try { - - $url = str_replace("@DB@", $database->getName(), $this->databaseUrl); - - if ($url !== $this->databaseUrl) { - $this->log("New (resolved) URL: " . $url, Project::MSG_VERBOSE); - } - - if (empty($url)) { - throw new BuildException("Unable to connect to database; no PDO connection URL specified.", $this->getLocation()); - } - - $this->conn = new PDO($url, $this->databaseUser, $this->databasePassword); - $this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - - $doc = $this->createXMLDoc($database); - $doc->save($outFile->getAbsolutePath()); - - } catch (SQLException $se) { - $this->log("SQLException while connecting to DB: ". $se->getMessage(), Project::MSG_ERR); - throw new BuildException($se); - } - } // if databaseName && database->getName == databaseName - } // foreach database - } // foreach datamodel - } - - /** - * Gets PDOStatement of query to fetch all data from a table. - * @param string $tableName - * @param Platform $platform - * @return PDOStatement - */ - private function getTableDataStmt($tableName, Platform $platform) - { - return $this->conn->query("SELECT * FROM " . $platform->quoteIdentifier( $tableName ) ); - } - - /** - * Creates a DOM document containing data for specified database. - * @param Database $database - * @return DOMDocument - */ - private function createXMLDoc(Database $database) - { - $doc = new DOMDocument('1.0', 'utf-8'); - $doc->formatOutput = true; // pretty printing - $doc->appendChild($doc->createComment("Created by data/dump/Control.tpl template.")); - - $dsNode = $doc->createElement("dataset"); - $dsNode->setAttribute("name", "all"); - $doc->appendChild($dsNode); - - $platform = $this->getGeneratorConfig()->getConfiguredPlatform($this->conn); - - $this->log("Building DOM tree containing data from tables:"); - - foreach ($database->getTables() as $tbl) { - $this->log("\t+ " . $tbl->getName()); - $stmt = $this->getTableDataStmt($tbl->getName(), $platform); - while ($row = $stmt->fetch()) { - $rowNode = $doc->createElement($tbl->getPhpName()); - foreach ($tbl->getColumns() as $col) { - $cval = $row[$col->getName()]; - if ($cval !== null) { - $rowNode->setAttribute($col->getPhpName(), iconv($this->dbEncoding, 'utf-8', $cval)); - } - } - $dsNode->appendChild($rowNode); - unset($rowNode); - } - unset($stmt); - } - - return $doc; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/task/PropelDataModelTemplateTask.php b/airtime_mvc/library/propel/generator/lib/task/PropelDataModelTemplateTask.php deleted file mode 100644 index fd3e7933c4..0000000000 --- a/airtime_mvc/library/propel/generator/lib/task/PropelDataModelTemplateTask.php +++ /dev/null @@ -1,217 +0,0 @@ - - * @package propel.generator.task - * @version $Revision: 1612 $ - */ -class PropelDataModelTemplateTask extends AbstractPropelDataModelTask -{ - - /** - * This is the file where the generated text - * will be placed. - * @var string - */ - protected $outputFile; - - /** - * Path where Capsule looks for templates. - * @var PhingFile - */ - protected $templatePath; - - /** - * This is the control template that governs the output. - * It may or may not invoke the services of worker - * templates. - * @var string - */ - protected $controlTemplate; - - /** - * [REQUIRED] Set the output file for the - * generation process. - * @param string $outputFile (TODO: change this to File) - * @return void - */ - public function setOutputFile($outputFile) { - $this->outputFile = $outputFile; - } - - /** - * Get the output file for the - * generation process. - * @return string - */ - public function getOutputFile() { - return $this->outputFile; - } - - /** - * [REQUIRED] Set the control template for the - * generating process. - * @param string $controlTemplate - * @return void - */ - public function setControlTemplate ($controlTemplate) { - $this->controlTemplate = $controlTemplate; - } - - /** - * Get the control template for the - * generating process. - * @return string - */ - public function getControlTemplate() { - return $this->controlTemplate; - } - - /** - * [REQUIRED] Set the path where Capsule will look - * for templates using the file template - * loader. - * @return void - * @throws Exception - */ - public function setTemplatePath($templatePath) { - $resolvedPath = ""; - $tok = strtok($templatePath, ","); - while ( $tok ) { - // resolve relative path from basedir and leave - // absolute path untouched. - $fullPath = $this->project->resolveFile($tok); - $cpath = $fullPath->getCanonicalPath(); - if ($cpath === false) { - $this->log("Template directory does not exist: " . $fullPath->getAbsolutePath()); - } else { - $resolvedPath .= $cpath; - } - $tok = strtok(","); - if ( $tok ) { - $resolvedPath .= ","; - } - } - $this->templatePath = $resolvedPath; - } - - /** - * Get the path where Velocity will look - * for templates using the file template - * loader. - * @return string - */ - public function getTemplatePath() { - return $this->templatePath; - } - - /** - * Creates a new Capsule context with some basic properties set. - * (Capsule is a simple PHP encapsulation system -- aka a php "template" class.) - * @return Capsule - */ - protected function createContext() { - - $context = new Capsule(); - - // Make sure the output directory exists, if it doesn't - // then create it. - $outputDir = new PhingFile($this->outputDirectory); - if (!$outputDir->exists()) { - $this->log("Output directory does not exist, creating: " . $outputDir->getAbsolutePath()); - $outputDir->mkdirs(); - } - - // Place our set of data models into the context along - // with the names of the databases as a convenience for now. - $context->put("targetDatabase", $this->getTargetDatabase()); - $context->put("targetPackage", $this->getTargetPackage()); - $context->put("now", strftime("%c")); - - $this->log("Target database type: " . $this->getTargetDatabase()); - $this->log("Target package: " . $this->getTargetPackage()); - $this->log("Using template path: " . $this->templatePath); - $this->log("Output directory: " . $this->getOutputDirectory()); - - $context->setTemplatePath($this->templatePath); - $context->setOutputDirectory($this->outputDirectory); - - $this->populateContextProperties($context); - - return $context; - } - - /** - * Adds the propel build properties to the passed Capsule context. - * - * @param Capsule $context - * @see GeneratorConfig::getBuildProperties() - */ - public function populateContextProperties(Capsule $context) - { - foreach ($this->getGeneratorConfig()->getBuildProperties() as $key => $propValue) { - $this->log('Adding property ${' . $key . '} to context', Project::MSG_DEBUG); - $context->put($key, $propValue); - } - } - - /** - * Performs validation for single-file mode. - * @throws BuildException - if there are any validation errors - */ - protected function singleFileValidate() - { - parent::validate(); - - // Make sure the control template is set. - if ($this->controlTemplate === null) { - throw new BuildException("The control template needs to be defined!"); - } - // Make sure there is an output file. - if ($this->outputFile === null) { - throw new BuildException("The output file needs to be defined!"); - } - - } - - /** - * Creates Capsule context and parses control template. - * @return void - */ - public function main() - { - $this->singleFileValidate(); - $context = $this->createContext(); - - $context->put("dataModels", $this->getDataModels()); - - $path = $this->outputDirectory . DIRECTORY_SEPARATOR . $this->outputFile; - $this->log("Generating to file " . $path); - - try { - $this->log("Parsing control template: " . $this->controlTemplate); - $context->parse($this->controlTemplate, $path); - } catch (Exception $ioe) { - throw new BuildException("Cannot write parsed template: ". $ioe->getMessage()); - } - } -} diff --git a/airtime_mvc/library/propel/generator/lib/task/PropelDataSQLTask.php b/airtime_mvc/library/propel/generator/lib/task/PropelDataSQLTask.php deleted file mode 100644 index f651d07e32..0000000000 --- a/airtime_mvc/library/propel/generator/lib/task/PropelDataSQLTask.php +++ /dev/null @@ -1,193 +0,0 @@ - (Propel) - * @author Jason van Zyl (Torque) - * @author John McNally (Torque) - * @author Fedor Karpelevitch (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.task - */ -class PropelDataSQLTask extends AbstractPropelDataModelTask -{ - - /** - * Properties file that maps an SQL file to a particular database. - * @var PhingFile - */ - private $sqldbmap; - - /** - * Properties file that maps a data XML file to a particular database. - * @var PhingFile - */ - private $datadbmap; - - /** - * The base directory in which to find data XML files. - * @var PhingFile - */ - private $srcDir; - - /** - * Set the file that maps between SQL files and databases. - * - * @param PhingFile $sqldbmap the sql -> db map. - * @return void - */ - public function setSqlDbMap(PhingFile $sqldbmap) - { - $this->sqldbmap = $sqldbmap; - } - - /** - * Get the file that maps between SQL files and databases. - * - * @return PhingFile sqldbmap. - */ - public function getSqlDbMap() - { - return $this->sqldbmap; - } - - /** - * Set the file that maps between data XML files and databases. - * - * @param PhingFile $sqldbmap the db map - * @return void - */ - public function setDataDbMap(PhingFile $datadbmap) - { - $this->datadbmap = $datadbmap; - } - - /** - * Get the file that maps between data XML files and databases. - * - * @return PhingFile $datadbmap. - */ - public function getDataDbMap() - { - return $this->datadbmap; - } - - /** - * Set the src directory for the data xml files listed in the datadbmap file. - * @param PhingFile $srcDir data xml source directory - */ - public function setSrcDir(PhingFile $srcDir) - { - $this->srcDir = $srcDir; - } - - /** - * Get the src directory for the data xml files listed in the datadbmap file. - * - * @return PhingFile data xml source directory - */ - public function getSrcDir() - { - return $this->srcDir; - } - - /** - * Search through all data models looking for matching database. - * @return Database or NULL if none found. - */ - private function getDatabase($name) - { - foreach ($this->getDataModels() as $dm) { - foreach ($dm->getDatabases() as $db) { - if ($db->getName() == $name) { - return $db; - } - } - } - } - - /** - * Main method parses the XML files and creates SQL files. - * - * @return void - * @throws Exception If there is an error parsing the data xml. - */ - public function main() - { - $this->validate(); - - $targetDatabase = $this->getTargetDatabase(); - - $platform = $this->getGeneratorConfig()->getConfiguredPlatform(); - - // Load the Data XML -> DB Name properties - $map = new Properties(); - try { - $map->load($this->getDataDbMap()); - } catch (IOException $ioe) { - throw new BuildException("Cannot open and process the datadbmap!", $ioe); - } - - // Parse each file in the data -> db map - foreach ($map->keys() as $dataXMLFilename) { - - $dataXMLFile = new PhingFile($this->srcDir, $dataXMLFilename); - - // if file exists then proceed - if ($dataXMLFile->exists()) { - - $dbname = $map->get($dataXMLFilename); - - $db = $this->getDatabase($dbname); - - if (!$db) { - throw new BuildException("Cannot find instantiated Database for name '$dbname' from datadbmap file."); - } - - $db->setPlatform($platform); - - $outFile = $this->getMappedFile($dataXMLFilename); - $sqlWriter = new FileWriter($outFile); - - $this->log("Creating SQL from XML data dump file: " . $dataXMLFile->getAbsolutePath()); - - try { - $dataXmlParser = new XmlToDataSQL($db, $this->getGeneratorConfig(), $this->dbEncoding); - $dataXmlParser->transform($dataXMLFile, $sqlWriter); - } catch (Exception $e) { - throw new BuildException("Exception parsing data XML: " . $e->getMessage(), $x); - } - - // Place the generated SQL file(s) - $p = new Properties(); - if ($this->getSqlDbMap()->exists()) { - $p->load($this->getSqlDbMap()); - } - - $p->setProperty($outFile->getName(), $db->getName()); - $p->store($this->getSqlDbMap(), "Sqlfile -> Database map"); - - } else { - $this->log("File '" . $dataXMLFile->getAbsolutePath() - . "' in datadbmap does not exist, so skipping it.", Project::MSG_WARN); - } - - } // foreach data xml file - - } // main() - -} diff --git a/airtime_mvc/library/propel/generator/lib/task/PropelGraphvizTask.php b/airtime_mvc/library/propel/generator/lib/task/PropelGraphvizTask.php deleted file mode 100644 index e778d6e8cc..0000000000 --- a/airtime_mvc/library/propel/generator/lib/task/PropelGraphvizTask.php +++ /dev/null @@ -1,170 +0,0 @@ -exists()) { - $out->mkdirs(); - } - $this->outDir = $out; - } - - - /** - * Set the sqldbmap. - * @param PhingFile $sqldbmap The db map. - */ - public function setSqlDbMap(PhingFile $sqldbmap) - { - $this->sqldbmap = $sqldbmap; - } - - /** - * Get the sqldbmap. - * @return PhingFile $sqldbmap. - */ - public function getSqlDbMap() - { - return $this->sqldbmap; - } - - /** - * Set the database name. - * @param string $database - */ - public function setDatabase($database) - { - $this->database = $database; - } - - /** - * Get the database name. - * @return string - */ - public function getDatabase() - { - return $this->database; - } - - - public function main() - { - - $count = 0; - - $dotSyntax = ''; - - // file we are going to create - - $dbMaps = $this->getDataModelDbMap(); - - foreach ($this->getDataModels() as $dataModel) { - - $dotSyntax .= "digraph G {\n"; - foreach ($dataModel->getDatabases() as $database) { - - $this->log("db: " . $database->getName()); - - //print the tables - foreach ($database->getTables() as $tbl) { - - $this->log("\t+ " . $tbl->getName()); - - ++$count; - $dotSyntax .= 'node'.$tbl->getName().' [label="{
'.$tbl->getName().'|'; - - foreach ($tbl->getColumns() as $col) { - $dotSyntax .= $col->getName() . ' (' . $col->getType() . ')'; - if (count($col->getForeignKeys()) > 0) { - $dotSyntax .= ' [FK]'; - } elseif ($col->isPrimaryKey()) { - $dotSyntax .= ' [PK]'; - } - $dotSyntax .= '\l'; - } - $dotSyntax .= '}", shape=record];'; - $dotSyntax .= "\n"; - } - - //print the relations - - $count = 0; - $dotSyntax .= "\n"; - foreach ($database->getTables() as $tbl) { - ++$count; - - foreach ($tbl->getColumns() as $col) { - $fk = $col->getForeignKeys(); - if ( count($fk) == 0 or $fk === null ) continue; - if ( count($fk) > 1 ) throw( new Exception("not sure what to do here...") ); - $fk = $fk[0]; // try first one - $dotSyntax .= 'node'.$tbl->getName() .':cols -> node'.$fk->getForeignTableName() . ':table [label="' . $col->getName() . '=' . implode(',', $fk->getForeignColumns()) . ' "];'; - $dotSyntax .= "\n"; - } - } - - - - } // foreach database - $dotSyntax .= "}\n"; - - $this->writeDot($dotSyntax,$this->outDir,$database->getName()); - - $dotSyntax = ''; - - } //foreach datamodels - - } // main() - - - /** - * probably insecure - */ - function writeDot($dotSyntax, PhingFile $outputDir, $baseFilename) { - $file = new PhingFile($outputDir, $baseFilename . '.schema.dot'); - $this->log("Writing dot file to " . $file->getAbsolutePath()); - file_put_contents($file->getAbsolutePath(), $dotSyntax); - } - -} diff --git a/airtime_mvc/library/propel/generator/lib/task/PropelOMTask.php b/airtime_mvc/library/propel/generator/lib/task/PropelOMTask.php deleted file mode 100644 index 9dc9c78341..0000000000 --- a/airtime_mvc/library/propel/generator/lib/task/PropelOMTask.php +++ /dev/null @@ -1,231 +0,0 @@ - - * @package propel.generator.task - */ -class PropelOMTask extends AbstractPropelDataModelTask -{ - - /** - * The platform (php4, php5, etc.) for which the om is being built. - * @var string - */ - private $targetPlatform; - - /** - * Sets the platform (php4, php5, etc.) for which the om is being built. - * @param string $v - */ - public function setTargetPlatform($v) { - $this->targetPlatform = $v; - } - - /** - * Gets the platform (php4, php5, etc.) for which the om is being built. - * @return string - */ - public function getTargetPlatform() { - return $this->targetPlatform; - } - - /** - * Utility method to create directory for package if it doesn't already exist. - * @param string $path The [relative] package path. - * @throws BuildException - if there is an error creating directories - */ - protected function ensureDirExists($path) - { - $f = new PhingFile($this->getOutputDirectory(), $path); - if (!$f->exists()) { - if (!$f->mkdirs()) { - throw new BuildException("Error creating directories: ". $f->getPath()); - } - } - } - - /** - * Uses a builder class to create the output class. - * This method assumes that the DataModelBuilder class has been initialized with the build properties. - * @param OMBuilder $builder - * @param boolean $overwrite Whether to overwrite existing files with te new ones (default is YES). - * @todo -cPropelOMTask Consider refactoring build() method into AbstractPropelDataModelTask (would need to be more generic). - */ - protected function build(OMBuilder $builder, $overwrite = true) - { - $path = $builder->getClassFilePath(); - $this->ensureDirExists(dirname($path)); - - $_f = new PhingFile($this->getOutputDirectory(), $path); - - // skip files already created once - if ($_f->exists() && !$overwrite) { - $this->log("\t\t-> (exists) " . $builder->getClassname(), Project::MSG_VERBOSE); - return 0; - } - - $script = $builder->build(); - foreach ($builder->getWarnings() as $warning) { - $this->log($warning, Project::MSG_WARN); - } - - // skip unchanged files - if ($_f->exists() && $script == $_f->contents()) { - $this->log("\t\t-> (unchanged) " . $builder->getClassname(), Project::MSG_VERBOSE); - return 0; - } - - // write / overwrite new / changed files - $this->log("\t\t-> " . $builder->getClassname() . " [builder: " . get_class($builder) . "]"); - file_put_contents($_f->getAbsolutePath(), $script); - return 1; - } - - /** - * Main method builds all the targets for a typical propel project. - */ - public function main() - { - // check to make sure task received all correct params - $this->validate(); - - $generatorConfig = $this->getGeneratorConfig(); - $totalNbFiles = 0; - - foreach ($this->getDataModels() as $dataModel) { - $this->log("Processing Datamodel : " . $dataModel->getName()); - - foreach ($dataModel->getDatabases() as $database) { - - $this->log(" - processing database : " . $database->getName()); - - foreach ($database->getTables() as $table) { - - if (!$table->isForReferenceOnly()) { - - $nbWrittenFiles = 0; - - $this->log("\t+ " . $table->getName()); - - // ----------------------------------------------------------------------------------------- - // Create Peer, Object, and TableMap classes - // ----------------------------------------------------------------------------------------- - - // these files are always created / overwrite any existing files - foreach (array('peer', 'object', 'tablemap', 'query') as $target) { - $builder = $generatorConfig->getConfiguredBuilder($table, $target); - $nbWrittenFiles += $this->build($builder); - } - - // ----------------------------------------------------------------------------------------- - // Create [empty] stub Peer and Object classes if they don't exist - // ----------------------------------------------------------------------------------------- - - // these classes are only generated if they don't already exist - foreach (array('peerstub', 'objectstub', 'querystub') as $target) { - $builder = $generatorConfig->getConfiguredBuilder($table, $target); - $nbWrittenFiles += $this->build($builder, $overwrite=false); - } - - // ----------------------------------------------------------------------------------------- - // Create [empty] stub child Object classes if they don't exist - // ----------------------------------------------------------------------------------------- - - // If table has enumerated children (uses inheritance) then create the empty child stub classes if they don't already exist. - if ($table->getChildrenColumn()) { - $col = $table->getChildrenColumn(); - if ($col->isEnumeratedClasses()) { - foreach ($col->getChildren() as $child) { - foreach (array('queryinheritance') as $target) { - if (!$child->getAncestor()) { - continue; - } - $builder = $generatorConfig->getConfiguredBuilder($table, $target); - $builder->setChild($child); - $nbWrittenFiles += $this->build($builder, $overwrite=true); - } - foreach (array('objectmultiextend', 'queryinheritancestub') as $target) { - $builder = $generatorConfig->getConfiguredBuilder($table, $target); - $builder->setChild($child); - $nbWrittenFiles += $this->build($builder, $overwrite=false); - } - } // foreach - } // if col->is enumerated - } // if tbl->getChildrenCol - - - // ----------------------------------------------------------------------------------------- - // Create [empty] Interface if it doesn't exist - // ----------------------------------------------------------------------------------------- - - // Create [empty] interface if it does not already exist - if ($table->getInterface()) { - $builder = $generatorConfig->getConfiguredBuilder($table, 'interface'); - $nbWrittenFiles += $this->build($builder, $overwrite=false); - } - - // ----------------------------------------------------------------------------------------- - // Create tree Node classes - // ----------------------------------------------------------------------------------------- - - if ($table->treeMode()) { - switch($table->treeMode()) { - case 'NestedSet': - foreach (array('nestedsetpeer', 'nestedset') as $target) { - $builder = $generatorConfig->getConfiguredBuilder($table, $target); - $nbWrittenFiles += $this->build($builder); - } - break; - - case 'MaterializedPath': - foreach (array('nodepeer', 'node') as $target) { - $builder = $generatorConfig->getConfiguredBuilder($table, $target); - $nbWrittenFiles += $this->build($builder); - } - - foreach (array('nodepeerstub', 'nodestub') as $target) { - $builder = $generatorConfig->getConfiguredBuilder($table, $target); - $nbWrittenFiles += $this->build($builder, $overwrite=false); - } - break; - - case 'AdjacencyList': - // No implementation for this yet. - default: - break; - } - - } // if Table->treeMode() - - $totalNbFiles += $nbWrittenFiles; - if ($nbWrittenFiles == 0) { - $this->log("\t\t(no change)"); - } - } // if !$table->isForReferenceOnly() - - } // foreach table - - } // foreach database - - } // foreach dataModel - if ($totalNbFiles) { - $this->log(sprintf("Object model generation complete - %d files written", $totalNbFiles)); - } else { - $this->log("Object model generation complete - All files already up to date"); - } - } // main() -} diff --git a/airtime_mvc/library/propel/generator/lib/task/PropelSQLExec.php b/airtime_mvc/library/propel/generator/lib/task/PropelSQLExec.php deleted file mode 100644 index 4b9ff138e1..0000000000 --- a/airtime_mvc/library/propel/generator/lib/task/PropelSQLExec.php +++ /dev/null @@ -1,701 +0,0 @@ - Database map in the form of a properties - * file to insert each SQL file listed into its designated database. - * - * @author Hans Lellelid - * @author Dominik del Bondio - * @author Jeff Martin (Torque) - * @author Michael McCallum (Torque) - * @author Tim Stephenson (Torque) - * @author Jason van Zyl (Torque) - * @author Martin Poeschl (Torque) - * @version $Revision: 1612 $ - * @package propel.generator.task - */ -class PropelSQLExec extends Task -{ - - private $goodSql = 0; - private $totalSql = 0; - - const DELIM_ROW = "row"; - const DELIM_NORMAL = "normal"; - - /** - * The delimiter type indicating whether the delimiter will - * only be recognized on a line by itself - */ - private $delimiterType = "normal"; // can't use constant just defined - - //private static $delimiterTypes = array(DELIM_NORMAL, DELIM_ROW); - //private static $errorActions = array("continue", "stop", "abort"); - - /** PDO Database connection */ - private $conn = null; - - /** Autocommit flag. Default value is false */ - private $autocommit = false; - - /** DB url. */ - private $url = null; - - /** User name. */ - private $userId = null; - - /** Password */ - private $password = null; - - /** SQL input command */ - private $sqlCommand = ""; - - /** SQL transactions to perform */ - private $transactions = array(); - - /** SQL Statement delimiter */ - private $delimiter = ";"; - - /** Print SQL results. */ - private $print = false; - - /** Print header columns. */ - private $showheaders = true; - - /** Results Output file. */ - private $output = null; - - /** RDBMS Product needed for this SQL. */ - private $rdbms = null; - - /** RDBMS Version needed for this SQL. */ - private $version = null; - - /** Action to perform if an error is found */ - private $onError = "abort"; - - /** Encoding to use when reading SQL statements from a file */ - private $encoding = null; - - /** Src directory for the files listed in the sqldbmap. */ - private $srcDir; - - /** Properties file that maps an individual SQL file to a database. */ - private $sqldbmap; - - /** - * Set the sqldbmap properties file. - * - * @param sqldbmap filename for the sqldbmap - */ - public function setSqlDbMap($sqldbmap) - { - $this->sqldbmap = $this->project->resolveFile($sqldbmap); - } - - /** - * Get the sqldbmap properties file. - * - * @return filename for the sqldbmap - */ - public function getSqlDbMap() - { - return $this->sqldbmap; - } - - /** - * Set the src directory for the sql files listed in the sqldbmap file. - * - * @param PhingFile $srcDir sql source directory - */ - public function setSrcDir(PhingFile $srcDir) - { - $this->srcDir = $srcDir; - } - - /** - * Get the src directory for the sql files listed in the sqldbmap file. - * - * @return PhingFile SQL Source directory - */ - public function getSrcDir() - { - return $this->srcDir; - } - - /** - * Set the sql command to execute - * - * @param sql sql command to execute - */ - public function addText($sql) - { - $this->sqlCommand .= $sql; - } - - /** - * Set the DB connection url. - * - * @param string $url connection url - */ - public function setUrl($url) - { - $this->url = $url; - } - - /** - * Set the user name for the DB connection. - * - * @param string $userId database user - * @deprecated Specify userid in the DSN URL. - */ - public function setUserid($userId) - { - $this->userId = $userId; - } - - /** - * Set the password for the DB connection. - * - * @param string $password database password - * @deprecated Specify password in the DSN URL. - */ - public function setPassword($password) - { - $this->password = $password; - } - - /** - * Set the autocommit flag for the DB connection. - * - * @param boolean $autocommit the autocommit flag - */ - public function setAutoCommit($autocommit) - { - $this->autocommit = (boolean) $autocommit; - } - - /** - * Set the statement delimiter. - * - *

For example, set this to "go" and delimitertype to "ROW" for - * Sybase ASE or MS SQL Server.

- * - * @param string $delimiter - */ - public function setDelimiter($delimiter) - { - $this->delimiter = $delimiter; - } - - /** - * Set the Delimiter type for this sql task. The delimiter type takes two - * values - normal and row. Normal means that any occurence of the delimiter - * terminate the SQL command whereas with row, only a line containing just - * the delimiter is recognized as the end of the command. - * - * @param string $delimiterType - */ - public function setDelimiterType($delimiterType) - { - $this->delimiterType = $delimiterType; - } - - /** - * Set the print flag. - * - * @param boolean $print - */ - public function setPrint($print) - { - $this->print = (boolean) $print; - } - - /** - * Set the showheaders flag. - * - * @param boolean $showheaders - */ - public function setShowheaders($showheaders) - { - $this->showheaders = (boolean) $showheaders; - } - - /** - * Set the output file. - * - * @param PhingFile $output - */ - public function setOutput(PhingFile $output) - { - $this->output = $output; - } - - /** - * Set the action to perform onerror - * - * @param string $action - */ - public function setOnerror($action) - { - $this->onError = $action; - } - - /** - * Load the sql file and then execute it - * - * @throws BuildException - */ - public function main() - { - $this->sqlCommand = trim($this->sqlCommand); - - if ($this->sqldbmap === null || $this->getSqlDbMap()->exists() === false) { - throw new BuildException("You haven't provided an sqldbmap, or " - . "the one you specified doesn't exist: " . $this->sqldbmap->getPath()); - } - - if ($this->url === null) { - throw new BuildException("DSN url attribute must be set!"); - } - - $map = new Properties(); - - try { - $map->load($this->getSqlDbMap()); - } catch (IOException $ioe) { - throw new BuildException("Cannot open and process the sqldbmap!"); - } - - $databases = array(); - - foreach ($map->keys() as $sqlfile) { - - $database = $map->getProperty($sqlfile); - - // Q: already there? - if (!isset($databases[$database])) { - // A: No. - $databases[$database] = array(); - } - - // We want to make sure that the base schemas - // are inserted first. - if (strpos($sqlfile, "schema.sql") !== false) { - // add to the beginning of the array - array_unshift($databases[$database], $sqlfile); - } else { - array_push($databases[$database], $sqlfile); - } - } - - foreach ($databases as $db => $files) { - $transactions = array(); - - foreach ($files as $fileName) { - - $file = new PhingFile($this->srcDir, $fileName); - - if ($file->exists()) { - $this->log("Executing statements in file: " . $file->__toString()); - $transaction = new PropelSQLExecTransaction($this); - $transaction->setSrc($file); - $transactions[] = $transaction; - } else { - $this->log("File '" . $file->__toString() - . "' in sqldbmap does not exist, so skipping it."); - } - } - $this->insertDatabaseSqlFiles($this->url, $db, $transactions); - } - } - - /** - * Take the base url, the target database and insert a set of SQL - * files into the target database. - * - * @param string $url - * @param string $database - * @param array $transactions - */ - private function insertDatabaseSqlFiles($url, $database, $transactions) - { - $url = str_replace("@DB@", $database, $url); - $this->log("Our new url -> " . $url); - - try { - - $buf = "Database settings:" . PHP_EOL - . " URL: " . $url . PHP_EOL - . ($this->userId ? " user: " . $this->userId . PHP_EOL : "") - . ($this->password ? " password: " . $this->password . PHP_EOL : ""); - - $this->log($buf, Project::MSG_VERBOSE); - - // Set user + password to null if they are empty strings - if (!$this->userId) { $this->userId = null; } - - if (!$this->password) { $this->password = null; } - - $this->conn = new PDO($url, $this->userId, $this->password); - $this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - - // $this->conn->setAutoCommit($this->autocommit); - // $this->statement = $this->conn->createStatement(); - - $out = null; - - try { - if ($this->output !== null) { - $this->log("Opening PrintStream to output file " . $this->output->__toString(), Project::MSG_VERBOSE); - $out = new FileWriter($this->output); - } - - // Process all transactions - for ($i=0,$size=count($transactions); $i < $size; $i++) { - $transactions[$i]->runTransaction($out); - if (!$this->autocommit) { - $this->log("Commiting transaction", Project::MSG_VERBOSE); - $this->conn->commit(); - } - } - } catch (Exception $e) { - if ($out) $out->close(); - } - - } catch (IOException $e) { - - if (!$this->autocommit && $this->conn !== null && $this->onError == "abort") { - try { - $this->conn->rollBack(); - } catch (PDOException $ex) { - // do nothing. - System::println("Rollback failed."); - } - } - if ($this->statement) $this->statement = null; // close - throw new BuildException($e); - } catch (PDOException $e) { - if (!$this->autocommit && $this->conn !== null && $this->onError == "abort") { - try { - $this->conn->rollBack(); - } catch (PDOException $ex) { - // do nothing. - System::println("Rollback failed"); - } - } - if ($this->statement) $this->statement = null; // close - throw new BuildException($e); - } - - $this->statement = null; // close - - $this->log($this->goodSql . " of " . $this->totalSql - . " SQL statements executed successfully"); - } - - /** - * Read the statements from the .sql file and execute them. - * Lines starting with '//', '--' or 'REM ' are ignored. - * - * Developer note: must be public in order to be called from - * sudo-"inner" class PropelSQLExecTransaction. - * - * @param Reader $reader - * @param $out Optional output stream. - * @throws PDOException - * @throws IOException - */ - public function runStatements(Reader $reader, $out = null) - { - $sql = ""; - $line = ""; - $sqlBacklog = ""; - $hasQuery = false; - - $in = new BufferedReader($reader); - - $parser['pointer'] = 0; - $parser['isInString'] = false; - $parser['stringQuotes'] = ""; - $parser['backslashCount'] = 0; - $parser['parsedString'] = ""; - - $sqlParts = array(); - - while (($line = $in->readLine()) !== null) { - - $line = trim($line); - $line = ProjectConfigurator::replaceProperties($this->project, $line, - $this->project->getProperties()); - - if (StringHelper::startsWith("//", $line) - || StringHelper::startsWith("--", $line) - || StringHelper::startsWith("#", $line)) { - continue; - } - - if (strlen($line) > 4 && strtoupper(substr($line,0, 4)) == "REM ") { - continue; - } - - if ($sqlBacklog !== "") { - $sql = $sqlBacklog; - $sqlBacklog = ""; - } - - $sql .= " " . $line . PHP_EOL; - - // SQL defines "--" as a comment to EOL - // and in Oracle it may contain a hint - // so we cannot just remove it, instead we must end it - if (strpos($line, "--") !== false) { - $sql .= PHP_EOL; - } - - // DELIM_ROW doesn't need this (as far as i can tell) - if ($this->delimiterType == self::DELIM_NORMAL) { - - // old regex, being replaced due to segfaults: - // See: http://propel.phpdb.org/trac/ticket/294 - //$reg = "#((?:\"(?:\\\\.|[^\"])*\"?)+|'(?:\\\\.|[^'])*'?|" . preg_quote($this->delimiter) . ")#"; - //$sqlParts = preg_split($reg, $sql, 0, PREG_SPLIT_DELIM_CAPTURE); - - $i = $parser['pointer']; - $c = strlen($sql); - while ($i < $c) { - - $char = $sql[$i]; - - switch($char) { - case "\\": - $parser['backslashCount']++; - $this->log("c$i: found ".$parser['backslashCount']." backslash(es)", Project::MSG_VERBOSE); - break; - case "'": - case "\"": - if ($parser['isInString'] && $parser['stringQuotes'] == $char) { - if (($parser['backslashCount'] & 1) == 0) { - #$this->log("$i: out of string", Project::MSG_VERBOSE); - $parser['isInString'] = false; - } else { - $this->log("c$i: rejected quoted delimiter", Project::MSG_VERBOSE); - } - - } elseif (!$parser['isInString']) { - $parser['stringQuotes'] = $char; - $parser['isInString'] = true; - #$this->log("$i: into string with $parser['stringQuotes']", Project::MSG_VERBOSE); - } - break; - } - - if ($char == $this->delimiter && !$parser['isInString']) { - $this->log("c$i: valid end of command found!", Project::MSG_VERBOSE); - $sqlParts[] = $parser['parsedString']; - $sqlParts[] = $this->delimiter; - break; - } - $parser['parsedString'] .= $char; - if ($char !== "\\") { - if ($parser['backslashCount']) $this->log("$i: backslash reset", Project::MSG_VERBOSE); - $parser['backslashCount'] = 0; - } - $i++; - $parser['pointer']++; - } - - $sqlBacklog = ""; - foreach ($sqlParts as $sqlPart) { - // we always want to append, even if it's a delim (which will be stripped off later) - $sqlBacklog .= $sqlPart; - - // we found a single (not enclosed by ' or ") delimiter, so we can use all stuff before the delim as the actual query - if ($sqlPart === $this->delimiter) { - $sql = $sqlBacklog; - $sqlBacklog = ""; - $hasQuery = true; - } - } - } - - if ($hasQuery || ($this->delimiterType == self::DELIM_ROW && $line == $this->delimiter)) { - // this assumes there is always a delimter on the end of the SQL statement. - $sql = StringHelper::substring($sql, 0, strlen($sql) - 1 - strlen($this->delimiter)); - $this->log("SQL: " . $sql, Project::MSG_VERBOSE); - $this->execSQL($sql, $out); - $sql = ""; - $hasQuery = false; - - $parser['pointer'] = 0; - $parser['isInString'] = false; - $parser['stringQuotes'] = ""; - $parser['backslashCount'] = 0; - $parser['parsedString'] = ""; - $sqlParts = array(); - } - } - - // Catch any statements not followed by ; - if ($sql !== "") { - $this->execSQL($sql, $out); - } - } - - /** - * Exec the sql statement. - * - * @param sql - * @param out - * @throws PDOException - */ - protected function execSQL($sql, $out = null) - { - // Check and ignore empty statements - if (trim($sql) == "") { - return; - } - - try { - $this->totalSql++; - - if (!$this->autocommit) $this->conn->beginTransaction(); - - $stmt = $this->conn->prepare($sql); - $stmt->execute(); - $this->log($stmt->rowCount() . " rows affected", Project::MSG_VERBOSE); - - if (!$this->autocommit) $this->conn->commit(); - - $this->goodSql++; - } catch (PDOException $e) { - $this->log("Failed to execute: " . $sql, Project::MSG_ERR); - if ($this->onError != "continue") { - throw $e; - } - $this->log($e->getMessage(), Project::MSG_ERR); - } - } - - /** - * print any results in the statement. - * - * @param out - * @throws PDOException - */ - protected function printResults($out = null) - { - $rs = null; - - do { - $rs = $this->statement->getResultSet(); - - if ($rs !== null) { - - $this->log("Processing new result set.", Project::MSG_VERBOSE); - - $line = ""; - - $colsprinted = false; - - while ($rs->next()) { - - if (!$colsprinted && $this->showheaders) { - $first = true; - foreach ($this->fields as $fieldName => $ignore) { - if ($first) $first = false; else $line .= ","; - $line .= $fieldName; - } - } // if show headers - - $first = true; - foreach ($rs->fields as $columnValue) { - - if ($columnValue != null) { - $columnValue = trim($columnValue); - } - - if ($first) { - $first = false; - } else { - $line .= ","; - } - $line .= $columnValue; - } - - if ($out !== null) { - $out->write($line); - $out->newLine(); - } - - System::println($line); - $line = ""; - } // while rs->next() - } - } while ($this->statement->getMoreResults()); - System::println(); - if ($out !== null) $out->newLine(); - } - -} - -/** - * "Inner" class that contains the definition of a new transaction element. - * Transactions allow several files or blocks of statements - * to be executed using the same Propel connection and commit - * operation in between. - * @package propel.generator.task - */ -class PropelSQLExecTransaction -{ - - private $tSrcFile = null; - private $tSqlCommand = ""; - private $parent; - - function __construct($parent) - { - // Parent is required so that we can log things ... - $this->parent = $parent; - } - - public function setSrc(PhingFile $src) - { - $this->tSrcFile = $src; - } - - public function addText($sql) - { - $this->tSqlCommand .= $sql; - } - - /** - * @throws IOException, PDOException - */ - public function runTransaction($out = null) - { - if (!empty($this->tSqlCommand)) { - $this->parent->log("Executing commands", Project::MSG_INFO); - $this->parent->runStatements($this->tSqlCommand, $out); - } - - if ($this->tSrcFile !== null) { - $this->parent->log("Executing file: " . $this->tSrcFile->getAbsolutePath(), Project::MSG_INFO); - $reader = new FileReader($this->tSrcFile); - $this->parent->runStatements($reader, $out); - $reader->close(); - } - } -} diff --git a/airtime_mvc/library/propel/generator/lib/task/PropelSQLTask.php b/airtime_mvc/library/propel/generator/lib/task/PropelSQLTask.php deleted file mode 100644 index 5c7304d2dc..0000000000 --- a/airtime_mvc/library/propel/generator/lib/task/PropelSQLTask.php +++ /dev/null @@ -1,250 +0,0 @@ - - * @package propel.generator.task - */ -class PropelSQLTask extends AbstractPropelDataModelTask -{ - - /** - * The properties file that maps an SQL file to a particular database. - * @var PhingFile - */ - private $sqldbmap; - - /** - * Name of the database. - */ - private $database; - - /** - * Set the sqldbmap. - * @param PhingFile $sqldbmap The db map. - */ - public function setSqlDbMap(PhingFile $sqldbmap) - { - $this->sqldbmap = $sqldbmap; - } - - /** - * Get the sqldbmap. - * @return PhingFile $sqldbmap. - */ - public function getSqlDbMap() - { - return $this->sqldbmap; - } - - /** - * Set the database name. - * @param string $database - */ - public function setDatabase($database) - { - $this->database = $database; - } - - /** - * Get the database name. - * @return string - */ - public function getDatabase() - { - return $this->database; - } - - /** - * Create the sql -> database map. - * - * @throws IOException - if unable to store properties - */ - protected function createSqlDbMap() - { - if ($this->getSqlDbMap() === null) { - return; - } - - // Produce the sql -> database map - $sqldbmap = new Properties(); - - // Check to see if the sqldbmap has already been created. - if ($this->getSqlDbMap()->exists()) { - $sqldbmap->load($this->getSqlDbMap()); - } - - if ($this->packageObjectModel) { - // in this case we'll get the sql file name from the package attribute - $dataModels = $this->packageDataModels(); - foreach ($dataModels as $package => $dataModel) { - foreach ($dataModel->getDatabases() as $database) { - $name = ($package ? $package . '.' : '') . 'schema.xml'; - $sqlFile = $this->getMappedFile($name); - $sqldbmap->setProperty($sqlFile->getName(), $database->getName()); - } - } - } else { - // the traditional way is to map the schema.xml filenames - $dmMap = $this->getDataModelDbMap(); - foreach (array_keys($dmMap) as $dataModelName) { - $sqlFile = $this->getMappedFile($dataModelName); - if ($this->getDatabase() === null) { - $databaseName = $dmMap[$dataModelName]; - } else { - $databaseName = $this->getDatabase(); - } - $sqldbmap->setProperty($sqlFile->getName(), $databaseName); - } - } - - try { - $sqldbmap->store($this->getSqlDbMap(), "Sqlfile -> Database map"); - } catch (IOException $e) { - throw new IOException("Unable to store properties: ". $e->getMessage()); - } - } - - public function main() { - - $this->validate(); - - if (!$this->mapperElement) { - throw new BuildException("You must use a element to describe how names should be transformed."); - } - - if ($this->packageObjectModel) { - $dataModels = $this->packageDataModels(); - } else { - $dataModels = $this->getDataModels(); - } - - // 1) first create a map of filenames to databases; this is used by other tasks like - // the SQLExec task. - $this->createSqlDbMap(); - - // 2) Now actually create the DDL based on the datamodel(s) from XML schema file. - $targetDatabase = $this->getTargetDatabase(); - - $generatorConfig = $this->getGeneratorConfig(); - - $builderClazz = $generatorConfig->getBuilderClassname('ddl'); - - foreach ($dataModels as $package => $dataModel) { - - foreach ($dataModel->getDatabases() as $database) { - - // Clear any start/end DLL - call_user_func(array($builderClazz, 'reset')); - - // file we are going to create - if (!$this->packageObjectModel) { - $name = $dataModel->getName(); - } else { - $name = ($package ? $package . '.' : '') . 'schema.xml'; - } - - $outFile = $this->getMappedFile($name); - - $this->log("Writing to SQL file: " . $outFile->getPath()); - - // First add any "header" SQL - $ddl = call_user_func(array($builderClazz, 'getDatabaseStartDDL')); - - foreach ($database->getTables() as $table) { - - if (!$table->isSkipSql()) { - $builder = $generatorConfig->getConfiguredBuilder($table, 'ddl'); - $this->log("\t+ " . $table->getName() . " [builder: " . get_class($builder) . "]"); - $ddl .= $builder->build(); - foreach ($builder->getWarnings() as $warning) { - $this->log($warning, Project::MSG_WARN); - } - } else { - $this->log("\t + (skipping) " . $table->getName()); - } - - } // foreach database->getTables() - - // Finally check to see if there is any "footer" SQL - $ddl .= call_user_func(array($builderClazz, 'getDatabaseEndDDL')); - - #var_dump($outFile->getAbsolutePath()); - // Now we're done. Write the file! - file_put_contents($outFile->getAbsolutePath(), $ddl); - - } // foreach database - } //foreach datamodels - - } // main() - - /** - * Packages the datamodels to one datamodel per package - * - * This applies only when the the packageObjectModel option is set. We need to - * re-package the datamodels to allow the database package attribute to control - * which tables go into which SQL file. - * - * @return array The packaged datamodels - */ - protected function packageDataModels() { - - static $packagedDataModels; - - if (is_null($packagedDataModels)) { - - $dataModels = $this->getDataModels(); - $dataModel = array_shift($dataModels); - $packagedDataModels = array(); - - $platform = $this->getGeneratorConfig()->getConfiguredPlatform(); - - foreach ($dataModel->getDatabases() as $db) { - foreach ($db->getTables() as $table) { - $package = $table->getPackage(); - if (!isset($packagedDataModels[$package])) { - $dbClone = $this->cloneDatabase($db); - $dbClone->setPackage($package); - $ad = new AppData($platform); - $ad->setName($dataModel->getName()); - $ad->addDatabase($dbClone); - $packagedDataModels[$package] = $ad; - } - $packagedDataModels[$package]->getDatabase($db->getName())->addTable($table); - } - } - } - - return $packagedDataModels; - } - - protected function cloneDatabase($db) { - - $attributes = array ( - 'name' => $db->getName(), - 'baseClass' => $db->getBaseClass(), - 'basePeer' => $db->getBasePeer(), - 'defaultIdMethod' => $db->getDefaultIdMethod(), - 'defaultPhpNamingMethod' => $db->getDefaultPhpNamingMethod(), - 'defaultTranslateMethod' => $db->getDefaultTranslateMethod(), - 'heavyIndexing' => $db->getHeavyIndexing(), - ); - - $clone = new Database(); - $clone->loadFromXML($attributes); - return $clone; - } -} diff --git a/airtime_mvc/library/propel/generator/lib/task/PropelSchemaReverseTask.php b/airtime_mvc/library/propel/generator/lib/task/PropelSchemaReverseTask.php deleted file mode 100644 index e3bc270bfc..0000000000 --- a/airtime_mvc/library/propel/generator/lib/task/PropelSchemaReverseTask.php +++ /dev/null @@ -1,548 +0,0 @@ - - * @version $Revision: 1716 $ - * @package propel.generator.task - */ -class PropelSchemaReverseTask extends PDOTask -{ - - /** - * Zero bit for no validators - */ - const VALIDATORS_NONE = 0; - - /** - * Bit for maxLength validator - */ - const VALIDATORS_MAXLENGTH = 1; - - /** - * Bit for maxValue validator - */ - const VALIDATORS_MAXVALUE = 2; - - /** - * Bit for type validator - */ - const VALIDATORS_TYPE = 4; - - /** - * Bit for required validator - */ - const VALIDATORS_REQUIRED = 8; - - /** - * Bit for unique validator - */ - const VALIDATORS_UNIQUE = 16; - - /** - * Bit for all validators - */ - const VALIDATORS_ALL = 255; - - /** - * File to contain XML database schema. - * @var PhingFIle - */ - protected $xmlSchema; - - /** - * DB encoding to use - * @var string - */ - protected $dbEncoding = 'iso-8859-1'; - - /** - * DB schema to use. - * @var string - */ - protected $dbSchema; - - /** - * The datasource name (used for in schema.xml) - * - * @var string - */ - protected $databaseName; - - /** - * DOM document produced. - * @var DOMDocument - */ - protected $doc; - - /** - * The document root element. - * @var DOMElement - */ - protected $databaseNode; - - /** - * Hashtable of columns that have primary keys. - * @var array - */ - protected $primaryKeys; - - /** - * Whether to use same name for phpName or not. - * @var boolean - */ - protected $samePhpName; - - /** - * whether to add vendor info or not - * @var boolean - */ - protected $addVendorInfo; - - /** - * Bitfield to switch on/off which validators will be created. - * - * @var int - */ - protected $validatorBits = PropelSchemaReverseTask::VALIDATORS_NONE; - - /** - * Collect validatorInfos to create validators. - * - * @var int - */ - protected $validatorInfos; - - /** - * An initialized GeneratorConfig object containing the converted Phing props. - * - * @var GeneratorConfig - */ - private $generatorConfig; - - /** - * Maps validator type tokens to bits - * - * The tokens are used in the propel.addValidators property to define - * which validators are to be added - * - * @var array - */ - static protected $validatorBitMap = array ( - 'none' => PropelSchemaReverseTask::VALIDATORS_NONE, - 'maxlength' => PropelSchemaReverseTask::VALIDATORS_MAXLENGTH, - 'maxvalue' => PropelSchemaReverseTask::VALIDATORS_MAXVALUE, - 'type' => PropelSchemaReverseTask::VALIDATORS_TYPE, - 'required' => PropelSchemaReverseTask::VALIDATORS_REQUIRED, - 'unique' => PropelSchemaReverseTask::VALIDATORS_UNIQUE, - 'all' => PropelSchemaReverseTask::VALIDATORS_ALL, - ); - - /** - * Defines messages that are added to validators - * - * @var array - */ - static protected $validatorMessages = array ( - 'maxlength' => array ( - 'msg' => 'The field %s must be not longer than %s characters.', - 'var' => array('colName', 'value') - ), - 'maxvalue' => array ( - 'msg' => 'The field %s must be not greater than %s.', - 'var' => array('colName', 'value') - ), - 'type' => array ( - 'msg' => 'The column %s must be an %s value.', - 'var' => array('colName', 'value') - ), - 'required' => array ( - 'msg' => 'The field %s is required.', - 'var' => array('colName') - ), - 'unique' => array ( - 'msg' => 'This %s already exists in table %s.', - 'var' => array('colName', 'tableName') - ), - ); - - /** - * Gets the (optional) schema name to use. - * - * @return string - */ - public function getDbSchema() - { - return $this->dbSchema; - } - - /** - * Sets the name of a database schema to use (optional). - * - * @param string $dbSchema - */ - public function setDbSchema($dbSchema) - { - $this->dbSchema = $dbSchema; - } - - /** - * Gets the database encoding. - * - * @return string - */ - public function getDbEncoding($v) - { - return $this->dbEncoding; - } - - /** - * Sets the database encoding. - * - * @param string $v - */ - public function setDbEncoding($v) - { - $this->dbEncoding = $v; - } - - /** - * Gets the datasource name. - * - * @return string - */ - public function getDatabaseName() - { - return $this->databaseName; - } - - /** - * Sets the datasource name. - * - * This will be used as the value in the generated schema.xml - * - * @param string $v - */ - public function setDatabaseName($v) - { - $this->databaseName = $v; - } - - /** - * Sets the output name for the XML file. - * - * @param PhingFile $v - */ - public function setOutputFile(PhingFile $v) - { - $this->xmlSchema = $v; - } - - /** - * Set whether to use the column name as phpName without any translation. - * - * @param boolean $v - */ - public function setSamePhpName($v) - { - $this->samePhpName = $v; - } - - /** - * Set whether to add vendor info to the schema. - * - * @param boolean $v - */ - public function setAddVendorInfo($v) - { - $this->addVendorInfo = (boolean) $v; - } - - /** - * Sets set validator bitfield from a comma-separated list of "validator bit" names. - * - * @param string $v The comma-separated list of which validators to add. - * @return void - */ - public function setAddValidators($v) - { - $validKeys = array_keys(self::$validatorBitMap); - - // lowercase input - $v = strtolower($v); - - $bits = self::VALIDATORS_NONE; - - $exprs = explode(',', $v); - foreach ($exprs as $expr) { - $expr = trim($expr); - if(!empty($expr)) { - if (!isset(self::$validatorBitMap[$expr])) { - throw new BuildException("Unable to interpret validator in expression ('$v'): " . $expr); - } - $bits |= self::$validatorBitMap[$expr]; - } - } - - $this->validatorBits = $bits; - } - - /** - * Checks whether to add validators of specified type or not - * - * @param int $type The validator type constant. - * @return boolean - */ - protected function isValidatorRequired($type) - { - return (($this->validatorBits & $type) === $type); - } - - /** - * Whether to use the column name as phpName without any translation. - * - * @return boolean - */ - public function isSamePhpName() - { - return $this->samePhpName; - } - - /** - * @throws BuildException - */ - public function main() - { - if (!$this->getDatabaseName()) { - throw new BuildException("databaseName attribute is required for schema reverse engineering", $this->getLocation()); - } - - //(not yet supported) $this->log("schema : " . $this->dbSchema); - //DocumentTypeImpl docType = new DocumentTypeImpl(null, "database", null, - // "http://jakarta.apache.org/turbine/dtd/database.dtd"); - - $this->doc = new DOMDocument('1.0', 'utf-8'); - $this->doc->formatOutput = true; // pretty printing - - $this->doc->appendChild($this->doc->createComment("Autogenerated by ".get_class($this)." class.")); - - try { - - $database = $this->buildModel(); - - if ($this->validatorBits !== self::VALIDATORS_NONE) { - $this->addValidators($database); - } - - $database->appendXml($this->doc); - - $this->log("Writing XML to file: " . $this->xmlSchema->getPath()); - $out = new FileWriter($this->xmlSchema); - $xmlstr = $this->doc->saveXML(); - $out->write($xmlstr); - $out->close(); - - } catch (Exception $e) { - $this->log("There was an error building XML from metadata: " . $e->getMessage(), Project::MSG_ERR); - } - - $this->log("Schema reverse engineering finished"); - } - - /** - * Gets the GeneratorConfig object for this task or creates it on-demand. - * @return GeneratorConfig - */ - protected function getGeneratorConfig() - { - if ($this->generatorConfig === null) { - $this->generatorConfig = new GeneratorConfig(); - $this->generatorConfig->setBuildProperties($this->getProject()->getProperties()); - } - return $this->generatorConfig; - } - - /** - * Builds the model classes from the database schema. - * @return Database The built-out Database (with all tables, etc.) - */ - protected function buildModel() - { - $config = $this->getGeneratorConfig(); - $con = $this->getConnection(); - - $database = new Database($this->getDatabaseName()); - $database->setPlatform($config->getConfiguredPlatform($con)); - - // Some defaults ... - $database->setDefaultIdMethod(IDMethod::NATIVE); - - $parser = $config->getConfiguredSchemaParser($con); - - $nbTables = $parser->parse($database, $this); - - $this->log("Successfully Reverse Engineered " . $nbTables . " tables"); - - return $database; - } - - /** - * Adds any requested validators to the data model. - * - * We will add the following type specific validators: - * - * for notNull columns: required validator - * for unique indexes: unique validator - * for varchar types: maxLength validators (CHAR, VARCHAR, LONGVARCHAR) - * for numeric types: maxValue validators (BIGINT, SMALLINT, TINYINT, INTEGER, FLOAT, DOUBLE, NUMERIC, DECIMAL, REAL) - * for integer and timestamp types: notMatch validator with [^\d]+ (BIGINT, SMALLINT, TINYINT, INTEGER, TIMESTAMP) - * for float types: notMatch validator with [^\d\.]+ (FLOAT, DOUBLE, NUMERIC, DECIMAL, REAL) - * - * @param Database $database The Database model. - * @return void - * @todo find out how to evaluate the appropriate size and adjust maxValue rule values appropriate - * @todo find out if float type column values must always notMatch('[^\d\.]+'), i.e. digits and point for any db vendor, language etc. - */ - protected function addValidators(Database $database) - { - - $platform = $this->getGeneratorConfig()->getConfiguredPlatform(); - - foreach ($database->getTables() as $table) { - - $set = new PropelSchemaReverse_ValidatorSet(); - - foreach ($table->getColumns() as $col) { - - if ($col->isNotNull() && $this->isValidatorRequired(self::VALIDATORS_REQUIRED)) { - $validator = $set->getValidator($col); - $validator->addRule($this->getValidatorRule($col, 'required')); - } - - if (in_array($col->getType(), array(PropelTypes::CHAR, PropelTypes::VARCHAR, PropelTypes::LONGVARCHAR)) - && $col->getSize() && $this->isValidatorRequired(self::VALIDATORS_MAXLENGTH)) { - $validator = $set->getValidator($col); - $validator->addRule($this->getValidatorRule($col, 'maxLength', $col->getSize())); - } - - if ($col->isNumericType() && $this->isValidatorRequired(self::VALIDATORS_MAXVALUE)) { - $this->log("WARNING: maxValue validator added for column ".$col->getName().". You will have to adjust the size value manually.", Project::MSG_WARN); - $validator = $set->getValidator($col); - $validator->addRule($this->getValidatorRule($col, 'maxValue', 'REPLACEME')); - } - - if ($col->isPhpPrimitiveType() && $this->isValidatorRequired(self::VALIDATORS_TYPE)) { - $validator = $set->getValidator($col); - $validator->addRule($this->getValidatorRule($col, 'type', $col->getPhpType())); - } - - } - - foreach ($table->getUnices() as $unique) { - $colnames = $unique->getColumns(); - if (count($colnames) == 1) { // currently 'unique' validator only works w/ single columns. - $col = $table->getColumn($colnames[0]); - $validator = $set->getValidator($col); - $validator->addRule($this->getValidatorRule($col, 'unique')); - } - } - - foreach ($set->getValidators() as $validator) { - $table->addValidator($validator); - } - - } // foreach table - - } - - /** - * Gets validator rule for specified type (string). - * - * @param Column $column The column that is being validated. - * @param string $type The type (string) for validator (e.g. 'required'). - * @param mixed $value The value for the validator (if applicable) - */ - protected function getValidatorRule(Column $column, $type, $value = null) - { - $rule = new Rule(); - $rule->setName($type); - if ($value !== null) { - $rule->setValue($value); - } - $rule->setMessage($this->getRuleMessage($column, $type, $value)); - return $rule; - } - - /** - * Gets the message for a specified rule. - * - * @param Column $column - * @param string $type - * @param mixed $value - */ - protected function getRuleMessage(Column $column, $type, $value) - { - // create message - $colName = $column->getName(); - $tableName = $column->getTable()->getName(); - $msg = self::$validatorMessages[strtolower($type)]; - $tmp = compact($msg['var']); - array_unshift($tmp, $msg['msg']); - $msg = call_user_func_array('sprintf', $tmp); - return $msg; - } - -} - -/** - * A helper class to store validator sets indexed by column. - * @package propel.generator.task - */ -class PropelSchemaReverse_ValidatorSet -{ - - /** - * Map of column names to validators. - * - * @var array Validator[] - */ - private $validators = array(); - - /** - * Gets a single validator for specified column name. - * @param Column $column - * @return Validator - */ - public function getValidator(Column $column) - { - $key = $column->getName(); - if (!isset($this->validators[$key])) { - $this->validators[$key] = new Validator(); - $this->validators[$key]->setColumn($column); - } - return $this->validators[$key]; - } - - /** - * Gets all validators. - * @return array Validator[] - */ - public function getValidators() - { - return $this->validators; - } -} diff --git a/airtime_mvc/library/propel/generator/pear/BuildPropelGenPEARPackageTask.php b/airtime_mvc/library/propel/generator/pear/BuildPropelGenPEARPackageTask.php deleted file mode 100644 index 87d21602c2..0000000000 --- a/airtime_mvc/library/propel/generator/pear/BuildPropelGenPEARPackageTask.php +++ /dev/null @@ -1,258 +0,0 @@ -. - */ - -require_once 'phing/tasks/system/MatchingTask.php'; -include_once 'phing/types/FileSet.php'; -include_once 'phing/tasks/ext/pearpackage/Fileset.php'; - -/** - * - * @author Hans Lellelid - * @package phing.tasks.ext - * @version $Revision: 1681 $ - */ -class BuildPropelGenPEARPackageTask extends MatchingTask -{ - - /** Base directory for reading files. */ - private $dir; - - private $version; - private $state = 'stable'; - private $notes; - - private $filesets = array(); - - /** Package file */ - private $packageFile; - - public function init() - { - include_once 'PEAR/PackageFileManager2.php'; - if (!class_exists('PEAR_PackageFileManager2')) { - throw new BuildException("You must have installed PEAR_PackageFileManager2 (PEAR_PackageFileManager >= 1.6.0) in order to create a PEAR package.xml file."); - } - } - - private function setOptions($pkg) - { - $options['baseinstalldir'] = 'propel'; - $options['packagedirectory'] = $this->dir->getAbsolutePath(); - - if (empty($this->filesets)) { - throw new BuildException("You must use a tag to specify the files to include in the package.xml"); - } - - $options['filelistgenerator'] = 'Fileset'; - - // Some PHING-specific options needed by our Fileset reader - $options['phing_project'] = $this->getProject(); - $options['phing_filesets'] = $this->filesets; - - if ($this->packageFile !== null) { - // create one w/ full path - $f = new PhingFile($this->packageFile->getAbsolutePath()); - $options['packagefile'] = $f->getName(); - // must end in trailing slash - $options['outputdirectory'] = $f->getParent() . DIRECTORY_SEPARATOR; - $this->log("Creating package file: " . $f->getPath(), Project::MSG_INFO); - } else { - $this->log("Creating [default] package.xml file in base directory.", Project::MSG_INFO); - } - - // add baseinstalldir exceptions - $options['installexceptions'] = array( - 'pear-propel-gen' => '/', - 'pear-propel-gen.bat' => '/', - ); - - $options['dir_roles'] = array( - 'lib' => 'data', - 'resources' => 'data' - ); - - $options['exceptions'] = array( - 'pear-propel-gen.bat' => 'script', - 'pear-propel-gen' => 'script', - ); - - $pkg->setOptions($options); - - } - - /** - * Main entry point. - * @return void - */ - public function main() - { - if ($this->dir === null) { - throw new BuildException("You must specify the \"dir\" attribute for PEAR package task."); - } - - if ($this->version === null) { - throw new BuildException("You must specify the \"version\" attribute for PEAR package task."); - } - - $package = new PEAR_PackageFileManager2(); - - $this->setOptions($package); - - // the hard-coded stuff - $package->setPackage('propel_generator'); - $package->setSummary('Generator component of the Propel PHP object persistence layer'); - $package->setDescription('Propel is an object persistence layer for PHP5 based on Apache Torque. This package provides the generator engine that builds PHP classes and SQL DDL based on an XML representation of your data model.'); - $package->setChannel('pear.propelorm.org'); - $package->setPackageType('php'); - - $package->setReleaseVersion($this->version); - $package->setAPIVersion($this->version); - - $package->setReleaseStability($this->state); - $package->setAPIStability($this->state); - - $package->setNotes($this->notes); - - $package->setLicense('MIT', 'http://www.opensource.org/licenses/mit-license.php'); - - // Add package maintainers - $package->addMaintainer('lead', 'hans', 'Hans Lellelid', 'hans@xmpl.org'); - $package->addMaintainer('lead', 'david', 'David Zuelke', 'dz@bitxtender.com'); - $package->addMaintainer('lead', 'francois', 'Francois Zaninotto', 'fzaninotto@[gmail].com'); - - // creating a sub-section for 'windows' - $package->addRelease(); - $package->setOSInstallCondition('windows'); - $package->addInstallAs('pear-propel-gen.bat', 'propel-gen.bat'); - $package->addIgnoreToRelease('pear-propel-gen'); - - // creating a sub-section for non-windows - $package->addRelease(); - $package->addInstallAs('pear-propel-gen', 'propel-gen'); - $package->addIgnoreToRelease('pear-propel-gen.bat'); - - // "core" dependencies - $package->setPhpDep('5.2.4'); - $package->setPearinstallerDep('1.4.0'); - - // "package" dependencies - $package->addPackageDepWithChannel('required', 'phing', 'pear.phing.info', '2.3.0'); - - $package->addExtensionDep('required', 'pdo'); - $package->addExtensionDep('required', 'xml'); - $package->addExtensionDep('required', 'xsl'); - - // now add the replacements .... - $package->addReplacement('pear-propel-gen.bat', 'pear-config', '@DATA-DIR@', 'data_dir'); - $package->addReplacement('pear-propel-gen', 'pear-config', '@DATA-DIR@', 'data_dir'); - - // now we run this weird generateContents() method that apparently - // is necessary before we can add replacements ... ? - $package->generateContents(); - - $e = $package->writePackageFile(); - - if (PEAR::isError($e)) { - throw new BuildException("Unable to write package file.", new Exception($e->getMessage())); - } - - } - - /** - * Used by the PEAR_PackageFileManager_PhingFileSet lister. - * @return array FileSet[] - */ - public function getFileSets() - { - return $this->filesets; - } - - // ------------------------------- - // Set properties from XML - // ------------------------------- - - /** - * Nested creator, creates a FileSet for this task - * - * @return FileSet The created fileset object - */ - function createFileSet() - { - $num = array_push($this->filesets, new FileSet()); - return $this->filesets[$num-1]; - } - - /** - * Set the version we are building. - * @param string $v - * @return void - */ - public function setVersion($v) - { - $this->version = $v; - } - - /** - * Set the state we are building. - * @param string $v - * @return void - */ - public function setState($v) - { - $this->state = $v; - } - - /** - * Sets release notes field. - * @param string $v - * @return void - */ - public function setNotes($v) - { - $this->notes = $v; - } - /** - * Sets "dir" property from XML. - * @param PhingFile $f - * @return void - */ - public function setDir(PhingFile $f) - { - $this->dir = $f; - } - - /** - * Sets the file to use for generated package.xml - */ - public function setDestFile(PhingFile $f) - { - $this->packageFile = $f; - } - -} diff --git a/airtime_mvc/library/propel/generator/pear/build-pear-package.xml b/airtime_mvc/library/propel/generator/pear/build-pear-package.xml deleted file mode 100644 index 62ce2103ab..0000000000 --- a/airtime_mvc/library/propel/generator/pear/build-pear-package.xml +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Propel version for package - - - - - - - - - ----------------------------- - | Creating directory layout | - ----------------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ----------------------------- - | Creating PEAR package.xml | - ----------------------------- - - - - - - - - - - - - - - - ----------------------------- - | Creating tar.gz package | - ----------------------------- - - - - - - \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/pear/build.properties b/airtime_mvc/library/propel/generator/pear/build.properties deleted file mode 100644 index 0f6c76b900..0000000000 --- a/airtime_mvc/library/propel/generator/pear/build.properties +++ /dev/null @@ -1,5 +0,0 @@ -# In this file you can define any properties taht you want to affect -# all projects built using the propel-gen script on this system -# -# See http://www.propelorm.org/wiki/Documentation/1.5/BuildConfiguration -# for a list of available properties. diff --git a/airtime_mvc/library/propel/generator/pear/pear-build.xml b/airtime_mvc/library/propel/generator/pear/pear-build.xml deleted file mode 100644 index dbc84eebdc..0000000000 --- a/airtime_mvc/library/propel/generator/pear/pear-build.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Processing additional properties file: ${additional.properties} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/pear/pear-propel-gen b/airtime_mvc/library/propel/generator/pear/pear-propel-gen deleted file mode 100755 index 253ef29208..0000000000 --- a/airtime_mvc/library/propel/generator/pear/pear-propel-gen +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -# ------------------------------------------------------------------------ -# The phing build script for Unix based systems -# $Id: pear-propel-gen,v 1.2 2004/10/17 13:24:09 hlellelid Exp $ -# ------------------------------------------------------------------------ - -# ------------------------------------------------------------------------- -# Do not change anything below this line unless you know what you're doing. -# ------------------------------------------------------------------------- - -# (currently this is not reached) -if (test -z "$PHING_COMMAND") ; then - export PHING_COMMAND="phing" -fi - -if [ $# = 1 ] ; then - saveddir=`pwd` - $PHING_COMMAND -f @DATA-DIR@/propel_generator/pear-build.xml -Dproject.dir=$saveddir $* -else - $PHING_COMMAND -f @DATA-DIR@/propel_generator/pear-build.xml -Dproject.dir=$* -fi - - diff --git a/airtime_mvc/library/propel/generator/pear/pear-propel-gen.bat b/airtime_mvc/library/propel/generator/pear/pear-propel-gen.bat deleted file mode 100644 index 754ea59117..0000000000 --- a/airtime_mvc/library/propel/generator/pear/pear-propel-gen.bat +++ /dev/null @@ -1,30 +0,0 @@ -@ECHO OFF - -::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: The propel-gen build script for Windows based systems -:: $Id: pear-propel-gen.bat,v 1.2 2004/10/17 13:24:09 hlellelid Exp $ -::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: - -::---------------------------------------------------------------------------------- -:: Please set following to the "phing" script. By default this is expected to be -:: on your path. (You don't need to modify this file if that is the case.) - -SET phingScript=phing - -::--------------------------------------------------------------------------------- -::--------------------------------------------------------------------------------- -:: Do not modify below this line!! (Unless you know what your doing :) -::--------------------------------------------------------------------------------- -::--------------------------------------------------------------------------------- - -set nbArgs=0 -for %%x in (%*) do Set /A nbArgs+=1 -if %nbArgs% leq 1 ( - "%phingScript%" -f "@DATA-DIR@\propel_generator\pear-build.xml" -Dproject.dir="%CD%" %* -) else ( - "%phingScript%" -f "@DATA-DIR@\propel_generator\pear-build.xml" -Dproject.dir=%* -) -GOTO :EOF - -:PAUSE_END -PAUSE \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/resources/dtd/database.dtd b/airtime_mvc/library/propel/generator/resources/dtd/database.dtd deleted file mode 100644 index 1de399e8be..0000000000 --- a/airtime_mvc/library/propel/generator/resources/dtd/database.dtd +++ /dev/null @@ -1,180 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/airtime_mvc/library/propel/generator/resources/xsd/custom_datatypes.xsd b/airtime_mvc/library/propel/generator/resources/xsd/custom_datatypes.xsd deleted file mode 100644 index 12e8327cb4..0000000000 --- a/airtime_mvc/library/propel/generator/resources/xsd/custom_datatypes.xsd +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/airtime_mvc/library/propel/generator/resources/xsd/database.xsd b/airtime_mvc/library/propel/generator/resources/xsd/database.xsd deleted file mode 100644 index a54046efab..0000000000 --- a/airtime_mvc/library/propel/generator/resources/xsd/database.xsd +++ /dev/null @@ -1,862 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The name of the column as it appears in the database. - - - - - - - Name used in PHP code to reference this column (in getters, setters, etc.). Defaults to the name transformed by the phpNamingMethod, which defaults to a CamelCase converter. So by default, a column named 'author_id' receives 'AuthorId' as phpName. - - - - - - - Name used for the class constant corresponding to this column in PHP code. Defaults to the uppercase name, so a column named 'author_id' receives 'AUTHOR_ID' as peerName. - - - - - - - - Visibility for the column accessor method. 'public' by default, also accepts 'protected' and 'private'. - - - - - - - Visibility for the column mutator method. 'public' by default, also accepts 'protected' and 'private'. - - - - - - - Set to true to add a primary key on this column. - - - - - - - Set to true to forbid NULL values. - - - - - - - Any of the Propel supported data types. These types are database-agnostic, and converted to the native database type according to the connection. - - - - - - - Native database column type. - - - - - - - PHP type for te column in PHP code. This column's setter uses type casting with the set php_type; besides, generated phpDoc in the model classes use this attribute for code completion. - - - - - - - Numeric length of the column. - - - - - - - Digits after decimal place - - - - - - - Synonym for defaultValue - - - - - - - The default value that the object will have for this column in the PHP instance after creating a "new Object". This value is always interpreted as a string. See defaultExpr for setting an SQL function as a default value. - - - - - - - The default value for this column as expressed in SQL. This value is used solely for the "sql" target which builds your database from the schema.xml file. The defaultExpr is the SQL expression used as the "default" for the column. - - - - - - - - - - Name of the method used to transform the column name into a phpName. Defaults to 'clean', which Removes any character that is not a letter or a number and capitilizes the first letter of the name, the first letter of each alphanumeric block, and converts the rest of the letters to lowercase. Possible values: any of the PhpNameGenerator CONV_METHOD_XXX constants (clean, underscore, phpName, nochange). - - - - - - - A text description of the column. It gets added to the SQL CREATE table as a comment, and appears in the phpDoc bloc of the related getter and setter methods in the ActiveRecord class. - - - - - - - Set to true to skip this column by default during hydration. That means that this column will be hydrated on demand, using a supplementary query. Mostly useful for LOB columns. - - - - - - - (DEPRECATED) For use with treeMode table attribute. - - - - - - - (DEPRECATED) For use with treeMode table attribute. - - - - - - - (DEPRECATED) For use with treeMode table attribute. - - - - - - - (DEPRECATED) For use with treeMode table attribute. - - - - - - - (DEPRECATED) For use with treeMode table attribute. - - - - - - - A column defined as primary string serves as default value for a `__toString()` method in the generated Propel object. - - - - - - - - - - - A reference between a local and a foreign column. Composite foreign keys can have several references. - - - - - - - - - The other table name - - - - - - - Name for this foreign key - - - - - - - Name for the foreign object in methods generated in this class. - - - - - - - Name for this object in methods generated in the foreign class - - - - - - - This affects the default join type used in the generated `joinXXX()` methods in the model query class. Propel uses an INNER JOIN for foreign keys attached to a required column, and a LEFT JOIN for foreign keys attached to a non-required column, but you can override this in the foreign key element. - - - - - - - - - - - - The (absolute or relative to this schema dir name) path to the external schema file. - - - - - - - - - - - - - A column of the table - - - - - - - - A foreign key on one or several columns in this table, referencing a foreign table - - - - - - - - An index on one or several columns of the current table - - - - - - - - A unique index on one or several columns of the current table - - - - - - - - If you are using a database that uses sequences for auto-increment columns (e.g. PostgreSQL or Oracle), you can customize the name of the sequence using this tag - - - - - - - - A validator to be executed on a given column at runtime - - - - - - - - A behavior to be added to the current table. Can modify the table structure, as well as modify the runtime code of the generated Model objects linked to this table. Bundled behaviors include alternative_coding_standards, auto_add_pk, timestampable, sluggable, soft_delete, sortable, nested_set, query_cache, and concrete_inheritance. - - - - - - - - table attributes specific to a database vendor. Only supports MySQL specific table attributes for now (Charset, Collate, Checksum, Pack_keys, Delay_key_write). - - - - - - - - - The name of the table as it appears in the database. - - - - - - - The name of the ActiveRecord class generated for this table. Defaults to the name transformed by the phpNamingMethod, which defaults to a CamelCase converter. So by default, a table named 'foo_author' receives 'FooAuthor' as phpName. - - - - - - - The PHP 5.3 namespace to use for the generated model classes. - - - - - - - - Default visibility for column accessor methods. 'public' by default, also accepts 'protected' and 'private'. - - - - - - - Default visibility for column mutator methods. 'public' by default, also accepts 'protected' and 'private'. - - - - - - - Id method to use for auto-increment columns. - - - - - - - Can be used if you want to define the primary key of a new object being inserted. By default if idMethod is "native", Propel would throw an exception. However, in some cases this feature is useful, for example if you do some replication of data in an master-master environment. - - - - - - - Instructs Propel not to generate DDL SQL for the specified table. This can be used together with readOnly for supperting VIEWS in Propel - - - - - - - Suppresses the mutator/setter methods, save() and delete() methods. - - - - - - - Whether the generated stub class will be abstract (e.g. if you're using inheritance) - - - - - - - Allows you to specify a class that the generated Propel objects should extend (in place of propel.om.BaseObject) - - - - - - - Instructs Propel to use a different SQL-generating BasePeer class (or sub-class of BasePeer). - - - - - - - - Specifies the "package" for the generated classes. Classes are created in subdirectories according to the package attribute value. - - - - - - - - Name of the method used to transform the table name into a phpName. Defaults to 'clean', which Removes any character that is not a letter or a number and capitilizes the first letter of the name, the first letter of each alphanumeric block, and converts the rest of the letters to lowercase. Possible values: any of the PhpNameGenerator CONV_METHOD_XXX constants (clean, underscore, phpName, nochange). - - - - - - - Adds indexes for each component of the primary key (when using composite primary keys) - - - - - - - A text description of the table. It gets added to the SQL CREATE table as a comment, and appears in the phpDoc bloc of the related ActiveRecord class. - - - - - - - Used to indicate that this table is part of a node tree. Currently the only supported values are "NestedSet" and "MaterializedPath" (DEPRECATED: use nested_set behavior instead). - - - - - - - Indicate that the object should be reloaded from the database when an INSERT is performed. This is useful if you have triggers (or other server-side functionality like column default expressions) that alters the database row on INSERT. - - - - - - - Indicate that the object should be reloaded from the database when an UPDATE is performed. This is useful if you have triggers (or other server-side functionality like column default expressions) that alters the database row on UPDATE. - - - - - - - Set to true if the current table is a cross-reference table in a many-to-many relationship to allow generation of getter and setter in each of the tables of the relationship. - - - - - - - - - - - Embed an external schema file into the current schema. Accepts absolute and relative schema file paths. - - - - - - - A table using the database connection. - - - - - - - Behavior to be applied to all the database tables - - - - - - - - The name of the table in the database. Propel advocates the use of singular table names. - - - - - - - Default id method to use for auto-increment columns - - - - - - - - Default visibility for column accessor methods. 'public' by default, also accepts 'protected' and 'private'. - - - - - - - Default visibility for column mutator methods. 'public' by default, also accepts 'protected' and 'private'. - - - - - - - Specifies the "package" for the generated classes. Classes are created in subdirectories according to the package attribute value. - - - - - - - The PHP 5.3 namespace to use for the generated model classes of the database. Can be overridden on a per-table basis. - - - - - - - Allows to specify a default base class that all generated Propel objects should extend (in place of propel.om.BaseObject) - - - - - - - Instructs Propel to use a different SQL-generating BasePeer class (or sub-class of BasePeer) for all generated objects - - - - - - - The default naming method to use in this database. - - - - - - - Adds indexes for each component of the primary key (when using composite primary keys) - - - - - - - Adds a prefix to all the SQL table names - - - - - diff --git a/airtime_mvc/library/propel/generator/resources/xsl/database.xsl b/airtime_mvc/library/propel/generator/resources/xsl/database.xsl deleted file mode 100644 index 81d8217ad5..0000000000 --- a/airtime_mvc/library/propel/generator/resources/xsl/database.xsl +++ /dev/null @@ -1,292 +0,0 @@ - - -]> - - - - - - - - - - - - native - - - underscore - - - false - - - - - - - - - - - - - - - - - - none - - - - - - - - - - - - - - - - - none - - - - - - - - - - - - - - - - - - - - - - - - -
- - false - - - false - - - - - - - - - - -
- - - - - - - none - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - default - - - - - - - - - - - - - - - - - - class - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - false - - - false - - - VARCHAR - - - false - - - false - - - 255 - - - - - - - - - - - - - - - diff --git a/airtime_mvc/library/propel/runtime/lib/Propel.php b/airtime_mvc/library/propel/runtime/lib/Propel.php deleted file mode 100644 index 6171408e1d..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/Propel.php +++ /dev/null @@ -1,916 +0,0 @@ - (Propel) - * @author Daniel Rall (Torque) - * @author Magnús Þór Torfason (Torque) - * @author Jason van Zyl (Torque) - * @author Rafal Krzewski (Torque) - * @author Martin Poeschl (Torque) - * @author Henning P. Schmiedehausen (Torque) - * @author Kurt Schrader (Torque) - * @version $Revision: 1811 $ - * @package propel.runtime - */ -class Propel -{ - /** - * The Propel version. - */ - const VERSION = '1.5.2'; - - /** - * A constant for default. - */ - const DEFAULT_NAME = "default"; - - /** - * A constant defining 'System is unusuable' logging level - */ - const LOG_EMERG = 0; - - /** - * A constant defining 'Immediate action required' logging level - */ - const LOG_ALERT = 1; - - /** - * A constant defining 'Critical conditions' logging level - */ - const LOG_CRIT = 2; - - /** - * A constant defining 'Error conditions' logging level - */ - const LOG_ERR = 3; - - /** - * A constant defining 'Warning conditions' logging level - */ - const LOG_WARNING = 4; - - /** - * A constant defining 'Normal but significant' logging level - */ - const LOG_NOTICE = 5; - - /** - * A constant defining 'Informational' logging level - */ - const LOG_INFO = 6; - - /** - * A constant defining 'Debug-level messages' logging level - */ - const LOG_DEBUG = 7; - - /** - * The class name for a PDO object. - */ - const CLASS_PDO = 'PDO'; - - /** - * The class name for a PropelPDO object. - */ - const CLASS_PROPEL_PDO = 'PropelPDO'; - - /** - * The class name for a DebugPDO object. - */ - const CLASS_DEBUG_PDO = 'DebugPDO'; - - /** - * Constant used to request a READ connection (applies to replication). - */ - const CONNECTION_READ = 'read'; - - /** - * Constant used to request a WRITE connection (applies to replication). - */ - const CONNECTION_WRITE = 'write'; - - /** - * @var string The db name that is specified as the default in the property file - */ - private static $defaultDBName; - - /** - * @var array The global cache of database maps - */ - private static $dbMaps = array(); - - /** - * @var array The cache of DB adapter keys - */ - private static $adapterMap = array(); - - /** - * @var array Cache of established connections (to eliminate overhead). - */ - private static $connectionMap = array(); - - /** - * @var PropelConfiguration Propel-specific configuration. - */ - private static $configuration; - - /** - * @var bool flag to set to true once this class has been initialized - */ - private static $isInit = false; - - /** - * @var Log optional logger - */ - private static $logger = null; - - /** - * @var string The name of the database mapper class - */ - private static $databaseMapClass = 'DatabaseMap'; - - /** - * @var bool Whether the object instance pooling is enabled - */ - private static $instancePoolingEnabled = true; - - /** - * @var bool For replication, whether to force the use of master connection. - */ - private static $forceMasterConnection = false; - - /** - * @var string Base directory to use for autoloading. Initialized in self::initBaseDir() - */ - protected static $baseDir; - - /** - * @var array A map of class names and their file paths for autoloading - */ - protected static $autoloadMap = array( - - 'DBAdapter' => 'adapter/DBAdapter.php', - 'DBMSSQL' => 'adapter/DBMSSQL.php', - 'MssqlPropelPDO' => 'adapter/MSSQL/MssqlPropelPDO.php', - 'MssqlDebugPDO' => 'adapter/MSSQL/MssqlDebugPDO.php', - 'MssqlDateTime' => 'adapter/MSSQL/MssqlDateTime.class.php', - 'DBMySQL' => 'adapter/DBMySQL.php', - 'DBMySQLi' => 'adapter/DBMySQLi.php', - 'DBNone' => 'adapter/DBNone.php', - 'DBOracle' => 'adapter/DBOracle.php', - 'DBPostgres' => 'adapter/DBPostgres.php', - 'DBSQLite' => 'adapter/DBSQLite.php', - 'DBSybase' => 'adapter/DBSybase.php', - - 'PropelArrayCollection' => 'collection/PropelArrayCollection.php', - 'PropelCollection' => 'collection/PropelCollection.php', - 'PropelObjectCollection' => 'collection/PropelObjectCollection.php', - 'PropelOnDemandCollection' => 'collection/PropelOnDemandCollection.php', - 'PropelOnDemandIterator' => 'collection/PropelOnDemandIterator.php', - - 'PropelConfiguration' => 'config/PropelConfiguration.php', - 'PropelConfigurationIterator' => 'config/PropelConfigurationIterator.php', - - 'PropelPDO' => 'connection/PropelPDO.php', - 'DebugPDO' => 'connection/DebugPDO.php', - 'DebugPDOStatement' => 'connection/DebugPDOStatement.php', - - 'PropelException' => 'exception/PropelException.php', - - 'ModelWith' => 'formatter/ModelWith.php', - 'PropelArrayFormatter' => 'formatter/PropelArrayFormatter.php', - 'PropelFormatter' => 'formatter/PropelFormatter.php', - 'PropelObjectFormatter' => 'formatter/PropelObjectFormatter.php', - 'PropelOnDemandFormatter' => 'formatter/PropelOnDemandFormatter.php', - 'PropelStatementFormatter' => 'formatter/PropelStatementFormatter.php', - - 'BasicLogger' => 'logger/BasicLogger.php', - 'MojaviLogAdapter' => 'logger/MojaviLogAdapter.php', - - 'ColumnMap' => 'map/ColumnMap.php', - 'DatabaseMap' => 'map/DatabaseMap.php', - 'TableMap' => 'map/TableMap.php', - 'RelationMap' => 'map/RelationMap.php', - 'ValidatorMap' => 'map/ValidatorMap.php', - - 'BaseObject' => 'om/BaseObject.php', - 'NodeObject' => 'om/NodeObject.php', - 'Persistent' => 'om/Persistent.php', - 'PreOrderNodeIterator' => 'om/PreOrderNodeIterator.php', - 'NestedSetPreOrderNodeIterator' => 'om/NestedSetPreOrderNodeIterator.php', - 'NestedSetRecursiveIterator' => 'om/NestedSetRecursiveIterator.php', - - 'Criteria' => 'query/Criteria.php', - 'Criterion' => 'query/Criterion.php', - 'CriterionIterator' => 'query/CriterionIterator.php', - 'Join' => 'query/Join.php', - 'ModelCriteria' => 'query/ModelCriteria.php', - 'ModelCriterion' => 'query/ModelCriterion.php', - 'ModelJoin' => 'query/ModelJoin.php', - 'PropelQuery' => 'query/PropelQuery.php', - - 'BasePeer' => 'util/BasePeer.php', - 'NodePeer' => 'util/NodePeer.php', - 'PeerInfo' => 'util/PeerInfo.php', - 'PropelAutoloader' => 'util/PropelAutoloader.php', - 'PropelColumnTypes' => 'util/PropelColumnTypes.php', - 'PropelConditionalProxy' => 'util/PropelConditionalProxy.php', - 'PropelModelPager' => 'util/PropelModelPager.php', - 'PropelPager' => 'util/PropelPager.php', - 'PropelDateTime' => 'util/PropelDateTime.php', - - 'BasicValidator' => 'validator/BasicValidator.php', - 'MatchValidator' => 'validator/MatchValidator.php', - 'MaxLengthValidator' => 'validator/MaxLengthValidator.php', - 'MaxValueValidator' => 'validator/MaxValueValidator.php', - 'MinLengthValidator' => 'validator/MinLengthValidator.php', - 'MinValueValidator' => 'validator/MinValueValidator.php', - 'NotMatchValidator' => 'validator/NotMatchValidator.php', - 'RequiredValidator' => 'validator/RequiredValidator.php', - 'UniqueValidator' => 'validator/UniqueValidator.php', - 'ValidValuesValidator' => 'validator/ValidValuesValidator.php', - 'ValidationFailed' => 'validator/ValidationFailed.php', - ); - - /** - * Initializes Propel - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function initialize() - { - if (self::$configuration === null) { - throw new PropelException("Propel cannot be initialized without a valid configuration. Please check the log files for further details."); - } - - self::configureLogging(); - - // reset the connection map (this should enable runtime changes of connection params) - self::$connectionMap = array(); - - if (isset(self::$configuration['classmap']) && is_array(self::$configuration['classmap'])) { - PropelAutoloader::getInstance()->addClassPaths(self::$configuration['classmap']); - PropelAutoloader::getInstance()->register(); - } - - self::$isInit = true; - } - - /** - * Configure Propel a PHP (array) config file. - * - * @param string Path (absolute or relative to include_path) to config file. - * - * @throws PropelException If configuration file cannot be opened. - * (E_WARNING probably will also be raised by PHP) - */ - public static function configure($configFile) - { - $configuration = include($configFile); - if ($configuration === false) { - throw new PropelException("Unable to open configuration file: " . var_export($configFile, true)); - } - self::setConfiguration($configuration); - } - - /** - * Configure the logging system, if config is specified in the runtime configuration. - */ - protected static function configureLogging() - { - if (self::$logger === null) { - if (isset(self::$configuration['log']) && is_array(self::$configuration['log']) && count(self::$configuration['log'])) { - include_once 'Log.php'; // PEAR Log class - $c = self::$configuration['log']; - $type = isset($c['type']) ? $c['type'] : 'file'; - $name = isset($c['name']) ? $c['name'] : './propel.log'; - $ident = isset($c['ident']) ? $c['ident'] : 'propel'; - $conf = isset($c['conf']) ? $c['conf'] : array(); - $level = isset($c['level']) ? $c['level'] : PEAR_LOG_DEBUG; - self::$logger = Log::singleton($type, $name, $ident, $conf, $level); - } // if isset() - } - } - - /** - * Initialization of Propel a PHP (array) configuration file. - * - * @param string $c The Propel configuration file path. - * - * @throws PropelException Any exceptions caught during processing will be - * rethrown wrapped into a PropelException. - */ - public static function init($c) - { - self::configure($c); - self::initialize(); - } - - /** - * Determine whether Propel has already been initialized. - * - * @return bool True if Propel is already initialized. - */ - public static function isInit() - { - return self::$isInit; - } - - /** - * Sets the configuration for Propel and all dependencies. - * - * @param mixed The Configuration (array or PropelConfiguration) - */ - public static function setConfiguration($c) - { - if (is_array($c)) { - if (isset($c['propel']) && is_array($c['propel'])) { - $c = $c['propel']; - } - $c = new PropelConfiguration($c); - } - self::$configuration = $c; - } - - /** - * Get the configuration for this component. - * - * @param int - PropelConfiguration::TYPE_ARRAY: return the configuration as an array - * (for backward compatibility this is the default) - * - PropelConfiguration::TYPE_ARRAY_FLAT: return the configuration as a flat array - * ($config['name.space.item']) - * - PropelConfiguration::TYPE_OBJECT: return the configuration as a PropelConfiguration instance - * @return mixed The Configuration (array or PropelConfiguration) - */ - public static function getConfiguration($type = PropelConfiguration::TYPE_ARRAY) - { - return self::$configuration->getParameters($type); - } - - /** - * Override the configured logger. - * - * This is primarily for things like unit tests / debugging where - * you want to change the logger without altering the configuration file. - * - * You can use any logger class that implements the propel.logger.BasicLogger - * interface. This interface is based on PEAR::Log, so you can also simply pass - * a PEAR::Log object to this method. - * - * @param object The new logger to use. ([PEAR] Log or BasicLogger) - */ - public static function setLogger($logger) - { - self::$logger = $logger; - } - - /** - * Returns true if a logger, for example PEAR::Log, has been configured, - * otherwise false. - * - * @return bool True if Propel uses logging - */ - public static function hasLogger() - { - return (self::$logger !== null); - } - - /** - * Get the configured logger. - * - * @return object Configured log class ([PEAR] Log or BasicLogger). - */ - public static function logger() - { - return self::$logger; - } - - /** - * Logs a message - * If a logger has been configured, the logger will be used, otherwrise the - * logging message will be discarded without any further action - * - * @param string The message that will be logged. - * @param string The logging level. - * - * @return bool True if the message was logged successfully or no logger was used. - */ - public static function log($message, $level = self::LOG_DEBUG) - { - if (self::hasLogger()) { - $logger = self::logger(); - switch ($level) { - case self::LOG_EMERG: - return $logger->log($message, $level); - case self::LOG_ALERT: - return $logger->alert($message); - case self::LOG_CRIT: - return $logger->crit($message); - case self::LOG_ERR: - return $logger->err($message); - case self::LOG_WARNING: - return $logger->warning($message); - case self::LOG_NOTICE: - return $logger->notice($message); - case self::LOG_INFO: - return $logger->info($message); - default: - return $logger->debug($message); - } - } - return true; - } - - /** - * Returns the database map information. Name relates to the name - * of the connection pool to associate with the map. - * - * The database maps are "registered" by the generated map builder classes. - * - * @param string The name of the database corresponding to the DatabaseMap to retrieve. - * - * @return DatabaseMap The named DatabaseMap. - * - * @throws PropelException - if database map is null or propel was not initialized properly. - */ - public static function getDatabaseMap($name = null) - { - if ($name === null) { - $name = self::getDefaultDB(); - if ($name === null) { - throw new PropelException("DatabaseMap name is null!"); - } - } - - if (!isset(self::$dbMaps[$name])) { - $clazz = self::$databaseMapClass; - self::$dbMaps[$name] = new $clazz($name); - } - - return self::$dbMaps[$name]; - } - - /** - * Sets the database map object to use for specified datasource. - * - * @param string $name The datasource name. - * @param DatabaseMap $map The database map object to use for specified datasource. - */ - public static function setDatabaseMap($name, DatabaseMap $map) - { - if ($name === null) { - $name = self::getDefaultDB(); - } - self::$dbMaps[$name] = $map; - } - - /** - * For replication, set whether to always force the use of a master connection. - * - * @param boolean $bit True or False - */ - public static function setForceMasterConnection($bit) - { - self::$forceMasterConnection = (bool) $bit; - } - - /** - * For replication, whether to always force the use of a master connection. - * - * @return boolean - */ - public static function getForceMasterConnection() - { - return self::$forceMasterConnection; - } - - /** - * Sets a Connection for specified datasource name. - * - * @param string $name The datasource name for the connection being set. - * @param PropelPDO $con The PDO connection. - * @param string $mode Whether this is a READ or WRITE connection (Propel::CONNECTION_READ, Propel::CONNECTION_WRITE) - */ - public static function setConnection($name, PropelPDO $con, $mode = Propel::CONNECTION_WRITE) - { - if ($name === null) { - $name = self::getDefaultDB(); - } - if ($mode == Propel::CONNECTION_READ) { - self::$connectionMap[$name]['slave'] = $con; - } else { - self::$connectionMap[$name]['master'] = $con; - } - } - - /** - * Gets an already-opened PDO connection or opens a new one for passed-in db name. - * - * @param string $name The datasource name that is used to look up the DSN from the runtime configuation file. - * @param string $mode The connection mode (this applies to replication systems). - * - * @return PDO A database connection - * - * @throws PropelException - if connection cannot be configured or initialized. - */ - public static function getConnection($name = null, $mode = Propel::CONNECTION_WRITE) - { - if ($name === null) { - $name = self::getDefaultDB(); - } - - // IF a WRITE-mode connection was requested - // or Propel is configured to always use the master connection - // THEN return the master connection. - if ($mode != Propel::CONNECTION_READ || self::$forceMasterConnection) { - return self::getMasterConnection($name); - } else { - return self::getSlaveConnection($name); - } - - } - - /** - * Gets an already-opened write PDO connection or opens a new one for passed-in db name. - * - * @param string $name The datasource name that is used to look up the DSN - * from the runtime configuation file. Empty name not allowed. - * - * @return PDO A database connection - * - * @throws PropelException - if connection cannot be configured or initialized. - */ - public static function getMasterConnection($name) - { - if (!isset(self::$connectionMap[$name]['master'])) { - // load connection parameter for master connection - $conparams = isset(self::$configuration['datasources'][$name]['connection']) ? self::$configuration['datasources'][$name]['connection'] : null; - if (empty($conparams)) { - throw new PropelException('No connection information in your runtime configuration file for datasource ['.$name.']'); - } - // initialize master connection - $con = Propel::initConnection($conparams, $name); - self::$connectionMap[$name]['master'] = $con; - } - - return self::$connectionMap[$name]['master']; - } - - /** - * Gets an already-opened read PDO connection or opens a new one for passed-in db name. - * - * @param string $name The datasource name that is used to look up the DSN - * from the runtime configuation file. Empty name not allowed. - * - * @return PDO A database connection - * - * @throws PropelException - if connection cannot be configured or initialized. - */ - public static function getSlaveConnection($name) - { - if (!isset(self::$connectionMap[$name]['slave'])) { - - $slaveconfigs = isset(self::$configuration['datasources'][$name]['slaves']) ? self::$configuration['datasources'][$name]['slaves'] : null; - - if (empty($slaveconfigs)) { - // no slaves configured for this datasource - // fallback to the master connection - self::$connectionMap[$name]['slave'] = self::getMasterConnection($name); - } else { - // Initialize a new slave - if (isset($slaveconfigs['connection']['dsn'])) { - // only one slave connection configured - $conparams = $slaveconfigs['connection']; - } else { - // more than one sleve connection configured - // pickup a random one - $randkey = array_rand($slaveconfigs['connection']); - $conparams = $slaveconfigs['connection'][$randkey]; - if (empty($conparams)) { - throw new PropelException('No connection information in your runtime configuration file for SLAVE ['.$randkey.'] to datasource ['.$name.']'); - } - } - - // initialize slave connection - $con = Propel::initConnection($conparams, $name); - self::$connectionMap[$name]['slave'] = $con; - } - - } // if datasource slave not set - - return self::$connectionMap[$name]['slave']; - } - - /** - * Opens a new PDO connection for passed-in db name. - * - * @param array $conparams Connection paramters. - * @param string $name Datasource name. - * @param string $defaultClass The PDO subclass to instantiate if there is no explicit classname - * specified in the connection params (default is Propel::CLASS_PROPEL_PDO) - * - * @return PDO A database connection of the given class (PDO, PropelPDO, SlavePDO or user-defined) - * - * @throws PropelException - if lower-level exception caught when trying to connect. - */ - public static function initConnection($conparams, $name, $defaultClass = Propel::CLASS_PROPEL_PDO) - { - - $dsn = $conparams['dsn']; - if ($dsn === null) { - throw new PropelException('No dsn specified in your connection parameters for datasource ['.$name.']'); - } - - if (isset($conparams['classname']) && !empty($conparams['classname'])) { - $classname = $conparams['classname']; - if (!class_exists($classname)) { - throw new PropelException('Unable to load specified PDO subclass: ' . $classname); - } - } else { - $classname = $defaultClass; - } - - $user = isset($conparams['user']) ? $conparams['user'] : null; - $password = isset($conparams['password']) ? $conparams['password'] : null; - - // load any driver options from the config file - // driver options are those PDO settings that have to be passed during the connection construction - $driver_options = array(); - if ( isset($conparams['options']) && is_array($conparams['options']) ) { - try { - self::processDriverOptions( $conparams['options'], $driver_options ); - } catch (PropelException $e) { - throw new PropelException('Error processing driver options for datasource ['.$name.']', $e); - } - } - - try { - $con = new $classname($dsn, $user, $password, $driver_options); - $con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - if (Propel::getConfiguration(PropelConfiguration::TYPE_OBJECT)->getParameter('debugpdo.logging.enabled', false)) { - $con->useLogging(true); - } - } catch (PDOException $e) { - throw new PropelException("Unable to open PDO connection", $e); - } - - // load any connection options from the config file - // connection attributes are those PDO flags that have to be set on the initialized connection - if (isset($conparams['attributes']) && is_array($conparams['attributes'])) { - $attributes = array(); - try { - self::processDriverOptions( $conparams['attributes'], $attributes ); - } catch (PropelException $e) { - throw new PropelException('Error processing connection attributes for datasource ['.$name.']', $e); - } - foreach ($attributes as $key => $value) { - $con->setAttribute($key, $value); - } - } - - // initialize the connection using the settings provided in the config file. this could be a "SET NAMES " query for MySQL, for instance - $adapter = self::getDB($name); - $adapter->initConnection($con, isset($conparams['settings']) && is_array($conparams['settings']) ? $conparams['settings'] : array()); - - return $con; - } - - /** - * Internal function to handle driver options or conneciton attributes in PDO. - * - * Process the INI file flags to be passed to each connection. - * - * @param array Where to find the list of constant flags and their new setting. - * @param array Put the data into here - * - * @throws PropelException If invalid options were specified. - */ - private static function processDriverOptions($source, &$write_to) - { - foreach ($source as $option => $optiondata) { - if (is_string($option) && strpos($option, '::') !== false) { - $key = $option; - } elseif (is_string($option)) { - $key = 'PropelPDO::' . $option; - } - if (!defined($key)) { - throw new PropelException("Invalid PDO option/attribute name specified: ".$key); - } - $key = constant($key); - - $value = $optiondata['value']; - if (is_string($value) && strpos($value, '::') !== false) { - if (!defined($value)) { - throw new PropelException("Invalid PDO option/attribute value specified: ".$value); - } - $value = constant($value); - } - - $write_to[$key] = $value; - } - } - - /** - * Returns database adapter for a specific datasource. - * - * @param string The datasource name. - * - * @return DBAdapter The corresponding database adapter. - * - * @throws PropelException If unable to find DBdapter for specified db. - */ - public static function getDB($name = null) - { - if ($name === null) { - $name = self::getDefaultDB(); - } - - if (!isset(self::$adapterMap[$name])) { - if (!isset(self::$configuration['datasources'][$name]['adapter'])) { - throw new PropelException("Unable to find adapter for datasource [" . $name . "]."); - } - $db = DBAdapter::factory(self::$configuration['datasources'][$name]['adapter']); - // register the adapter for this name - self::$adapterMap[$name] = $db; - } - - return self::$adapterMap[$name]; - } - - /** - * Sets a database adapter for specified datasource. - * - * @param string $name The datasource name. - * @param DBAdapter $adapter The DBAdapter implementation to use. - */ - public static function setDB($name, DBAdapter $adapter) - { - if ($name === null) { - $name = self::getDefaultDB(); - } - self::$adapterMap[$name] = $adapter; - } - - /** - * Returns the name of the default database. - * - * @return string Name of the default DB - */ - public static function getDefaultDB() - { - if (self::$defaultDBName === null) { - // Determine default database name. - self::$defaultDBName = isset(self::$configuration['datasources']['default']) ? self::$configuration['datasources']['default'] : self::DEFAULT_NAME; - } - return self::$defaultDBName; - } - - /** - * Closes any associated resource handles. - * - * This method frees any database connection handles that have been - * opened by the getConnection() method. - */ - public static function close() - { - foreach (self::$connectionMap as $idx => $cons) { - // Propel::log("Closing connections for " . $idx, Propel::LOG_DEBUG); - unset(self::$connectionMap[$idx]); - } - } - - /** - * Autoload function for loading propel dependencies. - * - * @param string The class name needing loading. - * - * @return boolean TRUE if the class was loaded, false otherwise. - */ - public static function autoload($className) - { - if (isset(self::$autoloadMap[$className])) { - require self::$baseDir . self::$autoloadMap[$className]; - return true; - } - return false; - } - - /** - * Initialize the base directory for the autoloader. - * Avoids a call to dirname(__FILE__) each time self::autoload() is called. - * FIXME put in the constructor if the Propel class ever becomes a singleton - */ - public static function initBaseDir() - { - self::$baseDir = dirname(__FILE__) . '/'; - } - - /** - * Include once a file specified in DOT notation and return unqualified classname. - * - * Typically, Propel uses autoload is used to load classes and expects that all classes - * referenced within Propel are included in Propel's autoload map. This method is only - * called when a specific non-Propel classname was specified -- for example, the - * classname of a validator in the schema.xml. This method will attempt to include that - * class via autoload and then relative to a location on the include_path. - * - * @param string $class dot-path to clas (e.g. path.to.my.ClassName). - * @return string unqualified classname - */ - public static function importClass($path) { - - // extract classname - if (($pos = strrpos($path, '.')) === false) { - $class = $path; - } else { - $class = substr($path, $pos + 1); - } - - // check if class exists, using autoloader to attempt to load it. - if (class_exists($class, $useAutoload=true)) { - return $class; - } - - // turn to filesystem path - $path = strtr($path, '.', DIRECTORY_SEPARATOR) . '.php'; - - // include class - $ret = include_once($path); - if ($ret === false) { - throw new PropelException("Unable to import class: " . $class . " from " . $path); - } - - // return qualified name - return $class; - } - - /** - * Set your own class-name for Database-Mapping. Then - * you can change the whole TableMap-Model, but keep its - * functionality for Criteria. - * - * @param string The name of the class. - */ - public static function setDatabaseMapClass($name) - { - self::$databaseMapClass = $name; - } - - /** - * Disable instance pooling. - * - * @return boolean true if the method changed the instance pooling state, - * false if it was already disabled - */ - public static function disableInstancePooling() - { - if (!self::$instancePoolingEnabled) { - return false; - } - self::$instancePoolingEnabled = false; - return true; - } - - /** - * Enable instance pooling (enabled by default). - * - * @return boolean true if the method changed the instance pooling state, - * false if it was already enabled - */ - public static function enableInstancePooling() - { - if (self::$instancePoolingEnabled) { - return false; - } - self::$instancePoolingEnabled = true; - return true; - } - - /** - * the instance pooling behaviour. True by default. - * - * @return boolean Whether the pooling is enabled or not. - */ - public static function isInstancePoolingEnabled() - { - return self::$instancePoolingEnabled; - } -} - -// Since the Propel class is not a true singleton, this code cannot go into the __construct() -Propel::initBaseDir(); -spl_autoload_register(array('Propel', 'autoload')); diff --git a/airtime_mvc/library/propel/runtime/lib/adapter/DBAdapter.php b/airtime_mvc/library/propel/runtime/lib/adapter/DBAdapter.php deleted file mode 100644 index 4da98dc384..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/adapter/DBAdapter.php +++ /dev/null @@ -1,297 +0,0 @@ - defines the interface for a Propel database adapter. - * - *

Support for new databases is added by subclassing - * DBAdapter and implementing its abstract interface, and by - * registering the new database adapter and corresponding Propel - * driver in the private adapters map (array) in this class.

- * - *

The Propel database adapters exist to present a uniform - * interface to database access across all available databases. Once - * the necessary adapters have been written and configured, - * transparent swapping of databases is theoretically supported with - * zero code change and minimal configuration file - * modifications.

- * - * @author Hans Lellelid (Propel) - * @author Jon S. Stevens (Torque) - * @author Brett McLaughlin (Torque) - * @author Daniel Rall (Torque) - * @version $Revision: 1612 $ - * @package propel.runtime.adapter - */ -abstract class DBAdapter -{ - - const ID_METHOD_NONE = 0; - const ID_METHOD_AUTOINCREMENT = 1; - const ID_METHOD_SEQUENCE = 2; - - /** - * Propel driver to Propel adapter map. - * @var array - */ - private static $adapters = array( - 'mysql' => 'DBMySQL', - 'mysqli' => 'DBMySQLi', - 'mssql' => 'DBMSSQL', - 'dblib' => 'DBMSSQL', - 'sybase' => 'DBSybase', - 'oracle' => 'DBOracle', - 'oci' => 'DBOracle', - 'pgsql' => 'DBPostgres', - 'sqlite' => 'DBSQLite', - '' => 'DBNone', - ); - - /** - * Creates a new instance of the database adapter associated - * with the specified Propel driver. - * - * @param string $driver The name of the Propel driver to - * create a new adapter instance for or a shorter form adapter key. - * @return DBAdapter An instance of a Propel database adapter. - * @throws PropelException if the adapter could not be instantiated. - */ - public static function factory($driver) { - $adapterClass = isset(self::$adapters[$driver]) ? self::$adapters[$driver] : null; - if ($adapterClass !== null) { - $a = new $adapterClass(); - return $a; - } else { - throw new PropelException("Unsupported Propel driver: " . $driver . ": Check your configuration file"); - } - } - - /** - * This method is called after a connection was created to run necessary - * post-initialization queries or code. - * - * If a charset was specified, this will be set before any other queries - * are executed. - * - * This base method runs queries specified using the "query" setting. - * - * @param PDO A PDO connection instance. - * @param array An array of settings. - * @see setCharset() - */ - public function initConnection(PDO $con, array $settings) - { - if (isset($settings['charset']['value'])) { - $this->setCharset($con, $settings['charset']['value']); - } - if (isset($settings['queries']) && is_array($settings['queries'])) { - foreach ($settings['queries'] as $queries) { - foreach ((array)$queries as $query) { - $con->exec($query); - } - } - } - } - - /** - * Sets the character encoding using SQL standard SET NAMES statement. - * - * This method is invoked from the default initConnection() method and must - * be overridden for an RDMBS which does _not_ support this SQL standard. - * - * @param PDO A PDO connection instance. - * @param string The charset encoding. - * @see initConnection() - */ - public function setCharset(PDO $con, $charset) - { - $con->exec("SET NAMES '" . $charset . "'"); - } - - /** - * This method is used to ignore case. - * - * @param string The string to transform to upper case. - * @return string The upper case string. - */ - public abstract function toUpperCase($in); - - /** - * Returns the character used to indicate the beginning and end of - * a piece of text used in a SQL statement (generally a single - * quote). - * - * @return string The text delimeter. - */ - public function getStringDelimiter() - { - return '\''; - } - - /** - * This method is used to ignore case. - * - * @param string $in The string whose case to ignore. - * @return string The string in a case that can be ignored. - */ - public abstract function ignoreCase($in); - - /** - * This method is used to ignore case in an ORDER BY clause. - * Usually it is the same as ignoreCase, but some databases - * (Interbase for example) does not use the same SQL in ORDER BY - * and other clauses. - * - * @param string $in The string whose case to ignore. - * @return string The string in a case that can be ignored. - */ - public function ignoreCaseInOrderBy($in) - { - return $this->ignoreCase($in); - } - - /** - * Returns SQL which concatenates the second string to the first. - * - * @param string String to concatenate. - * @param string String to append. - * @return string - */ - public abstract function concatString($s1, $s2); - - /** - * Returns SQL which extracts a substring. - * - * @param string String to extract from. - * @param int Offset to start from. - * @param int Number of characters to extract. - * @return string - */ - public abstract function subString($s, $pos, $len); - - /** - * Returns SQL which calculates the length (in chars) of a string. - * - * @param string String to calculate length of. - * @return string - */ - public abstract function strLength($s); - - - /** - * Quotes database objec identifiers (table names, col names, sequences, etc.). - * @param string $text The identifier to quote. - * @return string The quoted identifier. - */ - public function quoteIdentifier($text) - { - return '"' . $text . '"'; - } - - /** - * Quotes a database table which could have space seperating it from an alias, both should be identified seperately - * @param string $table The table name to quo - * @return string The quoted table name - **/ - public function quoteIdentifierTable($table) { - return implode(" ", array_map(array($this, "quoteIdentifier"), explode(" ", $table) ) ); - } - - /** - * Returns the native ID method for this RDBMS. - * @return int one of DBAdapter:ID_METHOD_SEQUENCE, DBAdapter::ID_METHOD_AUTOINCREMENT. - */ - protected function getIdMethod() - { - return DBAdapter::ID_METHOD_AUTOINCREMENT; - } - - /** - * Whether this adapter uses an ID generation system that requires getting ID _before_ performing INSERT. - * @return boolean - */ - public function isGetIdBeforeInsert() - { - return ($this->getIdMethod() === DBAdapter::ID_METHOD_SEQUENCE); - } - - /** - * Whether this adapter uses an ID generation system that requires getting ID _before_ performing INSERT. - * @return boolean - */ - public function isGetIdAfterInsert() - { - return ($this->getIdMethod() === DBAdapter::ID_METHOD_AUTOINCREMENT); - } - - /** - * Gets the generated ID (either last ID for autoincrement or next sequence ID). - * @return mixed - */ - public function getId(PDO $con, $name = null) - { - return $con->lastInsertId($name); - } - - /** - * Returns timestamp formatter string for use in date() function. - * @return string - */ - public function getTimestampFormatter() - { - return "Y-m-d H:i:s"; - } - - /** - * Returns date formatter string for use in date() function. - * @return string - */ - public function getDateFormatter() - { - return "Y-m-d"; - } - - /** - * Returns time formatter string for use in date() function. - * @return string - */ - public function getTimeFormatter() - { - return "H:i:s"; - } - - /** - * Should Column-Names get identifiers for inserts or updates. - * By default false is returned -> backwards compability. - * - * it`s a workaround...!!! - * - * @todo should be abstract - * @return boolean - * @deprecated - */ - public function useQuoteIdentifier() - { - return false; - } - - /** - * Modifies the passed-in SQL to add LIMIT and/or OFFSET. - */ - public abstract function applyLimit(&$sql, $offset, $limit); - - /** - * Gets the SQL string that this adapter uses for getting a random number. - * - * @param mixed $seed (optional) seed value for databases that support this - */ - public abstract function random($seed = null); - -} diff --git a/airtime_mvc/library/propel/runtime/lib/adapter/DBMSSQL.php b/airtime_mvc/library/propel/runtime/lib/adapter/DBMSSQL.php deleted file mode 100644 index f98fa7dfc7..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/adapter/DBMSSQL.php +++ /dev/null @@ -1,215 +0,0 @@ - (Propel) - * @version $Revision: 1700 $ - * @package propel.runtime.adapter - */ -class DBMSSQL extends DBAdapter -{ - - /** - * This method is used to ignore case. - * - * @param in The string to transform to upper case. - * @return The upper case string. - */ - public function toUpperCase($in) - { - return $this->ignoreCase($in); - } - - /** - * This method is used to ignore case. - * - * @param in The string whose case to ignore. - * @return The string in a case that can be ignored. - */ - public function ignoreCase($in) - { - return 'UPPER(' . $in . ')'; - } - - /** - * Returns SQL which concatenates the second string to the first. - * - * @param string String to concatenate. - * @param string String to append. - * @return string - */ - public function concatString($s1, $s2) - { - return '(' . $s1 . ' + ' . $s2 . ')'; - } - - /** - * Returns SQL which extracts a substring. - * - * @param string String to extract from. - * @param int Offset to start from. - * @param int Number of characters to extract. - * @return string - */ - public function subString($s, $pos, $len) - { - return 'SUBSTRING(' . $s . ', ' . $pos . ', ' . $len . ')'; - } - - /** - * Returns SQL which calculates the length (in chars) of a string. - * - * @param string String to calculate length of. - * @return string - */ - public function strLength($s) - { - return 'LEN(' . $s . ')'; - } - - /** - * @see DBAdapter::quoteIdentifier() - */ - public function quoteIdentifier($text) - { - return '[' . $text . ']'; - } - - /** - * @see DBAdapter::random() - */ - public function random($seed = null) - { - return 'RAND(' . ((int)$seed) . ')'; - } - - /** - * Simulated Limit/Offset - * This rewrites the $sql query to apply the offset and limit. - * some of the ORDER BY logic borrowed from Doctrine MsSqlPlatform - * @see DBAdapter::applyLimit() - * @author Benjamin Runnels - */ - public function applyLimit(&$sql, $offset, $limit) - { - // make sure offset and limit are numeric - if(! is_numeric($offset) || ! is_numeric($limit)) - { - throw new PropelException('DBMSSQL::applyLimit() expects a number for argument 2 and 3'); - } - - //split the select and from clauses out of the original query - $selectSegment = array(); - - $selectText = 'SELECT '; - - if (preg_match('/\Aselect(\s+)distinct/i', $sql)) { - $selectText .= 'DISTINCT '; - } - - preg_match('/\Aselect(.*)from(.*)/si', $sql, $selectSegment); - if(count($selectSegment) == 3) { - $selectStatement = trim($selectSegment[1]); - $fromStatement = trim($selectSegment[2]); - } else { - throw new Exception('DBMSSQL::applyLimit() could not locate the select statement at the start of the query.'); - } - - // if we're starting at offset 0 then theres no need to simulate limit, - // just grab the top $limit number of rows - if($offset == 0) { - $sql = $selectText . 'TOP ' . $limit . ' ' . $selectStatement . ' FROM ' . $fromStatement; - return; - } - - //get the ORDER BY clause if present - $orderStatement = stristr($fromStatement, 'ORDER BY'); - $orders = ''; - - if($orderStatement !== false) { - //remove order statement from the from statement - $fromStatement = trim(str_replace($orderStatement, '', $fromStatement)); - - $order = str_ireplace('ORDER BY', '', $orderStatement); - $orders = explode(',', $order); - - for($i = 0; $i < count($orders); $i ++) { - $orderArr[trim(preg_replace('/\s+(ASC|DESC)$/i', '', $orders[$i]))] = array( - 'sort' => (stripos($orders[$i], ' DESC') !== false) ? 'DESC' : 'ASC', - 'key' => $i - ); - } - } - - //setup inner and outer select selects - $innerSelect = ''; - $outerSelect = ''; - foreach(explode(', ', $selectStatement) as $selCol) { - $selColArr = explode(' ', $selCol); - $selColCount = count($selColArr) - 1; - - //make sure the current column isn't * or an aggregate - if($selColArr[0] != '*' && ! strstr($selColArr[0], '(')) { - if(isset($orderArr[$selColArr[0]])) { - $orders[$orderArr[$selColArr[0]]['key']] = $selColArr[0] . ' ' . $orderArr[$selColArr[0]]['sort']; - } - - //use the alias if one was present otherwise use the column name - $alias = (! stristr($selCol, ' AS ')) ? $this->quoteIdentifier($selColArr[0]) : $this->quoteIdentifier($selColArr[$selColCount]); - - //save the first non-aggregate column for use in ROW_NUMBER() if required - if(! isset($firstColumnOrderStatement)) { - $firstColumnOrderStatement = 'ORDER BY ' . $selColArr[0]; - } - - //add an alias to the inner select so all columns will be unique - $innerSelect .= $selColArr[0] . ' AS ' . $alias . ', '; - $outerSelect .= $alias . ', '; - } else { - //agregate columns must always have an alias clause - if(! stristr($selCol, ' AS ')) { - throw new Exception('DBMSSQL::applyLimit() requires aggregate columns to have an Alias clause'); - } - - //aggregate column alias can't be used as the count column you must use the entire aggregate statement - if(isset($orderArr[$selColArr[$selColCount]])) { - $orders[$orderArr[$selColArr[$selColCount]]['key']] = str_replace($selColArr[$selColCount - 1] . ' ' . $selColArr[$selColCount], '', $selCol) . $orderArr[$selColArr[$selColCount]]['sort']; - } - - //quote the alias - $alias = $this->quoteIdentifier($selColArr[$selColCount]); - $innerSelect .= str_replace($selColArr[$selColCount], $alias, $selCol) . ', '; - $outerSelect .= $alias . ', '; - } - } - - if(is_array($orders)) { - $orderStatement = 'ORDER BY ' . implode(', ', $orders); - } else { - //use the first non aggregate column in our select statement if no ORDER BY clause present - if(isset($firstColumnOrderStatement)) { - $orderStatement = $firstColumnOrderStatement; - } else { - throw new Exception('DBMSSQL::applyLimit() unable to find column to use with ROW_NUMBER()'); - } - } - - //substring the select strings to get rid of the last comma and add our FROM and SELECT clauses - $innerSelect = $selectText . 'ROW_NUMBER() OVER(' . $orderStatement . ') AS RowNumber, ' . substr($innerSelect, 0, - 2) . ' FROM'; - //outer select can't use * because of the RowNumber column - $outerSelect = 'SELECT ' . substr($outerSelect, 0, - 2) . ' FROM'; - - //ROW_NUMBER() starts at 1 not 0 - $sql = $outerSelect . ' (' . $innerSelect . ' ' . $fromStatement . ') AS derivedb WHERE RowNumber BETWEEN ' . ($offset + 1) . ' AND ' . ($limit + $offset); - return; - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/adapter/DBMySQL.php b/airtime_mvc/library/propel/runtime/lib/adapter/DBMySQL.php deleted file mode 100644 index 99818e8cd2..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/adapter/DBMySQL.php +++ /dev/null @@ -1,145 +0,0 @@ - (Propel) - * @author Jon S. Stevens (Torque) - * @author Brett McLaughlin (Torque) - * @author Daniel Rall (Torque) - * @version $Revision: 1612 $ - * @package propel.runtime.adapter - */ -class DBMySQL extends DBAdapter -{ - - /** - * This method is used to ignore case. - * - * @param in The string to transform to upper case. - * @return The upper case string. - */ - public function toUpperCase($in) - { - return "UPPER(" . $in . ")"; - } - - /** - * This method is used to ignore case. - * - * @param in The string whose case to ignore. - * @return The string in a case that can be ignored. - */ - public function ignoreCase($in) - { - return "UPPER(" . $in . ")"; - } - - /** - * Returns SQL which concatenates the second string to the first. - * - * @param string String to concatenate. - * @param string String to append. - * @return string - */ - public function concatString($s1, $s2) - { - return "CONCAT($s1, $s2)"; - } - - /** - * Returns SQL which extracts a substring. - * - * @param string String to extract from. - * @param int Offset to start from. - * @param int Number of characters to extract. - * @return string - */ - public function subString($s, $pos, $len) - { - return "SUBSTRING($s, $pos, $len)"; - } - - /** - * Returns SQL which calculates the length (in chars) of a string. - * - * @param string String to calculate length of. - * @return string - */ - public function strLength($s) - { - return "CHAR_LENGTH($s)"; - } - - - /** - * Locks the specified table. - * - * @param Connection $con The Propel connection to use. - * @param string $table The name of the table to lock. - * @throws PDOException No Statement could be created or - * executed. - */ - public function lockTable(PDO $con, $table) - { - $con->exec("LOCK TABLE " . $table . " WRITE"); - } - - /** - * Unlocks the specified table. - * - * @param PDO $con The PDO connection to use. - * @param string $table The name of the table to unlock. - * @throws PDOException No Statement could be created or - * executed. - */ - public function unlockTable(PDO $con, $table) - { - $statement = $con->exec("UNLOCK TABLES"); - } - - /** - * @see DBAdapter::quoteIdentifier() - */ - public function quoteIdentifier($text) - { - return '`' . $text . '`'; - } - - /** - * @see DBAdapter::useQuoteIdentifier() - */ - public function useQuoteIdentifier() - { - return true; - } - - /** - * @see DBAdapter::applyLimit() - */ - public function applyLimit(&$sql, $offset, $limit) - { - if ( $limit > 0 ) { - $sql .= " LIMIT " . ($offset > 0 ? $offset . ", " : "") . $limit; - } else if ( $offset > 0 ) { - $sql .= " LIMIT " . $offset . ", 18446744073709551615"; - } - } - - /** - * @see DBAdapter::random() - */ - public function random($seed = null) - { - return 'rand('.((int) $seed).')'; - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/adapter/DBNone.php b/airtime_mvc/library/propel/runtime/lib/adapter/DBNone.php deleted file mode 100644 index 1349f17da7..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/adapter/DBNone.php +++ /dev/null @@ -1,104 +0,0 @@ - (Propel) - * @author Jon S. Stevens (Torque) - * @author Brett McLaughlin (Torque) - * @version $Revision: 1612 $ - * @package propel.runtime.adapter - */ -class DBNone extends DBAdapter -{ - - /** - * @see DBAdapter::initConnection() - */ - public function initConnection(PDO $con, array $settings) - { - } - - /** - * This method is used to ignore case. - * - * @param in The string to transform to upper case. - * @return The upper case string. - */ - public function toUpperCase($in) - { - return $in; - } - - /** - * This method is used to ignore case. - * - * @param in The string whose case to ignore. - * @return The string in a case that can be ignored. - */ - public function ignoreCase($in) - { - return $in; - } - - /** - * Returns SQL which concatenates the second string to the first. - * - * @param string String to concatenate. - * @param string String to append. - * @return string - */ - public function concatString($s1, $s2) - { - return ($s1 . $s2); - } - - /** - * Returns SQL which extracts a substring. - * - * @param string String to extract from. - * @param int Offset to start from. - * @param int Number of characters to extract. - * @return string - */ - public function subString($s, $pos, $len) - { - return substr($s, $pos, $len); - } - - /** - * Returns SQL which calculates the length (in chars) of a string. - * - * @param string String to calculate length of. - * @return string - */ - public function strLength($s) - { - return strlen($s); - } - - /** - * Modifies the passed-in SQL to add LIMIT and/or OFFSET. - */ - public function applyLimit(&$sql, $offset, $limit) - { - } - - /** - * Gets the SQL string that this adapter uses for getting a random number. - * - * @param mixed $seed (optional) seed value for databases that support this - */ - public function random($seed = null) - { - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/adapter/DBOracle.php b/airtime_mvc/library/propel/runtime/lib/adapter/DBOracle.php deleted file mode 100644 index f67000a8e4..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/adapter/DBOracle.php +++ /dev/null @@ -1,150 +0,0 @@ - (Propel) - * @author Hans Lellelid (Propel) - * @author Jon S. Stevens (Torque) - * @author Brett McLaughlin (Torque) - * @author Bill Schneider (Torque) - * @author Daniel Rall (Torque) - * @version $Revision: 1669 $ - * @package propel.runtime.adapter - */ -class DBOracle extends DBAdapter -{ - /** - * This method is called after a connection was created to run necessary - * post-initialization queries or code. - * Removes the charset query and adds the date queries - * - * @param PDO A PDO connection instance. - * @see parent::initConnection() - */ - public function initConnection(PDO $con, array $settings) - { - $con->exec("ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD'"); - $con->exec("ALTER SESSION SET NLS_TIMESTAMP_FORMAT='YYYY-MM-DD HH24:MI:SS'"); - if (isset($settings['queries']) && is_array($settings['queries'])) { - foreach ($settings['queries'] as $queries) { - foreach ((array)$queries as $query) { - $con->exec($query); - } - } - } - } - - /** - * This method is used to ignore case. - * - * @param string $in The string to transform to upper case. - * @return string The upper case string. - */ - public function toUpperCase($in) - { - return "UPPER(" . $in . ")"; - } - - /** - * This method is used to ignore case. - * - * @param string $in The string whose case to ignore. - * @return string The string in a case that can be ignored. - */ - public function ignoreCase($in) - { - return "UPPER(" . $in . ")"; - } - - /** - * Returns SQL which concatenates the second string to the first. - * - * @param string String to concatenate. - * @param string String to append. - * @return string - */ - public function concatString($s1, $s2) - { - return "CONCAT($s1, $s2)"; - } - - /** - * Returns SQL which extracts a substring. - * - * @param string String to extract from. - * @param int Offset to start from. - * @param int Number of characters to extract. - * @return string - */ - public function subString($s, $pos, $len) - { - return "SUBSTR($s, $pos, $len)"; - } - - /** - * Returns SQL which calculates the length (in chars) of a string. - * - * @param string String to calculate length of. - * @return string - */ - public function strLength($s) - { - return "LENGTH($s)"; - } - - /** - * @see DBAdapter::applyLimit() - */ - public function applyLimit(&$sql, $offset, $limit, $criteria = null) - { - if (BasePeer::needsSelectAliases($criteria)) { - $selectSql = BasePeer::createSelectSqlPart($criteria, $params, true); - $sql = $selectSql . substr($sql, strpos('FROM', $sql)); - } - $sql = 'SELECT B.* FROM (' - . 'SELECT A.*, rownum AS PROPEL_ROWNUM FROM (' . $sql . ') A ' - . ') B WHERE '; - - if ( $offset > 0 ) { - $sql .= ' B.PROPEL_ROWNUM > ' . $offset; - if ( $limit > 0 ) { - $sql .= ' AND B.PROPEL_ROWNUM <= ' . ( $offset + $limit ); - } - } else { - $sql .= ' B.PROPEL_ROWNUM <= ' . $limit; - } - } - - protected function getIdMethod() - { - return DBAdapter::ID_METHOD_SEQUENCE; - } - - public function getId(PDO $con, $name = null) - { - if ($name === null) { - throw new PropelException("Unable to fetch next sequence ID without sequence name."); - } - - $stmt = $con->query("SELECT " . $name . ".nextval FROM dual"); - $row = $stmt->fetch(PDO::FETCH_NUM); - - return $row[0]; - } - - public function random($seed=NULL) - { - return 'dbms_random.value'; - } - - -} diff --git a/airtime_mvc/library/propel/runtime/lib/adapter/DBPostgres.php b/airtime_mvc/library/propel/runtime/lib/adapter/DBPostgres.php deleted file mode 100644 index ad32434022..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/adapter/DBPostgres.php +++ /dev/null @@ -1,141 +0,0 @@ -http://www.pgsql.org - * - * @author Hans Lellelid (Propel) - * @author Hakan Tandogan (Torque) - * @version $Revision: 1612 $ - * @package propel.runtime.adapter - */ -class DBPostgres extends DBAdapter -{ - - /** - * This method is used to ignore case. - * - * @param string $in The string to transform to upper case. - * @return string The upper case string. - */ - public function toUpperCase($in) - { - return "UPPER(" . $in . ")"; - } - - /** - * This method is used to ignore case. - * - * @param in The string whose case to ignore. - * @return The string in a case that can be ignored. - */ - public function ignoreCase($in) - { - return "UPPER(" . $in . ")"; - } - - /** - * Returns SQL which concatenates the second string to the first. - * - * @param string String to concatenate. - * @param string String to append. - * @return string - */ - public function concatString($s1, $s2) - { - return "($s1 || $s2)"; - } - - /** - * Returns SQL which extracts a substring. - * - * @param string String to extract from. - * @param int Offset to start from. - * @param int Number of characters to extract. - * @return string - */ - public function subString($s, $pos, $len) - { - return "substring($s from $pos" . ($len > -1 ? "for $len" : "") . ")"; - } - - /** - * Returns SQL which calculates the length (in chars) of a string. - * - * @param string String to calculate length of. - * @return string - */ - public function strLength($s) - { - return "char_length($s)"; - } - - /** - * @see DBAdapter::getIdMethod() - */ - protected function getIdMethod() - { - return DBAdapter::ID_METHOD_SEQUENCE; - } - - /** - * Gets ID for specified sequence name. - */ - public function getId(PDO $con, $name = null) - { - if ($name === null) { - throw new PropelException("Unable to fetch next sequence ID without sequence name."); - } - $stmt = $con->query("SELECT nextval(".$con->quote($name).")"); - $row = $stmt->fetch(PDO::FETCH_NUM); - return $row[0]; - } - - /** - * Returns timestamp formatter string for use in date() function. - * @return string - */ - public function getTimestampFormatter() - { - return "Y-m-d H:i:s O"; - } - - /** - * Returns timestamp formatter string for use in date() function. - * @return string - */ - public function getTimeFormatter() - { - return "H:i:s O"; - } - - /** - * @see DBAdapter::applyLimit() - */ - public function applyLimit(&$sql, $offset, $limit) - { - if ( $limit > 0 ) { - $sql .= " LIMIT ".$limit; - } - if ( $offset > 0 ) { - $sql .= " OFFSET ".$offset; - } - } - - /** - * @see DBAdapter::random() - */ - public function random($seed=NULL) - { - return 'random()'; - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/adapter/DBSQLite.php b/airtime_mvc/library/propel/runtime/lib/adapter/DBSQLite.php deleted file mode 100644 index 4b1da232d5..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/adapter/DBSQLite.php +++ /dev/null @@ -1,116 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.runtime.adapter - */ -class DBSQLite extends DBAdapter -{ - - /** - * For SQLite this method has no effect, since SQLite doesn't support specifying a character - * set (or, another way to look at it, it doesn't require a single character set per DB). - * - * @param PDO A PDO connection instance. - * @param string The charset encoding. - * @throws PropelException If the specified charset doesn't match sqlite_libencoding() - */ - public function setCharset(PDO $con, $charset) - { - } - - /** - * This method is used to ignore case. - * - * @param in The string to transform to upper case. - * @return The upper case string. - */ - public function toUpperCase($in) - { - return 'UPPER(' . $in . ')'; - } - - /** - * This method is used to ignore case. - * - * @param in The string whose case to ignore. - * @return The string in a case that can be ignored. - */ - public function ignoreCase($in) - { - return 'UPPER(' . $in . ')'; - } - - /** - * Returns SQL which concatenates the second string to the first. - * - * @param string String to concatenate. - * @param string String to append. - * @return string - */ - public function concatString($s1, $s2) - { - return "($s1 || $s2)"; - } - - /** - * Returns SQL which extracts a substring. - * - * @param string String to extract from. - * @param int Offset to start from. - * @param int Number of characters to extract. - * @return string - */ - public function subString($s, $pos, $len) - { - return "substr($s, $pos, $len)"; - } - - /** - * Returns SQL which calculates the length (in chars) of a string. - * - * @param string String to calculate length of. - * @return string - */ - public function strLength($s) - { - return "length($s)"; - } - - /** - * @see DBAdapter::quoteIdentifier() - */ - public function quoteIdentifier($text) - { - return '[' . $text . ']'; - } - - /** - * @see DBAdapter::applyLimit() - */ - public function applyLimit(&$sql, $offset, $limit) - { - if ( $limit > 0 ) { - $sql .= " LIMIT " . $limit . ($offset > 0 ? " OFFSET " . $offset : ""); - } elseif ( $offset > 0 ) { - $sql .= " LIMIT -1 OFFSET " . $offset; - } - } - - public function random($seed=NULL) - { - return 'random()'; - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/adapter/MSSQL/MssqlDateTime.class.php b/airtime_mvc/library/propel/runtime/lib/adapter/MSSQL/MssqlDateTime.class.php deleted file mode 100644 index 512c9b4974..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/adapter/MSSQL/MssqlDateTime.class.php +++ /dev/null @@ -1,35 +0,0 @@ -getNestedTransactionCount(); - if ( $opcount === 0 ) { - $return = self::exec('BEGIN TRANSACTION'); - if ($this->useDebug) { - $this->log('Begin transaction', null, __METHOD__); - } - $this->isUncommitable = false; - } - $this->nestedTransactionCount++; - return $return; - } - - /** - * Commit a transaction. - * - * It is necessary to override the abstract PDO transaction functions here, as - * the PDO driver for MSSQL does not support transactions. - */ - public function commit() - { - $return = true; - $opcount = $this->getNestedTransactionCount(); - if ($opcount > 0) { - if ($opcount === 1) { - if ($this->isUncommitable) { - throw new PropelException('Cannot commit because a nested transaction was rolled back'); - } else { - $return = self::exec('COMMIT TRANSACTION'); - if ($this->useDebug) { - $this->log('Commit transaction', null, __METHOD__); - } - - } - } - $this->nestedTransactionCount--; - } - return $return; - } - - /** - * Roll-back a transaction. - * - * It is necessary to override the abstract PDO transaction functions here, as - * the PDO driver for MSSQL does not support transactions. - */ - public function rollBack() - { - $return = true; - $opcount = $this->getNestedTransactionCount(); - if ($opcount > 0) { - if ($opcount === 1) { - $return = self::exec('ROLLBACK TRANSACTION'); - if ($this->useDebug) { - $this->log('Rollback transaction', null, __METHOD__); - } - } else { - $this->isUncommitable = true; - } - $this->nestedTransactionCount--; - } - return $return; - } - - /** - * Rollback the whole transaction, even if this is a nested rollback - * and reset the nested transaction count to 0. - * - * It is necessary to override the abstract PDO transaction functions here, as - * the PDO driver for MSSQL does not support transactions. - */ - public function forceRollBack() - { - $return = true; - $opcount = $this->getNestedTransactionCount(); - if ($opcount > 0) { - // If we're in a transaction, always roll it back - // regardless of nesting level. - $return = self::exec('ROLLBACK TRANSACTION'); - - // reset nested transaction count to 0 so that we don't - // try to commit (or rollback) the transaction outside this scope. - $this->nestedTransactionCount = 0; - - if ($this->useDebug) { - $this->log('Rollback transaction', null, __METHOD__); - } - } - return $return; - } - - public function lastInsertId($seqname = null) - { - $result = self::query('SELECT SCOPE_IDENTITY()'); - return (int) $result->fetchColumn(); - } - - public function quoteIdentifier($text) - { - return '[' . $text . ']'; - } - - public function useQuoteIdentifier() - { - return true; - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/collection/PropelArrayCollection.php b/airtime_mvc/library/propel/runtime/lib/collection/PropelArrayCollection.php deleted file mode 100644 index c85bcecc4b..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/collection/PropelArrayCollection.php +++ /dev/null @@ -1,188 +0,0 @@ -getConnection(Propel::CONNECTION_WRITE); - } - $con->beginTransaction(); - try { - $obj = $this->getWorkerObject(); - foreach ($this as $element) { - $obj->clear(); - $obj->fromArray($element); - $obj->setNew($obj->isPrimaryKeyNull()); - $obj->save($con); - } - $con->commit(); - } catch (PropelException $e) { - $con->rollback(); - } - } - - /** - * Delete all the elements in the collection - */ - public function delete($con = null) - { - if (null === $con) { - $con = $this->getConnection(Propel::CONNECTION_WRITE); - } - $con->beginTransaction(); - try { - foreach ($this as $element) { - $obj = $this->getWorkerObject(); - $obj->setDeleted(false); - $obj->fromArray($element); - $obj->delete($con); - } - $con->commit(); - } catch (PropelException $e) { - $con->rollback(); - throw $e; - } - } - - /** - * Get an array of the primary keys of all the objects in the collection - * - * @return array The list of the primary keys of the collection - */ - public function getPrimaryKeys($usePrefix = true) - { - $callable = array($this->getPeerClass(), 'getPrimaryKeyFromRow'); - $ret = array(); - foreach ($this as $key => $element) { - $key = $usePrefix ? ($this->getModel() . '_' . $key) : $key; - $ret[$key]= call_user_func($callable, array_values($element)); - } - - return $ret; - } - - /** - * Populates the collection from an array - * Uses the object model to force the column types - * Does not empty the collection before adding the data from the array - * - * @param array $arr - */ - public function fromArray($arr) - { - $obj = $this->getWorkerObject(); - foreach ($arr as $element) { - $obj->clear(); - $obj->fromArray($element); - $this->append($obj->toArray()); - } - } - - /** - * Get an array representation of the collection - * This is not an alias for getData(), since it returns a copy of the data - * - * @param string $keyColumn If null, the returned array uses an incremental index. - * Otherwise, the array is indexed using the specified column - * @param boolean $usePrefix If true, the returned array prefixes keys - * with the model class name ('Article_0', 'Article_1', etc). - * - * - * $bookCollection->toArray(); - * array( - * 0 => array('Id' => 123, 'Title' => 'War And Peace'), - * 1 => array('Id' => 456, 'Title' => 'Don Juan'), - * ) - * $bookCollection->toArray('Id'); - * array( - * 123 => array('Id' => 123, 'Title' => 'War And Peace'), - * 456 => array('Id' => 456, 'Title' => 'Don Juan'), - * ) - * $bookCollection->toArray(null, true); - * array( - * 'Book_0' => array('Id' => 123, 'Title' => 'War And Peace'), - * 'Book_1' => array('Id' => 456, 'Title' => 'Don Juan'), - * ) - * - * @return array - */ - public function toArray($keyColumn = null, $usePrefix = false) - { - $ret = array(); - foreach ($this as $key => $element) { - $key = null === $keyColumn ? $key : $element[$keyColumn]; - $key = $usePrefix ? ($this->getModel() . '_' . $key) : $key; - $ret[$key] = $element; - } - - return $ret; - } - - /** - * Synonym for toArray(), to provide a similar interface to PopelObjectCollection - */ - public function getArrayCopy($keyColumn = null, $usePrefix = false) - { - if (null === $keyColumn && false === $usePrefix) { - return parent::getArrayCopy(); - } else { - return $this->toArray($keyColumn, $usePrefix); - } - } - - /** - * Get an associative array representation of the collection - * The first parameter specifies the column to be used for the key, - * And the seconf for the value. - * - * $res = $coll->toKeyValue('Id', 'Name'); - * - * - * @return array - */ - public function toKeyValue($keyColumn, $valueColumn) - { - $ret = array(); - foreach ($this as $obj) { - $ret[$obj[$keyColumn]] = $obj[$valueColumn]; - } - - return $ret; - } - - protected function getWorkerObject() - { - if (null === $this->workerObject) { - if ($this->model == '') { - throw new PropelException('You must set the collection model before interacting with it'); - } - $class = $this->getModel(); - $this->workerObject = new $class(); - } - - return $this->workerObject; - } - -} - -?> \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/collection/PropelCollection.php b/airtime_mvc/library/propel/runtime/lib/collection/PropelCollection.php deleted file mode 100644 index a62b12da77..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/collection/PropelCollection.php +++ /dev/null @@ -1,409 +0,0 @@ -getArrayCopy(); - } - - /** - * Set the data in the collection - * - * @param array $data - */ - public function setData($data) - { - $this->exchangeArray($data); - } - - /** - * Gets the position of the internal pointer - * This position can be later used in seek() - * - * @return int - */ - public function getPosition() - { - return (int) $this->getInternalIterator()->key(); - } - - /** - * Move the internal pointer to the beginning of the list - * And get the first element in the collection - * - * @return mixed - */ - public function getFirst() - { - $this->getInternalIterator()->rewind(); - return $this->getCurrent(); - } - - /** - * Check whether the internal pointer is at the beginning of the list - * - * @return boolean - */ - public function isFirst() - { - return $this->getPosition() == 0; - } - - /** - * Move the internal pointer backward - * And get the previous element in the collection - * - * @return mixed - */ - public function getPrevious() - { - $pos = $this->getPosition(); - if ($pos == 0) { - return null; - } else { - $this->getInternalIterator()->seek($pos - 1); - return $this->getCurrent(); - } - } - - /** - * Get the current element in the collection - * - * @return mixed - */ - public function getCurrent() - { - return $this->getInternalIterator()->current(); - } - - /** - * Move the internal pointer forward - * And get the next element in the collection - * - * @return mixed - */ - public function getNext() - { - $this->getInternalIterator()->next(); - return $this->getCurrent(); - } - - /** - * Move the internal pointer to the end of the list - * And get the last element in the collection - * - * @return mixed - */ - public function getLast() - { - $count = $this->count(); - if ($count == 0) { - return null; - } else { - $this->getInternalIterator()->seek($count - 1); - return $this->getCurrent(); - } - } - - /** - * Check whether the internal pointer is at the end of the list - * - * @return boolean - */ - public function isLast() - { - $count = $this->count(); - if ($count == 0) { - // empty list... so yes, this is the last - return true; - } else { - return $this->getPosition() == $count - 1; - } - } - - /** - * Check if the collection is empty - * - * @return boolean - */ - public function isEmpty() - { - return $this->count() == 0; - } - - /** - * Check if the current index is an odd integer - * - * @return boolean - */ - public function isOdd() - { - return (boolean) ($this->getInternalIterator()->key() % 2); - } - - /** - * Check if the current index is an even integer - * - * @return boolean - */ - public function isEven() - { - return !$this->isOdd(); - } - - /** - * Get an element from its key - * Alias for ArrayObject::offsetGet() - * - * @param mixed $key - * - * @return mixed The element - */ - public function get($key) - { - if (!$this->offsetExists($key)) { - throw new PropelException('Unknown key ' . $key); - } - return $this->offsetGet($key); - } - - /** - * Pops an element off the end of the collection - * - * @return mixed The popped element - */ - public function pop() - { - if ($this->count() == 0) { - return null; - } - $ret = $this->getLast(); - $lastKey = $this->getInternalIterator()->key(); - $this->offsetUnset((string) $lastKey); - return $ret; - } - - /** - * Pops an element off the beginning of the collection - * - * @return mixed The popped element - */ - public function shift() - { - // the reindexing is complicated to deal with through the iterator - // so let's use the simple solution - $arr = $this->getArrayCopy(); - $ret = array_shift($arr); - $this->exchangeArray($arr); - - return $ret; - } - - /** - * Prepend one or more elements to the beginning of the collection - * - * @param mixed $value the element to prepend - * - * @return int The number of new elements in the array - */ - public function prepend($value) - { - // the reindexing is complicated to deal with through the iterator - // so let's use the simple solution - $arr = $this->getArrayCopy(); - $ret = array_unshift($arr, $value); - $this->exchangeArray($arr); - - return $ret; - } - - /** - * Add an element to the collection with the given key - * Alias for ArrayObject::offsetSet() - * - * @param mixed $key - * @param mixed $value - */ - public function set($key, $value) - { - return $this->offsetSet($key, $value); - } - - /** - * Removes a specified collection element - * Alias for ArrayObject::offsetUnset() - * - * @param mixed $key - * - * @return mixed The removed element - */ - public function remove($key) - { - if (!$this->offsetExists($key)) { - throw new PropelException('Unknown key ' . $key); - } - return $this->offsetUnset($key); - } - - /** - * Clears the collection - * - * @return array The previous collection - */ - public function clear() - { - return $this->exchangeArray(array()); - } - - /** - * Whether or not this collection contains a specified element - * - * @param mixed $element the element - * - * @return boolean - */ - public function contains($element) - { - return in_array($element, $this->getArrayCopy(), true); - } - - /** - * Search an element in the collection - * - * @param mixed $element - * - * @return mixed Returns the key for the element if it is found in the collection, FALSE otherwise - */ - public function search($element) - { - return array_search($element, $this->getArrayCopy(), true); - } - - // Serializable interface - - public function serialize() - { - $repr = array( - 'data' => $this->getArrayCopy(), - 'model' => $this->model, - ); - return serialize($repr); - } - - public function unserialize($data) - { - $repr = unserialize($data); - $this->exchangeArray($repr['data']); - $this->model = $repr['model']; - } - - // IteratorAggregate method - - /** - * Overrides ArrayObject::getIterator() to save the iterator object - * for internal use e.g. getNext(), isOdd(), etc. - */ - public function getIterator() - { - $this->iterator = new ArrayIterator($this); - return $this->iterator; - } - - public function getInternalIterator() - { - if (null === $this->iterator) { - return $this->getIterator(); - } - return $this->iterator; - } - - // Propel collection methods - - /** - * Set the model of the elements in the collection - * - * @param string $model Name of the Propel object classes stored in the collection - */ - public function setModel($model) - { - $this->model = $model; - } - - /** - * Get the model of the elements in the collection - * - * @return string Name of the Propel object class stored in the collection - */ - public function getModel() - { - return $this->model; - } - - /** - * Get the peer class of the elements in the collection - * - * @return string Name of the Propel peer class stored in the collection - */ - public function getPeerClass() - { - if ($this->model == '') { - throw new PropelException('You must set the collection model before interacting with it'); - } - return constant($this->getModel() . '::PEER'); - } - - public function setFormatter(PropelFormatter $formatter) - { - $this->formatter = $formatter; - } - - public function getFormatter() - { - return $this->formatter; - } - - /** - * Get a connection object for the database containing the elements of the collection - * - * @param string $type The connection type (Propel::CONNECTION_READ by default; can be Propel::connection_WRITE) - * - * @return PropelPDO a connection object - */ - public function getConnection($type = Propel::CONNECTION_READ) - { - $databaseName = constant($this->getPeerClass() . '::DATABASE_NAME'); - - return Propel::getConnection($databaseName, $type); - } - -} - -?> \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/collection/PropelObjectCollection.php b/airtime_mvc/library/propel/runtime/lib/collection/PropelObjectCollection.php deleted file mode 100644 index 37061affa6..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/collection/PropelObjectCollection.php +++ /dev/null @@ -1,249 +0,0 @@ -getConnection(Propel::CONNECTION_WRITE); - } - $con->beginTransaction(); - try { - foreach ($this as $element) { - $element->save($con); - } - $con->commit(); - } catch (PropelException $e) { - $con->rollback(); - throw $e; - } - } - - /** - * Delete all the elements in the collection - */ - public function delete($con = null) - { - if (null === $con) { - $con = $this->getConnection(Propel::CONNECTION_WRITE); - } - $con->beginTransaction(); - try { - foreach ($this as $element) { - $element->delete($con); - } - $con->commit(); - } catch (PropelException $e) { - $con->rollback(); - throw $e; - } - } - - /** - * Get an array of the primary keys of all the objects in the collection - * - * @return array The list of the primary keys of the collection - */ - public function getPrimaryKeys($usePrefix = true) - { - $ret = array(); - foreach ($this as $key => $obj) { - $key = $usePrefix ? ($this->getModel() . '_' . $key) : $key; - $ret[$key]= $obj->getPrimaryKey(); - } - - return $ret; - } - - /** - * Populates the collection from an array - * Each object is populated from an array and the result is stored - * Does not empty the collection before adding the data from the array - * - * @param array $arr - */ - public function fromArray($arr) - { - $class = $this->getModel(); - foreach ($arr as $element) { - $obj = new $class(); - $obj->fromArray($element); - $this->append($obj); - } - } - - /** - * Get an array representation of the collection - * Each object is turned into an array and the result is returned - * - * @param string $keyColumn If null, the returned array uses an incremental index. - * Otherwise, the array is indexed using the specified column - * @param boolean $usePrefix If true, the returned array prefixes keys - * with the model class name ('Article_0', 'Article_1', etc). - * - * - * $bookCollection->toArray(); - * array( - * 0 => array('Id' => 123, 'Title' => 'War And Peace'), - * 1 => array('Id' => 456, 'Title' => 'Don Juan'), - * ) - * $bookCollection->toArray('Id'); - * array( - * 123 => array('Id' => 123, 'Title' => 'War And Peace'), - * 456 => array('Id' => 456, 'Title' => 'Don Juan'), - * ) - * $bookCollection->toArray(null, true); - * array( - * 'Book_0' => array('Id' => 123, 'Title' => 'War And Peace'), - * 'Book_1' => array('Id' => 456, 'Title' => 'Don Juan'), - * ) - * - * @return array - */ - public function toArray($keyColumn = null, $usePrefix = false) - { - $ret = array(); - $keyGetterMethod = 'get' . $keyColumn; - foreach ($this as $key => $obj) { - $key = null === $keyColumn ? $key : $obj->$keyGetterMethod(); - $key = $usePrefix ? ($this->getModel() . '_' . $key) : $key; - $ret[$key] = $obj->toArray(); - } - - return $ret; - } - - /** - * Get an array representation of the collection - * - * @param string $keyColumn If null, the returned array uses an incremental index. - * Otherwise, the array is indexed using the specified column - * @param boolean $usePrefix If true, the returned array prefixes keys - * with the model class name ('Article_0', 'Article_1', etc). - * - * - * $bookCollection->getArrayCopy(); - * array( - * 0 => $book0, - * 1 => $book1, - * ) - * $bookCollection->getArrayCopy('Id'); - * array( - * 123 => $book0, - * 456 => $book1, - * ) - * $bookCollection->getArrayCopy(null, true); - * array( - * 'Book_0' => $book0, - * 'Book_1' => $book1, - * ) - * - * @return array - */ - public function getArrayCopy($keyColumn = null, $usePrefix = false) - { - if (null === $keyColumn && false === $usePrefix) { - return parent::getArrayCopy(); - } - $ret = array(); - $keyGetterMethod = 'get' . $keyColumn; - foreach ($this as $key => $obj) { - $key = null === $keyColumn ? $key : $obj->$keyGetterMethod(); - $key = $usePrefix ? ($this->getModel() . '_' . $key) : $key; - $ret[$key] = $obj; - } - - return $ret; - } - - /** - * Get an associative array representation of the collection - * The first parameter specifies the column to be used for the key, - * And the seconf for the value. - * - * $res = $coll->toKeyValue('Id', 'Name'); - * - * - * @return array - */ - public function toKeyValue($keyColumn = 'PrimaryKey', $valueColumn = null) - { - $ret = array(); - $keyGetterMethod = 'get' . $keyColumn; - $valueGetterMethod = (null === $valueColumn) ? '__toString' : ('get' . $valueColumn); - foreach ($this as $obj) { - $ret[$obj->$keyGetterMethod()] = $obj->$valueGetterMethod(); - } - - return $ret; - } - - /** - * Makes an additional query to populate the objects related to the collection objects - * by a certain relation - * - * @param string $relation Relation name (e.g. 'Book') - * @param Criteria $criteria Optional Criteria object to filter the related object collection - * @param PropelPDO $con Optional connection object - * - * @return PropelObjectCollection the list of related objects - */ - public function populateRelation($relation, $criteria = null, $con = null) - { - if (!Propel::isInstancePoolingEnabled()) { - throw new PropelException('populateRelation() needs instance pooling to be enabled prior to populating the collection'); - } - $relationMap = $this->getFormatter()->getTableMap()->getRelation($relation); - $symRelationMap = $relationMap->getSymmetricalRelation(); - - // query the db for the related objects - $useMethod = 'use' . $symRelationMap->getName() . 'Query'; - $query = PropelQuery::from($relationMap->getRightTable()->getPhpName()); - if (null !== $criteria) { - $query->mergeWith($criteria); - } - $relatedObjects = $query - ->$useMethod() - ->filterByPrimaryKeys($this->getPrimaryKeys()) - ->endUse() - ->find($con); - - // associate the related objects to the main objects - if ($relationMap->getType() == RelationMap::ONE_TO_MANY) { - $getMethod = 'get' . $symRelationMap->getName(); - $addMethod = 'add' . $relationMap->getName(); - foreach ($relatedObjects as $object) { - $mainObj = $object->$getMethod(); // instance pool is used here to avoid a query - $mainObj->$addMethod($object); - } - } elseif ($relationMap->getType() == RelationMap::MANY_TO_ONE) { - // nothing to do; the instance pool will catch all calls to getRelatedObject() - // and return the object in memory - } else { - throw new PropelException('populateRelation() does not support this relation type'); - } - - return $relatedObjects; - } - -} - -?> \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/collection/PropelOnDemandCollection.php b/airtime_mvc/library/propel/runtime/lib/collection/PropelOnDemandCollection.php deleted file mode 100644 index 409aef32f0..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/collection/PropelOnDemandCollection.php +++ /dev/null @@ -1,151 +0,0 @@ -iterator = new PropelOnDemandIterator($formatter, $stmt); - } - - // IteratorAggregate Interface - - public function getIterator() - { - return $this->iterator; - } - - // ArrayAccess Interface - - public function offsetExists($offset) - { - if ($offset == $this->currentKey) { - return true; - } - throw new PropelException('The On Demand Collection does not allow acces by offset'); - } - - public function offsetGet($offset) - { - if ($offset == $this->currentKey) { - return $this->currentRow; - } - throw new PropelException('The On Demand Collection does not allow acces by offset'); - } - - public function offsetSet($offset, $value) - { - throw new PropelException('The On Demand Collection is read only'); - } - - public function offsetUnset($offset) - { - throw new PropelException('The On Demand Collection is read only'); - } - - // Serializable Interface - - public function serialize() - { - throw new PropelException('The On Demand Collection cannot be serialized'); - } - - public function unserialize($data) - { - throw new PropelException('The On Demand Collection cannot be serialized'); - } - - // Countable Interface - - /** - * Returns the number of rows in the resultset - * Warning: this number is inaccurate for most databases. Do not rely on it for a portable application. - * - * @return int number of results - */ - public function count() - { - return $this->iterator->count(); - } - - // ArrayObject methods - - public function append($value) - { - throw new PropelException('The On Demand Collection is read only'); - } - - public function prepend($value) - { - throw new PropelException('The On Demand Collection is read only'); - } - - public function asort() - { - throw new PropelException('The On Demand Collection is read only'); - } - - public function exchangeArray($input) - { - throw new PropelException('The On Demand Collection is read only'); - } - - public function getArrayCopy() - { - throw new PropelException('The On Demand Collection does not allow acces by offset'); - } - - public function getFlags() - { - throw new PropelException('The On Demand Collection does not allow acces by offset'); - } - - public function ksort() - { - throw new PropelException('The On Demand Collection is read only'); - } - - public function natcasesort() - { - throw new PropelException('The On Demand Collection is read only'); - } - - public function natsort() - { - throw new PropelException('The On Demand Collection is read only'); - } - - public function setFlags($flags) - { - throw new PropelException('The On Demand Collection does not allow acces by offset'); - } - - public function uasort($cmp_function) - { - throw new PropelException('The On Demand Collection is read only'); - } - - public function uksort($cmp_function) - { - throw new PropelException('The On Demand Collection is read only'); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/collection/PropelOnDemandIterator.php b/airtime_mvc/library/propel/runtime/lib/collection/PropelOnDemandIterator.php deleted file mode 100644 index e814781b58..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/collection/PropelOnDemandIterator.php +++ /dev/null @@ -1,118 +0,0 @@ -formatter = $formatter; - $this->stmt = $stmt; - $this->enableInstancePoolingOnFinish = Propel::disableInstancePooling(); - } - - public function closeCursor() - { - $this->stmt->closeCursor(); - } - - /** - * Returns the number of rows in the resultset - * Warning: this number is inaccurate for most databases. Do not rely on it for a portable application. - * - * @return int number of results - */ - public function count() - { - return $this->stmt->rowCount(); - } - - // Iterator Interface - - /** - * Gets the current Model object in the collection - * This is where the hydration takes place. - * - * @see PropelObjectFormatter::getAllObjectsFromRow() - * - * @return BaseObject - */ - public function current() - { - return $this->formatter->getAllObjectsFromRow($this->currentRow); - } - - /** - * Gets the current key in the iterator - * - * @return string - */ - public function key() - { - return $this->currentKey; - } - - /** - * Advances the curesor in the statement - * Closes the cursor if the end of the statement is reached - */ - public function next() - { - $this->currentRow = $this->stmt->fetch(PDO::FETCH_NUM); - $this->currentKey++; - $this->isValid = (boolean) $this->currentRow; - if (!$this->isValid) { - $this->closeCursor(); - if ($this->enableInstancePoolingOnFinish) { - Propel::enableInstancePooling(); - } - } - } - - /** - * Initializes the iterator by advancing to the first position - * This method can only be called once (this is a NoRewindIterator) - */ - public function rewind() - { - // check that the hydration can begin - if (null === $this->formatter) { - throw new PropelException('The On Demand collection requires a formatter. Add it by calling setFormatter()'); - } - if (null === $this->stmt) { - throw new PropelException('The On Demand collection requires a statement. Add it by calling setStatement()'); - } - if (null !== $this->isValid) { - throw new PropelException('The On Demand collection can only be iterated once'); - } - - // initialize the current row and key - $this->next(); - } - - public function valid() - { - return $this->isValid; - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/config/PropelConfiguration.php b/airtime_mvc/library/propel/runtime/lib/config/PropelConfiguration.php deleted file mode 100644 index 299677f296..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/config/PropelConfiguration.php +++ /dev/null @@ -1,159 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.runtime.config - */ -class PropelConfiguration implements ArrayAccess -{ - const TYPE_ARRAY = 1; - - const TYPE_ARRAY_FLAT = 2; - - const TYPE_OBJECT = 3; - - /** - * @var array An array of parameters - */ - protected $parameters = array(); - - /** - * Construct a new configuration container - * - * @param array $parameters - */ - public function __construct(array $parameters = array()) - { - $this->parameters = $parameters; - } - - /** - * @see http://www.php.net/ArrayAccess - */ - public function offsetExists($offset) - { - return array_key_exists($offset, $this->parameters); - } - - /** - * @see http://www.php.net/ArrayAccess - */ - public function offsetSet($offset, $value) - { - $this->parameter[$offset] = $value; - } - - /** - * @see http://www.php.net/ArrayAccess - */ - public function offsetGet($offset) - { - return $this->parameters[$offset]; - } - - /** - * @see http://www.php.net/ArrayAccess - */ - public function offsetUnset($offset) - { - unset($this->parameters[$offset]); - } - - /** - * Get parameter value from the container - * - * @param string $name Parameter name - * @param mixed $default Default value to be used if the - * requested value is not found - * @return mixed Parameter value or the default - */ - public function getParameter($name, $default = null) - { - $ret = $this->parameters; - $parts = explode('.', $name); //name.space.name - while ($part = array_shift($parts)) { - if (isset($ret[$part])) { - $ret = $ret[$part]; - } else { - return $default; - } - } - return $ret; - } - - /** - * Store a value to the container - * - * @param string $name Configuration item name (name.space.name) - * @param mixed $value Value to be stored - */ - public function setParameter($name, $value) - { - $param = &$this->parameters; - $parts = explode('.', $name); //name.space.name - while ($part = array_shift($parts)) { - $param = &$param[$part]; - } - $param = $value; - } - - /** - * - * - * @param int $type - * @return mixed - */ - public function getParameters($type = PropelConfiguration::TYPE_ARRAY) - { - switch ($type) { - case PropelConfiguration::TYPE_ARRAY: - return $this->parameters; - case PropelConfiguration::TYPE_ARRAY_FLAT: - return $this->toFlatArray(); - case PropelConfiguration::TYPE_OBJECT: - return $this; - default: - throw new PropelException('Unknown configuration type: '. var_export($type, true)); - } - - } - - - /** - * Get the configuration as a flat array. ($array['name.space.item'] = 'value') - * - * @return array - */ - protected function toFlatArray() - { - $result = array(); - $it = new PropelConfigurationIterator(new RecursiveArrayIterator($this->parameters), RecursiveIteratorIterator::SELF_FIRST); - foreach($it as $key => $value) { - $ns = $it->getDepth() ? $it->getNamespace() . '.'. $key : $key; - if ($it->getNodeType() == PropelConfigurationIterator::NODE_ITEM) { - $result[$ns] = $value; - } - } - - return $result; - } - -} - -?> diff --git a/airtime_mvc/library/propel/runtime/lib/config/PropelConfigurationIterator.php b/airtime_mvc/library/propel/runtime/lib/config/PropelConfigurationIterator.php deleted file mode 100644 index 45552d9dbc..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/config/PropelConfigurationIterator.php +++ /dev/null @@ -1,103 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.runtime.config - */ -class PropelConfigurationIterator extends RecursiveIteratorIterator -{ - /** - * Node is a parent node - */ - const NODE_PARENT = 0; - - /** - * Node is an actual configuration item - */ - const NODE_ITEM = 1; - - /** - * Namespace stack when recursively iterating the configuration tree - * - * @var array - */ - protected $namespaceStack = array(); - - /** - * Current node type. Possible values: null (undefined), self::NODE_PARENT or self::NODE_ITEM - * - * @var int - */ - protected $nodeType = null; - - /** - * Get current namespace - * - * @return string - */ - public function getNamespace() - { - return implode('.', $this->namespaceStack); - } - - /** - * Get current node type. - * - * @see http://www.php.net/RecursiveIteratorIterator - * @return int - * - null (undefined) - * - self::NODE_PARENT - * - self::NODE_ITEM - */ - public function getNodeType() - { - return $this->nodeType; - } - - /** - * Get the current element - * - * @see http://www.php.net/RecursiveIteratorIterator - * @return mixed - */ - public function current() - { - $current = parent::current(); - if (is_array($current)) { - $this->namespaceStack[] = $this->key(); - $this->nodeType = self::NODE_PARENT; - } - else { - $this->nodeType = self::NODE_ITEM; - } - - return $current; - } - - /** - * Called after current child iterator is invalid and right before it gets destructed. - * - * @see http://www.php.net/RecursiveIteratorIterator - */ - public function endChildren() - { - if ($this->namespaceStack) { - array_pop($this->namespaceStack); - } - } - -} - -?> diff --git a/airtime_mvc/library/propel/runtime/lib/connection/DebugPDO.php b/airtime_mvc/library/propel/runtime/lib/connection/DebugPDO.php deleted file mode 100644 index e9dd0759ad..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/connection/DebugPDO.php +++ /dev/null @@ -1,111 +0,0 @@ -setParameter('debugpdo.logging.details.slow.enabled', true); - * $config->setParameter('debugpdo.logging.details.slow.threshold', 1.5); - * $config->setParameter('debugpdo.logging.details.time.enabled', true); - * - * @author Francois Zaninotto - * @author Cameron Brunner - * @author Hans Lellelid - * @author Christian Abegg - * @author Jarno Rantanen - * @since 2006-09-22 - * @package propel.runtime.connection - */ -class DebugPDO extends PropelPDO -{ - public $useDebug = true; -} diff --git a/airtime_mvc/library/propel/runtime/lib/connection/DebugPDOStatement.php b/airtime_mvc/library/propel/runtime/lib/connection/DebugPDOStatement.php deleted file mode 100644 index f1b2243e19..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/connection/DebugPDOStatement.php +++ /dev/null @@ -1,122 +0,0 @@ - - * @author Jarno Rantanen - * @since 2007-07-12 - * @package propel.runtime.connection - */ -class DebugPDOStatement extends PDOStatement -{ - - /** - * The PDO connection from which this instance was created. - * - * @var PropelPDO - */ - protected $pdo; - - /** - * Hashmap for resolving the PDO::PARAM_* class constants to their human-readable names. - * - * This is only used in logging the binding of variables. - * - * @see self::bindValue() - * @var array - */ - protected static $typeMap = array( - PDO::PARAM_BOOL => "PDO::PARAM_BOOL", - PDO::PARAM_INT => "PDO::PARAM_INT", - PDO::PARAM_STR => "PDO::PARAM_STR", - PDO::PARAM_LOB => "PDO::PARAM_LOB", - PDO::PARAM_NULL => "PDO::PARAM_NULL", - ); - - /** - * @var array The values that have been bound - */ - protected $boundValues = array(); - - /** - * Construct a new statement class with reference to main DebugPDO object from - * which this instance was created. - * - * @param DebugPDO $pdo Reference to the parent PDO instance. - */ - protected function __construct(PropelPDO $pdo) - { - $this->pdo = $pdo; - } - - public function getExecutedQueryString() - { - $sql = $this->queryString; - $matches = array(); - if (preg_match_all('/(:p[0-9]+\b)/', $sql, $matches)) { - $size = count($matches[1]); - for ($i = $size-1; $i >= 0; $i--) { - $pos = $matches[1][$i]; - $sql = str_replace($pos, $this->boundValues[$pos], $sql); - } - } - - return $sql; - } - - /** - * Executes a prepared statement. Returns a boolean value indicating success. - * - * Overridden for query counting and logging. - * - * @return bool - */ - public function execute($input_parameters = null) - { - $debug = $this->pdo->getDebugSnapshot(); - $return = parent::execute($input_parameters); - - $sql = $this->getExecutedQueryString(); - $this->pdo->log($sql, null, __METHOD__, $debug); - $this->pdo->setLastExecutedQuery($sql); - $this->pdo->incrementQueryCount(); - - return $return; - } - - /** - * Binds a value to a corresponding named or question mark placeholder in the SQL statement - * that was use to prepare the statement. Returns a boolean value indicating success. - * - * @param int $pos Parameter identifier (for determining what to replace in the query). - * @param mixed $value The value to bind to the parameter. - * @param int $type Explicit data type for the parameter using the PDO::PARAM_* constants. Defaults to PDO::PARAM_STR. - * @return boolean - */ - public function bindValue($pos, $value, $type = PDO::PARAM_STR) - { - $debug = $this->pdo->getDebugSnapshot(); - $typestr = isset(self::$typeMap[$type]) ? self::$typeMap[$type] : '(default)'; - $return = parent::bindValue($pos, $value, $type); - $valuestr = $type == PDO::PARAM_LOB ? '[LOB value]' : var_export($value, true); - $msg = "Binding $valuestr at position $pos w/ PDO type $typestr"; - - $this->boundValues[$pos] = $valuestr; - - $this->pdo->log($msg, null, __METHOD__, $debug); - - return $return; - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/connection/PropelPDO.php b/airtime_mvc/library/propel/runtime/lib/connection/PropelPDO.php deleted file mode 100644 index 6bfa5a07b4..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/connection/PropelPDO.php +++ /dev/null @@ -1,716 +0,0 @@ - - * @author Hans Lellelid - * @author Christian Abegg - * @since 2006-09-22 - * @package propel.runtime.connection - */ -class PropelPDO extends PDO -{ - - /** - * Attribute to use to set whether to cache prepared statements. - */ - const PROPEL_ATTR_CACHE_PREPARES = -1; - - const DEFAULT_SLOW_THRESHOLD = 0.1; - const DEFAULT_ONLYSLOW_ENABLED = false; - - /** - * The current transaction depth. - * @var int - */ - protected $nestedTransactionCount = 0; - - /** - * Cache of prepared statements (PDOStatement) keyed by md5 of SQL. - * - * @var array [md5(sql) => PDOStatement] - */ - protected $preparedStatements = array(); - - /** - * Whether to cache prepared statements. - * - * @var boolean - */ - protected $cachePreparedStatements = false; - - /** - * Whether the final commit is possible - * Is false if a nested transaction is rolled back - */ - protected $isUncommitable = false; - - /** - * Count of queries performed. - * - * @var int - */ - protected $queryCount = 0; - - /** - * SQL code of the latest performed query. - * - * @var string - */ - protected $lastExecutedQuery; - - /** - * Whether or not the debug is enabled - * - * @var boolean - */ - public $useDebug = false; - - /** - * Configured BasicLogger (or compatible) logger. - * - * @var BasicLogger - */ - protected $logger; - - /** - * The log level to use for logging. - * - * @var int - */ - private $logLevel = Propel::LOG_DEBUG; - - /** - * The default value for runtime config item "debugpdo.logging.methods". - * - * @var array - */ - protected static $defaultLogMethods = array( - 'PropelPDO::exec', - 'PropelPDO::query', - 'DebugPDOStatement::execute', - ); - - /** - * Creates a PropelPDO instance representing a connection to a database. - *. - * If so configured, specifies a custom PDOStatement class and makes an entry - * to the log with the state of this object just after its initialization. - * Add PropelPDO::__construct to $defaultLogMethods to see this message - * - * @param string $dsn Connection DSN. - * @param string $username (optional) The user name for the DSN string. - * @param string $password (optional) The password for the DSN string. - * @param array $driver_options (optional) A key=>value array of driver-specific connection options. - * @throws PDOException if there is an error during connection initialization. - */ - public function __construct($dsn, $username = null, $password = null, $driver_options = array()) - { - if ($this->useDebug) { - $debug = $this->getDebugSnapshot(); - } - - parent::__construct($dsn, $username, $password, $driver_options); - - if ($this->useDebug) { - $this->configureStatementClass('DebugPDOStatement', $suppress = true); - $this->log('Opening connection', null, __METHOD__, $debug); - } - } - - /** - * Gets the current transaction depth. - * @return int - */ - public function getNestedTransactionCount() - { - return $this->nestedTransactionCount; - } - - /** - * Set the current transaction depth. - * @param int $v The new depth. - */ - protected function setNestedTransactionCount($v) - { - $this->nestedTransactionCount = $v; - } - - /** - * Is this PDO connection currently in-transaction? - * This is equivalent to asking whether the current nested transaction count - * is greater than 0. - * @return boolean - */ - public function isInTransaction() - { - return ($this->getNestedTransactionCount() > 0); - } - - /** - * Check whether the connection contains a transaction that can be committed. - * To be used in an evironment where Propelexceptions are caught. - * - * @return boolean True if the connection is in a committable transaction - */ - public function isCommitable() - { - return $this->isInTransaction() && !$this->isUncommitable; - } - - /** - * Overrides PDO::beginTransaction() to prevent errors due to already-in-progress transaction. - */ - public function beginTransaction() - { - $return = true; - if (!$this->nestedTransactionCount) { - $return = parent::beginTransaction(); - if ($this->useDebug) { - $this->log('Begin transaction', null, __METHOD__); - } - $this->isUncommitable = false; - } - $this->nestedTransactionCount++; - return $return; - } - - /** - * Overrides PDO::commit() to only commit the transaction if we are in the outermost - * transaction nesting level. - */ - public function commit() - { - $return = true; - $opcount = $this->nestedTransactionCount; - if ($opcount > 0) { - if ($opcount === 1) { - if ($this->isUncommitable) { - throw new PropelException('Cannot commit because a nested transaction was rolled back'); - } else { - $return = parent::commit(); - if ($this->useDebug) { - $this->log('Commit transaction', null, __METHOD__); - } - } - } - $this->nestedTransactionCount--; - } - return $return; - } - - /** - * Overrides PDO::rollBack() to only rollback the transaction if we are in the outermost - * transaction nesting level - * @return boolean Whether operation was successful. - */ - public function rollBack() - { - $return = true; - $opcount = $this->nestedTransactionCount; - if ($opcount > 0) { - if ($opcount === 1) { - $return = parent::rollBack(); - if ($this->useDebug) { - $this->log('Rollback transaction', null, __METHOD__); - } - } else { - $this->isUncommitable = true; - } - $this->nestedTransactionCount--; - } - return $return; - } - - /** - * Rollback the whole transaction, even if this is a nested rollback - * and reset the nested transaction count to 0. - * @return boolean Whether operation was successful. - */ - public function forceRollBack() - { - $return = true; - if ($this->nestedTransactionCount) { - // If we're in a transaction, always roll it back - // regardless of nesting level. - $return = parent::rollBack(); - - // reset nested transaction count to 0 so that we don't - // try to commit (or rollback) the transaction outside this scope. - $this->nestedTransactionCount = 0; - - if ($this->useDebug) { - $this->log('Rollback transaction', null, __METHOD__); - } - } - return $return; - } - - /** - * Sets a connection attribute. - * - * This is overridden here to provide support for setting Propel-specific attributes - * too. - * - * @param int $attribute The attribute to set (e.g. PropelPDO::PROPEL_ATTR_CACHE_PREPARES). - * @param mixed $value The attribute value. - */ - public function setAttribute($attribute, $value) - { - switch($attribute) { - case self::PROPEL_ATTR_CACHE_PREPARES: - $this->cachePreparedStatements = $value; - break; - default: - parent::setAttribute($attribute, $value); - } - } - - /** - * Gets a connection attribute. - * - * This is overridden here to provide support for setting Propel-specific attributes - * too. - * - * @param int $attribute The attribute to get (e.g. PropelPDO::PROPEL_ATTR_CACHE_PREPARES). - */ - public function getAttribute($attribute) - { - switch($attribute) { - case self::PROPEL_ATTR_CACHE_PREPARES: - return $this->cachePreparedStatements; - break; - default: - return parent::getAttribute($attribute); - } - } - - /** - * Prepares a statement for execution and returns a statement object. - * - * Overrides PDO::prepare() in order to: - * - Add logging and query counting if logging is true. - * - Add query caching support if the PropelPDO::PROPEL_ATTR_CACHE_PREPARES was set to true. - * - * @param string $sql This must be a valid SQL statement for the target database server. - * @param array One or more key => value pairs to set attribute values - * for the PDOStatement object that this method returns. - * @return PDOStatement - */ - public function prepare($sql, $driver_options = array()) - { - if ($this->useDebug) { - $debug = $this->getDebugSnapshot(); - } - - if ($this->cachePreparedStatements) { - if (!isset($this->preparedStatements[$sql])) { - $return = parent::prepare($sql, $driver_options); - $this->preparedStatements[$sql] = $return; - } else { - $return = $this->preparedStatements[$sql]; - } - } else { - $return = parent::prepare($sql, $driver_options); - } - - if ($this->useDebug) { - $this->log($sql, null, __METHOD__, $debug); - } - - return $return; - } - - /** - * Execute an SQL statement and return the number of affected rows. - * - * Overrides PDO::exec() to log queries when required - * - * @return int - */ - public function exec($sql) - { - if ($this->useDebug) { - $debug = $this->getDebugSnapshot(); - } - - $return = parent::exec($sql); - - if ($this->useDebug) { - $this->log($sql, null, __METHOD__, $debug); - $this->setLastExecutedQuery($sql); - $this->incrementQueryCount(); - } - - return $return; - } - - /** - * Executes an SQL statement, returning a result set as a PDOStatement object. - * Despite its signature here, this method takes a variety of parameters. - * - * Overrides PDO::query() to log queries when required - * - * @see http://php.net/manual/en/pdo.query.php for a description of the possible parameters. - * @return PDOStatement - */ - public function query() - { - if ($this->useDebug) { - $debug = $this->getDebugSnapshot(); - } - - $args = func_get_args(); - if (version_compare(PHP_VERSION, '5.3', '<')) { - $return = call_user_func_array(array($this, 'parent::query'), $args); - } else { - $return = call_user_func_array('parent::query', $args); - } - - if ($this->useDebug) { - $sql = $args[0]; - $this->log($sql, null, __METHOD__, $debug); - $this->setLastExecutedQuery($sql); - $this->incrementQueryCount(); - } - - return $return; - } - - /** - * Clears any stored prepared statements for this connection. - */ - public function clearStatementCache() - { - $this->preparedStatements = array(); - } - - /** - * Configures the PDOStatement class for this connection. - * - * @param boolean $suppressError Whether to suppress an exception if the statement class cannot be set. - * @throws PropelException if the statement class cannot be set (and $suppressError is false). - */ - protected function configureStatementClass($class = 'PDOStatement', $suppressError = true) - { - // extending PDOStatement is only supported with non-persistent connections - if (!$this->getAttribute(PDO::ATTR_PERSISTENT)) { - $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, array($class, array($this))); - } elseif (!$suppressError) { - throw new PropelException('Extending PDOStatement is not supported with persistent connections.'); - } - } - - /** - * Returns the number of queries this DebugPDO instance has performed on the database connection. - * - * When using DebugPDOStatement as the statement class, any queries by DebugPDOStatement instances - * are counted as well. - * - * @return int - * @throws PropelException if persistent connection is used (since unable to override PDOStatement in that case). - */ - public function getQueryCount() - { - // extending PDOStatement is not supported with persistent connections - if ($this->getAttribute(PDO::ATTR_PERSISTENT)) { - throw new PropelException('Extending PDOStatement is not supported with persistent connections. Count would be inaccurate, because we cannot count the PDOStatment::execute() calls. Either don\'t use persistent connections or don\'t call PropelPDO::getQueryCount()'); - } - return $this->queryCount; - } - - /** - * Increments the number of queries performed by this DebugPDO instance. - * - * Returns the original number of queries (ie the value of $this->queryCount before calling this method). - * - * @return int - */ - public function incrementQueryCount() - { - $this->queryCount++; - } - - /** - * Get the SQL code for the latest query executed by Propel - * - * @return string Executable SQL code - */ - public function getLastExecutedQuery() - { - return $this->lastExecutedQuery; - } - - /** - * Set the SQL code for the latest query executed by Propel - * - * @param string $query Executable SQL code - */ - public function setLastExecutedQuery($query) - { - $this->lastExecutedQuery = $query; - } - - /** - * Enable or disable the query debug features - * - * @var boolean $value True to enable debug (default), false to disable it - */ - public function useDebug($value = true) - { - if ($value) { - $this->configureStatementClass('DebugPDOStatement', $suppress = true); - } else { - // reset query logging - $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('PDOStatement')); - $this->setLastExecutedQuery(''); - $this->queryCount = 0; - } - $this->clearStatementCache(); - $this->useDebug = $value; - } - - /** - * Sets the logging level to use for logging method calls and SQL statements. - * - * @param int $level Value of one of the Propel::LOG_* class constants. - */ - public function setLogLevel($level) - { - $this->logLevel = $level; - } - - /** - * Sets a logger to use. - * - * The logger will be used by this class to log various method calls and their properties. - * - * @param BasicLogger $logger A Logger with an API compatible with BasicLogger (or PEAR Log). - */ - public function setLogger($logger) - { - $this->logger = $logger; - } - - /** - * Gets the logger in use. - * - * @return BasicLogger $logger A Logger with an API compatible with BasicLogger (or PEAR Log). - */ - public function getLogger() - { - return $this->logger; - } - - /** - * Logs the method call or SQL using the Propel::log() method or a registered logger class. - * - * @uses self::getLogPrefix() - * @see self::setLogger() - * - * @param string $msg Message to log. - * @param int $level (optional) Log level to use; will use self::setLogLevel() specified level by default. - * @param string $methodName (optional) Name of the method whose execution is being logged. - * @param array $debugSnapshot (optional) Previous return value from self::getDebugSnapshot(). - */ - public function log($msg, $level = null, $methodName = null, array $debugSnapshot = null) - { - // If logging has been specifically disabled, this method won't do anything - if (!$this->getLoggingConfig('enabled', true)) { - return; - } - - // If the method being logged isn't one of the ones to be logged, bail - if (!in_array($methodName, $this->getLoggingConfig('methods', self::$defaultLogMethods))) { - return; - } - - // If a logging level wasn't provided, use the default one - if ($level === null) { - $level = $this->logLevel; - } - - // Determine if this query is slow enough to warrant logging - if ($this->getLoggingConfig("onlyslow", self::DEFAULT_ONLYSLOW_ENABLED)) { - $now = $this->getDebugSnapshot(); - if ($now['microtime'] - $debugSnapshot['microtime'] < $this->getLoggingConfig("details.slow.threshold", self::DEFAULT_SLOW_THRESHOLD)) return; - } - - // If the necessary additional parameters were given, get the debug log prefix for the log line - if ($methodName && $debugSnapshot) { - $msg = $this->getLogPrefix($methodName, $debugSnapshot) . $msg; - } - - // We won't log empty messages - if (!$msg) { - return; - } - - // Delegate the actual logging forward - if ($this->logger) { - $this->logger->log($msg, $level); - } else { - Propel::log($msg, $level); - } - } - - /** - * Returns a snapshot of the current values of some functions useful in debugging. - * - * @return array - */ - public function getDebugSnapshot() - { - if ($this->useDebug) { - return array( - 'microtime' => microtime(true), - 'memory_get_usage' => memory_get_usage($this->getLoggingConfig('realmemoryusage', false)), - 'memory_get_peak_usage' => memory_get_peak_usage($this->getLoggingConfig('realmemoryusage', false)), - ); - } else { - throw new PropelException('Should not get debug snapshot when not debugging'); - } - } - - /** - * Returns a named configuration item from the Propel runtime configuration, from under the - * 'debugpdo.logging' prefix. If such a configuration setting hasn't been set, the given default - * value will be returned. - * - * @param string $key Key for which to return the value. - * @param mixed $defaultValue Default value to apply if config item hasn't been set. - * @return mixed - */ - protected function getLoggingConfig($key, $defaultValue) - { - return Propel::getConfiguration(PropelConfiguration::TYPE_OBJECT)->getParameter("debugpdo.logging.$key", $defaultValue); - } - - /** - * Returns a prefix that may be prepended to a log line, containing debug information according - * to the current configuration. - * - * Uses a given $debugSnapshot to calculate how much time has passed since the call to self::getDebugSnapshot(), - * how much the memory consumption by PHP has changed etc. - * - * @see self::getDebugSnapshot() - * - * @param string $methodName Name of the method whose execution is being logged. - * @param array $debugSnapshot A previous return value from self::getDebugSnapshot(). - * @return string - */ - protected function getLogPrefix($methodName, $debugSnapshot) - { - $prefix = ''; - $now = $this->getDebugSnapshot(); - $logDetails = array_keys($this->getLoggingConfig('details', array())); - $innerGlue = $this->getLoggingConfig('innerglue', ': '); - $outerGlue = $this->getLoggingConfig('outerglue', ' | '); - - // Iterate through each detail that has been configured to be enabled - foreach ($logDetails as $detailName) { - - if (!$this->getLoggingConfig("details.$detailName.enabled", false)) - continue; - - switch ($detailName) { - - case 'slow'; - $value = $now['microtime'] - $debugSnapshot['microtime'] >= $this->getLoggingConfig("details.$detailName.threshold", self::DEFAULT_SLOW_THRESHOLD) ? 'YES' : ' NO'; - break; - - case 'time': - $value = number_format($now['microtime'] - $debugSnapshot['microtime'], $this->getLoggingConfig("details.$detailName.precision", 3)) . ' sec'; - $value = str_pad($value, $this->getLoggingConfig("details.$detailName.pad", 10), ' ', STR_PAD_LEFT); - break; - - case 'mem': - $value = self::getReadableBytes($now['memory_get_usage'], $this->getLoggingConfig("details.$detailName.precision", 1)); - $value = str_pad($value, $this->getLoggingConfig("details.$detailName.pad", 9), ' ', STR_PAD_LEFT); - break; - - case 'memdelta': - $value = $now['memory_get_usage'] - $debugSnapshot['memory_get_usage']; - $value = ($value > 0 ? '+' : '') . self::getReadableBytes($value, $this->getLoggingConfig("details.$detailName.precision", 1)); - $value = str_pad($value, $this->getLoggingConfig("details.$detailName.pad", 10), ' ', STR_PAD_LEFT); - break; - - case 'mempeak': - $value = self::getReadableBytes($now['memory_get_peak_usage'], $this->getLoggingConfig("details.$detailName.precision", 1)); - $value = str_pad($value, $this->getLoggingConfig("details.$detailName.pad", 9), ' ', STR_PAD_LEFT); - break; - - case 'querycount': - $value = $this->getQueryCount(); - $value = str_pad($value, $this->getLoggingConfig("details.$detailName.pad", 2), ' ', STR_PAD_LEFT); - break; - - case 'method': - $value = $methodName; - $value = str_pad($value, $this->getLoggingConfig("details.$detailName.pad", 28), ' ', STR_PAD_RIGHT); - break; - - default: - $value = 'n/a'; - break; - - } - - $prefix .= $detailName . $innerGlue . $value . $outerGlue; - - } - - return $prefix; - } - - /** - * Returns a human-readable representation of the given byte count. - * - * @param int $bytes Byte count to convert. - * @param int $precision How many decimals to include. - * @return string - */ - protected function getReadableBytes($bytes, $precision) - { - $suffix = array('B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'); - $total = count($suffix); - - for ($i = 0; $bytes > 1024 && $i < $total; $i++) - $bytes /= 1024; - - return number_format($bytes, $precision) . ' ' . $suffix[$i]; - } - - /** - * If so configured, makes an entry to the log of the state of this object just prior to its destruction. - * Add PropelPDO::__destruct to $defaultLogMethods to see this message - * - * @see self::log() - */ - public function __destruct() - { - if ($this->useDebug) { - $this->log('Closing connection', null, __METHOD__, $this->getDebugSnapshot()); - } - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/exception/PropelException.php b/airtime_mvc/library/propel/runtime/lib/exception/PropelException.php deleted file mode 100644 index b6a7bc7008..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/exception/PropelException.php +++ /dev/null @@ -1,50 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.runtime.exception - */ -class PropelException extends Exception { - - /** The nested "cause" exception. */ - protected $cause; - - function __construct($p1, $p2 = null) { - - $cause = null; - - if ($p2 !== null) { - $msg = $p1; - $cause = $p2; - } else { - if ($p1 instanceof Exception) { - $msg = ""; - $cause = $p1; - } else { - $msg = $p1; - } - } - - parent::__construct($msg); - - if ($cause !== null) { - $this->cause = $cause; - $this->message .= " [wrapped: " . $cause->getMessage() ."]"; - } - } - - function getCause() { - return $this->cause; - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/formatter/ModelWith.php b/airtime_mvc/library/propel/runtime/lib/formatter/ModelWith.php deleted file mode 100644 index 2e295505d7..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/formatter/ModelWith.php +++ /dev/null @@ -1,144 +0,0 @@ -init($join); - } - } - - /** - * Define the joined hydration schema based on a join object. - * Fills the ModelWith properties using a ModelJoin as source - * - * @param ModelJoin $join - */ - public function init(ModelJoin $join) - { - $tableMap = $join->getTableMap(); - $this->modelName = $tableMap->getClassname(); - $this->modelPeerName = $tableMap->getPeerClassname(); - $this->isSingleTableInheritance = $tableMap->isSingleTableInheritance(); - $relation = $join->getRelationMap(); - if ($relation->getType() == RelationMap::ONE_TO_MANY) { - $this->isAdd = true; - $this->relationName = $relation->getName() . 's'; - $this->relationMethod = 'add' . $relation->getName(); - } else { - $this->relationName = $relation->getName(); - $this->relationMethod = 'set' . $relation->getName(); - } - if (!$join->isPrimary()) { - $this->relatedClass = $join->hasLeftTableAlias() ? $join->getLeftTableAlias() : $relation->getLeftTable()->getPhpName(); - } - } - - // DataObject getters & setters - - public function setModelName($modelName) - { - $this->modelName = $modelName; - } - - public function getModelName() - { - return $this->modelName; - } - - public function setModelPeerName($modelPeerName) - { - $this->modelPeerName = $modelPeerName; - } - - public function getModelPeerName() - { - return $this->modelPeerName; - } - - public function setIsSingleTableInheritance($isSingleTableInheritance) - { - $this->isSingleTableInheritance = $isSingleTableInheritance; - } - - public function isSingleTableInheritance() - { - return $this->isSingleTableInheritance; - } - - public function setIsAdd($isAdd) - { - $this->isAdd = $isAdd;; - } - - public function isAdd() - { - return $this->isAdd; - } - - public function setRelationName($relationName) - { - $this->relationName = $relationName; - } - - public function getRelationName() - { - return $this->relationName; - } - - public function setRelationMethod($relationMethod) - { - $this->relationMethod = $relationMethod; - } - - public function getRelationMethod() - { - return $this->relationMethod; - } - - public function setRelatedClass($relatedClass) - { - $this->relatedClass = $relatedClass; - } - - public function getRelatedClass() - { - return $this->relatedClass; - } - - // Utility methods - - public function isPrimary() - { - return null === $this->relatedClass; - } - - public function __toString() - { - return sprintf("modelName: %s, relationName: %s, relationMethod: %s, relatedClass: %s", $this->modelName, $this->relationName, $this->relationMethod, $this->relatedClass); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/formatter/PropelArrayFormatter.php b/airtime_mvc/library/propel/runtime/lib/formatter/PropelArrayFormatter.php deleted file mode 100644 index 97bc334270..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/formatter/PropelArrayFormatter.php +++ /dev/null @@ -1,170 +0,0 @@ -checkInit(); - if($class = $this->collectionName) { - $collection = new $class(); - $collection->setModel($this->class); - $collection->setFormatter($this); - } else { - $collection = array(); - } - if ($this->isWithOneToMany() && $this->hasLimit) { - throw new PropelException('Cannot use limit() in conjunction with with() on a one-to-many relationship. Please remove the with() call, or the limit() call.'); - } - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - if ($object = &$this->getStructuredArrayFromRow($row)) { - $collection[] = $object; - } - } - $this->currentObjects = array(); - $this->alreadyHydratedObjects = array(); - $stmt->closeCursor(); - - return $collection; - } - - public function formatOne(PDOStatement $stmt) - { - $this->checkInit(); - $result = null; - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - if ($object = &$this->getStructuredArrayFromRow($row)) { - $result = &$object; - } - } - $this->currentObjects = array(); - $this->alreadyHydratedObjects = array(); - $stmt->closeCursor(); - return $result; - } - - /** - * Formats an ActiveRecord object - * - * @param BaseObject $record the object to format - * - * @return array The original record turned into an array - */ - public function formatRecord($record = null) - { - return $record ? $record->toArray() : array(); - } - - public function isObjectFormatter() - { - return false; - } - - - /** - * Hydrates a series of objects from a result row - * The first object to hydrate is the model of the Criteria - * The following objects (the ones added by way of ModelCriteria::with()) are linked to the first one - * - * @param array $row associative array indexed by column number, - * as returned by PDOStatement::fetch(PDO::FETCH_NUM) - * - * @return Array - */ - public function &getStructuredArrayFromRow($row) - { - $col = 0; - - // hydrate main object or take it from registry - $mainObjectIsNew = false; - $mainKey = call_user_func(array($this->peer, 'getPrimaryKeyHashFromRow'), $row); - // we hydrate the main object even in case of a one-to-many relationship - // in order to get the $col variable increased anyway - $obj = $this->getSingleObjectFromRow($row, $this->class, $col); - if (!isset($this->alreadyHydratedObjects[$this->class][$mainKey])) { - $this->alreadyHydratedObjects[$this->class][$mainKey] = $obj->toArray(); - $mainObjectIsNew = true; - } - - $hydrationChain = array(); - - // related objects added using with() - foreach ($this->getWith() as $relAlias => $modelWith) { - - // determine class to use - if ($modelWith->isSingleTableInheritance()) { - $class = call_user_func(array($modelWith->getModelPeerName(), 'getOMClass'), $row, $col, false); - $refl = new ReflectionClass($class); - if ($refl->isAbstract()) { - $col += constant($class . 'Peer::NUM_COLUMNS'); - continue; - } - } else { - $class = $modelWith->getModelName(); - } - - // hydrate related object or take it from registry - $key = call_user_func(array($modelWith->getModelPeerName(), 'getPrimaryKeyHashFromRow'), $row, $col); - // we hydrate the main object even in case of a one-to-many relationship - // in order to get the $col variable increased anyway - $secondaryObject = $this->getSingleObjectFromRow($row, $class, $col); - if (!isset($this->alreadyHydratedObjects[$relAlias][$key])) { - - if ($secondaryObject->isPrimaryKeyNull()) { - $this->alreadyHydratedObjects[$relAlias][$key] = array(); - } else { - $this->alreadyHydratedObjects[$relAlias][$key] = $secondaryObject->toArray(); - } - } - - if ($modelWith->isPrimary()) { - $arrayToAugment = &$this->alreadyHydratedObjects[$this->class][$mainKey]; - } else { - $arrayToAugment = &$hydrationChain[$modelWith->getRelatedClass()]; - } - - if ($modelWith->isAdd()) { - if (!isset($arrayToAugment[$modelWith->getRelationName()]) || !in_array($this->alreadyHydratedObjects[$relAlias][$key], $arrayToAugment[$modelWith->getRelationName()])) { - $arrayToAugment[$modelWith->getRelationName()][] = &$this->alreadyHydratedObjects[$relAlias][$key]; - } - } else { - $arrayToAugment[$modelWith->getRelationName()] = &$this->alreadyHydratedObjects[$relAlias][$key]; - } - - $hydrationChain[$relAlias] = &$this->alreadyHydratedObjects[$relAlias][$key]; - } - - // columns added using withColumn() - foreach ($this->getAsColumns() as $alias => $clause) { - $this->alreadyHydratedObjects[$this->class][$mainKey][$alias] = $row[$col]; - $col++; - } - - if ($mainObjectIsNew) { - return $this->alreadyHydratedObjects[$this->class][$mainKey]; - } else { - // we still need to return a reference to something to avoid a warning - return $emptyVariable; - } - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/formatter/PropelFormatter.php b/airtime_mvc/library/propel/runtime/lib/formatter/PropelFormatter.php deleted file mode 100644 index 5933515d99..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/formatter/PropelFormatter.php +++ /dev/null @@ -1,202 +0,0 @@ -init($criteria); - } - } - - /** - * Define the hydration schema based on a query object. - * Fills the Formatter's properties using a Criteria as source - * - * @param ModelCriteria $criteria - * - * @return PropelFormatter The current formatter object - */ - public function init(ModelCriteria $criteria) - { - $this->dbName = $criteria->getDbName(); - $this->class = $criteria->getModelName(); - $this->peer = $criteria->getModelPeerName(); - $this->setWith($criteria->getWith()); - $this->asColumns = $criteria->getAsColumns(); - $this->hasLimit = $criteria->getLimit() != 0; - - return $this; - } - - // DataObject getters & setters - - public function setDbName($dbName) - { - $this->dbName = $dbName; - } - - public function getDbName() - { - return $this->dbName; - } - - public function setClass($class) - { - $this->class = $class; - } - - public function getClass() - { - return $this->class; - } - - public function setPeer($peer) - { - $this->peer = $peer; - } - - public function getPeer() - { - return $this->peer; - } - - public function setWith($withs = array()) - { - $this->with = array(); - foreach ($withs as $relation => $join) { - $this->with[$relation] = new ModelWith($join); - } - } - - public function getWith() - { - return $this->with; - } - - public function setAsColumns($asColumns = array()) - { - $this->asColumns = $asColumns; - } - - public function getAsColumns() - { - return $this->asColumns; - } - - public function setHasLimit($hasLimit = false) - { - $this->hasLimit = $hasLimit; - } - - public function hasLimit() - { - return $this->hasLimit; - } - - /** - * Formats an ActiveRecord object - * - * @param BaseObject $record the object to format - * - * @return BaseObject The original record - */ - public function formatRecord($record = null) - { - return $record; - } - - abstract public function format(PDOStatement $stmt); - - abstract public function formatOne(PDOStatement $stmt); - - abstract public function isObjectFormatter(); - - public function checkInit() - { - if (null === $this->peer) { - throw new PropelException('You must initialize a formatter object before calling format() or formatOne()'); - } - } - - public function getTableMap() - { - return Propel::getDatabaseMap($this->dbName)->getTableByPhpName($this->class); - } - - protected function isWithOneToMany() - { - foreach ($this->with as $modelWith) { - if ($modelWith->isAdd()) { - return true; - } - } - return false; - } - - /** - * Gets the worker object for the class. - * To save memory, we don't create a new object for each row, - * But we keep hydrating a single object per class. - * The column offset in the row is used to index the array of classes - * As there may be more than one object of the same class in the chain - * - * @param int $col Offset of the object in the list of objects to hydrate - * @param string $class Propel model object class - * - * @return BaseObject - */ - protected function getWorkerObject($col, $class) - { - if(isset($this->currentObjects[$col])) { - $this->currentObjects[$col]->clear(); - } else { - $this->currentObjects[$col] = new $class(); - } - return $this->currentObjects[$col]; - } - - /** - * Gets a Propel object hydrated from a selection of columns in statement row - * - * @param array $row associative array indexed by column number, - * as returned by PDOStatement::fetch(PDO::FETCH_NUM) - * @param string $class The classname of the object to create - * @param int $col The start column for the hydration (modified) - * - * @return BaseObject - */ - public function getSingleObjectFromRow($row, $class, &$col = 0) - { - $obj = $this->getWorkerObject($col, $class); - $col = $obj->hydrate($row, $col); - - return $obj; - } - - -} diff --git a/airtime_mvc/library/propel/runtime/lib/formatter/PropelObjectFormatter.php b/airtime_mvc/library/propel/runtime/lib/formatter/PropelObjectFormatter.php deleted file mode 100644 index af6444e121..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/formatter/PropelObjectFormatter.php +++ /dev/null @@ -1,112 +0,0 @@ -checkInit(); - if($class = $this->collectionName) { - $collection = new $class(); - $collection->setModel($this->class); - $collection->setFormatter($this); - } else { - $collection = array(); - } - if ($this->isWithOneToMany()) { - if ($this->hasLimit) { - throw new PropelException('Cannot use limit() in conjunction with with() on a one-to-many relationship. Please remove the with() call, or the limit() call.'); - } - $pks = array(); - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $object = $this->getAllObjectsFromRow($row); - $pk = $object->getPrimaryKey(); - if (!in_array($pk, $pks)) { - $collection[] = $object; - $pks[] = $pk; - } - } - } else { - // only many-to-one relationships - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $collection[] = $this->getAllObjectsFromRow($row); - } - } - $stmt->closeCursor(); - - return $collection; - } - - public function formatOne(PDOStatement $stmt) - { - $this->checkInit(); - $result = null; - while ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $result = $this->getAllObjectsFromRow($row); - } - $stmt->closeCursor(); - - return $result; - } - - public function isObjectFormatter() - { - return true; - } - - /** - * Hydrates a series of objects from a result row - * The first object to hydrate is the model of the Criteria - * The following objects (the ones added by way of ModelCriteria::with()) are linked to the first one - * - * @param array $row associative array indexed by column number, - * as returned by PDOStatement::fetch(PDO::FETCH_NUM) - * - * @return BaseObject - */ - public function getAllObjectsFromRow($row) - { - // main object - list($obj, $col) = call_user_func(array($this->peer, 'populateObject'), $row); - // related objects added using with() - foreach ($this->getWith() as $class => $modelWith) { - list($endObject, $col) = call_user_func(array($modelWith->getModelPeerName(), 'populateObject'), $row, $col); - // as we may be in a left join, the endObject may be empty - // in which case it should not be related to the previous object - if (null === $endObject || $endObject->isPrimaryKeyNull()) { - continue; - } - if (isset($hydrationChain)) { - $hydrationChain[$class] = $endObject; - } else { - $hydrationChain = array($class => $endObject); - } - $startObject = $modelWith->isPrimary() ? $obj : $hydrationChain[$modelWith->getRelatedClass()]; - call_user_func(array($startObject, $modelWith->getRelationMethod()), $endObject); - } - // columns added using withColumn() - foreach ($this->getAsColumns() as $alias => $clause) { - $obj->setVirtualColumn($alias, $row[$col]); - $col++; - } - return $obj; - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/formatter/PropelOnDemandFormatter.php b/airtime_mvc/library/propel/runtime/lib/formatter/PropelOnDemandFormatter.php deleted file mode 100644 index f717ccb20e..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/formatter/PropelOnDemandFormatter.php +++ /dev/null @@ -1,96 +0,0 @@ -isSingleTableInheritance = $criteria->getTableMap()->isSingleTableInheritance(); - - return $this; - } - - public function format(PDOStatement $stmt) - { - $this->checkInit(); - if ($this->isWithOneToMany()) { - throw new PropelException('PropelOnDemandFormatter cannot hydrate related objects using a one-to-many relationship. Try removing with() from your query.'); - } - $class = $this->collectionName; - $collection = new $class(); - $collection->setModel($this->class); - $collection->initIterator($this, $stmt); - - return $collection; - } - - /** - * Hydrates a series of objects from a result row - * The first object to hydrate is the model of the Criteria - * The following objects (the ones added by way of ModelCriteria::with()) are linked to the first one - * - * @param array $row associative array indexed by column number, - * as returned by PDOStatement::fetch(PDO::FETCH_NUM) - * - * @return BaseObject - */ - public function getAllObjectsFromRow($row) - { - $col = 0; - // main object - $class = $this->isSingleTableInheritance ? call_user_func(array($his->peer, 'getOMClass'), $row, $col, false) : $this->class; - $obj = $this->getSingleObjectFromRow($row, $class, $col); - // related objects using 'with' - foreach ($this->getWith() as $modelWith) { - if ($modelWith->isSingleTableInheritance()) { - $class = call_user_func(array($modelWith->getModelPeerName(), 'getOMClass'), $row, $col, false); - $refl = new ReflectionClass($class); - if ($refl->isAbstract()) { - $col += constant($class . 'Peer::NUM_COLUMNS'); - continue; - } - } else { - $class = $modelWith->getModelName(); - } - $endObject = $this->getSingleObjectFromRow($row, $class, $col); - // as we may be in a left join, the endObject may be empty - // in which case it should not be related to the previous object - if (null === $endObject || $endObject->isPrimaryKeyNull()) { - continue; - } - if (isset($hydrationChain)) { - $hydrationChain[$class] = $endObject; - } else { - $hydrationChain = array($class => $endObject); - } - $startObject = $modelWith->isPrimary() ? $obj : $hydrationChain[$modelWith->getRelatedClass()]; - call_user_func(array($startObject, $modelWith->getRelationMethod()), $endObject); - } - foreach ($this->getAsColumns() as $alias => $clause) { - $obj->setVirtualColumn($alias, $row[$col]); - $col++; - } - return $obj; - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/formatter/PropelStatementFormatter.php b/airtime_mvc/library/propel/runtime/lib/formatter/PropelStatementFormatter.php deleted file mode 100644 index 5103c8234b..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/formatter/PropelStatementFormatter.php +++ /dev/null @@ -1,45 +0,0 @@ -rowCount() == 0) { - return null; - } else { - return $stmt; - } - } - - public function formatRecord($record = null) - { - throw new PropelException('The Statement formatter cannot transform a record into a statement'); - } - - public function isObjectFormatter() - { - return false; - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/logger/BasicLogger.php b/airtime_mvc/library/propel/runtime/lib/logger/BasicLogger.php deleted file mode 100644 index ce335d2eed..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/logger/BasicLogger.php +++ /dev/null @@ -1,91 +0,0 @@ - - * and Jon Parise . - * - * @author Hans Lellelid - * @version $Revision: 1612 $ - * @package propel.runtime.logger - */ -interface BasicLogger -{ - - /** - * A convenience function for logging an alert event. - * - * @param mixed $message String or Exception object containing the message - * to log. - */ - public function alert($message); - - /** - * A convenience function for logging a critical event. - * - * @param mixed $message String or Exception object containing the message - * to log. - */ - public function crit($message); - - /** - * A convenience function for logging an error event. - * - * @param mixed $message String or Exception object containing the message - * to log. - */ - public function err($message); - - /** - * A convenience function for logging a warning event. - * - * @param mixed $message String or Exception object containing the message - * to log. - */ - public function warning($message); - /** - * A convenience function for logging an critical event. - * - * @param mixed $message String or Exception object containing the message - * to log. - */ - public function notice($message); - /** - * A convenience function for logging an critical event. - * - * @param mixed $message String or Exception object containing the message - * to log. - */ - public function info($message); - - /** - * A convenience function for logging a debug event. - * - * @param mixed $message String or Exception object containing the message - * to log. - */ - public function debug($message); - - /** - * Primary method to handle logging. - * - * @param mixed $message String or Exception object containing the message - * to log. - * @param int $severity The numeric severity. Defaults to null so that no - * assumptions are made about the logging backend. - */ - public function log($message, $severity = null); - -} diff --git a/airtime_mvc/library/propel/runtime/lib/logger/MojaviLogAdapter.php b/airtime_mvc/library/propel/runtime/lib/logger/MojaviLogAdapter.php deleted file mode 100644 index af8e48423f..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/logger/MojaviLogAdapter.php +++ /dev/null @@ -1,160 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.runtime.logger - */ -class MojaviLogAdapter implements BasicLogger -{ - - /** - * Instance of mojavi logger - */ - private $logger = null; - - /** - * constructor for setting up Mojavi log adapter - * - * @param ErrorLog $logger instance of Mojavi error log obtained by - * calling LogManager::getLogger(); - */ - public function __construct($logger = null) - { - $this->logger = $logger; - } - - /** - * A convenience function for logging an alert event. - * - * @param mixed $message String or Exception object containing the message - * to log. - */ - public function alert($message) - { - $this->log($message, 'alert'); - } - - /** - * A convenience function for logging a critical event. - * - * @param mixed $message String or Exception object containing the message - * to log. - */ - public function crit($message) - { - $this->log($message, 'crit'); - } - - /** - * A convenience function for logging an error event. - * - * @param mixed $message String or Exception object containing the message - * to log. - */ - public function err($message) - { - $this->log($message, 'err'); - } - - /** - * A convenience function for logging a warning event. - * - * @param mixed $message String or Exception object containing the message - * to log. - */ - public function warning($message) - { - $this->log($message, 'warning'); - } - - - /** - * A convenience function for logging an critical event. - * - * @param mixed $message String or Exception object containing the message - * to log. - */ - public function notice($message) - { - $this->log($message, 'notice'); - } - /** - * A convenience function for logging an critical event. - * - * @param mixed $message String or Exception object containing the message - * to log. - */ - public function info($message) - { - $this->log($message, 'info'); - } - - /** - * A convenience function for logging a debug event. - * - * @param mixed $message String or Exception object containing the message - * to log. - */ - public function debug($message) - { - $this->log($message, 'debug'); - } - - /** - * Primary method to handle logging. - * - * @param mixed $message String or Exception object containing the message - * to log. - * @param int $severity The numeric severity. Defaults to null so that no - * assumptions are made about the logging backend. - */ - public function log($message, $severity = null) - { - if (is_null($this->logger)) - $this->logger = LogManager::getLogger('propel'); - - switch($severity) - { - case 'crit': - $method = 'fatal'; - break; - case 'err': - $method = 'error'; - break; - case 'alert': - case 'warning': - $method = 'warning'; - break; - case 'notice': - case 'info': - $method = 'info'; - break; - case 'debug': - default: - $method = 'debug'; - } - - // get a backtrace to pass class, function, file, & line to Mojavi logger - $trace = debug_backtrace(); - - // call the appropriate Mojavi logger method - $this->logger->{$method} ( - $message, - $trace[2]['class'], - $trace[2]['function'], - $trace[1]['file'], - $trace[1]['line'] - ); - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/map/ColumnMap.php b/airtime_mvc/library/propel/runtime/lib/map/ColumnMap.php deleted file mode 100644 index 69868ced5f..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/map/ColumnMap.php +++ /dev/null @@ -1,464 +0,0 @@ - (Propel) - * @author John D. McNally (Torque) - * @version $Revision: 1612 $ - * @package propel.runtime.map - */ -class ColumnMap -{ - - // Propel type of the column - protected $type; - - // Size of the column - protected $size = 0; - - // Is it a primary key? - protected $pk = false; - - // Is null value allowed? - protected $notNull = false; - - // The default value for this column - protected $defaultValue; - - // Name of the table that this column is related to - protected $relatedTableName = ""; - - // Name of the column that this column is related to - protected $relatedColumnName = ""; - - // The TableMap for this column - protected $table; - - // The name of the column - protected $columnName; - - // The php name of the column - protected $phpName; - - // The validators for this column - protected $validators = array(); - - /** - * Constructor. - * - * @param string $name The name of the column. - * @param TableMap containingTable TableMap of the table this column is in. - */ - public function __construct($name, TableMap $containingTable) - { - $this->columnName = $name; - $this->table = $containingTable; - } - - /** - * Get the name of a column. - * - * @return string A String with the column name. - */ - public function getName() - { - return $this->columnName; - } - - /** - * Get the table map this column belongs to. - * @return TableMap - */ - public function getTable() - { - return $this->table; - } - - /** - * Get the name of the table this column is in. - * - * @return string A String with the table name. - */ - public function getTableName() - { - return $this->table->getName(); - } - - /** - * Get the table name + column name. - * - * @return string A String with the full column name. - */ - public function getFullyQualifiedName() - { - return $this->getTableName() . "." . $this->columnName; - } - - /** - * Set the php anme of this column. - * - * @param string $phpName A string representing the PHP name. - * @return void - */ - public function setPhpName($phpName) - { - $this->phpName = $phpName; - } - - /** - * Get the name of a column. - * - * @return string A String with the column name. - */ - public function getPhpName() - { - return $this->phpName; - } - - /** - * Set the Propel type of this column. - * - * @param string $type A string representing the Propel type (e.g. PropelColumnTypes::DATE). - * @return void - */ - public function setType($type) - { - $this->type = $type; - } - - /** - * Get the Propel type of this column. - * - * @return string A string representing the Propel type (e.g. PropelColumnTypes::DATE). - */ - public function getType() - { - return $this->type; - } - - /** - * Get the PDO type of this column. - * - * @return int The PDO::PARMA_* value - */ - public function getPdoType() - { - return PropelColumnTypes::getPdoType($this->type); - } - - /** - * Whether this is a BLOB, LONGVARBINARY, or VARBINARY. - * @return boolean - */ - public function isLob() - { - return ($this->type == PropelColumnTypes::BLOB || $this->type == PropelColumnTypes::VARBINARY || $this->type == PropelColumnTypes::LONGVARBINARY); - } - - /** - * Whether this is a DATE/TIME/TIMESTAMP column. - * - * @return boolean - * @since 1.3 - */ - public function isTemporal() - { - return ($this->type == PropelColumnTypes::TIMESTAMP || $this->type == PropelColumnTypes::DATE || $this->type == PropelColumnTypes::TIME || $this->type == PropelColumnTypes::BU_DATE || $this->type == PropelColumnTypes::BU_TIMESTAMP); - } - - /** - * Whether this is a DATE/TIME/TIMESTAMP column that is post-epoch (1970). - * - * PHP cannot handle pre-epoch timestamps well -- hence the need to differentiate - * between epoch and pre-epoch timestamps. - * - * @return boolean - * @deprecated Propel supports non-epoch dates - */ - public function isEpochTemporal() - { - return ($this->type == PropelColumnTypes::TIMESTAMP || $this->type == PropelColumnTypes::DATE || $this->type == PropelColumnTypes::TIME); - } - - /** - * Whether this column is numeric (int, decimal, bigint etc). - * @return boolean - */ - public function isNumeric() - { - return ($this->type == PropelColumnTypes::NUMERIC || $this->type == PropelColumnTypes::DECIMAL || $this->type == PropelColumnTypes::TINYINT || $this->type == PropelColumnTypes::SMALLINT || $this->type == PropelColumnTypes::INTEGER || $this->type == PropelColumnTypes::BIGINT || $this->type == PropelColumnTypes::REAL || $this->type == PropelColumnTypes::FLOAT || $this->type == PropelColumnTypes::DOUBLE); - } - - /** - * Whether this column is a text column (varchar, char, longvarchar). - * @return boolean - */ - public function isText() - { - return ($this->type == PropelColumnTypes::VARCHAR || $this->type == PropelColumnTypes::LONGVARCHAR || $this->type == PropelColumnTypes::CHAR); - } - - /** - * Set the size of this column. - * - * @param int $size An int specifying the size. - * @return void - */ - public function setSize($size) - { - $this->size = $size; - } - - /** - * Get the size of this column. - * - * @return int An int specifying the size. - */ - public function getSize() - { - return $this->size; - } - - /** - * Set if this column is a primary key or not. - * - * @param boolean $pk True if column is a primary key. - * @return void - */ - public function setPrimaryKey($pk) - { - $this->pk = $pk; - } - - /** - * Is this column a primary key? - * - * @return boolean True if column is a primary key. - */ - public function isPrimaryKey() - { - return $this->pk; - } - - /** - * Set if this column may be null. - * - * @param boolean nn True if column may be null. - * @return void - */ - public function setNotNull($nn) - { - $this->notNull = $nn; - } - - /** - * Is null value allowed ? - * - * @return boolean True if column may not be null. - */ - public function isNotNull() - { - return ($this->notNull || $this->isPrimaryKey()); - } - - /** - * Sets the default value for this column. - * @param mixed $defaultValue the default value for the column - * @return void - */ - public function setDefaultValue($defaultValue) - { - $this->defaultValue = $defaultValue; - } - - /** - * Gets the default value for this column. - * @return mixed String or NULL - */ - public function getDefaultValue() - { - return $this->defaultValue; - } - - /** - * Set the foreign key for this column. - * - * @param string tableName The name of the table that is foreign. - * @param string columnName The name of the column that is foreign. - * @return void - */ - public function setForeignKey($tableName, $columnName) - { - if ($tableName && $columnName) { - $this->relatedTableName = $tableName; - $this->relatedColumnName = $columnName; - } else { - $this->relatedTableName = ""; - $this->relatedColumnName = ""; - } - } - - /** - * Is this column a foreign key? - * - * @return boolean True if column is a foreign key. - */ - public function isForeignKey() - { - if ($this->relatedTableName) { - return true; - } else { - return false; - } - } - - /** - * Get the RelationMap object for this foreign key - */ - public function getRelation() - { - if(!$this->relatedTableName) return null; - foreach ($this->getTable()->getRelations() as $name => $relation) - { - if($relation->getType() == RelationMap::MANY_TO_ONE) - { - if ($relation->getForeignTable()->getName() == $this->getRelatedTableName() - && array_key_exists($this->getFullyQualifiedName(), $relation->getColumnMappings())) - { - return $relation; - } - } - } - } - - /** - * Get the table.column that this column is related to. - * - * @return string A String with the full name for the related column. - */ - public function getRelatedName() - { - return $this->relatedTableName . "." . $this->relatedColumnName; - } - - /** - * Get the table name that this column is related to. - * - * @return string A String with the name for the related table. - */ - public function getRelatedTableName() - { - return $this->relatedTableName; - } - - /** - * Get the column name that this column is related to. - * - * @return string A String with the name for the related column. - */ - public function getRelatedColumnName() - { - return $this->relatedColumnName; - } - - /** - * Get the TableMap object that this column is related to. - * - * @return TableMap The related TableMap object - * @throws PropelException when called on a column with no foreign key - */ - public function getRelatedTable() - { - if ($this->relatedTableName) { - return $this->table->getDatabaseMap()->getTable($this->relatedTableName); - } else { - throw new PropelException("Cannot fetch RelatedTable for column with no foreign key: " . $this->columnName); - } - } - - /** - * Get the TableMap object that this column is related to. - * - * @return ColumnMap The related ColumnMap object - * @throws PropelException when called on a column with no foreign key - */ - public function getRelatedColumn() - { - return $this->getRelatedTable()->getColumn($this->relatedColumnName); - } - - public function addValidator($validator) - { - $this->validators[] = $validator; - } - - public function hasValidators() - { - return count($this->validators) > 0; - } - - public function getValidators() - { - return $this->validators; - } - - /** - * Performs DB-specific ignore case, but only if the column type necessitates it. - * @param string $str The expression we want to apply the ignore case formatting to (e.g. the column name). - * @param DBAdapter $db - */ - public function ignoreCase($str, DBAdapter $db) - { - if ($this->isText()) { - return $db->ignoreCase($str); - } else { - return $str; - } - } - - /** - * Normalizes the column name, removing table prefix and uppercasing. - * - * article.first_name becomes FIRST_NAME - * - * @param string $name - * @return string Normalized column name. - */ - public static function normalizeName($name) - { - if (false !== ($pos = strpos($name, '.'))) { - $name = substr($name, $pos + 1); - } - $name = strtoupper($name); - return $name; - } - - // deprecated methods - - /** - * Gets column name - * @deprecated Use getName() instead - * @return string - * @deprecated Use getName() instead. - */ - public function getColumnName() - { - return $this->getName(); - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/map/DatabaseMap.php b/airtime_mvc/library/propel/runtime/lib/map/DatabaseMap.php deleted file mode 100644 index e4e29e4447..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/map/DatabaseMap.php +++ /dev/null @@ -1,191 +0,0 @@ - (Propel) - * @author John D. McNally (Torque) - * @author Daniel Rall (Torque) - * @version $Revision: 1802 $ - * @package propel.runtime.map - */ -class DatabaseMap -{ - - /** @var string Name of the database. */ - protected $name; - - /** @var array TableMap[] Tables in the database, using table name as key */ - protected $tables = array(); - - /** @var array TableMap[] Tables in the database, using table phpName as key */ - protected $tablesByPhpName = array(); - - /** - * Constructor. - * - * @param string $name Name of the database. - */ - public function __construct($name) - { - $this->name = $name; - } - - /** - * Get the name of this database. - * - * @return string The name of the database. - */ - public function getName() - { - return $this->name; - } - - /** - * Add a new table to the database by name. - * - * @param string $tableName The name of the table. - * @return TableMap The newly created TableMap. - */ - public function addTable($tableName) - { - $this->tables[$tableName] = new TableMap($tableName, $this); - return $this->tables[$tableName]; - } - - /** - * Add a new table object to the database. - * - * @param TableMap $table The table to add - */ - public function addTableObject(TableMap $table) - { - $table->setDatabaseMap($this); - $this->tables[$table->getName()] = $table; - $this->tablesByPhpName[$table->getClassname()] = $table; - } - - /** - * Add a new table to the database, using the tablemap class name. - * - * @param string $tableMapClass The name of the table map to add - * @return TableMap The TableMap object - */ - public function addTableFromMapClass($tableMapClass) - { - $table = new $tableMapClass(); - if(!$this->hasTable($table->getName())) { - $this->addTableObject($table); - return $table; - } else { - return $this->getTable($table->getName()); - } - } - - /** - * Does this database contain this specific table? - * - * @param string $name The String representation of the table. - * @return boolean True if the database contains the table. - */ - public function hasTable($name) - { - if ( strpos($name, '.') > 0) { - $name = substr($name, 0, strpos($name, '.')); - } - return array_key_exists($name, $this->tables); - } - - /** - * Get a TableMap for the table by name. - * - * @param string $name Name of the table. - * @return TableMap A TableMap - * @throws PropelException if the table is undefined - */ - public function getTable($name) - { - if (!isset($this->tables[$name])) { - throw new PropelException("Cannot fetch TableMap for undefined table: " . $name ); - } - return $this->tables[$name]; - } - - /** - * Get a TableMap[] of all of the tables in the database. - * - * @return array A TableMap[]. - */ - public function getTables() - { - return $this->tables; - } - - /** - * Get a ColumnMap for the column by name. - * Name must be fully qualified, e.g. book.AUTHOR_ID - * - * @param $qualifiedColumnName Name of the column. - * @return ColumnMap A TableMap - * @throws PropelException if the table is undefined, or if the table is undefined - */ - public function getColumn($qualifiedColumnName) - { - list($tableName, $columnName) = explode('.', $qualifiedColumnName); - return $this->getTable($tableName)->getColumn($columnName, false); - } - - // deprecated methods - - /** - * Does this database contain this specific table? - * - * @deprecated Use hasTable() instead - * @param string $name The String representation of the table. - * @return boolean True if the database contains the table. - */ - public function containsTable($name) - { - return $this->hasTable($name); - } - - public function getTableByPhpName($phpName) - { - if (array_key_exists($phpName, $this->tablesByPhpName)) { - return $this->tablesByPhpName[$phpName]; - } else if (class_exists($tmClass = $phpName . 'TableMap')) { - $this->addTableFromMapClass($tmClass); - return $this->tablesByPhpName[$phpName]; - } else if (class_exists($tmClass = substr_replace($phpName, '\\map\\', strrpos($phpName, '\\'), 1) . 'TableMap')) { - $this->addTableFromMapClass($tmClass); - return $this->tablesByPhpName[$phpName]; - } else { - throw new PropelException("Cannot fetch TableMap for undefined table phpName: " . $phpName); - } - } - - /** - * Convenience method to get the DBAdapter registered with Propel for this database. - * @return DBAdapter - * @see Propel::getDB(string) - */ - public function getDBAdapter() - { - return Propel::getDB($this->name); - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/map/RelationMap.php b/airtime_mvc/library/propel/runtime/lib/map/RelationMap.php deleted file mode 100644 index 059cd00a4f..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/map/RelationMap.php +++ /dev/null @@ -1,299 +0,0 @@ -name = $name; - } - - /** - * Get the name of this relation. - * - * @return string The name of the relation. - */ - public function getName() - { - return $this->name; - } - - /** - * Set the type - * - * @param integer $type The relation type (either self::MANY_TO_ONE, self::ONE_TO_MANY, or self::ONE_TO_ONE) - */ - public function setType($type) - { - $this->type = $type; - } - - /** - * Get the type - * - * @return integer the relation type - */ - public function getType() - { - return $this->type; - } - - /** - * Set the local table - * - * @param TableMap $table The local table for this relationship - */ - public function setLocalTable($table) - { - $this->localTable = $table; - } - - /** - * Get the local table - * - * @return TableMap The local table for this relationship - */ - public function getLocalTable() - { - return $this->localTable; - } - - /** - * Set the foreign table - * - * @param TableMap $table The foreign table for this relationship - */ - public function setForeignTable($table) - { - $this->foreignTable = $table; - } - - /** - * Get the foreign table - * - * @return TableMap The foreign table for this relationship - */ - public function getForeignTable() - { - return $this->foreignTable; - } - - /** - * Get the left table of the relation - * - * @return TableMap The left table for this relationship - */ - public function getLeftTable() - { - return ($this->getType() == RelationMap::MANY_TO_ONE) ? $this->getLocalTable() : $this->getForeignTable(); - } - - /** - * Get the right table of the relation - * - * @return TableMap The right table for this relationship - */ - public function getRightTable() - { - return ($this->getType() == RelationMap::MANY_TO_ONE) ? $this->getForeignTable() : $this->getLocalTable(); - } - - /** - * Add a column mapping - * - * @param ColumnMap $local The local column - * @param ColumnMap $foreign The foreign column - */ - public function addColumnMapping(ColumnMap $local, ColumnMap $foreign) - { - $this->localColumns[] = $local; - $this->foreignColumns[] = $foreign; - } - - /** - * Get an associative array mapping local column names to foreign column names - * The arrangement of the returned array depends on the $direction parameter: - * - If the value is RelationMap::LOCAL_TO_FOREIGN, then the returned array is local => foreign - * - If the value is RelationMap::LEFT_TO_RIGHT, then the returned array is left => right - * - * @param int $direction How the associative array must return columns - * @return Array Associative array (local => foreign) of fully qualified column names - */ - public function getColumnMappings($direction = RelationMap::LOCAL_TO_FOREIGN) - { - $h = array(); - if ($direction == RelationMap::LEFT_TO_RIGHT && $this->getType() == RelationMap::MANY_TO_ONE) { - $direction = RelationMap::LOCAL_TO_FOREIGN; - } - for ($i=0, $size=count($this->localColumns); $i < $size; $i++) { - if ($direction == RelationMap::LOCAL_TO_FOREIGN) { - $h[$this->localColumns[$i]->getFullyQualifiedName()] = $this->foreignColumns[$i]->getFullyQualifiedName(); - } else { - $h[$this->foreignColumns[$i]->getFullyQualifiedName()] = $this->localColumns[$i]->getFullyQualifiedName(); - } - } - return $h; - } - - /** - * Returns true if the relation has more than one column mapping - * - * @return boolean - */ - public function isComposite() - { - return $this->countColumnMappings() > 1; - } - - /** - * Return the number of column mappings - * - * @return int - */ - public function countColumnMappings() - { - return count($this->localColumns); - } - - /** - * Get the local columns - * - * @return Array list of ColumnMap objects - */ - public function getLocalColumns() - { - return $this->localColumns; - } - - /** - * Get the foreign columns - * - * @return Array list of ColumnMap objects - */ - public function getForeignColumns() - { - return $this->foreignColumns; - } - - /** - * Get the left columns of the relation - * - * @return array of ColumnMap objects - */ - public function getLeftColumns() - { - return ($this->getType() == RelationMap::MANY_TO_ONE) ? $this->getLocalColumns() : $this->getForeignColumns(); - } - - /** - * Get the right columns of the relation - * - * @return array of ColumnMap objects - */ - public function getRightColumns() - { - return ($this->getType() == RelationMap::MANY_TO_ONE) ? $this->getForeignColumns() : $this->getLocalColumns(); - } - - - /** - * Set the onUpdate behavior - * - * @param string $onUpdate - */ - public function setOnUpdate($onUpdate) - { - $this->onUpdate = $onUpdate; - } - - /** - * Get the onUpdate behavior - * - * @return integer the relation type - */ - public function getOnUpdate() - { - return $this->onUpdate; - } - - /** - * Set the onDelete behavior - * - * @param string $onDelete - */ - public function setOnDelete($onDelete) - { - $this->onDelete = $onDelete; - } - - /** - * Get the onDelete behavior - * - * @return integer the relation type - */ - public function getOnDelete() - { - return $this->onDelete; - } - - /** - * Gets the symmetrical relation - * - * @return RelationMap - */ - public function getSymmetricalRelation() - { - $localMapping = array($this->getLeftColumns(), $this->getRightColumns()); - foreach ($this->getRightTable()->getRelations() as $relation) { - if ($localMapping == array($relation->getRightColumns(), $relation->getLeftColumns())) { - return $relation; - } - } - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/map/TableMap.php b/airtime_mvc/library/propel/runtime/lib/map/TableMap.php deleted file mode 100644 index 164e137f52..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/map/TableMap.php +++ /dev/null @@ -1,712 +0,0 @@ - (Propel) - * @author John D. McNally (Torque) - * @author Daniel Rall (Torque) - * @version $Revision: 1612 $ - * @package propel.runtime.map - */ -class TableMap -{ - - /** - * Columns in the table - * @var array TableMap[] - */ - protected $columns = array(); - - /** - * Columns in the table, using table phpName as key - * @var array TableMap[] - */ - protected $columnsByPhpName = array(); - - // The database this table belongs to - protected $dbMap; - - // The name of the table - protected $tableName; - - // The PHP name of the table - protected $phpName; - - // The Classname for this table - protected $classname; - - // The Package for this table - protected $package; - - // Whether to use an id generator for pkey - protected $useIdGenerator; - - // Whether the table uses single table inheritance - protected $isSingleTableInheritance = false; - - // The primary key columns in the table - protected $primaryKeys = array(); - - // The foreign key columns in the table - protected $foreignKeys = array(); - - // The relationships in the table - protected $relations = array(); - - // Relations are lazy loaded. This property tells if the relations are loaded or not - protected $relationsBuilt = false; - - // Object to store information that is needed if the for generating primary keys - protected $pkInfo; - - /** - * Construct a new TableMap. - * - */ - public function __construct($name = null, $dbMap = null) - { - if (null !== $name) { - $this->setName($name); - } - if (null !== $dbMap) { - $this->setDatabaseMap($dbMap); - } - $this->initialize(); - } - - /** - * Initialize the TableMap to build columns, relations, etc - * This method should be overridden by descendents - */ - public function initialize() - { - } - - /** - * Set the DatabaseMap containing this TableMap. - * - * @param DatabaseMap $dbMap A DatabaseMap. - */ - public function setDatabaseMap(DatabaseMap $dbMap) - { - $this->dbMap = $dbMap; - } - - /** - * Get the DatabaseMap containing this TableMap. - * - * @return DatabaseMap A DatabaseMap. - */ - public function getDatabaseMap() - { - return $this->dbMap; - } - - /** - * Set the name of the Table. - * - * @param string $name The name of the table. - */ - public function setName($name) - { - $this->tableName = $name; - } - - /** - * Get the name of the Table. - * - * @return string A String with the name of the table. - */ - public function getName() - { - return $this->tableName; - } - - /** - * Set the PHP name of the Table. - * - * @param string $phpName The PHP Name for this table - */ - public function setPhpName($phpName) - { - $this->phpName = $phpName; - } - - /** - * Get the PHP name of the Table. - * - * @return string A String with the name of the table. - */ - public function getPhpName() - { - return $this->phpName; - } - - /** - * Set the Classname of the Table. Could be useful for calling - * Peer and Object methods dynamically. - * @param string $classname The Classname - */ - public function setClassname($classname) - { - $this->classname = $classname; - } - - /** - * Get the Classname of the Propel Class belonging to this table. - * @return string - */ - public function getClassname() - { - return $this->classname; - } - - /** - * Get the Peer Classname of the Propel Class belonging to this table. - * @return string - */ - public function getPeerClassname() - { - return constant($this->classname . '::PEER'); - } - - /** - * Set the Package of the Table - * - * @param string $package The Package - */ - public function setPackage($package) - { - $this->package = $package; - } - - /** - * Get the Package of the table. - * @return string - */ - public function getPackage() - { - return $this->package; - } - - /** - * Set whether or not to use Id generator for primary key. - * @param boolean $bit - */ - public function setUseIdGenerator($bit) - { - $this->useIdGenerator = $bit; - } - - /** - * Whether to use Id generator for primary key. - * @return boolean - */ - public function isUseIdGenerator() - { - return $this->useIdGenerator; - } - - /** - * Set whether or not to this table uses single table inheritance - * @param boolean $bit - */ - public function setSingleTableInheritance($bit) - { - $this->isSingleTableInheritance = $bit; - } - - /** - * Whether this table uses single table inheritance - * @return boolean - */ - public function isSingleTableInheritance() - { - return $this->isSingleTableInheritance; - } - - /** - * Sets the pk information needed to generate a key - * - * @param $pkInfo information needed to generate a key - */ - public function setPrimaryKeyMethodInfo($pkInfo) - { - $this->pkInfo = $pkInfo; - } - - /** - * Get the information used to generate a primary key - * - * @return An Object. - */ - public function getPrimaryKeyMethodInfo() - { - return $this->pkInfo; - } - - /** - * Add a column to the table. - * - * @param string name A String with the column name. - * @param string $type A string specifying the Propel type. - * @param boolean $isNotNull Whether column does not allow NULL values. - * @param int $size An int specifying the size. - * @param boolean $pk True if column is a primary key. - * @param string $fkTable A String with the foreign key table name. - * @param $fkColumn A String with the foreign key column name. - * @param string $defaultValue The default value for this column. - * @return ColumnMap The newly created column. - */ - public function addColumn($name, $phpName, $type, $isNotNull = false, $size = null, $defaultValue = null, $pk = false, $fkTable = null, $fkColumn = null) - { - $col = new ColumnMap($name, $this); - $col->setType($type); - $col->setSize($size); - $col->setPhpName($phpName); - $col->setNotNull($isNotNull); - $col->setDefaultValue($defaultValue); - - if ($pk) { - $col->setPrimaryKey(true); - $this->primaryKeys[$name] = $col; - } - - if ($fkTable && $fkColumn) { - $col->setForeignKey($fkTable, $fkColumn); - $this->foreignKeys[$name] = $col; - } - - $this->columns[$name] = $col; - $this->columnsByPhpName[$phpName] = $col; - - return $col; - } - - /** - * Add a pre-created column to this table. It will replace any - * existing column. - * - * @param ColumnMap $cmap A ColumnMap. - * @return ColumnMap The added column map. - */ - public function addConfiguredColumn($cmap) - { - $this->columns[ $cmap->getColumnName() ] = $cmap; - return $cmap; - } - - /** - * Does this table contain the specified column? - * - * @param mixed $name name of the column or ColumnMap instance - * @param boolean $normalize Normalize the column name (if column name not like FIRST_NAME) - * @return boolean True if the table contains the column. - */ - public function hasColumn($name, $normalize = true) - { - if ($name instanceof ColumnMap) { - $name = $name->getColumnName(); - } else if($normalize) { - $name = ColumnMap::normalizeName($name); - } - return isset($this->columns[$name]); - } - - /** - * Get a ColumnMap for the table. - * - * @param string $name A String with the name of the table. - * @param boolean $normalize Normalize the column name (if column name not like FIRST_NAME) - * @return ColumnMap A ColumnMap. - * @throws PropelException if the column is undefined - */ - public function getColumn($name, $normalize = true) - { - if ($normalize) { - $name = ColumnMap::normalizeName($name); - } - if (!$this->hasColumn($name, false)) { - throw new PropelException("Cannot fetch ColumnMap for undefined column: " . $name); - } - return $this->columns[$name]; - } - - /** - * Does this table contain the specified column? - * - * @param mixed $phpName name of the column - * @return boolean True if the table contains the column. - */ - public function hasColumnByPhpName($phpName) - { - return isset($this->columnsByPhpName[$phpName]); - } - - /** - * Get a ColumnMap for the table. - * - * @param string $phpName A String with the name of the table. - * @return ColumnMap A ColumnMap. - * @throws PropelException if the column is undefined - */ - public function getColumnByPhpName($phpName) - { - if (!isset($this->columnsByPhpName[$phpName])) { - throw new PropelException("Cannot fetch ColumnMap for undefined column phpName: " . $phpName); - } - return $this->columnsByPhpName[$phpName]; - } - - /** - * Get a ColumnMap[] of the columns in this table. - * - * @return array A ColumnMap[]. - */ - public function getColumns() - { - return $this->columns; - } - - /** - * Add a primary key column to this Table. - * - * @param string $columnName A String with the column name. - * @param string $type A string specifying the Propel type. - * @param boolean $isNotNull Whether column does not allow NULL values. - * @param $size An int specifying the size. - * @return ColumnMap Newly added PrimaryKey column. - */ - public function addPrimaryKey($columnName, $phpName, $type, $isNotNull = false, $size = null, $defaultValue = null) - { - return $this->addColumn($columnName, $phpName, $type, $isNotNull, $size, $defaultValue, true, null, null); - } - - /** - * Add a foreign key column to the table. - * - * @param string $columnName A String with the column name. - * @param string $type A string specifying the Propel type. - * @param string $fkTable A String with the foreign key table name. - * @param string $fkColumn A String with the foreign key column name. - * @param boolean $isNotNull Whether column does not allow NULL values. - * @param int $size An int specifying the size. - * @param string $defaultValue The default value for this column. - * @return ColumnMap Newly added ForeignKey column. - */ - public function addForeignKey($columnName, $phpName, $type, $fkTable, $fkColumn, $isNotNull = false, $size = 0, $defaultValue = null) - { - return $this->addColumn($columnName, $phpName, $type, $isNotNull, $size, $defaultValue, false, $fkTable, $fkColumn); - } - - /** - * Add a foreign primary key column to the table. - * - * @param string $columnName A String with the column name. - * @param string $type A string specifying the Propel type. - * @param string $fkTable A String with the foreign key table name. - * @param string $fkColumn A String with the foreign key column name. - * @param boolean $isNotNull Whether column does not allow NULL values. - * @param int $size An int specifying the size. - * @param string $defaultValue The default value for this column. - * @return ColumnMap Newly created foreign pkey column. - */ - public function addForeignPrimaryKey($columnName, $phpName, $type, $fkTable, $fkColumn, $isNotNull = false, $size = 0, $defaultValue = null) - { - return $this->addColumn($columnName, $phpName, $type, $isNotNull, $size, $defaultValue, true, $fkTable, $fkColumn); - } - - /** - * Returns array of ColumnMap objects that make up the primary key for this table - * - * @return array ColumnMap[] - */ - public function getPrimaryKeys() - { - return $this->primaryKeys; - } - - /** - * Returns array of ColumnMap objects that are foreign keys for this table - * - * @return array ColumnMap[] - */ - public function getForeignKeys() - { - return $this->foreignKeys; - } - - /** - * Add a validator to a table's column - * - * @param string $columnName The name of the validator's column - * @param string $name The rule name of this validator - * @param string $classname The dot-path name of class to use (e.g. myapp.propel.MyValidator) - * @param string $value - * @param string $message The error message which is returned on invalid values - * @return void - */ - public function addValidator($columnName, $name, $classname, $value, $message) - { - if (false !== ($pos = strpos($columnName, '.'))) { - $columnName = substr($columnName, $pos + 1); - } - - $col = $this->getColumn($columnName); - if ($col !== null) { - $validator = new ValidatorMap($col); - $validator->setName($name); - $validator->setClass($classname); - $validator->setValue($value); - $validator->setMessage($message); - $col->addValidator($validator); - } - } - - /** - * Build relations - * Relations are lazy loaded for performance reasons - * This method should be overridden by descendents - */ - public function buildRelations() - { - } - - /** - * Adds a RelationMap to the table - * - * @param string $name The relation name - * @param string $tablePhpName The related table name - * @param integer $type The relation type (either RelationMap::MANY_TO_ONE, RelationMap::ONE_TO_MANY, or RelationMAp::ONE_TO_ONE) - * @param array $columnMapping An associative array mapping column names (local => foreign) - * @return RelationMap the built RelationMap object - */ - public function addRelation($name, $tablePhpName, $type, $columnMapping = array(), $onDelete = null, $onUpdate = null) - { - // note: using phpName for the second table allows the use of DatabaseMap::getTableByPhpName() - // and this method autoloads the TableMap if the table isn't loaded yet - $relation = new RelationMap($name); - $relation->setType($type); - $relation->setOnUpdate($onUpdate); - $relation->setOnDelete($onDelete); - // set tables - if ($type == RelationMap::MANY_TO_ONE) { - $relation->setLocalTable($this); - $relation->setForeignTable($this->dbMap->getTableByPhpName($tablePhpName)); - } else { - $relation->setLocalTable($this->dbMap->getTableByPhpName($tablePhpName)); - $relation->setForeignTable($this); - $columnMapping = array_flip($columnMapping); - } - // set columns - foreach ($columnMapping as $local => $foreign) { - $relation->addColumnMapping( - $relation->getLocalTable()->getColumn($local), - $relation->getForeignTable()->getColumn($foreign) - ); - } - $this->relations[$name] = $relation; - return $relation; - } - - /** - * Gets a RelationMap of the table by relation name - * This method will build the relations if they are not built yet - * - * @param String $name The relation name - * @return boolean true if the relation exists - */ - public function hasRelation($name) - { - return array_key_exists($name, $this->getRelations()); - } - - /** - * Gets a RelationMap of the table by relation name - * This method will build the relations if they are not built yet - * - * @param String $name The relation name - * @return RelationMap The relation object - * @throws PropelException When called on an inexistent relation - */ - public function getRelation($name) - { - if (!array_key_exists($name, $this->getRelations())) - { - throw new PropelException('Calling getRelation() on an unknown relation, ' . $name); - } - return $this->relations[$name]; - } - - /** - * Gets the RelationMap objects of the table - * This method will build the relations if they are not built yet - * - * @return Array list of RelationMap objects - */ - public function getRelations() - { - if(!$this->relationsBuilt) - { - $this->buildRelations(); - $this->relationsBuilt = true; - } - return $this->relations; - } - - /** - * - * Gets the list of behaviors registered for this table - * - * @return array - */ - public function getBehaviors() - { - return array(); - } - - // Deprecated methods and attributres, to be removed - - /** - * Does this table contain the specified column? - * - * @deprecated Use hasColumn instead - * @param mixed $name name of the column or ColumnMap instance - * @param boolean $normalize Normalize the column name (if column name not like FIRST_NAME) - * @return boolean True if the table contains the column. - */ - public function containsColumn($name, $normalize = true) - { - return $this->hasColumn($name, $normalize); - } - - /** - * Normalizes the column name, removing table prefix and uppercasing. - * article.first_name becomes FIRST_NAME - * - * @deprecated Use ColumnMap::normalizeColumName() instead - * @param string $name - * @return string Normalized column name. - */ - protected function normalizeColName($name) - { - return ColumnMap::normalizeName($name); - } - - /** - * Returns array of ColumnMap objects that make up the primary key for this table. - * - * @deprecated Use getPrimaryKeys instead - * @return array ColumnMap[] - */ - public function getPrimaryKeyColumns() - { - return array_values($this->primaryKeys); - } - - //---Utility methods for doing intelligent lookup of table names - - /** - * The prefix on the table name. - * @deprecated Not used anywhere in Propel - */ - private $prefix; - - /** - * Get table prefix name. - * - * @deprecated Not used anywhere in Propel - * @return string A String with the prefix. - */ - public function getPrefix() - { - return $this->prefix; - } - - /** - * Set table prefix name. - * - * @deprecated Not used anywhere in Propel - * @param string $prefix The prefix for the table name (ie: SCARAB for - * SCARAB_PROJECT). - * @return void - */ - public function setPrefix($prefix) - { - $this->prefix = $prefix; - } - - /** - * Tell me if i have PREFIX in my string. - * - * @deprecated Not used anywhere in Propel - * @param data A String. - * @return boolean True if prefix is contained in data. - */ - protected function hasPrefix($data) - { - return (strpos($data, $this->prefix) === 0); - } - - /** - * Removes the PREFIX if found - * - * @deprecated Not used anywhere in Propel - * @param string $data A String. - * @return string A String with data, but with prefix removed. - */ - protected function removePrefix($data) - { - return $this->hasPrefix($data) ? substr($data, strlen($this->prefix)) : $data; - } - - /** - * Removes the PREFIX, removes the underscores and makes - * first letter caps. - * - * SCARAB_FOO_BAR becomes FooBar. - * - * @deprecated Not used anywhere in Propel. At buildtime, use Column::generatePhpName() for that purpose - * @param data A String. - * @return string A String with data processed. - */ - public final function removeUnderScores($data) - { - $out = ''; - $tmp = $this->removePrefix($data); - $tok = strtok($tmp, '_'); - while ($tok) { - $out .= ucfirst($tok); - $tok = strtok('_'); - } - return $out; - } - - /** - * Makes the first letter caps and the rest lowercase. - * - * @deprecated Not used anywhere in Propel. - * @param string $data A String. - * @return string A String with data processed. - */ - private function firstLetterCaps($data) - { - return(ucfirst(strtolower($data))); - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/map/ValidatorMap.php b/airtime_mvc/library/propel/runtime/lib/map/ValidatorMap.php deleted file mode 100644 index 11f18c0a7f..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/map/ValidatorMap.php +++ /dev/null @@ -1,92 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.runtime.map - */ -class ValidatorMap -{ - /** rule name of this validator */ - private $name; - /** the dot-path to class to use for validator */ - private $classname; - /** value to check against */ - private $value; - /** execption message thrown on invalid input */ - private $message; - /** related column */ - private $column; - - public function __construct($containingColumn) - { - $this->column = $containingColumn; - } - - public function getColumn() - { - return $this->column; - } - - public function getColumnName() - { - return $this->column->getColumnName(); - } - - public function setName($name) - { - $this->name = $name; - } - - public function setClass($classname) - { - $this->classname = $classname; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getName() - { - return $this->name; - } - - public function getClass() - { - return $this->classname; - } - - public function getValue() - { - return $this->value; - } - - public function getMessage() - { - return $this->message; - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/om/BaseObject.php b/airtime_mvc/library/propel/runtime/lib/om/BaseObject.php deleted file mode 100644 index a0a7d126ea..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/om/BaseObject.php +++ /dev/null @@ -1,319 +0,0 @@ - (Propel) - * @author Frank Y. Kim (Torque) - * @author John D. McNally (Torque) - * @version $Revision: 1673 $ - * @package propel.runtime.om - */ -abstract class BaseObject -{ - - /** - * attribute to determine if this object has previously been saved. - * @var boolean - */ - protected $_new = true; - - /** - * attribute to determine whether this object has been deleted. - * @var boolean - */ - protected $_deleted = false; - - /** - * The columns that have been modified in current object. - * Tracking modified columns allows us to only update modified columns. - * @var array - */ - protected $modifiedColumns = array(); - - /** - * The (virtual) columns that are added at runtime - * The formatters can add supplementary columns based on a resultset - * @var array - */ - protected $virtualColumns = array(); - - /** - * Empty constructor (this allows people with their own BaseObject implementation to use its constructor) - */ - public function __construct() { - - } - - /** - * Returns whether the object has been modified. - * - * @return boolean True if the object has been modified. - */ - public function isModified() - { - return !empty($this->modifiedColumns); - } - - /** - * Has specified column been modified? - * - * @param string $col column fully qualified name (BasePeer::TYPE_COLNAME), e.g. Book::AUTHOR_ID - * @return boolean True if $col has been modified. - */ - public function isColumnModified($col) - { - return in_array($col, $this->modifiedColumns); - } - - /** - * Get the columns that have been modified in this object. - * @return array A unique list of the modified column names for this object. - */ - public function getModifiedColumns() - { - return array_unique($this->modifiedColumns); - } - - /** - * Returns whether the object has ever been saved. This will - * be false, if the object was retrieved from storage or was created - * and then saved. - * - * @return true, if the object has never been persisted. - */ - public function isNew() - { - return $this->_new; - } - - /** - * Setter for the isNew attribute. This method will be called - * by Propel-generated children and Peers. - * - * @param boolean $b the state of the object. - */ - public function setNew($b) - { - $this->_new = (boolean) $b; - } - - /** - * Whether this object has been deleted. - * @return boolean The deleted state of this object. - */ - public function isDeleted() - { - return $this->_deleted; - } - - /** - * Specify whether this object has been deleted. - * @param boolean $b The deleted state of this object. - * @return void - */ - public function setDeleted($b) - { - $this->_deleted = (boolean) $b; - } - - /** - * Code to be run before persisting the object - * @param PropelPDO $con - * @return bloolean - */ - public function preSave(PropelPDO $con = null) - { - return true; - } - - /** - * Code to be run after persisting the object - * @param PropelPDO $con - */ - public function postSave(PropelPDO $con = null) { } - - /** - * Code to be run before inserting to database - * @param PropelPDO $con - * @return boolean - */ - public function preInsert(PropelPDO $con = null) - { - return true; - } - - /** - * Code to be run after inserting to database - * @param PropelPDO $con - */ - public function postInsert(PropelPDO $con = null) { } - - /** - * Code to be run before updating the object in database - * @param PropelPDO $con - * @return boolean - */ - public function preUpdate(PropelPDO $con = null) - { - return true; - } - - /** - * Code to be run after updating the object in database - * @param PropelPDO $con - */ - public function postUpdate(PropelPDO $con = null) { } - - /** - * Code to be run before deleting the object in database - * @param PropelPDO $con - * @return boolean - */ - public function preDelete(PropelPDO $con = null) - { - return true; - } - - /** - * Code to be run after deleting the object in database - * @param PropelPDO $con - */ - public function postDelete(PropelPDO $con = null) { } - - /** - * Sets the modified state for the object to be false. - * @param string $col If supplied, only the specified column is reset. - * @return void - */ - public function resetModified($col = null) - { - if ($col !== null) { - while (($offset = array_search($col, $this->modifiedColumns)) !== false) { - array_splice($this->modifiedColumns, $offset, 1); - } - } else { - $this->modifiedColumns = array(); - } - } - - /** - * Compares this with another BaseObject instance. If - * obj is an instance of BaseObject, delegates to - * equals(BaseObject). Otherwise, returns false. - * - * @param obj The object to compare to. - * @return Whether equal to the object specified. - */ - public function equals($obj) - { - $thisclazz = get_class($this); - if (is_object($obj) && $obj instanceof $thisclazz) { - if ($this === $obj) { - return true; - } elseif ($this->getPrimaryKey() === null || $obj->getPrimaryKey() === null) { - return false; - } else { - return ($this->getPrimaryKey() === $obj->getPrimaryKey()); - } - } else { - return false; - } - } - - /** - * If the primary key is not null, return the hashcode of the - * primary key. Otherwise calls Object.hashCode(). - * - * @return int Hashcode - */ - public function hashCode() - { - $ok = $this->getPrimaryKey(); - if ($ok === null) { - return crc32(serialize($this)); - } - return crc32(serialize($ok)); // serialize because it could be an array ("ComboKey") - } - - /** - * Get the associative array of the virtual columns in this object - * - * @param string $name The virtual column name - * - * @return array - */ - public function getVirtualColumns() - { - return $this->virtualColumns; - } - - /** - * Checks the existence of a virtual column in this object - * - * @return boolean - */ - public function hasVirtualColumn($name) - { - return array_key_exists($name, $this->virtualColumns); - } - - /** - * Get the value of a virtual column in this object - * - * @return mixed - */ - public function getVirtualColumn($name) - { - if (!$this->hasVirtualColumn($name)) { - throw new PropelException('Cannot get value of inexistent virtual column ' . $name); - } - return $this->virtualColumns[$name]; - } - - /** - * Get the value of a virtual column in this object - * - * @param string $name The virtual column name - * @param mixed $value The value to give to the virtual column - * - * @return BaseObject The current object, for fluid interface - */ - public function setVirtualColumn($name, $value) - { - $this->virtualColumns[$name] = $value; - return $this; - } - - /** - * Logs a message using Propel::log(). - * - * @param string $msg - * @param int $priority One of the Propel::LOG_* logging levels - * @return boolean - */ - protected function log($msg, $priority = Propel::LOG_INFO) - { - return Propel::log(get_class($this) . ': ' . $msg, $priority); - } - - /** - * Clean up internal collections prior to serializing - * Avoids recursive loops that turn into segmentation faults when serializing - */ - public function __sleep() - { - $this->clearAllReferences(); - return array_keys(get_object_vars($this)); - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/om/NestedSetRecursiveIterator.php b/airtime_mvc/library/propel/runtime/lib/om/NestedSetRecursiveIterator.php deleted file mode 100644 index 97a83028ce..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/om/NestedSetRecursiveIterator.php +++ /dev/null @@ -1,86 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.runtime.om - */ -class NestedSetRecursiveIterator implements RecursiveIterator -{ - protected $topNode = null; - - protected $curNode = null; - - public function __construct($node) - { - $this->topNode = $node; - $this->curNode = $node; - } - - public function rewind() - { - $this->curNode = $this->topNode; - } - - public function valid() - { - return ($this->curNode !== null); - } - - public function current() - { - return $this->curNode; - } - - public function key() - { - $method = method_exists($this->curNode, 'getPath') ? 'getPath' : 'getAncestors'; - $key = array(); - foreach ($this->curNode->$method() as $node) { - $key[] = $node->getPrimaryKey(); - } - return implode('.', $key); - } - - public function next() - { - $nextNode = null; - $method = method_exists($this->curNode, 'retrieveNextSibling') ? 'retrieveNextSibling' : 'getNextSibling'; - if ($this->valid()) { - while (null === $nextNode) { - if (null === $this->curNode) { - break; - } - - if ($this->curNode->hasNextSibling()) { - $nextNode = $this->curNode->$method(); - } else { - break; - } - } - $this->curNode = $nextNode; - } - return $this->curNode; - } - - public function hasChildren() - { - return $this->curNode->hasChildren(); - } - - public function getChildren() - { - $method = method_exists($this->curNode, 'retrieveFirstChild') ? 'retrieveFirstChild' : 'getFirstChild'; - return new NestedSetRecursiveIterator($this->curNode->$method()); - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/om/NodeObject.php b/airtime_mvc/library/propel/runtime/lib/om/NodeObject.php deleted file mode 100644 index 9353fe671d..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/om/NodeObject.php +++ /dev/null @@ -1,324 +0,0 @@ - (Propel) - * @version $Revision: 1612 $ - * @package propel.runtime.om - */ -interface NodeObject extends IteratorAggregate -{ - /** - * If object is saved without left/right values, set them as undefined (0) - * - * @param PropelPDO $con Connection to use. - * @return void - * @throws PropelException - */ - public function save(PropelPDO $con = null); - - /** - * Delete node and descendants - * - * @param PropelPDO $con Connection to use. - * @return void - * @throws PropelException - */ - public function delete(PropelPDO $con = null); - - /** - * Sets node properties to make it a root node. - * - * @return object The current object (for fluent API support) - * @throws PropelException - */ - public function makeRoot(); - - /** - * Gets the level if set, otherwise calculates this and returns it - * - * @param PropelPDO $con Connection to use. - * @return int - */ - public function getLevel(PropelPDO $con = null); - - /** - * Get the path to the node in the tree - * - * @param PropelPDO $con Connection to use. - * @return array - */ - public function getPath(PropelPDO $con = null); - - /** - * Gets the number of children for the node (direct descendants) - * - * @param PropelPDO $con Connection to use. - * @return int - */ - public function getNumberOfChildren(PropelPDO $con = null); - - /** - * Gets the total number of desceandants for the node - * - * @param PropelPDO $con Connection to use. - * @return int - */ - public function getNumberOfDescendants(PropelPDO $con = null); - - /** - * Gets the children for the node - * - * @param PropelPDO $con Connection to use. - * @return array - */ - public function getChildren(PropelPDO $con = null); - - /** - * Gets the descendants for the node - * - * @param PropelPDO $con Connection to use. - * @return array - */ - public function getDescendants(PropelPDO $con = null); - - /** - * Sets the level of the node in the tree - * - * @param int $v new value - * @return object The current object (for fluent API support) - */ - public function setLevel($level); - - /** - * Sets the children array of the node in the tree - * - * @param array of Node $children array of Propel node object - * @return object The current object (for fluent API support) - */ - public function setChildren(array $children); - - /** - * Sets the parentNode of the node in the tree - * - * @param Node $parent Propel node object - * @return object The current object (for fluent API support) - */ - public function setParentNode(NodeObject $parent = null); - - /** - * Sets the previous sibling of the node in the tree - * - * @param Node $node Propel node object - * @return object The current object (for fluent API support) - */ - public function setPrevSibling(NodeObject $node = null); - - /** - * Sets the next sibling of the node in the tree - * - * @param Node $node Propel node object - * @return object The current object (for fluent API support) - */ - public function setNextSibling(NodeObject $node = null); - - /** - * Determines if the node is the root node - * - * @return bool - */ - public function isRoot(); - - /** - * Determines if the node is a leaf node - * - * @return bool - */ - public function isLeaf(); - - /** - * Tests if object is equal to $node - * - * @param object $node Propel object for node to compare to - * @return bool - */ - public function isEqualTo(NodeObject $node); - - /** - * Tests if object has an ancestor - * - * @param PropelPDO $con Connection to use. - * @return bool - */ - public function hasParent(PropelPDO $con = null); - - /** - * Determines if the node has children / descendants - * - * @return bool - */ - public function hasChildren(); - - /** - * Determines if the node has previous sibling - * - * @param PropelPDO $con Connection to use. - * @return bool - */ - public function hasPrevSibling(PropelPDO $con = null); - - /** - * Determines if the node has next sibling - * - * @param PropelPDO $con Connection to use. - * @return bool - */ - public function hasNextSibling(PropelPDO $con = null); - - /** - * Gets ancestor for the given node if it exists - * - * @param PropelPDO $con Connection to use. - * @return mixed Propel object if exists else false - */ - public function retrieveParent(PropelPDO $con = null); - - /** - * Gets first child if it exists - * - * @param PropelPDO $con Connection to use. - * @return mixed Propel object if exists else false - */ - public function retrieveFirstChild(PropelPDO $con = null); - - /** - * Gets last child if it exists - * - * @param PropelPDO $con Connection to use. - * @return mixed Propel object if exists else false - */ - public function retrieveLastChild(PropelPDO $con = null); - - /** - * Gets prev sibling for the given node if it exists - * - * @param PropelPDO $con Connection to use. - * @return mixed Propel object if exists else false - */ - public function retrievePrevSibling(PropelPDO $con = null); - - /** - * Gets next sibling for the given node if it exists - * - * @param PropelPDO $con Connection to use. - * @return mixed Propel object if exists else false - */ - public function retrieveNextSibling(PropelPDO $con = null); - - /** - * Inserts as first child of destination node $parent - * - * @param object $parent Propel object for given destination node - * @param PropelPDO $con Connection to use. - * @return object The current object (for fluent API support) - */ - public function insertAsFirstChildOf(NodeObject $parent, PropelPDO $con = null); - - /** - * Inserts as last child of destination node $parent - * - * @param object $parent Propel object for given destination node - * @param PropelPDO $con Connection to use. - * @return object The current object (for fluent API support) - */ - public function insertAsLastChildOf(NodeObject $parent, PropelPDO $con = null); - - /** - * Inserts node as previous sibling to destination node $dest - * - * @param object $dest Propel object for given destination node - * @param PropelPDO $con Connection to use. - * @return object The current object (for fluent API support) - */ - public function insertAsPrevSiblingOf(NodeObject $dest, PropelPDO $con = null); - - /** - * Inserts node as next sibling to destination node $dest - * - * @param object $dest Propel object for given destination node - * @param PropelPDO $con Connection to use. - * @return object The current object (for fluent API support) - */ - public function insertAsNextSiblingOf(NodeObject $dest, PropelPDO $con = null); - - /** - * Moves node to be first child of $parent - * - * @param object $parent Propel object for destination node - * @param PropelPDO $con Connection to use. - * @return void - */ - public function moveToFirstChildOf(NodeObject $parent, PropelPDO $con = null); - - /** - * Moves node to be last child of $parent - * - * @param object $parent Propel object for destination node - * @param PropelPDO $con Connection to use. - * @return void - */ - public function moveToLastChildOf(NodeObject $parent, PropelPDO $con = null); - - /** - * Moves node to be prev sibling to $dest - * - * @param object $dest Propel object for destination node - * @param PropelPDO $con Connection to use. - * @return void - */ - public function moveToPrevSiblingOf(NodeObject $dest, PropelPDO $con = null); - - /** - * Moves node to be next sibling to $dest - * - * @param object $dest Propel object for destination node - * @param PropelPDO $con Connection to use. - * @return void - */ - public function moveToNextSiblingOf(NodeObject $dest, PropelPDO $con = null); - - /** - * Inserts node as parent of given node. - * - * @param object $node Propel object for given destination node - * @param PropelPDO $con Connection to use. - * @return void - * @throws Exception When trying to insert node as parent of a root node - */ - public function insertAsParentOf(NodeObject $node, PropelPDO $con = null); - - /** - * Wraps the getter for the scope value - * - * @return int - */ - public function getScopeIdValue(); - - /** - * Set the value of scope column - * - * @param int $v new value - * @return object The current object (for fluent API support) - */ - public function setScopeIdValue($v); -} // NodeObject diff --git a/airtime_mvc/library/propel/runtime/lib/om/Persistent.php b/airtime_mvc/library/propel/runtime/lib/om/Persistent.php deleted file mode 100644 index 02d6c20d95..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/om/Persistent.php +++ /dev/null @@ -1,108 +0,0 @@ - (Propel) - * @author John D. McNally (Torque) - * @author Fedor K. (Torque) - * @version $Revision: 1612 $ - * @package propel.runtime.om - */ -interface Persistent -{ - - /** - * getter for the object primaryKey. - * - * @return ObjectKey the object primaryKey as an Object - */ - public function getPrimaryKey(); - - /** - * Sets the PrimaryKey for the object. - * - * @param mixed $primaryKey The new PrimaryKey object or string (result of PrimaryKey.toString()). - * @return void - * @throws Exception, This method might throw an exceptions - */ - public function setPrimaryKey($primaryKey); - - - /** - * Returns whether the object has been modified, since it was - * last retrieved from storage. - * - * @return boolean True if the object has been modified. - */ - public function isModified(); - - /** - * Has specified column been modified? - * - * @param string $col - * @return boolean True if $col has been modified. - */ - public function isColumnModified($col); - - /** - * Returns whether the object has ever been saved. This will - * be false, if the object was retrieved from storage or was created - * and then saved. - * - * @return boolean True, if the object has never been persisted. - */ - public function isNew(); - - /** - * Setter for the isNew attribute. This method will be called - * by Propel-generated children and Peers. - * - * @param boolean $b the state of the object. - */ - public function setNew($b); - - /** - * Resets (to false) the "modified" state for this object. - * - * @return void - */ - public function resetModified(); - - /** - * Whether this object has been deleted. - * @return boolean The deleted state of this object. - */ - public function isDeleted(); - - /** - * Specify whether this object has been deleted. - * @param boolean $b The deleted state of this object. - * @return void - */ - public function setDeleted($b); - - /** - * Deletes the object. - * @param PropelPDO $con - * @return void - * @throws Exception - */ - public function delete(PropelPDO $con = null); - - /** - * Saves the object. - * @param PropelPDO $con - * @return void - * @throws Exception - */ - public function save(PropelPDO $con = null); -} diff --git a/airtime_mvc/library/propel/runtime/lib/om/PreOrderNodeIterator.php b/airtime_mvc/library/propel/runtime/lib/om/PreOrderNodeIterator.php deleted file mode 100644 index 0afde7f916..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/om/PreOrderNodeIterator.php +++ /dev/null @@ -1,78 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.runtime.om - */ -class PreOrderNodeIterator implements Iterator -{ - private $topNode = null; - - private $curNode = null; - - private $querydb = false; - - private $con = null; - - public function __construct($node, $opts) { - $this->topNode = $node; - $this->curNode = $node; - - if (isset($opts['con'])) - $this->con = $opts['con']; - - if (isset($opts['querydb'])) - $this->querydb = $opts['querydb']; - } - - public function rewind() { - $this->curNode = $this->topNode; - } - - public function valid() { - return ($this->curNode !== null); - } - - public function current() { - return $this->curNode; - } - - public function key() { - return $this->curNode->getNodePath(); - } - - public function next() { - - if ($this->valid()) - { - $nextNode = $this->curNode->getFirstChildNode($this->querydb, $this->con); - - while ($nextNode === null) - { - if ($this->curNode === null || $this->curNode->equals($this->topNode)) - break; - - $nextNode = $this->curNode->getSiblingNode(false, $this->querydb, $this->con); - - if ($nextNode === null) - $this->curNode = $this->curNode->getParentNode($this->querydb, $this->con); - } - - $this->curNode = $nextNode; - } - - return $this->curNode; - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/query/Criteria.php b/airtime_mvc/library/propel/runtime/lib/query/Criteria.php deleted file mode 100644 index cbb3317f1f..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/query/Criteria.php +++ /dev/null @@ -1,1561 +0,0 @@ - (Propel) - * @author Kaspars Jaudzems (Propel) - * @author Frank Y. Kim (Torque) - * @author John D. McNally (Torque) - * @author Brett McLaughlin (Torque) - * @author Eric Dobbs (Torque) - * @author Henning P. Schmiedehausen (Torque) - * @author Sam Joseph (Torque) - * @version $Revision: 1765 $ - * @package propel.runtime.query - */ -class Criteria implements IteratorAggregate -{ - - /** Comparison type. */ - const EQUAL = "="; - - /** Comparison type. */ - const NOT_EQUAL = "<>"; - - /** Comparison type. */ - const ALT_NOT_EQUAL = "!="; - - /** Comparison type. */ - const GREATER_THAN = ">"; - - /** Comparison type. */ - const LESS_THAN = "<"; - - /** Comparison type. */ - const GREATER_EQUAL = ">="; - - /** Comparison type. */ - const LESS_EQUAL = "<="; - - /** Comparison type. */ - const LIKE = " LIKE "; - - /** Comparison type. */ - const NOT_LIKE = " NOT LIKE "; - - /** PostgreSQL comparison type */ - const ILIKE = " ILIKE "; - - /** PostgreSQL comparison type */ - const NOT_ILIKE = " NOT ILIKE "; - - /** Comparison type. */ - const CUSTOM = "CUSTOM"; - - /** Comparison type for update */ - const CUSTOM_EQUAL = "CUSTOM_EQUAL"; - - /** Comparison type. */ - const DISTINCT = "DISTINCT"; - - /** Comparison type. */ - const IN = " IN "; - - /** Comparison type. */ - const NOT_IN = " NOT IN "; - - /** Comparison type. */ - const ALL = "ALL"; - - /** Comparison type. */ - const JOIN = "JOIN"; - - /** Binary math operator: AND */ - const BINARY_AND = "&"; - - /** Binary math operator: OR */ - const BINARY_OR = "|"; - - /** "Order by" qualifier - ascending */ - const ASC = "ASC"; - - /** "Order by" qualifier - descending */ - const DESC = "DESC"; - - /** "IS NULL" null comparison */ - const ISNULL = " IS NULL "; - - /** "IS NOT NULL" null comparison */ - const ISNOTNULL = " IS NOT NULL "; - - /** "CURRENT_DATE" ANSI SQL function */ - const CURRENT_DATE = "CURRENT_DATE"; - - /** "CURRENT_TIME" ANSI SQL function */ - const CURRENT_TIME = "CURRENT_TIME"; - - /** "CURRENT_TIMESTAMP" ANSI SQL function */ - const CURRENT_TIMESTAMP = "CURRENT_TIMESTAMP"; - - /** "LEFT JOIN" SQL statement */ - const LEFT_JOIN = "LEFT JOIN"; - - /** "RIGHT JOIN" SQL statement */ - const RIGHT_JOIN = "RIGHT JOIN"; - - /** "INNER JOIN" SQL statement */ - const INNER_JOIN = "INNER JOIN"; - - /** logical OR operator */ - const LOGICAL_OR = "OR"; - - /** logical AND operator */ - const LOGICAL_AND = "AND"; - - protected $ignoreCase = false; - protected $singleRecord = false; - - /** - * Storage of select data. Collection of column names. - * @var array - */ - protected $selectColumns = array(); - - /** - * Storage of aliased select data. Collection of column names. - * @var array - */ - protected $asColumns = array(); - - /** - * Storage of select modifiers data. Collection of modifier names. - * @var array - */ - protected $selectModifiers = array(); - - /** - * Storage of conditions data. Collection of Criterion objects. - * @var array - */ - protected $map = array(); - - /** - * Storage of ordering data. Collection of column names. - * @var array - */ - protected $orderByColumns = array(); - - /** - * Storage of grouping data. Collection of column names. - * @var array - */ - protected $groupByColumns = array(); - - /** - * Storage of having data. - * @var Criterion - */ - protected $having = null; - - /** - * Storage of join data. colleciton of Join objects. - * @var array - */ - protected $joins = array(); - - /** - * The name of the database. - * @var string - */ - protected $dbName; - - /** - * The primary table for this Criteria. - * Useful in cases where there are no select or where - * columns. - * @var string - */ - protected $primaryTableName; - - /** The name of the database as given in the contructor. */ - protected $originalDbName; - - /** - * To limit the number of rows to return. 0 means return all - * rows. - */ - protected $limit = 0; - - /** To start the results at a row other than the first one. */ - protected $offset = 0; - - /** - * Comment to add to the SQL query - * @var string - */ - protected $queryComment; - - // flag to note that the criteria involves a blob. - protected $blobFlag = null; - - protected $aliases = array(); - - protected $useTransaction = false; - - /** - * Storage for Criterions expected to be combined - * @var array - */ - protected $namedCriterions = array(); - - /** - * Creates a new instance with the default capacity which corresponds to - * the specified database. - * - * @param dbName The dabase name. - */ - public function __construct($dbName = null) - { - $this->setDbName($dbName); - $this->originalDbName = $dbName; - } - - /** - * Implementing SPL IteratorAggregate interface. This allows - * you to foreach () over a Criteria object. - */ - public function getIterator() - { - return new CriterionIterator($this); - } - - /** - * Get the criteria map, i.e. the array of Criterions - * @return array - */ - public function getMap() - { - return $this->map; - } - - /** - * Brings this criteria back to its initial state, so that it - * can be reused as if it was new. Except if the criteria has grown in - * capacity, it is left at the current capacity. - * @return void - */ - public function clear() - { - $this->map = array(); - $this->namedCriterions = array(); - $this->ignoreCase = false; - $this->singleRecord = false; - $this->selectModifiers = array(); - $this->selectColumns = array(); - $this->orderByColumns = array(); - $this->groupByColumns = array(); - $this->having = null; - $this->asColumns = array(); - $this->joins = array(); - $this->dbName = $this->originalDbName; - $this->offset = 0; - $this->limit = -1; - $this->blobFlag = null; - $this->aliases = array(); - $this->useTransaction = false; - } - - /** - * Add an AS clause to the select columns. Usage: - * - * - * Criteria myCrit = new Criteria(); - * myCrit->addAsColumn("alias", "ALIAS(".MyPeer::ID.")"); - * - * - * @param string $name Wanted Name of the column (alias). - * @param string $clause SQL clause to select from the table - * - * If the name already exists, it is replaced by the new clause. - * - * @return Criteria A modified Criteria object. - */ - public function addAsColumn($name, $clause) - { - $this->asColumns[$name] = $clause; - return $this; - } - - /** - * Get the column aliases. - * - * @return array An assoc array which map the column alias names - * to the alias clauses. - */ - public function getAsColumns() - { - return $this->asColumns; - } - - /** - * Returns the column name associated with an alias (AS-column). - * - * @param string $alias - * @return string $string - */ - public function getColumnForAs($as) - { - if (isset($this->asColumns[$as])) { - return $this->asColumns[$as]; - } - } - - /** - * Allows one to specify an alias for a table that can - * be used in various parts of the SQL. - * - * @param string $alias - * @param string $table - * - * @return Criteria A modified Criteria object. - */ - public function addAlias($alias, $table) - { - $this->aliases[$alias] = $table; - - return $this; - } - - /** - * Remove an alias for a table (useful when merging Criterias). - * - * @param string $alias - * - * @return Criteria A modified Criteria object. - */ - public function removeAlias($alias) - { - unset($this->aliases[$alias]); - - return $this; - } - - /** - * Returns the aliases for this Criteria - * - * @return array - */ - public function getAliases() - { - return $this->aliases; - } - - /** - * Returns the table name associated with an alias. - * - * @param string $alias - * @return string $string - */ - public function getTableForAlias($alias) - { - if (isset($this->aliases[$alias])) { - return $this->aliases[$alias]; - } - } - - /** - * Get the keys of the criteria map, i.e. the list of columns bearing a condition - * - * print_r($c->keys()); - * => array('book.price', 'book.title', 'author.first_name') - * - * - * @return array - */ - public function keys() - { - return array_keys($this->map); - } - - /** - * Does this Criteria object contain the specified key? - * - * @param string $column [table.]column - * @return boolean True if this Criteria object contain the specified key. - */ - public function containsKey($column) - { - // must use array_key_exists() because the key could - // exist but have a NULL value (that'd be valid). - return array_key_exists($column, $this->map); - } - - /** - * Does this Criteria object contain the specified key and does it have a value set for the key - * - * @param string $column [table.]column - * @return boolean True if this Criteria object contain the specified key and a value for that key - */ - public function keyContainsValue($column) - { - // must use array_key_exists() because the key could - // exist but have a NULL value (that'd be valid). - return (array_key_exists($column, $this->map) && ($this->map[$column]->getValue() !== null) ); - } - - /** - * Whether this Criteria has any where columns. - * - * This counts conditions added with the add() method. - * - * @return boolean - * @see add() - */ - public function hasWhereClause() - { - return !empty($this->map); - } - - /** - * Will force the sql represented by this criteria to be executed within - * a transaction. This is here primarily to support the oid type in - * postgresql. Though it can be used to require any single sql statement - * to use a transaction. - * @return void - */ - public function setUseTransaction($v) - { - $this->useTransaction = (boolean) $v; - } - - /** - * Whether the sql command specified by this criteria must be wrapped - * in a transaction. - * - * @return boolean - */ - public function isUseTransaction() - { - return $this->useTransaction; - } - - /** - * Method to return criteria related to columns in a table. - * - * Make sure you call containsKey($column) prior to calling this method, - * since no check on the existence of the $column is made in this method. - * - * @param string $column Column name. - * @return Criterion A Criterion object. - */ - public function getCriterion($column) - { - return $this->map[$column]; - } - - /** - * Method to return the latest Criterion in a table. - * - * @return Criterion A Criterion or null no Criterion is added. - */ - public function getLastCriterion() - { - if($cnt = count($this->map)) { - $map = array_values($this->map); - return $map[$cnt - 1]; - } - return null; - } - - /** - * Method to return criterion that is not added automatically - * to this Criteria. This can be used to chain the - * Criterions to form a more complex where clause. - * - * @param string $column Full name of column (for example TABLE.COLUMN). - * @param mixed $value - * @param string $comparison - * @return Criterion - */ - public function getNewCriterion($column, $value = null, $comparison = self::EQUAL) - { - return new Criterion($this, $column, $value, $comparison); - } - - /** - * Method to return a String table name. - * - * @param string $name Name of the key. - * @return string The value of the object at key. - */ - public function getColumnName($name) - { - if (isset($this->map[$name])) { - return $this->map[$name]->getColumn(); - } - return null; - } - - /** - * Shortcut method to get an array of columns indexed by table. - * - * print_r($c->getTablesColumns()); - * => array( - * 'book' => array('book.price', 'book.title'), - * 'author' => array('author.first_name') - * ) - * - * - * @return array array(table => array(table.column1, table.column2)) - */ - public function getTablesColumns() - { - $tables = array(); - foreach ($this->keys() as $key) { - $tableName = substr($key, 0, strrpos($key, '.' )); - $tables[$tableName][] = $key; - } - return $tables; - } - - /** - * Method to return a comparison String. - * - * @param string $key String name of the key. - * @return string A String with the value of the object at key. - */ - public function getComparison($key) - { - if ( isset ( $this->map[$key] ) ) { - return $this->map[$key]->getComparison(); - } - return null; - } - - /** - * Get the Database(Map) name. - * - * @return string A String with the Database(Map) name. - */ - public function getDbName() - { - return $this->dbName; - } - - /** - * Set the DatabaseMap name. If null is supplied, uses value - * provided by Propel::getDefaultDB(). - * - * @param string $dbName The Database (Map) name. - * @return void - */ - public function setDbName($dbName = null) - { - $this->dbName = ($dbName === null ? Propel::getDefaultDB() : $dbName); - } - - /** - * Get the primary table for this Criteria. - * - * This is useful for cases where a Criteria may not contain - * any SELECT columns or WHERE columns. This must be explicitly - * set, of course, in order to be useful. - * - * @return string - */ - public function getPrimaryTableName() - { - return $this->primaryTableName; - } - - /** - * Sets the primary table for this Criteria. - * - * This is useful for cases where a Criteria may not contain - * any SELECT columns or WHERE columns. This must be explicitly - * set, of course, in order to be useful. - * - * @param string $v - */ - public function setPrimaryTableName($tableName) - { - $this->primaryTableName = $tableName; - } - - /** - * Method to return a String table name. - * - * @param string $name The name of the key. - * @return string The value of table for criterion at key. - */ - public function getTableName($name) - { - if (isset($this->map[$name])) { - return $this->map[$name]->getTable(); - } - return null; - } - - /** - * Method to return the value that was added to Criteria. - * - * @param string $name A String with the name of the key. - * @return mixed The value of object at key. - */ - public function getValue($name) - { - if (isset($this->map[$name])) { - return $this->map[$name]->getValue(); - } - return null; - } - - /** - * An alias to getValue() -- exposing a Hashtable-like interface. - * - * @param string $key An Object. - * @return mixed The value within the Criterion (not the Criterion object). - */ - public function get($key) - { - return $this->getValue($key); - } - - /** - * Overrides Hashtable put, so that this object is returned - * instead of the value previously in the Criteria object. - * The reason is so that it more closely matches the behavior - * of the add() methods. If you want to get the previous value - * then you should first Criteria.get() it yourself. Note, if - * you attempt to pass in an Object that is not a String, it will - * throw a NPE. The reason for this is that none of the add() - * methods support adding anything other than a String as a key. - * - * @param string $key - * @param mixed $value - * @return Instance of self. - */ - public function put($key, $value) - { - return $this->add($key, $value); - } - - /** - * Copies all of the mappings from the specified Map to this Criteria - * These mappings will replace any mappings that this Criteria had for any - * of the keys currently in the specified Map. - * - * if the map was another Criteria, its attributes are copied to this - * Criteria, overwriting previous settings. - * - * @param mixed $t Mappings to be stored in this map. - */ - public function putAll($t) - { - if (is_array($t)) { - foreach ($t as $key=>$value) { - if ($value instanceof Criterion) { - $this->map[$key] = $value; - } else { - $this->put($key, $value); - } - } - } elseif ($t instanceof Criteria) { - $this->joins = $t->joins; - } - } - - /** - * This method adds a new criterion to the list of criterias. - * If a criterion for the requested column already exists, it is - * replaced. If is used as follow: - * - * - * $crit = new Criteria(); - * $crit->add($column, $value, Criteria::GREATER_THAN); - * - * - * Any comparison can be used. - * - * The name of the table must be used implicitly in the column name, - * so the Column name must be something like 'TABLE.id'. - * - * @param string $critOrColumn The column to run the comparison on, or Criterion object. - * @param mixed $value - * @param string $comparison A String. - * - * @return A modified Criteria object. - */ - public function add($p1, $value = null, $comparison = null) - { - if ($p1 instanceof Criterion) { - $this->map[$p1->getTable() . '.' . $p1->getColumn()] = $p1; - } else { - $criterion = new Criterion($this, $p1, $value, $comparison); - $this->map[$p1] = $criterion; - } - return $this; - } - - /** - * This method creates a new criterion but keeps it for later use with combine() - * Until combine() is called, the condition is not added to the query - * - * - * $crit = new Criteria(); - * $crit->addCond('cond1', $column1, $value1, Criteria::GREATER_THAN); - * $crit->addCond('cond2', $column2, $value2, Criteria::EQUAL); - * $crit->combine(array('cond1', 'cond2'), Criteria::LOGICAL_OR); - * - * - * Any comparison can be used. - * - * The name of the table must be used implicitly in the column name, - * so the Column name must be something like 'TABLE.id'. - * - * @param string $name name to combine the criterion later - * @param string $p1 The column to run the comparison on, or Criterion object. - * @param mixed $value - * @param string $comparison A String. - * - * @return A modified Criteria object. - */ - public function addCond($name, $p1, $value = null, $comparison = null) - { - if ($p1 instanceof Criterion) { - $this->namedCriterions[$name] = $p1; - } else { - $criterion = new Criterion($this, $p1, $value, $comparison); - $this->namedCriterions[$name] = $criterion; - } - return $this; - } - - /** - * Combine several named criterions with a logical operator - * - * @param array $criterions array of the name of the criterions to combine - * @param string $operator logical operator, either Criteria::LOGICAL_AND, or Criteria::LOGICAL_OR - * @param string $name optional name to combine the criterion later - */ - public function combine($criterions = array(), $operator = self::LOGICAL_AND, $name = null) - { - $operatorMethod = (strtoupper($operator) == self::LOGICAL_AND) ? 'addAnd' : 'addOr'; - $namedCriterions = array(); - foreach ($criterions as $key) { - if (array_key_exists($key, $this->namedCriterions)) { - $namedCriterions[]= $this->namedCriterions[$key]; - unset($this->namedCriterions[$key]); - } else { - throw new PropelException('Cannot combine unknown condition ' . $key); - } - } - $firstCriterion = array_shift($namedCriterions); - foreach ($namedCriterions as $criterion) { - $firstCriterion->$operatorMethod($criterion); - } - if ($name === null) { - $this->add($firstCriterion, null, null); - } else { - $this->addCond($name, $firstCriterion, null, null); - } - - return $this; - } - - /** - * This is the way that you should add a join of two tables. - * Example usage: - * - * $c->addJoin(ProjectPeer::ID, FooPeer::PROJECT_ID, Criteria::LEFT_JOIN); - * // LEFT JOIN FOO ON PROJECT.ID = FOO.PROJECT_ID - * - * - * @param mixed $left A String with the left side of the join. - * @param mixed $right A String with the right side of the join. - * @param mixed $operator A String with the join operator - * among Criteria::INNER_JOIN, Criteria::LEFT_JOIN, - * and Criteria::RIGHT_JOIN - * - * @return Criteria A modified Criteria object. - */ - public function addJoin($left, $right, $operator = null) - { - $join = new Join(); - if (!is_array($left)) { - // simple join - $join->addCondition($left, $right); - } else { - // join with multiple conditions - // deprecated: use addMultipleJoin() instead - foreach ($left as $key => $value) - { - $join->addCondition($value, $right[$key]); - } - } - $join->setJoinType($operator); - - return $this->addJoinObject($join); - } - - /** - * Add a join with multiple conditions - * @see http://propel.phpdb.org/trac/ticket/167, http://propel.phpdb.org/trac/ticket/606 - * - * Example usage: - * $c->addMultipleJoin(array( - * array(LeftPeer::LEFT_COLUMN, RightPeer::RIGHT_COLUMN), // if no third argument, defaults to Criteria::EQUAL - * array(FoldersPeer::alias( 'fo', FoldersPeer::LFT ), FoldersPeer::alias( 'parent', FoldersPeer::RGT ), Criteria::LESS_EQUAL ) - * ), - * Criteria::LEFT_JOIN - * ); - * - * @see addJoin() - * @param array $conditions An array of conditions, each condition being an array (left, right, operator) - * @param string $joinType A String with the join operator. Defaults to an implicit join. - * - * @return Criteria A modified Criteria object. - */ - public function addMultipleJoin($conditions, $joinType = null) - { - $join = new Join(); - foreach ($conditions as $condition) { - $join->addCondition($condition[0], $condition[1], isset($condition[2]) ? $condition[2] : Criteria::EQUAL); - } - $join->setJoinType($joinType); - - return $this->addJoinObject($join); - } - - /** - * Add a join object to the Criteria - * - * @param Join $join A join object - * - * @return Criteria A modified Criteria object - */ - public function addJoinObject(Join $join) - { - if (!in_array($join, $this->joins)) { // compare equality, NOT identity - $this->joins[] = $join; - } - return $this; - } - - - /** - * Get the array of Joins. - * @return array Join[] - */ - public function getJoins() - { - return $this->joins; - } - - /** - * Adds "ALL" modifier to the SQL statement. - * @return Criteria Modified Criteria object (for fluent API) - */ - public function setAll() - { - $this->removeSelectModifier(self::DISTINCT); - $this->addSelectModifier(self::ALL); - - return $this; - } - - /** - * Adds "DISTINCT" modifier to the SQL statement. - * @return Criteria Modified Criteria object (for fluent API) - */ - public function setDistinct() - { - $this->removeSelectModifier(self::ALL); - $this->addSelectModifier(self::DISTINCT); - - return $this; - } - - /** - * Adds a modifier to the SQL statement. - * e.g. self::ALL, self::DISTINCT, 'SQL_CALC_FOUND_ROWS', 'HIGH_PRIORITY', etc. - * - * @param string $modifier The modifier to add - * - * @return Criteria Modified Criteria object (for fluent API) - */ - public function addSelectModifier($modifier) - { - //only allow the keyword once - if (!$this->hasSelectModifier($modifier)) { - $this->selectModifiers[] = $modifier; - } - - return $this; - } - - /** - * Removes a modifier to the SQL statement. - * Checks for existence before removal - * - * @param string $modifier The modifier to add - * - * @return Criteria Modified Criteria object (for fluent API) - */ - public function removeSelectModifier($modifier) - { - $this->selectModifiers = array_values(array_diff($this->selectModifiers, array($modifier))); - - return $this; - } - - /** - * Checks the existence of a SQL select modifier - * - * @param string $modifier The modifier to add - * - * @return bool - */ - public function hasSelectModifier($modifier) - { - return in_array($modifier, $this->selectModifiers); - } - - /** - * Sets ignore case. - * - * @param boolean $b True if case should be ignored. - * @return Criteria Modified Criteria object (for fluent API) - */ - public function setIgnoreCase($b) - { - $this->ignoreCase = (boolean) $b; - return $this; - } - - /** - * Is ignore case on or off? - * - * @return boolean True if case is ignored. - */ - public function isIgnoreCase() - { - return $this->ignoreCase; - } - - /** - * Set single record? Set this to true if you expect the query - * to result in only a single result record (the default behaviour is to - * throw a PropelException if multiple records are returned when the query - * is executed). This should be used in situations where returning multiple - * rows would indicate an error of some sort. If your query might return - * multiple records but you are only interested in the first one then you - * should be using setLimit(1). - * - * @param boolean $b Set to TRUE if you expect the query to select just one record. - * @return Criteria Modified Criteria object (for fluent API) - */ - public function setSingleRecord($b) - { - $this->singleRecord = (boolean) $b; - return $this; - } - - /** - * Is single record? - * - * @return boolean True if a single record is being returned. - */ - public function isSingleRecord() - { - return $this->singleRecord; - } - - /** - * Set limit. - * - * @param limit An int with the value for limit. - * @return Criteria Modified Criteria object (for fluent API) - */ - public function setLimit($limit) - { - // TODO: do we enforce int here? 32bit issue if we do - $this->limit = $limit; - return $this; - } - - /** - * Get limit. - * - * @return int An int with the value for limit. - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Set offset. - * - * @param int $offset An int with the value for offset. (Note this values is - * cast to a 32bit integer and may result in truncatation) - * @return Criteria Modified Criteria object (for fluent API) - */ - public function setOffset($offset) - { - $this->offset = (int) $offset; - return $this; - } - - /** - * Get offset. - * - * @return An int with the value for offset. - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Add select column. - * - * @param string $name Name of the select column. - * @return Criteria Modified Criteria object (for fluent API) - */ - public function addSelectColumn($name) - { - $this->selectColumns[] = $name; - return $this; - } - - /** - * Set the query comment, that appears after the first verb in the SQL query - * - * @param string $comment The comment to add to the query, without comment sign - * @return Criteria Modified Criteria object (for fluent API) - */ - public function setComment($comment = null) - { - $this->queryComment = $comment; - - return $this; - } - - /** - * Get the query comment, that appears after the first verb in the SQL query - * - * @return string The comment to add to the query, without comment sign - */ - public function getComment() - { - return $this->queryComment; - } - - /** - * Whether this Criteria has any select columns. - * - * This will include columns added with addAsColumn() method. - * - * @return boolean - * @see addAsColumn() - * @see addSelectColumn() - */ - public function hasSelectClause() - { - return (!empty($this->selectColumns) || !empty($this->asColumns)); - } - - /** - * Get select columns. - * - * @return array An array with the name of the select columns. - */ - public function getSelectColumns() - { - return $this->selectColumns; - } - - /** - * Clears current select columns. - * - * @return Criteria Modified Criteria object (for fluent API) - */ - public function clearSelectColumns() - { - $this->selectColumns = $this->asColumns = array(); - return $this; - } - - /** - * Get select modifiers. - * - * @return An array with the select modifiers. - */ - public function getSelectModifiers() - { - return $this->selectModifiers; - } - - /** - * Add group by column name. - * - * @param string $groupBy The name of the column to group by. - * @return A modified Criteria object. - */ - public function addGroupByColumn($groupBy) - { - $this->groupByColumns[] = $groupBy; - return $this; - } - - /** - * Add order by column name, explicitly specifying ascending. - * - * @param name The name of the column to order by. - * @return A modified Criteria object. - */ - public function addAscendingOrderByColumn($name) - { - $this->orderByColumns[] = $name . ' ' . self::ASC; - return $this; - } - - /** - * Add order by column name, explicitly specifying descending. - * - * @param string $name The name of the column to order by. - * @return Criteria Modified Criteria object (for fluent API) - */ - public function addDescendingOrderByColumn($name) - { - $this->orderByColumns[] = $name . ' ' . self::DESC; - return $this; - } - - /** - * Get order by columns. - * - * @return array An array with the name of the order columns. - */ - public function getOrderByColumns() - { - return $this->orderByColumns; - } - - /** - * Clear the order-by columns. - * - * @return Criteria Modified Criteria object (for fluent API) - */ - public function clearOrderByColumns() - { - $this->orderByColumns = array(); - return $this; - } - - /** - * Clear the group-by columns. - * - * @return Criteria - */ - public function clearGroupByColumns() - { - $this->groupByColumns = array(); - return $this; - } - - /** - * Get group by columns. - * - * @return array - */ - public function getGroupByColumns() - { - return $this->groupByColumns; - } - - /** - * Get Having Criterion. - * - * @return Criterion A Criterion object that is the having clause. - */ - public function getHaving() - { - return $this->having; - } - - /** - * Remove an object from the criteria. - * - * @param string $key A string with the key to be removed. - * @return mixed The removed value. - */ - public function remove($key) - { - if ( isset ( $this->map[$key] ) ) { - $removed = $this->map[$key]; - unset ( $this->map[$key] ); - if ( $removed instanceof Criterion ) { - return $removed->getValue(); - } - return $removed; - } - } - - /** - * Build a string representation of the Criteria. - * - * @return string A String with the representation of the Criteria. - */ - public function toString() - { - - $sb = "Criteria:"; - try { - - $params = array(); - $sb .= "\nSQL (may not be complete): " - . BasePeer::createSelectSql($this, $params); - - $sb .= "\nParams: "; - $paramstr = array(); - foreach ($params as $param) { - $paramstr[] = $param['table'] . '.' . $param['column'] . ' => ' . var_export($param['value'], true); - } - $sb .= implode(", ", $paramstr); - - } catch (Exception $exc) { - $sb .= "(Error: " . $exc->getMessage() . ")"; - } - - return $sb; - } - - /** - * Returns the size (count) of this criteria. - * @return int - */ - public function size() - { - return count($this->map); - } - - /** - * This method checks another Criteria to see if they contain - * the same attributes and hashtable entries. - * @return boolean - */ - public function equals($crit) - { - if ($crit === null || !($crit instanceof Criteria)) { - return false; - } elseif ($this === $crit) { - return true; - } elseif ($this->size() === $crit->size()) { - - // Important: nested criterion objects are checked - - $criteria = $crit; // alias - if ($this->offset === $criteria->getOffset() - && $this->limit === $criteria->getLimit() - && $this->ignoreCase === $criteria->isIgnoreCase() - && $this->singleRecord === $criteria->isSingleRecord() - && $this->dbName === $criteria->getDbName() - && $this->selectModifiers === $criteria->getSelectModifiers() - && $this->selectColumns === $criteria->getSelectColumns() - && $this->asColumns === $criteria->getAsColumns() - && $this->orderByColumns === $criteria->getOrderByColumns() - && $this->groupByColumns === $criteria->getGroupByColumns() - && $this->aliases === $criteria->getAliases() - ) // what about having ?? - { - foreach ($criteria->keys() as $key) { - if ($this->containsKey($key)) { - $a = $this->getCriterion($key); - $b = $criteria->getCriterion($key); - if (!$a->equals($b)) { - return false; - } - } else { - return false; - } - } - $joins = $criteria->getJoins(); - if (count($joins) != count($this->joins)) { - return false; - } - foreach ($joins as $key => $join) { - if (!$join->equals($this->joins[$key])) { - return false; - } - } - return true; - } else { - return false; - } - } - return false; - } - - /** - * Add the content of a Criteria to the current Criteria - * In case of conflict, the current Criteria keeps its properties - * - * @param Criteria $criteria The criteria to read properties from - * @param string $operator The logical operator used to combine conditions - * Defaults to Criteria::LOGICAL_AND, also accapts Criteria::LOGICAL_OR - * - * @return Criteria The current criteria object - */ - public function mergeWith(Criteria $criteria, $operator = Criteria::LOGICAL_AND) - { - // merge limit - $limit = $criteria->getLimit(); - if($limit != 0 && $this->getLimit() == 0) { - $this->limit = $limit; - } - - // merge offset - $offset = $criteria->getOffset(); - if($offset != 0 && $this->getOffset() == 0) { - $this->offset = $offset; - } - - // merge select modifiers - $selectModifiers = $criteria->getSelectModifiers(); - if ($selectModifiers && ! $this->selectModifiers){ - $this->selectModifiers = $selectModifiers; - } - - // merge select columns - $this->selectColumns = array_merge($this->getSelectColumns(), $criteria->getSelectColumns()); - - // merge as columns - $commonAsColumns = array_intersect_key($this->getAsColumns(), $criteria->getAsColumns()); - if (!empty($commonAsColumns)) { - throw new PropelException('The given criteria contains an AsColumn with an alias already existing in the current object'); - } - $this->asColumns = array_merge($this->getAsColumns(), $criteria->getAsColumns()); - - // merge orderByColumns - $orderByColumns = array_merge($this->getOrderByColumns(), $criteria->getOrderByColumns()); - $this->orderByColumns = array_unique($orderByColumns); - - // merge groupByColumns - $groupByColumns = array_merge($this->getGroupByColumns(), $criteria->getGroupByColumns()); - $this->groupByColumns = array_unique($groupByColumns); - - // merge where conditions - if ($operator == Criteria::LOGICAL_AND) { - foreach ($criteria->getMap() as $key => $criterion) { - if ($this->containsKey($key)) { - $this->addAnd($criterion); - } else { - $this->add($criterion); - } - } - } else { - foreach ($criteria->getMap() as $key => $criterion) { - $this->addOr($criterion); - } - } - - - // merge having - if ($having = $criteria->getHaving()) { - if ($this->getHaving()) { - $this->addHaving($this->getHaving()->addAnd($having)); - } else { - $this->addHaving($having); - } - } - - // merge alias - $commonAliases = array_intersect_key($this->getAliases(), $criteria->getAliases()); - if (!empty($commonAliases)) { - throw new PropelException('The given criteria contains an alias already existing in the current object'); - } - $this->aliases = array_merge($this->getAliases(), $criteria->getAliases()); - - // merge join - $this->joins = array_merge($this->getJoins(), $criteria->getJoins()); - - return $this; - } - - /** - * This method adds a prepared Criterion object to the Criteria as a having clause. - * You can get a new, empty Criterion object with the - * getNewCriterion() method. - * - *

- * - * $crit = new Criteria(); - * $c = $crit->getNewCriterion(BasePeer::ID, 5, Criteria::LESS_THAN); - * $crit->addHaving($c); - * - * - * @param having A Criterion object - * - * @return A modified Criteria object. - */ - public function addHaving(Criterion $having) - { - $this->having = $having; - return $this; - } - - /** - * If a criterion for the requested column already exists, the condition is "AND"ed to the existing criterion (necessary for Propel 1.4 compatibility). - * If no criterion for the requested column already exists, the condition is "AND"ed to the latest criterion. - * If no criterion exist, the condition is added a new criterion - * - * Any comparison can be used. - * - * Supports a number of different signatures: - * - addAnd(column, value, comparison) - * - addAnd(column, value) - * - addAnd(Criterion) - * - * @return Criteria A modified Criteria object. - */ - public function addAnd($p1, $p2 = null, $p3 = null, $preferColumnCondition = true) - { - $criterion = ($p1 instanceof Criterion) ? $p1 : new Criterion($this, $p1, $p2, $p3); - - $key = $criterion->getTable() . '.' . $criterion->getColumn(); - if ($preferColumnCondition && $this->containsKey($key)) { - // FIXME: addAnd() operates preferably on existing conditions on the same column - // this may cause unexpected results, but it's there for BC with Propel 14 - $this->getCriterion($key)->addAnd($criterion); - } else { - // simply add the condition to the list - this is the expected behavior - $this->add($criterion); - } - - return $this; - } - - /** - * If a criterion for the requested column already exists, the condition is "OR"ed to the existing criterion (necessary for Propel 1.4 compatibility). - * If no criterion for the requested column already exists, the condition is "OR"ed to the latest criterion. - * If no criterion exist, the condition is added a new criterion - * - * Any comparison can be used. - * - * Supports a number of different signatures: - * - addOr(column, value, comparison) - * - addOr(column, value) - * - addOr(Criterion) - * - * @return Criteria A modified Criteria object. - */ - public function addOr($p1, $p2 = null, $p3 = null, $preferColumnCondition = true) - { - $rightCriterion = ($p1 instanceof Criterion) ? $p1 : new Criterion($this, $p1, $p2, $p3); - - $key = $rightCriterion->getTable() . '.' . $rightCriterion->getColumn(); - if ($preferColumnCondition && $this->containsKey($key)) { - // FIXME: addOr() operates preferably on existing conditions on the same column - // this may cause unexpected results, but it's there for BC with Propel 14 - $leftCriterion = $this->getCriterion($key); - } else { - // fallback to the latest condition - this is the expected behavior - $leftCriterion = $this->getLastCriterion(); - } - - if ($leftCriterion !== null) { - // combine the given criterion with the existing one with an 'OR' - $leftCriterion->addOr($rightCriterion); - } else { - // nothing to do OR / AND with, so make it first condition - $this->add($rightCriterion); - } - - return $this; - } - - // Fluid Conditions - - /** - * Returns the current object if the condition is true, - * or a PropelConditionalProxy instance otherwise. - * Allows for conditional statements in a fluid interface. - * - * @param bool $cond - * - * @return PropelConditionalProxy|Criteria - */ - public function _if($cond) - { - if($cond) { - return $this; - } else { - return new PropelConditionalProxy($this); - } - } - - /** - * Returns a PropelConditionalProxy instance. - * Allows for conditional statements in a fluid interface. - * - * @param bool $cond ignored - * - * @return PropelConditionalProxy - */ - public function _elseif($cond) - { - return new PropelConditionalProxy($this); - } - - /** - * Returns a PropelConditionalProxy instance. - * Allows for conditional statements in a fluid interface. - * - * @return PropelConditionalProxy - */ - public function _else() - { - return new PropelConditionalProxy($this); - } - - /** - * Returns the current object - * Allows for conditional statements in a fluid interface. - * - * @return Criteria - */ - public function _endif() - { - return $this; - } - - /** - * Ensures deep cloning of attached objects - */ - public function __clone() - { - foreach ($this->map as $key => $criterion) { - $this->map[$key] = clone $criterion; - } - foreach ($this->joins as $key => $join) { - $this->joins[$key] = clone $join; - } - if (null !== $this->having) { - $this->having = clone $this->having; - } - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/query/Criterion.php b/airtime_mvc/library/propel/runtime/lib/query/Criterion.php deleted file mode 100644 index cc412bc050..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/query/Criterion.php +++ /dev/null @@ -1,543 +0,0 @@ - (Propel) - * @version $Revision: 1740 $ - * @package propel.runtime.query - */ -class Criterion -{ - - const UND = " AND "; - const ODER = " OR "; - - /** Value of the CO. */ - protected $value; - - /** Comparison value. - * @var SqlEnum - */ - protected $comparison; - - /** Table name. */ - protected $table; - - /** Real table name */ - protected $realtable; - - /** Column name. */ - protected $column; - - /** flag to ignore case in comparison */ - protected $ignoreStringCase = false; - - /** - * The DBAdaptor which might be used to get db specific - * variations of sql. - */ - protected $db; - - /** - * other connected criteria and their conjunctions. - */ - protected $clauses = array(); - protected $conjunctions = array(); - - /** "Parent" Criteria class */ - protected $parent; - - /** - * Create a new instance. - * - * @param Criteria $parent The outer class (this is an "inner" class). - * @param string $column TABLE.COLUMN format. - * @param mixed $value - * @param string $comparison - */ - public function __construct(Criteria $outer, $column, $value, $comparison = null) - { - $this->value = $value; - $dotPos = strrpos($column, '.'); - if ($dotPos === false) { - // no dot => aliased column - $this->table = null; - $this->column = $column; - } else { - $this->table = substr($column, 0, $dotPos); - $this->column = substr($column, $dotPos + 1); - } - $this->comparison = ($comparison === null) ? Criteria::EQUAL : $comparison; - $this->init($outer); - } - - /** - * Init some properties with the help of outer class - * @param Criteria $criteria The outer class - */ - public function init(Criteria $criteria) - { - // init $this->db - try { - $db = Propel::getDB($criteria->getDbName()); - $this->setDB($db); - } catch (Exception $e) { - // we are only doing this to allow easier debugging, so - // no need to throw up the exception, just make note of it. - Propel::log("Could not get a DBAdapter, sql may be wrong", Propel::LOG_ERR); - } - - // init $this->realtable - $realtable = $criteria->getTableForAlias($this->table); - $this->realtable = $realtable ? $realtable : $this->table; - - } - - /** - * Get the column name. - * - * @return string A String with the column name. - */ - public function getColumn() - { - return $this->column; - } - - /** - * Set the table name. - * - * @param name A String with the table name. - * @return void - */ - public function setTable($name) - { - $this->table = $name; - } - - /** - * Get the table name. - * - * @return string A String with the table name. - */ - public function getTable() - { - return $this->table; - } - - /** - * Get the comparison. - * - * @return string A String with the comparison. - */ - public function getComparison() - { - return $this->comparison; - } - - /** - * Get the value. - * - * @return mixed An Object with the value. - */ - public function getValue() - { - return $this->value; - } - - /** - * Get the value of db. - * The DBAdapter which might be used to get db specific - * variations of sql. - * @return DBAdapter value of db. - */ - public function getDB() - { - return $this->db; - } - - /** - * Set the value of db. - * The DBAdapter might be used to get db specific variations of sql. - * @param DBAdapter $v Value to assign to db. - * @return void - */ - public function setDB(DBAdapter $v) - { - $this->db = $v; - foreach ( $this->clauses as $clause ) { - $clause->setDB($v); - } - } - - /** - * Sets ignore case. - * - * @param boolean $b True if case should be ignored. - * @return Criterion A modified Criterion object. - */ - public function setIgnoreCase($b) - { - $this->ignoreStringCase = (boolean) $b; - return $this; - } - - /** - * Is ignore case on or off? - * - * @return boolean True if case is ignored. - */ - public function isIgnoreCase() - { - return $this->ignoreStringCase; - } - - /** - * Get the list of clauses in this Criterion. - * @return array - */ - private function getClauses() - { - return $this->clauses; - } - - /** - * Get the list of conjunctions in this Criterion - * @return array - */ - public function getConjunctions() - { - return $this->conjunctions; - } - - /** - * Append an AND Criterion onto this Criterion's list. - */ - public function addAnd(Criterion $criterion) - { - $this->clauses[] = $criterion; - $this->conjunctions[] = self::UND; - return $this; - } - - /** - * Append an OR Criterion onto this Criterion's list. - * @return Criterion - */ - public function addOr(Criterion $criterion) - { - $this->clauses[] = $criterion; - $this->conjunctions[] = self::ODER; - return $this; - } - - /** - * Appends a Prepared Statement representation of the Criterion - * onto the buffer. - * - * @param string &$sb The string that will receive the Prepared Statement - * @param array $params A list to which Prepared Statement parameters will be appended - * @return void - * @throws PropelException - if the expression builder cannot figure out how to turn a specified - * expression into proper SQL. - */ - public function appendPsTo(&$sb, array &$params) - { - $sb .= str_repeat ( '(', count($this->clauses) ); - - $this->dispatchPsHandling($sb, $params); - - foreach ($this->clauses as $key => $clause) { - $sb .= $this->conjunctions[$key]; - $clause->appendPsTo($sb, $params); - $sb .= ')'; - } - } - - /** - * Figure out which Criterion method to use - * to build the prepared statement and parameters using to the Criterion comparison - * and call it to append the prepared statement and the parameters of the current clause - * - * @param string &$sb The string that will receive the Prepared Statement - * @param array $params A list to which Prepared Statement parameters will be appended - */ - protected function dispatchPsHandling(&$sb, array &$params) - { - switch ($this->comparison) { - case Criteria::CUSTOM: - // custom expression with no parameter binding - $this->appendCustomToPs($sb, $params); - break; - case Criteria::IN: - case Criteria::NOT_IN: - // table.column IN (?, ?) or table.column NOT IN (?, ?) - $this->appendInToPs($sb, $params); - break; - case Criteria::LIKE: - case Criteria::NOT_LIKE: - case Criteria::ILIKE: - case Criteria::NOT_ILIKE: - // table.column LIKE ? or table.column NOT LIKE ? (or ILIKE for Postgres) - $this->appendLikeToPs($sb, $params); - break; - default: - // table.column = ? or table.column >= ? etc. (traditional expressions, the default) - $this->appendBasicToPs($sb, $params); - } - } - - /** - * Appends a Prepared Statement representation of the Criterion onto the buffer - * For custom expressions with no binding, e.g. 'NOW() = 1' - * - * @param string &$sb The string that will receive the Prepared Statement - * @param array $params A list to which Prepared Statement parameters will be appended - */ - protected function appendCustomToPs(&$sb, array &$params) - { - if ($this->value !== "") { - $sb .= (string) $this->value; - } - } - - /** - * Appends a Prepared Statement representation of the Criterion onto the buffer - * For IN expressions, e.g. table.column IN (?, ?) or table.column NOT IN (?, ?) - * - * @param string &$sb The string that will receive the Prepared Statement - * @param array $params A list to which Prepared Statement parameters will be appended - */ - protected function appendInToPs(&$sb, array &$params) - { - if ($this->value !== "") { - $bindParams = array(); - $index = count($params); // to avoid counting the number of parameters for each element in the array - foreach ((array) $this->value as $value) { - $params[] = array('table' => $this->realtable, 'column' => $this->column, 'value' => $value); - $index++; // increment this first to correct for wanting bind params to start with :p1 - $bindParams[] = ':p' . $index; - } - if (count($bindParams)) { - $field = ($this->table === null) ? $this->column : $this->table . '.' . $this->column; - $sb .= $field . $this->comparison . '(' . implode(',', $bindParams) . ')'; - } else { - $sb .= ($this->comparison === Criteria::IN) ? "1<>1" : "1=1"; - } - } - } - - /** - * Appends a Prepared Statement representation of the Criterion onto the buffer - * For LIKE expressions, e.g. table.column LIKE ? or table.column NOT LIKE ? (or ILIKE for Postgres) - * - * @param string &$sb The string that will receive the Prepared Statement - * @param array $params A list to which Prepared Statement parameters will be appended - */ - protected function appendLikeToPs(&$sb, array &$params) - { - $field = ($this->table === null) ? $this->column : $this->table . '.' . $this->column; - $db = $this->getDb(); - // If selection is case insensitive use ILIKE for PostgreSQL or SQL - // UPPER() function on column name for other databases. - if ($this->ignoreStringCase) { - if ($db instanceof DBPostgres) { - if ($this->comparison === Criteria::LIKE) { - $this->comparison = Criteria::ILIKE; - } elseif ($this->comparison === Criteria::NOT_LIKE) { - $this->comparison = Criteria::NOT_ILIKE; - } - } else { - $field = $db->ignoreCase($field); - } - } - - $params[] = array('table' => $this->realtable, 'column' => $this->column, 'value' => $this->value); - - $sb .= $field . $this->comparison; - - // If selection is case insensitive use SQL UPPER() function - // on criteria or, if Postgres we are using ILIKE, so not necessary. - if ($this->ignoreStringCase && !($db instanceof DBPostgres)) { - $sb .= $db->ignoreCase(':p'.count($params)); - } else { - $sb .= ':p'.count($params); - } - } - - /** - * Appends a Prepared Statement representation of the Criterion onto the buffer - * For traditional expressions, e.g. table.column = ? or table.column >= ? etc. - * - * @param string &$sb The string that will receive the Prepared Statement - * @param array $params A list to which Prepared Statement parameters will be appended - */ - protected function appendBasicToPs(&$sb, array &$params) - { - $field = ($this->table === null) ? $this->column : $this->table . '.' . $this->column; - // NULL VALUES need special treatment because the SQL syntax is different - // i.e. table.column IS NULL rather than table.column = null - if ($this->value !== null) { - - // ANSI SQL functions get inserted right into SQL (not escaped, etc.) - if ($this->value === Criteria::CURRENT_DATE || $this->value === Criteria::CURRENT_TIME || $this->value === Criteria::CURRENT_TIMESTAMP) { - $sb .= $field . $this->comparison . $this->value; - } else { - - $params[] = array('table' => $this->realtable, 'column' => $this->column, 'value' => $this->value); - - // default case, it is a normal col = value expression; value - // will be replaced w/ '?' and will be inserted later using PDO bindValue() - if ($this->ignoreStringCase) { - $sb .= $this->getDb()->ignoreCase($field) . $this->comparison . $this->getDb()->ignoreCase(':p'.count($params)); - } else { - $sb .= $field . $this->comparison . ':p'.count($params); - } - - } - } else { - - // value is null, which means it was either not specified or specifically - // set to null. - if ($this->comparison === Criteria::EQUAL || $this->comparison === Criteria::ISNULL) { - $sb .= $field . Criteria::ISNULL; - } elseif ($this->comparison === Criteria::NOT_EQUAL || $this->comparison === Criteria::ISNOTNULL) { - $sb .= $field . Criteria::ISNOTNULL; - } else { - // for now throw an exception, because not sure how to interpret this - throw new PropelException("Could not build SQL for expression: $field " . $this->comparison . " NULL"); - } - - } - } - - /** - * This method checks another Criteria to see if they contain - * the same attributes and hashtable entries. - * @return boolean - */ - public function equals($obj) - { - // TODO: optimize me with early outs - if ($this === $obj) { - return true; - } - - if (($obj === null) || !($obj instanceof Criterion)) { - return false; - } - - $crit = $obj; - - $isEquiv = ( ( ($this->table === null && $crit->getTable() === null) - || ( $this->table !== null && $this->table === $crit->getTable() ) - ) - && $this->column === $crit->getColumn() - && $this->comparison === $crit->getComparison()); - - // check chained criterion - - $clausesLength = count($this->clauses); - $isEquiv &= (count($crit->getClauses()) == $clausesLength); - $critConjunctions = $crit->getConjunctions(); - $critClauses = $crit->getClauses(); - for ($i=0; $i < $clausesLength && $isEquiv; $i++) { - $isEquiv &= ($this->conjunctions[$i] === $critConjunctions[$i]); - $isEquiv &= ($this->clauses[$i] === $critClauses[$i]); - } - - if ($isEquiv) { - $isEquiv &= $this->value === $crit->getValue(); - } - - return $isEquiv; - } - - /** - * Returns a hash code value for the object. - */ - public function hashCode() - { - $h = crc32(serialize($this->value)) ^ crc32($this->comparison); - - if ($this->table !== null) { - $h ^= crc32($this->table); - } - - if ($this->column !== null) { - $h ^= crc32($this->column); - } - - foreach ( $this->clauses as $clause ) { - // TODO: i KNOW there is a php incompatibility with the following line - // but i dont remember what it is, someone care to look it up and - // replace it if it doesnt bother us? - // $clause->appendPsTo($sb='',$params=array()); - $sb = ''; - $params = array(); - $clause->appendPsTo($sb,$params); - $h ^= crc32(serialize(array($sb,$params))); - unset ( $sb, $params ); - } - - return $h; - } - - /** - * Get all tables from nested criterion objects - * @return array - */ - public function getAllTables() - { - $tables = array(); - $this->addCriterionTable($this, $tables); - return $tables; - } - - /** - * method supporting recursion through all criterions to give - * us a string array of tables from each criterion - * @return void - */ - private function addCriterionTable(Criterion $c, array &$s) - { - $s[] = $c->getTable(); - foreach ( $c->getClauses() as $clause ) { - $this->addCriterionTable($clause, $s); - } - } - - /** - * get an array of all criterion attached to this - * recursing through all sub criterion - * @return array Criterion[] - */ - public function getAttachedCriterion() - { - $criterions = array($this); - foreach ($this->getClauses() as $criterion) { - $criterions = array_merge($criterions, $criterion->getAttachedCriterion()); - } - return $criterions; - } - - /** - * Ensures deep cloning of attached objects - */ - public function __clone() - { - foreach ($this->clauses as $key => $criterion) { - $this->clauses[$key] = clone $criterion; - } - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/query/CriterionIterator.php b/airtime_mvc/library/propel/runtime/lib/query/CriterionIterator.php deleted file mode 100644 index 12f29ff66e..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/query/CriterionIterator.php +++ /dev/null @@ -1,54 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.runtime.query - */ -class CriterionIterator implements Iterator -{ - - private $idx = 0; - private $criteria; - private $criteriaKeys; - private $criteriaSize; - - public function __construct(Criteria $criteria) { - $this->criteria = $criteria; - $this->criteriaKeys = $criteria->keys(); - $this->criteriaSize = count($this->criteriaKeys); - } - - public function rewind() { - $this->idx = 0; - } - - public function valid() { - return $this->idx < $this->criteriaSize; - } - - public function key() { - return $this->criteriaKeys[$this->idx]; - } - - public function current() { - return $this->criteria->getCriterion($this->criteriaKeys[$this->idx]); - } - - public function next() { - $this->idx++; - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/query/Join.php b/airtime_mvc/library/propel/runtime/lib/query/Join.php deleted file mode 100644 index de7b92b5ed..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/query/Join.php +++ /dev/null @@ -1,250 +0,0 @@ - - * table_a LEFT JOIN table_b ON table_a.id = table_b.a_id - * - * - * @author Francois Zaninotto (Propel) - * @author Hans Lellelid (Propel) - * @author Kaspars Jaudzems (Propel) - * @author Frank Y. Kim (Torque) - * @author John D. McNally (Torque) - * @author Brett McLaughlin (Torque) - * @author Eric Dobbs (Torque) - * @author Henning P. Schmiedehausen (Torque) - * @author Sam Joseph (Torque) - * @package propel.runtime.query - */ -class Join -{ - // default comparison type - const EQUAL = "="; - - // the left parts of the join condition - protected $left = array(); - - // the right parts of the join condition - protected $right = array(); - - // the comparison operators for each pair of columns in the join condition - protected $operator = array(); - - // the type of the join (LEFT JOIN, ...), or null for an implicit join - protected $joinType = null; - - // the number of conditions in the join - protected $count = 0; - - /** - * Constructor - * Use it preferably with no arguments, and then use addCondition() and setJoinType() - * Syntax with arguments used mainly for backwards compatibility - * - * @param string $leftColumn The left column of the join condition - * (may contain an alias name) - * @param string $rightColumn The right column of the join condition - * (may contain an alias name) - * @param string $joinType The type of the join. Valid join types are null (implicit join), - * Criteria::LEFT_JOIN, Criteria::RIGHT_JOIN, and Criteria::INNER_JOIN - */ - public function __construct($leftColumn = null, $rightColumn = null, $joinType = null) - { - if(!is_null($leftColumn)) { - if (!is_array($leftColumn)) { - // simple join - $this->addCondition($leftColumn, $rightColumn); - } else { - // join with multiple conditions - if (count($leftColumn) != count($rightColumn) ) { - throw new PropelException("Unable to create join because the left column count isn't equal to the right column count"); - } - foreach ($leftColumn as $key => $value) - { - $this->addCondition($value, $rightColumn[$key]); - } - } - $this->setJoinType($joinType); - } - } - - /** - * Join condition definition - * - * @param string $left The left column of the join condition - * (may contain an alias name) - * @param string $right The right column of the join condition - * (may contain an alias name) - * @param string $operator The comparison operator of the join condition, default Join::EQUAL - */ - public function addCondition($left, $right, $operator = self::EQUAL) - { - $this->left[] = $left; - $this->right[] = $right; - $this->operator[] = $operator; - $this->count++; - } - - /** - * Retrieve the number of conditions in the join - * - * @return integer The number of conditions in the join - */ - public function countConditions() - { - return $this->count; - } - - /** - * Return an array of the join conditions - * - * @return array An array of arrays representing (left, comparison, right) for each condition - */ - public function getConditions() - { - $conditions = array(); - for ($i=0; $i < $this->count; $i++) { - $conditions[] = array( - 'left' => $this->getLeftColumn($i), - 'operator' => $this->getOperator($i), - 'right' => $this->getRightColumn($i) - ); - } - return $conditions; - } - - /** - * @return the comparison operator for the join condition - */ - public function getOperator($index = 0) - { - return $this->operator[$index]; - } - - public function getOperators() - { - return $this->operator; - } - - /** - * Set the join type - * - * @param string $joinType The type of the join. Valid join types are - * null (adding the join condition to the where clause), - * Criteria::LEFT_JOIN(), Criteria::RIGHT_JOIN(), and Criteria::INNER_JOIN() - */ - public function setJoinType($joinType = null) - { - $this->joinType = $joinType; - } - - /** - * Get the join type - * - * @return string The type of the join, i.e. Criteria::LEFT_JOIN(), ..., - * or null for adding the join condition to the where Clause - */ - public function getJoinType() - { - return $this->joinType; - } - - /** - * @return the left column of the join condition - */ - public function getLeftColumn($index = 0) - { - return $this->left[$index]; - } - - /** - * @return all right columns of the join condition - */ - public function getLeftColumns() - { - return $this->left; - } - - - public function getLeftColumnName($index = 0) - { - return substr($this->left[$index], strrpos($this->left[$index], '.') + 1); - } - - public function getLeftTableName($index = 0) - { - return substr($this->left[$index], 0, strrpos($this->left[$index], '.')); - } - - /** - * @return the right column of the join condition - */ - public function getRightColumn($index = 0) - { - return $this->right[$index]; - } - - /** - * @return all right columns of the join condition - */ - public function getRightColumns() - { - return $this->right; - } - - public function getRightColumnName($index = 0) - { - return substr($this->right[$index], strrpos($this->right[$index], '.') + 1); - } - - public function getRightTableName($index = 0) - { - return substr($this->right[$index], 0, strrpos($this->right[$index], '.')); - } - - public function equals($join) - { - return $join !== null - && $join instanceof Join - && $this->joinType == $join->getJoinType() - && $this->getConditions() == $join->getConditions(); - } - - /** - * returns a String representation of the class, - * mainly for debugging purposes - * - * @return string A String representation of the class - */ - public function toString() - { - $result = ''; - if ($this->joinType !== null) { - $result .= $this->joinType . ' : '; - } - foreach ($this->getConditions() as $index => $condition) { - $result .= implode($condition); - if ($index + 1 < $this->count) { - $result .= ' AND '; - } - } - $result .= '(ignoreCase not considered)'; - - return $result; - } - - public function __toString() - { - return $this->toString(); - } -} - \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/query/ModelCriteria.php b/airtime_mvc/library/propel/runtime/lib/query/ModelCriteria.php deleted file mode 100644 index 4082133a98..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/query/ModelCriteria.php +++ /dev/null @@ -1,1841 +0,0 @@ -join from going wrong - protected $isKeepQuery = false; // whether to clone the current object before termination methods - - /** - * Creates a new instance with the default capacity which corresponds to - * the specified database. - * - * @param string $dbName The dabase name - * @param string $modelName The phpName of a model, e.g. 'Book' - * @param string $modelAlias The alias for the model in this query, e.g. 'b' - */ - public function __construct($dbName = null, $modelName, $modelAlias = null) - { - $this->setDbName($dbName); - $this->originalDbName = $dbName; - $this->modelName = $modelName; - $this->modelPeerName = constant($this->modelName . '::PEER'); - $this->modelAlias = $modelAlias; - $this->tableMap = Propel::getDatabaseMap($this->getDbName())->getTableByPhpName($this->modelName); - } - - /** - * Returns the name of the class for this model criteria - * - * @return string - */ - public function getModelName() - { - return $this->modelName; - } - - /** - * Sets the alias for the model in this query - * - * @param string $modelAlias The model alias - * @param boolean $useAliasInSQL Whether to use the alias in the SQL code (false by default) - * - * @return ModelCriteria The current object, for fluid interface - */ - public function setModelAlias($modelAlias, $useAliasInSQL = false) - { - if ($useAliasInSQL) { - $this->addAlias($modelAlias, $this->tableMap->getName()); - $this->useAliasInSQL = true; - } - $this->modelAlias = $modelAlias; - - return $this; - } - - /** - * Returns the alias of the main class for this model criteria - * - * @return string The model alias - */ - public function getModelAlias() - { - return $this->modelAlias; - } - - /** - * Return the string to use in a clause as a model prefix for the main model - * - * @return string The model alias if it exists, the model name if not - */ - public function getModelAliasOrName() - { - return $this->modelAlias ? $this->modelAlias : $this->modelName; - } - - /** - * Returns the name of the Peer class for this model criteria - * - * @return string - */ - public function getModelPeerName() - { - return $this->modelPeerName; - } - - /** - * Returns the TabkleMap object for this Criteria - * - * @return TableMap - */ - public function getTableMap() - { - return $this->tableMap; - } - - /** - * Sets the formatter to use for the find() output - * Formatters must extend PropelFormatter - * Use the ModelCriteria constants for class names: - * - * $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - * - * - * @param string|PropelFormatter $formatter a formatter class name, or a formatter instance - * @return ModelCriteria The current object, for fluid interface - */ - public function setFormatter($formatter) - { - if(is_string($formatter)) { - $formatter = new $formatter(); - } - if (!$formatter instanceof PropelFormatter) { - throw new PropelException('setFormatter() only accepts classes extending PropelFormatter'); - } - $this->formatter = $formatter; - - return $this; - } - - /** - * Gets the formatter to use for the find() output - * Defaults to an instance of ModelCriteria::$defaultFormatterClass, i.e. PropelObjectsFormatter - * - * @return PropelFormatter - */ - public function getFormatter() - { - if (null === $this->formatter) { - $formatterClass = $this->defaultFormatterClass; - $this->formatter = new $formatterClass(); - } - return $this->formatter; - } - - /** - * Adds a condition on a column based on a pseudo SQL clause - * but keeps it for later use with combine() - * Until combine() is called, the condition is not added to the query - * Uses introspection to translate the column phpName into a fully qualified name - * - * $c->condition('cond1', 'b.Title = ?', 'foo'); - * - * - * @see Criteria::add() - * - * @param string $conditionName A name to store the condition for a later combination with combine() - * @param string $clause The pseudo SQL clause, e.g. 'AuthorId = ?' - * @param mixed $value A value for the condition - * - * @return ModelCriteria The current object, for fluid interface - */ - public function condition($conditionName, $clause, $value = null) - { - $this->addCond($conditionName, $this->getCriterionForClause($clause, $value), null, null); - - return $this; - } - - /** - * Adds a condition on a column based on a column phpName and a value - * Uses introspection to translate the column phpName into a fully qualified name - * Warning: recognizes only the phpNames of the main Model (not joined tables) - * - * $c->filterBy('Title', 'foo'); - * - * - * @see Criteria::add() - * - * @param string $column A string representing thecolumn phpName, e.g. 'AuthorId' - * @param mixed $value A value for the condition - * @param string $comparison What to use for the column comparison, defaults to Criteria::EQUAL - * - * @return ModelCriteria The current object, for fluid interface - */ - public function filterBy($column, $value, $comparison = Criteria::EQUAL) - { - return $this->add($this->getRealColumnName($column), $value, $comparison); - } - - /** - * Adds a list of conditions on the columns of the current model - * Uses introspection to translate the column phpName into a fully qualified name - * Warning: recognizes only the phpNames of the main Model (not joined tables) - * - * $c->filterByArray(array( - * 'Title' => 'War And Peace', - * 'Publisher' => $publisher - * )); - * - * - * @see filterBy() - * - * @param mixed $conditions An array of conditions, using column phpNames as key - * - * @return ModelCriteria The current object, for fluid interface - */ - public function filterByArray($conditions) - { - foreach ($conditions as $column => $args) { - call_user_func_array(array($this, 'filterBy' . $column), (array) $args); - } - - return $this; - } - - /** - * Adds a condition on a column based on a pseudo SQL clause - * Uses introspection to translate the column phpName into a fully qualified name - * - * // simple clause - * $c->where('b.Title = ?', 'foo'); - * // named conditions - * $c->condition('cond1', 'b.Title = ?', 'foo'); - * $c->condition('cond2', 'b.ISBN = ?', 12345); - * $c->where(array('cond1', 'cond2'), Criteria::LOGICAL_OR); - * - * - * @see Criteria::add() - * - * @param mixed $clause A string representing the pseudo SQL clause, e.g. 'Book.AuthorId = ?' - * Or an array of condition names - * @param mixed $value A value for the condition - * - * @return ModelCriteria The current object, for fluid interface - */ - public function where($clause, $value = null) - { - if (is_array($clause)) { - // where(array('cond1', 'cond2'), Criteria::LOGICAL_OR) - $criterion = $this->getCriterionForConditions($clause, $value); - } else { - // where('Book.AuthorId = ?', 12) - $criterion = $this->getCriterionForClause($clause, $value); - } - $this->addAnd($criterion, null, null); - - return $this; - } - - /** - * Adds a condition on a column based on a pseudo SQL clause - * Uses introspection to translate the column phpName into a fully qualified name - * - * // simple clause - * $c->orWhere('b.Title = ?', 'foo'); - * // named conditions - * $c->condition('cond1', 'b.Title = ?', 'foo'); - * $c->condition('cond2', 'b.ISBN = ?', 12345); - * $c->orWhere(array('cond1', 'cond2'), Criteria::LOGICAL_OR); - * - * - * @see Criteria::addOr() - * - * @param string $clause The pseudo SQL clause, e.g. 'AuthorId = ?' - * @param mixed $value A value for the condition - * - * @return ModelCriteria The current object, for fluid interface - */ - public function orWhere($clause, $value = null) - { - if (is_array($clause)) { - // orWhere(array('cond1', 'cond2'), Criteria::LOGICAL_OR) - $criterion = $this->getCriterionForConditions($clause, $value); - } else { - // orWhere('Book.AuthorId = ?', 12) - $criterion = $this->getCriterionForClause($clause, $value); - } - $this->addOr($criterion, null, null); - - return $this; - } - - /** - * Adds a having condition on a column based on a pseudo SQL clause - * Uses introspection to translate the column phpName into a fully qualified name - * - * // simple clause - * $c->having('b.Title = ?', 'foo'); - * // named conditions - * $c->condition('cond1', 'b.Title = ?', 'foo'); - * $c->condition('cond2', 'b.ISBN = ?', 12345); - * $c->having(array('cond1', 'cond2'), Criteria::LOGICAL_OR); - * - * - * @see Criteria::addHaving() - * - * @param mixed $clause A string representing the pseudo SQL clause, e.g. 'Book.AuthorId = ?' - * Or an array of condition names - * @param mixed $value A value for the condition - * - * @return ModelCriteria The current object, for fluid interface - */ - public function having($clause, $value = null) - { - if (is_array($clause)) { - // having(array('cond1', 'cond2'), Criteria::LOGICAL_OR) - $criterion = $this->getCriterionForConditions($clause, $value); - } else { - // having('Book.AuthorId = ?', 12) - $criterion = $this->getCriterionForClause($clause, $value); - } - $this->addHaving($criterion); - - return $this; - } - - /** - * Adds an ORDER BY clause to the query - * Usability layer on top of Criteria::addAscendingOrderByColumn() and Criteria::addDescendingOrderByColumn() - * Infers $column and $order from $columnName and some optional arguments - * Examples: - * $c->orderBy('Book.CreatedAt') - * => $c->addAscendingOrderByColumn(BookPeer::CREATED_AT) - * $c->orderBy('Book.CategoryId', 'desc') - * => $c->addDescendingOrderByColumn(BookPeer::CATEGORY_ID) - * - * @param string $columnName The column to order by - * @param string $order The sorting order. Criteria::ASC by default, also accepts Criteria::DESC - * - * @return ModelCriteria The current object, for fluid interface - */ - public function orderBy($columnName, $order = Criteria::ASC) - { - list($column, $realColumnName) = $this->getColumnFromName($columnName, false); - $order = strtoupper($order); - switch ($order) { - case Criteria::ASC: - $this->addAscendingOrderByColumn($realColumnName); - break; - case Criteria::DESC: - $this->addDescendingOrderByColumn($realColumnName); - break; - default: - throw new PropelException('ModelCriteria::orderBy() only accepts Criteria::ASC or Criteria::DESC as argument'); - } - - return $this; - } - - /** - * Adds a GROUB BY clause to the query - * Usability layer on top of Criteria::addGroupByColumn() - * Infers $column $columnName - * Examples: - * $c->groupBy('Book.AuthorId') - * => $c->addGroupByColumn(BookPeer::AUTHOR_ID) - * - * @param string $columnName The column to group by - * - * @return ModelCriteria The current object, for fluid interface - */ - public function groupBy($columnName) - { - list($column, $realColumnName) = $this->getColumnFromName($columnName, false); - $this->addGroupByColumn($realColumnName); - - return $this; - } - - /** - * Adds a DISTINCT clause to the query - * Alias for Criteria::setDistinct() - * - * @return ModelCriteria The current object, for fluid interface - */ - public function distinct() - { - $this->setDistinct(); - - return $this; - } - - /** - * Adds a LIMIT clause (or its subselect equivalent) to the query - * Alias for Criteria:::setLimit() - * - * @param int $limit Maximum number of results to return by the query - * - * @return ModelCriteria The current object, for fluid interface - */ - public function limit($limit) - { - $this->setLimit($limit); - - return $this; - } - - /** - * Adds an OFFSET clause (or its subselect equivalent) to the query - * Alias for of Criteria::setOffset() - * - * @param int $offset Offset of the first result to return - * - * @return ModelCriteria The current object, for fluid interface - */ - public function offset($offset) - { - $this->setOffset($offset); - - return $this; - } - - /** - * This method returns the previousJoin for this ModelCriteria, - * by default this is null, but after useQuery this is set the to the join of that use - * - * @return Join the previousJoin for this ModelCriteria - */ - public function getPreviousJoin() - { - return $this->previousJoin; - } - - /** - * This method sets the previousJoin for this ModelCriteria, - * by default this is null, but after useQuery this is set the to the join of that use - * - * @param Join $previousJoin The previousJoin for this ModelCriteria - */ - public function setPreviousJoin(Join $previousJoin) - { - $this->previousJoin = $previousJoin; - } - - /** - * This method returns an already defined join clause from the query - * - * @param string $name The name of the join clause - * - * @return Join A join object - */ - public function getJoin($name) - { - return $this->joins[$name]; - } - - /** - * Adds a JOIN clause to the query - * Infers the ON clause from a relation name - * Uses the Propel table maps, based on the schema, to guess the related columns - * Beware that the default JOIN operator is INNER JOIN, while Criteria defaults to WHERE - * Examples: - * - * $c->join('Book.Author'); - * => $c->addJoin(BookPeer::AUTHOR_ID, AuthorPeer::ID, Criteria::INNER_JOIN); - * $c->join('Book.Author', Criteria::RIGHT_JOIN); - * => $c->addJoin(BookPeer::AUTHOR_ID, AuthorPeer::ID, Criteria::RIGHT_JOIN); - * $c->join('Book.Author a', Criteria::RIGHT_JOIN); - * => $c->addAlias('a', AuthorPeer::TABLE_NAME); - * => $c->addJoin(BookPeer::AUTHOR_ID, 'a.ID', Criteria::RIGHT_JOIN); - * - * - * @param string $relation Relation to use for the join - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return ModelCriteria The current object, for fluid interface - */ - public function join($relation, $joinType = Criteria::INNER_JOIN) - { - // relation looks like '$leftName.$relationName $relationAlias' - list($fullName, $relationAlias) = self::getClassAndAlias($relation); - if (strpos($fullName, '.') === false) { - // simple relation name, refers to the current table - $leftName = $this->getModelAliasOrName(); - $relationName = $fullName; - $previousJoin = $this->getPreviousJoin(); - $tableMap = $this->getTableMap(); - } else { - list($leftName, $relationName) = explode('.', $fullName); - // find the TableMap for the left table using the $leftName - if ($leftName == $this->getModelAliasOrName()) { - $previousJoin = $this->getPreviousJoin(); - $tableMap = $this->getTableMap(); - } elseif (isset($this->joins[$leftName])) { - $previousJoin = $this->joins[$leftName]; - $tableMap = $previousJoin->getTableMap(); - } else { - throw new PropelException('Unknown table or alias ' . $leftName); - } - } - $leftTableAlias = isset($this->aliases[$leftName]) ? $leftName : null; - - // find the RelationMap in the TableMap using the $relationName - if(!$tableMap->hasRelation($relationName)) { - throw new PropelException('Unknown relation ' . $relationName . ' on the ' . $leftName .' table'); - } - $relationMap = $tableMap->getRelation($relationName); - - // create a ModelJoin object for this join - $join = new ModelJoin(); - $join->setJoinType($joinType); - if(null !== $previousJoin) { - $join->setPreviousJoin($previousJoin); - } - $join->setRelationMap($relationMap, $leftTableAlias, $relationAlias); - - // add the ModelJoin to the current object - if($relationAlias !== null) { - $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); - $this->addJoinObject($join, $relationAlias); - } else { - $this->addJoinObject($join, $relationName); - } - - return $this; - } - - /** - * Add a join object to the Criteria - * @see Criteria::addJoinObject() - * @param Join $join A join object - * - * @return ModelCriteria The current object, for fluid interface - */ - public function addJoinObject(Join $join, $name = null) - { - if (!in_array($join, $this->joins)) { // compare equality, NOT identity - $this->joins[$name] = $join; - } - return $this; - } - - /** - * Adds a JOIN clause to the query and hydrates the related objects - * Shortcut for $c->join()->with() - * - * $c->joinWith('Book.Author'); - * => $c->join('Book.Author'); - * => $c->with('Author'); - * $c->joinWith('Book.Author a', Criteria::RIGHT_JOIN); - * => $c->join('Book.Author a', Criteria::RIGHT_JOIN); - * => $c->with('a'); - * - * - * @param string $relation Relation to use for the join - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return ModelCriteria The current object, for fluid interface - */ - public function joinWith($relation, $joinType = Criteria::INNER_JOIN) - { - $this->join($relation, $joinType); - $this->with(self::getRelationName($relation)); - - return $this; - } - - /** - * Adds a relation to hydrate together with the main object - * The relation must be initialized via a join() prior to calling with() - * Examples: - * - * $c->join('Book.Author'); - * $c->with('Author'); - * - * $c->join('Book.Author a', Criteria::RIGHT_JOIN); - * $c->with('a'); - * - * WARNING: on a one-to-many relationship, the use of with() combined with limit() - * will return a wrong number of results for the related objects - * - * @param string $relation Relation to use for the join - * - * @return ModelCriteria The current object, for fluid interface - */ - public function with($relation) - { - if (!isset($this->joins[$relation])) { - throw new PropelException('Unknown relation name or alias ' . $relation); - } - $join = $this->joins[$relation]; - if ($join->getRelationMap()->getType() == RelationMap::MANY_TO_MANY) { - throw new PropelException('with() does not allow hydration for many-to-many relationships'); - } elseif ($join->getRelationMap()->getType() == RelationMap::ONE_TO_MANY) { - // For performance reasons, the formatters will use a special routine in this case - $this->isWithOneToMany = true; - } - - // check that the columns of the main class are already added (but only if this isn't a useQuery) - if (!$this->hasSelectClause() && !$this->getPrimaryCriteria()) { - $this->addSelfSelectColumns(); - } - // add the columns of the related class - $this->addRelationSelectColumns($relation); - - // list the join for later hydration in the formatter - $this->with[$relation] = $join; - - return $this; - } - - /** - * Gets the array of ModelWith specifying which objects must be hydrated - * together with the main object. - * - * @see with() - * @return array - */ - public function getWith() - { - return $this->with; - } - - public function isWithOneToMany() - { - return $this->isWithOneToMany; - } - - /** - * Adds a supplementary column to the select clause - * These columns can later be retrieved from the hydrated objects using getVirtualColumn() - * - * @param string $clause The SQL clause with object model column names - * e.g. 'UPPER(Author.FirstName)' - * @param string $name Optional alias for the added column - * If no alias is provided, the clause is used as a column alias - * This alias is used for retrieving the column via BaseObject::getVirtualColumn($alias) - * - * @return ModelCriteria The current object, for fluid interface - */ - public function withColumn($clause, $name = null) - { - if (null === $name) { - $name = str_replace(array('.', '(', ')'), '', $clause); - } - $clause = trim($clause); - $this->replaceNames($clause); - // check that the columns of the main class are already added (if this is the primary ModelCriteria) - if (!$this->hasSelectClause() && !$this->getPrimaryCriteria()) { - $this->addSelfSelectColumns(); - } - $this->addAsColumn($name, $clause); - - return $this; - } - - /** - * Initializes a secondary ModelCriteria object, to be later merged with the current object - * - * @see ModelCriteria::endUse() - * @param string $relationName Relation name or alias - * @param string $secondCriteriaClass Classname for the ModelCriteria to be used - * - * @return ModelCriteria The secondary criteria object - */ - public function useQuery($relationName, $secondaryCriteriaClass = null) - { - if (!isset($this->joins[$relationName])) { - throw new PropelException('Unknown class or alias ' . $relationName); - } - $className = $this->joins[$relationName]->getTableMap()->getPhpName(); - if (null === $secondaryCriteriaClass) { - $secondaryCriteria = PropelQuery::from($className); - } else { - $secondaryCriteria = new $secondaryCriteriaClass(); - } - if ($className != $relationName) { - $secondaryCriteria->setModelAlias($relationName, $relationName == $this->joins[$relationName]->getRelationMap()->getName() ? false : true); - } - $secondaryCriteria->setPrimaryCriteria($this, $this->joins[$relationName]); - - return $secondaryCriteria; - } - - /** - * Finalizes a secondary criteria and merges it with its primary Criteria - * - * @see Criteria::mergeWith() - * - * @return ModelCriteria The primary criteria object - */ - public function endUse() - { - if (isset($this->aliases[$this->modelAlias])) { - $this->removeAlias($this->modelAlias); - } - $primaryCriteria = $this->getPrimaryCriteria(); - $primaryCriteria->mergeWith($this); - - return $primaryCriteria; - } - - /** - * Add the content of a Criteria to the current Criteria - * In case of conflict, the current Criteria keeps its properties - * @see Criteria::mergeWith() - * - * @param Criteria $criteria The criteria to read properties from - * @param string $operator The logical operator used to combine conditions - * Defaults to Criteria::LOGICAL_AND, also accapts Criteria::LOGICAL_OR - * - * @return ModelCriteria The primary criteria object - */ - public function mergeWith(Criteria $criteria, $operator = Criteria::LOGICAL_AND) - { - parent::mergeWith($criteria, $operator); - - // merge with - if ($criteria instanceof ModelCriteria) { - $this->with = array_merge($this->getWith(), $criteria->getWith()); - } - - return $this; - } - - /** - * Clear the conditions to allow the reuse of the query object. - * The ModelCriteria's Model and alias 'all the properties set by construct) will remain. - * - * @return ModelCriteria The primary criteria object - */ - public function clear() - { - parent::clear(); - - $this->with = array(); - $this->primaryCriteria = null; - $this->formatter=null; - - return $this; - } - /** - * Sets the primary Criteria for this secondary Criteria - * - * @param ModelCriteria $criteria The primary criteria - * @param Join $previousJoin The previousJoin for this ModelCriteria - */ - public function setPrimaryCriteria(ModelCriteria $criteria, Join $previousJoin) - { - $this->primaryCriteria = $criteria; - $this->setPreviousJoin($previousJoin); - } - - /** - * Gets the primary criteria for this secondary Criteria - * - * @return ModelCriteria The primary criteria - */ - public function getPrimaryCriteria() - { - return $this->primaryCriteria; - } - - /** - * Adds the select columns for a the current table - * - * @return ModelCriteria The current object, for fluid interface - */ - public function addSelfSelectColumns() - { - call_user_func(array($this->modelPeerName, 'addSelectColumns'), $this, $this->useAliasInSQL ? $this->modelAlias : null); - - return $this; - } - - /** - * Adds the select columns for a relation - * - * @param string $relation The relation name or alias, as defined in join() - * - * @return ModelCriteria The current object, for fluid interface - */ - public function addRelationSelectColumns($relation) - { - $join = $this->joins[$relation]; - call_user_func(array($join->getTableMap()->getPeerClassname(), 'addSelectColumns'), $this, $join->getRelationAlias()); - - return $this; - } - - /** - * Returns the class and alias of a string representing a model or a relation - * e.g. 'Book b' => array('Book', 'b') - * e.g. 'Book' => array('Book', null) - * - * @param string $class The classname to explode - * - * @return array list($className, $aliasName) - */ - public static function getClassAndAlias($class) - { - if(strpos($class, ' ') !== false) { - list($class, $alias) = explode(' ', $class); - } else { - $alias = null; - } - return array($class, $alias); - } - - /** - * Returns the name of a relation from a string. - * The input looks like '$leftName.$relationName $relationAlias' - * - * @param string $relation Relation to use for the join - * @return string the relationName used in the join - */ - public static function getRelationName($relation) - { - // get the relationName - list($fullName, $relationAlias) = self::getClassAndAlias($relation); - if ($relationAlias) { - $relationName = $relationAlias; - } elseif (false === strpos($fullName, '.')) { - $relationName = $fullName; - } else { - list($leftName, $relationName) = explode('.', $fullName); - } - - return $relationName; - } - - /** - * Triggers the automated cloning on termination. - * By default, temrination methods don't clone the current object, - * even though they modify it. If the query must be reused after termination, - * you must call this method prior to temrination. - * - * @param boolean $isKeepQuery - * - * @return ModelCriteria The current object, for fluid interface - */ - public function keepQuery($isKeepQuery = true) - { - $this->isKeepQuery = (bool) $isKeepQuery; - - return $this; - } - - /** - * Checks whether the automated cloning on termination is enabled. - * - * @return boolean true if cloning must be done before termination - */ - public function isKeepQuery() - { - return $this->isKeepQuery; - } - - /** - * Code to execute before every SELECT statement - * - * @param PropelPDO $con The connection object used by the query - */ - protected function basePreSelect(PropelPDO $con) - { - return $this->preSelect($con); - } - - protected function preSelect(PropelPDO $con) - { - } - - /** - * Issue a SELECT query based on the current ModelCriteria - * and format the list of results with the current formatter - * By default, returns an array of model objects - * - * @param PropelPDO $con an optional connection object - * - * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter - */ - public function find($con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - $stmt = $criteria->getSelectStatement($con); - - return $criteria->getFormatter()->init($criteria)->format($stmt); - } - - /** - * Issue a SELECT ... LIMIT 1 query based on the current ModelCriteria - * and format the result with the current formatter - * By default, returns a model object - * - * @param PropelPDO $con an optional connection object - * - * @return mixed the result, formatted by the current formatter - */ - public function findOne($con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - $criteria->limit(1); - $stmt = $criteria->getSelectStatement($con); - - return $criteria->getFormatter()->init($criteria)->formatOne($stmt); - } - - /** - * Issue a SELECT ... LIMIT 1 query based on the current ModelCriteria - * and format the result with the current formatter - * By default, returns a model object - * - * @param PropelPDO $con an optional connection object - * - * @return mixed the result, formatted by the current formatter - */ - public function findOneOrCreate($con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - $criteria->limit(1); - $stmt = $criteria->getSelectStatement($con); - if (!$ret = $this->findOne($con)) { - $class = $this->getModelName(); - $obj = new $class(); - foreach ($this->keys() as $key) { - $obj->setByName($key, $this->getValue($key), BasePeer::TYPE_COLNAME); - } - $ret = $this->getFormatter()->formatRecord($obj); - } - return $ret; - } - - /** - * Find object by primary key - * Behaves differently if the model has simple or composite primary key - * - * // simple primary key - * $book = $c->findPk(12, $con); - * // composite primary key - * $bookOpinion = $c->findPk(array(34, 634), $con); - * - * @param mixed $key Primary key to use for the query - * @param PropelPDO $con an optional connection object - * - * @return mixed the result, formatted by the current formatter - */ - public function findPk($key, $con = null) - { - $pkCols = $this->getTableMap()->getPrimaryKeyColumns(); - if (count($pkCols) == 1) { - // simple primary key - $pkCol = $pkCols[0]; - $this->add($pkCol->getFullyQualifiedName(), $key); - return $this->findOne($con); - } else { - // composite primary key - foreach ($pkCols as $pkCol) { - $keyPart = array_shift($key); - $this->add($pkCol->getFullyQualifiedName(), $keyPart); - } - return $this->findOne($con); - } - } - - /** - * Find objects by primary key - * Behaves differently if the model has simple or composite primary key - * - * // simple primary key - * $books = $c->findPks(array(12, 56, 832), $con); - * // composite primary key - * $bookOpinion = $c->findPks(array(array(34, 634), array(45, 518), array(34, 765)), $con); - * - * @param array $keys Primary keys to use for the query - * @param PropelPDO $con an optional connection object - * - * @return mixed the list of results, formatted by the current formatter - */ - public function findPks($keys, $con = null) - { - $pkCols = $this->getTableMap()->getPrimaryKeyColumns(); - if (count($pkCols) == 1) { - // simple primary key - $pkCol = array_shift($pkCols); - $this->add($pkCol->getFullyQualifiedName(), $keys, Criteria::IN); - } else { - // composite primary key - throw new PropelException('Multiple object retrieval is not implemented for composite primary keys'); - } - return $this->find($con); - } - - protected function getSelectStatement($con = null) - { - $dbMap = Propel::getDatabaseMap($this->getDbName()); - $db = Propel::getDB($this->getDbName()); - if ($con === null) { - $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); - } - - // check that the columns of the main class are already added (if this is the primary ModelCriteria) - if (!$this->hasSelectClause() && !$this->getPrimaryCriteria()) { - $this->addSelfSelectColumns(); - } - - $con->beginTransaction(); - try { - $this->basePreSelect($con); - $params = array(); - $sql = BasePeer::createSelectSql($this, $params); - $stmt = $con->prepare($sql); - BasePeer::populateStmtValues($stmt, $params, $dbMap, $db); - $stmt->execute(); - $con->commit(); - } catch (Exception $e) { - if ($stmt) { - $stmt = null; // close - } - $con->rollBack(); - Propel::log($e->getMessage(), Propel::LOG_ERR); - throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); - } - - return $stmt; - } - - /** - * Apply a condition on a column and issues the SELECT query - * - * @see filterBy() - * @see find() - * - * @param string $column A string representing the column phpName, e.g. 'AuthorId' - * @param mixed $value A value for the condition - * @param PropelPDO $con An optional connection object - * - * @return mixed the list of results, formatted by the current formatter - */ - public function findBy($column, $value, $con = null) - { - $method = 'filterBy' . $column; - $this->$method($value); - - return $this->find($con); - } - - /** - * Apply a list of conditions on columns and issues the SELECT query - * - * $c->findByArray(array( - * 'Title' => 'War And Peace', - * 'Publisher' => $publisher - * ), $con); - * - * - * @see filterByArray() - * @see find() - * - * @param mixed $conditions An array of conditions, using column phpNames as key - * @param PropelPDO $con an optional connection object - * - * @return mixed the list of results, formatted by the current formatter - */ - public function findByArray($conditions, $con = null) - { - $this->filterByArray($conditions); - - return $this->find($con); - } - - /** - * Apply a condition on a column and issues the SELECT ... LIMIT 1 query - * - * @see filterBy() - * @see findOne() - * - * @param mixed $column A string representing thecolumn phpName, e.g. 'AuthorId' - * @param mixed $value A value for the condition - * @param PropelPDO $con an optional connection object - * - * @return mixed the result, formatted by the current formatter - */ - public function findOneBy($column, $value, $con = null) - { - $method = 'filterBy' . $column; - $this->$method($value); - - return $this->findOne($con); - } - - /** - * Apply a list of conditions on columns and issues the SELECT ... LIMIT 1 query - * - * $c->findOneByArray(array( - * 'Title' => 'War And Peace', - * 'Publisher' => $publisher - * ), $con); - * - * - * @see filterByArray() - * @see findOne() - * - * @param mixed $conditions An array of conditions, using column phpNames as key - * @param PropelPDO $con an optional connection object - * - * @return mixed the list of results, formatted by the current formatter - */ - public function findOneByArray($conditions, $con = null) - { - $this->filterByArray($conditions); - - return $this->findOne($con); - } - - /** - * Issue a SELECT COUNT(*) query based on the current ModelCriteria - * - * @param PropelPDO $con an optional connection object - * - * @return integer the number of results - */ - public function count($con = null) - { - if ($con === null) { - $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); - } - - $criteria = $this->isKeepQuery() ? clone $this : $this; - $criteria->setDbName($this->getDbName()); // Set the correct dbName - $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count - - // We need to set the primary table name, since in the case that there are no WHERE columns - // it will be impossible for the BasePeer::createSelectSql() method to determine which - // tables go into the FROM clause. - $criteria->setPrimaryTableName(constant($this->modelPeerName.'::TABLE_NAME')); - - $stmt = $criteria->getCountStatement($con); - if ($row = $stmt->fetch(PDO::FETCH_NUM)) { - $count = (int) $row[0]; - } else { - $count = 0; // no rows returned; we infer that means 0 matches. - } - $stmt->closeCursor(); - - return $count; - } - - protected function getCountStatement($con = null) - { - $dbMap = Propel::getDatabaseMap($this->getDbName()); - $db = Propel::getDB($this->getDbName()); - if ($con === null) { - $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); - } - - // check that the columns of the main class are already added (if this is the primary ModelCriteria) - if (!$this->hasSelectClause() && !$this->getPrimaryCriteria()) { - $this->addSelfSelectColumns(); - } - - $needsComplexCount = $this->getGroupByColumns() - || $this->getOffset() - || $this->getLimit() - || $this->getHaving() - || in_array(Criteria::DISTINCT, $this->getSelectModifiers()); - - $con->beginTransaction(); - try { - $this->basePreSelect($con); - $params = array(); - if ($needsComplexCount) { - if (BasePeer::needsSelectAliases($this)) { - if ($this->getHaving()) { - throw new PropelException('Propel cannot create a COUNT query when using HAVING and duplicate column names in the SELECT part'); - } - BasePeer::turnSelectColumnsToAliases($this); - } - $selectSql = BasePeer::createSelectSql($this, $params); - $sql = 'SELECT COUNT(*) FROM (' . $selectSql . ') propelmatch4cnt'; - } else { - // Replace SELECT columns with COUNT(*) - $this->clearSelectColumns()->addSelectColumn('COUNT(*)'); - $sql = BasePeer::createSelectSql($this, $params); - } - $stmt = $con->prepare($sql); - BasePeer::populateStmtValues($stmt, $params, $dbMap, $db); - $stmt->execute(); - $con->commit(); - } catch (PropelException $e) { - $con->rollback(); - throw $e; - } - - return $stmt; - } - - /** - * Issue a SELECT query based on the current ModelCriteria - * and uses a page and a maximum number of results per page - * to compute an offet and a limit. - * - * @param int $page number of the page to start the pager on. Page 1 means no offset - * @param int $maxPerPage maximum number of results per page. Determines the limit - * @param PropelPDO $con an optional connection object - * - * @return PropelModelPager a pager object, supporting iteration - */ - public function paginate($page = 1, $maxPerPage = 10, $con = null) - { - $criteria = $this->isKeepQuery() ? clone $this : $this; - $pager = new PropelModelPager($criteria, $maxPerPage); - $pager->setPage($page); - $pager->init(); - - return $pager; - } - - /** - * Code to execute before every DELETE statement - * - * @param PropelPDO $con The connection object used by the query - */ - protected function basePreDelete(PropelPDO $con) - { - return $this->preDelete($con); - } - - protected function preDelete(PropelPDO $con) - { - } - - /** - * Code to execute after every DELETE statement - * - * @param int $affectedRows the number of deleted rows - * @param PropelPDO $con The connection object used by the query - */ - protected function basePostDelete($affectedRows, PropelPDO $con) - { - return $this->postDelete($affectedRows, $con); - } - - protected function postDelete($affectedRows, PropelPDO $con) - { - } - - /** - * Issue a DELETE query based on the current ModelCriteria - * An optional hook on basePreDelete() can prevent the actual deletion - * - * @param PropelPDO $con an optional connection object - * - * @return integer the number of deleted rows - */ - public function delete($con = null) - { - if (count($this->getMap()) == 0) { - throw new PropelException('delete() expects a Criteria with at least one condition. Use deleteAll() to delete all the rows of a table'); - } - - if ($con === null) { - $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); - } - - $criteria = $this->isKeepQuery() ? clone $this : $this; - $criteria->setDbName($this->getDbName()); - - $con->beginTransaction(); - try { - if(!$affectedRows = $criteria->basePreDelete($con)) { - $affectedRows = $criteria->doDelete($con); - } - $criteria->basePostDelete($affectedRows, $con); - $con->commit(); - } catch (PropelException $e) { - $con->rollback(); - throw $e; - } - - return $affectedRows; - } - - /** - * Issue a DELETE query based on the current ModelCriteria - * This method is called by ModelCriteria::delete() inside a transaction - * - * @param PropelPDO $con a connection object - * - * @return integer the number of deleted rows - */ - public function doDelete($con) - { - $affectedRows = call_user_func(array($this->modelPeerName, 'doDelete'), $this, $con); - - return $affectedRows; - } - - /** - * Issue a DELETE query based on the current ModelCriteria deleting all rows in the table - * An optional hook on basePreDelete() can prevent the actual deletion - * - * @param PropelPDO $con an optional connection object - * - * @return integer the number of deleted rows - */ - public function deleteAll($con = null) - { - if ($con === null) { - $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_WRITE); - } - $con->beginTransaction(); - try { - if(!$affectedRows = $this->basePreDelete($con)) { - $affectedRows = $this->doDeleteAll($con); - } - $this->basePostDelete($affectedRows, $con); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $affectedRows; - } - - /** - * Issue a DELETE query based on the current ModelCriteria deleting all rows in the table - * This method is called by ModelCriteria::deleteAll() inside a transaction - * - * @param PropelPDO $con a connection object - * - * @return integer the number of deleted rows - */ - public function doDeleteAll($con) - { - $affectedRows = call_user_func(array($this->modelPeerName, 'doDeleteAll'), $con); - - return $affectedRows; - } - - /** - * Code to execute before every UPDATE statement - * - * @param array $values The associatiove array of columns and values for the update - * @param PropelPDO $con The connection object used by the query - * @param boolean $forceIndividualSaves If false (default), the resulting call is a BasePeer::doUpdate(), ortherwise it is a series of save() calls on all the found objects - */ - protected function basePreUpdate(&$values, PropelPDO $con, $forceIndividualSaves = false) - { - return $this->preUpdate($values, $con, $forceIndividualSaves); - } - - protected function preUpdate(&$values, PropelPDO $con, $forceIndividualSaves = false) - { - } - - /** - * Code to execute after every UPDATE statement - * - * @param int $affectedRows the number of updated rows - * @param PropelPDO $con The connection object used by the query - */ - protected function basePostUpdate($affectedRows, PropelPDO $con) - { - return $this->postUpdate($affectedRows, $con); - } - - protected function postUpdate($affectedRows, PropelPDO $con) - { - } - - /** - * Issue an UPDATE query based the current ModelCriteria and a list of changes. - * An optional hook on basePreUpdate() can prevent the actual update. - * Beware that behaviors based on hooks in the object's save() method - * will only be triggered if you force individual saves, i.e. if you pass true as second argument. - * - * @param array $values Associative array of keys and values to replace - * @param PropelPDO $con an optional connection object - * @param boolean $forceIndividualSaves If false (default), the resulting call is a BasePeer::doUpdate(), ortherwise it is a series of save() calls on all the found objects - * - * @return Integer Number of updated rows - */ - public function update($values, $con = null, $forceIndividualSaves = false) - { - if (!is_array($values)) { - throw new PropelException('set() expects an array as first argument'); - } - if (count($this->getJoins())) { - throw new PropelException('set() does not support multitable updates, please do not use join()'); - } - - if ($con === null) { - $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_WRITE); - } - - $criteria = $this->isKeepQuery() ? clone $this : $this; - $criteria->setPrimaryTableName(constant($this->modelPeerName.'::TABLE_NAME')); - - $con->beginTransaction(); - try { - - if(!$affectedRows = $criteria->basePreUpdate($values, $con, $forceIndividualSaves)) { - $affectedRows = $criteria->doUpdate($values, $con, $forceIndividualSaves); - } - $criteria->basePostUpdate($affectedRows, $con); - - $con->commit(); - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - - return $affectedRows; - } - - /** - * Issue an UPDATE query based the current ModelCriteria and a list of changes. - * This method is called by ModelCriteria::update() inside a transaction. - * - * @param array $values Associative array of keys and values to replace - * @param PropelPDO $con a connection object - * @param boolean $forceIndividualSaves If false (default), the resulting call is a BasePeer::doUpdate(), ortherwise it is a series of save() calls on all the found objects - * - * @return Integer Number of updated rows - */ - public function doUpdate($values, $con, $forceIndividualSaves = false) - { - if($forceIndividualSaves) { - - // Update rows one by one - $objects = $this->setFormatter(ModelCriteria::FORMAT_OBJECT)->find($con); - foreach ($objects as $object) { - foreach ($values as $key => $value) { - $object->setByName($key, $value); - } - } - $objects->save($con); - $affectedRows = count($objects); - - } else { - - // update rows in a single query - $set = new Criteria(); - foreach ($values as $columnName => $value) { - $realColumnName = $this->getTableMap()->getColumnByPhpName($columnName)->getFullyQualifiedName(); - $set->add($realColumnName, $value); - } - $affectedRows = BasePeer::doUpdate($this, $set, $con); - call_user_func(array($this->modelPeerName, 'clearInstancePool')); - call_user_func(array($this->modelPeerName, 'clearRelatedInstancePool')); - } - - return $affectedRows; - } - - /** - * Creates a Criterion object based on a list of existing condition names and a comparator - * - * @param array $conditions The list of condition names, e.g. array('cond1', 'cond2') - * @param string $comparator A comparator, Criteria::LOGICAL_AND (default) or Criteria::LOGICAL_OR - * - * @return Criterion a Criterion or ModelCriterion object - */ - protected function getCriterionForConditions($conditions, $comparator = null) - { - $comparator = (null === $comparator) ? Criteria::LOGICAL_AND : $comparator; - $this->combine($conditions, $comparator, 'propel_temp_name'); - $criterion = $this->namedCriterions['propel_temp_name']; - unset($this->namedCriterions['propel_temp_name']); - - return $criterion; - } - - /** - * Creates a Criterion object based on a SQL clause and a value - * Uses introspection to translate the column phpName into a fully qualified name - * - * @param string $clause The pseudo SQL clause, e.g. 'AuthorId = ?' - * @param mixed $value A value for the condition - * - * @return Criterion a Criterion or ModelCriterion object - */ - protected function getCriterionForClause($clause, $value) - { - $clause = trim($clause); - if($this->replaceNames($clause)) { - // at least one column name was found and replaced in the clause - // this is enough to determine the type to bind the parameter to - if (preg_match('/IN \?$/i', $clause) !== 0) { - $operator = ModelCriteria::MODEL_CLAUSE_ARRAY; - } elseif (preg_match('/LIKE \?$/i', $clause) !== 0) { - $operator = ModelCriteria::MODEL_CLAUSE_LIKE; - } elseif (substr_count($clause, '?') > 1) { - $operator = ModelCriteria::MODEL_CLAUSE_SEVERAL; - } else { - $operator = ModelCriteria::MODEL_CLAUSE; - } - $criterion = new ModelCriterion($this, $this->replacedColumns[0], $value, $operator, $clause); - if ($this->currentAlias != '') { - $criterion->setTable($this->currentAlias); - } - } else { - // no column match in clause, must be an expression like '1=1' - if (strpos($clause, '?') !== false) { - throw new PropelException("Cannot determine the column to bind to the parameter in clause '$clause'"); - } - $criterion = new Criterion($this, null, $clause, Criteria::CUSTOM); - } - return $criterion; - } - - /** - * Replaces complete column names (like Article.AuthorId) in an SQL clause - * by their exact Propel column fully qualified name (e.g. article.AUTHOR_ID) - * but ignores the column names inside quotes - * - * Note: if you know a way to do so in one step, and in an efficient way, I'm interested :) - * - * @param string $clause SQL clause to inspect (modified by the method) - * - * @return boolean Whether the method managed to find and replace at least one column name - */ - protected function replaceNames(&$clause) - { - $this->replacedColumns = array(); - $this->currentAlias = ''; - $this->foundMatch = false; - $regexp = <<foundMatch; - } - - /** - * Callback function to replace expressions containing column names with expressions using the real column names - * Handles strings properly - * e.g. 'CONCAT(Book.Title, "Book.Title") = ?' - * => 'CONCAT(book.TITLE, "Book.Title") = ?' - * - * @param array $matches Matches found by preg_replace_callback - * - * @return string the expression replacement - */ - protected function doReplaceName($matches) - { - if(!$matches[0]) { - return ''; - } - // replace names only in expressions, not in strings delimited by quotes - return $matches[1] . preg_replace_callback('/\w+\.\w+/', array($this, 'doReplaceNameInExpression'), $matches[2]); - } - - /** - * Callback function to replace column names by their real name in a clause - * e.g. 'Book.Title IN ?' - * => 'book.TITLE IN ?' - * - * @param array $matches Matches found by preg_replace_callback - * - * @return string the column name replacement - */ - protected function doReplaceNameInExpression($matches) - { - $key = $matches[0]; - list($column, $realColumnName) = $this->getColumnFromName($key); - if ($column instanceof ColumnMap) { - $this->replacedColumns[]= $column; - $this->foundMatch = true; - return $realColumnName; - } else { - return $key; - } - } - - /** - * Finds a column and a SQL translation for a pseudo SQL column name - * Respects table aliases previously registered in a join() or addAlias() - * Examples: - * - * $c->getColumnFromName('Book.Title'); - * => array($bookTitleColumnMap, 'book.TITLE') - * $c->join('Book.Author a') - * ->getColumnFromName('a.FirstName'); - * => array($authorFirstNameColumnMap, 'a.FIRST_NAME') - * - * - * @param string $phpName String representing the column name in a pseudo SQL clause, e.g. 'Book.Title' - * - * @return array List($columnMap, $realColumnName) - */ - protected function getColumnFromName($phpName, $failSilently = true) - { - if (strpos($phpName, '.') === false) { - $class = $this->getModelAliasOrName(); - } else { - list($class, $phpName) = explode('.', $phpName); - } - - if ($class == $this->getModelAliasOrName()) { - // column of the Criteria's model - $tableMap = $this->getTableMap(); - } elseif (isset($this->joins[$class])) { - // column of a relations's model - $tableMap = $this->joins[$class]->getTableMap(); - } else { - if ($failSilently) { - return array(null, null); - } else { - throw new PropelException('Unknown model or alias ' . $class); - } - } - - if ($tableMap->hasColumnByPhpName($phpName)) { - $column = $tableMap->getColumnByPhpName($phpName); - if (isset($this->aliases[$class])) { - $this->currentAlias = $class; - $realColumnName = $class . '.' . $column->getName(); - } else { - $realColumnName = $column->getFullyQualifiedName(); - } - return array($column, $realColumnName); - } elseif (isset($this->asColumns[$phpName])) { - // aliased column - return array(null, $phpName); - } else { - if ($failSilently) { - return array(null, null); - } else { - throw new PropelException('Unknown column ' . $phpName . ' on model or alias ' . $class); - } - } - } - - /** - * Return a fully qualified column name corresponding to a simple column phpName - * Uses model alias if it exists - * Warning: restricted to the columns of the main model - * e.g. => 'Title' => 'book.TITLE' - * - * @param string $columnName the Column phpName, without the table name - * - * @return string the fully qualified column name - */ - protected function getRealColumnName($columnName) - { - if (!$this->getTableMap()->hasColumnByPhpName($columnName)) { - throw new PropelException('Unkown column ' . $columnName . ' in model ' . $this->modelName); - } - if ($this->useAliasInSQL) { - return $this->modelAlias . '.' . $this->getTableMap()->getColumnByPhpName($columnName)->getName(); - } else { - return $this->getTableMap()->getColumnByPhpName($columnName)->getFullyQualifiedName(); - } - } - - /** - * Changes the table part of a a fully qualified column name if a true model alias exists - * e.g. => 'book.TITLE' => 'b.TITLE' - * This is for use as first argument of Criteria::add() - * - * @param string $colName the fully qualified column name, e.g 'book.TITLE' or BookPeer::TITLE - * - * @return string the fully qualified column name, using table alias if applicatble - */ - public function getAliasedColName($colName) - { - if ($this->useAliasInSQL) { - return $this->modelAlias . substr($colName, strpos($colName, '.')); - } else { - return $colName; - } - } - - /** - * Overrides Criteria::add() to force the use of a true table alias if it exists - * - * @see Criteria::add() - * @param string $column The colName of column to run the comparison on (e.g. BookPeer::ID) - * @param mixed $value - * @param string $comparison A String. - * - * @return ModelCriteria A modified Criteria object. - */ - public function addUsingAlias($p1, $value = null, $comparison = null) - { - $key = $this->getAliasedColName($p1); - return $this->containsKey($key) ? $this->addAnd($key, $value, $comparison) : $this->add($key, $value, $comparison); - } - - /** - * Get all the parameters to bind to this criteria - * Does part of the job of BasePeer::createSelectSql() for the cache - * - * @return array list of parameters, each parameter being an array like - * array('table' => $realtable, 'column' => $column, 'value' => $value) - */ - public function getParams() - { - $params = array(); - $dbMap = Propel::getDatabaseMap($this->getDbName()); - - foreach ($this->getMap() as $criterion) { - - $table = null; - foreach ($criterion->getAttachedCriterion() as $attachedCriterion) { - $tableName = $attachedCriterion->getTable(); - - $table = $this->getTableForAlias($tableName); - if (null === $table) { - $table = $tableName; - } - - if (($this->isIgnoreCase() || $attachedCriterion->isIgnoreCase()) - && $dbMap->getTable($table)->getColumn($attachedCriterion->getColumn())->isText()) { - $attachedCriterion->setIgnoreCase(true); - } - } - - $sb = ''; - $criterion->appendPsTo($sb, $params); - } - - $having = $this->getHaving(); - if ($having !== null) { - $sb = ''; - $having->appendPsTo($sb, $params); - } - - return $params; - } - - /** - * Handle the magic - * Supports findByXXX(), findOneByXXX(), filterByXXX(), orderByXXX(), and groupByXXX() methods, - * where XXX is a column phpName. - * Supports XXXJoin(), where XXX is a join direction (in 'left', 'right', 'inner') - */ - public function __call($name, $arguments) - { - // Maybe it's a magic call to one of the methods supporting it, e.g. 'findByTitle' - static $methods = array('findBy', 'findOneBy', 'filterBy', 'orderBy', 'groupBy'); - foreach ($methods as $method) - { - if(strpos($name, $method) === 0) - { - $columns = substr($name, strlen($method)); - if(in_array($method, array('findBy', 'findOneBy')) && strpos($columns, 'And') !== false) { - $method = $method . 'Array'; - $columns = explode('And', $columns); - $conditions = array(); - foreach ($columns as $column) { - $conditions[$column] = array_shift($arguments); - } - array_unshift($arguments, $conditions); - } else { - array_unshift($arguments, $columns); - } - return call_user_func_array(array($this, $method), $arguments); - } - } - - // Maybe it's a magic call to a qualified joinWith method, e.g. 'leftJoinWith' or 'joinWithAuthor' - if(($pos = stripos($name, 'joinWith')) !== false) { - $type = substr($name, 0, $pos); - if(in_array($type, array('left', 'right', 'inner'))) { - $joinType = strtoupper($type) . ' JOIN'; - } else { - $joinType = Criteria::INNER_JOIN; - } - if(!$relation = substr($name, $pos + 8)) { - $relation = $arguments[0]; - } - return $this->joinWith($relation, $joinType); - } - - // Maybe it's a magic call to a qualified join method, e.g. 'leftJoin' - if(($pos = strpos($name, 'Join')) > 0) - { - $type = substr($name, 0, $pos); - if(in_array($type, array('left', 'right', 'inner'))) - { - $joinType = strtoupper($type) . ' JOIN'; - // Test if first argument is suplied, else don't provide an alias to joinXXX (default value) - if (!isset($arguments[0])) { - $arguments[0] = ''; - } - array_push($arguments, $joinType); - $method = substr($name, $pos); - // no lcfirst in php<5.3... - $method[0] = strtolower($method[0]); - return call_user_func_array(array($this, $method), $arguments); - } - } - - throw new PropelException(sprintf('Undefined method %s::%s()', __CLASS__, $name)); - } - - /** - * Ensures deep cloning of attached objects - */ - public function __clone() - { - parent::__clone(); - foreach ($this->with as $key => $join) { - $this->with[$key] = clone $join; - } - if (null !== $this->formatter) { - $this->formatter = clone $this->formatter; - } - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/query/ModelCriterion.php b/airtime_mvc/library/propel/runtime/lib/query/ModelCriterion.php deleted file mode 100644 index beeeda79a8..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/query/ModelCriterion.php +++ /dev/null @@ -1,283 +0,0 @@ -value = $value; - if ($column instanceof ColumnMap) { - $this->column = $column->getName(); - $this->table = $column->getTable()->getName(); - } else { - $dotPos = strrpos($column,'.'); - if ($dotPos === false) { - // no dot => aliased column - $this->table = null; - $this->column = $column; - } else { - $this->table = substr($column, 0, $dotPos); - $this->column = substr($column, $dotPos+1, strlen($column)); - } - } - $this->comparison = ($comparison === null ? Criteria::EQUAL : $comparison); - $this->clause = $clause; - $this->init($outer); - } - - public function getClause() - { - return $this->clause; - } - - /** - * Figure out which MocelCriterion method to use - * to build the prepared statement and parameters using to the Criterion comparison - * and call it to append the prepared statement and the parameters of the current clause. - * For performance reasons, this method tests the cases of parent::dispatchPsHandling() - * first, and that is not possible through inheritance ; that's why the parent - * code is duplicated here. - * - * @param string &$sb The string that will receive the Prepared Statement - * @param array $params A list to which Prepared Statement parameters will be appended - */ - protected function dispatchPsHandling(&$sb, array &$params) - { - switch ($this->comparison) { - case Criteria::CUSTOM: - // custom expression with no parameter binding - $this->appendCustomToPs($sb, $params); - break; - case Criteria::IN: - case Criteria::NOT_IN: - // table.column IN (?, ?) or table.column NOT IN (?, ?) - $this->appendInToPs($sb, $params); - break; - case Criteria::LIKE: - case Criteria::NOT_LIKE: - case Criteria::ILIKE: - case Criteria::NOT_ILIKE: - // table.column LIKE ? or table.column NOT LIKE ? (or ILIKE for Postgres) - $this->appendLikeToPs($sb, $params); - break; - case ModelCriteria::MODEL_CLAUSE: - // regular model clause, e.g. 'book.TITLE = ?' - $this->appendModelClauseToPs($sb, $params); - break; - case ModelCriteria::MODEL_CLAUSE_LIKE: - // regular model clause, e.g. 'book.TITLE = ?' - $this->appendModelClauseLikeToPs($sb, $params); - break; - case ModelCriteria::MODEL_CLAUSE_SEVERAL: - // Ternary model clause, e.G 'book.ID BETWEEN ? AND ?' - $this->appendModelClauseSeveralToPs($sb, $params); - break; - case ModelCriteria::MODEL_CLAUSE_ARRAY: - // IN or NOT IN model clause, e.g. 'book.TITLE NOT IN ?' - $this->appendModelClauseArrayToPs($sb, $params); - break; - default: - // table.column = ? or table.column >= ? etc. (traditional expressions, the default) - $this->appendBasicToPs($sb, $params); - - } - } - - /** - * Appends a Prepared Statement representation of the ModelCriterion onto the buffer - * For regular model clauses, e.g. 'book.TITLE = ?' - * - * @param string &$sb The string that will receive the Prepared Statement - * @param array $params A list to which Prepared Statement parameters will be appended - */ - public function appendModelClauseToPs(&$sb, array &$params) - { - if ($this->value !== null) { - $params[] = array('table' => $this->realtable, 'column' => $this->column, 'value' => $this->value); - $sb .= str_replace('?', ':p'.count($params), $this->clause); - } else { - $sb .= $this->clause; - } - } - - /** - * Appends a Prepared Statement representation of the ModelCriterion onto the buffer - * For LIKE model clauses, e.g. 'book.TITLE LIKE ?' - * Handles case insensitivity for VARCHAR columns - * - * @param string &$sb The string that will receive the Prepared Statement - * @param array $params A list to which Prepared Statement parameters will be appended - */ - public function appendModelClauseLikeToPs(&$sb, array &$params) - { - // LIKE is case insensitive in mySQL and SQLite, but not in PostGres - // If the column is case insensitive, use ILIKE / NOT ILIKE instead of LIKE / NOT LIKE - if ($this->ignoreStringCase && $this->getDb() instanceof DBPostgres) { - $this->clause = preg_replace('/LIKE \?$/i', 'ILIKE ?', $this->clause); - } - $this->appendModelClauseToPs($sb, $params); - } - - /** - * Appends a Prepared Statement representation of the ModelCriterion onto the buffer - * For ternary model clauses, e.G 'book.ID BETWEEN ? AND ?' - * - * @param string &$sb The string that will receive the Prepared Statement - * @param array $params A list to which Prepared Statement parameters will be appended - */ - public function appendModelClauseSeveralToPs(&$sb, array &$params) - { - $clause = $this->clause; - foreach ((array) $this->value as $value) { - if ($value === null) { - // FIXME we eventually need to translate a BETWEEN to - // something like WHERE (col < :p1 OR :p1 IS NULL) AND (col < :p2 OR :p2 IS NULL) - // in order to support null values - throw new PropelException('Null values are not supported inside BETWEEN clauses'); - } - $params[] = array('table' => $this->realtable, 'column' => $this->column, 'value' => $value); - $clause = self::strReplaceOnce('?', ':p'.count($params), $clause); - } - $sb .= $clause; - } - - /** - * Appends a Prepared Statement representation of the ModelCriterion onto the buffer - * For IN or NOT IN model clauses, e.g. 'book.TITLE NOT IN ?' - * - * @param string &$sb The string that will receive the Prepared Statement - * @param array $params A list to which Prepared Statement parameters will be appended - */ - public function appendModelClauseArrayToPs(&$sb, array &$params) - { - $_bindParams = array(); // the param names used in query building - $_idxstart = count($params); - $valuesLength = 0; - foreach ( (array) $this->value as $value ) { - $valuesLength++; // increment this first to correct for wanting bind params to start with :p1 - $params[] = array('table' => $this->realtable, 'column' => $this->column, 'value' => $value); - $_bindParams[] = ':p'.($_idxstart + $valuesLength); - } - if ($valuesLength !== 0) { - $sb .= str_replace('?', '(' . implode(',', $_bindParams) . ')', $this->clause); - } else { - $sb .= (stripos($this->clause, ' NOT IN ') === false) ? "1<>1" : "1=1"; - } - unset ( $value, $valuesLength ); - } - - /** - * This method checks another Criteria to see if they contain - * the same attributes and hashtable entries. - * @return boolean - */ - public function equals($obj) - { - // TODO: optimize me with early outs - if ($this === $obj) { - return true; - } - - if (($obj === null) || !($obj instanceof ModelCriterion)) { - return false; - } - - $crit = $obj; - - $isEquiv = ( ( ($this->table === null && $crit->getTable() === null) - || ( $this->table !== null && $this->table === $crit->getTable() ) - ) - && $this->clause === $crit->getClause() - && $this->column === $crit->getColumn() - && $this->comparison === $crit->getComparison()); - - // check chained criterion - - $clausesLength = count($this->clauses); - $isEquiv &= (count($crit->getClauses()) == $clausesLength); - $critConjunctions = $crit->getConjunctions(); - $critClauses = $crit->getClauses(); - for ($i=0; $i < $clausesLength && $isEquiv; $i++) { - $isEquiv &= ($this->conjunctions[$i] === $critConjunctions[$i]); - $isEquiv &= ($this->clauses[$i] === $critClauses[$i]); - } - - if ($isEquiv) { - $isEquiv &= $this->value === $crit->getValue(); - } - - return $isEquiv; - } - - /** - * Returns a hash code value for the object. - */ - public function hashCode() - { - $h = crc32(serialize($this->value)) ^ crc32($this->comparison) ^ crc32($this->clause); - - if ($this->table !== null) { - $h ^= crc32($this->table); - } - - if ($this->column !== null) { - $h ^= crc32($this->column); - } - - foreach ( $this->clauses as $clause ) { - // TODO: i KNOW there is a php incompatibility with the following line - // but i dont remember what it is, someone care to look it up and - // replace it if it doesnt bother us? - // $clause->appendPsTo($sb='',$params=array()); - $sb = ''; - $params = array(); - $clause->appendPsTo($sb,$params); - $h ^= crc32(serialize(array($sb,$params))); - unset ( $sb, $params ); - } - - return $h; - } - - /** - * Replace only once - * taken from http://www.php.net/manual/en/function.str-replace.php - * - */ - protected static function strReplaceOnce($search, $replace, $subject) - { - $firstChar = strpos($subject, $search); - if($firstChar !== false) { - $beforeStr = substr($subject,0,$firstChar); - $afterStr = substr($subject, $firstChar + strlen($search)); - return $beforeStr.$replace.$afterStr; - } else { - return $subject; - } - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/query/ModelJoin.php b/airtime_mvc/library/propel/runtime/lib/query/ModelJoin.php deleted file mode 100644 index 59bbfce5d9..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/query/ModelJoin.php +++ /dev/null @@ -1,166 +0,0 @@ -getLeftColumns(); - $rightCols = $relationMap->getRightColumns(); - $nbColumns = $relationMap->countColumnMappings(); - for ($i=0; $i < $nbColumns; $i++) { - $leftColName = ($leftTableAlias ? $leftTableAlias : $leftCols[$i]->getTableName()) . '.' . $leftCols[$i]->getName(); - $rightColName = ($relationAlias ? $relationAlias : $rightCols[$i]->getTableName()) . '.' . $rightCols[$i]->getName(); - $this->addCondition($leftColName, $rightColName, Criteria::EQUAL); - } - $this->relationMap = $relationMap; - $this->leftTableAlias = $leftTableAlias; - $this->relationAlias = $relationAlias; - - return $this; - } - - public function getRelationMap() - { - return $this->relationMap; - } - - /** - * Sets the right tableMap for this join - * - * @param TableMap $tableMap The table map to use - * - * @return ModelJoin The current join object, for fluid interface - */ - public function setTableMap(TableMap $tableMap) - { - $this->tableMap = $tableMap; - - return $this; - } - - /** - * Gets the right tableMap for this join - * - * @return TableMap The table map - */ - public function getTableMap() - { - if (null === $this->tableMap && null !== $this->relationMap) - { - $this->tableMap = $this->relationMap->getRightTable(); - } - return $this->tableMap; - } - - public function setPreviousJoin(ModelJoin $join) - { - $this->previousJoin = $join; - - return $this; - } - - public function getPreviousJoin() - { - return $this->previousJoin; - } - - public function isPrimary() - { - return null === $this->previousJoin; - } - - public function setLeftTableAlias($leftTableAlias) - { - $this->leftTableAlias = $leftTableAlias; - - return $this; - } - - public function getLeftTableAlias() - { - return $this->leftTableAlias; - } - - public function hasLeftTableAlias() - { - return null !== $this->leftTableAlias; - } - - public function setRelationAlias($relationAlias) - { - $this->relationAlias = $relationAlias; - - return $this; - } - - public function getRelationAlias() - { - return $this->relationAlias; - } - - public function hasRelationAlias() - { - return null !== $this->relationAlias; - } - - /** - * This method returns the last related, but already hydrated object up until this join - * Starting from $startObject and continuously calling the getters to get - * to the base object for the current join. - * - * This method only works if PreviousJoin has been defined, - * which only happens when you provide dotted relations when calling join - * - * @param Object $startObject the start object all joins originate from and which has already hydrated - * @return Object the base Object of this join - */ - public function getObjectToRelate($startObject) - { - if($this->isPrimary()) { - return $startObject; - } else { - $previousJoin = $this->getPreviousJoin(); - $previousObject = $previousJoin->getObjectToRelate($startObject); - $method = 'get' . $previousJoin->getRelationMap()->getName(); - return $previousObject->$method(); - } - } - - public function equals($join) - { - return parent::equals($join) - && $this->relationMap == $join->getRelationMap() - && $this->previousJoin == $join->getPreviousJoin() - && $this->relationAlias == $join->getRelationAlias(); - } - - public function __toString() - { - return parent::toString() - . ' tableMap: ' . ($this->tableMap ? get_class($this->tableMap) : 'null') - . ' relationMap: ' . $this->relationMap->getName() - . ' previousJoin: ' . ($this->previousJoin ? '(' . $this->previousJoin . ')' : 'null') - . ' relationAlias: ' . $this->relationAlias; - } -} - \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/query/PropelQuery.php b/airtime_mvc/library/propel/runtime/lib/query/PropelQuery.php deleted file mode 100644 index 18f93c9b92..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/query/PropelQuery.php +++ /dev/null @@ -1,33 +0,0 @@ -setModelAlias($alias); - } - return $query; - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/util/BasePeer.php b/airtime_mvc/library/propel/runtime/lib/util/BasePeer.php deleted file mode 100644 index 0e6c91254e..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/util/BasePeer.php +++ /dev/null @@ -1,1099 +0,0 @@ - (Propel) - * @author Kaspars Jaudzems (Propel) - * @author Heltem (Propel) - * @author Frank Y. Kim (Torque) - * @author John D. McNally (Torque) - * @author Brett McLaughlin (Torque) - * @author Stephen Haberman (Torque) - * @version $Revision: 1772 $ - * @package propel.runtime.util - */ -class BasePeer -{ - - /** Array (hash) that contains the cached mapBuilders. */ - private static $mapBuilders = array(); - - /** Array (hash) that contains cached validators */ - private static $validatorMap = array(); - - /** - * phpname type - * e.g. 'AuthorId' - */ - const TYPE_PHPNAME = 'phpName'; - - /** - * studlyphpname type - * e.g. 'authorId' - */ - const TYPE_STUDLYPHPNAME = 'studlyPhpName'; - - /** - * column (peer) name type - * e.g. 'book.AUTHOR_ID' - */ - const TYPE_COLNAME = 'colName'; - - /** - * column part of the column peer name - * e.g. 'AUTHOR_ID' - */ - const TYPE_RAW_COLNAME = 'rawColName'; - - /** - * column fieldname type - * e.g. 'author_id' - */ - const TYPE_FIELDNAME = 'fieldName'; - - /** - * num type - * simply the numerical array index, e.g. 4 - */ - const TYPE_NUM = 'num'; - - static public function getFieldnames ($classname, $type = self::TYPE_PHPNAME) { - - // TODO we should take care of including the peer class here - - $peerclass = 'Base' . $classname . 'Peer'; // TODO is this always true? - $callable = array($peerclass, 'getFieldnames'); - - return call_user_func($callable, $type); - } - - static public function translateFieldname($classname, $fieldname, $fromType, $toType) { - - // TODO we should take care of including the peer class here - - $peerclass = 'Base' . $classname . 'Peer'; // TODO is this always true? - $callable = array($peerclass, 'translateFieldname'); - $args = array($fieldname, $fromType, $toType); - - return call_user_func_array($callable, $args); - } - - /** - * Method to perform deletes based on values and keys in a - * Criteria. - * - * @param Criteria $criteria The criteria to use. - * @param PropelPDO $con A PropelPDO connection object. - * @return int The number of rows affected by last statement execution. For most - * uses there is only one delete statement executed, so this number - * will correspond to the number of rows affected by the call to this - * method. Note that the return value does require that this information - * is returned (supported) by the PDO driver. - * @throws PropelException - */ - public static function doDelete(Criteria $criteria, PropelPDO $con) - { - $db = Propel::getDB($criteria->getDbName()); - $dbMap = Propel::getDatabaseMap($criteria->getDbName()); - - // Set up a list of required tables (one DELETE statement will - // be executed per table) - $tables = $criteria->getTablesColumns(); - if (empty($tables)) { - throw new PropelException("Cannot delete from an empty Criteria"); - } - - $affectedRows = 0; // initialize this in case the next loop has no iterations. - - foreach ($tables as $tableName => $columns) { - - $whereClause = array(); - $params = array(); - $stmt = null; - try { - $sql = 'DELETE '; - if ($queryComment = $criteria->getComment()) { - $sql .= '/* ' . $queryComment . ' */ '; - } - if ($realTableName = $criteria->getTableForAlias($tableName)) { - if ($db->useQuoteIdentifier()) { - $realTableName = $db->quoteIdentifierTable($realTableName); - } - $sql .= $tableName . ' FROM ' . $realTableName . ' AS ' . $tableName; - } else { - if ($db->useQuoteIdentifier()) { - $tableName = $db->quoteIdentifierTable($tableName); - } - $sql .= 'FROM ' . $tableName; - } - - foreach ($columns as $colName) { - $sb = ""; - $criteria->getCriterion($colName)->appendPsTo($sb, $params); - $whereClause[] = $sb; - } - $sql .= " WHERE " . implode(" AND ", $whereClause); - - $stmt = $con->prepare($sql); - self::populateStmtValues($stmt, $params, $dbMap, $db); - $stmt->execute(); - $affectedRows = $stmt->rowCount(); - } catch (Exception $e) { - Propel::log($e->getMessage(), Propel::LOG_ERR); - throw new PropelException(sprintf('Unable to execute DELETE statement [%s]', $sql), $e); - } - - } // for each table - - return $affectedRows; - } - - /** - * Method to deletes all contents of specified table. - * - * This method is invoked from generated Peer classes like this: - * - * public static function doDeleteAll($con = null) - * { - * if ($con === null) $con = Propel::getConnection(self::DATABASE_NAME); - * BasePeer::doDeleteAll(self::TABLE_NAME, $con, self::DATABASE_NAME); - * } - * - * - * @param string $tableName The name of the table to empty. - * @param PropelPDO $con A PropelPDO connection object. - * @param string $databaseName the name of the database. - * @return int The number of rows affected by the statement. Note - * that the return value does require that this information - * is returned (supported) by the Propel db driver. - * @throws PropelException - wrapping SQLException caught from statement execution. - */ - public static function doDeleteAll($tableName, PropelPDO $con, $databaseName = null) - { - try { - $db = Propel::getDB($databaseName); - if ($db->useQuoteIdentifier()) { - $tableName = $db->quoteIdentifierTable($tableName); - } - $sql = "DELETE FROM " . $tableName; - $stmt = $con->prepare($sql); - $stmt->execute(); - return $stmt->rowCount(); - } catch (Exception $e) { - Propel::log($e->getMessage(), Propel::LOG_ERR); - throw new PropelException(sprintf('Unable to execute DELETE ALL statement [%s]', $sql), $e); - } - } - - /** - * Method to perform inserts based on values and keys in a - * Criteria. - *

- * If the primary key is auto incremented the data in Criteria - * will be inserted and the auto increment value will be returned. - *

- * If the primary key is included in Criteria then that value will - * be used to insert the row. - *

- * If no primary key is included in Criteria then we will try to - * figure out the primary key from the database map and insert the - * row with the next available id using util.db.IDBroker. - *

- * If no primary key is defined for the table the values will be - * inserted as specified in Criteria and null will be returned. - * - * @param Criteria $criteria Object containing values to insert. - * @param PropelPDO $con A PropelPDO connection. - * @return mixed The primary key for the new row if (and only if!) the primary key - * is auto-generated. Otherwise will return null. - * @throws PropelException - */ - public static function doInsert(Criteria $criteria, PropelPDO $con) { - - // the primary key - $id = null; - - $db = Propel::getDB($criteria->getDbName()); - - // Get the table name and method for determining the primary - // key value. - $keys = $criteria->keys(); - if (!empty($keys)) { - $tableName = $criteria->getTableName( $keys[0] ); - } else { - throw new PropelException("Database insert attempted without anything specified to insert"); - } - - $dbMap = Propel::getDatabaseMap($criteria->getDbName()); - $tableMap = $dbMap->getTable($tableName); - $keyInfo = $tableMap->getPrimaryKeyMethodInfo(); - $useIdGen = $tableMap->isUseIdGenerator(); - //$keyGen = $con->getIdGenerator(); - - $pk = self::getPrimaryKey($criteria); - - // only get a new key value if you need to - // the reason is that a primary key might be defined - // but you are still going to set its value. for example: - // a join table where both keys are primary and you are - // setting both columns with your own values - - // pk will be null if there is no primary key defined for the table - // we're inserting into. - if ($pk !== null && $useIdGen && !$criteria->keyContainsValue($pk->getFullyQualifiedName()) && $db->isGetIdBeforeInsert()) { - try { - $id = $db->getId($con, $keyInfo); - } catch (Exception $e) { - throw new PropelException("Unable to get sequence id.", $e); - } - $criteria->add($pk->getFullyQualifiedName(), $id); - } - - try { - $adapter = Propel::getDB($criteria->getDBName()); - - $qualifiedCols = $criteria->keys(); // we need table.column cols when populating values - $columns = array(); // but just 'column' cols for the SQL - foreach ($qualifiedCols as $qualifiedCol) { - $columns[] = substr($qualifiedCol, strrpos($qualifiedCol, '.') + 1); - } - - // add identifiers - if ($adapter->useQuoteIdentifier()) { - $columns = array_map(array($adapter, 'quoteIdentifier'), $columns); - $tableName = $adapter->quoteIdentifierTable($tableName); - } - - $sql = 'INSERT INTO ' . $tableName - . ' (' . implode(',', $columns) . ')' - . ' VALUES ('; - // . substr(str_repeat("?,", count($columns)), 0, -1) . - for($p=1, $cnt=count($columns); $p <= $cnt; $p++) { - $sql .= ':p'.$p; - if ($p !== $cnt) $sql .= ','; - } - $sql .= ')'; - - $stmt = $con->prepare($sql); - self::populateStmtValues($stmt, self::buildParams($qualifiedCols, $criteria), $dbMap, $db); - $stmt->execute(); - - } catch (Exception $e) { - Propel::log($e->getMessage(), Propel::LOG_ERR); - throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e); - } - - // If the primary key column is auto-incremented, get the id now. - if ($pk !== null && $useIdGen && $db->isGetIdAfterInsert()) { - try { - $id = $db->getId($con, $keyInfo); - } catch (Exception $e) { - throw new PropelException("Unable to get autoincrement id.", $e); - } - } - - return $id; - } - - /** - * Method used to update rows in the DB. Rows are selected based - * on selectCriteria and updated using values in updateValues. - *

- * Use this method for performing an update of the kind: - *

- * WHERE some_column = some value AND could_have_another_column = - * another value AND so on. - * - * @param $selectCriteria A Criteria object containing values used in where - * clause. - * @param $updateValues A Criteria object containing values used in set - * clause. - * @param PropelPDO $con The PropelPDO connection object to use. - * @return int The number of rows affected by last update statement. For most - * uses there is only one update statement executed, so this number - * will correspond to the number of rows affected by the call to this - * method. Note that the return value does require that this information - * is returned (supported) by the Propel db driver. - * @throws PropelException - */ - public static function doUpdate(Criteria $selectCriteria, Criteria $updateValues, PropelPDO $con) { - - $db = Propel::getDB($selectCriteria->getDbName()); - $dbMap = Propel::getDatabaseMap($selectCriteria->getDbName()); - - // Get list of required tables, containing all columns - $tablesColumns = $selectCriteria->getTablesColumns(); - if (empty($tablesColumns)) { - $tablesColumns = array($selectCriteria->getPrimaryTableName() => array()); - } - - // we also need the columns for the update SQL - $updateTablesColumns = $updateValues->getTablesColumns(); - - $affectedRows = 0; // initialize this in case the next loop has no iterations. - - foreach ($tablesColumns as $tableName => $columns) { - - $whereClause = array(); - $params = array(); - $stmt = null; - try { - $sql = 'UPDATE '; - if ($queryComment = $selectCriteria->getComment()) { - $sql .= '/* ' . $queryComment . ' */ '; - } - // is it a table alias? - if ($tableName2 = $selectCriteria->getTableForAlias($tableName)) { - $udpateTable = $tableName2 . ' ' . $tableName; - $tableName = $tableName2; - } else { - $udpateTable = $tableName; - } - if ($db->useQuoteIdentifier()) { - $sql .= $db->quoteIdentifierTable($udpateTable); - } else { - $sql .= $udpateTable; - } - $sql .= " SET "; - $p = 1; - foreach ($updateTablesColumns[$tableName] as $col) { - $updateColumnName = substr($col, strrpos($col, '.') + 1); - // add identifiers for the actual database? - if ($db->useQuoteIdentifier()) { - $updateColumnName = $db->quoteIdentifier($updateColumnName); - } - if ($updateValues->getComparison($col) != Criteria::CUSTOM_EQUAL) { - $sql .= $updateColumnName . '=:p'.$p++.', '; - } else { - $param = $updateValues->get($col); - $sql .= $updateColumnName . ' = '; - if (is_array($param)) { - if (isset($param['raw'])) { - $raw = $param['raw']; - $rawcvt = ''; - // parse the $params['raw'] for ? chars - for($r=0,$len=strlen($raw); $r < $len; $r++) { - if ($raw{$r} == '?') { - $rawcvt .= ':p'.$p++; - } else { - $rawcvt .= $raw{$r}; - } - } - $sql .= $rawcvt . ', '; - } else { - $sql .= ':p'.$p++.', '; - } - if (isset($param['value'])) { - $updateValues->put($col, $param['value']); - } - } else { - $updateValues->remove($col); - $sql .= $param . ', '; - } - } - } - - $params = self::buildParams($updateTablesColumns[$tableName], $updateValues); - - $sql = substr($sql, 0, -2); - if (!empty($columns)) { - foreach ($columns as $colName) { - $sb = ""; - $selectCriteria->getCriterion($colName)->appendPsTo($sb, $params); - $whereClause[] = $sb; - } - $sql .= " WHERE " . implode(" AND ", $whereClause); - } - - $stmt = $con->prepare($sql); - - // Replace ':p?' with the actual values - self::populateStmtValues($stmt, $params, $dbMap, $db); - - $stmt->execute(); - - $affectedRows = $stmt->rowCount(); - - $stmt = null; // close - - } catch (Exception $e) { - if ($stmt) $stmt = null; // close - Propel::log($e->getMessage(), Propel::LOG_ERR); - throw new PropelException(sprintf('Unable to execute UPDATE statement [%s]', $sql), $e); - } - - } // foreach table in the criteria - - return $affectedRows; - } - - /** - * Executes query build by createSelectSql() and returns the resultset statement. - * - * @param Criteria $criteria A Criteria. - * @param PropelPDO $con A PropelPDO connection to use. - * @return PDOStatement The resultset. - * @throws PropelException - * @see createSelectSql() - */ - public static function doSelect(Criteria $criteria, PropelPDO $con = null) - { - $dbMap = Propel::getDatabaseMap($criteria->getDbName()); - $db = Propel::getDB($criteria->getDbName()); - $stmt = null; - - if ($con === null) { - $con = Propel::getConnection($criteria->getDbName(), Propel::CONNECTION_READ); - } - - if ($criteria->isUseTransaction()) { - $con->beginTransaction(); - } - - try { - - $params = array(); - $sql = self::createSelectSql($criteria, $params); - - $stmt = $con->prepare($sql); - - self::populateStmtValues($stmt, $params, $dbMap, $db); - - $stmt->execute(); - - if ($criteria->isUseTransaction()) { - $con->commit(); - } - - } catch (Exception $e) { - if ($stmt) { - $stmt = null; // close - } - if ($criteria->isUseTransaction()) { - $con->rollBack(); - } - Propel::log($e->getMessage(), Propel::LOG_ERR); - throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); - } - - return $stmt; - } - - /** - * Executes a COUNT query using either a simple SQL rewrite or, for more complex queries, a - * sub-select of the SQL created by createSelectSql() and returns the statement. - * - * @param Criteria $criteria A Criteria. - * @param PropelPDO $con A PropelPDO connection to use. - * @return PDOStatement The resultset statement. - * @throws PropelException - * @see createSelectSql() - */ - public static function doCount(Criteria $criteria, PropelPDO $con = null) - { - $dbMap = Propel::getDatabaseMap($criteria->getDbName()); - $db = Propel::getDB($criteria->getDbName()); - - if ($con === null) { - $con = Propel::getConnection($criteria->getDbName(), Propel::CONNECTION_READ); - } - - $stmt = null; - - if ($criteria->isUseTransaction()) { - $con->beginTransaction(); - } - - $needsComplexCount = $criteria->getGroupByColumns() - || $criteria->getOffset() - || $criteria->getLimit() - || $criteria->getHaving() - || in_array(Criteria::DISTINCT, $criteria->getSelectModifiers()); - - try { - - $params = array(); - - if ($needsComplexCount) { - if (self::needsSelectAliases($criteria)) { - if ($criteria->getHaving()) { - throw new PropelException('Propel cannot create a COUNT query when using HAVING and duplicate column names in the SELECT part'); - } - self::turnSelectColumnsToAliases($criteria); - } - $selectSql = self::createSelectSql($criteria, $params); - $sql = 'SELECT COUNT(*) FROM (' . $selectSql . ') propelmatch4cnt'; - } else { - // Replace SELECT columns with COUNT(*) - $criteria->clearSelectColumns()->addSelectColumn('COUNT(*)'); - $sql = self::createSelectSql($criteria, $params); - } - - $stmt = $con->prepare($sql); - self::populateStmtValues($stmt, $params, $dbMap, $db); - $stmt->execute(); - - if ($criteria->isUseTransaction()) { - $con->commit(); - } - - } catch (Exception $e) { - if ($stmt !== null) { - $stmt = null; - } - if ($criteria->isUseTransaction()) { - $con->rollBack(); - } - Propel::log($e->getMessage(), Propel::LOG_ERR); - throw new PropelException(sprintf('Unable to execute COUNT statement [%s]', $sql), $e); - } - - return $stmt; - } - - /** - * Populates values in a prepared statement. - * - * This method is designed to work with the createSelectSql() method, which creates - * both the SELECT SQL statement and populates a passed-in array of parameter - * values that should be substituted. - * - * - * $params = array(); - * $sql = BasePeer::createSelectSql($criteria, $params); - * BasePeer::populateStmtValues($stmt, $params, Propel::getDatabaseMap($critera->getDbName()), Propel::getDB($criteria->getDbName())); - * - * - * @param PDOStatement $stmt - * @param array $params array('column' => ..., 'table' => ..., 'value' => ...) - * @param DatabaseMap $dbMap - * @return int The number of params replaced. - * @see createSelectSql() - * @see doSelect() - */ - public static function populateStmtValues(PDOStatement $stmt, array $params, DatabaseMap $dbMap, DBAdapter $db) - { - $i = 1; - foreach ($params as $param) { - $tableName = $param['table']; - $columnName = $param['column']; - $value = $param['value']; - - if (null === $value) { - - $stmt->bindValue(':p'.$i++, null, PDO::PARAM_NULL); - - } elseif (null !== $tableName) { - - $cMap = $dbMap->getTable($tableName)->getColumn($columnName); - $type = $cMap->getType(); - $pdoType = $cMap->getPdoType(); - - // FIXME - This is a temporary hack to get around apparent bugs w/ PDO+MYSQL - // See http://pecl.php.net/bugs/bug.php?id=9919 - if ($pdoType == PDO::PARAM_BOOL && $db instanceof DBMySQL) { - $value = (int) $value; - $pdoType = PDO::PARAM_INT; - } elseif (is_numeric($value) && $cMap->isEpochTemporal()) { // it's a timestamp that needs to be formatted - if ($type == PropelColumnTypes::TIMESTAMP) { - $value = date($db->getTimestampFormatter(), $value); - } else if ($type == PropelColumnTypes::DATE) { - $value = date($db->getDateFormatter(), $value); - } else if ($type == PropelColumnTypes::TIME) { - $value = date($db->getTimeFormatter(), $value); - } - } elseif ($value instanceof DateTime && $cMap->isTemporal()) { // it's a timestamp that needs to be formatted - if ($type == PropelColumnTypes::TIMESTAMP || $type == PropelColumnTypes::BU_TIMESTAMP) { - $value = $value->format($db->getTimestampFormatter()); - } else if ($type == PropelColumnTypes::DATE || $type == PropelColumnTypes::BU_DATE) { - $value = $value->format($db->getDateFormatter()); - } else if ($type == PropelColumnTypes::TIME) { - $value = $value->format($db->getTimeFormatter()); - } - } elseif (is_resource($value) && $cMap->isLob()) { - // we always need to make sure that the stream is rewound, otherwise nothing will - // get written to database. - rewind($value); - } - - $stmt->bindValue(':p'.$i++, $value, $pdoType); - } else { - $stmt->bindValue(':p'.$i++, $value); - } - } // foreach - } - - /** - * Applies any validators that were defined in the schema to the specified columns. - * - * @param string $dbName The name of the database - * @param string $tableName The name of the table - * @param array $columns Array of column names as key and column values as value. - */ - public static function doValidate($dbName, $tableName, $columns) - { - $dbMap = Propel::getDatabaseMap($dbName); - $tableMap = $dbMap->getTable($tableName); - $failureMap = array(); // map of ValidationFailed objects - foreach ($columns as $colName => $colValue) { - if ($tableMap->containsColumn($colName)) { - $col = $tableMap->getColumn($colName); - foreach ($col->getValidators() as $validatorMap) { - $validator = BasePeer::getValidator($validatorMap->getClass()); - if ($validator && ($col->isNotNull() || $colValue !== null) && $validator->isValid($validatorMap, $colValue) === false) { - if (!isset($failureMap[$colName])) { // for now we do one ValidationFailed per column, not per rule - $failureMap[$colName] = new ValidationFailed($colName, $validatorMap->getMessage(), $validator); - } - } - } - } - } - return (!empty($failureMap) ? $failureMap : true); - } - - /** - * Helper method which returns the primary key contained - * in the given Criteria object. - * - * @param Criteria $criteria A Criteria. - * @return ColumnMap If the Criteria object contains a primary - * key, or null if it doesn't. - * @throws PropelException - */ - private static function getPrimaryKey(Criteria $criteria) - { - // Assume all the keys are for the same table. - $keys = $criteria->keys(); - $key = $keys[0]; - $table = $criteria->getTableName($key); - - $pk = null; - - if (!empty($table)) { - - $dbMap = Propel::getDatabaseMap($criteria->getDbName()); - - $pks = $dbMap->getTable($table)->getPrimaryKeys(); - if (!empty($pks)) { - $pk = array_shift($pks); - } - } - return $pk; - } - - /** - * Checks whether the Criteria needs to use column aliasing - * This is implemented in a service class rather than in Criteria itself - * in order to avoid doing the tests when it's not necessary (e.g. for SELECTs) - */ - public static function needsSelectAliases(Criteria $criteria) - { - $columnNames = array(); - foreach ($criteria->getSelectColumns() as $fullyQualifiedColumnName) { - if ($pos = strrpos($fullyQualifiedColumnName, '.')) { - $columnName = substr($fullyQualifiedColumnName, $pos); - if (isset($columnNames[$columnName])) { - // more than one column with the same name, so aliasing is required - return true; - } - $columnNames[$columnName] = true; - } - } - return false; - } - - /** - * Ensures uniqueness of select column names by turning them all into aliases - * This is necessary for queries on more than one table when the tables share a column name - * @see http://propel.phpdb.org/trac/ticket/795 - * - * @param Criteria $criteria - * - * @return Criteria The input, with Select columns replaced by aliases - */ - public static function turnSelectColumnsToAliases(Criteria $criteria) - { - $selectColumns = $criteria->getSelectColumns(); - // clearSelectColumns also clears the aliases, so get them too - $asColumns = $criteria->getAsColumns(); - $criteria->clearSelectColumns(); - $columnAliases = $asColumns; - // add the select columns back - foreach ($selectColumns as $clause) { - // Generate a unique alias - $baseAlias = preg_replace('/\W/', '_', $clause); - $alias = $baseAlias; - // If it already exists, add a unique suffix - $i = 0; - while (isset($columnAliases[$alias])) { - $i++; - $alias = $baseAlias . '_' . $i; - } - // Add it as an alias - $criteria->addAsColumn($alias, $clause); - $columnAliases[$alias] = $clause; - } - // Add the aliases back, don't modify them - foreach ($asColumns as $name => $clause) { - $criteria->addAsColumn($name, $clause); - } - - return $criteria; - } - - /** - * Method to create an SQL query based on values in a Criteria. - * - * This method creates only prepared statement SQL (using ? where values - * will go). The second parameter ($params) stores the values that need - * to be set before the statement is executed. The reason we do it this way - * is to let the PDO layer handle all escaping & value formatting. - * - * @param Criteria $criteria Criteria for the SELECT query. - * @param array &$params Parameters that are to be replaced in prepared statement. - * @return string - * @throws PropelException Trouble creating the query string. - */ - public static function createSelectSql(Criteria $criteria, &$params) - { - $db = Propel::getDB($criteria->getDbName()); - $dbMap = Propel::getDatabaseMap($criteria->getDbName()); - - $fromClause = array(); - $joinClause = array(); - $joinTables = array(); - $whereClause = array(); - $orderByClause = array(); - - $orderBy = $criteria->getOrderByColumns(); - $groupBy = $criteria->getGroupByColumns(); - $ignoreCase = $criteria->isIgnoreCase(); - - // get the first part of the SQL statement, the SELECT part - $selectSql = self::createSelectSqlPart($criteria, $fromClause); - - // add the criteria to WHERE clause - // this will also add the table names to the FROM clause if they are not already - // included via a LEFT JOIN - foreach ($criteria->keys() as $key) { - - $criterion = $criteria->getCriterion($key); - $table = null; - foreach ($criterion->getAttachedCriterion() as $attachedCriterion) { - $tableName = $attachedCriterion->getTable(); - - $table = $criteria->getTableForAlias($tableName); - if ($table !== null) { - $fromClause[] = $table . ' ' . $tableName; - } else { - $fromClause[] = $tableName; - $table = $tableName; - } - - if (($criteria->isIgnoreCase() || $attachedCriterion->isIgnoreCase()) - && $dbMap->getTable($table)->getColumn($attachedCriterion->getColumn())->isText()) { - $attachedCriterion->setIgnoreCase(true); - } - } - - $criterion->setDB($db); - - $sb = ''; - $criterion->appendPsTo($sb, $params); - $whereClause[] = $sb; - } - - // Handle joins - // joins with a null join type will be added to the FROM clause and the condition added to the WHERE clause. - // joins of a specified type: the LEFT side will be added to the fromClause and the RIGHT to the joinClause - foreach ($criteria->getJoins() as $join) { - // The join might have been established using an alias name - $leftTable = $join->getLeftTableName(); - if ($realTable = $criteria->getTableForAlias($leftTable)) { - $leftTableForFrom = $realTable . ' ' . $leftTable; - $leftTable = $realTable; - } else { - $leftTableForFrom = $leftTable; - } - - $rightTable = $join->getRightTableName(); - if ($realTable = $criteria->getTableForAlias($rightTable)) { - $rightTableForFrom = $realTable . ' ' . $rightTable; - $rightTable = $realTable; - } else { - $rightTableForFrom = $rightTable; - } - - // determine if casing is relevant. - if ($ignoreCase = $criteria->isIgnoreCase()) { - $leftColType = $dbMap->getTable($leftTable)->getColumn($join->getLeftColumnName())->getType(); - $rightColType = $dbMap->getTable($rightTable)->getColumn($join->getRightColumnName())->getType(); - $ignoreCase = ($leftColType == 'string' || $rightColType == 'string'); - } - - // build the condition - $condition = ''; - foreach ($join->getConditions() as $index => $conditionDesc) { - if ($ignoreCase) { - $condition .= $db->ignoreCase($conditionDesc['left']) . $conditionDesc['operator'] . $db->ignoreCase($conditionDesc['right']); - } else { - $condition .= implode($conditionDesc); - } - if ($index + 1 < $join->countConditions()) { - $condition .= ' AND '; - } - } - - // add 'em to the queues.. - if ($joinType = $join->getJoinType()) { - // real join - if (!$fromClause) { - $fromClause[] = $leftTableForFrom; - } - $joinTables[] = $rightTableForFrom; - $joinClause[] = $join->getJoinType() . ' ' . $rightTableForFrom . " ON ($condition)"; - } else { - // implicit join, translates to a where - $fromClause[] = $leftTableForFrom; - $fromClause[] = $rightTableForFrom; - $whereClause[] = $condition; - } - } - - // Unique from clause elements - $fromClause = array_unique($fromClause); - $fromClause = array_diff($fromClause, array('')); - - // tables should not exist in both the from and join clauses - if ($joinTables && $fromClause) { - foreach ($fromClause as $fi => $ftable) { - if (in_array($ftable, $joinTables)) { - unset($fromClause[$fi]); - } - } - } - - // Add the GROUP BY columns - $groupByClause = $groupBy; - - $having = $criteria->getHaving(); - $havingString = null; - if ($having !== null) { - $sb = ''; - $having->appendPsTo($sb, $params); - $havingString = $sb; - } - - if (!empty($orderBy)) { - - foreach ($orderBy as $orderByColumn) { - - // Add function expression as-is. - - if (strpos($orderByColumn, '(') !== false) { - $orderByClause[] = $orderByColumn; - continue; - } - - // Split orderByColumn (i.e. "table.column DESC") - - $dotPos = strrpos($orderByColumn, '.'); - - if ($dotPos !== false) { - $tableName = substr($orderByColumn, 0, $dotPos); - $columnName = substr($orderByColumn, $dotPos + 1); - } else { - $tableName = ''; - $columnName = $orderByColumn; - } - - $spacePos = strpos($columnName, ' '); - - if ($spacePos !== false) { - $direction = substr($columnName, $spacePos); - $columnName = substr($columnName, 0, $spacePos); - } else { - $direction = ''; - } - - $tableAlias = $tableName; - if ($aliasTableName = $criteria->getTableForAlias($tableName)) { - $tableName = $aliasTableName; - } - - $columnAlias = $columnName; - if ($asColumnName = $criteria->getColumnForAs($columnName)) { - $columnName = $asColumnName; - } - - $column = $tableName ? $dbMap->getTable($tableName)->getColumn($columnName) : null; - - if ($criteria->isIgnoreCase() && $column && $column->isText()) { - $ignoreCaseColumn = $db->ignoreCaseInOrderBy("$tableAlias.$columnAlias"); - $orderByClause[] = $ignoreCaseColumn . $direction; - $selectSql .= ', ' . $ignoreCaseColumn; - } else { - $orderByClause[] = $orderByColumn; - } - } - } - - if (empty($fromClause) && $criteria->getPrimaryTableName()) { - $fromClause[] = $criteria->getPrimaryTableName(); - } - - // from / join tables quoted if it is necessary - if ($db->useQuoteIdentifier()) { - $fromClause = array_map(array($db, 'quoteIdentifierTable'), $fromClause); - $joinClause = $joinClause ? $joinClause : array_map(array($db, 'quoteIdentifierTable'), $joinClause); - } - - // build from-clause - $from = ''; - if (!empty($joinClause) && count($fromClause) > 1) { - $from .= implode(" CROSS JOIN ", $fromClause); - } else { - $from .= implode(", ", $fromClause); - } - - $from .= $joinClause ? ' ' . implode(' ', $joinClause) : ''; - - // Build the SQL from the arrays we compiled - $sql = $selectSql - ." FROM " . $from - .($whereClause ? " WHERE ".implode(" AND ", $whereClause) : "") - .($groupByClause ? " GROUP BY ".implode(",", $groupByClause) : "") - .($havingString ? " HAVING ".$havingString : "") - .($orderByClause ? " ORDER BY ".implode(",", $orderByClause) : ""); - - // APPLY OFFSET & LIMIT to the query. - if ($criteria->getLimit() || $criteria->getOffset()) { - $db->applyLimit($sql, $criteria->getOffset(), $criteria->getLimit(), $criteria); - } - - return $sql; - } - - /** - * Builds the SELECT part of a SQL statement based on a Criteria - * taking into account select columns and 'as' columns (i.e. columns aliases) - */ - public static function createSelectSqlPart(Criteria $criteria, &$fromClause, $aliasAll = false) - { - $selectClause = array(); - - if ($aliasAll) { - self::turnSelectColumnsToAliases($criteria); - // no select columns after that, they are all aliases - } else { - foreach ($criteria->getSelectColumns() as $columnName) { - - // expect every column to be of "table.column" formation - // it could be a function: e.g. MAX(books.price) - - $tableName = null; - - $selectClause[] = $columnName; // the full column name: e.g. MAX(books.price) - - $parenPos = strrpos($columnName, '('); - $dotPos = strrpos($columnName, '.', ($parenPos !== false ? $parenPos : 0)); - - if ($dotPos !== false) { - if ($parenPos === false) { // table.column - $tableName = substr($columnName, 0, $dotPos); - } else { // FUNC(table.column) - // functions may contain qualifiers so only take the last - // word as the table name. - // COUNT(DISTINCT books.price) - $lastSpace = strpos($tableName, ' '); - if ($lastSpace !== false) { // COUNT(DISTINCT books.price) - $tableName = substr($tableName, $lastSpace + 1); - } else { - $tableName = substr($columnName, $parenPos + 1, $dotPos - ($parenPos + 1)); - } - } - // is it a table alias? - $tableName2 = $criteria->getTableForAlias($tableName); - if ($tableName2 !== null) { - $fromClause[] = $tableName2 . ' ' . $tableName; - } else { - $fromClause[] = $tableName; - } - } // if $dotPost !== false - } - } - - // set the aliases - foreach ($criteria->getAsColumns() as $alias => $col) { - $selectClause[] = $col . ' AS ' . $alias; - } - - $selectModifiers = $criteria->getSelectModifiers(); - $queryComment = $criteria->getComment(); - - // Build the SQL from the arrays we compiled - $sql = "SELECT " - . ($queryComment ? '/* ' . $queryComment . ' */ ' : '') - . ($selectModifiers ? (implode(' ', $selectModifiers) . ' ') : '') - . implode(", ", $selectClause); - - return $sql; - } - - /** - * Builds a params array, like the kind populated by Criterion::appendPsTo(). - * This is useful for building an array even when it is not using the appendPsTo() method. - * @param array $columns - * @param Criteria $values - * @return array params array('column' => ..., 'table' => ..., 'value' => ...) - */ - private static function buildParams($columns, Criteria $values) - { - $params = array(); - foreach ($columns as $key) { - if ($values->containsKey($key)) { - $crit = $values->getCriterion($key); - $params[] = array('column' => $crit->getColumn(), 'table' => $crit->getTable(), 'value' => $crit->getValue()); - } - } - return $params; - } - - /** - * This function searches for the given validator $name under propel/validator/$name.php, - * imports and caches it. - * - * @param string $classname The dot-path name of class (e.g. myapp.propel.MyValidator) - * @return Validator object or null if not able to instantiate validator class (and error will be logged in this case) - */ - public static function getValidator($classname) - { - try { - $v = isset(self::$validatorMap[$classname]) ? self::$validatorMap[$classname] : null; - if ($v === null) { - $cls = Propel::importClass($classname); - $v = new $cls(); - self::$validatorMap[$classname] = $v; - } - return $v; - } catch (Exception $e) { - Propel::log("BasePeer::getValidator(): failed trying to instantiate " . $classname . ": ".$e->getMessage(), Propel::LOG_ERR); - } - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/util/NodePeer.php b/airtime_mvc/library/propel/runtime/lib/util/NodePeer.php deleted file mode 100644 index d40b7642aa..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/util/NodePeer.php +++ /dev/null @@ -1,369 +0,0 @@ - (Propel) - * @version $Revision: 1612 $ - * @package propel.runtime.util - */ -interface NodePeer -{ - /** - * Creates the supplied node as the root node. - * - * @param object $node Propel object for model - * @return object Inserted propel object for model - */ - public static function createRoot(NodeObject $node); - - /** - * Returns the root node for a given scope id - * - * @param int $scopeId Scope id to determine which root node to return - * @param PropelPDO $con Connection to use. - * @return object Propel object for root node - */ - public static function retrieveRoot($scopeId = 1, PropelPDO $con = null); - - /** - * Inserts $child as first child of destination node $parent - * - * @param object $child Propel object for child node - * @param object $parent Propel object for parent node - * @param PropelPDO $con Connection to use. - * @return void - */ - public static function insertAsFirstChildOf(NodeObject $child, NodeObject $parent, PropelPDO $con = null); - - /** - * Inserts $child as last child of destination node $parent - * - * @param object $child Propel object for child node - * @param object $parent Propel object for parent node - * @param PropelPDO $con Connection to use. - * @return void - */ - public static function insertAsLastChildOf(NodeObject $child, NodeObject $parent, PropelPDO $con = null); - - /** - * Inserts $sibling as previous sibling to destination node $node - * - * @param object $node Propel object for destination node - * @param object $sibling Propel object for source node - * @param PropelPDO $con Connection to use. - * @return void - */ - public static function insertAsPrevSiblingOf(NodeObject $node, NodeObject $sibling, PropelPDO $con = null); - - /** - * Inserts $sibling as next sibling to destination node $node - * - * @param object $node Propel object for destination node - * @param object $sibling Propel object for source node - * @param PropelPDO $con Connection to use. - * @return void - */ - public static function insertAsNextSiblingOf(NodeObject $node, NodeObject $sibling, PropelPDO $con = null); - - /** - * Inserts $parent as parent of given $node. - * - * @param object $parent Propel object for given parent node - * @param object $node Propel object for given destination node - * @param PropelPDO $con Connection to use. - * @return void - * @throws Exception When trying to insert node as parent of a root node - */ - public static function insertAsParentOf(NodeObject $parent, NodeObject $node, PropelPDO $con = null); - - /** - * Inserts $node as root node - * - * @param object $node Propel object as root node - * @param PropelPDO $con Connection to use. - * @return void - */ - public static function insertRoot(NodeObject $node, PropelPDO $con = null); - - /** - * Delete root node - * - * @param int $scopeId Scope id to determine which root node to delete - * @param PropelPDO $con Connection to use. - * @return boolean Deletion status - */ - public static function deleteRoot($scopeId = 1, PropelPDO $con = null); - - /** - * Delete $dest node - * - * @param object $dest Propel object node to delete - * @param PropelPDO $con Connection to use. - * @return boolean Deletion status - */ - public static function deleteNode(NodeObject $dest, PropelPDO $con = null); - - /** - * Moves $child to be first child of $parent - * - * @param object $parent Propel object for parent node - * @param object $child Propel object for child node - * @param PropelPDO $con Connection to use. - * @return void - */ - public static function moveToFirstChildOf(NodeObject $parent, NodeObject $child, PropelPDO $con = null); - - /** - * Moves $node to be last child of $dest - * - * @param object $dest Propel object for destination node - * @param object $node Propel object for source node - * @param PropelPDO $con Connection to use. - * @return void - */ - public static function moveToLastChildOf(NodeObject $dest, NodeObject $node, PropelPDO $con = null); - - /** - * Moves $node to be prev sibling to $dest - * - * @param object $dest Propel object for destination node - * @param object $node Propel object for source node - * @param PropelPDO $con Connection to use. - * @return void - */ - public static function moveToPrevSiblingOf(NodeObject $dest, NodeObject $node, PropelPDO $con = null); - - /** - * Moves $node to be next sibling to $dest - * - * @param object $dest Propel object for destination node - * @param object $node Propel object for source node - * @param PropelPDO $con Connection to use. - * @return void - */ - public static function moveToNextSiblingOf(NodeObject $dest, NodeObject $node, PropelPDO $con = null); - - /** - * Gets first child for the given node if it exists - * - * @param object $node Propel object for src node - * @param PropelPDO $con Connection to use. - * @return mixed Propel object if exists else false - */ - public static function retrieveFirstChild(NodeObject $node, PropelPDO $con = null); - - /** - * Gets last child for the given node if it exists - * - * @param object $node Propel object for src node - * @param PropelPDO $con Connection to use. - * @return mixed Propel object if exists else false - */ - public static function retrieveLastChild(NodeObject $node, PropelPDO $con = null); - - /** - * Gets prev sibling for the given node if it exists - * - * @param object $node Propel object for src node - * @param PropelPDO $con Connection to use. - * @return mixed Propel object if exists else false - */ - public static function retrievePrevSibling(NodeObject $node, PropelPDO $con = null); - - /** - * Gets next sibling for the given node if it exists - * - * @param object $node Propel object for src node - * @param PropelPDO $con Connection to use. - * @return mixed Propel object if exists else false - */ - public static function retrieveNextSibling(NodeObject $node, PropelPDO $con = null); - - /** - * Retrieves the entire tree from root - * - * @param int $scopeId Scope id to determine which scope tree to return - * @param PropelPDO $con Connection to use. - */ - public static function retrieveTree($scopeId = 1, PropelPDO $con = null); - - /** - * Retrieves the entire tree from parent $node - * - * @param PropelPDO $con Connection to use. - */ - public static function retrieveBranch(NodeObject $node, PropelPDO $con = null); - - /** - * Gets direct children for the node - * - * @param object $node Propel object for parent node - * @param PropelPDO $con Connection to use. - */ - public static function retrieveChildren(NodeObject $node, PropelPDO $con = null); - - /** - * Gets all descendants for the node - * - * @param object $node Propel object for parent node - * @param PropelPDO $con Connection to use. - */ - public static function retrieveDescendants(NodeObject $node, PropelPDO $con = null); - - /** - * Gets all siblings for the node - * - * @param object $node Propel object for src node - * @param PropelPDO $con Connection to use. - */ - public static function retrieveSiblings(NodeObject $node, PropelPDO $con = null); - - /** - * Gets ancestor for the given node if it exists - * - * @param object $node Propel object for src node - * @param PropelPDO $con Connection to use. - * @return mixed Propel object if exists else false - */ - public static function retrieveParent(NodeObject $node, PropelPDO $con = null); - - /** - * Gets level for the given node - * - * @param object $node Propel object for src node - * @param PropelPDO $con Connection to use. - * @return int Level for the given node - */ - public static function getLevel(NodeObject $node, PropelPDO $con = null); - - /** - * Gets number of direct children for given node - * - * @param object $node Propel object for src node - * @param PropelPDO $con Connection to use. - * @return int Level for the given node - */ - public static function getNumberOfChildren(NodeObject $node, PropelPDO $con = null); - - /** - * Gets number of descendants for given node - * - * @param object $node Propel object for src node - * @param PropelPDO $con Connection to use. - * @return int Level for the given node - */ - public static function getNumberOfDescendants(NodeObject $node, PropelPDO $con = null); - - /** - * Returns path to a specific node as an array, useful to create breadcrumbs - * - * @param object $node Propel object of node to create path to - * @param PropelPDO $con Connection to use. - * @return array Array in order of heirarchy - */ - public static function getPath(NodeObject $node, PropelPDO $con = null); - - /** - * Tests if node is valid - * - * @param object $node Propel object for src node - * @return bool - */ - public static function isValid(NodeObject $node = null); - - /** - * Tests if node is a root - * - * @param object $node Propel object for src node - * @return bool - */ - public static function isRoot(NodeObject $node); - - /** - * Tests if node is a leaf - * - * @param object $node Propel object for src node - * @return bool - */ - public static function isLeaf(NodeObject $node); - - /** - * Tests if $child is a child of $parent - * - * @param object $child Propel object for node - * @param object $parent Propel object for node - * @return bool - */ - public static function isChildOf(NodeObject $child, NodeObject $parent); - - /** - * Tests if $node1 is equal to $node2 - * - * @param object $node1 Propel object for node - * @param object $node2 Propel object for node - * @return bool - */ - public static function isEqualTo(NodeObject $node1, NodeObject $node2); - - /** - * Tests if $node has an ancestor - * - * @param object $node Propel object for node - * @param PropelPDO $con Connection to use. - * @return bool - */ - public static function hasParent(NodeObject $node, PropelPDO $con = null); - - /** - * Tests if $node has prev sibling - * - * @param object $node Propel object for node - * @param PropelPDO $con Connection to use. - * @return bool - */ - public static function hasPrevSibling(NodeObject $node, PropelPDO $con = null); - - /** - * Tests if $node has next sibling - * - * @param object $node Propel object for node - * @param PropelPDO $con Connection to use. - * @return bool - */ - public static function hasNextSibling(NodeObject $node, PropelPDO $con = null); - - /** - * Tests if $node has children - * - * @param object $node Propel object for node - * @return bool - */ - public static function hasChildren(NodeObject $node); - - /** - * Deletes $node and all of its descendants - * - * @param object $node Propel object for source node - * @param PropelPDO $con Connection to use. - */ - public static function deleteDescendants(NodeObject $node, PropelPDO $con = null); - - /** - * Returns a node given its primary key or the node itself - * - * @param int/object $node Primary key/instance of required node - * @param PropelPDO $con Connection to use. - * @return object Propel object for model - */ - public static function getNode($node, PropelPDO $con = null); - -} // NodePeer diff --git a/airtime_mvc/library/propel/runtime/lib/util/PropelAutoloader.php b/airtime_mvc/library/propel/runtime/lib/util/PropelAutoloader.php deleted file mode 100644 index 1bba65cec9..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/util/PropelAutoloader.php +++ /dev/null @@ -1,113 +0,0 @@ - $classPath - */ - public function addClassPaths($classMap) - { - $this->classes = array_merge($this->classes, $classMap); - } - - /** - * Sets the path for a particular class. - * - * @param string $class A PHP class name - * @param string $path A path (absolute or relative to the include path) - */ - public function addClassPath($class, $path) - { - $this->classes[$class] = $path; - } - - /** - * Returns the path where a particular class can be found. - * - * @param string $class A PHP class name - * - * @return string|null A path (absolute or relative to the include path) - */ - public function getClassPath($class) - { - return isset($this->classes[$class]) ? $this->classes[$class] : null; - } - - /** - * Handles autoloading of classes that have been registered in this instance - * - * @param string $class A class name. - * - * @return boolean Returns true if the class has been loaded - */ - public function autoload($class) - { - if (isset($this->classes[$class])) { - require $this->classes[$class]; - return true; - } - return false; - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/util/PropelColumnTypes.php b/airtime_mvc/library/propel/runtime/lib/util/PropelColumnTypes.php deleted file mode 100644 index e23c6f3506..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/util/PropelColumnTypes.php +++ /dev/null @@ -1,88 +0,0 @@ - (Propel) - * @version $Revision: 1612 $ - * @package propel.runtime.util - */ -class PropelColumnTypes -{ - - const - CHAR = "CHAR", - VARCHAR = "VARCHAR", - LONGVARCHAR = "LONGVARCHAR", - CLOB = "CLOB", - CLOB_EMU = "CLOB_EMU", - NUMERIC = "NUMERIC", - DECIMAL = "DECIMAL", - TINYINT = "TINYINT", - SMALLINT = "SMALLINT", - INTEGER = "INTEGER", - BIGINT = "BIGINT", - REAL = "REAL", - FLOAT = "FLOAT", - DOUBLE = "DOUBLE", - BINARY = "BINARY", - VARBINARY = "VARBINARY", - LONGVARBINARY = "LONGVARBINARY", - BLOB = "BLOB", - DATE = "DATE", - TIME = "TIME", - TIMESTAMP = "TIMESTAMP", - BU_DATE = "BU_DATE", - BU_TIMESTAMP = "BU_TIMESTAMP", - BOOLEAN = "BOOLEAN", - BOOLEAN_EMU = "BOOLEAN_EMU"; - - private static $propelToPdoMap = array( - self::CHAR => PDO::PARAM_STR, - self::VARCHAR => PDO::PARAM_STR, - self::LONGVARCHAR => PDO::PARAM_STR, - self::CLOB => PDO::PARAM_LOB, - self::CLOB_EMU => PDO::PARAM_STR, - self::NUMERIC => PDO::PARAM_STR, - self::DECIMAL => PDO::PARAM_STR, - self::TINYINT => PDO::PARAM_INT, - self::SMALLINT => PDO::PARAM_INT, - self::INTEGER => PDO::PARAM_INT, - self::BIGINT => PDO::PARAM_STR, - self::REAL => PDO::PARAM_STR, - self::FLOAT => PDO::PARAM_STR, - self::DOUBLE => PDO::PARAM_STR, - self::BINARY => PDO::PARAM_STR, - self::VARBINARY => PDO::PARAM_STR, - self::LONGVARBINARY => PDO::PARAM_STR, - self::BLOB => PDO::PARAM_LOB, - self::DATE => PDO::PARAM_STR, - self::TIME => PDO::PARAM_STR, - self::TIMESTAMP => PDO::PARAM_STR, - self::BU_DATE => PDO::PARAM_STR, - self::BU_TIMESTAMP => PDO::PARAM_STR, - self::BOOLEAN => PDO::PARAM_BOOL, - self::BOOLEAN_EMU => PDO::PARAM_INT, - ); - - /** - * Resturns the PDO type (PDO::PARAM_* constant) value for the Propel type provided. - * @param string $propelType - * @return int - */ - public static function getPdoType($propelType) - { - return self::$propelToPdoMap[$propelType]; - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/util/PropelConditionalProxy.php b/airtime_mvc/library/propel/runtime/lib/util/PropelConditionalProxy.php deleted file mode 100644 index e153760fed..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/util/PropelConditionalProxy.php +++ /dev/null @@ -1,71 +0,0 @@ - - * $c->_if(true) // returns $c - * ->doStuff() // executed - * ->_else() // returns a PropelConditionalProxy instance - * ->doOtherStuff() // not executed - * ->_endif(); // returns $c - * $c->_if(false) // returns a PropelConditionalProxy instance - * ->doStuff() // not executed - * ->_else() // returns $c - * ->doOtherStuff() // executed - * ->_endif(); // returns $c - * @see Criteria - * - * @author Francois Zaninotto - * @version $Revision: 1612 $ - * @package propel.runtime.util - */ -class PropelConditionalProxy -{ - protected $mainObject; - - public function __construct($mainObject) - { - $this->mainObject = $mainObject; - } - - public function _if() - { - throw new PropelException('_if() statements cannot be nested'); - } - - public function _elseif($cond) - { - if($cond) { - return $this->mainObject; - } else { - return $this; - } - } - - public function _else() - { - return $this->mainObject; - } - - public function _endif() - { - return $this->mainObject; - } - - public function __call($name, $arguments) - { - return $this; - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/runtime/lib/util/PropelDateTime.php b/airtime_mvc/library/propel/runtime/lib/util/PropelDateTime.php deleted file mode 100644 index cfa1276dd1..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/util/PropelDateTime.php +++ /dev/null @@ -1,76 +0,0 @@ -dateString = $this->format('Y-m-d H:i:s'); - $this->tzString = $this->getTimeZone()->getName(); - return array('dateString', 'tzString'); - } - - /** - * PHP "magic" function called when object is restored from serialized state. - * Calls DateTime constructor with previously stored string value of date. - */ - function __wakeup() - { - parent::__construct($this->dateString, new DateTimeZone($this->tzString)); - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/util/PropelModelPager.php b/airtime_mvc/library/propel/runtime/lib/util/PropelModelPager.php deleted file mode 100644 index 5236ebbd56..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/util/PropelModelPager.php +++ /dev/null @@ -1,349 +0,0 @@ - - * @author François Zaninotto - * @version $Revision: 1665 $ - * @package propel.runtime.query - */ -class PropelModelPager implements IteratorAggregate, Countable -{ - protected - $query = null, - $page = 1, - $maxPerPage = 10, - $lastPage = 1, - $nbResults = 0, - $objects = null, - $parameters = array(), - $currentMaxLink = 1, - $parameterHolder = null, - $maxRecordLimit = false, - $results = null, - $resultsCounter = 0; - - public function __construct(Criteria $query, $maxPerPage = 10) - { - $this->setQuery($query); - $this->setMaxPerPage($maxPerPage); - } - - public function setQuery(Criteria $query) - { - $this->query = $query; - } - - public function getQuery() - { - return $this->query; - } - - public function init() - { - $hasMaxRecordLimit = ($this->getMaxRecordLimit() !== false); - $maxRecordLimit = $this->getMaxRecordLimit(); - - $qForCount = clone $this->getQuery(); - $count = $qForCount - ->offset(0) - ->limit(0) - ->count(); - - $this->setNbResults($hasMaxRecordLimit ? min($count, $maxRecordLimit) : $count); - - $q = $this->getQuery() - ->offset(0) - ->limit(0); - - if (($this->getPage() == 0 || $this->getMaxPerPage() == 0)) { - $this->setLastPage(0); - } else { - $this->setLastPage(ceil($this->getNbResults() / $this->getMaxPerPage())); - - $offset = ($this->getPage() - 1) * $this->getMaxPerPage(); - $q->offset($offset); - - if ($hasMaxRecordLimit) { - $maxRecordLimit = $maxRecordLimit - $offset; - if ($maxRecordLimit > $this->getMaxPerPage()) { - $q->limit($this->getMaxPerPage()); - } else { - $q->limit($maxRecordLimit); - } - } else { - $q->limit($this->getMaxPerPage()); - } - } - } - - /** - * Get the collection of results in the page - * - * @return PropelObjectCollection A collection of results - */ - public function getResults() - { - if (null === $this->results) { - $this->results = $this->getQuery() - ->setFormatter(ModelCriteria::FORMAT_OBJECT) - ->find(); - } - return $this->results; - } - - public function getCurrentMaxLink() - { - return $this->currentMaxLink; - } - - public function getMaxRecordLimit() - { - return $this->maxRecordLimit; - } - - public function setMaxRecordLimit($limit) - { - $this->maxRecordLimit = $limit; - } - - public function getLinks($nb_links = 5) - { - $links = array(); - $tmp = $this->page - floor($nb_links / 2); - $check = $this->lastPage - $nb_links + 1; - $limit = ($check > 0) ? $check : 1; - $begin = ($tmp > 0) ? (($tmp > $limit) ? $limit : $tmp) : 1; - - $i = (int) $begin; - while (($i < $begin + $nb_links) && ($i <= $this->lastPage)) { - $links[] = $i++; - } - - $this->currentMaxLink = count($links) ? $links[count($links) - 1] : 1; - - return $links; - } - - /** - * Test whether the number of results exceeds the max number of results per page - * - * @return boolean true if the pager displays only a subset of the results - */ - public function haveToPaginate() - { - return (($this->getMaxPerPage() != 0) && ($this->getNbResults() > $this->getMaxPerPage())); - } - - /** - * Get the index of the first element in the page - * Returns 1 on the first page, $maxPerPage +1 on the second page, etc - * - * @return int - */ - public function getFirstIndex() - { - if ($this->page == 0) { - return 1; - } else { - return ($this->page - 1) * $this->maxPerPage + 1; - } - } - - /** - * Get the index of the last element in the page - * Always less than or eaqual to $maxPerPage - * - * @return int - */ - public function getLastIndex() - { - if ($this->page == 0) { - return $this->nbResults; - } else { - if (($this->page * $this->maxPerPage) >= $this->nbResults) { - return $this->nbResults; - } else { - return ($this->page * $this->maxPerPage); - } - } - } - - /** - * Get the total number of results of the query - * This can be greater than $maxPerPage - * - * @return int - */ - public function getNbResults() - { - return $this->nbResults; - } - - /** - * Set the total number of results of the query - * - * @param int $nb - */ - protected function setNbResults($nb) - { - $this->nbResults = $nb; - } - - /** - * Check whether the current page is the first page - * - * @return boolean true if the current page is the first page - */ - public function isFirstPage() - { - return $this->getPage() == $this->getFirstPage(); - } - - /** - * Get the number of the first page - * - * @return int Always 1 - */ - public function getFirstPage() - { - return 1; - } - - /** - * Check whether the current page is the last page - * - * @return boolean true if the current page is the last page - */ - public function isLastPage() - { - return $this->getPage() == $this->getLastPage(); - } - - /** - * Get the number of the last page - * - * @return int - */ - public function getLastPage() - { - return $this->lastPage; - } - - /** - * Set the number of the first page - * - * @param int $page - */ - protected function setLastPage($page) - { - $this->lastPage = $page; - if ($this->getPage() > $page) { - $this->setPage($page); - } - } - - /** - * Get the number of the current page - * - * @return int - */ - public function getPage() - { - return $this->page; - } - - /** - * Set the number of the current page - * - * @param int $page - */ - public function setPage($page) - { - $this->page = intval($page); - if ($this->page <= 0) { - // set first page, which depends on a maximum set - $this->page = $this->getMaxPerPage() ? 1 : 0; - } - } - - /** - * Get the number of the next page - * - * @return int - */ - public function getNextPage() - { - return min($this->getPage() + 1, $this->getLastPage()); - } - - /** - * Get the number of the previous page - * - * @return int - */ - public function getPreviousPage() - { - return max($this->getPage() - 1, $this->getFirstPage()); - } - - /** - * Get the maximum number results per page - * - * @return int - */ - public function getMaxPerPage() - { - return $this->maxPerPage; - } - - /** - * Set the maximum number results per page - * - * @param int $max - */ - public function setMaxPerPage($max) - { - if ($max > 0) { - $this->maxPerPage = $max; - if ($this->page == 0) { - $this->page = 1; - } - } else if ($max == 0) { - $this->maxPerPage = 0; - $this->page = 0; - } else { - $this->maxPerPage = 1; - if ($this->page == 0) { - $this->page = 1; - } - } - } - - public function getIterator() - { - return $this->getResults()->getIterator(); - } - - /** - * Returns the total number of results. - * - * @see Countable - * @return int - */ - public function count() - { - return $this->getNbResults(); - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/util/PropelPager.php b/airtime_mvc/library/propel/runtime/lib/util/PropelPager.php deleted file mode 100644 index 8fefdbc0ae..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/util/PropelPager.php +++ /dev/null @@ -1,597 +0,0 @@ -addDescendingOrderByColumn(poemPeer::SID); - * - * // with join - * $pager = new PropelPager($c, 'poemPeer', 'doSelectJoinPoemUsers', 1, 50); - * - * // without Join - * - * $pager = new PropelPager($c, 'poemPeer', 'doSelect', 1, 50); - * - * Some template: - * - *

- * Total Pages: getTotalPages()?> Total Records: getTotalRecordCount()?> - *

- * - * - * - * - * - * - * - * - * - * - *
- * getFirstPage):?> - * | - * - * - * getPrev()):?> - * Previous| - * - * - * getPrevLinks() as $link):?> - * | - * - * getPage()?> - * getNextLinks() as $link):?> - * | - * - * - * getNext()):?> - * Last| - * - * - * getLastPage()):?> - * | - * - *
- * - * - * - * - * - * - * - * getResult() as $poem):?> - * - * - * - * - * - * - * - *
TitleAuteurDatecomments
getTitle()?>getPoemUsers()->getUname()?>getTime()?>getComments()?>
- * - * - * @author Rob Halff - * @author Niklas Närhinen - * @version $Revision: 1612 $ - * @copyright Copyright (c) 2004 Rob Halff: LGPL - See LICENCE - * @package propel.runtime.util - */ -class PropelPager implements Countable, Iterator -{ - - private $recordCount; - private $pages; - private $peerClass; - private $peerSelectMethod; - private $peerCountMethod; - private $criteria; - private $countCriteria; - private $page; - private $rs = null; - - //Iterator vars - private $currentKey = 0; - - /** @var int Start row (offset) */ - protected $start = 0; - - /** @var int Max rows to return (0 means all) */ - protected $max = 0; - - /** - * Create a new Propel Pager. - * @param Criteria $c - * @param string $peerClass The name of the static Peer class. - * @param string $peerSelectMethod The name of the static method for selecting content from the Peer class. - * @param int $page The current page (1-based). - * @param int $rowsPerPage The number of rows that should be displayed per page. - */ - public function __construct($c = null, $peerClass = null, $peerSelectMethod = null, $page = 1, $rowsPerPage = 25) - { - if (!isset($c)) { - $c = new Criteria(); - } - $this->setCriteria($c); - $this->setPeerClass($peerClass); - $this->setPeerSelectMethod($peerSelectMethod); - $this->guessPeerCountMethod(); - $this->setPage($page); - $this->setRowsPerPage($rowsPerPage); - } - - /** - * Set the criteria for this pager. - * @param Criteria $c - * @return void - */ - public function setCriteria(Criteria $c) - { - $this->criteria = $c; - } - - /** - * Return the Criteria object for this pager. - * @return Criteria - */ - public function getCriteria() - { - return $this->criteria; - } - - /** - * Set the Peer Classname - * - * @param string $class - * @return void - */ - public function setPeerClass($class) - { - $this->peerClass = $class; - } - - /** - * Return the Peer Classname. - * @return string - */ - public function getPeerClass() - { - return $this->peerClass; - } - - /** - * Set the Peer select method. - * This exists for legacy support, please use setPeerSelectMethod(). - * @param string $method The name of the static method to call on the Peer class. - * @return void - * @see setPeerSelectMethod() - * @deprecated - */ - public function setPeerMethod($method) - { - $this->setPeerSelectMethod($method); - } - - /** - * Return the Peer select method. - * This exists for legacy support, please use getPeerSelectMethod(). - * @return string - * @see getPeerSelectMethod() - * @deprecated - */ - public function getPeerMethod() - { - return $this->getPeerSelectMethod(); - } - - /** - * Set the Peer select method. - * - * @param string $method The name of the static method to call on the Peer class. - * @return void - */ - public function setPeerSelectMethod($method) - { - $this->peerSelectMethod = $method; - } - - /** - * Return the Peer select method. - * @return string - */ - public function getPeerSelectMethod() - { - return $this->peerSelectMethod; - } - - /** - * Sets the Count method. - * This is set based on the Peer method, for example if Peer method is doSelectJoin*() then the - * count method will be doCountJoin*(). - * @param string $method The name of the static method to call on the Peer class. - */ - public function setPeerCountMethod($method) - { - $this->peerCountMethod = $method; - } - - /** - * Return the Peer count method. - */ - public function getPeerCountMethod() - { - return $this->peerCountMethod; - } - - /** - * Guesses the Peer count method based on the select method. - */ - private function guessPeerCountMethod() - { - $selectMethod = $this->getPeerSelectMethod(); - if ($selectMethod == 'doSelect') { - $countMethod = 'doCount'; - } elseif ( ($pos = stripos($selectMethod, 'doSelectJoin')) === 0) { - $countMethod = 'doCount' . substr($selectMethod, strlen('doSelect')); - } else { - // we will fall back to doCount() if we don't understand the join - // method; however, it probably won't be accurate. Maybe triggering an error would - // be appropriate ... - $countMethod = 'doCount'; - } - $this->setPeerCountMethod($countMethod); - } - - /** - * Get the paged resultset - * - * @return mixed $rs - */ - public function getResult() - { - if (!isset($this->rs)) { - $this->doRs(); - } - - return $this->rs; - } - - /** - * Get the paged resultset - * - * Main method which creates a paged result set based on the criteria - * and the requested peer select method. - * - */ - private function doRs() - { - $this->criteria->setOffset($this->start); - $this->criteria->setLimit($this->max); - $this->rs = call_user_func(array($this->getPeerClass(), $this->getPeerSelectMethod()), $this->criteria); - } - - /** - * Get the first page - * - * For now I can only think of returning 1 always. - * It should probably return 0 if there are no pages - * - * @return int 1 - */ - public function getFirstPage() - { - return '1'; - } - - /** - * Convenience method to indicate whether current page is the first page. - * - * @return boolean - */ - public function atFirstPage() - { - return $this->getPage() == $this->getFirstPage(); - } - - /** - * Get last page - * - * @return int $lastPage - */ - public function getLastPage() - { - $totalPages = $this->getTotalPages(); - if ($totalPages == 0) { - return 1; - } else { - return $totalPages; - } - } - - /** - * Convenience method to indicate whether current page is the last page. - * - * @return boolean - */ - public function atLastPage() - { - return $this->getPage() == $this->getLastPage(); - } - - /** - * get total pages - * - * @return int $this->pages - */ - public function getTotalPages() { - if (!isset($this->pages)) { - $recordCount = $this->getTotalRecordCount(); - if ($this->max > 0) { - $this->pages = ceil($recordCount/$this->max); - } else { - $this->pages = 0; - } - } - return $this->pages; - } - - /** - * get an array of previous id's - * - * @param int $range - * @return array $links - */ - public function getPrevLinks($range = 5) - { - $total = $this->getTotalPages(); - $start = $this->getPage() - 1; - $end = $this->getPage() - $range; - $first = $this->getFirstPage(); - $links = array(); - for ($i=$start; $i>$end; $i--) { - if ($i < $first) { - break; - } - $links[] = $i; - } - - return array_reverse($links); - } - - /** - * get an array of next id's - * - * @param int $range - * @return array $links - */ - public function getNextLinks($range = 5) - { - $total = $this->getTotalPages(); - $start = $this->getPage() + 1; - $end = $this->getPage() + $range; - $last = $this->getLastPage(); - $links = array(); - for ($i=$start; $i<$end; $i++) { - if ($i > $last) { - break; - } - $links[] = $i; - } - - return $links; - } - - /** - * Returns whether last page is complete - * - * @return bool Last page complete or not - */ - public function isLastPageComplete() - { - return !($this->getTotalRecordCount() % $this->max); - } - - /** - * get previous id - * - * @return mixed $prev - */ - public function getPrev() { - if ($this->getPage() != $this->getFirstPage()) { - $prev = $this->getPage() - 1; - } else { - $prev = false; - } - return $prev; - } - - /** - * get next id - * - * @return mixed $next - */ - public function getNext() { - if ($this->getPage() != $this->getLastPage()) { - $next = $this->getPage() + 1; - } else { - $next = false; - } - return $next; - } - - /** - * Set the current page number (First page is 1). - * @param int $page - * @return void - */ - public function setPage($page) - { - $this->page = $page; - // (re-)calculate start rec - $this->calculateStart(); - } - - /** - * Get current page. - * @return int - */ - public function getPage() - { - return $this->page; - } - - /** - * Set the number of rows per page. - * @param int $r - */ - public function setRowsPerPage($r) - { - $this->max = $r; - // (re-)calculate start rec - $this->calculateStart(); - } - - /** - * Get number of rows per page. - * @return int - */ - public function getRowsPerPage() - { - return $this->max; - } - - /** - * Calculate startrow / max rows based on current page and rows-per-page. - * @return void - */ - private function calculateStart() - { - $this->start = ( ($this->page - 1) * $this->max ); - } - - /** - * Gets the total number of (un-LIMITed) records. - * - * This method will perform a query that executes un-LIMITed query. - * - * @return int Total number of records - disregarding page, maxrows, etc. - */ - public function getTotalRecordCount() - { - - if (!isset($this->rs)) { - $this->doRs(); - } - - if (empty($this->recordCount)) { - $this->countCriteria = clone $this->criteria; - $this->countCriteria->setLimit(0); - $this->countCriteria->setOffset(0); - - $this->recordCount = call_user_func( - array( - $this->getPeerClass(), - $this->getPeerCountMethod() - ), - $this->countCriteria - ); - - } - - return $this->recordCount; - - } - - /** - * Sets the start row or offset. - * @param int $v - */ - public function setStart($v) - { - $this->start = $v; - } - - /** - * Sets max rows (limit). - * @param int $v - * @return void - */ - public function setMax($v) - { - $this->max = $v; - } - - /** - * Returns the count of the current page's records - * @return int - */ - public function count() - { - return count($this->getResult()); - } - - /** - * Returns the current element of the iterator - * @return mixed - */ - public function current() - { - if (!isset($this->rs)) { - $this->doRs(); - } - return $this->rs[$this->currentKey]; - } - - /** - * Returns the current key of the iterator - * @return int - */ - public function key() - { - return $this->currentKey; - } - - /** - * Advances the iterator to the next element - * @return void - */ - public function next() - { - $this->currentKey++; - } - - /** - * Resets the iterator to the first element - * @return void - */ - public function rewind() - { - $this->currentKey = 0; - } - - /** - * Checks if the current key exists in the container - * @return boolean - */ - public function valid() - { - if (!isset($this->rs)) { - $this->doRs(); - } - return in_array($this->currentKey, array_keys($this->rs)); - } - -} diff --git a/airtime_mvc/library/propel/runtime/lib/validator/BasicValidator.php b/airtime_mvc/library/propel/runtime/lib/validator/BasicValidator.php deleted file mode 100644 index 5733e0bf8e..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/validator/BasicValidator.php +++ /dev/null @@ -1,35 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.runtime.validator - */ -interface BasicValidator -{ - - /** - * Determine whether a value meets the criteria specified - * - * @param ValidatorMap $map A column map object for the column to be validated. - * @param string $str a String to be tested - * - * @return mixed TRUE if valid, error message otherwise - */ - public function isValid(ValidatorMap $map, $str); - -} diff --git a/airtime_mvc/library/propel/runtime/lib/validator/MatchValidator.php b/airtime_mvc/library/propel/runtime/lib/validator/MatchValidator.php deleted file mode 100644 index a2890e9b58..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/validator/MatchValidator.php +++ /dev/null @@ -1,68 +0,0 @@ - - * - * - * - * - * - * - * - * @author Michael Aichler - * @author Hans Lellelid - * @version $Revision: 1612 $ - * @package propel.runtime.validator - */ -class MatchValidator implements BasicValidator -{ - /** - * Prepares the regular expression entered in the XML - * for use with preg_match(). - * @param string $exp - * @return string Prepared regular expession. - */ - private function prepareRegexp($exp) - { - // remove surrounding '/' marks so that they don't get escaped in next step - if ($exp{0} !== '/' || $exp{strlen($exp)-1} !== '/' ) { - $exp = '/' . $exp . '/'; - } - - // if they did not escape / chars; we do that for them - $exp = preg_replace('/([^\\\])\/([^$])/', '$1\/$2', $exp); - - return $exp; - } - - /** - * Whether the passed string matches regular expression. - */ - public function isValid (ValidatorMap $map, $str) - { - return (preg_match($this->prepareRegexp($map->getValue()), $str) != 0); - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/validator/MaxLengthValidator.php b/airtime_mvc/library/propel/runtime/lib/validator/MaxLengthValidator.php deleted file mode 100644 index 286c82c7e8..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/validator/MaxLengthValidator.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * - * - * - * - * - * - * @author Michael Aichler - * @version $Revision: 1612 $ - * @package propel.runtime.validator - */ -class MaxLengthValidator implements BasicValidator -{ - - public function isValid (ValidatorMap $map, $str) - { - return strlen($str) <= intval($map->getValue()); - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/validator/MaxValueValidator.php b/airtime_mvc/library/propel/runtime/lib/validator/MaxValueValidator.php deleted file mode 100644 index b712940431..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/validator/MaxValueValidator.php +++ /dev/null @@ -1,43 +0,0 @@ - - * - * - * - * - * - * - * - * - * @author Michael Aichler - * @version $Revision: 1612 $ - * @package propel.runtime.validator - */ -class MaxValueValidator implements BasicValidator -{ - - /** - * @see BasicValidator::isValid() - */ - public function isValid (ValidatorMap $map, $value) - { - if (is_null($value) == false && is_numeric($value) == true) { - return intval($value) <= intval($map->getValue()); - } - - return false; - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/validator/MinLengthValidator.php b/airtime_mvc/library/propel/runtime/lib/validator/MinLengthValidator.php deleted file mode 100644 index e5c0345961..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/validator/MinLengthValidator.php +++ /dev/null @@ -1,36 +0,0 @@ - - * - * - * - * - * - * - * - * @author Michael Aichler - * @version $Revision: 1612 $ - * @package propel.runtime.validator - */ -class MinLengthValidator implements BasicValidator -{ - - /** - * @see BasicValidator::isValid() - */ - public function isValid (ValidatorMap $map, $str) - { - return strlen($str) >= intval($map->getValue()); - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/validator/MinValueValidator.php b/airtime_mvc/library/propel/runtime/lib/validator/MinValueValidator.php deleted file mode 100644 index d58894663b..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/validator/MinValueValidator.php +++ /dev/null @@ -1,43 +0,0 @@ - - * - * - * - * - * - * - * - * - * @author Michael Aichler - * @version $Revision: 1612 $ - * @package propel.runtime.validator - */ -class MinValueValidator implements BasicValidator -{ - - /** - * @see BasicValidator::isValid() - */ - public function isValid (ValidatorMap $map, $value) - { - if (is_null($value) == false && is_numeric($value)) { - return intval($value) >= intval($map->getValue()); - } - - return false; - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/validator/NotMatchValidator.php b/airtime_mvc/library/propel/runtime/lib/validator/NotMatchValidator.php deleted file mode 100644 index f0f72998d9..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/validator/NotMatchValidator.php +++ /dev/null @@ -1,66 +0,0 @@ - - * - * - * - * - * - * - * - * @author Michael Aichler - * @author Hans Lellelid - * @version $Revision: 1612 $ - * @package propel.runtime.validator - */ -class NotMatchValidator implements BasicValidator -{ - /** - * Prepares the regular expression entered in the XML - * for use with preg_match(). - * @param string $exp - * @return string Prepared regular expession. - */ - private function prepareRegexp($exp) - { - // remove surrounding '/' marks so that they don't get escaped in next step - if ($exp{0} !== '/' || $exp{strlen($exp)-1} !== '/' ) { - $exp = '/' . $exp . '/'; - } - - // if they did not escape / chars; we do that for them - $exp = preg_replace('/([^\\\])\/([^$])/', '$1\/$2', $exp); - - return $exp; - } - - /** - * Whether the passed string matches regular expression. - */ - public function isValid (ValidatorMap $map, $str) - { - return (preg_match($this->prepareRegexp($map->getValue()), $str) == 0); - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/validator/RequiredValidator.php b/airtime_mvc/library/propel/runtime/lib/validator/RequiredValidator.php deleted file mode 100644 index 57ab63a6fd..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/validator/RequiredValidator.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * - * - * - * - * - * - * @author Michael Aichler - * @version $Revision: 1612 $ - * @package propel.runtime.validator - */ -class RequiredValidator implements BasicValidator -{ - - /** - * @see BasicValidator::isValid() - */ - public function isValid (ValidatorMap $map, $str) - { - return ($str !== null && $str !== ""); - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/validator/TypeValidator.php b/airtime_mvc/library/propel/runtime/lib/validator/TypeValidator.php deleted file mode 100644 index 141760f0a9..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/validator/TypeValidator.php +++ /dev/null @@ -1,68 +0,0 @@ - - * - * - * - * - * - * - * - * @author Hans Lellelid - * @version $Revision: 1612 $ - * @package propel.runtime.validator - */ -class TypeValidator implements BasicValidator -{ - public function isValid(ValidatorMap $map, $value) - { - switch ($map->getValue()) { - case 'array': - return is_array($value); - break; - case 'bool': - case 'boolean': - return is_bool($value); - break; - case 'float': - return is_float($value); - break; - case 'int': - case 'integer': - return is_int($value); - break; - case 'numeric': - return is_numeric($value); - break; - case 'object': - return is_object($value); - break; - case 'resource': - return is_resource($value); - break; - case 'scalar': - return is_scalar($value); - break; - case 'string': - return is_string($value); - break; - case 'function': - return function_exists($value); - break; - default: - throw new PropelException('Unkonwn type ' . $map->getValue()); - break; - } - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/validator/UniqueValidator.php b/airtime_mvc/library/propel/runtime/lib/validator/UniqueValidator.php deleted file mode 100644 index 49cc91d34b..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/validator/UniqueValidator.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * - * - * - * - * - * - * @author Michael Aichler - * @version $Revision: 1612 $ - * @package propel.runtime.validator - */ -class UniqueValidator implements BasicValidator -{ - - /** - * @see BasicValidator::isValid() - */ - public function isValid (ValidatorMap $map, $str) - { - $column = $map->getColumn(); - - $c = new Criteria(); - $c->add($column->getFullyQualifiedName(), $str, Criteria::EQUAL); - - $table = $column->getTable()->getClassName(); - - $clazz = $table . 'Peer'; - $count = call_user_func(array($clazz, 'doCount'), $c); - - $isValid = ($count === 0); - - return $isValid; - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/validator/ValidValuesValidator.php b/airtime_mvc/library/propel/runtime/lib/validator/ValidValuesValidator.php deleted file mode 100644 index d680108e98..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/validator/ValidValuesValidator.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * - * - * - * - * - * - * @author Michael Aichler - * @version $Revision: 1612 $ - * @package propel.runtime.validator - */ -class ValidValuesValidator implements BasicValidator -{ - - public function isValid (ValidatorMap $map, $str) - { - return in_array($str, preg_split("/[|,]/", $map->getValue())); - } -} diff --git a/airtime_mvc/library/propel/runtime/lib/validator/ValidationFailed.php b/airtime_mvc/library/propel/runtime/lib/validator/ValidationFailed.php deleted file mode 100644 index ed34720742..0000000000 --- a/airtime_mvc/library/propel/runtime/lib/validator/ValidationFailed.php +++ /dev/null @@ -1,115 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.runtime.validator - * @see BasePeer::doValidate() - */ -class ValidationFailed { - - /** Column name in tablename.COLUMN_NAME format */ - private $colname; - - /** Message to display to user. */ - private $message; - - /** Validator object that caused this to fail. */ - private $validator; - - /** - * Construct a new ValidationFailed object. - * @param string $colname Column name. - * @param string $message Message to display to user. - * @param object $validator The Validator that caused this column to fail. - */ - public function __construct($colname, $message, $validator = null) - { - $this->colname = $colname; - $this->message = $message; - $this->validator = $validator; - } - - /** - * Set the column name. - * @param string $v - */ - public function setColumn($v) - { - $this->colname = $v; - } - - /** - * Gets the column name. - * @return string Qualified column name (tablename.COLUMN_NAME) - */ - public function getColumn() - { - return $this->colname; - } - - /** - * Set the message for the validation failure. - * @param string $v - */ - public function setMessage($v) - { - $this->message = $v; - } - - /** - * Gets the message for the validation failure. - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Set the validator object that caused this to fail. - * @param object $v - */ - public function setValidator($v) - { - $this->validator = $v; - } - - /** - * Gets the validator object that caused this to fail. - * @return object - */ - public function getValidator() - { - return $this->validator; - } - - /** - * "magic" method to get string represenation of object. - * Maybe someday PHP5 will support the invoking this method automatically - * on (string) cast. Until then it's pretty useless. - * @return string - */ - public function __toString() - { - return $this->getMessage(); - } - -} diff --git a/airtime_mvc/library/propel/runtime/pear/BuildPropelPEARPackageTask.php b/airtime_mvc/library/propel/runtime/pear/BuildPropelPEARPackageTask.php deleted file mode 100644 index 023820fc4f..0000000000 --- a/airtime_mvc/library/propel/runtime/pear/BuildPropelPEARPackageTask.php +++ /dev/null @@ -1,205 +0,0 @@ - - * @package phing.tasks.ext - * @version $Revision: 1681 $ - */ -class BuildPropelPEARPackageTask extends MatchingTask -{ - - /** Base directory for reading files. */ - private $dir; - - private $version; - private $state = 'stable'; - private $notes; - - private $filesets = array(); - - /** Package file */ - private $packageFile; - - public function init() - { - include_once 'PEAR/PackageFileManager2.php'; - if (!class_exists('PEAR_PackageFileManager2')) { - throw new BuildException("You must have installed PEAR_PackageFileManager2 (PEAR_PackageFileManager >= 1.6.0) in order to create a PEAR package.xml file."); - } - } - - private function setOptions($pkg) - { - $options['baseinstalldir'] = 'propel'; - $options['packagedirectory'] = $this->dir->getAbsolutePath(); - - if (empty($this->filesets)) { - throw new BuildException("You must use a tag to specify the files to include in the package.xml"); - } - - $options['filelistgenerator'] = 'Fileset'; - - // Some PHING-specific options needed by our Fileset reader - $options['phing_project'] = $this->getProject(); - $options['phing_filesets'] = $this->filesets; - - if ($this->packageFile !== null) { - // create one w/ full path - $f = new PhingFile($this->packageFile->getAbsolutePath()); - $options['packagefile'] = $f->getName(); - // must end in trailing slash - $options['outputdirectory'] = $f->getParent() . DIRECTORY_SEPARATOR; - $this->log("Creating package file: " . $f->getPath(), Project::MSG_INFO); - } else { - $this->log("Creating [default] package.xml file in base directory.", Project::MSG_INFO); - } - - $pkg->setOptions($options); - - } - - /** - * Main entry point. - * @return void - */ - public function main() - { - if ($this->dir === null) { - throw new BuildException("You must specify the \"dir\" attribute for PEAR package task."); - } - - if ($this->version === null) { - throw new BuildException("You must specify the \"version\" attribute for PEAR package task."); - } - - $package = new PEAR_PackageFileManager2(); - - $this->setOptions($package); - - // the hard-coded stuff - $package->setPackage('propel_runtime'); - $package->setSummary('Runtime component of the Propel PHP object persistence layer'); - $package->setDescription('Propel is an object persistence layer for PHP5 based on Apache Torque. This package provides the runtime engine that transparently handles object persistence and retrieval.'); - $package->setChannel('pear.propelorm.org'); - $package->setPackageType('php'); - - $package->setReleaseVersion($this->version); - $package->setAPIVersion($this->version); - - $package->setReleaseStability($this->state); - $package->setAPIStability($this->state); - - $package->setNotes($this->notes); - - $package->setLicense('MIT', 'http://www.opensource.org/licenses/mit-license.php'); - - // Add package maintainers - $package->addMaintainer('lead', 'hans', 'Hans Lellelid', 'hans@xmpl.org'); - $package->addMaintainer('lead', 'david', 'David Zuelke', 'dz@bitxtender.com'); - $package->addMaintainer('lead', 'francois', 'Francois Zaninotto', 'fzaninotto@[gmail].com'); - - // "core" dependencies - $package->setPhpDep('5.2.0'); - $package->setPearinstallerDep('1.4.0'); - - // "package" dependencies - $package->addExtensionDep('required', 'pdo'); - $package->addExtensionDep('required', 'spl'); - - // now we run this weird generateContents() method that apparently - // is necessary before we can add replacements ... ? - $package->generateContents(); - - $e = $package->writePackageFile(); - - if (PEAR::isError($e)) { - throw new BuildException("Unable to write package file.", new Exception($e->getMessage())); - } - - } - - /** - * Used by the PEAR_PackageFileManager_PhingFileSet lister. - * @return array FileSet[] - */ - public function getFileSets() - { - return $this->filesets; - } - - // ------------------------------- - // Set properties from XML - // ------------------------------- - - /** - * Nested creator, creates a FileSet for this task - * - * @return FileSet The created fileset object - */ - function createFileSet() - { - $num = array_push($this->filesets, new FileSet()); - return $this->filesets[$num-1]; - } - - /** - * Set the version we are building. - * @param string $v - * @return void - */ - public function setVersion($v) - { - $this->version = $v; - } - - /** - * Set the state we are building. - * @param string $v - * @return void - */ - public function setState($v) - { - $this->state = $v; - } - - /** - * Sets release notes field. - * @param string $v - * @return void - */ - public function setNotes($v) - { - $this->notes = $v; - } - /** - * Sets "dir" property from XML. - * @param PhingFile $f - * @return void - */ - public function setDir(PhingFile $f) - { - $this->dir = $f; - } - - /** - * Sets the file to use for generated package.xml - */ - public function setDestFile(PhingFile $f) - { - $this->packageFile = $f; - } - -} diff --git a/airtime_mvc/library/propel/runtime/pear/build-pear-package.xml b/airtime_mvc/library/propel/runtime/pear/build-pear-package.xml deleted file mode 100644 index 31a7415305..0000000000 --- a/airtime_mvc/library/propel/runtime/pear/build-pear-package.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Propel version for package - - - - - - - - - ----------------------------- - | Creating directory layout | - ----------------------------- - - - - - - - - - - - - - - ----------------------------- - | Creating PEAR package.xml | - ----------------------------- - - - - - - - - - - - - - - - ----------------------------- - | Creating tar.gz package | - ----------------------------- - - - - - - \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/README b/airtime_mvc/library/propel/test/README deleted file mode 100644 index eb0e1934b9..0000000000 --- a/airtime_mvc/library/propel/test/README +++ /dev/null @@ -1,139 +0,0 @@ -= Running The Propel Unit Tests = - -== Background == - -Propel uses [http://www.phpunit.de PHPUnit 3.9] to test the build and runtime frameworks. - -You can find the unit test classes and support files in the [browser:branches/1.4/test/testsuite] directory. - -== Install PHPUnit == - -In order to run the tests, you must install PHPUnit, PEAR:Log, and Phing: -{{{ -> pear channel-discover pear.phpunit.de -> pear install phpunit/PHPUnit-3.3.9 -}}} - -{{{ -> pear channel-discover pear.phing.info -> pear install phing/phing-2.3.3 -}}} - -{{{ -> pear install log -}}} - -Tip: The latest release of PHPUnit (3.4) is not totally BC with the 3.3, and doesn't have a Phing adapter yet. That's why the Propel unit tests still use PHPUnit version 3.3. - -== Configure the Database to be Used in the Tests == - -You must configure both the generator and the runtime connection settings. -{{{ -// in test/fixtures/bookstore/build.properties -propel.database = mysql -propel.database.url = mysql:dbname=test -propel.mysqlTableType = InnoDB -propel.disableIdentifierQuoting=true -# For MySQL or Oracle, you also need to specify username & password -propel.database.user = myusername -propel.database.password = p@ssw0rd -}}} - -{{{ -// in test/fixtures/bookstore/runtime-conf.xml - - - mysql - - - DebugPDO - mysql:dbname=test - myusername - p@ssw0rd - - - - - - - - - - utf8 - - - -}}} - -== Build the Propel Model and Initialize the Database == - -{{{ -> cd /path/to/propel/test -> ../generator/bin/propel-gen fixtures/bookstore main -> mysqladmin create test -> ../generator/bin/propel-gen fixtures/bookstore insert-sql -}}} - -**Tip**: To run the unit tests for the namespace support in PHP 5.3, you must also build the `fixtures/namespaced` project. - -== Run the Unit Tests == - -Run all the unit tests at once using Phing: -{{{ -> cd /path/to/propel/test -> phing -f test.xml -verbose -}}} - -'''Tip''': The `-verbose` option will force the display of PHP notices, which are hidden by default. - -To run a single test, specify the classname (minus 'Test' ending) on the commandline, using the `test` property. For example to run only GeneratedObjectTest: - -{{{ -> phing -f test.xml -verbose -Dtest=GeneratedObject -}}} - -Tip: If you want to set up custom Phing properties for your unit tests, create a `test.properties` file inside the main `test/` directory. Phing will automatically try to load it if it exists. - -== How the Tests Work == - -Every method in the test classes that begins with 'test' is run as a test case by PHPUnit. All tests are run in isolation; the `setUp()` method is called at the beginning of ''each'' test and the `tearDown()` method is called at the end. - -The [browser:branches/1.4/test/tools/helpers/bookstore/BookstoreTestBase.php BookstoreTestBase] class specifies `setUp()` and `tearDown()` methods which populate and depopulate, respectively, the database. This means that every unit test is run with a cleanly populated database. To see the sample data that is populated, take a look at the [browser:branches/1.4/test/tools/helpers/bookstore/BookstoreDataPopulator.php BookstoreDataPopulator] class. You can also add data to this class, if needed by your tests; however, proceed cautiously when changing existing data in there as there may be unit tests that depend on it. More typically, you can simply create the data you need from within your test method. It will be deleted by the `tearDown()` method, so no need to clean up after yourself. - -== Writing Tests == - -If you've made a change to a template or to Propel behavior, the right thing to do is write a unit test that ensures that it works properly -- and continues to work in the future. - -Writing a unit test often means adding a method to one of the existing test classes. For example, let's test a feature in the Propel templates that supports saving of objects when only default values have been specified. Just add a `testSaveWithDefaultValues()` method to the [browser:branches/1.4/test/testsuite/generator/engine/builder/om/php5/GeneratedObjectTest.php GeneratedObjectTest] class, as follows: - -{{{ -#!php -setName('Penguin'); - // in the past this wouldn't have marked object as modified - // since 'Penguin' is the value that's already set for that attrib - $pub->save(); - - // if getId() returns the new ID, then we know save() worked. - $this->assertTrue($pub->getId() !== null, "Expect Publisher->save() to work with only default values."); -} -?> -}}} - -Run the test again using the command line to check that it passes: - -{{{ -> phing -f test.xml -Dtest=GeneratedObject -}}} - -You can also write additional unit test classes to any of the directories in `test/testsuite/` (or add new directories if needed). The Phing task will find these files automatically and run them. \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/bookstore-packaged-test.php b/airtime_mvc/library/propel/test/bookstore-packaged-test.php deleted file mode 100644 index 7455e90111..0000000000 --- a/airtime_mvc/library/propel/test/bookstore-packaged-test.php +++ /dev/null @@ -1,811 +0,0 @@ - - * @version $Revision: 1612 $ - */ - -// Setup configuration. It is expected that the bookstore-conf.php file exists in ../build/conf -// - -error_reporting(E_ALL); - -$conf_path = realpath(dirname(__FILE__) . '/../projects/bookstore-packaged/build/conf/bookstore-packaged-conf.php'); -if (!file_exists($conf_path)) { - print "Make sure that you specify properties in conf/bookstore-packaged.properties and " - ."build propel before running this script."; - exit; -} - -// Add PHP_CLASSPATH, if set -if (getenv("PHP_CLASSPATH")) { - set_include_path(getenv("PHP_CLASSPATH") . PATH_SEPARATOR . get_include_path()); -} - - // Add build/classes/ and classes/ to path -set_include_path( - realpath(dirname(__FILE__) . '/../projects/bookstore-packaged/build/classes') . PATH_SEPARATOR . - dirname(__FILE__) . '/../../runtime/classes' . PATH_SEPARATOR . - get_include_path() -); - - - // Require classes. - require_once 'propel/Propel.php'; - require_once 'author/Author.php'; - require_once 'publisher/Publisher.php'; - require_once 'book/Book.php'; - require_once 'review/Review.php'; - include_once 'media/Media.php'; - include_once 'log/BookstoreLog.php'; - include_once 'book_club_list/BookClubList.php'; - include_once 'book_club_list/BookListRel.php'; - - include_once 'Benchmark/Timer.php'; - - $timer = new Benchmark_Timer; - - $timer->start(); - - // Some utility functions - function boolTest($cond) { - if ($cond) { - return "[OK]\n"; - } else { - return "[FAILED]\n"; - } - } - - try { - // Initialize Propel - Propel::init($conf_path); - } catch (Exception $e) { - die("Error initializing propel: ". $e->__toString()); - } - -function check_tables_empty() { - try { - - print "\nChecking to see that tables are empty\n"; - print "-------------------------------------\n\n"; - - print "Ensuring that there are no records in [author] table: "; - $res = AuthorPeer::doSelect(new Criteria()); - print boolTest(empty($res)); - - print "Ensuring that there are no records in [publisher] table: "; - $res2 = PublisherPeer::doSelect(new Criteria()); - print boolTest(empty($res2)); - - print "Ensuring that there are no records in [book] table: "; - $res3 = AuthorPeer::doSelect(new Criteria()); - print boolTest(empty($res3)); - - print "Ensuring that there are no records in [review] table: "; - $res4 = ReviewPeer::doSelect(new Criteria()); - print boolTest(empty($res4)); - - print "Ensuring that there are no records in [media] table: "; - $res5 = MediaPeer::doSelect(new Criteria()); - print boolTest(empty($res5)); - - print "Ensuring that there are no records in [book_club_list] table: "; - $res6 = BookClubListPeer::doSelect(new Criteria()); - print boolTest(empty($res6)); - - print "Ensuring that there are no records in [book_x_list] table: "; - $res7 = BookListRelPeer::doSelect(new Criteria()); - print boolTest(empty($res7)); - - return (empty($res) && empty($res2) && empty($res3) && empty($res4) && empty($res5)); - - } catch (Exception $e) { - die("Error ensuring tables were empty: " . $e->__toString()); - } -} - -// Check to see if records already exist in any of the three tables. If so, display an error -// and exit. - -if (!check_tables_empty()) { - die("Tables must be empty to perform these tests."); -} - -// Add publisher records -// --------------------- - -try { - print "\nAdding some new publishers to the list\n"; - print "--------------------------------------\n\n"; - - $scholastic = new Publisher(); - $scholastic->setName("Scholastic"); - // do not save, will do later to test cascade - print "Added publisher \"Scholastic\" [not saved yet].\n"; - - $morrow = new Publisher(); - $morrow->setName("William Morrow"); - $morrow->save(); - $morrow_id = $morrow->getId(); - print "Added publisher \"William Morrow\" [id = $morrow_id].\n"; - - $penguin = new Publisher(); - $penguin->setName("Penguin"); - $penguin->save(); - $penguin_id = $penguin->getId(); - print "Added publisher \"Penguin\" [id = $penguin_id].\n"; - - $vintage = new Publisher(); - $vintage->setName("Vintage"); - $vintage->save(); - $vintage_id = $vintage->getId(); - print "Added publisher \"Vintage\" [id = $vintage_id].\n"; - -} catch (Exception $e) { - die("Error adding publisher: " . $e->__toString()); -} - -// Add author records -// ------------------ - -try { - print "\nAdding some new authors to the list\n"; - print "--------------------------------------\n\n"; - - $rowling = new Author(); - $rowling->setFirstName("J.K."); - $rowling->setLastName("Rowling"); - // no save() - print "Added author \"J.K. Rowling\" [not saved yet].\n"; - - $stephenson = new Author(); - $stephenson->setFirstName("Neal"); - $stephenson->setLastName("Stephenson"); - $stephenson->save(); - $stephenson_id = $stephenson->getId(); - print "Added author \"Neal Stephenson\" [id = $stephenson_id].\n"; - - $byron = new Author(); - $byron->setFirstName("George"); - $byron->setLastName("Byron"); - $byron->save(); - $byron_id = $byron->getId(); - print "Added author \"George Byron\" [id = $byron_id].\n"; - - - $grass = new Author(); - $grass->setFirstName("Gunter"); - $grass->setLastName("Grass"); - $grass->save(); - $grass_id = $grass->getId(); - print "Added author \"Gunter Grass\" [id = $grass_id].\n"; - -} catch (Exception $e) { - die("Error adding author: " . $e->__toString()); -} - -// Add book records -// ---------------- - -try { - - print "\nAdding some new books to the list\n"; - print "-------------------------------------\n\n"; - - $phoenix = new Book(); - $phoenix->setTitle("Harry Potter and the Order of the Phoenix"); - $phoenix->setISBN("043935806X"); - - print "Trying cascading save (Harry Potter): "; - $phoenix->setAuthor($rowling); - $phoenix->setPublisher($scholastic); - $phoenix->save(); - $phoenix_id = $phoenix->getId(); - print boolTest(true); - print "Added book \"Harry Potter and the Order of the Phoenix\" [id = $phoenix_id].\n"; - - $qs = new Book(); - $qs->setISBN("0380977427"); - $qs->setTitle("Quicksilver"); - $qs->setAuthor($stephenson); - $qs->setPublisher($morrow); - $qs->save(); - $qs_id = $qs->getId(); - print "Added book \"Quicksilver\" [id = $qs_id].\n"; - - $dj = new Book(); - $dj->setISBN("0140422161"); - $dj->setTitle("Don Juan"); - $dj->setAuthor($byron); - $dj->setPublisher($penguin); - $dj->save(); - $dj_id = $qs->getId(); - print "Added book \"Don Juan\" [id = $dj_id].\n"; - - $td = new Book(); - $td->setISBN("067972575X"); - $td->setTitle("The Tin Drum"); - $td->setAuthor($grass); - $td->setPublisher($vintage); - $td->save(); - $td_id = $td->getId(); - print "Added book \"The Tin Drum\" [id = $dj_id].\n"; - -} catch (Exception $e) { - die("Error saving book: " . $e->__toString()); -} - -// Add review records -// ------------------ - -try { - - print "\nAdding some book reviews to the list\n"; - print "------------------------------------\n\n"; - - $r1 = new Review(); - $r1->setBook($phoenix); - $r1->setReviewedBy("Washington Post"); - $r1->setRecommended(true); - $r1->setReviewDate(time()); - $r1->save(); - $r1_id = $r1->getId(); - print "Added Washington Post book review [id = $r1_id].\n"; - - $r2 = new Review(); - $r2->setBook($phoenix); - $r2->setReviewedBy("New York Times"); - $r2->setRecommended(false); - $r2->setReviewDate(time()); - $r2->save(); - $r2_id = $r2->getId(); - print "Added New York Times book review [id = $r2_id].\n"; - -} catch (Exception $e) { - die("Error saving book review: " . $e->__toString()); -} - -// Perform a "complex" search -// -------------------------- - -try { - - print "\nDoing complex search on books\n"; - print "-----------------------------\n\n"; - - $crit = new Criteria(); - $crit->add(BookPeer::TITLE, 'Harry%', Criteria::LIKE); - - print "Looking for \"Harry%\": "; - $results = BookPeer::doSelect($crit); - print boolTest(count($results) === 1); - - - $crit2 = new Criteria(); - $crit2->add(BookPeer::ISBN, array("0380977427", "0140422161"), Criteria::IN); - $results = BookPeer::doSelect($crit2); - print "Looking for ISBN IN (\"0380977427\", \"0140422161\"): "; - print boolTest(count($results) === 2); - -} catch (Exception $e) { - die("Error while performing complex query: " . $e->__toString()); -} - - -// Perform a "limit" search -// ------------------------ - -try { - - print "\nDoing LIMITed search on books\n"; - print "-----------------------------\n\n"; - - $crit = new Criteria(); - $crit->setLimit(2); - $crit->setOffset(1); - $crit->addAscendingOrderByColumn(BookPeer::TITLE); - - print "Checking to make sure correct number returned: "; - $results = BookPeer::doSelect($crit); - print boolTest(count($results) === 2); - - print "Checking to make sure correct books returned: "; - // we ordered on book title, so we expect to get - print boolTest( $results[0]->getTitle() == "Harry Potter and the Order of the Phoenix" && $results[1]->getTitle() == "Quicksilver" ); - - -} catch (Exception $e) { - die("Error while performing LIMIT query: " . $e->__toString()); -} - - - -// Perform a lookup & update! -// -------------------------- - -try { - - print "\nUpdating just-created book title\n"; - print "--------------------------------\n\n"; - - print "First finding book by PK (=$qs_id) .... "; - - try { - $qs_lookup = BookPeer::retrieveByPk($qs_id); - } catch (Exception $e) { - print "ERROR!\n"; - die("Error retrieving by pk: " . $e->__toString()); - } - - if ($qs_lookup) { - print "FOUND!\n"; - } else { - print "NOT FOUND :(\n"; - die("Couldn't find just-created book: book_id = $qs_id"); - } - - try { - $new_title = "Quicksilver (".crc32(uniqid(rand())).")"; - print "Attempting to update found object (".$qs_lookup->getTitle()." -> ".$new_title."): "; - $qs_lookup->setTitle($new_title); - $qs_lookup->save(); - print boolTest(true); - } catch (Exception $e) { - die("Error saving (updating) book: " . $e->__toString()); - } - - print "Making sure object was correctly updated: "; - $qs_lookup2 = BookPeer::retrieveByPk($qs_id); - print boolTest($qs_lookup2->getTitle() == $new_title); - -} catch (Exception $e) { - die("Error updating book: " . $e->__toString()); -} - - -// Test some basic DATE / TIME stuff -// --------------------------------- - -try { - print "\nTesting the DATE/TIME columns\n"; - print "-----------------------------\n\n"; - - // that's the control timestamp. - $control = strtotime('2004-02-29 00:00:00'); - - // should be two in the db - $r = ReviewPeer::doSelectOne(new Criteria()); - $r_id = $r->getId(); - $r->setReviewDate($control); - $r->save(); - - $r2 = ReviewPeer::retrieveByPk($r_id); - - print "Checking ability to fetch native unix timestamp: "; - print boolTest($r2->getReviewDate(null) === $control); - - print "Checking ability to use date() formatter: "; - print boolTest($r2->getReviewDate('n-j-Y') === '2-29-2004'); - - print "[FYI] Here's the strftime() formatter for current locale: " . $r2->getReviewDate('%x') . "\n"; - -} catch (Exception $e) { - die("Error test date/time: " . $e->__toString()); -} - -// Handle BLOB/CLOB Columns -// ------------------------ - -try { - print "\nTesting the BLOB/CLOB columns\n"; - print "-------------------------------\n\n"; - - $blob_path = dirname(__FILE__) . '/etc/lob/tin_drum.gif'; - $blob2_path = dirname(__FILE__) . '/etc/lob/propel.gif'; - $clob_path = dirname(__FILE__) . '/etc/lob/tin_drum.txt'; - - $m1 = new Media(); - $m1->setBook($phoenix); - $m1->setCoverImage(file_get_contents($blob_path)); - $m1->setExcerpt(file_get_contents($clob_path)); - $m1->save(); - $m1_id = $m1->getId(); - print "Added Media collection [id = $m1_id].\n"; - - print "Looking for just-created mediat by PK (=$m1_id) .... "; - - try { - $m1_lookup = MediaPeer::retrieveByPk($m1_id); - } catch (Exception $e) { - print "ERROR!\n"; - die("Error retrieving media by pk: " . $e->__toString()); - } - - if ($m1_lookup) { - print "FOUND!\n"; - } else { - print "NOT FOUND :(\n"; - die("Couldn't find just-created media item: media_id = $m1_id"); - } - - print "Making sure BLOB was correctly updated: "; - print boolTest( $m1_lookup->getCoverImage()->getContents() === file_get_contents($blob_path)); - print "Making sure CLOB was correctly updated: "; - print boolTest((string) $m1_lookup->getExcerpt()->getContents() === file_get_contents($clob_path)); - - - // now update the BLOB column and save it & check the results - - $b = $m1_lookup->getCoverImage(); - $b->setContents(file_get_contents($blob2_path)); - $m1_lookup->setCoverImage($b); - $m1_lookup->save(); - - try { - $m2_lookup = MediaPeer::retrieveByPk($m1_id); - } catch (Exception $e) { - print "ERROR!\n"; - die("Error retrieving media by pk: " . $e->__toString()); - } - - print "Making sure BLOB was correctly overwritten: "; - print boolTest($m2_lookup->getCoverImage()->getContents() === file_get_contents($blob2_path)); - -} catch (Exception $e) { - die("Error doing blob/clob updates: " . $e->__toString()); -} - -// Test Validators -// --------------- - -try { - - print "\nTesting the column validators\n"; - print "-----------------------------\n\n"; - - $bk1 = new Book(); - $bk1->setTitle("12345"); // min length is 10 - $ret = $bk1->validate(); - - print "Making sure validation failed: "; - print boolTest($ret !== true); - - print "Making sure 1 validation message was returned: "; - print boolTest(count($ret) === 1); - - print "Making sure expected validation message was returned: "; - $el = array_shift($ret); - print boolTest(stripos($el->getMessage(), "must be more than") !== false); - - print "\n(Unique validator)\n"; - - $bk2 = new Book(); - $bk2->setTitle("Don Juan"); - $ret = $bk2->validate(); - - print "Making sure validation failed: "; - print boolTest($ret !== true); - - print "Making sure 1 validation message was returned: "; - print boolTest(count($ret) === 1); - - print "Making sure expected validation message was returned: "; - $el = array_shift($ret); - print boolTest(stripos($el->getMessage(), "Book title already in database.") !== false); - - print "\n(Now trying some more complex validation.)\n"; - $auth1 = new Author(); - $auth1->setFirstName("Hans"); - // last name required; will fail - - $bk1->setAuthor($auth1); - - $rev1 = new Review(); - $rev1->setReviewDate("08/09/2001"); - // will fail: reviewed_by column required - - $bk1->addReview($rev1); - - $ret2 = $bk1->validate(); - - print "Making sure 6 validation messages were returned: "; - print boolTest(count($ret2) === 6); - - print "Making sure correct columns failed: "; - print boolTest(array_keys($ret2) === array( - AuthorPeer::LAST_NAME, - AuthorPeer::EMAIL, - AuthorPeer::AGE, - BookPeer::TITLE, - ReviewPeer::REVIEWED_BY, - ReviewPeer::STATUS - )); - - - $bk2 = new Book(); - $bk2->setTitle("12345678901"); // passes - - $auth2 = new Author(); - $auth2->setLastName("Blah"); //passes - $auth2->setEmail("some@body.com"); //passes - $auth2->setAge(50); //passes - $bk2->setAuthor($auth2); - - $rev2 = new Review(); - $rev2->setReviewedBy("Me!"); // passes - $rev2->setStatus("new"); // passes - $bk2->addReview($rev2); - - $ret3 = $bk2->validate(); - - print "Making sure complex validation can pass: "; - print boolTest($ret3 === true); - -} catch (Exception $e) { - die("Error doing validation tests: " . $e->__toString()); -} - - -// Test doCount() -// -try { - - print "\nTesting doCount() functionality\n"; - print "-------------------------------\n\n"; - - $c = new Criteria(); - $records = BookPeer::doSelect($c); - $count = BookPeer::doCount($c); - - print "Making sure correct number of results: "; - print boolTest(count($records) === $count); - -} catch (Exception $e) { - die("Error deleting book: " . $e->__toString()); -} - -// Test many-to-many relationships -// --------------- - -try { - - print "\nTesting many-to-many relationships\n"; - print "-----------------------------\n\n"; - - // init book club list 1 with 2 books - - $blc1 = new BookClubList(); - $blc1->setGroupLeader("Crazyleggs"); - $blc1->setTheme("Happiness"); - - $brel1 = new BookListRel(); - $brel1->setBook($phoenix); - - $brel2 = new BookListRel(); - $brel2->setBook($dj); - - $blc1->addBookListRel($brel1); - $blc1->addBookListRel($brel2); - - $blc1->save(); - - print "Making sure BookClubList 1 was saved: "; - print boolTest(!is_null($blc1->getId())); - - // init book club list 2 with 1 book - - $blc2 = new BookClubList(); - $blc2->setGroupLeader("John Foo"); - $blc2->setTheme("Default"); - - $brel3 = new BookListRel(); - $brel3->setBook($phoenix); - - $blc2->addBookListRel($brel3); - - $blc2->save(); - - print "Making sure BookClubList 2 was saved: "; - print boolTest(!is_null($blc2->getId())); - - // re-fetch books and lists from db to be sure that nothing is cached - - $crit = new Criteria(); - $crit->add(BookPeer::ID, $phoenix->getId()); - $phoenix = BookPeer::doSelectOne($crit); - print "Making sure book 'phoenix' has been re-fetched from db: "; - print boolTest(!empty($phoenix)); - - $crit = new Criteria(); - $crit->add(BookClubListPeer::ID, $blc1->getId()); - $blc1 = BookClubListPeer::doSelectOne($crit); - print "Making sure BookClubList 1 has been re-fetched from db: "; - print boolTest(!empty($blc1)); - - $crit = new Criteria(); - $crit->add(BookClubListPeer::ID, $blc2->getId()); - $blc2 = BookClubListPeer::doSelectOne($crit); - print "Making sure BookClubList 2 has been re-fetched from db: "; - print boolTest(!empty($blc2)); - - $relCount = $phoenix->countBookListRels(); - print "Making sure book 'phoenix' has 2 BookListRels: "; - print boolTest($relCount == 2); - - $relCount = $blc1->countBookListRels(); - print "Making sure BookClubList 1 has 2 BookListRels: "; - print boolTest($relCount == 2); - - $relCount = $blc2->countBookListRels(); - print "Making sure BookClubList 2 has 1 BookListRel: "; - print boolTest($relCount == 1); - - -} catch (Exception $e) { - die("Error doing many-to-many relationships tests: " . $e->__toString()); -} - -// Test multiple databases -// --------------- - -try { - - print "\nTesting multiple databases\n"; - print "-----------------------------\n\n"; - - $line = new BookstoreLog(); - $line->setIdent('bookstore-packaged-test'); - $line->setTime(time()); - $line->setMessage('We are testing to write something to the log database ...'); - $line->setPriority('debug'); - $line->save(); - - $line_id = $line->getId(); - print "Making sure BookstoreLog was saved: "; - print boolTest(!empty($line_id)); - -} catch (Exception $e) { - die("Error doing multiple databases tests: " . $e->__toString()); -} - -// Cleanup (tests DELETE) -// ---------------------- - -try { - - print "\nRemoving books that were just created\n"; - print "-------------------------------------\n\n"; - - print "First finding book by PK (=$phoenix_id) .... "; - try { - $hp = BookPeer::retrieveByPk($phoenix_id); - } catch (Exception $e) { - print "ERROR!\n"; - die("Error retrieving by pk: " . $e->__toString()); - } - - if ($hp) { - print "FOUND!\n"; - } else { - print "NOT FOUND :(\n"; - die("Couldn't find just-created book: book_id = $phoenix_id"); - } - - print "Attempting to delete [multi-table] by found pk: "; - $c = new Criteria(); - $c->add(BookPeer::ID, $hp->getId()); - // The only way for cascading to work currently - // is to specify the author_id and publisher_id (i.e. the fkeys - // have to be in the criteria). - $c->add(AuthorPeer::ID, $hp->getId()); - $c->add(PublisherPeer::ID, $hp->getId()); - $c->setSingleRecord(true); - BookPeer::doDelete($c); - print boolTest(true); - - print "Checking to make sure correct records were removed.\n"; - print "\tFrom author table: "; - $res = AuthorPeer::doSelect(new Criteria()); - print boolTest(count($res) === 3); - print "\tFrom publisher table: "; - $res2 = PublisherPeer::doSelect(new Criteria()); - print boolTest(count($res2) === 3); - print "\tFrom book table: "; - $res3 = BookPeer::doSelect(new Criteria()); - print boolTest(count($res3) === 3); - - print "Attempting to delete books by complex criteria: "; - $c = new Criteria(); - $cn = $c->getNewCriterion(BookPeer::ISBN, "043935806X"); - $cn->addOr($c->getNewCriterion(BookPeer::ISBN, "0380977427")); - $cn->addOr($c->getNewCriterion(BookPeer::ISBN, "0140422161")); - $c->add($cn); - BookPeer::doDelete($c); - print boolTest(true); - - print "Attempting to delete book [id = $td_id]: "; - $td->delete(); - print boolTest(true); - - print "Attempting to delete author [id = $stephenson_id]: "; - AuthorPeer::doDelete($stephenson_id); - print boolTest(true); - - print "Attempting to delete author [id = $byron_id]: "; - AuthorPeer::doDelete($byron_id); - print boolTest(true); - - print "Attempting to delete author [id = $grass_id]: "; - $grass->delete(); - print boolTest(true); - - print "Attempting to delete publisher [id = $morrow_id]: "; - PublisherPeer::doDelete($morrow_id); - print boolTest(true); - - print "Attempting to delete publisher [id = $penguin_id]: "; - PublisherPeer::doDelete($penguin_id); - print boolTest(true); - - print "Attempting to delete publisher [id = $vintage_id]: "; - $vintage->delete(); - print boolTest(true); - - // These have to be deleted manually also since we have onDelete - // set to SETNULL in the foreign keys in book. Is this correct? - print "Attempting to delete author [lastname = 'Rowling']: "; - $rowling->delete(); - print boolTest(true); - - print "Attempting to delete publisher [lastname = 'Scholastic']: "; - $scholastic->delete(); - print boolTest(true); - - print "Attempting to delete BookClubList 1: "; - $blc1->delete(); - print boolTest(true); - - print "Attempting to delete BookClubList 2: "; - $blc2->delete(); - print boolTest(true); - -} catch (Exception $e) { - die("Error deleting book: " . $e->__toString()); -} - - -// Check again to make sure that tables are empty -// ---------------------------------------------- - -check_tables_empty(); - - - - - -$timer->stop(); -print $timer->display(); diff --git a/airtime_mvc/library/propel/test/etc/lob/propel.gif b/airtime_mvc/library/propel/test/etc/lob/propel.gif deleted file mode 100644 index 48e881ef5f..0000000000 Binary files a/airtime_mvc/library/propel/test/etc/lob/propel.gif and /dev/null differ diff --git a/airtime_mvc/library/propel/test/etc/lob/tin_drum.gif b/airtime_mvc/library/propel/test/etc/lob/tin_drum.gif deleted file mode 100644 index a0de847bb7..0000000000 Binary files a/airtime_mvc/library/propel/test/etc/lob/tin_drum.gif and /dev/null differ diff --git a/airtime_mvc/library/propel/test/etc/lob/tin_drum.txt b/airtime_mvc/library/propel/test/etc/lob/tin_drum.txt deleted file mode 100644 index 09dacac0f2..0000000000 --- a/airtime_mvc/library/propel/test/etc/lob/tin_drum.txt +++ /dev/null @@ -1,76 +0,0 @@ -Granted: I am an inmate of a mental hospital; my keeper is watching me, he never lets me out of his sight; there's a peephole in the door, and my keeper's eye is the shade of brown that can never see through a blue-eyed type like me. - -So you see, my keeper can't be an enemy. I've come to be very fond of him; when he stops looking at me from behind the door and comes into the room, I tell him incidents from my life, so he can get to know me in spite of the peephole between us. He seems to treasure my stories, because every time I tell him some fairy tale, he shows his gratitude by bringing out his latest knot construction. I wouldn't swear that he's an artist. But I am certain that an exhibition of his creations would be well received by the press and attract a few purchasers. He picks up common pieces of string in the patients' rooms after visiting hours, disentangles them, and works them up into elaborate contorted spooks; then he dips them in plaster, lets them harden, and mounts them on knitting needles that he fastens to little wooden pedestals. - -He often plays with the idea of coloring his works. l advise him against it, taking my white enamel bed as an example and bidding him try to imagine how this most perfect of all beds would look if painted in many colors. He raises his hands in horror, tries to give his rather expressionless face an expression of extreme disgust, and abandons his polychrome projects. - -So you see, my white-enameled, metal hospital bed has become a norm and standard. To me it is still more: my bed is a goal attained at last, it is my consolation and might become my faith if the management allowed me to make a few changes: I should like, for instance, to have the bars built up higher, to prevent anyone from coming too close to me. - - -Once a week a visiting day breaks in on the stillness that I plait between the white metal bars. This is the time for the people who want to save me, whom it amuses to love me, who try to esteem and respect themselves, to get to know themselves, through me. How blind, how nervous and ill-bred they are! They scratch the white enamel of my bedstead with their fingernail scissors, they scribble obscene little men on it with their ballpoint pens and blue pencils. No sooner has my lawyer blasted the room with his hello than he slaps his nylon hat down over the lower left-hand bedpost--an act of violence that shatters my peace of mind for the duration of his visit, and lawyers find a good deal to talk about. - -After my visitors have deposited their gifts beneath the water color of the anemones, on the little white table covered with oilcloth, after they have submitted their current projects for my salvation, and convinced me, whom they are working indefatigably to save, of the high quality of their charity, they recover their relish in their own existence, and leave me. Then my keeper comes in to air the room and collect the strings from the gift packages. Often after airing he finds time to sit by my bed for a while, disentangling his strings, and spreading silence until I call the silence Bruno and Bruno silence. - -Bruno Munsterberg--this time I mean my keeper, I've stopped playing with words--has bought me five hundred sheets of writing paper. - -Should this supply prove insufficient, Bruno, who is unmarried and childless and hails from the Sauerland, will go to the little stationery store that also sells toys, and get me some more of the unlined space I need for the recording of my memories--I only hope they are accurate. I could never have asked such a service of my visitors, the lawyer for instance, or Klepp. The solicitous affection prescribed in my case would surely have deterred my friends from bringing me anything so dangerous as blank paper and making it available to this mind of mine which persists in excreting syllables. - -"Oh, Bruno," I said, "would you buy me a ream of virgin paper?" And Bruno, looking up at the ceiling and pointing his index finger in the same direction by way of inviting a comparison, replied: "You mean white paper, Herr Oskar?" - -I stuck to "virgin" and asked Bruno to say just that in the store. When he came back late in the afternoon with the package, he gave the impression of a Bruno shaken by thought. Several times he looked fixedly up at the ceiling from which he derived all his inspiration. And a little later he spoke: "That was the right word you told me. I asked for virgin paper and the salesgirl blushed like mad before getting it." - -Fearing an interminable conversation about salesgirls in stationery stores, I regretted having spoken of virgin paper and said nothing, waiting for Bruno to leave the room. Only then did I open the package with the five hundred sheets of writing paper. - -For a time I weighed the hard, flexible ream in my hands; then I counted out ten sheets and stowed the rest in my bedside table. I found my fountain pen in the drawer beside the photograph album: it's full, ink is no problem, how shall I begin? - -You can begin a story in the middle and create confusion by striking out boldly, backward and forward. You can be modern, put aside all mention of time and distance and, when the whole thing is done, proclaim, or let someone else proclaim, that you have finally, at the last moment, solved the space-time problem. Or you can declare at the very start that it's impossible to write a novel nowadays, but then, behind your own back so to speak, give birth to a whopper, a novel to end all novels. I have also been told that it makes a good impression, an impression of modesty so to speak, if you begin by saying that a novel can't have a hero any more because there are no more individualists, because individuality is a thing of the past, because man--each man and all men together--is alone in his loneliness and no one is entitled to individual loneliness, and all men lumped together make up a "lonely mass" without names and without heroes. All this may be true. But as far as I and Bruno my keeper are concerned, I beg leave to say that we are both heroes, very different heroes, he on his side of the peephole, and I on my side; and even, when he opens the door, the two of us, with all our friendship and loneliness, are still far from being a nameless, heroless mass. - -I shall begin far away from me; for no one ought to tell the story of his life who hasn't the patience to say a word or two about at least half of his grandparents before plunging into his own existence. And so to you personally, dear reader, who are no doubt leading a muddled kind of life outside this institution, to you my friends and weekly visitors who suspect nothing of my paper supply, I introduce Oskar's maternal grandmother. - -Late one October afternoon my grandmother Anna Bronski was sitting in her skirts at the edge of a potato field. In the morning you might have seen how expert my grandmother was at making the limp potato plants into neat piles; at noon she had eaten a chunk of bread smeared with lard and syrup; then she had dug over the field a last time, and now she sat in her skirts between two nearly full baskets. The soles of her boots rose up at right angles to the ground, converging slightly at the toes, and in front of them smoldered a fire of potato plants, flaring up asthmatically from time to time, sending a queasy film of smoke out over the scarcely inclined crust of the earth. The year was 1899; she was sitting in the heart of Kashubia, not far from Bissau but still closer to the brickworks between Ramkau and Viereck, in front of her the Brenntau highway at a point between Dirschau and Karthaus, behind her the black forest of Goldkrug; there she sat, pushing potatoes about beneath the hot ashes with the charred tip of a hazel branch. - -If I have made a special point of my grandmother's skirt, leaving no doubt, I hope, that she was sitting in her skirts; if indeed I have gone so far as to call the whole chapter "The Wide Skirt," it is because I know how much I owe to this article of apparel. My grandmother had on not just one skirt, but four, one over the other. It should not be supposed that she wore one skirt and three petticoats; no, she wore four skirts; one supported the next, and she wore the lot of them in accordance with a definite system, that is, the order of the skirts was changed from day to day. The one that was on top yesterday was today in second place; the second became the third. The one that was third yesterday was next to her skin today. The one that was closest to her yesterday clearly disclosed its pattern today, or rather its lack of pattern: all my grandmother Anna Bronski's skirts favored the same potato color. It must have been becoming to her. - -Aside from the color, my grandmother's skirts were distinguished by a lavish expanse of material. They puffed and billowed when the wind came, crackled as it passed, and sagged when it was gone, and all four of them flew out ahead of her when she had the wind in her stern. When she sat down, she gathered her skirts about her. - -In addition to the four skirts, billowing, sagging, hanging down in folds, or standing stiff and empty beside her bed, my grandmother possessed a fifth. It differed in no way from the other four potato-coloured garments. And actually the fifth skirt was not always fifth. Like its brothers-for skirts are masculine by nature-it was subject to change, it was worn like the other four, and like them when its time had come, took its turn in the wash trough every fifth Friday, then Saturday on the line by the kitchen window, and when dry on the ironing board. - -When, after one of these Saturdays spent in housecleaning, baking, washing and ironing, after milking and feeding the cow, my grandmother immersed herself from top to toe in the tub, when after leaving a little of herself in the soapsuds and letting the water in the tub sink back to its normal level, she sat down on the edge of the bed swathed in a great flowery towel, the four worn skirts and the freshly washed skirt lay spread out before her on the floor. She pondered, propping the lower lid of her right eye with her right index finger, and since she consulted no one, not even her brother Vincent, she quickly made up her mind. She stood up and with her bare toes pushed aside the skirt whose potato color had lost the most bloom. The freshly laundered one took its place. - -On Sunday morning she went to church in Ramkau and inaugurated the new order of skirts in honor of ]esus, about whom she had very set ideas. Where did my grandmother wear the laundered skirt? She was not only a cleanly woman, but also a rather vain one; she wore the best piece where it could be seen in the sunlight when the weather was good. - -But now it was a Monday afternoon and my grandmother was sitting by the potato fire. Today her Sunday skirt was one layer closer to her person, while the one that had basked in the warmth of her skin on Sunday swathed her hips in Monday gloom. Whistling with no particular tune in mind, she coaxed the first cooked potato out of the ashes with her hazel branch and pushed it away from the smoldering mound to cool in the breeze. Then she spitted the charred and crusty tuber on a pointed stick and held it close to her mouth; she had stopped whistling and instead pursed her cracked, wind-parched lips to blow the earth and ashes off the potato skin. - -In blowing, my grandmother closed her eyes. When she thought she had blown enough, she opened first one eye, then the other, bit into the potato with her widely spaced but otherwise perfect front teeth, removed half the potato, cradled the other half, mealy, steaming, and still too hot to chew, in her open mouth, and, snifflng at the smoke and the October air, gazed wide-eyed across the field toward the nearby horizon, sectioned by telegraph poles and the upper third of the brickworks chimney. - -Something was moving between the telegraph poles. My grandmother closed her mouth. Something was jumping about. Three men were darting between the poles, three men made for the chimney, then round in front, then one doubled back. Short and wide he seemed, he took a fresh start and made it across the brickyard, the other two, sort of long and thin, just behind him. They were out of the brickyard, back between the telegraph poles, but Short and Wide twisted and turned and seemed to be in more of a hurry than Long and Thin, who had to double back to the chimney, because he was already rolling over it when they two hands' breadths away, were still taking a start, and suddenly they were gone as though they had given up, and the little one disappeared too, behind the horizon, in the middle of his jump from the chimney. - -Out of sight they remained, it was intermission, they were changing their costumes, or making bricks and getting paid for it. - -Taking advantage of the intermission, my grandmother tried to spit another potato, but missed it. Because the one who seemed to be short and wide, who hadn't changed his clothes after all climbed up over the horizon as if it were a fence and he had left his pursuers behind it, in among the bricks or on the road to Brenntau. But he was still in a hurry; trying to go faster than the telegraph poles, he took long slow leaps across the field; the mud flew from his boots as he leapt over the soggy ground, but leap as he might, he seemed to be crawling. Sometimes he seemed to stick in the ground and then to stick in mid-air, short and wide time enough to wipe his face before his foot came down again in the freshly plowed field, which bordered the five acres of potatoes and narrowed into a sunken lane. - -He made it to the lane; short and wide, he had barely disappeared into the lane, when the two others, long and thin, who had probably been searching the brickyard in the meantime, climbed over the horizon and came plodding through the mud, so long and thin, but not really skinny, that my grandmother missed her potato again; because it's not every day that you see this kind of thing, three full-grown men, though they hadn't grown in exactly the same directions, hopping around telegraph poles, nearly breaking the chimney off the brickworks, and then at intervals, first short and wide, then long and thin, but all with the same difficulty, picking up more and more mud on the soles of their boots, leaping through the field that Vincent had plowed two days before, and disappearing down the sunken lane. - -Then all three of them were gone and my grandmother ventured to spit another potato, which by this time was almost cold. She hastily blew the earth and ashes off the skin, popped the whole potato straight into her mouth. They must be from the brickworks, she thought if she thought anything, and she was still chewing with a circular motion when one of them jumped out of the lane, wild eyes over a black mustache, reached the fire in two jumps, stood before, behind, and beside the fire all at once, cursing, scared, not knowing which way to go, unable to turn back, for behind him Long and Thin were running down the lane. He hit his knees, the eyes in his head were like to pop out, and sweat poured from his forehead. Panting, his whole face atremble, he ventured to crawl closer, toward the soles of my grandmother's boots, peering up at her like a squat little animal. Heaving a great sigh, which made her stop chewing on her potato, my grandmother let her feet tilt over, stopped thinking about bricks and brickmakers, and lifted high her skirt, no, all four skirts, high enough so that Short and Wide, who was not from the brickworks, could crawl underneath. Gone was his black mustache; he didn't look like an animal any more, he was neither from Ramkau nor from Viereck, at any rate he had vanished with his fright, he had ceased to be wide or short but he took up room just the same, he forgot to pant or tremble and he had stopped hitting his knees; all was as still as on the first day of Creation or the last; a bit of wind hummed in the potato fire, the telegraph poles counted themselves in silence, the chimney of the brickworks stood at attention, and my grandmother smoothed down her uppermost skirt neatly and sensibly over the second one; she scarcely felt him under her fourth skirt, and her third skirt wasn't even aware that there was anything new and unusual next to her skin. Yes, unusual it was, but the top was nicely smoothed out and the second and third layers didn't know a thing; and so she scraped two or three potatoes out of the ashes, took four raw ones from the basket beneath her right elbow, pushed the raw spuds one after another into the hot ashes, covered them over with more ashes, and poked the fire till the smoke rose in clouds--what else could she have done? - -My grandmother's skirts had barely settled down; the sticky smudge of the potato fire, which had lost its direction with all the poking and thrashing about, had barely had time to adjust itself to the wind and resume its low yellow course across the field to southwestward, when Long and Thin popped out of the lane, hot in pursuit of Short and Wide, who by now had set up housekeeping beneath my grandmother's skirts; they were indeed long and thin and they wore the uniform of the rural constabulary. - -They nearly ran past my grandmother. One of them even jumped over the fire. But suddenly they remembered they had heels and used them to brake with, about-faced, stood booted and uniformed in the smudge, coughed, pulled their uniforms out of the smudge, taking some of it along with them, and, still coughing, turned to my grandmother, asked her if she had seen Koljaiczek, 'cause she must have seen him 'cause she was sitting here by the lane and that was the way he had come. - -My grandmother hadn't seen any Koljaiczek because she didn't know any Koljaiczek. Was he from the brickworks, she asked, 'cause the only ones she knew were the ones from the brickworks. But according to the uniforms, this Koljaiczek had nothing to do with bricks, but was short and stocky. My grandmother remembered she had seen somebody like that running and pointed her stick with the steaming potato on the end toward Bissau, which, to judge by the potato, must have been between the sixth and seventh telegraph poles if you counted westward from the chimney. But whether this fellow that was running was a Koljaiczek, my grandmother couldn't say; she'd been having enough trouble with this fire,: she explained, it was burning poorly, how could she worry her head about all the people that ran by or stood in the smoke, and anyway she never worried her head about people she didn't know, she only knew the people in Bissau, Ramkau, Viereck, and the brickworks--and that was plenty for her. - -After saying all this, my grandmother heaved a gentle sigh, but lt was enough of a sigh to make the uniforms ask what there was to sigh about. She nodded toward the fire, meaning to say that she had sighed because the fire was doing poorly and maybe a little on account of the people standing in the smoke; then she bit off half her potato with her widely spaced incisors, and gave her undivided attention to the business of chewing, while her eyeballs rolled heavenward. - -My grandmother's absent gaze told the uniforms nothing; unable to make up their minds whether to look for Bissau behind the telegraph poles, they poked their bayonets into all the piles of potato tops that hadn't been set on fire. Responding to a sudden inspiration, they upset the two baskets under my grandmother's elbows almost simultaneously and were quite bewildered when nothing but potatoes came rolling out, and no Koljaiczek. Full of suspicion, they crept round the stack of potatoes, as though Koljaiczek had somehow got into it, thrust in their bayonets as though deliberately taking aim, and were disappointed to hear no cry. Their suspicions were aroused by every bush, however abject, by every mousehole, by a colony of molehills, and most of all by my grandmother, who sat there as if rooted to the spot, sighing, rolling her eyes so that the whites showed, listing the Kashubian names of all the saints--all of which seemed to have been brought on by the poor performance of the fire and the overturning of her potato baskets. - -The uniforms stayed on for a good half-hour. They took up positions at varying distances from the fire, they took an azimuth on the chimney, contemplated an offensive against Bissau but postponed it, and held out their purple hands over the fire until my grandmother, though without interrupting her sighs, gave each of them a charred potato. But in the midst of chewing, the uniforms remembered their uniforms, dashed a little way out into the field along the furze bordering the lane, and scared up a hare which, however, turned out not to be Koljaiczek. Returning to the fire, they recovered the mealy, steaming spuds and then, wearied and rather mellowed by their battles, decided to pick up the raw potatoes and put them back into the baskets which they had overturned in line of duty. - -Only when evening began to squeeze a fine slanting rain and an inky twilight from the October sky did they briefly and without enthusiasm attack a dark boulder at the other end of the field, but once this enemy had been disposed of they decided to let well enough alone. After flexing their legs for another moment or two and holding out their hands in blessing over the rather dampened fire, they coughed a last cough and dropped a last tear in the green and yellow smudge, and plodded off coughing and weeping in the direction of Bissau. If Koljaiczek wasn't here, he must be in Bissau. Rural constables never envisage more than two possibilities. - -The smoke of the slowly dying fire enveloped my grandmother like a spacious fifth skirt, so that she too with her four skirts, her sighs, and her holy names, was under a skirt. Only when the uniforms had become staggering dots, vanishing in the dusk between the telegraph poles, did my grandmother arise, slowly and painfully as though she had struck root and now, drawing earth and fibers along with her, were tearing herself out of the ground. - -Suddenly Koljaiczek found himself short, wide, and coverless in the rain, and he was cold. Quickly he buttoned his pants, which fear and a boundless need for shelter had bidden him open during his stay beneath the skirts. Hurriedly he manipulated the buttons, fearing to let his piston cool too quickly, for there was a threat of dire chills in the autumn air. - -My grandmother found four more hot potatoes under the ashes. She gave Koljaiczek three of them and took one for herself; before biting into it she asked if he was from the brickworks, though she knew perfectly well that Koljaiczek came from somewhere else and had no connection with bricks. Without waiting for an answer, she lifted the lighter basket to his back, took the heavier one for herself, and still had a hand free for her rake and hoe. Then with her basket, her potatoes, her rake, and her hoe, she set off, like a sail billowing in the breeze, in the direction of Bissau Quarry. - -That wasn't the same as Bissau itself. It lay more in the direction of Ramkau. Passing to the right of the brickworks, they headed for the black forest with Goldkrug in it and Brenntau behind it. But in a hollow, before you come to the forest, lay Bissau Quarry. Thither Joseph Koljaiczek, unable to tear himself away from her skirts, followed my grandmother. \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/etc/schema/tabletest-schema.xml b/airtime_mvc/library/propel/test/etc/schema/tabletest-schema.xml deleted file mode 100644 index 7710370e3c..0000000000 --- a/airtime_mvc/library/propel/test/etc/schema/tabletest-schema.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - -
- - - - -
- - -
- diff --git a/airtime_mvc/library/propel/test/etc/xsl/coverage-frames.xsl b/airtime_mvc/library/propel/test/etc/xsl/coverage-frames.xsl deleted file mode 100644 index edfcf2983e..0000000000 --- a/airtime_mvc/library/propel/test/etc/xsl/coverage-frames.xsl +++ /dev/null @@ -1,636 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Coverage Results. - - - - - - - - - <h2>Frame Alert</h2> - <p> - This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. - </p> - - - - - - - - .bannercell { - border: 0px; - padding: 0px; - } - body { - margin-left: 10; - margin-right: 10; - background-color:#FFFFFF; - font-family: verdana,arial,sanserif; - color:#000000; - } - a { - color: #003399; - } - a:hover { - color: #888888; - } - .a td { - background: #efefef; - } - .b td { - background: #fff; - } - th, td { - text-align: left; - vertical-align: top; - } - th { - font-weight:bold; - background: #ccc; - color: black; - } - table, th, td { - font-size: 12px; - border: none - } - table.log tr td, tr th { - } - h2 { - font-weight:bold; - font-size: 12px; - margin-bottom: 5; - } - h3 { - font-size:100%; - font-weight: 12px; - background: #DFDFDF - color: white; - text-decoration: none; - padding: 5px; - margin-right: 2px; - margin-left: 2px; - margin-bottom: 0; - } - .small { - font-size: 9px; - } -TD.empty { - FONT-SIZE: 2px; BACKGROUND: #c0c0c0; BORDER:#9c9c9c 1px solid; - color: #c0c0c0; -} -TD.fullcover { - FONT-SIZE: 2px; BACKGROUND: #00df00; BORDER:#9c9c9c 1px solid; - color: #00df00; -} -TD.covered { - FONT-SIZE: 2px; BACKGROUND: #00df00; BORDER-LEFT:#9c9c9c 1px solid;BORDER-TOP:#9c9c9c 1px solid;BORDER-BOTTOM:#9c9c9c 1px solid; - color: #00df00; -} -TD.uncovered { - FONT-SIZE: 2px; BACKGROUND: #df0000; BORDER:#9c9c9c 1px solid; - color: #df0000; -} -PRE.srcLine { - BACKGROUND: #ffffff; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; -} -td.lineCount, td.coverageCount { - BACKGROUND: #F0F0F0; PADDING-RIGHT: 3px; - text-align: right; -} -td.lineCountHighlight { - background: #C8C8F0; PADDING-RIGHT: 3px; - text-align: right; -} -td.coverageCountHighlight { - background: #F0C8C8; PADDING-RIGHT: 3px; - text-align: right; -} -span.srcLineHighlight { - background: #F0C8C8; -} -span.srcLine { - background: #C8C8F0; -} -TD.srcLineClassStart { - WIDTH: 100%; BORDER-TOP:#dcdcdc 1px solid; FONT-WEIGHT: bold; -} -.srcLine , .srcLine ol, .srcLine ol li {margin: 0;} -.srcLine .de1, .srcLine .de2 {font-family: 'Courier New', Courier, monospace; font-weight: normal;} -.srcLine .imp {font-weight: bold; color: red;} -.srcLine .kw1 {color: #b1b100;} -.srcLine .kw2 {color: #000000; font-weight: bold;} -.srcLine .kw3 {color: #000066;} -.srcLine .co1 {color: #808080; font-style: italic;} -.srcLine .co2 {color: #808080; font-style: italic;} -.srcLine .coMULTI {color: #808080; font-style: italic;} -.srcLine .es0 {color: #000099; font-weight: bold;} -.srcLine .br0 {color: #66cc66;} -.srcLine .st0 {color: #ff0000;} -.srcLine .nu0 {color: #cc66cc;} -.srcLine .me1 {color: #006600;} -.srcLine .me2 {color: #006600;} -.srcLine .re0 {color: #0000ff;} - - - - - - - - - -

All Classes

- - - - - - - / - .html - - - - - -
- - - - (-) - - - () - - -
- - -
- - - - - - - - -

Overview

-

All Packages

- - - - - - - -
- - - -
- - -
- - - - - - - - - - - - - - - - -
Packages: Classes: Methods: LOC:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Methods covered
Total coverage

PackagesMethods covered
- - - -
- - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

-
- -

Classes

- - - - - - - -
- - - - (-) - - - () - - -
- - -
- - - - - - - - - - - - - - - - - - -
Classes: Methods: LOC:
-
- - - - - - - - - - - - - - - - - - - - -
PackageMethods covered

ClassesMethods covered
- - - -
- - - - - - - - - - - - - - - - - -
Methods: LOC:
-
- - - - - - - - - - - - -
Source fileMethods covered
- - -
-
- - - - -
- - - - - - - - - - - - -
- - http://phing.info/ - -

Source Code Coverage

Designed for use with PHPUnit2, Xdebug and Phing.
-
-
- - - - - - -

Report generated at
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
- -
- - - - - - - - - - - - - - - - - - - - - - - -
   
- -
-
-
- - - - - - - - - - 0 - - - - - - - - srcLineClassStart - - - -
-
-
- - -
-
-
- -
-
- - -
- - - - - - ../ - - - - - - ../ - - - - - - - - stylesheet.css - - - - - - a - b - - - -
- - diff --git a/airtime_mvc/library/propel/test/etc/xsl/log.xsl b/airtime_mvc/library/propel/test/etc/xsl/log.xsl deleted file mode 100644 index a460b667cd..0000000000 --- a/airtime_mvc/library/propel/test/etc/xsl/log.xsl +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - Phing Build Log - - - - - - - - - -
- - http://phing.info/ - - - Phing -
- - - -

- - - - - - - -

-
- Phing -
-
- - -
- - - - - - failed - complete - - - - - - - - - - - - - -
Build FailedBuild CompleteTotal Time:
- -
- See the stacktrace. -
-
- - - -
phing.file
phing.version
- -

Build events

- - - - - - - -
targettaskmessage
-

- - - -

Error details

- - -
-
-
- -

-
- - - - - - - a - b - - - [ ] - - - - - - -
diff --git a/airtime_mvc/library/propel/test/etc/xsl/phpunit2-noframes.xsl b/airtime_mvc/library/propel/test/etc/xsl/phpunit2-noframes.xsl deleted file mode 100644 index 20b96a707c..0000000000 --- a/airtime_mvc/library/propel/test/etc/xsl/phpunit2-noframes.xsl +++ /dev/null @@ -1,445 +0,0 @@ - - - - - - - - - - - Unit Test Results - - - - - - - - - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Failure - Error - - - - - - - - - - -
- - - -
-
- - - - - - - - -

Packages

- - - - -

Package

- - - - - - -
-

- - - - -

Test Cases

- - - - -

TestCase

- - - - - - - - - - -
-

- - - - -

Summary

- - - - - - - - - - - - - - - - - - - Failure - Error - - - - - - - - - - -
AssertionsTestsFailuresErrorsSuccess rateTime
- - - - - - - -
- - - - -
- Note: failures are anticipated and checked for with assertions while errors are unanticipated. -
-
- - - -

Unit Test Results

- - - - - -
Designed for use with PHPUnit2 and Phing.
-
-
- - - - - - -

Report generated at
-
- - - - Name - Assertions - Tests - Errors - Failures - Time(s) - - - - - - - Name - Assertions - Tests - Errors - Failures - Time(s) - - - - - - - Name - Status - Type - Assertions - Time (s) - - - - - - - - - - - Failure - Error - - - - - - - - - - - - - - - - - - - - - - Error - - - - - - Failure - - - - Error - - - - Success - - - - - - - - - - - - - - - - - - - - - - - - - N/A - - - - - - -

- - - - -
- - -
- - - - - - - - - - - - -
- -
- - - - - - - - - - - - - diff --git a/airtime_mvc/library/propel/test/etc/xsl/str.replace.function.xsl b/airtime_mvc/library/propel/test/etc/xsl/str.replace.function.xsl deleted file mode 100644 index 626e5498cf..0000000000 --- a/airtime_mvc/library/propel/test/etc/xsl/str.replace.function.xsl +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ERROR: function implementation of str:replace() relies on exsl:node-set(). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/book.schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/book.schema.xml deleted file mode 100644 index 27810c5ec1..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/book.schema.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/book_club_list.schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/book_club_list.schema.xml deleted file mode 100644 index 6b6cb5fcdc..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/book_club_list.schema.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - -
- - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/build.properties b/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/build.properties deleted file mode 100644 index 3113ded435..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/build.properties +++ /dev/null @@ -1,19 +0,0 @@ -# $Id: build.properties 1756 2010-05-10 08:54:06Z francois $ -# -# This is a project-specific build.properties file. The properties -# in this file override anything set in Propel's top-level build.properties -# file when *this* project is being built. -# -# See top-level build.properties-sample for explanation of configuration -# options. -# -# Because this file is included before the top-level build.properties file, -# you cannot refer to any properties set therein. - -propel.project = bookstore-packaged -propel.database = sqlite -propel.database.url = sqlite://localhost/./test/@DB@.db -# propel.database.createUrl = (doesn't aply for SQLite, since db is auto-created) - -propel.targetPackage = bookstore-packaged -propel.packageObjectModel = true \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/external/author.schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/external/author.schema.xml deleted file mode 100644 index 14ce34fba2..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/external/author.schema.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/log.schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/log.schema.xml deleted file mode 100644 index 96590489cc..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/log.schema.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/media.schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/media.schema.xml deleted file mode 100644 index 0aa3a2f9b1..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/media.schema.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/publisher.schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/publisher.schema.xml deleted file mode 100644 index 9f6408210f..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/publisher.schema.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/review.schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/review.schema.xml deleted file mode 100644 index f486c8014d..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/review.schema.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/runtime-conf.xml b/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/runtime-conf.xml deleted file mode 100644 index be7a2bd426..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore-packaged/runtime-conf.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - propel-bookstore-packaged - 7 - - - - - - - sqlite - - - sqlite - localhost - ./bookstore.db - - - - - - - sqlite - - - sqlite - localhost - ./bookstore-log.db - - - - - - - \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-aggregate-schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-aggregate-schema.xml deleted file mode 100644 index 8ad697d032..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-aggregate-schema.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - -
- - - - - - - -
- - - - - - - - -
- - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-auto-add-pk-schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-auto-add-pk-schema.xml deleted file mode 100644 index 881b4d5364..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-auto-add-pk-schema.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - -
- - - - - -
- - - - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-concrete-inheritance-schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-concrete-inheritance-schema.xml deleted file mode 100644 index e54760333a..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-concrete-inheritance-schema.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - -
- - - - - - - - - - - - - - - -
- - - - - - - - - - -
- - - - -
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-nested-set-schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-nested-set-schema.xml deleted file mode 100644 index c89acd4377..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-nested-set-schema.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - -
- - - - - - - - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-schema.xml deleted file mode 100644 index 191b54bd1b..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-schema.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-sluggable-schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-sluggable-schema.xml deleted file mode 100644 index 29f962670f..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-sluggable-schema.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - -
- - - - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-soft-delete-schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-soft-delete-schema.xml deleted file mode 100644 index 3b9f464bff..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-soft-delete-schema.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - -
- - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-sortable-schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-sortable-schema.xml deleted file mode 100644 index 1f08c71720..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-sortable-schema.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - -
- - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-timestampable-schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-timestampable-schema.xml deleted file mode 100644 index 8504663052..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore/behavior-timestampable-schema.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - -
- - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore/build.properties b/airtime_mvc/library/propel/test/fixtures/bookstore/build.properties deleted file mode 100644 index 1981cc4b6b..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore/build.properties +++ /dev/null @@ -1,35 +0,0 @@ -# $Id: build.properties 1688 2010-04-19 20:23:27Z francois $ -# -# This is a project-specific build.properties file. The properties -# in this file override anything set in Propel's top-level build.properties -# file when *this* project is being built. -# -# See top-level build.properties-sample for explanation of configuration -# options. -# -# Because this file is included before the top-level build.properties file, -# you cannot refer to any properties set therein. - -propel.project = bookstore -propel.database = mysql -propel.database.url = mysql:dbname=test -propel.mysqlTableType = InnoDB -propel.disableIdentifierQuoting=true - -# For MySQL or Oracle, you also need to specify username & password -#propel.database.user = [db username] -#propel.database.password = [db password] - -# Note that if you do not wish to specify the database (e.g. if you -# are using multiple databses) you can use the @DB@ token which -# will be replaced with a database at runtime. -# E.g.: propel.database.url = sqlite://localhost/./test/@DB@.db -# This will work for the datadump and the insert-sql tasks. - -# propel.database.createUrl = (doesn't apply for SQLite, since db is auto-created) - -propel.targetPackage = bookstore - -# We need to test behavior hooks -propel.behavior.test_all_hooks.class = ../test.tools.helpers.bookstore.behavior.Testallhooksbehavior -propel.behavior.do_nothing.class = ../test.tools.helpers.bookstore.behavior.DonothingBehavior \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore/cms-schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore/cms-schema.xml deleted file mode 100644 index bf85a0df0a..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore/cms-schema.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - -
- - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore/runtime-conf.xml b/airtime_mvc/library/propel/test/fixtures/bookstore/runtime-conf.xml deleted file mode 100644 index e38b7bf9fa..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore/runtime-conf.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - - - propel-bookstore - propel.log - 7 - - - - - - - - mysql - - - DebugPDO - mysql:dbname=test - - - - - - - - - - - - - utf8 - - - - - - - mysql - - DebugPDO - mysql:dbname=test - - - - - - - - - utf8 - - - - - - mysql - - DebugPDO - mysql:dbname=test - - - - - - - - - utf8 - - - - - - - diff --git a/airtime_mvc/library/propel/test/fixtures/bookstore/schema.xml b/airtime_mvc/library/propel/test/fixtures/bookstore/schema.xml deleted file mode 100644 index c55066ceba..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/bookstore/schema.xml +++ /dev/null @@ -1,320 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - -
- - - - - - - - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
- - - - -
- - - - - -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
- - - - - -
- - - - -
- - - - - -
- - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/namespaced/build.properties b/airtime_mvc/library/propel/test/fixtures/namespaced/build.properties deleted file mode 100644 index 9dc98b564c..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/namespaced/build.properties +++ /dev/null @@ -1,31 +0,0 @@ -# $Id: build.properties 1688 2010-04-19 20:23:27Z francois $ -# -# This is a project-specific build.properties file. The properties -# in this file override anything set in Propel's top-level build.properties -# file when *this* project is being built. -# -# See top-level build.properties-sample for explanation of configuration -# options. -# -# Because this file is included before the top-level build.properties file, -# you cannot refer to any properties set therein. - -propel.project = bookstore_namespaced -propel.database = mysql -propel.database.url = mysql:dbname=test -propel.mysqlTableType = InnoDB -propel.disableIdentifierQuoting=true - -# For MySQL or Oracle, you also need to specify username & password -#propel.database.user = [db username] -#propel.database.password = [db password] - -# Note that if you do not wish to specify the database (e.g. if you -# are using multiple databses) you can use the @DB@ token which -# will be replaced with a database at runtime. -# E.g.: propel.database.url = sqlite://localhost/./test/@DB@.db -# This will work for the datadump and the insert-sql tasks. - -# propel.database.createUrl = (doesn't apply for SQLite, since db is auto-created) - -propel.targetPackage = bookstore \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/fixtures/namespaced/runtime-conf.xml b/airtime_mvc/library/propel/test/fixtures/namespaced/runtime-conf.xml deleted file mode 100644 index ccc5a5c875..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/namespaced/runtime-conf.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - propel-bookstore - propel.log - 7 - - - - - - - - mysql - - - DebugPDO - mysql:dbname=test - - - - - - - - - - - - - utf8 - - - - - - - - diff --git a/airtime_mvc/library/propel/test/fixtures/namespaced/schema.xml b/airtime_mvc/library/propel/test/fixtures/namespaced/schema.xml deleted file mode 100644 index 0951482aaf..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/namespaced/schema.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - - - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/nestedset/build.properties b/airtime_mvc/library/propel/test/fixtures/nestedset/build.properties deleted file mode 100644 index 7105e18abf..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/nestedset/build.properties +++ /dev/null @@ -1,35 +0,0 @@ -# $Id: build.properties 1260 2009-10-26 20:43:51Z francois $ -# -# This is a project-specific build.properties file. The properties -# in this file override anything set in Propel's top-level build.properties -# file when *this* project is being built. -# -# See top-level build.properties-sample for explanation of configuration -# options. -# -# Because this file is included before the top-level build.properties file, -# you cannot refer to any properties set therein. - -propel.project = nestedset -propel.database = sqlite -propel.database.url = sqlite:/var/tmp/nestedset.db -# For MySQL or Oracle, you also need to specify username & password -# propel.database.user = [db username] -# propel.database.password = [db password] - -# Note that if you do not wish to specify the database (e.g. if you -# are using multiple databses) you can use the @DB@ token which -# will be replaced with a database at runtime. -# E.g.: propel.database.url = sqlite://localhost/./test/@DB@.db -# This will work for the datadump and the insert-sql tasks. - -# propel.database.createUrl = (doesn't aply for SQLite, since db is auto-created) - -propel.targetPackage = nestedset - -# The unit tests need to test this stuff -propel.addGenericAccessors = true -propel.addGenericMutators = true - -# Use the new PHP 5.2 DateTime class -propel.useDateTimeClass = true diff --git a/airtime_mvc/library/propel/test/fixtures/nestedset/nestedset-schema.xml b/airtime_mvc/library/propel/test/fixtures/nestedset/nestedset-schema.xml deleted file mode 100644 index 9a49d51034..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/nestedset/nestedset-schema.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - -
-
diff --git a/airtime_mvc/library/propel/test/fixtures/nestedset/runtime-conf.xml b/airtime_mvc/library/propel/test/fixtures/nestedset/runtime-conf.xml deleted file mode 100644 index 8cc8fca13e..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/nestedset/runtime-conf.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - propel-nestedset - 7 - - - - - - - sqlite - - - sqlite - sqlite:/var/tmp/nestedset.db - - - - - - - diff --git a/airtime_mvc/library/propel/test/fixtures/treetest/build.properties b/airtime_mvc/library/propel/test/fixtures/treetest/build.properties deleted file mode 100644 index eca0fdfcfe..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/treetest/build.properties +++ /dev/null @@ -1,26 +0,0 @@ -# $Id: build.properties 1260 2009-10-26 20:43:51Z francois $ -# -# This is a project-specific build.properties file. The properties -# in this file override anything set in Propel's top-level build.properties -# file when *this* project is being built. -# -# See top-level build.properties-sample for explanation of configuration -# options. -# -# Because this file is included before the top-level build.properties file, -# you cannot refer to any properties set therein. - -propel.targetPackage = treetest -propel.project = treetest - -propel.database = sqlite -propel.database.url = sqlite:/var/tmp/treetest.db - -#propel.database = mysql -#propel.database.url = mysql://localhost/test - -#propel.database = codebase -#propel.database.url = odbc://localhost/Driver=CodeBaseOdbcStand;DBQ=test;?adapter=CodeBase - - - diff --git a/airtime_mvc/library/propel/test/fixtures/treetest/runtime-conf.xml b/airtime_mvc/library/propel/test/fixtures/treetest/runtime-conf.xml deleted file mode 100644 index c20f28ae43..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/treetest/runtime-conf.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - propel-treetest - 7 - - - - - - - sqlite - - - sqlite - sqlite:/var/tmp/treetest.db - - - - - - - diff --git a/airtime_mvc/library/propel/test/fixtures/treetest/treetest-schema.xml b/airtime_mvc/library/propel/test/fixtures/treetest/treetest-schema.xml deleted file mode 100644 index a2f11e8890..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/treetest/treetest-schema.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - -
- -
diff --git a/airtime_mvc/library/propel/test/fixtures/unique-column/column-schema.xml b/airtime_mvc/library/propel/test/fixtures/unique-column/column-schema.xml deleted file mode 100644 index 6c0dcf7259..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/unique-column/column-schema.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - -
-
diff --git a/airtime_mvc/library/propel/test/fixtures/unique-column/table-schema.xml b/airtime_mvc/library/propel/test/fixtures/unique-column/table-schema.xml deleted file mode 100644 index 0fb6b26f22..0000000000 --- a/airtime_mvc/library/propel/test/fixtures/unique-column/table-schema.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - -
- - - - -
-
diff --git a/airtime_mvc/library/propel/test/speed.php b/airtime_mvc/library/propel/test/speed.php deleted file mode 100644 index c013f18f5d..0000000000 --- a/airtime_mvc/library/propel/test/speed.php +++ /dev/null @@ -1,401 +0,0 @@ -iterations = $iterations; - } - - public function run() - { - $timers = array(); - fwrite(STDOUT, "Running scenario"); - // perform tests - for ($i=0; $i < $this->iterations; $i++) { - fwrite(STDOUT, '.'); - $this->setUp(); - $t = microtime(true); - $this->testSpeed(); - $timers[]= microtime(true) - $t; - $this->tearDown(); - } - fwrite(STDOUT, " done\n"); - // sort tests - sort($timers); - - // eliminate first and last - array_shift($timers); - array_pop($timers); - - return array_sum($timers) / count($timers); - } - - protected function emptyTables() - { - $res1 = AuthorPeer::doDeleteAll(); - $res2 = PublisherPeer::doDeleteAll(); - $res3 = AuthorPeer::doDeleteAll(); - $res4 = ReviewPeer::doDeleteAll(); - $res5 = MediaPeer::doDeleteAll(); - $res6 = BookClubListPeer::doDeleteAll(); - $res7 = BookListRelPeer::doDeleteAll(); - } - - public function setUp() - { - $this->con = Propel::getConnection(BookPeer::DATABASE_NAME); - $this->con->beginTransaction(); - $this->emptyTables(); - } - - public function tearDown() - { - $this->emptyTables(); - $this->con->commit(); - } - - public function testSpeed() - { - // Add publisher records - // --------------------- - - $scholastic = new Publisher(); - $scholastic->setName("Scholastic"); - // do not save, will do later to test cascade - - $morrow = new Publisher(); - $morrow->setName("William Morrow"); - $morrow->save(); - $morrow_id = $morrow->getId(); - - $penguin = new Publisher(); - $penguin->setName("Penguin"); - $penguin->save(); - $penguin_id = $penguin->getId(); - - $vintage = new Publisher(); - $vintage->setName("Vintage"); - $vintage->save(); - $vintage_id = $vintage->getId(); - - // Add author records - // ------------------ - - $rowling = new Author(); - $rowling->setFirstName("J.K."); - $rowling->setLastName("Rowling"); - // no save() - - $stephenson = new Author(); - $stephenson->setFirstName("Neal"); - $stephenson->setLastName("Stephenson"); - $stephenson->save(); - $stephenson_id = $stephenson->getId(); - - $byron = new Author(); - $byron->setFirstName("George"); - $byron->setLastName("Byron"); - $byron->save(); - $byron_id = $byron->getId(); - - $grass = new Author(); - $grass->setFirstName("Gunter"); - $grass->setLastName("Grass"); - $grass->save(); - $grass_id = $grass->getId(); - - // Add book records - // ---------------- - - $phoenix = new Book(); - $phoenix->setTitle("Harry Potter and the Order of the Phoenix"); - $phoenix->setISBN("043935806X"); - - // cascading save (Harry Potter) - $phoenix->setAuthor($rowling); - $phoenix->setPublisher($scholastic); - $phoenix->save(); - $phoenix_id = $phoenix->getId(); - - $qs = new Book(); - $qs->setISBN("0380977427"); - $qs->setTitle("Quicksilver"); - $qs->setAuthor($stephenson); - $qs->setPublisher($morrow); - $qs->save(); - $qs_id = $qs->getId(); - - $dj = new Book(); - $dj->setISBN("0140422161"); - $dj->setTitle("Don Juan"); - $dj->setAuthor($byron); - $dj->setPublisher($penguin); - $dj->save(); - $dj_id = $qs->getId(); - - $td = new Book(); - $td->setISBN("067972575X"); - $td->setTitle("The Tin Drum"); - $td->setAuthor($grass); - $td->setPublisher($vintage); - $td->save(); - $td_id = $td->getId(); - - // Add review records - // ------------------ - - $r1 = new Review(); - $r1->setBook($phoenix); - $r1->setReviewedBy("Washington Post"); - $r1->setRecommended(true); - $r1->setReviewDate(time()); - $r1->save(); - $r1_id = $r1->getId(); - - $r2 = new Review(); - $r2->setBook($phoenix); - $r2->setReviewedBy("New York Times"); - $r2->setRecommended(false); - $r2->setReviewDate(time()); - $r2->save(); - $r2_id = $r2->getId(); - - // Perform a "complex" search - // -------------------------- - - $results = BookQuery::create() - ->filterByTitle('Harry%') - ->find(); - - $results = BookQuery::create() - ->where('Book.ISBN IN ?', array("0380977427", "0140422161")) - ->find(); - - // Perform a "limit" search - // ------------------------ - - $results = BookQuery::create() - ->limit(2) - ->offset(1) - ->orderByTitle() - ->find(); - - // Perform a lookup & update! - // -------------------------- - - $qs_lookup = BookQuery::create()->findPk($qs_id); - $new_title = "Quicksilver (".crc32(uniqid(rand())).")"; - $qs_lookup->setTitle($new_title); - $qs_lookup->save(); - - $qs_lookup2 = BookQuery::create()->findPk($qs_id); - - // Test some basic DATE / TIME stuff - // --------------------------------- - - // that's the control timestamp. - $control = strtotime('2004-02-29 00:00:00'); - - // should be two in the db - $r = ReviewQuery::create()->findOne(); - $r_id = $r->getId(); - $r->setReviewDate($control); - $r->save(); - - $r2 = ReviewQuery::create()->findPk($r_id); - - // Testing the DATE/TIME columns - // ----------------------------- - - // that's the control timestamp. - $control = strtotime('2004-02-29 00:00:00'); - - // should be two in the db - $r = ReviewQuery::create()->findOne(); - $r_id = $r->getId(); - $r->setReviewDate($control); - $r->save(); - - $r2 = ReviewQuery::create()->findPk($r_id); - - // Testing the column validators - // ----------------------------- - - $bk1 = new Book(); - $bk1->setTitle("12345"); // min length is 10 - $ret = $bk1->validate(); - - // Unique validator - $bk2 = new Book(); - $bk2->setTitle("Don Juan"); - $ret = $bk2->validate(); - - // Now trying some more complex validation. - $auth1 = new Author(); - $auth1->setFirstName("Hans"); - // last name required; will fail - - $bk1->setAuthor($auth1); - - $rev1 = new Review(); - $rev1->setReviewDate("08/09/2001"); - // will fail: reviewed_by column required - - $bk1->addReview($rev1); - - $ret2 = $bk1->validate(); - - $bk2 = new Book(); - $bk2->setTitle("12345678901"); // passes - - $auth2 = new Author(); - $auth2->setLastName("Blah"); //passes - $auth2->setEmail("some@body.com"); //passes - $auth2->setAge(50); //passes - $bk2->setAuthor($auth2); - - $rev2 = new Review(); - $rev2->setReviewedBy("Me!"); // passes - $rev2->setStatus("new"); // passes - $bk2->addReview($rev2); - - $ret3 = $bk2->validate(); - - // Testing doCount() functionality - // ------------------------------- - - $count = BookQuery::create()->count(); - - // Testing many-to-many relationships - // ---------------------------------- - - // init book club list 1 with 2 books - - $blc1 = new BookClubList(); - $blc1->setGroupLeader("Crazyleggs"); - $blc1->setTheme("Happiness"); - - $brel1 = new BookListRel(); - $brel1->setBook($phoenix); - - $brel2 = new BookListRel(); - $brel2->setBook($dj); - - $blc1->addBookListRel($brel1); - $blc1->addBookListRel($brel2); - - $blc1->save(); - - // init book club list 2 with 1 book - - $blc2 = new BookClubList(); - $blc2->setGroupLeader("John Foo"); - $blc2->setTheme("Default"); - - $brel3 = new BookListRel(); - $brel3->setBook($phoenix); - - $blc2->addBookListRel($brel3); - - $blc2->save(); - - // re-fetch books and lists from db to be sure that nothing is cached - - $phoenix = BookQuery::create() - ->filterById($phoenix->getId()) - ->findOne(); - - $blc1 = BookClubListQuery::create() - ->filterById($blc1->getId()) - ->findOne(); - - $blc2 = BookClubListQuery::create() - ->filterbyId($blc2->getId()) - ->findOne(); - - $relCount = $phoenix->countBookListRels(); - - $relCount = $blc1->countBookListRels(); - - $relCount = $blc2->countBookListRels(); - - // Removing books that were just created - // ------------------------------------- - - $hp = BookQuery::create()->findPk($phoenix_id); - $c = new Criteria(); - $c->add(BookPeer::ID, $hp->getId()); - // The only way for cascading to work currently - // is to specify the author_id and publisher_id (i.e. the fkeys - // have to be in the criteria). - $c->add(AuthorPeer::ID, $hp->getId()); - $c->add(PublisherPeer::ID, $hp->getId()); - $c->setSingleRecord(true); - BookPeer::doDelete($c); - - // Attempting to delete books by complex criteria - BookQuery::create() - ->filterByISBN("043935806X") - ->orWhere('Book.ISBN = ?', "0380977427") - ->orWhere('Book.ISBN = ?', "0140422161") - ->delete(); - - $td->delete(); - - AuthorQuery::create()->filterById($stephenson_id)->delete(); - - AuthorQuery::create()->filterById($byron_id)->delete(); - - $grass->delete(); - - PublisherQuery::create()->filterById($morrow_id)->delete(); - - PublisherQuery::create()->filterById($penguin_id)->delete(); - - $vintage->delete(); - - // These have to be deleted manually also since we have onDelete - // set to SETNULL in the foreign keys in book. Is this correct? - $rowling->delete(); - - $scholastic->delete(); - - $blc1->delete(); - - $blc2->delete(); - } -} - -$test = new PropelSpeedTest(100); -echo "Test speed: {$test->run()} ({$test->iterations} iterations)\n"; diff --git a/airtime_mvc/library/propel/test/test.xml b/airtime_mvc/library/propel/test/test.xml deleted file mode 100644 index e97215e7fd..0000000000 --- a/airtime_mvc/library/propel/test/test.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ------------------------------------------------- - +++++ Running Propel unit tests - ------------------------------------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/AutoAddPkBehaviorTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/AutoAddPkBehaviorTest.php deleted file mode 100644 index a59f845758..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/AutoAddPkBehaviorTest.php +++ /dev/null @@ -1,70 +0,0 @@ -assertEquals(count($table6->getColumns()), 2, 'auto_add_pk adds one column by default'); - $pks = $table6->getPrimaryKeys(); - $this->assertEquals(count($pks), 1, 'auto_add_pk adds a simple primary key by default'); - $pk = array_pop($pks); - $this->assertEquals($pk->getName(), 'ID', 'auto_add_pk adds an id column by default'); - $this->assertEquals($pk->getType(), 'INTEGER', 'auto_add_pk adds an integer column by default'); - $this->assertTrue($pk->isPrimaryKey(), 'auto_add_pk adds a primary key column by default'); - $this->assertTrue($table6->isUseIdGenerator(), 'auto_add_pk adds an autoIncrement column by default'); - } - - public function testNoTrigger() - { - $table7 = Table7Peer::getTableMap(); - $this->assertEquals(count($table7->getColumns()), 2, 'auto_add_pk does not add a column when the table already has a primary key'); - $this->assertFalse(method_exists('Table7', 'getId'), 'auto_add_pk does not add an id column when the table already has a primary key'); - $pks = $table7->getPrimaryKeys(); - $pk = array_pop($pks); - $this->assertEquals($pk->getName(), 'FOO', 'auto_add_pk does not change an existing primary key'); - } - - public function testParameters() - { - $table8 = Table8Peer::getTableMap(); - $this->assertEquals(count($table8->getColumns()), 3, 'auto_add_pk adds one column with custom parameters'); - $pks = $table8->getPrimaryKeys(); - $pk = array_pop($pks); - $this->assertEquals($pk->getName(), 'IDENTIFIER', 'auto_add_pk accepts customization of pk column name'); - $this->assertEquals($pk->getType(), 'BIGINT', 'auto_add_pk accepts customization of pk column type'); - $this->assertTrue($pk->isPrimaryKey(), 'auto_add_pk adds a primary key column with custom parameters'); - $this->assertFalse($table8->isUseIdGenerator(), 'auto_add_pk accepts customization of pk column autoIncrement'); - } - - public function testForeignKey() - { - $t6 = new Table6(); - $t6->setTitle('foo'); - $t6->save(); - $t8 = new Table8(); - $t8->setIdentifier(1); - $t8->setTable6($t6); - $t8->save(); - $this->assertEquals($t8->getFooId(), $t6->getId(), 'Auto added pkeys can be used in relations'); - $t8->delete(); - $t6->delete(); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/ObjectBehaviorTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/ObjectBehaviorTest.php deleted file mode 100644 index f42c8e9c2b..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/ObjectBehaviorTest.php +++ /dev/null @@ -1,152 +0,0 @@ -assertEquals($t->customAttribute, 1, 'objectAttributes hook is called when adding attributes'); - } - - public function testPreSave() - { - $t = new Table3(); - $t->preSave = 0; - $t->save(); - $this->assertEquals($t->preSave, 1, 'preSave hook is called on object insertion'); - $this->assertEquals($t->preSaveBuilder, 'PHP5ObjectBuilder', 'preSave hook is called with the object builder as parameter'); - $this->assertFalse($t->preSaveIsAfterSave, 'preSave hook is called before save'); - $t->preSave = 0; - $t->setTitle('foo'); - $t->save(); - $this->assertEquals($t->preSave, 1, 'preSave hook is called on object modification'); - } - - public function testPostSave() - { - $t = new Table3(); - $t->postSave = 0; - $t->save(); - $this->assertEquals($t->postSave, 1, 'postSave hook is called on object insertion'); - $this->assertEquals($t->postSaveBuilder, 'PHP5ObjectBuilder', 'postSave hook is called with the object builder as parameter'); - $this->assertTrue($t->postSaveIsAfterSave, 'postSave hook is called after save'); - $t->postSave = 0; - $t->setTitle('foo'); - $t->save(); - $this->assertEquals($t->postSave, 1, 'postSave hook is called on object modification'); - } - - public function testPreInsert() - { - $t = new Table3(); - $t->preInsert = 0; - $t->save(); - $this->assertEquals($t->preInsert, 1, 'preInsert hook is called on object insertion'); - $this->assertEquals($t->preInsertBuilder, 'PHP5ObjectBuilder', 'preInsert hook is called with the object builder as parameter'); - $this->assertFalse($t->preInsertIsAfterSave, 'preInsert hook is called before save'); - $t->preInsert = 0; - $t->setTitle('foo'); - $t->save(); - $this->assertEquals($t->preInsert, 0, 'preInsert hook is not called on object modification'); - } - - public function testPostInsert() - { - $t = new Table3(); - $t->postInsert = 0; - $t->save(); - $this->assertEquals($t->postInsert, 1, 'postInsert hook is called on object insertion'); - $this->assertEquals($t->postInsertBuilder, 'PHP5ObjectBuilder', 'postInsert hook is called with the object builder as parameter'); - $this->assertTrue($t->postInsertIsAfterSave, 'postInsert hook is called after save'); - $t->postInsert = 0; - $t->setTitle('foo'); - $t->save(); - $this->assertEquals($t->postInsert, 0, 'postInsert hook is not called on object modification'); - } - - public function testPreUpdate() - { - $t = new Table3(); - $t->preUpdate = 0; - $t->save(); - $this->assertEquals($t->preUpdate, 0, 'preUpdate hook is not called on object insertion'); - $t->preUpdate = 0; - $t->setTitle('foo'); - $t->save(); - $this->assertEquals($t->preUpdate, 1, 'preUpdate hook is called on object modification'); - $this->assertEquals($t->preUpdateBuilder, 'PHP5ObjectBuilder', 'preUpdate hook is called with the object builder as parameter'); - $this->assertFalse($t->preUpdateIsAfterSave, 'preUpdate hook is called before save'); - } - - public function testPostUpdate() - { - $t = new Table3(); - $t->postUpdate = 0; - $t->save(); - $this->assertEquals($t->postUpdate, 0, 'postUpdate hook is not called on object insertion'); - $t->postUpdate = 0; - $t->setTitle('foo'); - $t->save(); - $this->assertEquals($t->postUpdate, 1, 'postUpdate hook is called on object modification'); - $this->assertEquals($t->postUpdateBuilder, 'PHP5ObjectBuilder', 'postUpdate hook is called with the object builder as parameter'); - $this->assertTrue($t->postUpdateIsAfterSave, 'postUpdate hook is called after save'); - } - - public function testPreDelete() - { - $t = new Table3(); - $t->save(); - $this->preDelete = 0; - $t->delete(); - $this->assertEquals($t->preDelete, 1, 'preDelete hook is called on object deletion'); - $this->assertEquals($t->preDeleteBuilder, 'PHP5ObjectBuilder', 'preDelete hook is called with the object builder as parameter'); - $this->assertTrue($t->preDeleteIsBeforeDelete, 'preDelete hook is called before deletion'); - } - - public function testPostDelete() - { - $t = new Table3(); - $t->save(); - $this->postDelete = 0; - $t->delete(); - $this->assertEquals($t->postDelete, 1, 'postDelete hook is called on object deletion'); - $this->assertEquals($t->postDeleteBuilder, 'PHP5ObjectBuilder', 'postDelete hook is called with the object builder as parameter'); - $this->assertFalse($t->postDeleteIsBeforeDelete, 'postDelete hook is called before deletion'); - } - - public function testObjectMethods() - { - $t = new Table3(); - $this->assertTrue(method_exists($t, 'hello'), 'objectMethods hook is called when adding methods'); - $this->assertEquals($t->hello(), 'PHP5ObjectBuilder', 'objectMethods hook is called with the object builder as parameter'); - } - - public function testObjectCall() - { - $t = new Table3(); - $this->assertEquals('bar', $t->foo(), 'objectCall hook is called when building the magic __call()'); - } - - public function testObjectFilter() - { - $t = new Table3(); - $this->assertTrue(class_exists('testObjectFilter'), 'objectFilter hook allows complete manipulation of the generated script'); - $this->assertEquals(testObjectFilter::FOO, 'PHP5ObjectBuilder', 'objectFilter hook is called with the object builder as parameter'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/PeerBehaviorTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/PeerBehaviorTest.php deleted file mode 100644 index 5e968f2c43..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/PeerBehaviorTest.php +++ /dev/null @@ -1,61 +0,0 @@ -assertEquals(Table3Peer::$customStaticAttribute, 1, 'staticAttributes hook is called when adding attributes'); - $this->assertEquals(Table3Peer::$staticAttributeBuilder, 'PHP5PeerBuilder', 'staticAttributes hook is called with the peer builder as parameter'); - } - - public function testStaticMethods() - { - $this->assertTrue(method_exists('Table3Peer', 'hello'), 'staticMethods hook is called when adding methods'); - $this->assertEquals(Table3Peer::hello(), 'PHP5PeerBuilder', 'staticMethods hook is called with the peer builder as parameter'); - } - - public function testPreSelect() - { - $con = Propel::getConnection(Table3Peer::DATABASE_NAME, Propel::CONNECTION_READ); - $con->preSelect = 0; - Table3Peer::doSelect(new Criteria, $con); - $this->assertNotEquals($con->preSelect, 0, 'preSelect hook is called in doSelect()'); - $con->preSelect = 0; - Table3Peer::doSelectOne(new Criteria, $con); - $this->assertNotEquals($con->preSelect, 0, 'preSelect hook is called in doSelectOne()'); - $con->preSelect = 0; - Table3Peer::doCount(new Criteria, $con); - $this->assertNotEquals($con->preSelect, 0, 'preSelect hook is called in doCount()'); - $con->preSelect = 0; - Table3Peer::doSelectStmt(new Criteria, $con); - $this->assertNotEquals($con->preSelect, 0, 'preSelect hook is called in doSelectStmt()'); - // and for the doSelectJoin and doCountJoin methods, well just believe my word - - $con->preSelect = 0; - Table3Peer::doSelect(new Criteria, $con); - $this->assertEquals($con->preSelect, 'PHP5PeerBuilder', 'preSelect hook is called with the peer builder as parameter'); - } - - public function testPeerFilter() - { - Table3Peer::TABLE_NAME; - $this->assertTrue(class_exists('testPeerFilter'), 'peerFilter hook allows complete manipulation of the generated script'); - $this->assertEquals(testPeerFilter::FOO, 'PHP5PeerBuilder', 'peerFilter hook is called with the peer builder as parameter'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/SoftDeleteBehaviorTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/SoftDeleteBehaviorTest.php deleted file mode 100644 index 2f3fecb974..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/SoftDeleteBehaviorTest.php +++ /dev/null @@ -1,360 +0,0 @@ -assertEquals(count($table2->getColumns()), 3, 'SoftDelete adds one columns by default'); - $this->assertTrue(method_exists('Table4', 'getDeletedAt'), 'SoftDelete adds an updated_at column by default'); - $table1 = Table5Peer::getTableMap(); - $this->assertEquals(count($table1->getColumns()), 3, 'SoftDelete does not add a column when it already exists'); - $this->assertTrue(method_exists('Table5', 'getDeletedOn'), 'SoftDelete allows customization of deleted_column name'); - } - - public function testStaticSoftDeleteStatus() - { - $this->assertTrue(Table4Peer::isSoftDeleteEnabled(), 'The static soft delete is enabled by default'); - Table4Peer::disableSoftDelete(); - $this->assertFalse(Table4Peer::isSoftDeleteEnabled(), 'disableSoftDelete() disables the static soft delete'); - Table4Peer::enableSoftDelete(); - $this->assertTrue(Table4Peer::isSoftDeleteEnabled(), 'enableSoftDelete() enables the static soft delete'); - } - - public function testInstancePoolingAndSoftDelete() - { - Table4Peer::doForceDeleteAll($this->con); - $t = new Table4(); - $t->save($this->con); - Table4Peer::enableSoftDelete(); - $t->delete($this->con); - $t2 = Table4Peer::retrieveByPk($t->getPrimaryKey(), $this->con); - $this->assertNull($t2, 'An object is removed from the instance pool on soft deletion'); - Table4Peer::disableSoftDelete(); - $t2 = Table4Peer::retrieveByPk($t->getPrimaryKey(), $this->con); - $this->assertNotNull($t2); - Table4Peer::enableSoftDelete(); - $t2 = Table4Peer::retrieveByPk($t->getPrimaryKey(), $this->con); - $this->assertNull($t2, 'A soft deleted object is removed from the instance pool when the soft delete behavior is enabled'); - } - - public function testStaticDoForceDelete() - { - $t1 = new Table4(); - $t1->save(); - Table4Peer::doForceDelete($t1); - Table4Peer::disableSoftDelete(); - $this->assertEquals(0, Table4Peer::doCount(new Criteria()), 'doForceDelete() actually deletes records'); - } - - public function testStaticDoSoftDelete() - { - $t1 = new Table4(); - $t1->save(); - $t2 = new Table4(); - $t2->save(); - $t3 = new Table4(); - $t3->save(); - // softDelete with a criteria - $c = new Criteria(); - $c->add(Table4Peer::ID, $t1->getId()); - Table4Peer::doSoftDelete($c); - Table4Peer::disableSoftDelete(); - $this->assertEquals(3, Table4Peer::doCount(new Criteria()), 'doSoftDelete() keeps deleted record in the database'); - Table4Peer::enableSoftDelete(); - $this->assertEquals(2, Table4Peer::doCount(new Criteria()), 'doSoftDelete() marks deleted record as deleted'); - // softDelete with a value - Table4Peer::doSoftDelete(array($t2->getId())); - Table4Peer::disableSoftDelete(); - $this->assertEquals(3, Table4Peer::doCount(new Criteria()), 'doSoftDelete() keeps deleted record in the database'); - Table4Peer::enableSoftDelete(); - $this->assertEquals(1, Table4Peer::doCount(new Criteria()), 'doSoftDelete() marks deleted record as deleted'); - // softDelete with an object - Table4Peer::doSoftDelete($t3); - Table4Peer::disableSoftDelete(); - $this->assertEquals(3, Table4Peer::doCount(new Criteria()), 'doSoftDelete() keeps deleted record in the database'); - Table4Peer::enableSoftDelete(); - $this->assertEquals(0, Table4Peer::doCount(new Criteria()), 'doSoftDelete() marks deleted record as deleted'); - } - - public function testStaticDoDelete() - { - $t1 = new Table4(); - $t1->save(); - $t2 = new Table4(); - $t2->save(); - Table4Peer::disableSoftDelete(); - Table4Peer::doDelete($t1); - Table4Peer::disableSoftDelete(); - $this->assertEquals(1, Table4Peer::doCount(new Criteria()), 'doDelete() calls doForceDelete() when soft delete is disabled'); - Table4Peer::enableSoftDelete(); - Table4Peer::doDelete($t2); - Table4Peer::disableSoftDelete(); - $this->assertEquals(1, Table4Peer::doCount(new Criteria()), 'doDelete() calls doSoftDelete() when soft delete is enabled'); - Table4Peer::enableSoftDelete(); - $this->assertEquals(0, Table4Peer::doCount(new Criteria()), 'doDelete() calls doSoftDelete() when soft delete is enabled'); - } - - public function testStaticDoForceDeleteAll() - { - $t1 = new Table4(); - $t1->save(); - Table4Peer::doForceDeleteAll(); - Table4Peer::disableSoftDelete(); - $this->assertEquals(0, Table4Peer::doCount(new Criteria()), 'doForceDeleteAll() actually deletes records'); - } - - public function testStaticDoSoftDeleteAll() - { - $t1 = new Table4(); - $t1->save(); - $t2 = new Table4(); - $t2->save(); - Table4Peer::enableSoftDelete(); - Table4Peer::doSoftDeleteAll(); - Table4Peer::disableSoftDelete(); - $this->assertEquals(2, Table4Peer::doCount(new Criteria()), 'doSoftDeleteAll() keeps deleted record in the database'); - Table4Peer::enableSoftDelete(); - $this->assertEquals(0, Table4Peer::doCount(new Criteria()), 'doSoftDeleteAll() marks deleted record as deleted'); - } - - public function testStaticDoDeleteAll() - { - $t1 = new Table4(); - $t1->save(); - $t2 = new Table4(); - $t2->save(); - Table4Peer::disableSoftDelete(); - Table4Peer::doDeleteAll(); - Table4Peer::disableSoftDelete(); - $this->assertEquals(0, Table4Peer::doCount(new Criteria()), 'doDeleteAll() calls doForceDeleteAll() when soft delete is disabled'); - $t1 = new Table4(); - $t1->save(); - $t2 = new Table4(); - $t2->save(); - Table4Peer::enableSoftDelete(); - Table4Peer::doDeleteAll(); - Table4Peer::disableSoftDelete(); - $this->assertEquals(2, Table4Peer::doCount(new Criteria()), 'doDeleteAll() calls doSoftDeleteAll() when soft delete is disabled'); - Table4Peer::enableSoftDelete(); - $this->assertEquals(0, Table4Peer::doCount(new Criteria()), 'doDeleteAll() calls doSoftDeleteAll() when soft delete is disabled'); - } - - public function testSelect() - { - $t = new Table4(); - $t->setDeletedAt(123); - $t->save(); - Table4Peer::enableSoftDelete(); - $this->assertEquals(0, Table4Peer::doCount(new Criteria), 'rows with a deleted_at date are hidden for select queries'); - Table4Peer::disableSoftDelete(); - $this->assertEquals(1, Table4Peer::doCount(new Criteria), 'rows with a deleted_at date are visible for select queries once the static soft_delete is enabled'); - $this->assertTrue(Table4Peer::isSoftDeleteEnabled(), 'Executing a select query enables the static soft delete again'); - } - - public function testDelete() - { - $t = new Table4(); - $t->save(); - $this->assertNull($t->getDeletedAt(), 'deleted_column is null by default'); - $t->delete(); - $this->assertNotNull($t->getDeletedAt(), 'deleted_column is not null after a soft delete'); - $this->assertEquals(0, Table4Peer::doCount(new Criteria), 'soft deleted rows are hidden for select queries'); - Table4Peer::disableSoftDelete(); - $this->assertEquals(1, Table4Peer::doCount(new Criteria), 'soft deleted rows are still present in the database'); - } - - public function testDeleteUndeletable() - { - $t = new UndeletableTable4(); - $t->save(); - $t->delete(); - $this->assertNull($t->getDeletedAt(), 'soft_delete is not triggered for objects wit ha preDelete hook returning false'); - $this->assertEquals(1, Table4Peer::doCount(new Criteria), 'soft_delete is not triggered for objects wit ha preDelete hook returning false'); - } - - public function testUnDelete() - { - $t = new Table4(); - $t->save(); - $t->delete(); - $t->undelete(); - $this->assertNull($t->getDeletedAt(), 'deleted_column is null again after an undelete'); - $this->assertEquals(1, Table4Peer::doCount(new Criteria), 'undeleted rows are visible for select queries'); - } - - public function testForceDelete() - { - $t = new Table4(); - $t->save(); - $t->forceDelete(); - $this->assertTrue($t->isDeleted(), 'forceDelete() actually deletes a row'); - Table4Peer::disableSoftDelete(); - $this->assertEquals(0, Table4Peer::doCount(new Criteria), 'forced deleted rows are not present in the database'); - } - - public function testQueryIncludeDeleted() - { - $t = new Table4(); - $t->setDeletedAt(123); - $t->save(); - Table4Peer::enableSoftDelete(); - $this->assertEquals(0, Table4Query::create()->count(), 'rows with a deleted_at date are hidden for select queries'); - $this->assertEquals(1, Table4Query::create()->includeDeleted()->count(), 'rows with a deleted_at date are visible for select queries using includeDeleted()'); - } - - public function testQueryForceDelete() - { - $t1 = new Table4(); - $t1->save(); - Table4Query::create()->filterById($t1->getId())->forceDelete(); - Table4Peer::disableSoftDelete(); - $this->assertEquals(0, Table4Query::create()->count(), 'forceDelete() actually deletes records'); - } - - public function testQuerySoftDelete() - { - $t1 = new Table4(); - $t1->save(); - $t2 = new Table4(); - $t2->save(); - $t3 = new Table4(); - $t3->save(); - - Table4Query::create() - ->filterById($t1->getId()) - ->softDelete(); - Table4Peer::disableSoftDelete(); - $this->assertEquals(3, Table4Query::create()->count(), 'softDelete() keeps deleted record in the database'); - Table4Peer::enableSoftDelete(); - $this->assertEquals(2, Table4Query::create()->count(), 'softDelete() marks deleted record as deleted'); - } - - public function testQueryDelete() - { - $t1 = new Table4(); - $t1->save(); - $t2 = new Table4(); - $t2->save(); - - Table4Peer::disableSoftDelete(); - Table4Query::create()->filterById($t1->getId())->delete(); - Table4Peer::disableSoftDelete(); - $this->assertEquals(1, Table4Query::create()->count(), 'delete() calls forceDelete() when soft delete is disabled'); - Table4Peer::enableSoftDelete(); - Table4Query::create()->filterById($t2->getId())->delete(); - Table4Peer::disableSoftDelete(); - $this->assertEquals(1, Table4Query::create()->count(), 'delete() calls softDelete() when soft delete is enabled'); - Table4Peer::enableSoftDelete(); - $this->assertEquals(0, Table4Query::create()->count(), 'delete() calls softDelete() when soft delete is enabled'); - } - - public function testQueryForceDeleteAll() - { - $t1 = new Table4(); - $t1->save(); - Table4Query::create()->forceDeleteAll(); - Table4Peer::disableSoftDelete(); - $this->assertEquals(0, Table4Query::create()->count(), 'forceDeleteAll() actually deletes records'); - } - - public function testQuerySoftDeleteAll() - { - $t1 = new Table4(); - $t1->save(); - $t2 = new Table4(); - $t2->save(); - Table4Peer::enableSoftDelete(); - Table4Query::create()->softDelete(); - Table4Peer::disableSoftDelete(); - $this->assertEquals(2, Table4Query::create()->count(), 'softDelete() keeps deleted record in the database'); - Table4Peer::enableSoftDelete(); - $this->assertEquals(0, Table4Query::create()->count(), 'softDelete() marks deleted record as deleted'); - } - - public function testQueryDeleteAll() - { - $t1 = new Table4(); - $t1->save(); - $t2 = new Table4(); - $t2->save(); - Table4Peer::disableSoftDelete(); - Table4Query::create()->deleteAll(); - Table4Peer::disableSoftDelete(); - $this->assertEquals(0, Table4Query::create()->count(), 'deleteAll() calls forceDeleteAll() when soft delete is disabled'); - - $t1 = new Table4(); - $t1->save(); - $t2 = new Table4(); - $t2->save(); - Table4Peer::enableSoftDelete(); - Table4Query::create()->deleteAll(); - Table4Peer::disableSoftDelete(); - $this->assertEquals(2, Table4Query::create()->count(), 'deleteAll() calls softDeleteAll() when soft delete is disabled'); - Table4Peer::enableSoftDelete(); - $this->assertEquals(0, Table4Query::create()->count(), 'deleteAll() calls softDeleteAll() when soft delete is disabled'); - } - - public function testQuerySelect() - { - $t = new Table4(); - $t->setDeletedAt(123); - $t->save(); - Table4Peer::enableSoftDelete(); - $this->assertEquals(0, Table4Query::create()->count(), 'rows with a deleted_at date are hidden for select queries'); - Table4Peer::disableSoftDelete(); - $this->assertEquals(1, Table4Query::create()->count(), 'rows with a deleted_at date are visible for select queries once the static soft_delete is enabled'); - $this->assertTrue(Table4Peer::isSoftDeleteEnabled(), 'Executing a select query enables the static soft delete again'); - } - - public function testCustomization() - { - Table5Peer::disableSoftDelete(); - Table5Peer::doDeleteAll(); - Table5Peer::enableSoftDelete(); - $t = new Table5(); - $t->save(); - $this->assertNull($t->getDeletedOn(), 'deleted_column is null by default'); - $t->delete(); - $this->assertNotNull($t->getDeletedOn(), 'deleted_column is not null after a soft delete'); - $this->assertEquals(0, Table5Peer::doCount(new Criteria), 'soft deleted rows are hidden for select queries'); - Table5Peer::disableSoftDelete(); - $this->assertEquals(1, Table5Peer::doCount(new Criteria), 'soft deleted rows are still present in the database'); - } -} - -class UndeletableTable4 extends Table4 -{ - public function preDelete(PropelPDO $con = null) - { - parent::preDelete($con); - $this->setTitle('foo'); - return false; - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/TableBehaviorTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/TableBehaviorTest.php deleted file mode 100644 index 25e534f7e5..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/TableBehaviorTest.php +++ /dev/null @@ -1,34 +0,0 @@ -assertTrue($t->hasColumn('test'), 'modifyTable hook is called when building the model structure'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/TimestampableBehaviorTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/TimestampableBehaviorTest.php deleted file mode 100644 index ba80d64f8b..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/TimestampableBehaviorTest.php +++ /dev/null @@ -1,215 +0,0 @@ -assertEquals(count($table2->getColumns()), 4, 'Timestampable adds two columns by default'); - $this->assertTrue(method_exists('Table2', 'getCreatedAt'), 'Timestamplable adds a created_at column by default'); - $this->assertTrue(method_exists('Table2', 'getUpdatedAt'), 'Timestamplable adds an updated_at column by default'); - $table1 = Table1Peer::getTableMap(); - $this->assertEquals(count($table1->getColumns()), 4, 'Timestampable does not add two columns when they already exist'); - $this->assertTrue(method_exists('Table1', 'getCreatedOn'), 'Timestamplable allows customization of create_column name'); - $this->assertTrue(method_exists('Table1', 'getUpdatedOn'), 'Timestamplable allows customization of update_column name'); - } - - public function testPreSave() - { - $t1 = new Table2(); - $this->assertNull($t1->getUpdatedAt()); - $tsave = time(); - $t1->save(); - $this->assertEquals($t1->getUpdatedAt('U'), $tsave, 'Timestampable sets updated_column to time() on creation'); - sleep(1); - $t1->setTitle('foo'); - $tupdate = time(); - $t1->save(); - $this->assertEquals($t1->getUpdatedAt('U'), $tupdate, 'Timestampable changes updated_column to time() on update'); - } - - public function testPreSaveNoChange() - { - $t1 = new Table2(); - $this->assertNull($t1->getUpdatedAt()); - $tsave = time(); - $t1->save(); - $this->assertEquals($t1->getUpdatedAt('U'), $tsave, 'Timestampable sets updated_column to time() on creation'); - sleep(1); - $tupdate = time(); - $t1->save(); - $this->assertEquals($t1->getUpdatedAt('U'), $tsave, 'Timestampable only changes updated_column if the object was modified'); - } - - public function testPreSaveManuallyUpdated() - { - $t1 = new Table2(); - $t1->setUpdatedAt(time() - 10); - $tsave = time(); - $t1->save(); - $this->assertNotEquals($t1->getUpdatedAt('U'), $tsave, 'Timestampable does not set updated_column to time() on creation when it is set by the user'); - // tip: if I set it to time()-10 a second time, the object sees that I want to change it to the same value - // and skips the update, therefore the updated_at is not in the list of modified columns, - // and the behavior changes it to the current date... let's say it's an edge case - $t1->setUpdatedAt(time() - 15); - $tupdate = time(); - $t1->save(); - $this->assertNotEquals($t1->getUpdatedAt('U'), $tupdate, 'Timestampable does not change updated_column to time() on update when it is set by the user'); - } - - public function testPreInsert() - { - $t1 = new Table2(); - $this->assertNull($t1->getCreatedAt()); - $tsave = time(); - $t1->save(); - $this->assertEquals($t1->getCreatedAt('U'), $tsave, 'Timestampable sets created_column to time() on creation'); - sleep(1); - $t1->setTitle('foo'); - $tupdate = time(); - $t1->save(); - $this->assertEquals($t1->getCreatedAt('U'), $tsave, 'Timestampable does not update created_column on update'); - } - - public function testPreInsertManuallyUpdated() - { - $t1 = new Table2(); - $t1->setCreatedAt(time() - 10); - $tsave = time(); - $t1->save(); - $this->assertNotEquals($t1->getCreatedAt('U'), $tsave, 'Timestampable does not set created_column to time() on creation when it is set by the user'); - } - - public function testObjectKeepUpdateDateUnchanged() - { - $t1 = new Table2(); - $t1->setUpdatedAt(time() - 10); - $tsave = time(); - $t1->save(); - $this->assertNotEquals($t1->getUpdatedAt('U'), $tsave); - // let's save it a second time; the updated_at should be changed - $t1->setTitle('foo'); - $tsave = time(); - $t1->save(); - $this->assertEquals($t1->getUpdatedAt('U'), $tsave); - - // now let's do this a second time - $t1 = new Table2(); - $t1->setUpdatedAt(time() - 10); - $tsave = time(); - $t1->save(); - $this->assertNotEquals($t1->getUpdatedAt('U'), $tsave); - // let's save it a second time; the updated_at should be changed - $t1->keepUpdateDateUnchanged(); - $t1->setTitle('foo'); - $tsave = time(); - $t1->save(); - $this->assertNotEquals($t1->getUpdatedAt('U'), $tsave, 'keepUpdateDateUnchanged() prevents the behavior from updating the update date'); - - } - - protected function populateUpdatedAt() - { - Table2Query::create()->deleteAll(); - $ts = new PropelObjectCollection(); - $ts->setModel('Table2'); - for ($i=0; $i < 10; $i++) { - $t = new Table2(); - $t->setTitle('UpdatedAt' . $i); - $t->setUpdatedAt(time() - $i * 24 * 60 * 60); - $ts[]= $t; - } - $ts->save(); - } - - protected function populateCreatedAt() - { - Table2Query::create()->deleteAll(); - $ts = new PropelObjectCollection(); - $ts->setModel('Table2'); - for ($i=0; $i < 10; $i++) { - $t = new Table2(); - $t->setTitle('CreatedAt' . $i); - $t->setCreatedAt(time() - $i * 24 * 60 * 60); - $ts[]= $t; - } - $ts->save(); - } - - public function testQueryRecentlyUpdated() - { - $q = Table2Query::create()->recentlyUpdated(); - $this->assertTrue($q instanceof Table2Query, 'recentlyUpdated() returns the current Query object'); - $this->populateUpdatedAt(); - $ts = Table2Query::create()->recentlyUpdated()->count(); - $this->assertEquals(8, $ts, 'recentlyUpdated() returns the elements updated in the last 7 days by default'); - $ts = Table2Query::create()->recentlyUpdated(5)->count(); - $this->assertEquals(6, $ts, 'recentlyUpdated() accepts a number of days as parameter'); - } - - public function testQueryRecentlyCreated() - { - $q = Table2Query::create()->recentlyCreated(); - $this->assertTrue($q instanceof Table2Query, 'recentlyCreated() returns the current Query object'); - $this->populateCreatedAt(); - $ts = Table2Query::create()->recentlyCreated()->count(); - $this->assertEquals(8, $ts, 'recentlyCreated() returns the elements created in the last 7 days by default'); - $ts = Table2Query::create()->recentlyCreated(5)->count(); - $this->assertEquals(6, $ts, 'recentlyCreated() accepts a number of days as parameter'); - } - - public function testQueryLastUpdatedFirst() - { - $q = Table2Query::create()->lastUpdatedFirst(); - $this->assertTrue($q instanceof Table2Query, 'lastUpdatedFirst() returns the current Query object'); - $this->populateUpdatedAt(); - $t = Table2Query::create()->lastUpdatedFirst()->findOne(); - $this->assertEquals('UpdatedAt0', $t->getTitle(), 'lastUpdatedFirst() returns element with most recent update date first'); - } - - public function testQueryFirstUpdatedFirst() - { - $q = Table2Query::create()->firstUpdatedFirst(); - $this->assertTrue($q instanceof Table2Query, 'firstUpdatedFirst() returns the current Query object'); - $this->populateUpdatedAt(); - $t = Table2Query::create()->firstUpdatedFirst()->findOne(); - $this->assertEquals('UpdatedAt9', $t->getTitle(), 'firstUpdatedFirst() returns the element with oldest updated date first'); - } - - public function testQueryLastCreatedFirst() - { - $q = Table2Query::create()->lastCreatedFirst(); - $this->assertTrue($q instanceof Table2Query, 'lastCreatedFirst() returns the current Query object'); - $this->populateCreatedAt(); - $t = Table2Query::create()->lastCreatedFirst()->findOne(); - $this->assertEquals('CreatedAt0', $t->getTitle(), 'lastCreatedFirst() returns element with most recent create date first'); - } - - public function testQueryFirstCreatedFirst() - { - $q = Table2Query::create()->firstCreatedFirst(); - $this->assertTrue($q instanceof Table2Query, 'firstCreatedFirst() returns the current Query object'); - $this->populateCreatedAt(); - $t = Table2Query::create()->firstCreatedFirst()->findOne(); - $this->assertEquals('CreatedAt9', $t->getTitle(), 'firstCreatedFirst() returns the element with oldest create date first'); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/aggregate_column/AggregateColumnBehaviorTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/aggregate_column/AggregateColumnBehaviorTest.php deleted file mode 100644 index 3019727c54..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/aggregate_column/AggregateColumnBehaviorTest.php +++ /dev/null @@ -1,254 +0,0 @@ -assertEquals(count($postTable->getColumns()), 2, 'AggregateColumn adds one column by default'); - $this->assertTrue(method_exists('AggregatePost', 'getNbComments')); - } - - public function testCompute() - { - AggregateCommentQuery::create()->deleteAll($this->con); - AggregatePostQuery::create()->deleteAll($this->con); - $post = new AggregatePost(); - $post->save($this->con); - $this->assertEquals(0, $post->computeNbComments($this->con), 'The compute method returns 0 for objects with no related objects'); - $comment1 = new AggregateComment(); - $comment1->setAggregatePost($post); - $comment1->save($this->con); - $this->assertEquals(1, $post->computeNbComments($this->con), 'The compute method computes the aggregate function on related objects'); - $comment2 = new AggregateComment(); - $comment2->setAggregatePost($post); - $comment2->save($this->con); - $this->assertEquals(2, $post->computeNbComments($this->con), 'The compute method computes the aggregate function on related objects'); - $comment1->delete($this->con); - $this->assertEquals(1, $post->computeNbComments($this->con), 'The compute method computes the aggregate function on related objects'); - } - - public function testUpdate() - { - AggregateCommentQuery::create()->deleteAll($this->con); - AggregatePostQuery::create()->deleteAll($this->con); - $post = new AggregatePost(); - $post->save($this->con); - $comment = new TestableComment(); - $comment->setAggregatePost($post); - $comment->save($this->con); - $this->assertNull($post->getNbComments()); - $post->updateNbComments($this->con); - $this->assertEquals(1, $post->getNbComments(), 'The update method updates the aggregate column'); - $comment->delete($this->con); - $this->assertEquals(1, $post->getNbComments()); - $post->updateNbComments($this->con); - $this->assertEquals(0, $post->getNbComments(), 'The update method updates the aggregate column'); - } - - public function testCreateRelated() - { - AggregateCommentQuery::create()->deleteAll($this->con); - AggregatePostQuery::create()->deleteAll($this->con); - $post = new AggregatePost(); - $post->save($this->con); - $comment1 = new AggregateComment(); - $comment1->save($this->con); - $this->assertNull($post->getNbComments(), 'Adding a new foreign object does not update the aggregate column'); - $comment2 = new AggregateComment(); - $comment2->setAggregatePost($post); - $comment2->save($this->con); - $this->assertEquals(1, $post->getNbComments(), 'Adding a new related object updates the aggregate column'); - $comment3 = new AggregateComment(); - $comment3->setAggregatePost($post); - $comment3->save($this->con); - $this->assertEquals(2, $post->getNbComments(), 'Adding a new related object updates the aggregate column'); - } - - public function testUpdateRelated() - { - list($poll, $item1, $item2) = $this->populatePoll(); - $this->assertEquals(19, $poll->getTotalScore()); - $item1->setScore(10); - $item1->save($this->con); - $this->assertEquals(17, $poll->getTotalScore(), 'Updating a related object updates the aggregate column'); - } - - public function testDeleteRelated() - { - list($poll, $item1, $item2) = $this->populatePoll(); - $this->assertEquals(19, $poll->getTotalScore()); - $item1->delete($this->con); - $this->assertEquals(7, $poll->getTotalScore(), 'Deleting a related object updates the aggregate column'); - $item2->delete($this->con); - $this->assertNull($poll->getTotalScore(), 'Deleting a related object updates the aggregate column'); - } - - public function testUpdateRelatedWithQuery() - { - list($poll, $item1, $item2) = $this->populatePoll(); - $this->assertEquals(19, $poll->getTotalScore()); - AggregateItemQuery::create() - ->update(array('Score' => 4), $this->con); - $this->assertEquals(8, $poll->getTotalScore(), 'Updating related objects with a query updates the aggregate column'); - } - - public function testUpdateRelatedWithQueryUsingAlias() - { - list($poll, $item1, $item2) = $this->populatePoll(); - $this->assertEquals(19, $poll->getTotalScore()); - AggregateItemQuery::create() - ->setModelAlias('foo', true) - ->update(array('Score' => 4), $this->con); - $this->assertEquals(8, $poll->getTotalScore(), 'Updating related objects with a query using alias updates the aggregate column'); - } - - public function testDeleteRelatedWithQuery() - { - list($poll, $item1, $item2) = $this->populatePoll(); - $this->assertEquals(19, $poll->getTotalScore()); - AggregateItemQuery::create() - ->deleteAll($this->con); - $this->assertNull($poll->getTotalScore(), 'Deleting related objects with a query updates the aggregate column'); - } - - public function testDeleteRelatedWithQueryUsingAlias() - { - list($poll, $item1, $item2) = $this->populatePoll(); - $this->assertEquals(19, $poll->getTotalScore()); - AggregateItemQuery::create() - ->setModelAlias('foo', true) - ->filterById($item1->getId()) - ->delete($this->con); - $this->assertEquals(7, $poll->getTotalScore(), 'Deleting related objects with a query using alias updates the aggregate column'); - } - - public function testRemoveRelation() - { - AggregateCommentQuery::create()->deleteAll($this->con); - AggregatePostQuery::create()->deleteAll($this->con); - $post = new AggregatePost(); - $post->save($this->con); - $comment1 = new AggregateComment(); - $comment1->setAggregatePost($post); - $comment1->save($this->con); - $comment2 = new AggregateComment(); - $comment2->setAggregatePost($post); - $comment2->save($this->con); - $this->assertEquals(2, $post->getNbComments()); - $comment2->setAggregatePost(null); - $comment2->save($this->con); - $this->assertEquals(1, $post->getNbComments(), 'Removing a relation changes the related object aggregate column'); - } - - public function testReplaceRelation() - { - AggregateCommentQuery::create()->deleteAll($this->con); - AggregatePostQuery::create()->deleteAll($this->con); - $post1 = new AggregatePost(); - $post1->save($this->con); - $post2 = new AggregatePost(); - $post2->save($this->con); - $comment = new AggregateComment(); - $comment->setAggregatePost($post1); - $comment->save($this->con); - $this->assertEquals(1, $post1->getNbComments()); - $this->assertNull($post2->getNbComments()); - $comment->setAggregatePost($post2); - $comment->save($this->con); - $this->assertEquals(0, $post1->getNbComments(), 'Replacing a relation changes the related object aggregate column'); - $this->assertEquals(1, $post2->getNbComments(), 'Replacing a relation changes the related object aggregate column'); - } - - protected function populatePoll() - { - AggregateItemQuery::create()->deleteAll($this->con); - AggregatePollQuery::create()->deleteAll($this->con); - $poll = new AggregatePoll(); - $poll->save($this->con); - $item1 = new AggregateItem(); - $item1->setScore(12); - $item1->setAggregatePoll($poll); - $item1->save($this->con); - $item2 = new AggregateItem(); - $item2->setScore(7); - $item2->setAggregatePoll($poll); - $item2->save($this->con); - return array($poll, $item1, $item2); - } - -} - -class TestableComment extends AggregateComment -{ - // overrides the parent save() to bypass behavior hooks - public function save(PropelPDO $con = null) - { - $con->beginTransaction(); - try { - $affectedRows = $this->doSave($con); - AggregateCommentPeer::addInstanceToPool($this); - $con->commit(); - return $affectedRows; - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - - // overrides the parent delete() to bypass behavior hooks - public function delete(PropelPDO $con = null) - { - $con->beginTransaction(); - try { - TestableAggregateCommentQuery::create() - ->filterByPrimaryKey($this->getPrimaryKey()) - ->delete($con); - $con->commit(); - $this->setDeleted(true); - } catch (PropelException $e) { - $con->rollBack(); - throw $e; - } - } - -} - -class TestableAggregateCommentQuery extends AggregateCommentQuery -{ - public static function create($modelAlias = null, $criteria = null) - { - return new TestableAggregateCommentQuery(); - } - - // overrides the parent basePreDelete() to bypass behavior hooks - protected function basePreDelete(PropelPDO $con) - { - return $this->preDelete($con); - } - - // overrides the parent basePostDelete() to bypass behavior hooks - protected function basePostDelete($affectedRows, PropelPDO $con) - { - return $this->postDelete($affectedRows, $con); - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/concrete_inheritance/ConcreteInheritanceBehaviorTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/concrete_inheritance/ConcreteInheritanceBehaviorTest.php deleted file mode 100644 index 8c86fa122d..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/concrete_inheritance/ConcreteInheritanceBehaviorTest.php +++ /dev/null @@ -1,202 +0,0 @@ -getBehaviors(); - $this->assertTrue(array_key_exists('concrete_inheritance_parent', $behaviors), 'modifyTable() gives the parent table the concrete_inheritance_parent behavior'); - $this->assertEquals('descendant_class', $behaviors['concrete_inheritance_parent']['descendant_column'], 'modifyTable() passed the descendent_column parameter to the parent behavior'); - } - - public function testModifyTableAddsParentColumn() - { - $contentColumns = array('id', 'title', 'category_id'); - $article = ConcreteArticlePeer::getTableMap(); - foreach ($contentColumns as $column) { - $this->assertTrue($article->containsColumn($column), 'modifyTable() adds the columns of the parent table'); - } - $quizz = ConcreteQuizzPeer::getTableMap(); - $this->assertEquals(3, count($quizz->getColumns()), 'modifyTable() does not add a column of the parent table if a similar column exists'); - } - - public function testModifyTableCopyDataAddsOneToOneRelationships() - { - $article = ConcreteArticlePeer::getTableMap(); - $this->assertTrue($article->hasRelation('ConcreteContent'), 'modifyTable() adds a relationship to the parent'); - $relation = $article->getRelation('ConcreteContent'); - $this->assertEquals(RelationMap::MANY_TO_ONE, $relation->getType(), 'modifyTable adds a one-to-one relationship'); - $content = ConcreteContentPeer::getTableMap(); - $relation = $content->getRelation('ConcreteArticle'); - $this->assertEquals(RelationMap::ONE_TO_ONE, $relation->getType(), 'modifyTable adds a one-to-one relationship'); - } - - public function testModifyTableNoCopyDataNoParentRelationship() - { - $quizz = ConcreteQuizzPeer::getTableMap(); - $this->assertFalse($quizz->hasRelation('ConcreteContent'), 'modifyTable() does not add a relationship to the parent when copy_data is false'); - } - - public function testModifyTableCopyDataRemovesAutoIncrement() - { - $content = new ConcreteContent(); - $content->save(); - $c = new Criteria; - $c->add(ConcreteArticlePeer::ID, $content->getId()); - try { - ConcreteArticlePeer::doInsert($c); - $this->assertTrue(true, 'modifyTable() removed autoIncrement from copied Primary keys'); - } catch (PropelException $e) { - $this->fail('modifyTable() removed autoIncrement from copied Primary keys'); - } - } - - /** - * @expectedException PropelException - */ - public function testModifyTableNoCopyDataKeepsAutoIncrement() - { - $content = new ConcreteContent(); - $content->save(); - $c = new Criteria; - $c->add(ConcreteQuizzPeer::ID, $content->getId()); - ConcreteQuizzPeer::doInsert($c); - } - - public function testModifyTableAddsForeignKeys() - { - $article = ConcreteArticlePeer::getTableMap(); - $this->assertTrue($article->hasRelation('ConcreteCategory'), 'modifyTable() copies relationships from parent table'); - } - - public function testModifyTableAddsForeignKeysWithoutDuplicates() - { - $article = ConcreteAuthorPeer::getTableMap(); - $this->assertTrue($article->hasRelation('ConcreteNews'), 'modifyTable() copies relationships from parent table and removes hardcoded refPhpName'); - } - - public function testModifyTableAddsValidators() - { - $article = ConcreteArticlePeer::getTableMap(); - $this->assertTrue($article->getColumn('title')->hasValidators(), 'modifyTable() copies validators from parent table'); - } - - // no way to test copying of indices and uniques, except by reverse engineering the db... - - public function testParentObjectClass() - { - $article = new ConcreteArticle(); // to autoload the BaseConcreteArticle class - $r = new ReflectionClass('BaseConcreteArticle'); - $this->assertEquals('ConcreteContent', $r->getParentClass()->getName(), 'concrete_inheritance changes the parent class of the Model Object to the parent object class'); - $quizz = new ConcreteQuizz(); // to autoload the BaseConcreteQuizz class - $r = new ReflectionClass('BaseConcreteQuizz'); - $this->assertEquals('ConcreteContent', $r->getParentClass()->getName(), 'concrete_inheritance changes the parent class of the Model Object to the parent object class'); - } - - public function testParentQueryClass() - { - $q = new ConcreteArticleQuery(); // to autoload the BaseConcreteArticleQuery class - $r = new ReflectionClass('BaseConcreteArticleQuery'); - $this->assertEquals('ConcreteContentQuery', $r->getParentClass()->getName(), 'concrete_inheritance changes the parent class of the Query Object to the parent object class'); - $q = new ConcreteQuizzQuery(); // to autoload the BaseConcreteQuizzQuery class - $r = new ReflectionClass('BaseConcreteQuizzQuery'); - $this->assertEquals('ConcreteContentQuery', $r->getParentClass()->getName(), 'concrete_inheritance changes the parent class of the Query Object to the parent object class'); - } - - public function testPreSaveCopyData() - { - ConcreteArticleQuery::create()->deleteAll(); - ConcreteQuizzQuery::create()->deleteAll(); - ConcreteContentQuery::create()->deleteAll(); - ConcreteCategoryQuery::create()->deleteAll(); - $category = new ConcreteCategory(); - $category->setName('main'); - $article = new ConcreteArticle(); - $article->setConcreteCategory($category); - $article->save(); - $this->assertNotNull($article->getId()); - $this->assertNotNull($category->getId()); - $content = ConcreteContentQuery::create()->findPk($article->getId()); - $this->assertNotNull($content); - $this->assertEquals($category->getId(), $content->getCategoryId()); - } - - public function testPreSaveNoCopyData() - { - ConcreteArticleQuery::create()->deleteAll(); - ConcreteQuizzQuery::create()->deleteAll(); - ConcreteContentQuery::create()->deleteAll(); - $quizz = new ConcreteQuizz(); - $quizz->save(); - $this->assertNotNull($quizz->getId()); - $content = ConcreteContentQuery::create()->findPk($quizz->getId()); - $this->assertNull($content); - } - - public function testGetParentOrCreateNew() - { - $article = new ConcreteArticle(); - $content = $article->getParentOrCreate(); - $this->assertTrue($content instanceof ConcreteContent, 'getParentOrCreate() returns an instance of the parent class'); - $this->assertTrue($content->isNew(), 'getParentOrCreate() returns a new instance of the parent class if the object is new'); - $this->assertEquals('ConcreteArticle', $content->getDescendantClass(), 'getParentOrCreate() correctly sets the descendant_class of the parent object'); - } - - public function testGetParentOrCreateExisting() - { - $article = new ConcreteArticle(); - $article->save(); - ConcreteContentPeer::clearInstancePool(); - $content = $article->getParentOrCreate(); - $this->assertTrue($content instanceof ConcreteContent, 'getParentOrCreate() returns an instance of the parent class'); - $this->assertFalse($content->isNew(), 'getParentOrCreate() returns an existing instance of the parent class if the object is persisted'); - $this->assertEquals($article->getId(), $content->getId(), 'getParentOrCreate() returns the parent object related to the current object'); - } - - public function testGetSyncParent() - { - $category = new ConcreteCategory(); - $category->setName('main'); - $article = new ConcreteArticle(); - $article->setTitle('FooBar'); - $article->setConcreteCategory($category); - $content = $article->getSyncParent(); - $this->assertEquals('FooBar', $content->getTitle(), 'getSyncParent() returns a synchronized parent object'); - $this->assertEquals($category, $content->getConcreteCategory(), 'getSyncParent() returns a synchronized parent object'); - } - - public function testPostDeleteCopyData() - { - ConcreteArticleQuery::create()->deleteAll(); - ConcreteQuizzQuery::create()->deleteAll(); - ConcreteContentQuery::create()->deleteAll(); - ConcreteCategoryQuery::create()->deleteAll(); - $category = new ConcreteCategory(); - $category->setName('main'); - $article = new ConcreteArticle(); - $article->setConcreteCategory($category); - $article->save(); - $id = $article->getId(); - $article->delete(); - $this->assertNull(ConcreteContentQuery::create()->findPk($id), 'delete() removes the parent record as well'); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/concrete_inheritance/ConcreteInheritanceParentBehaviorTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/concrete_inheritance/ConcreteInheritanceParentBehaviorTest.php deleted file mode 100644 index b62cd3d00b..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/concrete_inheritance/ConcreteInheritanceParentBehaviorTest.php +++ /dev/null @@ -1,53 +0,0 @@ -deleteAll(); - ConcreteQuizzQuery::create()->deleteAll(); - ConcreteContentQuery::create()->deleteAll(); - $content = new ConcreteContent(); - $content->save(); - $this->assertFalse($content->hasChildObject()); - - $article = new ConcreteArticle(); - $article->save(); - $content = $article->getConcreteContent(); - $this->assertTrue($content->hasChildObject()); - } - - public function testGetChildObject() - { - ConcreteArticleQuery::create()->deleteAll(); - ConcreteQuizzQuery::create()->deleteAll(); - ConcreteContentQuery::create()->deleteAll(); - $content = new ConcreteContent(); - $content->save(); - $this->assertNull($content->getChildObject()); - - $article = new ConcreteArticle(); - $article->save(); - $content = $article->getConcreteContent(); - $this->assertEquals($article, $content->getChildObject()); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorObjectBuilderModifierTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorObjectBuilderModifierTest.php deleted file mode 100644 index 2abb542d1d..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorObjectBuilderModifierTest.php +++ /dev/null @@ -1,1351 +0,0 @@ -setTreeLeft('123'); - $this->assertEquals($t->getLeftValue(), '123', 'nested_set adds a getLeftValue() method'); - $t->setTreeRight('456'); - $this->assertEquals($t->getRightValue(), '456', 'nested_set adds a getRightValue() method'); - $t->setLevel('789'); - $this->assertEquals($t->getLevel(), '789', 'nested_set adds a getLevel() method'); - } - - public function testParameters() - { - $t = new Table10(); - $t->setMyLeftColumn('123'); - $this->assertEquals($t->getLeftValue(), '123', 'nested_set adds a getLeftValue() method'); - $t->setMyRightColumn('456'); - $this->assertEquals($t->getRightValue(), '456', 'nested_set adds a getRightValue() method'); - $t->setMyLevelColumn('789'); - $this->assertEquals($t->getLevel(), '789', 'nested_set adds a getLevel() method'); - $t->setMyScopeColumn('012'); - $this->assertEquals($t->getScopeValue(), '012', 'nested_set adds a getScopeValue() method'); - } - - public function testObjectAttributes() - { - $expectedAttributes = array('nestedSetQueries'); - foreach ($expectedAttributes as $attribute) { - $this->assertClassHasAttribute($attribute, 'Table9'); - } - } - - public function testSaveOutOfTree() - { - Table9Peer::doDeleteAll(); - $t1 = new Table9(); - $t1->setTitle('t1'); - try { - $t1->save(); - $this->assertTrue(true, 'A node can be saved without valid tree information'); - } catch (Exception $e) { - $this->fail('A node can be saved without valid tree information'); - } - try { - $t1->makeRoot(); - $this->assertTrue(true, 'A saved node can be turned into root'); - } catch (Exception $e) { - $this->fail('A saved node can be turned into root'); - } - $t1->save(); - $t2 = new Table9(); - $t2->setTitle('t1'); - $t2->save(); - try { - $t2->insertAsFirstChildOf($t1); - $this->assertTrue(true, 'A saved node can be inserted into the tree'); - } catch (Exception $e) { - $this->fail('A saved node can be inserted into the tree'); - } - try { - $t2->save(); - $this->assertTrue(true, 'A saved node can be inserted into the tree'); - } catch (Exception $e) { - $this->fail('A saved node can be inserted into the tree'); - } - } - - public function testPreUpdate() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - $t3->setLeftValue(null); - try { - $t3->save(); - $this->fail('Trying to save a node incorrectly updated throws an exception'); - } catch (Exception $e) { - $this->assertTrue(true, 'Trying to save a node incorrectly updated throws an exception'); - } - } - - public function testDelete() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $t5->delete(); - $this->assertEquals(13, $t3->getRightValue(), 'delete() does not update existing nodes (because delete() clears the instance cache)'); - $expected = array( - 't1' => array(1, 8, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 7, 1), - 't4' => array(5, 6, 2), - ); - $this->assertEquals($expected, $this->dumpTree(), 'delete() deletes all descendants and shifts the entire subtree correctly'); - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - try { - $t1->delete(); - $this->fail('delete() throws an exception when called on a root node'); - } catch (PropelException $e) { - $this->assertTrue(true, 'delete() throws an exception when called on a root node'); - } - $this->assertNotEquals(array(), Table9Peer::doSelect(new Criteria()), 'delete() called on the root node does not delete the whole tree'); - } - - public function testMakeRoot() - { - $t = new Table9(); - $t->makeRoot(); - $this->assertEquals($t->getLeftValue(), 1, 'makeRoot() initializes left_column to 1'); - $this->assertEquals($t->getRightValue(), 2, 'makeRoot() initializes right_column to 2'); - $this->assertEquals($t->getLevel(), 0, 'makeRoot() initializes right_column to 0'); - $t = new Table9(); - $t->setLeftValue(12); - try { - $t->makeRoot(); - $this->fail('makeRoot() throws an exception when called on an object with a left_column value'); - } catch (PropelException $e) { - $this->assertTrue(true, 'makeRoot() throws an exception when called on an object with a left_column value'); - } - } - - public function testIsInTree() - { - $t1 = new Table9(); - $this->assertFalse($t1->isInTree(), 'inInTree() returns false for nodes with no left and right value'); - $t1->save(); - $this->assertFalse($t1->isInTree(), 'inInTree() returns false for saved nodes with no left and right value'); - $t1->setLeftValue(1)->setRightValue(0); - $this->assertFalse($t1->isInTree(), 'inInTree() returns false for nodes with zero left value'); - $t1->setLeftValue(0)->setRightValue(1); - $this->assertFalse($t1->isInTree(), 'inInTree() returns false for nodes with zero right value'); - $t1->setLeftValue(1)->setRightValue(1); - $this->assertFalse($t1->isInTree(), 'inInTree() returns false for nodes with equal left and right value'); - $t1->setLeftValue(1)->setRightValue(2); - $this->assertTrue($t1->isInTree(), 'inInTree() returns true for nodes with left < right value'); - $t1->setLeftValue(2)->setRightValue(1); - $this->assertFalse($t1->isInTree(), 'inInTree() returns false for nodes with left > right value'); - } - - public function testIsRoot() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertTrue($t1->isRoot(), 'root is seen as root'); - $this->assertFalse($t2->isRoot(), 'leaf is not seen as root'); - $this->assertFalse($t3->isRoot(), 'node is not seen as root'); - } - - public function testIsLeaf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertFalse($t1->isLeaf(), 'root is not seen as leaf'); - $this->assertTrue($t2->isLeaf(), 'leaf is seen as leaf'); - $this->assertFalse($t3->isLeaf(), 'node is not seen as leaf'); - } - - public function testIsDescendantOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertFalse($t1->isDescendantOf($t1), 'root is not seen as a descendant of root'); - $this->assertTrue($t2->isDescendantOf($t1), 'direct child is seen as a descendant of root'); - $this->assertFalse($t1->isDescendantOf($t2), 'root is not seen as a descendant of leaf'); - $this->assertTrue($t5->isDescendantOf($t1), 'grandchild is seen as a descendant of root'); - $this->assertTrue($t5->isDescendantOf($t3), 'direct child is seen as a descendant of node'); - $this->assertFalse($t3->isDescendantOf($t5), 'node is not seen as a descendant of its parent'); - } - - public function testIsAncestorOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertFalse($t1->isAncestorOf($t1), 'root is not seen as an ancestor of root'); - $this->assertTrue($t1->isAncestorOf($t2), 'root is seen as an ancestor of direct child'); - $this->assertFalse($t2->isAncestorOf($t1), 'direct child is not seen as an ancestor of root'); - $this->assertTrue($t1->isAncestorOf($t5), 'root is seen as an ancestor of grandchild'); - $this->assertTrue($t3->isAncestorOf($t5), 'parent is seen as an ancestor of node'); - $this->assertFalse($t5->isAncestorOf($t3), 'child is not seen as an ancestor of its parent'); - } - - public function testHasParent() - { - Table9Peer::doDeleteAll(); - $t0 = new Table9(); - $t1 = new Table9(); - $t1->setTitle('t1')->setLeftValue(1)->setRightValue(6)->setLevel(0)->save(); - $t2 = new Table9(); - $t2->setTitle('t2')->setLeftValue(2)->setRightValue(5)->setLevel(1)->save(); - $t3 = new Table9(); - $t3->setTitle('t3')->setLeftValue(3)->setRightValue(4)->setLevel(2)->save(); - $this->assertFalse($t0->hasParent(), 'empty node has no parent'); - $this->assertFalse($t1->hasParent(), 'root node has no parent'); - $this->assertTrue($t2->hasParent(), 'not root node has a parent'); - $this->assertTrue($t3->hasParent(), 'leaf node has a parent'); - } - - public function testGetParent() - { - Table9Peer::doDeleteAll(); - $t0 = new Table9(); - $this->assertFalse($t0->hasParent(), 'empty node has no parent'); - $t1 = new Table9(); - $t1->setTitle('t1')->setLeftValue(1)->setRightValue(8)->setLevel(0)->save(); - $t2 = new Table9(); - $t2->setTitle('t2')->setLeftValue(2)->setRightValue(7)->setLevel(1)->save(); - $t3 = new Table9(); - $t3->setTitle('t3')->setLeftValue(3)->setRightValue(4)->setLevel(2)->save(); - $t4 = new Table9(); - $t4->setTitle('t4')->setLeftValue(5)->setRightValue(6)->setLevel(2)->save(); - $this->assertNull($t1->getParent($this->con), 'getParent() return null for root nodes'); - $this->assertEquals($t2->getParent($this->con), $t1, 'getParent() correctly retrieves parent for nodes'); - $this->assertEquals($t3->getParent($this->con), $t2, 'getParent() correctly retrieves parent for leafs'); - $this->assertEquals($t4->getParent($this->con), $t2, 'getParent() retrieves the same parent for two siblings'); - } - - public function testGetParentCache() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $con = Propel::getConnection(); - $count = $con->getQueryCount(); - $parent = $t5->getParent($con); - $parent = $t5->getParent($con); - $this->assertEquals($count + 1, $con->getQueryCount(), 'getParent() only issues a query once'); - $this->assertEquals('t3', $parent->getTitle(), 'getParent() returns the parent Node'); - } - - public function testHasPrevSibling() - { - Table9Peer::doDeleteAll(); - $t0 = new Table9(); - $t1 = new Table9(); - $t1->setTitle('t1')->setLeftValue(1)->setRightValue(6)->save(); - $t2 = new Table9(); - $t2->setTitle('t2')->setLeftValue(2)->setRightValue(3)->save(); - $t3 = new Table9(); - $t3->setTitle('t3')->setLeftValue(4)->setRightValue(5)->save(); - $this->assertFalse($t0->hasPrevSibling(), 'empty node has no previous sibling'); - $this->assertFalse($t1->hasPrevSibling(), 'root node has no previous sibling'); - $this->assertFalse($t2->hasPrevSibling(), 'first sibling has no previous sibling'); - $this->assertTrue($t3->hasPrevSibling(), 'not first sibling has a previous siblingt'); - } - - public function testGetPrevSibling() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertNull($t1->getPrevSibling($this->con), 'getPrevSibling() returns null for root nodes'); - $this->assertNull($t2->getPrevSibling($this->con), 'getPrevSibling() returns null for first siblings'); - $this->assertEquals($t3->getPrevSibling($this->con), $t2, 'getPrevSibling() correctly retrieves prev sibling'); - $this->assertNull($t6->getPrevSibling($this->con), 'getPrevSibling() returns null for first siblings'); - $this->assertEquals($t7->getPrevSibling($this->con), $t6, 'getPrevSibling() correctly retrieves prev sibling'); - } - - public function testHasNextSibling() - { - Table9Peer::doDeleteAll(); - $t0 = new Table9(); - $t1 = new Table9(); - $t1->setTitle('t1')->setLeftValue(1)->setRightValue(6)->save(); - $t2 = new Table9(); - $t2->setTitle('t2')->setLeftValue(2)->setRightValue(3)->save(); - $t3 = new Table9(); - $t3->setTitle('t3')->setLeftValue(4)->setRightValue(5)->save(); - $this->assertFalse($t0->hasNextSibling(), 'empty node has no next sibling'); - $this->assertFalse($t1->hasNextSibling(), 'root node has no next sibling'); - $this->assertTrue($t2->hasNextSibling(), 'not last sibling has a next sibling'); - $this->assertFalse($t3->hasNextSibling(), 'last sibling has no next sibling'); - } - - public function testGetNextSibling() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertNull($t1->getNextSibling($this->con), 'getNextSibling() returns null for root nodes'); - $this->assertEquals($t2->getNextSibling($this->con), $t3, 'getNextSibling() correctly retrieves next sibling'); - $this->assertNull($t3->getNextSibling($this->con), 'getNextSibling() returns null for last siblings'); - $this->assertEquals($t6->getNextSibling($this->con), $t7, 'getNextSibling() correctly retrieves next sibling'); - $this->assertNull($t7->getNextSibling($this->con), 'getNextSibling() returns null for last siblings'); - } - - public function testAddNestedSetChildren() - { - $t0 = new Table9(); - $t1 = new Table9(); - $t2 = new Table9(); - $t0->addNestedSetChild($t1); - $t0->addNestedSetChild($t2); - $this->assertEquals(2, $t0->countChildren(), 'addNestedSetChild() adds the object to the internal children collection'); - $this->assertEquals($t0, $t1->getParent(), 'addNestedSetChild() sets the object as th parent of the parameter'); - $this->assertEquals($t0, $t2->getParent(), 'addNestedSetChild() sets the object as th parent of the parameter'); - } - - public function testHasChildren() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertTrue($t1->hasChildren(), 'root has children'); - $this->assertFalse($t2->hasChildren(), 'leaf has no children'); - $this->assertTrue($t3->hasChildren(), 'node has children'); - } - - public function testGetChildren() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertTrue($t2->getChildren() instanceof PropelObjectCollection, 'getChildren() returns a collection'); - $this->assertEquals(0, count($t2->getChildren()), 'getChildren() returns an empty collection for leafs'); - $children = $t3->getChildren(); - $expected = array( - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - ); - $this->assertEquals($expected, $this->dumpNodes($children, true), 'getChildren() returns a collection of children'); - $c = new Criteria(); - $c->add(Table9Peer::TITLE, 't5'); - $children = $t3->getChildren($c); - $expected = array( - 't5' => array(7, 12, 2), - ); - $this->assertEquals($expected, $this->dumpNodes($children, true), 'getChildren() accepts a criteria as parameter'); - } - - public function testGetChildrenCache() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - $con = Propel::getConnection(); - $count = $con->getQueryCount(); - $children = $t3->getChildren(null, $con); - $children = $t3->getChildren(null, $con); - $this->assertEquals($count + 1, $con->getQueryCount(), 'getChildren() only issues a query once'); - $expected = array( - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - ); - $this->assertEquals($expected, $this->dumpNodes($children, true), 'getChildren() returns a collection of children'); - // when using criteria, cache is not used - $c = new Criteria(); - $c->add(Table9Peer::TITLE, 't5'); - $children = $t3->getChildren($c, $con); - $this->assertEquals($count + 2, $con->getQueryCount(), 'getChildren() issues a new query when âssed a non-null Criteria'); - $expected = array( - 't5' => array(7, 12, 2), - ); - $this->assertEquals($expected, $this->dumpNodes($children, true), 'getChildren() accepts a criteria as parameter'); - // but not erased either - $children = $t3->getChildren(null, $con); - $this->assertEquals($count + 2, $con->getQueryCount(), 'getChildren() keeps its internal cache after being called with a Criteria'); - $expected = array( - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - ); - $this->assertEquals($expected, $this->dumpNodes($children, true), 'getChildren() returns a collection of children'); - } - - public function testCountChildren() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertEquals(0, $t2->countChildren(), 'countChildren() returns 0 for leafs'); - $this->assertEquals(2, $t3->countChildren(), 'countChildren() returns the number of children'); - $c = new Criteria(); - $c->add(Table9Peer::TITLE, 't5'); - $this->assertEquals(1, $t3->countChildren($c), 'countChildren() accepts a criteria as parameter'); - } - - public function testCountChildrenCache() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $con = Propel::getConnection(); - $count = $con->getQueryCount(); - $children = $t3->getChildren(null, $con); - $nbChildren = $t3->countChildren(null, $con); - $this->assertEquals($count + 1, $con->getQueryCount(), 'countChildren() uses the internal collection when passed no Criteria'); - $nbChildren = $t3->countChildren(new Criteria(), $con); - $this->assertEquals($count + 2, $con->getQueryCount(), 'countChildren() issues a new query when passed a Criteria'); - } - - public function testGetFirstChild() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - $t5->moveToNextSiblingOf($t3); - /* Results in - t1 - | \ \ - t2 t3 t5 - | | \ - t4 t6 t7 - */ - $this->assertEquals($t2, $t1->getFirstChild(), 'getFirstChild() returns the first child'); - } - - public function testGetLastChild() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - $t5->moveToNextSiblingOf($t3); - /* Results in - t1 - | \ \ - t2 t3 t5 - | | \ - t4 t6 t7 - */ - $this->assertEquals($t5, $t1->getLastChild(), 'getLastChild() returns the last child'); - } - - public function testGetSiblings() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertEquals(array(), $t1->getSiblings(), 'getSiblings() returns an empty array for root'); - $descendants = $t5->getSiblings(); - $expected = array( - 't4' => array(5, 6, 2), - ); - $this->assertEquals($expected, $this->dumpNodes($descendants), 'getSiblings() returns an array of siblings'); - $descendants = $t5->getSiblings(true); - $expected = array( - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - ); - $this->assertEquals($expected, $this->dumpNodes($descendants), 'getSiblings(true) includes the current node'); - $t5->moveToNextSiblingOf($t3); - /* Results in - t1 - | \ \ - t2 t3 t5 - | | \ - t4 t6 t7 - */ - $this->assertEquals(0, count($t4->getSiblings()), 'getSiblings() returns an empty colleciton for lone children'); - $descendants = $t3->getSiblings(); - $expected = array( - 't2' => array(2, 3, 1), - 't5' => array(8, 13, 1), - ); - $this->assertEquals($expected, $this->dumpNodes($descendants), 'getSiblings() returns all siblings'); - } - - public function testGetDescendants() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertEquals(array(), $t2->getDescendants(), 'getDescendants() returns an empty array for leafs'); - $descendants = $t3->getDescendants(); - $expected = array( - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - ); - $this->assertEquals($expected, $this->dumpNodes($descendants), 'getDescendants() returns an array of descendants'); - $c = new Criteria(); - $c->add(Table9Peer::TITLE, 't5'); - $descendants = $t3->getDescendants($c); - $expected = array( - 't5' => array(7, 12, 2), - ); - $this->assertEquals($expected, $this->dumpNodes($descendants), 'getDescendants() accepts a criteria as parameter'); - } - - public function testCountDescendants() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertEquals(0, $t2->countDescendants(), 'countDescendants() returns 0 for leafs'); - $this->assertEquals(4, $t3->countDescendants(), 'countDescendants() returns the number of descendants'); - $c = new Criteria(); - $c->add(Table9Peer::TITLE, 't5'); - $this->assertEquals(1, $t3->countDescendants($c), 'countDescendants() accepts a criteria as parameter'); - } - - public function testGetBranch() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertEquals(array($t2), $t2->getBranch()->getArrayCopy(), 'getBranch() returns the current node for leafs'); - $descendants = $t3->getBranch(); - $expected = array( - 't3' => array(4, 13, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - ); - $this->assertEquals($expected, $this->dumpNodes($descendants), 'getBranch() returns an array of descendants, uncluding the current node'); - $c = new Criteria(); - $c->add(Table9Peer::TITLE, 't3', Criteria::NOT_EQUAL); - $descendants = $t3->getBranch($c); - unset($expected['t3']); - $this->assertEquals($expected, $this->dumpNodes($descendants), 'getBranch() accepts a criteria as first parameter'); - } - - public function testGetAncestors() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertEquals(array(), $t1->getAncestors(), 'getAncestors() returns an empty array for roots'); - $ancestors = $t5->getAncestors(); - $expected = array( - 't1' => array(1, 14, 0), - 't3' => array(4, 13, 1), - ); - $this->assertEquals($expected, $this->dumpNodes($ancestors), 'getAncestors() returns an array of ancestors'); - $c = new Criteria(); - $c->add(Table9Peer::TITLE, 't3'); - $ancestors = $t5->getAncestors($c); - $expected = array( - 't3' => array(4, 13, 1), - ); - $this->assertEquals($expected, $this->dumpNodes($ancestors), 'getAncestors() accepts a criteria as parameter'); - } - - public function testAddChild() - { - Table9Peer::doDeleteAll(); - $t1 = new Table9(); - $t1->setTitle('t1'); - $t1->makeRoot(); - $t1->save(); - $t2 = new Table9(); - $t2->setTitle('t2'); - $t1->addChild($t2); - $t2->save(); - $t3 = new Table9(); - $t3->setTitle('t3'); - $t1->addChild($t3); - $t3->save(); - $t4 = new Table9(); - $t4->setTitle('t4'); - $t2->addChild($t4); - $t4->save(); - $expected = array( - 't1' => array(1, 8, 0), - 't2' => array(4, 7, 1), - 't3' => array(2, 3, 1), - 't4' => array(5, 6, 2), - ); - $this->assertEquals($expected, $this->dumpTree(), 'addChild() adds the child and saves it'); - } - - public function testInsertAsFirstChildOf() - { - $this->assertTrue(method_exists('Table9', 'insertAsFirstChildOf'), 'nested_set adds a insertAsFirstChildOf() method'); - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $t8 = new PublicTable9(); - $t8->setTitle('t8'); - $t = $t8->insertAsFirstChildOf($t3); - $this->assertEquals($t8, $t, 'insertAsFirstChildOf() returns the object it was called on'); - $this->assertEquals(5, $t4->getLeftValue(), 'insertAsFirstChildOf() does not modify the tree until the object is saved'); - $t8->save(); - $this->assertEquals(5, $t8->getLeftValue(), 'insertAsFirstChildOf() sets the left value correctly'); - $this->assertEquals(6, $t8->getRightValue(), 'insertAsFirstChildOf() sets the right value correctly'); - $this->assertEquals(2, $t8->getLevel(), 'insertAsFirstChildOf() sets the level correctly'); - $expected = array( - 't1' => array(1, 16, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 15, 1), - 't4' => array(7, 8, 2), - 't5' => array(9, 14, 2), - 't6' => array(10, 11, 3), - 't7' => array(12, 13, 3), - 't8' => array(5, 6, 2) - ); - $this->assertEquals($expected, $this->dumpTree(), 'insertAsFirstChildOf() shifts the other nodes correctly'); - try { - $t8->insertAsFirstChildOf($t4); - $this->fail('insertAsFirstChildOf() throws an exception when called on a saved object'); - } catch (PropelException $e) { - $this->assertTrue(true, 'insertAsFirstChildOf() throws an exception when called on a saved object'); - } - } - - public function testInsertAsLastChildOf() - { - $this->assertTrue(method_exists('Table9', 'insertAsLastChildOf'), 'nested_set adds a insertAsLastChildOf() method'); - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $t8 = new PublicTable9(); - $t8->setTitle('t8'); - $t = $t8->insertAsLastChildOf($t3); - $this->assertEquals($t8, $t, 'insertAsLastChildOf() returns the object it was called on'); - $this->assertEquals(13, $t3->getRightValue(), 'insertAsLastChildOf() does not modify the tree until the object is saved'); - $t8->save(); - $this->assertEquals(13, $t8->getLeftValue(), 'insertAsLastChildOf() sets the left value correctly'); - $this->assertEquals(14, $t8->getRightValue(), 'insertAsLastChildOf() sets the right value correctly'); - $this->assertEquals(2, $t8->getLevel(), 'insertAsLastChildOf() sets the level correctly'); - $expected = array( - 't1' => array(1, 16, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 15, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - 't8' => array(13, 14, 2) - ); - $this->assertEquals($expected, $this->dumpTree(), 'insertAsLastChildOf() shifts the other nodes correctly'); - try { - $t8->insertAsLastChildOf($t4); - $this->fail('insertAsLastChildOf() throws an exception when called on a saved object'); - } catch (PropelException $e) { - $this->assertTrue(true, 'insertAsLastChildOf() throws an exception when called on a saved object'); - } - } - - public function testInsertAsPrevSiblingOf() - { - $this->assertTrue(method_exists('Table9', 'insertAsPrevSiblingOf'), 'nested_set adds a insertAsPrevSiblingOf() method'); - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $t8 = new PublicTable9(); - $t8->setTitle('t8'); - $t = $t8->insertAsPrevSiblingOf($t3); - $this->assertEquals($t8, $t, 'insertAsPrevSiblingOf() returns the object it was called on'); - $this->assertEquals(4, $t3->getLeftValue(), 'insertAsPrevSiblingOf() does not modify the tree until the object is saved'); - $t8->save(); - $this->assertEquals(4, $t8->getLeftValue(), 'insertAsPrevSiblingOf() sets the left value correctly'); - $this->assertEquals(5, $t8->getRightValue(), 'insertAsPrevSiblingOf() sets the right value correctly'); - $this->assertEquals(1, $t8->getLevel(), 'insertAsPrevSiblingOf() sets the level correctly'); - $expected = array( - 't1' => array(1, 16, 0), - 't2' => array(2, 3, 1), - 't3' => array(6, 15, 1), - 't4' => array(7, 8, 2), - 't5' => array(9, 14, 2), - 't6' => array(10, 11, 3), - 't7' => array(12, 13, 3), - 't8' => array(4, 5, 1) - ); - $this->assertEquals($expected, $this->dumpTree(), 'insertAsPrevSiblingOf() shifts the other nodes correctly'); - try { - $t8->insertAsPrevSiblingOf($t4); - $this->fail('insertAsPrevSiblingOf() throws an exception when called on a saved object'); - } catch (PropelException $e) { - $this->assertTrue(true, 'insertAsPrevSiblingOf() throws an exception when called on a saved object'); - } - } - - public function testInsertAsNextSiblingOf() - { - $this->assertTrue(method_exists('Table9', 'insertAsNextSiblingOf'), 'nested_set adds a insertAsNextSiblingOf() method'); - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $t8 = new PublicTable9(); - $t8->setTitle('t8'); - $t = $t8->insertAsNextSiblingOf($t3); - $this->assertEquals($t8, $t, 'insertAsNextSiblingOf() returns the object it was called on'); - $this->assertEquals(14, $t1->getRightValue(), 'insertAsNextSiblingOf() does not modify the tree until the object is saved'); - $t8->save(); - $this->assertEquals(14, $t8->getLeftValue(), 'insertAsNextSiblingOf() sets the left value correctly'); - $this->assertEquals(15, $t8->getRightValue(), 'insertAsNextSiblingOf() sets the right value correctly'); - $this->assertEquals(1, $t8->getLevel(), 'insertAsNextSiblingOf() sets the level correctly'); - $expected = array( - 't1' => array(1, 16, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - 't8' => array(14, 15, 1) - ); - $this->assertEquals($expected, $this->dumpTree(), 'insertAsNextSiblingOf() shifts the other nodes correctly'); - try { - $t8->insertAsNextSiblingOf($t4); - $this->fail('insertAsNextSiblingOf() throws an exception when called on a saved object'); - } catch (PropelException $e) { - $this->assertTrue(true, 'insertAsNextSiblingOf() throws an exception when called on a saved object'); - } - } - - public function testMoveToFirstChildOf() - { - $this->assertTrue(method_exists('Table9', 'moveToFirstChildOf'), 'nested_set adds a moveToFirstChildOf() method'); - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - try { - $t3->moveToFirstChildOf($t5); - $this->fail('moveToFirstChildOf() throws an exception when the target is a child node'); - } catch (PropelException $e) { - $this->assertTrue(true, 'moveToFirstChildOf() throws an exception when the target is a child node'); - } - // moving down - $t = $t3->moveToFirstChildOf($t2); - $this->assertEquals($t3, $t, 'moveToFirstChildOf() returns the object it was called on'); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 13, 1), - 't3' => array(3, 12, 2), - 't4' => array(4, 5, 3), - 't5' => array(6, 11, 3), - 't6' => array(7, 8, 4), - 't7' => array(9, 10, 4), - ); - $this->assertEquals($expected, $this->dumpTree(), 'moveToFirstChildOf() moves the entire subtree down correctly'); - // moving up - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - $t5->moveToFirstChildOf($t1); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(8, 9, 1), - 't3' => array(10, 13, 1), - 't4' => array(11, 12, 2), - 't5' => array(2, 7, 1), - 't6' => array(3, 4, 2), - 't7' => array(5, 6, 2), - ); - $this->assertEquals($expected, $this->dumpTree(), 'moveToFirstChildOf() moves the entire subtree up correctly'); - // moving to the same level - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - $t5->moveToFirstChildOf($t3); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(11, 12, 2), - 't5' => array(5, 10, 2), - 't6' => array(6, 7, 3), - 't7' => array(8, 9, 3), - ); - $this->assertEquals($expected, $this->dumpTree(), 'moveToFirstChildOf() moves the entire subtree to the same level correctly'); - } - - public function testMoveToFirstChildOfAndChildrenCache() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - // fill children cache - $t3->getChildren(); - $t1->getChildren(); - // move - $t5->moveToFirstChildOf($t1); - $children = $t3->getChildren(); - $expected = array( - 't4' => array(11, 12, 2), - ); - $this->assertEquals($expected, $this->dumpNodes($children, true), 'moveToFirstChildOf() reinitializes the child collection of all concerned nodes'); - $children = $t1->getChildren(); - $expected = array( - 't5' => array(2, 7, 1), - 't2' => array(8, 9, 1), - 't3' => array(10, 13, 1), - ); - $this->assertEquals($expected, $this->dumpNodes($children, true), 'moveToFirstChildOf() reinitializes the child collection of all concerned nodes'); - } - - public function testMoveToLastChildOf() - { - $this->assertTrue(method_exists('Table9', 'moveToLastChildOf'), 'nested_set adds a moveToLastChildOf() method'); - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - try { - $t3->moveToLastChildOf($t5); - $this->fail('moveToLastChildOf() throws an exception when the target is a child node'); - } catch (PropelException $e) { - $this->assertTrue(true, 'moveToLastChildOf() throws an exception when the target is a child node'); - } - // moving up - $t = $t5->moveToLastChildOf($t1); - $this->assertEquals($t5, $t, 'moveToLastChildOf() returns the object it was called on'); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 7, 1), - 't4' => array(5, 6, 2), - 't5' => array(8, 13, 1), - 't6' => array(9, 10, 2), - 't7' => array(11, 12, 2), - ); - $this->assertEquals($expected, $this->dumpTree(), 'moveToLastChildOf() moves the entire subtree up correctly'); - // moving down - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - $t3->moveToLastChildOf($t2); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 13, 1), - 't3' => array(3, 12, 2), - 't4' => array(4, 5, 3), - 't5' => array(6, 11, 3), - 't6' => array(7, 8, 4), - 't7' => array(9, 10, 4), - ); - $this->assertEquals($expected, $this->dumpTree(), 'moveToLastChildOf() moves the entire subtree down correctly'); - // moving to the same level - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - $t4->moveToLastChildOf($t3); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(11, 12, 2), - 't5' => array(5, 10, 2), - 't6' => array(6, 7, 3), - 't7' => array(8, 9, 3), - ); - $this->assertEquals($expected, $this->dumpTree(), 'moveToLastChildOf() moves the entire subtree to the same level correctly'); - } - - public function testMoveToLastChildOfAndChildrenCache() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - // fill children cache - $t3->getChildren(); - $t1->getChildren(); - // move - $t5->moveToLastChildOf($t1); - $children = $t3->getChildren(); - $expected = array( - 't4' => array(5, 6, 2), - ); - $this->assertEquals($expected, $this->dumpNodes($children, true), 'moveToLastChildOf() reinitializes the child collection of all concerned nodes'); - $children = $t1->getChildren(); - $expected = array( - 't2' => array(2, 3, 1), - 't3' => array(4, 7, 1), - 't5' => array(8, 13, 1), - ); - $this->assertEquals($expected, $this->dumpNodes($children, true), 'moveToLastChildOf() reinitializes the child collection of all concerned nodes'); - } - - public function testMoveToPrevSiblingOf() - { - $this->assertTrue(method_exists('Table9', 'moveToPrevSiblingOf'), 'nested_set adds a moveToPrevSiblingOf() method'); - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - try { - $t5->moveToPrevSiblingOf($t1); - $this->fail('moveToPrevSiblingOf() throws an exception when the target is a root node'); - } catch (PropelException $e) { - $this->assertTrue(true, 'moveToPrevSiblingOf() throws an exception when the target is a root node'); - } - try { - $t5->moveToPrevSiblingOf($t6); - $this->fail('moveToPrevSiblingOf() throws an exception when the target is a child node'); - } catch (PropelException $e) { - $this->assertTrue(true, 'moveToPrevSiblingOf() throws an exception when the target is a child node'); - } - // moving up - $t = $t5->moveToPrevSiblingOf($t3); - /* Results in - t1 - | \ \ - t2 t5 t3 - | \ | - t6 t7 t4 - */ - $this->assertEquals($t5, $t, 'moveToPrevSiblingOf() returns the object it was called on'); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(10, 13, 1), - 't4' => array(11, 12, 2), - 't5' => array(4, 9, 1), - 't6' => array(5, 6, 2), - 't7' => array(7, 8, 2), - ); - $this->assertEquals($expected, $this->dumpTree(), 'moveToPrevSiblingOf() moves the entire subtree up correctly'); - // moving down - $t5->moveToPrevSiblingOf($t4); - /* Results in - t1 - | \ - t2 t3 - | \ - t5 t4 - | \ - t6 t7 - */ - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(11, 12, 2), - 't5' => array(5, 10, 2), - 't6' => array(6, 7, 3), - 't7' => array(8, 9, 3), - ); - $this->assertEquals($expected, $this->dumpTree(), 'moveToPrevSiblingOf() moves the entire subtree down correctly'); - // moving at the same level - $t4->moveToPrevSiblingOf($t5); - /* Results in - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - ); - $this->assertEquals($expected, $this->dumpTree(), 'moveToPrevSiblingOf() moves the entire subtree at the same level correctly'); - } - - public function testMoveToPrevSiblingOfAndChildrenCache() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - // fill children cache - $t3->getChildren(); - $t1->getChildren(); - // move - $t5->moveToPrevSiblingOf($t2); - $children = $t3->getChildren(); - $expected = array( - 't4' => array(11, 12, 2), - ); - $this->assertEquals($expected, $this->dumpNodes($children, true), 'moveToPrevSiblingOf() reinitializes the child collection of all concerned nodes'); - $children = $t1->getChildren(); - $expected = array( - 't5' => array(2, 7, 1), - 't2' => array(8, 9, 1), - 't3' => array(10, 13, 1), - ); - $this->assertEquals($expected, $this->dumpNodes($children, true), 'moveToPrevSiblingOf() reinitializes the child collection of all concerned nodes'); - } - - public function testMoveToNextSiblingOfAndChildrenCache() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - // fill children cache - $t3->getChildren(); - $t1->getChildren(); - // move - $t5->moveToNextSiblingOf($t3); - $children = $t3->getChildren(); - $expected = array( - 't4' => array(5, 6, 2), - ); - $this->assertEquals($expected, $this->dumpNodes($children, true), 'moveToNextSiblingOf() reinitializes the child collection of all concerned nodes'); - $children = $t1->getChildren(); - $expected = array( - 't2' => array(2, 3, 1), - 't3' => array(4, 7, 1), - 't5' => array(8, 13, 1), - ); - $this->assertEquals($expected, $this->dumpNodes($children, true), 'moveToNextSiblingOf() reinitializes the child collection of all concerned nodes'); - } - - public function testMoveToNextSiblingOf() - { - $this->assertTrue(method_exists('Table9', 'moveToNextSiblingOf'), 'nested_set adds a moveToNextSiblingOf() method'); - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - try { - $t5->moveToNextSiblingOf($t1); - $this->fail('moveToNextSiblingOf() throws an exception when the target is a root node'); - } catch (PropelException $e) { - $this->assertTrue(true, 'moveToNextSiblingOf() throws an exception when the target is a root node'); - } - try { - $t5->moveToNextSiblingOf($t6); - $this->fail('moveToNextSiblingOf() throws an exception when the target is a child node'); - } catch (PropelException $e) { - $this->assertTrue(true, 'moveToNextSiblingOf() throws an exception when the target is a child node'); - } - // moving up - $t = $t5->moveToNextSiblingOf($t3); - /* Results in - t1 - | \ \ - t2 t3 t5 - | | \ - t4 t6 t7 - */ - $this->assertEquals($t5, $t, 'moveToPrevSiblingOf() returns the object it was called on'); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 7, 1), - 't4' => array(5, 6, 2), - 't5' => array(8, 13, 1), - 't6' => array(9, 10, 2), - 't7' => array(11, 12, 2), - ); - $this->assertEquals($expected, $this->dumpTree(), 'moveToNextSiblingOf() moves the entire subtree up correctly'); - // moving down - $t = $t5->moveToNextSiblingOf($t4); - /* Results in - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - ); - $this->assertEquals($expected, $this->dumpTree(), 'moveToNextSiblingOf() moves the entire subtree down correctly'); - // moving at the same level - $t = $t4->moveToNextSiblingOf($t5); - /* Results in - t1 - | \ - t2 t3 - | \ - t5 t4 - | \ - t6 t7 - */ - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(11, 12, 2), - 't5' => array(5, 10, 2), - 't6' => array(6, 7, 3), - 't7' => array(8, 9, 3), - ); - $this->assertEquals($expected, $this->dumpTree(), 'moveToNextSiblingOf() moves the entire subtree at the same level correctly'); - } - - public function testDeleteDescendants() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertNull($t2->deleteDescendants(), 'deleteDescendants() returns null leafs'); - $this->assertEquals(4, $t3->deleteDescendants(), 'deleteDescendants() returns the number of deleted nodes'); - $this->assertEquals(5, $t3->getRightValue(), 'deleteDescendants() updates the current node'); - $this->assertEquals(5, $t4->getLeftValue(), 'deleteDescendants() does not update existing nodes (because delete() clears the instance cache)'); - $expected = array( - 't1' => array(1, 6, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 5, 1), - ); - $this->assertEquals($expected, $this->dumpTree(), 'deleteDescendants() shifts the entire subtree correctly'); - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->assertEquals(6, $t1->deleteDescendants(), 'deleteDescendants() can be called on the root node'); - $expected = array( - 't1' => array(1, 2, 0), - ); - $this->assertEquals($expected, $this->dumpTree(), 'deleteDescendants() can delete all descendants of the root node'); - } - - public function testGetIterator() - { - $fixtures = $this->initTree(); - $this->assertTrue(method_exists('Table9', 'getIterator'), 'nested_set adds a getIterator() method'); - $root = Table9Peer::retrieveRoot(); - $iterator = $root->getIterator(); - $this->assertTrue($iterator instanceof NestedSetRecursiveIterator, 'getIterator() returns a NestedSetRecursiveIterator'); - foreach ($iterator as $node) { - $expected = array_shift($fixtures); - $this->assertEquals($expected, $node, 'getIterator returns an iterator parsing the tree order by left column'); - } - } - - public function testCompatibilityProxies() - { - $proxies = array('createRoot', 'retrieveParent', 'setParentNode', 'getNumberOfDescendants', 'getNumberOfChildren', 'retrievePrevSibling', 'retrieveNextSibling', 'retrieveFirstChild', 'retrieveLastChild', 'getPath'); - foreach ($proxies as $method) { - $this->assertFalse(method_exists('Table9', $method), 'proxies are not enabled by default'); - $this->assertTrue(method_exists('Table10', $method), 'setting method_proxies to true adds compatibility proxies'); - } - $t = new Table10(); - $t->createRoot(); - $this->assertEquals($t->getLeftValue(), 1, 'createRoot() is an alias for makeRoot()'); - $this->assertEquals($t->getRightValue(), 2, 'createRoot() is an alias for makeRoot()'); - $this->assertEquals($t->getLevel(), 0, 'createRoot() is an alias for makeRoot()'); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorObjectBuilderModifierWithScopeTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorObjectBuilderModifierWithScopeTest.php deleted file mode 100644 index 439ff588ff..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorObjectBuilderModifierWithScopeTest.php +++ /dev/null @@ -1,551 +0,0 @@ -add(Table10Peer::TITLE, $title); - return Table10Peer::doSelectOne($c); - } - - public function testDelete() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $t5->delete(); - $expected = array( - 't1' => array(1, 8, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 7, 1), - 't4' => array(5, 6, 2), - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(1), 'delete() deletes all descendants and shifts the entire subtree correctly'); - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(2), 'delete() does not delete anything out of the scope'); - } - - public function testIsDescendantOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $this->assertFalse($t8->isDescendantOf($t9), 'root is not seen as a child of root'); - $this->assertTrue($t9->isDescendantOf($t8), 'direct child is seen as a child of root'); - try { - $t2->isDescendantOf($t8); - $this->fail('isDescendantOf() throws an exception when comparing two nodes of different trees'); - } catch (PropelException $e) { - $this->assertTrue(true, 'isDescendantOf() throws an exception when comparing two nodes of different trees'); - } - } - - public function testGetParent() - { - $this->initTreeWithScope(); - $t1 = $this->getByTitle('t1'); - $this->assertNull($t1->getParent($this->con), 'getParent() return null for root nodes'); - $t2 = $this->getByTitle('t2'); - $this->assertEquals($t2->getParent($this->con), $t1, 'getParent() correctly retrieves parent for leafs'); - $t3 = $this->getByTitle('t3'); - $this->assertEquals($t3->getParent($this->con), $t1, 'getParent() correctly retrieves parent for nodes'); - $t4 = $this->getByTitle('t4'); - $this->assertEquals($t4->getParent($this->con), $t3, 'getParent() retrieves the same parent for nodes'); - } - - public function testGetPrevSibling() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $this->assertNull($t1->getPrevSibling($this->con), 'getPrevSibling() returns null for root nodes'); - $this->assertNull($t2->getPrevSibling($this->con), 'getPrevSibling() returns null for first siblings'); - $this->assertEquals($t3->getPrevSibling($this->con), $t2, 'getPrevSibling() correctly retrieves prev sibling'); - $this->assertNull($t6->getPrevSibling($this->con), 'getPrevSibling() returns null for first siblings'); - $this->assertEquals($t7->getPrevSibling($this->con), $t6, 'getPrevSibling() correctly retrieves prev sibling'); - } - - public function testGetNextSibling() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $this->assertNull($t1->getNextSibling($this->con), 'getNextSibling() returns null for root nodes'); - $this->assertEquals($t2->getNextSibling($this->con), $t3, 'getNextSibling() correctly retrieves next sibling'); - $this->assertNull($t3->getNextSibling($this->con), 'getNextSibling() returns null for last siblings'); - $this->assertEquals($t6->getNextSibling($this->con), $t7, 'getNextSibling() correctly retrieves next sibling'); - $this->assertNull($t7->getNextSibling($this->con), 'getNextSibling() returns null for last siblings'); - } - - public function testGetDescendants() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $descendants = $t3->getDescendants(); - $expected = array( - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - ); - $this->assertEquals($expected, $this->dumpNodes($descendants), 'getDescendants() returns descendants from the current scope only'); - } - - public function testGetAncestors() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $this->assertEquals(array(), $t1->getAncestors(), 'getAncestors() returns an empty array for roots'); - $ancestors = $t5->getAncestors(); - $expected = array( - 't1' => array(1, 14, 0), - 't3' => array(4, 13, 1), - ); - $this->assertEquals($expected, $this->dumpNodes($ancestors), 'getAncestors() returns ancestors from the current scope only'); - } - - public function testInsertAsFirstChildOf() - { - $this->assertTrue(method_exists('Table10', 'insertAsFirstChildOf'), 'nested_set adds a insertAsFirstChildOf() method'); - $fixtures = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $t11 = new PublicTable10(); - $t11->setTitle('t11'); - $t11->insertAsFirstChildOf($fixtures[2]); // first child of t3 - $this->assertEquals(1, $t11->getScopeValue(), 'insertAsFirstChildOf() sets the scope value correctly'); - $t11->save(); - $expected = array( - 't1' => array(1, 16, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 15, 1), - 't4' => array(7, 8, 2), - 't5' => array(9, 14, 2), - 't6' => array(10, 11, 3), - 't7' => array(12, 13, 3), - 't11' => array(5, 6, 2) - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(1), 'insertAsFirstChildOf() shifts the other nodes correctly'); - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(2), 'insertAsFirstChildOf() does not shift anything out of the scope'); - } - - public function testInsertAsLastChildOf() - { - $this->assertTrue(method_exists('Table10', 'insertAsLastChildOf'), 'nested_set adds a insertAsLastChildOf() method'); - $fixtures = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $t11 = new PublicTable10(); - $t11->setTitle('t11'); - $t11->insertAsLastChildOf($fixtures[2]); // last child of t3 - $this->assertEquals(1, $t11->getScopeValue(), 'insertAsLastChildOf() sets the scope value correctly'); - $t11->save(); - $expected = array( - 't1' => array(1, 16, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 15, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - 't11' => array(13, 14, 2) - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(1), 'insertAsLastChildOf() shifts the other nodes correctly'); - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(2), 'insertAsLastChildOf() does not shift anything out of the scope'); - } - - public function testInsertAsPrevSiblingOf() - { - $this->assertTrue(method_exists('Table10', 'insertAsPrevSiblingOf'), 'nested_set adds a insertAsPrevSiblingOf() method'); - $fixtures = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $t11 = new PublicTable10(); - $t11->setTitle('t11'); - $t11->insertAsPrevSiblingOf($fixtures[2]); // prev sibling of t3 - $this->assertEquals(1, $t11->getScopeValue(), 'insertAsPrevSiblingOf() sets the scope value correctly'); - $t11->save(); - $expected = array( - 't1' => array(1, 16, 0), - 't2' => array(2, 3, 1), - 't3' => array(6, 15, 1), - 't4' => array(7, 8, 2), - 't5' => array(9, 14, 2), - 't6' => array(10, 11, 3), - 't7' => array(12, 13, 3), - 't11' => array(4, 5, 1) - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(1), 'insertAsPrevSiblingOf() shifts the other nodes correctly'); - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(2), 'insertAsPrevSiblingOf() does not shift anything out of the scope'); - } - - public function testInsertAsNextSiblingOf() - { - $this->assertTrue(method_exists('Table10', 'insertAsNextSiblingOf'), 'nested_set adds a insertAsNextSiblingOf() method'); - $fixtures = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $t11 = new PublicTable10(); - $t11->setTitle('t11'); - $t11->insertAsNextSiblingOf($fixtures[2]); // next sibling of t3 - $this->assertEquals(1, $t11->getScopeValue(), 'insertAsNextSiblingOf() sets the scope value correctly'); - $t11->save(); - $expected = array( - 't1' => array(1, 16, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - 't11' => array(14, 15, 1) - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(1), 'insertAsNextSiblingOf() shifts the other nodes correctly'); - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(2), 'insertAsNextSiblingOf() does not shift anything out of the scope'); - } - - public function testMoveToFirstChildOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - try { - $t8->moveToFirstChildOf($t3); - $this->fail('moveToFirstChildOf() throws an exception when the target is in a different tree'); - } catch (PropelException $e) { - $this->assertTrue(true, 'moveToFirstChildOf() throws an exception when the target is in a different tree'); - } - try { - $t5->moveToLastChildOf($t2); - $this->assertTrue(true, 'moveToFirstChildOf() does not throw an exception when the target is in the same tree'); - } catch (PropelException $e) { - $this->fail('moveToFirstChildOf() does not throw an exception when the target is in the same tree'); - } - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(2), 'moveToFirstChildOf() does not shift anything out of the scope'); - } - - public function testMoveToLastChildOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - try { - $t8->moveToLastChildOf($t3); - $this->fail('moveToLastChildOf() throws an exception when the target is in a different tree'); - } catch (PropelException $e) { - $this->assertTrue(true, 'moveToLastChildOf() throws an exception when the target is in a different tree'); - } - try { - $t5->moveToLastChildOf($t2); - $this->assertTrue(true, 'moveToLastChildOf() does not throw an exception when the target is in the same tree'); - } catch (PropelException $e) { - $this->fail('moveToLastChildOf() does not throw an exception when the target is in the same tree'); - } - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(2), 'moveToLastChildOf() does not shift anything out of the scope'); - } - - public function testMoveToPrevSiblingOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - try { - $t8->moveToPrevSiblingOf($t3); - $this->fail('moveToPrevSiblingOf() throws an exception when the target is in a different tree'); - } catch (PropelException $e) { - $this->assertTrue(true, 'moveToPrevSiblingOf() throws an exception when the target is in a different tree'); - } - try { - $t5->moveToPrevSiblingOf($t2); - $this->assertTrue(true, 'moveToPrevSiblingOf() does not throw an exception when the target is in the same tree'); - } catch (PropelException $e) { - $this->fail('moveToPrevSiblingOf() does not throw an exception when the target is in the same tree'); - } - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(2), 'moveToPrevSiblingOf() does not shift anything out of the scope'); - } - - public function testMoveToNextSiblingOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - try { - $t8->moveToNextSiblingOf($t3); - $this->fail('moveToNextSiblingOf() throws an exception when the target is in a different tree'); - } catch (PropelException $e) { - $this->assertTrue(true, 'moveToNextSiblingOf() throws an exception when the target is in a different tree'); - } - try { - $t5->moveToNextSiblingOf($t2); - $this->assertTrue(true, 'moveToNextSiblingOf() does not throw an exception when the target is in the same tree'); - } catch (PropelException $e) { - $this->fail('moveToNextSiblingOf() does not throw an exception when the target is in the same tree'); - } - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(2), 'moveToNextSiblingOf() does not shift anything out of the scope'); - } - - public function testDeleteDescendants() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $this->assertEquals(4, $t3->deleteDescendants(), 'deleteDescendants() returns the number of deleted nodes'); - $expected = array( - 't1' => array(1, 6, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 5, 1), - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(1), 'deleteDescendants() shifts the entire subtree correctly'); - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(2), 'deleteDescendants() does not delete anything out of the scope'); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorPeerBuilderModifierTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorPeerBuilderModifierTest.php deleted file mode 100644 index 24555b3cd3..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorPeerBuilderModifierTest.php +++ /dev/null @@ -1,350 +0,0 @@ -assertEquals(Table9Peer::LEFT_COL, 'table9.TREE_LEFT', 'nested_set adds a LEFT_COL constant'); - $this->assertEquals(Table9Peer::RIGHT_COL, 'table9.TREE_RIGHT', 'nested_set adds a RIGHT_COL constant'); - $this->assertEquals(Table9Peer::LEVEL_COL, 'table9.TREE_LEVEL', 'nested_set adds a LEVEL_COL constant'); - } - - public function testRetrieveRoot() - { - $this->assertTrue(method_exists('Table9Peer', 'retrieveRoot'), 'nested_set adds a retrieveRoot() method'); - Table9Peer::doDeleteAll(); - $this->assertNull(Table9Peer::retrieveRoot(), 'retrieveRoot() returns null as long as no root node is defined'); - $t1 = new Table9(); - $t1->setLeftValue(123); - $t1->setRightValue(456); - $t1->save(); - $this->assertNull(Table9Peer::retrieveRoot(), 'retrieveRoot() returns null as long as no root node is defined'); - $t2 = new Table9(); - $t2->setLeftValue(1); - $t2->setRightValue(2); - $t2->save(); - $this->assertEquals(Table9Peer::retrieveRoot(), $t2, 'retrieveRoot() retrieves the root node'); - } - - public function testRetrieveTree() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - $tree = Table9Peer::retrieveTree(); - $this->assertEquals(array($t1, $t2, $t3, $t4, $t5, $t6, $t7), $tree, 'retrieveTree() retrieves the whole tree'); - $c = new Criteria(); - $c->add(Table9Peer::LEFT_COL, 4, Criteria::GREATER_EQUAL); - $tree = Table9Peer::retrieveTree($c); - $this->assertEquals(array($t3, $t4, $t5, $t6, $t7), $tree, 'retrieveTree() accepts a Criteria as first parameter'); - } - - public function testIsValid() - { - $this->assertTrue(method_exists('Table9Peer', 'isValid'), 'nested_set adds an isValid() method'); - $this->assertFalse(Table9Peer::isValid(null), 'isValid() returns false when passed null '); - $t1 = new Table9(); - $this->assertFalse(Table9Peer::isValid($t1), 'isValid() returns false when passed an empty node object'); - $t2 = new Table9(); - $t2->setLeftValue(5)->setRightValue(2); - $this->assertFalse(Table9Peer::isValid($t2), 'isValid() returns false when passed a node object with left > right'); - $t3 = new Table9(); - $t3->setLeftValue(5)->setRightValue(5); - $this->assertFalse(Table9Peer::isValid($t3), 'isValid() returns false when passed a node object with left = right'); - $t4 = new Table9(); - $t4->setLeftValue(2)->setRightValue(5); - $this->assertTrue(Table9Peer::isValid($t4), 'isValid() returns true when passed a node object with left < right'); - } - - public function testDeleteTree() - { - $this->initTree(); - Table9Peer::deleteTree(); - $this->assertEquals(array(), Table9Peer::doSelect(new Criteria()), 'deleteTree() deletes the whole tree'); - } - - public function testShiftRLValuesDelta() - { - $this->initTree(); - Table9Peer::shiftRLValues($delta = 1, $left = 1); - Table9Peer::clearInstancePool(); - $expected = array( - 't1' => array(2, 15, 0), - 't2' => array(3, 4, 1), - 't3' => array(5, 14, 1), - 't4' => array(6, 7, 2), - 't5' => array(8, 13, 2), - 't6' => array(9, 10, 3), - 't7' => array(11, 12, 3), - ); - $this->assertEquals($this->dumpTree(), $expected, 'shiftRLValues shifts all nodes with a positive amount'); - $this->initTree(); - Table9Peer::shiftRLValues($delta = -1, $left = 1); - Table9Peer::clearInstancePool(); - $expected = array( - 't1' => array(0, 13, 0), - 't2' => array(1, 2, 1), - 't3' => array(3, 12, 1), - 't4' => array(4, 5, 2), - 't5' => array(6, 11, 2), - 't6' => array(7, 8, 3), - 't7' => array(9, 10, 3), - ); - $this->assertEquals($this->dumpTree(), $expected, 'shiftRLValues can shift all nodes with a negative amount'); - $this->initTree(); - Table9Peer::shiftRLValues($delta = 3, $left = 1); - Table9Peer::clearInstancePool(); - $expected = array( - 't1'=> array(4, 17, 0), - 't2' => array(5, 6, 1), - 't3' => array(7, 16, 1), - 't4' => array(8, 9, 2), - 't5' => array(10, 15, 2), - 't6' => array(11, 12, 3), - 't7' => array(13, 14, 3), - ); - $this->assertEquals($this->dumpTree(), $expected, 'shiftRLValues shifts all nodes several units to the right'); - Table9Peer::shiftRLValues($delta = -3, $left = 1); - Table9Peer::clearInstancePool(); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - ); - $this->assertEquals($this->dumpTree(), $expected, 'shiftRLValues shifts all nodes several units to the left'); - } - - public function testShiftRLValuesLeftLimit() - { - $this->initTree(); - Table9Peer::shiftRLValues($delta = 1, $left = 15); - Table9Peer::clearInstancePool(); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - ); - $this->assertEquals($this->dumpTree(), $expected, 'shiftRLValues does not shift anything when the left parameter is higher than the highest right value'); - $this->initTree(); - Table9Peer::shiftRLValues($delta = 1, $left = 5); - Table9Peer::clearInstancePool(); - $expected = array( - 't1' => array(1, 15, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 14, 1), - 't4' => array(6, 7, 2), - 't5' => array(8, 13, 2), - 't6' => array(9, 10, 3), - 't7' => array(11, 12, 3), - ); - $this->assertEquals($this->dumpTree(), $expected, 'shiftRLValues shifts only the nodes having a LR value higher than the given left parameter'); - $this->initTree(); - Table9Peer::shiftRLValues($delta = 1, $left = 1); - Table9Peer::clearInstancePool(); - $expected = array( - 't1'=> array(2, 15, 0), - 't2' => array(3, 4, 1), - 't3' => array(5, 14, 1), - 't4' => array(6, 7, 2), - 't5' => array(8, 13, 2), - 't6' => array(9, 10, 3), - 't7' => array(11, 12, 3), - ); - $this->assertEquals($this->dumpTree(), $expected, 'shiftRLValues shifts all nodes when the left parameter is 1'); - } - - public function testShiftRLValuesRightLimit() - { - $this->initTree(); - Table9Peer::shiftRLValues($delta = 1, $left = 1, $right = 0); - Table9Peer::clearInstancePool(); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - ); - $this->assertEquals($this->dumpTree(), $expected, 'shiftRLValues does not shift anything when the right parameter is 0'); - $this->initTree(); - Table9Peer::shiftRLValues($delta = 1, $left = 1, $right = 5); - Table9Peer::clearInstancePool(); - $expected = array( - 't1' => array(2, 14, 0), - 't2' => array(3, 4, 1), - 't3' => array(5, 13, 1), - 't4' => array(6, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - ); - $this->assertEquals($this->dumpTree(), $expected, 'shiftRLValues shiftRLValues shifts only the nodes having a LR value lower than the given right parameter'); - $this->initTree(); - Table9Peer::shiftRLValues($delta = 1, $left = 1, $right = 15); - Table9Peer::clearInstancePool(); - $expected = array( - 't1'=> array(2, 15, 0), - 't2' => array(3, 4, 1), - 't3' => array(5, 14, 1), - 't4' => array(6, 7, 2), - 't5' => array(8, 13, 2), - 't6' => array(9, 10, 3), - 't7' => array(11, 12, 3), - ); - $this->assertEquals($this->dumpTree(), $expected, 'shiftRLValues shifts all nodes when the right parameter is higher than the highest right value'); - } - - public function testShiftLevel() - { - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $this->initTree(); - Table9Peer::shiftLevel($delta = 1, $first = 7, $last = 12); - Table9Peer::clearInstancePool(); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 3), - 't6' => array(8, 9, 4), - 't7' => array(10, 11, 4), - ); - $this->assertEquals($this->dumpTree(), $expected, 'shiftLevel shifts all nodes with a left value between the first and last'); - $this->initTree(); - Table9Peer::shiftLevel($delta = -1, $first = 7, $last = 12); - Table9Peer::clearInstancePool(); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 1), - 't6' => array(8, 9, 2), - 't7' => array(10, 11, 2), - ); - $this->assertEquals($this->dumpTree(), $expected, 'shiftLevel shifts all nodes wit ha negative amount'); - } - - public function testUpdateLoadedNodes() - { - $this->assertTrue(method_exists('Table9Peer', 'updateLoadedNodes'), 'nested_set adds a updateLoadedNodes() method'); - $fixtures = $this->initTree(); - Table9Peer::shiftRLValues(1, 5); - $expected = array( - 't1' => array(1, 14), - 't2' => array(2, 3), - 't3' => array(4, 13), - 't4' => array(5, 6), - 't5' => array(7, 12), - 't6' => array(8, 9), - 't7' => array(10, 11), - ); - $actual = array(); - foreach ($fixtures as $t) { - $actual[$t->getTitle()] = array($t->getLeftValue(), $t->getRightValue()); - } - $this->assertEquals($actual, $expected, 'Loaded nodes are not in sync before calling updateLoadedNodes()'); - Table9Peer::updateLoadedNodes(); - $expected = array( - 't1' => array(1, 15), - 't2' => array(2, 3), - 't3' => array(4, 14), - 't4' => array(6, 7), - 't5' => array(8, 13), - 't6' => array(9, 10), - 't7' => array(11, 12), - ); - $actual = array(); - foreach ($fixtures as $t) { - $actual[$t->getTitle()] = array($t->getLeftValue(), $t->getRightValue()); - } - $this->assertEquals($actual, $expected, 'Loaded nodes are in sync after calling updateLoadedNodes()'); - } - - public function testMakeRoomForLeaf() - { - $this->assertTrue(method_exists('Table9Peer', 'makeRoomForLeaf'), 'nested_set adds a makeRoomForLeaf() method'); - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $t = Table9Peer::makeRoomForLeaf(5); // first child of t3 - $expected = array( - 't1' => array(1, 16, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 15, 1), - 't4' => array(7, 8, 2), - 't5' => array(9, 14, 2), - 't6' => array(10, 11, 3), - 't7' => array(12, 13, 3), - ); - $this->assertEquals($expected, $this->dumpTree(), 'makeRoomForLeaf() shifts the other nodes correctly'); - foreach ($expected as $key => $values) - { - $this->assertEquals($values, array($$key->getLeftValue(), $$key->getRightValue(), $$key->getLevel()), 'makeRoomForLeaf() updates nodes already in memory'); - } - } - - public function testFixLevels() - { - $fixtures = $this->initTree(); - // reset the levels - foreach ($fixtures as $node) { - $node->setLevel(null)->save(); - } - // fix the levels - Table9Peer::fixLevels(); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - ); - $this->assertEquals($expected, $this->dumpTree(), 'fixLevels() fixes the levels correctly'); - Table9Peer::fixLevels(); - $this->assertEquals($expected, $this->dumpTree(), 'fixLevels() can be called several times'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorPeerBuilderModifierWithScopeTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorPeerBuilderModifierWithScopeTest.php deleted file mode 100644 index 87026d3484..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorPeerBuilderModifierWithScopeTest.php +++ /dev/null @@ -1,253 +0,0 @@ -assertEquals(Table10Peer::LEFT_COL, 'table10.MY_LEFT_COLUMN', 'nested_set adds a LEFT_COL constant using the custom left_column parameter'); - $this->assertEquals(Table10Peer::RIGHT_COL, 'table10.MY_RIGHT_COLUMN', 'nested_set adds a RIGHT_COL constant using the custom right_column parameter'); - $this->assertEquals(Table10Peer::LEVEL_COL, 'table10.MY_LEVEL_COLUMN', 'nested_set adds a LEVEL_COL constant using the custom level_column parameter'); - $this->assertEquals(Table10Peer::SCOPE_COL, 'table10.MY_SCOPE_COLUMN', 'nested_set adds a SCOPE_COL constant when the use_scope parameter is true'); - } - - public function testRetrieveRoots() - { - $this->assertTrue(method_exists('Table10Peer', 'retrieveRoots'), 'nested_set adds a retrieveRoots() method for trees that use scope'); - $this->assertFalse(method_exists('Table9Peer', 'retrieveRoots'), 'nested_set does not add a retrieveRoots() method for trees that don\'t use scope'); - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $this->assertEquals(array($t1, $t8), Table10Peer::retrieveRoots(), 'retrieveRoots() returns the tree roots'); - $c = new Criteria(); - $c->add(Table10Peer::TITLE, 't1'); - $this->assertEquals(array($t1), Table10Peer::retrieveRoots($c), 'retrieveRoots() accepts a Criteria as first parameter'); - } - - public function testRetrieveRoot() - { - $this->assertTrue(method_exists('Table10Peer', 'retrieveRoot'), 'nested_set adds a retrieveRoot() method'); - Table10Peer::doDeleteAll(); - $t1 = new Table10(); - $t1->setLeftValue(1); - $t1->setRightValue(2); - $t1->setScopeValue(2); - $t1->save(); - $this->assertNull(Table10Peer::retrieveRoot(1), 'retrieveRoot() returns null as long as no root node is defined in the required scope'); - $t2 = new Table10(); - $t2->setLeftValue(1); - $t2->setRightValue(2); - $t2->setScopeValue(1); - $t2->save(); - $this->assertEquals(Table10Peer::retrieveRoot(1), $t2, 'retrieveRoot() retrieves the root node in the required scope'); - } - - public function testRetrieveTree() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $tree = Table10Peer::retrieveTree(1); - $this->assertEquals(array($t1, $t2, $t3, $t4, $t5, $t6, $t7), $tree, 'retrieveTree() retrieves the scoped tree'); - $tree = Table10Peer::retrieveTree(2); - $this->assertEquals(array($t8, $t9, $t10), $tree, 'retrieveTree() retrieves the scoped tree'); - $c = new Criteria(); - $c->add(Table10Peer::LEFT_COL, 4, Criteria::GREATER_EQUAL); - $tree = Table10Peer::retrieveTree(1, $c); - $this->assertEquals(array($t3, $t4, $t5, $t6, $t7), $tree, 'retrieveTree() accepts a Criteria as first parameter'); - } - - public function testDeleteTree() - { - $this->initTreeWithScope(); - Table10Peer::deleteTree(1); - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($this->dumpTreeWithScope(2), $expected, 'deleteTree() does not delete anything out of the scope'); - } - - public function testShiftRLValues() - { - $this->assertTrue(method_exists('Table10Peer', 'shiftRLValues'), 'nested_set adds a shiftRLValues() method'); - $this->initTreeWithScope(); - Table10Peer::shiftRLValues(1, 100, null, 1); - Table10Peer::clearInstancePool(); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - ); - $this->assertEquals($this->dumpTreeWithScope(1), $expected, 'shiftRLValues does not shift anything when the first parameter is higher than the highest right value'); - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($this->dumpTreeWithScope(2), $expected, 'shiftRLValues does not shift anything out of the scope'); - $this->initTreeWithScope(); - Table10Peer::shiftRLValues(1, 1, null, 1); - Table10Peer::clearInstancePool(); - $expected = array( - 't1' => array(2, 15, 0), - 't2' => array(3, 4, 1), - 't3' => array(5, 14, 1), - 't4' => array(6, 7, 2), - 't5' => array(8, 13, 2), - 't6' => array(9, 10, 3), - 't7' => array(11, 12, 3), - ); - $this->assertEquals($this->dumpTreeWithScope(1), $expected, 'shiftRLValues can shift all nodes to the right'); - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($this->dumpTreeWithScope(2), $expected, 'shiftRLValues does not shift anything out of the scope'); - $this->initTreeWithScope(); - Table10Peer::shiftRLValues(-1, 1, null, 1); - Table10Peer::clearInstancePool(); - $expected = array( - 't1' => array(0, 13, 0), - 't2' => array(1, 2, 1), - 't3' => array(3, 12, 1), - 't4' => array(4, 5, 2), - 't5' => array(6, 11, 2), - 't6' => array(7, 8, 3), - 't7' => array(9, 10, 3), - ); - $this->assertEquals($this->dumpTreeWithScope(1), $expected, 'shiftRLValues can shift all nodes to the left'); - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($this->dumpTreeWithScope(2), $expected, 'shiftRLValues does not shift anything out of the scope'); - $this->initTreeWithScope(); - Table10Peer::shiftRLValues(1, 5, null, 1); - Table10Peer::clearInstancePool(); - $expected = array( - 't1' => array(1, 15, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 14, 1), - 't4' => array(6, 7, 2), - 't5' => array(8, 13, 2), - 't6' => array(9, 10, 3), - 't7' => array(11, 12, 3), - ); - $this->assertEquals($this->dumpTreeWithScope(1), $expected, 'shiftRLValues can shift some nodes to the right'); - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($this->dumpTreeWithScope(2), $expected, 'shiftRLValues does not shift anything out of the scope'); - } - - public function testShiftLevel() - { - $this->initTreeWithScope(); - Table10Peer::shiftLevel($delta = 1, $first = 7, $last = 12, $scope = 1); - Table10Peer::clearInstancePool(); - $expected = array( - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 3), - 't6' => array(8, 9, 4), - 't7' => array(10, 11, 4), - ); - $this->assertEquals($this->dumpTreeWithScope(1), $expected, 'shiftLevel can shift level whith a scope'); - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($this->dumpTreeWithScope(2), $expected, 'shiftLevel does not shift anything out of the scope'); - } - - public function testMakeRoomForLeaf() - { - $this->assertTrue(method_exists('Table10Peer', 'makeRoomForLeaf'), 'nested_set adds a makeRoomForLeaf() method'); - $fixtures = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $t = Table10Peer::makeRoomForLeaf(5, 1); // first child of t3 - $expected = array( - 't1' => array(1, 16, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 15, 1), - 't4' => array(7, 8, 2), - 't5' => array(9, 14, 2), - 't6' => array(10, 11, 3), - 't7' => array(12, 13, 3), - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(1), 'makeRoomForLeaf() shifts the other nodes correctly'); - $expected = array( - 't8' => array(1, 6, 0), - 't9' => array(2, 3, 1), - 't10' => array(4, 5, 1), - ); - $this->assertEquals($expected, $this->dumpTreeWithScope(2), 'makeRoomForLeaf() does not shift anything out of the scope'); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorQueryBuilderModifierTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorQueryBuilderModifierTest.php deleted file mode 100644 index 8a6f5729b6..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorQueryBuilderModifierTest.php +++ /dev/null @@ -1,283 +0,0 @@ -initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $objs = Table9Query::create() - ->descendantsOf($t7) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array()); - $this->assertEquals($coll, $objs, 'decendantsOf() filters by descendants'); - $objs = Table9Query::create() - ->descendantsOf($t3) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t4, $t5, $t6, $t7)); - $this->assertEquals($coll, $objs, 'decendantsOf() filters by descendants'); - } - - public function testBranchOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $objs = Table9Query::create() - ->branchOf($t7) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t7)); - $this->assertEquals($coll, $objs, 'branchOf() filters by descendants and includes object passed as parameter'); - $objs = Table9Query::create() - ->branchOf($t3) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t3, $t4, $t5, $t6, $t7)); - $this->assertEquals($coll, $objs, 'branchOf() filters by descendants and includes object passed as parameter'); - $objs = Table9Query::create() - ->branchOf($t1) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t1, $t2, $t3, $t4, $t5, $t6, $t7)); - $this->assertEquals($coll, $objs, 'branchOf() returns the whole tree for the root node'); - } - - public function testChildrenOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $objs = Table9Query::create() - ->childrenOf($t6) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array()); - $this->assertEquals($coll, $objs, 'childrenOf() returns empty collection for leaf nodes'); - $objs = Table9Query::create() - ->childrenOf($t5) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t6, $t7)); - $this->assertEquals($coll, $objs, 'childrenOf() filters by children'); - $objs = Table9Query::create() - ->childrenOf($t3) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t4, $t5)); - $this->assertEquals($coll, $objs, 'childrenOf() filters by children and not by descendants'); - } - - public function testSiblingsOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $desc = Table9Query::create() - ->siblingsOf($t1) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array()); - $this->assertEquals($coll, $desc, 'siblingsOf() returns empty collection for the root node'); - $desc = Table9Query::create() - ->siblingsOf($t3) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t2)); - $this->assertEquals($coll, $desc, 'siblingsOf() filters by siblings'); - } - - public function testAncestorsOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $objs = Table9Query::create() - ->ancestorsOf($t1) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array()); - $this->assertEquals($coll, $objs, 'ancestorsOf() returns empty collection for root node'); - $objs = Table9Query::create() - ->ancestorsOf($t3) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t1)); - $this->assertEquals($coll, $objs, 'ancestorsOf() filters by ancestors'); - $objs = Table9Query::create() - ->ancestorsOf($t7) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t1, $t3, $t5)); - $this->assertEquals($coll, $objs, 'childrenOf() filters by ancestors'); - } - - public function testRootsOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - /* Tree used for tests - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - */ - $objs = Table9Query::create() - ->rootsOf($t1) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t1)); - $this->assertEquals($coll, $objs, 'rootsOf() returns the root node for root node'); - $objs = Table9Query::create() - ->rootsOf($t3) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t1, $t3)); - $this->assertEquals($coll, $objs, 'rootsOf() filters by ancestors and includes the node passed as parameter'); - $objs = Table9Query::create() - ->rootsOf($t7) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t1, $t3, $t5, $t7)); - $this->assertEquals($coll, $objs, 'rootsOf() filters by ancestors and includes the node passed as parameter'); - } - - public function testOrderByBranch() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - $t5->moveToPrevSiblingOf($t4); - /* Results in - t1 - | \ - t2 t3 - | \ - t5 t4 - | \ - t6 t7 - */ - $objs = Table9Query::create() - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t1, $t2, $t3, $t5, $t6, $t7, $t4), 'orderByBranch() orders by branch left to right'); - $objs = Table9Query::create() - ->orderByBranch(true) - ->find(); - $coll = $this->buildCollection(array($t4, $t7, $t6, $t5, $t3, $t2, $t1), 'orderByBranch(true) orders by branch right to left'); - } - - public function testOrderByLevel() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - $t5->moveToPrevSiblingOf($t4); - /* Results in - t1 - | \ - t2 t3 - | \ - t5 t4 - | \ - t6 t7 - */ - $objs = Table9Query::create() - ->orderByLevel() - ->find(); - $coll = $this->buildCollection(array($t1, $t2, $t5, $t4, $t6, $t7), 'orderByLevel() orders by level, from the root to the leaf'); - $objs = Table9Query::create() - ->orderByLevel(true) - ->find(); - $coll = $this->buildCollection(array($t7, $t6, $t4, $t5, $t2, $t1), 'orderByLevel(true) orders by level, from the leaf to the root'); - } - - public function testFindRoot() - { - $this->assertTrue(method_exists('Table9Query', 'findRoot'), 'nested_set adds a findRoot() method'); - Table9Query::create()->deleteAll(); - $this->assertNull(Table9Query::create()->findRoot(), 'findRoot() returns null as long as no root node is defined'); - $t1 = new Table9(); - $t1->setLeftValue(123); - $t1->setRightValue(456); - $t1->save(); - $this->assertNull(Table9Query::create()->findRoot(), 'findRoot() returns null as long as no root node is defined'); - $t2 = new Table9(); - $t2->setLeftValue(1); - $t2->setRightValue(2); - $t2->save(); - $this->assertEquals(Table9Query::create()->findRoot(), $t2, 'findRoot() retrieves the root node'); - } - - public function testfindTree() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); - $tree = Table9Query::create()->findTree(); - $coll = $this->buildCollection(array($t1, $t2, $t3, $t4, $t5, $t6, $t7)); - $this->assertEquals($coll, $tree, 'findTree() retrieves the whole tree, ordered by branch'); - } - - protected function buildCollection($arr) - { - $coll = new PropelObjectCollection(); - $coll->setData($arr); - $coll->setModel('Table9'); - - return $coll; - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorQueryBuilderModifierWithScopeTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorQueryBuilderModifierWithScopeTest.php deleted file mode 100644 index a7c2836289..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorQueryBuilderModifierWithScopeTest.php +++ /dev/null @@ -1,285 +0,0 @@ -initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $objs = Table10Query::create() - ->treeRoots() - ->find(); - $coll = $this->buildCollection(array($t1, $t8)); - $this->assertEquals($coll, $objs, 'treeRoots() filters by roots'); - } - - public function testInTree() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $tree = Table10Query::create() - ->inTree(1) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t1, $t2, $t3, $t4, $t5, $t6, $t7)); - $this->assertEquals($coll, $tree, 'inTree() filters by node'); - $tree = Table10Query::create() - ->inTree(2) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t8, $t9, $t10)); - $this->assertEquals($coll, $tree, 'inTree() filters by node'); - } - - public function testDescendantsOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $objs = Table10Query::create() - ->descendantsOf($t1) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t2, $t3, $t4, $t5, $t6, $t7)); - $this->assertEquals($coll, $objs, 'decendantsOf() filters by descendants of the same scope'); - } - - public function testBranchOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $objs = Table10Query::create() - ->branchOf($t1) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t1, $t2, $t3, $t4, $t5, $t6, $t7)); - $this->assertEquals($coll, $objs, 'branchOf() filters by branch of the same scope'); - - } - - public function testChildrenOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $objs = Table10Query::create() - ->childrenOf($t1) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t2, $t3)); - $this->assertEquals($coll, $objs, 'childrenOf() filters by children of the same scope'); - } - - public function testSiblingsOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $desc = Table10Query::create() - ->siblingsOf($t3) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t2)); - $this->assertEquals($coll, $desc, 'siblingsOf() returns filters by siblings of the same scope'); - } - - public function testAncestorsOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $objs = Table10Query::create() - ->ancestorsOf($t5) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t1, $t3), 'ancestorsOf() filters by ancestors of the same scope'); - } - - public function testRootsOf() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $objs = Table10Query::create() - ->rootsOf($t5) - ->orderByBranch() - ->find(); - $coll = $this->buildCollection(array($t1, $t3, $t5), 'rootsOf() filters by ancestors of the same scope'); - } - - public function testFindRoot() - { - $this->assertTrue(method_exists('Table10Query', 'findRoot'), 'nested_set adds a findRoot() method'); - Table10Query::create()->deleteAll(); - $this->assertNull(Table10Query::create()->findRoot(1), 'findRoot() returns null as long as no root node is defined'); - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $this->assertEquals($t1, Table10Query::create()->findRoot(1), 'findRoot() returns a tree root'); - $this->assertEquals($t8, Table10Query::create()->findRoot(2), 'findRoot() returns a tree root'); - } - - public function testFindTree() - { - list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope(); - /* Tree used for tests - Scope 1 - t1 - | \ - t2 t3 - | \ - t4 t5 - | \ - t6 t7 - Scope 2 - t8 - | \ - t9 t10 - */ - $tree = Table10Query::create()->findTree(1); - $coll = $this->buildCollection(array($t1, $t2, $t3, $t4, $t5, $t6, $t7)); - $this->assertEquals($coll, $tree, 'findTree() retrieves the tree of a scope, ordered by branch'); - $tree = Table10Query::create()->findTree(2); - $coll = $this->buildCollection(array($t8, $t9, $t10)); - $this->assertEquals($coll, $tree, 'findTree() retrieves the tree of a scope, ordered by branch'); - } - - protected function buildCollection($arr) - { - $coll = new PropelObjectCollection(); - $coll->setData($arr); - $coll->setModel('Table10'); - - return $coll; - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorTest.php deleted file mode 100644 index 06594aac80..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorTest.php +++ /dev/null @@ -1,48 +0,0 @@ -assertEquals(count($table9->getColumns()), 5, 'nested_set adds three column by default'); - $this->assertTrue(method_exists('Table9', 'getTreeLeft'), 'nested_set adds a tree_left column by default'); - $this->assertTrue(method_exists('Table9', 'getLeftValue'), 'nested_set maps the left_value getter with the tree_left column'); - $this->assertTrue(method_exists('Table9', 'getTreeRight'), 'nested_set adds a tree_right column by default'); - $this->assertTrue(method_exists('Table9', 'getRightValue'), 'nested_set maps the right_value getter with the tree_right column'); - $this->assertTrue(method_exists('Table9', 'getTreeLevel'), 'nested_set adds a tree_level column by default'); - $this->assertTrue(method_exists('Table9', 'getLevel'), 'nested_set maps the level getter with the tree_level column'); - $this->assertFalse(method_exists('Table9', 'getTreeScope'), 'nested_set does not add a tree_scope column by default'); - $this->assertFalse(method_exists('Table9', 'getScopeValue'), 'nested_set does not map the scope_value getter with the tree_scope column by default'); - - } - - public function testParameters() - { - $table10 = Table10Peer::getTableMap(); - $this->assertEquals(count($table10->getColumns()), 6, 'nested_set does not add columns when they already exist'); - $this->assertTrue(method_exists('Table10', 'getLeftValue'), 'nested_set maps the left_value getter with the tree_left column'); - $this->assertTrue(method_exists('Table10', 'getRightValue'), 'nested_set maps the right_value getter with the tree_right column'); - $this->assertTrue(method_exists('Table10', 'getLevel'), 'nested_set maps the level getter with the tree_level column'); - $this->assertTrue(method_exists('Table10', 'getScopeValue'), 'nested_set maps the scope_value getter with the tree_scope column when the use_scope parameter is true'); - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sluggable/SluggableBehaviorTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/sluggable/SluggableBehaviorTest.php deleted file mode 100644 index a65bf3ea82..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sluggable/SluggableBehaviorTest.php +++ /dev/null @@ -1,299 +0,0 @@ -assertEquals(count($table13->getColumns()), 3, 'Sluggable adds one columns by default'); - $this->assertTrue(method_exists('Table13', 'getSlug'), 'Sluggable adds a slug column by default'); - $table14 = Table14Peer::getTableMap(); - $this->assertEquals(count($table14->getColumns()), 3, 'Sluggable does not add a column when it already exists'); - $this->assertTrue(method_exists('Table14', 'getUrl'), 'Sluggable allows customization of slug_column name'); - $this->assertTrue(method_exists('Table14', 'getSlug'), 'Sluggable adds a standard getter for the slug column'); - } - - public function testObjectGetter() - { - $this->assertTrue(method_exists('Table13', 'getSlug'), 'Sluggable adds a getter for the slug column'); - $t = new Table13(); - $t->setSlug('foo'); - $this->assertEquals('foo', $t->getSlug(), 'getSlug() returns the object slug'); - $this->assertTrue(method_exists('Table14', 'getSlug'), 'Sluggable adds a getter for the slug column, even if the column does not have the default name'); - $t = new Table14(); - $t->setUrl('foo'); - $this->assertEquals('foo', $t->getSlug(), 'getSlug() returns the object slug'); - } - - public function testObjectSetter() - { - $this->assertTrue(method_exists('Table13', 'setSlug'), 'Sluggable adds a setter for the slug column'); - $t = new Table13(); - $t->setSlug('foo'); - $this->assertEquals('foo', $t->getSlug(), 'setSlug() sets the object slug'); - $this->assertTrue(method_exists('Table14', 'setSlug'), 'Sluggable adds a setter for the slug column, even if the column does not have the default name'); - $t = new Table14(); - $t->setSlug('foo'); - $this->assertEquals('foo', $t->getUrl(), 'setSlug() sets the object slug'); - } - - public function testObjectCreateRawSlug() - { - $t = new TestableTable13(); - $this->assertEquals('n-a', $t->createRawSlug(), 'createRawSlug() returns an empty string for an empty object with no pattern'); - $t->setTitle('Hello, World'); - $this->assertEquals('hello-world', $t->createRawSlug(), 'createRawSlug() returns the cleaned up object string representation by default'); - - $t = new TestableTable14(); - $this->assertEquals('/foo/n-a/bar', $t->createRawSlug(), 'createRawSlug() returns a slug for an empty object with a pattern'); - $t->setTitle('Hello, World'); - $this->assertEquals('/foo/hello-world/bar', $t->createRawSlug(), 'createRawSlug() returns a slug based on a pattern'); - } - - public static function cleanupSlugProvider() - { - return array( - array('', 'n-a'), - array('foo', 'foo'), - array('foo bar', 'foo-bar'), - array('foo bar', 'foo-bar'), - array('FoO', 'foo'), - array('fôo', 'foo'), - array(' foo ', 'foo'), - array('f/o:o', 'f-o-o'), - array('foo1', 'foo1'), - ); - } - - /** - * @dataProvider cleanupSlugProvider - */ - public function testObjectCleanupSlugPart($in, $out) - { - $t = new TestableTable13(); - $this->assertEquals($out, $t->cleanupSlugPart($in), 'cleanupSlugPart() cleans up the slug part'); - } - - public static function limitSlugSizeProvider() - { - return array( - array('123', '123'), - array(str_repeat('*', 80), str_repeat('*', 80)), - array(str_repeat('*', 97), str_repeat('*', 97)), - array(str_repeat('*', 98), str_repeat('*', 97)), - array(str_repeat('*', 99), str_repeat('*', 97)), - array(str_repeat('*', 100), str_repeat('*', 97)), - array(str_repeat('*', 150), str_repeat('*', 97)), - ); - } - - /** - * @dataProvider limitSlugSizeProvider - */ - public function testObjectLimitSlugSize($in, $out) - { - $t = new TestableTable14(); - $this->assertEquals($out, $t->limitSlugSize($in), 'limitSlugsize() limits the slug size'); - } - - public function testObjectMakeSlugUnique() - { - Table13Query::create()->deleteAll(); - $t = new TestableTable13(); - $this->assertEquals('', $t->makeSlugUnique(''), 'makeSlugUnique() returns the input slug when the input is empty'); - $this->assertEquals('foo', $t->makeSlugUnique('foo'), 'makeSlugUnique() returns the input slug when the table is empty'); - $t->setSlug('foo'); - $t->save(); - $t = new TestableTable13(); - $this->assertEquals('bar', $t->makeSlugUnique('bar'), 'makeSlugUnique() returns the input slug when the table does not contain a similar slug'); - $t->save(); - $t = new TestableTable13(); - $this->assertEquals('foo-1', $t->makeSlugUnique('foo'), 'makeSlugUnique() returns an incremented input when it already exists'); - $t->setSlug('foo-1'); - $t->save(); - $t = new TestableTable13(); - $this->assertEquals('foo-2', $t->makeSlugUnique('foo'), 'makeSlugUnique() returns an incremented input when it already exists'); - } - - public function testObjectCreateSlug() - { - Table13Query::create()->deleteAll(); - $t = new TestableTable13(); - $this->assertEquals('n-a', $t->createSlug(), 'createSlug() returns n-a for an empty object'); - $t->setTitle('Hello, World!'); - $this->assertEquals('hello-world', $t->createSlug(), 'createSlug() returns a cleaned up slug'); - $t->setSlug('hello-world'); - $t->save(); - $t = new TestableTable13(); - $t->setTitle('Hello; wOrld'); - $this->assertEquals('hello-world-1', $t->createSlug(), 'createSlug() returns a unique slug'); - - Table14Query::create()->deleteAll(); - $t = new TestableTable14(); - $this->assertEquals('/foo/n-a/bar', $t->createSlug(), 'createSlug() returns a slug for an empty object with a pattern'); - $t->setTitle('Hello, World!'); - $this->assertEquals('/foo/hello-world/bar', $t->createSlug(), 'createSlug() returns a cleaned up slug'); - $t->setSlug('/foo/hello-world/bar'); - $t->save(); - $t = new TestableTable14(); - $t->setTitle('Hello; wOrld:'); - $this->assertEquals('/foo/hello-world/bar/1', $t->createSlug(), 'createSlug() returns a unique slug'); - } - - public function testObjectPreSave() - { - Table14Query::create()->deleteAll(); - $t = new Table14(); - $t->save(); - $this->assertEquals('/foo/n-a/bar', $t->getSlug(), 'preSave() sets a default slug for empty objects'); - $t = new Table14(); - $t->setTitle('Hello, World'); - $t->save(); - $this->assertEquals('/foo/hello-world/bar', $t->getSlug(), 'preSave() sets a cleanued up slug for objects'); - $t = new Table14(); - $t->setTitle('Hello, World'); - $t->save(); - $this->assertEquals('/foo/hello-world/bar/1', $t->getSlug(), 'preSave() sets a unique slug for objects'); - $t = new Table14(); - $t->setTitle('Hello, World'); - $t->setSlug('/foo/custom/bar'); - $t->save(); - $this->assertEquals('/foo/custom/bar', $t->getSlug(), 'preSave() uses the given slug if it exists'); - $t = new Table14(); - $t->setTitle('Hello, World'); - $t->setSlug('/foo/custom/bar'); - $t->save(); - $this->assertEquals('/foo/custom/bar/1', $t->getSlug(), 'preSave() uses the given slug if it exists and makes it unique'); - } - - public function testObjectSlugLifecycle() - { - Table13Query::create()->deleteAll(); - $t = new Table13(); - $t->setTitle('Hello, World'); - $t->save(); - $this->assertEquals('hello-world', $t->getSlug(), 'preSave() creates a slug for new objects'); - $t->setSlug('hello-bar'); - $t->save(); - $this->assertEquals('hello-bar', $t->getSlug(), 'setSlug() allows to override default slug'); - $t->setSlug(''); - $t->save(); - $this->assertEquals('hello-world', $t->getSlug(), 'setSlug(null) relaunches the slug generation'); - - Table14Query::create()->deleteAll(); - $t = new Table14(); - $t->setTitle('Hello, World2'); - $t->setSlug('hello-bar2'); - $t->save(); - $this->assertEquals('hello-bar2', $t->getSlug(), 'setSlug() allows to override default slug, even before save'); - $t->setSlug(''); - $t->save(); - $this->assertEquals('/foo/hello-world2/bar', $t->getSlug(), 'setSlug(null) relaunches the slug generation'); - } - - public function testObjectSlugAutoUpdate() - { - Table13Query::create()->deleteAll(); - $t = new Table13(); - $t->setTitle('Hello, World'); - $t->save(); - $this->assertEquals('hello-world', $t->getSlug(), 'preSave() creates a slug for new objects'); - $t->setTitle('Hello, My World'); - $t->save(); - $this->assertEquals('hello-my-world', $t->getSlug(), 'preSave() autoupdates slug on object change'); - $t->setTitle('Hello, My Whole New World'); - $t->setSlug('hello-bar'); - $t->save(); - $this->assertEquals('hello-bar', $t->getSlug(), 'preSave() does not autoupdate slug when it was set by the user'); - } - - public function testObjectSlugAutoUpdatePermanent() - { - Table14Query::create()->deleteAll(); - $t = new Table14(); - $t->setTitle('Hello, World'); - $t->save(); - $this->assertEquals('/foo/hello-world/bar', $t->getSlug(), 'preSave() creates a slug for new objects'); - $t->setTitle('Hello, My World'); - $t->save(); - $this->assertEquals('/foo/hello-world/bar', $t->getSlug(), 'preSave() does not autoupdate slug on object change for permanent slugs'); - $t->setSlug('hello-bar'); - $t->save(); - $this->assertEquals('hello-bar', $t->getSlug(), 'setSlug() still works for permanent slugs'); - } - - public function testQueryFindOneBySlug() - { - $this->assertTrue(method_exists('Table13Query', 'findOneBySlug'), 'The generated query provides a findOneBySlug() method'); - $this->assertTrue(method_exists('Table14Query', 'findOneBySlug'), 'The generated query provides a findOneBySlug() method even if the slug column doesnt have the default name'); - - Table14Query::create()->deleteAll(); - $t1 = new Table14(); - $t1->setTitle('Hello, World'); - $t1->save(); - $t2 = new Table14(); - $t2->setTitle('Hello, Cruel World'); - $t2->save(); - $t = Table14Query::create()->findOneBySlug('/foo/hello-world/bar'); - $this->assertEquals($t1, $t, 'findOneBySlug() returns a single object matching the slug'); - } -} - -class TestableTable13 extends Table13 -{ - public function createSlug() - { - return parent::createSlug(); - } - - public function createRawSlug() - { - return parent::createRawSlug(); - } - - public static function cleanupSlugPart($slug, $separator = '-') - { - return parent::cleanupSlugPart($slug, $separator); - } - - public function makeSlugUnique($slug, $separator = '-', $increment = 0) - { - return parent::makeSlugUnique($slug, $separator, $increment); - } -} - -class TestableTable14 extends Table14 -{ - public function createSlug() - { - return parent::createSlug(); - } - - public function createRawSlug() - { - return parent::createRawSlug(); - } - - public static function limitSlugSize($slug, $incrementReservedSpace = 3) - { - return parent::limitSlugSize($slug, $incrementReservedSpace); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorObjectBuilderModifierTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorObjectBuilderModifierTest.php deleted file mode 100644 index 125e03a7f5..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorObjectBuilderModifierTest.php +++ /dev/null @@ -1,279 +0,0 @@ -populateTable11(); - } - - public function testPreInsert() - { - Table11Peer::doDeleteAll(); - $t1 = new Table11(); - $t1->save(); - $this->assertEquals($t1->getRank(), 1, 'Sortable inserts new line in first position if no row present'); - $t2 = new Table11(); - $t2->setTitle('row2'); - $t2->save(); - $this->assertEquals($t2->getRank(), 2, 'Sortable inserts new line in last position'); - } - - public function testPreDelete() - { - $max = Table11Peer::getMaxRank(); - $t3 = Table11Peer::retrieveByRank(3); - $t3->delete(); - $this->assertEquals($max - 1, Table11Peer::getMaxRank(), 'Sortable rearrange subsequent rows on delete'); - $c = new Criteria(); - $c->add(Table11Peer::TITLE, 'row4'); - $t4 = Table11Peer::doSelectOne($c); - $this->assertEquals(3, $t4->getRank(), 'Sortable rearrange subsequent rows on delete'); - } - - public function testIsFirst() - { - $first = Table11Peer::retrieveByRank(1); - $middle = Table11Peer::retrieveByRank(2); - $last = Table11Peer::retrieveByRank(4); - $this->assertTrue($first->isFirst(), 'isFirst() returns true for the first in the rank'); - $this->assertFalse($middle->isFirst(), 'isFirst() returns false for a middle rank'); - $this->assertFalse($last->isFirst(), 'isFirst() returns false for the last in the rank'); - } - - public function testIsLast() - { - $first = Table11Peer::retrieveByRank(1); - $middle = Table11Peer::retrieveByRank(2); - $last = Table11Peer::retrieveByRank(4); - $this->assertFalse($first->isLast(), 'isLast() returns false for the first in the rank'); - $this->assertFalse($middle->isLast(), 'isLast() returns false for a middle rank'); - $this->assertTrue($last->isLast(), 'isLast() returns true for the last in the rank'); - } - - public function testGetNext() - { - $t = Table11Peer::retrieveByRank(3); - $this->assertEquals(4, $t->getNext()->getRank(), 'getNext() returns the next object in rank'); - - $t = Table11Peer::retrieveByRank(4); - $this->assertNull($t->getNext(), 'getNext() returns null for the last object'); - } - - public function testGetPrevious() - { - $t = Table11Peer::retrieveByRank(3); - $this->assertEquals(2, $t->getPrevious()->getRank(), 'getPrevious() returns the previous object in rank'); - - $t = Table11Peer::retrieveByRank(1); - $this->assertNull($t->getPrevious(), 'getPrevious() returns null for the first object'); - } - - public function testInsertAtRank() - { - $t = new Table11(); - $t->setTitle('new'); - $t->insertAtRank(2); - $this->assertEquals(2, $t->getRank(), 'insertAtRank() sets the position'); - $this->assertTrue($t->isNew(), 'insertAtRank() doesn\'t save the object'); - $t->save(); - $expected = array(1 => 'row1', 2 => 'new', 3 => 'row2', 4 => 'row3', 5 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArray(), 'insertAtRank() shifts the entire suite'); - } - - public function testInsertAtMaxRankPlusOne() - { - $t = new Table11(); - $t->setTitle('new'); - $t->insertAtRank(5); - $this->assertEquals(5, $t->getRank(), 'insertAtRank() sets the position'); - $t->save(); - $expected = array(1 => 'row1', 2 => 'row2', 3 => 'row3', 4 => 'row4', 5 => 'new'); - $this->assertEquals($expected, $this->getFixturesArray(), 'insertAtRank() can insert an object at the end of the list'); - } - - /** - * @expectedException PropelException - */ - public function testInsertAtNegativeRank() - { - $t = new Table11(); - $t->insertAtRank(0); - } - - /** - * @expectedException PropelException - */ - public function testInsertAtOverMaxRank() - { - $t = new Table11(); - $t->insertAtRank(6); - } - - public function testInsertAtBottom() - { - $t = new Table11(); - $t->setTitle('new'); - $t->insertAtBottom(); - $this->assertEquals(5, $t->getRank(), 'insertAtBottom() sets the position to the last'); - $this->assertTrue($t->isNew(), 'insertAtBottom() doesn\'t save the object'); - $t->save(); - $expected = array(1 => 'row1', 2 => 'row2', 3 => 'row3', 4 => 'row4', 5 => 'new'); - $this->assertEquals($expected, $this->getFixturesArray(), 'insertAtBottom() does not shift the entire suite'); - } - - public function testInsertAtTop() - { - $t = new Table11(); - $t->setTitle('new'); - $t->insertAtTop(); - $this->assertEquals(1, $t->getRank(), 'insertAtTop() sets the position to 1'); - $this->assertTrue($t->isNew(), 'insertAtTop() doesn\'t save the object'); - $t->save(); - $expected = array(1 => 'new', 2 => 'row1', 3 => 'row2', 4 => 'row3', 5 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArray(), 'insertAtTop() shifts the entire suite'); - } - - public function testMoveToRank() - { - $t2 = Table11Peer::retrieveByRank(2); - $t2->moveToRank(3); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row2', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArray(), 'moveToRank() can move up'); - $t2->moveToRank(1); - $expected = array(1 => 'row2', 2 => 'row1', 3 => 'row3', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArray(), 'moveToRank() can move to the first rank'); - $t2->moveToRank(4); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row4', 4 => 'row2'); - $this->assertEquals($expected, $this->getFixturesArray(), 'moveToRank() can move to the last rank'); - $t2->moveToRank(2); - $expected = array(1 => 'row1', 2 => 'row2', 3 => 'row3', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArray(), 'moveToRank() can move down'); - } - - /** - * @expectedException PropelException - */ - public function testMoveToNewObject() - { - $t = new Table11(); - $t->moveToRank(2); - } - - /** - * @expectedException PropelException - */ - public function testMoveToNegativeRank() - { - $t = Table11Peer::retrieveByRank(2); - $t->moveToRank(0); - } - - /** - * @expectedException PropelException - */ - public function testMoveToOverMaxRank() - { - $t = Table11Peer::retrieveByRank(2); - $t->moveToRank(5); - } - - public function testSwapWith() - { - $t2 = Table11Peer::retrieveByRank(2); - $t4 = Table11Peer::retrieveByRank(4); - $t2->swapWith($t4); - $expected = array(1 => 'row1', 2 => 'row4', 3 => 'row3', 4 => 'row2'); - $this->assertEquals($expected, $this->getFixturesArray(), 'swapWith() swaps ranks of the two objects and leaves the other ranks unchanged'); - } - - public function testMoveUp() - { - $t3 = Table11Peer::retrieveByRank(3); - $res = $t3->moveUp(); - $this->assertEquals($t3, $res, 'moveUp() returns the current object'); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row2', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArray(), 'moveUp() swaps ranks with the object of higher rank'); - $t3->moveUp(); - $expected = array(1 => 'row3', 2 => 'row1', 3 => 'row2', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArray(), 'moveUp() swaps ranks with the object of higher rank'); - $res = $t3->moveUp(); - $expected = array(1 => 'row3', 2 => 'row1', 3 => 'row2', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArray(), 'moveUp() changes nothing when called on the object at the top'); - } - - public function testMoveDown() - { - $t2 = Table11Peer::retrieveByRank(2); - $res = $t2->moveDown(); - $this->assertEquals($t2, $res, 'moveDown() returns the current object'); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row2', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArray(), 'moveDown() swaps ranks with the object of lower rank'); - $t2->moveDown(); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row4', 4 => 'row2'); - $this->assertEquals($expected, $this->getFixturesArray(), 'moveDown() swaps ranks with the object of lower rank'); - $res = $t2->moveDown(); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row4', 4 => 'row2'); - $this->assertEquals($expected, $this->getFixturesArray(), 'moveDown() changes nothing when called on the object at the bottom'); - } - - public function testMoveToTop() - { - $t3 = Table11Peer::retrieveByRank(3); - $res = $t3->moveToTop(); - $this->assertEquals($t3, $res, 'moveToTop() returns the current oobject'); - $expected = array(1 => 'row3', 2 => 'row1', 3 => 'row2', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArray(), 'moveToTop() moves to the top'); - $res = $t3->moveToTop(); - $expected = array(1 => 'row3', 2 => 'row1', 3 => 'row2', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArray(), 'moveToTop() changes nothing when called on the top node'); - } - - public function testMoveToBottom() - { - $t2 = Table11Peer::retrieveByRank(2); - $res = $t2->moveToBottom(); - $this->assertEquals($t2, $res, 'moveToBottom() returns the current object'); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row4', 4 => 'row2'); - $this->assertEquals($expected, $this->getFixturesArray(), 'moveToBottom() moves to the bottom'); - $res = $t2->moveToBottom(); - $this->assertFalse($res, 'moveToBottom() returns false when called on the bottom node'); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row4', 4 => 'row2'); - $this->assertEquals($expected, $this->getFixturesArray(), 'moveToBottom() changes nothing when called on the bottom node'); - } - - public function testRemoveFromList() - { - $t2 = Table11Peer::retrieveByRank(2); - $res = $t2->removeFromList(); - $this->assertTrue($res instanceof Table11, 'removeFromList() returns the current object'); - $this->assertNull($res->getRank(), 'removeFromList() resets the object\'s rank'); - Table11Peer::clearInstancePool(); - $expected = array(1 => 'row1', 2 => 'row2', 3 => 'row3', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArray(), 'removeFromList() does not change the list until the object is saved'); - $t2->save(); - Table11Peer::clearInstancePool(); - $expected = array(null => 'row2', 1 => 'row1', 2 => 'row3', 3 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArray(), 'removeFromList() changes the list once the object is saved'); - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorObjectBuilderModifierWithScopeTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorObjectBuilderModifierWithScopeTest.php deleted file mode 100644 index 22261880a0..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorObjectBuilderModifierWithScopeTest.php +++ /dev/null @@ -1,335 +0,0 @@ -populateTable12(); - } - - public function testPreInsert() - { - Table12Peer::doDeleteAll(); - $t1 = new Table12(); - $t1->setScopeValue(1); - $t1->save(); - $this->assertEquals($t1->getRank(), 1, 'Sortable inserts new line in first position if no row present'); - $t2 = new Table12(); - $t2->setScopeValue(1); - $t2->save(); - $this->assertEquals($t2->getRank(), 2, 'Sortable inserts new line in last position'); - $t2 = new Table12(); - $t2->setScopeValue(2); - $t2->save(); - $this->assertEquals($t2->getRank(), 1, 'Sortable inserts new line in last position'); - } - - public function testPreDelete() - { - $max = Table12Peer::getMaxRank(1); - $t3 = Table12Peer::retrieveByRank(3, 1); - $t3->delete(); - $this->assertEquals($max - 1, Table12Peer::getMaxRank(1), 'Sortable rearrange subsequent rows on delete'); - $c = new Criteria(); - $c->add(Table12Peer::TITLE, 'row4'); - $t4 = Table12Peer::doSelectOne($c); - $this->assertEquals(3, $t4->getRank(), 'Sortable rearrange subsequent rows on delete'); - $expected = array(1 => 'row5', 2 => 'row6'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(2), 'delete() leaves other suites unchanged'); - } - - public function testIsFirst() - { - $first = Table12Peer::retrieveByRank(1, 1); - $middle = Table12Peer::retrieveByRank(2, 1); - $last = Table12Peer::retrieveByRank(4, 1); - $this->assertTrue($first->isFirst(), 'isFirst() returns true for the first in the rank'); - $this->assertFalse($middle->isFirst(), 'isFirst() returns false for a middle rank'); - $this->assertFalse($last->isFirst(), 'isFirst() returns false for the last in the rank'); - $first = Table12Peer::retrieveByRank(1, 2); - $last = Table12Peer::retrieveByRank(2, 2); - $this->assertTrue($first->isFirst(), 'isFirst() returns true for the first in the rank'); - $this->assertFalse($last->isFirst(), 'isFirst() returns false for the last in the rank'); - } - - public function testIsLast() - { - $first = Table12Peer::retrieveByRank(1, 1); - $middle = Table12Peer::retrieveByRank(2, 1); - $last = Table12Peer::retrieveByRank(4, 1); - $this->assertFalse($first->isLast(), 'isLast() returns false for the first in the rank'); - $this->assertFalse($middle->isLast(), 'isLast() returns false for a middle rank'); - $this->assertTrue($last->isLast(), 'isLast() returns true for the last in the rank'); - $first = Table12Peer::retrieveByRank(1, 2); - $last = Table12Peer::retrieveByRank(2, 2); - $this->assertFalse($first->isLast(), 'isLast() returns false for the first in the rank'); - $this->assertTrue($last->isLast(), 'isLast() returns true for the last in the rank'); - } - - public function testGetNext() - { - $t = Table12Peer::retrieveByRank(1, 1); - $this->assertEquals('row2', $t->getNext()->getTitle(), 'getNext() returns the next object in rank in the same suite'); - $t = Table12Peer::retrieveByRank(1, 2); - $this->assertEquals('row6', $t->getNext()->getTitle(), 'getNext() returns the next object in rank in the same suite'); - - $t = Table12Peer::retrieveByRank(3, 1); - $this->assertEquals(4, $t->getNext()->getRank(), 'getNext() returns the next object in rank'); - - $t = Table12Peer::retrieveByRank(4, 1); - $this->assertNull($t->getNext(), 'getNext() returns null for the last object'); - } - - public function testGetPrevious() - { - $t = Table12Peer::retrieveByRank(2, 1); - $this->assertEquals('row1', $t->getPrevious()->getTitle(), 'getPrevious() returns the previous object in rank in the same suite'); - $t = Table12Peer::retrieveByRank(2, 2); - $this->assertEquals('row5', $t->getPrevious()->getTitle(), 'getPrevious() returns the previous object in rank in the same suite'); - - $t = Table12Peer::retrieveByRank(3, 1); - $this->assertEquals(2, $t->getPrevious()->getRank(), 'getPrevious() returns the previous object in rank'); - - $t = Table12Peer::retrieveByRank(1, 1); - $this->assertNull($t->getPrevious(), 'getPrevious() returns null for the first object'); - } - - public function testInsertAtRank() - { - $t = new Table12(); - $t->setTitle('new'); - $t->setScopeValue(1); - $t->insertAtRank(2); - $this->assertEquals(2, $t->getRank(), 'insertAtRank() sets the position'); - $this->assertTrue($t->isNew(), 'insertAtTop() doesn\'t save the object'); - $t->save(); - $expected = array(1 => 'row1', 2 => 'new', 3 => 'row2', 4 => 'row3', 5 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'insertAtRank() shifts the entire suite'); - $expected = array(1 => 'row5', 2 => 'row6'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(2), 'insertAtRank() leaves other suites unchanged'); - } - - /** - * @expectedException PropelException - */ - public function testInsertAtNegativeRank() - { - $t = new Table12(); - $t->setScopeValue(1); - $t->insertAtRank(0); - } - - /** - * @expectedException PropelException - */ - public function testInsertAtOverMaxRank() - { - $t = new Table12(); - $t->setScopeValue(1); - $t->insertAtRank(6); - } - - /** - * @expectedException PropelException - */ - public function testInsertAtNoScope() - { - $t = new Table12(); - $t->insertAtRank(3); - } - - public function testInsertAtBottom() - { - $t = new Table12(); - $t->setTitle('new'); - $t->setScopeValue(1); - $t->insertAtBottom(); - $this->assertEquals(5, $t->getRank(), 'insertAtBottom() sets the position to the last'); - $this->assertTrue($t->isNew(), 'insertAtTop() doesn\'t save the object'); - $t->save(); - $expected = array(1 => 'row1', 2 => 'row2', 3 => 'row3', 4 => 'row4', 5 => 'new'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'insertAtBottom() does not shift the entire suite'); - $expected = array(1 => 'row5', 2 => 'row6'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(2), 'insertAtBottom() leaves other suites unchanged'); - } - - /** - * @expectedException PropelException - */ - public function testInsertAtBottomNoScope() - { - $t = new Table12(); - $t->insertAtBottom(); - } - - public function testInsertAtTop() - { - $t = new Table12(); - $t->setTitle('new'); - $t->setScopeValue(1); - $t->insertAtTop(); - $this->assertEquals(1, $t->getRank(), 'insertAtTop() sets the position to 1'); - $this->assertTrue($t->isNew(), 'insertAtTop() doesn\'t save the object'); - $t->save(); - $expected = array(1 => 'new', 2 => 'row1', 3 => 'row2', 4 => 'row3', 5 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'insertAtTop() shifts the entire suite'); - $expected = array(1 => 'row5', 2 => 'row6'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(2), 'insertAtTop() leaves other suites unchanged'); - } - - public function testMoveToRank() - { - $t2 = Table12Peer::retrieveByRank(2, 1); - $t2->moveToRank(3); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row2', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'moveToRank() can move up'); - $expected = array(1 => 'row5', 2 => 'row6'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(2), 'moveToRank() leaves other suites unchanged'); - $t2->moveToRank(1); - $expected = array(1 => 'row2', 2 => 'row1', 3 => 'row3', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'moveToRank() can move to the first rank'); - $t2->moveToRank(4); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row4', 4 => 'row2'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'moveToRank() can move to the last rank'); - $t2->moveToRank(2); - $expected = array(1 => 'row1', 2 => 'row2', 3 => 'row3', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'moveToRank() can move down'); - } - - /** - * @expectedException PropelException - */ - public function testMoveToNewObject() - { - $t = new Table12(); - $t->moveToRank(2); - } - - /** - * @expectedException PropelException - */ - public function testMoveToNegativeRank() - { - $t = Table12Peer::retrieveByRank(2, 1); - $t->moveToRank(0); - } - - /** - * @expectedException PropelException - */ - public function testMoveToOverMaxRank() - { - $t = Table12Peer::retrieveByRank(2, 1); - $t->moveToRank(5); - } - - public function testSwapWith() - { - $t2 = Table12Peer::retrieveByRank(2, 1); - $t4 = Table12Peer::retrieveByRank(4, 1); - $t2->swapWith($t4); - $expected = array(1 => 'row1', 2 => 'row4', 3 => 'row3', 4 => 'row2'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'swapWith() swaps ranks of the two objects and leaves the other ranks unchanged'); - $expected = array(1 => 'row5', 2 => 'row6'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(2), 'swapWith() leaves other suites unchanged'); - } - - public function testMoveUp() - { - $t3 = Table12Peer::retrieveByRank(3, 1); - $res = $t3->moveUp(); - $this->assertEquals($t3, $res, 'moveUp() returns the current object'); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row2', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'moveUp() swaps ranks with the object of higher rank'); - $expected = array(1 => 'row5', 2 => 'row6'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(2), 'moveUp() leaves other suites unchanged'); - $t3->moveUp(); - $expected = array(1 => 'row3', 2 => 'row1', 3 => 'row2', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'moveUp() swaps ranks with the object of higher rank'); - $res = $t3->moveUp(); - $expected = array(1 => 'row3', 2 => 'row1', 3 => 'row2', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'moveUp() changes nothing when called on the object at the top'); - } - - public function testMoveDown() - { - $t2 = Table12Peer::retrieveByRank(2, 1); - $res = $t2->moveDown(); - $this->assertEquals($t2, $res, 'moveDown() returns the current object'); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row2', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'moveDown() swaps ranks with the object of lower rank'); - $expected = array(1 => 'row5', 2 => 'row6'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(2), 'moveDown() leaves other suites unchanged'); - $t2->moveDown(); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row4', 4 => 'row2'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'moveDown() swaps ranks with the object of lower rank'); - $res = $t2->moveDown(); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row4', 4 => 'row2'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'moveDown() changes nothing when called on the object at the bottom'); - } - - public function testMoveToTop() - { - $t3 = Table12Peer::retrieveByRank(3, 1); - $res = $t3->moveToTop(); - $this->assertEquals($t3, $res, 'moveToTop() returns the current object'); - $expected = array(1 => 'row3', 2 => 'row1', 3 => 'row2', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'moveToTop() moves to the top'); - $expected = array(1 => 'row5', 2 => 'row6'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(2), 'moveToTop() leaves other suites unchanged'); - $res = $t3->moveToTop(); - $expected = array(1 => 'row3', 2 => 'row1', 3 => 'row2', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'moveToTop() changes nothing when called on the top node'); - } - - public function testMoveToBottom() - { - $t2 = Table12Peer::retrieveByRank(2, 1); - $res = $t2->moveToBottom(); - $this->assertEquals($t2, $res, 'moveToBottom() returns the current object'); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row4', 4 => 'row2'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'moveToBottom() moves to the bottom'); - $expected = array(1 => 'row5', 2 => 'row6'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(2), 'moveToBottom() leaves other suites unchanged'); - $res = $t2->moveToBottom(); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row4', 4 => 'row2'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'moveToBottom() changes nothing when called on the bottom node'); - } - - public function testRemoveFromList() - { - $t2 = Table12Peer::retrieveByRank(2, 1); - $res = $t2->removeFromList(); - $this->assertTrue($res instanceof Table12, 'removeFromList() returns the current object'); - $this->assertNull($res->getRank(), 'removeFromList() resets the object\'s rank'); - Table12Peer::clearInstancePool(); - $expected = array(1 => 'row1', 2 => 'row2', 3 => 'row3', 4 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'removeFromList() does not change the list until the object is saved'); - $t2->save(); - Table12Peer::clearInstancePool(); - $expected = array(1 => 'row1', 2 => 'row3', 3 => 'row4'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'removeFromList() changes the list once the object is saved'); - $expected = array(1 => 'row5', 2 => 'row6'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(2), 'removeFromList() leaves other suites unchanged'); - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorPeerBuilderModifierTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorPeerBuilderModifierTest.php deleted file mode 100644 index 3ffb26b7e4..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorPeerBuilderModifierTest.php +++ /dev/null @@ -1,83 +0,0 @@ -populateTable11(); - } - - public function testStaticAttributes() - { - $this->assertEquals(Table11Peer::RANK_COL, 'table11.SORTABLE_RANK'); - } - - public function testGetMaxRank() - { - $this->assertEquals(4, Table11Peer::getMaxRank(), 'getMaxRank() returns the maximum rank'); - $t4 = Table11Peer::retrieveByRank(4); - $t4->delete(); - $this->assertEquals(3, Table11Peer::getMaxRank(), 'getMaxRank() returns the maximum rank'); - Table11Peer::doDeleteAll(); - $this->assertNull(Table11Peer::getMaxRank(), 'getMaxRank() returns null for empty tables'); - } - public function testRetrieveByRank() - { - $t = Table11Peer::retrieveByRank(5); - $this->assertNull($t, 'retrieveByRank() returns null for an unknown rank'); - $t3 = Table11Peer::retrieveByRank(3); - $this->assertEquals(3, $t3->getRank(), 'retrieveByRank() returns the object with the required rank'); - $this->assertEquals('row3', $t3->getTitle(), 'retrieveByRank() returns the object with the required rank'); - } - - public function testReorder() - { - $objects = Table11Peer::doSelect(new Criteria()); - $ids = array(); - foreach ($objects as $object) { - $ids[]= $object->getPrimaryKey(); - } - $ranks = array(4, 3, 2, 1); - $order = array_combine($ids, $ranks); - Table11Peer::reorder($order); - $expected = array(1 => 'row3', 2 => 'row2', 3 => 'row4', 4 => 'row1'); - $this->assertEquals($expected, $this->getFixturesArray(), 'reorder() reorders the suite'); - } - - public function testDoSelectOrderByRank() - { - $objects = Table11Peer::doSelectOrderByRank(); - $oldRank = 0; - while ($object = array_shift($objects)) { - $this->assertTrue($object->getRank() > $oldRank); - $oldRank = $object->getRank(); - } - $objects = Table11Peer::doSelectOrderByRank(null, Criteria::DESC); - $oldRank = 10; - while ($object = array_shift($objects)) { - $this->assertTrue($object->getRank() < $oldRank); - $oldRank = $object->getRank(); - } - } - - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorPeerBuilderModifierWithScopeTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorPeerBuilderModifierWithScopeTest.php deleted file mode 100644 index f9a80f6e53..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorPeerBuilderModifierWithScopeTest.php +++ /dev/null @@ -1,114 +0,0 @@ -populateTable12(); - } - - public function testStaticAttributes() - { - $this->assertEquals(Table12Peer::RANK_COL, 'table12.POSITION'); - $this->assertEquals(Table12Peer::SCOPE_COL, 'table12.MY_SCOPE_COLUMN'); - } - - public function testGetMaxRank() - { - $this->assertEquals(4, Table12Peer::getMaxRank(1), 'getMaxRank() returns the maximum rank of the suite'); - $this->assertEquals(2, Table12Peer::getMaxRank(2), 'getMaxRank() returns the maximum rank of the suite'); - $t4 = Table12Peer::retrieveByRank(4, 1); - $t4->delete(); - $this->assertEquals(3, Table12Peer::getMaxRank(1), 'getMaxRank() returns the maximum rank'); - Table12Peer::doDeleteAll(); - $this->assertNull(Table12Peer::getMaxRank(1), 'getMaxRank() returns null for empty tables'); - } - public function testRetrieveByRank() - { - $t = Table12Peer::retrieveByRank(5, 1); - $this->assertNull($t, 'retrieveByRank() returns null for an unknown rank'); - $t3 = Table12Peer::retrieveByRank(3, 1); - $this->assertEquals(3, $t3->getRank(), 'retrieveByRank() returns the object with the required rank in the required suite'); - $this->assertEquals('row3', $t3->getTitle(), 'retrieveByRank() returns the object with the required rank in the required suite'); - $t6 = Table12Peer::retrieveByRank(2, 2); - $this->assertEquals(2, $t6->getRank(), 'retrieveByRank() returns the object with the required rank in the required suite'); - $this->assertEquals('row6', $t6->getTitle(), 'retrieveByRank() returns the object with the required rank in the required suite'); - } - - public function testReorder() - { - $c = new Criteria(); - $c->add(Table12Peer::SCOPE_COL, 1); - $objects = Table12Peer::doSelectOrderByRank($c); - $ids = array(); - foreach ($objects as $object) { - $ids[]= $object->getPrimaryKey(); - } - $ranks = array(4, 3, 2, 1); - $order = array_combine($ids, $ranks); - Table12Peer::reorder($order); - $expected = array(1 => 'row4', 2 => 'row3', 3 => 'row2', 4 => 'row1'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'reorder() reorders the suite'); - $expected = array(1 => 'row5', 2 => 'row6'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(2), 'reorder() leaves other suites unchanged'); - } - - public function testDoSelectOrderByRank() - { - $c = new Criteria(); - $c->add(Table12Peer::SCOPE_COL, 1); - $objects = Table12Peer::doSelectOrderByRank($c); - $oldRank = 0; - while ($object = array_shift($objects)) { - $this->assertTrue($object->getRank() > $oldRank); - $oldRank = $object->getRank(); - } - $c = new Criteria(); - $c->add(Table12Peer::SCOPE_COL, 1); - $objects = Table12Peer::doSelectOrderByRank($c, Criteria::DESC); - $oldRank = 10; - while ($object = array_shift($objects)) { - $this->assertTrue($object->getRank() < $oldRank); - $oldRank = $object->getRank(); - } - } - - public function testRetrieveList() - { - $this->assertEquals(4, count(Table12Peer::retrieveList(1)), 'retrieveList() returns the list of objects in the scope'); - $this->assertEquals(2, count(Table12Peer::retrieveList(2)), 'retrieveList() returns the list of objects in the scope'); - } - - public function testCountList() - { - $this->assertEquals(4, Table12Peer::countList(1), 'countList() returns the list of objects in the scope'); - $this->assertEquals(2, Table12Peer::countList(2), 'countList() returns the list of objects in the scope'); - } - - public function testDeleteList() - { - $this->assertEquals(4, Table12Peer::deleteList(1), 'deleteList() returns the list of objects in the scope'); - $this->assertEquals(2, Table12Peer::doCount(new Criteria()), 'deleteList() deletes the objects in the scope'); - $this->assertEquals(2, Table12Peer::deleteList(2), 'deleteList() returns the list of objects in the scope'); - $this->assertEquals(0, Table12Peer::doCount(new Criteria()), 'deleteList() deletes the objects in the scope'); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorQueryBuilderModifierTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorQueryBuilderModifierTest.php deleted file mode 100644 index 15614f10c2..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorQueryBuilderModifierTest.php +++ /dev/null @@ -1,115 +0,0 @@ -populateTable11(); - } - - public function testFilterByRank() - { - $this->assertTrue(Table11Query::create()->filterByRank(1) instanceof Table11Query, 'filterByRank() returns the current query object'); - $this->assertEquals('row1', Table11Query::create()->filterByRank(1)->findOne()->getTitle(), 'filterByRank() filters on the rank'); - $this->assertEquals('row4', Table11Query::create()->filterByRank(4)->findOne()->getTitle(), 'filterByRank() filters on the rank'); - $this->assertNull(Table11Query::create()->filterByRank(5)->findOne(), 'filterByRank() filters on the rank, which makes the query return no result on a non-existent rank'); - } - - public function testOrderByRank() - { - $this->assertTrue(Table11Query::create()->orderByRank() instanceof Table11Query, 'orderByRank() returns the current query object'); - // default order - $query = Table11Query::create()->orderByRank(); - $expectedQuery = Table11Query::create()->addAscendingOrderByColumn(Table11Peer::SORTABLE_RANK); - $this->assertEquals($expectedQuery, $query, 'orderByRank() orders the query by rank asc'); - // asc order - $query = Table11Query::create()->orderByRank(Criteria::ASC); - $expectedQuery = Table11Query::create()->addAscendingOrderByColumn(Table11Peer::SORTABLE_RANK); - $this->assertEquals($expectedQuery, $query, 'orderByRank() orders the query by rank, using the argument as sort direction'); - // desc order - $query = Table11Query::create()->orderByRank(Criteria::DESC); - $expectedQuery = Table11Query::create()->addDescendingOrderByColumn(Table11Peer::SORTABLE_RANK); - $this->assertEquals($expectedQuery, $query, 'orderByRank() orders the query by rank, using the argument as sort direction'); - } - - /** - * @expectedException PropelException - */ - public function testOrderByRankIncorrectDirection() - { - Table11Query::create()->orderByRank('foo'); - } - - public function testFindList() - { - $ts = Table11Query::create()->findList(); - $this->assertTrue($ts instanceof PropelObjectCollection, 'findList() returns a collection of objects'); - $this->assertEquals(4, count($ts), 'findList() does not filter the query'); - $this->assertEquals('row1', $ts[0]->getTitle(), 'findList() returns an ordered list'); - $this->assertEquals('row2', $ts[1]->getTitle(), 'findList() returns an ordered list'); - $this->assertEquals('row3', $ts[2]->getTitle(), 'findList() returns an ordered list'); - $this->assertEquals('row4', $ts[3]->getTitle(), 'findList() returns an ordered list'); - } - - public function testFindOneByRank() - { - $this->assertTrue(Table11Query::create()->findOneByRank(1) instanceof Table11, 'findOneByRank() returns an instance of the model object'); - $this->assertEquals('row1', Table11Query::create()->findOneByRank(1)->getTitle(), 'findOneByRank() returns a single item based on the rank'); - $this->assertEquals('row4', Table11Query::create()->findOneByRank(4)->getTitle(), 'findOneByRank() returns a single item based on the rank'); - $this->assertNull(Table11Query::create()->findOneByRank(5), 'findOneByRank() returns no result on a non-existent rank'); - } - - public function testGetMaxRank() - { - $this->assertEquals(4, Table11Query::create()->getMaxRank(), 'getMaxRank() returns the maximum rank'); - // delete one - $t4 = Table11Query::create()->findOneByRank(4); - $t4->delete(); - $this->assertEquals(3, Table11Query::create()->getMaxRank(), 'getMaxRank() returns the maximum rank'); - // add one - $t = new Table11(); - $t->save(); - $this->assertEquals(4, Table11Query::create()->getMaxRank(), 'getMaxRank() returns the maximum rank'); - // delete all - Table11Query::create()->deleteAll(); - $this->assertNull(Table11Query::create()->getMaxRank(), 'getMaxRank() returns null for empty tables'); - // add one - $t = new Table11(); - $t->save(); - $this->assertEquals(1, Table11Query::create()->getMaxRank(), 'getMaxRank() returns the maximum rank'); - } - - public function testReorder() - { - $objects = Table11Query::create()->find(); - $ids = array(); - foreach ($objects as $object) { - $ids[]= $object->getPrimaryKey(); - } - $ranks = array(4, 3, 2, 1); - $order = array_combine($ids, $ranks); - Table11Query::create()->reorder($order); - $expected = array(1 => 'row3', 2 => 'row2', 3 => 'row4', 4 => 'row1'); - $this->assertEquals($expected, $this->getFixturesArray(), 'reorder() reorders the suite'); - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorQueryBuilderModifierWithScopeTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorQueryBuilderModifierWithScopeTest.php deleted file mode 100644 index db6f41b6dd..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorQueryBuilderModifierWithScopeTest.php +++ /dev/null @@ -1,142 +0,0 @@ -populateTable12(); - } - - public function testInList() - { - /* List used for tests - scope=1 scope=2 - row1 row5 - row2 row6 - row3 - row4 - */ - $query = Table12Query::create()->inList(1); - $expectedQuery = Table12Query::create()->add(Table12Peer::MY_SCOPE_COLUMN, 1, Criteria::EQUAL); - $this->assertEquals($expectedQuery, $query, 'inList() filters the query by scope'); - $this->assertEquals(4, $query->count(), 'inList() filters the query by scope'); - $query = Table12Query::create()->inList(2); - $expectedQuery = Table12Query::create()->add(Table12Peer::MY_SCOPE_COLUMN, 2, Criteria::EQUAL); - $this->assertEquals($expectedQuery, $query, 'inList() filters the query by scope'); - $this->assertEquals(2, $query->count(), 'inList() filters the query by scope'); - } - - public function testFilterByRank() - { - /* List used for tests - scope=1 scope=2 - row1 row5 - row2 row6 - row3 - row4 - */ - $this->assertEquals('row1', Table12Query::create()->filterByRank(1, 1)->findOne()->getTitle(), 'filterByRank() filters on the rank and the scope'); - $this->assertEquals('row5', Table12Query::create()->filterByRank(1, 2)->findOne()->getTitle(), 'filterByRank() filters on the rank and the scope'); - $this->assertEquals('row4', Table12Query::create()->filterByRank(4, 1)->findOne()->getTitle(), 'filterByRank() filters on the rank and the scope'); - $this->assertNull(Table12Query::create()->filterByRank(4, 2)->findOne(), 'filterByRank() filters on the rank and the scope, which makes the query return no result on a non-existent rank'); - } - - public function testOrderByRank() - { - $this->assertTrue(Table12Query::create()->orderByRank() instanceof Table12Query, 'orderByRank() returns the current query object'); - // default order - $query = Table12Query::create()->orderByRank(); - $expectedQuery = Table12Query::create()->addAscendingOrderByColumn(Table12Peer::POSITION); - $this->assertEquals($expectedQuery, $query, 'orderByRank() orders the query by rank asc'); - // asc order - $query = Table12Query::create()->orderByRank(Criteria::ASC); - $expectedQuery = Table12Query::create()->addAscendingOrderByColumn(Table12Peer::POSITION); - $this->assertEquals($expectedQuery, $query, 'orderByRank() orders the query by rank, using the argument as sort direction'); - // desc order - $query = Table12Query::create()->orderByRank(Criteria::DESC); - $expectedQuery = Table12Query::create()->addDescendingOrderByColumn(Table12Peer::POSITION); - $this->assertEquals($expectedQuery, $query, 'orderByRank() orders the query by rank, using the argument as sort direction'); - } - - public function testFindList() - { - $ts = Table12Query::create()->findList(1); - $this->assertTrue($ts instanceof PropelObjectCollection, 'findList() returns a collection of objects'); - $this->assertEquals(4, count($ts), 'findList() filters the query by scope'); - $this->assertEquals('row1', $ts[0]->getTitle(), 'findList() returns an ordered scoped list'); - $this->assertEquals('row2', $ts[1]->getTitle(), 'findList() returns an ordered scoped list'); - $this->assertEquals('row3', $ts[2]->getTitle(), 'findList() returns an ordered scoped list'); - $this->assertEquals('row4', $ts[3]->getTitle(), 'findList() returns an ordered scoped list'); - $ts = Table12Query::create()->findList(2); - $this->assertEquals(2, count($ts), 'findList() filters the query by scope'); - $this->assertEquals('row5', $ts[0]->getTitle(), 'findList() returns an ordered scoped list'); - $this->assertEquals('row6', $ts[1]->getTitle(), 'findList() returns an ordered scoped list'); - } - - public function testFindOneByRank() - { - $this->assertTrue(Table12Query::create()->findOneByRank(1, 1) instanceof Table12, 'findOneByRank() returns an instance of the model object'); - $this->assertEquals('row1', Table12Query::create()->findOneByRank(1, 1)->getTitle(), 'findOneByRank() returns a single item based on the rank and the scope'); - $this->assertEquals('row5', Table12Query::create()->findOneByRank(1, 2)->getTitle(), 'findOneByRank() returns a single item based on the rank and the scope'); - $this->assertEquals('row4', Table12Query::create()->findOneByRank(4, 1)->getTitle(), 'findOneByRank() returns a single item based on the rank a,d the scope'); - $this->assertNull(Table12Query::create()->findOneByRank(4, 2), 'findOneByRank() returns no result on a non-existent rank and scope'); - } - - public function testGetMaxRank() - { - $this->assertEquals(4, Table12Query::create()->getMaxRank(1), 'getMaxRank() returns the maximum rank in the scope'); - $this->assertEquals(2, Table12Query::create()->getMaxRank(2), 'getMaxRank() returns the maximum rank in the scope'); - // delete one - $t4 = Table12Query::create()->findOneByRank(4, 1); - $t4->delete(); - $this->assertEquals(3, Table12Query::create()->getMaxRank(1), 'getMaxRank() returns the maximum rank'); - // add one - $t = new Table12(); - $t->setMyScopeColumn(1); - $t->save(); - $this->assertEquals(4, Table12Query::create()->getMaxRank(1), 'getMaxRank() returns the maximum rank'); - // delete all - Table12Query::create()->deleteAll(); - $this->assertNull(Table12Query::create()->getMaxRank(1), 'getMaxRank() returns null for empty tables'); - // add one - $t = new Table12(); - $t->setMyScopeColumn(1); - $t->save(); - $this->assertEquals(1, Table12Query::create()->getMaxRank(1), 'getMaxRank() returns the maximum rank'); - } - - public function testReorder() - { - $objects = Table12Query::create()->findList(1); - $ids = array(); - foreach ($objects as $object) { - $ids[]= $object->getPrimaryKey(); - } - $ranks = array(4, 3, 2, 1); - $order = array_combine($ids, $ranks); - Table12Query::create()->reorder($order); - $expected = array(1 => 'row4', 2 => 'row3', 3 => 'row2', 4 => 'row1'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'reorder() reorders the suite'); - $expected = array(1 => 'row5', 2 => 'row6'); - $this->assertEquals($expected, $this->getFixturesArrayWithScope(2), 'reorder() leaves other suites unchanged'); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorTest.php b/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorTest.php deleted file mode 100644 index 6192614a5d..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/behavior/sortable/SortableBehaviorTest.php +++ /dev/null @@ -1,33 +0,0 @@ -assertEquals(count($table11->getColumns()), 3, 'Sortable adds one columns by default'); - $this->assertTrue(method_exists('Table11', 'getRank'), 'Sortable adds a rank column by default'); - $table12 = Table12Peer::getTableMap(); - $this->assertEquals(count($table12->getColumns()), 4, 'Sortable does not add a column when it already exists'); - $this->assertTrue(method_exists('Table12', 'getPosition'), 'Sortable allows customization of rank_column name'); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/NamespaceTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/NamespaceTest.php deleted file mode 100644 index ff69d6f7ed..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/NamespaceTest.php +++ /dev/null @@ -1,225 +0,0 @@ -markTestSkipped('Namespace support requires PHP 5.3'); - } - parent::setUp(); - Propel::init('fixtures/namespaced/build/conf/bookstore_namespaced-conf.php'); - } - - protected function tearDown() - { - parent::tearDown(); - Propel::init('fixtures/bookstore/build/conf/bookstore-conf.php'); - } - - public function testInsert() - { - $book = new \Foo\Bar\NamespacedBook(); - $book->setTitle('foo'); - $book->save(); - $this->assertFalse($book->isNew()); - - $publisher = new \Baz\NamespacedPublisher(); - $publisher->save(); - $this->assertFalse($publisher->isNew()); - } - - public function testUpdate() - { - $book = new \Foo\Bar\NamespacedBook(); - $book->setTitle('foo'); - $book->save(); - $book->setTitle('bar'); - $book->save(); - $this->assertFalse($book->isNew()); - } - - public function testRelate() - { - $author = new NamespacedAuthor(); - $book = new \Foo\Bar\NamespacedBook(); - $book->setNamespacedAuthor($author); - $book->save(); - $this->assertFalse($book->isNew()); - $this->assertFalse($author->isNew()); - - $author = new NamespacedAuthor(); - $book = new \Foo\Bar\NamespacedBook(); - $author->addNamespacedBook($book); - $author->save(); - $this->assertFalse($book->isNew()); - $this->assertFalse($author->isNew()); - - $publisher = new \Baz\NamespacedPublisher(); - $book = new \Foo\Bar\NamespacedBook(); - $book->setNamespacedPublisher($publisher); - $book->save(); - $this->assertFalse($book->isNew()); - $this->assertFalse($publisher->isNew()); - } - - public function testBasicQuery() - { - \Foo\Bar\NamespacedBookQuery::create()->deleteAll(); - \Baz\NamespacedPublisherQuery::create()->deleteAll(); - $noNamespacedBook = \Foo\Bar\NamespacedBookQuery::create()->findOne(); - $this->assertNull($noNamespacedBook); - $noPublihser = \Baz\NamespacedPublisherQuery::create()->findOne(); - $this->assertNull($noPublihser); - } - - public function testFind() - { - \Foo\Bar\NamespacedBookQuery::create()->deleteAll(); - $book = new \Foo\Bar\NamespacedBook(); - $book->setTitle('War And Peace'); - $book->save(); - $book2 = \Foo\Bar\NamespacedBookQuery::create()->findPk($book->getId()); - $this->assertEquals($book, $book2); - $book3 = \Foo\Bar\NamespacedBookQuery::create()->findOneByTitle($book->getTitle()); - $this->assertEquals($book, $book3); - } - - public function testGetRelatedManyToOne() - { - \Foo\Bar\NamespacedBookQuery::create()->deleteAll(); - \Baz\NamespacedPublisherQuery::create()->deleteAll(); - $publisher = new \Baz\NamespacedPublisher(); - $book = new \Foo\Bar\NamespacedBook(); - $book->setNamespacedPublisher($publisher); - $book->save(); - \Foo\Bar\NamespacedBookPeer::clearInstancePool(); - \Baz\NamespacedPublisherPeer::clearInstancePool(); - $book2 = \Foo\Bar\NamespacedBookQuery::create()->findPk($book->getId()); - $publisher2 = $book2->getNamespacedPublisher(); - $this->assertEquals($publisher->getId(), $publisher2->getId()); - } - - public function testGetRelatedOneToMany() - { - \Foo\Bar\NamespacedBookQuery::create()->deleteAll(); - \Baz\NamespacedPublisherQuery::create()->deleteAll(); - $author = new NamespacedAuthor(); - $book = new \Foo\Bar\NamespacedBook(); - $book->setNamespacedAuthor($author); - $book->save(); - \Foo\Bar\NamespacedBookPeer::clearInstancePool(); - NamespacedAuthorPeer::clearInstancePool(); - $author2 = NamespacedAuthorQuery::create()->findPk($author->getId()); - $book2 = $author2->getNamespacedBooks()->getFirst(); - $this->assertEquals($book->getId(), $book2->getId()); - } - - public function testFindWithManyToOne() - { - \Foo\Bar\NamespacedBookQuery::create()->deleteAll(); - \Baz\NamespacedPublisherQuery::create()->deleteAll(); - $publisher = new \Baz\NamespacedPublisher(); - $book = new \Foo\Bar\NamespacedBook(); - $book->setNamespacedPublisher($publisher); - $book->save(); - \Foo\Bar\NamespacedBookPeer::clearInstancePool(); - \Baz\NamespacedPublisherPeer::clearInstancePool(); - $book2 = \Foo\Bar\NamespacedBookQuery::create() - ->joinWith('NamespacedPublisher') - ->findPk($book->getId()); - $publisher2 = $book2->getNamespacedPublisher(); - $this->assertEquals($publisher->getId(), $publisher2->getId()); - } - - public function testFindWithOneToMany() - { - \Foo\Bar\NamespacedBookQuery::create()->deleteAll(); - NamespacedAuthorQuery::create()->deleteAll(); - $author = new NamespacedAuthor(); - $book = new \Foo\Bar\NamespacedBook(); - $book->setNamespacedAuthor($author); - $book->save(); - \Foo\Bar\NamespacedBookPeer::clearInstancePool(); - NamespacedAuthorPeer::clearInstancePool(); - $author2 = NamespacedAuthorQuery::create() - ->joinWith('NamespacedBook') - ->findPk($author->getId()); - $book2 = $author2->getNamespacedBooks()->getFirst(); - $this->assertEquals($book->getId(), $book2->getId()); - } - - public function testSingleTableInheritance() - { - \Foo\Bar\NamespacedBookstoreEmployeeQuery::create()->deleteAll(); - $emp = new \Foo\Bar\NamespacedBookstoreEmployee(); - $emp->setName('Henry'); - $emp->save(); - $man = new \Foo\Bar\NamespacedBookstoreManager(); - $man->setName('John'); - $man->save(); - $cas = new \Foo\Bar\NamespacedBookstoreCashier(); - $cas->setName('William'); - $cas->save(); - $emps = \Foo\Bar\NamespacedBookstoreEmployeeQuery::create() - ->orderByName() - ->find(); - $this->assertEquals(3, count($emps)); - $this->assertTrue($emps[0] instanceof \Foo\Bar\NamespacedBookstoreEmployee); - $this->assertTrue($emps[1] instanceof \Foo\Bar\NamespacedBookstoreManager); - $this->assertTrue($emps[2] instanceof \Foo\Bar\NamespacedBookstoreCashier); - $nbMan = \Foo\Bar\NamespacedBookstoreManagerQuery::create() - ->count(); - $this->assertEquals(1, $nbMan); - } - - public function testManyToMany() - { - \Foo\Bar\NamespacedBookQuery::create()->deleteAll(); - \Baz\NamespacedBookClubQuery::create()->deleteAll(); - NamespacedBookListRelQuery::create()->deleteAll(); - $book1 = new \Foo\Bar\NamespacedBook(); - $book1->setTitle('bar'); - $book1->save(); - $book2 = new \Foo\Bar\NamespacedBook(); - $book2->setTitle('foo'); - $book2->save(); - $bookClub1 = new \Baz\NamespacedBookClub(); - $bookClub1->addNamespacedBook($book1); - $bookClub1->addNamespacedBook($book2); - $bookClub1->save(); - $bookClub2 = new \Baz\NamespacedBookClub(); - $bookClub2->addNamespacedBook($book1); - $bookClub2->save(); - $this->assertEquals(2, $book1->countNamespacedBookClubs()); - $this->assertEquals(1, $book2->countNamespacedBookClubs()); - $nbRels = NamespacedBookListRelQuery::create()->count(); - $this->assertEquals(3, $nbRels); - $con = Propel::getConnection(NamespacedBookListRelPeer::DATABASE_NAME); - $books = \Foo\Bar\NamespacedBookQuery::create() - ->orderByTitle() - ->joinWith('NamespacedBookListRel') - ->joinWith('NamespacedBookListRel.NamespacedBookClub') - ->find($con); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedNestedSetObjectTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedNestedSetObjectTest.php deleted file mode 100644 index e6f7fb943b..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedNestedSetObjectTest.php +++ /dev/null @@ -1,187 +0,0 @@ -assertTrue($pp->isRoot(), 'Node must be root'); - } - - /** - * Test xxxNestedSet::isRoot() as false - */ - public function testObjectIsRootFalse() - { - $c = new Criteria(PagePeer::DATABASE_NAME); - $c->add(PagePeer::TITLE, 'school', Criteria::EQUAL); - - $school = PagePeer::doSelectOne($c); - $this->assertFalse($school->isRoot(), 'Node must not be root'); - } - - /** - * Test xxxNestedSet::retrieveParent() as true. - */ - public function testObjectRetrieveParentTrue() - { - $c = new Criteria(PagePeer::DATABASE_NAME); - $c->add(PagePeer::TITLE, 'school', Criteria::EQUAL); - - $school = PagePeer::doSelectOne($c); - $this->assertNotNull($school->retrieveParent(), 'Parent node must exist'); - } - - /** - * Test xxxNestedSet::retrieveParent() as false. - */ - public function testObjectRetrieveParentFalse() - { - $c = new Criteria(PagePeer::DATABASE_NAME); - $c->add(PagePeer::TITLE, 'home', Criteria::EQUAL); - - $home = PagePeer::doSelectOne($c); - $this->assertNull($home->retrieveParent(), 'Parent node must not exist and retrieved not be null'); - } - - /** - * Test xxxNestedSet::hasParent() as true. - */ - public function testObjectHasParentTrue() - { - $c = new Criteria(); - $c->add(PagePeer::TITLE, 'school', Criteria::EQUAL); - - $school = PagePeer::doSelectOne($c); - $this->assertTrue($school->hasParent(), 'Node must have parent node'); - } - - /** - * Test xxxNestedSet::hasParent() as false - */ - public function testObjectHasParentFalse() - { - $c = new Criteria(); - $c->add(PagePeer::TITLE, 'home', Criteria::EQUAL); - - $home = PagePeer::doSelectOne($c); - $this->assertFalse($home->hasParent(), 'Root node must not have parent'); - } - - /** - * Test xxxNestedSet::isLeaf() as true. - */ - public function testObjectIsLeafTrue() - { - $c = new Criteria(); - $c->add(PagePeer::TITLE, 'simulator', Criteria::EQUAL); - - $simulator = PagePeer::doSelectOne($c); - $this->assertTrue($simulator->isLeaf($simulator), 'Node must be a leaf'); - } - - /** - * Test xxxNestedSet::isLeaf() as false - */ - public function testObjectIsLeafFalse() - { - $c = new Criteria(); - $c->add(PagePeer::TITLE, 'contact', Criteria::EQUAL); - - $contact = PagePeer::doSelectOne($c); - $this->assertFalse($contact->isLeaf($contact), 'Node must not be a leaf'); - } - - /** - * Test xxxNestedSet::makeRoot() - */ - public function testObjectMakeRoot() - { - $page = new Page(); - $page->makeRoot(); - $this->assertEquals(1, $page->getLeftValue(), 'Node left value must equal 1'); - $this->assertEquals(2, $page->getRightValue(), 'Node right value must equal 2'); - } - - /** - * Test xxxNestedSet::makeRoot() exception - * @expectedException PropelException - */ - public function testObjectMakeRootException() - { - $c = new Criteria(); - $c->add(PagePeer::TITLE, 'home', Criteria::EQUAL); - - $home = PagePeer::doSelectOne($c); - $home->makeRoot(); - } - - /** - * Test xxxNestedSet::getDescendants() - */ - public function testPeerGetDescendants() - { - $nodesWithoutPool = array(); - CategoryPeer::clearInstancePool(); - $cat = CategoryPeer::retrieveRoot(1); - $children = $cat->getDescendants(); - foreach($children as $child) - { - $nodesWithoutPool[] = $child->getTitle(); - } - $this->assertEquals($nodesWithoutPool, array('Cat_1_1', 'Cat_1_1_1', 'Cat_1_1_1_1')); - } - - /** - * Test xxxNestedSet::getDescendantsTwice() - */ - public function testPeerGetDescendantsTwice() - { - $nodesWithoutPool = array(); - $nodesWithPool = array(); - - CategoryPeer::clearInstancePool(); - $cat = CategoryPeer::retrieveRoot(1); - $children = $cat->getDescendants(); - foreach($children as $child) - { - $nodesWithoutPool[] = $child->getTitle(); - } - - $cat = CategoryPeer::retrieveRoot(1); - $children = $cat->getDescendants(); - foreach($children as $child) - { - $nodesWithPool[] = $child->getTitle(); - } - $this->assertEquals($nodesWithoutPool, $nodesWithPool, 'Retrieved nodes must be the same with and without InstancePooling'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedNestedSetPeerTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedNestedSetPeerTest.php deleted file mode 100644 index ae255c010e..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedNestedSetPeerTest.php +++ /dev/null @@ -1,188 +0,0 @@ -assertNotNull($pp, 'Node must exist and not be null'); - $this->assertEquals(1, $pp->getLeftValue(), 'Node left value must be equal to 1'); - } - - /** - * Test retrieveRoot() as false - */ - public function testRetrieveRootNotExist() - { - $pp = PagePeer::retrieveRoot(2); - $this->assertNull($pp, 'Root with such scopeId must not exist'); - } - - /** - * Test xxxNestedSetPeer::isRoot() as true - */ - public function testPeerIsRootTrue() - { - $pp = PagePeer::retrieveRoot(1); - $this->assertTrue(PagePeer::isRoot($pp), 'Node must be root'); - } - - /** - * Test xxxNestedSetPeer::isRoot() as false - */ - public function testPeerIsRootFalse() - { - $c = new Criteria(PagePeer::DATABASE_NAME); - $c->add(PagePeer::TITLE, 'school', Criteria::EQUAL); - - $school = PagePeer::doSelectOne($c); - $this->assertFalse(PagePeer::isRoot($school), 'Node must not be root'); - } - - /** - * Test xxxNestedSetPeer::retrieveParent() as true. - */ - public function testPeerRetrieveParentTrue() - { - $c = new Criteria(PagePeer::DATABASE_NAME); - $c->add(PagePeer::TITLE, 'school', Criteria::EQUAL); - - $school = PagePeer::doSelectOne($c); - $this->assertNotNull(PagePeer::retrieveParent($school), 'Parent node must exist'); - } - - /** - * Test xxxNestedSetPeer::retrieveParent() as false. - */ - public function testPeerRetrieveParentFalse() - { - $c = new Criteria(PagePeer::DATABASE_NAME); - $c->add(PagePeer::TITLE, 'home', Criteria::EQUAL); - - $home = PagePeer::doSelectOne($c); - $this->assertNull(PagePeer::retrieveParent($home), 'Parent node must not exist and retrieved not be null'); - } - - /** - * Test xxxNestedSetPeer::hasParent() as true. - */ - public function testPeerHasParentTrue() - { - $c = new Criteria(); - $c->add(PagePeer::TITLE, 'school', Criteria::EQUAL); - - $school = PagePeer::doSelectOne($c); - $this->assertTrue(PagePeer::hasParent($school), 'Node must have parent node'); - } - - /** - * Test xxxNestedSetPeer::hasParent() as false - */ - public function testPeerHasParentFalse() - { - $c = new Criteria(); - $c->add(PagePeer::TITLE, 'home', Criteria::EQUAL); - - $home = PagePeer::doSelectOne($c); - $this->assertFalse(PagePeer::hasParent($home), 'Root node must not have parent'); - } - - /** - * Test xxxNestedSetPeer::isValid() as true. - */ - public function testPeerIsValidTrue() - { - $c = new Criteria(); - $c->add(PagePeer::TITLE, 'school', Criteria::EQUAL); - - $school = PagePeer::doSelectOne($c); - $this->assertTrue(PagePeer::isValid($school), 'Node must be valid'); - } - - /** - * Test xxxNestedSetPeer::isValid() as false - */ - public function testPeerIsValidFalse() - { - $page = new Page(); - $this->assertFalse(PagePeer::isValid($page), 'Node left and right values must be invalid'); - $this->assertFalse(PagePeer::isValid(null), 'Null must be invalid'); - } - - /** - * Test xxxNestedSetPeer::isLeaf() as true. - */ - public function testPeerIsLeafTrue() - { - $c = new Criteria(); - $c->add(PagePeer::TITLE, 'simulator', Criteria::EQUAL); - - $simulator = PagePeer::doSelectOne($c); - $this->assertTrue(PagePeer::isLeaf($simulator), 'Node must be a leaf'); - } - - /** - * Test xxxNestedSetPeer::isLeaf() as false - */ - public function testPeerIsLeafFalse() - { - $c = new Criteria(); - $c->add(PagePeer::TITLE, 'contact', Criteria::EQUAL); - - $contact = PagePeer::doSelectOne($c); - $this->assertFalse(PagePeer::isLeaf($contact), 'Node must not be a leaf'); - } - - /** - * Test xxxNestedSetPeer::createRoot() - */ - public function testPeerCreateRoot() - { - $page = new Page(); - PagePeer::createRoot($page); - $this->assertEquals(1, $page->getLeftValue(), 'Node left value must equal 1'); - $this->assertEquals(2, $page->getRightValue(), 'Node right value must equal 2'); - } - - /** - * Test xxxNestedSetPeer::createRoot() exception - * @expectedException PropelException - */ - public function testPeerCreateRootException() - { - $c = new Criteria(); - $c->add(PagePeer::TITLE, 'home', Criteria::EQUAL); - - $home = PagePeer::doSelectOne($c); - PagePeer::createRoot($home); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedNestedSetTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedNestedSetTest.php deleted file mode 100644 index b091785516..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedNestedSetTest.php +++ /dev/null @@ -1,120 +0,0 @@ -getDepth()) - , $item->getId() , ': ' - , $item->getTitle() - , ' [', $item->getLeftValue(), ':', $item->getRightValue() , ']' - . "\n"; - } - } - - /** - * Adds a new Page row with specified parent Id. - * - * @param int $parentId - */ - protected function addNewChildPage($parentId) - { - $db = Propel::getConnection(PagePeer::DATABASE_NAME); - - //$db->beginTransaction(); - - $parent = PagePeer::retrieveByPK($parentId); - $page = new Page(); - $page->setTitle('new page '.time()); - $page->insertAsLastChildOf($parent); - $page->save(); - - //$db->commit(); - } - - /** - * Asserts that the Page table tree integrity is intact. - */ - protected function assertPageTreeIntegrity() - { - $db = Propel::getConnection(PagePeer::DATABASE_NAME); - - $values = array(); - $log = ''; - - foreach ($db->query('SELECT Id, LeftChild, RightChild, Title FROM Page', PDO::FETCH_NUM) as $row) { - - list($id, $leftChild, $rightChild, $title) = $row; - - if (!in_array($leftChild, $values)) { - $values[] = (int) $leftChild; - } else { - $this->fail('Duplicate LeftChild value '.$leftChild); - } - - if (!in_array($rightChild, $values)) { - $values[] = (int) $rightChild; - } else { - $this->fail('Duplicate RightChild value '.$rightChild); - } - - $log .= "[$id($leftChild:$rightChild)]"; - } - - sort($values); - - if ($values[count($values)-1] != count($values)) { - $message = sprintf("Tree integrity NOT ok (%s)\n", $log); - $message .= sprintf('Integrity error: value count: %d, high value: %d', count($values), $values[count($values)-1]); - $this->fail($message); - } - - } - - /** - * Tests adding a node to the Page tree. - */ - public function testAdd() - { - $db = Propel::getConnection(PagePeer::DATABASE_NAME); - - // I'm not sure if the specific ID matters, but this should match original - // code. The ID will change with subsequent runs (e.g. the first time it will be 11) - $startId = $db->query('SELECT MIN(Id) FROM Page')->fetchColumn(); - $this->addNewChildPage($startId + 10); - $this->assertPageTreeIntegrity(); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedObjectLobTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedObjectLobTest.php deleted file mode 100644 index 290e73c4f6..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedObjectLobTest.php +++ /dev/null @@ -1,289 +0,0 @@ - - * @package generator.builder.om - */ -class GeneratedObjectLobTest extends BookstoreEmptyTestBase -{ - - /** - * Array of filenames pointing to blob/clob files indexed by the basename. - * - * @var array string[] - */ - protected $sampleLobFiles = array(); - - protected function setUp() - { - parent::setUp(); - BookstoreDataPopulator::populate(); - $this->sampleLobFiles['tin_drum.gif'] = TESTS_BASE_DIR . '/etc/lob/tin_drum.gif'; - $this->sampleLobFiles['tin_drum.txt'] = TESTS_BASE_DIR . '/etc/lob/tin_drum.txt'; - $this->sampleLobFiles['propel.gif'] = TESTS_BASE_DIR . '/etc/lob/propel.gif'; - } - - /** - * Gets a LOB filename. - * - * @param string $basename Basename of LOB filename to return (if left blank, will choose random file). - * @return string - * @throws Exception - if specified basename doesn't correspond to a registered LOB filename - */ - protected function getLobFile($basename = null) - { - if ($basename === null) { - $basename = array_rand($this->sampleLobFiles); - } - - if (isset($this->sampleLobFiles[$basename])) { - return $this->sampleLobFiles[$basename]; - } else { - throw new Exception("Invalid base LOB filename: $basename"); - } - } - - /** - * Test the LOB results returned in a resultset. - */ - public function testLobResults() - { - - $blob_path = $this->getLobFile('tin_drum.gif'); - $clob_path = $this->getLobFile('tin_drum.txt'); - - $book = BookPeer::doSelectOne(new Criteria()); - - $m1 = new Media(); - $m1->setBook($book); - $m1->setCoverImage(file_get_contents($blob_path)); - $m1->setExcerpt(file_get_contents($clob_path)); - $m1->save(); - $m1_id = $m1->getId(); - - $m1->reload(); - - $img = $m1->getCoverImage(); - $txt = $m1->getExcerpt(); - - $this->assertType('resource', $img, "Expected results of BLOB method to be a resource."); - $this->assertType('string', $txt, "Expected results of CLOB method to be a string."); - - $stat = fstat($img); - $size = $stat['size']; - - $this->assertEquals(filesize($blob_path), $size, "Expected filesize to match stat(blobrsc)"); - $this->assertEquals(filesize($clob_path), strlen($txt), "Expected filesize to match clob strlen"); - } - - /** - * Test to make sure that file pointer is not when it is fetched - * from the object. - * - * This is actually a test for correct behavior and does not completely fix - * the associated ticket (which was resolved wontfix). - * - * This does test the rewind-after-save functionality, however. - * - * @link http://propel.phpdb.org/trac/ticket/531 - */ - public function testLobRepeatRead() - { - $blob_path = $this->getLobFile('tin_drum.gif'); - $clob_path = $this->getLobFile('tin_drum.txt'); - - $book = BookPeer::doSelectOne(new Criteria()); - - $m1 = new Media(); - $m1->setBook($book); - $m1->setCoverImage(file_get_contents($blob_path)); - $m1->setExcerpt(file_get_contents($clob_path)); - $m1->save(); - - $img = $m1->getCoverImage(); - - // 1) Assert that this resource has been rewound. - - $this->assertEquals(0, ftell($img), "Expected position of cursor in file pointer to be 0"); - - // 1) Assert that we've got a valid stream to start with - - $this->assertType('resource', $img, "Expected results of BLOB method to be a resource."); - - // read first 100 bytes - $firstBytes = fread($img, 100); - - $img2 = $m1->getCoverImage(); - $this->assertSame($img, $img2, "Assert that the two resources are the same."); - - // read next 100 bytes - $nextBytes = fread($img, 100); - - $this->assertNotEquals(bin2hex($firstBytes), bin2hex($nextBytes), "Expected the first 100 and next 100 bytes to not be identical."); - } - - /** - * Tests the setting of null LOBs - */ - public function testLobNulls() - { - $book = BookPeer::doSelectOne(new Criteria()); - - $m1 = new Media(); - $m1->setBook($book); - $this->assertTrue($m1->getCoverImage() === null, "Initial LOB value for a new object should be null."); - - $m1->save(); - $m1_id = $m1->getId(); - - $m2 = new Media(); - $m2->setBook($book); - $m2->setCoverImage(null); - $this->assertTrue($m2->getCoverImage() === null, "Setting a LOB to null should cause accessor to return null."); - - $m2->save(); - $m2_id = $m2->getId(); - - $m1->reload(); - $this->assertTrue($m1->getCoverImage() === null, "Default null LOB value should be null after a reload."); - - $m2->reload(); - $this->assertTrue($m2->getCoverImage() === null, "LOB value set to null should be null after a reload."); - } - - /** - * Tests the setting of LOB (BLOB and CLOB) values. - */ - public function testLobSetting() - { - $blob_path = $this->getLobFile('tin_drum.gif'); - $blob2_path = $this->getLobFile('propel.gif'); - - $clob_path = $this->getLobFile('tin_drum.txt'); - $book = BookPeer::doSelectOne(new Criteria()); - - $m1 = new Media(); - $m1->setBook($book); - $m1->setCoverImage(file_get_contents($blob_path)); - $m1->setExcerpt(file_get_contents($clob_path)); - $m1->save(); - $m1_id = $m1->getId(); - - // 1) Assert that we've got a valid stream to start with - $img = $m1->getCoverImage(); - $this->assertType('resource', $img, "Expected results of BLOB method to be a resource."); - - // 2) Test setting a BLOB column with file contents - $m1->setCoverImage(file_get_contents($blob2_path)); - $this->assertType('resource', $m1->getCoverImage(), "Expected to get a resource back after setting BLOB with file contents."); - - // commit those changes & reload - $m1->save(); - - // 3) Verify that we've got a valid resource after reload - $m1->reload(); - $this->assertType('resource', $m1->getCoverImage(), "Expected to get a resource back after setting reloading object."); - - // 4) Test isModified() behavior - $fp = fopen("php://temp", "r+"); - fwrite($fp, file_get_contents($blob2_path)); - - $m1->setCoverImage($fp); - $this->assertTrue($m1->isModified(), "Expected Media object to be modified, despite fact that stream is to same data"); - - // 5) Test external modification of the stream (and re-setting it into the object) - $stream = $m1->getCoverImage(); - fwrite($stream, file_get_contents($blob_path)); // change the contents of the stream - - $m1->setCoverImage($stream); - - $this->assertTrue($m1->isModified(), "Expected Media object to be modified when stream contents changed."); - $this->assertNotEquals(file_get_contents($blob2_path), stream_get_contents($m1->getCoverImage())); - - $m1->save(); - - // 6) Assert that when we call the setter with a stream, that the file in db gets updated. - - $m1->reload(); // start with a fresh copy from db - - // Ensure that object is set up correctly - $this->assertNotEquals(file_get_contents($blob_path), stream_get_contents($m1->getCoverImage()), "The object is not correctly set up to verify the stream-setting test."); - - $fp = fopen($blob_path, "r"); - $m1->setCoverImage($fp); - $m1->save(); - $m1->reload(); // refresh from db - - // Assert that we've updated the db - $this->assertEquals(file_get_contents($blob_path), stream_get_contents($m1->getCoverImage()), "Expected the updated BLOB value after setting with a stream."); - - // 7) Assert that 'w' mode works - - } - - public function testLobSetting_WriteMode() - { - $blob_path = $this->getLobFile('tin_drum.gif'); - $blob2_path = $this->getLobFile('propel.gif'); - - $clob_path = $this->getLobFile('tin_drum.txt'); - $book = BookPeer::doSelectOne(new Criteria()); - - $m1 = new Media(); - $m1->setBook($book); - $m1->setCoverImage(file_get_contents($blob_path)); - $m1->setExcerpt(file_get_contents($clob_path)); - $m1->save(); - - MediaPeer::clearInstancePool(); - - // make sure we have the latest from the db: - $m2 = MediaPeer::retrieveByPK($m1->getId()); - - // now attempt to assign a temporary stream, opened in 'w' mode, to the db - - $stream = fopen("php://memory", 'w'); - fwrite($stream, file_get_contents($blob2_path)); - $m2->setCoverImage($stream); - $m2->save(); - fclose($stream); - - $m2->reload(); - $this->assertEquals(file_get_contents($blob2_path), stream_get_contents($m2->getCoverImage()), "Expected contents to match when setting stream w/ 'w' mode"); - - $stream2 = fopen("php://memory", 'w+'); - fwrite($stream2, file_get_contents($blob_path)); - rewind($stream2); - $this->assertEquals(file_get_contents($blob_path), stream_get_contents($stream2), "Expecting setup to be correct"); - - $m2->setCoverImage($stream2); - $m2->save(); - $m2->reload(); - - $this->assertEquals(file_get_contents($blob_path), stream_get_contents($m2->getCoverImage()), "Expected contents to match when setting stream w/ 'w+' mode"); - - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedObjectRelTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedObjectRelTest.php deleted file mode 100644 index 465545560e..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedObjectRelTest.php +++ /dev/null @@ -1,352 +0,0 @@ - - * @package generator.builder.om - */ -class GeneratedObjectRelTest extends BookstoreEmptyTestBase -{ - - protected function setUp() - { - parent::setUp(); - } - - /** - * Tests one side of a bi-directional setting of many-to-many relationships. - */ - public function testManyToMany_Dir1() - { - $list = new BookClubList(); - $list->setGroupLeader('Archimedes Q. Porter'); - // No save ... - - $book = new Book(); - $book->setTitle( "Jungle Expedition Handbook" ); - $book->setISBN('TEST'); - // No save ... - - $this->assertEquals(0, count($list->getBookListRels()) ); - $this->assertEquals(0, count($book->getBookListRels()) ); - $this->assertEquals(0, count(BookListRelPeer::doSelect(new Criteria())) ); - - $xref = new BookListRel(); - $xref->setBook($book); - $list->addBookListRel($xref); - - $this->assertEquals(1, count($list->getBookListRels())); - $this->assertEquals(1, count($book->getBookListRels()) ); - $this->assertEquals(0, count(BookListRelPeer::doSelect(new Criteria())) ); - - $list->save(); - - $this->assertEquals(1, count($list->getBookListRels()) ); - $this->assertEquals(1, count($book->getBookListRels()) ); - $this->assertEquals(1, count(BookListRelPeer::doSelect(new Criteria())) ); - - } - - /** - * Tests reverse setting of one of many-to-many relationship, with all saves cascaded. - */ - public function testManyToMany_Dir2_Unsaved() - { - $list = new BookClubList(); - $list->setGroupLeader('Archimedes Q. Porter'); - // No save ... - - $book = new Book(); - $book->setTitle( "Jungle Expedition Handbook" ); - $book->setISBN('TEST'); - // No save (yet) ... - - $this->assertEquals(0, count($list->getBookListRels()) ); - $this->assertEquals(0, count($book->getBookListRels()) ); - $this->assertEquals(0, count(BookListRelPeer::doSelect(new Criteria())) ); - - $xref = new BookListRel(); - $xref->setBookClubList($list); - $book->addBookListRel($xref); - - $this->assertEquals(1, count($list->getBookListRels()) ); - $this->assertEquals(1, count($book->getBookListRels()) ); - $this->assertEquals(0, count(BookListRelPeer::doSelect(new Criteria())) ); - $book->save(); - - $this->assertEquals(1, count($list->getBookListRels()) ); - $this->assertEquals(1, count($book->getBookListRels()) ); - $this->assertEquals(1, count(BookListRelPeer::doSelect(new Criteria())) ); - - } - - /** - * Tests reverse setting of relationships, saving one of the objects first. - * @link http://propel.phpdb.org/trac/ticket/508 - */ - public function testManyToMany_Dir2_Saved() - { - $list = new BookClubList(); - $list->setGroupLeader('Archimedes Q. Porter'); - $list->save(); - - $book = new Book(); - $book->setTitle( "Jungle Expedition Handbook" ); - $book->setISBN('TEST'); - // No save (yet) ... - - $this->assertEquals(0, count($list->getBookListRels()) ); - $this->assertEquals(0, count($book->getBookListRels()) ); - $this->assertEquals(0, count(BookListRelPeer::doSelect(new Criteria())) ); - - // Now set the relationship from the opposite direction. - - $xref = new BookListRel(); - $xref->setBookClubList($list); - $book->addBookListRel($xref); - - $this->assertEquals(1, count($list->getBookListRels()) ); - $this->assertEquals(1, count($book->getBookListRels()) ); - $this->assertEquals(0, count(BookListRelPeer::doSelect(new Criteria())) ); - $book->save(); - - $this->assertEquals(1, count($list->getBookListRels()) ); - $this->assertEquals(1, count($book->getBookListRels()) ); - $this->assertEquals(1, count(BookListRelPeer::doSelect(new Criteria())) ); - - } - - public function testManyToManyGetterExists() - { - $this->assertTrue(method_exists('BookClubList', 'getBooks'), 'Object generator correcly adds getter for the crossRefFk'); - $this->assertFalse(method_exists('BookClubList', 'getBookClubLists'), 'Object generator correcly adds getter for the crossRefFk'); - } - - public function testManyToManyGetterNewObject() - { - $blc1 = new BookClubList(); - $books = $blc1->getBooks(); - $this->assertTrue($books instanceof PropelObjectCollection, 'getCrossRefFK() returns a Propel collection'); - $this->assertEquals('Book', $books->getModel(), 'getCrossRefFK() returns a collection of the correct model'); - $this->assertEquals(0, count($books), 'getCrossRefFK() returns an empty list for new objects'); - $query = BookQuery::create() - ->filterByTitle('Harry Potter and the Order of the Phoenix'); - $books = $blc1->getBooks($query); - $this->assertEquals(0, count($books), 'getCrossRefFK() accepts a query as first parameter'); - } - - public function testManyToManyGetter() - { - BookstoreDataPopulator::populate(); - $blc1 = BookClubListQuery::create()->findOneByGroupLeader('Crazyleggs'); - $books = $blc1->getBooks(); - $this->assertTrue($books instanceof PropelObjectCollection, 'getCrossRefFK() returns a Propel collection'); - $this->assertEquals('Book', $books->getModel(), 'getCrossRefFK() returns a collection of the correct model'); - $this->assertEquals(2, count($books), 'getCrossRefFK() returns the correct list of objects'); - $query = BookQuery::create() - ->filterByTitle('Harry Potter and the Order of the Phoenix'); - $books = $blc1->getBooks($query); - $this->assertEquals(1, count($books), 'getCrossRefFK() accepts a query as first parameter'); - } - - public function testManyToManyCounterExists() - { - $this->assertTrue(method_exists('BookClubList', 'countBooks'), 'Object generator correcly adds counter for the crossRefFk'); - $this->assertFalse(method_exists('BookClubList', 'countBookClubLists'), 'Object generator correcly adds counter for the crossRefFk'); - } - - public function testManyToManyCounterNewObject() - { - $blc1 = new BookClubList(); - $nbBooks = $blc1->countBooks(); - $this->assertEquals(0, $nbBooks, 'countCrossRefFK() returns 0 for new objects'); - $query = BookQuery::create() - ->filterByTitle('Harry Potter and the Order of the Phoenix'); - $nbBooks = $blc1->countBooks($query); - $this->assertEquals(0, $nbBooks, 'countCrossRefFK() accepts a query as first parameter'); - } - - public function testManyToManyCounter() - { - BookstoreDataPopulator::populate(); - $blc1 = BookClubListQuery::create()->findOneByGroupLeader('Crazyleggs'); - $nbBooks = $blc1->countBooks(); - $this->assertEquals(2, $nbBooks, 'countCrossRefFK() returns the correct list of objects'); - $query = BookQuery::create() - ->filterByTitle('Harry Potter and the Order of the Phoenix'); - $nbBooks = $blc1->countBooks($query); - $this->assertEquals(1, $nbBooks, 'countCrossRefFK() accepts a query as first parameter'); - } - - public function testManyToManyAdd() - { - $list = new BookClubList(); - $list->setGroupLeader('Archimedes Q. Porter'); - - $book = new Book(); - $book->setTitle( "Jungle Expedition Handbook" ); - $book->setISBN('TEST'); - - $list->addBook($book); - $this->assertEquals(1, $list->countBooks(), 'addCrossFk() sets the internal collection properly'); - $this->assertEquals(1, $list->countBookListRels(), 'addCrossFk() sets the internal cross reference collection properly'); - - $list->save(); - $this->assertFalse($book->isNew(), 'related object is saved if added'); - $rels = $list->getBookListRels(); - $rel = $rels[0]; - $this->assertFalse($rel->isNew(), 'cross object is saved if added'); - - $list->clearBookListRels(); - $list->clearBooks(); - $books = $list->getBooks(); - $expected = new PropelObjectCollection(array($book)); - $expected->setModel('Book'); - $this->assertEquals($expected, $books, 'addCrossFk() adds the object properly'); - $this->assertEquals(1, $list->countBookListRels()); - } - - - /** - * Test behavior of columns that are implicated in multiple foreign keys. - * @link http://propel.phpdb.org/trac/ticket/228 - */ - public function testMultiFkImplication() - { - BookstoreDataPopulator::populate(); - // Create a new bookstore, contest, bookstore_contest, and bookstore_contest_entry - $b = new Bookstore(); - $b->setStoreName("Foo!"); - $b->save(); - - $c = new Contest(); - $c->setName("Bookathon Contest"); - $c->save(); - - $bc = new BookstoreContest(); - $bc->setBookstore($b); - $bc->setContest($c); - $bc->save(); - - $c = new Customer(); - $c->setName("Happy Customer"); - $c->save(); - - $bce = new BookstoreContestEntry(); - $bce->setBookstore($b); - $bce->setBookstoreContest($bc); - $bce->setCustomer($c); - $bce->save(); - - $bce->setBookstoreId(null); - - $this->assertNull($bce->getBookstoreContest()); - $this->assertNull($bce->getBookstore()); - } - - /** - * Test the clearing of related object collection. - * @link http://propel.phpdb.org/trac/ticket/529 - */ - public function testClearRefFk() - { - BookstoreDataPopulator::populate(); - $book = new Book(); - $book->setISBN("Foo-bar-baz"); - $book->setTitle("The book title"); - - // No save ... - - $r = new Review(); - $r->setReviewedBy('Me'); - $r->setReviewDate(new DateTime("now")); - - $book->addReview($r); - - // No save (yet) ... - - $this->assertEquals(1, count($book->getReviews()) ); - $book->clearReviews(); - $this->assertEquals(0, count($book->getReviews())); - } - - /** - * This tests to see whether modified objects are being silently overwritten by calls to fk accessor methods. - * @link http://propel.phpdb.org/trac/ticket/509#comment:5 - */ - public function testModifiedObjectOverwrite() - { - BookstoreDataPopulator::populate(); - $author = new Author(); - $author->setFirstName("John"); - $author->setLastName("Public"); - - $books = $author->getBooks(); // empty, of course - $this->assertEquals(0, count($books), "Expected empty collection."); - - $book = new Book(); - $book->setTitle("A sample book"); - $book->setISBN("INITIAL ISBN"); - - $author->addBook($book); - - $author->save(); - - $book->setISBN("MODIFIED ISBN"); - - $books = $author->getBooks(); - $this->assertEquals(1, count($books), "Expected 1 book."); - $this->assertSame($book, $books[0], "Expected the same object to be returned by fk accessor."); - $this->assertEquals("MODIFIED ISBN", $books[0]->getISBN(), "Expected the modified value NOT to have been overwritten."); - } - - public function testFKGetterUseInstancePool() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $author = AuthorPeer::doSelectOne(new Criteria(), $con); - // populate book instance pool - $books = $author->getBooks(null, $con); - $sql = $con->getLastExecutedQuery(); - $author = $books[0]->getAuthor($con); - $this->assertEquals($sql, $con->getLastExecutedQuery(), 'refFK getter uses instance pool if possible'); - } - - public function testRefFKGetJoin() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - PublisherPeer::clearInstancePool(); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $author = AuthorPeer::doSelectOne(new Criteria(), $con); - // populate book instance pool - $books = $author->getBooksJoinPublisher(null, $con); - $sql = $con->getLastExecutedQuery(); - $publisher = $books[0]->getPublisher($con); - $this->assertEquals($sql, $con->getLastExecutedQuery(), 'refFK getter uses instance pool if possible'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedObjectTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedObjectTest.php deleted file mode 100644 index 63dead162f..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedObjectTest.php +++ /dev/null @@ -1,1355 +0,0 @@ - - * @package generator.builder.om - */ -class GeneratedObjectTest extends BookstoreEmptyTestBase -{ - protected function setUp() - { - parent::setUp(); - require_once 'tools/helpers/bookstore/behavior/TestAuthor.php'; - } - - /** - * Test saving an object after setting default values for it. - */ - public function testSaveWithDefaultValues() - { - // From the schema.xml, I am relying on the following: - // - that 'Penguin' is the default Name for a Publisher - // - that 2001-01-01 is the default ReviewDate for a Review - - // 1) check regular values (VARCHAR) - $pub = new Publisher(); - $pub->setName('Penguin'); - $pub->save(); - $this->assertTrue($pub->getId() !== null, "Expect Publisher to have been saved when default value set."); - - // 2) check date/time values - $review = new Review(); - // note that this is different from how it's represented in schema, but should resolve to same unix timestamp - $review->setReviewDate('2001-01-01'); - $this->assertTrue($review->isModified(), "Expect Review to have been marked 'modified' after default date/time value set."); - - } - - /** - * Test isModified() to be false after setting default value second time - */ - public function testDefaultValueSetTwice() - { - $pub = new Publisher(); - $pub->setName('Penguin'); - $pub->save(); - - $pubId = $pub->getId(); - - PublisherPeer::clearInstancePool(); - - $pub2 = PublisherPeer::retrieveByPK($pubId); - $pub2->setName('Penguin'); - $this->assertFalse($pub2->isModified(), "Expect Publisher to be not modified after setting default value second time."); - } - - public function testHasApplyDefaultValues() - { - $this->assertTrue(method_exists('Publisher', 'applyDefaultValues'), 'Tables with default values should have an applyDefaultValues() method'); - $this->assertFalse(method_exists('Book', 'applyDefaultValues'), 'Tables with no default values should not have an applyDefaultValues() method'); - } - - /** - * Test default return values. - */ - public function testDefaultValues() - { - $r = new Review(); - $this->assertEquals('2001-01-01', $r->getReviewDate('Y-m-d')); - - $this->assertFalse($r->isModified(), "expected isModified() to be false"); - - $acct = new BookstoreEmployeeAccount(); - $this->assertEquals(true, $acct->getEnabled()); - $this->assertFalse($acct->isModified()); - - $acct->setLogin("testuser"); - $acct->setPassword("testpass"); - $this->assertTrue($acct->isModified()); - } - - /** - * Tests the use of default expressions and the reloadOnInsert and reloadOnUpdate attributes. - * - * @link http://propel.phpdb.org/trac/ticket/378 - * @link http://propel.phpdb.org/trac/ticket/555 - */ - public function testDefaultExpresions() - { - if (Propel::getDb(BookstoreEmployeePeer::DATABASE_NAME) instanceof DBSqlite) { - $this->markTestSkipped("Cannot test default expressions with SQLite"); - } - - $b = new Bookstore(); - $b->setStoreName("Foo!"); - $b->save(); - - $employee = new BookstoreEmployee(); - $employee->setName("Johnny Walker"); - - $acct = new BookstoreEmployeeAccount(); - $acct->setBookstoreEmployee($employee); - $acct->setLogin("test-login"); - - $this->assertNull($acct->getCreated(), "Expected created column to be NULL."); - $this->assertNull($acct->getAuthenticator(), "Expected authenticator column to be NULL."); - - $acct->save(); - - $acct = BookstoreEmployeeAccountPeer::retrieveByPK($acct->getEmployeeId()); - - $this->assertNotNull($acct->getAuthenticator(), "Expected a valid (non-NULL) authenticator column after save."); - $this->assertEquals('Password', $acct->getAuthenticator(), "Expected authenticator='Password' after save."); - $this->assertNotNull($acct->getCreated(), "Expected a valid date after retrieving saved object."); - - $now = new DateTime("now"); - $this->assertEquals($now->format("Y-m-d"), $acct->getCreated("Y-m-d")); - - $acct->setCreated($now); - $this->assertEquals($now->format("Y-m-d"), $acct->getCreated("Y-m-d")); - - // Unfortunately we can't really test the conjunction of reloadOnInsert and reloadOnUpdate when using just - // default values. (At least not in a cross-db way.) - } - - /** - * Tests the use of default expressions and the reloadOnInsert attribute. - * - * @link http://propel.phpdb.org/trac/ticket/378 - * @link http://propel.phpdb.org/trac/ticket/555 - */ - public function testDefaultExpresions_ReloadOnInsert() - { - if (Propel::getDb(BookstoreEmployeePeer::DATABASE_NAME) instanceof DBSqlite) { - $this->markTestSkipped("Cannot test default date expressions with SQLite"); - } - - // Create a new bookstore, contest, bookstore_contest, and bookstore_contest_entry - - $b = new Bookstore(); - $b->setStoreName("Barnes & Noble"); - $b->save(); - - $c = new Contest(); - $c->setName("Bookathon Contest"); - $c->save(); - - $bc = new BookstoreContest(); - $bc->setBookstore($b); - $bc->setContest($c); - $bc->save(); - - $c = new Customer(); - $c->setName("Happy Customer"); - $c->save(); - - $bce = new BookstoreContestEntry(); - $bce->setBookstore($b); - $bce->setBookstoreContest($bc); - $bce->setCustomer($c); - $bce->save(); - - $this->assertNotNull($bce->getEntryDate(), "Expected a non-null entry_date after save."); - } - - /** - * Tests the overriding reloadOnInsert at runtime. - * - * @link http://propel.phpdb.org/trac/ticket/378 - * @link http://propel.phpdb.org/trac/ticket/555 - */ - public function testDefaultExpresions_ReloadOnInsert_Override() - { - if (Propel::getDb(BookstoreEmployeePeer::DATABASE_NAME) instanceof DBSqlite) { - $this->markTestSkipped("Cannot test default date expressions with SQLite"); - } - - // Create a new bookstore, contest, bookstore_contest, and bookstore_contest_entry - $b = new Bookstore(); - $b->setStoreName("Barnes & Noble"); - $b->save(); - - $c = new Contest(); - $c->setName("Bookathon Contest"); - $c->save(); - - $bc = new BookstoreContest(); - $bc->setBookstore($b); - $bc->setContest($c); - $bc->save(); - - $c = new Customer(); - $c->setName("Happy Customer"); - $c->save(); - - $bce = new BookstoreContestEntry(); - $bce->setBookstore($b); - $bce->setBookstoreContest($bc); - $bce->setCustomer($c); - $bce->save(null, $skipReload=true); - - $this->assertNull($bce->getEntryDate(), "Expected a NULL entry_date after save."); - } - - /** - * Tests the use of default expressions and the reloadOnUpdate attribute. - * - * @link http://propel.phpdb.org/trac/ticket/555 - */ - public function testDefaultExpresions_ReloadOnUpdate() - { - $b = new Bookstore(); - $b->setStoreName("Foo!"); - $b->save(); - - $sale = new BookstoreSale(); - $sale->setBookstore(BookstorePeer::doSelectOne(new Criteria())); - $sale->setSaleName("Spring Sale"); - $sale->save(); - - // Expect that default values are set, but not default expressions - $this->assertNull($sale->getDiscount(), "Expected discount to be NULL."); - - $sale->setSaleName("Winter Clearance"); - $sale->save(); - // Since reloadOnUpdate = true, we expect the discount to be set now. - - $this->assertNotNull($sale->getDiscount(), "Expected discount to be non-NULL after save."); - } - - /** - * Tests the overriding reloadOnUpdate at runtime. - * - * @link http://propel.phpdb.org/trac/ticket/378 - * @link http://propel.phpdb.org/trac/ticket/555 - */ - public function testDefaultExpresions_ReloadOnUpdate_Override() - { - $b = new Bookstore(); - $b->setStoreName("Foo!"); - $b->save(); - - $sale = new BookstoreSale(); - $sale->setBookstore(BookstorePeer::doSelectOne(new Criteria())); - $sale->setSaleName("Spring Sale"); - $sale->save(); - - // Expect that default values are set, but not default expressions - $this->assertNull($sale->getDiscount(), "Expected discount to be NULL."); - - $sale->setSaleName("Winter Clearance"); - $sale->save(null, $skipReload=true); - - // Since reloadOnUpdate = true, we expect the discount to be set now. - - $this->assertNull($sale->getDiscount(), "Expected NULL value for discount after save."); - } - - /** - * Test the behavior of date/time/values. - * This requires that the model was built with propel.useDateTimeClass=true. - */ - public function testTemporalValues_PreEpoch() - { - $r = new Review(); - - $preEpochDate = new DateTime('1602-02-02'); - - $r->setReviewDate($preEpochDate); - - $this->assertEquals('1602-02-02', $r->getReviewDate(null)->format("Y-m-d")); - - $r->setReviewDate('1702-02-02'); - - $this->assertTrue($r->isModified()); - - $this->assertEquals('1702-02-02', $r->getReviewDate(null)->format("Y-m-d")); - - // Now test for setting null - $r->setReviewDate(null); - $this->assertNull($r->getReviewDate()); - - } - - /** - * Test setting invalid date/time. - */ - public function testSetTemporalValue_Invalid() - { - $this->markTestSkipped(); - // FIXME - Figure out why this doesn't work (causes a PHP ERROR instead of throwing Exception) in - // the Phing+PHPUnit context - $r = new Review(); - try { - $r->setReviewDate("Invalid Date"); - $this->fail("Expected PropelException when setting date column w/ invalid date"); - } catch (PropelException $x) { - print "Caught expected PropelException: " . $x->__toString(); - } - } - - /** - * Test setting TIMESTAMP columns w/ unix int timestamp. - */ - public function testTemporalValues_Unix() - { - $store = new Bookstore(); - $store->setStoreName("test"); - $store->setStoreOpenTime(strtotime('12:55')); - $store->save(); - $this->assertEquals('12:55', $store->getStoreOpenTime(null)->format('H:i')); - - $acct = new BookstoreEmployeeAccount(); - $acct->setCreated(time()); - $this->assertEquals(date('Y-m-d H:i'), $acct->getCreated('Y-m-d H:i')); - - $review = new Review(); - $review->setReviewDate(time()); - $this->assertEquals(date('Y-m-d'), $review->getReviewDate('Y-m-d')); - } - - /** - * Test setting empty temporal values. - * @link http://propel.phpdb.org/trac/ticket/586 - */ - public function testTemporalValues_Empty() - { - $review = new Review(); - $review->setReviewDate(''); - $this->assertNull($review->getReviewDate()); - } - - /** - * Test setting TIME columns. - */ - public function testTemporalValues_TimeSetting() - { - $store = new Bookstore(); - $store->setStoreName("test"); - $store->setStoreOpenTime("12:55"); - $store->save(); - - $store = new Bookstore(); - $store->setStoreName("test2"); - $store->setStoreOpenTime(new DateTime("12:55")); - $store->save(); - } - - /** - * Test setting TIME columns. - */ - public function testTemporalValues_DateSetting() - { - BookstoreDataPopulator::populate(); - - $r = new Review(); - $r->setBook(BookPeer::doSelectOne(new Criteria())); - $r->setReviewDate(new DateTime('1999-12-20')); - $r->setReviewedBy("Hans"); - $r->setRecommended(false); - $r->save(); - } - - /** - * Testing creating & saving new object & instance pool. - */ - public function testObjectInstances_New() - { - $emp = new BookstoreEmployee(); - $emp->setName(md5(microtime())); - $emp->save(); - $id = $emp->getId(); - - $retrieved = BookstoreEmployeePeer::retrieveByPK($id); - $this->assertSame($emp, $retrieved, "Expected same object (from instance pool)"); - } - - /** - * - */ - public function testObjectInstances_Fkeys() - { - // Establish a relationship between one employee and account - // and then change the employee_id and ensure that the account - // is not pulling the old employee. - - $pub1 = new Publisher(); - $pub1->setName('Publisher 1'); - $pub1->save(); - - $pub2 = new Publisher(); - $pub2->setName('Publisher 2'); - $pub2->save(); - - $book = new Book(); - $book->setTitle("Book Title"); - $book->setISBN("1234"); - $book->setPublisher($pub1); - $book->save(); - - $this->assertSame($pub1, $book->getPublisher()); - - // now change values behind the scenes - $con = Propel::getConnection(BookstoreEmployeeAccountPeer::DATABASE_NAME); - $con->exec("UPDATE " . BookPeer::TABLE_NAME . " SET " - . " publisher_id = " . $pub2->getId() - . " WHERE id = " . $book->getId()); - - - $book2 = BookPeer::retrieveByPK($book->getId()); - $this->assertSame($book, $book2, "Expected same book object instance"); - - $this->assertEquals($pub1->getId(), $book->getPublisherId(), "Expected book to have OLD publisher id before reload()"); - - $book->reload(); - - $this->assertEquals($pub2->getId(), $book->getPublisherId(), "Expected book to have new publisher id"); - $this->assertSame($pub2, $book->getPublisher(), "Expected book to have new publisher object associated."); - - // Now let's set it back, just to be double sure ... - - $con->exec("UPDATE " . BookPeer::TABLE_NAME . " SET " - . " publisher_id = " . $pub1->getId() - . " WHERE id = " . $book->getId()); - - $book->reload(); - - $this->assertEquals($pub1->getId(), $book->getPublisherId(), "Expected book to have old publisher id (again)."); - $this->assertSame($pub1, $book->getPublisher(), "Expected book to have old publisher object associated (again)."); - - } - - /** - * Test the effect of typecast on primary key values and instance pool retrieval. - */ - public function testObjectInstancePoolTypecasting() - { - $reader = new BookReader(); - $reader->setName("Tester"); - $reader->save(); - $readerId = $reader->getId(); - - $book = new Book(); - $book->setTitle("BookTest"); - $book->setISBN("TEST"); - $book->save(); - $bookId = $book->getId(); - - $opinion = new BookOpinion(); - $opinion->setBookId((string)$bookId); - $opinion->setReaderId((string)$readerId); - $opinion->setRating(5); - $opinion->setRecommendToFriend(false); - $opinion->save(); - - - $opinion2 = BookOpinionPeer::retrieveByPK($bookId, $readerId); - - $this->assertSame($opinion, $opinion2, "Expected same object to be retrieved from differently type-casted primary key values."); - - } - - /** - * Test the reload() method. - */ - public function testReload() - { - BookstoreDataPopulator::populate(); - $a = AuthorPeer::doSelectOne(new Criteria()); - - $origName = $a->getFirstName(); - - $a->setFirstName(md5(time())); - - $this->assertNotEquals($origName, $a->getFirstName()); - $this->assertTrue($a->isModified()); - - $a->reload(); - - $this->assertEquals($origName, $a->getFirstName()); - $this->assertFalse($a->isModified()); - - } - - /** - * Test reload(deep=true) method. - */ - public function testReloadDeep() - { - BookstoreDataPopulator::populate(); - - // arbitrary book - $b = BookPeer::doSelectOne(new Criteria()); - - // arbitrary, different author - $c = new Criteria(); - $c->add(AuthorPeer::ID, $b->getAuthorId(), Criteria::NOT_EQUAL); - $a = AuthorPeer::doSelectOne($c); - - $origAuthor = $b->getAuthor(); - - $b->setAuthor($a); - - $this->assertNotEquals($origAuthor, $b->getAuthor(), "Expected just-set object to be different from obj from DB"); - $this->assertTrue($b->isModified()); - - $b->reload($deep=true); - - $this->assertEquals($origAuthor, $b->getAuthor(), "Expected object in DB to be restored"); - $this->assertFalse($a->isModified()); - } - - /** - * Test saving an object and getting correct number of affected rows from save(). - * This includes tests of cascading saves to fk-related objects. - */ - public function testSaveReturnValues() - { - - $author = new Author(); - $author->setFirstName("Mark"); - $author->setLastName("Kurlansky"); - // do not save - - $pub = new Publisher(); - $pub->setName("Penguin Books"); - // do not save - - $book = new Book(); - $book->setTitle("Salt: A World History"); - $book->setISBN("0142001619"); - $book->setAuthor($author); - $book->setPublisher($pub); - - $affected = $book->save(); - $this->assertEquals(3, $affected, "Expected 3 affected rows when saving book + publisher + author."); - - // change nothing ... - $affected = $book->save(); - $this->assertEquals(0, $affected, "Expected 0 affected rows when saving already-saved book."); - - // modify the book (UPDATE) - $book->setTitle("Salt A World History"); - $affected = $book->save(); - $this->assertEquals(1, $affected, "Expected 1 affected row when saving modified book."); - - // modify the related author - $author->setLastName("Kurlanski"); - $affected = $book->save(); - $this->assertEquals(1, $affected, "Expected 1 affected row when saving book with updated author."); - - // modify both the related author and the book - $author->setLastName("Kurlansky"); - $book->setTitle("Salt: A World History"); - $affected = $book->save(); - $this->assertEquals(2, $affected, "Expected 2 affected rows when saving updated book with updated author."); - - } - - /** - * Test deleting an object using the delete() method. - */ - public function testDelete() - { - BookstoreDataPopulator::populate(); - - // 1) grab an arbitrary object - $book = BookPeer::doSelectOne(new Criteria()); - $bookId = $book->getId(); - - // 2) delete it - $book->delete(); - - // 3) make sure it can't be save()d now that it's deleted - try { - $book->setTitle("Will Fail"); - $book->save(); - $this->fail("Expect an exception to be thrown when attempting to save() a deleted object."); - } catch (PropelException $e) {} - - // 4) make sure that it doesn't exist in db - $book = BookPeer::retrieveByPK($bookId); - $this->assertNull($book, "Expect NULL from retrieveByPK on deleted Book."); - - } - - /** - * - */ - public function testNoColsModified() - { - $e1 = new BookstoreEmployee(); - $e1->setName('Employee 1'); - - $e2 = new BookstoreEmployee(); - $e2->setName('Employee 2'); - - $super = new BookstoreEmployee(); - // we don't know who the supervisor is yet - $super->addSubordinate($e1); - $super->addSubordinate($e2); - - $affected = $super->save(); - - } - - /** - * Tests new one-to-one functionality. - */ - public function testOneToOne() - { - BookstoreDataPopulator::populate(); - - $emp = BookstoreEmployeePeer::doSelectOne(new Criteria()); - - $acct = new BookstoreEmployeeAccount(); - $acct->setBookstoreEmployee($emp); - $acct->setLogin("testuser"); - $acct->setPassword("testpass"); - - $this->assertSame($emp->getBookstoreEmployeeAccount(), $acct, "Expected same object instance."); - } - - /** - * Test the type sensitivity of the resturning columns. - * - */ - public function testTypeSensitive() - { - BookstoreDataPopulator::populate(); - - $book = BookPeer::doSelectOne(new Criteria()); - - $r = new Review(); - $r->setReviewedBy("testTypeSensitive Tester"); - $r->setReviewDate(time()); - $r->setBook($book); - $r->setRecommended(true); - $r->save(); - - $id = $r->getId(); - unset($r); - - // clear the instance cache to force reload from database. - ReviewPeer::clearInstancePool(); - BookPeer::clearInstancePool(); - - // reload and verify that the types are the same - $r2 = ReviewPeer::retrieveByPK($id); - - $this->assertType('integer', $r2->getId(), "Expected getId() to return an integer."); - $this->assertType('string', $r2->getReviewedBy(), "Expected getReviewedBy() to return a string."); - $this->assertType('boolean', $r2->getRecommended(), "Expected getRecommended() to return a boolean."); - $this->assertType('Book', $r2->getBook(), "Expected getBook() to return a Book."); - $this->assertType('float', $r2->getBook()->getPrice(), "Expected Book->getPrice() to return a float."); - $this->assertType('DateTime', $r2->getReviewDate(null), "Expected Book->getReviewDate() to return a DateTime."); - - } - - /** - * This is a test for expected exceptions when saving UNIQUE. - * See http://propel.phpdb.org/trac/ticket/2 - */ - public function testSaveUnique() - { - // The whole test is in a transaction, but this test needs real transactions - $this->con->commit(); - - $emp = new BookstoreEmployee(); - $emp->setName(md5(microtime())); - - $acct = new BookstoreEmployeeAccount(); - $acct->setBookstoreEmployee($emp); - $acct->setLogin("foo"); - $acct->setPassword("bar"); - $acct->save(); - - // now attempt to create a new acct - $acct2 = $acct->copy(); - - try { - $acct2->save(); - $this->fail("Expected PropelException in first attempt to save object with duplicate value for UNIQUE constraint."); - } catch (Exception $x) { - try { - // attempt to save it again - $acct3 = $acct->copy(); - $acct3->save(); - $this->fail("Expected PropelException in second attempt to save object with duplicate value for UNIQUE constraint."); - } catch (Exception $x) { - // this is expected. - } - // now let's double check that it can succeed if we're not violating the constraint. - $acct3->setLogin("foo2"); - $acct3->save(); - } - - $this->con->beginTransaction(); - } - - /** - * Test for correct reporting of isModified(). - */ - public function testIsModified() - { - // 1) Basic test - - $a = new Author(); - $a->setFirstName("John"); - $a->setLastName("Doe"); - $a->setAge(25); - - $this->assertTrue($a->isModified(), "Expected Author to be modified after setting values."); - - $a->save(); - - $this->assertFalse($a->isModified(), "Expected Author to be unmodified after saving set values."); - - // 2) Test behavior with setting vars of different types - - // checking setting int col to string val - $a->setAge('25'); - $this->assertFalse($a->isModified(), "Expected Author to be unmodified after setting int column to string-cast of same value."); - - $a->setFirstName("John2"); - $this->assertTrue($a->isModified(), "Expected Author to be modified after changing string column value."); - - // checking setting string col to int val - $a->setFirstName("1"); - $a->save(); - $this->assertFalse($a->isModified(), "Expected Author to be unmodified after saving set values."); - - $a->setFirstName(1); - $this->assertFalse($a->isModified(), "Expected Author to be unmodified after setting string column to int-cast of same value."); - - // 3) Test for appropriate behavior of NULL - - // checking "" -> NULL - $a->setFirstName(""); - $a->save(); - $this->assertFalse($a->isModified(), "Expected Author to be unmodified after saving set values."); - - $a->setFirstName(null); - $this->assertTrue($a->isModified(), "Expected Author to be modified after changing empty string column value to NULL."); - - $a->setFirstName("John"); - $a->setAge(0); - $a->save(); - $this->assertFalse($a->isModified(), "Expected Author to be unmodified after saving set values."); - - $a->setAge(null); - $this->assertTrue($a->isModified(), "Expected Author to be modified after changing 0-value int column to NULL."); - - $a->save(); - $this->assertFalse($a->isModified(), "Expected Author to be unmodified after saving set values."); - - $a->setAge(0); - $this->assertTrue($a->isModified(), "Expected Author to be modified after changing NULL-value int column to 0."); - - } - - /** - * Test the BaseObject#equals(). - */ - public function testEquals() - { - BookstoreDataPopulator::populate(); - - $b = BookPeer::doSelectOne(new Criteria()); - $c = new Book(); - $c->setId($b->getId()); - $this->assertTrue($b->equals($c), "Expected Book objects to be equal()"); - - $a = new Author(); - $a->setId($b->getId()); - $this->assertFalse($b->equals($a), "Expected Book and Author with same primary key NOT to match."); - } - - /** - * Test checking for non-default values. - * @see http://propel.phpdb.org/trac/ticket/331 - */ - public function testHasOnlyDefaultValues() - { - $emp = new BookstoreEmployee(); - $emp->setName(md5(microtime())); - - $acct2 = new BookstoreEmployeeAccount(); - - $acct = new BookstoreEmployeeAccount(); - $acct->setBookstoreEmployee($emp); - $acct->setLogin("foo"); - $acct->setPassword("bar"); - $acct->save(); - - $this->assertFalse($acct->isModified(), "Expected BookstoreEmployeeAccount NOT to be modified after save()."); - - $acct->setEnabled(true); - $acct->setPassword($acct2->getPassword()); - - $this->assertTrue($acct->isModified(), "Expected BookstoreEmployeeAccount to be modified after setting default values."); - - $this->assertTrue($acct->hasOnlyDefaultValues(), "Expected BookstoreEmployeeAccount to not have only default values."); - - $acct->setPassword("bar"); - $this->assertFalse($acct->hasOnlyDefaultValues(), "Expected BookstoreEmployeeAccount to have at one non-default value after setting one value to non-default."); - - // Test a default date/time value - $r = new Review(); - $r->setReviewDate(new DateTime("now")); - $this->assertFalse($r->hasOnlyDefaultValues()); - } - - public function testDefaultFkColVal() - { - BookstoreDataPopulator::populate(); - - $sale = new BookstoreSale(); - $this->assertEquals(1, $sale->getBookstoreId(), "Expected BookstoreSale object to have a default bookstore_id of 1."); - - $bookstore = BookstorePeer::doSelectOne(new Criteria()); - - $sale->setBookstore($bookstore); - $this->assertEquals($bookstore->getId(), $sale->getBookstoreId(), "Expected FK id to have changed when assigned a valid FK."); - - $sale->setBookstore(null); - $this->assertEquals(1, $sale->getBookstoreId(), "Expected BookstoreSale object to have reset to default ID."); - - $sale->setPublisher(null); - $this->assertEquals(null, $sale->getPublisherId(), "Expected BookstoreSale object to have reset to NULL publisher ID."); - } - - public function testCountRefFk() - { - $book = new Book(); - $book->setTitle("Test Book"); - $book->setISBN("TT-EE-SS-TT"); - - $num = 5; - - for ($i=2; $i < $num + 2; $i++) { - $r = new Review(); - $r->setReviewedBy('Hans ' . $num); - $dt = new DateTime("now"); - $dt->modify("-".$i." weeks"); - $r->setReviewDate($dt); - $r->setRecommended(($i % 2) == 0); - $book->addReview($r); - } - - $this->assertEquals($num, $book->countReviews(), "Expected countReviews to return $num"); - $this->assertEquals($num, count($book->getReviews()), "Expected getReviews to return $num reviews"); - - $book->save(); - - BookPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - - $book = BookPeer::retrieveByPK($book->getId()); - $this->assertEquals($num, $book->countReviews(), "Expected countReviews() to return $num (after save)"); - $this->assertEquals($num, count($book->getReviews()), "Expected getReviews() to return $num (after save)"); - - // Now set different criteria and expect different results - $c = new Criteria(); - $c->add(ReviewPeer::RECOMMENDED, false); - $this->assertEquals(floor($num/2), $book->countReviews($c), "Expected " . floor($num/2) . " results from countReviews(recomm=false)"); - - // Change Criteria, run again -- expect different. - $c = new Criteria(); - $c->add(ReviewPeer::RECOMMENDED, true); - $this->assertEquals(ceil($num/2), count($book->getReviews($c)), "Expected " . ceil($num/2) . " results from getReviews(recomm=true)"); - - $this->assertEquals($num, $book->countReviews(), "Expected countReviews to return $num with new empty Criteria"); - } - - /** - * Test copyInto method. - */ - public function testCopyInto_Deep() - { - BookstoreDataPopulator::populate(); - - // Test a "normal" object - $c = new Criteria(); - $c->add(BookPeer::TITLE, 'Harry%', Criteria::LIKE); - - $book = BookPeer::doSelectOne($c); - $reviews = $book->getReviews(); - - $b2 = $book->copy(true); - $this->assertType('Book', $b2); - $this->assertNull($b2->getId()); - - $r2 = $b2->getReviews(); - - $this->assertEquals(count($reviews), count($r2)); - - // Test a one-to-one object - $emp = BookstoreEmployeePeer::doSelectOne(new Criteria()); - $e2 = $emp->copy(true); - - $this->assertType('BookstoreEmployee', $e2); - $this->assertNull($e2->getId()); - - $this->assertEquals($emp->getBookstoreEmployeeAccount()->getLogin(), $e2->getBookstoreEmployeeAccount()->getLogin()); - } - - /** - * Test copying when an object has composite primary key. - * @link http://propel.phpdb.org/trac/ticket/618 - */ - public function testCopy_CompositePK() - { - $br = new BookReader(); - $br->setName("TestReader"); - $br->save(); - $br->copy(); - - $b = new Book(); - $b->setTitle("TestBook"); - $b->setISBN("XX-XX-XX-XX"); - $b->save(); - - $op = new BookOpinion(); - $op->setBookReader($br); - $op->setBook($b); - $op->setRating(10); - $op->setRecommendToFriend(true); - $op->save(); - - - $br2 = $br->copy(true); - - $this->assertNull($br2->getId()); - - $opinions = $br2->getBookOpinions(); - $this->assertEquals(1, count($opinions), "Expected to have a related BookOpinion after copy()"); - - // We DO expect the reader_id to be null - $this->assertNull($opinions[0]->getReaderId()); - // but we DO NOT expect the book_id to be null - $this->assertEquals($op->getBookId(), $opinions[0]->getBookId()); - } - - public function testToArray() - { - $b = new Book(); - $b->setTitle('Don Juan'); - - $arr1 = $b->toArray(); - $expectedKeys = array( - 'Id', - 'Title', - 'ISBN', - 'Price', - 'PublisherId', - 'AuthorId' - ); - $this->assertEquals($expectedKeys, array_keys($arr1), 'toArray() returns an associative array with BasePeer::TYPE_PHPNAME keys by default'); - $this->assertEquals('Don Juan', $arr1['Title'], 'toArray() returns an associative array representation of the object'); - } - - public function testToArrayKeyType() - { - $b = new Book(); - $b->setTitle('Don Juan'); - - $arr1 = $b->toArray(BasePeer::TYPE_COLNAME); - $expectedKeys = array( - BookPeer::ID, - BookPeer::TITLE, - BookPeer::ISBN, - BookPeer::PRICE, - BookPeer::PUBLISHER_ID, - BookPeer::AUTHOR_ID - ); - $this->assertEquals($expectedKeys, array_keys($arr1), 'toArray() accepts a $keyType parameter to change the result keys'); - $this->assertEquals('Don Juan', $arr1[BookPeer::TITLE], 'toArray() returns an associative array representation of the object'); - } - - /** - * Test the toArray() method with new lazyLoad param. - * @link http://propel.phpdb.org/trac/ticket/527 - */ - public function testToArrayLazyLoad() - { - BookstoreDataPopulator::populate(); - - $c = new Criteria(); - $c->add(MediaPeer::COVER_IMAGE, null, Criteria::NOT_EQUAL); - $c->add(MediaPeer::EXCERPT, null, Criteria::NOT_EQUAL); - - $m = MediaPeer::doSelectOne($c); - if ($m === null) { - $this->fail("Test requires at least one media row w/ cover_image and excerpt NOT NULL"); - } - - $arr1 = $m->toArray(BasePeer::TYPE_COLNAME); - $this->assertNotNull($arr1[MediaPeer::COVER_IMAGE]); - $this->assertType('resource', $arr1[MediaPeer::COVER_IMAGE]); - - $arr2 = $m->toArray(BasePeer::TYPE_COLNAME, false); - $this->assertNull($arr2[MediaPeer::COVER_IMAGE]); - $this->assertNull($arr2[MediaPeer::EXCERPT]); - - $diffKeys = array_keys(array_diff($arr1, $arr2)); - - $expectedDiff = array(MediaPeer::COVER_IMAGE, MediaPeer::EXCERPT); - - $this->assertEquals($expectedDiff, $diffKeys); - } - - public function testToArrayIncludeForeignObjects() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - PublisherPeer::clearInstancePool(); - - $c = new Criteria(); - $c->add(BookPeer::TITLE, 'Don Juan'); - $books = BookPeer::doSelectJoinAuthor($c); - $book = $books[0]; - - $arr1 = $book->toArray(BasePeer::TYPE_PHPNAME, null, true); - $expectedKeys = array( - 'Id', - 'Title', - 'ISBN', - 'Price', - 'PublisherId', - 'AuthorId', - 'Author' - ); - $this->assertEquals($expectedKeys, array_keys($arr1), 'toArray() can return sub arrays for hydrated related objects'); - $this->assertEquals('George', $arr1['Author']['FirstName'], 'toArray() can return sub arrays for hydrated related objects'); - - $c = new Criteria(); - $c->add(BookPeer::TITLE, 'Don Juan'); - $books = BookPeer::doSelectJoinAll($c); - $book = $books[0]; - - $arr2 = $book->toArray(BasePeer::TYPE_PHPNAME, null, true); - $expectedKeys = array( - 'Id', - 'Title', - 'ISBN', - 'Price', - 'PublisherId', - 'AuthorId', - 'Publisher', - 'Author' - ); - $this->assertEquals($expectedKeys, array_keys($arr2), 'toArray() can return sub arrays for hydrated related objects'); - } - - /** - * Test regexp validator for ticket:542 - * @link http://propel.phpdb.org/trac/ticket/542 - */ - public function testRegexValidator() - { - $b = new Bookstore(); - $b->setWebsite("http://this.is.valid.com/foo.bar"); - $res = $b->validate(); - $this->assertTrue($res, "Expected URL to validate"); - } - - /** - * Test that setting the auto-increment primary key will result in exception. - */ - public function testSettingAutoIncrementPK() - { - // The whole test is in a transaction, but this test needs real transactions - $this->con->commit(); - - $b = new Bookstore(); - $b->setId(1); - $b->setStoreName("Test"); - try { - $b->save(); - $this->fail("Expected setting auto-increment primary key to result in Exception"); - } catch (Exception $x) { - $this->assertType('PropelException', $x); - } - - // ... but we should silently ignore NULL values, since these are really - // the same as "not set" in PHP world. - $b = new Bookstore(); - $b->setId(null); - $b->setStoreName("Test2"); - try { - $b->save(); - } catch (Exception $x) { - $this->fail("Expected no exception when setting auto-increment primary key to NULL"); - } - // success ... - - $this->con->beginTransaction(); - } - - /** - * Checks wether we are allowed to specify the primary key on a - * table with allowPkInsert=true set - * - * saves the object, gets it from data-source again and then compares - * them for equality (thus the instance pool is also checked) - */ - public function testAllowPkInsertOnIdMethodNativeTable() - { - $cu = new Customer; - $cu->setPrimaryKey(100000); - $cu->save(); - - $this->assertEquals(100000, $cu->getPrimaryKey()); - - $cu2 = CustomerPeer::retrieveByPk(100000); - - $this->assertSame($cu, $cu2); - } - /** - * Checks if it is allowed to save new, empty objects with a auto increment column - */ - public function testAllowEmptyWithAutoIncrement() - { - $bookreader = new BookReader(); - $bookreader->save(); - - $this->assertFalse($bookreader->isNew() ); - } - - /** - * Test foreign key relationships based on references to unique cols but not PK. - * @link http://propel.phpdb.org/trac/ticket/691 - */ - public function testUniqueFkRel() - { - $employee = new BookstoreEmployee(); - $employee->setName("Johnny Walker"); - - $acct = new BookstoreEmployeeAccount(); - $acct->setBookstoreEmployee($employee); - $acct->setLogin("test-login"); - $acct->save(); - $acctId = $acct->getEmployeeId(); - - $al = new AcctAuditLog(); - $al->setBookstoreEmployeeAccount($acct); - $al->save(); - $alId = $al->getId(); - - BookstoreEmployeePeer::clearInstancePool(); - BookstoreEmployeeAccountPeer::clearInstancePool(); - AcctAuditLogPeer::clearInstancePool(); - - $al2 = AcctAuditLogPeer::retrieveByPK($alId); - /* @var $al2 AcctAuditLog */ - $mapacct = $al2->getBookstoreEmployeeAccount(); - $lookupacct = BookstoreEmployeeAccountPeer::retrieveByPK($acctId); - - $logs = $lookupacct->getAcctAuditLogs(); - - $this->assertTrue(count($logs) == 1, "Expected 1 audit log result."); - $this->assertEquals($logs[0]->getId(), $al->getId(), "Expected returned audit log to match created audit log."); - } - - public function testIsPrimaryKeyNull() - { - $b = new Book(); - $this->assertTrue($b->isPrimaryKeyNull()); - $b->setPrimaryKey(123); - $this->assertFalse($b->isPrimaryKeyNull()); - $b->setPrimaryKey(null); - $this->assertTrue($b->isPrimaryKeyNull()); - } - - public function testIsPrimaryKeyNullCompmosite() - { - $b = new BookOpinion(); - $this->assertTrue($b->isPrimaryKeyNull()); - $b->setPrimaryKey(array(123, 456)); - $this->assertFalse($b->isPrimaryKeyNull()); - $b->setPrimaryKey(array(123, null)); - $this->assertFalse($b->isPrimaryKeyNull()); - $b->setPrimaryKey(array(null, 456)); - $this->assertFalse($b->isPrimaryKeyNull()); - $b->setPrimaryKey(array(null, null)); - $this->assertTrue($b->isPrimaryKeyNull()); - } - - public function testAddPrimaryString() - { - $this->assertFalse(method_exists('Author', '__toString'), 'addPrimaryString() does not add a __toString() method if no column has the primaryString attribute'); - $this->assertTrue(method_exists('Book', '__toString'), 'addPrimaryString() adds a __toString() method if a column has the primaryString attribute'); - $book = new Book(); - $book->setTitle('foo'); - $this->assertEquals((string) $book, 'foo', 'addPrimaryString() adds a __toString() method returning the value of the the first column where primaryString is true'); - } - - public function testPreInsert() - { - $author = new TestAuthor(); - $author->setFirstName("bogus"); - $author->setLastName("Lastname"); - $author->save(); - $this->assertEquals('PreInsertedFirstname', $author->getFirstName()); - } - - public function testPreUpdate() - { - $author = new TestAuthor(); - $author->setFirstName("bogus"); - $author->setLastName("Lastname"); - $author->save(); - $author->setNew(false); - $author->save(); - $this->assertEquals('PreUpdatedFirstname', $author->getFirstName()); - } - - public function testPostInsert() - { - $author = new TestAuthor(); - $author->setFirstName("bogus"); - $author->setLastName("Lastname"); - $author->save(); - $this->assertEquals('PostInsertedLastName', $author->getLastName()); - } - - public function testPostUpdate() - { - $author = new TestAuthor(); - $author->setFirstName("bogus"); - $author->setLastName("Lastname"); - $author->save(); - $author->setNew(false); - $author->save(); - $this->assertEquals('PostUpdatedLastName', $author->getLastName()); - } - - public function testPreSave() - { - $author = new TestAuthor(); - $author->setFirstName("bogus"); - $author->setLastName("Lastname"); - $author->save(); - $this->assertEquals('pre@save.com', $author->getEmail()); - } - - public function testPreSaveFalse() - { - $con = Propel::getConnection(AuthorPeer::DATABASE_NAME); - $author = new TestAuthorSaveFalse(); - $author->setFirstName("bogus"); - $author->setLastName("Lastname"); - $res = $author->save($con); - $this->assertEquals(0, $res); - $this->assertEquals('pre@save.com', $author->getEmail()); - $this->assertNotEquals(115, $author->getAge()); - $this->assertTrue($author->isNew()); - $this->assertEquals(1, $con->getNestedTransactionCount()); - } - - public function testPostSave() - { - $author = new TestAuthor(); - $author->setFirstName("bogus"); - $author->setLastName("Lastname"); - $author->save(); - $this->assertEquals(115, $author->getAge()); - } - - public function testPreDelete() - { - $author = new TestAuthor(); - $author->setFirstName("bogus"); - $author->setLastName("Lastname"); - $author->save(); - $author->delete(); - $this->assertEquals("Pre-Deleted", $author->getFirstName()); - } - - public function testPreDeleteFalse() - { - $con = Propel::getConnection(AuthorPeer::DATABASE_NAME); - $author = new TestAuthorDeleteFalse(); - $author->setFirstName("bogus"); - $author->setLastName("Lastname"); - $author->save($con); - $author->delete($con); - $this->assertEquals("Pre-Deleted", $author->getFirstName()); - $this->assertNotEquals("Post-Deleted", $author->getLastName()); - $this->assertFalse($author->isDeleted()); - $this->assertEquals(1, $con->getNestedTransactionCount()); - } - - public function testPostDelete() - { - $author = new TestAuthor(); - $author->setFirstName("bogus"); - $author->setLastName("Lastname"); - $author->save(); - $author->delete(); - $this->assertEquals("Post-Deleted", $author->getLastName()); - } - - public function testMagicVirtualColumnGetter() - { - $book = new Book(); - $book->setVirtualColumn('Foo', 'bar'); - $this->assertEquals('bar', $book->getFoo(), 'generated __call() catches getters for virtual columns'); - $book = new Book(); - $book->setVirtualColumn('foo', 'bar'); - $this->assertEquals('bar', $book->getFoo(), 'generated __call() catches getters for virtual columns starting with a lowercase character'); - } - - public static function conditionsForTestReadOnly() - { - return array( - array('reload'), - array('delete'), - array('save'), - array('doSave'), - ); - } - - /** - * @dataProvider conditionsForTestReadOnly - */ - public function testReadOnly($method) - { - $cv = new ContestView(); - $this->assertFalse(method_exists($cv, $method), 'readOnly tables end up with no ' . $method . ' method in the generated object class'); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedPeerDoDeleteTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedPeerDoDeleteTest.php deleted file mode 100644 index b68a53ba45..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedPeerDoDeleteTest.php +++ /dev/null @@ -1,545 +0,0 @@ - - * @package generator.builder.om - */ -class GeneratedPeerDoDeleteTest extends BookstoreEmptyTestBase -{ - protected function setUp() - { - parent::setUp(); - BookstoreDataPopulator::populate(); - } - - /** - * Test ability to delete multiple rows via single Criteria object. - */ - public function testDoDelete_MultiTable() { - - $selc = new Criteria(); - $selc->add(BookPeer::TITLE, "Harry Potter and the Order of the Phoenix"); - $hp = BookPeer::doSelectOne($selc); - - // print "Attempting to delete [multi-table] by found pk: "; - $c = new Criteria(); - $c->add(BookPeer::ID, $hp->getId()); - // The only way for multi-delete to work currently - // is to specify the author_id and publisher_id (i.e. the fkeys - // have to be in the criteria). - $c->add(AuthorPeer::ID, $hp->getAuthorId()); - $c->add(PublisherPeer::ID, $hp->getPublisherId()); - $c->setSingleRecord(true); - BookPeer::doDelete($c); - - //print_r(AuthorPeer::doSelect(new Criteria())); - - // check to make sure the right # of records was removed - $this->assertEquals(3, count(AuthorPeer::doSelect(new Criteria())), "Expected 3 authors after deleting."); - $this->assertEquals(3, count(PublisherPeer::doSelect(new Criteria())), "Expected 3 publishers after deleting."); - $this->assertEquals(3, count(BookPeer::doSelect(new Criteria())), "Expected 3 books after deleting."); - } - - /** - * Test using a complex criteria to delete multiple rows from a single table. - */ - public function testDoDelete_ComplexCriteria() { - - //print "Attempting to delete books by complex criteria: "; - $c = new Criteria(); - $cn = $c->getNewCriterion(BookPeer::ISBN, "043935806X"); - $cn->addOr($c->getNewCriterion(BookPeer::ISBN, "0380977427")); - $cn->addOr($c->getNewCriterion(BookPeer::ISBN, "0140422161")); - $c->add($cn); - BookPeer::doDelete($c); - - // now there should only be one book left; "The Tin Drum" - - $books = BookPeer::doSelect(new Criteria()); - - $this->assertEquals(1, count($books), "Expected 1 book remaining after deleting."); - $this->assertEquals("The Tin Drum", $books[0]->getTitle(), "Expect the only remaining book to be 'The Tin Drum'"); - } - - /** - * Test that cascading deletes are happening correctly (whether emulated or native). - */ - public function testDoDelete_Cascade_Simple() - { - - // The 'media' table will cascade from book deletes - - // 1) Assert the row exists right now - - $medias = MediaPeer::doSelect(new Criteria()); - $this->assertTrue(count($medias) > 0, "Expected to find at least one row in 'media' table."); - $media = $medias[0]; - $mediaId = $media->getId(); - - // 2) Delete the owning book - - $owningBookId = $media->getBookId(); - BookPeer::doDelete($owningBookId); - - // 3) Assert that the media row is now also gone - - $obj = MediaPeer::retrieveByPK($mediaId); - $this->assertNull($obj, "Expect NULL when retrieving on no matching Media."); - - } - - /** - * Test that cascading deletes are happening correctly for composite pk. - * @link http://propel.phpdb.org/trac/ticket/544 - */ - public function testDoDelete_Cascade_CompositePK() - { - - $origBceCount = BookstoreContestEntryPeer::doCount(new Criteria()); - - $cust1 = new Customer(); - $cust1->setName("Cust1"); - $cust1->save(); - - $cust2 = new Customer(); - $cust2->setName("Cust2"); - $cust2->save(); - - $c1 = new Contest(); - $c1->setName("Contest1"); - $c1->save(); - - $c2 = new Contest(); - $c2->setName("Contest2"); - $c2->save(); - - $store1 = new Bookstore(); - $store1->setStoreName("Store1"); - $store1->save(); - - $bc1 = new BookstoreContest(); - $bc1->setBookstore($store1); - $bc1->setContest($c1); - $bc1->save(); - - $bc2 = new BookstoreContest(); - $bc2->setBookstore($store1); - $bc2->setContest($c2); - $bc2->save(); - - $bce1 = new BookstoreContestEntry(); - $bce1->setEntryDate("now"); - $bce1->setCustomer($cust1); - $bce1->setBookstoreContest($bc1); - $bce1->save(); - - $bce2 = new BookstoreContestEntry(); - $bce2->setEntryDate("now"); - $bce2->setCustomer($cust1); - $bce2->setBookstoreContest($bc2); - $bce2->save(); - - // Now, if we remove $bc1, we expect *only* bce1 to be no longer valid. - - BookstoreContestPeer::doDelete($bc1); - - $newCount = BookstoreContestEntryPeer::doCount(new Criteria()); - - $this->assertEquals($origBceCount + 1, $newCount, "Expected new number of rows in BCE to be orig + 1"); - - $bcetest = BookstoreContestEntryPeer::retrieveByPK($store1->getId(), $c1->getId(), $cust1->getId()); - $this->assertNull($bcetest, "Expected BCE for store1 to be cascade deleted."); - - $bcetest2 = BookstoreContestEntryPeer::retrieveByPK($store1->getId(), $c2->getId(), $cust1->getId()); - $this->assertNotNull($bcetest2, "Expected BCE for store2 to NOT be cascade deleted."); - - } - - /** - * Test that onDelete="SETNULL" is happening correctly (whether emulated or native). - */ - public function testDoDelete_SetNull() { - - // The 'author_id' column in 'book' table will be set to null when author is deleted. - - // 1) Get an arbitrary book - $c = new Criteria(); - $book = BookPeer::doSelectOne($c); - $bookId = $book->getId(); - $authorId = $book->getAuthorId(); - unset($book); - - // 2) Delete the author for that book - AuthorPeer::doDelete($authorId); - - // 3) Assert that the book.author_id column is now NULL - - $book = BookPeer::retrieveByPK($bookId); - $this->assertNull($book->getAuthorId(), "Expect the book.author_id to be NULL after the author was removed."); - - } - - /** - * Test deleting a row by passing in the primary key to the doDelete() method. - */ - public function testDoDelete_ByPK() { - - // 1) get an arbitrary book - $book = BookPeer::doSelectOne(new Criteria()); - $bookId = $book->getId(); - - // 2) now delete that book - BookPeer::doDelete($bookId); - - // 3) now make sure it's gone - $obj = BookPeer::retrieveByPK($bookId); - $this->assertNull($obj, "Expect NULL when retrieving on no matching Book."); - - } - - public function testDoDelete_ByPks() { - // 1) get all of the books - $books = BookPeer::doSelect(new Criteria()); - $bookCount = count($books); - - // 2) we have enough books to do this test - $this->assertGreaterThan(1, $bookCount, 'There are at least two books'); - - // 3) select two random books - $book1 = $books[0]; - $book2 = $books[1]; - - // 4) delete the books - BookPeer::doDelete(array($book1->getId(), $book2->getId())); - - // 5) we should have two less books than before - $this->assertEquals($bookCount-2, BookPeer::doCount(new Criteria()), 'Two books deleted successfully.'); - } - - /** - * Test deleting a row by passing the generated object to doDelete(). - */ - public function testDoDelete_ByObj() { - - // 1) get an arbitrary book - $book = BookPeer::doSelectOne(new Criteria()); - $bookId = $book->getId(); - - // 2) now delete that book - BookPeer::doDelete($book); - - // 3) now make sure it's gone - $obj = BookPeer::retrieveByPK($bookId); - $this->assertNull($obj, "Expect NULL when retrieving on no matching Book."); - - } - - - /** - * Test the doDeleteAll() method for single table. - */ - public function testDoDeleteAll() { - - BookPeer::doDeleteAll(); - $this->assertEquals(0, count(BookPeer::doSelect(new Criteria())), "Expect all book rows to have been deleted."); - } - - /** - * Test the state of the instance pool after a doDeleteAll() call. - */ - public function testDoDeleteAllInstancePool() - { - $review = ReviewPeer::doSelectOne(new Criteria); - $book = $review->getBook(); - BookPeer::doDeleteAll(); - $this->assertNull(BookPeer::retrieveByPk($book->getId()), 'doDeleteAll invalidates instance pool'); - $this->assertNull(ReviewPeer::retrieveByPk($review->getId()), 'doDeleteAll invalidates instance pool of releted tables with ON DELETE CASCADE'); - } - - /** - * Test the doDeleteAll() method when onDelete="CASCADE". - */ - public function testDoDeleteAll_Cascade() { - - BookPeer::doDeleteAll(); - $this->assertEquals(0, count(MediaPeer::doSelect(new Criteria())), "Expect all media rows to have been cascade deleted."); - $this->assertEquals(0, count(ReviewPeer::doSelect(new Criteria())), "Expect all review rows to have been cascade deleted."); - } - - /** - * Test the doDeleteAll() method when onDelete="SETNULL". - */ - public function testDoDeleteAll_SetNull() { - - $c = new Criteria(); - $c->add(BookPeer::AUTHOR_ID, null, Criteria::NOT_EQUAL); - - // 1) make sure there are some books with valid authors - $this->assertTrue(count(BookPeer::doSelect($c)) > 0, "Expect some book.author_id columns that are not NULL."); - - // 2) delete all the authors - AuthorPeer::doDeleteAll(); - - // 3) now verify that the book.author_id columns are all nul - $this->assertEquals(0, count(BookPeer::doSelect($c)), "Expect all book.author_id columns to be NULL."); - } - - /** - * @link http://propel.phpdb.org/trac/ticket/519 - */ - public function testDoDeleteCompositePK() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - ReaderFavoritePeer::doDeleteAll(); - // Create books with IDs 1 to 3 - // Create readers with IDs 1 and 2 - - $this->createBookWithId(1); - $this->createBookWithId(2); - $this->createBookWithId(3); - $this->createReaderWithId(1); - $this->createReaderWithId(2); - - for ($i=1; $i <= 3; $i++) { - for ($j=1; $j <= 2; $j++) { - $bo = new BookOpinion(); - $bo->setBookId($i); - $bo->setReaderId($j); - $bo->save(); - - $rf = new ReaderFavorite(); - $rf->setBookId($i); - $rf->setReaderId($j); - $rf->save(); - } - } - - $this->assertEquals(6, ReaderFavoritePeer::doCount(new Criteria())); - - // Now delete 2 of those rows (2 is special in that it is the number of rows - // being deleted, as well as the number of things in the primary key) - ReaderFavoritePeer::doDelete(array(array(1,1), array(2,2))); - $this->assertEquals(4, ReaderFavoritePeer::doCount(new Criteria())); - - //Note: these composite PK's are pairs of (BookId, ReaderId) - $this->assertNotNull(ReaderFavoritePeer::retrieveByPK(2,1)); - $this->assertNotNull(ReaderFavoritePeer::retrieveByPK(1,2)); - $this->assertNotNull(ReaderFavoritePeer::retrieveByPk(3,1)); - $this->assertNotNull(ReaderFavoritePeer::retrieveByPk(3,2)); - $this->assertNull(ReaderFavoritePeer::retrieveByPK(1,1)); - $this->assertNull(ReaderFavoritePeer::retrieveByPK(2,2)); - - //test deletion of a single composite PK - ReaderFavoritePeer::doDelete(array(3,1)); - $this->assertEquals(3, ReaderFavoritePeer::doCount(new Criteria())); - $this->assertNotNull(ReaderFavoritePeer::retrieveByPK(2,1)); - $this->assertNotNull(ReaderFavoritePeer::retrieveByPK(1,2)); - $this->assertNotNull(ReaderFavoritePeer::retrieveByPk(3,2)); - $this->assertNull(ReaderFavoritePeer::retrieveByPK(1,1)); - $this->assertNull(ReaderFavoritePeer::retrieveByPK(2,2)); - $this->assertNull(ReaderFavoritePeer::retrieveByPk(3,1)); - - //test deleting the last three - ReaderFavoritePeer::doDelete(array(array(2,1), array(1,2), array(3,2))); - $this->assertEquals(0, ReaderFavoritePeer::doCount(new Criteria())); - } - - /** - * Test the doInsert() method when passed a Criteria object. - */ - public function testDoInsert_Criteria() { - - $name = "A Sample Publisher - " . time(); - - $values = new Criteria(); - $values->add(PublisherPeer::NAME, $name); - PublisherPeer::doInsert($values); - - $c = new Criteria(); - $c->add(PublisherPeer::NAME, $name); - - $matches = PublisherPeer::doSelect($c); - $this->assertEquals(1, count($matches), "Expect there to be exactly 1 publisher just-inserted."); - $this->assertTrue( 1 != $matches[0]->getId(), "Expected to have different ID than one put in values Criteria."); - - } - - /** - * Test the doInsert() method when passed a generated object. - */ - public function testDoInsert_Obj() { - - $name = "A Sample Publisher - " . time(); - - $values = new Publisher(); - $values->setName($name); - PublisherPeer::doInsert($values); - - $c = new Criteria(); - $c->add(PublisherPeer::NAME, $name); - - $matches = PublisherPeer::doSelect($c); - $this->assertEquals(1, count($matches), "Expect there to be exactly 1 publisher just-inserted."); - $this->assertTrue( 1 != $matches[0]->getId(), "Expected to have different ID than one put in values Criteria."); - - } - - /** - * Tests the return type of doCount*() methods. - */ - public function testDoCountType() - { - $c = new Criteria(); - $this->assertType('integer', BookPeer::doCount($c), "Expected doCount() to return an integer."); - $this->assertType('integer', BookPeer::doCountJoinAll($c), "Expected doCountJoinAll() to return an integer."); - $this->assertType('integer', BookPeer::doCountJoinAuthor($c), "Expected doCountJoinAuthor() to return an integer."); - } - - /** - * Tests the doCount() method with limit/offset. - */ - public function testDoCountLimitOffset() - { - BookPeer::doDeleteAll(); - - for ($i=0; $i < 25; $i++) { - $b = new Book(); - $b->setTitle("Book $i"); - $b->setISBN("ISBN $i"); - $b->save(); - } - - $c = new Criteria(); - $totalCount = BookPeer::doCount($c); - - $this->assertEquals(25, $totalCount); - - $c2 = new Criteria(); - $c2->setLimit(10); - $this->assertEquals(10, BookPeer::doCount($c2)); - - $c3 = new Criteria(); - $c3->setOffset(10); - $this->assertEquals(15, BookPeer::doCount($c3)); - - $c4 = new Criteria(); - $c4->setOffset(5); - $c4->setLimit(5); - $this->assertEquals(5, BookPeer::doCount($c4)); - - $c5 = new Criteria(); - $c5->setOffset(20); - $c5->setLimit(10); - $this->assertEquals(5, BookPeer::doCount($c5)); - } - - /** - * Test doCountJoin*() methods. - */ - public function testDoCountJoin() - { - BookPeer::doDeleteAll(); - - for ($i=0; $i < 25; $i++) { - $b = new Book(); - $b->setTitle("Book $i"); - $b->setISBN("ISBN $i"); - $b->save(); - } - - $c = new Criteria(); - $totalCount = BookPeer::doCount($c); - - $this->assertEquals($totalCount, BookPeer::doCountJoinAuthor($c)); - $this->assertEquals($totalCount, BookPeer::doCountJoinPublisher($c)); - } - - /** - * Test doCountJoin*() methods with ORDER BY columns in Criteria. - * @link http://propel.phpdb.org/trac/ticket/627 - */ - public function testDoCountJoinWithOrderBy() - { - $c = new Criteria(BookPeer::DATABASE_NAME); - $c->addAscendingOrderByColumn(BookPeer::ID); - - // None of these should not throw an exception! - BookPeer::doCountJoinAll($c); - BookPeer::doCountJoinAllExceptAuthor($c); - BookPeer::doCountJoinAuthor($c); - } - - /** - * Test passing null values to removeInstanceFromPool(). - */ - public function testRemoveInstanceFromPool_Null() - { - // if it throws an exception, then it's broken. - try { - BookPeer::removeInstanceFromPool(null); - } catch (Exception $x) { - $this->fail("Expected to get no exception when removing an instance from the pool."); - } - } - - /** - * @see testDoDeleteCompositePK() - */ - private function createBookWithId($id) - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $b = BookPeer::retrieveByPK($id); - if (!$b) { - $b = new Book(); - $b->setTitle("Book$id")->setISBN("BookISBN$id")->save(); - $b1Id = $b->getId(); - $sql = "UPDATE " . BookPeer::TABLE_NAME . " SET id = ? WHERE id = ?"; - $stmt = $con->prepare($sql); - $stmt->bindValue(1, $id); - $stmt->bindValue(2, $b1Id); - $stmt->execute(); - } - } - - /** - * @see testDoDeleteCompositePK() - */ - private function createReaderWithId($id) - { - $con = Propel::getConnection(BookReaderPeer::DATABASE_NAME); - $r = BookReaderPeer::retrieveByPK($id); - if (!$r) { - $r = new BookReader(); - $r->setName('Reader'.$id)->save(); - $r1Id = $r->getId(); - $sql = "UPDATE " . BookReaderPeer::TABLE_NAME . " SET id = ? WHERE id = ?"; - $stmt = $con->prepare($sql); - $stmt->bindValue(1, $id); - $stmt->bindValue(2, $r1Id); - $stmt->execute(); - } - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedPeerDoSelectTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedPeerDoSelectTest.php deleted file mode 100644 index e6be9d3f6d..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedPeerDoSelectTest.php +++ /dev/null @@ -1,439 +0,0 @@ - - * @package generator.builder.om - */ -class GeneratedPeerDoSelectTest extends BookstoreEmptyTestBase -{ - protected function setUp() - { - parent::setUp(); - BookstoreDataPopulator::populate(); - } - - public function testDoSelect() - { - $books = BookPeer::doSelect(new Criteria()); - $this->assertEquals(4, count($books), 'doSelect() with an empty Criteria returns all results'); - $book1 = $books[0]; - - $c = new Criteria(); - $c->add(BookPeer::ID, $book1->getId()); - $res = BookPeer::doSelect($c); - $this->assertEquals(array($book1), $res, 'doSelect() accepts a Criteria object with a condition'); - - $c = new Criteria(); - $c->add(BookPeer::ID, $book1->getId()); - $c->add(BookPeer::TITLE, $book1->getTitle()); - $res = BookPeer::doSelect($c); - $this->assertEquals(array($book1), $res, 'doSelect() accepts a Criteria object with several condition'); - - $c = new Criteria(); - $c->add(BookPeer::ID, 'foo'); - $res = BookPeer::doSelect($c); - $this->assertEquals(array(), $res, 'doSelect() accepts an incorrect Criteria'); - } - - /** - * Tests performing doSelect() and doSelectJoin() using LIMITs. - */ - public function testDoSelect_Limit() { - - // 1) get the total number of items in a particular table - $count = BookPeer::doCount(new Criteria()); - - $this->assertTrue($count > 1, "Need more than 1 record in books table to perform this test."); - - $limitcount = $count - 1; - - $lc = new Criteria(); - $lc->setLimit($limitcount); - - $results = BookPeer::doSelect($lc); - - $this->assertEquals($limitcount, count($results), "Expected $limitcount results from BookPeer::doSelect()"); - - // re-create it just to avoid side-effects - $lc2 = new Criteria(); - $lc2->setLimit($limitcount); - $results2 = BookPeer::doSelectJoinAuthor($lc2); - - $this->assertEquals($limitcount, count($results2), "Expected $limitcount results from BookPeer::doSelectJoinAuthor()"); - - } - - /** - * Test the basic functionality of the doSelectJoin*() methods. - */ - public function testDoSelectJoin() - { - - BookPeer::clearInstancePool(); - - $c = new Criteria(); - - $books = BookPeer::doSelect($c); - $obj = $books[0]; - // $size = strlen(serialize($obj)); - - BookPeer::clearInstancePool(); - - $joinBooks = BookPeer::doSelectJoinAuthor($c); - $obj2 = $joinBooks[0]; - $obj2Array = $obj2->toArray(BasePeer::TYPE_PHPNAME, true, true); - // $joinSize = strlen(serialize($obj2)); - - $this->assertEquals(count($books), count($joinBooks), "Expected to find same number of rows in doSelectJoin*() call as doSelect() call."); - - // $this->assertTrue($joinSize > $size, "Expected a serialized join object to be larger than a non-join object."); - - $this->assertTrue(array_key_exists('Author', $obj2Array)); - } - - /** - * Test the doSelectJoin*() methods when the related object is NULL. - */ - public function testDoSelectJoin_NullFk() - { - $b1 = new Book(); - $b1->setTitle("Test NULLFK 1"); - $b1->setISBN("NULLFK-1"); - $b1->save(); - - $b2 = new Book(); - $b2->setTitle("Test NULLFK 2"); - $b2->setISBN("NULLFK-2"); - $b2->setAuthor(new Author()); - $b2->getAuthor()->setFirstName("Hans")->setLastName("L"); - $b2->save(); - - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - - $c = new Criteria(); - $c->add(BookPeer::ISBN, 'NULLFK-%', Criteria::LIKE); - $c->addAscendingOrderByColumn(BookPeer::ISBN); - - $matches = BookPeer::doSelectJoinAuthor($c); - $this->assertEquals(2, count($matches), "Expected 2 matches back from new books; got back " . count($matches)); - - $this->assertNull($matches[0]->getAuthor(), "Expected first book author to be null"); - $this->assertType('Author', $matches[1]->getAuthor(), "Expected valid Author object for second book."); - } - - public function testDoSelectJoinOneToOne() - { - $con = Propel::getConnection(); - $count = $con->getQueryCount(); - Propel::disableInstancePooling(); - $c = new Criteria(); - $accs = BookstoreEmployeeAccountPeer::doSelectJoinBookstoreEmployee($c); - Propel::enableInstancePooling(); - $this->assertEquals(1, $con->getQueryCount() - $count, 'doSelectJoin() makes only one query in a one-to-one relationship'); - } - - public function testDoSelectOne() - { - $books = BookPeer::doSelect(new Criteria()); - $book1 = $books[0]; - - $c = new Criteria(); - $c->add(BookPeer::ID, $book1->getId()); - $res = BookPeer::doSelectOne($c); - $this->assertEquals($book1, $res, 'doSelectOne() returns a single object'); - - $c = new Criteria(); - $c->add(BookPeer::ID, 'foo'); - $res = BookPeer::doSelectOne($c); - $this->assertNull($res, 'doSelectOne() returns null if the Criteria matches no record'); - } - - public function testObjectInstances() - { - - $sample = BookPeer::doSelectOne(new Criteria()); - $samplePk = $sample->getPrimaryKey(); - - // 1) make sure consecutive calls to retrieveByPK() return the same object. - - $b1 = BookPeer::retrieveByPK($samplePk); - $b2 = BookPeer::retrieveByPK($samplePk); - - $sampleval = md5(microtime()); - - $this->assertTrue($b1 === $b2, "Expected object instances to match for calls with same retrieveByPK() method signature."); - - // 2) make sure that calls to doSelect also return references to the same objects. - $allbooks = BookPeer::doSelect(new Criteria()); - foreach ($allbooks as $testb) { - if ($testb->getPrimaryKey() == $b1->getPrimaryKey()) { - $this->assertTrue($testb === $b1, "Expected same object instance from doSelect() as from retrieveByPK()"); - } - } - - // 3) test fetching related objects - $book = BookPeer::retrieveByPK($samplePk); - - $bookauthor = $book->getAuthor(); - - $author = AuthorPeer::retrieveByPK($bookauthor->getId()); - - $this->assertTrue($bookauthor === $author, "Expected same object instance when calling fk object accessor as retrieveByPK()"); - - // 4) test a doSelectJoin() - $morebooks = BookPeer::doSelectJoinAuthor(new Criteria()); - for ($i=0,$j=0; $j < count($morebooks); $i++, $j++) { - $testb1 = $allbooks[$i]; - $testb2 = $allbooks[$j]; - $this->assertTrue($testb1 === $testb2, "Expected the same objects from consecutive doSelect() calls."); - // we could probably also test this by just verifying that $book & $testb are the same - if ($testb1->getPrimaryKey() === $book) { - $this->assertTrue($book->getAuthor() === $testb1->getAuthor(), "Expected same author object in calls to pkey-matching books."); - } - } - - - // 5) test creating a new object, saving it, and then retrieving that object (should all be same instance) - $b = new BookstoreEmployee(); - $b->setName("Testing"); - $b->setJobTitle("Testing"); - $b->save(); - - $empId = $b->getId(); - - $this->assertSame($b, BookstoreEmployeePeer::retrieveByPK($empId), "Expected newly saved object to be same instance as pooled."); - - } - - /** - * Test inheritance features. - */ - public function testInheritance() - { - $manager = new BookstoreManager(); - $manager->setName("Manager 1"); - $manager->setJobTitle("Warehouse Manager"); - $manager->save(); - $managerId = $manager->getId(); - - $employee = new BookstoreEmployee(); - $employee->setName("Employee 1"); - $employee->setJobTitle("Janitor"); - $employee->setSupervisorId($managerId); - $employee->save(); - $empId = $employee->getId(); - - $cashier = new BookstoreCashier(); - $cashier->setName("Cashier 1"); - $cashier->setJobTitle("Cashier"); - $cashier->save(); - $cashierId = $cashier->getId(); - - // 1) test the pooled instances' - $c = new Criteria(); - $c->add(BookstoreEmployeePeer::ID, array($managerId, $empId, $cashierId), Criteria::IN); - $c->addAscendingOrderByColumn(BookstoreEmployeePeer::ID); - - $objects = BookstoreEmployeePeer::doSelect($c); - - $this->assertEquals(3, count($objects), "Expected 3 objects to be returned."); - - list($o1, $o2, $o3) = $objects; - - $this->assertSame($o1, $manager); - $this->assertSame($o2, $employee); - $this->assertSame($o3, $cashier); - - // 2) test a forced reload from database - BookstoreEmployeePeer::clearInstancePool(); - - list($o1,$o2,$o3) = BookstoreEmployeePeer::doSelect($c); - - $this->assertTrue($o1 instanceof BookstoreManager, "Expected BookstoreManager object, got " . get_class($o1)); - $this->assertTrue($o2 instanceof BookstoreEmployee, "Expected BookstoreEmployee object, got " . get_class($o2)); - $this->assertTrue($o3 instanceof BookstoreCashier, "Expected BookstoreCashier object, got " . get_class($o3)); - - } - - /** - * Test hydration of joined rows that contain lazy load columns. - * @link http://propel.phpdb.org/trac/ticket/464 - */ - public function testHydrationJoinLazyLoad() - { - BookstoreEmployeeAccountPeer::doDeleteAll(); - BookstoreEmployeePeer::doDeleteAll(); - AcctAccessRolePeer::doDeleteAll(); - - $bemp2 = new BookstoreEmployee(); - $bemp2->setName("Pieter"); - $bemp2->setJobTitle("Clerk"); - $bemp2->save(); - - $role = new AcctAccessRole(); - $role->setName("Admin"); - - $bempacct = new BookstoreEmployeeAccount(); - $bempacct->setBookstoreEmployee($bemp2); - $bempacct->setAcctAccessRole($role); - $bempacct->setLogin("john"); - $bempacct->setPassword("johnp4ss"); - $bempacct->save(); - - $c = new Criteria(); - $results = BookstoreEmployeeAccountPeer::doSelectJoinAll($c); - $o = $results[0]; - - $this->assertEquals('Admin', $o->getAcctAccessRole()->getName()); - } - - /** - * Testing foreign keys with multiple referrer columns. - * @link http://propel.phpdb.org/trac/ticket/606 - */ - public function testMultiColFk() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - ReaderFavoritePeer::doDeleteAll(); - - $b1 = new Book(); - $b1->setTitle("Book1"); - $b1->setISBN("ISBN-1"); - $b1->save(); - - $r1 = new BookReader(); - $r1-> setName("Me"); - $r1->save(); - - $bo1 = new BookOpinion(); - $bo1->setBookId($b1->getId()); - $bo1->setReaderId($r1->getId()); - $bo1->setRating(9); - $bo1->setRecommendToFriend(true); - $bo1->save(); - - $rf1 = new ReaderFavorite(); - $rf1->setReaderId($r1->getId()); - $rf1->setBookId($b1->getId()); - $rf1->save(); - - $c = new Criteria(ReaderFavoritePeer::DATABASE_NAME); - $c->add(ReaderFavoritePeer::BOOK_ID, $b1->getId()); - $c->add(ReaderFavoritePeer::READER_ID, $r1->getId()); - - $results = ReaderFavoritePeer::doSelectJoinBookOpinion($c); - $this->assertEquals(1, count($results), "Expected 1 result"); - } - - /** - * Testing foreign keys with multiple referrer columns. - * @link http://propel.phpdb.org/trac/ticket/606 - */ - public function testMultiColJoin() - { - BookstoreContestPeer::doDeleteAll(); - BookstoreContestEntryPeer::doDeleteAll(); - - $bs = new Bookstore(); - $bs->setStoreName("Test1"); - $bs->setPopulationServed(5); - $bs->save(); - $bs1Id = $bs->getId(); - - $bs2 = new Bookstore(); - $bs2->setStoreName("Test2"); - $bs2->setPopulationServed(5); - $bs2->save(); - $bs2Id = $bs2->getId(); - - $ct1 = new Contest(); - $ct1->setName("Contest1!"); - $ct1->save(); - $ct1Id = $ct1->getId(); - - $ct2 = new Contest(); - $ct2->setName("Contest2!"); - $ct2->save(); - $ct2Id = $ct2->getId(); - - $cmr = new Customer(); - $cmr->setName("Customer1"); - $cmr->save(); - $cmr1Id = $cmr->getId(); - - $cmr2 = new Customer(); - $cmr2->setName("Customer2"); - $cmr2->save(); - $cmr2Id = $cmr2->getId(); - - $contest = new BookstoreContest(); - $contest->setBookstoreId($bs1Id); - $contest->setContestId($ct1Id); - $contest->save(); - - $contest = new BookstoreContest(); - $contest->setBookstoreId($bs2Id); - $contest->setContestId($ct1Id); - $contest->save(); - - $entry = new BookstoreContestEntry(); - $entry->setBookstoreId($bs1Id); - $entry->setContestId($ct1Id); - $entry->setCustomerId($cmr1Id); - $entry->save(); - - $entry = new BookstoreContestEntry(); - $entry->setBookstoreId($bs1Id); - $entry->setContestId($ct1Id); - $entry->setCustomerId($cmr2Id); - $entry->save(); - - // Note: this test isn't really working very well. We setup fkeys that - // require that the BookstoreContest rows exist and then try to violate - // the rules ... :-/ This may work in some lenient databases, but an error - // is expected here. - - /* - * Commented out for now ... though without it, this test may not really be testing anything - $entry = new BookstoreContestEntry(); - $entry->setBookstoreId($bs1Id); - $entry->setContestId($ct2Id); - $entry->setCustomerId($cmr2Id); - $entry->save(); - */ - - - $c = new Criteria(); - $c->addJoin(array(BookstoreContestEntryPeer::BOOKSTORE_ID, BookstoreContestEntryPeer::CONTEST_ID), array(BookstoreContestPeer::BOOKSTORE_ID, BookstoreContestPeer::CONTEST_ID) ); - - $results = BookstoreContestEntryPeer::doSelect($c); - $this->assertEquals(2, count($results) ); - foreach ($results as $result) { - $this->assertEquals($bs1Id, $result->getBookstoreId() ); - $this->assertEquals($ct1Id, $result->getContestId() ); - } - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedPeerTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedPeerTest.php deleted file mode 100644 index 91d3755ce8..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/GeneratedPeerTest.php +++ /dev/null @@ -1,90 +0,0 @@ - - * @package generator.builder.om - */ -class GeneratedPeerTest extends BookstoreTestBase -{ - public function testAlias() - { - $this->assertEquals('foo.ID', BookPeer::alias('foo', BookPeer::ID), 'alias() returns a column name using the table alias'); - $this->assertEquals('book.ID', BookPeer::alias('book', BookPeer::ID), 'alias() returns a column name using the table alias'); - $this->assertEquals('foo.COVER_IMAGE', MediaPeer::alias('foo', MediaPeer::COVER_IMAGE), 'alias() also works for lazy-loaded columns'); - $this->assertEquals('foo.SUBTITLE', EssayPeer::alias('foo', EssayPeer::SUBTITLE), 'alias() also works for columns with custom phpName'); - } - - public function testAddSelectColumns() - { - $c = new Criteria(); - BookPeer::addSelectColumns($c); - $expected = array( - BookPeer::ID, - BookPeer::TITLE, - BookPeer::ISBN, - BookPeer::PRICE, - BookPeer::PUBLISHER_ID, - BookPeer::AUTHOR_ID - ); - $this->assertEquals($expected, $c->getSelectColumns(), 'addSelectColumns() adds the columns of the model to the criteria'); - } - - public function testAddSelectColumnsLazyLoad() - { - $c = new Criteria(); - MediaPeer::addSelectColumns($c); - $expected = array( - MediaPeer::ID, - MediaPeer::BOOK_ID - ); - $this->assertEquals($expected, $c->getSelectColumns(), 'addSelectColumns() does not add lazy loaded columns'); - } - - public function testAddSelectColumnsAlias() - { - $c = new Criteria(); - BookPeer::addSelectColumns($c, 'foo'); - $expected = array( - 'foo.ID', - 'foo.TITLE', - 'foo.ISBN', - 'foo.PRICE', - 'foo.PUBLISHER_ID', - 'foo.AUTHOR_ID' - ); - $this->assertEquals($expected, $c->getSelectColumns(), 'addSelectColumns() uses the second parameter as a table alias'); - } - - public function testAddSelectColumnsAliasLazyLoad() - { - $c = new Criteria(); - MediaPeer::addSelectColumns($c, 'bar'); - $expected = array( - 'bar.ID', - 'bar.BOOK_ID' - ); - $this->assertEquals($expected, $c->getSelectColumns(), 'addSelectColumns() does not add lazy loaded columns but uses the second parameter as an alias'); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/OMBuilderNamespaceTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/om/OMBuilderNamespaceTest.php deleted file mode 100644 index c78f9532a7..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/OMBuilderNamespaceTest.php +++ /dev/null @@ -1,149 +0,0 @@ -addTable($t); - $builder = new TestableOMBuilder2($t); - $this->assertNull($builder->getNamespace(), 'Builder namespace is null when neither the db nor the table have namespace'); - } - - public function testDbNamespace() - { - $d = new Database('fooDb'); - $d->setNamespace('Foo\\Bar'); - $t = new Table('fooTable'); - $d->addTable($t); - $builder = new TestableOMBuilder2($t); - $this->assertEquals('Foo\\Bar', $builder->getNamespace(), 'Builder namespace is the database namespace when no table namespace is set'); - } - - public function testTableNamespace() - { - $d = new Database('fooDb'); - $t = new Table('fooTable'); - $t->setNamespace('Foo\\Bar'); - $d->addTable($t); - $builder = new TestableOMBuilder2($t); - $this->assertEquals('Foo\\Bar', $builder->getNamespace(), 'Builder namespace is the table namespace when no database namespace is set'); - } - - public function testAbsoluteTableNamespace() - { - $d = new Database('fooDb'); - $t = new Table('fooTable'); - $t->setNamespace('\\Foo\\Bar'); - $d->addTable($t); - $builder = new TestableOMBuilder2($t); - $this->assertEquals('Foo\\Bar', $builder->getNamespace(), 'Builder namespace is the table namespace when it is set as absolute'); - } - - public function testAbsoluteTableNamespaceAndDbNamespace() - { - $d = new Database('fooDb'); - $d->setNamespace('Baz'); - $t = new Table('fooTable'); - $t->setNamespace('\\Foo\\Bar'); - $d->addTable($t); - $builder = new TestableOMBuilder2($t); - $this->assertEquals('Foo\\Bar', $builder->getNamespace(), 'Builder namespace is the table namespace when it is set as absolute'); - } - - public function testTableNamespaceAndDbNamespace() - { - $d = new Database('fooDb'); - $d->setNamespace('Baz'); - $t = new Table('fooTable'); - $t->setNamespace('Foo\\Bar'); - $d->addTable($t); - $builder = new TestableOMBuilder2($t); - $this->assertEquals('Baz\\Foo\\Bar', $builder->getNamespace(), 'Builder namespace is composed from the database and table namespaces when both are set'); - } - - public function testDeclareClassNamespace() - { - $builder = new TestableOMBuilder2(new Table('fooTable')); - $builder->declareClassNamespace('Foo'); - $this->assertEquals(array('' => array('Foo')), $builder->getDeclaredClasses()); - $builder->declareClassNamespace('Bar'); - $this->assertEquals(array('' => array('Foo', 'Bar')), $builder->getDeclaredClasses()); - $builder->declareClassNamespace('Foo'); - $this->assertEquals(array('' => array('Foo', 'Bar')), $builder->getDeclaredClasses()); - $builder = new TestableOMBuilder2(new Table('fooTable')); - $builder->declareClassNamespace('Foo', 'Foo'); - $this->assertEquals(array('Foo' => array('Foo')), $builder->getDeclaredClasses()); - $builder->declareClassNamespace('Bar', 'Foo'); - $this->assertEquals(array('Foo' => array('Foo', 'Bar')), $builder->getDeclaredClasses()); - $builder->declareClassNamespace('Foo', 'Foo'); - $this->assertEquals(array('Foo' => array('Foo', 'Bar')), $builder->getDeclaredClasses()); - $builder->declareClassNamespace('Bar', 'Bar'); - $this->assertEquals(array('Foo' => array('Foo', 'Bar'), 'Bar' => array('Bar')), $builder->getDeclaredClasses()); - } - - public function testGetDeclareClass() - { - $builder = new TestableOMBuilder2(new Table('fooTable')); - $this->assertEquals(array(), $builder->getDeclaredClasses()); - $builder->declareClass('\\Foo'); - $this->assertEquals(array('Foo'), $builder->getDeclaredClasses('')); - $builder->declareClass('Bar'); - $this->assertEquals(array('Foo', 'Bar'), $builder->getDeclaredClasses('')); - $builder->declareClass('Foo\\Bar'); - $this->assertEquals(array('Bar'), $builder->getDeclaredClasses('Foo')); - $builder->declareClass('Foo\\Bar\\Baz'); - $this->assertEquals(array('Bar'), $builder->getDeclaredClasses('Foo')); - $this->assertEquals(array('Baz'), $builder->getDeclaredClasses('Foo\\Bar')); - $builder->declareClass('\\Hello\\World'); - $this->assertEquals(array('World'), $builder->getDeclaredClasses('Hello')); - } - - public function testDeclareClasses() - { - $builder = new TestableOMBuilder2(new Table('fooTable')); - $builder->declareClasses('Foo', '\\Bar', 'Baz\\Baz', 'Hello\\Cruel\\World'); - $expected = array( - '' => array('Foo', 'Bar'), - 'Baz' => array('Baz'), - 'Hello\\Cruel' => array('World') - ); - $this->assertEquals($expected, $builder->getDeclaredClasses()); - } -} - -class TestableOMBuilder2 extends OMBuilder -{ - public static function getRelatedBySuffix(ForeignKey $fk) - { - return parent::getRelatedBySuffix($fk); - } - - public static function getRefRelatedBySuffix(ForeignKey $fk) - { - return parent::getRefRelatedBySuffix($fk); - } - - public function getUnprefixedClassname() {} -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/OMBuilderTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/om/OMBuilderTest.php deleted file mode 100644 index 1d7162e708..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/OMBuilderTest.php +++ /dev/null @@ -1,89 +0,0 @@ -parseFile('fixtures/bookstore/schema.xml'); - $this->database = $appData->getDatabase("bookstore"); - } - - protected function getForeignKey($tableName, $index) - { - $fks = $this->database->getTable($tableName)->getForeignKeys(); - return $fks[$index]; - } - - public static function getRelatedBySuffixDataProvider() - { - return array( - array('book', 0, '', ''), - array('essay', 0, 'RelatedByFirstAuthor', 'RelatedByFirstAuthor'), - array('essay', 1, 'RelatedBySecondAuthor', 'RelatedBySecondAuthor'), - array('essay', 2, 'RelatedById', 'RelatedByNextEssayId'), - array('bookstore_employee', 0, 'RelatedById', 'RelatedBySupervisorId'), - array('composite_essay', 0, 'RelatedById0', 'RelatedByFirstEssayId'), - array('composite_essay', 1, 'RelatedById1', 'RelatedBySecondEssayId'), - array('man', 0, 'RelatedByWifeId', 'RelatedByWifeId'), - array('woman', 0, 'RelatedByHusbandId', 'RelatedByHusbandId'), - ); - } - - /** - * @dataProvider getRelatedBySuffixDataProvider - */ - public function testGetRelatedBySuffix($table, $index, $expectedSuffix, $expectedReverseSuffix) - { - $fk = $this->getForeignKey($table, $index); - $this->assertEquals($expectedSuffix, TestableOMBuilder::getRefRelatedBySuffix($fk)); - $this->assertEquals($expectedReverseSuffix, TestableOMBuilder::getRelatedBySuffix($fk)); - } - - public function testClear() - { - $b = new Book(); - $b->setNew(false); - $b->clear(); - $this->assertTrue($b->isNew(), 'clear() sets the object to new'); - $b = new Book(); - $b->setDeleted(true); - $b->clear(); - $this->assertFalse($b->isDeleted(), 'clear() sets the object to not deleted'); - } -} - -class TestableOMBuilder extends OMBuilder -{ - public static function getRelatedBySuffix(ForeignKey $fk) - { - return parent::getRelatedBySuffix($fk); - } - - public static function getRefRelatedBySuffix(ForeignKey $fk) - { - return parent::getRefRelatedBySuffix($fk); - } - - public function getUnprefixedClassname() {} -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/PHP5TableMapBuilderTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/om/PHP5TableMapBuilderTest.php deleted file mode 100644 index f6463e51b5..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/PHP5TableMapBuilderTest.php +++ /dev/null @@ -1,149 +0,0 @@ -databaseMap = Propel::getDatabaseMap('bookstore'); - } - - public function testColumnDefaultValue() - { - $table = $this->databaseMap->getTableByPhpName('BookstoreEmployeeAccount'); - $this->assertNull($table->getColumn('login')->getDefaultValue(), 'null default values are correctly mapped'); - $this->assertEquals('\'@\'\'34"', $table->getColumn('password')->getDefaultValue(), 'string default values are correctly escaped and mapped'); - $this->assertTrue($table->getColumn('enabled')->getDefaultValue(), 'boolean default values are correctly mapped'); - $this->assertFalse($table->getColumn('not_enabled')->getDefaultValue(), 'boolean default values are correctly mapped'); - $this->assertEquals('CURRENT_TIMESTAMP', $table->getColumn('created')->getDefaultValue(), 'expression default values are correctly mapped'); - $this->assertNull($table->getColumn('role_id')->getDefaultValue(), 'explicit null default values are correctly mapped'); - } - - public function testRelationCount() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $this->assertEquals(9, count($bookTable->getRelations()), 'The map builder creates relations for both incoming and outgoing keys'); - } - - public function testSimpleRelationName() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $this->assertTrue($bookTable->hasRelation('Publisher'), 'The map builder creates relations based on the foreign table name, calemized'); - $this->assertTrue($bookTable->hasRelation('BookListRel'), 'The map builder creates relations based on the foreign table phpName, if provided'); - } - - public function testAliasRelationName() - { - $bookEmpTable = $this->databaseMap->getTableByPhpName('BookstoreEmployee'); - $this->assertTrue($bookEmpTable->hasRelation('Supervisor'), 'The map builder creates relations based on the foreign key phpName'); - $this->assertTrue($bookEmpTable->hasRelation('Subordinate'), 'The map builder creates relations based on the foreign key refPhpName'); - } - - public function testDuplicateRelationName() - { - $essayTable = $this->databaseMap->getTableByPhpName('Essay'); - $this->assertTrue($essayTable->hasRelation('AuthorRelatedByFirstAuthor'), 'The map builder creates relations based on the foreign table name and the foreign key'); - $this->assertTrue($essayTable->hasRelation('AuthorRelatedBySecondAuthor'), 'The map builder creates relations based on the foreign table name and the foreign key'); - } - - public function testRelationDirectionManyToOne() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $this->assertEquals(RelationMap::MANY_TO_ONE, $bookTable->getRelation('Publisher')->getType(), 'The map builder creates MANY_TO_ONE relations for every foreign key'); - $this->assertEquals(RelationMap::MANY_TO_ONE, $bookTable->getRelation('Author')->getType(), 'The map builder creates MANY_TO_ONE relations for every foreign key'); - } - - public function testRelationDirectionOneToMany() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $this->assertEquals(RelationMap::ONE_TO_MANY, $bookTable->getRelation('Review')->getType(), 'The map builder creates ONE_TO_MANY relations for every incoming foreign key'); - $this->assertEquals(RelationMap::ONE_TO_MANY, $bookTable->getRelation('Media')->getType(), 'The map builder creates ONE_TO_MANY relations for every incoming foreign key'); - $this->assertEquals(RelationMap::ONE_TO_MANY, $bookTable->getRelation('BookListRel')->getType(), 'The map builder creates ONE_TO_MANY relations for every incoming foreign key'); - $this->assertEquals(RelationMap::ONE_TO_MANY, $bookTable->getRelation('BookOpinion')->getType(), 'The map builder creates ONE_TO_MANY relations for every incoming foreign key'); - $this->assertEquals(RelationMap::ONE_TO_MANY, $bookTable->getRelation('ReaderFavorite')->getType(), 'The map builder creates ONE_TO_MANY relations for every incoming foreign key'); - $this->assertEquals(RelationMap::ONE_TO_MANY, $bookTable->getRelation('BookstoreContest')->getType(), 'The map builder creates ONE_TO_MANY relations for every incoming foreign key'); - } - - public function testRelationDirectionOneToOne() - { - $bookEmpTable = $this->databaseMap->getTableByPhpName('BookstoreEmployee'); - $this->assertEquals(RelationMap::ONE_TO_ONE, $bookEmpTable->getRelation('BookstoreEmployeeAccount')->getType(), 'The map builder creates ONE_TO_ONE relations for every incoming foreign key to a primary key'); - } - - public function testRelationDirectionManyToMAny() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $this->assertEquals(RelationMap::MANY_TO_MANY, $bookTable->getRelation('BookClubList')->getType(), 'The map builder creates MANY_TO_MANY relations for every cross key'); - } - - public function testRelationsColumns() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $expectedMapping = array('book.PUBLISHER_ID' => 'publisher.ID'); - $this->assertEquals($expectedMapping, $bookTable->getRelation('Publisher')->getColumnMappings(), 'The map builder adds columns in the correct order for foreign keys'); - $expectedMapping = array('review.BOOK_ID' => 'book.ID'); - $this->assertEquals($expectedMapping, $bookTable->getRelation('Review')->getColumnMappings(), 'The map builder adds columns in the correct order for incoming foreign keys'); - $publisherTable = $this->databaseMap->getTableByPhpName('Publisher'); - $expectedMapping = array('book.PUBLISHER_ID' => 'publisher.ID'); - $this->assertEquals($expectedMapping, $publisherTable->getRelation('Book')->getColumnMappings(), 'The map builder adds local columns where the foreign key lies'); - $rfTable = $this->databaseMap->getTableByPhpName('ReaderFavorite'); - $expectedMapping = array( - 'reader_favorite.BOOK_ID' => 'book_opinion.BOOK_ID', - 'reader_favorite.READER_ID' => 'book_opinion.READER_ID' - ); - $this->assertEquals($expectedMapping, $rfTable->getRelation('BookOpinion')->getColumnMappings(), 'The map builder adds all columns for composite foreign keys'); - $expectedMapping = array(); - $this->assertEquals($expectedMapping, $bookTable->getRelation('BookClubList')->getColumnMappings(), 'The map builder provides no column mapping for many-to-many relationships'); - } - - public function testRelationOnDelete() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $this->assertEquals('SET NULL', $bookTable->getRelation('Publisher')->getOnDelete(), 'The map builder adds columns with the correct onDelete'); - } - - public function testRelationOnUpdate() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $this->assertNull($bookTable->getRelation('Publisher')->getOnUpdate(), 'The map builder adds columns with onDelete null by default'); - $this->assertEquals('CASCADE', $bookTable->getRelation('Author')->getOnUpdate(), 'The map builder adds columns with the correct onUpdate'); - } - - public function testBehaviors() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $this->assertEquals($bookTable->getBehaviors(), array(), 'getBehaviors() returns an empty array when no behaviors are registered'); - $tmap = Propel::getDatabaseMap(Table1Peer::DATABASE_NAME)->getTable(Table1Peer::TABLE_NAME); - $expectedBehaviorParams = array('timestampable' => array('create_column' => 'created_on', 'update_column' => 'updated_on')); - $this->assertEquals($tmap->getBehaviors(), $expectedBehaviorParams, 'The map builder creates a getBehaviors() method to retrieve behaviors parameters when behaviors are registered'); - } - - public function testSingleTableInheritance() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $this->assertFalse($bookTable->isSingleTableInheritance(), 'isSingleTabkeInheritance() returns false by default'); - - $empTable = $this->databaseMap->getTableByPhpName('BookstoreEmployee'); - $this->assertTrue($empTable->isSingleTableInheritance(), 'isSingleTabkeInheritance() returns true for tables using single table inheritance'); - - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/QueryBuilderInheritanceTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/om/QueryBuilderInheritanceTest.php deleted file mode 100644 index 10fbb1e23e..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/QueryBuilderInheritanceTest.php +++ /dev/null @@ -1,95 +0,0 @@ -assertTrue($query instanceof BookstoreCashierQuery, 'the create() factory returns an instance of the correct class'); - } - - public function testFindFilter() - { - BookstoreDataPopulator::depopulate($this->con); - $employee = new BookstoreEmployee(); - $employee->save($this->con); - $manager = new BookstoreManager(); - $manager->save($this->con); - $cashier1 = new BookstoreCashier(); - $cashier1->save($this->con); - $cashier2 = new BookstoreCashier(); - $cashier2->save($this->con); - $nbEmp = BookstoreEmployeeQuery::create()->count($this->con); - $this->assertEquals(4, $nbEmp, 'find() in main query returns all results'); - $nbMan = BookstoreManagerQuery::create()->count($this->con); - $this->assertEquals(1, $nbMan, 'find() in sub query returns only child results'); - $nbCash = BookstoreCashierQuery::create()->count($this->con); - $this->assertEquals(2, $nbCash, 'find() in sub query returns only child results'); - } - - public function testUpdateFilter() - { - BookstoreDataPopulator::depopulate($this->con); - $manager = new BookstoreManager(); - $manager->save($this->con); - $cashier1 = new BookstoreCashier(); - $cashier1->save($this->con); - $cashier2 = new BookstoreCashier(); - $cashier2->save($this->con); - BookstoreManagerQuery::create()->update(array('Name' => 'foo'), $this->con); - $nbMan = BookstoreEmployeeQuery::create() - ->filterByName('foo') - ->count($this->con); - $this->assertEquals(1, $nbMan, 'Update in sub query affects only child results'); - } - - public function testDeleteFilter() - { - BookstoreDataPopulator::depopulate($this->con); - $manager = new BookstoreManager(); - $manager->save($this->con); - $cashier1 = new BookstoreCashier(); - $cashier1->save($this->con); - $cashier2 = new BookstoreCashier(); - $cashier2->save($this->con); - BookstoreManagerQuery::create() - ->filterByName() - ->delete(); - $nbCash = BookstoreEmployeeQuery::create()->count(); - $this->assertEquals(2, $nbCash, 'Delete in sub query affects only child results'); - } - - public function testDeleteAllFilter() - { - BookstoreDataPopulator::depopulate($this->con); - $manager = new BookstoreManager(); - $manager->save($this->con); - $cashier1 = new BookstoreCashier(); - $cashier1->save($this->con); - $cashier2 = new BookstoreCashier(); - $cashier2->save($this->con); - BookstoreManagerQuery::create()->deleteAll(); - $nbCash = BookstoreEmployeeQuery::create()->count(); - $this->assertEquals(2, $nbCash, 'Delete in sub query affects only child results'); - } -} - diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/QueryBuilderTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/om/QueryBuilderTest.php deleted file mode 100644 index 056c1afd47..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/om/QueryBuilderTest.php +++ /dev/null @@ -1,912 +0,0 @@ -assertTrue($q instanceof ModelCriteria, 'Model query extends ModelCriteria'); - } - - public function testConstructor() - { - $query = new BookQuery(); - $this->assertEquals($query->getDbName(), 'bookstore', 'Constructor sets dabatase name'); - $this->assertEquals($query->getModelName(), 'Book', 'Constructor sets model name'); - } - - public function testCreate() - { - $query = BookQuery::create(); - $this->assertTrue($query instanceof BookQuery, 'create() returns an object of its class'); - $this->assertEquals($query->getDbName(), 'bookstore', 'create() sets dabatase name'); - $this->assertEquals($query->getModelName(), 'Book', 'create() sets model name'); - $query = BookQuery::create('foo'); - $this->assertTrue($query instanceof BookQuery, 'create() returns an object of its class'); - $this->assertEquals($query->getDbName(), 'bookstore', 'create() sets dabatase name'); - $this->assertEquals($query->getModelName(), 'Book', 'create() sets model name'); - $this->assertEquals($query->getModelAlias(), 'foo', 'create() can set the model alias'); - } - - public function testCreateCustom() - { - // see the myBookQuery class definition at the end of this file - $query = myCustomBookQuery::create(); - $this->assertTrue($query instanceof myCustomBookQuery, 'create() returns an object of its class'); - $this->assertTrue($query instanceof BookQuery, 'create() returns an object of its class'); - $this->assertEquals($query->getDbName(), 'bookstore', 'create() sets dabatase name'); - $this->assertEquals($query->getModelName(), 'Book', 'create() sets model name'); - $query = myCustomBookQuery::create('foo'); - $this->assertTrue($query instanceof myCustomBookQuery, 'create() returns an object of its class'); - $this->assertEquals($query->getDbName(), 'bookstore', 'create() sets dabatase name'); - $this->assertEquals($query->getModelName(), 'Book', 'create() sets model name'); - $this->assertEquals($query->getModelAlias(), 'foo', 'create() can set the model alias'); - } - - public function testBasePreSelect() - { - $method = new ReflectionMethod('Table2Query', 'basePreSelect'); - $this->assertEquals('ModelCriteria', $method->getDeclaringClass()->getName(), 'BaseQuery does not override basePreSelect() by default'); - - $method = new ReflectionMethod('Table3Query', 'basePreSelect'); - $this->assertEquals('BaseTable3Query', $method->getDeclaringClass()->getName(), 'BaseQuery overrides basePreSelect() when a behavior is registered'); - } - - public function testBasePreDelete() - { - $method = new ReflectionMethod('Table2Query', 'basePreDelete'); - $this->assertEquals('ModelCriteria', $method->getDeclaringClass()->getName(), 'BaseQuery does not override basePreDelete() by default'); - - $method = new ReflectionMethod('Table3Query', 'basePreDelete'); - $this->assertEquals('BaseTable3Query', $method->getDeclaringClass()->getName(), 'BaseQuery overrides basePreDelete() when a behavior is registered'); - } - - public function testBasePostDelete() - { - $method = new ReflectionMethod('Table2Query', 'basePostDelete'); - $this->assertEquals('ModelCriteria', $method->getDeclaringClass()->getName(), 'BaseQuery does not override basePostDelete() by default'); - - $method = new ReflectionMethod('Table3Query', 'basePostDelete'); - $this->assertEquals('BaseTable3Query', $method->getDeclaringClass()->getName(), 'BaseQuery overrides basePostDelete() when a behavior is registered'); - } - - public function testBasePreUpdate() - { - $method = new ReflectionMethod('Table2Query', 'basePreUpdate'); - $this->assertEquals('ModelCriteria', $method->getDeclaringClass()->getName(), 'BaseQuery does not override basePreUpdate() by default'); - - $method = new ReflectionMethod('Table3Query', 'basePreUpdate'); - $this->assertEquals('BaseTable3Query', $method->getDeclaringClass()->getName(), 'BaseQuery overrides basePreUpdate() when a behavior is registered'); - } - - public function testBasePostUpdate() - { - $method = new ReflectionMethod('Table2Query', 'basePostUpdate'); - $this->assertEquals('ModelCriteria', $method->getDeclaringClass()->getName(), 'BaseQuery does not override basePostUpdate() by default'); - - $method = new ReflectionMethod('Table3Query', 'basePostUpdate'); - $this->assertEquals('BaseTable3Query', $method->getDeclaringClass()->getName(), 'BaseQuery overrides basePostUpdate() when a behavior is registered'); - } - - public function testQuery() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - $q = new BookQuery(); - $book = $q - ->setModelAlias('b') - ->where('b.Title like ?', 'Don%') - ->orderBy('b.ISBN', 'desc') - ->findOne(); - $this->assertTrue($book instanceof Book); - $this->assertEquals('Don Juan', $book->getTitle()); - } - - public function testFindPk() - { - $method = new ReflectionMethod('Table4Query', 'findPk'); - $this->assertEquals('BaseTable4Query', $method->getDeclaringClass()->getName(), 'BaseQuery overrides findPk()'); - } - - public function testFindPkSimpleKey() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - BookPeer::clearInstancePool(); - $con = Propel::getConnection('bookstore'); - - // prepare the test data - $c = new ModelCriteria('bookstore', 'Book'); - $c->orderBy('Book.Id', 'desc'); - $testBook = $c->findOne(); - $count = $con->getQueryCount(); - - BookPeer::clearInstancePool(); - - $q = new BookQuery(); - $book = $q->findPk($testBook->getId()); - $this->assertEquals($testBook, $book, 'BaseQuery overrides findPk() to make it faster'); - $this->assertEquals($count+1, $con->getQueryCount(), 'findPk() issues a database query when instance pool is empty'); - - $q = new BookQuery(); - $book = $q->findPk($testBook->getId()); - $this->assertEquals($testBook, $book, 'BaseQuery overrides findPk() to make it faster'); - $this->assertEquals($count+1, $con->getQueryCount(), 'findPk() does not issue a database query when instance is in pool'); - } - - public function testFindPkCompositeKey() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - // save all books to make sure related objects are also saved - BookstoreDataPopulator keeps some unsaved - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->find(); - foreach ($books as $book) { - $book->save(); - } - - BookPeer::clearInstancePool(); - - // retrieve the test data - $c = new ModelCriteria('bookstore', 'BookListRel'); - $bookListRelTest = $c->findOne(); - $pk = $bookListRelTest->getPrimaryKey(); - - $q = new BookListRelQuery(); - $bookListRel = $q->findPk($pk); - $this->assertEquals($bookListRelTest, $bookListRel, 'BaseQuery overrides findPk() for composite primary keysto make it faster'); - } - - public function testFindPks() - { - $method = new ReflectionMethod('Table4Query', 'findPks'); - $this->assertEquals('BaseTable4Query', $method->getDeclaringClass()->getName(), 'BaseQuery overrides findPks()'); - } - - public function testFindPksSimpleKey() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - BookPeer::clearInstancePool(); - - // prepare the test data - $c = new ModelCriteria('bookstore', 'Book'); - $c->orderBy('Book.Id', 'desc'); - $testBooks = $c->find(); - $testBook1 = $testBooks->pop(); - $testBook2 = $testBooks->pop(); - - $q = new BookQuery(); - $books = $q->findPks(array($testBook1->getId(), $testBook2->getId())); - $this->assertEquals(array($testBook1, $testBook2), $books->getData(), 'BaseQuery overrides findPks() to make it faster'); - } - - public function testFindPksCompositeKey() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - // save all books to make sure related objects are also saved - BookstoreDataPopulator keeps some unsaved - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->find(); - foreach ($books as $book) { - $book->save(); - } - - BookPeer::clearInstancePool(); - - // retrieve the test data - $c = new ModelCriteria('bookstore', 'BookListRel'); - $bookListRelTest = $c->find(); - $search = array(); - foreach ($bookListRelTest as $obj) { - $search[]= $obj->getPrimaryKey(); - } - - $q = new BookListRelQuery(); - $objs = $q->findPks($search); - $this->assertEquals($bookListRelTest, $objs, 'BaseQuery overrides findPks() for composite primary keys to make it work'); - } - - public function testFilterBy() - { - foreach (BookPeer::getFieldNames(BasePeer::TYPE_PHPNAME) as $colName) { - $filterMethod = 'filterBy' . $colName; - $this->assertTrue(method_exists('BookQuery', $filterMethod), 'QueryBuilder adds filterByColumn() methods for every column'); - $q = BookQuery::create()->$filterMethod(1); - $this->assertTrue($q instanceof BookQuery, 'filterByColumn() returns the current query instance'); - } - } - - public function testFilterByPrimaryKeySimpleKey() - { - $q = BookQuery::create()->filterByPrimaryKey(12); - $q1 = BookQuery::create()->add(BookPeer::ID, 12, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByPrimaryKey() translates to a Criteria::EQUAL in the PK column'); - - $q = BookQuery::create()->setModelAlias('b', true)->filterByPrimaryKey(12); - $q1 = BookQuery::create()->setModelAlias('b', true)->add('b.ID', 12, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByPrimaryKey() uses true table alias if set'); - } - - public function testFilterByPrimaryKeyCompositeKey() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - // save all books to make sure related objects are also saved - BookstoreDataPopulator keeps some unsaved - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->find(); - foreach ($books as $book) { - $book->save(); - } - - BookPeer::clearInstancePool(); - - // retrieve the test data - $c = new ModelCriteria('bookstore', 'BookListRel'); - $bookListRelTest = $c->findOne(); - $pk = $bookListRelTest->getPrimaryKey(); - - $q = new BookListRelQuery(); - $q->filterByPrimaryKey($pk); - - $q1 = BookListRelQuery::create() - ->add(BookListRelPeer::BOOK_ID, $pk[0], Criteria::EQUAL) - ->add(BookListRelPeer::BOOK_CLUB_LIST_ID, $pk[1], Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByPrimaryKey() translates to a Criteria::EQUAL in the PK columns'); - } - - public function testFilterByPrimaryKeysSimpleKey() - { - $q = BookQuery::create()->filterByPrimaryKeys(array(10, 11, 12)); - $q1 = BookQuery::create()->add(BookPeer::ID, array(10, 11, 12), Criteria::IN); - $this->assertEquals($q1, $q, 'filterByPrimaryKeys() translates to a Criteria::IN on the PK column'); - - $q = BookQuery::create()->setModelAlias('b', true)->filterByPrimaryKeys(array(10, 11, 12)); - $q1 = BookQuery::create()->setModelAlias('b', true)->add('b.ID', array(10, 11, 12), Criteria::IN); - $this->assertEquals($q1, $q, 'filterByPrimaryKeys() uses true table alias if set'); - } - - public function testFilterByPrimaryKeysCompositeKey() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - // save all books to make sure related objects are also saved - BookstoreDataPopulator keeps some unsaved - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->find(); - foreach ($books as $book) { - $book->save(); - } - - BookPeer::clearInstancePool(); - - // retrieve the test data - $c = new ModelCriteria('bookstore', 'BookListRel'); - $bookListRelTest = $c->find(); - $search = array(); - foreach ($bookListRelTest as $obj) { - $search[]= $obj->getPrimaryKey(); - } - - $q = new BookListRelQuery(); - $q->filterByPrimaryKeys($search); - - $q1 = BookListRelQuery::create(); - foreach ($search as $key) { - $cton0 = $q1->getNewCriterion(BookListRelPeer::BOOK_ID, $key[0], Criteria::EQUAL); - $cton1 = $q1->getNewCriterion(BookListRelPeer::BOOK_CLUB_LIST_ID, $key[1], Criteria::EQUAL); - $cton0->addAnd($cton1); - $q1->addOr($cton0); - } - $this->assertEquals($q1, $q, 'filterByPrimaryKeys() translates to a series of Criteria::EQUAL in the PK columns'); - } - - public function testFilterByIntegerPk() - { - $q = BookQuery::create()->filterById(12); - $q1 = BookQuery::create()->add(BookPeer::ID, 12, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByPkColumn() translates to a Criteria::EQUAL by default'); - - $q = BookQuery::create()->filterById(12, Criteria::NOT_EQUAL); - $q1 = BookQuery::create()->add(BookPeer::ID, 12, Criteria::NOT_EQUAL); - $this->assertEquals($q1, $q, 'filterByPkColumn() accepts an optional comparison operator'); - - $q = BookQuery::create()->setModelAlias('b', true)->filterById(12); - $q1 = BookQuery::create()->setModelAlias('b', true)->add('b.ID', 12, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByPkColumn() uses true table alias if set'); - - $q = BookQuery::create()->filterById(array(10, 11, 12)); - $q1 = BookQuery::create()->add(BookPeer::ID, array(10, 11, 12), Criteria::IN); - $this->assertEquals($q1, $q, 'filterByPkColumn() translates to a Criteria::IN when passed a simple array key'); - - $q = BookQuery::create()->filterById(array(10, 11, 12), Criteria::NOT_IN); - $q1 = BookQuery::create()->add(BookPeer::ID, array(10, 11, 12), Criteria::NOT_IN); - $this->assertEquals($q1, $q, 'filterByPkColumn() accepts a comparison when passed a simple array key'); - } - - public function testFilterByNumber() - { - $q = BookQuery::create()->filterByPrice(12); - $q1 = BookQuery::create()->add(BookPeer::PRICE, 12, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByNumColumn() translates to a Criteria::EQUAL by default'); - - $q = BookQuery::create()->filterByPrice(12, Criteria::NOT_EQUAL); - $q1 = BookQuery::create()->add(BookPeer::PRICE, 12, Criteria::NOT_EQUAL); - $this->assertEquals($q1, $q, 'filterByNumColumn() accepts an optional comparison operator'); - - $q = BookQuery::create()->setModelAlias('b', true)->filterByPrice(12); - $q1 = BookQuery::create()->setModelAlias('b', true)->add('b.PRICE', 12, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByNumColumn() uses true table alias if set'); - - $q = BookQuery::create()->filterByPrice(array(10, 11, 12)); - $q1 = BookQuery::create()->add(BookPeer::PRICE, array(10, 11, 12), Criteria::IN); - $this->assertEquals($q1, $q, 'filterByNumColumn() translates to a Criteria::IN when passed a simple array key'); - - $q = BookQuery::create()->filterByPrice(array(10, 11, 12), Criteria::NOT_IN); - $q1 = BookQuery::create()->add(BookPeer::PRICE, array(10, 11, 12), Criteria::NOT_IN); - $this->assertEquals($q1, $q, 'filterByNumColumn() accepts a comparison when passed a simple array key'); - - $q = BookQuery::create()->filterByPrice(array('min' => 10)); - $q1 = BookQuery::create()->add(BookPeer::PRICE, 10, Criteria::GREATER_EQUAL); - $this->assertEquals($q1, $q, 'filterByNumColumn() translates to a Criteria::GREATER_EQUAL when passed a \'min\' key'); - - $q = BookQuery::create()->filterByPrice(array('max' => 12)); - $q1 = BookQuery::create()->add(BookPeer::PRICE, 12, Criteria::LESS_EQUAL); - $this->assertEquals($q1, $q, 'filterByNumColumn() translates to a Criteria::LESS_EQUAL when passed a \'max\' key'); - - $q = BookQuery::create()->filterByPrice(array('min' => 10, 'max' => 12)); - $q1 = BookQuery::create() - ->add(BookPeer::PRICE, 10, Criteria::GREATER_EQUAL) - ->addAnd(BookPeer::PRICE, 12, Criteria::LESS_EQUAL); - $this->assertEquals($q1, $q, 'filterByNumColumn() translates to a between when passed both a \'min\' and a \'max\' key'); - } - - public function testFilterByTimestamp() - { - $q = BookstoreEmployeeAccountQuery::create()->filterByCreated(12); - $q1 = BookstoreEmployeeAccountQuery::create()->add(BookstoreEmployeeAccountPeer::CREATED, 12, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByDateColumn() translates to a Criteria::EQUAL by default'); - - $q = BookstoreEmployeeAccountQuery::create()->filterByCreated(12, Criteria::NOT_EQUAL); - $q1 = BookstoreEmployeeAccountQuery::create()->add(BookstoreEmployeeAccountPeer::CREATED, 12, Criteria::NOT_EQUAL); - $this->assertEquals($q1, $q, 'filterByDateColumn() accepts an optional comparison operator'); - - $q = BookstoreEmployeeAccountQuery::create()->setModelAlias('b', true)->filterByCreated(12); - $q1 = BookstoreEmployeeAccountQuery::create()->setModelAlias('b', true)->add('b.CREATED', 12, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByDateColumn() uses true table alias if set'); - - $q = BookstoreEmployeeAccountQuery::create()->filterByCreated(array('min' => 10)); - $q1 = BookstoreEmployeeAccountQuery::create()->add(BookstoreEmployeeAccountPeer::CREATED, 10, Criteria::GREATER_EQUAL); - $this->assertEquals($q1, $q, 'filterByDateColumn() translates to a Criteria::GREATER_EQUAL when passed a \'min\' key'); - - $q = BookstoreEmployeeAccountQuery::create()->filterByCreated(array('max' => 12)); - $q1 = BookstoreEmployeeAccountQuery::create()->add(BookstoreEmployeeAccountPeer::CREATED, 12, Criteria::LESS_EQUAL); - $this->assertEquals($q1, $q, 'filterByDateColumn() translates to a Criteria::LESS_EQUAL when passed a \'max\' key'); - - $q = BookstoreEmployeeAccountQuery::create()->filterByCreated(array('min' => 10, 'max' => 12)); - $q1 = BookstoreEmployeeAccountQuery::create() - ->add(BookstoreEmployeeAccountPeer::CREATED, 10, Criteria::GREATER_EQUAL) - ->addAnd(BookstoreEmployeeAccountPeer::CREATED, 12, Criteria::LESS_EQUAL); - $this->assertEquals($q1, $q, 'filterByDateColumn() translates to a between when passed both a \'min\' and a \'max\' key'); - } - - public function testFilterByString() - { - $q = BookQuery::create()->filterByTitle('foo'); - $q1 = BookQuery::create()->add(BookPeer::TITLE, 'foo', Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByStringColumn() translates to a Criteria::EQUAL by default'); - - $q = BookQuery::create()->filterByTitle('foo', Criteria::NOT_EQUAL); - $q1 = BookQuery::create()->add(BookPeer::TITLE, 'foo', Criteria::NOT_EQUAL); - $this->assertEquals($q1, $q, 'filterByStringColumn() accepts an optional comparison operator'); - - $q = BookQuery::create()->setModelAlias('b', true)->filterByTitle('foo'); - $q1 = BookQuery::create()->setModelAlias('b', true)->add('b.TITLE', 'foo', Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByStringColumn() uses true table alias if set'); - - $q = BookQuery::create()->filterByTitle(array('foo', 'bar')); - $q1 = BookQuery::create()->add(BookPeer::TITLE, array('foo', 'bar'), Criteria::IN); - $this->assertEquals($q1, $q, 'filterByStringColumn() translates to a Criteria::IN when passed an array'); - - $q = BookQuery::create()->filterByTitle(array('foo', 'bar'), Criteria::NOT_IN); - $q1 = BookQuery::create()->add(BookPeer::TITLE, array('foo', 'bar'), Criteria::NOT_IN); - $this->assertEquals($q1, $q, 'filterByStringColumn() accepts a comparison when passed an array'); - - $q = BookQuery::create()->filterByTitle('foo%'); - $q1 = BookQuery::create()->add(BookPeer::TITLE, 'foo%', Criteria::LIKE); - $this->assertEquals($q1, $q, 'filterByStringColumn() translates to a Criteria::LIKE when passed a string with a % wildcard'); - - $q = BookQuery::create()->filterByTitle('foo%', Criteria::NOT_LIKE); - $q1 = BookQuery::create()->add(BookPeer::TITLE, 'foo%', Criteria::NOT_LIKE); - $this->assertEquals($q1, $q, 'filterByStringColumn() accepts a comparison when passed a string with a % wildcard'); - - $q = BookQuery::create()->filterByTitle('foo%', Criteria::EQUAL); - $q1 = BookQuery::create()->add(BookPeer::TITLE, 'foo%', Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByStringColumn() accepts a comparison when passed a string with a % wildcard'); - - $q = BookQuery::create()->filterByTitle('*foo'); - $q1 = BookQuery::create()->add(BookPeer::TITLE, '%foo', Criteria::LIKE); - $this->assertEquals($q1, $q, 'filterByStringColumn() translates to a Criteria::LIKE when passed a string with a * wildcard, and turns * into %'); - - $q = BookQuery::create()->filterByTitle('*f%o*o%'); - $q1 = BookQuery::create()->add(BookPeer::TITLE, '%f%o%o%', Criteria::LIKE); - $this->assertEquals($q1, $q, 'filterByStringColumn() translates to a Criteria::LIKE when passed a string with mixed wildcards, and turns *s into %s'); - } - - public function testFilterByBoolean() - { - $q = ReviewQuery::create()->filterByRecommended(true); - $q1 = ReviewQuery::create()->add(ReviewPeer::RECOMMENDED, true, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByBooleanColumn() translates to a Criteria::EQUAL by default'); - - $q = ReviewQuery::create()->filterByRecommended(true, Criteria::NOT_EQUAL); - $q1 = ReviewQuery::create()->add(ReviewPeer::RECOMMENDED, true, Criteria::NOT_EQUAL); - $this->assertEquals($q1, $q, 'filterByBooleanColumn() accepts an optional comparison operator'); - - $q = ReviewQuery::create()->filterByRecommended(false); - $q1 = ReviewQuery::create()->add(ReviewPeer::RECOMMENDED, false, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByBooleanColumn() translates to a Criteria::EQUAL by default'); - - $q = ReviewQuery::create()->setModelAlias('b', true)->filterByRecommended(true); - $q1 = ReviewQuery::create()->setModelAlias('b', true)->add('b.RECOMMENDED', true, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByBooleanColumn() uses true table alias if set'); - - $q = ReviewQuery::create()->filterByRecommended('true'); - $q1 = ReviewQuery::create()->add(ReviewPeer::RECOMMENDED, true, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByBooleanColumn() translates to a = true when passed a true string'); - - $q = ReviewQuery::create()->filterByRecommended('yes'); - $q1 = ReviewQuery::create()->add(ReviewPeer::RECOMMENDED, true, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByBooleanColumn() translates to a = true when passed a true string'); - - $q = ReviewQuery::create()->filterByRecommended('1'); - $q1 = ReviewQuery::create()->add(ReviewPeer::RECOMMENDED, true, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByBooleanColumn() translates to a = true when passed a true string'); - - $q = ReviewQuery::create()->filterByRecommended('false'); - $q1 = ReviewQuery::create()->add(ReviewPeer::RECOMMENDED, false, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByBooleanColumn() translates to a = false when passed a false string'); - - $q = ReviewQuery::create()->filterByRecommended('no'); - $q1 = ReviewQuery::create()->add(ReviewPeer::RECOMMENDED, false, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByBooleanColumn() translates to a = false when passed a false string'); - - $q = ReviewQuery::create()->filterByRecommended('0'); - $q1 = ReviewQuery::create()->add(ReviewPeer::RECOMMENDED, false, Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByBooleanColumn() translates to a = false when passed a false string'); - } - - public function testFilterByFk() - { - $this->assertTrue(method_exists('BookQuery', 'filterByAuthor'), 'QueryBuilder adds filterByFk() methods'); - $this->assertTrue(method_exists('BookQuery', 'filterByPublisher'), 'QueryBuilder adds filterByFk() methods for all fkeys'); - - $this->assertTrue(method_exists('EssayQuery', 'filterByAuthorRelatedByFirstAuthor'), 'QueryBuilder adds filterByFk() methods for several fkeys on the same table'); - $this->assertTrue(method_exists('EssayQuery', 'filterByAuthorRelatedBySecondAuthor'), 'QueryBuilder adds filterByFk() methods for several fkeys on the same table'); - } - - public function testFilterByFkSimpleKey() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - // prepare the test data - $testBook = BookQuery::create() - ->innerJoin('Book.Author') // just in case there are books with no author - ->findOne(); - $testAuthor = $testBook->getAuthor(); - - $book = BookQuery::create() - ->filterByAuthor($testAuthor) - ->findOne(); - $this->assertEquals($testBook, $book, 'Generated query handles filterByFk() methods correctly for simple fkeys'); - - $q = BookQuery::create()->filterByAuthor($testAuthor); - $q1 = BookQuery::create()->add(BookPeer::AUTHOR_ID, $testAuthor->getId(), Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByFk() translates to a Criteria::EQUAL by default'); - - $q = BookQuery::create()->filterByAuthor($testAuthor, Criteria::NOT_EQUAL); - $q1 = BookQuery::create()->add(BookPeer::AUTHOR_ID, $testAuthor->getId(), Criteria::NOT_EQUAL); - $this->assertEquals($q1, $q, 'filterByFk() accepts an optional comparison operator'); - } - - public function testFilterByFkCompositeKey() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - BookstoreDataPopulator::populateOpinionFavorite(); - - // prepare the test data - $testOpinion = BookOpinionQuery::create() - ->innerJoin('BookOpinion.ReaderFavorite') // just in case there are books with no author - ->findOne(); - $testFavorite = $testOpinion->getReaderFavorite(); - - $favorite = ReaderFavoriteQuery::create() - ->filterByBookOpinion($testOpinion) - ->findOne(); - $this->assertEquals($testFavorite, $favorite, 'Generated query handles filterByFk() methods correctly for composite fkeys'); - } - - public function testFilterByRefFk() - { - $this->assertTrue(method_exists('BookQuery', 'filterByReview'), 'QueryBuilder adds filterByRefFk() methods'); - $this->assertTrue(method_exists('BookQuery', 'filterByMedia'), 'QueryBuilder adds filterByRefFk() methods for all fkeys'); - - $this->assertTrue(method_exists('AuthorQuery', 'filterByEssayRelatedByFirstAuthor'), 'QueryBuilder adds filterByRefFk() methods for several fkeys on the same table'); - $this->assertTrue(method_exists('AuthorQuery', 'filterByEssayRelatedBySecondAuthor'), 'QueryBuilder adds filterByRefFk() methods for several fkeys on the same table'); - } - - public function testFilterByRefFkSimpleKey() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - // prepare the test data - $testBook = BookQuery::create() - ->innerJoin('Book.Author') // just in case there are books with no author - ->findOne(); - $testAuthor = $testBook->getAuthor(); - - $author = AuthorQuery::create() - ->filterByBook($testBook) - ->findOne(); - $this->assertEquals($testAuthor, $author, 'Generated query handles filterByRefFk() methods correctly for simple fkeys'); - - $q = AuthorQuery::create()->filterByBook($testBook); - $q1 = AuthorQuery::create()->add(AuthorPeer::ID, $testBook->getAuthorId(), Criteria::EQUAL); - $this->assertEquals($q1, $q, 'filterByRefFk() translates to a Criteria::EQUAL by default'); - - $q = AuthorQuery::create()->filterByBook($testBook, Criteria::NOT_EQUAL); - $q1 = AuthorQuery::create()->add(AuthorPeer::ID, $testBook->getAuthorId(), Criteria::NOT_EQUAL); - $this->assertEquals($q1, $q, 'filterByRefFk() accepts an optional comparison operator'); - } - - public function testFilterByRefFkCompositeKey() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - BookstoreDataPopulator::populateOpinionFavorite(); - - // prepare the test data - $testOpinion = BookOpinionQuery::create() - ->innerJoin('BookOpinion.ReaderFavorite') // just in case there are books with no author - ->findOne(); - $testFavorite = $testOpinion->getReaderFavorite(); - - $opinion = BookOpinionQuery::create() - ->filterByReaderFavorite($testFavorite) - ->findOne(); - $this->assertEquals($testOpinion, $opinion, 'Generated query handles filterByRefFk() methods correctly for composite fkeys'); - } - - public function testFilterByCrossFK() - { - $this->assertTrue(method_exists('BookQuery', 'filterByBookClubList'), 'Generated query handles filterByCrossRefFK() for many-to-many relationships'); - $this->assertFalse(method_exists('BookQuery', 'filterByBook'), 'Generated query handles filterByCrossRefFK() for many-to-many relationships'); - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - $blc1 = BookClubListQuery::create()->findOneByGroupLeader('Crazyleggs'); - $nbBooks = BookQuery::create() - ->filterByBookClubList($blc1) - ->count(); - $this->assertEquals(2, $nbBooks, 'Generated query handles filterByCrossRefFK() methods correctly'); - } - - public function testJoinFk() - { - $q = BookQuery::create() - ->joinAuthor(); - $q1 = BookQuery::create() - ->join('Book.Author', Criteria::LEFT_JOIN); - $this->assertTrue($q->equals($q1), 'joinFk() translates to a left join on non-required columns'); - - $q = ReviewQuery::create() - ->joinBook(); - $q1 = ReviewQuery::create() - ->join('Review.Book', Criteria::INNER_JOIN); - $this->assertTrue($q->equals($q1), 'joinFk() translates to an inner join on required columns'); - - $q = BookQuery::create() - ->joinAuthor('a'); - $q1 = BookQuery::create() - ->join('Book.Author a', Criteria::LEFT_JOIN); - $this->assertTrue($q->equals($q1), 'joinFk() accepts a relation alias as first parameter'); - - $q = BookQuery::create() - ->joinAuthor('', Criteria::INNER_JOIN); - $q1 = BookQuery::create() - ->join('Book.Author', Criteria::INNER_JOIN); - $this->assertTrue($q->equals($q1), 'joinFk() accepts a join type as second parameter'); - - $q = EssayQuery::create() - ->joinAuthorRelatedBySecondAuthor(); - $q1 = EssayQuery::create() - ->join('Essay.AuthorRelatedBySecondAuthor', "INNER JOIN"); - $this->assertTrue($q->equals($q1), 'joinFk() translates to a "INNER JOIN" when this is defined as defaultJoin in the schema'); - } - - public function testJoinFkAlias() - { - $q = BookQuery::create('b') - ->joinAuthor('a'); - $q1 = BookQuery::create('b') - ->join('b.Author a', Criteria::LEFT_JOIN); - $this->assertTrue($q->equals($q1), 'joinFk() works fine with table aliases'); - - $q = BookQuery::create() - ->setModelAlias('b', true) - ->joinAuthor('a'); - $q1 = BookQuery::create() - ->setModelAlias('b', true) - ->join('b.Author a', Criteria::LEFT_JOIN); - $this->assertTrue($q->equals($q1), 'joinFk() works fine with true table aliases'); - } - - public function testJoinRefFk() - { - $q = AuthorQuery::create() - ->joinBook(); - $q1 = AuthorQuery::create() - ->join('Author.Book', Criteria::LEFT_JOIN); - $this->assertTrue($q->equals($q1), 'joinRefFk() translates to a left join on non-required columns'); - - $q = BookQuery::create() - ->joinreview(); - $q1 = BookQuery::create() - ->join('Book.Review', Criteria::INNER_JOIN); - $this->assertTrue($q->equals($q1), 'joinRefFk() translates to an inner join on required columns'); - - $q = AuthorQuery::create() - ->joinBook('b'); - $q1 = AuthorQuery::create() - ->join('Author.Book b', Criteria::LEFT_JOIN); - $this->assertTrue($q->equals($q1), 'joinRefFk() accepts a relation alias as first parameter'); - - $q = AuthorQuery::create() - ->joinBook('', Criteria::INNER_JOIN); - $q1 = AuthorQuery::create() - ->join('Author.Book', Criteria::INNER_JOIN); - $this->assertTrue($q->equals($q1), 'joinRefFk() accepts a join type as second parameter'); - - $q = AuthorQuery::create() - ->joinEssayRelatedBySecondAuthor(); - $q1 = AuthorQuery::create() - ->join('Author.EssayRelatedBySecondAuthor', Criteria::INNER_JOIN); - $this->assertTrue($q->equals($q1), 'joinRefFk() translates to a "INNER JOIN" when this is defined as defaultJoin in the schema'); - } - - public function testUseFkQuerySimple() - { - $q = BookQuery::create() - ->useAuthorQuery() - ->filterByFirstName('Leo') - ->endUse(); - $q1 = BookQuery::create() - ->join('Book.Author', Criteria::LEFT_JOIN) - ->add(AuthorPeer::FIRST_NAME, 'Leo', Criteria::EQUAL); - $this->assertTrue($q->equals($q1), 'useFkQuery() translates to a condition on a left join on non-required columns'); - - $q = ReviewQuery::create() - ->useBookQuery() - ->filterByTitle('War And Peace') - ->endUse(); - $q1 = ReviewQuery::create() - ->join('Review.Book', Criteria::INNER_JOIN) - ->add(BookPeer::TITLE, 'War And Peace', Criteria::EQUAL); - $this->assertTrue($q->equals($q1), 'useFkQuery() translates to a condition on aninner join on required columns'); - } - - public function testUseFkQueryJoinType() - { - $q = BookQuery::create() - ->useAuthorQuery(null, Criteria::LEFT_JOIN) - ->filterByFirstName('Leo') - ->endUse(); - $q1 = BookQuery::create() - ->join('Book.Author', Criteria::LEFT_JOIN) - ->add(AuthorPeer::FIRST_NAME, 'Leo', Criteria::EQUAL); - $this->assertTrue($q->equals($q1), 'useFkQuery() accepts a join type as second parameter'); - } - - public function testUseFkQueryAlias() - { - $q = BookQuery::create() - ->useAuthorQuery('a') - ->filterByFirstName('Leo') - ->endUse(); - $join = new ModelJoin(); - $join->setJoinType(Criteria::LEFT_JOIN); - $join->setTableMap(AuthorPeer::getTableMap()); - $join->setRelationMap(BookPeer::getTableMap()->getRelation('Author'), null, 'a'); - $join->setRelationAlias('a'); - $q1 = BookQuery::create() - ->addAlias('a', AuthorPeer::TABLE_NAME) - ->addJoinObject($join, 'a') - ->add('a.FIRST_NAME', 'Leo', Criteria::EQUAL); - $this->assertTrue($q->equals($q1), 'useFkQuery() uses the first argument as a table alias'); - } - - public function testUseFkQueryMixed() - { - $q = BookQuery::create() - ->useAuthorQuery() - ->filterByFirstName('Leo') - ->endUse() - ->filterByTitle('War And Peace'); - $q1 = BookQuery::create() - ->join('Book.Author', Criteria::LEFT_JOIN) - ->add(AuthorPeer::FIRST_NAME, 'Leo', Criteria::EQUAL) - ->add(BookPeer::TITLE, 'War And Peace', Criteria::EQUAL); - $this->assertTrue($q->equals($q1), 'useFkQuery() allows combining conditions on main and related query'); - } - - public function testUseFkQueryTwice() - { - $q = BookQuery::create() - ->useAuthorQuery() - ->filterByFirstName('Leo') - ->endUse() - ->useAuthorQuery() - ->filterByLastName('Tolstoi') - ->endUse(); - $q1 = BookQuery::create() - ->join('Book.Author', Criteria::LEFT_JOIN) - ->add(AuthorPeer::FIRST_NAME, 'Leo', Criteria::EQUAL) - ->add(AuthorPeer::LAST_NAME, 'Tolstoi', Criteria::EQUAL); - $this->assertTrue($q->equals($q1), 'useFkQuery() called twice on the same relation does not create two joins'); - } - - public function testUseFkQueryTwiceTwoAliases() - { - $q = BookQuery::create() - ->useAuthorQuery('a') - ->filterByFirstName('Leo') - ->endUse() - ->useAuthorQuery('b') - ->filterByLastName('Tolstoi') - ->endUse(); - $join1 = new ModelJoin(); - $join1->setJoinType(Criteria::LEFT_JOIN); - $join1->setTableMap(AuthorPeer::getTableMap()); - $join1->setRelationMap(BookPeer::getTableMap()->getRelation('Author'), null, 'a'); - $join1->setRelationAlias('a'); - $join2 = new ModelJoin(); - $join2->setJoinType(Criteria::LEFT_JOIN); - $join2->setTableMap(AuthorPeer::getTableMap()); - $join2->setRelationMap(BookPeer::getTableMap()->getRelation('Author'), null, 'b'); - $join2->setRelationAlias('b'); - $q1 = BookQuery::create() - ->addAlias('a', AuthorPeer::TABLE_NAME) - ->addJoinObject($join1, 'a') - ->add('a.FIRST_NAME', 'Leo', Criteria::EQUAL) - ->addAlias('b', AuthorPeer::TABLE_NAME) - ->addJoinObject($join2, 'b') - ->add('b.LAST_NAME', 'Tolstoi', Criteria::EQUAL); - $this->assertTrue($q->equals($q1), 'useFkQuery() called twice on the same relation with two aliases creates two joins'); - } - - public function testUseFkQueryNested() - { - $q = ReviewQuery::create() - ->useBookQuery() - ->useAuthorQuery() - ->filterByFirstName('Leo') - ->endUse() - ->endUse(); - $q1 = ReviewQuery::create() - ->join('Review.Book', Criteria::INNER_JOIN) - ->join('Book.Author', Criteria::LEFT_JOIN) - ->add(AuthorPeer::FIRST_NAME, 'Leo', Criteria::EQUAL); - // embedded queries create joins that keep a relation to the parent - // as this is not testable, we need to use another testing technique - $params = array(); - $result = BasePeer::createSelectSql($q, $params); - $expectedParams = array(); - $expectedResult = BasePeer::createSelectSql($q1, $expectedParams); - $this->assertEquals($expectedParams, $params, 'useFkQuery() called nested creates two joins'); - $this->assertEquals($expectedResult, $result, 'useFkQuery() called nested creates two joins'); - } - - public function testUseFkQueryTwoRelations() - { - $q = BookQuery::create() - ->useAuthorQuery() - ->filterByFirstName('Leo') - ->endUse() - ->usePublisherQuery() - ->filterByName('Penguin') - ->endUse(); - $q1 = BookQuery::create() - ->join('Book.Author', Criteria::LEFT_JOIN) - ->add(AuthorPeer::FIRST_NAME, 'Leo', Criteria::EQUAL) - ->join('Book.Publisher', Criteria::LEFT_JOIN) - ->add(PublisherPeer::NAME, 'Penguin', Criteria::EQUAL); - $this->assertTrue($q->equals($q1), 'useFkQuery() called twice on two relations creates two joins'); - } - - public function testPrune() - { - $q = BookQuery::create()->prune(); - $this->assertTrue($q instanceof BookQuery, 'prune() returns the current Query object'); - } - - public function testPruneSimpleKey() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - $nbBooks = BookQuery::create()->prune()->count(); - $this->assertEquals(4, $nbBooks, 'prune() does nothing when passed a null object'); - - $testBook = BookQuery::create()->findOne(); - $nbBooks = BookQuery::create()->prune($testBook)->count(); - $this->assertEquals(3, $nbBooks, 'prune() removes an object from the result'); - } - - public function testPruneCompositeKey() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - // save all books to make sure related objects are also saved - BookstoreDataPopulator keeps some unsaved - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->find(); - foreach ($books as $book) { - $book->save(); - } - - BookPeer::clearInstancePool(); - - $nbBookListRel = BookListRelQuery::create()->prune()->count(); - $this->assertEquals(2, $nbBookListRel, 'prune() does nothing when passed a null object'); - - $testBookListRel = BookListRelQuery::create()->findOne(); - $nbBookListRel = BookListRelQuery::create()->prune($testBookListRel)->count(); - $this->assertEquals(1, $nbBookListRel, 'prune() removes an object from the result'); - } -} - -class myCustomBookQuery extends BookQuery -{ - public static function create($modelAlias = null, $criteria = null) - { - if ($criteria instanceof myCustomBookQuery) { - return $criteria; - } - $query = new myCustomBookQuery(); - if (null !== $modelAlias) { - $query->setModelAlias($modelAlias); - } - if ($criteria instanceof Criteria) { - $query->mergeWith($criteria); - } - return $query; - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/util/PropelTemplateTest.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/util/PropelTemplateTest.php deleted file mode 100644 index bba32ac12c..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/util/PropelTemplateTest.php +++ /dev/null @@ -1,54 +0,0 @@ -setTemplate('Hello, '); - $res = $t->render(); - $this->assertEquals('Hello, 3', $res); - } - - public function testRenderStringOneParam() - { - $t = new PropelTemplate(); - $t->setTemplate('Hello, '); - $res = $t->render(array('name' => 'John')); - $this->assertEquals('Hello, John', $res); - } - - public function testRenderStringParams() - { - $time = time(); - $t = new PropelTemplate(); - $t->setTemplate('Hello, , it is to go!'); - $res = $t->render(array('name' => 'John', 'time' => $time)); - $this->assertEquals('Hello, John, it is ' . $time . ' to go!', $res); - } - - public function testRenderFile() - { - $t = new PropelTemplate(); - $t->setTemplateFile(dirname(__FILE__).'/template.php'); - $res = $t->render(array('name' => 'John')); - $this->assertEquals('Hello, John', $res); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/builder/util/template.php b/airtime_mvc/library/propel/test/testsuite/generator/builder/util/template.php deleted file mode 100644 index 2ae040501a..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/builder/util/template.php +++ /dev/null @@ -1 +0,0 @@ -Hello, \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/model/BehaviorTest.php b/airtime_mvc/library/propel/test/testsuite/generator/model/BehaviorTest.php deleted file mode 100644 index af1daecb83..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/model/BehaviorTest.php +++ /dev/null @@ -1,113 +0,0 @@ -Martin Poeschl - * @version $Revision: 1773 $ - * @package generator.model - */ -class BehaviorTest extends PHPUnit_Framework_TestCase { - - private $xmlToAppData; - private $appData; - - public function testSetupObject() - { - $b = new Behavior(); - $b->loadFromXML(array('name' => 'foo')); - $this->assertEquals($b->getName(), 'foo', 'setupObject() sets the Behavior name from XML attributes'); - } - - public function testName() - { - $b = new Behavior(); - $this->assertNull($b->getName(), 'Behavior name is null by default'); - $b->setName('foo'); - $this->assertEquals($b->getName(), 'foo', 'setName() sets the name, and getName() gets it'); - } - - public function testTable() - { - $b = new Behavior(); - $this->assertNull($b->getTable(), 'Behavior Table is null by default'); - $t = new Table(); - $t->setName('fooTable'); - $b->setTable($t); - $this->assertEquals($b->getTable(), $t, 'setTable() sets the name, and getTable() gets it'); - } - - public function testParameters() - { - $b = new Behavior(); - $this->assertEquals($b->getParameters(), array(), 'Behavior parameters is an empty array by default'); - $b->addParameter(array('name' => 'foo', 'value' => 'bar')); - $this->assertEquals($b->getParameters(), array('foo' => 'bar'), 'addParameter() sets a parameter from an associative array'); - $b->addParameter(array('name' => 'foo2', 'value' => 'bar2')); - $this->assertEquals($b->getParameters(), array('foo' => 'bar', 'foo2' => 'bar2'), 'addParameter() adds a parameter from an associative array'); - $b->addParameter(array('name' => 'foo', 'value' => 'bar3')); - $this->assertEquals($b->getParameters(), array('foo' => 'bar3', 'foo2' => 'bar2'), 'addParameter() changes a parameter from an associative array'); - $this->assertEquals($b->getParameter('foo'), 'bar3', 'getParameter() retrieves a parameter value by name'); - $b->setParameters(array('foo3' => 'bar3', 'foo4' => 'bar4')); - $this->assertEquals($b->getParameters(), array('foo3' => 'bar3', 'foo4' => 'bar4'), 'setParameters() changes the whole parameter array'); - } - - /** - * test if the tables get the package name from the properties file - * - */ - public function testXmlToAppData() - { - include_once 'builder/util/XmlToAppData.php'; - $this->xmlToAppData = new XmlToAppData(new MysqlPlatform(), "defaultpackage", null); - $this->appData = $this->xmlToAppData->parseFile('fixtures/bookstore/behavior-timestampable-schema.xml'); - $table = $this->appData->getDatabase("bookstore-behavior")->getTable('table1'); - $behaviors = $table->getBehaviors(); - $this->assertEquals(count($behaviors), 1, 'XmlToAppData ads as many behaviors as there are behaviors tags'); - $behavior = $table->getBehavior('timestampable'); - $this->assertEquals($behavior->getTable()->getName(), 'table1', 'XmlToAppData sets the behavior table correctly'); - $this->assertEquals($behavior->getParameters(), array('create_column' => 'created_on', 'update_column' => 'updated_on'), 'XmlToAppData sets the behavior parameters correctly'); - } - - public function testMofifyTable() - { - set_include_path(get_include_path() . PATH_SEPARATOR . "fixtures/bookstore/build/classes"); - Propel::init('fixtures/bookstore/build/conf/bookstore-conf.php'); - $tmap = Propel::getDatabaseMap(Table2Peer::DATABASE_NAME)->getTable(Table2Peer::TABLE_NAME); - $this->assertEquals(count($tmap->getColumns()), 4, 'A behavior can modify its table by implementing modifyTable()'); - } - - public function testModifyDatabase() - { - set_include_path(get_include_path() . PATH_SEPARATOR . "fixtures/bookstore/build/classes"); - require_once dirname(__FILE__) . '/../../../../runtime/lib/Propel.php'; - Propel::init('fixtures/bookstore/build/conf/bookstore-conf.php'); - $tmap = Propel::getDatabaseMap(Table3Peer::DATABASE_NAME)->getTable(Table3Peer::TABLE_NAME); - $this->assertTrue(array_key_exists('do_nothing', $tmap->getBehaviors()), 'A database behavior is automatically copied to all its table'); - } - - public function testGetColumnForParameter() - { - $this->xmlToAppData = new XmlToAppData(new MysqlPlatform(), "defaultpackage", null); - $this->appData = $this->xmlToAppData->parseFile('fixtures/bookstore/behavior-timestampable-schema.xml'); - - $table = $this->appData->getDatabase("bookstore-behavior")->getTable('table1'); - $behavior = $table->getBehavior('timestampable'); - $this->assertEquals($table->getColumn('created_on'), $behavior->getColumnForParameter('create_column'), 'getColumnForParameter() returns the configured column for behavior based on a parameter name'); - - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/model/ColumnTest.php b/airtime_mvc/library/propel/test/testsuite/generator/model/ColumnTest.php deleted file mode 100644 index dbaf694329..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/model/ColumnTest.php +++ /dev/null @@ -1,81 +0,0 @@ -Martin Poeschl - * @version $Revision: 1612 $ - * @package generator.model - */ -class ColumnTest extends PHPUnit_Framework_TestCase { - - /** - * Tests static Column::makeList() method. - * @deprecated - Column::makeList() is deprecated and set to be removed in 1.3 - */ - public function testMakeList() - { - $expected = "`Column0`, `Column1`, `Column2`, `Column3`, `Column4`"; - $objArray = array(); - for ($i=0; $i<5; $i++) { - $c = new Column(); - $c->setName("Column" . $i); - $objArray[] = $c; - } - - $list = Column::makeList($objArray, new MySQLPlatform()); - $this->assertEquals($expected, $list, sprintf("Expected '%s' match, got '%s' ", var_export($expected, true), var_export($list,true))); - - $strArray = array(); - for ($i=0; $i<5; $i++) { - $strArray[] = "Column" . $i; - } - - $list = Column::makeList($strArray, new MySQLPlatform()); - $this->assertEquals($expected, $list, sprintf("Expected '%s' match, got '%s' ", var_export($expected, true), var_export($list,true))); - - } - - public function testPhpNamingMethod() - { - set_include_path(get_include_path() . PATH_SEPARATOR . "fixtures/bookstore/build/classes"); - Propel::init('fixtures/bookstore/build/conf/bookstore-conf.php'); - $bookTmap = Propel::getDatabaseMap(BookPeer::DATABASE_NAME)->getTable(BookPeer::TABLE_NAME); - $this->assertEquals('AuthorId', $bookTmap->getColumn('AUTHOR_ID')->getPhpName(), 'setPhpName() uses the default phpNamingMethod'); - $pageTmap = Propel::getDatabaseMap(PagePeer::DATABASE_NAME)->getTable(PagePeer::TABLE_NAME); - $this->assertEquals('LeftChild', $pageTmap->getColumn('LEFTCHILD')->getPhpName(), 'setPhpName() uses the configured phpNamingMethod'); - } - - public function testGetConstantName() - { - $xmlToAppData = new XmlToAppData(new MysqlPlatform(), "defaultpackage", null); - $appData = $xmlToAppData->parseFile('fixtures/bookstore/behavior-timestampable-schema.xml'); - $column = $appData->getDatabase("bookstore-behavior")->getTable('table1')->getColumn('title'); - $this->assertEquals('Table1Peer::TITLE', $column->getConstantName(), 'getConstantName() returns the complete constant name by default'); - } - - public function testIsLocalColumnsRequired() - { - $xmlToAppData = new XmlToAppData(new MysqlPlatform(), "defaultpackage", null); - $appData = $xmlToAppData->parseFile('fixtures/bookstore/schema.xml'); - $fk = $appData->getDatabase("bookstore")->getTable('book')->getColumnForeignKeys('publisher_id'); - $this->assertFalse($fk[0]->isLocalColumnsRequired()); - $fk = $appData->getDatabase("bookstore")->getTable('review')->getColumnForeignKeys('book_id'); - $this->assertTrue($fk[0]->isLocalColumnsRequired()); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/model/NameFactoryTest.php b/airtime_mvc/library/propel/test/testsuite/generator/model/NameFactoryTest.php deleted file mode 100644 index e65ae05f4a..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/model/NameFactoryTest.php +++ /dev/null @@ -1,151 +0,0 @@ -Unit tests for class NameFactory and known - * NameGenerator implementations.

- * - *

To add more tests, add entries to the ALGORITHMS, - * INPUTS, and OUTPUTS arrays, and code to - * the makeInputs() method.

- * - *

This test assumes that it's being run using the MySQL database - * adapter, DBMM. MySQL has a column length limit of 64 - * characters.

- * - * @author Daniel Rall - * @version $Id: NameFactoryTest.php 1612 2010-03-16 22:56:21Z francois $ - * @package generator.model - */ -class NameFactoryTest extends BaseTestCase -{ - /** The database to mimic in generating the SQL. */ - const DATABASE_TYPE = "mysql"; - - /** - * The list of known name generation algorithms, specified as the - * fully qualified class names to NameGenerator - * implementations. - */ - private static $ALGORITHMS = array(NameFactory::CONSTRAINT_GENERATOR, NameFactory::PHP_GENERATOR); - - /** - * Two dimensional arrays of inputs for each algorithm. - */ - private static $INPUTS = array(); - - - /** - * Given the known inputs, the expected name outputs. - */ - private static $OUTPUTS = array(); - - /** - * Used as an input. - */ - private $database; - - /** - * Creates a new instance. - * - */ - public function __construct() { - - self::$INPUTS = array( - array( array(self::makeString(61), "I", 1), - array(self::makeString(61), "I", 2), - array(self::makeString(65), "I", 3), - array(self::makeString(4), "FK", 1), - array(self::makeString(5), "FK", 2) - ), - array( - array("MY_USER", NameGenerator::CONV_METHOD_UNDERSCORE), - array("MY_USER", NameGenerator::CONV_METHOD_PHPNAME), - array("MY_USER", NameGenerator::CONV_METHOD_NOCHANGE) - ) - ); - - - self::$OUTPUTS = array( - array( - self::makeString(60) . "_I_1", - self::makeString(60) . "_I_2", - self::makeString(60) . "_I_3", - self::makeString(4) . "_FK_1", - self::makeString(5) . "_FK_2"), - array("MyUser", "MYUSER", "MY_USER") - ); - - } - - /** - * Creates a string of the specified length consisting entirely of - * the character A. Useful for simulating table - * names, etc. - * - * @param int $len the number of characters to include in the string - * @return a string of length len with every character an 'A' - */ - private static function makeString($len) { - $buf = ""; - for ($i = 0; $i < $len; $i++) { - $buf .= 'A'; - } - return $buf; - } - - /** Sets up the Propel model. */ - public function setUp() - { - $appData = new AppData(new MysqlPlatform()); - $this->database = new Database(); - $appData->addDatabase($this->database); - } - - /** - * @throws Exception on fail - */ - public function testNames() { - for ($algoIndex = 0; $algoIndex < count(self::$ALGORITHMS); $algoIndex++) { - $algo = self::$ALGORITHMS[$algoIndex]; - $algoInputs = self::$INPUTS[$algoIndex]; - for ($i = 0; $i < count($algoInputs); $i++) { - $inputs = $this->makeInputs($algo, $algoInputs[$i]); - $generated = NameFactory::generateName($algo, $inputs); - $expected = self::$OUTPUTS[$algoIndex][$i]; - $this->assertEquals($expected, $generated, 0, "Algorithm " . $algo . " failed to generate an unique name"); - } - } - } - - /** - * Creates the list of arguments to pass to the specified type of - * NameGenerator implementation. - * - * @param algo The class name of the NameGenerator to - * create an argument list for. - * @param inputs The (possibly partial) list inputs from which to - * generate the final list. - * @return the list of arguments to pass to the NameGenerator - */ - private function makeInputs($algo, $inputs) - { - if (NameFactory::CONSTRAINT_GENERATOR == $algo) { - array_unshift($inputs, $this->database); - } - return $inputs; - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/model/PhpNameGeneratorTest.php b/airtime_mvc/library/propel/test/testsuite/generator/model/PhpNameGeneratorTest.php deleted file mode 100644 index ecde25cc69..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/model/PhpNameGeneratorTest.php +++ /dev/null @@ -1,55 +0,0 @@ -Martin Poeschl - * @version $Revision: 1612 $ - * @package generator.model - */ -class PhpNameGeneratorTest extends PHPUnit_Framework_TestCase -{ - public static function testPhpnameMethodDataProvider() - { - return array( - array('foo', 'Foo'), - array('Foo', 'Foo'), - array('FOO', 'FOO'), - array('123', '123'), - array('foo_bar', 'FooBar'), - array('bar_1', 'Bar1'), - array('bar_0', 'Bar0'), - array('my_CLASS_name', 'MyCLASSName'), - ); - } - - /** - * @dataProvider testPhpnameMethodDataProvider - */ - public function testPhpnameMethod($input, $output) - { - $generator = new TestablePhpNameGenerator(); - $this->assertEquals($output, $generator->phpnameMethod($input)); - } - -} - -class TestablePhpNameGenerator extends PhpNameGenerator -{ - public function phpnameMethod($schemaName) - { - return parent::phpnameMethod($schemaName); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/generator/model/TableTest.php b/airtime_mvc/library/propel/test/testsuite/generator/model/TableTest.php deleted file mode 100644 index d77a52f1ac..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/model/TableTest.php +++ /dev/null @@ -1,109 +0,0 @@ -xmlToAppData = new XmlToAppData(new MysqlPlatform(), "defaultpackage", null); - - //$this->appData = $this->xmlToAppData->parseFile(dirname(__FILE__) . "/tabletest-schema.xml"); - $this->appData = $this->xmlToAppData->parseFile("etc/schema/tabletest-schema.xml"); - - $db = $this->appData->getDatabase("iddb"); - $expected = IDMethod::NATIVE; - $result = $db->getDefaultIdMethod(); - $this->assertEquals($expected, $result); - - $table2 = $db->getTable("table_native"); - $expected = IDMethod::NATIVE; - $result = $table2->getIdMethod(); - $this->assertEquals($expected, $result); - - $table = $db->getTable("table_none"); - $expected = IDMethod::NO_ID_METHOD; - $result = $table->getIdMethod(); - $this->assertEquals($expected, $result); - } - - public function testGeneratorConfig() - { - $xmlToAppData = new XmlToAppData(new MysqlPlatform(), "defaultpackage", null); - $appData = $xmlToAppData->parseFile('fixtures/bookstore/behavior-timestampable-schema.xml'); - $table = $appData->getDatabase("bookstore-behavior")->getTable('table1'); - $config = new GeneratorConfig(); - $config->setBuildProperties(array('propel.foo.bar.class' => 'bazz')); - $table->getDatabase()->getAppData()->getPlatform()->setGeneratorConfig($config); - $this->assertThat($table->getGeneratorConfig(), $this->isInstanceOf('GeneratorConfig'), 'getGeneratorConfig() returns an instance of the generator configuration'); - $this->assertEquals($table->getGeneratorConfig()->getBuildProperty('fooBarClass'), 'bazz', 'getGeneratorConfig() returns the instance of the generator configuration used in the platform'); - } - - public function testAddBehavior() - { - $platform = new MysqlPlatform(); - $config = new GeneratorConfig(); - $config->setBuildProperties(array( - 'propel.behavior.timestampable.class' => 'behavior.TimestampableBehavior' - )); - $platform->setGeneratorConfig($config); - $xmlToAppData = new XmlToAppData($platform, "defaultpackage", null); - $appData = $xmlToAppData->parseFile('fixtures/bookstore/behavior-timestampable-schema.xml'); - $table = $appData->getDatabase("bookstore-behavior")->getTable('table1'); - $this->assertThat($table->getBehavior('timestampable'), $this->isInstanceOf('TimestampableBehavior'), 'addBehavior() uses the behavior class defined in build.properties'); - } - - public function testUniqueColumnName() - { - $platform = new MysqlPlatform(); - $config = new GeneratorConfig(); - $platform->setGeneratorConfig($config); - $xmlToAppData = new XmlToAppData($platform, 'defaultpackage', null); - try - { - $appData = $xmlToAppData->parseFile('fixtures/unique-column/column-schema.xml'); - $this->fail('Parsing file with duplicate column names in one table throws exception'); - } catch (EngineException $e) { - $this->assertTrue(true, 'Parsing file with duplicate column names in one table throws exception'); - } - } - - public function testUniqueTableName() - { - $platform = new MysqlPlatform(); - $config = new GeneratorConfig(); - $platform->setGeneratorConfig($config); - $xmlToAppData = new XmlToAppData($platform, 'defaultpackage', null); - try { - $appData = $xmlToAppData->parseFile('fixtures/unique-column/table-schema.xml'); - $this->fail('Parsing file with duplicate table name throws exception'); - } catch (EngineException $e) { - $this->assertTrue(true, 'Parsing file with duplicate table name throws exception'); - } - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/platform/DefaultPlatformTest.php b/airtime_mvc/library/propel/test/testsuite/generator/platform/DefaultPlatformTest.php deleted file mode 100644 index db1c91ef9e..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/platform/DefaultPlatformTest.php +++ /dev/null @@ -1,45 +0,0 @@ -getPlatform(); - - $unquoted = "Nice"; - $quoted = $p->quote($unquoted); - - $this->assertEquals("'$unquoted'", $quoted); - - - $unquoted = "Naughty ' string"; - $quoted = $p->quote($unquoted); - $expected = "'Naughty '' string'"; - $this->assertEquals($expected, $quoted); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/platform/PlatformTestBase.php b/airtime_mvc/library/propel/test/testsuite/generator/platform/PlatformTestBase.php deleted file mode 100644 index f384ca8c01..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/platform/PlatformTestBase.php +++ /dev/null @@ -1,55 +0,0 @@ -platform = new $clazz(); - } - - /** - * - */ - protected function tearDown() - { - parent::tearDown(); - } - - /** - * - * @return Platform - */ - protected function getPlatform() - { - return $this->platform; - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/generator/platform/SqlitePlatformTest.php b/airtime_mvc/library/propel/test/testsuite/generator/platform/SqlitePlatformTest.php deleted file mode 100644 index 4380485e32..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/generator/platform/SqlitePlatformTest.php +++ /dev/null @@ -1,48 +0,0 @@ -pdo = new PDO("sqlite::memory:"); - - } - - public function tearDown() - { - parent::tearDown(); - } - - public function testQuoteConnected() - { - $p = $this->getPlatform(); - $p->setConnection($this->pdo); - - $unquoted = "Naughty ' string"; - $quoted = $p->quote($unquoted); - - $expected = "'Naughty '' string'"; - $this->assertEquals($expected, $quoted); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/misc/BookstoreTest.php b/airtime_mvc/library/propel/test/testsuite/misc/BookstoreTest.php deleted file mode 100644 index c0f63e28e5..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/misc/BookstoreTest.php +++ /dev/null @@ -1,870 +0,0 @@ - - * @package misc - */ -class BookstoreTest extends BookstoreEmptyTestBase -{ - public function testScenario() - { - // Add publisher records - // --------------------- - - try { - $scholastic = new Publisher(); - $scholastic->setName("Scholastic"); - // do not save, will do later to test cascade - - $morrow = new Publisher(); - $morrow->setName("William Morrow"); - $morrow->save(); - $morrow_id = $morrow->getId(); - - $penguin = new Publisher(); - $penguin->setName("Penguin"); - $penguin->save(); - $penguin_id = $penguin->getId(); - - $vintage = new Publisher(); - $vintage->setName("Vintage"); - $vintage->save(); - $vintage_id = $vintage->getId(); - $this->assertTrue(true, 'Save Publisher records'); - } catch (Exception $e) { - $this->fail('Save publisher records'); - } - - // Add author records - // ------------------ - - try { - $rowling = new Author(); - $rowling->setFirstName("J.K."); - $rowling->setLastName("Rowling"); - // do not save, will do later to test cascade - - $stephenson = new Author(); - $stephenson->setFirstName("Neal"); - $stephenson->setLastName("Stephenson"); - $stephenson->save(); - $stephenson_id = $stephenson->getId(); - - $byron = new Author(); - $byron->setFirstName("George"); - $byron->setLastName("Byron"); - $byron->save(); - $byron_id = $byron->getId(); - - $grass = new Author(); - $grass->setFirstName("Gunter"); - $grass->setLastName("Grass"); - $grass->save(); - $grass_id = $grass->getId(); - $this->assertTrue(true, 'Save Author records'); - } catch (Exception $e) { - $this->fail('Save Author records'); - } - - // Add book records - // ---------------- - - try { - $phoenix = new Book(); - $phoenix->setTitle("Harry Potter and the Order of the Phoenix"); - $phoenix->setISBN("043935806X"); - $phoenix->setAuthor($rowling); - $phoenix->setPublisher($scholastic); - $phoenix->save(); - $phoenix_id = $phoenix->getId(); - $this->assertFalse($rowling->isNew(), 'saving book also saves related author'); - $this->assertFalse($scholastic->isNew(), 'saving book also saves related publisher'); - - $qs = new Book(); - $qs->setISBN("0380977427"); - $qs->setTitle("Quicksilver"); - $qs->setAuthor($stephenson); - $qs->setPublisher($morrow); - $qs->save(); - $qs_id = $qs->getId(); - - $dj = new Book(); - $dj->setISBN("0140422161"); - $dj->setTitle("Don Juan"); - $dj->setAuthor($byron); - $dj->setPublisher($penguin); - $dj->save(); - $dj_id = $qs->getId(); - - $td = new Book(); - $td->setISBN("067972575X"); - $td->setTitle("The Tin Drum"); - $td->setAuthor($grass); - $td->setPublisher($vintage); - $td->save(); - $td_id = $td->getId(); - $this->assertTrue(true, 'Save Book records'); - } catch (Exception $e) { - $this->fail('Save Author records'); - } - - // Add review records - // ------------------ - - try { - $r1 = new Review(); - $r1->setBook($phoenix); - $r1->setReviewedBy("Washington Post"); - $r1->setRecommended(true); - $r1->setReviewDate(time()); - $r1->save(); - $r1_id = $r1->getId(); - - $r2 = new Review(); - $r2->setBook($phoenix); - $r2->setReviewedBy("New York Times"); - $r2->setRecommended(false); - $r2->setReviewDate(time()); - $r2->save(); - $r2_id = $r2->getId(); - $this->assertTrue(true, 'Save Review records'); - } catch (Exception $e) { - $this->fail('Save Review records'); - } - - // Perform a "complex" search - // -------------------------- - - $crit = new Criteria(); - $crit->add(BookPeer::TITLE, 'Harry%', Criteria::LIKE); - $results = BookPeer::doSelect($crit); - $this->assertEquals(1, count($results)); - - $crit2 = new Criteria(); - $crit2->add(BookPeer::ISBN, array("0380977427", "0140422161"), Criteria::IN); - $results = BookPeer::doSelect($crit2); - $this->assertEquals(2, count($results)); - - // Perform a "limit" search - // ------------------------ - - $crit = new Criteria(); - $crit->setLimit(2); - $crit->setOffset(1); - $crit->addAscendingOrderByColumn(BookPeer::TITLE); - - $results = BookPeer::doSelect($crit); - $this->assertEquals(2, count($results)); - - // we ordered on book title, so we expect to get - $this->assertEquals("Harry Potter and the Order of the Phoenix", $results[0]->getTitle()); - $this->assertEquals("Quicksilver", $results[1]->getTitle()); - - // Perform a lookup & update! - // -------------------------- - - // Updating just-created book title - // First finding book by PK (=$qs_id) .... - $qs_lookup = BookPeer::retrieveByPk($qs_id); - $this->assertNotNull($qs_lookup, 'just-created book can be found by pk'); - - $new_title = "Quicksilver (".crc32(uniqid(rand())).")"; - // Attempting to update found object - $qs_lookup->setTitle($new_title); - $qs_lookup->save(); - - // Making sure object was correctly updated: "; - $qs_lookup2 = BookPeer::retrieveByPk($qs_id); - $this->assertEquals($new_title, $qs_lookup2->getTitle()); - - // Test some basic DATE / TIME stuff - // --------------------------------- - - // that's the control timestamp. - $control = strtotime('2004-02-29 00:00:00'); - - // should be two in the db - $r = ReviewPeer::doSelectOne(new Criteria()); - $r_id = $r->getId(); - $r->setReviewDate($control); - $r->save(); - - $r2 = ReviewPeer::retrieveByPk($r_id); - - $this->assertEquals(new Datetime('2004-02-29 00:00:00'), $r2->getReviewDate(null), 'ability to fetch DateTime'); - $this->assertEquals($control, $r2->getReviewDate('U'), 'ability to fetch native unix timestamp'); - $this->assertEquals('2-29-2004', $r2->getReviewDate('n-j-Y'), 'ability to use date() formatter'); - - // Handle BLOB/CLOB Columns - // ------------------------ - - $blob_path = dirname(__FILE__) . '/../../etc/lob/tin_drum.gif'; - $blob2_path = dirname(__FILE__) . '/../../etc/lob/propel.gif'; - $clob_path = dirname(__FILE__) . '/../../etc/lob/tin_drum.txt'; - - $m1 = new Media(); - $m1->setBook($phoenix); - $m1->setCoverImage(file_get_contents($blob_path)); - $m1->setExcerpt(file_get_contents($clob_path)); - $m1->save(); - $m1_id = $m1->getId(); - - $m1_lookup = MediaPeer::retrieveByPk($m1_id); - - $this->assertNotNull($m1_lookup, 'Can find just-created media item'); - $this->assertEquals(file_get_contents($blob_path), stream_get_contents($m1_lookup->getCoverImage()), 'BLOB was correctly updated'); - $this->assertEquals(file_get_contents($clob_path), (string) $m1_lookup->getExcerpt(), 'CLOB was correctly updated'); - - // now update the BLOB column and save it & check the results - $m1_lookup->setCoverImage(file_get_contents($blob2_path)); - $m1_lookup->save(); - - $m2_lookup = MediaPeer::retrieveByPk($m1_id); - $this->assertNotNull($m2_lookup, 'Can find just-created media item'); - - $this->assertEquals(file_get_contents($blob2_path), stream_get_contents($m2_lookup->getCoverImage()), 'BLOB was correctly overwritten'); - - // Test Validators - // --------------- - - require_once 'tools/helpers/bookstore/validator/ISBNValidator.php'; - - $bk1 = new Book(); - $bk1->setTitle("12345"); // min length is 10 - $ret = $bk1->validate(); - - $this->assertFalse($ret, 'validation failed'); - $failures = $bk1->getValidationFailures(); - $this->assertEquals(1, count($failures), '1 validation message was returned'); - - $el = array_shift($failures); - $this->assertContains("must be more than", $el->getMessage(), 'Expected validation message was returned'); - - $bk2 = new Book(); - $bk2->setTitle("Don Juan"); - $ret = $bk2->validate(); - - $this->assertFalse($ret, 'validation failed'); - - $failures = $bk2->getValidationFailures(); - $this->assertEquals(1, count($failures), '1 validation message was returned'); - - $el = array_shift($failures); - $this->assertContains("Book title already in database.", $el->getMessage(), 'Expected validation message was returned'); - - //Now trying some more complex validation. - $auth1 = new Author(); - $auth1->setFirstName("Hans"); - // last name required; will fail - - $bk1->setAuthor($auth1); - - $rev1 = new Review(); - $rev1->setReviewDate("08/09/2001"); - // will fail: reviewed_by column required - - $bk1->addReview($rev1); - - $ret2 = $bk1->validate(); - $this->assertFalse($ret2, 'validation failed'); - - $failures2 = $bk1->getValidationFailures(); - - $this->assertEquals(3, count($failures2), '3 validation messages were returned'); - - $expectedKeys = array( - AuthorPeer::LAST_NAME, - BookPeer::TITLE, - ReviewPeer::REVIEWED_BY, - ); - $this->assertEquals($expectedKeys, array_keys($failures2), 'correct columns failed'); - - $bk2 = new Book(); - $bk2->setTitle("12345678901"); // passes - - $auth2 = new Author(); - $auth2->setLastName("Blah"); //passes - $auth2->setEmail("some@body.com"); //passes - $auth2->setAge(50); //passes - $bk2->setAuthor($auth2); - - $rev2 = new Review(); - $rev2->setReviewedBy("Me!"); // passes - $rev2->setStatus("new"); // passes - $bk2->addReview($rev2); - - $ret3 = $bk2->validate(); - - $this->assertTrue($ret3, 'complex validation can pass'); - - // Testing doCount() functionality - // ------------------------------- - - $c = new Criteria(); - $records = BookPeer::doSelect($c); - $count = BookPeer::doCount($c); - - $this->assertEquals($count, count($records), 'correct number of results'); - - // Test many-to-many relationships - // --------------- - - // init book club list 1 with 2 books - - $blc1 = new BookClubList(); - $blc1->setGroupLeader("Crazyleggs"); - $blc1->setTheme("Happiness"); - - $brel1 = new BookListRel(); - $brel1->setBook($phoenix); - - $brel2 = new BookListRel(); - $brel2->setBook($dj); - - $blc1->addBookListRel($brel1); - $blc1->addBookListRel($brel2); - - $blc1->save(); - - $this->assertNotNull($blc1->getId(), 'BookClubList 1 was saved'); - - // init book club list 2 with 1 book - - $blc2 = new BookClubList(); - $blc2->setGroupLeader("John Foo"); - $blc2->setTheme("Default"); - - $brel3 = new BookListRel(); - $brel3->setBook($phoenix); - - $blc2->addBookListRel($brel3); - - $blc2->save(); - - $this->assertNotNull($blc2->getId(), 'BookClubList 2 was saved'); - - // re-fetch books and lists from db to be sure that nothing is cached - - $crit = new Criteria(); - $crit->add(BookPeer::ID, $phoenix->getId()); - $phoenix = BookPeer::doSelectOne($crit); - $this->assertNotNull($phoenix, "book 'phoenix' has been re-fetched from db"); - - $crit = new Criteria(); - $crit->add(BookClubListPeer::ID, $blc1->getId()); - $blc1 = BookClubListPeer::doSelectOne($crit); - $this->assertNotNull($blc1, 'BookClubList 1 has been re-fetched from db'); - - $crit = new Criteria(); - $crit->add(BookClubListPeer::ID, $blc2->getId()); - $blc2 = BookClubListPeer::doSelectOne($crit); - $this->assertNotNull($blc2, 'BookClubList 2 has been re-fetched from db'); - - $relCount = $phoenix->countBookListRels(); - $this->assertEquals(2, $relCount, "book 'phoenix' has 2 BookListRels"); - - $relCount = $blc1->countBookListRels(); - $this->assertEquals(2, $relCount, 'BookClubList 1 has 2 BookListRels'); - - $relCount = $blc2->countBookListRels(); - $this->assertEquals(1, $relCount, 'BookClubList 2 has 1 BookListRel'); - - // Cleanup (tests DELETE) - // ---------------------- - - // Removing books that were just created - // First finding book by PK (=$phoenix_id) .... - $hp = BookPeer::retrieveByPk($phoenix_id); - $this->assertNotNull($hp, 'Could find just-created book'); - - // Attempting to delete [multi-table] by found pk - $c = new Criteria(); - $c->add(BookPeer::ID, $hp->getId()); - // The only way for cascading to work currently - // is to specify the author_id and publisher_id (i.e. the fkeys - // have to be in the criteria). - $c->add(AuthorPeer::ID, $hp->getAuthor()->getId()); - $c->add(PublisherPeer::ID, $hp->getPublisher()->getId()); - $c->setSingleRecord(true); - BookPeer::doDelete($c); - - // Checking to make sure correct records were removed. - $this->assertEquals(3, AuthorPeer::doCount(new Criteria()), 'Correct records were removed from author table'); - $this->assertEquals(3, PublisherPeer::doCount(new Criteria()), 'Correct records were removed from publisher table'); - $this->assertEquals(3, BookPeer::doCount(new Criteria()), 'Correct records were removed from book table'); - - // Attempting to delete books by complex criteria - $c = new Criteria(); - $cn = $c->getNewCriterion(BookPeer::ISBN, "043935806X"); - $cn->addOr($c->getNewCriterion(BookPeer::ISBN, "0380977427")); - $cn->addOr($c->getNewCriterion(BookPeer::ISBN, "0140422161")); - $c->add($cn); - BookPeer::doDelete($c); - - // Attempting to delete book [id = $td_id] - $td->delete(); - - // Attempting to delete authors - AuthorPeer::doDelete($stephenson_id); - AuthorPeer::doDelete($byron_id); - $grass->delete(); - - // Attempting to delete publishers - PublisherPeer::doDelete($morrow_id); - PublisherPeer::doDelete($penguin_id); - $vintage->delete(); - - // These have to be deleted manually also since we have onDelete - // set to SETNULL in the foreign keys in book. Is this correct? - $rowling->delete(); - $scholastic->delete(); - $blc1->delete(); - $blc2->delete(); - - $this->assertEquals(array(), AuthorPeer::doSelect(new Criteria()), 'no records in [author] table'); - $this->assertEquals(array(), PublisherPeer::doSelect(new Criteria()), 'no records in [publisher] table'); - $this->assertEquals(array(), BookPeer::doSelect(new Criteria()), 'no records in [book] table'); - $this->assertEquals(array(), ReviewPeer::doSelect(new Criteria()), 'no records in [review] table'); - $this->assertEquals(array(), MediaPeer::doSelect(new Criteria()), 'no records in [media] table'); - $this->assertEquals(array(), BookClubListPeer::doSelect(new Criteria()), 'no records in [book_club_list] table'); - $this->assertEquals(array(), BookListRelPeer::doSelect(new Criteria()), 'no records in [book_x_list] table'); - - } - - public function testScenarioUsingQuery() - { - // Add publisher records - // --------------------- - - try { - $scholastic = new Publisher(); - $scholastic->setName("Scholastic"); - // do not save, will do later to test cascade - - $morrow = new Publisher(); - $morrow->setName("William Morrow"); - $morrow->save(); - $morrow_id = $morrow->getId(); - - $penguin = new Publisher(); - $penguin->setName("Penguin"); - $penguin->save(); - $penguin_id = $penguin->getId(); - - $vintage = new Publisher(); - $vintage->setName("Vintage"); - $vintage->save(); - $vintage_id = $vintage->getId(); - $this->assertTrue(true, 'Save Publisher records'); - } catch (Exception $e) { - $this->fail('Save publisher records'); - } - - // Add author records - // ------------------ - - try { - $rowling = new Author(); - $rowling->setFirstName("J.K."); - $rowling->setLastName("Rowling"); - // do not save, will do later to test cascade - - $stephenson = new Author(); - $stephenson->setFirstName("Neal"); - $stephenson->setLastName("Stephenson"); - $stephenson->save(); - $stephenson_id = $stephenson->getId(); - - $byron = new Author(); - $byron->setFirstName("George"); - $byron->setLastName("Byron"); - $byron->save(); - $byron_id = $byron->getId(); - - $grass = new Author(); - $grass->setFirstName("Gunter"); - $grass->setLastName("Grass"); - $grass->save(); - $grass_id = $grass->getId(); - $this->assertTrue(true, 'Save Author records'); - } catch (Exception $e) { - $this->fail('Save Author records'); - } - - // Add book records - // ---------------- - - try { - $phoenix = new Book(); - $phoenix->setTitle("Harry Potter and the Order of the Phoenix"); - $phoenix->setISBN("043935806X"); - $phoenix->setAuthor($rowling); - $phoenix->setPublisher($scholastic); - $phoenix->save(); - $phoenix_id = $phoenix->getId(); - $this->assertFalse($rowling->isNew(), 'saving book also saves related author'); - $this->assertFalse($scholastic->isNew(), 'saving book also saves related publisher'); - - $qs = new Book(); - $qs->setISBN("0380977427"); - $qs->setTitle("Quicksilver"); - $qs->setAuthor($stephenson); - $qs->setPublisher($morrow); - $qs->save(); - $qs_id = $qs->getId(); - - $dj = new Book(); - $dj->setISBN("0140422161"); - $dj->setTitle("Don Juan"); - $dj->setAuthor($byron); - $dj->setPublisher($penguin); - $dj->save(); - $dj_id = $qs->getId(); - - $td = new Book(); - $td->setISBN("067972575X"); - $td->setTitle("The Tin Drum"); - $td->setAuthor($grass); - $td->setPublisher($vintage); - $td->save(); - $td_id = $td->getId(); - $this->assertTrue(true, 'Save Book records'); - } catch (Exception $e) { - $this->fail('Save Author records'); - } - - // Add review records - // ------------------ - - try { - $r1 = new Review(); - $r1->setBook($phoenix); - $r1->setReviewedBy("Washington Post"); - $r1->setRecommended(true); - $r1->setReviewDate(time()); - $r1->save(); - $r1_id = $r1->getId(); - - $r2 = new Review(); - $r2->setBook($phoenix); - $r2->setReviewedBy("New York Times"); - $r2->setRecommended(false); - $r2->setReviewDate(time()); - $r2->save(); - $r2_id = $r2->getId(); - $this->assertTrue(true, 'Save Review records'); - } catch (Exception $e) { - $this->fail('Save Review records'); - } - - // Perform a "complex" search - // -------------------------- - - $results = BookQuery::create() - ->filterByTitle('Harry%') - ->find(); - $this->assertEquals(1, count($results)); - - $results = BookQuery::create() - ->where('Book.ISBN IN ?', array("0380977427", "0140422161")) - ->find(); - $this->assertEquals(2, count($results)); - - // Perform a "limit" search - // ------------------------ - - $results = BookQuery::create() - ->limit(2) - ->offset(1) - ->orderByTitle() - ->find(); - $this->assertEquals(2, count($results)); - // we ordered on book title, so we expect to get - $this->assertEquals("Harry Potter and the Order of the Phoenix", $results[0]->getTitle()); - $this->assertEquals("Quicksilver", $results[1]->getTitle()); - - // Perform a lookup & update! - // -------------------------- - - // Updating just-created book title - // First finding book by PK (=$qs_id) .... - $qs_lookup = BookQuery::create()->findPk($qs_id); - $this->assertNotNull($qs_lookup, 'just-created book can be found by pk'); - - $new_title = "Quicksilver (".crc32(uniqid(rand())).")"; - // Attempting to update found object - $qs_lookup->setTitle($new_title); - $qs_lookup->save(); - - // Making sure object was correctly updated: "; - $qs_lookup2 = BookQuery::create()->findPk($qs_id); - $this->assertEquals($new_title, $qs_lookup2->getTitle()); - - // Test some basic DATE / TIME stuff - // --------------------------------- - - // that's the control timestamp. - $control = strtotime('2004-02-29 00:00:00'); - - // should be two in the db - $r = ReviewQuery::create()->findOne(); - $r_id = $r->getId(); - $r->setReviewDate($control); - $r->save(); - - $r2 = ReviewQuery::create()->findPk($r_id); - $this->assertEquals(new Datetime('2004-02-29 00:00:00'), $r2->getReviewDate(null), 'ability to fetch DateTime'); - $this->assertEquals($control, $r2->getReviewDate('U'), 'ability to fetch native unix timestamp'); - $this->assertEquals('2-29-2004', $r2->getReviewDate('n-j-Y'), 'ability to use date() formatter'); - - // Handle BLOB/CLOB Columns - // ------------------------ - - $blob_path = dirname(__FILE__) . '/../../etc/lob/tin_drum.gif'; - $blob2_path = dirname(__FILE__) . '/../../etc/lob/propel.gif'; - $clob_path = dirname(__FILE__) . '/../../etc/lob/tin_drum.txt'; - - $m1 = new Media(); - $m1->setBook($phoenix); - $m1->setCoverImage(file_get_contents($blob_path)); - $m1->setExcerpt(file_get_contents($clob_path)); - $m1->save(); - $m1_id = $m1->getId(); - - $m1_lookup = MediaQuery::create()->findPk($m1_id); - - $this->assertNotNull($m1_lookup, 'Can find just-created media item'); - $this->assertEquals(file_get_contents($blob_path), stream_get_contents($m1_lookup->getCoverImage()), 'BLOB was correctly updated'); - $this->assertEquals(file_get_contents($clob_path), (string) $m1_lookup->getExcerpt(), 'CLOB was correctly updated'); - - // now update the BLOB column and save it & check the results - $m1_lookup->setCoverImage(file_get_contents($blob2_path)); - $m1_lookup->save(); - - $m2_lookup = MediaQuery::create()->findPk($m1_id); - $this->assertNotNull($m2_lookup, 'Can find just-created media item'); - - $this->assertEquals(file_get_contents($blob2_path), stream_get_contents($m2_lookup->getCoverImage()), 'BLOB was correctly overwritten'); - - // Test Validators - // --------------- - - require_once 'tools/helpers/bookstore/validator/ISBNValidator.php'; - - $bk1 = new Book(); - $bk1->setTitle("12345"); // min length is 10 - $ret = $bk1->validate(); - - $this->assertFalse($ret, 'validation failed'); - $failures = $bk1->getValidationFailures(); - $this->assertEquals(1, count($failures), '1 validation message was returned'); - - $el = array_shift($failures); - $this->assertContains("must be more than", $el->getMessage(), 'Expected validation message was returned'); - - $bk2 = new Book(); - $bk2->setTitle("Don Juan"); - $ret = $bk2->validate(); - - $this->assertFalse($ret, 'validation failed'); - - $failures = $bk2->getValidationFailures(); - $this->assertEquals(1, count($failures), '1 validation message was returned'); - - $el = array_shift($failures); - $this->assertContains("Book title already in database.", $el->getMessage(), 'Expected validation message was returned'); - - //Now trying some more complex validation. - $auth1 = new Author(); - $auth1->setFirstName("Hans"); - // last name required; will fail - - $bk1->setAuthor($auth1); - - $rev1 = new Review(); - $rev1->setReviewDate("08/09/2001"); - // will fail: reviewed_by column required - - $bk1->addReview($rev1); - - $ret2 = $bk1->validate(); - $this->assertFalse($ret2, 'validation failed'); - - $failures2 = $bk1->getValidationFailures(); - - $this->assertEquals(3, count($failures2), '3 validation messages were returned'); - - $expectedKeys = array( - AuthorPeer::LAST_NAME, - BookPeer::TITLE, - ReviewPeer::REVIEWED_BY, - ); - $this->assertEquals($expectedKeys, array_keys($failures2), 'correct columns failed'); - - $bk2 = new Book(); - $bk2->setTitle("12345678901"); // passes - - $auth2 = new Author(); - $auth2->setLastName("Blah"); //passes - $auth2->setEmail("some@body.com"); //passes - $auth2->setAge(50); //passes - $bk2->setAuthor($auth2); - - $rev2 = new Review(); - $rev2->setReviewedBy("Me!"); // passes - $rev2->setStatus("new"); // passes - $bk2->addReview($rev2); - - $ret3 = $bk2->validate(); - - $this->assertTrue($ret3, 'complex validation can pass'); - - // Testing doCount() functionality - // ------------------------------- - - // old way - $c = new Criteria(); - $records = BookPeer::doSelect($c); - $count = BookPeer::doCount($c); - $this->assertEquals($count, count($records), 'correct number of results'); - - // new way - $count = BookQuery::create()->count(); - $this->assertEquals($count, count($records), 'correct number of results'); - - // Test many-to-many relationships - // --------------- - - // init book club list 1 with 2 books - - $blc1 = new BookClubList(); - $blc1->setGroupLeader("Crazyleggs"); - $blc1->setTheme("Happiness"); - - $brel1 = new BookListRel(); - $brel1->setBook($phoenix); - - $brel2 = new BookListRel(); - $brel2->setBook($dj); - - $blc1->addBookListRel($brel1); - $blc1->addBookListRel($brel2); - - $blc1->save(); - - $this->assertNotNull($blc1->getId(), 'BookClubList 1 was saved'); - - // init book club list 2 with 1 book - - $blc2 = new BookClubList(); - $blc2->setGroupLeader("John Foo"); - $blc2->setTheme("Default"); - - $brel3 = new BookListRel(); - $brel3->setBook($phoenix); - - $blc2->addBookListRel($brel3); - - $blc2->save(); - - $this->assertNotNull($blc2->getId(), 'BookClubList 2 was saved'); - - // re-fetch books and lists from db to be sure that nothing is cached - - $crit = new Criteria(); - $crit->add(BookPeer::ID, $phoenix->getId()); - $phoenix = BookPeer::doSelectOne($crit); - $this->assertNotNull($phoenix, "book 'phoenix' has been re-fetched from db"); - - $crit = new Criteria(); - $crit->add(BookClubListPeer::ID, $blc1->getId()); - $blc1 = BookClubListPeer::doSelectOne($crit); - $this->assertNotNull($blc1, 'BookClubList 1 has been re-fetched from db'); - - $crit = new Criteria(); - $crit->add(BookClubListPeer::ID, $blc2->getId()); - $blc2 = BookClubListPeer::doSelectOne($crit); - $this->assertNotNull($blc2, 'BookClubList 2 has been re-fetched from db'); - - $relCount = $phoenix->countBookListRels(); - $this->assertEquals(2, $relCount, "book 'phoenix' has 2 BookListRels"); - - $relCount = $blc1->countBookListRels(); - $this->assertEquals(2, $relCount, 'BookClubList 1 has 2 BookListRels'); - - $relCount = $blc2->countBookListRels(); - $this->assertEquals(1, $relCount, 'BookClubList 2 has 1 BookListRel'); - - // Cleanup (tests DELETE) - // ---------------------- - - // Removing books that were just created - // First finding book by PK (=$phoenix_id) .... - $hp = BookQuery::create()->findPk($phoenix_id); - $this->assertNotNull($hp, 'Could find just-created book'); - - // Attempting to delete [multi-table] by found pk - $c = new Criteria(); - $c->add(BookPeer::ID, $hp->getId()); - // The only way for cascading to work currently - // is to specify the author_id and publisher_id (i.e. the fkeys - // have to be in the criteria). - $c->add(AuthorPeer::ID, $hp->getAuthor()->getId()); - $c->add(PublisherPeer::ID, $hp->getPublisher()->getId()); - $c->setSingleRecord(true); - BookPeer::doDelete($c); - - // Checking to make sure correct records were removed. - $this->assertEquals(3, AuthorPeer::doCount(new Criteria()), 'Correct records were removed from author table'); - $this->assertEquals(3, PublisherPeer::doCount(new Criteria()), 'Correct records were removed from publisher table'); - $this->assertEquals(3, BookPeer::doCount(new Criteria()), 'Correct records were removed from book table'); - - // Attempting to delete books by complex criteria - BookQuery::create() - ->filterByISBN("043935806X") - ->orWhere('Book.ISBN = ?', "0380977427") - ->orWhere('Book.ISBN = ?', "0140422161") - ->delete(); - - // Attempting to delete book [id = $td_id] - $td->delete(); - - // Attempting to delete authors - AuthorQuery::create()->filterById($stephenson_id)->delete(); - AuthorQuery::create()->filterById($byron_id)->delete(); - $grass->delete(); - - // Attempting to delete publishers - PublisherQuery::create()->filterById($morrow_id)->delete(); - PublisherQuery::create()->filterById($penguin_id)->delete(); - $vintage->delete(); - - // These have to be deleted manually also since we have onDelete - // set to SETNULL in the foreign keys in book. Is this correct? - $rowling->delete(); - $scholastic->delete(); - $blc1->delete(); - $blc2->delete(); - - $this->assertEquals(array(), AuthorPeer::doSelect(new Criteria()), 'no records in [author] table'); - $this->assertEquals(array(), PublisherPeer::doSelect(new Criteria()), 'no records in [publisher] table'); - $this->assertEquals(array(), BookPeer::doSelect(new Criteria()), 'no records in [book] table'); - $this->assertEquals(array(), ReviewPeer::doSelect(new Criteria()), 'no records in [review] table'); - $this->assertEquals(array(), MediaPeer::doSelect(new Criteria()), 'no records in [media] table'); - $this->assertEquals(array(), BookClubListPeer::doSelect(new Criteria()), 'no records in [book_club_list] table'); - $this->assertEquals(array(), BookListRelPeer::doSelect(new Criteria()), 'no records in [book_x_list] table'); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/misc/CharacterEncodingTest.php b/airtime_mvc/library/propel/test/testsuite/misc/CharacterEncodingTest.php deleted file mode 100644 index dfc9c03e70..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/misc/CharacterEncodingTest.php +++ /dev/null @@ -1,112 +0,0 @@ - - * @package misc - */ -class CharacterEncodingTest extends BookstoreTestBase -{ - /** - * Database adapter. - * @var DBAdapter - */ - private $adapter; - - public function setUp() - { - parent::setUp(); - if (!extension_loaded('iconv')) { - throw new Exception("Character-encoding tests require iconv extension to be loaded."); - } - } - - public function testUtf8() - { - $this->markTestSkipped(); - - $db = Propel::getDB(BookPeer::DATABASE_NAME); - - $title = "Смерть на брудершафт. Младенец и черт"; - // 1234567890123456789012345678901234567 - // 1 2 3 - - $a = new Author(); - $a->setFirstName("Б."); - $a->setLastName("АКУНИН"); - - $p = new Publisher(); - $p->setName("Детектив российский, остросюжетная проза"); - - $b = new Book(); - $b->setTitle($title); - $b->setISBN("B-59246"); - $b->setAuthor($a); - $b->setPublisher($p); - $b->save(); - - $b->reload(); - - $this->assertEquals(37, iconv_strlen($b->getTitle(), 'utf-8'), "Expected 37 characters (not bytes) in title."); - $this->assertTrue(strlen($b->getTitle()) > iconv_strlen($b->getTitle(), 'utf-8'), "Expected more bytes than characters in title."); - - } - - public function testInvalidCharset() - { - $this->markTestSkipped(); - - $db = Propel::getDB(BookPeer::DATABASE_NAME); - if ($db instanceof DBSQLite) { - $this->markTestSkipped(); - } - - $a = new Author(); - $a->setFirstName("Б."); - $a->setLastName("АКУНИН"); - $a->save(); - - $authorNameWindows1251 = iconv("utf-8", "windows-1251", $a->getLastName()); - $a->setLastName($authorNameWindows1251); - - // Different databases seem to handle invalid data differently (no surprise, I guess...) - if ($db instanceof DBPostgres) { - try { - $a->save(); - $this->fail("Expected an exception when saving non-UTF8 data to database."); - } catch (Exception $x) { - print $x; - } - - } else { - - // No exception is thrown by MySQL ... (others need to be tested still) - $a->save(); - $a->reload(); - - $this->assertEquals("",$a->getLastName(), "Expected last_name to be empty (after inserting invalid charset data)"); - } - - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/misc/FieldnameRelatedTest.php b/airtime_mvc/library/propel/test/testsuite/misc/FieldnameRelatedTest.php deleted file mode 100644 index fe43a94bbd..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/misc/FieldnameRelatedTest.php +++ /dev/null @@ -1,396 +0,0 @@ - - * @package misc - */ -class FieldnameRelatedTest extends PHPUnit_Framework_TestCase -{ - protected function setUp() - { - parent::setUp(); - set_include_path(get_include_path() . PATH_SEPARATOR . "fixtures/bookstore/build/classes"); - require_once 'bookstore/map/BookTableMap.php'; - require_once 'bookstore/BookPeer.php'; - require_once 'bookstore/Book.php'; - } - - /** - * Tests if fieldname type constants are defined - */ - public function testFieldNameTypeConstants () { - - $result = defined('BasePeer::TYPE_PHPNAME'); - $this->assertTrue($result); - } - - /** - * Tests the Base[Object]Peer::getFieldNames() method - */ - public function testGetFieldNames () - { - $types = array( - BasePeer::TYPE_PHPNAME, - BasePeer::TYPE_COLNAME, - BasePeer::TYPE_FIELDNAME, - BasePeer::TYPE_NUM - ); - $expecteds = array ( - BasePeer::TYPE_PHPNAME => array( - 0 => 'Id', - 1 => 'Title', - 2 => 'ISBN', - 3 => 'Price', - 4 => 'PublisherId', - 5 => 'AuthorId' - ), - BasePeer::TYPE_STUDLYPHPNAME => array( - 0 => 'id', - 1 => 'title', - 2 => 'iSBN', - 3 => 'price', - 4 => 'publisherId', - 5 => 'authorId' - ), - BasePeer::TYPE_COLNAME => array( - 0 => 'book.ID', - 1 => 'book.TITLE', - 2 => 'book.ISBN', - 3 => 'book.PRICE', - 4 => 'book.PUBLISHER_ID', - 5 => 'book.AUTHOR_ID' - ), - BasePeer::TYPE_FIELDNAME => array( - 0 => 'id', - 1 => 'title', - 2 => 'isbn', - 3 => 'price', - 4 => 'publisher_id', - 5 => 'author_id' - ), - BasePeer::TYPE_NUM => array( - 0 => 0, - 1 => 1, - 2 => 2, - 3 => 3, - 4 => 4, - 5 => 5 - ) - ); - - foreach ($types as $type) { - $results[$type] = BookPeer::getFieldnames($type); - $this->assertEquals( - $expecteds[$type], - $results[$type], - 'expected was: ' . print_r($expecteds[$type], 1) . - 'but getFieldnames() returned ' . print_r($results[$type], 1) - ); - } - } - - /** - * Tests the Base[Object]Peer::translateFieldName() method - */ - public function testTranslateFieldName () { - - $types = array( - BasePeer::TYPE_PHPNAME, - BasePeer::TYPE_STUDLYPHPNAME, - BasePeer::TYPE_COLNAME, - BasePeer::TYPE_FIELDNAME, - BasePeer::TYPE_NUM - ); - $expecteds = array ( - BasePeer::TYPE_PHPNAME => 'AuthorId', - BasePeer::TYPE_STUDLYPHPNAME => 'authorId', - BasePeer::TYPE_COLNAME => 'book.AUTHOR_ID', - BasePeer::TYPE_FIELDNAME => 'author_id', - BasePeer::TYPE_NUM => 5, - ); - foreach ($types as $fromType) { - foreach ($types as $toType) { - $name = $expecteds[$fromType]; - $expected = $expecteds[$toType]; - $result = BookPeer::translateFieldName($name, $fromType, $toType); - $this->assertEquals($expected, $result); - } - } - } - - /** - * Tests the BasePeer::getFieldNames() method - */ - public function testGetFieldNamesStatic () { - - $types = array( - BasePeer::TYPE_PHPNAME, - BasePeer::TYPE_STUDLYPHPNAME, - BasePeer::TYPE_COLNAME, - BasePeer::TYPE_FIELDNAME, - BasePeer::TYPE_NUM - ); - $expecteds = array ( - BasePeer::TYPE_PHPNAME => array( - 0 => 'Id', - 1 => 'Title', - 2 => 'ISBN', - 3 => 'Price', - 4 => 'PublisherId', - 5 => 'AuthorId' - ), - BasePeer::TYPE_STUDLYPHPNAME => array( - 0 => 'id', - 1 => 'title', - 2 => 'iSBN', - 3 => 'price', - 4 => 'publisherId', - 5 => 'authorId' - ), - BasePeer::TYPE_COLNAME => array( - 0 => 'book.ID', - 1 => 'book.TITLE', - 2 => 'book.ISBN', - 3 => 'book.PRICE', - 4 => 'book.PUBLISHER_ID', - 5 => 'book.AUTHOR_ID' - ), - BasePeer::TYPE_FIELDNAME => array( - 0 => 'id', - 1 => 'title', - 2 => 'isbn', - 3 => 'price', - 4 => 'publisher_id', - 5 => 'author_id' - ), - BasePeer::TYPE_NUM => array( - 0 => 0, - 1 => 1, - 2 => 2, - 3 => 3, - 4 => 4, - 5 => 5 - ) - ); - - foreach ($types as $type) { - $results[$type] = BasePeer::getFieldnames('Book', $type); - $this->assertEquals( - $expecteds[$type], - $results[$type], - 'expected was: ' . print_r($expecteds[$type], 1) . - 'but getFieldnames() returned ' . print_r($results[$type], 1) - ); - } - } - - /** - * Tests the BasePeer::translateFieldName() method - */ - public function testTranslateFieldNameStatic () { - - $types = array( - BasePeer::TYPE_PHPNAME, - BasePeer::TYPE_STUDLYPHPNAME, - BasePeer::TYPE_COLNAME, - BasePeer::TYPE_FIELDNAME, - BasePeer::TYPE_NUM - ); - $expecteds = array ( - BasePeer::TYPE_PHPNAME => 'AuthorId', - BasePeer::TYPE_STUDLYPHPNAME => 'authorId', - BasePeer::TYPE_COLNAME => 'book.AUTHOR_ID', - BasePeer::TYPE_FIELDNAME => 'author_id', - BasePeer::TYPE_NUM => 5, - ); - foreach ($types as $fromType) { - foreach ($types as $toType) { - $name = $expecteds[$fromType]; - $expected = $expecteds[$toType]; - $result = BasePeer::translateFieldName('Book', $name, $fromType, $toType); - $this->assertEquals($expected, $result); - } - } - } - - /** - * Tests the Base[Object]::getByName() method - */ - public function testGetByName() { - - $types = array( - BasePeer::TYPE_PHPNAME => 'Title', - BasePeer::TYPE_STUDLYPHPNAME => 'title', - BasePeer::TYPE_COLNAME => 'book.TITLE', - BasePeer::TYPE_FIELDNAME => 'title', - BasePeer::TYPE_NUM => 1 - ); - - $book = new Book(); - $book->setTitle('Harry Potter and the Order of the Phoenix'); - - $expected = 'Harry Potter and the Order of the Phoenix'; - foreach ($types as $type => $name) { - $result = $book->getByName($name, $type); - $this->assertEquals($expected, $result); - } - } - - /** - * Tests the Base[Object]::setByName() method - */ - public function testSetByName() { - - $book = new Book(); - $types = array( - BasePeer::TYPE_PHPNAME => 'Title', - BasePeer::TYPE_STUDLYPHPNAME => 'title', - BasePeer::TYPE_COLNAME => 'book.TITLE', - BasePeer::TYPE_FIELDNAME => 'title', - BasePeer::TYPE_NUM => 1 - ); - - $title = 'Harry Potter and the Order of the Phoenix'; - foreach ($types as $type => $name) { - $book->setByName($name, $title, $type); - $result = $book->getTitle(); - $this->assertEquals($title, $result); - } - } - - /** - * Tests the Base[Object]::fromArray() method - * - * this also tests populateFromArray() because that's an alias - */ - public function testFromArray(){ - - $types = array( - BasePeer::TYPE_PHPNAME, - BasePeer::TYPE_STUDLYPHPNAME, - BasePeer::TYPE_COLNAME, - BasePeer::TYPE_FIELDNAME, - BasePeer::TYPE_NUM - ); - $expecteds = array ( - BasePeer::TYPE_PHPNAME => array ( - 'Title' => 'Harry Potter and the Order of the Phoenix', - 'ISBN' => '043935806X' - ), - BasePeer::TYPE_STUDLYPHPNAME => array ( - 'title' => 'Harry Potter and the Order of the Phoenix', - 'iSBN' => '043935806X' - ), - BasePeer::TYPE_COLNAME => array ( - 'book.TITLE' => 'Harry Potter and the Order of the Phoenix', - 'book.ISBN' => '043935806X' - ), - BasePeer::TYPE_FIELDNAME => array ( - 'title' => 'Harry Potter and the Order of the Phoenix', - 'isbn' => '043935806X' - ), - BasePeer::TYPE_NUM => array ( - '1' => 'Harry Potter and the Order of the Phoenix', - '2' => '043935806X' - ) - ); - - $book = new Book(); - - foreach ($types as $type) { - $expected = $expecteds[$type]; - $book->fromArray($expected, $type); - $result = array(); - foreach (array_keys($expected) as $key) { - $result[$key] = $book->getByName($key, $type); - } - $this->assertEquals( - $expected, - $result, - 'expected was: ' . print_r($expected, 1) . - 'but fromArray() returned ' . print_r($result, 1) - ); - } - } - - /** - * Tests the Base[Object]::toArray() method - */ - public function testToArray(){ - - $types = array( - BasePeer::TYPE_PHPNAME, - BasePeer::TYPE_STUDLYPHPNAME, - BasePeer::TYPE_COLNAME, - BasePeer::TYPE_FIELDNAME, - BasePeer::TYPE_NUM - ); - - $book = new Book(); - $book->fromArray(array ( - 'Title' => 'Harry Potter and the Order of the Phoenix', - 'ISBN' => '043935806X' - )); - - $expecteds = array ( - BasePeer::TYPE_PHPNAME => array ( - 'Title' => 'Harry Potter and the Order of the Phoenix', - 'ISBN' => '043935806X' - ), - BasePeer::TYPE_STUDLYPHPNAME => array ( - 'title' => 'Harry Potter and the Order of the Phoenix', - 'iSBN' => '043935806X' - ), - BasePeer::TYPE_COLNAME => array ( - 'book.TITLE' => 'Harry Potter and the Order of the Phoenix', - 'book.ISBN' => '043935806X' - ), - BasePeer::TYPE_FIELDNAME => array ( - 'title' => 'Harry Potter and the Order of the Phoenix', - 'isbn' => '043935806X' - ), - BasePeer::TYPE_NUM => array ( - '1' => 'Harry Potter and the Order of the Phoenix', - '2' => '043935806X' - ) - ); - - foreach ($types as $type) { - $expected = $expecteds[$type]; - $result = $book->toArray($type); - // remove ID since its autoincremented at each test iteration - $result = array_slice($result, 1, 2, true); - $this->assertEquals( - $expected, - $result, - 'expected was: ' . print_r($expected, 1) . - 'but toArray() returned ' . print_r($result, 1) - ); - } - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/misc/Ticket520Test.php b/airtime_mvc/library/propel/test/testsuite/misc/Ticket520Test.php deleted file mode 100644 index e95390b05f..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/misc/Ticket520Test.php +++ /dev/null @@ -1,250 +0,0 @@ -setFirstName("Douglas"); - $a->setLastName("Adams"); - - $b1 = new Book(); - $b1->setTitle("The Hitchhikers Guide To The Galaxy"); - $a->addBook($b1); - - $b2 = new Book(); - $b2->setTitle("The Restaurant At The End Of The Universe"); - $a->addBook($b2); - - // Passing no Criteria means "use the internal collection or query the database" - // in that case two objects are added, so it should return 2 - $books = $a->getBooks(); - $this->assertEquals(2, count($books)); - } - - public function testNewObjectsNotAvailableWithCriteria() - { - $a = new Author(); - $a->setFirstName("Douglas"); - $a->setLastName("Adams"); - - $b1 = new Book(); - $b1->setTitle("The Hitchhikers Guide To The Galaxy"); - $a->addBook($b1); - - $b2 = new Book(); - $b2->setTitle("The Restaurant At The End Of The Universe"); - $a->addBook($b2); - - $c = new Criteria(); - $c->add(BookPeer::TITLE, "%Hitchhiker%", Criteria::LIKE); - - $guides = $a->getBooks($c); - $this->assertEquals(0, count($guides), 'Passing a Criteria means "force a database query"'); - } - - public function testNewObjectsAvailableAfterCriteria() - { - $a = new Author(); - $a->setFirstName("Douglas"); - $a->setLastName("Adams"); - - $b1 = new Book(); - $b1->setTitle("The Hitchhikers Guide To The Galaxy"); - $a->addBook($b1); - - $b2 = new Book(); - $b2->setTitle("The Restaurant At The End Of The Universe"); - $a->addBook($b2); - - $c = new Criteria(); - $c->add(BookPeer::TITLE, "%Hitchhiker%", Criteria::LIKE); - - $guides = $a->getBooks($c); - - $books = $a->getBooks(); - $this->assertEquals(2, count($books), 'A previous query with a Criteria does not erase the internal collection'); - } - - public function testSavedObjectsWithCriteria() - { - $a = new Author(); - $a->setFirstName("Douglas"); - $a->setLastName("Adams"); - - $b1 = new Book(); - $b1->setTitle("The Hitchhikers Guide To The Galaxy"); - $a->addBook($b1); - - $b2 = new Book(); - $b2->setTitle("The Restaurant At The End Of The Universe"); - $a->addBook($b2); - - $c = new Criteria(); - $c->add(BookPeer::TITLE, "%Hitchhiker%", Criteria::LIKE); - - $guides = $a->getBooks($c); - - $a->save(); - $booksAfterSave = $a->getBooks($c); - $this->assertEquals(1, count($booksAfterSave), 'A previous query with a Criteria is not cached'); - } - - public function testAddNewObjectAfterSave() - { - $a = new Author(); - $a->setFirstName("Douglas"); - $a->setLastName("Adams"); - - $a->save(); - - $b1 = new Book(); - $b1->setTitle("The Hitchhikers Guide To The Galaxy"); - $a->addBook($b1); - - $books = $a->getBooks(); - $this->assertEquals(1, count($books)); - $this->assertTrue($books->contains($b1)); - - /* Now this is the initial ticket 520: If we have a saved author, - add a new book but happen to call getBooks() before we call save() again, - the book used to be lost. */ - $a->save(); - $this->assertFalse($b1->isNew(), 'related objects are also saved after fetching them'); - } - - public function testAddNewObjectAfterSaveWithPoisonedCache() - { - /* This is like testAddNewObjectAfterSave(), - but this time we "poison" the author's $colBooks cache - before adding the book by calling getBooks(). */ - - $a = new Author(); - $a->setFirstName("Douglas"); - $a->setLastName("Adams"); - - $a->save(); - $a->getBooks(); - - $b1 = new Book(); - $b1->setTitle("The Hitchhikers Guide To The Galaxy"); - $a->addBook($b1); - - $books = $a->getBooks(); - $this->assertEquals(1, count($books)); - $this->assertTrue($books->contains($b1), 'new related objects not deleted after fetching them'); - } - - public function testCachePoisoning() - { - /* Like testAddNewObjectAfterSaveWithPoisonedCache, emphasizing - cache poisoning. */ - - $a = new Author(); - $a->setFirstName("Douglas"); - $a->setLastName("Adams"); - - $a->save(); - - $c = new Criteria(); - $c->add(BookPeer::TITLE, "%Restaurant%", Criteria::LIKE); - - $this->assertEquals(0, count($a->getBooks($c))); - - $b1 = new Book(); - $b1->setTitle("The Hitchhikers Guide To The Galaxy"); - $a->addBook($b1); - - /* Like testAddNewObjectAfterSaveWithPoisonedCache, but this time - with a real criteria. */ - $this->assertEquals(0, count($a->getBooks($c))); - - $a->save(); - $this->assertFalse($b1->isNew()); - $this->assertEquals(0, count($a->getBooks($c))); - } - - public function testDeletedBookDisappears() - { - $this->markTestSkipped(); - - $a = new Author(); - $a->setFirstName("Douglas"); - $a->setLastName("Adams"); - - $b1 = new Book(); - $b1->setTitle("The Hitchhikers Guide To The Galaxy"); - $a->addBook($b1); - - $b2 = new Book(); - $b2->setTitle("The Restaurant At The End Of The Universe"); - $a->addBook($b2); - - /* As you cannot write $a->remove($b2), you have to delete $b2 - directly. */ - - /* All objects unsaved. As of revision 851, this circumvents the - $colBooks cache. Anyway, fails because getBooks() never checks if - a colBooks entry has been deleted. */ - $this->assertEquals(2, count($a->getBooks())); - $b2->delete(); - $this->assertEquals(1, count($a->getBooks())); - - /* Even if we had saved everything before and the delete() had - actually updated the DB, the $b2 would still be a "zombie" in - $a's $colBooks field. */ - } - - public function testNewObjectsGetLostOnJoin() { - /* While testNewObjectsAvailableWhenSaveNotCalled passed as of - revision 851, in this case we call getBooksJoinPublisher() instead - of just getBooks(). get...Join...() does not contain the check whether - the current object is new, it will always consult the DB and lose the - new objects entirely. Thus the test fails. (At least for Propel 1.2 ?!?) */ - $this->markTestSkipped(); - - $a = new Author(); - $a->setFirstName("Douglas"); - $a->setLastName("Adams"); - - $p = new Publisher(); - $p->setName('Pan Books Ltd.'); - - $b1 = new Book(); - $b1->setTitle("The Hitchhikers Guide To The Galaxy"); - $b1->setPublisher($p); // uh... did not check that :^) - $a->addBook($b1); - - $b2 = new Book(); - $b2->setTitle("The Restaurant At The End Of The Universe"); - $b2->setPublisher($p); - $a->addBook($b2); - - $books = $a->getBooksJoinPublisher(); - $this->assertEquals(2, count($books)); - $this->assertContains($b1, $books); - $this->assertContains($b2, $books); - - $a->save(); - $this->assertFalse($b1->isNew()); - $this->assertFalse($b2->isNew()); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/adapter/DBOracleTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/adapter/DBOracleTest.php deleted file mode 100644 index 25f1f1d171..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/adapter/DBOracleTest.php +++ /dev/null @@ -1,47 +0,0 @@ -setDbName('oracle'); - BookPeer::addSelectColumns($c); - $c->setLimit(1); - $params = array(); - $sql = BasePeer::createSelectSql($c, $params); - $this->assertEquals('SELECT B.* FROM (SELECT A.*, rownum AS PROPEL_ROWNUM FROM (SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM book) A ) B WHERE B.PROPEL_ROWNUM <= 1', $sql, 'applyLimit() creates a subselect with the original column names by default'); - } - - public function testApplyLimitDuplicateColumnName() - { - Propel::setDb('oracle', new DBOracle()); - $c = new Criteria(); - $c->setDbName('oracle'); - BookPeer::addSelectColumns($c); - AuthorPeer::addSelectColumns($c); - $c->setLimit(1); - $params = array(); - $sql = BasePeer::createSelectSql($c, $params); - $this->assertEquals('SELECT B.* FROM (SELECT A.*, rownum AS PROPEL_ROWNUM FROM (SELECT book.ID AS book_ID, book.TITLE AS book_TITLE, book.ISBN AS book_ISBN, book.PRICE AS book_PRICE, book.PUBLISHER_ID AS book_PUBLISHER_ID, book.AUTHOR_ID AS book_AUTHOR_ID, author.ID AS author_ID, author.FIRST_NAME AS author_FIRST_NAME, author.LAST_NAME AS author_LAST_NAME, author.EMAIL AS author_EMAIL, author.AGE AS author_AGESELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID, author.ID, author.FIRST_NAME, author.LAST_NAME, author.EMAIL, author.AGE FROM book, author) A ) B WHERE B.PROPEL_ROWNUM <= 1', $sql, 'applyLimit() creates a subselect with aliased column names when a duplicate column name is found'); - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelArrayCollectionTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelArrayCollectionTest.php deleted file mode 100644 index a6a374936f..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelArrayCollectionTest.php +++ /dev/null @@ -1,152 +0,0 @@ -con); - } - - public function testSave() - { - $books = PropelQuery::from('Book')->setFormatter(ModelCriteria::FORMAT_ARRAY)->find(); - foreach ($books as &$book) { - $book['Title'] = 'foo'; - } - $books->save(); - // check that the modifications are persisted - BookPeer::clearInstancePool(); - $books = PropelQuery::from('Book')->find(); - foreach ($books as $book) { - $this->assertEquals('foo', $book->getTitle('foo')); - } - } - - public function testDelete() - { - $books = PropelQuery::from('Book')->setFormatter(ModelCriteria::FORMAT_ARRAY)->find(); - $books->delete(); - // check that the modifications are persisted - BookPeer::clearInstancePool(); - $books = PropelQuery::from('Book')->find(); - $this->assertEquals(0, count($books)); - } - - public function testGetPrimaryKeys() - { - $books = PropelQuery::from('Book')->setFormatter(ModelCriteria::FORMAT_ARRAY)->find(); - $pks = $books->getPrimaryKeys(); - $this->assertEquals(4, count($pks)); - - $keys = array('Book_0', 'Book_1', 'Book_2', 'Book_3'); - $this->assertEquals($keys, array_keys($pks)); - - $pks = $books->getPrimaryKeys(false); - $keys = array(0, 1, 2, 3); - $this->assertEquals($keys, array_keys($pks)); - - $bookObjects = PropelQuery::from('Book')->find(); - foreach ($pks as $key => $value) { - $this->assertEquals($bookObjects[$key]->getPrimaryKey(), $value); - } - } - - public function testFromArray() - { - $author = new Author(); - $author->setFirstName('Jane'); - $author->setLastName('Austen'); - $author->save(); - $books = array( - array('Title' => 'Mansfield Park', 'AuthorId' => $author->getId()), - array('Title' => 'Pride And PRejudice', 'AuthorId' => $author->getId()) - ); - $col = new PropelArrayCollection(); - $col->setModel('Book'); - $col->fromArray($books); - $col->save(); - - $nbBooks = PropelQuery::from('Book')->count(); - $this->assertEquals(6, $nbBooks); - - $booksByJane = PropelQuery::from('Book b') - ->join('b.Author a') - ->where('a.LastName = ?', 'Austen') - ->count(); - $this->assertEquals(2, $booksByJane); - } - - public function testToArray() - { - $books = PropelQuery::from('Book')->setFormatter(ModelCriteria::FORMAT_ARRAY)->find(); - $booksArray = $books->toArray(); - $this->assertEquals(4, count($booksArray)); - - $bookObjects = PropelQuery::from('Book')->find(); - foreach ($booksArray as $key => $book) { - $this->assertEquals($bookObjects[$key]->toArray(), $book); - } - - $booksArray = $books->toArray(); - $keys = array(0, 1, 2, 3); - $this->assertEquals($keys, array_keys($booksArray)); - - $booksArray = $books->toArray(null, true); - $keys = array('Book_0', 'Book_1', 'Book_2', 'Book_3'); - $this->assertEquals($keys, array_keys($booksArray)); - - $booksArray = $books->toArray('Title'); - $keys = array('Harry Potter and the Order of the Phoenix', 'Quicksilver', 'Don Juan', 'The Tin Drum'); - $this->assertEquals($keys, array_keys($booksArray)); - - $booksArray = $books->toArray('Title', true); - $keys = array('Book_Harry Potter and the Order of the Phoenix', 'Book_Quicksilver', 'Book_Don Juan', 'Book_The Tin Drum'); - $this->assertEquals($keys, array_keys($booksArray)); - } - - public function getWorkerObject() - { - $col = new TestablePropelArrayCollection(); - $col->setModel('Book'); - $book = $col->getWorkerObject(); - $this->assertTrue($book instanceof Book, 'getWorkerObject() returns an object of the collection model'); - $book->foo = 'bar'; - $this->assertEqual('bar', $col->getWorkerObject()->foo, 'getWorkerObject() returns always the same object'); - } - - /** - * @expectedException PropelException - */ - public function testGetWorkerObjectNoModel() - { - $col = new TestablePropelArrayCollection(); - $col->getWorkerObject(); - } - -} - -class TestablePropelArrayCollection extends PropelArrayCollection -{ - public function getWorkerObject() - { - return parent::getWorkerObject(); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelCollectionTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelCollectionTest.php deleted file mode 100644 index fa76def29a..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelCollectionTest.php +++ /dev/null @@ -1,353 +0,0 @@ -assertEquals('bar1', $col[0], 'PropelCollection allows access via $foo[$index]'); - $this->assertEquals('bar2', $col[1], 'PropelCollection allows access via $foo[$index]'); - $this->assertEquals('bar3', $col[2], 'PropelCollection allows access via $foo[$index]'); - } - - public function testGetData() - { - $col = new PropelCollection(); - $this->assertEquals(array(), $col->getData(), 'getData() returns an empty array for empty collections'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $this->assertEquals($data, $col->getData(), 'getData() returns the collection data'); - $col[0] = 'bar4'; - $this->assertEquals('bar1', $data[0], 'getData() returns a copy of the collection data'); - } - - public function testSetData() - { - $col = new PropelCollection(); - $col->setData(array()); - $this->assertEquals(array(), $col->getArrayCopy(), 'setData() can set data to an empty array'); - - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection(); - $col->setData($data); - $this->assertEquals($data, $col->getArrayCopy(), 'setData() sets the collection data'); - } - - public function testGetPosition() - { - $col = new PropelCollection(); - $this->assertEquals(0, $col->getPosition(), 'getPosition() returns 0 on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $expectedPositions = array(0, 1, 2); - foreach ($col as $element) { - $this->assertEquals(array_shift($expectedPositions), $col->getPosition(), 'getPosition() returns the current position'); - $this->assertEquals($element, $col->getCurrent(), 'getPosition() does not change the current position'); - } - } - - public function testGetFirst() - { - $col = new PropelCollection(); - $this->assertNull($col->getFirst(), 'getFirst() returns null on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $this->assertEquals('bar1', $col->getFirst(), 'getFirst() returns value of the first element in the collection'); - } - - public function testIsFirst() - { - $col = new PropelCollection(); - $this->assertTrue($col->isFirst(), 'isFirst() returns true on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $expectedRes = array(true, false, false); - foreach ($col as $element) { - $this->assertEquals(array_shift($expectedRes), $col->isFirst(), 'isFirst() returns true only for the first element'); - $this->assertEquals($element, $col->getCurrent(), 'isFirst() does not change the current position'); - } - } - - public function testGetPrevious() - { - $col = new PropelCollection(); - $this->assertNull($col->getPrevious(), 'getPrevious() returns null on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $this->assertNull($col->getPrevious(), 'getPrevious() returns null when the internal pointer is at the beginning of the list'); - $col->getNext(); - $this->assertEquals('bar1', $col->getPrevious(), 'getPrevious() returns the previous element'); - $this->assertEquals('bar1', $col->getCurrent(), 'getPrevious() decrements the internal pointer'); - } - - public function testGetCurrent() - { - $col = new PropelCollection(); - $this->assertNull($col->getCurrent(), 'getCurrent() returns null on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $this->assertEquals('bar1', $col->getCurrent(), 'getCurrent() returns the value of the first element when the internal pointer is at the beginning of the list'); - foreach ($col as $key => $value) { - $this->assertEquals($value, $col->getCurrent(), 'getCurrent() returns the value of the current element in the collection'); - } - } - - public function testGetNext() - { - $col = new PropelCollection(); - $this->assertNull($col->getNext(), 'getNext() returns null on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $this->assertEquals('bar2', $col->getNext(), 'getNext() returns the second element when the internal pointer is at the beginning of the list'); - $this->assertEquals('bar2', $col->getCurrent(), 'getNext() increments the internal pointer'); - $col->getNext(); - $this->assertNull($col->getNext(), 'getNext() returns null when the internal pointer is at the end of the list'); - } - - public function testGetLast() - { - $col = new PropelCollection(); - $this->assertNull($col->getLast(), 'getLast() returns null on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $this->assertEquals('bar3', $col->getLast(), 'getLast() returns the last element'); - $this->assertEquals('bar3', $col->getCurrent(), 'getLast() moves the internal pointer to the last element'); - } - - public function testIsLAst() - { - $col = new PropelCollection(); - $this->assertTrue($col->isLast(), 'isLast() returns true on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $expectedRes = array(false, false, true); - foreach ($col as $element) { - $this->assertEquals(array_shift($expectedRes), $col->isLast(), 'isLast() returns true only for the last element'); - $this->assertEquals($element, $col->getCurrent(), 'isLast() does not change the current position'); - } - } - - public function testIsEmpty() - { - $col = new PropelCollection(); - $this->assertTrue($col->isEmpty(), 'isEmpty() returns true on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $this->assertFalse($col->isEmpty(), 'isEmpty() returns false on a non empty collection'); - } - - public function testIsOdd() - { - $col = new PropelCollection(); - $this->assertFalse($col->isOdd(), 'isOdd() returns false on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection(); - $col->setData($data); - foreach ($col as $key => $value) { - $this->assertEquals((boolean) ($key % 2), $col->isOdd(), 'isOdd() returns true only when the key is odd'); - } - } - - public function testIsEven() - { - $col = new PropelCollection(); - $this->assertTrue($col->isEven(), 'isEven() returns true on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection(); - $col->setData($data); - foreach ($col as $key => $value) { - $this->assertEquals(!(boolean) ($key % 2), $col->isEven(), 'isEven() returns true only when the key is even'); - } - } - - public function testGet() - { - $col = new PropelCollection(array('foo', 'bar')); - $this->assertEquals('foo', $col->get(0), 'get() returns an element from its key'); - } - - /** - * @expectedException PropelException - */ - public function testGetUnknownOffset() - { - $col = new PropelCollection(); - $bar = $col->get('foo'); - } - - public function testPop() - { - $col = new PropelCollection(); - $this->assertNull($col->pop(), 'pop() returns null on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $this->assertEquals('bar3', $col->pop(), 'pop() returns the last element of the collection'); - $this->assertEquals(array('bar1', 'bar2'), $col->getData(), 'pop() removes the last element of the collection'); - } - - public function testShift() - { - $col = new PropelCollection(); - $this->assertNull($col->shift(), 'shift() returns null on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $this->assertEquals('bar1', $col->shift(), 'shift() returns the first element of the collection'); - $this->assertEquals(array('bar2', 'bar3'), $col->getData(), 'shift() removes the first element of the collection'); - } - - public function testPrepend() - { - $col = new PropelCollection(); - $this->assertEquals(1, $col->prepend('a'), 'prepend() returns 1 on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $this->assertEquals(4, $col->prepend('bar4'), 'prepend() returns the new number of elements in the collection when adding a variable'); - $this->assertEquals(array('bar4', 'bar1', 'bar2', 'bar3'), $col->getData(), 'prepend() adds new element to the beginning of the collection'); - } - - public function testSet() - { - $col = new PropelCollection(); - $col->set(4, 'bar'); - $this->assertEquals(array(4 => 'bar'), $col->getData(), 'set() adds an element to the collection with a key'); - - $col = new PropelCollection(); - $col->set(null, 'foo'); - $col->set(null, 'bar'); - $this->assertEquals(array('foo', 'bar'), $col->getData(), 'set() adds an element to the collection without a key'); - } - - public function testRemove() - { - $col = new PropelCollection(); - $col[0] = 'bar'; - $col[1] = 'baz'; - $col->remove(1); - $this->assertEquals(array('bar'), $col->getData(), 'remove() removes an element from its key'); - } - - /** - * @expectedException PropelException - */ - public function testRemoveUnknownOffset() - { - $col = new PropelCollection(); - $col->remove(2); - } - - public function testClear() - { - $col = new PropelCollection(); - $col->clear(); - $this->assertEquals(array(), $col->getData(), 'clear() empties the collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $col->clear(); - $this->assertEquals(array(), $col->getData(), 'clear() empties the collection'); - } - - public function testContains() - { - $col = new PropelCollection(); - $this->assertFalse($col->contains('foo_1'), 'contains() returns false on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $this->assertTrue($col->contains('bar1'), 'contains() returns true when the key exists'); - $this->assertFalse($col->contains('bar4'), 'contains() returns false when the key does not exist'); - } - - public function testSearch() - { - $col = new PropelCollection(); - $this->assertFalse($col->search('bar1'), 'search() returns false on an empty collection'); - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $this->assertEquals(1, $col->search('bar2'), 'search() returns the key when the element exists'); - $this->assertFalse($col->search('bar4'), 'search() returns false when the element does not exist'); - } - - public function testSerializable() - { - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $col->setModel('Foo'); - $serializedCol = serialize($col); - - $col2 = unserialize($serializedCol); - $this->assertEquals($col, $col2, 'PropelCollection is serializable'); - } - - public function testGetIterator() - { - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $it1 = $col->getIterator(); - $it2 = $col->getIterator(); - $this->assertNotSame($it1, $it2, 'getIterator() returns always a new iterator'); - } - - public function testGetInternalIterator() - { - $data = array('bar1', 'bar2', 'bar3'); - $col = new PropelCollection($data); - $it1 = $col->getInternalIterator(); - $it2 = $col->getINternalIterator(); - $this->assertSame($it1, $it2, 'getInternalIterator() returns always the same iterator'); - $col->getInternalIterator()->next(); - $this->assertEquals('bar2', $col->getInternalIterator()->current(), 'getInternalIterator() returns always the same iterator'); - } - - public function testGetPeerClass() - { - $col = new PropelCollection(); - $col->setModel('Book'); - $this->assertEquals('BookPeer', $col->getPeerClass(), 'getPeerClass() returns the Peer class for the collection model'); - } - - /** - * @expectedException PropelException - */ - public function testGetPeerClassNoModel() - { - $col = new PropelCollection(); - $col->getPeerClass(); - } - - public function testGetConnection() - { - $col = new PropelCollection(); - $col->setModel('Book'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $this->assertEquals($con, $col->getConnection(), 'getConnection() returns a connection for the collection model'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME, Propel::CONNECTION_WRITE); - $this->assertEquals($con, $col->getConnection(Propel::CONNECTION_WRITE), 'getConnection() accepts a connection type parameter'); - } - - /** - * @expectedException PropelException - */ - public function testGetConnectionNoModel() - { - $col = new PropelCollection(); - $col->getConnection(); - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelObjectCollectionTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelObjectCollectionTest.php deleted file mode 100644 index 55c14f2a90..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelObjectCollectionTest.php +++ /dev/null @@ -1,236 +0,0 @@ -con); - } - - public function testSave() - { - $books = PropelQuery::from('Book')->find(); - foreach ($books as $book) { - $book->setTitle('foo'); - } - $books->save(); - // check that all the books are saved - foreach ($books as $book) { - $this->assertFalse($book->isModified()); - } - // check that the modifications are persisted - BookPeer::clearInstancePool(); - $books = PropelQuery::from('Book')->find(); - foreach ($books as $book) { - $this->assertEquals('foo', $book->getTitle('foo')); - } - } - - public function testDelete() - { - $books = PropelQuery::from('Book')->find(); - $books->delete(); - // check that all the books are deleted - foreach ($books as $book) { - $this->assertTrue($book->isDeleted()); - } - // check that the modifications are persisted - BookPeer::clearInstancePool(); - $books = PropelQuery::from('Book')->find(); - $this->assertEquals(0, count($books)); - } - - public function testGetPrimaryKeys() - { - $books = PropelQuery::from('Book')->find(); - $pks = $books->getPrimaryKeys(); - $this->assertEquals(4, count($pks)); - - $keys = array('Book_0', 'Book_1', 'Book_2', 'Book_3'); - $this->assertEquals($keys, array_keys($pks)); - - $pks = $books->getPrimaryKeys(false); - $keys = array(0, 1, 2, 3); - $this->assertEquals($keys, array_keys($pks)); - - foreach ($pks as $key => $value) { - $this->assertEquals($books[$key]->getPrimaryKey(), $value); - } - } - - public function testFromArray() - { - $author = new Author(); - $author->setFirstName('Jane'); - $author->setLastName('Austen'); - $author->save(); - $books = array( - array('Title' => 'Mansfield Park', 'AuthorId' => $author->getId()), - array('Title' => 'Pride And PRejudice', 'AuthorId' => $author->getId()) - ); - $col = new PropelObjectCollection(); - $col->setModel('Book'); - $col->fromArray($books); - $col->save(); - - $nbBooks = PropelQuery::from('Book')->count(); - $this->assertEquals(6, $nbBooks); - - $booksByJane = PropelQuery::from('Book b') - ->join('b.Author a') - ->where('a.LastName = ?', 'Austen') - ->count(); - $this->assertEquals(2, $booksByJane); - } - - public function testToArray() - { - $books = PropelQuery::from('Book')->find(); - $booksArray = $books->toArray(); - $this->assertEquals(4, count($booksArray)); - - foreach ($booksArray as $key => $book) { - $this->assertEquals($books[$key]->toArray(), $book); - } - - $booksArray = $books->toArray(); - $keys = array(0, 1, 2, 3); - $this->assertEquals($keys, array_keys($booksArray)); - - $booksArray = $books->toArray(null, true); - $keys = array('Book_0', 'Book_1', 'Book_2', 'Book_3'); - $this->assertEquals($keys, array_keys($booksArray)); - - $booksArray = $books->toArray('Title'); - $keys = array('Harry Potter and the Order of the Phoenix', 'Quicksilver', 'Don Juan', 'The Tin Drum'); - $this->assertEquals($keys, array_keys($booksArray)); - - $booksArray = $books->toArray('Title', true); - $keys = array('Book_Harry Potter and the Order of the Phoenix', 'Book_Quicksilver', 'Book_Don Juan', 'Book_The Tin Drum'); - $this->assertEquals($keys, array_keys($booksArray)); - } - - public function testGetArrayCopy() - { - $books = PropelQuery::from('Book')->find(); - $booksArray = $books->getArrayCopy(); - $this->assertEquals(4, count($booksArray)); - - foreach ($booksArray as $key => $book) { - $this->assertEquals($books[$key], $book); - } - - $booksArray = $books->getArrayCopy(); - $keys = array(0, 1, 2, 3); - $this->assertEquals($keys, array_keys($booksArray)); - - $booksArray = $books->getArrayCopy(null, true); - $keys = array('Book_0', 'Book_1', 'Book_2', 'Book_3'); - $this->assertEquals($keys, array_keys($booksArray)); - - $booksArray = $books->getArrayCopy('Title'); - $keys = array('Harry Potter and the Order of the Phoenix', 'Quicksilver', 'Don Juan', 'The Tin Drum'); - $this->assertEquals($keys, array_keys($booksArray)); - - $booksArray = $books->getArrayCopy('Title', true); - $keys = array('Book_Harry Potter and the Order of the Phoenix', 'Book_Quicksilver', 'Book_Don Juan', 'Book_The Tin Drum'); - $this->assertEquals($keys, array_keys($booksArray)); - } - - public function testToKeyValue() - { - $books = PropelQuery::from('Book')->find(); - - $expected = array(); - foreach ($books as $book) { - $expected[$book->getTitle()] = $book->getISBN(); - } - $booksArray = $books->toKeyValue('Title', 'ISBN'); - $this->assertEquals(4, count($booksArray)); - $this->assertEquals($expected, $booksArray, 'toKeyValue() turns the collection to an associative array'); - - $expected = array(); - foreach ($books as $book) { - $expected[$book->getISBN()] = $book->getTitle(); - } - $booksArray = $books->toKeyValue('ISBN'); - $this->assertEquals($expected, $booksArray, 'toKeyValue() uses __toString() for the value if no second field name is passed'); - - $expected = array(); - foreach ($books as $book) { - $expected[$book->getId()] = $book->getTitle(); - } - $booksArray = $books->toKeyValue(); - $this->assertEquals($expected, $booksArray, 'toKeyValue() uses primary key for the key and __toString() for the value if no field name is passed'); - } - - public function testPopulateRelation() - { - AuthorPeer::clearInstancePool(); - BookPeer::clearInstancePool(); - $authors = AuthorQuery::create()->find(); - $books = $authors->populateRelation('Book'); - $this->assertTrue($books instanceof PropelObjectCollection, 'populateRelation() returns a PropelCollection instance'); - $this->assertEquals('Book', $books->getModel(), 'populateRelation() returns a collection of the related objects'); - $this->assertEquals(4, count($books), 'populateRelation() the list of related objects'); - } - - public function testPopulateRelationCriteria() - { - AuthorPeer::clearInstancePool(); - BookPeer::clearInstancePool(); - $authors = AuthorQuery::create()->find(); - $c = new Criteria(); - $c->setLimit(3); - $books = $authors->populateRelation('Book', $c); - $this->assertEquals(3, count($books), 'populateRelation() accepts an optional criteria object to filter the query'); - } - - public function testPopulateRelationOneToMany() - { - $con = Propel::getConnection(); - AuthorPeer::clearInstancePool(); - BookPeer::clearInstancePool(); - $authors = AuthorQuery::create()->find($con); - $count = $con->getQueryCount(); - $books = $authors->populateRelation('Book', null, $con); - foreach ($authors as $author) { - foreach ($author->getBooks() as $book) { - $this->assertEquals($author, $book->getAuthor()); - } - } - $this->assertEquals($count + 1, $con->getQueryCount(), 'populateRelation() populates a one-to-many relationship with a single supplementary query'); - } - - public function testPopulateRelationManyToOne() - { - $con = Propel::getConnection(); - AuthorPeer::clearInstancePool(); - BookPeer::clearInstancePool(); - $books = BookQuery::create()->find($con); - $count = $con->getQueryCount(); - $books->populateRelation('Author', null, $con); - foreach ($books as $book) { - $author = $book->getAuthor(); - } - $this->assertEquals($count + 1, $con->getQueryCount(), 'populateRelation() populates a many-to-one relationship with a single supplementary query'); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelOnDemandCollectionTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelOnDemandCollectionTest.php deleted file mode 100644 index 8ceddb22e6..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelOnDemandCollectionTest.php +++ /dev/null @@ -1,76 +0,0 @@ -con); - $this->books = PropelQuery::from('Book')->setFormatter(ModelCriteria::FORMAT_ON_DEMAND)->find(); - } - - public function testSetFormatter() - { - $this->assertTrue($this->books instanceof PropelOnDemandCollection); - $this->assertEquals(4, count($this->books)); - } - - public function testKeys() - { - $i = 0; - foreach ($this->books as $key => $book) { - $this->assertEquals($i, $key); - $i++; - } - } - - /** - * @expectedException PropelException - */ - public function testoffsetExists() - { - $this->books->offsetExists(2); - } - - /** - * @expectedException PropelException - */ - public function testoffsetGet() - { - $this->books->offsetGet(2); - } - - /** - * @expectedException PropelException - */ - public function testoffsetSet() - { - $this->books->offsetSet(2, 'foo'); - } - - /** - * @expectedException PropelException - */ - public function testoffsetUnset() - { - $this->books->offsetUnset(2); - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelOnDemandIteratorTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelOnDemandIteratorTest.php deleted file mode 100644 index 587f4602e2..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/collection/PropelOnDemandIteratorTest.php +++ /dev/null @@ -1,59 +0,0 @@ -con); - } - - public function testInstancePoolingDisabled() - { - Propel::enableInstancePooling(); - $books = PropelQuery::from('Book') - ->setFormatter(ModelCriteria::FORMAT_ON_DEMAND) - ->find($this->con); - foreach ($books as $book) { - $this->assertFalse(Propel::isInstancePoolingEnabled()); - } - } - - public function testInstancePoolingReenabled() - { - Propel::enableInstancePooling(); - $books = PropelQuery::from('Book') - ->setFormatter(ModelCriteria::FORMAT_ON_DEMAND) - ->find($this->con); - foreach ($books as $book) { - } - $this->assertTrue(Propel::isInstancePoolingEnabled()); - - Propel::disableInstancePooling(); - $books = PropelQuery::from('Book') - ->setFormatter(ModelCriteria::FORMAT_ON_DEMAND) - ->find($this->con); - foreach ($books as $book) { - } - $this->assertFalse(Propel::isInstancePoolingEnabled()); - Propel::enableInstancePooling(); - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/connection/PropelPDOTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/connection/PropelPDOTest.php deleted file mode 100644 index 0befc1d1d3..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/connection/PropelPDOTest.php +++ /dev/null @@ -1,425 +0,0 @@ -assertFalse($con->getAttribute(PropelPDO::PROPEL_ATTR_CACHE_PREPARES)); - $con->setAttribute(PropelPDO::PROPEL_ATTR_CACHE_PREPARES, true); - $this->assertTrue($con->getAttribute(PropelPDO::PROPEL_ATTR_CACHE_PREPARES)); - - $con->setAttribute(PDO::ATTR_CASE, PDO::CASE_LOWER); - $this->assertEquals(PDO::CASE_LOWER, $con->getAttribute(PDO::ATTR_CASE)); - } - - public function testNestedTransactionCommit() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $driver = $con->getAttribute(PDO::ATTR_DRIVER_NAME); - - $this->assertEquals(0, $con->getNestedTransactionCount(), 'nested transaction is equal to 0 before transaction'); - $this->assertFalse($con->isInTransaction(), 'PropelPDO is not in transaction by default'); - - $con->beginTransaction(); - - $this->assertEquals(1, $con->getNestedTransactionCount(), 'nested transaction is incremented after main transaction begin'); - $this->assertTrue($con->isInTransaction(), 'PropelPDO is in transaction after main transaction begin'); - - try { - - $a = new Author(); - $a->setFirstName('Test'); - $a->setLastName('User'); - $a->save($con); - $authorId = $a->getId(); - $this->assertNotNull($authorId, "Expected valid new author ID"); - - $con->beginTransaction(); - - $this->assertEquals(2, $con->getNestedTransactionCount(), 'nested transaction is incremented after nested transaction begin'); - $this->assertTrue($con->isInTransaction(), 'PropelPDO is in transaction after nested transaction begin'); - - try { - - $a2 = new Author(); - $a2->setFirstName('Test2'); - $a2->setLastName('User2'); - $a2->save($con); - $authorId2 = $a2->getId(); - $this->assertNotNull($authorId2, "Expected valid new author ID"); - - $con->commit(); - - $this->assertEquals(1, $con->getNestedTransactionCount(), 'nested transaction decremented after nested transaction commit'); - $this->assertTrue($con->isInTransaction(), 'PropelPDO is in transaction after main transaction commit'); - - } catch (Exception $e) { - $con->rollBack(); - throw $e; - } - - $con->commit(); - - $this->assertEquals(0, $con->getNestedTransactionCount(), 'nested transaction decremented after main transaction commit'); - $this->assertFalse($con->isInTransaction(), 'PropelPDO is not in transaction after main transaction commit'); - - } catch (Exception $e) { - $con->rollBack(); - } - - AuthorPeer::clearInstancePool(); - $at = AuthorPeer::retrieveByPK($authorId); - $this->assertNotNull($at, "Committed transaction is persisted in database"); - $at2 = AuthorPeer::retrieveByPK($authorId2); - $this->assertNotNull($at2, "Committed transaction is persisted in database"); - } - - /** - * @link http://propel.phpdb.org/trac/ticket/699 - */ - public function testNestedTransactionRollBackRethrow() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $driver = $con->getAttribute(PDO::ATTR_DRIVER_NAME); - - $con->beginTransaction(); - try { - - $a = new Author(); - $a->setFirstName('Test'); - $a->setLastName('User'); - $a->save($con); - $authorId = $a->getId(); - - $this->assertNotNull($authorId, "Expected valid new author ID"); - - $con->beginTransaction(); - - $this->assertEquals(2, $con->getNestedTransactionCount(), 'nested transaction is incremented after nested transaction begin'); - $this->assertTrue($con->isInTransaction(), 'PropelPDO is in transaction after nested transaction begin'); - - try { - $con->exec('INVALID SQL'); - $this->fail("Expected exception on invalid SQL"); - } catch (PDOException $x) { - $con->rollBack(); - - $this->assertEquals(1, $con->getNestedTransactionCount(), 'nested transaction decremented after nested transaction rollback'); - $this->assertTrue($con->isInTransaction(), 'PropelPDO is in transaction after main transaction rollback'); - - throw $x; - } - - $con->commit(); - } catch (Exception $x) { - $con->rollBack(); - } - - AuthorPeer::clearInstancePool(); - $at = AuthorPeer::retrieveByPK($authorId); - $this->assertNull($at, "Rolled back transaction is not persisted in database"); - } - - /** - * @link http://propel.phpdb.org/trac/ticket/699 - */ - public function testNestedTransactionRollBackSwallow() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $driver = $con->getAttribute(PDO::ATTR_DRIVER_NAME); - - $con->beginTransaction(); - try { - - $a = new Author(); - $a->setFirstName('Test'); - $a->setLastName('User'); - $a->save($con); - - $authorId = $a->getId(); - $this->assertNotNull($authorId, "Expected valid new author ID"); - - $con->beginTransaction(); - try { - - $a2 = new Author(); - $a2->setFirstName('Test2'); - $a2->setLastName('User2'); - $a2->save($con); - $authorId2 = $a2->getId(); - $this->assertNotNull($authorId2, "Expected valid new author ID"); - - $con->exec('INVALID SQL'); - $this->fail("Expected exception on invalid SQL"); - } catch (PDOException $e) { - $con->rollBack(); - // NO RETHROW - } - - $a3 = new Author(); - $a3->setFirstName('Test2'); - $a3->setLastName('User2'); - $a3->save($con); - - $authorId3 = $a3->getId(); - $this->assertNotNull($authorId3, "Expected valid new author ID"); - - $con->commit(); - $this->fail("Commit fails after a nested rollback"); - } catch (PropelException $e) { - $this->assertTrue(true, "Commit fails after a nested rollback"); - $con->rollback(); - } - - AuthorPeer::clearInstancePool(); - $at = AuthorPeer::retrieveByPK($authorId); - $this->assertNull($at, "Rolled back transaction is not persisted in database"); - $at2 = AuthorPeer::retrieveByPK($authorId2); - $this->assertNull($at2, "Rolled back transaction is not persisted in database"); - $at3 = AuthorPeer::retrieveByPK($authorId3); - $this->assertNull($at3, "Rolled back nested transaction is not persisted in database"); - } - - public function testNestedTransactionForceRollBack() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $driver = $con->getAttribute(PDO::ATTR_DRIVER_NAME); - - // main transaction - $con->beginTransaction(); - - $a = new Author(); - $a->setFirstName('Test'); - $a->setLastName('User'); - $a->save($con); - $authorId = $a->getId(); - - // nested transaction - $con->beginTransaction(); - - $a2 = new Author(); - $a2->setFirstName('Test2'); - $a2->setLastName('User2'); - $a2->save($con); - $authorId2 = $a2->getId(); - - // force rollback - $con->forceRollback(); - - $this->assertEquals(0, $con->getNestedTransactionCount(), 'nested transaction is null after nested transaction forced rollback'); - $this->assertFalse($con->isInTransaction(), 'PropelPDO is not in transaction after nested transaction force rollback'); - - AuthorPeer::clearInstancePool(); - $at = AuthorPeer::retrieveByPK($authorId); - $this->assertNull($at, "Rolled back transaction is not persisted in database"); - $at2 = AuthorPeer::retrieveByPK($authorId2); - $this->assertNull($at2, "Forced Rolled back nested transaction is not persisted in database"); - } - - public function testLatestQuery() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $con->setLastExecutedQuery(123); - $this->assertEquals(123, $con->getLastExecutedQuery(), 'PropelPDO has getter and setter for last executed query'); - } - - public function testLatestQueryMoreThanTenArgs() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c = new Criteria(); - $c->add(BookPeer::ID, array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), Criteria::IN); - $books = BookPeer::doSelect($c, $con); - $expected = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` WHERE book.ID IN (1,1,1,1,1,1,1,1,1,1,1,1)"; - $this->assertEquals($expected, $con->getLastExecutedQuery(), 'PropelPDO correctly replaces arguments in queries'); - } - - public function testQueryCount() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $count = $con->getQueryCount(); - $con->incrementQueryCount(); - $this->assertEquals($count + 1, $con->getQueryCount(), 'PropelPDO has getter and incrementer for query count'); - } - - public function testUseDebug() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $con->useDebug(false); - $this->assertEquals(array('PDOStatement'), $con->getAttribute(PDO::ATTR_STATEMENT_CLASS), 'Statement is PDOStatement when debug is false'); - $con->useDebug(true); - $this->assertEquals(array('DebugPDOStatement', array($con)), $con->getAttribute(PDO::ATTR_STATEMENT_CLASS), 'statement is DebugPDOStament when debug is true'); - } - - public function testDebugLatestQuery() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c = new Criteria(); - $c->add(BookPeer::TITLE, 'Harry%s', Criteria::LIKE); - - $con->useDebug(false); - $this->assertEquals('', $con->getLastExecutedQuery(), 'PropelPDO reinitializes the latest query when debug is set to false'); - - $books = BookPeer::doSelect($c, $con); - $this->assertEquals('', $con->getLastExecutedQuery(), 'PropelPDO does not update the last executed query when useLogging is false'); - - $con->useDebug(true); - $books = BookPeer::doSelect($c, $con); - $latestExecutedQuery = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` WHERE book.TITLE LIKE 'Harry%s'"; - if (!Propel::getDB(BookPeer::DATABASE_NAME)->useQuoteIdentifier()) { - $latestExecutedQuery = str_replace('`', '', $latestExecutedQuery); - } - $this->assertEquals($latestExecutedQuery, $con->getLastExecutedQuery(), 'PropelPDO updates the last executed query when useLogging is true'); - - BookPeer::doDeleteAll($con); - $latestExecutedQuery = "DELETE FROM `book`"; - $this->assertEquals($latestExecutedQuery, $con->getLastExecutedQuery(), 'PropelPDO updates the last executed query on delete operations'); - - $sql = 'DELETE FROM book WHERE 1=1'; - $con->exec($sql); - $this->assertEquals($sql, $con->getLastExecutedQuery(), 'PropelPDO updates the last executed query on exec operations'); - - $sql = 'DELETE FROM book WHERE 2=2'; - $con->query($sql); - $this->assertEquals($sql, $con->getLastExecutedQuery(), 'PropelPDO updates the last executed query on query operations'); - - $stmt = $con->prepare('DELETE FROM book WHERE 1=:p1'); - $stmt->bindValue(':p1', '2'); - $stmt->execute(); - $this->assertEquals("DELETE FROM book WHERE 1='2'", $con->getLastExecutedQuery(), 'PropelPDO updates the last executed query on prapared statements'); - - $con->useDebug(false); - $this->assertEquals('', $con->getLastExecutedQuery(), 'PropelPDO reinitializes the latest query when debug is set to false'); - - $con->useDebug(true); - } - - public function testDebugQueryCount() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c = new Criteria(); - $c->add(BookPeer::TITLE, 'Harry%s', Criteria::LIKE); - - $con->useDebug(false); - $this->assertEquals(0, $con->getQueryCount(), 'PropelPDO does not update the query count when useLogging is false'); - - $books = BookPeer::doSelect($c, $con); - $this->assertEquals(0, $con->getQueryCount(), 'PropelPDO does not update the query count when useLogging is false'); - - $con->useDebug(true); - $books = BookPeer::doSelect($c, $con); - $this->assertEquals(1, $con->getQueryCount(), 'PropelPDO updates the query count when useLogging is true'); - - BookPeer::doDeleteAll($con); - $this->assertEquals(2, $con->getQueryCount(), 'PropelPDO updates the query count on delete operations'); - - $sql = 'DELETE FROM book WHERE 1=1'; - $con->exec($sql); - $this->assertEquals(3, $con->getQueryCount(), 'PropelPDO updates the query count on exec operations'); - - $sql = 'DELETE FROM book WHERE 2=2'; - $con->query($sql); - $this->assertEquals(4, $con->getQueryCount(), 'PropelPDO updates the query count on query operations'); - - $stmt = $con->prepare('DELETE FROM book WHERE 1=:p1'); - $stmt->bindValue(':p1', '2'); - $stmt->execute(); - $this->assertEquals(5, $con->getQueryCount(), 'PropelPDO updates the query count on prapared statements'); - - $con->useDebug(false); - $this->assertEquals(0, $con->getQueryCount(), 'PropelPDO reinitializes the query count when debug is set to false'); - - $con->useDebug(true); - } - - public function testDebugLog() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $config = Propel::getConfiguration(PropelConfiguration::TYPE_OBJECT); - - // save data to return to normal state after test - $logger = $con->getLogger(); - - $testLog = new myLogger(); - $con->setLogger($testLog); - - $logEverything = array('PropelPDO::exec', 'PropelPDO::query', 'PropelPDO::beginTransaction', 'PropelPDO::commit', 'PropelPDO::rollBack', 'DebugPDOStatement::execute'); - Propel::getConfiguration(PropelConfiguration::TYPE_OBJECT)->setParameter("debugpdo.logging.methods", $logEverything); - $con->useDebug(true); - - // test transaction log - $con->beginTransaction(); - $this->assertEquals('log: Begin transaction', $testLog->latestMessage, 'PropelPDO logs begin transation in debug mode'); - - $con->commit(); - $this->assertEquals('log: Commit transaction', $testLog->latestMessage, 'PropelPDO logs commit transation in debug mode'); - - $con->beginTransaction(); - $con->rollBack(); - $this->assertEquals('log: Rollback transaction', $testLog->latestMessage, 'PropelPDO logs rollback transation in debug mode'); - - $con->beginTransaction(); - $testLog->latestMessage = ''; - $con->beginTransaction(); - $this->assertEquals('', $testLog->latestMessage, 'PropelPDO does not log nested begin transation in debug mode'); - $con->commit(); - $this->assertEquals('', $testLog->latestMessage, 'PropelPDO does not log nested commit transation in debug mode'); - $con->beginTransaction(); - $con->rollBack(); - $this->assertEquals('', $testLog->latestMessage, 'PropelPDO does not log nested rollback transation in debug mode'); - $con->rollback(); - - // test query log - $con->beginTransaction(); - - $c = new Criteria(); - $c->add(BookPeer::TITLE, 'Harry%s', Criteria::LIKE); - - $books = BookPeer::doSelect($c, $con); - $latestExecutedQuery = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` WHERE book.TITLE LIKE 'Harry%s'"; - $this->assertEquals('log: ' . $latestExecutedQuery, $testLog->latestMessage, 'PropelPDO logs queries and populates bound parameters in debug mode'); - - BookPeer::doDeleteAll($con); - $latestExecutedQuery = "DELETE FROM `book`"; - $this->assertEquals('log: ' . $latestExecutedQuery, $testLog->latestMessage, 'PropelPDO logs deletion queries in debug mode'); - - $latestExecutedQuery = 'DELETE FROM book WHERE 1=1'; - $con->exec($latestExecutedQuery); - $this->assertEquals('log: ' . $latestExecutedQuery, $testLog->latestMessage, 'PropelPDO logs exec queries in debug mode'); - - $con->commit(); - - // return to normal state after test - $con->setLogger($logger); - $config->setParameter("debugpdo.logging.methods", array('PropelPDO::exec', 'PropelPDO::query', 'DebugPDOStatement::execute')); - } -} - -class myLogger -{ - public $latestMessage = ''; - - public function __call($method, $arguments) - { - $this->latestMessage = $method . ': ' . array_shift($arguments); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelArrayFormatterTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelArrayFormatterTest.php deleted file mode 100644 index b1bcde670f..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelArrayFormatterTest.php +++ /dev/null @@ -1,129 +0,0 @@ -query('SELECT * FROM book'); - $formatter = new PropelArrayFormatter(); - try { - $books = $formatter->format($stmt); - $this->fail('PropelArrayFormatter::format() throws an exception when called with no valid criteria'); - } catch (PropelException $e) { - $this->assertTrue(true,'PropelArrayFormatter::format() throws an exception when called with no valid criteria'); - } - } - - public function testFormatManyResults() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book'); - $formatter = new PropelArrayFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $books = $formatter->format($stmt); - - $this->assertTrue($books instanceof PropelCollection, 'PropelArrayFormatter::format() returns a PropelCollection'); - $this->assertEquals(4, count($books), 'PropelArrayFormatter::format() returns as many rows as the results in the query'); - foreach ($books as $book) { - $this->assertTrue(is_array($book), 'PropelArrayFormatter::format() returns an array of arrays'); - } - } - - public function testFormatOneResult() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book WHERE book.TITLE = "Quicksilver"'); - $formatter = new PropelArrayFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $books = $formatter->format($stmt); - - $this->assertTrue($books instanceof PropelCollection, 'PropelArrayFormatter::format() returns a PropelCollection'); - $this->assertEquals(1, count($books), 'PropelArrayFormatter::format() returns as many rows as the results in the query'); - $book = $books->shift(); - $this->assertTrue(is_array($book), 'PropelArrayFormatter::format() returns an array of arrays'); - $this->assertEquals('Quicksilver', $book['Title'], 'PropelArrayFormatter::format() returns the arrays matching the query'); - $expected = array('Id', 'Title', 'ISBN', 'Price', 'PublisherId', 'AuthorId'); - $this->assertEquals($expected, array_keys($book), 'PropelArrayFormatter::format() returns an associative array with column phpNames as keys'); - } - - public function testFormatNoResult() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book WHERE book.TITLE = "foo"'); - $formatter = new PropelArrayFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $books = $formatter->format($stmt); - - $this->assertTrue($books instanceof PropelCollection, 'PropelArrayFormatter::format() returns a PropelCollection'); - $this->assertEquals(0, count($books), 'PropelArrayFormatter::format() returns as many rows as the results in the query'); - } - - public function testFormatOneNoCriteria() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book'); - $formatter = new PropelArrayFormatter(); - try { - $book = $formatter->formatOne($stmt); - $this->fail('PropelArrayFormatter::formatOne() throws an exception when called with no valid criteria'); - } catch (PropelException $e) { - $this->assertTrue(true,'PropelArrayFormatter::formatOne() throws an exception when called with no valid criteria'); - } - } - - public function testFormatOneManyResults() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book'); - $formatter = new PropelArrayFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $book = $formatter->formatOne($stmt); - - $this->assertTrue(is_array($book), 'PropelArrayFormatter::formatOne() returns an array'); - $this->assertEquals(array('Id', 'Title', 'ISBN', 'Price', 'PublisherId', 'AuthorId'), array_keys($book), 'PropelArrayFormatter::formatOne() returns a single row even if the query has many results'); - } - - public function testFormatOneNoResult() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book WHERE book.TITLE = "foo"'); - $formatter = new PropelArrayFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $book = $formatter->formatOne($stmt); - - $this->assertNull($book, 'PropelArrayFormatter::formatOne() returns null when no result'); - } - - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelArrayFormatterWithTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelArrayFormatterWithTest.php deleted file mode 100644 index e0addfc469..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelArrayFormatterWithTest.php +++ /dev/null @@ -1,383 +0,0 @@ -findOne($con); - $count = $con->getQueryCount(); - $this->assertEquals($book['Title'], 'Don Juan', 'Main object is correctly hydrated ' . $msg); - $author = $book['Author']; - $this->assertEquals($author['LastName'], 'Byron', 'Related object is correctly hydrated ' . $msg); - $publisher = $book['Publisher']; - $this->assertEquals($publisher['Name'], 'Penguin', 'Related object is correctly hydrated ' . $msg); - } - - public function testFindOneWith() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $c->orderBy('Book.Title'); - $c->join('Book.Author'); - $c->with('Author'); - $c->join('Book.Publisher'); - $c->with('Publisher'); - $this->assertCorrectHydration1($c, 'without instance pool'); - } - - public function testFindOneWithAlias() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $c->orderBy('Book.Title'); - $c->join('Book.Author a'); - $c->with('a'); - $c->join('Book.Publisher p'); - $c->with('p'); - $this->assertCorrectHydration1($c, 'with alias'); - } - - public function testFindOneWithMainAlias() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $c->setModelAlias('b', true); - $c->orderBy('b.Title'); - $c->join('b.Author a'); - $c->with('a'); - $c->join('b.Publisher p'); - $c->with('p'); - $this->assertCorrectHydration1($c, 'with main alias'); - } - - public function testFindOneWithUsingInstancePool() - { - BookstoreDataPopulator::populate(); - // instance pool contains all objects by default, since they were just populated - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $c->orderBy('Book.Title'); - $c->join('Book.Author'); - $c->with('Author'); - $c->join('Book.Publisher'); - $c->with('Publisher'); - $this->assertCorrectHydration1($c, 'with instance pool'); - } - - public function testFindOneWithEmptyLeftJoin() - { - // save a book with no author - $b = new Book(); - $b->setTitle('Foo'); - $b->save(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $c->where('Book.Title = ?', 'Foo'); - $c->leftJoin('Book.Author'); - $c->with('Author'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $book = $c->findOne($con); - $count = $con->getQueryCount(); - $author = $book['Author']; - $this->assertEquals(array(), $author, 'Related object is not hydrated if empty'); - } - - public function testFindOneWithRelationName() - { - BookstoreDataPopulator::populate(); - BookstoreEmployeePeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'BookstoreEmployee'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $c->join('BookstoreEmployee.Supervisor s'); - $c->with('s'); - $c->where('s.Name = ?', 'John'); - $emp = $c->findOne(); - $this->assertEquals($emp['Name'], 'Pieter', 'Main object is correctly hydrated'); - $sup = $emp['Supervisor']; - $this->assertEquals($sup['Name'], 'John', 'Related object is correctly hydrated'); - } - - /** - * @see http://www.propelorm.org/ticket/959 - */ - public function testFindOneWithSameRelatedObject() - { - BookPeer::doDeleteAll(); - AuthorPeer::doDeleteAll(); - $auth = new Author(); - $auth->setFirstName('John'); - $auth->save(); - $book1 = new Book(); - $book1->setTitle('Hello'); - $book1->setAuthor($auth); - $book1->save(); - $book2 = new Book(); - $book2->setTitle('World'); - $book2->setAuthor($auth); - $book2->save(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $c->join('Book.Author'); - $c->with('Author'); - $books = $c->find(); - - $this->assertEquals(2, count($books)); - $firstBook = $books[0]; - $this->assertTrue(isset($firstBook['Author'])); - $secondBook = $books[1]; - $this->assertTrue(isset($secondBook['Author'])); - } - - public function testFindOneWithDuplicateRelation() - { - EssayPeer::doDeleteAll(); - $auth1 = new Author(); - $auth1->setFirstName('John'); - $auth1->save(); - $auth2 = new Author(); - $auth2->setFirstName('Jack'); - $auth2->save(); - $essay = new Essay(); - $essay->setTitle('Foo'); - $essay->setFirstAuthor($auth1->getId()); - $essay->setSecondAuthor($auth2->getId()); - $essay->save(); - AuthorPeer::clearInstancePool(); - EssayPeer::clearInstancePool(); - - $c = new ModelCriteria('bookstore', 'Essay'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $c->join('Essay.AuthorRelatedByFirstAuthor'); - $c->with('AuthorRelatedByFirstAuthor'); - $c->where('Essay.Title = ?', 'Foo'); - $essay = $c->findOne(); - $this->assertEquals($essay['Title'], 'Foo', 'Main object is correctly hydrated'); - $firstAuthor = $essay['AuthorRelatedByFirstAuthor']; - $this->assertEquals($firstAuthor['FirstName'], 'John', 'Related object is correctly hydrated'); - $this->assertFalse(array_key_exists('AuthorRelatedBySecondAuthor', $essay), 'Only related object specified in with() is hydrated'); - } - - public function testFindOneWithDistantClass() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Review'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $c->where('Review.Recommended = ?', true); - $c->join('Review.Book'); - $c->with('Book'); - $c->join('Book.Author'); - $c->with('Author'); - $review = $c->findOne(); - $this->assertEquals($review['ReviewedBy'], 'Washington Post', 'Main object is correctly hydrated'); - $book = $review['Book']; - $this->assertEquals('Harry Potter and the Order of the Phoenix', $book['Title'], 'Related object is correctly hydrated'); - $author = $book['Author']; - $this->assertEquals('J.K.', $author['FirstName'], 'Related object is correctly hydrated'); - } - - /** - * @expectedException PropelException - */ - public function testFindOneWithOneToManyAndLimit() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $c->add(BookPeer::ISBN, '043935806X'); - $c->leftJoin('Book.Review'); - $c->with('Review'); - $c->limit(5); - $books = $c->find(); - } - - public function testFindOneWithOneToMany() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $c->add(BookPeer::ISBN, '043935806X'); - $c->leftJoin('Book.Review'); - $c->with('Review'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $books = $c->find($con); - $this->assertEquals(1, count($books), 'with() does not duplicate the main object'); - $book = $books[0]; - $this->assertEquals($book['Title'], 'Harry Potter and the Order of the Phoenix', 'Main object is correctly hydrated'); - $this->assertEquals(array('Id', 'Title', 'ISBN', 'Price', 'PublisherId', 'AuthorId', 'Reviews'), array_keys($book), 'with() adds a plural index for the one to many relationship'); - $reviews = $book['Reviews']; - $this->assertEquals(2, count($reviews), 'Related objects are correctly hydrated'); - $review1 = $reviews[0]; - $this->assertEquals(array('Id', 'ReviewedBy', 'ReviewDate', 'Recommended', 'Status', 'BookId'), array_keys($review1), 'with() Related objects are correctly hydrated'); - } - - public function testFindOneWithOneToManyCustomOrder() - { - $author1 = new Author(); - $author1->setFirstName('AA'); - $author2 = new Author(); - $author2->setFirstName('BB'); - $book1 = new Book(); - $book1->setTitle('Aaa'); - $book1->setAuthor($author1); - $book1->save(); - $book2 = new Book(); - $book2->setTitle('Bbb'); - $book2->setAuthor($author2); - $book2->save(); - $book3 = new Book(); - $book3->setTitle('Ccc'); - $book3->setAuthor($author1); - $book3->save(); - $authors = AuthorQuery::create() - ->setFormatter(ModelCriteria::FORMAT_ARRAY) - ->leftJoin('Author.Book') - ->orderBy('Book.Title') - ->with('Book') - ->find(); - $this->assertEquals(2, count($authors), 'with() used on a many-to-many doesn\'t change the main object count'); - } - - public function testFindOneWithOneToManyThenManyToOne() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Author'); - $c->add(AuthorPeer::LAST_NAME, 'Rowling'); - $c->leftJoinWith('Author.Book'); - $c->leftJoinWith('Book.Review'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $authors = $c->find($con); - $this->assertEquals(1, count($authors), 'with() does not duplicate the main object'); - $rowling = $authors[0]; - $this->assertEquals($rowling['FirstName'], 'J.K.', 'Main object is correctly hydrated'); - $books = $rowling['Books']; - $this->assertEquals(1, count($books), 'Related objects are correctly hydrated'); - $book = $books[0]; - $this->assertEquals($book['Title'], 'Harry Potter and the Order of the Phoenix', 'Related object is correctly hydrated'); - $reviews = $book['Reviews']; - $this->assertEquals(2, count($reviews), 'Related objects are correctly hydrated'); - } - - public function testFindOneWithOneToManyThenManyToOneUsingAlias() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Author'); - $c->add(AuthorPeer::LAST_NAME, 'Rowling'); - $c->leftJoinWith('Author.Book b'); - $c->leftJoinWith('b.Review r'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $authors = $c->find($con); - $this->assertEquals(1, count($authors), 'with() does not duplicate the main object'); - $rowling = $authors[0]; - $this->assertEquals($rowling['FirstName'], 'J.K.', 'Main object is correctly hydrated'); - $books = $rowling['Books']; - $this->assertEquals(1, count($books), 'Related objects are correctly hydrated'); - $book = $books[0]; - $this->assertEquals($book['Title'], 'Harry Potter and the Order of the Phoenix', 'Related object is correctly hydrated'); - $reviews = $book['Reviews']; - $this->assertEquals(2, count($reviews), 'Related objects are correctly hydrated'); - } - - public function testFindOneWithColumn() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $c->filterByTitle('The Tin Drum'); - $c->join('Book.Author'); - $c->withColumn('Author.FirstName', 'AuthorName'); - $c->withColumn('Author.LastName', 'AuthorName2'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $book = $c->findOne($con); - $this->assertEquals(array('Id', 'Title', 'ISBN', 'Price', 'PublisherId', 'AuthorId', 'AuthorName', 'AuthorName2'), array_keys($book), 'withColumn() do not change the resulting model class'); - $this->assertEquals('The Tin Drum', $book['Title']); - $this->assertEquals('Gunter', $book['AuthorName'], 'PropelArrayFormatter adds withColumns as columns'); - $this->assertEquals('Grass', $book['AuthorName2'], 'PropelArrayFormatter correctly hydrates all as columns'); - } - - public function testFindOneWithClassAndColumn() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ARRAY); - $c->filterByTitle('The Tin Drum'); - $c->join('Book.Author'); - $c->withColumn('Author.FirstName', 'AuthorName'); - $c->withColumn('Author.LastName', 'AuthorName2'); - $c->with('Author'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $book = $c->findOne($con); - $this->assertEquals(array('Id', 'Title', 'ISBN', 'Price', 'PublisherId', 'AuthorId', 'Author', 'AuthorName', 'AuthorName2'), array_keys($book), 'withColumn() do not change the resulting model class'); - $this->assertEquals('The Tin Drum', $book['Title']); - $this->assertEquals('Gunter', $book['Author']['FirstName'], 'PropelArrayFormatter correctly hydrates withclass and columns'); - $this->assertEquals('Gunter', $book['AuthorName'], 'PropelArrayFormatter adds withColumns as columns'); - $this->assertEquals('Grass', $book['AuthorName2'], 'PropelArrayFormatter correctly hydrates all as columns'); - } - - public function testFindPkWithOneToMany() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $book = BookQuery::create() - ->findOneByTitle('Harry Potter and the Order of the Phoenix', $con); - $pk = $book->getPrimaryKey(); - BookPeer::clearInstancePool(); - $book = BookQuery::create() - ->setFormatter(ModelCriteria::FORMAT_ARRAY) - ->joinWith('Review') - ->findPk($pk, $con); - $reviews = $book['Reviews']; - $this->assertEquals(2, count($reviews), 'Related objects are correctly hydrated'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelObjectFormatterInheritanceTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelObjectFormatterInheritanceTest.php deleted file mode 100644 index 95ea1cce36..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelObjectFormatterInheritanceTest.php +++ /dev/null @@ -1,55 +0,0 @@ -setName('b1'); - $b1->save(); - $b2 = new BookstoreManager(); - $b2->setName('b2'); - $b2->save(); - $b3 = new BookstoreCashier(); - $b3->setName('b3'); - $b3->save(); - } - - public function testFormat() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - BookstoreEmployeePeer::clearInstancePool(); - - $stmt = $con->query('SELECT * FROM bookstore_employee'); - $formatter = new PropelObjectFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'BookstoreEmployee')); - $emps = $formatter->format($stmt); - $expectedClass = array( - 'b1' =>'BookstoreEmployee', - 'b2' =>'BookstoreManager', - 'b3' =>'BookstoreCashier' - ); - foreach ($emps as $emp) { - $this->assertEquals($expectedClass[$emp->getName()], get_class($emp), 'format() creates objects of the correct class when using inheritance'); - } - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelObjectFormatterTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelObjectFormatterTest.php deleted file mode 100644 index 7321a2fbf7..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelObjectFormatterTest.php +++ /dev/null @@ -1,125 +0,0 @@ -query('SELECT * FROM book'); - $formatter = new PropelObjectFormatter(); - try { - $books = $formatter->format($stmt); - $this->fail('PropelObjectFormatter::format() trows an exception when called with no valid criteria'); - } catch (PropelException $e) { - $this->assertTrue(true,'PropelObjectFormatter::format() trows an exception when called with no valid criteria'); - } - } - - public function testFormatManyResults() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book'); - $formatter = new PropelObjectFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $books = $formatter->format($stmt); - - $this->assertTrue($books instanceof PropelCollection, 'PropelObjectFormatter::format() returns a PropelCollection'); - $this->assertEquals(4, count($books), 'PropelObjectFormatter::format() returns as many rows as the results in the query'); - foreach ($books as $book) { - $this->assertTrue($book instanceof Book, 'PropelObjectFormatter::format() returns an array of Model objects'); - } - } - - public function testFormatOneResult() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book WHERE book.TITLE = "Quicksilver"'); - $formatter = new PropelObjectFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $books = $formatter->format($stmt); - - $this->assertTrue($books instanceof PropelCollection, 'PropelObjectFormatter::format() returns a PropelCollection'); - $this->assertEquals(1, count($books), 'PropelObjectFormatter::format() returns as many rows as the results in the query'); - $book = $books->shift(); - $this->assertTrue($book instanceof Book, 'PropelObjectFormatter::format() returns an array of Model objects'); - $this->assertEquals('Quicksilver', $book->getTitle(), 'PropelObjectFormatter::format() returns the model objects matching the query'); - } - - public function testFormatNoResult() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book WHERE book.TITLE = "foo"'); - $formatter = new PropelObjectFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $books = $formatter->format($stmt); - - $this->assertTrue($books instanceof PropelCollection, 'PropelObjectFormatter::format() returns a PropelCollection'); - $this->assertEquals(0, count($books), 'PropelObjectFormatter::format() returns as many rows as the results in the query'); - } - - public function testFormatOneNoCriteria() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book'); - $formatter = new PropelObjectFormatter(); - try { - $book = $formatter->formatOne($stmt); - $this->fail('PropelObjectFormatter::formatOne() throws an exception when called with no valid criteria'); - } catch (PropelException $e) { - $this->assertTrue(true,'PropelObjectFormatter::formatOne() throws an exception when called with no valid criteria'); - } - } - - public function testFormatOneManyResults() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book'); - $formatter = new PropelObjectFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $book = $formatter->formatOne($stmt); - - $this->assertTrue($book instanceof Book, 'PropelObjectFormatter::formatOne() returns a model object'); - } - - public function testFormatOneNoResult() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book WHERE book.TITLE = "foo"'); - $formatter = new PropelObjectFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $book = $formatter->formatOne($stmt); - - $this->assertNull($book, 'PropelObjectFormatter::formatOne() returns null when no result'); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelObjectFormatterWithTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelObjectFormatterWithTest.php deleted file mode 100644 index 14279d9a30..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelObjectFormatterWithTest.php +++ /dev/null @@ -1,406 +0,0 @@ -findOne($con); - $count = $con->getQueryCount(); - $this->assertEquals($book->getTitle(), 'Don Juan', 'Main object is correctly hydrated ' . $msg); - $author = $book->getAuthor(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query ' . $msg); - $this->assertEquals($author->getLastName(), 'Byron', 'Related object is correctly hydrated ' . $msg); - $publisher = $book->getPublisher(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query ' . $msg); - $this->assertEquals($publisher->getName(), 'Penguin', 'Related object is correctly hydrated ' . $msg); - } - - public function testFindOneWith() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->orderBy('Book.Title'); - $c->join('Book.Author'); - $c->with('Author'); - $c->join('Book.Publisher'); - $c->with('Publisher'); - $this->assertCorrectHydration1($c, 'without instance pool'); - } - - public function testFindOneWithAlias() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->orderBy('Book.Title'); - $c->join('Book.Author a'); - $c->with('a'); - $c->join('Book.Publisher p'); - $c->with('p'); - $this->assertCorrectHydration1($c, 'with alias'); - } - - public function testFindOneWithMainAlias() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setModelAlias('b', true); - $c->orderBy('b.Title'); - $c->join('b.Author a'); - $c->with('a'); - $c->join('b.Publisher p'); - $c->with('p'); - $this->assertCorrectHydration1($c, 'with main alias'); - } - - public function testFindOneWithUsingInstancePool() - { - BookstoreDataPopulator::populate(); - // instance pool contains all objects by default, since they were just populated - $c = new ModelCriteria('bookstore', 'Book'); - $c->orderBy('Book.Title'); - $c->join('Book.Author'); - $c->with('Author'); - $c->join('Book.Publisher'); - $c->with('Publisher'); - $this->assertCorrectHydration1($c, 'with instance pool'); - } - - public function testFindOneWithoutUsingInstancePool() - { - BookstoreDataPopulator::populate(); - Propel::disableInstancePooling(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->orderBy('Book.Title'); - $c->join('Book.Author'); - $c->with('Author'); - $c->join('Book.Publisher'); - $c->with('Publisher'); - $this->assertCorrectHydration1($c, 'without instance pool'); - Propel::enableInstancePooling(); - } - - public function testFindOneWithEmptyLeftJoin() - { - // save a book with no author - $b = new Book(); - $b->setTitle('Foo'); - $b->save(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->where('Book.Title = ?', 'Foo'); - $c->leftJoin('Book.Author'); - $c->with('Author'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $book = $c->findOne($con); - $count = $con->getQueryCount(); - $author = $book->getAuthor(); - $this->assertNull($author, 'Related object is not hydrated if empty'); - } - - public function testFindOneWithRelationName() - { - BookstoreDataPopulator::populate(); - BookstoreEmployeePeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'BookstoreEmployee'); - $c->join('BookstoreEmployee.Supervisor s'); - $c->with('s'); - $c->where('s.Name = ?', 'John'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $emp = $c->findOne($con); - $count = $con->getQueryCount(); - $this->assertEquals($emp->getName(), 'Pieter', 'Main object is correctly hydrated'); - $sup = $emp->getSupervisor(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query'); - $this->assertEquals($sup->getName(), 'John', 'Related object is correctly hydrated'); - } - - public function testFindOneWithDuplicateRelation() - { - EssayPeer::doDeleteAll(); - $auth1 = new Author(); - $auth1->setFirstName('John'); - $auth1->save(); - $auth2 = new Author(); - $auth2->setFirstName('Jack'); - $auth2->save(); - $essay = new Essay(); - $essay->setTitle('Foo'); - $essay->setFirstAuthor($auth1->getId()); - $essay->setSecondAuthor($auth2->getId()); - $essay->save(); - AuthorPeer::clearInstancePool(); - EssayPeer::clearInstancePool(); - - $c = new ModelCriteria('bookstore', 'Essay'); - $c->join('Essay.AuthorRelatedByFirstAuthor'); - $c->with('AuthorRelatedByFirstAuthor'); - $c->where('Essay.Title = ?', 'Foo'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $essay = $c->findOne($con); - $count = $con->getQueryCount(); - $this->assertEquals($essay->getTitle(), 'Foo', 'Main object is correctly hydrated'); - $firstAuthor = $essay->getAuthorRelatedByFirstAuthor(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query'); - $this->assertEquals($firstAuthor->getFirstName(), 'John', 'Related object is correctly hydrated'); - $secondAuthor = $essay->getAuthorRelatedBySecondAuthor(); - $this->assertEquals($count + 1, $con->getQueryCount(), 'with() does not hydrate objects not in with'); - } - - public function testFindOneWithDistantClass() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - Propel::enableInstancePooling(); - $c = new ModelCriteria('bookstore', 'Review'); - $c->where('Review.Recommended = ?', true); - $c->join('Review.Book'); - $c->with('Book'); - $c->join('Book.Author'); - $c->with('Author'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $review = $c->findOne($con); - $count = $con->getQueryCount(); - $this->assertEquals($review->getReviewedBy(), 'Washington Post', 'Main object is correctly hydrated'); - $book = $review->getBook(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query'); - $this->assertEquals('Harry Potter and the Order of the Phoenix', $book->getTitle(), 'Related object is correctly hydrated'); - $author = $book->getAuthor(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query'); - $this->assertEquals('J.K.', $author->getFirstName(), 'Related object is correctly hydrated'); - } - - /** - * @expectedException PropelException - */ - public function testFindOneWithOneToManyAndLimit() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->add(BookPeer::ISBN, '043935806X'); - $c->leftJoin('Book.Review'); - $c->with('Review'); - $c->limit(5); - $books = $c->find(); - } - - public function testFindOneWithOneToMany() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->add(BookPeer::ISBN, '043935806X'); - $c->leftJoin('Book.Review'); - $c->with('Review'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $books = $c->find($con); - $this->assertEquals(1, count($books), 'with() does not duplicate the main object'); - $book = $books[0]; - $count = $con->getQueryCount(); - $this->assertEquals($book->getTitle(), 'Harry Potter and the Order of the Phoenix', 'Main object is correctly hydrated'); - $reviews = $book->getReviews(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query '); - $this->assertEquals(2, count($reviews), 'Related objects are correctly hydrated'); - try { - $book->save(); - } catch (Exception $e) { - $this->fail('with() does not force objects to be new'); - } - } - - public function testFindOneWithOneToManyCustomOrder() - { - $author1 = new Author(); - $author1->setFirstName('AA'); - $author2 = new Author(); - $author2->setFirstName('BB'); - $book1 = new Book(); - $book1->setTitle('Aaa'); - $book1->setAuthor($author1); - $book1->save(); - $book2 = new Book(); - $book2->setTitle('Bbb'); - $book2->setAuthor($author2); - $book2->save(); - $book3 = new Book(); - $book3->setTitle('Ccc'); - $book3->setAuthor($author1); - $book3->save(); - $authors = AuthorQuery::create() - ->leftJoin('Author.Book') - ->orderBy('Book.Title') - ->with('Book') - ->find(); - $this->assertEquals(2, count($authors), 'with() used on a many-to-many doesn\'t change the main object count'); - } - - public function testFindOneWithOneToManyThenManyToOne() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Author'); - $c->add(AuthorPeer::LAST_NAME, 'Rowling'); - $c->leftJoinWith('Author.Book'); - $c->leftJoinWith('Book.Review'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $authors = $c->find($con); - $this->assertEquals(1, count($authors), 'with() does not duplicate the main object'); - $rowling = $authors[0]; - $count = $con->getQueryCount(); - $this->assertEquals($rowling->getFirstName(), 'J.K.', 'Main object is correctly hydrated'); - $books = $rowling->getBooks(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query '); - $this->assertEquals(1, count($books), 'Related objects are correctly hydrated'); - $book = $books[0]; - $this->assertEquals($book->getTitle(), 'Harry Potter and the Order of the Phoenix', 'Related object is correctly hydrated'); - $reviews = $book->getReviews(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query '); - $this->assertEquals(2, count($reviews), 'Related objects are correctly hydrated'); - } - - public function testFindOneWithOneToManyThenManyToOneUsingJoinRelated() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - - $con = Propel::getConnection(AuthorPeer::DATABASE_NAME); - $authors = AuthorQuery::create() - ->filterByLastName('Rowling') - ->joinBook('book') - ->with('book') - ->useQuery('book') - ->joinReview('review') - ->with('review') - ->endUse() - ->find($con); - $this->assertEquals(1, count($authors), 'with() does not duplicate the main object'); - $rowling = $authors[0]; - $count = $con->getQueryCount(); - $this->assertEquals($rowling->getFirstName(), 'J.K.', 'Main object is correctly hydrated'); - $books = $rowling->getBooks(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query '); - $this->assertEquals(1, count($books), 'Related objects are correctly hydrated'); - $book = $books[0]; - $this->assertEquals($book->getTitle(), 'Harry Potter and the Order of the Phoenix', 'Related object is correctly hydrated'); - $reviews = $book->getReviews(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query '); - $this->assertEquals(2, count($reviews), 'Related objects are correctly hydrated'); - } - - public function testFindOneWithOneToManyThenManyToOneUsingAlias() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Author'); - $c->add(AuthorPeer::LAST_NAME, 'Rowling'); - $c->leftJoinWith('Author.Book b'); - $c->leftJoinWith('b.Review r'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $authors = $c->find($con); - $this->assertEquals(1, count($authors), 'with() does not duplicate the main object'); - $rowling = $authors[0]; - $count = $con->getQueryCount(); - $this->assertEquals($rowling->getFirstName(), 'J.K.', 'Main object is correctly hydrated'); - $books = $rowling->getBooks(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query '); - $this->assertEquals(1, count($books), 'Related objects are correctly hydrated'); - $book = $books[0]; - $this->assertEquals($book->getTitle(), 'Harry Potter and the Order of the Phoenix', 'Related object is correctly hydrated'); - $reviews = $book->getReviews(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query '); - $this->assertEquals(2, count($reviews), 'Related objects are correctly hydrated'); - } - - public function testFindOneWithColumn() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->filterByTitle('The Tin Drum'); - $c->join('Book.Author'); - $c->withColumn('Author.FirstName', 'AuthorName'); - $c->withColumn('Author.LastName', 'AuthorName2'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $book = $c->findOne($con); - $this->assertTrue($book instanceof Book, 'withColumn() do not change the resulting model class'); - $this->assertEquals('The Tin Drum', $book->getTitle()); - $this->assertEquals('Gunter', $book->getVirtualColumn('AuthorName'), 'PropelObjectFormatter adds withColumns as virtual columns'); - $this->assertEquals('Grass', $book->getVirtualColumn('AuthorName2'), 'PropelObjectFormatter correctly hydrates all virtual columns'); - $this->assertEquals('Gunter', $book->getAuthorName(), 'PropelObjectFormatter adds withColumns as virtual columns'); - } - - public function testFindOneWithClassAndColumn() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->filterByTitle('The Tin Drum'); - $c->join('Book.Author'); - $c->withColumn('Author.FirstName', 'AuthorName'); - $c->withColumn('Author.LastName', 'AuthorName2'); - $c->with('Author'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $book = $c->findOne($con); - $this->assertTrue($book instanceof Book, 'withColumn() do not change the resulting model class'); - $this->assertEquals('The Tin Drum', $book->getTitle()); - $this->assertTrue($book->getAuthor() instanceof Author, 'PropelObjectFormatter correctly hydrates with class'); - $this->assertEquals('Gunter', $book->getAuthor()->getFirstName(), 'PropelObjectFormatter correctly hydrates with class'); - $this->assertEquals('Gunter', $book->getVirtualColumn('AuthorName'), 'PropelObjectFormatter adds withColumns as virtual columns'); - $this->assertEquals('Grass', $book->getVirtualColumn('AuthorName2'), 'PropelObjectFormatter correctly hydrates all virtual columns'); - } - - public function testFindPkWithOneToMany() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $book = BookQuery::create() - ->findOneByTitle('Harry Potter and the Order of the Phoenix', $con); - $pk = $book->getPrimaryKey(); - BookPeer::clearInstancePool(); - $book = BookQuery::create() - ->joinWith('Review') - ->findPk($pk, $con); - $count = $con->getQueryCount(); - $reviews = $book->getReviews(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query '); - $this->assertEquals(2, count($reviews), 'Related objects are correctly hydrated'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelOnDemandFormatterTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelOnDemandFormatterTest.php deleted file mode 100644 index a4c29bb38c..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelOnDemandFormatterTest.php +++ /dev/null @@ -1,151 +0,0 @@ -query('SELECT * FROM book'); - $formatter = new PropelOnDemandFormatter(); - try { - $books = $formatter->format($stmt); - $this->fail('PropelOnDemandFormatter::format() trows an exception when called with no valid criteria'); - } catch (PropelException $e) { - $this->assertTrue(true,'PropelOnDemandFormatter::format() trows an exception when called with no valid criteria'); - } - } - - public function testFormatManyResults() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - BookstoreDataPopulator::populate($con); - - $stmt = $con->query('SELECT * FROM book'); - $formatter = new PropelOnDemandFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $books = $formatter->format($stmt); - - $this->assertTrue($books instanceof PropelOnDemandCollection, 'PropelOnDemandFormatter::format() returns a PropelOnDemandCollection'); - $this->assertEquals(4, count($books), 'PropelOnDemandFormatter::format() returns a collection that counts as many rows as the results in the query'); - foreach ($books as $book) { - $this->assertTrue($book instanceof Book, 'PropelOnDemandFormatter::format() returns an traversable collection of Model objects'); - } - } - - /** - * @expectedException PropelException - */ - public function testFormatManyResultsIteratedTwice() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - BookstoreDataPopulator::populate($con); - - $stmt = $con->query('SELECT * FROM book'); - $formatter = new PropelOnDemandFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $books = $formatter->format($stmt); - - foreach ($books as $book) { - // do nothing - } - foreach ($books as $book) { - // this should throw a PropelException since we're iterating a second time over a stream - } - } - - public function testFormatALotOfResults() - { - $nbBooks = 50; - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - Propel::disableInstancePooling(); - $book = new Book(); - for ($i=0; $i < $nbBooks; $i++) { - $book->clear(); - $book->setTitle('BookTest' . $i); - $book->save($con); - } - - $stmt = $con->query('SELECT * FROM book'); - $formatter = new PropelOnDemandFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $books = $formatter->format($stmt); - - $this->assertTrue($books instanceof PropelOnDemandCollection, 'PropelOnDemandFormatter::format() returns a PropelOnDemandCollection'); - $this->assertEquals($nbBooks, count($books), 'PropelOnDemandFormatter::format() returns a collection that counts as many rows as the results in the query'); - $i = 0; - foreach ($books as $book) { - $this->assertTrue($book instanceof Book, 'PropelOnDemandFormatter::format() returns a collection of Model objects'); - $this->assertEquals('BookTest' . $i, $book->getTitle(), 'PropelOnDemandFormatter::format() returns the model objects matching the query'); - $i++; - } - Propel::enableInstancePooling(); - } - - - public function testFormatOneResult() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - BookstoreDataPopulator::populate($con); - - $stmt = $con->query('SELECT * FROM book WHERE book.TITLE = "Quicksilver"'); - $formatter = new PropelOnDemandFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $books = $formatter->format($stmt); - - $this->assertTrue($books instanceof PropelOnDemandCollection, 'PropelOnDemandFormatter::format() returns a PropelOnDemandCollection'); - $this->assertEquals(1, count($books), 'PropelOnDemandFormatter::format() returns a collection that counts as many rows as the results in the query'); - foreach ($books as $book) { - $this->assertTrue($book instanceof Book, 'PropelOnDemandFormatter::format() returns a collection of Model objects'); - $this->assertEquals('Quicksilver', $book->getTitle(), 'PropelOnDemandFormatter::format() returns the model objects matching the query'); - } - } - - public function testFormatNoResult() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book WHERE book.TITLE = "foo"'); - $formatter = new PropelOnDemandFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $books = $formatter->format($stmt); - - $this->assertTrue($books instanceof PropelOnDemandCollection, 'PropelOnDemandFormatter::format() returns a PropelCollection'); - $this->assertEquals(0, count($books), 'PropelOnDemandFormatter::format() returns an empty collection when no record match the query'); - foreach ($books as $book) { - $this->fail('PropelOnDemandFormatter returns an empty iterator when no record match the query'); - } - } - - public function testFormatOneManyResults() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - BookstoreDataPopulator::populate($con); - - $stmt = $con->query('SELECT * FROM book'); - $formatter = new PropelOnDemandFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $book = $formatter->formatOne($stmt); - - $this->assertTrue($book instanceof Book, 'PropelOnDemandFormatter::formatOne() returns a model object'); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelOnDemandFormatterWithTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelOnDemandFormatterWithTest.php deleted file mode 100644 index 264d7b25e9..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelOnDemandFormatterWithTest.php +++ /dev/null @@ -1,277 +0,0 @@ -limit(1); - $books = $c->find($con); - foreach ($books as $book) { - break; - } - $count = $con->getQueryCount(); - $this->assertEquals($book->getTitle(), 'Don Juan', 'Main object is correctly hydrated ' . $msg); - $author = $book->getAuthor(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query ' . $msg); - $this->assertEquals($author->getLastName(), 'Byron', 'Related object is correctly hydrated ' . $msg); - $publisher = $book->getPublisher(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query ' . $msg); - $this->assertEquals($publisher->getName(), 'Penguin', 'Related object is correctly hydrated ' . $msg); - } - - public function testFindOneWith() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ON_DEMAND); - $c->orderBy('Book.Title'); - $c->join('Book.Author'); - $c->with('Author'); - $c->join('Book.Publisher'); - $c->with('Publisher'); - $this->assertCorrectHydration1($c, 'without instance pool'); - } - - public function testFindOneWithAlias() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ON_DEMAND); - $c->orderBy('Book.Title'); - $c->join('Book.Author a'); - $c->with('a'); - $c->join('Book.Publisher p'); - $c->with('p'); - $this->assertCorrectHydration1($c, 'with alias'); - } - - public function testFindOneWithMainAlias() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ON_DEMAND); - $c->setModelAlias('b', true); - $c->orderBy('b.Title'); - $c->join('b.Author a'); - $c->with('a'); - $c->join('b.Publisher p'); - $c->with('p'); - $this->assertCorrectHydration1($c, 'with main alias'); - } - - public function testFindOneWithUsingInstancePool() - { - BookstoreDataPopulator::populate(); - // instance pool contains all objects by default, since they were just populated - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ON_DEMAND); - $c->orderBy('Book.Title'); - $c->join('Book.Author'); - $c->with('Author'); - $c->join('Book.Publisher'); - $c->with('Publisher'); - $this->assertCorrectHydration1($c, 'with instance pool'); - } - - public function testFindOneWithEmptyLeftJoin() - { - // save a book with no author - $b = new Book(); - $b->setTitle('Foo'); - $b->save(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ON_DEMAND); - $c->where('Book.Title = ?', 'Foo'); - $c->leftJoin('Book.Author'); - $c->with('Author'); - $c->limit(1); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $books = $c->find($con); - foreach ($books as $book) { - break; - } - $count = $con->getQueryCount(); - $author = $book->getAuthor(); - $this->assertNull($author, 'Related object is not hydrated if empty'); - } - - public function testFindOneWithRelationName() - { - BookstoreDataPopulator::populate(); - BookstoreEmployeePeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'BookstoreEmployee'); - $c->join('BookstoreEmployee.Supervisor s'); - $c->with('s'); - $c->where('s.Name = ?', 'John'); - $c->limit(1); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $emps = $c->find($con); - foreach ($emps as $emp) { - break; - } - $count = $con->getQueryCount(); - $this->assertEquals($emp->getName(), 'Pieter', 'Main object is correctly hydrated'); - $sup = $emp->getSupervisor(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query'); - $this->assertEquals($sup->getName(), 'John', 'Related object is correctly hydrated'); - } - - public function testFindOneWithDuplicateRelation() - { - EssayPeer::doDeleteAll(); - $auth1 = new Author(); - $auth1->setFirstName('John'); - $auth1->save(); - $auth2 = new Author(); - $auth2->setFirstName('Jack'); - $auth2->save(); - $essay = new Essay(); - $essay->setTitle('Foo'); - $essay->setFirstAuthor($auth1->getId()); - $essay->setSecondAuthor($auth2->getId()); - $essay->save(); - AuthorPeer::clearInstancePool(); - EssayPeer::clearInstancePool(); - - $c = new ModelCriteria('bookstore', 'Essay'); - $c->setFormatter(ModelCriteria::FORMAT_ON_DEMAND); - $c->join('Essay.AuthorRelatedByFirstAuthor'); - $c->with('AuthorRelatedByFirstAuthor'); - $c->where('Essay.Title = ?', 'Foo'); - $c->limit(1); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $essays = $c->find($con); - foreach ($essays as $essay) { - break; - } - $count = $con->getQueryCount(); - $this->assertEquals($essay->getTitle(), 'Foo', 'Main object is correctly hydrated'); - $firstAuthor = $essay->getAuthorRelatedByFirstAuthor(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query'); - $this->assertEquals($firstAuthor->getFirstName(), 'John', 'Related object is correctly hydrated'); - $secondAuthor = $essay->getAuthorRelatedBySecondAuthor(); - $this->assertEquals($count + 1, $con->getQueryCount(), 'with() does not hydrate objects not in with'); - } - - public function testFindOneWithDistantClass() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Review'); - $c->setFormatter(ModelCriteria::FORMAT_ON_DEMAND); - $c->where('Review.Recommended = ?', true); - $c->join('Review.Book'); - $c->with('Book'); - $c->join('Book.Author'); - $c->with('Author'); - $c->limit(1); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $reviews = $c->find($con); - foreach ($reviews as $review) { - break; - } - $count = $con->getQueryCount(); - $this->assertEquals($review->getReviewedBy(), 'Washington Post', 'Main object is correctly hydrated'); - $book = $review->getBook(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query'); - $this->assertEquals('Harry Potter and the Order of the Phoenix', $book->getTitle(), 'Related object is correctly hydrated'); - $author = $book->getAuthor(); - $this->assertEquals($count, $con->getQueryCount(), 'with() hydrates the related objects to save a query'); - $this->assertEquals('J.K.', $author->getFirstName(), 'Related object is correctly hydrated'); - } - - /** - * @expectedException PropelException - */ - public function testFindOneWithOneToMany() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ON_DEMAND); - $c->add(BookPeer::ISBN, '043935806X'); - $c->leftJoin('Book.Review'); - $c->with('Review'); - $books = $c->find(); - } - - public function testFindOneWithColumn() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ON_DEMAND); - $c->filterByTitle('The Tin Drum'); - $c->join('Book.Author'); - $c->withColumn('Author.FirstName', 'AuthorName'); - $c->withColumn('Author.LastName', 'AuthorName2'); - $c->limit(1); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $books = $c->find($con); - foreach ($books as $book) { - break; - } - $this->assertTrue($book instanceof Book, 'withColumn() do not change the resulting model class'); - $this->assertEquals('The Tin Drum', $book->getTitle()); - $this->assertEquals('Gunter', $book->getVirtualColumn('AuthorName'), 'PropelObjectFormatter adds withColumns as virtual columns'); - $this->assertEquals('Grass', $book->getVirtualColumn('AuthorName2'), 'PropelObjectFormatter correctly hydrates all virtual columns'); - $this->assertEquals('Gunter', $book->getAuthorName(), 'PropelObjectFormatter adds withColumns as virtual columns'); - } - - public function testFindOneWithClassAndColumn() - { - BookstoreDataPopulator::populate(); - BookPeer::clearInstancePool(); - AuthorPeer::clearInstancePool(); - ReviewPeer::clearInstancePool(); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_ON_DEMAND); - $c->filterByTitle('The Tin Drum'); - $c->join('Book.Author'); - $c->withColumn('Author.FirstName', 'AuthorName'); - $c->withColumn('Author.LastName', 'AuthorName2'); - $c->with('Author'); - $c->limit(1); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $books = $c->find($con); - foreach ($books as $book) { - break; - } - $this->assertTrue($book instanceof Book, 'withColumn() do not change the resulting model class'); - $this->assertEquals('The Tin Drum', $book->getTitle()); - $this->assertTrue($book->getAuthor() instanceof Author, 'PropelObjectFormatter correctly hydrates with class'); - $this->assertEquals('Gunter', $book->getAuthor()->getFirstName(), 'PropelObjectFormatter correctly hydrates with class'); - $this->assertEquals('Gunter', $book->getVirtualColumn('AuthorName'), 'PropelObjectFormatter adds withColumns as virtual columns'); - $this->assertEquals('Grass', $book->getVirtualColumn('AuthorName2'), 'PropelObjectFormatter correctly hydrates all virtual columns'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelStatementFormatterTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelStatementFormatterTest.php deleted file mode 100644 index c2ea8077e5..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/formatter/PropelStatementFormatterTest.php +++ /dev/null @@ -1,124 +0,0 @@ -query('SELECT * FROM book'); - $formatter = new PropelStatementFormatter(); - try { - $books = $formatter->format($stmt); - $this->assertTrue(true, 'PropelStatementFormatter::format() does not trow an exception when called with no valid criteria'); - } catch (PropelException $e) { - $this->fail('PropelStatementFormatter::format() does not trow an exception when called with no valid criteria'); - } - } - - public function testFormatManyResults() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book'); - $formatter = new PropelStatementFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $books = $formatter->format($stmt); - - $this->assertTrue($books instanceof PDOStatement, 'PropelStatementFormatter::format() returns a PDOStatement'); - $this->assertEquals(4, $books->rowCount(), 'PropelStatementFormatter::format() returns as many rows as the results in the query'); - while ($book = $books->fetch()) { - $this->assertTrue(is_array($book), 'PropelStatementFormatter::format() returns a statement that can be fetched'); - } - } - - public function testFormatOneResult() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book WHERE book.TITLE = "Quicksilver"'); - $formatter = new PropelStatementFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $books = $formatter->format($stmt); - - $this->assertTrue($books instanceof PDOStatement, 'PropelStatementFormatter::format() returns a PDOStatement'); - $this->assertEquals(1, $books->rowCount(), 'PropelStatementFormatter::format() returns as many rows as the results in the query'); - $book = $books->fetch(PDO::FETCH_ASSOC); - $this->assertEquals('Quicksilver', $book['title'], 'PropelStatementFormatter::format() returns the rows matching the query'); - } - - public function testFormatNoResult() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book WHERE book.TITLE = "foo"'); - $formatter = new PropelStatementFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $books = $formatter->format($stmt); - - $this->assertTrue($books instanceof PDOStatement, 'PropelStatementFormatter::format() returns a PDOStatement'); - $this->assertEquals(0, $books->rowCount(), 'PropelStatementFormatter::format() returns as many rows as the results in the query'); - } - - public function testFormatoneNoCriteria() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book'); - $formatter = new PropelStatementFormatter(); - try { - $books = $formatter->formatOne($stmt); - $this->assertTrue(true, 'PropelStatementFormatter::formatOne() does not trow an exception when called with no valid criteria'); - } catch (PropelException $e) { - $this->fail('PropelStatementFormatter::formatOne() does not trow an exception when called with no valid criteria'); - } - } - - public function testFormatOneManyResults() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book'); - $formatter = new PropelStatementFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $book = $formatter->formatOne($stmt); - - $this->assertTrue($book instanceof PDOStatement, 'PropelStatementFormatter::formatOne() returns a PDO Statement'); - } - - public function testFormatOneNoResult() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $stmt = $con->query('SELECT * FROM book WHERE book.TITLE = "foo"'); - $formatter = new PropelStatementFormatter(); - $formatter->init(new ModelCriteria('bookstore', 'Book')); - $book = $formatter->formatOne($stmt); - - $this->assertNull($book, 'PropelStatementFormatter::formatOne() returns null when no result'); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/map/ColumnMapTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/map/ColumnMapTest.php deleted file mode 100644 index f3225848fa..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/map/ColumnMapTest.php +++ /dev/null @@ -1,141 +0,0 @@ -dmap = new DatabaseMap('foodb'); - $this->tmap = new TableMap('foo', $this->dmap); - $this->columnName = 'bar'; - $this->cmap = new ColumnMap($this->columnName, $this->tmap); - } - - protected function tearDown() - { - // nothing to do for now - parent::tearDown(); - } - - public function testConstructor() - { - $this->assertEquals($this->columnName, $this->cmap->getName(), 'constructor sets the column name'); - $this->assertEquals($this->tmap, $this->cmap->getTable(), 'Constructor sets the table map'); - $this->assertNull($this->cmap->getType(), 'A new column map has no type'); - } - - public function testPhpName() - { - $this->assertNull($this->cmap->getPhpName(), 'phpName is empty until set'); - $this->cmap->setPhpName('FooBar'); - $this->assertEquals('FooBar', $this->cmap->getPhpName(), 'phpName is set by setPhpName()'); - } - - public function testType() - { - $this->assertNull($this->cmap->getType(), 'type is empty until set'); - $this->cmap->setType('FooBar'); - $this->assertEquals('FooBar', $this->cmap->getType(), 'type is set by setType()'); - } - - public function tesSize() - { - $this->assertEquals(0, $this->cmap->getSize(), 'size is empty until set'); - $this->cmap->setSize(123); - $this->assertEquals(123, $this->cmap->getSize(), 'size is set by setSize()'); - } - - public function testPrimaryKey() - { - $this->assertFalse($this->cmap->isPrimaryKey(), 'primaryKey is false by default'); - $this->cmap->setPrimaryKey(true); - $this->assertTrue($this->cmap->isPrimaryKey(), 'primaryKey is set by setPrimaryKey()'); - } - - public function testNotNull() - { - $this->assertFalse($this->cmap->isNotNull(), 'notNull is false by default'); - $this->cmap->setNotNull(true); - $this->assertTrue($this->cmap->isNotNull(), 'notNull is set by setPrimaryKey()'); - } - - public function testDefaultValue() - { - $this->assertNull($this->cmap->getDefaultValue(), 'defaultValue is empty until set'); - $this->cmap->setDefaultValue('FooBar'); - $this->assertEquals('FooBar', $this->cmap->getDefaultValue(), 'defaultValue is set by setDefaultValue()'); - } - - public function testGetForeignKey() - { - $this->assertFalse($this->cmap->isForeignKey(), 'foreignKey is false by default'); - try - { - $this->cmap->getRelatedTable(); - $this->fail('getRelatedTable throws an exception when called on a column with no foreign key'); - } catch(PropelException $e) { - $this->assertTrue(true, 'getRelatedTable throws an exception when called on a column with no foreign key'); - } - try - { - $this->cmap->getRelatedColumn(); - $this->fail('getRelatedColumn throws an exception when called on a column with no foreign key'); - } catch(PropelException $e) { - $this->assertTrue(true, 'getRelatedColumn throws an exception when called on a column with no foreign key'); - } - $relatedTmap = $this->dmap->addTable('foo2'); - // required to let the database map use the foreign TableMap - $relatedCmap = $relatedTmap->addColumn('BAR2', 'Bar2', 'INTEGER'); - $this->cmap->setForeignKey('foo2', 'BAR2'); - $this->assertTrue($this->cmap->isForeignKey(), 'foreignKey is true after setting the foreign key via setForeignKey()'); - $this->assertEquals($relatedTmap, $this->cmap->getRelatedTable(), 'getRelatedTable returns the related TableMap object'); - $this->assertEquals($relatedCmap, $this->cmap->getRelatedColumn(), 'getRelatedColumn returns the related ColumnMap object'); - } - - public function testGetRelation() - { - set_include_path(get_include_path() . PATH_SEPARATOR . "fixtures/bookstore/build/classes"); - Propel::init('fixtures/bookstore/build/conf/bookstore-conf.php'); - $bookTable = BookPeer::getTableMap(); - $titleColumn = $bookTable->getColumn('TITLE'); - $this->assertNull($titleColumn->getRelation(), 'getRelation() returns null for non-foreign key columns'); - $publisherColumn = $bookTable->getColumn('PUBLISHER_ID'); - $this->assertEquals($publisherColumn->getRelation(), $bookTable->getRelation('Publisher'), 'getRelation() returns the RelationMap object for this foreign key'); - $bookstoreTable = BookstoreEmployeePeer::getTableMap(); - $supervisorColumn = $bookstoreTable->getColumn('SUPERVISOR_ID'); - $this->assertEquals($supervisorColumn->getRelation(), $supervisorColumn->getRelation('Supervisor'), 'getRelation() returns the RelationMap object even whit ha specific refPhpName'); - - } - - public function testNormalizeName() - { - $this->assertEquals('', ColumnMap::normalizeName(''), 'normalizeColumnName() returns an empty string when passed an empty string'); - $this->assertEquals('BAR', ColumnMap::normalizeName('bar'), 'normalizeColumnName() uppercases the input'); - $this->assertEquals('BAR_BAZ', ColumnMap::normalizeName('bar_baz'), 'normalizeColumnName() does not mind underscores'); - $this->assertEquals('BAR', ColumnMap::normalizeName('FOO.BAR'), 'normalizeColumnName() removes table prefix'); - $this->assertEquals('BAR', ColumnMap::normalizeName('BAR'), 'normalizeColumnName() leaves normalized column names unchanged'); - $this->assertEquals('BAR_BAZ', ColumnMap::normalizeName('foo.bar_baz'), 'normalizeColumnName() can do all the above at the same time'); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/map/DatabaseMapTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/map/DatabaseMapTest.php deleted file mode 100644 index 7a078131da..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/map/DatabaseMapTest.php +++ /dev/null @@ -1,171 +0,0 @@ -setName('baz'); - $this->setPhpName('Baz'); - } -} - -/** - * Test class for DatabaseMap. - * - * @author François Zaninotto - * @version $Id: DatabaseMapTest.php 1773 2010-05-25 10:25:06Z francois $ - * @package runtime.map - */ -class DatabaseMapTest extends PHPUnit_Framework_TestCase -{ - protected $databaseMap; - - protected function setUp() - { - parent::setUp(); - $this->databaseName = 'foodb'; - $this->databaseMap = TestDatabaseBuilder::getDmap(); - } - - protected function tearDown() - { - // nothing to do for now - parent::tearDown(); - } - - public function testConstructor() - { - $this->assertEquals($this->databaseName, $this->databaseMap->getName(), 'constructor sets the table name'); - } - - public function testAddTable() - { - $this->assertFalse($this->databaseMap->hasTable('foo'), 'tables are empty by default'); - try - { - $this->databaseMap->getTable('foo'); - $this->fail('getTable() throws an exception when called on an inexistent table'); - } catch(PropelException $e) { - $this->assertTrue(true, 'getTable() throws an exception when called on an inexistent table'); - } - $tmap = $this->databaseMap->addTable('foo'); - $this->assertTrue($this->databaseMap->hasTable('foo'), 'hasTable() returns true when the table was added by way of addTable()'); - $this->assertEquals($tmap, $this->databaseMap->getTable('foo'), 'getTable() returns a table by name when the table was added by way of addTable()'); - } - - public function testAddTableObject() - { - $this->assertFalse($this->databaseMap->hasTable('foo2'), 'tables are empty by default'); - try - { - $this->databaseMap->getTable('foo2'); - $this->fail('getTable() throws an exception when called on a table with no builder'); - } catch(PropelException $e) { - $this->assertTrue(true, 'getTable() throws an exception when called on a table with no builder'); - } - $tmap = new TableMap('foo2'); - $this->databaseMap->addTableObject($tmap); - $this->assertTrue($this->databaseMap->hasTable('foo2'), 'hasTable() returns true when the table was added by way of addTableObject()'); - $this->assertEquals($tmap, $this->databaseMap->getTable('foo2'), 'getTable() returns a table by name when the table was added by way of addTableObject()'); - } - - public function testAddTableFromMapClass() - { - $table1 = $this->databaseMap->addTableFromMapClass('BazTableMap'); - try - { - $table2 = $this->databaseMap->getTable('baz'); - $this->assertEquals($table1, $table2, 'addTableFromMapClass() adds a table from a map class'); - } catch(PropelException $e) { - $this->fail('addTableFromMapClass() adds a table from a map class'); - } - } - - public function testGetColumn() - { - try - { - $this->databaseMap->getColumn('foo.BAR'); - $this->fail('getColumn() throws an exception when called on column of an inexistent table'); - } catch(PropelException $e) { - $this->assertTrue(true, 'getColumn() throws an exception when called on column of an inexistent table'); - } - $tmap = $this->databaseMap->addTable('foo'); - try - { - $this->databaseMap->getColumn('foo.BAR'); - $this->fail('getColumn() throws an exception when called on an inexistent column of an existent table'); - } catch(PropelException $e) { - $this->assertTrue(true, 'getColumn() throws an exception when called on an inexistent column of an existent table'); - } - $column = $tmap->addColumn('BAR', 'Bar', 'INTEGER'); - $this->assertEquals($column, $this->databaseMap->getColumn('foo.BAR'), 'getColumn() returns a ColumnMap object based on a fully qualified name'); - } - - public function testGetTableByPhpName() - { - try - { - $this->databaseMap->getTableByPhpName('Foo1'); - $this->fail('getTableByPhpName() throws an exception when called on an inexistent table'); - } catch(PropelException $e) { - $this->assertTrue(true, 'getTableByPhpName() throws an exception when called on an inexistent table'); - } - $tmap = $this->databaseMap->addTable('foo1'); - try - { - $this->databaseMap->getTableByPhpName('Foo1'); - $this->fail('getTableByPhpName() throws an exception when called on a table with no phpName'); - } catch(PropelException $e) { - $this->assertTrue(true, 'getTableByPhpName() throws an exception when called on a table with no phpName'); - } - $tmap2 = new TableMap('foo2'); - $tmap2->setClassname('Foo2'); - $this->databaseMap->addTableObject($tmap2); - $this->assertEquals($tmap2, $this->databaseMap->getTableByPhpName('Foo2'), 'getTableByPhpName() returns tableMap when phpName was set by way of TableMap::setPhpName()'); - } - - public function testGetTableByPhpNameNotLoaded() - { - set_include_path(get_include_path() . PATH_SEPARATOR . "fixtures/bookstore/build/classes"); - require_once 'bookstore/map/BookTableMap.php'; - require_once 'bookstore/om/BaseBookPeer.php'; - require_once 'bookstore/BookPeer.php'; - $this->assertEquals('book', Propel::getDatabaseMap('bookstore')->getTableByPhpName('Book')->getName(), 'getTableByPhpName() can autoload a TableMap when the Peer class is generated and autoloaded'); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/map/GeneratedRelationMapTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/map/GeneratedRelationMapTest.php deleted file mode 100644 index 62b84a77c0..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/map/GeneratedRelationMapTest.php +++ /dev/null @@ -1,75 +0,0 @@ -databaseMap = Propel::getDatabaseMap('bookstore'); - } - - public function testGetRightTable() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $authorTable = $this->databaseMap->getTableByPhpName('Author'); - $this->assertEquals($authorTable, $bookTable->getRelation('Author')->getRightTable(), 'getRightTable() returns correct table when called on a many to one relationship'); - $this->assertEquals($bookTable, $authorTable->getRelation('Book')->getRightTable(), 'getRightTable() returns correct table when called on a one to many relationship'); - $bookEmpTable = $this->databaseMap->getTableByPhpName('BookstoreEmployee'); - $bookEmpAccTable = $this->databaseMap->getTableByPhpName('BookstoreEmployeeAccount'); - $this->assertEquals($bookEmpAccTable, $bookEmpTable->getRelation('BookstoreEmployeeAccount')->getRightTable(), 'getRightTable() returns correct table when called on a one to one relationship'); - $this->assertEquals($bookEmpTable, $bookEmpAccTable->getRelation('BookstoreEmployee')->getRightTable(), 'getRightTable() returns correct table when called on a one to one relationship'); - } - - public function testColumnMappings() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $this->assertEquals(array('book.AUTHOR_ID' => 'author.ID'), $bookTable->getRelation('Author')->getColumnMappings(), 'getColumnMappings returns local to foreign by default'); - $this->assertEquals(array('book.AUTHOR_ID' => 'author.ID'), $bookTable->getRelation('Author')->getColumnMappings(RelationMap::LEFT_TO_RIGHT), 'getColumnMappings returns local to foreign when asked left to right for a many to one relationship'); - - $authorTable = $this->databaseMap->getTableByPhpName('Author'); - $this->assertEquals(array('book.AUTHOR_ID' => 'author.ID'), $authorTable->getRelation('Book')->getColumnMappings(), 'getColumnMappings returns local to foreign by default'); - $this->assertEquals(array('author.ID' => 'book.AUTHOR_ID'), $authorTable->getRelation('Book')->getColumnMappings(RelationMap::LEFT_TO_RIGHT), 'getColumnMappings returns foreign to local when asked left to right for a one to many relationship'); - - $bookEmpTable = $this->databaseMap->getTableByPhpName('BookstoreEmployee'); - $this->assertEquals(array('bookstore_employee_account.EMPLOYEE_ID' => 'bookstore_employee.ID'), $bookEmpTable->getRelation('BookstoreEmployeeAccount')->getColumnMappings(), 'getColumnMappings returns local to foreign by default'); - $this->assertEquals(array('bookstore_employee.ID' => 'bookstore_employee_account.EMPLOYEE_ID'), $bookEmpTable->getRelation('BookstoreEmployeeAccount')->getColumnMappings(RelationMap::LEFT_TO_RIGHT), 'getColumnMappings returns foreign to local when asked left to right for a one to one relationship'); - } - - public function testCountColumnMappings() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $this->assertEquals(1, $bookTable->getRelation('Author')->countColumnMappings()); - - $rfTable = $this->databaseMap->getTableByPhpName('ReaderFavorite'); - $this->assertEquals(2, $rfTable->getRelation('BookOpinion')->countColumnMappings()); - } - - public function testIsComposite() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $this->assertFalse($bookTable->getRelation('Author')->isComposite()); - - $rfTable = $this->databaseMap->getTableByPhpName('ReaderFavorite'); - $this->assertTrue($rfTable->getRelation('BookOpinion')->isComposite()); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/map/RelatedMapSymmetricalTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/map/RelatedMapSymmetricalTest.php deleted file mode 100644 index 6737aa7df2..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/map/RelatedMapSymmetricalTest.php +++ /dev/null @@ -1,70 +0,0 @@ -databaseMap = Propel::getDatabaseMap('bookstore'); - } - - public function testOneToMany() - { - $bookTable = $this->databaseMap->getTableByPhpName('Book'); - $bookToAuthor = $bookTable->getRelation('Author'); - $authorTable = $this->databaseMap->getTableByPhpName('Author'); - $authorToBook = $authorTable->getRelation('Book'); - $this->assertEquals($authorToBook, $bookToAuthor->getSymmetricalRelation()); - $this->assertEquals($bookToAuthor, $authorToBook->getSymmetricalRelation()); - } - - public function testOneToOne() - { - $accountTable = $this->databaseMap->getTableByPhpName('BookstoreEmployeeAccount'); - $accountToEmployee = $accountTable->getRelation('BookstoreEmployee'); - $employeeTable = $this->databaseMap->getTableByPhpName('BookstoreEmployee'); - $employeeToAccount = $employeeTable->getRelation('BookstoreEmployeeAccount'); - $this->assertEquals($accountToEmployee, $employeeToAccount->getSymmetricalRelation()); - $this->assertEquals($employeeToAccount, $accountToEmployee->getSymmetricalRelation()); - } - - public function testSeveralRelationsOnSameTable() - { - $authorTable = $this->databaseMap->getTableByPhpName('Author'); - $authorToEssay = $authorTable->getRelation('EssayRelatedByFirstAuthor'); - $essayTable = $this->databaseMap->getTableByPhpName('Essay'); - $essayToAuthor = $essayTable->getRelation('AuthorRelatedByFirstAuthor'); - $this->assertEquals($authorToEssay, $essayToAuthor->getSymmetricalRelation()); - $this->assertEquals($essayToAuthor, $authorToEssay->getSymmetricalRelation()); - } - - public function testCompositeForeignKey() - { - $favoriteTable = $this->databaseMap->getTableByPhpName('ReaderFavorite'); - $favoriteToOpinion = $favoriteTable->getRelation('BookOpinion'); - $opinionTable = $this->databaseMap->getTableByPhpName('BookOpinion'); - $opinionToFavorite = $opinionTable->getRelation('ReaderFavorite'); - $this->assertEquals($favoriteToOpinion, $opinionToFavorite->getSymmetricalRelation()); - $this->assertEquals($opinionToFavorite, $favoriteToOpinion->getSymmetricalRelation()); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/map/RelationMapTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/map/RelationMapTest.php deleted file mode 100644 index 202755781b..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/map/RelationMapTest.php +++ /dev/null @@ -1,89 +0,0 @@ -databaseMap = new DatabaseMap('foodb'); - $this->relationName = 'foo'; - $this->rmap = new RelationMap($this->relationName); - } - - public function testConstructor() - { - $this->assertEquals($this->relationName, $this->rmap->getName(), 'constructor sets the relation name'); - } - - public function testLocalTable() - { - $this->assertNull($this->rmap->getLocalTable(), 'A new relation has no local table'); - $tmap1 = new TableMap('foo', $this->databaseMap); - $this->rmap->setLocalTable($tmap1); - $this->assertEquals($tmap1, $this->rmap->getLocalTable(), 'The local table is set by setLocalTable()'); - } - - public function testForeignTable() - { - $this->assertNull($this->rmap->getForeignTable(), 'A new relation has no foreign table'); - $tmap2 = new TableMap('bar', $this->databaseMap); - $this->rmap->setForeignTable($tmap2); - $this->assertEquals($tmap2, $this->rmap->getForeignTable(), 'The foreign table is set by setForeignTable()'); - } - - public function testProperties() - { - $properties = array('type', 'onUpdate', 'onDelete'); - foreach ($properties as $property) - { - $getter = 'get' . ucfirst($property); - $setter = 'set' . ucfirst($property); - $this->assertNull($this->rmap->$getter(), "A new relation has no $property"); - $this->rmap->$setter('foo_value'); - $this->assertEquals('foo_value', $this->rmap->$getter(), "The $property is set by setType()"); - } - } - - public function testColumns() - { - $this->assertEquals(array(), $this->rmap->getLocalColumns(), 'A new relation has no local columns'); - $this->assertEquals(array(), $this->rmap->getForeignColumns(), 'A new relation has no foreign columns'); - $tmap1 = new TableMap('foo', $this->databaseMap); - $col1 = $tmap1->addColumn('FOO1', 'Foo1PhpName', 'INTEGER'); - $tmap2 = new TableMap('bar', $this->databaseMap); - $col2 = $tmap2->addColumn('BAR1', 'Bar1PhpName', 'INTEGER'); - $this->rmap->addColumnMapping($col1, $col2); - $this->assertEquals(array($col1), $this->rmap->getLocalColumns(), 'addColumnMapping() adds a local table'); - $this->assertEquals(array($col2), $this->rmap->getForeignColumns(), 'addColumnMapping() adds a foreign table'); - $expected = array('foo.FOO1' => 'bar.BAR1'); - $this->assertEquals($expected, $this->rmap->getColumnMappings(), 'getColumnMappings() returns an associative array of column mappings'); - $col3 = $tmap1->addColumn('FOOFOO', 'FooFooPhpName', 'INTEGER'); - $col4 = $tmap2->addColumn('BARBAR', 'BarBarPhpName', 'INTEGER'); - $this->rmap->addColumnMapping($col3, $col4); - $this->assertEquals(array($col1, $col3), $this->rmap->getLocalColumns(), 'addColumnMapping() adds a local table'); - $this->assertEquals(array($col2, $col4), $this->rmap->getForeignColumns(), 'addColumnMapping() adds a foreign table'); - $expected = array('foo.FOO1' => 'bar.BAR1', 'foo.FOOFOO' => 'bar.BARBAR'); - $this->assertEquals($expected, $this->rmap->getColumnMappings(), 'getColumnMappings() returns an associative array of column mappings'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/map/TableMapTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/map/TableMapTest.php deleted file mode 100644 index 42e7e748b7..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/map/TableMapTest.php +++ /dev/null @@ -1,286 +0,0 @@ -rmap = $this->addRelation('Bar', 'Bar', RelationMap::MANY_TO_ONE); - } -} - -class BarTableMap extends TableMap -{ - public function initialize() - { - $this->setName('bar'); - $this->setPhpName('Bar'); - } -} - - - -/** - * Test class for TableMap. - * - * @author François Zaninotto - * @version $Id: TableMapTest.php 1773 2010-05-25 10:25:06Z francois $ - * @package runtime.map - */ -class TableMapTest extends PHPUnit_Framework_TestCase -{ - protected $databaseMap; - - protected function setUp() - { - parent::setUp(); - $this->databaseMap = new DatabaseMap('foodb'); - $this->tableName = 'foo'; - $this->tmap = new TableMap($this->tableName, $this->databaseMap); - } - - protected function tearDown() - { - // nothing to do for now - parent::tearDown(); - } - - public function testConstructor() - { - $this->assertEquals(array(), $this->tmap->getColumns(), 'A new table map has no columns'); - $this->assertEquals($this->tableName, $this->tmap->getName(), 'constructor can set the table name'); - $this->assertEquals($this->databaseMap, $this->tmap->getDatabaseMap(), 'Constructor can set the database map'); - try { - $tmap = new TableMap(); - $this->assertTrue(true, 'A table map can be instanciated with no parameters'); - } catch (Exception $e) { - $this->fail('A table map can be instanciated with no parameters'); - } - } - - public function testProperties() - { - $tmap = new TableMap(); - $properties = array('name', 'phpName', 'className', 'package'); - foreach ($properties as $property) - { - $getter = 'get' . ucfirst($property); - $setter = 'set' . ucfirst($property); - $this->assertNull($tmap->$getter(), "A new relation has no $property"); - $tmap->$setter('foo_value'); - $this->assertEquals('foo_value', $tmap->$getter(), "The $property is set by setType()"); - } - } - - public function testHasColumn() - { - $this->assertFalse($this->tmap->hasColumn('BAR'), 'hascolumn() returns false when the column is not in the table map'); - $column = $this->tmap->addColumn('BAR', 'Bar', 'INTEGER'); - $this->assertTrue($this->tmap->hasColumn('BAR'), 'hascolumn() returns true when the column is in the table map'); - $this->assertTrue($this->tmap->hasColumn('foo.bar'), 'hascolumn() accepts a denormalized column name'); - $this->assertFalse($this->tmap->hasColumn('foo.bar', false), 'hascolumn() accepts a $normalize parameter to skip name normalization'); - $this->assertTrue($this->tmap->hasColumn('BAR', false), 'hascolumn() accepts a $normalize parameter to skip name normalization'); - $this->assertTrue($this->tmap->hasColumn($column), 'hascolumn() accepts a ColumnMap object as parameter'); - } - - public function testGetColumn() - { - $column = $this->tmap->addColumn('BAR', 'Bar', 'INTEGER'); - $this->assertEquals($column, $this->tmap->getColumn('BAR'), 'getColumn returns a ColumnMap according to a column name'); - try - { - $this->tmap->getColumn('FOO'); - $this->fail('getColumn throws an exception when called on an inexistent column'); - } catch(PropelException $e) {} - $this->assertEquals($column, $this->tmap->getColumn('foo.bar'), 'getColumn accepts a denormalized column name'); - try - { - $this->tmap->getColumn('foo.bar', false); - $this->fail('getColumn accepts a $normalize parameter to skip name normalization'); - } catch(PropelException $e) {} - } - - public function testGetColumnByPhpName() - { - $column = $this->tmap->addColumn('BAR_BAZ', 'BarBaz', 'INTEGER'); - $this->assertEquals($column, $this->tmap->getColumnByPhpName('BarBaz'), 'getColumnByPhpName() returns a ColumnMap according to a column phpName'); - try - { - $this->tmap->getColumn('Foo'); - $this->fail('getColumnByPhpName() throws an exception when called on an inexistent column'); - } catch(PropelException $e) {} - } - - public function testGetColumns() - { - $this->assertEquals(array(), $this->tmap->getColumns(), 'getColumns returns an empty array when no columns were added'); - $column1 = $this->tmap->addColumn('BAR', 'Bar', 'INTEGER'); - $column2 = $this->tmap->addColumn('BAZ', 'Baz', 'INTEGER'); - $this->assertEquals(array('BAR' => $column1, 'BAZ' => $column2), $this->tmap->getColumns(), 'getColumns returns the columns indexed by name'); - } - - public function testAddPrimaryKey() - { - $column1 = $this->tmap->addPrimaryKey('BAR', 'Bar', 'INTEGER'); - $this->assertTrue($column1->isPrimaryKey(), 'Columns added by way of addPrimaryKey() are primary keys'); - $column2 = $this->tmap->addColumn('BAZ', 'Baz', 'INTEGER'); - $this->assertFalse($column2->isPrimaryKey(), 'Columns added by way of addColumn() are not primary keys by default'); - $column3 = $this->tmap->addColumn('BAZZ', 'Bazz', 'INTEGER', null, null, null, true); - $this->assertTrue($column3->isPrimaryKey(), 'Columns added by way of addColumn() can be defined as primary keys'); - $column4 = $this->tmap->addForeignKey('BAZZZ', 'Bazzz', 'INTEGER', 'Table1', 'column1'); - $this->assertFalse($column4->isPrimaryKey(), 'Columns added by way of addForeignKey() are not primary keys'); - $column5 = $this->tmap->addForeignPrimaryKey('BAZZZZ', 'Bazzzz', 'INTEGER', 'table1', 'column1'); - $this->assertTrue($column5->isPrimaryKey(), 'Columns added by way of addForeignPrimaryKey() are primary keys'); - } - - public function testGetPrimaryKeyColumns() - { - $this->assertEquals(array(), $this->tmap->getPrimaryKeyColumns(), 'getPrimaryKeyColumns() returns an empty array by default'); - $column1 = $this->tmap->addPrimaryKey('BAR', 'Bar', 'INTEGER'); - $column3 = $this->tmap->addColumn('BAZZ', 'Bazz', 'INTEGER', null, null, null, true); - $expected = array($column1, $column3); - $this->assertEquals($expected, $this->tmap->getPrimaryKeyColumns(), 'getPrimaryKeyColumns() returns an array of the table primary keys'); - } - - public function testGetPrimaryKeys() - { - $this->assertEquals(array(), $this->tmap->getPrimaryKeys(), 'getPrimaryKeys() returns an empty array by default'); - $column1 = $this->tmap->addPrimaryKey('BAR', 'Bar', 'INTEGER'); - $column3 = $this->tmap->addColumn('BAZZ', 'Bazz', 'INTEGER', null, null, null, true); - $expected = array('BAR' => $column1, 'BAZZ' => $column3); - $this->assertEquals($expected, $this->tmap->getPrimaryKeys(), 'getPrimaryKeys() returns an array of the table primary keys'); - } - - public function testAddForeignKey() - { - $column1 = $this->tmap->addForeignKey('BAR', 'Bar', 'INTEGER', 'Table1', 'column1'); - $this->assertTrue($column1->isForeignKey(), 'Columns added by way of addForeignKey() are foreign keys'); - $column2 = $this->tmap->addColumn('BAZ', 'Baz', 'INTEGER'); - $this->assertFalse($column2->isForeignKey(), 'Columns added by way of addColumn() are not foreign keys by default'); - $column3 = $this->tmap->addColumn('BAZZ', 'Bazz', 'INTEGER', null, null, null, false, 'Table1', 'column1'); - $this->assertTrue($column3->isForeignKey(), 'Columns added by way of addColumn() can be defined as foreign keys'); - $column4 = $this->tmap->addPrimaryKey('BAZZZ', 'Bazzz', 'INTEGER'); - $this->assertFalse($column4->isForeignKey(), 'Columns added by way of addPrimaryKey() are not foreign keys'); - $column5 = $this->tmap->addForeignPrimaryKey('BAZZZZ', 'Bazzzz', 'INTEGER', 'table1', 'column1'); - $this->assertTrue($column5->isForeignKey(), 'Columns added by way of addForeignPrimaryKey() are foreign keys'); - } - - public function testGetForeignKeys() - { - $this->assertEquals(array(), $this->tmap->getForeignKeys(), 'getForeignKeys() returns an empty array by default'); - $column1 = $this->tmap->addForeignKey('BAR', 'Bar', 'INTEGER', 'Table1', 'column1'); - $column3 = $this->tmap->addColumn('BAZZ', 'Bazz', 'INTEGER', null, null, null, false, 'Table1', 'column1'); - $expected = array('BAR' => $column1, 'BAZZ' => $column3); - $this->assertEquals($expected, $this->tmap->getForeignKeys(), 'getForeignKeys() returns an array of the table foreign keys'); - } - - public function testLazyLoadRelations() - { - try { - $this->tmap->getRelation('Bar'); - $this->fail('getRelation() throws an exception when called on a table with no relations'); - } catch (PropelException $e) { - $this->assertTrue(true, 'getRelation() throws an exception when called on a table with no relations'); - } - $foreigntmap = new BarTableMap(); - $this->databaseMap->addTableObject($foreigntmap); - $localtmap = new FooTableMap(); - $this->databaseMap->addTableObject($localtmap); - $rmap = $localtmap->getRelation('Bar'); - $this->assertEquals($rmap, $localtmap->rmap, 'getRelation() returns the relations lazy loaded by buildRelations()'); - } - - public function testAddRelation() - { - $foreigntmap1 = new TableMap('bar'); - $foreigntmap1->setClassname('Bar'); - $this->databaseMap->addTableObject($foreigntmap1); - $foreigntmap2 = new TableMap('baz'); - $foreigntmap2->setClassname('Baz'); - $this->databaseMap->addTableObject($foreigntmap2); - $this->rmap1 = $this->tmap->addRelation('Bar', 'Bar', RelationMap::MANY_TO_ONE); - $this->rmap2 = $this->tmap->addRelation('Bazz', 'Baz', RelationMap::ONE_TO_MANY); - $this->tmap->getRelations(); - // now on to the test - $this->assertEquals($this->rmap1->getLocalTable(), $this->tmap, 'adding a relation with HAS_ONE sets the local table to the current table'); - $this->assertEquals($this->rmap1->getForeignTable(), $foreigntmap1, 'adding a relation with HAS_ONE sets the foreign table according to the name given'); - $this->assertEquals(RelationMap::MANY_TO_ONE, $this->rmap1->getType(), 'adding a relation with HAS_ONE sets the foreign table type accordingly'); - - $this->assertEquals($this->rmap2->getForeignTable(), $this->tmap, 'adding a relation with HAS_MANY sets the foreign table to the current table'); - $this->assertEquals($this->rmap2->getLocalTable(), $foreigntmap2, 'adding a relation with HAS_MANY sets the local table according to the name given'); - $this->assertEquals(RelationMap::ONE_TO_MANY, $this->rmap2->getType(), 'adding a relation with HAS_MANY sets the foreign table type accordingly'); - - $expectedRelations = array('Bar' => $this->rmap1, 'Bazz' => $this->rmap2); - $this->assertEquals($expectedRelations, $this->tmap->getRelations(), 'getRelations() returns an associative array of all the relations'); - } - - // deprecated method - public function testNormalizeColName() - { - $tmap = new TestableTableMap(); - $this->assertEquals('', $tmap->normalizeColName(''), 'normalizeColName returns an empty string when passed an empty string'); - $this->assertEquals('BAR', $tmap->normalizeColName('bar'), 'normalizeColName uppercases the input'); - $this->assertEquals('BAR_BAZ', $tmap->normalizeColName('bar_baz'), 'normalizeColName does not mind underscores'); - $this->assertEquals('BAR', $tmap->normalizeColName('FOO.BAR'), 'normalizeColName removes table prefix'); - $this->assertEquals('BAR', $tmap->normalizeColName('BAR'), 'normalizeColName leaves normalized column names unchanged'); - $this->assertEquals('BAR_BAZ', $tmap->normalizeColName('foo.bar_baz'), 'normalizeColName can do all the above at the same time'); - } - - // deprecated method - public function testContainsColumn() - { - $this->assertFalse($this->tmap->containsColumn('BAR'), 'containsColumn returns false when the column is not in the table map'); - $column = $this->tmap->addColumn('BAR', 'Bar', 'INTEGER'); - $this->assertTrue($this->tmap->containsColumn('BAR'), 'containsColumn returns true when the column is in the table map'); - $this->assertTrue($this->tmap->containsColumn('foo.bar'), 'containsColumn accepts a denormalized column name'); - $this->assertFalse($this->tmap->containsColumn('foo.bar', false), 'containsColumn accepts a $normalize parameter to skip name normalization'); - $this->assertTrue($this->tmap->containsColumn('BAR', false), 'containsColumn accepts a $normalize parameter to skip name normalization'); - $this->assertTrue($this->tmap->containsColumn($column), 'containsColumn accepts a ColumnMap object as parameter'); - } - - // deprecated methods - public function testPrefix() - { - $tmap = new TestableTableMap(); - $this->assertNull($tmap->getPrefix(), 'prefix is empty until set'); - $this->assertFalse($tmap->hasPrefix('barbaz'), 'hasPrefix returns false when prefix is not set'); - $tmap->setPrefix('bar'); - $this->assertEquals('bar', $tmap->getPrefix(), 'prefix is set by setPrefix()'); - $this->assertTrue($tmap->hasPrefix('barbaz'), 'hasPrefix returns true when prefix is set and found in string'); - $this->assertFalse($tmap->hasPrefix('baz'), 'hasPrefix returns false when prefix is set and not found in string'); - $this->assertFalse($tmap->hasPrefix('bazbar'), 'hasPrefix returns false when prefix is set and not found anywhere in string'); - $this->assertEquals('baz', $tmap->removePrefix('barbaz'), 'removePrefix returns string without prefix if found at the beginning'); - $this->assertEquals('bazbaz', $tmap->removePrefix('bazbaz'), 'removePrefix returns original string when prefix is not found'); - $this->assertEquals('bazbar', $tmap->removePrefix('bazbar'), 'removePrefix returns original string when prefix is not found at the beginning'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/om/BaseObjectSerializeTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/om/BaseObjectSerializeTest.php deleted file mode 100644 index 16a6fb836c..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/om/BaseObjectSerializeTest.php +++ /dev/null @@ -1,95 +0,0 @@ -assertEquals($book, unserialize($sb)); - } - - public function testSerializePopulatedObject() - { - $book = new Book(); - $book->setTitle('Foo1'); - $book->setISBN('1234'); - $sb = serialize($book); - $this->assertEquals($book, unserialize($sb)); - } - - public function testSerializePersistedObject() - { - $book = new Book(); - $book->setTitle('Foo2'); - $book->setISBN('1234'); - $book->save(); - $sb = serialize($book); - $this->assertEquals($book, unserialize($sb)); - } - - public function testSerializeHydratedObject() - { - $book = new Book(); - $book->setTitle('Foo3'); - $book->setISBN('1234'); - $book->save(); - BookPeer::clearInstancePool(); - - $book = BookQuery::create()->findOneByTitle('Foo3'); - $sb = serialize($book); - $this->assertEquals($book, unserialize($sb)); - } - - public function testSerializeObjectWithRelations() - { - $author = new Author(); - $author->setFirstName('John'); - $book = new Book(); - $book->setTitle('Foo4'); - $book->setISBN('1234'); - $book->setAuthor($author); - $book->save(); - $b = clone $book; - $sb = serialize($b); - $book->clearAllReferences(); - $this->assertEquals($book, unserialize($sb)); - } - - public function testSerializeObjectWithCollections() - { - $book1 = new Book(); - $book1->setTitle('Foo5'); - $book1->setISBN('1234'); - $book2 = new Book(); - $book2->setTitle('Foo6'); - $book2->setISBN('1234'); - $author = new Author(); - $author->setFirstName('JAne'); - $author->addBook($book1); - $author->addBook($book2); - $author->save(); - $a = clone $author; - $sa = serialize($a); - $author->clearAllReferences(); - $this->assertEquals($author, unserialize($sa)); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/om/BaseObjectTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/om/BaseObjectTest.php deleted file mode 100644 index dd3f4ebe28..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/om/BaseObjectTest.php +++ /dev/null @@ -1,69 +0,0 @@ -assertEquals(array(), $b->getVirtualColumns(), 'getVirtualColumns() returns an empty array for new objects'); - $b->virtualColumns = array('foo' => 'bar'); - $this->assertEquals(array('foo' => 'bar'), $b->getVirtualColumns(), 'getVirtualColumns() returns an associative array of virtual columns'); - } - - public function testHasVirtualColumn() - { - $b = new TestableBaseObject(); - $this->assertFalse($b->hasVirtualColumn('foo'), 'hasVirtualColumn() returns false if the virtual column is not set'); - $b->virtualColumns = array('foo' => 'bar'); - $this->assertTrue($b->hasVirtualColumn('foo'), 'hasVirtualColumn() returns true if the virtual column is set'); - } - - /** - * @expectedException PropelException - */ - public function testGetVirtualColumnWrongKey() - { - $b = new TestableBaseObject(); - $b->getVirtualColumn('foo'); - } - - public function testGetVirtualColumn() - { - $b = new TestableBaseObject(); - $b->virtualColumns = array('foo' => 'bar'); - $this->assertEquals('bar', $b->getVirtualColumn('foo'), 'getVirtualColumn() returns a virtual column value based on its key'); - } - - public function testSetVirtualColumn() - { - $b = new TestableBaseObject(); - $b->setVirtualColumn('foo', 'bar'); - $this->assertEquals('bar', $b->getVirtualColumn('foo'), 'setVirtualColumn() sets a virtual column value based on its key'); - $b->setVirtualColumn('foo', 'baz'); - $this->assertEquals('baz', $b->getVirtualColumn('foo'), 'setVirtualColumn() can modify the value of an existing virtual column'); - $this->assertEquals($b, $b->setVirtualColumn('foo', 'bar'), 'setVirtualColumn() returns the current object'); - } -} - -class TestableBaseObject extends BaseObject -{ - public $virtualColumns = array(); -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/query/CriteriaCombineTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/query/CriteriaCombineTest.php deleted file mode 100644 index d5cec12ea7..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/query/CriteriaCombineTest.php +++ /dev/null @@ -1,385 +0,0 @@ -c = new Criteria(); - $this->savedAdapter = Propel::getDB(null); - Propel::setDB(null, new DBSQLite()); - } - - protected function tearDown() - { - Propel::setDB(null, $this->savedAdapter); - parent::tearDown(); - } - - /** - * test various properties of Criterion and nested criterion - */ - public function testNestedCriterion() - { - $table2 = "myTable2"; - $column2 = "myColumn2"; - $value2 = "myValue2"; - $key2 = "$table2.$column2"; - - $table3 = "myTable3"; - $column3 = "myColumn3"; - $value3 = "myValue3"; - $key3 = "$table3.$column3"; - - $table4 = "myTable4"; - $column4 = "myColumn4"; - $value4 = "myValue4"; - $key4 = "$table4.$column4"; - - $table5 = "myTable5"; - $column5 = "myColumn5"; - $value5 = "myValue5"; - $key5 = "$table5.$column5"; - - $crit2 = $this->c->getNewCriterion($key2, $value2, Criteria::EQUAL); - $crit3 = $this->c->getNewCriterion($key3, $value3, Criteria::EQUAL); - $crit4 = $this->c->getNewCriterion($key4, $value4, Criteria::EQUAL); - $crit5 = $this->c->getNewCriterion($key5, $value5, Criteria::EQUAL); - - $crit2->addAnd($crit3)->addOr($crit4->addAnd($crit5)); - $expect = "((myTable2.myColumn2=:p1 AND myTable3.myColumn3=:p2) " - . "OR (myTable4.myColumn4=:p3 AND myTable5.myColumn5=:p4))"; - - $sb = ""; - $params = array(); - $crit2->appendPsTo($sb, $params); - - $expect_params = array( - array('table' => 'myTable2', 'column' => 'myColumn2', 'value' => 'myValue2'), - array('table' => 'myTable3', 'column' => 'myColumn3', 'value' => 'myValue3'), - array('table' => 'myTable4', 'column' => 'myColumn4', 'value' => 'myValue4'), - array('table' => 'myTable5', 'column' => 'myColumn5', 'value' => 'myValue5'), - ); - - $this->assertEquals($expect, $sb); - $this->assertEquals($expect_params, $params); - - $crit6 = $this->c->getNewCriterion($key2, $value2, Criteria::EQUAL); - $crit7 = $this->c->getNewCriterion($key3, $value3, Criteria::EQUAL); - $crit8 = $this->c->getNewCriterion($key4, $value4, Criteria::EQUAL); - $crit9 = $this->c->getNewCriterion($key5, $value5, Criteria::EQUAL); - - $crit6->addAnd($crit7)->addOr($crit8)->addAnd($crit9); - $expect = "(((myTable2.myColumn2=:p1 AND myTable3.myColumn3=:p2) " - . "OR myTable4.myColumn4=:p3) AND myTable5.myColumn5=:p4)"; - - $sb = ""; - $params = array(); - $crit6->appendPsTo($sb, $params); - - $expect_params = array( - array('table' => 'myTable2', 'column' => 'myColumn2', 'value' => 'myValue2'), - array('table' => 'myTable3', 'column' => 'myColumn3', 'value' => 'myValue3'), - array('table' => 'myTable4', 'column' => 'myColumn4', 'value' => 'myValue4'), - array('table' => 'myTable5', 'column' => 'myColumn5', 'value' => 'myValue5'), - ); - - $this->assertEquals($expect, $sb); - $this->assertEquals($expect_params, $params); - - // should make sure we have tests for all possibilities - - $crita = $crit2->getAttachedCriterion(); - - $this->assertEquals($crit2, $crita[0]); - $this->assertEquals($crit3, $crita[1]); - $this->assertEquals($crit4, $crita[2]); - $this->assertEquals($crit5, $crita[3]); - - $tables = $crit2->getAllTables(); - - $this->assertEquals($crit2->getTable(), $tables[0]); - $this->assertEquals($crit3->getTable(), $tables[1]); - $this->assertEquals($crit4->getTable(), $tables[2]); - $this->assertEquals($crit5->getTable(), $tables[3]); - - // simple confirmations that equality operations work - $this->assertTrue($crit2->hashCode() === $crit2->hashCode()); - } - - /** - * Tests <= and >=. - */ - public function testBetweenCriterion() - { - $cn1 = $this->c->getNewCriterion("INVOICE.COST", 1000, Criteria::GREATER_EQUAL); - $cn2 = $this->c->getNewCriterion("INVOICE.COST", 5000, Criteria::LESS_EQUAL); - $this->c->add($cn1->addAnd($cn2)); - - $expect = "SELECT FROM INVOICE WHERE (INVOICE.COST>=:p1 AND INVOICE.COST<=:p2)"; - $expect_params = array( - array('table' => 'INVOICE', 'column' => 'COST', 'value' => 1000), - array('table' => 'INVOICE', 'column' => 'COST', 'value' => 5000), - ); - - try { - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - } catch (PropelException $e) { - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ".$e->getMessage()); - } - - $this->assertEquals($expect, $result); - $this->assertEquals($expect_params, $params); - } - - /** - * Verify that AND and OR criterion are nested correctly. - */ - public function testPrecedence() - { - $cn1 = $this->c->getNewCriterion("INVOICE.COST", "1000", Criteria::GREATER_EQUAL); - $cn2 = $this->c->getNewCriterion("INVOICE.COST", "2000", Criteria::LESS_EQUAL); - $cn3 = $this->c->getNewCriterion("INVOICE.COST", "8000", Criteria::GREATER_EQUAL); - $cn4 = $this->c->getNewCriterion("INVOICE.COST", "9000", Criteria::LESS_EQUAL); - $this->c->add($cn1->addAnd($cn2)); - $this->c->addOr($cn3->addAnd($cn4)); - - $expect = - "SELECT FROM INVOICE WHERE ((INVOICE.COST>=:p1 AND INVOICE.COST<=:p2) OR (INVOICE.COST>=:p3 AND INVOICE.COST<=:p4))"; - - $expect_params = array( - array('table' => 'INVOICE', 'column' => 'COST', 'value' => '1000'), - array('table' => 'INVOICE', 'column' => 'COST', 'value' => '2000'), - array('table' => 'INVOICE', 'column' => 'COST', 'value' => '8000'), - array('table' => 'INVOICE', 'column' => 'COST', 'value' => '9000'), - ); - - try { - $params=array(); - $result = BasePeer::createSelectSql($this->c, $params); - } catch (PropelException $e) { - $this->fail("PropelException thrown in BasePeer::createSelectSql()"); - } - - $this->assertEquals($expect, $result); - $this->assertEquals($expect_params, $params); - } - - public function testCombineCriterionAndSimple() - { - $this->c->addCond('cond1', "INVOICE.COST", "1000", Criteria::GREATER_EQUAL); - $this->c->addCond('cond2', "INVOICE.COST", "2000", Criteria::LESS_EQUAL); - $this->c->combine(array('cond1', 'cond2'), Criteria::LOGICAL_AND); - - $expect = "SELECT FROM INVOICE WHERE (INVOICE.COST>=:p1 AND INVOICE.COST<=:p2)"; - $expect_params = array( - array('table' => 'INVOICE', 'column' => 'COST', 'value' => '1000'), - array('table' => 'INVOICE', 'column' => 'COST', 'value' => '2000'), - ); - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $this->assertEquals($expect, $result); - $this->assertEquals($expect_params, $params); - } - - public function testCombineCriterionAndLessSimple() - { - $this->c->addCond('cond1', "INVOICE.COST1", "1000", Criteria::GREATER_EQUAL); - $this->c->addCond('cond2', "INVOICE.COST2", "2000", Criteria::LESS_EQUAL); - $this->c->add("INVOICE.COST3", "8000", Criteria::GREATER_EQUAL); - $this->c->combine(array('cond1', 'cond2'), Criteria::LOGICAL_AND); - $this->c->add("INVOICE.COST4", "9000", Criteria::LESS_EQUAL); - - $expect = "SELECT FROM INVOICE WHERE INVOICE.COST3>=:p1 AND (INVOICE.COST1>=:p2 AND INVOICE.COST2<=:p3) AND INVOICE.COST4<=:p4"; - $expect_params = array( - array('table' => 'INVOICE', 'column' => 'COST3', 'value' => '8000'), - array('table' => 'INVOICE', 'column' => 'COST1', 'value' => '1000'), - array('table' => 'INVOICE', 'column' => 'COST2', 'value' => '2000'), - array('table' => 'INVOICE', 'column' => 'COST4', 'value' => '9000'), - ); - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $this->assertEquals($expect, $result); - $this->assertEquals($expect_params, $params); - } - - public function testCombineCriterionAndMultiple() - { - $this->c->addCond('cond1',"INVOICE.COST1", "1000", Criteria::GREATER_EQUAL); - $this->c->addCond('cond2', "INVOICE.COST2", "2000", Criteria::LESS_EQUAL); - $this->c->addCond('cond3', "INVOICE.COST3", "8000", Criteria::GREATER_EQUAL); - $this->c->addCond('cond4', "INVOICE.COST4", "9000", Criteria::LESS_EQUAL); - $this->c->combine(array('cond1', 'cond2', 'cond3', 'cond4'), Criteria::LOGICAL_AND); - - $expect = "SELECT FROM INVOICE WHERE (((INVOICE.COST1>=:p1 AND INVOICE.COST2<=:p2) AND INVOICE.COST3>=:p3) AND INVOICE.COST4<=:p4)"; - $expect_params = array( - array('table' => 'INVOICE', 'column' => 'COST1', 'value' => '1000'), - array('table' => 'INVOICE', 'column' => 'COST2', 'value' => '2000'), - array('table' => 'INVOICE', 'column' => 'COST3', 'value' => '8000'), - array('table' => 'INVOICE', 'column' => 'COST4', 'value' => '9000'), - ); - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $this->assertEquals($expect, $result); - $this->assertEquals($expect_params, $params); - } - - public function testCombineCriterionOrSimple() - { - $this->c->addCond('cond1', "INVOICE.COST", "1000", Criteria::GREATER_EQUAL); - $this->c->addCond('cond2', "INVOICE.COST", "2000", Criteria::LESS_EQUAL); - $this->c->combine(array('cond1', 'cond2'), Criteria::LOGICAL_OR); - - $expect = "SELECT FROM INVOICE WHERE (INVOICE.COST>=:p1 OR INVOICE.COST<=:p2)"; - $expect_params = array( - array('table' => 'INVOICE', 'column' => 'COST', 'value' => '1000'), - array('table' => 'INVOICE', 'column' => 'COST', 'value' => '2000'), - ); - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $this->assertEquals($expect, $result); - $this->assertEquals($expect_params, $params); - } - - public function testCombineCriterionOrLessSimple() - { - $this->c->addCond('cond1', "INVOICE.COST1", "1000", Criteria::GREATER_EQUAL); - $this->c->addCond('cond2', "INVOICE.COST2", "2000", Criteria::LESS_EQUAL); - $this->c->add("INVOICE.COST3", "8000", Criteria::GREATER_EQUAL); - $this->c->combine(array('cond1', 'cond2'), Criteria::LOGICAL_OR); - $this->c->addOr("INVOICE.COST4", "9000", Criteria::LESS_EQUAL); - - $expect = "SELECT FROM INVOICE WHERE INVOICE.COST3>=:p1 AND ((INVOICE.COST1>=:p2 OR INVOICE.COST2<=:p3) OR INVOICE.COST4<=:p4)"; - $expect_params = array( - array('table' => 'INVOICE', 'column' => 'COST3', 'value' => '8000'), - array('table' => 'INVOICE', 'column' => 'COST1', 'value' => '1000'), - array('table' => 'INVOICE', 'column' => 'COST2', 'value' => '2000'), - array('table' => 'INVOICE', 'column' => 'COST4', 'value' => '9000'), - ); - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $this->assertEquals($expect, $result); - $this->assertEquals($expect_params, $params); - } - - public function testCombineCriterionOrMultiple() - { - $this->c->addCond('cond1',"INVOICE.COST1", "1000", Criteria::GREATER_EQUAL); - $this->c->addCond('cond2', "INVOICE.COST2", "2000", Criteria::LESS_EQUAL); - $this->c->addCond('cond3', "INVOICE.COST3", "8000", Criteria::GREATER_EQUAL); - $this->c->addCond('cond4', "INVOICE.COST4", "9000", Criteria::LESS_EQUAL); - $this->c->combine(array('cond1', 'cond2', 'cond3', 'cond4'), Criteria::LOGICAL_OR); - - $expect = "SELECT FROM INVOICE WHERE (((INVOICE.COST1>=:p1 OR INVOICE.COST2<=:p2) OR INVOICE.COST3>=:p3) OR INVOICE.COST4<=:p4)"; - $expect_params = array( - array('table' => 'INVOICE', 'column' => 'COST1', 'value' => '1000'), - array('table' => 'INVOICE', 'column' => 'COST2', 'value' => '2000'), - array('table' => 'INVOICE', 'column' => 'COST3', 'value' => '8000'), - array('table' => 'INVOICE', 'column' => 'COST4', 'value' => '9000'), - ); - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $this->assertEquals($expect, $result); - $this->assertEquals($expect_params, $params); - } - - public function testCombineNamedCriterions() - { - $this->c->addCond('cond1', "INVOICE.COST1", "1000", Criteria::GREATER_EQUAL); - $this->c->addCond('cond2', "INVOICE.COST2", "2000", Criteria::LESS_EQUAL); - $this->c->combine(array('cond1', 'cond2'), Criteria::LOGICAL_AND, 'cond12'); - $this->c->addCond('cond3', "INVOICE.COST3", "8000", Criteria::GREATER_EQUAL); - $this->c->addCond('cond4', "INVOICE.COST4", "9000", Criteria::LESS_EQUAL); - $this->c->combine(array('cond3', 'cond4'), Criteria::LOGICAL_AND, 'cond34'); - $this->c->combine(array('cond12', 'cond34'), Criteria::LOGICAL_OR); - - $expect = "SELECT FROM INVOICE WHERE ((INVOICE.COST1>=:p1 AND INVOICE.COST2<=:p2) OR (INVOICE.COST3>=:p3 AND INVOICE.COST4<=:p4))"; - $expect_params = array( - array('table' => 'INVOICE', 'column' => 'COST1', 'value' => '1000'), - array('table' => 'INVOICE', 'column' => 'COST2', 'value' => '2000'), - array('table' => 'INVOICE', 'column' => 'COST3', 'value' => '8000'), - array('table' => 'INVOICE', 'column' => 'COST4', 'value' => '9000'), - ); - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $this->assertEquals($expect, $result); - $this->assertEquals($expect_params, $params); - } - - public function testCombineDirtyOperators() - { - $this->c->addCond('cond1', "INVOICE.COST1", "1000", Criteria::GREATER_EQUAL); - $this->c->addCond('cond2', "INVOICE.COST2", "2000", Criteria::LESS_EQUAL); - $this->c->combine(array('cond1', 'cond2'), 'AnD', 'cond12'); - $this->c->addCond('cond3', "INVOICE.COST3", "8000", Criteria::GREATER_EQUAL); - $this->c->addCond('cond4', "INVOICE.COST4", "9000", Criteria::LESS_EQUAL); - $this->c->combine(array('cond3', 'cond4'), 'aNd', 'cond34'); - $this->c->combine(array('cond12', 'cond34'), 'oR'); - - $expect = "SELECT FROM INVOICE WHERE ((INVOICE.COST1>=:p1 AND INVOICE.COST2<=:p2) OR (INVOICE.COST3>=:p3 AND INVOICE.COST4<=:p4))"; - $expect_params = array( - array('table' => 'INVOICE', 'column' => 'COST1', 'value' => '1000'), - array('table' => 'INVOICE', 'column' => 'COST2', 'value' => '2000'), - array('table' => 'INVOICE', 'column' => 'COST3', 'value' => '8000'), - array('table' => 'INVOICE', 'column' => 'COST4', 'value' => '9000'), - ); - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $this->assertEquals($expect, $result); - $this->assertEquals($expect_params, $params); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/query/CriteriaFluidConditionTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/query/CriteriaFluidConditionTest.php deleted file mode 100644 index a2f0d2bbca..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/query/CriteriaFluidConditionTest.php +++ /dev/null @@ -1,181 +0,0 @@ - - _if(true)-> - test()-> - _endif(); - $this->assertTrue($f->getTest(), '_if() executes the next method if the test is true'); - $f = new TestableCriteria(); - $f-> - _if(false)-> - foo()-> - _endif(); - $this->assertFalse($f->getTest(), '_if() does not check the existence of the next method if the test is false'); - $f = new TestableCriteria(); - $f-> - _if(true)-> - dummy()-> - test()-> - _endif(); - $this->assertTrue($f->getTest(), '_if() executes the next methods until _endif() if the test is true'); - $f = new TestableCriteria(); - $f-> - _if(false)-> - dummy()-> - test()-> - _endif(); - $this->assertFalse($f->getTest(), '_if() does not execute the next methods until _endif() if the test is false'); - } - - /** - * @expectedException PropelException - */ - public function testNestedIf() - { - $f = new TestableCriteria(); - $f-> - _if(false)-> - _if(true)-> - test()-> - _endif(); - } - - public function testElseIf() - { - $f = new TestableCriteria(); - $f-> - _if(true)-> - _elseif(true)-> - test()-> - _endif(); - $this->assertFalse($f->getTest(), '_elseif() does not execute the next method if the main test is true'); - $f = new TestableCriteria(); - $f-> - _if(true)-> - _elseif(false)-> - test()-> - _endif(); - $this->assertFalse($f->getTest(), '_elseif() does not execute the next method if the main test is true'); - $f = new TestableCriteria(); - $f-> - _if(false)-> - _elseif(true)-> - test()-> - _endif(); - $this->assertTrue($f->getTest(), '_elseif() executes the next method if the main test is false and the elseif test is true'); - $f = new TestableCriteria(); - $f-> - _if(false)-> - _elseif(false)-> - test()-> - _endif(); - $this->assertFalse($f->getTest(), '_elseif() does not execute the next method if the main test is false and the elseif test is false'); - } - - public function testElse() - { - $f = new TestableCriteria(); - $f-> - _if(true)-> - _else()-> - test()-> - _endif(); - $this->assertFalse($f->getTest(), '_else() does not execute the next method if the main test is true'); - $f = new TestableCriteria(); - $f-> - _if(false)-> - _else()-> - test()-> - _endif(); - $this->assertTrue($f->getTest(), '_else() executes the next method if the main test is false'); - $f = new TestableCriteria(); - $f-> - _if(false)-> - _elseif(true)-> - _else()-> - test()-> - _endif(); - $this->assertFalse($f->getTest(), '_else() does not execute the next method if the previous test is true'); - $f-> - _if(false)-> - _elseif(false)-> - _else()-> - test()-> - _endif(); - $this->assertTrue($f->getTest(), '_else() executes the next method if all the previous tests are false'); - } - - public function testEndif() - { - $f = new TestableCriteria(); - $res = $f-> - _if(true)-> - test()-> - _endif(); - $this->assertEquals($res, $f, '_endif() returns the main object if the test is true'); - $f = new TestableCriteria(); - $res = $f-> - _if(false)-> - test()-> - _endif(); - $this->assertEquals($res, $f, '_endif() returns the main object if the test is false'); - $f = new TestableCriteria(); - $f-> - _if(true)-> - _endif()-> - test(); - $this->assertTrue($f->getTest(), '_endif() stops the condition check'); - $f = new TestableCriteria(); - $f-> - _if(false)-> - _endif()-> - test(); - $this->assertTrue($f->getTest(), '_endif() stops the condition check'); - } -} - -class TestableCriteria extends Criteria -{ - protected $test = false; - - public function test() - { - $this->test = true; - - return $this; - } - - public function dummy() - { - return $this; - } - - public function getTest() - { - return $this->test; - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/query/CriteriaMergeTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/query/CriteriaMergeTest.php deleted file mode 100644 index e28d8a30bf..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/query/CriteriaMergeTest.php +++ /dev/null @@ -1,399 +0,0 @@ -Christopher Elkins - * @author Sam Joseph - * @version $Id: CriteriaTest.php 1347 2009-12-03 21:06:36Z francois $ - * @package runtime.query - */ -class CriteriaMergeTest extends BaseTestCase -{ - - protected function assertCriteriaTranslation($criteria, $expectedSql, $message = '') - { - $params = array(); - $result = BasePeer::createSelectSql($criteria, $params); - $this->assertEquals($expectedSql, $result, $message); - } - - public function testMergeWithLimit() - { - $c1 = new Criteria(); - $c1->setLimit(123); - $c2 = new Criteria(); - $c1->mergeWith($c2); - $this->assertEquals(123, $c1->getLimit(), 'mergeWith() does not remove an existing limit'); - $c1 = new Criteria(); - $c2 = new Criteria(); - $c2->setLimit(123); - $c1->mergeWith($c2); - $this->assertEquals(123, $c1->getLimit(), 'mergeWith() merges the limit'); - $c1 = new Criteria(); - $c1->setLimit(456); - $c2 = new Criteria(); - $c2->setLimit(123); - $c1->mergeWith($c2); - $this->assertEquals(456, $c1->getLimit(), 'mergeWith() does not merge the limit in case of conflict'); - } - - public function testMergeWithOffset() - { - $c1 = new Criteria(); - $c1->setOffset(123); - $c2 = new Criteria(); - $c1->mergeWith($c2); - $this->assertEquals(123, $c1->getOffset(), 'mergeWith() does not remove an existing offset'); - $c1 = new Criteria(); - $c2 = new Criteria(); - $c2->setOffset(123); - $c1->mergeWith($c2); - $this->assertEquals(123, $c1->getOffset(), 'mergeWith() merges the offset'); - $c1 = new Criteria(); - $c1->setOffset(456); - $c2 = new Criteria(); - $c2->setOffset(123); - $c1->mergeWith($c2); - $this->assertEquals(456, $c1->getOffset(), 'mergeWith() does not merge the offset in case of conflict'); - } - - public function testMergeWithSelectModifiers() - { - $c1 = new Criteria(); - $c1->setDistinct(); - $c2 = new Criteria(); - $c1->mergeWith($c2); - $this->assertEquals(array(Criteria::DISTINCT), $c1->getSelectModifiers(), 'mergeWith() does not remove an existing select modifier'); - $c1 = new Criteria(); - $c2 = new Criteria(); - $c2->setDistinct(); - $c1->mergeWith($c2); - $this->assertEquals(array(Criteria::DISTINCT), $c1->getSelectModifiers(), 'mergeWith() merges the select modifiers'); - $c1 = new Criteria(); - $c1->setDistinct(); - $c2 = new Criteria(); - $c2->setDistinct(); - $c1->mergeWith($c2); - $this->assertEquals(array(Criteria::DISTINCT), $c1->getSelectModifiers(), 'mergeWith() does not duplicate select modifiers'); - $c1 = new Criteria(); - $c1->setAll(); - $c2 = new Criteria(); - $c2->setDistinct(); - $c1->mergeWith($c2); - $this->assertEquals(array(Criteria::ALL), $c1->getSelectModifiers(), 'mergeWith() does not merge the select modifiers in case of conflict'); - } - - public function testMergeWithSelectColumns() - { - $c1 = new Criteria(); - $c1->addSelectColumn(BookPeer::TITLE); - $c1->addSelectColumn(BookPeer::ID); - $c2 = new Criteria(); - $c1->mergeWith($c2); - $this->assertEquals(array(BookPeer::TITLE, BookPeer::ID), $c1->getSelectColumns(), 'mergeWith() does not remove an existing select columns'); - $c1 = new Criteria(); - $c2 = new Criteria(); - $c2->addSelectColumn(BookPeer::TITLE); - $c2->addSelectColumn(BookPeer::ID); - $c1->mergeWith($c2); - $this->assertEquals(array(BookPeer::TITLE, BookPeer::ID), $c1->getSelectColumns(), 'mergeWith() merges the select columns to an empty select'); - $c1 = new Criteria(); - $c1->addSelectColumn(BookPeer::TITLE); - $c2 = new Criteria(); - $c2->addSelectColumn(BookPeer::ID); - $c1->mergeWith($c2); - $this->assertEquals(array(BookPeer::TITLE, BookPeer::ID), $c1->getSelectColumns(), 'mergeWith() merges the select columns after the existing select columns'); - $c1 = new Criteria(); - $c1->addSelectColumn(BookPeer::TITLE); - $c2 = new Criteria(); - $c2->addSelectColumn(BookPeer::TITLE); - $c1->mergeWith($c2); - $this->assertEquals(array(BookPeer::TITLE, BookPeer::TITLE), $c1->getSelectColumns(), 'mergeWith() merges the select columns to an existing select, even if duplicated'); - } - - public function testMergeWithAsColumns() - { - $c1 = new Criteria(); - $c1->addAsColumn('foo', BookPeer::TITLE); - $c1->addAsColumn('bar', BookPeer::ID); - $c2 = new Criteria(); - $c1->mergeWith($c2); - $this->assertEquals(array('foo' => BookPeer::TITLE, 'bar' => BookPeer::ID), $c1->getAsColumns(), 'mergeWith() does not remove an existing as columns'); - $c1 = new Criteria(); - $c2 = new Criteria(); - $c2->addAsColumn('foo', BookPeer::TITLE); - $c2->addAsColumn('bar', BookPeer::ID); - $c1->mergeWith($c2); - $this->assertEquals(array('foo' => BookPeer::TITLE, 'bar' => BookPeer::ID), $c1->getAsColumns(), 'mergeWith() merges the select columns to an empty as'); - $c1 = new Criteria(); - $c1->addAsColumn('foo', BookPeer::TITLE); - $c2 = new Criteria(); - $c2->addAsColumn('bar', BookPeer::ID); - $c1->mergeWith($c2); - $this->assertEquals(array('foo' => BookPeer::TITLE, 'bar' => BookPeer::ID), $c1->getAsColumns(), 'mergeWith() merges the select columns after the existing as columns'); - } - - /** - * @expectedException PropelException - */ - public function testMergeWithAsColumnsThrowsException() - { - $c1 = new Criteria(); - $c1->addAsColumn('foo', BookPeer::TITLE); - $c2 = new Criteria(); - $c2->addAsColumn('foo', BookPeer::ID); - $c1->mergeWith($c2); - } - - public function testMergeWithOrderByColumns() - { - $c1 = new Criteria(); - $c1->addAscendingOrderByColumn(BookPeer::TITLE); - $c1->addAscendingOrderByColumn(BookPeer::ID); - $c2 = new Criteria(); - $c1->mergeWith($c2); - $this->assertEquals(array(BookPeer::TITLE . ' ASC', BookPeer::ID . ' ASC'), $c1->getOrderByColumns(), 'mergeWith() does not remove an existing orderby columns'); - $c1 = new Criteria(); - $c2 = new Criteria(); - $c2->addAscendingOrderByColumn(BookPeer::TITLE); - $c2->addAscendingOrderByColumn(BookPeer::ID); - $c1->mergeWith($c2); - $this->assertEquals(array(BookPeer::TITLE . ' ASC', BookPeer::ID . ' ASC'), $c1->getOrderByColumns(), 'mergeWith() merges the select columns to an empty order by'); - $c1 = new Criteria(); - $c1->addAscendingOrderByColumn(BookPeer::TITLE); - $c2 = new Criteria(); - $c2->addAscendingOrderByColumn(BookPeer::ID); - $c1->mergeWith($c2); - $this->assertEquals(array(BookPeer::TITLE . ' ASC', BookPeer::ID . ' ASC'), $c1->getOrderByColumns(), 'mergeWith() merges the select columns after the existing orderby columns'); - $c1 = new Criteria(); - $c1->addAscendingOrderByColumn(BookPeer::TITLE); - $c2 = new Criteria(); - $c2->addAscendingOrderByColumn(BookPeer::TITLE); - $c1->mergeWith($c2); - $this->assertEquals(array(BookPeer::TITLE . ' ASC'), $c1->getOrderByColumns(), 'mergeWith() does not merge duplicated orderby columns'); - $c1 = new Criteria(); - $c1->addAscendingOrderByColumn(BookPeer::TITLE); - $c2 = new Criteria(); - $c2->addDescendingOrderByColumn(BookPeer::TITLE); - $c1->mergeWith($c2); - $this->assertEquals(array(BookPeer::TITLE . ' ASC', BookPeer::TITLE . ' DESC'), $c1->getOrderByColumns(), 'mergeWith() merges duplicated orderby columns with inverse direction'); - } - - public function testMergeWithGroupByColumns() - { - $c1 = new Criteria(); - $c1->addGroupByColumn(BookPeer::TITLE); - $c1->addGroupByColumn(BookPeer::ID); - $c2 = new Criteria(); - $c1->mergeWith($c2); - $this->assertEquals(array(BookPeer::TITLE, BookPeer::ID), $c1->getGroupByColumns(), 'mergeWith() does not remove an existing groupby columns'); - $c1 = new Criteria(); - $c2 = new Criteria(); - $c2->addGroupByColumn(BookPeer::TITLE); - $c2->addGroupByColumn(BookPeer::ID); - $c1->mergeWith($c2); - $this->assertEquals(array(BookPeer::TITLE, BookPeer::ID), $c1->getGroupByColumns(), 'mergeWith() merges the select columns to an empty groupby'); - $c1 = new Criteria(); - $c1->addGroupByColumn(BookPeer::TITLE); - $c2 = new Criteria(); - $c2->addGroupByColumn(BookPeer::ID); - $c1->mergeWith($c2); - $this->assertEquals(array(BookPeer::TITLE, BookPeer::ID), $c1->getGroupByColumns(), 'mergeWith() merges the select columns after the existing groupby columns'); - $c1 = new Criteria(); - $c1->addGroupByColumn(BookPeer::TITLE); - $c2 = new Criteria(); - $c2->addGroupByColumn(BookPeer::TITLE); - $c1->mergeWith($c2); - $this->assertEquals(array(BookPeer::TITLE), $c1->getGroupByColumns(), 'mergeWith() does not merge duplicated groupby columns'); - } - - public function testMergeWithWhereConditions() - { - $c1 = new Criteria(); - $c1->add(BookPeer::TITLE, 'foo'); - $c2 = new Criteria(); - $c1->mergeWith($c2); - $sql = 'SELECT FROM `book` WHERE book.TITLE=:p1'; - $this->assertCriteriaTranslation($c1, $sql, 'mergeWith() does not remove an existing where condition'); - $c1 = new Criteria(); - $c2 = new Criteria(); - $c2->add(BookPeer::TITLE, 'foo'); - $c1->mergeWith($c2); - $sql = 'SELECT FROM `book` WHERE book.TITLE=:p1'; - $this->assertCriteriaTranslation($c1, $sql, 'mergeWith() merges where condition to an empty condition'); - $c1 = new Criteria(); - $c1->add(BookPeer::ID, 123); - $c2 = new Criteria(); - $c2->add(BookPeer::TITLE, 'foo'); - $c1->mergeWith($c2); - $sql = 'SELECT FROM `book` WHERE book.ID=:p1 AND book.TITLE=:p2'; - $this->assertCriteriaTranslation($c1, $sql, 'mergeWith() merges where condition to existing conditions'); - $c1 = new Criteria(); - $c1->add(BookPeer::TITLE, 'foo'); - $c2 = new Criteria(); - $c2->add(BookPeer::TITLE, 'bar'); - $c1->mergeWith($c2); - $sql = 'SELECT FROM `book` WHERE (book.TITLE=:p1 AND book.TITLE=:p2)'; - $this->assertCriteriaTranslation($c1, $sql, 'mergeWith() merges where condition to existing conditions on the same column'); - $c1 = new Criteria(); - $c1->add(BookPeer::TITLE, 'foo'); - $c1->addJoin(BookPeer::AUTHOR_ID, AuthorPeer::ID, Criteria::LEFT_JOIN); - $c2 = new Criteria(); - $c2->add(AuthorPeer::FIRST_NAME, 'bar'); - $c1->mergeWith($c2); - $sql = 'SELECT FROM `book` LEFT JOIN author ON (book.AUTHOR_ID=author.ID) WHERE book.TITLE=:p1 AND author.FIRST_NAME=:p2'; - $this->assertCriteriaTranslation($c1, $sql, 'mergeWith() merges where condition to existing conditions on the different tables'); - } - - public function testMergeOrWithWhereConditions() - { - $c1 = new Criteria(); - $c1->add(BookPeer::TITLE, 'foo'); - $c2 = new Criteria(); - $c1->mergeWith($c2, Criteria::LOGICAL_OR); - $sql = 'SELECT FROM `book` WHERE book.TITLE=:p1'; - $this->assertCriteriaTranslation($c1, $sql, 'mergeWith() does not remove an existing where condition'); - $c1 = new Criteria(); - $c2 = new Criteria(); - $c2->add(BookPeer::TITLE, 'foo'); - $c1->mergeWith($c2, Criteria::LOGICAL_OR); - $sql = 'SELECT FROM `book` WHERE book.TITLE=:p1'; - $this->assertCriteriaTranslation($c1, $sql, 'mergeWith() merges where condition to an empty condition'); - $c1 = new Criteria(); - $c1->add(BookPeer::ID, 123); - $c2 = new Criteria(); - $c2->add(BookPeer::TITLE, 'foo'); - $c1->mergeWith($c2, Criteria::LOGICAL_OR); - $sql = 'SELECT FROM `book` WHERE (book.ID=:p1 OR book.TITLE=:p2)'; - $this->assertCriteriaTranslation($c1, $sql, 'mergeWith() merges where condition to existing conditions'); - $c1 = new Criteria(); - $c1->add(BookPeer::TITLE, 'foo'); - $c2 = new Criteria(); - $c2->add(BookPeer::TITLE, 'bar'); - $c1->mergeWith($c2, Criteria::LOGICAL_OR); - $sql = 'SELECT FROM `book` WHERE (book.TITLE=:p1 OR book.TITLE=:p2)'; - $this->assertCriteriaTranslation($c1, $sql, 'mergeWith() merges where condition to existing conditions on the same column'); - $c1 = new Criteria(); - $c1->add(BookPeer::TITLE, 'foo'); - $c1->addJoin(BookPeer::AUTHOR_ID, AuthorPeer::ID, Criteria::LEFT_JOIN); - $c2 = new Criteria(); - $c2->add(AuthorPeer::FIRST_NAME, 'bar'); - $c1->mergeWith($c2, Criteria::LOGICAL_OR); - $sql = 'SELECT FROM `book` LEFT JOIN author ON (book.AUTHOR_ID=author.ID) WHERE (book.TITLE=:p1 OR author.FIRST_NAME=:p2)'; - $this->assertCriteriaTranslation($c1, $sql, 'mergeWith() merges where condition to existing conditions on the different tables'); - } - - public function testMergeWithHavingConditions() - { - $c1 = new Criteria(); - $cton = $c1->getNewCriterion(BookPeer::TITLE, 'foo', Criteria::EQUAL); - $c1->addHaving($cton); - $c2 = new Criteria(); - $c1->mergeWith($c2); - $sql = 'SELECT FROM HAVING book.TITLE=:p1'; - $this->assertCriteriaTranslation($c1, $sql, 'mergeWith() does not remove an existing having condition'); - $c1 = new Criteria(); - $c2 = new Criteria(); - $cton = $c2->getNewCriterion(BookPeer::TITLE, 'foo', Criteria::EQUAL); - $c2->addHaving($cton); - $c1->mergeWith($c2); - $sql = 'SELECT FROM HAVING book.TITLE=:p1'; - $this->assertCriteriaTranslation($c1, $sql, 'mergeWith() merges having condition to an empty having'); - $c1 = new Criteria(); - $cton = $c1->getNewCriterion(BookPeer::TITLE, 'foo', Criteria::EQUAL); - $c1->addHaving($cton); - $c2 = new Criteria(); - $cton = $c2->getNewCriterion(BookPeer::TITLE, 'bar', Criteria::EQUAL); - $c2->addHaving($cton); - $c1->mergeWith($c2); - $sql = 'SELECT FROM HAVING (book.TITLE=:p1 AND book.TITLE=:p2)'; - $this->assertCriteriaTranslation($c1, $sql, 'mergeWith() combines having with AND'); - } - - public function testMergeWithAliases() - { - $c1 = new Criteria(); - $c1->addAlias('b', BookPeer::TABLE_NAME); - $c2 = new Criteria(); - $c1->mergeWith($c2); - $this->assertEquals(array('b' => BookPeer::TABLE_NAME), $c1->getAliases(), 'mergeWith() does not remove an existing alias'); - $c1 = new Criteria(); - $c2 = new Criteria(); - $c2->addAlias('a', AuthorPeer::TABLE_NAME); - $c1->mergeWith($c2); - $this->assertEquals(array('a' => AuthorPeer::TABLE_NAME), $c1->getAliases(), 'mergeWith() merge aliases to an empty alias'); - $c1 = new Criteria(); - $c1->addAlias('b', BookPeer::TABLE_NAME); - $c2 = new Criteria(); - $c2->addAlias('a', AuthorPeer::TABLE_NAME); - $c1->mergeWith($c2); - $this->assertEquals(array('b' => BookPeer::TABLE_NAME, 'a' => AuthorPeer::TABLE_NAME), $c1->getAliases(), 'mergeWith() merge aliases to an existing alias'); - } - - /** - * @expectedException PropelException - */ - public function testMergeWithAliasesThrowsException() - { - $c1 = new Criteria(); - $c1->addAlias('b', BookPeer::TABLE_NAME); - $c2 = new Criteria(); - $c2->addAlias('b', AuthorPeer::TABLE_NAME); - $c1->mergeWith($c2); - } - - public function testMergeWithJoins() - { - $c1 = new Criteria(); - $c1->addJoin(BookPeer::AUTHOR_ID, AuthorPeer::ID, Criteria::LEFT_JOIN); - $c2 = new Criteria(); - $c1->mergeWith($c2); - $joins = $c1->getJoins(); - $this->assertEquals(1, count($joins), 'mergeWith() does not remove an existing join'); - $this->assertEquals('LEFT JOIN : book.AUTHOR_ID=author.ID(ignoreCase not considered)', $joins[0]->toString(), 'mergeWith() does not remove an existing join'); - $c1 = new Criteria(); - $c2 = new Criteria(); - $c2->addJoin(BookPeer::AUTHOR_ID, AuthorPeer::ID, Criteria::LEFT_JOIN); - $c1->mergeWith($c2); - $joins = $c1->getJoins(); - $this->assertEquals(1, count($joins), 'mergeWith() merge joins to an empty join'); - $this->assertEquals('LEFT JOIN : book.AUTHOR_ID=author.ID(ignoreCase not considered)', $joins[0]->toString(), 'mergeWith() merge joins to an empty join'); - $c1 = new Criteria(); - $c1->addJoin(BookPeer::AUTHOR_ID, AuthorPeer::ID, Criteria::LEFT_JOIN); - $c2 = new Criteria(); - $c2->addJoin(BookPeer::PUBLISHER_ID, PublisherPeer::ID, Criteria::INNER_JOIN); - $c1->mergeWith($c2); - $joins = $c1->getJoins(); - $this->assertEquals(2, count($joins), 'mergeWith() merge joins to an existing join'); - $this->assertEquals('LEFT JOIN : book.AUTHOR_ID=author.ID(ignoreCase not considered)', $joins[0]->toString(), 'mergeWith() merge joins to an empty join'); - $this->assertEquals('INNER JOIN : book.PUBLISHER_ID=publisher.ID(ignoreCase not considered)', $joins[1]->toString(), 'mergeWith() merge joins to an empty join'); - } - - public function testMergeWithFurtherModified() - { - $c1 = new Criteria(); - $c2 = new Criteria(); - $c2->setLimit(123); - $c1->mergeWith($c2); - $this->assertEquals(123, $c1->getLimit(), 'mergeWith() makes the merge'); - $c2->setLimit(456); - $this->assertEquals(123, $c1->getLimit(), 'further modifying a merged criteria does not affect the merger'); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/query/CriteriaTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/query/CriteriaTest.php deleted file mode 100644 index c05b9b0e8b..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/query/CriteriaTest.php +++ /dev/null @@ -1,974 +0,0 @@ -Christopher Elkins - * @author Sam Joseph - * @version $Id: CriteriaTest.php 1773 2010-05-25 10:25:06Z francois $ - * @package runtime.query - */ -class CriteriaTest extends BaseTestCase -{ - - /** - * The criteria to use in the test. - * @var Criteria - */ - private $c; - - /** - * DB adapter saved for later. - * - * @var DBAdapter - */ - private $savedAdapter; - - protected function setUp() - { - parent::setUp(); - $this->c = new Criteria(); - $this->savedAdapter = Propel::getDB(null); - Propel::setDB(null, new DBSQLite()); - } - - protected function tearDown() - { - Propel::setDB(null, $this->savedAdapter); - parent::tearDown(); - } - - /** - * Test basic adding of strings. - */ - public function testAddString() - { - $table = "myTable"; - $column = "myColumn"; - $value = "myValue"; - - // Add the string - $this->c->add($table . '.' . $column, $value); - - // Verify that the key exists - $this->assertTrue($this->c->containsKey($table . '.' . $column)); - - // Verify that what we get out is what we put in - $this->assertTrue($this->c->getValue($table . '.' . $column) === $value); - } - - public function testAddAndSameColumns() - { - $table1 = "myTable1"; - $column1 = "myColumn1"; - $value1 = "myValue1"; - $key1 = "$table1.$column1"; - - $table2 = "myTable1"; - $column2 = "myColumn1"; - $value2 = "myValue2"; - $key2 = "$table2.$column2"; - - $this->c->add($key1, $value1, Criteria::EQUAL); - $this->c->addAnd($key2, $value2, Criteria::EQUAL); - - $expect = "SELECT FROM myTable1 WHERE (myTable1.myColumn1=:p1 AND myTable1.myColumn1=:p2)"; - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $expect_params = array( - array('table' => 'myTable1', 'column' => 'myColumn1', 'value' => 'myValue1'), - array('table' => 'myTable1', 'column' => 'myColumn1', 'value' => 'myValue2'), - ); - - $this->assertEquals($expect, $result, 'addAnd() called on an existing column creates a combined criterion'); - $this->assertEquals($expect_params, $params, 'addAnd() called on an existing column creates a combined criterion'); - } - - public function testAddAndSameColumnsPropel14Compatibility() - { - $table1 = "myTable1"; - $column1 = "myColumn1"; - $value1 = "myValue1"; - $key1 = "$table1.$column1"; - - $table2 = "myTable1"; - $column2 = "myColumn1"; - $value2 = "myValue2"; - $key2 = "$table2.$column2"; - - $table3 = "myTable3"; - $column3 = "myColumn3"; - $value3 = "myValue3"; - $key3 = "$table3.$column3"; - - $this->c->add($key1, $value1, Criteria::EQUAL); - $this->c->add($key3, $value3, Criteria::EQUAL); - $this->c->addAnd($key2, $value2, Criteria::EQUAL); - - $expect = "SELECT FROM myTable1, myTable3 WHERE (myTable1.myColumn1=:p1 AND myTable1.myColumn1=:p2) AND myTable3.myColumn3=:p3"; - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $expect_params = array( - array('table' => 'myTable1', 'column' => 'myColumn1', 'value' => 'myValue1'), - array('table' => 'myTable1', 'column' => 'myColumn1', 'value' => 'myValue2'), - array('table' => 'myTable3', 'column' => 'myColumn3', 'value' => 'myValue3'), - ); - - $this->assertEquals($expect, $result, 'addAnd() called on an existing column creates a combined criterion'); - $this->assertEquals($expect_params, $params, 'addAnd() called on an existing column creates a combined criterion'); - } - - public function testAddAndDistinctColumns() - { - $table1 = "myTable1"; - $column1 = "myColumn1"; - $value1 = "myValue1"; - $key1 = "$table1.$column1"; - - $table2 = "myTable2"; - $column2 = "myColumn2"; - $value2 = "myValue2"; - $key2 = "$table2.$column2"; - - $this->c->add($key1, $value1, Criteria::EQUAL); - $this->c->addAnd($key2, $value2, Criteria::EQUAL); - - $expect = "SELECT FROM myTable1, myTable2 WHERE myTable1.myColumn1=:p1 AND myTable2.myColumn2=:p2"; - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $expect_params = array( - array('table' => 'myTable1', 'column' => 'myColumn1', 'value' => 'myValue1'), - array('table' => 'myTable2', 'column' => 'myColumn2', 'value' => 'myValue2'), - ); - - $this->assertEquals($expect, $result, 'addAnd() called on a distinct column adds a criterion to the criteria'); - $this->assertEquals($expect_params, $params, 'addAnd() called on a distinct column adds a criterion to the criteria'); - } - - public function testAddOrSameColumns() - { - $table1 = "myTable1"; - $column1 = "myColumn1"; - $value1 = "myValue1"; - $key1 = "$table1.$column1"; - - $table2 = "myTable1"; - $column2 = "myColumn1"; - $value2 = "myValue2"; - $key2 = "$table2.$column2"; - - $this->c->add($key1, $value1, Criteria::EQUAL); - $this->c->addOr($key2, $value2, Criteria::EQUAL); - - $expect = "SELECT FROM myTable1 WHERE (myTable1.myColumn1=:p1 OR myTable1.myColumn1=:p2)"; - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $expect_params = array( - array('table' => 'myTable1', 'column' => 'myColumn1', 'value' => 'myValue1'), - array('table' => 'myTable1', 'column' => 'myColumn1', 'value' => 'myValue2'), - ); - - $this->assertEquals($expect, $result, 'addOr() called on an existing column creates a combined criterion'); - $this->assertEquals($expect_params, $params, 'addOr() called on an existing column creates a combined criterion'); - } - - public function testAddAndOrColumnsPropel14Compatibility() - { - $table1 = "myTable1"; - $column1 = "myColumn1"; - $value1 = "myValue1"; - $key1 = "$table1.$column1"; - - $table2 = "myTable1"; - $column2 = "myColumn1"; - $value2 = "myValue2"; - $key2 = "$table2.$column2"; - - $table3 = "myTable3"; - $column3 = "myColumn3"; - $value3 = "myValue3"; - $key3 = "$table3.$column3"; - - $this->c->add($key1, $value1, Criteria::EQUAL); - $this->c->add($key3, $value3, Criteria::EQUAL); - $this->c->addOr($key2, $value2, Criteria::EQUAL); - - $expect = "SELECT FROM myTable1, myTable3 WHERE (myTable1.myColumn1=:p1 OR myTable1.myColumn1=:p2) AND myTable3.myColumn3=:p3"; - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $expect_params = array( - array('table' => 'myTable1', 'column' => 'myColumn1', 'value' => 'myValue1'), - array('table' => 'myTable1', 'column' => 'myColumn1', 'value' => 'myValue2'), - array('table' => 'myTable3', 'column' => 'myColumn3', 'value' => 'myValue3'), - ); - - $this->assertEquals($expect, $result, 'addOr() called on an existing column creates a combined criterion'); - $this->assertEquals($expect_params, $params, 'addOr() called on an existing column creates a combined criterion'); - } - - public function testAddOrDistinctColumns() - { - $table1 = "myTable1"; - $column1 = "myColumn1"; - $value1 = "myValue1"; - $key1 = "$table1.$column1"; - - $table2 = "myTable2"; - $column2 = "myColumn2"; - $value2 = "myValue2"; - $key2 = "$table2.$column2"; - - $this->c->add($key1, $value1, Criteria::EQUAL); - $this->c->addOr($key2, $value2, Criteria::EQUAL); - - $expect = "SELECT FROM myTable1, myTable2 WHERE (myTable1.myColumn1=:p1 OR myTable2.myColumn2=:p2)"; - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $expect_params = array( - array('table' => 'myTable1', 'column' => 'myColumn1', 'value' => 'myValue1'), - array('table' => 'myTable2', 'column' => 'myColumn2', 'value' => 'myValue2'), - ); - - $this->assertEquals($expect, $result, 'addOr() called on a distinct column adds a criterion to the latest criterion'); - $this->assertEquals($expect_params, $params, 'addOr() called on a distinct column adds a criterion to the latest criterion'); - } - - public function testAddOrEmptyCriteria() - { - $table1 = "myTable1"; - $column1 = "myColumn1"; - $value1 = "myValue1"; - $key1 = "$table1.$column1"; - - $this->c->addOr($key1, $value1, Criteria::EQUAL); - - $expect = "SELECT FROM myTable1 WHERE myTable1.myColumn1=:p1"; - - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - - $expect_params = array( - array('table' => 'myTable1', 'column' => 'myColumn1', 'value' => 'myValue1'), - ); - - $this->assertEquals($expect, $result, 'addOr() called on an empty Criteria adds a criterion to the criteria'); - $this->assertEquals($expect_params, $params, 'addOr() called on an empty Criteria adds a criterion to the criteria'); - } - - /** - * Test Criterion.setIgnoreCase(). - * As the output is db specific the test just prints the result to - * System.out - */ - public function testCriterionIgnoreCase() - { - $originalDB = Propel::getDB(); - $adapters = array(new DBMySQL(), new DBPostgres()); - $expectedIgnore = array("UPPER(TABLE.COLUMN) LIKE UPPER(:p1)", "TABLE.COLUMN ILIKE :p1"); - - $i =0; - foreach ($adapters as $adapter) { - - Propel::setDB(null, $adapter); - $myCriteria = new Criteria(); - - $myCriterion = $myCriteria->getNewCriterion( - "TABLE.COLUMN", "FoObAr", Criteria::LIKE); - $sb = ""; - $params=array(); - $myCriterion->appendPsTo($sb, $params); - $expected = "TABLE.COLUMN LIKE :p1"; - - $this->assertEquals($expected, $sb); - - $ignoreCriterion = $myCriterion->setIgnoreCase(true); - - $sb = ""; - $params=array(); - $ignoreCriterion->appendPsTo($sb, $params); - // $expected = "UPPER(TABLE.COLUMN) LIKE UPPER(?)"; - $this->assertEquals($expectedIgnore[$i], $sb); - $i++; - } - Propel::setDB(null, $originalDB); - } - - public function testOrderByIgnoreCase() - { - $originalDB = Propel::getDB(); - Propel::setDB(null, new DBMySQL()); - - $criteria = new Criteria(); - $criteria->setIgnoreCase(true); - $criteria->addAscendingOrderByColumn(BookPeer::TITLE); - BookPeer::addSelectColumns($criteria); - $params=array(); - $sql = BasePeer::createSelectSql($criteria, $params); - $expectedSQL = 'SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID, UPPER(book.TITLE) FROM `book` ORDER BY UPPER(book.TITLE) ASC'; - $this->assertEquals($expectedSQL, $sql); - - Propel::setDB(null, $originalDB); - } - - /** - * Test that true is evaluated correctly. - */ - public function testBoolean() - { - $this->c = new Criteria(); - $this->c->add("TABLE.COLUMN", true); - - $expect = "SELECT FROM TABLE WHERE TABLE.COLUMN=:p1"; - $expect_params = array( array('table' => 'TABLE', 'column' => 'COLUMN', 'value' => true), - ); - try { - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - } catch (PropelException $e) { - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ". $e->getMessage()); - } - - $this->assertEquals($expect, $result, "Boolean test failed."); - $this->assertEquals($expect_params, $params); - - } - - public function testCurrentDate() - { - $this->c = new Criteria(); - $this->c->add("TABLE.TIME_COLUMN", Criteria::CURRENT_TIME); - $this->c->add("TABLE.DATE_COLUMN", Criteria::CURRENT_DATE); - - $expect = "SELECT FROM TABLE WHERE TABLE.TIME_COLUMN=CURRENT_TIME AND TABLE.DATE_COLUMN=CURRENT_DATE"; - - $result = null; - try { - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - } catch (PropelException $e) { - print $e->getTraceAsString(); - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ". $e->getMessage()); - } - - $this->assertEquals($expect, $result, "Current date test failed!"); - - } - - public function testCountAster() - { - $this->c = new Criteria(); - $this->c->addSelectColumn("COUNT(*)"); - $this->c->add("TABLE.TIME_COLUMN", Criteria::CURRENT_TIME); - $this->c->add("TABLE.DATE_COLUMN", Criteria::CURRENT_DATE); - - $expect = "SELECT COUNT(*) FROM TABLE WHERE TABLE.TIME_COLUMN=CURRENT_TIME AND TABLE.DATE_COLUMN=CURRENT_DATE"; - - $result = null; - try { - $params = array(); - $result = BasePeer::createSelectSql($this->c, $params); - } catch (PropelException $e) { - print $e->getTraceAsString(); - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ". $e->getMessage()); - } - - $this->assertEquals($expect, $result); - - } - - public function testIn() - { - $c = new Criteria(); - $c->addSelectColumn("*"); - $c->add("TABLE.SOME_COLUMN", array(), Criteria::IN); - $c->add("TABLE.OTHER_COLUMN", array(1, 2, 3), Criteria::IN); - - $expect = "SELECT * FROM TABLE WHERE 1<>1 AND TABLE.OTHER_COLUMN IN (:p1,:p2,:p3)"; - try { - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - } catch (PropelException $e) { - print $e->getTraceAsString(); - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ". $e->getMessage()); - } - $this->assertEquals($expect, $result); - } - - public function testInEmptyAfterFull() - { - $c = new Criteria(); - $c->addSelectColumn("*"); - $c->add("TABLE.OTHER_COLUMN", array(1, 2, 3), Criteria::IN); - $c->add("TABLE.SOME_COLUMN", array(), Criteria::IN); - - $expect = "SELECT * FROM TABLE WHERE TABLE.OTHER_COLUMN IN (:p1,:p2,:p3) AND 1<>1"; - try { - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - } catch (PropelException $e) { - print $e->getTraceAsString(); - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ". $e->getMessage()); - } - $this->assertEquals($expect, $result); - } - - public function testInNested() - { - // now do a nested logic test, just for sanity (not that this should be any surprise) - - $c = new Criteria(); - $c->addSelectColumn("*"); - $myCriterion = $c->getNewCriterion("TABLE.COLUMN", array(), Criteria::IN); - $myCriterion->addOr($c->getNewCriterion("TABLE.COLUMN2", array(1,2), Criteria::IN)); - $c->add($myCriterion); - - $expect = "SELECT * FROM TABLE WHERE (1<>1 OR TABLE.COLUMN2 IN (:p1,:p2))"; - try { - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - } catch (PropelException $e) { - print $e->getTraceAsString(); - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ". $e->getMessage()); - } - $this->assertEquals($expect, $result); - - } - - public function testJoinObject () - { - $j = new Join('TABLE_A.COL_1', 'TABLE_B.COL_2'); - $this->assertEquals(null, $j->getJoinType()); - $this->assertEquals('TABLE_A.COL_1', $j->getLeftColumn()); - $this->assertEquals('TABLE_A', $j->getLeftTableName()); - $this->assertEquals('COL_1', $j->getLeftColumnName()); - $this->assertEquals('TABLE_B.COL_2', $j->getRightColumn()); - $this->assertEquals('TABLE_B', $j->getRightTableName()); - $this->assertEquals('COL_2', $j->getRightColumnName()); - - $j = new Join('TABLE_A.COL_1', 'TABLE_B.COL_1', Criteria::LEFT_JOIN); - $this->assertEquals('LEFT JOIN', $j->getJoinType()); - $this->assertEquals('TABLE_A.COL_1', $j->getLeftColumn()); - $this->assertEquals('TABLE_B.COL_1', $j->getRightColumn()); - - $j = new Join('TABLE_A.COL_1', 'TABLE_B.COL_1', Criteria::RIGHT_JOIN); - $this->assertEquals('RIGHT JOIN', $j->getJoinType()); - $this->assertEquals('TABLE_A.COL_1', $j->getLeftColumn()); - $this->assertEquals('TABLE_B.COL_1', $j->getRightColumn()); - - $j = new Join('TABLE_A.COL_1', 'TABLE_B.COL_1', Criteria::INNER_JOIN); - $this->assertEquals('INNER JOIN', $j->getJoinType()); - $this->assertEquals('TABLE_A.COL_1', $j->getLeftColumn()); - $this->assertEquals('TABLE_B.COL_1', $j->getRightColumn()); - - $j = new Join(array('TABLE_A.COL_1', 'TABLE_A.COL_2'), array('TABLE_B.COL_1', 'TABLE_B.COL_2'), Criteria::INNER_JOIN); - $this->assertEquals('TABLE_A.COL_1', $j->getLeftColumn(0)); - $this->assertEquals('TABLE_A.COL_2', $j->getLeftColumn(1)); - $this->assertEquals('TABLE_B.COL_1', $j->getRightColumn(0)); - $this->assertEquals('TABLE_B.COL_2', $j->getRightColumn(1)); - } - - public function testAddStraightJoin () - { - $c = new Criteria(); - $c->addSelectColumn("*"); - $c->addJoin('TABLE_A.COL_1', 'TABLE_B.COL_1'); // straight join - - $expect = "SELECT * FROM TABLE_A, TABLE_B WHERE TABLE_A.COL_1=TABLE_B.COL_1"; - try { - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - } catch (PropelException $e) { - print $e->getTraceAsString(); - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ". $e->getMessage()); - } - $this->assertEquals($expect, $result); - } - - public function testAddSeveralJoins () - { - $c = new Criteria(); - $c->addSelectColumn("*"); - $c->addJoin('TABLE_A.COL_1', 'TABLE_B.COL_1'); - $c->addJoin('TABLE_B.COL_X', 'TABLE_D.COL_X'); - - $expect = 'SELECT * FROM TABLE_A, TABLE_B, TABLE_D ' - .'WHERE TABLE_A.COL_1=TABLE_B.COL_1 AND TABLE_B.COL_X=TABLE_D.COL_X'; - try { - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - } catch (PropelException $e) { - print $e->getTraceAsString(); - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ". $e->getMessage()); - } - $this->assertEquals($expect, $result); - } - - public function testAddLeftJoin () - { - $c = new Criteria(); - $c->addSelectColumn("TABLE_A.*"); - $c->addSelectColumn("TABLE_B.*"); - $c->addJoin('TABLE_A.COL_1', 'TABLE_B.COL_2', Criteria::LEFT_JOIN); - - $expect = "SELECT TABLE_A.*, TABLE_B.* FROM TABLE_A LEFT JOIN TABLE_B ON (TABLE_A.COL_1=TABLE_B.COL_2)"; - try { - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - } catch (PropelException $e) { - print $e->getTraceAsString(); - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ". $e->getMessage()); - } - $this->assertEquals($expect, $result); - } - - public function testAddSeveralLeftJoins () - { - // Fails.. Suspect answer in the chunk starting at BasePeer:605 - $c = new Criteria(); - $c->addSelectColumn('*'); - $c->addJoin('TABLE_A.COL_1', 'TABLE_B.COL_1', Criteria::LEFT_JOIN); - $c->addJoin('TABLE_A.COL_2', 'TABLE_C.COL_2', Criteria::LEFT_JOIN); - - $expect = 'SELECT * FROM TABLE_A ' - .'LEFT JOIN TABLE_B ON (TABLE_A.COL_1=TABLE_B.COL_1) ' - .'LEFT JOIN TABLE_C ON (TABLE_A.COL_2=TABLE_C.COL_2)'; - try { - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - } catch (PropelException $e) { - print $e->getTraceAsString(); - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ". $e->getMessage()); - } - $this->assertEquals($expect, $result); - } - - public function testAddRightJoin () - { - $c = new Criteria(); - $c->addSelectColumn("*"); - $c->addJoin('TABLE_A.COL_1', 'TABLE_B.COL_2', Criteria::RIGHT_JOIN); - - $expect = "SELECT * FROM TABLE_A RIGHT JOIN TABLE_B ON (TABLE_A.COL_1=TABLE_B.COL_2)"; - try { - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - } catch (PropelException $e) { - print $e->getTraceAsString(); - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ". $e->getMessage()); - } - $this->assertEquals($expect, $result); - } - - public function testAddSeveralRightJoins () - { - // Fails.. Suspect answer in the chunk starting at BasePeer:605 - $c = new Criteria(); - $c->addSelectColumn('*'); - $c->addJoin('TABLE_A.COL_1', 'TABLE_B.COL_1', Criteria::RIGHT_JOIN); - $c->addJoin('TABLE_A.COL_2', 'TABLE_C.COL_2', Criteria::RIGHT_JOIN); - - $expect = 'SELECT * FROM TABLE_A ' - .'RIGHT JOIN TABLE_B ON (TABLE_A.COL_1=TABLE_B.COL_1) ' - .'RIGHT JOIN TABLE_C ON (TABLE_A.COL_2=TABLE_C.COL_2)'; - try { - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - } catch (PropelException $e) { - print $e->getTraceAsString(); - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ". $e->getMessage()); - } - $this->assertEquals($expect, $result); - } - - public function testAddInnerJoin () - { - $c = new Criteria(); - $c->addSelectColumn("*"); - $c->addJoin('TABLE_A.COL_1', 'TABLE_B.COL_1', Criteria::INNER_JOIN); - - $expect = "SELECT * FROM TABLE_A INNER JOIN TABLE_B ON (TABLE_A.COL_1=TABLE_B.COL_1)"; - try { - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - } catch (PropelException $e) { - print $e->getTraceAsString(); - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ". $e->getMessage()); - } - $this->assertEquals($expect, $result); - } - - public function testAddSeveralInnerJoin () - { - $c = new Criteria(); - $c->addSelectColumn("*"); - $c->addJoin('TABLE_A.COL_1', 'TABLE_B.COL_1', Criteria::INNER_JOIN); - $c->addJoin('TABLE_B.COL_1', 'TABLE_C.COL_1', Criteria::INNER_JOIN); - - $expect = 'SELECT * FROM TABLE_A ' - .'INNER JOIN TABLE_B ON (TABLE_A.COL_1=TABLE_B.COL_1) ' - .'INNER JOIN TABLE_C ON (TABLE_B.COL_1=TABLE_C.COL_1)'; - try { - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - } catch (PropelException $e) { - print $e->getTraceAsString(); - $this->fail("PropelException thrown in BasePeer.createSelectSql(): ". $e->getMessage()); - } - $this->assertEquals($expect, $result); - } - - /** - * @link http://propel.phpdb.org/trac/ticket/451 - */ - public function testSeveralMixedJoinOrders() - { - $c = new Criteria(); - $c->clearSelectColumns()-> - addJoin("TABLE_A.FOO_ID", "TABLE_B.ID", Criteria::LEFT_JOIN)-> - addJoin("TABLE_A.BAR_ID", "TABLE_C.ID")-> - addSelectColumn("TABLE_A.ID"); - - # These are no longer different, see http://propel.phpdb.org/trac/ticket/283#comment:8 - #$db = Propel::getDB(); - # - #if ($db instanceof DBMySQL) { - # $expect = 'SELECT TABLE_A.ID FROM (TABLE_A CROSS JOIN TABLE_C)' - # .' LEFT JOIN TABLE_B ON (TABLE_A.FOO_ID=TABLE_B.ID) WHERE TABLE_A.BAR_ID=TABLE_C.ID'; - #} else { - $expect = 'SELECT TABLE_A.ID FROM TABLE_A CROSS JOIN TABLE_C' - .' LEFT JOIN TABLE_B ON (TABLE_A.FOO_ID=TABLE_B.ID) WHERE TABLE_A.BAR_ID=TABLE_C.ID'; - #} - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - $this->assertEquals($expect, $result); - } - - /** - * @link http://propel.phpdb.org/trac/ticket/606 - */ - public function testAddJoinArray() - { - $c = new Criteria(); - $c->clearSelectColumns()-> - addJoin(array('TABLE_A.FOO_ID'), array('TABLE_B.ID'), Criteria::LEFT_JOIN)-> - addSelectColumn("TABLE_A.ID"); - - $expect = 'SELECT TABLE_A.ID FROM TABLE_A' - .' LEFT JOIN TABLE_B ON (TABLE_A.FOO_ID=TABLE_B.ID)'; - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - $this->assertEquals($expect, $result); - } - - /** - * @link http://propel.phpdb.org/trac/ticket/606 - */ - public function testAddJoinArrayMultiple() - { - $c = new Criteria(); - $c->clearSelectColumns()-> - addJoin( - array('TABLE_A.FOO_ID', 'TABLE_A.BAR'), - array('TABLE_B.ID', 'TABLE_B.BAZ'), - Criteria::LEFT_JOIN)-> - addSelectColumn("TABLE_A.ID"); - - $expect = 'SELECT TABLE_A.ID FROM TABLE_A' - .' LEFT JOIN TABLE_B ON (TABLE_A.FOO_ID=TABLE_B.ID AND TABLE_A.BAR=TABLE_B.BAZ)'; - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - $this->assertEquals($expect, $result); - } - - /** - * Test the Criteria::addJoinMultiple() method with an implicit join - * - * @link http://propel.phpdb.org/trac/ticket/606 - */ - public function testAddJoinMultiple() - { - $c = new Criteria(); - $c-> - clearSelectColumns()-> - addMultipleJoin(array( - array('TABLE_A.FOO_ID', 'TABLE_B.ID'), - array('TABLE_A.BAR', 'TABLE_B.BAZ')))-> - addSelectColumn("TABLE_A.ID"); - - $expect = 'SELECT TABLE_A.ID FROM TABLE_A, TABLE_B ' - . 'WHERE TABLE_A.FOO_ID=TABLE_B.ID AND TABLE_A.BAR=TABLE_B.BAZ'; - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - $this->assertEquals($expect, $result); - } - - /** - * Test the Criteria::addJoinMultiple() method with a value as second argument - * - * @link http://propel.phpdb.org/trac/ticket/606 - */ - public function testAddJoinMultipleValue() - { - $c = new Criteria(); - $c-> - clearSelectColumns()-> - addMultipleJoin(array( - array('TABLE_A.FOO_ID', 'TABLE_B.ID'), - array('TABLE_A.BAR', 3)))-> - addSelectColumn("TABLE_A.ID"); - - $expect = 'SELECT TABLE_A.ID FROM TABLE_A, TABLE_B ' - . 'WHERE TABLE_A.FOO_ID=TABLE_B.ID AND TABLE_A.BAR=3'; - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - $this->assertEquals($expect, $result); - } - - /** - * Test the Criteria::addJoinMultiple() method with a joinType - * - * @link http://propel.phpdb.org/trac/ticket/606 - */ - public function testAddJoinMultipleWithJoinType() - { - $c = new Criteria(); - $c-> - clearSelectColumns()-> - addMultipleJoin(array( - array('TABLE_A.FOO_ID', 'TABLE_B.ID'), - array('TABLE_A.BAR', 'TABLE_B.BAZ')), - Criteria::LEFT_JOIN)-> - addSelectColumn("TABLE_A.ID"); - - $expect = 'SELECT TABLE_A.ID FROM TABLE_A ' - . 'LEFT JOIN TABLE_B ON (TABLE_A.FOO_ID=TABLE_B.ID AND TABLE_A.BAR=TABLE_B.BAZ)'; - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - $this->assertEquals($expect, $result); - } - - /** - * Test the Criteria::addJoinMultiple() method with operator - * - * @link http://propel.phpdb.org/trac/ticket/606 - */ - public function testAddJoinMultipleWithOperator() - { - $c = new Criteria(); - $c-> - clearSelectColumns()-> - addMultipleJoin(array( - array('TABLE_A.FOO_ID', 'TABLE_B.ID', Criteria::GREATER_EQUAL), - array('TABLE_A.BAR', 'TABLE_B.BAZ', Criteria::LESS_THAN)))-> - addSelectColumn("TABLE_A.ID"); - - $expect = 'SELECT TABLE_A.ID FROM TABLE_A, TABLE_B ' - . 'WHERE TABLE_A.FOO_ID>=TABLE_B.ID AND TABLE_A.BARassertEquals($expect, $result); - } - - /** - * Test the Criteria::addJoinMultiple() method with join type and operator - * - * @link http://propel.phpdb.org/trac/ticket/606 - */ - public function testAddJoinMultipleWithJoinTypeAndOperator() - { - $c = new Criteria(); - $c-> - clearSelectColumns()-> - addMultipleJoin(array( - array('TABLE_A.FOO_ID', 'TABLE_B.ID', Criteria::GREATER_EQUAL), - array('TABLE_A.BAR', 'TABLE_B.BAZ', Criteria::LESS_THAN)), - Criteria::LEFT_JOIN)-> - addSelectColumn("TABLE_A.ID"); - - $expect = 'SELECT TABLE_A.ID FROM TABLE_A ' - . 'LEFT JOIN TABLE_B ON (TABLE_A.FOO_ID>=TABLE_B.ID AND TABLE_A.BARassertEquals($expect, $result); - } - - /** - * Test the Criteria::CUSTOM behavior. - */ - public function testCustomOperator() - { - $c = new Criteria(); - $c->addSelectColumn('A.COL'); - $c->add('A.COL', 'date_part(\'YYYY\', A.COL) = \'2007\'', Criteria::CUSTOM); - - $expected = "SELECT A.COL FROM A WHERE date_part('YYYY', A.COL) = '2007'"; - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - $this->assertEquals($expected, $result); - } - - /** - * Tests adding duplicate joins. - * @link http://propel.phpdb.org/trac/ticket/613 - */ - public function testAddJoin_Duplicate() - { - $c = new Criteria(); - - $c->addJoin("tbl.COL1", "tbl.COL2", Criteria::LEFT_JOIN); - $c->addJoin("tbl.COL1", "tbl.COL2", Criteria::LEFT_JOIN); - $this->assertEquals(1, count($c->getJoins()), "Expected not to have duplciate LJOIN added."); - - $c->addJoin("tbl.COL1", "tbl.COL2", Criteria::RIGHT_JOIN); - $c->addJoin("tbl.COL1", "tbl.COL2", Criteria::RIGHT_JOIN); - $this->assertEquals(2, count($c->getJoins()), "Expected 1 new right join to be added."); - - $c->addJoin("tbl.COL1", "tbl.COL2"); - $c->addJoin("tbl.COL1", "tbl.COL2"); - $this->assertEquals(3, count($c->getJoins()), "Expected 1 new implicit join to be added."); - - $c->addJoin("tbl.COL3", "tbl.COL4"); - $this->assertEquals(4, count($c->getJoins()), "Expected new col join to be added."); - - } - - /** - * @link http://propel.phpdb.org/trac/ticket/634 - */ - public function testHasSelectClause() - { - $c = new Criteria(); - $c->addSelectColumn("foo"); - - $this->assertTrue($c->hasSelectClause()); - - $c = new Criteria(); - $c->addAsColumn("foo", "bar"); - - $this->assertTrue($c->hasSelectClause()); - } - - /** - * Tests including aliases in criterion objects. - * @link http://propel.phpdb.org/trac/ticket/636 - */ - public function testAliasInCriterion() - { - $c = new Criteria(); - $c->addAsColumn("column_alias", "tbl.COL1"); - $crit = $c->getNewCriterion("column_alias", "FOO"); - $this->assertNull($crit->getTable()); - $this->assertEquals("column_alias", $crit->getColumn()); - $c->addHaving($crit); // produces invalid SQL referring to '.olumn_alias' - } - - /** - * Test whether GROUP BY is being respected in equals() check. - * @link http://propel.phpdb.org/trac/ticket/674 - */ - public function testEqualsGroupBy() - { - $c1 = new Criteria(); - $c1->addGroupByColumn('GBY1'); - - $c2 = new Criteria(); - $c2->addGroupByColumn('GBY2'); - - $this->assertFalse($c2->equals($c1), "Expected Criteria NOT to be the same with different GROUP BY columns"); - - $c3 = new Criteria(); - $c3->addGroupByColumn('GBY1'); - $c4 = new Criteria(); - $c4->addGroupByColumn('GBY1'); - $this->assertTrue($c4->equals($c3), "Expected Criteria objects to match."); - } - - /** - * Test whether calling setDistinct twice puts in two distinct keywords or not. - * @link http://propel.phpdb.org/trac/ticket/716 - */ - public function testDoubleSelectModifiers() - { - $c = new Criteria(); - $c->setDistinct(); - $this->assertEquals(array(Criteria::DISTINCT), $c->getSelectModifiers(), 'Initial setDistinct works'); - $c->setDistinct(); - $this->assertEquals(array(Criteria::DISTINCT), $c->getSelectModifiers(), 'Calling setDistinct again leaves a single distinct'); - $c->setAll(); - $this->assertEquals(array(Criteria::ALL), $c->getSelectModifiers(), 'All keyword is swaps distinct out'); - $c->setAll(); - $this->assertEquals(array(Criteria::ALL), $c->getSelectModifiers(), 'Calling setAll leaves a single all'); - $c->setDistinct(); - $this->assertEquals(array(Criteria::DISTINCT), $c->getSelectModifiers(), 'All back to distinct works'); - - $c2 = new Criteria(); - $c2->setAll(); - $this->assertEquals(array(Criteria::ALL), $c2->getSelectModifiers(), 'Initial setAll works'); - } - - public function testAddSelectModifier() - { - $c = new Criteria(); - $c->setDistinct(); - $c->addSelectModifier('SQL_CALC_FOUND_ROWS'); - $this->assertEquals(array(Criteria::DISTINCT, 'SQL_CALC_FOUND_ROWS'), $c->getSelectModifiers(), 'addSelectModifier() adds a select modifier to the Criteria'); - $c->addSelectModifier('SQL_CALC_FOUND_ROWS'); - $this->assertEquals(array(Criteria::DISTINCT, 'SQL_CALC_FOUND_ROWS'), $c->getSelectModifiers(), 'addSelectModifier() adds a select modifier only once'); - $params = array(); - $result = BasePeer::createSelectSql($c, $params); - $this->assertEquals('SELECT DISTINCT SQL_CALC_FOUND_ROWS FROM ', $result, 'addSelectModifier() adds a modifier to the final query'); - } - - public function testClone() - { - $c1 = new Criteria(); - $c1->add('tbl.COL1', 'foo', Criteria::EQUAL); - $c2 = clone $c1; - $c2->addAnd('tbl.COL1', 'bar', Criteria::EQUAL); - $nbCrit = 0; - foreach ($c1->keys() as $key) { - foreach ($c1->getCriterion($key)->getAttachedCriterion() as $criterion) { - $nbCrit++; - } - } - $this->assertEquals(1, $nbCrit, 'cloning a Criteria clones its Criterions'); - } - - public function testComment() - { - $c = new Criteria(); - $this->assertNull($c->getComment(), 'Comment is null by default'); - $c2 = $c->setComment('foo'); - $this->assertEquals('foo', $c->getComment(), 'Comment is set by setComment()'); - $this->assertEquals($c, $c2, 'setComment() returns the current Criteria'); - $c->setComment(); - $this->assertNull($c->getComment(), 'Comment is reset by setComment(null)'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/query/JoinTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/query/JoinTest.php deleted file mode 100644 index c3a3245523..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/query/JoinTest.php +++ /dev/null @@ -1,135 +0,0 @@ -savedAdapter = Propel::getDB(null); - Propel::setDB(null, new DBSQLite()); - } - - protected function tearDown() - { - Propel::setDB(null, $this->savedAdapter); - parent::tearDown(); - } - - public function testEmptyConditions() - { - $j = new Join(); - $this->assertEquals(array(), $j->getConditions()); - } - - public function testAddCondition() - { - $j = new Join(); - $j->addCondition('foo', 'bar'); - $this->assertEquals('=', $j->getOperator()); - $this->assertEquals('foo', $j->getLeftColumn()); - $this->assertEquals('bar', $j->getRightColumn()); - } - - public function testGetConditions() - { - $j = new Join(); - $j->addCondition('foo', 'bar'); - $expect = array(array('left' => 'foo', 'operator' => '=', 'right' => 'bar')); - $this->assertEquals($expect, $j->getConditions()); - } - - public function testAddConditionWithOperator() - { - $j = new Join(); - $j->addCondition('foo', 'bar', '>='); - $expect = array(array('left' => 'foo', 'operator' => '>=', 'right' => 'bar')); - $this->assertEquals($expect, $j->getConditions()); - } - - public function testAddConditions() - { - $j = new Join(); - $j->addCondition('foo', 'bar'); - $j->addCondition('baz', 'bal'); - $expect = array( - array('left' => 'foo', 'operator' => '=', 'right' => 'bar'), - array('left' => 'baz', 'operator' => '=', 'right' => 'bal') - ); - $this->assertEquals(array('=', '='), $j->getOperators()); - $this->assertEquals(array('foo', 'baz'), $j->getLeftColumns()); - $this->assertEquals(array('bar', 'bal'), $j->getRightColumns()); - $this->assertEquals($expect, $j->getConditions()); - } - - public function testEmptyJoinType() - { - $j = new Join(); - $this->assertNull($j->getJoinType()); - } - - public function testSetJoinType() - { - $j = new Join(); - $j->setJoinType('foo'); - $this->assertEquals('foo', $j->getJoinType()); - } - - public function testSimpleConstructor() - { - $j = new Join('foo', 'bar', 'LEFT JOIN'); - $expect = array(array('left' => 'foo', 'operator' => '=', 'right' => 'bar')); - $this->assertEquals($expect, $j->getConditions()); - $this->assertEquals('LEFT JOIN', $j->getJoinType()); - } - - public function testCompositeeConstructor() - { - $j = new Join(array('foo1', 'foo2'), array('bar1', 'bar2'), 'LEFT JOIN'); - $expect = array( - array('left' => 'foo1', 'operator' => '=', 'right' => 'bar1'), - array('left' => 'foo2', 'operator' => '=', 'right' => 'bar2') - ); - $this->assertEquals($expect, $j->getConditions()); - $this->assertEquals('LEFT JOIN', $j->getJoinType()); - } - - public function testCountConditions() - { - $j = new Join(); - $this->assertEquals(0, $j->countConditions()); - $j->addCondition('foo', 'bar'); - $this->assertEquals(1, $j->countConditions()); - $j->addCondition('foo1', 'bar1'); - $this->assertEquals(2, $j->countConditions()); - - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/query/ModelCriteriaHooksTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/query/ModelCriteriaHooksTest.php deleted file mode 100644 index 8c1107a874..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/query/ModelCriteriaHooksTest.php +++ /dev/null @@ -1,196 +0,0 @@ -find(); - $this->assertEquals(1, count($books), 'preSelect() can modify the Criteria before find() fires the query'); - - $c = new ModelCriteriaWithPreSelectHook('bookstore', 'Book'); - $nbBooks = $c->count(); - $this->assertEquals(1, $nbBooks, 'preSelect() can modify the Criteria before count() fires the query'); - } - - public function testPreDelete() - { - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->find(); - $count = count($books); - $book = $books->shift(); - - $c = new ModelCriteriaWithPreDeleteHook('bookstore', 'Book', 'b'); - $c->where('b.Id = ?', $book->getId()); - $nbBooks = $c->delete(); - $this->assertEquals(12, $nbBooks, 'preDelete() can change the return value of delete()'); - - $c = new ModelCriteria('bookstore', 'Book'); - $nbBooks = $c->count(); - $this->assertEquals($count, $nbBooks, 'preDelete() can bypass the row deletion'); - - $c = new ModelCriteriaWithPreDeleteHook('bookstore', 'Book'); - $nbBooks = $c->deleteAll(); - $this->assertEquals(12, $nbBooks, 'preDelete() can change the return value of deleteAll()'); - - $c = new ModelCriteria('bookstore', 'Book'); - $nbBooks = $c->count(); - $this->assertEquals($count, $nbBooks, 'preDelete() can bypass the row deletion'); - } - - public function testPostDelete() - { - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->find(); - $count = count($books); - $book = $books->shift(); - - $this->con->lastAffectedRows = 0; - - $c = new ModelCriteriaWithPostDeleteHook('bookstore', 'Book', 'b'); - $c->where('b.Id = ?', $book->getId()); - $nbBooks = $c->delete($this->con); - $this->assertEquals(1, $this->con->lastAffectedRows, 'postDelete() is called after delete()'); - - $this->con->lastAffectedRows = 0; - - $c = new ModelCriteriaWithPostDeleteHook('bookstore', 'Book'); - $nbBooks = $c->deleteAll($this->con); - $this->assertEquals(3, $this->con->lastAffectedRows, 'postDelete() is called after deleteAll()'); - } - - public function testPreAndPostDelete() - { - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->find(); - $count = count($books); - $book = $books->shift(); - - $this->con->lastAffectedRows = 0; - - $c = new ModelCriteriaWithPreAndPostDeleteHook('bookstore', 'Book', 'b'); - $c->where('b.Id = ?', $book->getId()); - $nbBooks = $c->delete($this->con); - $this->assertEquals(12, $this->con->lastAffectedRows, 'postDelete() is called after delete() even if preDelete() returns not null'); - - $this->con->lastAffectedRows = 0; - - $c = new ModelCriteriaWithPreAndPostDeleteHook('bookstore', 'Book'); - $nbBooks = $c->deleteAll($this->con); - $this->assertEquals(12, $this->con->lastAffectedRows, 'postDelete() is called after deleteAll() even if preDelete() returns not null'); - } - - public function testPreUpdate() - { - $c = new ModelCriteriaWithPreUpdateHook('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'Don Juan'); - $nbBooks = $c->update(array('Title' => 'foo')); - - $c = new ModelCriteriaWithPreUpdateHook('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'foo'); - $book = $c->findOne(); - - $this->assertEquals('1234', $book->getISBN(), 'preUpdate() can modify the values'); - } - - public function testPostUpdate() - { - $this->con->lastAffectedRows = 0; - - $c = new ModelCriteriaWithPostUpdateHook('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'Don Juan'); - $nbBooks = $c->update(array('Title' => 'foo'), $this->con); - $this->assertEquals(1, $this->con->lastAffectedRows, 'postUpdate() is called after update()'); - } - - public function testPreAndPostUpdate() - { - $this->con->lastAffectedRows = 0; - - $c = new ModelCriteriaWithPreAndPostUpdateHook('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'Don Juan'); - $nbBooks = $c->update(array('Title' => 'foo'), $this->con); - $this->assertEquals(52, $this->con->lastAffectedRows, 'postUpdate() is called after update() even if preUpdate() returns not null'); - } -} - -class ModelCriteriaWithPreSelectHook extends ModelCriteria -{ - public function preSelect(PropelPDO $con) - { - $this->where($this->getModelAliasOrName() . '.Title = ?', 'Don Juan'); - } -} - -class ModelCriteriaWithPreDeleteHook extends ModelCriteria -{ - public function preDelete(PropelPDO $con) - { - return 12; - } -} - -class ModelCriteriaWithPostDeleteHook extends ModelCriteria -{ - public function postDelete($affectedRows, PropelPDO $con) - { - $con->lastAffectedRows = $affectedRows; - } -} - -class ModelCriteriaWithPreAndPostDeleteHook extends ModelCriteriaWithPostDeleteHook -{ - public function preDelete(PropelPDO $con) - { - return 12; - } -} - -class ModelCriteriaWithPreUpdateHook extends ModelCriteria -{ - public function preUpdate(&$values, PropelPDO $con, $forceIndividualSaves = false) - { - $values['ISBN'] = '1234'; - } -} - -class ModelCriteriaWithPostUpdateHook extends ModelCriteria -{ - public function postUpdate($affectedRows, PropelPDO $con) - { - $con->lastAffectedRows = $affectedRows; - } -} - -class ModelCriteriaWithPreAndPostUpdateHook extends ModelCriteriaWithPostUpdateHook -{ - public function preUpdate(&$values, PropelPDO $con, $forceIndividualSaves = false) - { - return 52; - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/query/ModelCriteriaTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/query/ModelCriteriaTest.php deleted file mode 100644 index fdd8efb69f..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/query/ModelCriteriaTest.php +++ /dev/null @@ -1,2068 +0,0 @@ -assertEquals($expectedSql, $result, $message); - $this->assertEquals($expectedParams, $params, $message); - } - - public function testGetModelName() - { - $c = new ModelCriteria('bookstore', 'Book'); - $this->assertEquals('Book', $c->getModelName(), 'getModelName() returns the name of the class associated to the model class'); - } - - public function testGetModelPeerName() - { - $c = new ModelCriteria('bookstore', 'Book'); - $this->assertEquals('BookPeer', $c->getModelPeerName(), 'getModelPeerName() returns the name of the Peer class associated to the model class'); - } - - public function testFormatter() - { - $c = new ModelCriteria('bookstore', 'Book'); - $this->assertTrue($c->getFormatter() instanceof PropelFormatter, 'getFormatter() returns a PropelFormatter instance'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->setFormatter(ModelCriteria::FORMAT_STATEMENT); - $this->assertTrue($c->getFormatter() instanceof PropelStatementFormatter, 'setFormatter() accepts the name of a PropelFormatter class'); - - try { - $c->setFormatter('Book'); - $this->fail('setFormatter() throws an exception when passed the name of a class not extending PropelFormatter'); - } catch(PropelException $e) { - $this->assertTrue(true, 'setFormatter() throws an exception when passed the name of a class not extending PropelFormatter'); - } - $c = new ModelCriteria('bookstore', 'Book'); - $formatter = new PropelStatementFormatter(); - $c->setFormatter($formatter); - $this->assertTrue($c->getFormatter() instanceof PropelStatementFormatter, 'setFormatter() accepts a PropelFormatter instance'); - - try { - $formatter = new Book(); - $c->setFormatter($formatter); - $this->fail('setFormatter() throws an exception when passed an object not extending PropelFormatter'); - } catch(PropelException $e) { - $this->assertTrue(true, 'setFormatter() throws an exception when passedan object not extending PropelFormatter'); - } - - } - - public static function conditionsForTestReplaceNames() - { - return array( - array('Book.Title = ?', 'Title', 'book.TITLE = ?'), // basic case - array('Book.Title=?', 'Title', 'book.TITLE=?'), // without spaces - array('Book.Id<= ?', 'Id', 'book.ID<= ?'), // with non-equal comparator - array('Book.AuthorId LIKE ?', 'AuthorId', 'book.AUTHOR_ID LIKE ?'), // with SQL keyword separator - array('(Book.AuthorId) LIKE ?', 'AuthorId', '(book.AUTHOR_ID) LIKE ?'), // with parenthesis - array('(Book.Id*1.5)=1', 'Id', '(book.ID*1.5)=1'), // ignore numbers - array('1=1', null, '1=1'), // with no name - array('', null, '') // with empty string - ); - } - - /** - * @dataProvider conditionsForTestReplaceNames - */ - public function testReplaceNames($origClause, $columnPhpName = false, $modifiedClause) - { - $c = new TestableModelCriteria('bookstore', 'Book'); - $c->replaceNames($origClause); - $columns = $c->replacedColumns; - if ($columnPhpName) { - $this->assertEquals(array(BookPeer::getTableMap()->getColumnByPhpName($columnPhpName)), $columns); - } - $this->assertEquals($modifiedClause, $origClause); - } - - public static function conditionsForTestReplaceMultipleNames() - { - return array( - array('(Book.Id+Book.Id)=1', array('Id', 'Id'), '(book.ID+book.ID)=1'), // match multiple names - array('CONCAT(Book.Title,"Book.Id")= ?', array('Title', 'Id'), 'CONCAT(book.TITLE,"Book.Id")= ?'), // ignore names in strings - array('CONCAT(Book.Title," Book.Id ")= ?', array('Title', 'Id'), 'CONCAT(book.TITLE," Book.Id ")= ?'), // ignore names in strings - array('MATCH (Book.Title,Book.ISBN) AGAINST (?)', array('Title', 'ISBN'), 'MATCH (book.TITLE,book.ISBN) AGAINST (?)'), - ); - } - - /** - * @dataProvider conditionsForTestReplaceMultipleNames - */ - public function testReplaceMultipleNames($origClause, $expectedColumns, $modifiedClause) - { - $c = new TestableModelCriteria('bookstore', 'Book'); - $c->replaceNames($origClause); - $foundColumns = $c->replacedColumns; - foreach ($foundColumns as $column) { - $expectedColumn = BookPeer::getTableMap()->getColumnByPhpName(array_shift($expectedColumns)); - $this->assertEquals($expectedColumn, $column); - } - $this->assertEquals($modifiedClause, $origClause); - } - - public function testTableAlias() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->setModelAlias('b'); - $c->where('b.Title = ?', 'foo'); - - $sql = "SELECT FROM `book` WHERE book.TITLE = :p1"; - $params = array( - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'setModelAlias() allows the definition of the alias after constrution'); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'foo'); - - $sql = "SELECT FROM `book` WHERE book.TITLE = :p1"; - $params = array( - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'A ModelCriteria accepts a model name with an alias'); - } - - public function testTrueTableAlias() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->setModelAlias('b', true); - $c->where('b.Title = ?', 'foo'); - $c->join('b.Author a'); - $c->where('a.FirstName = ?', 'john'); - - - $sql = "SELECT FROM `book` `b` INNER JOIN author a ON (b.AUTHOR_ID=a.ID) WHERE b.TITLE = :p1 AND a.FIRST_NAME = :p2"; - $params = array( - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - array('table' => 'author', 'column' => 'FIRST_NAME', 'value' => 'john'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'setModelAlias() allows the definition of a true SQL alias after constrution'); - } - - public function testCondition() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->condition('cond1', 'Book.Title <> ?', 'foo'); - $c->condition('cond2', 'Book.Title like ?', '%bar%'); - $c->combine(array('cond1', 'cond2'), 'or'); - - $sql = "SELECT FROM `book` WHERE (book.TITLE <> :p1 OR book.TITLE like :p2)"; - $params = array( - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - array('table' => 'book', 'column' => 'TITLE', 'value' => '%bar%'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'condition() can store condition for later combination'); - } - - public static function conditionsForTestWhere() - { - return array( - array('Book.Title = ?', 'foo', 'book.TITLE = :p1', array(array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'))), - array('Book.AuthorId = ?', 12, 'book.AUTHOR_ID = :p1', array(array('table' => 'book', 'column' => 'AUTHOR_ID', 'value' => 12))), - array('Book.AuthorId IS NULL', null, 'book.AUTHOR_ID IS NULL', array()), - array('Book.Id BETWEEN ? AND ?', array(3, 4), 'book.ID BETWEEN :p1 AND :p2', array(array('table' => 'book', 'column' => 'ID', 'value' => 3), array('table' => 'book', 'column' => 'ID', 'value' => 4))), - array('Book.Id betWEen ? and ?', array(3, 4), 'book.ID betWEen :p1 and :p2', array(array('table' => 'book', 'column' => 'ID', 'value' => 3), array('table' => 'book', 'column' => 'ID', 'value' => 4))), - array('Book.Id IN ?', array(1, 2, 3), 'book.ID IN (:p1,:p2,:p3)', array(array('table' => 'book', 'column' => 'ID', 'value' => 1), array('table' => 'book', 'column' => 'ID', 'value' => 2), array('table' => 'book', 'column' => 'ID', 'value' => 3))), - array('Book.Id in ?', array(1, 2, 3), 'book.ID in (:p1,:p2,:p3)', array(array('table' => 'book', 'column' => 'ID', 'value' => 1), array('table' => 'book', 'column' => 'ID', 'value' => 2), array('table' => 'book', 'column' => 'ID', 'value' => 3))), - array('Book.Id IN ?', array(), '1<>1', array()), - array('Book.Id not in ?', array(), '1=1', array()), - array('UPPER(Book.Title) = ?', 'foo', 'UPPER(book.TITLE) = :p1', array(array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'))), - array('MATCH (Book.Title,Book.ISBN) AGAINST (?)', 'foo', 'MATCH (book.TITLE,book.ISBN) AGAINST (:p1)', array(array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'))), - ); - } - - /** - * @dataProvider conditionsForTestWhere - */ - public function testWhere($clause, $value, $sql, $params) - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->where($clause, $value); - $sql = 'SELECT FROM `book` WHERE ' . $sql; - $this->assertCriteriaTranslation($c, $sql, $params, 'where() accepts a string clause'); - } - - public function testWhereTwiceSameColumn() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->where('Book.Id IN ?', array(1, 2, 3)); - $c->where('Book.Id <> ?', 5); - $params = array( - array('table' => 'book', 'column' => 'ID', 'value' => '1'), - array('table' => 'book', 'column' => 'ID', 'value' => '2'), - array('table' => 'book', 'column' => 'ID', 'value' => '3'), - array('table' => 'book', 'column' => 'ID', 'value' => '5'), - ); - $sql = 'SELECT FROM `book` WHERE (book.ID IN (:p1,:p2,:p3) AND book.ID <> :p4)'; - $this->assertCriteriaTranslation($c, $sql, $params, 'where() adds clauses on the same column correctly'); - } - - public function testWhereConditions() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->condition('cond1', 'Book.Title <> ?', 'foo'); - $c->condition('cond2', 'Book.Title like ?', '%bar%'); - $c->where(array('cond1', 'cond2')); - - $sql = "SELECT FROM `book` WHERE (book.TITLE <> :p1 AND book.TITLE like :p2)"; - $params = array( - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - array('table' => 'book', 'column' => 'TITLE', 'value' => '%bar%'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'where() accepts an array of named conditions'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->condition('cond1', 'Book.Title <> ?', 'foo'); - $c->condition('cond2', 'Book.Title like ?', '%bar%'); - $c->where(array('cond1', 'cond2'), Criteria::LOGICAL_OR); - - $sql = "SELECT FROM `book` WHERE (book.TITLE <> :p1 OR book.TITLE like :p2)"; - $this->assertCriteriaTranslation($c, $sql, $params, 'where() accepts an array of named conditions with operator'); - } - - public function testWhereNoReplacement() - { - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'foo'); - $c->where('1=1'); - - $sql = "SELECT FROM `book` WHERE book.TITLE = :p1 AND 1=1"; - $params = array( - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'where() results in a Criteria::CUSTOM if no column name is matched'); - - $c = new ModelCriteria('bookstore', 'Book'); - try { - $c->where('b.Title = ?', 'foo'); - $this->fail('where() throws an exception when it finds a ? but cannot determine a column'); - } catch (PropelException $e) { - $this->assertTrue(true, 'where() throws an exception when it finds a ? but cannot determine a column'); - } - } - - public function testWhereFunction() - { - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('UPPER(b.Title) = ?', 'foo'); - - $sql = "SELECT FROM `book` WHERE UPPER(book.TITLE) = :p1"; - $params = array( - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'where() accepts a complex calculation'); - } - - public function testOrWhere() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->where('Book.Title <> ?', 'foo'); - $c->orWhere('Book.Title like ?', '%bar%'); - - $sql = "SELECT FROM `book` WHERE (book.TITLE <> :p1 OR book.TITLE like :p2)"; - $params = array( - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - array('table' => 'book', 'column' => 'TITLE', 'value' => '%bar%'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'orWhere() combines the clause with the previous one using OR'); - } - - public function testOrWhereConditions() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->where('Book.Id = ?', 12); - $c->condition('cond1', 'Book.Title <> ?', 'foo'); - $c->condition('cond2', 'Book.Title like ?', '%bar%'); - $c->orWhere(array('cond1', 'cond2')); - - $sql = "SELECT FROM `book` WHERE (book.ID = :p1 OR (book.TITLE <> :p2 AND book.TITLE like :p3))"; - $params = array( - array('table' => 'book', 'column' => 'ID', 'value' => 12), - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - array('table' => 'book', 'column' => 'TITLE', 'value' => '%bar%'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'orWhere() accepts an array of named conditions'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->where('Book.Id = ?', 12); - $c->condition('cond1', 'Book.Title <> ?', 'foo'); - $c->condition('cond2', 'Book.Title like ?', '%bar%'); - $c->orWhere(array('cond1', 'cond2'), Criteria::LOGICAL_OR); - - $sql = "SELECT FROM `book` WHERE (book.ID = :p1 OR (book.TITLE <> :p2 OR book.TITLE like :p3))"; - $this->assertCriteriaTranslation($c, $sql, $params, 'orWhere() accepts an array of named conditions with operator'); - } - - public function testMixedCriteria() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->where('Book.Title = ?', 'foo'); - $c->add(BookPeer::ID, array(1, 2), Criteria::IN); - - $sql = 'SELECT FROM `book` WHERE book.TITLE = :p1 AND book.ID IN (:p2,:p3)'; - $params = array( - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - array('table' => 'book', 'column' => 'ID', 'value' => 1), - array('table' => 'book', 'column' => 'ID', 'value' => 2) - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'ModelCriteria accepts Criteria operators'); - } - - public function testFilterBy() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->filterBy('Title', 'foo'); - - $sql = 'SELECT FROM `book` WHERE book.TITLE=:p1'; - $params = array( - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'filterBy() accepts a simple column name'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->filterBy('Title', 'foo', Criteria::NOT_EQUAL); - - $sql = 'SELECT FROM `book` WHERE book.TITLE<>:p1'; - $params = array( - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'filterBy() accepts a sicustom comparator'); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->filterBy('Title', 'foo'); - - $sql = 'SELECT FROM `book` WHERE book.TITLE=:p1'; - $params = array( - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'filterBy() accepts a simple column name, even if initialized with an alias'); - } - - public function testHaving() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->having('Book.Title <> ?', 'foo'); - - $sql = "SELECT FROM HAVING book.TITLE <> :p1"; - $params = array( - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'having() accepts a string clause'); - } - - public function testHavingConditions() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->condition('cond1', 'Book.Title <> ?', 'foo'); - $c->condition('cond2', 'Book.Title like ?', '%bar%'); - $c->having(array('cond1', 'cond2')); - - $sql = "SELECT FROM HAVING (book.TITLE <> :p1 AND book.TITLE like :p2)"; - $params = array( - array('table' => 'book', 'column' => 'TITLE', 'value' => 'foo'), - array('table' => 'book', 'column' => 'TITLE', 'value' => '%bar%'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'having() accepts an array of named conditions'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->condition('cond1', 'Book.Title <> ?', 'foo'); - $c->condition('cond2', 'Book.Title like ?', '%bar%'); - $c->having(array('cond1', 'cond2'), Criteria::LOGICAL_OR); - - $sql = "SELECT FROM HAVING (book.TITLE <> :p1 OR book.TITLE like :p2)"; - $this->assertCriteriaTranslation($c, $sql, $params, 'having() accepts an array of named conditions with an operator'); - } - - public function testOrderBy() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->orderBy('Book.Title'); - - $sql = 'SELECT FROM ORDER BY book.TITLE ASC'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'orderBy() accepts a column name and adds an ORDER BY clause'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->orderBy('Book.Title', 'desc'); - - $sql = 'SELECT FROM ORDER BY book.TITLE DESC'; - $this->assertCriteriaTranslation($c, $sql, $params, 'orderBy() accepts an order parameter'); - - $c = new ModelCriteria('bookstore', 'Book'); - try { - $c->orderBy('Book.Foo'); - $this->fail('orderBy() throws an exception when called with an unkown column name'); - } catch (PropelException $e) { - $this->assertTrue(true, 'orderBy() throws an exception when called with an unkown column name'); - } - $c = new ModelCriteria('bookstore', 'Book'); - try { - $c->orderBy('Book.Title', 'foo'); - $this->fail('orderBy() throws an exception when called with an unkown order'); - } catch (PropelException $e) { - $this->assertTrue(true, 'orderBy() throws an exception when called with an unkown order'); - } - } - - public function testOrderBySimpleColumn() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->orderBy('Title'); - - $sql = 'SELECT FROM ORDER BY book.TITLE ASC'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'orderBy() accepts a simple column name and adds an ORDER BY clause'); - } - - public function testOrderByAlias() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->addAsColumn('t', BookPeer::TITLE); - $c->orderBy('t'); - - $sql = 'SELECT book.TITLE AS t FROM ORDER BY t ASC'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'orderBy() accepts a column alias and adds an ORDER BY clause'); - } - - public function testGroupBy() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->groupBy('Book.AuthorId'); - - $sql = 'SELECT FROM GROUP BY book.AUTHOR_ID'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'groupBy() accepts a column name and adds a GROUP BY clause'); - - $c = new ModelCriteria('bookstore', 'Book'); - try { - $c->groupBy('Book.Foo'); - $this->fail('groupBy() throws an exception when called with an unkown column name'); - } catch (PropelException $e) { - $this->assertTrue(true, 'groupBy() throws an exception when called with an unkown column name'); - } - } - - public function testGroupBySimpleColumn() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->groupBy('AuthorId'); - - $sql = 'SELECT FROM GROUP BY book.AUTHOR_ID'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'groupBy() accepts a simple column name and adds a GROUP BY clause'); - } - - public function testGroupByAlias() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->addAsColumn('t', BookPeer::TITLE); - $c->groupBy('t'); - - $sql = 'SELECT book.TITLE AS t FROM GROUP BY t'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'groupBy() accepts a column alias and adds a GROUP BY clause'); - } - - public function testDistinct() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->distinct(); - $sql = 'SELECT DISTINCT FROM '; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'distinct() adds a DISTINCT clause'); - } - - public function testLimit() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->limit(10); - $sql = 'SELECT FROM LIMIT 10'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'limit() adds a LIMIT clause'); - } - - public function testOffset() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->limit(50); - $c->offset(10); - $sql = 'SELECT FROM LIMIT 10, 50'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'offset() adds an OFFSET clause'); - } - - public function testJoin() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->join('Book.Author'); - $sql = 'SELECT FROM `book` INNER JOIN author ON (book.AUTHOR_ID=author.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() uses a relation to guess the columns'); - - $c = new ModelCriteria('bookstore', 'Book'); - try { - $c->join('Book.Foo'); - $this->fail('join() throws an exception when called with a non-existing relation'); - } catch (PropelException $e) { - $this->assertTrue(true, 'join() throws an exception when called with a non-existing relation'); - } - - $c = new ModelCriteria('bookstore', 'Book'); - $c->join('Book.Author'); - $c->where('Author.FirstName = ?', 'Leo'); - $sql = 'SELECT FROM INNER JOIN author ON (book.AUTHOR_ID=author.ID) WHERE author.FIRST_NAME = :p1'; - $params = array( - array('table' => 'author', 'column' => 'FIRST_NAME', 'value' => 'Leo'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() uses a relation to guess the columns'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->join('Author'); - $c->where('Author.FirstName = ?', 'Leo'); - $sql = 'SELECT FROM INNER JOIN author ON (book.AUTHOR_ID=author.ID) WHERE author.FIRST_NAME = :p1'; - $params = array( - array('table' => 'author', 'column' => 'FIRST_NAME', 'value' => 'Leo'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() uses the current model name when given a simple relation name'); - } - - public function testJoinQuery() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - BookstoreDataPopulator::depopulate($con); - BookstoreDataPopulator::populate($con); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->join('Book.Author'); - $c->where('Author.FirstName = ?', 'Neal'); - $books = BookPeer::doSelect($c); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` INNER JOIN author ON (book.AUTHOR_ID=author.ID) WHERE author.FIRST_NAME = 'Neal'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'join() issues a real JOIN query'); - $this->assertEquals(1, count($books), 'join() issues a real JOIN query'); - } - - public function testJoinRelationName() - { - $c = new ModelCriteria('bookstore', 'BookstoreEmployee'); - $c->join('BookstoreEmployee.Supervisor'); - $sql = 'SELECT FROM INNER JOIN bookstore_employee ON (bookstore_employee.SUPERVISOR_ID=bookstore_employee.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() uses relation names as defined in schema.xml'); - } - - public function testJoinComposite() - { - $c = new ModelCriteria('bookstore', 'ReaderFavorite'); - $c->join('ReaderFavorite.BookOpinion'); - $sql = 'SELECT FROM `reader_favorite` INNER JOIN book_opinion ON (reader_favorite.BOOK_ID=book_opinion.BOOK_ID AND reader_favorite.READER_ID=book_opinion.READER_ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() knows how to create a JOIN clause for relationships with composite fkeys'); - } - - public function testJoinType() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->join('Book.Author'); - $sql = 'SELECT FROM `book` INNER JOIN author ON (book.AUTHOR_ID=author.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() adds an INNER JOIN by default'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->join('Book.Author', Criteria::INNER_JOIN); - $sql = 'SELECT FROM `book` INNER JOIN author ON (book.AUTHOR_ID=author.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() adds an INNER JOIN by default'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->join('Book.Author', Criteria::LEFT_JOIN); - $sql = 'SELECT FROM `book` LEFT JOIN author ON (book.AUTHOR_ID=author.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() can add a LEFT JOIN'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->join('Book.Author', Criteria::RIGHT_JOIN); - $sql = 'SELECT FROM `book` RIGHT JOIN author ON (book.AUTHOR_ID=author.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() can add a RIGHT JOIN'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->join('Book.Author', 'incorrect join'); - $sql = 'SELECT FROM `book` incorrect join author ON (book.AUTHOR_ID=author.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() accepts any join string'); - } - - public function testJoinDirection() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->join('Book.Author'); - $sql = 'SELECT FROM `book` INNER JOIN author ON (book.AUTHOR_ID=author.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() adds a JOIN clause correctly for many to one relationship'); - - $c = new ModelCriteria('bookstore', 'Author'); - $c->join('Author.Book'); - $sql = 'SELECT FROM `author` INNER JOIN book ON (author.ID=book.AUTHOR_ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() adds a JOIN clause correctly for one to many relationship'); - - $c = new ModelCriteria('bookstore', 'BookstoreEmployee'); - $c->join('BookstoreEmployee.BookstoreEmployeeAccount'); - $sql = 'SELECT FROM `bookstore_employee` INNER JOIN bookstore_employee_account ON (bookstore_employee.ID=bookstore_employee_account.EMPLOYEE_ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() adds a JOIN clause correctly for one to one relationship'); - - $c = new ModelCriteria('bookstore', 'BookstoreEmployeeAccount'); - $c->join('BookstoreEmployeeAccount.BookstoreEmployee'); - $sql = 'SELECT FROM `bookstore_employee_account` INNER JOIN bookstore_employee ON (bookstore_employee_account.EMPLOYEE_ID=bookstore_employee.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() adds a JOIN clause correctly for one to one relationship'); - } - - public function testJoinSeveral() - { - $c = new ModelCriteria('bookstore', 'Author'); - $c->join('Author.Book'); - $c->join('Book.Publisher'); - $c->where('Publisher.Name = ?', 'foo'); - $sql = 'SELECT FROM INNER JOIN book ON (author.ID=book.AUTHOR_ID) INNER JOIN publisher ON (book.PUBLISHER_ID=publisher.ID) WHERE publisher.NAME = :p1'; - $params = array( - array('table' => 'publisher', 'column' => 'NAME', 'value' => 'foo'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() can guess relationships from related tables'); - } - - public function testJoinAlias() - { - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->join('b.Author'); - $sql = 'SELECT FROM `book` INNER JOIN author ON (book.AUTHOR_ID=author.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() supports relation on main alias'); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->join('Author'); - $sql = 'SELECT FROM `book` INNER JOIN author ON (book.AUTHOR_ID=author.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() can use a simple relation name when the model has an alias'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->join('Book.Author a'); - $sql = 'SELECT FROM `book` INNER JOIN author a ON (book.AUTHOR_ID=a.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() supports relation alias'); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->join('b.Author a'); - $sql = 'SELECT FROM `book` INNER JOIN author a ON (book.AUTHOR_ID=a.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() supports relation alias on main alias'); - - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->join('b.Author a'); - $c->where('a.FirstName = ?', 'Leo'); - $sql = 'SELECT FROM INNER JOIN author a ON (book.AUTHOR_ID=a.ID) WHERE a.FIRST_NAME = :p1'; - $params = array( - array('table' => 'author', 'column' => 'FIRST_NAME', 'value' => 'Leo'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() allows the use of relation alias in where()'); - - $c = new ModelCriteria('bookstore', 'Author', 'a'); - $c->join('a.Book b'); - $c->join('b.Publisher p'); - $c->where('p.Name = ?', 'foo'); - $sql = 'SELECT FROM INNER JOIN book b ON (author.ID=b.AUTHOR_ID) INNER JOIN publisher p ON (b.PUBLISHER_ID=p.ID) WHERE p.NAME = :p1'; - $params = array( - array('table' => 'publisher', 'column' => 'NAME', 'value' => 'foo'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() allows the use of relation alias in further join()'); - } - - public function testJoinTrueTableAlias() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->setModelAlias('b', true); - $c->join('b.Author'); - $sql = 'SELECT FROM `book` `b` INNER JOIN author ON (b.AUTHOR_ID=author.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() supports relation on true table alias'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->setModelAlias('b', true); - $c->join('Author'); - $sql = 'SELECT FROM `book` `b` INNER JOIN author ON (b.AUTHOR_ID=author.ID)'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() supports relation without alias name on true table alias'); - } - - public function testJoinOnSameTable() - { - $c = new ModelCriteria('bookstore', 'BookstoreEmployee', 'be'); - $c->join('be.Supervisor sup'); - $c->join('sup.Subordinate sub'); - $c->where('sub.Name = ?', 'Foo'); - $sql = 'SELECT FROM INNER JOIN bookstore_employee sup ON (bookstore_employee.SUPERVISOR_ID=sup.ID) INNER JOIN bookstore_employee sub ON (sup.ID=sub.SUPERVISOR_ID) WHERE sub.NAME = :p1'; - $params = array( - array('table' => 'bookstore_employee', 'column' => 'NAME', 'value' => 'Foo'), - ); - $this->assertCriteriaTranslation($c, $sql, $params, 'join() allows two joins on the same table thanks to aliases'); - } - - public function testJoinAliasQuery() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->join('b.Author a'); - $c->where('a.FirstName = ?', 'Leo'); - $books = BookPeer::doSelect($c, $con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` INNER JOIN author a ON (book.AUTHOR_ID=a.ID) WHERE a.FIRST_NAME = 'Leo'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'join() allows the use of relation alias in where()'); - - $c = new ModelCriteria('bookstore', 'BookstoreEmployee', 'be'); - $c->join('be.Supervisor sup'); - $c->join('sup.Subordinate sub'); - $c->where('sub.Name = ?', 'Foo'); - $employees = BookstoreEmployeePeer::doSelect($c, $con); - $expectedSQL = "SELECT bookstore_employee.ID, bookstore_employee.CLASS_KEY, bookstore_employee.NAME, bookstore_employee.JOB_TITLE, bookstore_employee.SUPERVISOR_ID FROM `bookstore_employee` INNER JOIN bookstore_employee sup ON (bookstore_employee.SUPERVISOR_ID=sup.ID) INNER JOIN bookstore_employee sub ON (sup.ID=sub.SUPERVISOR_ID) WHERE sub.NAME = 'Foo'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'join() allows the use of relation alias in further joins()'); - } - - public function testGetJoin() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->join('Book.Author'); - - $joins = $c->getJoins(); - $this->assertEquals($joins['Author'], $c->getJoin('Author'), "getJoin() returns a specific Join from the ModelCriteria"); - } - - public function testWith() - { - $c = new TestableModelCriteria('bookstore', 'Book'); - $c->join('Book.Author'); - $c->with('Author'); - $withs = $c->getWith(); - $this->assertTrue(array_key_exists('Author', $withs), 'with() adds an entry to the internal list of Withs'); - $this->assertTrue($withs['Author'] instanceof ModelJoin, 'with() references the ModelJoin object'); - } - - /** - * @expectedException PropelException - */ - public function testWithThrowsExceptionWhenJoinLacks() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->with('Author'); - } - - public function testWithAlias() - { - $c = new TestableModelCriteria('bookstore', 'Book'); - $c->join('Book.Author a'); - $c->with('a'); - $withs = $c->getWith(); - $this->assertTrue(array_key_exists('a', $withs), 'with() uses the alias for the index of the internal list of Withs'); - } - - /** - * @expectedException PropelException - */ - public function testWithThrowsExceptionWhenNotUsingAlias() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->join('Book.Author a'); - $c->with('Author'); - } - - public function testWithAddsSelectColumns() - { - $c = new TestableModelCriteria('bookstore', 'Book'); - BookPeer::addSelectColumns($c); - $c->join('Book.Author'); - $c->with('Author'); - $expectedColumns = array( - BookPeer::ID, - BookPeer::TITLE, - BookPeer::ISBN, - BookPeer::PRICE, - BookPeer::PUBLISHER_ID, - BookPeer::AUTHOR_ID, - AuthorPeer::ID, - AuthorPeer::FIRST_NAME, - AuthorPeer::LAST_NAME, - AuthorPeer::EMAIL, - AuthorPeer::AGE - ); - $this->assertEquals($expectedColumns, $c->getSelectColumns(), 'with() adds the columns of the related table'); - } - - public function testWithAliasAddsSelectColumns() - { - $c = new TestableModelCriteria('bookstore', 'Book'); - BookPeer::addSelectColumns($c); - $c->join('Book.Author a'); - $c->with('a'); - $expectedColumns = array( - BookPeer::ID, - BookPeer::TITLE, - BookPeer::ISBN, - BookPeer::PRICE, - BookPeer::PUBLISHER_ID, - BookPeer::AUTHOR_ID, - 'a.ID', - 'a.FIRST_NAME', - 'a.LAST_NAME', - 'a.EMAIL', - 'a.AGE' - ); - $this->assertEquals($expectedColumns, $c->getSelectColumns(), 'with() adds the columns of the related table'); - } - - public function testWithAddsSelectColumnsOfMainTable() - { - $c = new TestableModelCriteria('bookstore', 'Book'); - $c->join('Book.Author'); - $c->with('Author'); - $expectedColumns = array( - BookPeer::ID, - BookPeer::TITLE, - BookPeer::ISBN, - BookPeer::PRICE, - BookPeer::PUBLISHER_ID, - BookPeer::AUTHOR_ID, - AuthorPeer::ID, - AuthorPeer::FIRST_NAME, - AuthorPeer::LAST_NAME, - AuthorPeer::EMAIL, - AuthorPeer::AGE - ); - $this->assertEquals($expectedColumns, $c->getSelectColumns(), 'with() adds the columns of the main table if required'); - } - - public function testWithAliasAddsSelectColumnsOfMainTable() - { - $c = new TestableModelCriteria('bookstore', 'Book'); - $c->setModelAlias('b', true); - $c->join('b.Author a'); - $c->with('a'); - $expectedColumns = array( - 'b.ID', - 'b.TITLE', - 'b.ISBN', - 'b.PRICE', - 'b.PUBLISHER_ID', - 'b.AUTHOR_ID', - 'a.ID', - 'a.FIRST_NAME', - 'a.LAST_NAME', - 'a.EMAIL', - 'a.AGE' - ); - $this->assertEquals($expectedColumns, $c->getSelectColumns(), 'with() adds the columns of the main table with an alias if required'); - } - - public function testWithOneToManyAddsSelectColumns() - { - $c = new TestableModelCriteria('bookstore', 'Author'); - AuthorPeer::addSelectColumns($c); - $c->leftJoin('Author.Book'); - $c->with('Book'); - $expectedColumns = array( - AuthorPeer::ID, - AuthorPeer::FIRST_NAME, - AuthorPeer::LAST_NAME, - AuthorPeer::EMAIL, - AuthorPeer::AGE, - BookPeer::ID, - BookPeer::TITLE, - BookPeer::ISBN, - BookPeer::PRICE, - BookPeer::PUBLISHER_ID, - BookPeer::AUTHOR_ID, - ); - $this->assertEquals($expectedColumns, $c->getSelectColumns(), 'with() adds the columns of the related table even in a one-to-many relationship'); - } - - public function testJoinWith() - { - $c = new TestableModelCriteria('bookstore', 'Book'); - $c->joinWith('Book.Author'); - $expectedColumns = array( - BookPeer::ID, - BookPeer::TITLE, - BookPeer::ISBN, - BookPeer::PRICE, - BookPeer::PUBLISHER_ID, - BookPeer::AUTHOR_ID, - AuthorPeer::ID, - AuthorPeer::FIRST_NAME, - AuthorPeer::LAST_NAME, - AuthorPeer::EMAIL, - AuthorPeer::AGE - ); - $this->assertEquals($expectedColumns, $c->getSelectColumns(), 'joinWith() adds the join'); - $joins = $c->getJoins(); - $join = $joins['Author']; - $this->assertEquals(Criteria::INNER_JOIN, $join->getJoinType(), 'joinWith() adds an INNER JOIN by default'); - } - - public function testJoinWithType() - { - $c = new TestableModelCriteria('bookstore', 'Book'); - $c->joinWith('Book.Author', Criteria::LEFT_JOIN); - $joins = $c->getJoins(); - $join = $joins['Author']; - $this->assertEquals(Criteria::LEFT_JOIN, $join->getJoinType(), 'joinWith() accepts a join type as second parameter'); - } - - public function testJoinWithAlias() - { - $c = new TestableModelCriteria('bookstore', 'Book'); - $c->joinWith('Book.Author a'); - $expectedColumns = array( - BookPeer::ID, - BookPeer::TITLE, - BookPeer::ISBN, - BookPeer::PRICE, - BookPeer::PUBLISHER_ID, - BookPeer::AUTHOR_ID, - 'a.ID', - 'a.FIRST_NAME', - 'a.LAST_NAME', - 'a.EMAIL', - 'a.AGE' - ); - $this->assertEquals($expectedColumns, $c->getSelectColumns(), 'joinWith() adds the join with the alias'); - } - - public function testJoinWithSeveral() - { - $c = new TestableModelCriteria('bookstore', 'Review'); - $c->joinWith('Review.Book'); - $c->joinWith('Book.Author'); - $c->joinWith('Book.Publisher'); - $expectedColumns = array( - ReviewPeer::ID, - ReviewPeer::REVIEWED_BY, - ReviewPeer::REVIEW_DATE, - ReviewPeer::RECOMMENDED, - ReviewPeer::STATUS, - ReviewPeer::BOOK_ID, - BookPeer::ID, - BookPeer::TITLE, - BookPeer::ISBN, - BookPeer::PRICE, - BookPeer::PUBLISHER_ID, - BookPeer::AUTHOR_ID, - AuthorPeer::ID, - AuthorPeer::FIRST_NAME, - AuthorPeer::LAST_NAME, - AuthorPeer::EMAIL, - AuthorPeer::AGE, - PublisherPeer::ID, - PublisherPeer::NAME - ); - $this->assertEquals($expectedColumns, $c->getSelectColumns(), 'joinWith() adds the with'); - $joins = $c->getJoins(); - $expectedJoinKeys = array('Book', 'Author', 'Publisher'); - $this->assertEquals($expectedJoinKeys, array_keys($joins), 'joinWith() adds the join'); - } - - public function testJoinWithTwice() - { - $c = new TestableModelCriteria('bookstore', 'Book'); - $c->join('Book.Review'); - $c->joinWith('Book.Author'); - $c->joinWith('Book.Review'); - $expectedColumns = array( - BookPeer::ID, - BookPeer::TITLE, - BookPeer::ISBN, - BookPeer::PRICE, - BookPeer::PUBLISHER_ID, - BookPeer::AUTHOR_ID, - AuthorPeer::ID, - AuthorPeer::FIRST_NAME, - AuthorPeer::LAST_NAME, - AuthorPeer::EMAIL, - AuthorPeer::AGE, - ReviewPeer::ID, - ReviewPeer::REVIEWED_BY, - ReviewPeer::REVIEW_DATE, - ReviewPeer::RECOMMENDED, - ReviewPeer::STATUS, - ReviewPeer::BOOK_ID, - ); - $this->assertEquals($expectedColumns, $c->getSelectColumns(), 'joinWith() adds the with'); - $joins = $c->getJoins(); - $expectedJoinKeys = array('Review', 'Author'); - $this->assertEquals($expectedJoinKeys, array_keys($joins), 'joinWith() adds the join'); - } - - public static function conditionsForTestWithColumn() - { - return array( - array('Book.Title', 'BookTitle', 'book.TITLE AS BookTitle'), - array('Book.Title', null, 'book.TITLE AS BookTitle'), - array('UPPER(Book.Title)', null, 'UPPER(book.TITLE) AS UPPERBookTitle'), - array('CONCAT(Book.Title, Book.ISBN)', 'foo', 'CONCAT(book.TITLE, book.ISBN) AS foo'), - ); - } - - /** - * @dataProvider conditionsForTestWithColumn - */ - public function testWithColumn($clause, $alias, $selectTranslation) - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->withColumn($clause, $alias); - $sql = 'SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID, ' . $selectTranslation . ' FROM `book`'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'withColumn() adds a calculated column to the select clause'); - } - - public function testWithColumnAndSelectColumns() - { - $c = new ModelCriteria('bookstore', 'Book'); - $c->withColumn('UPPER(Book.Title)', 'foo'); - $sql = 'SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID, UPPER(book.TITLE) AS foo FROM `book`'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'withColumn() adds the object columns if the criteria has no select columns'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->addSelectColumn('book.ID'); - $c->withColumn('UPPER(Book.Title)', 'foo'); - $sql = 'SELECT book.ID, UPPER(book.TITLE) AS foo FROM `book`'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'withColumn() does not add the object columns if the criteria already has select columns'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->addSelectColumn('book.ID'); - $c->withColumn('UPPER(Book.Title)', 'foo'); - $c->addSelectColumn('book.TITLE'); - $sql = 'SELECT book.ID, book.TITLE, UPPER(book.TITLE) AS foo FROM `book`'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'withColumn() does adds as column after the select columns even though the withColumn() method was called first'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->addSelectColumn('book.ID'); - $c->withColumn('UPPER(Book.Title)', 'foo'); - $c->withColumn('UPPER(Book.ISBN)', 'isbn'); - $sql = 'SELECT book.ID, UPPER(book.TITLE) AS foo, UPPER(book.ISBN) AS isbn FROM `book`'; - $params = array(); - $this->assertCriteriaTranslation($c, $sql, $params, 'withColumn() called repeatedly adds several as colums'); - } - - public function testKeepQuery() - { - $c = BookQuery::create(); - $this->assertFalse($c->isKeepQuery(), 'keepQuery is disabled by default'); - $c->keepQuery(); - $this->assertTrue($c->isKeepQuery(), 'keepQuery() enables the keepQuery property'); - $c->keepQuery(false); - $this->assertFalse($c->isKeepQuery(), 'keepQuery(false) disables the keepQuery property'); - } - - public function testKeepQueryFind() - { - $c = BookQuery::create(); - $c->filterByTitle('foo'); - $c->find(); - $expected = array('book.ID', 'book.TITLE', 'book.ISBN', 'book.PRICE', 'book.PUBLISHER_ID', 'book.AUTHOR_ID'); - $this->assertEquals($expected, $c->getSelectColumns(), 'find() modifies the query by default'); - - $c = BookQuery::create(); - $c->filterByTitle('foo'); - $c->keepQuery(); - $c->find(); - $this->assertEquals(array(), $c->getSelectColumns(), 'keepQuery() forces find() to use a clone and keep the original query unmodified'); - } - - public function testKeepQueryFindOne() - { - $c = BookQuery::create(); - $c->filterByTitle('foo'); - $c->findOne(); - $this->assertEquals(1, $c->getLimit(), 'findOne() modifies the query by default'); - - $c = BookQuery::create(); - $c->filterByTitle('foo'); - $c->keepQuery(); - $c->findOne(); - $this->assertEquals(0, $c->getLimit(), 'keepQuery() forces findOne() to use a clone and keep the original query unmodified'); - } - - public function testKeepQueryFindPk() - { - $c = BookQuery::create(); - $c->findPk(1); - $expected = array('book.ID', 'book.TITLE', 'book.ISBN', 'book.PRICE', 'book.PUBLISHER_ID', 'book.AUTHOR_ID'); - $this->assertEquals($expected, $c->getSelectColumns(), 'findPk() modifies the query by default'); - - $c = BookQuery::create(); - $c->keepQuery(); - $c->findPk(1); - $this->assertEquals(array(), $c->getSelectColumns(), 'keepQuery() forces findPk() to use a clone and keep the original query unmodified'); - } - - public function testKeepQueryCount() - { - $c = BookQuery::create(); - $c->orderByTitle(); - $c->count(); - $this->assertEquals(array(), $c->getOrderByColumns(), 'count() modifies the query by default'); - - $c = BookQuery::create(); - $c->orderByTitle(); - $c->keepQuery(); - $c->count(); - $this->assertEquals(array('book.TITLE ASC'), $c->getOrderByColumns(), 'keepQuery() forces count() to use a clone and keep the original query unmodified'); - } - - public function testFind() - { - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'foo'); - $books = $c->find(); - $this->assertTrue($books instanceof PropelCollection, 'find() returns a collection by default'); - $this->assertEquals(0, count($books), 'find() returns an empty array when the query returns no result'); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->join('b.Author a'); - $c->where('a.FirstName = ?', 'Neal'); - $books = $c->find(); - $this->assertTrue($books instanceof PropelCollection, 'find() returns a collection by default'); - $this->assertEquals(1, count($books), 'find() returns as many rows as the results in the query'); - $book = $books->shift(); - $this->assertTrue($book instanceof Book, 'find() returns an array of Model objects by default'); - $this->assertEquals('Quicksilver', $book->getTitle(), 'find() returns the model objects matching the query'); - } - - public function testFindAddsSelectColumns() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->find($con); - $sql = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book`"; - $this->assertEquals($sql, $con->getLastExecutedQuery(), 'find() adds the select columns of the current model'); - } - - public function testFindTrueAliasAddsSelectColumns() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c = new ModelCriteria('bookstore', 'Book'); - $c->setModelAlias('b', true); - $books = $c->find($con); - $sql = "SELECT b.ID, b.TITLE, b.ISBN, b.PRICE, b.PUBLISHER_ID, b.AUTHOR_ID FROM `book` `b`"; - $this->assertEquals($sql, $con->getLastExecutedQuery(), 'find() uses the true model alias if available'); - } - - public function testFindOne() - { - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'foo'); - $book = $c->findOne(); - $this->assertNull($book, 'findOne() returns null when the query returns no result'); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->orderBy('b.Title'); - $book = $c->findOne(); - $this->assertTrue($book instanceof Book, 'findOne() returns a Model object by default'); - $this->assertEquals('Don Juan', $book->getTitle(), 'find() returns the model objects matching the query'); - } - - public function testFindOneOrCreateNotExists() - { - BookQuery::create()->deleteAll(); - $book = BookQuery::create('b') - ->where('b.Title = ?', 'foo') - ->filterByPrice(125) - ->findOneOrCreate(); - $this->assertTrue($book instanceof Book, 'findOneOrCreate() returns an instance of the model when the request has no result'); - $this->assertTrue($book->isNew(), 'findOneOrCreate() returns a new instance of the model when the request has no result'); - $this->assertEquals('foo', $book->getTitle(), 'findOneOrCreate() returns a populated objects based on the conditions'); - $this->assertEquals(125, $book->getPrice(), 'findOneOrCreate() returns a populated objects based on the conditions'); - } - - public function testFindOneOrCreateNotExistsFormatter() - { - BookQuery::create()->deleteAll(); - $book = BookQuery::create('b') - ->where('b.Title = ?', 'foo') - ->filterByPrice(125) - ->setFormatter(ModelCriteria::FORMAT_ARRAY) - ->findOneOrCreate(); - $this->assertTrue(is_array($book), 'findOneOrCreate() uses the query formatter even when the request has no result'); - $this->assertEquals('foo', $book['Title'], 'findOneOrCreate() returns a populated array based on the conditions'); - $this->assertEquals(125, $book['Price'], 'findOneOrCreate() returns a populated array based on the conditions'); - } - - public function testFindOneOrCreateExists() - { - BookQuery::create()->deleteAll(); - $book = new Book(); - $book->setTitle('foo'); - $book->setPrice(125); - $book->save(); - $book = BookQuery::create('b') - ->where('b.Title = ?', 'foo') - ->filterByPrice(125) - ->findOneOrCreate(); - $this->assertTrue($book instanceof Book, 'findOneOrCreate() returns an instance of the model when the request has one result'); - $this->assertFalse($book->isNew(), 'findOneOrCreate() returns an existing instance of the model when the request has one result'); - $this->assertEquals('foo', $book->getTitle(), 'findOneOrCreate() returns a populated objects based on the conditions'); - $this->assertEquals(125, $book->getPrice(), 'findOneOrCreate() returns a populated objects based on the conditions'); - } - - public function testFindPkSimpleKey() - { - BookstoreDataPopulator::depopulate(); - - $c = new ModelCriteria('bookstore', 'Book'); - $book = $c->findPk(765432); - $this->assertNull($book, 'findPk() returns null when the primary key is not found'); - - BookstoreDataPopulator::populate(); - - // retrieve the test data - $c = new ModelCriteria('bookstore', 'Book'); - $testBook = $c->findOne(); - - $c = new ModelCriteria('bookstore', 'Book'); - $book = $c->findPk($testBook->getId()); - $this->assertEquals($testBook, $book, 'findPk() returns a model object corresponding to the pk'); - } - - public function testFindPksSimpleKey() - { - BookstoreDataPopulator::depopulate(); - - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->findPks(array(765432, 434535)); - $this->assertEquals($books instanceof PropelCollection, 'findPks() returns a PropelCollection'); - $this->assertEquals(0, count($books), 'findPks() returns an empty collection when the primary keys are not found'); - - BookstoreDataPopulator::populate(); - - // retrieve the test data - $c = new ModelCriteria('bookstore', 'Book'); - $testBooks = $c->find(); - $testBook1 = $testBooks->pop(); - $testBook2 = $testBooks->pop(); - - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->findPks(array($testBook1->getId(), $testBook2->getId())); - $this->assertEquals(array($testBook2, $testBook1), $books->getData(), 'findPks() returns an array of model objects corresponding to the pks'); - } - - public function testFindPkCompositeKey() - { - BookstoreDataPopulator::depopulate(); - - $c = new ModelCriteria('bookstore', 'BookListRel'); - $bookListRel = $c->findPk(array(1, 2)); - $this->assertNull($bookListRel, 'findPk() returns null when the composite primary key is not found'); - - Propel::enableInstancePooling(); - BookstoreDataPopulator::populate(); - - // save all books to make sure related objects are also saved - BookstoreDataPopulator keeps some unsaved - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->find(); - foreach ($books as $book) { - $book->save(); - } - - // retrieve the test data - $c = new ModelCriteria('bookstore', 'BookListRel'); - $bookListRelTest = $c->findOne(); - $pk = $bookListRelTest->getPrimaryKey(); - - $c = new ModelCriteria('bookstore', 'BookListRel'); - $bookListRel = $c->findPk($pk); - $this->assertEquals($bookListRelTest, $bookListRel, 'findPk() can find objects with composite primary keys'); - } - - /** - * @expectedException PropelException - */ - public function testFindPksCompositeKey() - { - $c = new ModelCriteria('bookstore', 'BookListRel'); - $bookListRel = $c->findPks(array(array(1, 2))); - - } - - public function testFindBy() - { - try { - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->findBy('Foo', 'Bar'); - $this->fail('findBy() throws an exception when called on an unknown column name'); - } catch (PropelException $e) { - $this->assertTrue(true, 'findBy() throws an exception when called on an unknown column name'); - } - - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->findBy('Title', 'Don Juan', $con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` WHERE book.TITLE='Don Juan'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'findBy() adds simple column conditions'); - $this->assertTrue($books instanceof PropelCollection, 'findBy() issues a find()'); - $this->assertEquals(1, count($books), 'findBy() adds simple column conditions'); - $book = $books->shift(); - $this->assertTrue($book instanceof Book, 'findBy() returns an array of Model objects by default'); - $this->assertEquals('Don Juan', $book->getTitle(), 'findBy() returns the model objects matching the query'); - } - - public function testFindByArray() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->findByArray(array('Title' => 'Don Juan', 'ISBN' => 12345), $con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` WHERE book.TITLE='Don Juan' AND book.ISBN=12345"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'findByArray() adds multiple column conditions'); - } - - public function testFindOneBy() - { - try { - $c = new ModelCriteria('bookstore', 'Book'); - $book = $c->findOneBy('Foo', 'Bar'); - $this->fail('findOneBy() throws an exception when called on an unknown column name'); - } catch (PropelException $e) { - $this->assertTrue(true, 'findOneBy() throws an exception when called on an unknown column name'); - } - - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c = new ModelCriteria('bookstore', 'Book'); - $book = $c->findOneBy('Title', 'Don Juan', $con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` WHERE book.TITLE='Don Juan' LIMIT 1"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'findOneBy() adds simple column conditions'); - $this->assertTrue($book instanceof Book, 'findOneBy() returns a Model object by default'); - $this->assertEquals('Don Juan', $book->getTitle(), 'findOneBy() returns the model object matching the query'); - } - - public function testFindOneByArray() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c = new ModelCriteria('bookstore', 'Book'); - $book = $c->findOneByArray(array('Title' => 'Don Juan', 'ISBN' => 12345), $con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` WHERE book.TITLE='Don Juan' AND book.ISBN=12345 LIMIT 1"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'findOneBy() adds multiple column conditions'); - } - - public function testCount() - { - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'foo'); - $nbBooks = $c->count(); - $this->assertTrue(is_int($nbBooks), 'count() returns an integer'); - $this->assertEquals(0, $nbBooks, 'count() returns 0 when the query returns no result'); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->join('b.Author a'); - $c->where('a.FirstName = ?', 'Neal'); - $nbBooks = $c->count(); - $this->assertTrue(is_int($nbBooks), 'count() returns an integer'); - $this->assertEquals(1, $nbBooks, 'count() returns the number of results in the query'); - } - - public function testPaginate() - { - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->join('b.Author a'); - $c->where('a.FirstName = ?', 'Neal'); - $books = $c->paginate(1, 5); - $this->assertTrue($books instanceof PropelModelPager, 'paginate() returns a PropelModelPager'); - $this->assertEquals(1, count($books), 'paginate() returns a countable pager with the correct count'); - foreach ($books as $book) { - $this->assertEquals('Neal', $book->getAuthor()->getFirstName(), 'paginate() returns an iterable pager'); - } - } - - public function testDelete() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - $c = new ModelCriteria('bookstore', 'Book'); - try { - $nbBooks = $c->delete(); - $this->fail('delete() throws an exception when called on an empty Criteria'); - } catch (PropelException $e) { - $this->assertTrue(true, 'delete() throws an exception when called on an empty Criteria'); - } - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'foo'); - $nbBooks = $c->delete(); - $this->assertTrue(is_int($nbBooks), 'delete() returns an integer'); - $this->assertEquals(0, $nbBooks, 'delete() returns 0 when the query deleted no rows'); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'Don Juan'); - $nbBooks = $c->delete(); - $this->assertTrue(is_int($nbBooks), 'delete() returns an integer'); - $this->assertEquals(1, $nbBooks, 'delete() returns the number of the deleted rows'); - - $c = new ModelCriteria('bookstore', 'Book'); - $nbBooks = $c->count(); - $this->assertEquals(3, $nbBooks, 'delete() deletes rows in the database'); - } - - public function testDeleteUsingTableAlias() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->setModelAlias('b', false); - $c->where('b.Title = ?', 'foo'); - $c->delete(); - $expectedSQL = "DELETE FROM `book` WHERE book.TITLE = 'foo'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'delete() also works on tables with table alias'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->setModelAlias('b', true); - $c->where('b.Title = ?', 'foo'); - $c->delete(); - $expectedSQL = "DELETE b FROM `book` AS b WHERE b.TITLE = 'foo'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'delete() also works on tables with true table alias'); - } - - public function testDeleteAll() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - $c = new ModelCriteria('bookstore', 'Book'); - $nbBooks = $c->deleteAll(); - $this->assertTrue(is_int($nbBooks), 'deleteAll() returns an integer'); - $this->assertEquals(4, $nbBooks, 'deleteAll() returns the number of deleted rows'); - - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'Don Juan'); - $nbBooks = $c->deleteAll(); - $this->assertEquals(4, $nbBooks, 'deleteAll() ignores conditions on the criteria'); - } - - public function testUpdate() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - BookstoreDataPopulator::depopulate($con); - BookstoreDataPopulator::populate($con); - - $count = $con->getQueryCount(); - $c = new ModelCriteria('bookstore', 'Book'); - $nbBooks = $c->update(array('Title' => 'foo'), $con); - $this->assertEquals(4, $nbBooks, 'update() returns the number of updated rows'); - $this->assertEquals($count + 1, $con->getQueryCount(), 'update() updates all the objects in one query by default'); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'foo'); - $nbBooks = $c->count(); - $this->assertEquals(4, $nbBooks, 'update() updates all records by default'); - - BookstoreDataPopulator::depopulate($con); - BookstoreDataPopulator::populate($con); - - $count = $con->getQueryCount(); - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'Don Juan'); - $nbBooks = $c->update(array('ISBN' => '3456'), $con); - $this->assertEquals(1, $nbBooks, 'update() updates only the records matching the criteria'); - $this->assertEquals($count + 1, $con->getQueryCount(), 'update() updates all the objects in one query by default'); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'Don Juan'); - $book = $c->findOne(); - $this->assertEquals('3456', $book->getISBN(), 'update() updates only the records matching the criteria'); - } - - public function testUpdateUsingTableAlias() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->setModelAlias('b', false); - $c->where('b.Title = ?', 'foo'); - $c->update(array('Title' => 'foo2'), $con); - $expectedSQL = "UPDATE `book` SET `TITLE`='foo2' WHERE book.TITLE = 'foo'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'update() also works on tables with table alias'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->setModelAlias('b', true); - $c->where('b.Title = ?', 'foo'); - $c->update(array('Title' => 'foo2'), $con); - $expectedSQL = "UPDATE `book` `b` SET `TITLE`='foo2' WHERE b.TITLE = 'foo'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'update() also works on tables with true table alias'); - } - - public function testUpdateOneByOne() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - BookstoreDataPopulator::depopulate($con); - BookstoreDataPopulator::populate($con); - - // save all books to make sure related objects are also saved - BookstoreDataPopulator keeps some unsaved - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->find(); - foreach ($books as $book) { - $book->save(); - } - - $count = $con->getQueryCount(); - $c = new ModelCriteria('bookstore', 'Book'); - $nbBooks = $c->update(array('Title' => 'foo'), $con, true); - $this->assertEquals(4, $nbBooks, 'update() returns the number of updated rows'); - $this->assertEquals($count + 1 + 4, $con->getQueryCount(), 'update() updates the objects one by one when called with true as last parameter'); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'foo'); - $nbBooks = $c->count(); - $this->assertEquals(4, $nbBooks, 'update() updates all records by default'); - - BookstoreDataPopulator::depopulate($con); - BookstoreDataPopulator::populate($con); - - // save all books to make sure related objects are also saved - BookstoreDataPopulator keeps some unsaved - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->find(); - foreach ($books as $book) { - $book->save(); - } - - $count = $con->getQueryCount(); - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'Don Juan'); - $nbBooks = $c->update(array('ISBN' => '3456'), $con, true); - $this->assertEquals(1, $nbBooks, 'update() updates only the records matching the criteria'); - $this->assertEquals($count + 1 + 1, $con->getQueryCount(), 'update() updates the objects one by one when called with true as last parameter'); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->where('b.Title = ?', 'Don Juan'); - $book = $c->findOne(); - $this->assertEquals('3456', $book->getISBN(), 'update() updates only the records matching the criteria'); - } - - public static function conditionsForTestGetRelationName() - { - return array( - array('Author', 'Author'), - array('Book.Author', 'Author'), - array('Author.Book', 'Book'), - array('Book.Author a', 'a'), - ); - } - - /** - * @dataProvider conditionsForTestGetRelationName - */ - public function testGetRelationName($relation, $relationName) - { - $this->assertEquals($relationName, ModelCriteria::getrelationName($relation)); - } - - public function testMagicJoin() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->leftJoin('b.Author a'); - $c->where('a.FirstName = ?', 'Leo'); - $books = $c->findOne($con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` LEFT JOIN author a ON (book.AUTHOR_ID=a.ID) WHERE a.FIRST_NAME = 'Leo' LIMIT 1"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'leftJoin($x) is turned into join($x, Criteria::LEFT_JOIN)'); - - $books = BookQuery::create() - ->leftJoinAuthor('a') - ->where('a.FirstName = ?', 'Leo') - ->findOne($con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` LEFT JOIN author a ON (book.AUTHOR_ID=a.ID) WHERE a.FIRST_NAME = 'Leo' LIMIT 1"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'leftJoinX() is turned into join($x, Criteria::LEFT_JOIN)'); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->innerJoin('b.Author a'); - $c->where('a.FirstName = ?', 'Leo'); - $books = $c->findOne($con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` INNER JOIN author a ON (book.AUTHOR_ID=a.ID) WHERE a.FIRST_NAME = 'Leo' LIMIT 1"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'innerJoin($x) is turned into join($x, Criteria::INNER_JOIN)'); - - $books = BookQuery::create() - ->innerJoinAuthor('a') - ->where('a.FirstName = ?', 'Leo') - ->findOne($con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` INNER JOIN author a ON (book.AUTHOR_ID=a.ID) WHERE a.FIRST_NAME = 'Leo' LIMIT 1"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'innerJoinX() is turned into join($x, Criteria::INNER_JOIN)'); - - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->rightJoin('b.Author a'); - $c->where('a.FirstName = ?', 'Leo'); - $books = $c->findOne($con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` RIGHT JOIN author a ON (book.AUTHOR_ID=a.ID) WHERE a.FIRST_NAME = 'Leo' LIMIT 1"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'rightJoin($x) is turned into join($x, Criteria::RIGHT_JOIN)'); - - $books = BookQuery::create() - ->rightJoinAuthor('a') - ->where('a.FirstName = ?', 'Leo') - ->findOne($con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` RIGHT JOIN author a ON (book.AUTHOR_ID=a.ID) WHERE a.FIRST_NAME = 'Leo' LIMIT 1"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'rightJoinX() is turned into join($x, Criteria::RIGHT_JOIN)'); - - $books = BookQuery::create() - ->leftJoinAuthor() - ->where('Author.FirstName = ?', 'Leo') - ->findOne($con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` LEFT JOIN author ON (book.AUTHOR_ID=author.ID) WHERE author.FIRST_NAME = 'Leo' LIMIT 1"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'leftJoinX() is turned into join($x, Criteria::LEFT_JOIN)'); - } - - public function testMagicJoinWith() - { - $c = new TestableModelCriteria('bookstore', 'Book'); - $c->leftJoinWith('Book.Author a'); - $expectedColumns = array( - BookPeer::ID, - BookPeer::TITLE, - BookPeer::ISBN, - BookPeer::PRICE, - BookPeer::PUBLISHER_ID, - BookPeer::AUTHOR_ID, - 'a.ID', - 'a.FIRST_NAME', - 'a.LAST_NAME', - 'a.EMAIL', - 'a.AGE' - ); - $this->assertEquals($expectedColumns, $c->getSelectColumns(), 'leftJoinWith() adds the join with the alias'); - $joins = $c->getJoins(); - $join = $joins['a']; - $this->assertEquals(Criteria::LEFT_JOIN, $join->getJoinType(), 'leftJoinWith() adds a LEFT JOIN'); - } - - public function testMagicJoinWithRelation() - { - $c = new TestableModelCriteria('bookstore', 'Book'); - $c->joinWithAuthor(); - $expectedColumns = array( - BookPeer::ID, - BookPeer::TITLE, - BookPeer::ISBN, - BookPeer::PRICE, - BookPeer::PUBLISHER_ID, - BookPeer::AUTHOR_ID, - AuthorPeer::ID, - AuthorPeer::FIRST_NAME, - AuthorPeer::LAST_NAME, - AuthorPeer::EMAIL, - AuthorPeer::AGE - ); - $this->assertEquals($expectedColumns, $c->getSelectColumns(), 'joinWithXXX() adds the join with the XXX relation'); - $joins = $c->getJoins(); - $join = $joins['Author']; - $this->assertEquals(Criteria::INNER_JOIN, $join->getJoinType(), 'joinWithXXX() adds an INNER JOIN'); - } - - public function testMagicJoinWithTypeAndRelation() - { - $c = new TestableModelCriteria('bookstore', 'Book'); - $c->leftJoinWithAuthor(); - $expectedColumns = array( - BookPeer::ID, - BookPeer::TITLE, - BookPeer::ISBN, - BookPeer::PRICE, - BookPeer::PUBLISHER_ID, - BookPeer::AUTHOR_ID, - AuthorPeer::ID, - AuthorPeer::FIRST_NAME, - AuthorPeer::LAST_NAME, - AuthorPeer::EMAIL, - AuthorPeer::AGE - ); - $this->assertEquals($expectedColumns, $c->getSelectColumns(), 'leftJoinWithXXX() adds the join with the XXX relation'); - $joins = $c->getJoins(); - $join = $joins['Author']; - $this->assertEquals(Criteria::LEFT_JOIN, $join->getJoinType(), 'leftJoinWithXXX() adds an INNER JOIN'); - } - - public function testMagicFind() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->findByTitle('Don Juan'); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` WHERE book.TITLE='Don Juan'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'findByXXX($value) is turned into findBy(XXX, $value)'); - - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->findByTitleAndISBN('Don Juan', 1234); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` WHERE book.TITLE='Don Juan' AND book.ISBN=1234"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'findByXXXAndYYY($value) is turned into findBy(array(XXX,YYY), $value)'); - - $c = new ModelCriteria('bookstore', 'Book'); - $book = $c->findOneByTitle('Don Juan'); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` WHERE book.TITLE='Don Juan' LIMIT 1"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'findOneByXXX($value) is turned into findOneBy(XXX, $value)'); - - $c = new ModelCriteria('bookstore', 'Book'); - $book = $c->findOneByTitleAndISBN('Don Juan', 1234); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` WHERE book.TITLE='Don Juan' AND book.ISBN=1234 LIMIT 1"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'findOneByXXX($value) is turned into findOneBy(XXX, $value)'); - } - - public function testMagicFilterBy() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->filterByTitle('Don Juan')->find($con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` WHERE book.TITLE='Don Juan'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'filterByXXX($value) is turned into filterBy(XXX, $value)'); - } - - public function testMagicOrderBy() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->orderByTitle()->find($con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` ORDER BY book.TITLE ASC"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'orderByXXX() is turned into orderBy(XXX)'); - - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->orderByTitle(Criteria::DESC)->find($con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` ORDER BY book.TITLE DESC"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'orderByXXX($direction) is turned into orderBy(XXX, $direction)'); - } - - public function testMagicGroupBy() - { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - - $c = new ModelCriteria('bookstore', 'Book'); - $books = $c->groupByTitle()->find($con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` GROUP BY book.TITLE"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'groupByXXX() is turned into groupBy(XXX)'); - } - - public function testUseQuery() - { - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->thisIsMe = true; - $c->where('b.Title = ?', 'foo'); - $c->setOffset(10); - $c->leftJoin('b.Author'); - - $c2 = $c->useQuery('Author'); - $this->assertTrue($c2 instanceof AuthorQuery, 'useQuery() returns a secondary Criteria'); - $this->assertEquals($c, $c2->getPrimaryCriteria(), 'useQuery() sets the primary Criteria os the secondary Criteria'); - $c2->where('Author.FirstName = ?', 'john'); - $c2->limit(5); - - $c = $c2->endUse(); - $this->assertTrue($c->thisIsMe, 'endUse() returns the Primary Criteria'); - $this->assertEquals('Book', $c->getModelName(), 'endUse() returns the Primary Criteria'); - - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c->find($con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` LEFT JOIN author ON (book.AUTHOR_ID=author.ID) WHERE book.TITLE = 'foo' AND author.FIRST_NAME = 'john' LIMIT 10, 5"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'useQuery() and endUse() allow to merge a secondary criteria'); - } - - public function testUseQueryAlias() - { - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->thisIsMe = true; - $c->where('b.Title = ?', 'foo'); - $c->setOffset(10); - $c->leftJoin('b.Author a'); - - $c2 = $c->useQuery('a'); - $this->assertTrue($c2 instanceof AuthorQuery, 'useQuery() returns a secondary Criteria'); - $this->assertEquals($c, $c2->getPrimaryCriteria(), 'useQuery() sets the primary Criteria os the secondary Criteria'); - $this->assertEquals(array('a' => 'author'), $c2->getAliases(), 'useQuery() sets the secondary Criteria alias correctly'); - $c2->where('a.FirstName = ?', 'john'); - $c2->limit(5); - - $c = $c2->endUse(); - $this->assertTrue($c->thisIsMe, 'endUse() returns the Primary Criteria'); - $this->assertEquals('Book', $c->getModelName(), 'endUse() returns the Primary Criteria'); - - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c->find($con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` LEFT JOIN author a ON (book.AUTHOR_ID=a.ID) WHERE book.TITLE = 'foo' AND a.FIRST_NAME = 'john' LIMIT 10, 5"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'useQuery() and endUse() allow to merge a secondary criteria'); - } - - public function testUseQueryCustomClass() - { - $c = new ModelCriteria('bookstore', 'Book', 'b'); - $c->thisIsMe = true; - $c->where('b.Title = ?', 'foo'); - $c->setLimit(10); - $c->leftJoin('b.Author a'); - - $c2 = $c->useQuery('a', 'ModelCriteriaForUseQuery'); - $this->assertTrue($c2 instanceof ModelCriteriaForUseQuery, 'useQuery() returns a secondary Criteria with the custom class'); - $c2->withNoName(); - $c = $c2->endUse(); - - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c->find($con); - $expectedSQL = "SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` LEFT JOIN author a ON (book.AUTHOR_ID=a.ID) WHERE book.TITLE = 'foo' AND a.FIRST_NAME IS NOT NULL AND a.LAST_NAME IS NOT NULL LIMIT 10"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'useQuery() and endUse() allow to merge a custom secondary criteria'); - } - - public function testUseQueryJoinWithFind() - { - $c = new ModelCriteria('bookstore', 'Review'); - $c->joinWith('Book'); - - $c2 = $c->useQuery('Book'); - - $joins = $c->getJoins(); - $this->assertEquals($c->getPreviousJoin(), null, 'The default value for previousJoin remains null'); - $this->assertEquals($c2->getPreviousJoin(), $joins['Book'], 'useQuery() sets the previousJoin'); - - // join Book with Author, which is possible since previousJoin is set, which makes resolving of relations possible during hydration - $c2->joinWith('Author'); - - $c = $c2->endUse(); - - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c->find($con); - $expectedSQL = "SELECT review.ID, review.REVIEWED_BY, review.REVIEW_DATE, review.RECOMMENDED, review.STATUS, review.BOOK_ID, book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID, author.ID, author.FIRST_NAME, author.LAST_NAME, author.EMAIL, author.AGE FROM `review` INNER JOIN book ON (review.BOOK_ID=book.ID) INNER JOIN author ON (book.AUTHOR_ID=author.ID)"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'useQuery() and joinWith() can be used together and form a correct query'); - } - - public function testUseQueryCustomRelationPhpName() - { - $c = new ModelCriteria('bookstore', 'BookstoreContest'); - $c->leftJoin('BookstoreContest.Work'); - $c2 = $c->useQuery('Work'); - $this->assertTrue($c2 instanceof BookQuery, 'useQuery() returns a secondary Criteria'); - $this->assertEquals($c, $c2->getPrimaryCriteria(), 'useQuery() sets the primary Criteria os the secondary Criteria'); - //$this->assertEquals(array('a' => 'author'), $c2->getAliases(), 'useQuery() sets the secondary Criteria alias correctly'); - $c2->where('Work.Title = ?', 'War And Peace'); - - $c = $c2->endUse(); - $this->assertEquals('BookstoreContest', $c->getModelName(), 'endUse() returns the Primary Criteria'); - - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c->find($con); - $expectedSQL = "SELECT bookstore_contest.BOOKSTORE_ID, bookstore_contest.CONTEST_ID, bookstore_contest.PRIZE_BOOK_ID FROM `bookstore_contest` LEFT JOIN book ON (bookstore_contest.PRIZE_BOOK_ID=book.ID) WHERE book.TITLE = 'War And Peace'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'useQuery() and endUse() allow to merge a secondary criteria'); - } - - public function testUseQueryCustomRelationPhpNameAndAlias() - { - $c = new ModelCriteria('bookstore', 'BookstoreContest'); - $c->leftJoin('BookstoreContest.Work w'); - $c2 = $c->useQuery('w'); - $this->assertTrue($c2 instanceof BookQuery, 'useQuery() returns a secondary Criteria'); - $this->assertEquals($c, $c2->getPrimaryCriteria(), 'useQuery() sets the primary Criteria os the secondary Criteria'); - //$this->assertEquals(array('a' => 'author'), $c2->getAliases(), 'useQuery() sets the secondary Criteria alias correctly'); - $c2->where('w.Title = ?', 'War And Peace'); - - $c = $c2->endUse(); - $this->assertEquals('BookstoreContest', $c->getModelName(), 'endUse() returns the Primary Criteria'); - - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - $c->find($con); - $expectedSQL = "SELECT bookstore_contest.BOOKSTORE_ID, bookstore_contest.CONTEST_ID, bookstore_contest.PRIZE_BOOK_ID FROM `bookstore_contest` LEFT JOIN book w ON (bookstore_contest.PRIZE_BOOK_ID=w.ID) WHERE w.TITLE = 'War And Peace'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'useQuery() and endUse() allow to merge a secondary criteria'); - } - - public function testMergeWithJoins() - { - $c1 = new ModelCriteria('bookstore', 'Book', 'b'); - $c1->leftJoin('b.Author a'); - $c2 = new ModelCriteria('bookstore', 'Author'); - $c1->mergeWith($c2); - $joins = $c1->getJoins(); - $this->assertEquals(1, count($joins), 'mergeWith() does not remove an existing join'); - $this->assertEquals('LEFT JOIN : book.AUTHOR_ID=a.ID(ignoreCase not considered)', $joins['a']->toString(), 'mergeWith() does not remove an existing join'); - $c1 = new ModelCriteria('bookstore', 'Book', 'b'); - $c2 = new ModelCriteria('bookstore', 'Book', 'b'); - $c2->leftJoin('b.Author a'); - $c1->mergeWith($c2); - $joins = $c1->getJoins(); - $this->assertEquals(1, count($joins), 'mergeWith() merge joins to an empty join'); - $this->assertEquals('LEFT JOIN : book.AUTHOR_ID=a.ID(ignoreCase not considered)', $joins['a']->toString(), 'mergeWith() merge joins to an empty join'); - - $c1 = new ModelCriteria('bookstore', 'Book', 'b'); - $c1->leftJoin('b.Author a'); - $c2 = new ModelCriteria('bookstore', 'Book', 'b'); - $c2->innerJoin('b.Publisher p'); - $c1->mergeWith($c2); - $joins = $c1->getJoins(); - $this->assertEquals(2, count($joins), 'mergeWith() merge joins to an existing join'); - $this->assertEquals('LEFT JOIN : book.AUTHOR_ID=a.ID(ignoreCase not considered)', $joins['a']->toString(), 'mergeWith() merge joins to an empty join'); - $this->assertEquals('INNER JOIN : book.PUBLISHER_ID=p.ID(ignoreCase not considered)', $joins['p']->toString(), 'mergeWith() merge joins to an empty join'); - } - - public function testMergeWithWiths() - { - $c1 = new ModelCriteria('bookstore', 'Book', 'b'); - $c1->leftJoinWith('b.Author a'); - $c2 = new ModelCriteria('bookstore', 'Author'); - $c1->mergeWith($c2); - $with = $c1->getWith(); - $this->assertEquals(1, count($with), 'mergeWith() does not remove an existing join'); - $this->assertEquals('LEFT JOIN : book.AUTHOR_ID=a.ID(ignoreCase not considered) tableMap: AuthorTableMap relationMap: Author previousJoin: null relationAlias: a', $with['a']->__toString(), 'mergeWith() does not remove an existing join'); - - $c1 = new ModelCriteria('bookstore', 'Book', 'b'); - $c2 = new ModelCriteria('bookstore', 'Book', 'b'); - $c2->leftJoinWith('b.Author a'); - $c1->mergeWith($c2); - $with = $c1->getWith(); - $this->assertEquals(1, count($with), 'mergeWith() merge joins to an empty join'); - $this->assertEquals('LEFT JOIN : book.AUTHOR_ID=a.ID(ignoreCase not considered) tableMap: AuthorTableMap relationMap: Author previousJoin: null relationAlias: a', $with['a']->__toString(), 'mergeWith() merge joins to an empty join'); - - $c1 = new ModelCriteria('bookstore', 'Book', 'b'); - $c1->leftJoinWith('b.Author a'); - $c2 = new ModelCriteria('bookstore', 'Book', 'b'); - $c2->innerJoinWith('b.Publisher p'); - $c1->mergeWith($c2); - $with = $c1->getWith(); - $this->assertEquals(2, count($with), 'mergeWith() merge joins to an existing join'); - $this->assertEquals('LEFT JOIN : book.AUTHOR_ID=a.ID(ignoreCase not considered) tableMap: AuthorTableMap relationMap: Author previousJoin: null relationAlias: a', $with['a']->__toString(), 'mergeWith() merge joins to an empty join'); - $this->assertEquals('INNER JOIN : book.PUBLISHER_ID=p.ID(ignoreCase not considered) tableMap: PublisherTableMap relationMap: Publisher previousJoin: null relationAlias: p', $with['p']->__toString(), 'mergeWith() merge joins to an empty join'); - - } - - public function testGetAliasedColName() - { - $c = new ModelCriteria('bookstore', 'Book'); - $this->assertEquals(BookPeer::TITLE, $c->getAliasedColName(BookPeer::TITLE), 'getAliasedColName() returns the input when the table has no alias'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->setModelAlias('foo'); - $this->assertEquals(BookPeer::TITLE, $c->getAliasedColName(BookPeer::TITLE), 'getAliasedColName() returns the input when the table has a query alias'); - - $c = new ModelCriteria('bookstore', 'Book'); - $c->setModelAlias('foo', true); - $this->assertEquals('foo.TITLE', $c->getAliasedColName(BookPeer::TITLE), 'getAliasedColName() returns the column name with table alias when the table has a true alias'); - } - - public function testAddUsingAliasNoAlias() - { - $c1 = new ModelCriteria('bookstore', 'Book'); - $c1->addUsingAlias(BookPeer::TITLE, 'foo'); - $c2 = new ModelCriteria('bookstore', 'Book'); - $c2->add(BookPeer::TITLE, 'foo'); - $this->assertEquals($c2, $c1, 'addUsingalias() translates to add() when the table has no alias'); - } - - public function testAddUsingAliasQueryAlias() - { - $c1 = new ModelCriteria('bookstore', 'Book', 'b'); - $c1->addUsingAlias(BookPeer::TITLE, 'foo'); - $c2 = new ModelCriteria('bookstore', 'Book', 'b'); - $c2->add(BookPeer::TITLE, 'foo'); - $this->assertEquals($c2, $c1, 'addUsingalias() translates the colname using the table alias before calling add() when the table has a true alias'); - } - - public function testAddUsingAliasTrueAlias() - { - $c1 = new ModelCriteria('bookstore', 'Book'); - $c1->setModelAlias('b', true); - $c1->addUsingAlias(BookPeer::TITLE, 'foo'); - $c2 = new ModelCriteria('bookstore', 'Book'); - $c2->setModelAlias('b', true); - $c2->add('b.TITLE', 'foo'); - $this->assertEquals($c2, $c1, 'addUsingalias() translates to add() when the table has a true alias'); - } - - public function testAddUsingAliasTwice() - { - $c1 = new ModelCriteria('bookstore', 'Book'); - $c1->addUsingAlias(BookPeer::TITLE, 'foo'); - $c1->addUsingAlias(BookPeer::TITLE, 'bar'); - $c2 = new ModelCriteria('bookstore', 'Book'); - $c2->add(BookPeer::TITLE, 'foo'); - $c2->addAnd(BookPeer::TITLE, 'bar'); - $this->assertEquals($c2, $c1, 'addUsingalias() translates to addAnd() when the table already has a condition on the column'); - } - - public function testAddUsingAliasTrueAliasTwice() - { - $c1 = new ModelCriteria('bookstore', 'Book'); - $c1->setModelAlias('b', true); - $c1->addUsingAlias(BookPeer::TITLE, 'foo'); - $c1->addUsingAlias(BookPeer::TITLE, 'bar'); - $c2 = new ModelCriteria('bookstore', 'Book'); - $c2->setModelAlias('b', true); - $c2->add('b.TITLE', 'foo'); - $c2->addAnd('b.TITLE', 'bar'); - $this->assertEquals($c2, $c1, 'addUsingalias() translates to addAnd() when the table already has a condition on the column'); - } - - public function testClone() - { - $bookQuery1 = BookQuery::create() - ->filterByPrice(1); - $bookQuery2 = clone $bookQuery1; - $bookQuery2 - ->filterByPrice(2); - $params = array(); - $sql = BasePeer::createSelectSql($bookQuery1, $params); - $this->assertEquals('SELECT FROM `book` WHERE book.PRICE=:p1', $sql, 'conditions applied on a cloned query don\'t get applied on the original query'); - } -} - -class TestableModelCriteria extends ModelCriteria -{ - public $joins = array(); - - public function replaceNames(&$clause) - { - return parent::replaceNames($clause); - } - -} - -class ModelCriteriaForUseQuery extends ModelCriteria -{ - public function __construct($dbName = 'bookstore', $modelName = 'Author', $modelAlias = null) - { - parent::__construct($dbName, $modelName, $modelAlias); - } - - public function withNoName() - { - return $this - ->filterBy('FirstName', null, Criteria::ISNOTNULL) - ->where($this->getModelAliasOrName() . '.LastName IS NOT NULL'); - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/query/ModelJoinTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/query/ModelJoinTest.php deleted file mode 100644 index afc89ff6d8..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/query/ModelJoinTest.php +++ /dev/null @@ -1,85 +0,0 @@ -assertNull($join->getTableMap(), 'getTableMap() returns null as long as no table map is set'); - - $tmap = new TableMap(); - $tmap->foo = 'bar'; - - $join->setTableMap($tmap); - $this->assertEquals($tmap, $join->getTableMap(), 'getTableMap() returns the TableMap previously set by setTableMap()'); - } - - public function testSetRelationMap() - { - $join = new ModelJoin(); - $this->assertNull($join->getRelationMap(), 'getRelationMap() returns null as long as no relation map is set'); - $bookTable = BookPeer::getTableMap(); - $relationMap = $bookTable->getRelation('Author'); - $join->setRelationMap($relationMap); - $this->assertEquals($relationMap, $join->getRelationMap(), 'getRelationMap() returns the RelationMap previously set by setRelationMap()'); - } - - public function testSetRelationMapDefinesJoinColumns() - { - $bookTable = BookPeer::getTableMap(); - $join = new ModelJoin(); - $join->setTableMap($bookTable); - $join->setRelationMap($bookTable->getRelation('Author')); - $this->assertEquals(array(BookPeer::AUTHOR_ID), $join->getLeftColumns(), 'setRelationMap() automatically sets the left columns'); - $this->assertEquals(array(AuthorPeer::ID), $join->getRightColumns(), 'setRelationMap() automatically sets the right columns'); - } - - public function testSetRelationMapLeftAlias() - { - $bookTable = BookPeer::getTableMap(); - $join = new ModelJoin(); - $join->setTableMap($bookTable); - $join->setRelationMap($bookTable->getRelation('Author'), 'b'); - $this->assertEquals(array('b.AUTHOR_ID'), $join->getLeftColumns(), 'setRelationMap() automatically sets the left columns using the left table alias'); - $this->assertEquals(array(AuthorPeer::ID), $join->getRightColumns(), 'setRelationMap() automatically sets the right columns'); - } - - public function testSetRelationMapRightAlias() - { - $bookTable = BookPeer::getTableMap(); - $join = new ModelJoin(); - $join->setTableMap($bookTable); - $join->setRelationMap($bookTable->getRelation('Author'), null, 'a'); - $this->assertEquals(array(BookPeer::AUTHOR_ID), $join->getLeftColumns(), 'setRelationMap() automatically sets the left columns'); - $this->assertEquals(array('a.ID'), $join->getRightColumns(), 'setRelationMap() automatically sets the right columns using the right table alias'); - } - - public function testSetRelationMapComposite() - { - $table = ReaderFavoritePeer::getTableMap(); - $join = new ModelJoin(); - $join->setTableMap($table); - $join->setRelationMap($table->getRelation('BookOpinion')); - $this->assertEquals(array(ReaderFavoritePeer::BOOK_ID, ReaderFavoritePeer::READER_ID), $join->getLeftColumns(), 'setRelationMap() automatically sets the left columns for composite relationships'); - $this->assertEquals(array(BookOpinionPeer::BOOK_ID, BookOpinionPeer::READER_ID), $join->getRightColumns(), 'setRelationMap() automatically sets the right columns for composite relationships'); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/query/ModelWithTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/query/ModelWithTest.php deleted file mode 100644 index ffe5e8fe67..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/query/ModelWithTest.php +++ /dev/null @@ -1,183 +0,0 @@ -joinAuthor(); - $joins = $q->getJoins(); - $join = $joins['Author']; - $with = new ModelWith($join); - $this->assertEquals($with->getModelName(), 'Author', 'A ModelWith computes the model name from the join'); - $this->assertEquals($with->getModelPeerName(), 'AuthorPeer', 'A ModelWith computes the model peer name from the join'); - } - - public function testModelNameOneToMany() - { - $q = AuthorQuery::create() - ->joinBook(); - $joins = $q->getJoins(); - $join = $joins['Book']; - $with = new ModelWith($join); - $this->assertEquals($with->getModelName(), 'Book', 'A ModelWith computes the model peer name from the join'); - $this->assertEquals($with->getModelPeerName(), 'BookPeer', 'A ModelWith computes the model peer name from the join'); - } - - public function testModelNameAlias() - { - $q = BookQuery::create() - ->joinAuthor('a'); - $joins = $q->getJoins(); - $join = $joins['a']; - $with = new ModelWith($join); - $this->assertEquals($with->getModelName(), 'Author', 'A ModelWith computes the model peer name from the join'); - $this->assertEquals($with->getModelPeerName(), 'AuthorPeer', 'A ModelWith computes the model peer name from the join'); - } - - public function testRelationManyToOne() - { - $q = BookQuery::create() - ->joinAuthor(); - $joins = $q->getJoins(); - $join = $joins['Author']; - $with = new ModelWith($join); - $this->assertEquals($with->getRelationMethod(), 'setAuthor', 'A ModelWith computes the relation method from the join'); - $this->assertEquals($with->getRelationName(), 'Author', 'A ModelWith computes the relation name from the join'); - $this->assertFalse($with->isAdd(), 'A ModelWith computes the relation cardinality from the join'); - } - - public function testRelationOneToMany() - { - $q = AuthorQuery::create() - ->joinBook(); - $joins = $q->getJoins(); - $join = $joins['Book']; - $with = new ModelWith($join); - $this->assertEquals($with->getRelationMethod(), 'addBook', 'A ModelWith computes the relation method from the join'); - $this->assertEquals($with->getRelationName(), 'Books', 'A ModelWith computes the relation name from the join'); - $this->assertTrue($with->isAdd(), 'A ModelWith computes the relation cardinality from the join'); - } - - public function testRelationOneToOne() - { - $q = BookstoreEmployeeQuery::create() - ->joinBookstoreEmployeeAccount(); - $joins = $q->getJoins(); - $join = $joins['BookstoreEmployeeAccount']; - $with = new ModelWith($join); - $this->assertEquals($with->getRelationMethod(), 'setBookstoreEmployeeAccount', 'A ModelWith computes the relation method from the join'); - $this->assertEquals($with->getRelationName(), 'BookstoreEmployeeAccount', 'A ModelWith computes the relation name from the join'); - $this->assertFalse($with->isAdd(), 'A ModelWith computes the relation cardinality from the join'); - } - - public function testIsPrimary() - { - $q = AuthorQuery::create() - ->joinBook(); - $joins = $q->getJoins(); - $join = $joins['Book']; - $with = new ModelWith($join); - $this->assertTrue($with->isPrimary(), 'A ModelWith initialized from a primary join is primary'); - - $q = BookQuery::create() - ->joinAuthor() - ->joinReview(); - $joins = $q->getJoins(); - $join = $joins['Review']; - $with = new ModelWith($join); - $this->assertTrue($with->isPrimary(), 'A ModelWith initialized from a primary join is primary'); - - $q = AuthorQuery::create() - ->join('Author.Book') - ->join('Book.Publisher'); - $joins = $q->getJoins(); - $join = $joins['Publisher']; - $with = new ModelWith($join); - $this->assertFalse($with->isPrimary(), 'A ModelWith initialized from a non-primary join is not primary'); - } - - public function testGetRelatedClass() - { - $q = AuthorQuery::create() - ->joinBook(); - $joins = $q->getJoins(); - $join = $joins['Book']; - $with = new ModelWith($join); - $this->assertNull($with->getRelatedClass(), 'A ModelWith initialized from a primary join has a null related class'); - - $q = AuthorQuery::create('a') - ->joinBook(); - $joins = $q->getJoins(); - $join = $joins['Book']; - $with = new ModelWith($join); - $this->assertNull($with->getRelatedClass(), 'A ModelWith initialized from a primary join with alias has a null related class'); - - $q = AuthorQuery::create() - ->joinBook('b'); - $joins = $q->getJoins(); - $join = $joins['b']; - $with = new ModelWith($join); - $this->assertNull($with->getRelatedClass(), 'A ModelWith initialized from a primary join with alias has a null related class'); - - $q = AuthorQuery::create() - ->join('Author.Book') - ->join('Book.Publisher'); - $joins = $q->getJoins(); - $join = $joins['Publisher']; - $with = new ModelWith($join); - $this->assertEquals($with->getRelatedClass(), 'Book', 'A ModelWith uses the previous join relation name as related class'); - - $q = ReviewQuery::create() - ->join('Review.Book') - ->join('Book.Author') - ->join('Book.Publisher'); - $joins = $q->getJoins(); - $join = $joins['Publisher']; - $with = new ModelWith($join); - $this->assertEquals($with->getRelatedClass(), 'Book', 'A ModelWith uses the previous join relation name as related class'); - - $q = ReviewQuery::create() - ->join('Review.Book') - ->join('Book.BookOpinion') - ->join('BookOpinion.BookReader'); - $joins = $q->getJoins(); - $join = $joins['BookOpinion']; - $with = new ModelWith($join); - $this->assertEquals($with->getRelatedClass(), 'Book', 'A ModelWith uses the previous join relation name as related class'); - $join = $joins['BookReader']; - $with = new ModelWith($join); - $this->assertEquals($with->getRelatedClass(), 'BookOpinion', 'A ModelWith uses the previous join relation name as related class'); - - $q = BookReaderQuery::create() - ->join('BookReader.BookOpinion') - ->join('BookOpinion.Book') - ->join('Book.Author'); - $joins = $q->getJoins(); - $join = $joins['Book']; - $with = new ModelWith($join); - $this->assertEquals($with->getRelatedClass(), 'BookOpinion', 'A ModelWith uses the previous join relation name as related class'); - $join = $joins['Author']; - $with = new ModelWith($join); - $this->assertEquals($with->getRelatedClass(), 'Book', 'A ModelWith uses the previous join relation name as related class'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/query/PropelQueryTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/query/PropelQueryTest.php deleted file mode 100644 index 5ef619da19..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/query/PropelQueryTest.php +++ /dev/null @@ -1,63 +0,0 @@ -assertEquals($expected, $q, 'from() returns a Model query instance based on the model name'); - - $q = PropelQuery::from('Book b'); - $expected = new BookQuery(); - $expected->setModelAlias('b'); - $this->assertEquals($expected, $q, 'from() sets the model alias if found after the blank'); - - $q = PropelQuery::from('myBook'); - $expected = new myBookQuery(); - $this->assertEquals($expected, $q, 'from() can find custom query classes'); - - try { - $q = PropelQuery::from('Foo'); - $this->fail('PropelQuery::from() throws an exception when called on a non-existing query class'); - } catch (PropelException $e) { - $this->assertTrue(true, 'PropelQuery::from() throws an exception when called on a non-existing query class'); - } - } - - public function testQuery() - { - BookstoreDataPopulator::depopulate(); - BookstoreDataPopulator::populate(); - - $book = PropelQuery::from('Book b') - ->where('b.Title like ?', 'Don%') - ->orderBy('b.ISBN', 'desc') - ->findOne(); - $this->assertTrue($book instanceof Book); - $this->assertEquals('Don Juan', $book->getTitle()); - - } -} - -class myBookQuery extends BookQuery -{ -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/util/BasePeerExceptionsTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/util/BasePeerExceptionsTest.php deleted file mode 100644 index e3d56f2a6d..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/util/BasePeerExceptionsTest.php +++ /dev/null @@ -1,94 +0,0 @@ -add(BookPeer::ID, 12, ' BAD SQL'); - BookPeer::addSelectColumns($c); - BasePeer::doSelect($c); - } catch (PropelException $e) { - $this->assertContains('[SELECT book.ID, book.TITLE, book.ISBN, book.PRICE, book.PUBLISHER_ID, book.AUTHOR_ID FROM `book` WHERE book.ID BAD SQL:p1]', $e->getMessage(), 'SQL query is written in the exception message'); - } - } - - public function testDoCount() - { - try { - $c = new Criteria(); - $c->add(BookPeer::ID, 12, ' BAD SQL'); - BookPeer::addSelectColumns($c); - BasePeer::doCount($c); - } catch (PropelException $e) { - $this->assertContains('[SELECT COUNT(*) FROM `book` WHERE book.ID BAD SQL:p1]', $e->getMessage(), 'SQL query is written in the exception message'); - } - } - - public function testDoDelete() - { - try { - $c = new Criteria(); - $c->setPrimaryTableName(BookPeer::TABLE_NAME); - $c->add(BookPeer::ID, 12, ' BAD SQL'); - BasePeer::doDelete($c, Propel::getConnection()); - } catch (PropelException $e) { - $this->assertContains('[DELETE FROM `book` WHERE book.ID BAD SQL:p1]', $e->getMessage(), 'SQL query is written in the exception message'); - } - } - - public function testDoDeleteAll() - { - try { - BasePeer::doDeleteAll('BAD TABLE', Propel::getConnection()); - } catch (PropelException $e) { - $this->assertContains('[DELETE FROM `BAD` `TABLE`]', $e->getMessage(), 'SQL query is written in the exception message'); - } - } - - public function testDoUpdate() - { - try { - $c1 = new Criteria(); - $c1->setPrimaryTableName(BookPeer::TABLE_NAME); - $c1->add(BookPeer::ID, 12, ' BAD SQL'); - $c2 = new Criteria(); - $c2->add(BookPeer::TITLE, 'Foo'); - BasePeer::doUpdate($c1, $c2, Propel::getConnection()); - } catch (PropelException $e) { - $this->assertContains('[UPDATE `book` SET `TITLE`=:p1 WHERE book.ID BAD SQL:p2]', $e->getMessage(), 'SQL query is written in the exception message'); - } - } - - public function testDoInsert() - { - try { - $c = new Criteria(); - $c->setPrimaryTableName(BookPeer::TABLE_NAME); - $c->add(BookPeer::AUTHOR_ID, 'lkhlkhj'); - BasePeer::doInsert($c, Propel::getConnection()); - } catch (PropelException $e) { - $this->assertContains('[INSERT INTO `book` (`AUTHOR_ID`) VALUES (:p1)]', $e->getMessage(), 'SQL query is written in the exception message'); - } - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/util/BasePeerTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/util/BasePeerTest.php deleted file mode 100644 index cb8772ee56..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/util/BasePeerTest.php +++ /dev/null @@ -1,413 +0,0 @@ - - * @package runtime.util - */ -class BasePeerTest extends BookstoreTestBase -{ - - /** - * @link http://propel.phpdb.org/trac/ticket/425 - */ - public function testMultipleFunctionInCriteria() - { - $db = Propel::getDB(BookPeer::DATABASE_NAME); - try { - $c = new Criteria(); - $c->setDistinct(); - if ($db instanceof DBPostgres) { - $c->addSelectColumn("substring(".BookPeer::TITLE." from position('Potter' in ".BookPeer::TITLE.")) AS col"); - } else { - $this->markTestSkipped(); - } - $stmt = BookPeer::doSelectStmt( $c ); - } catch (PropelException $x) { - $this->fail("Paring of nested functions failed: " . $x->getMessage()); - } - } - - public function testNeedsSelectAliases() - { - $c = new Criteria(); - $this->assertFalse(BasePeer::needsSelectAliases($c), 'Empty Criterias dont need aliases'); - - $c = new Criteria(); - $c->addSelectColumn(BookPeer::ID); - $c->addSelectColumn(BookPeer::TITLE); - $this->assertFalse(BasePeer::needsSelectAliases($c), 'Criterias with distinct column names dont need aliases'); - - $c = new Criteria(); - BookPeer::addSelectColumns($c); - $this->assertFalse(BasePeer::needsSelectAliases($c), 'Criterias with only the columns of a model dont need aliases'); - - $c = new Criteria(); - $c->addSelectColumn(BookPeer::ID); - $c->addSelectColumn(AuthorPeer::ID); - $this->assertTrue(BasePeer::needsSelectAliases($c), 'Criterias with common column names do need aliases'); - } - - public function testTurnSelectColumnsToAliases() - { - $c1 = new Criteria(); - $c1->addSelectColumn(BookPeer::ID); - BasePeer::turnSelectColumnsToAliases($c1); - - $c2 = new Criteria(); - $c2->addAsColumn('book_ID', BookPeer::ID); - $this->assertTrue($c1->equals($c2)); - } - - public function testTurnSelectColumnsToAliasesPreservesAliases() - { - $c1 = new Criteria(); - $c1->addSelectColumn(BookPeer::ID); - $c1->addAsColumn('foo', BookPeer::TITLE); - BasePeer::turnSelectColumnsToAliases($c1); - - $c2 = new Criteria(); - $c2->addAsColumn('book_ID', BookPeer::ID); - $c2->addAsColumn('foo', BookPeer::TITLE); - $this->assertTrue($c1->equals($c2)); - } - - public function testTurnSelectColumnsToAliasesExisting() - { - $c1 = new Criteria(); - $c1->addSelectColumn(BookPeer::ID); - $c1->addAsColumn('book_ID', BookPeer::ID); - BasePeer::turnSelectColumnsToAliases($c1); - - $c2 = new Criteria(); - $c2->addAsColumn('book_ID_1', BookPeer::ID); - $c2->addAsColumn('book_ID', BookPeer::ID); - $this->assertTrue($c1->equals($c2)); - } - - public function testTurnSelectColumnsToAliasesDuplicate() - { - $c1 = new Criteria(); - $c1->addSelectColumn(BookPeer::ID); - $c1->addSelectColumn(BookPeer::ID); - BasePeer::turnSelectColumnsToAliases($c1); - - $c2 = new Criteria(); - $c2->addAsColumn('book_ID', BookPeer::ID); - $c2->addAsColumn('book_ID_1', BookPeer::ID); - $this->assertTrue($c1->equals($c2)); - } - - public function testDoCountDuplicateColumnName() - { - $con = Propel::getConnection(); - $c = new Criteria(); - $c->addSelectColumn(BookPeer::ID); - $c->addJoin(BookPeer::AUTHOR_ID, AuthorPeer::ID); - $c->addSelectColumn(AuthorPeer::ID); - $c->setLimit(3); - try { - $count = BasePeer::doCount($c, $con); - } catch (Exception $e) { - $this->fail('doCount() cannot deal with a criteria selecting duplicate column names '); - } - } - - public function testCreateSelectSqlPart() - { - $c = new Criteria(); - $c->addSelectColumn(BookPeer::ID); - $c->addAsColumn('book_ID', BookPeer::ID); - $fromClause = array(); - $selectSql = BasePeer::createSelectSqlPart($c, $fromClause); - $this->assertEquals('SELECT book.ID, book.ID AS book_ID', $selectSql, 'createSelectSqlPart() returns a SQL SELECT clause with both select and as columns'); - $this->assertEquals(array('book'), $fromClause, 'createSelectSqlPart() adds the tables from the select columns to the from clause'); - } - - public function testCreateSelectSqlPartSelectModifier() - { - $c = new Criteria(); - $c->addSelectColumn(BookPeer::ID); - $c->addAsColumn('book_ID', BookPeer::ID); - $c->setDistinct(); - $fromClause = array(); - $selectSql = BasePeer::createSelectSqlPart($c, $fromClause); - $this->assertEquals('SELECT DISTINCT book.ID, book.ID AS book_ID', $selectSql, 'createSelectSqlPart() includes the select modifiers in the SELECT clause'); - $this->assertEquals(array('book'), $fromClause, 'createSelectSqlPart() adds the tables from the select columns to the from clause'); - } - - public function testCreateSelectSqlPartAliasAll() - { - $c = new Criteria(); - $c->addSelectColumn(BookPeer::ID); - $c->addAsColumn('book_ID', BookPeer::ID); - $fromClause = array(); - $selectSql = BasePeer::createSelectSqlPart($c, $fromClause, true); - $this->assertEquals('SELECT book.ID AS book_ID_1, book.ID AS book_ID', $selectSql, 'createSelectSqlPart() aliases all columns if passed true as last parameter'); - $this->assertEquals(array(), $fromClause, 'createSelectSqlPart() does not add the tables from an all-aliased list of select columns'); - } - - public function testBigIntIgnoreCaseOrderBy() - { - BookstorePeer::doDeleteAll(); - - // Some sample data - $b = new Bookstore(); - $b->setStoreName("SortTest1")->setPopulationServed(2000)->save(); - - $b = new Bookstore(); - $b->setStoreName("SortTest2")->setPopulationServed(201)->save(); - - $b = new Bookstore(); - $b->setStoreName("SortTest3")->setPopulationServed(302)->save(); - - $b = new Bookstore(); - $b->setStoreName("SortTest4")->setPopulationServed(10000000)->save(); - - $c = new Criteria(); - $c->setIgnoreCase(true); - $c->add(BookstorePeer::STORE_NAME, 'SortTest%', Criteria::LIKE); - $c->addAscendingOrderByColumn(BookstorePeer::POPULATION_SERVED); - - $rows = BookstorePeer::doSelect($c); - $this->assertEquals('SortTest2', $rows[0]->getStoreName()); - $this->assertEquals('SortTest3', $rows[1]->getStoreName()); - $this->assertEquals('SortTest1', $rows[2]->getStoreName()); - $this->assertEquals('SortTest4', $rows[3]->getStoreName()); - } - - /** - * - */ - public function testMixedJoinOrder() - { - $this->markTestSkipped('Famous cross join problem, to be solved one day'); - $c = new Criteria(BookPeer::DATABASE_NAME); - $c->addSelectColumn(BookPeer::ID); - $c->addSelectColumn(BookPeer::TITLE); - - $c->addJoin(BookPeer::PUBLISHER_ID, PublisherPeer::ID, Criteria::LEFT_JOIN); - $c->addJoin(BookPeer::AUTHOR_ID, AuthorPeer::ID); - - $params = array(); - $sql = BasePeer::createSelectSql($c, $params); - - $expectedSql = "SELECT book.ID, book.TITLE FROM book LEFT JOIN publisher ON (book.PUBLISHER_ID=publisher.ID), author WHERE book.AUTHOR_ID=author.ID"; - $this->assertEquals($expectedSql, $sql); - } - - public function testMssqlApplyLimitNoOffset() - { - $db = Propel::getDB(BookPeer::DATABASE_NAME); - if(! ($db instanceof DBMSSQL)) - { - $this->markTestSkipped(); - } - - $c = new Criteria(BookPeer::DATABASE_NAME); - $c->addSelectColumn(BookPeer::ID); - $c->addSelectColumn(BookPeer::TITLE); - $c->addSelectColumn(PublisherPeer::NAME); - $c->addAsColumn('PublisherName','(SELECT MAX(publisher.NAME) FROM publisher WHERE publisher.ID = book.PUBLISHER_ID)'); - - $c->addJoin(BookPeer::PUBLISHER_ID, PublisherPeer::ID, Criteria::LEFT_JOIN); - - $c->setOffset(0); - $c->setLimit(20); - - $params = array(); - $sql = BasePeer::createSelectSql($c, $params); - - $expectedSql = "SELECT TOP 20 book.ID, book.TITLE, publisher.NAME, (SELECT MAX(publisher.NAME) FROM publisher WHERE publisher.ID = book.PUBLISHER_ID) AS PublisherName FROM book LEFT JOIN publisher ON (book.PUBLISHER_ID=publisher.ID)"; - $this->assertEquals($expectedSql, $sql); - } - - public function testMssqlApplyLimitWithOffset() - { - $db = Propel::getDB(BookPeer::DATABASE_NAME); - if(! ($db instanceof DBMSSQL)) - { - $this->markTestSkipped(); - } - - $c = new Criteria(BookPeer::DATABASE_NAME); - $c->addSelectColumn(BookPeer::ID); - $c->addSelectColumn(BookPeer::TITLE); - $c->addSelectColumn(PublisherPeer::NAME); - $c->addAsColumn('PublisherName','(SELECT MAX(publisher.NAME) FROM publisher WHERE publisher.ID = book.PUBLISHER_ID)'); - $c->addJoin(BookPeer::PUBLISHER_ID, PublisherPeer::ID, Criteria::LEFT_JOIN); - $c->setOffset(20); - $c->setLimit(20); - - $params = array(); - - $expectedSql = "SELECT [book.ID], [book.TITLE], [publisher.NAME], [PublisherName] FROM (SELECT ROW_NUMBER() OVER(ORDER BY book.ID) AS RowNumber, book.ID AS [book.ID], book.TITLE AS [book.TITLE], publisher.NAME AS [publisher.NAME], (SELECT MAX(publisher.NAME) FROM publisher WHERE publisher.ID = book.PUBLISHER_ID) AS [PublisherName] FROM book LEFT JOIN publisher ON (book.PUBLISHER_ID=publisher.ID)) AS derivedb WHERE RowNumber BETWEEN 21 AND 40"; - $sql = BasePeer::createSelectSql($c, $params); - $this->assertEquals($expectedSql, $sql); - } - - public function testMssqlApplyLimitWithOffsetOrderByAggregate() - { - $db = Propel::getDB(BookPeer::DATABASE_NAME); - if(! ($db instanceof DBMSSQL)) - { - $this->markTestSkipped(); - } - - $c = new Criteria(BookPeer::DATABASE_NAME); - $c->addSelectColumn(BookPeer::ID); - $c->addSelectColumn(BookPeer::TITLE); - $c->addSelectColumn(PublisherPeer::NAME); - $c->addAsColumn('PublisherName','(SELECT MAX(publisher.NAME) FROM publisher WHERE publisher.ID = book.PUBLISHER_ID)'); - $c->addJoin(BookPeer::PUBLISHER_ID, PublisherPeer::ID, Criteria::LEFT_JOIN); - $c->addDescendingOrderByColumn('PublisherName'); - $c->setOffset(20); - $c->setLimit(20); - - $params = array(); - - $expectedSql = "SELECT [book.ID], [book.TITLE], [publisher.NAME], [PublisherName] FROM (SELECT ROW_NUMBER() OVER(ORDER BY (SELECT MAX(publisher.NAME) FROM publisher WHERE publisher.ID = book.PUBLISHER_ID) DESC) AS RowNumber, book.ID AS [book.ID], book.TITLE AS [book.TITLE], publisher.NAME AS [publisher.NAME], (SELECT MAX(publisher.NAME) FROM publisher WHERE publisher.ID = book.PUBLISHER_ID) AS [PublisherName] FROM book LEFT JOIN publisher ON (book.PUBLISHER_ID=publisher.ID)) AS derivedb WHERE RowNumber BETWEEN 21 AND 40"; - $sql = BasePeer::createSelectSql($c, $params); - $this->assertEquals($expectedSql, $sql); - } - - public function testMssqlApplyLimitWithOffsetMultipleOrderBy() - { - $db = Propel::getDB(BookPeer::DATABASE_NAME); - if(! ($db instanceof DBMSSQL)) - { - $this->markTestSkipped(); - } - - $c = new Criteria(BookPeer::DATABASE_NAME); - $c->addSelectColumn(BookPeer::ID); - $c->addSelectColumn(BookPeer::TITLE); - $c->addSelectColumn(PublisherPeer::NAME); - $c->addAsColumn('PublisherName','(SELECT MAX(publisher.NAME) FROM publisher WHERE publisher.ID = book.PUBLISHER_ID)'); - $c->addJoin(BookPeer::PUBLISHER_ID, PublisherPeer::ID, Criteria::LEFT_JOIN); - $c->addDescendingOrderByColumn('PublisherName'); - $c->addAscendingOrderByColumn(BookPeer::TITLE); - $c->setOffset(20); - $c->setLimit(20); - - $params = array(); - - $expectedSql = "SELECT [book.ID], [book.TITLE], [publisher.NAME], [PublisherName] FROM (SELECT ROW_NUMBER() OVER(ORDER BY (SELECT MAX(publisher.NAME) FROM publisher WHERE publisher.ID = book.PUBLISHER_ID) DESC, book.TITLE ASC) AS RowNumber, book.ID AS [book.ID], book.TITLE AS [book.TITLE], publisher.NAME AS [publisher.NAME], (SELECT MAX(publisher.NAME) FROM publisher WHERE publisher.ID = book.PUBLISHER_ID) AS [PublisherName] FROM book LEFT JOIN publisher ON (book.PUBLISHER_ID=publisher.ID)) AS derivedb WHERE RowNumber BETWEEN 21 AND 40"; - $sql = BasePeer::createSelectSql($c, $params); - $this->assertEquals($expectedSql, $sql); - } - - /** - * @expectedException PropelException - */ - public function testDoDeleteNoCondition() - { - $con = Propel::getConnection(); - $c = new Criteria(BookPeer::DATABASE_NAME); - BasePeer::doDelete($c, $con); - } - - public function testDoDeleteSimpleCondition() - { - $con = Propel::getConnection(); - $c = new Criteria(BookPeer::DATABASE_NAME); - $c->add(BookPeer::TITLE, 'War And Peace'); - BasePeer::doDelete($c, $con); - $expectedSQL = "DELETE FROM `book` WHERE book.TITLE='War And Peace'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'doDelete() translates a contition into a WHERE'); - } - - public function testDoDeleteSeveralConditions() - { - $con = Propel::getConnection(); - $c = new Criteria(BookPeer::DATABASE_NAME); - $c->add(BookPeer::TITLE, 'War And Peace'); - $c->add(BookPeer::ID, 12); - BasePeer::doDelete($c, $con); - $expectedSQL = "DELETE FROM `book` WHERE book.TITLE='War And Peace' AND book.ID=12"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'doDelete() combines conditions in WHERE whith an AND'); - } - - public function testDoDeleteTableAlias() - { - $con = Propel::getConnection(); - $c = new Criteria(BookPeer::DATABASE_NAME); - $c->addAlias('b', BookPeer::TABLE_NAME); - $c->add('b.TITLE', 'War And Peace'); - BasePeer::doDelete($c, $con); - $expectedSQL = "DELETE b FROM `book` AS b WHERE b.TITLE='War And Peace'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'doDelete() accepts a Criteria with a table alias'); - } - - /** - * Not documented anywhere, and probably wrong - * @see http://www.propelorm.org/ticket/952 - */ - public function testDoDeleteSeveralTables() - { - $con = Propel::getConnection(); - $count = $con->getQueryCount(); - $c = new Criteria(BookPeer::DATABASE_NAME); - $c->add(BookPeer::TITLE, 'War And Peace'); - $c->add(AuthorPeer::FIRST_NAME, 'Leo'); - BasePeer::doDelete($c, $con); - $expectedSQL = "DELETE FROM `author` WHERE author.FIRST_NAME='Leo'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'doDelete() issues two DELETE queries when passed conditions on two tables'); - $this->assertEquals($count + 2, $con->getQueryCount(), 'doDelete() issues two DELETE queries when passed conditions on two tables'); - - $c = new Criteria(BookPeer::DATABASE_NAME); - $c->add(AuthorPeer::FIRST_NAME, 'Leo'); - $c->add(BookPeer::TITLE, 'War And Peace'); - BasePeer::doDelete($c, $con); - $expectedSQL = "DELETE FROM `book` WHERE book.TITLE='War And Peace'"; - $this->assertEquals($expectedSQL, $con->getLastExecutedQuery(), 'doDelete() issues two DELETE queries when passed conditions on two tables'); - $this->assertEquals($count + 4, $con->getQueryCount(), 'doDelete() issues two DELETE queries when passed conditions on two tables'); - } - - public function testCommentDoSelect() - { - $c = new Criteria(); - $c->setComment('Foo'); - $c->addSelectColumn(BookPeer::ID); - $expected = 'SELECT /* Foo */ book.ID FROM `book`'; - $params = array(); - $this->assertEquals($expected, BasePeer::createSelectSQL($c, $params), 'Criteria::setComment() adds a comment to select queries'); - } - - public function testCommentDoUpdate() - { - $c1 = new Criteria(); - $c1->setPrimaryTableName(BookPeer::TABLE_NAME); - $c1->setComment('Foo'); - $c2 = new Criteria(); - $c2->add(BookPeer::TITLE, 'Updated Title'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - BasePeer::doUpdate($c1, $c2, $con); - $expected = 'UPDATE /* Foo */ `book` SET `TITLE`=\'Updated Title\''; - $this->assertEquals($expected, $con->getLastExecutedQuery(), 'Criteria::setComment() adds a comment to update queries'); - } - - public function testCommentDoDelete() - { - $c = new Criteria(); - $c->setComment('Foo'); - $c->add(BookPeer::TITLE, 'War And Peace'); - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - BasePeer::doDelete($c, $con); - $expected = 'DELETE /* Foo */ FROM `book` WHERE book.TITLE=\'War And Peace\''; - $this->assertEquals($expected, $con->getLastExecutedQuery(), 'Criteria::setComment() adds a comment to delete queries'); - } - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/util/PropelConfigurationTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/util/PropelConfigurationTest.php deleted file mode 100644 index d653f33184..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/util/PropelConfigurationTest.php +++ /dev/null @@ -1,69 +0,0 @@ - array('fooo' => 'bar', 'fi' => array('fooooo' => 'bara')), 'baz' => 'bar2'); - - public function testConstruct() - { - $conf = new PropelConfiguration($this->testArray); - $this->assertEquals($this->testArray, $conf->getParameters(), 'constructor sets values from an associative array'); - } - - public function testGetParameters() - { - $conf = new PropelConfiguration($this->testArray); - $expected = array('foo.fooo' => 'bar', 'foo.fi.fooooo' => 'bara', 'baz' => 'bar2'); - $this->assertEquals($expected, $conf->getParameters(PropelConfiguration::TYPE_ARRAY_FLAT), 'getParameters can return a flat array'); - } - - public function testGetParameter() - { - $conf = new PropelConfiguration($this->testArray); - $this->assertEquals('bar', $conf->getParameter('foo.fooo'), 'getParameter accepts a flat key'); - $this->assertEquals('bara', $conf->getParameter('foo.fi.fooooo'), 'getParameter accepts a flat key'); - $this->assertEquals('bar2', $conf->getParameter('baz'), 'getParameter accepts a flat key'); - } - - public function testGetParameterDefault() - { - $conf = new PropelConfiguration($this->testArray); - $this->assertEquals('bar', $conf->getParameter('foo.fooo'), 'getParameter accepts a flat key'); - $this->assertEquals('', $conf->getParameter('foo.fooo2'), 'getParameter returns null for nonexistent keys'); - $this->assertEquals('babar', $conf->getParameter('foo.fooo3', 'babar'), 'getParameter accepts a default value'); - } - - public function testSetParameter() - { - $conf = new PropelConfiguration(array()); - $conf->setParameter('foo.fooo', 'bar'); - $conf->setParameter('foo.fi.fooooo', 'bara'); - $conf->setParameter('baz', 'bar2'); - $this->assertEquals($this->testArray, $conf->getParameters(), 'setParameter accepts a flat array'); - } - - public function testArrayAccess() - { - $conf = new PropelConfiguration($this->testArray); - $expected = array('fooo' => 'bar', 'fi' => array('fooooo' => 'bara')); - $this->assertEquals($expected, $conf['foo'], 'PropelConfiguration implements ArrayAccess for OffsetGet'); - $this->assertEquals('bar', $conf['foo']['fooo'], 'Array access allows deep access'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/util/PropelDateTimeTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/util/PropelDateTimeTest.php deleted file mode 100644 index af490e0e46..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/util/PropelDateTimeTest.php +++ /dev/null @@ -1,139 +0,0 @@ -assertEquals($dt1->format('Y-m-d H:i:s'), $dt1->format('Y-m-d H:i:s'), sprintf($msg, "Dates w/ no timezone resolution were not the same.")); - $this->assertEquals($dt1->getTimeZone()->getName(), $dt2->getTimeZone()->getName(), sprintf($msg, "timezones were not the same.")); - - - // We do this last, because a PHP bug will make this true while the dates - // may not truly be equal. - // See: http://bugs.php.net/bug.php?id=40743 - $this->assertTrue($dt1 == $dt2, sprintf($msg, "dates did not pass equality check (==).")); - } - - /** - * Assert that two dates are equal. - */ - protected function assertDatesEqual(DateTime $dt1, DateTime $dt2, $msg = "Expected DateTime1 == DateTime2: %s") - { - if ($dt1 != $dt2) { - if ($dt1->getTimeZone()->getName() != $dt2->getTimeZone()->getName()) { - $this->fail(sprintf($msg, "Timezones were not the same.")); - } else { - $this->fail(sprintf($msg, "Timezones were the same, but date values were different.")); - } - } - } - - /** - * Assert that two dates are not equal. - */ - protected function assertDatesNotEqual(DateTime $dt1, DateTime $dt2, $msg = "Expected DateTime1 != DateTime2: %s") - { - $this->assertTrue($dt1 != $dt2, $msg); - } - - /** - * Ensure that our constructor matches DateTime constructor signature. - */ - public function testConstruct() - { - - // Because of a PHP bug () - // we cannot use a timestamp format that includes a timezone. It gets weird. :) - $now = date('Y-m-d H:i:s'); - - $dt = new DateTime($now); - $pdt = new PropelDateTime($now); - $this->assertDatesEqual($dt, $pdt, "Expected DateTime == PropelDateTime: %s"); - - $dt = new DateTime($now, new DateTimeZone('UTC')); - $pdt = new PropelDateTime($now, new DateTimeZone('America/New_York')); - $this->assertDatesNotEqual($dt, $pdt, "Expected DateTime != PropelDateTime: %s"); - - } - - /** - * Tests the ability to serialize() a PropelDateTime object. - */ - public function testSerialize_NoTZ() - { - $now = date('Y-m-d H:i:s'); - $dt = new DateTime($now); - $pdt = new PropelDateTime($now); - - $this->assertDatesIdentical($dt, $pdt); - - // We expect these to be the same -- there's no time zone info - $ser = serialize($pdt); - unset($pdt); - - $pdt = unserialize($ser); - $this->assertDatesIdentical($dt, $pdt); - } - - /** - * Tests the ability to serialize() a PropelDateTime object. - */ - public function testSerialize_SameTZ() - { - $now = date('Y-m-d H:i:s'); - $dt = new DateTime($now, new DateTimeZone('America/New_York')); - $pdt = new PropelDateTime($now, new DateTimeZone('America/New_York')); - - $this->assertDatesIdentical($dt, $pdt); - - // We expect these to be the same -- there's no time zone info - $ser = serialize($pdt); - unset($pdt); - - $pdt = unserialize($ser); - $this->assertDatesIdentical($dt, $pdt); - } - - /** - * Tests the ability to serialize() a PropelDateTime object. - */ - public function testSerialize_DiffTZ() - { - $now = date('Y-m-d H:i:s'); - $dt = new DateTime($now, new DateTimeZone('UTC')); - $pdt = new PropelDateTime($now, new DateTimeZone('America/New_York')); - - $this->assertDatesNotEqual($dt, $pdt); - - // We expect these to be the same -- there's no time zone info - $ser = serialize($pdt); - unset($pdt); - - $pdt = unserialize($ser); - $this->assertDatesNotEqual($dt, $pdt); - } - - -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/util/PropelModelPagerTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/util/PropelModelPagerTest.php deleted file mode 100644 index b622663df2..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/util/PropelModelPagerTest.php +++ /dev/null @@ -1,149 +0,0 @@ -deleteAll($con); - $books = new PropelObjectCollection(); - $books->setModel('Book'); - for ($i=0; $i < $nb; $i++) { - $b = new Book(); - $b->setTitle('Book' . $i); - $books[]= $b; - } - $books->save($con); - } - - protected function getPager($maxPerPage, $page = 1) - { - $pager = new PropelModelPager(BookQuery::create(), $maxPerPage); - $pager->setPage($page); - $pager->init(); - return $pager; - } - - public function testHaveToPaginate() - { - BookQuery::create()->deleteAll(); - $this->assertEquals(false, $this->getPager(0)->haveToPaginate(), 'haveToPaginate() returns false when there is no result'); - $this->createBooks(5); - $this->assertEquals(false, $this->getPager(0)->haveToPaginate(), 'haveToPaginate() returns false when the maxPerPage is null'); - $this->assertEquals(true, $this->getPager(2)->haveToPaginate(), 'haveToPaginate() returns true when the maxPerPage is less than the number of results'); - $this->assertEquals(false, $this->getPager(6)->haveToPaginate(), 'haveToPaginate() returns false when the maxPerPage is greater than the number of results'); - $this->assertEquals(false, $this->getPager(5)->haveToPaginate(), 'haveToPaginate() returns false when the maxPerPage is equal to the number of results'); - } - - public function testGetNbResults() - { - BookQuery::create()->deleteAll(); - $pager = $this->getPager(4, 1); - $this->assertEquals(0, $pager->getNbResults(), 'getNbResults() returns 0 when there are no results'); - $this->createBooks(5); - $pager = $this->getPager(4, 1); - $this->assertEquals(5, $pager->getNbResults(), 'getNbResults() returns the total number of results'); - $pager = $this->getPager(2, 1); - $this->assertEquals(5, $pager->getNbResults(), 'getNbResults() returns the total number of results'); - $pager = $this->getPager(2, 2); - $this->assertEquals(5, $pager->getNbResults(), 'getNbResults() returns the total number of results'); - $pager = $this->getPager(7, 6); - $this->assertEquals(5, $pager->getNbResults(), 'getNbResults() returns the total number of results'); - $pager = $this->getPager(0, 0); - $this->assertEquals(5, $pager->getNbResults(), 'getNbResults() returns the total number of results'); - } - - public function testGetResults() - { - $this->createBooks(5); - $pager = $this->getPager(4, 1); - $this->assertTrue($pager->getResults() instanceof PropelObjectCollection, 'getResults() returns a PropelObjectCollection'); - $this->assertEquals(4, count($pager->getResults()), 'getResults() returns at most $maxPerPage results'); - $pager = $this->getPager(4, 2); - $this->assertEquals(1, count($pager->getResults()), 'getResults() returns the remaining results when in the last page'); - $pager = $this->getPager(4, 3); - $this->assertEquals(1, count($pager->getResults()), 'getResults() returns the results of the last page when called on nonexistent pages'); - } - - public function testGetIterator() - { - $this->createBooks(5); - - $pager = $this->getPager(4, 1); - $i = 0; - foreach ($pager as $book) { - $this->assertEquals('Book' . $i, $book->getTitle(), 'getIterator() returns an iterator'); - $i++; - } - $this->assertEquals(4, $i, 'getIterator() uses the results collection'); - } - - public function testIterateTwice() - { - $this->createBooks(5); - $pager = $this->getPager(4, 1); - - $i = 0; - foreach ($pager as $book) { - $this->assertEquals('Book' . $i, $book->getTitle(), 'getIterator() returns an iterator'); - $i++; - } - $this->assertEquals(4, $i, 'getIterator() uses the results collection'); - - $i = 0; - foreach ($pager as $book) { - $this->assertEquals('Book' . $i, $book->getTitle()); - $i++; - } - $this->assertEquals(4, $i, 'getIterator() can be called several times'); - } - - public function testSetPage() - { - $this->createBooks(5); - $pager = $this->getPager(2, 2); - $i = 2; - foreach ($pager as $book) { - $this->assertEquals('Book' . $i, $book->getTitle(), 'setPage() sets the list to start on a given page'); - $i++; - } - $this->assertEquals(4, $i, 'setPage() doesn\'t change the page count'); - } - - public function testIsFirstPage() - { - $this->createBooks(5); - $pager = $this->getPager(4, 1); - $this->assertTrue($pager->isFirstPage(), 'isFirstPage() returns true on the first page'); - $pager = $this->getPager(4, 2); - $this->assertFalse($pager->isFirstPage(), 'isFirstPage() returns false when not on the first page'); - } - - public function testIsLastPage() - { - $this->createBooks(5); - $pager = $this->getPager(4, 1); - $this->assertFalse($pager->isLastPage(), 'isLastPage() returns false when not on the last page'); - $pager = $this->getPager(4, 2); - $this->assertTrue($pager->isLastPage(), 'isLastPage() returns true on the last page'); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/util/PropelPagerTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/util/PropelPagerTest.php deleted file mode 100644 index 473f56c09c..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/util/PropelPagerTest.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @version $Id: PropelPagerTest.php - * @package runtime.util - */ -class PropelPagerTest extends BookstoreEmptyTestBase -{ - private $authorId; - private $books; - - protected function setUp() - { - parent::setUp(); - BookstoreDataPopulator::populate(); - - $cr = new Criteria(); - $cr->add(AuthorPeer::LAST_NAME, "Rowling"); - $cr->add(AuthorPeer::FIRST_NAME, "J.K."); - $rowling = AuthorPeer::doSelectOne($cr); - $this->authorId = $rowling->getId(); - - $book = new Book(); - $book->setTitle("Harry Potter and the Philosopher's Stone"); - $book->setISBN("1234"); - $book->setAuthor($rowling); - $book->save(); - $this->books[] = $book->getId(); - - $book = new Book(); - $book->setTitle("Harry Potter and the Chamber of Secrets"); - $book->setISBN("1234"); - $book->setAuthor($rowling); - $book->save(); - $this->books[] = $book->getId(); - - $book = new Book(); - $book->setTitle("Harry Potter and the Prisoner of Azkaban"); - $book->setISBN("1234"); - $book->setAuthor($rowling); - $book->save(); - $this->books[] = $book->getId(); - - $book = new Book(); - $book->setTitle("Harry Potter and the Goblet of Fire"); - $book->setISBN("1234"); - $book->setAuthor($rowling); - $book->save(); - $this->books[] = $book->getId(); - - $book = new Book(); - $book->setTitle("Harry Potter and the Half-Blood Prince"); - $book->setISBN("1234"); - $book->setAuthor($rowling); - $book->save(); - $this->books[] = $book->getId(); - - $book = new Book(); - $book->setTitle("Harry Potter and the Deathly Hallows"); - $book->setISBN("1234"); - $book->setAuthor($rowling); - $book->save(); - $this->books[] = $book->getId(); - } - - protected function tearDown() - { - parent::tearDown(); - $cr = new Criteria(); - $cr->add(BookPeer::ID, $this->books, Criteria::IN); - BookPeer::doDelete($cr); - } - - public function testCountNoPageNoLimit() - { - $cr = new Criteria(); - $cr->add(BookPeer::AUTHOR_ID, $this->authorId); - $pager = new PropelPager($cr, "BookPeer", "doSelect"); - $this->assertEquals(7, count($pager)); - } - - public function testCountFirstPageWithLimits() - { - $cr = new Criteria(); - $cr->add(BookPeer::AUTHOR_ID, $this->authorId); - $pager = new PropelPager($cr, "BookPeer", "doSelect", 1, 5); - $this->assertEquals(5, count($pager)); - } - - public function testCountLastPageWithLimits() - { - $cr = new Criteria(); - $cr->add(BookPeer::AUTHOR_ID, $this->authorId); - $pager = new PropelPager($cr, "BookPeer", "doSelect", 2, 5); - $this->assertEquals(2, count($pager)); - } - - public function testIterateAll() - { - $cr = new Criteria(); - $cr->add(BookPeer::AUTHOR_ID, $this->authorId); - $pager = new PropelPager($cr, "BookPeer", "doSelect"); - $i = 0; - foreach ($pager as $key => $book) { - $i++; - } - $this->assertEquals(7, $i); - } - - public function testIterateWithLimits() - { - $cr = new Criteria(); - $cr->add(BookPeer::AUTHOR_ID, $this->authorId); - $pager = new PropelPager($cr, "BookPeer", "doSelect", 2, 5); - $i = 0; - foreach ($pager as $key => $book) { - $i++; - } - $this->assertEquals(2, $i); - } - - public function testIterateCheckSecond() - { - $cr = new Criteria(); - $cr->add(BookPeer::AUTHOR_ID, $this->authorId); - $cr->addAscendingOrderByColumn(BookPeer::TITLE); - $pager = new PropelPager($cr, "BookPeer", "doSelect"); - $books = array(); - foreach($pager as $book) { - $books[] = $book; - } - $this->assertEquals("Harry Potter and the Goblet of Fire", $books[2]->getTitle()); - } - - public function testIterateTwice() - { - $cr = new Criteria(); - $cr->add(BookPeer::AUTHOR_ID, $this->authorId); - $cr->addAscendingOrderByColumn(BookPeer::TITLE); - $pager = new PropelPager($cr, "BookPeer", "doSelect"); - $i = 0; - foreach($pager as $book) { - $i++; - } - foreach($pager as $book) { - $i++; - } - $this->assertEquals(14, $i); - } -} diff --git a/airtime_mvc/library/propel/test/testsuite/runtime/validator/ValidatorTest.php b/airtime_mvc/library/propel/test/testsuite/runtime/validator/ValidatorTest.php deleted file mode 100644 index 323c58629a..0000000000 --- a/airtime_mvc/library/propel/test/testsuite/runtime/validator/ValidatorTest.php +++ /dev/null @@ -1,228 +0,0 @@ - - * @package runtime.validator - */ -class ValidatorTest extends BookstoreEmptyTestBase -{ - - protected function setUp() - { - parent::setUp(); - BookstoreDataPopulator::populate(); - require_once 'tools/helpers/bookstore/validator/ISBNValidator.php'; - } - - /** - * Test minLength validator. - * This also tests the ${value} substitution. - */ - public function testDoValidate_MinLength() - { - $book = new Book(); - $book->setTitle("12345"); // min length is 10 - - $res = $book->validate(); - $this->assertFalse($res, "Expected validation to fail."); - - $failures = $book->getValidationFailures(); - $this->assertSingleValidation($failures, "Book title must be more than 10 characters long."); - } - - /** - * Test unique validator. - */ - public function testDoValidate_Unique() - { - $book = new Book(); - $book->setTitle("Don Juan"); - - $ret = $book->validate(); - $failures = $book->getValidationFailures(); - $this->assertSingleValidation($failures, "Book title already in database."); - } - - /** - * Test recursive validaton. - */ - public function testDoValidate_Complex() - { - $book = new Book(); - $book->setTitle("12345"); // min length is 10 - - $author = new Author(); - $author->setFirstName("Hans"); // last name required, valid email format, age > 0 - - $review = new Review(); - $review->setReviewDate("08/09/2001"); // reviewed_by column required, invalid status (new, reviewed, archived) - - $book->setAuthor($author); - $book->addReview($review); - - $res = $book->validate(); - - $this->assertFalse($res, "Expected validation to fail."); - - $failures = $book->getValidationFailures(); - - /* Make sure 3 validation messages were returned; NOT 6, because the others were NULL */ - $this->assertEquals(3, count($failures), ""); - - /* Make sure correct columns failed */ - $expectedCols = array( - AuthorPeer::LAST_NAME, - BookPeer::TITLE, - ReviewPeer::REVIEWED_BY - ); - $returnedCols = array_keys($failures); - - /* implode for readability */ - $this->assertEquals(implode(',', $expectedCols), implode(',', $returnedCols)); - } - - /** - * Test recursive validaton with specified columns. - */ - public function testDoValidate_ComplexSpecifiedCols() - { - $book = new Book(); - $book->setTitle("12345"); // min length is 10 - - $author = new Author(); - $author->setFirstName("Hans"); // last name required, valid email format, age > 0 - - $review = new Review(); - $review->setReviewDate("08/09/2001"); // reviewed_by column required, invalid status (new, reviewed, archived) - - $book->setAuthor($author); - $book->addReview($review); - - $cols = array(AuthorPeer::LAST_NAME, ReviewPeer::REVIEWED_BY); - - $res = $book->validate($cols); - - $this->assertFalse($res, "Expected validation to fail."); - - $failures = $book->getValidationFailures(); - - /* Make sure 3 validation messages were returned; NOT 6, because the others were NULL */ - $this->assertEquals(2, count($failures), ""); - - /* Make sure correct columns failed */ - $expectedCols = array( - AuthorPeer::LAST_NAME, - ReviewPeer::REVIEWED_BY - ); - - $returnedCols = array_keys($failures); - - /* implode for readability */ - $this->assertEquals(implode(',', $expectedCols), implode(',', $returnedCols)); - } - - /** - * Test the fact that validators should not complain NULL values for non-required columns. - */ - public function testDoValidate_Nulls() - { - $author = new Author(); - $author->setFirstName("Malcolm"); // last name required, valid email format, age > 0 - $author->setLastName("X"); - - $author->setEmail(null); // just to be explicit, of course these are the defaults anyway - $author->setAge(null); - - $res = $author->validate(); - - - $this->assertTrue($res, "Expected validation to pass with NULL columns"); - - $author->setEmail('malcolm@'); // fail - $res = $author->validate(); - - $this->assertFalse($res, "Expected validation to fail."); - - $failures = $author->getValidationFailures(); - $this->assertEquals(1, count($failures), "Expected 1 column to fail validation."); - $this->assertEquals(array(AuthorPeer::EMAIL), array_keys($failures), "Expected EMAIL to fail validation."); - - } - - public function testDoValidate_BasicValidatorObj() - { - $author = new Author(); - $author->setFirstName("Malcolm"); // last name required, valid email format, age > 0 - $author->setLastName("X"); - $author->setEmail('malcolm@'); // fail - - $res = $author->validate(); - - $this->assertFalse($res, "Expected validation to fail."); - - $failures = $author->getValidationFailures(); - - $this->assertEquals(1, count($failures), "Expected 1 column to fail validation."); - $this->assertEquals(array(AuthorPeer::EMAIL), array_keys($failures), "Expected EMAIL to fail validation."); - - $validator = $failures[AuthorPeer::EMAIL]->getValidator(); - $this->assertTrue($validator instanceof MatchValidator, "Expected validator that failed to be MatchValidator"); - - } - - public function testDoValidate_CustomValidator() - { - $book = new Book(); - $book->setTitle("testDoValidate_CustomValidator"); // (valid) - $book->setISBN("Foo.Bar.Baz"); // (invalid) - - $res = $book->validate(); - - $this->assertFalse($res, "Expected validation to fail."); - - $failures = $book->getValidationFailures(); - - $this->assertEquals(1, count($failures), "Expected 1 column to fail validation."); - $this->assertEquals(array(BookPeer::ISBN), array_keys($failures), "Expected EMAIL to fail validation."); - - $validator = $failures[BookPeer::ISBN]->getValidator(); - $this->assertType('ISBNValidator', $validator, "Expected validator that failed to be ISBNValidator"); - } - - protected function assertSingleValidation($ret, $expectedMsg) - { - /* Make sure validation failed */ - $this->assertTrue($ret !== true, "Expected validation to fail !"); - - /* Make sure 1 validation message was returned */ - $count = count($ret); - $this->assertTrue($count === 1, "Expected that exactly one validation failed ($count) !"); - - /* Make sure expected validation message was returned */ - $el = array_shift($ret); - $this->assertEquals($el->getMessage(), $expectedMsg, "Got unexpected validation failed message: " . $el->getMessage()); - } - -} diff --git a/airtime_mvc/library/propel/test/tools/helpers/BaseTestCase.php b/airtime_mvc/library/propel/test/tools/helpers/BaseTestCase.php deleted file mode 100644 index f3827c24b7..0000000000 --- a/airtime_mvc/library/propel/test/tools/helpers/BaseTestCase.php +++ /dev/null @@ -1,30 +0,0 @@ - (Propel) - * @author Daniel Rall (Torque) - * @author Christopher Elkins (Torque) - * @version $Revision: 1773 $ - */ -abstract class BaseTestCase extends PHPUnit_Framework_TestCase { - - /** - * Conditional compilation flag. - */ - const DEBUG = false; - -} diff --git a/airtime_mvc/library/propel/test/tools/helpers/bookstore/BookstoreDataPopulator.php b/airtime_mvc/library/propel/test/tools/helpers/bookstore/BookstoreDataPopulator.php deleted file mode 100644 index 5dc3902be7..0000000000 --- a/airtime_mvc/library/propel/test/tools/helpers/bookstore/BookstoreDataPopulator.php +++ /dev/null @@ -1,247 +0,0 @@ - - */ -class BookstoreDataPopulator -{ - - public static function populate($con = null) - { - if($con === null) { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - } - $con->beginTransaction(); - - // Add publisher records - // --------------------- - - $scholastic = new Publisher(); - $scholastic->setName("Scholastic"); - // do not save, will do later to test cascade - - $morrow = new Publisher(); - $morrow->setName("William Morrow"); - $morrow->save($con); - $morrow_id = $morrow->getId(); - - $penguin = new Publisher(); - $penguin->setName("Penguin"); - $penguin->save(); - $penguin_id = $penguin->getId(); - - $vintage = new Publisher(); - $vintage->setName("Vintage"); - $vintage->save($con); - $vintage_id = $vintage->getId(); - - $rowling = new Author(); - $rowling->setFirstName("J.K."); - $rowling->setLastName("Rowling"); - // no save() - - $stephenson = new Author(); - $stephenson->setFirstName("Neal"); - $stephenson->setLastName("Stephenson"); - $stephenson->save($con); - $stephenson_id = $stephenson->getId(); - - $byron = new Author(); - $byron->setFirstName("George"); - $byron->setLastName("Byron"); - $byron->save($con); - $byron_id = $byron->getId(); - - $grass = new Author(); - $grass->setFirstName("Gunter"); - $grass->setLastName("Grass"); - $grass->save($con); - $grass_id = $grass->getId(); - - $phoenix = new Book(); - $phoenix->setTitle("Harry Potter and the Order of the Phoenix"); - $phoenix->setISBN("043935806X"); - $phoenix->setAuthor($rowling); - $phoenix->setPublisher($scholastic); - $phoenix->setPrice(10.99); - $phoenix->save($con); - $phoenix_id = $phoenix->getId(); - - $qs = new Book(); - $qs->setISBN("0380977427"); - $qs->setTitle("Quicksilver"); - $qs->setPrice(11.99); - $qs->setAuthor($stephenson); - $qs->setPublisher($morrow); - $qs->save($con); - $qs_id = $qs->getId(); - - $dj = new Book(); - $dj->setISBN("0140422161"); - $dj->setTitle("Don Juan"); - $dj->setPrice(12.99); - $dj->setAuthor($byron); - $dj->setPublisher($penguin); - $dj->save($con); - $dj_id = $dj->getId(); - - $td = new Book(); - $td->setISBN("067972575X"); - $td->setTitle("The Tin Drum"); - $td->setPrice(13.99); - $td->setAuthor($grass); - $td->setPublisher($vintage); - $td->save($con); - $td_id = $td->getId(); - - $r1 = new Review(); - $r1->setBook($phoenix); - $r1->setReviewedBy("Washington Post"); - $r1->setRecommended(true); - $r1->setReviewDate(time()); - $r1->save($con); - $r1_id = $r1->getId(); - - $r2 = new Review(); - $r2->setBook($phoenix); - $r2->setReviewedBy("New York Times"); - $r2->setRecommended(false); - $r2->setReviewDate(time()); - $r2->save($con); - $r2_id = $r2->getId(); - - $blob_path = _LOB_SAMPLE_FILE_PATH . '/tin_drum.gif'; - $clob_path = _LOB_SAMPLE_FILE_PATH . '/tin_drum.txt'; - - $m1 = new Media(); - $m1->setBook($td); - $m1->setCoverImage(file_get_contents($blob_path)); - // CLOB is broken in PDO OCI, see http://pecl.php.net/bugs/bug.php?id=7943 - if (get_class(Propel::getDB()) != "DBOracle") { - $m1->setExcerpt(file_get_contents($clob_path)); - } - $m1->save($con); - - // Add book list records - // --------------------- - // (this is for many-to-many tests) - - $blc1 = new BookClubList(); - $blc1->setGroupLeader("Crazyleggs"); - $blc1->setTheme("Happiness"); - - $brel1 = new BookListRel(); - $brel1->setBook($phoenix); - - $brel2 = new BookListRel(); - $brel2->setBook($dj); - - $blc1->addBookListRel($brel1); - $blc1->addBookListRel($brel2); - - $blc1->save(); - - $bemp1 = new BookstoreEmployee(); - $bemp1->setName("John"); - $bemp1->setJobTitle("Manager"); - - $bemp2 = new BookstoreEmployee(); - $bemp2->setName("Pieter"); - $bemp2->setJobTitle("Clerk"); - $bemp2->setSupervisor($bemp1); - $bemp2->save($con); - - $role = new AcctAccessRole(); - $role->setName("Admin"); - - $bempacct = new BookstoreEmployeeAccount(); - $bempacct->setBookstoreEmployee($bemp1); - $bempacct->setAcctAccessRole($role); - $bempacct->setLogin("john"); - $bempacct->setPassword("johnp4ss"); - $bempacct->save($con); - - // Add bookstores - - $store = new Bookstore(); - $store->setStoreName("Amazon"); - $store->setPopulationServed(5000000000); // world population - $store->setTotalBooks(300); - $store->save($con); - - $store = new Bookstore(); - $store->setStoreName("Local Store"); - $store->setPopulationServed(20); - $store->setTotalBooks(500000); - $store->save($con); - - $con->commit(); - } - - public static function populateOpinionFavorite($con = null) - { - if($con === null) { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - } - $con->beginTransaction(); - - $book1 = BookPeer::doSelectOne(new Criteria(), $con); - $reader1 = new BookReader(); - $reader1->save($con); - - $bo = new BookOpinion(); - $bo->setBook($book1); - $bo->setBookReader($reader1); - $bo->save($con); - - $rf = new ReaderFavorite(); - $rf->setBookOpinion($bo); - $rf->save($con); - - $con->commit(); - } - - public static function depopulate($con = null) - { - if($con === null) { - $con = Propel::getConnection(BookPeer::DATABASE_NAME); - } - $con->beginTransaction(); - AuthorPeer::doDeleteAll($con); - BookstorePeer::doDeleteAll($con); - BookstoreContestPeer::doDeleteAll($con); - BookstoreContestEntryPeer::doDeleteAll($con); - BookstoreEmployeePeer::doDeleteAll($con); - BookstoreEmployeeAccountPeer::doDeleteAll($con); - BookstoreSalePeer::doDeleteAll($con); - BookClubListPeer::doDeleteAll($con); - BookOpinionPeer::doDeleteAll($con); - BookReaderPeer::doDeleteAll($con); - BookListRelPeer::doDeleteAll($con); - BookPeer::doDeleteAll($con); - ContestPeer::doDeleteAll($con); - CustomerPeer::doDeleteAll($con); - MediaPeer::doDeleteAll($con); - PublisherPeer::doDeleteAll($con); - ReaderFavoritePeer::doDeleteAll($con); - ReviewPeer::doDeleteAll($con); - $con->commit(); - } - -} diff --git a/airtime_mvc/library/propel/test/tools/helpers/bookstore/BookstoreEmptyTestBase.php b/airtime_mvc/library/propel/test/tools/helpers/bookstore/BookstoreEmptyTestBase.php deleted file mode 100644 index 08efab6a89..0000000000 --- a/airtime_mvc/library/propel/test/tools/helpers/bookstore/BookstoreEmptyTestBase.php +++ /dev/null @@ -1,38 +0,0 @@ - -con); - } - - /** - * This is run after each unit test. It empties the database. - */ - protected function tearDown() - { - BookstoreDataPopulator::depopulate($this->con); - parent::tearDown(); - } - -} diff --git a/airtime_mvc/library/propel/test/tools/helpers/bookstore/BookstoreTestBase.php b/airtime_mvc/library/propel/test/tools/helpers/bookstore/BookstoreTestBase.php deleted file mode 100644 index 4ea139e6d5..0000000000 --- a/airtime_mvc/library/propel/test/tools/helpers/bookstore/BookstoreTestBase.php +++ /dev/null @@ -1,47 +0,0 @@ -con = Propel::getConnection(BookPeer::DATABASE_NAME); - $this->con->beginTransaction(); - } - - /** - * This is run after each unit test. It empties the database. - */ - protected function tearDown() - { - parent::tearDown(); - // Only commit if the transaction hasn't failed. - // This is because tearDown() is also executed on a failed tests, - // and we don't want to call PropelPDO::commit() in that case - // since it will trigger an exception on its own - // ('Cannot commit because a nested transaction was rolled back') - if ($this->con->isCommitable()) { - $this->con->commit(); - } - } -} diff --git a/airtime_mvc/library/propel/test/tools/helpers/bookstore/behavior/BookstoreNestedSetTestBase.php b/airtime_mvc/library/propel/test/tools/helpers/bookstore/behavior/BookstoreNestedSetTestBase.php deleted file mode 100644 index 222c0eb500..0000000000 --- a/airtime_mvc/library/propel/test/tools/helpers/bookstore/behavior/BookstoreNestedSetTestBase.php +++ /dev/null @@ -1,146 +0,0 @@ -getTitle()] = array($node->getLeftValue(), $node->getRightValue(), $node->getLevel()); - } - return $tree; - } - - /** - * Tree used for tests - * t1 - * | \ - * t2 t3 - * | \ - * t4 t5 - * | \ - * t6 t7 - */ - protected function initTree() - { - Table9Peer::doDeleteAll(); - $ret = array(); - // shuffling the results so the db order is not the natural one - $fixtures = array( - 't2' => array(2, 3, 1), - 't5' => array(7, 12, 2), - 't4' => array(5, 6, 2), - 't7' => array(10, 11, 3), - 't1' => array(1, 14, 0), - 't6' => array(8, 9, 3), - 't3' => array(4, 13, 1), - ); - /* in correct order, this is: - 't1' => array(1, 14, 0), - 't2' => array(2, 3, 1), - 't3' => array(4, 13, 1), - 't4' => array(5, 6, 2), - 't5' => array(7, 12, 2), - 't6' => array(8, 9, 3), - 't7' => array(10, 11, 3), - */ - foreach ($fixtures as $key => $data) { - $t = new PublicTable9(); - $t->setTitle($key); - $t->setLeftValue($data[0]); - $t->setRightValue($data[1]); - $t->setLevel($data[2]); - $t->save(); - $ret[$key]= $t; - } - // reordering the results in the fixtures - ksort($ret); - return array_values($ret); - } - - protected function dumpTree() - { - $c = new Criteria(); - $c->addAscendingOrderBycolumn(Table9Peer::TITLE); - return $this->dumpNodes(Table9Peer::doSelect($c)); - } - - /** - * Tree used for tests - * Scope 1 - * t1 - * | \ - * t2 t3 - * | \ - * t4 t5 - * | \ - * t6 t7 - * Scope 2 - * t8 - * | \ - * t9 t10 - */ - protected function initTreeWithScope() - { - Table10Peer::doDeleteAll(); - $ret = array(); - $fixtures = array( - 't1' => array(1, 14, 0, 1), - 't2' => array(2, 3, 1, 1), - 't3' => array(4, 13, 1, 1), - 't4' => array(5, 6, 2, 1), - 't5' => array(7, 12, 2, 1), - 't6' => array(8, 9, 3, 1), - 't7' => array(10, 11, 3, 1), - 't8' => array(1, 6, 0, 2), - 't9' => array(2, 3, 1, 2), - 't10' => array(4, 5, 1, 2), - ); - foreach ($fixtures as $key => $data) { - $t = new PublicTable10(); - $t->setTitle($key); - $t->setLeftValue($data[0]); - $t->setRightValue($data[1]); - $t->setLevel($data[2]); - $t->setScopeValue($data[3]); - $t->save(); - $ret []= $t; - } - return $ret; - } - - protected function dumpTreeWithScope($scope) - { - $c = new Criteria(); - $c->add(Table10Peer::SCOPE_COL, $scope); - $c->addAscendingOrderBycolumn(Table10Peer::TITLE); - return $this->dumpNodes(Table10Peer::doSelect($c)); - } -} - -// we need this class to test protected methods -class PublicTable9 extends Table9 -{ - public $hasParentNode = null; - public $parentNode = null; - public $hasPrevSibling = null; - public $prevSibling = null; - public $hasNextSibling = null; - public $nextSibling = null; -} - -class PublicTable10 extends Table10 -{ - public $hasParentNode = null; - public $parentNode = null; -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/tools/helpers/bookstore/behavior/BookstoreSortableTestBase.php b/airtime_mvc/library/propel/test/tools/helpers/bookstore/behavior/BookstoreSortableTestBase.php deleted file mode 100644 index 2af39debe1..0000000000 --- a/airtime_mvc/library/propel/test/tools/helpers/bookstore/behavior/BookstoreSortableTestBase.php +++ /dev/null @@ -1,104 +0,0 @@ -setRank(1); - $t1->setTitle('row1'); - $t1->save(); - $t2 = new Table11(); - $t2->setRank(4); - $t2->setTitle('row4'); - $t2->save(); - $t3 = new Table11(); - $t3->setRank(2); - $t3->setTitle('row2'); - $t3->save(); - $t4 = new Table11(); - $t4->setRank(3); - $t4->setTitle('row3'); - $t4->save(); - } - - protected function populateTable12() - { - /* List used for tests - scope=1 scope=2 - row1 row5 - row2 row6 - row3 - row4 - */ - Table12Peer::doDeleteAll(); - $t1 = new Table12(); - $t1->setRank(1); - $t1->setScopeValue(1); - $t1->setTitle('row1'); - $t1->save(); - $t2 = new Table12(); - $t2->setRank(4); - $t2->setScopeValue(1); - $t2->setTitle('row4'); - $t2->save(); - $t3 = new Table12(); - $t3->setRank(2); - $t3->setScopeValue(1); - $t3->setTitle('row2'); - $t3->save(); - $t4 = new Table12(); - $t4->setRank(1); - $t4->setScopeValue(2); - $t4->setTitle('row5'); - $t4->save(); - $t5 = new Table12(); - $t5->setRank(3); - $t5->setScopeValue(1); - $t5->setTitle('row3'); - $t5->save(); - $t6 = new Table12(); - $t6->setRank(2); - $t6->setScopeValue(2); - $t6->setTitle('row6'); - $t6->save(); - } - - protected function getFixturesArray() - { - $c = new Criteria(); - $c->addAscendingOrderByColumn(Table11Peer::RANK_COL); - $ts = Table11Peer::doSelect($c); - $ret = array(); - foreach ($ts as $t) { - $ret[$t->getRank()] = $t->getTitle(); - } - return $ret; - } - - protected function getFixturesArrayWithScope($scope = null) - { - $c = new Criteria(); - if ($scope !== null) { - $c->add(Table12Peer::SCOPE_COL, $scope); - } - $c->addAscendingOrderByColumn(Table12Peer::RANK_COL); - $ts = Table12Peer::doSelect($c); - $ret = array(); - foreach ($ts as $t) { - $ret[$t->getRank()] = $t->getTitle(); - } - return $ret; - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/tools/helpers/bookstore/behavior/DonothingBehavior.php b/airtime_mvc/library/propel/test/tools/helpers/bookstore/behavior/DonothingBehavior.php deleted file mode 100644 index 2b6f2fb973..0000000000 --- a/airtime_mvc/library/propel/test/tools/helpers/bookstore/behavior/DonothingBehavior.php +++ /dev/null @@ -1,13 +0,0 @@ -setFirstName('PreInsertedFirstname'); - return true; - } - - public function postInsert(PropelPDO $con = null) - { - parent::postInsert($con); - $this->setLastName('PostInsertedLastName'); - } - - public function preUpdate(PropelPDO $con = null) - { - parent::preUpdate($con); - $this->setFirstName('PreUpdatedFirstname'); - return true; - } - - public function postUpdate(PropelPDO $con = null) - { - parent::postUpdate($con); - $this->setLastName('PostUpdatedLastName'); - } - - public function preSave(PropelPDO $con = null) - { - parent::preSave($con); - $this->setEmail("pre@save.com"); - return true; - } - - public function postSave(PropelPDO $con = null) - { - parent::postSave($con); - $this->setAge(115); - } - - public function preDelete(PropelPDO $con = null) - { - parent::preDelete($con); - $this->setFirstName("Pre-Deleted"); - return true; - } - - public function postDelete(PropelPDO $con = null) - { - parent::postDelete($con); - $this->setLastName("Post-Deleted"); - } -} - -class TestAuthorDeleteFalse extends TestAuthor -{ - public function preDelete(PropelPDO $con = null) - { - parent::preDelete($con); - $this->setFirstName("Pre-Deleted"); - return false; - } -} -class TestAuthorSaveFalse extends TestAuthor -{ - public function preSave(PropelPDO $con = null) - { - parent::preSave($con); - $this->setEmail("pre@save.com"); - return false; - } - -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/tools/helpers/bookstore/behavior/Testallhooksbehavior.php b/airtime_mvc/library/propel/test/tools/helpers/bookstore/behavior/Testallhooksbehavior.php deleted file mode 100644 index 4a44c23238..0000000000 --- a/airtime_mvc/library/propel/test/tools/helpers/bookstore/behavior/Testallhooksbehavior.php +++ /dev/null @@ -1,183 +0,0 @@ -tableModifier)) - { - $this->tableModifier = new TestAllHooksTableModifier($this); - } - return $this->tableModifier; - } - - public function getObjectBuilderModifier() - { - if (is_null($this->objectBuilderModifier)) - { - $this->objectBuilderModifier = new TestAllHooksObjectBuilderModifier($this); - } - return $this->objectBuilderModifier; - } - - public function getPeerBuilderModifier() - { - if (is_null($this->peerBuilderModifier)) - { - $this->peerBuilderModifier = new TestAllHooksPeerBuilderModifier($this); - } - return $this->peerBuilderModifier; - } - - public function getQueryBuilderModifier() - { - if (is_null($this->queryBuilderModifier)) - { - $this->queryBuilderModifier = new TestAllHooksQueryBuilderModifier($this); - } - return $this->queryBuilderModifier; - } -} - -class TestAllHooksTableModifier -{ - protected $behavior, $table; - - public function __construct($behavior) - { - $this->behavior = $behavior; - $this->table = $behavior->getTable(); - } - - public function modifyTable() - { - $this->table->addColumn(array( - 'name' => 'test', - 'type' => 'TIMESTAMP' - )); - } -} - -class TestAllHooksObjectBuilderModifier -{ - public function objectAttributes($builder) - { - return 'public $customAttribute = 1;'; - } - - public function preSave($builder) - { - return '$this->preSave = 1;$this->preSaveIsAfterSave = isset($affectedRows);$this->preSaveBuilder="' . get_class($builder) . '";'; - } - - public function postSave($builder) - { - return '$this->postSave = 1;$this->postSaveIsAfterSave = isset($affectedRows);$this->postSaveBuilder="' . get_class($builder) . '";'; - } - - public function preInsert($builder) - { - return '$this->preInsert = 1;$this->preInsertIsAfterSave = isset($affectedRows);$this->preInsertBuilder="' . get_class($builder) . '";'; - } - - public function postInsert($builder) - { - return '$this->postInsert = 1;$this->postInsertIsAfterSave = isset($affectedRows);$this->postInsertBuilder="' . get_class($builder) . '";'; - } - - public function preUpdate($builder) - { - return '$this->preUpdate = 1;$this->preUpdateIsAfterSave = isset($affectedRows);$this->preUpdateBuilder="' . get_class($builder) . '";'; - } - - public function postUpdate($builder) - { - return '$this->postUpdate = 1;$this->postUpdateIsAfterSave = isset($affectedRows);$this->postUpdateBuilder="' . get_class($builder) . '";'; - } - - public function preDelete($builder) - { - return '$this->preDelete = 1;$this->preDeleteIsBeforeDelete = isset(Table3Peer::$instances[$this->id]);$this->preDeleteBuilder="' . get_class($builder) . '";'; - } - - public function postDelete($builder) - { - return '$this->postDelete = 1;$this->postDeleteIsBeforeDelete = isset(Table3Peer::$instances[$this->id]);$this->postDeleteBuilder="' . get_class($builder) . '";'; - } - - public function objectMethods($builder) - { - return 'public function hello() { return "' . get_class($builder) .'"; }'; - } - - public function objectCall($builder) - { - return 'if ($name == "foo") return "bar";'; - } - - public function objectFilter(&$string, $builder) - { - $string .= 'class testObjectFilter { const FOO = "' . get_class($builder) . '"; }'; - } -} - -class TestAllHooksPeerBuilderModifier -{ - public function staticAttributes($builder) - { - return 'public static $customStaticAttribute = 1;public static $staticAttributeBuilder = "' . get_class($builder) . '";'; - } - - public function staticMethods($builder) - { - return 'public static function hello() { return "' . get_class($builder) . '"; }'; - } - - public function preSelect($builder) - { - return '$con->preSelect = "' . get_class($builder) . '";'; - } - - public function peerFilter(&$string, $builder) - { - $string .= 'class testPeerFilter { const FOO = "' . get_class($builder) . '"; }'; - } -} - -class TestAllHooksQueryBuilderModifier -{ - public function preSelectQuery($builder) - { - return '// foo'; - } - - public function preDeleteQuery($builder) - { - return '// foo'; - } - - public function postDeleteQuery($builder) - { - return '// foo'; - } - - public function preUpdateQuery($builder) - { - return '// foo'; - } - - public function postUpdateQuery($builder) - { - return '// foo'; - } -} \ No newline at end of file diff --git a/airtime_mvc/library/propel/test/tools/helpers/bookstore/validator/ISBNValidator.php b/airtime_mvc/library/propel/test/tools/helpers/bookstore/validator/ISBNValidator.php deleted file mode 100644 index 690c81a408..0000000000 --- a/airtime_mvc/library/propel/test/tools/helpers/bookstore/validator/ISBNValidator.php +++ /dev/null @@ -1,29 +0,0 @@ - - * @version $Revision: 1612 $ - * @package propel.validator - */ -class ISBNValidator implements BasicValidator -{ - const NOT_ISBN_REGEXP = '/[^0-9A-Z]/'; - - /** - * Whether the passed string matches regular expression. - */ - public function isValid (ValidatorMap $map, $str) - { - return !(preg_match(self::NOT_ISBN_REGEXP, $str)); - } -} diff --git a/airtime_mvc/library/propel/test/tools/helpers/cms/CmsDataPopulator.php b/airtime_mvc/library/propel/test/tools/helpers/cms/CmsDataPopulator.php deleted file mode 100644 index 2a05f3ff3b..0000000000 --- a/airtime_mvc/library/propel/test/tools/helpers/cms/CmsDataPopulator.php +++ /dev/null @@ -1,143 +0,0 @@ - - */ -class CmsDataPopulator { - - public static function populate($con = null) - { - if($con === null) - { - $con = Propel::getConnection(PagePeer::DATABASE_NAME); - } - $con->beginTransaction(); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 1,194,'home')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 2,5,'school')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 6,43,'education')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 44,45,'simulator')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 46,47,'ac')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 3,4,'history')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 7,14,'master-mariner')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 8,9,'education')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 48,85,'courses')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 98,101,'contact')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 10,11,'entrance')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 104,191,'intra')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 102,103,'services')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 12,13,'competency')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 15,22,'watchkeeping-officer')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 16,17,'education')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 18,19,'entrance')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 20,21,'competency')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 31,38,'watchkeeping-engineer')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 32,33,'education')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 34,35,'entrance')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 36,37,'competency')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 39,40,'practice')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 86,97,'news')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 95,96,'2007-02')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 99,100,'personnel')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 87,88,'2007-06')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 49,50,'nautical')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 51,52,'radiotechnical')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 53,54,'resourcemgmt')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 57,58,'safety')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 59,60,'firstaid')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 61,62,'sar')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 67,84,'upcoming')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 65,66,'languages')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 55,56,'cargomgmt')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 119,120,'timetable')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 63,64,'boaters')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 105,118,'bulletinboard')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 106,107,'sdf')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 41,42,'fristaende')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 23,30,'ingenj')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 24,25,'utbildn')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 26,27,'ansokn')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 93,94,'utexaminerade')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 89,92,'Massan')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 192,193,'lankar')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 68,69,'FRB')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 70,71,'pelastautumis')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 72,73,'CCM')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 74,75,'sjukvard')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 121,188,'Veckoscheman')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 134,135,'VS3VSVsjukv')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 122,123,'sjoarb')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 130,131,'fysik1')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 140,141,'kemi')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 76,77,'inr')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 78,79,'forare')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 144,145,'AlexandraYH2')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 132,133,'AlexandraVS2')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 80,81,'Maskin')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 126,127,'forstahjalp')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 136,137,'Juridik')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 142,143,'mate')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 82,83,'basic')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 124,125,'mask')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 108,109,'magnus')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 138,139,'sjosakerhet')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 28,29,'pate')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 148,149,'eng')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 146,147,'forstahjalpYH1')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 110,111,'kortoverlevnadskurs')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 158,159,'kortoverlevnadskurs')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 128,129,'metall')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 152,153,'fysik')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 156,157,'fardplan')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 154,155,'astro')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 90,91,'utstallare')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 150,151,'eng')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 160,161,'ent')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 162,163,'juridik')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 168,169,'svenska')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 164,165,'matemat')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 166,167,'operativa')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 170,171,'plan')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 172,173,'src')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 112,113,'sjukv')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 174,175,'matemati')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 176,177,'fysiikka')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 114,115,'hantv')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 116,117,'CCM')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 178,179,'haveri')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 180,181,'FRB')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 182,183,'kemia')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 184,185,'vaktrutiner')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 189,190,'laroplan')"); - $con->exec("INSERT INTO Page (ScopeId, LeftChild, RightChild, Title) VALUES (1, 186,187,'SSOkurs')"); - - $con->exec("INSERT INTO Category (LeftChild, RightChild, Title) VALUES (1, 8, 'Cat_1')"); - $con->exec("INSERT INTO Category (LeftChild, RightChild, Title) VALUES (2, 7, 'Cat_1_1')"); - $con->exec("INSERT INTO Category (LeftChild, RightChild, Title) VALUES (3, 6, 'Cat_1_1_1')"); - $con->exec("INSERT INTO Category (LeftChild, RightChild, Title) VALUES (4, 5, 'Cat_1_1_1_1')"); - - $con->commit(); - } - - public static function depopulate($con = null) - { - if($con === null) - { - $con = Propel::getConnection(PagePeer::DATABASE_NAME); - } - $con->beginTransaction(); - $con->exec("DELETE FROM Page"); - $con->exec("DELETE FROM Category"); - - $con->commit(); - } -} diff --git a/airtime_mvc/library/propel/test/tools/helpers/cms/CmsTestBase.php b/airtime_mvc/library/propel/test/tools/helpers/cms/CmsTestBase.php deleted file mode 100644 index 0d9c73791a..0000000000 --- a/airtime_mvc/library/propel/test/tools/helpers/cms/CmsTestBase.php +++ /dev/null @@ -1,45 +0,0 @@ -con = Propel::getConnection(PagePeer::DATABASE_NAME); - $this->con->beginTransaction(); - CmsDataPopulator::depopulate($this->con); - CmsDataPopulator::populate($this->con); - } - - /** - * This is run after each unit test. It empties the database. - */ - protected function tearDown() - { - CmsDataPopulator::depopulate($this->con); - $this->con->commit(); - parent::tearDown(); - } - -} diff --git a/airtime_mvc/library/propel/test/tools/phing/DefineTask.php b/airtime_mvc/library/propel/test/tools/phing/DefineTask.php deleted file mode 100644 index ef6f208be5..0000000000 --- a/airtime_mvc/library/propel/test/tools/phing/DefineTask.php +++ /dev/null @@ -1,58 +0,0 @@ -name = $v; - } - - /** - * Sets the value for the constant. - * @param string $v - */ - public function setValue($v) { - $this->value = $v; - } - - public function main() { - if (!isset($this->name) || !isset($this->value)) { - throw new BuildException("Both name and value params are required.", $this->getLocation()); - } - $const = strtoupper($this->name); - if (defined($const)) { - $this->log("The constant $const has already been defined!", Project::MSG_ERR); - } else { - define($const, $this->value); - $this->log("Defined $const with value " . var_export($this->value, true), Project::MSG_INFO); - } - } -} diff --git a/airtime_mvc/library/propel/test/tree-test.php b/airtime_mvc/library/propel/test/tree-test.php deleted file mode 100644 index c807f32e9c..0000000000 --- a/airtime_mvc/library/propel/test/tree-test.php +++ /dev/null @@ -1,426 +0,0 @@ -"; - -error_reporting(E_ALL); - -$conf_path = realpath(dirname(__FILE__) . '/fixtures/treetest/build/conf/treetest-conf.php'); -if (!file_exists($conf_path)) { - echo "Make sure that you specify properties in conf/treetest.properties and " - ."build propel before running this script."; - exit; -} - -// Add PHP_CLASSPATH, if set -if (getenv("PHP_CLASSPATH")) { - set_include_path(getenv("PHP_CLASSPATH") . PATH_SEPARATOR . get_include_path()); -} - - // Add build/classes/ and classes/ to path -set_include_path( - realpath(dirname(__FILE__) . '/fixtures/treetest/build/classes') . PATH_SEPARATOR . - dirname(__FILE__) . '/../runtime/classes' . PATH_SEPARATOR . - get_include_path() -); - - -// Require classes. -require_once 'propel/Propel.php'; -require_once 'treetest/TestNodePeer.php'; - -function dumpTree($node, $querydb = false, $con = null) -{ - $opts = array('querydb' => $querydb, - 'con' => $con); - - $node->setIteratorOptions('pre', $opts); - - $indent = 0; - $lastLevel = $node->getNodeLevel(); - - foreach ($node as $n) - { - $nodeLevel = $n->getNodeLevel(); - $indent += $nodeLevel - $lastLevel; - echo str_repeat(' ', $indent); - echo $n->getNodePath() . " -> " . $n->getLabel(); - echo "\n"; - $lastLevel = $nodeLevel; - } -} - -try { - // Initialize Propel - Propel::init($conf_path); -} catch (Exception $e) { - die("Error initializing propel: ". $e->__toString()); -} - -try { - - $nodeKeySep = TestNodePeer::NPATH_SEP; - - echo "\nCreating initial tree:\n"; - echo "-------------------------------------\n"; - - $a = new Test(); - $a->setLabel("a"); - $a = TestNodePeer::createNewRootNode($a); - echo "Created 'a' as new root\n"; - - $b = new TestNode(); - $b->setLabel('b'); - $a->addChildNode($b); - echo "Added 'b' as first child of 'a'\n"; - - $c = new TestNode(); - $c->setLabel('c'); - $a->addChildNode($c); - echo "Added 'c' as second child of 'a'\n"; - - $f = new TestNode(); - $f->setLabel('f'); - $b->addChildNode($f); - echo "Added 'f' as first child of 'b'\n"; - - $d = new TestNode(); - $d->setLabel('d'); - $b->addChildNode($d, $f); - echo "Added 'd' as first child of 'b' before 'f' (insert before first child test - f is now second child)\n"; - - $e = new TestNode(); - $e->setLabel('e'); - $b->addChildNode($e, $f); - echo "Added 'e' as second child of 'b' before 'f' (insert before last child test - f is now third child)\n"; - - $g = new TestNode(); - $g->setLabel('g'); - $c->addChildNode($g); - echo "Added 'g' as first child of 'c'\n"; - - $h = new TestNode(); - $h->setLabel('h'); - $c->addChildNode($h); - echo "Added 'h' as second child of 'c'\n"; - - $i = new TestNode(); - $i->setLabel('i'); - $d->addChildNode($i); - echo "Added 'i' as first child of 'd'\n"; - - $j = new TestNode(); - $j->setLabel('j'); - $f->addChildNode($j); - echo "Added 'j' as first child of 'f'\n"; - - $k = new TestNode(); - $k->setLabel('k'); - $j->addChildNode($k); - echo "Added 'k' as first child of 'j'\n"; - - $l = new TestNode(); - $l->setLabel('l'); - $j->addChildNode($l); - echo "Added 'l' as second child of 'j'\n"; - - dumpTree($a); - - - echo "\n\nDeleting 'd' node sub-tree:\n"; - echo "-------------------------------------\n"; - - $d->delete(); - - dumpTree($a); - - - echo "\n\nMove node tests:\n"; - echo "-------------------------------------\n"; - - echo "Move 'j' sub-tree to 'b' before 'e' (move tree/insert before first child test):\n"; - $b->addChildNode($j, $e); - dumpTree($a); - - echo "\nMove 'j' sub-tree to 'c' (move tree after last child test):\n"; - $c->addChildNode($j); - dumpTree($a); - - echo "\nMove 'j' sub-tree to 'g' (move tree to first child test):\n"; - $g->addChildNode($j); - dumpTree($a); - - - echo "\n\nCreating new (in-memory) sub-tree:\n"; - echo "-------------------------------------\n"; - - $m = new TestNode(); - $m->setLabel('m'); - echo "Created 'm' as root of new sub-tree\n"; - - $n = new TestNode(); - $n->setLabel('n'); - $m->addChildNode($n); - echo "Added 'n' as first child of 'm'\n"; - - $o = new TestNode(); - $o->setLabel('o'); - $m->addChildNode($o); - echo "Added 'o' as second child of 'm'\n"; - - $r = new TestNode(); - $r->setLabel('r'); - $n->addChildNode($r); - echo "Added 'r' as first child of 'n'\n"; - - $p = new TestNode(); - $p->setLabel('p'); - $n->addChildNode($p, $r); - echo "Added 'p' as first child of 'n' before 'r' (insert before first child test - r is now second child)\n"; - - $q = new TestNode(); - $q->setLabel('q'); - $n->addChildNode($q, $r); - echo "Added 'q' as second child of 'n' before 'r' (insert before last child test - r is now third child)\n"; - - $s = new TestNode(); - $s->setLabel('s'); - $o->addChildNode($s); - echo "Added 's' as first child of 'o'\n"; - - $t = new TestNode(); - $t->setLabel('t'); - $o->addChildNode($t); - echo "Added 't' as second child of 'o'\n"; - - $u = new TestNode(); - $u->setLabel('u'); - $p->addChildNode($u); - echo "Added 'u' as first child of 'p'\n"; - - $v = new TestNode(); - $v->setLabel('v'); - $r->addChildNode($v); - echo "Added 'v' as first child of 'r'\n"; - - $w = new TestNode(); - $w->setLabel('w'); - $v->addChildNode($w); - echo "Added 'w' as first child of 'v'\n"; - - $x = new TestNode(); - $x->setLabel('x'); - $v->addChildNode($x); - echo "Added 'x' as second child of 'v'\n"; - - dumpTree($m); - - - echo "\n\nDeleting in-memory 'p' node sub-tree:\n"; - echo "-------------------------------------\n"; - - $p->delete(); - - dumpTree($m); - - - echo "\n\nMove in-memory node tests:\n"; - echo "-------------------------------------\n"; - - echo "Move 'v' sub-tree to 'n' before 'q' (move tree/insert before first child test):\n"; - $n->addChildNode($v, $q); - dumpTree($m); - - echo "\nMove 'v' sub-tree to 'o' (move tree after last child test):\n"; - $o->addChildNode($v); - dumpTree($m); - - echo "\nMove 'v' sub-tree to 's' (move tree to first child test):\n"; - $s->addChildNode($v); - dumpTree($m); - - - echo "\n\nAdd in-memory 'm' sub-tree to 'a':\n"; - echo "-------------------------------------\n"; - - $a->addChildNode($m); - - dumpTree($a); - - - echo "\n\nInsert new root node 'z' and retrieve descendants on demand (via querydb param in iterator):\n"; - echo "-------------------------------------\n"; - $z = new Test(); - $z->setLabel("z"); - $z = TestNodePeer::insertNewRootNode($z); - - dumpTree($z, true); - -} catch (Exception $e) { - die("Error creating initial tree: " . $e->__toString()); -} - -try { - - echo "\n\nTest retrieveRootNode() (without descendants)\n"; - echo "-------------------------------------\n"; - $root = TestNodePeer::retrieveRootNode(false); - dumpTree($root); - - - echo "\n\nTest retrieveRootNode() (with descendants)\n"; - echo "-------------------------------------\n"; - $root = TestNodePeer::retrieveRootNode(true); - dumpTree($root); - - $m_addr = array(1,1,3); - - echo "\n\nTest retrieveNodeByNP() for 'm' (without descendants)\n"; - echo "-------------------------------------\n"; - $node = TestNodePeer::retrieveNodeByNP(implode($nodeKeySep, $m_addr), false, false); - dumpTree($node); - - - echo "\n\nTest retrieveNodeByNP() for 'm' (with descendants)\n"; - echo "-------------------------------------\n"; - $node = TestNodePeer::retrieveNodeByNP(implode($nodeKeySep, $m_addr), false, true); - dumpTree($node); - - - echo "\n\nTest getAncestors() for 'x' in one query:\n"; - echo "-------------------------------------\n"; - - $criteria = new Criteria(); - $criteria->add(TestPeer::LABEL, 'x', Criteria::EQUAL); - - $nodes = TestNodePeer::retrieveNodes($criteria, true, false); - $ancestors = $nodes[0]->getAncestors(false); - - foreach ($ancestors as $ancestor) - echo $ancestor->getNodePath() . " -> " . $ancestor->getLabel() . "\n"; - - - echo "\n\nTest retrieveNodeByNP() for 'o' (with ancestors and descendants in one query):\n"; - echo "-------------------------------------\n"; - - $o_addr = array(1,1,3,2); - - $node = TestNodePeer::retrieveNodeByNP(implode($nodeKeySep, $o_addr), true, true); - - echo "ancestors:\n"; - foreach ($node->getAncestors(false) as $ancestor) - echo $ancestor->getNodePath() . " -> " . $ancestor->getLabel() . "\n"; - - echo "\ndescendants:\n"; - dumpTree($node); - - - echo "\n\nTest retrieveNodes() between 'b' and 'g' (without descendants)\n"; - echo "-------------------------------------\n"; - - $criteria = new Criteria(); - $criteria->add(TestPeer::LABEL, 'b', Criteria::GREATER_EQUAL); - $criteria->addAnd(TestPeer::LABEL, 'g', Criteria::LESS_EQUAL); - $criteria->addAscendingOrderByColumn(TestPeer::LABEL); - - $nodes = TestNodePeer::retrieveNodes($criteria, false, false); - - foreach ($nodes as $node) - echo $node->getNodePath() . " -> " . $node->getLabel() . "\n"; - - - echo "\n\nTest retrieveNodes() between 'b' and 'g' (with descendants)\n"; - echo "-------------------------------------\n"; - - $criteria = new Criteria(); - $criteria->add(TestPeer::LABEL, 'b', Criteria::GREATER_EQUAL); - $criteria->addAnd(TestPeer::LABEL, 'g', Criteria::LESS_EQUAL); - $criteria->addAscendingOrderByColumn(TestPeer::LABEL); - - $nodes = TestNodePeer::retrieveNodes($criteria, false, true); - - foreach ($nodes as $node) - { - dumpTree($node); - echo "\n"; - } - - -} catch (Exception $e) { - die("Error retrieving nodes: " . $e->__toString()); -} - -try { - - echo "\nCreating new tree:\n"; - echo "-------------------------------------\n"; - - $a = new Test(); - $a->setLabel("a"); - $a = TestNodePeer::createNewRootNode($a); - echo "Created 'a' as new root\n"; - - echo "\nAdding 10 child nodes:\n"; - echo "-------------------------------------\n"; - - $b = new TestNode(); - $b->setLabel('b'); - $a->addChildNode($b); - - $c = new TestNode(); - $c->setLabel('c'); - $a->addChildNode($c); - - $d = new TestNode(); - $d->setLabel('d'); - $a->addChildNode($d); - - $e = new TestNode(); - $e->setLabel('e'); - $a->addChildNode($e); - - $f = new TestNode(); - $f->setLabel('f'); - $a->addChildNode($f); - - $g = new TestNode(); - $g->setLabel('g'); - $a->addChildNode($g); - - $h = new TestNode(); - $h->setLabel('h'); - $a->addChildNode($h); - - $i = new TestNode(); - $i->setLabel('i'); - $a->addChildNode($i); - - $j = new TestNode(); - $j->setLabel('j'); - $a->addChildNode($j); - - $k = new TestNode(); - $k->setLabel('k'); - $a->addChildNode($k); - - echo "\ndescendants:\n"; - dumpTree($a); - - echo "\nRetrieving last node:\n"; - echo "-------------------------------------\n"; - - $last = $a->getLastChildNode(true); - echo "Last child node is '" . $last->getLabel() . "' (" . $last->getNodePath() . ")\n"; - -} catch (Exception $e) { - die("Error creating tree with > 10 nodes: " . $e->__toString()); -} - -if (!isset($argc)) echo ""; diff --git a/airtime_mvc/locale/cs_CZ/LC_MESSAGES/airtime.po b/airtime_mvc/locale/cs_CZ/LC_MESSAGES/airtime.po index 10ab9c6b03..e8a784a609 100644 --- a/airtime_mvc/locale/cs_CZ/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/cs_CZ/LC_MESSAGES/airtime.po @@ -1,3607 +1,4285 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: # Sourcefabric , 2013 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: Czech (Czech Republic) (http://www.transifex.com/projects/p/airtime/language/cs_CZ/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-01-29 15:10+0000\n" +"Last-Translator: andrey.podshivalov\n" +"Language-Team: Czech (Czech Republic) (http://www.transifex.com/projects/p/" +"airtime/language/cs_CZ/)\n" +"Language: cs_CZ\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: cs_CZ\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Audio přehrávač" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Prosím vyberte si možnost" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Odhlásit " +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "Žádné záznamy" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "Přehrát" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "Rok %s musí být v rozmezí 1753 - 9999" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "Zastavit" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s - %s - %s není platné datum" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Cue in" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s : %s : %s není platný čas" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "Nastavit Cue In" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Právě se přehrává" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Cue out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Přidat média" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "Nstavit Cue Out" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Knihovna" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "Kurzor" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Kalendář" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Pozvolné zesilování " +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "Systém" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Pozvolné zeslabování" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Nastavení" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Uživatelé" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Live stream" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Složky Médií" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Povoleno:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Streamy" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Typ streamu:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Technická podpora" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Bit frekvence:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Stav" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Typ služby:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Statistiky poslechovost" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Kanály:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "Historie" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Historie odvysílaného" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "Historie nastavení" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Server" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Nápověda" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Zadán neplatný znak " +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Začínáme" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Port" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "Návod k obsluze" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Jsou povolena pouze čísla." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "O aplikaci" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Heslo" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "Soubor s nahrávkou neexistuje" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Žánr" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "Zobrazit nahraný soubor metadat" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Zobrazit na SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Jméno" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Nahrát do SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Popis" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Znovu nahrát do SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Přípojný bod" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Zobrazit obsah" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Uživatelské jméno" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Přidat / Odebrat obsah" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Administrátorské jméno" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Odstranit celý obsah" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Administrátorské heslo" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Zrušit aktuální vysílání" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Získávání informací ze serveru..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "Upravit " -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Server nemůže být prázdný." +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Upravit" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Port nemůže být prázdný." +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Upravit vysílání" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Mount nemůže být prázdný s Icecast serverem." +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Smazat" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" -msgstr "Název:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Odstranit tuto instanci" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" -msgstr "Tvůrce:" +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Odstranit tuto instanci a všechny následující" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "Album:" +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "Přístup odepřen" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "Skladba:" +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "Nelze přetáhnout opakujícící se vysílání" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" -msgstr "Žánr:" +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "Nelze přesunout vysílání z minulosti" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" -msgstr "Rok:" +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Nelze přesunout vysílání do minulosti" + +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Nelze nastavit překrývající se vysílání." + +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "" +"Nelze přesunout nahrané vysílání méně než 1 hodinu před tím, než bude znovu " +"vysíláno." + +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "Vysílání bylo vymazáno, protože nahrané vysílání neexistuje!" + +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "Musíte počkat 1 hodinu před dalším vysíláním." + +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Název" + +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Tvůrce" + +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Album" + +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Délka" + +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Žánr" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Nálada" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Označení " + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Skladatel" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Autorská práva" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Rok " + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "Stopa" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Dirigent" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Jazyk" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "Čas začátku" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "Čas konce" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Přehráno" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "Probíhá importování souboru ..." + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Rozšířené možnosti hledání" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" -msgstr "Označení:" +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Počítaní posluchačů v čase" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" -msgstr "Skladatel:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "Nový" -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" -msgstr "Dirigent:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "Nový Playlist" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Nálada:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "Nový Smart blok" -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "Nový webstream" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" -msgstr "Autorská práva:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "Prázdný playlist" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "ISRC číslo:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "Vymazat" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" -msgstr "Internetová stránka:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Promíchat Playlist" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" -msgstr "Jazyk:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Promíchat" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Uložit playlist" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 #: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 #: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 #: airtime_mvc/application/forms/SupportSettings.php:161 #: airtime_mvc/application/controllers/LocaleController.php:283 #: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 #: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 msgid "Save" msgstr "Uložit" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Zrušit" - -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Uživatelské jméno:" - -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Heslo:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Playlist crossfade" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Ověřit heslo:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "Zobrazit / upravit popis" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Jméno:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Popis" -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Příjmení:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Zesílit: " -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "E-mail:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Zeslabit: " -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Mobilní telefon:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "Neotevřený playlist" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Rozšířit statický blok" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Rozšířit dynamický blok" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "Typ uživatele:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "prázdný Smart blok" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Host" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Prázdný playlist" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "DJ" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "UKázat Waveform" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Program manager" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Cue in: " -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Administrátor" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(hh:mm:ss.t)" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Přihlašovací jméno není jedinečné." +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Cue out: " -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Barva pozadí:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Původní délka:" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Barva textu:" +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(ss.t)" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Datum zahájení:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "Prázný obsah smart block." -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Datum ukončení:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "Smart block není otevřený" -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Vysílání:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%s Airtime %s %s ,, open radio software pro plánování a řízení vzdálené " +"stanice. %s" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "Všechna má vysílání:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "" +"%s Sourcefabric %s o.p.s. Airtime je distribuován podle %s GNU GPL v.3 %s" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "dny" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Vítejte v Airtime!" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "Den musí být zadán" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "" +"Zde je návod, jak můžete začít používat Airtime pro automatizaci svého " +"vysílání: " -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "Čas musí být zadán" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Začněte tím, že přidáte soubory do knihovny pomocí 'Přidat média' tlačítka v " +"menu. Můžete jednoduše přetáhnout soubory do tohoto okna." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Musíte počkat alespoň 1 hodinu před dalším vysíláním" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Vytvořte vysílání tím, že v menu půjdete do 'Kalendáře' a kliknete na ikonu " +"'+ Show'. Může se jednat buď o jednorázové nebo opakující se vysílání. " +"Přidávat vysílání mohou pouze administrátoři a manažeři programu." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Importovaná složka:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Média přidáte do vysílání tak, že půjdete do svého vysílání v Plánovacím " +"kalendáři a kliknutím na levé tlačítko myši se vám otevřou možnosti z " +"kterých si vyberte 'Přidat / odstranit obsah'" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Sledované složky:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Vyberte si média z levého okna a přetáhněte je do svého vysílání v pravém " +"okně." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Neplatný adresář" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "Pak můžete začít!" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Hledat uživatele:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "Pro podrobnější nápovědu si přečtěte %suživatelský manuál%s." -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "DJs:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Live stream" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Přihlásit" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Sdílet" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Opište znaky, které vidíte na obrázku níže." +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Vyberte stream:" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Název stanice" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "vypnout zvuk" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "Defoltní nastavení doby plynulého přechodu" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "zapnout zvuk" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "zadejte čas v sekundách 0{.0}" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "Vše" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "Přednastavení Fade In:" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "Přednastavení Fade Out:" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Povolit vzdáleným webovým stránkám přístup k \"rozpisu\" Info? %s (Povolit tuto funkci, aby front-end widgety fungovaly.)" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Vypnuto" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "URL streamu:" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Povoleno" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Defaultní délka:" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Výchozí jazyk rozhraní" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "Žádný webstream" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "Časové pásmo stanice" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "Název:" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "Týden začíná" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "Tvůrce:" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Neděle" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "Album:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Pondělí" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "Skladba:" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Úterý" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Délka:" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Středa" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Vzorová frekvence:" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Čtvrtek" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Bit frekvence:" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Pátek" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Nálada:" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Sobota" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "Žánr:" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "Link:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "Rok:" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Typ opakování:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "Označení:" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "týdně" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "každé 2 týdny" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "Skladatel:" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "každé 3 týdny" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "Dirigent:" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "každé 4 týdny" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "Autorská práva:" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "měsíčně" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "ISRC číslo" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Vyberte dny:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "Internetová stránka:" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Ne" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" +msgstr "Jazyk:" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Po" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "Cesta souboru:" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Út" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Název:" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "St" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Popis:" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Čt" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Web Stream" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Pá" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Dynamický Smart Block" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "So" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Statický Smart Block" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "Opakovat:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Audio stopa" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "den v měsíci" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Obsah Playlistu: " -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "den v týdnu" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Obsah statistického Smart Blocku: " -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "Nekončí?" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Kritéria dynamickeho Smart Blocku: " -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "Datum ukončení musí být po počátečním datumu" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Omezit na " -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "Prosím vyberte den opakování" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Potvrďte nové heslo" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "Vybrat instanci show" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "Potvrzené heslo neodpovídá vašemu heslu." +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "Žádné vysílání" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Získat nové heslo" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "Najdi" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Vyberte kritéria" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "%s Nastavení" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Album" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Vyberte soubor" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Kvalita (Kbps)" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Nastavit" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Aktuálně importovaný soubor:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Skladatel" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Přidat" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Dirigent" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Znovu skenovat sledovaný adresář (Tato funkce je užitečná pokud se síť " +"rozrůstá a nemusí být včas synchronizována s Airitme)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Autorská práva" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Odebrat sledovaný adresář" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Tvůrce" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "Nesledujete žádné mediální soubory." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Zakódováno" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Požadováno)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Pomozte Airtime vylepšit tím, že dáte Sourcefabric vědět, jak jej používáte. " +"Tyto informace budeme pravidelně shromažďovat, abychom zlepšili váše " +"uživatelské zkušenosti.%sKlikněte na odkaz 'Zaslat Váš názor' a my " +"zajistíme, že se budou funkce, které používáte, neustále zlepšovat." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Označení " +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "" +"Klikněte na políčko níže pro podporu své stanice na %s Sourcefabric.org %s ." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Jazyk" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(Za účelem podpory vaší stanice musí být povolena funkce 'Zaslat Váš názor')." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Naposledy změněno" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(pouze pro ověřovací účely, nebude zveřejněno)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Naposledy vysíláno" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Poznámka: Cokoli většího než 600x600 bude zmenšeno." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Délka" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Zobrazit co posílám " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Mime" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Zásady ochrany osobních údajů Sourcefabric " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Nálada" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Najít vysílání" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Vlastník" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Filtrovat dle vysílání:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Opakovat Gain" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "Nastavení Email / Mail Serveru" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Vzorkovací frekvence (kHz)" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "Nastavení SoundCloud " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Název" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Vyberte dny:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Číslo stopy" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Odstranit" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Nahráno" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Stream " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Internetové stránky" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Dodatečné možnosti" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Rok " +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "Následující informace se zobrazí u posluchačů na jejich přehrávačích:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Vyberte modifikátor" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(Webová stránka vaší rádiové stanice)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "obsahuje" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "URL streamu: " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "neobsahuje" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "Připojovací URL: " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "je" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Obnovit heslo" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "není" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Registrovat Airtime" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "začíná s" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "" +"Pomozte vylepšit Airtime tím, že nám dáte vědět, jak ho používáte. Tyto " +"informace se budou shromažďovat pravidelně tak aby se zvýšil Váš uživatelský " +"zážitek.%sKlikněte na 'Ano, pomoci Airtime', a my vás ujišťujeme, že funkce, " +"které používáte, budou neustále zlepšovány." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "končí s" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Klikněte na políčko níže pro inzerci váší stanice na %sSourcefabric.org%s. " +"Pro podpoření vaší stanice musí být povolena funkce 'Zaslat váš názor'. Tyto " +"údaje budou navíc shromažďovány na podporu zpětné vazby." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "je větší než" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Pravidla a podmínky" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "je menší než" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Nastavení vstupního streamu" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "se pohybuje v rozmezí" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "URL připojení Master zdoje:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "hodiny" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Přepsat" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "minuty" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "OK" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "položka" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "Obnovit" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Nastavit chytrý typ bloku:" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "URL připojení Show Source:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Statický" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Možnosti Smart Blocku" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Dynamický" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "nebo" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Povolit Opakujte skladby:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "a" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Omezit na" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr " do " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Generovat obsah playlistu a uložit kritéria" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "soubory splňují kritéria" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Generovat" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "soubor splňuje kritéria" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Promíchat obsah playlistu" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Opakovat dny:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Promíchat" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Filtrovat historii" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "Limit nemůže být prázdný nebo menší než 0" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Zavřít" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "Limit nemůže být větší než 24 hodin" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Přidat toto vysílání" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "Hodnota by měla být celé číslo" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Aktualizace vysílání" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "500 je max hodnota položky, kterou lze nastavit" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "Co" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "Musíte vybrat kritéria a modifikátor" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "Kdy" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "'Délka' by měla být ve formátu '00:00:00'" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Vložení Live Streamu" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "Hodnota by měla být v časový formát (např. 0000-00-00 nebo 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Nahrát a znovu vysílat" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "Hodnota musí být číslo" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Kdo" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "Hodnota by měla být menší než 2147483648" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Styl" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "Hodnota by měla mít méně znaků než %s" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Začátek" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "Hodnota nemůže být prázdná" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Nastavení Streamu" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Automatické přepínání vypnuto" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Globální nastavení" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Automatické přepínání zapnuto" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "dB" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Prolnutí při přepnutí (s)" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Nastavení výstupního streamu" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "Zadejte čas v sekundách 00{0.000000}" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Správa složek médií" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Master uživatelské jméno" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Defaultní aplikace Zend Frameworku " -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Master uživatelské jméno" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Stránka nebyla nalezena!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "Master zdrojové URL připojení " +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "Stránka, kterou hledáte, neexistuje!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "Zobrazit zdrojové URL připojení" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "Vzory přehledu logů" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Hlavní zdrojový port" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "Vzory přehledu logů nejsou" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Hlavní zdrojový přípojný bod" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "Nastavit jako default" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Zobrazit zdrojový port" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "Nový vzor přehledu logů" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Zobrazit zdrojový přípojný bod" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "Vzory přehledu souboru" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "Nemůžete použít stejný port jako Master DJ port." +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "Nový vzor přehledu souboru" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Port %s není k dispozici" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "Nový vzor přehledu souboru" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Telefon:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "Vytvořit soubor přehledu nastavení" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Webová stránka stanice:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "Vytvořit vzor přehledu logů" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Stát:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Jméno" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "Město:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "Přidat elementy" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Popis stanice:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "Přidat nové pole" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Logo stanice:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "Nastavit defolní šablnu" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Odeslat zpětnou vazbu" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "Nové heslo" + +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "Prosím zadejte a potvrďte své nové heslo v políčkách níže." -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Přihlásit" + +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." msgstr "" +"Vítejte v on-line demo verzi Airtime! Můžete se přihlásit pomocí " +"uživatelského jména 'admin' a hesla 'admin'." -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." msgstr "" +"Prosím zadejte e-mailovou adresu ke svému účtu. Obdržíte e-mailem odkaz na " +"vytvoření nového hesla." -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "Musíte souhlasit se zásadami ochrany osobních údajů." +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "Odeslat e-mail" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Hodnota je požadována a nemůže zůstat prázdná" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "E-mail byl odeslán" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "Čas začátku" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Zpět na přihlašovací stránku" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "Čas konce" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "Přehled logu" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "Žádné vysílání" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "Shrnutí souboru" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Nahráno z Line In?" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "Shrnutí show" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Vysílat znovu?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "předchozí" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "přehrát" -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Použít ověření uživatele:" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "pauza" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Uživatelské jméno" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "další" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Uživatelské heslo" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "stop" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "Uživatelské jméno musí být zadáno." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "max. hlasitost" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "Heslo musí být zadáno." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Nutná aktualizace" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "E-mail" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 +#, php-format +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." +msgstr "" +"Chcete-li přehrávat média, budete si muset buď nastavit svůj prohlížeč na " +"nejnovější verzi nebo aktualizovat svůj%sFlash plugin%s." -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Obnovení hesla" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Servis" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Hardware Audio výstup" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Doba provozuschopnosti" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Typ výstupu" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Metadata Icecast Vorbis" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Paměť" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Označení streamu:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Airtime verze" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Umělec - Název" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Velikost disku" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Vysílání - Umělec - Název" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Správa uživatelů" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Název stanice - Název vysílání" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "Nový uživatel" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Off Air metadata" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "id" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Povolit Replay Gain" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Uživatelské jméno" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Replay Gain Modifikátor" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "Jméno" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%hodnota%' není platná e-mailová adresa v základním formátu local-part@hostname" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Příjmení" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" -msgstr "'%hodnota%' neodpovídá formátu datumu '%formátu%'" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "Typ uživatele" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" -msgstr "'%hodnota%' je kratší než požadovaných %min% znaků" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Předchozí:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" -msgstr "'%hodnota%' je více než %max% znaků dlouhá" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Další:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" -msgstr "'%hodnota%' není mezi '%min%' a '%max%', včetně" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Zdrojové Streamy" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" -msgstr "Hesla se neshodují" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Hlavní zdroj" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%hodnota%' nesedí formát času 'HH:mm'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Zobrazit zdroj" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Začátek datum/čas:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Naplánované vysílání" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Konec datum/čas:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "ON AIR" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Doba trvání:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Poslech" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Časová zó" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Čas stanice" + +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Váše zkušební období vyprší " + +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "dny" + +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Kupte si svůj Airtime" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Opakovat?" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "Můj účet" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Nelze vytvořit vysílání v minulosti" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Uživatelské jméno:" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Nelze měnit datum/čas vysílání, které bylo již spuštěno" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Heslo:" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "Datum/čas ukončení nemůže být v minulosti" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "Opište znaky, které vidíte na obrázku níže." -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Nelze mít dobu trvání < 0m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Zadán neplatný znak " -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Nelze nastavit dobu trvání 00h 00m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "Den musí být zadán" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Nelze mít dobu trvání delší než 24 hodin" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "Čas musí být zadán" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Nelze nastavit překrývající se vysílání." +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "Musíte počkat alespoň 1 hodinu před dalším vysíláním" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Název:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Použít Airtime ověření:" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Pořad bez názvu" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Použít ověření uživatele:" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Uživatelské jméno" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Popis:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Uživatelské heslo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" -msgstr "Automaticky nahrát nahrané vysílání" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "Uživatelské jméno musí být zadáno." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" -msgstr "Povolit SoundCloud nahrávání" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "Heslo musí být zadáno." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" -msgstr "Automaticky označit soubory \"Ke stažení\" na SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Povoleno:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" -msgstr "SoundCloud Email" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Typ streamu:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" -msgstr "SoundCloud heslo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Typ služby:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" -msgstr "SoundCloud Tagy: (oddělit tagy mezerami)" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Kanály:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" -msgstr "Výchozí žánr:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" -msgstr "Výchozí typ skladby:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Stereo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" -msgstr "Původní" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Server" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "Remix" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Port" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "Live" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Jsou povolena pouze čísla." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "Záznam" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Heslo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "Mluvený" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "Podcast" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Přípojný bod" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "Demo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Administrátorské jméno" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "Práce v procesu" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Administrátorské heslo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "Stem" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Získávání informací ze serveru..." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "Smyčka" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Server nemůže být prázdný." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "Zvukový efekt" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Port nemůže být prázdný." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "One Shot ukázka" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Mount nemůže být prázdný s Icecast serverem." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "Další" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Importovaná složka:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Výchozí licence:" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Sledované složky:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "Práce je ve veřejné doméně" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Neplatný adresář" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "Všechna práva jsou vyhrazena" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Hodnota je požadována a nemůže zůstat prázdná" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Creative Commons označení" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'%hodnota%' není platná e-mailová adresa v základním formátu local-" +"part@hostname" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Creative Commons nekomerční" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" +msgstr "'%hodnota%' neodpovídá formátu datumu '%formátu%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Creative Commons Nezasahujte do díla" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" +msgstr "'%hodnota%' je kratší než požadovaných %min% znaků" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Creative Commons Zachovejte licenci" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" +msgstr "'%hodnota%' je více než %max% znaků dlouhá" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Creative Commons nekomerční Nezasahujte do díla" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" +msgstr "'%hodnota%' není mezi '%min%' a '%max%', včetně" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Creative Commons nekomerční Zachovejte licenci" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" +msgstr "Hesla se neshodují" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "Časové pásmo uživatelského rozhraní" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Nahráno z Line In?" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "Povolit systému odesílat e-maily (Obnovení hesla)" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Vysílat znovu?" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Odesílatel E-mailu Obnovení hesla" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Barva pozadí:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Konfigurace poštovního serveru" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Barva textu:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Vyžaduje ověření" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "E-mail" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Poštovní server" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Obnovení hesla" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "E-mailová adresa" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Zrušit" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "Zkontrolujte prosím zda je správné administrátorské jméno/heslo v Systému->Streamovací stránka." +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Ověřit heslo:" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Webstream bez názvu" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Jméno:" -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Webstream uložen." +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Příjmení:" -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Neplatná forma hodnot." +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "E-mail:" -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Prosím, zadejte své uživatelské jméno a heslo" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Mobilní telefon:" -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Zadali jste chybně uživatelské jméno nebo heslo. Prosím, zkuste zadat znovu." +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "E-mail se nepodařilo odeslat. Zkontrolujte nastavení poštovního serveru a ujistěte se, že byl správně nakonfigurován." +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "Zadaný e-mail nebyl nalezen." +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "Časové pásmo uživatelského rozhraní" -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Znovu spustit vysílaní %s od %s na %s" +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Přihlašovací jméno není jedinečné." -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Stáhnout" +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Hardware Audio výstup" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "Uživatel byl úspěšně přidán!" +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Typ výstupu" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "Uživatel byl úspěšně aktualizován!" +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Metadata Icecast Vorbis" -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Nastavení úspěšně aktualizováno!" +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Označení streamu:" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Stránka nebyla nalezena" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Umělec - Název" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Chyba aplikace" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Vysílání - Umělec - Název" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Nahrávání:" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Název stanice - Název vysílání" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Mastr stream" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Off Air metadata" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Live Stream" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Povolit Replay Gain" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Nic není naplánované" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Replay Gain Modifikátor" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Stávající vysílání:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" +msgstr "Automaticky nahrát nahrané vysílání" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Stávající" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" +msgstr "Povolit SoundCloud nahrávání" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "Používáte nejnovější verzi" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +msgstr "Automaticky označit soubory \"Ke stažení\" na SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "Nová verze k dispozici: " +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" +msgstr "SoundCloud Email" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "Tato verze bude brzy zastaralá." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" +msgstr "SoundCloud heslo" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "Tato verze již není podporována." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" +msgstr "SoundCloud Tagy: (oddělit tagy mezerami)" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Prosím aktualizujte na " +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" +msgstr "Výchozí žánr:" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Přidat do aktuálního playlistu" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" +msgstr "Výchozí typ skladby:" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Přidat do aktuálního chytrého bloku" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" +msgstr "Původní" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Přidat 1 položku" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "Remix" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Přidat %s položek" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "Live" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "Můžete přidat skladby pouze do chytrých bloků." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "Záznam" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "Můžete přidat pouze skladby, chytré bloky a webstreamy do playlistů." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "Mluvený" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "Prosím vyberte si pozici kurzoru na časové ose." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "Podcast" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Upravit metadata" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "Demo" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Přidat k vybranému vysílání" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "Práce v procesu" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Vyberte" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "Stem" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Vyberte tuto stránku" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "Smyčka" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Zrušte označení této stránky" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "Zvukový efekt" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Zrušte zaškrtnutí všech" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "One Shot ukázka" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Jste si jisti, že chcete smazat vybranou položku(y)?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "Další" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "Naplánováno" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Výchozí licence:" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "Playlist/Blok" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "Práce je ve veřejné doméně" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Rychlost přenosu" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "Všechna práva jsou vyhrazena" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Vzorkovací rychlost" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Creative Commons označení" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Nahrávání ..." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Creative Commons nekomerční" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "Vše" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Creative Commons Nezasahujte do díla" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Soubory" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Creative Commons Zachovejte licenci" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Playlisty" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Creative Commons nekomerční Nezasahujte do díla" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Chytré bloky" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Creative Commons nekomerční Zachovejte licenci" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Webové streamy" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Název stanice" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Neznámý typ: " +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "Defoltní nastavení doby plynulého přechodu" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Jste si jisti, že chcete smazat vybranou položku?" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "zadejte čas v sekundách 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Probíhá nahrávání..." +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "Přednastavení Fade In:" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Získávání dat ze serveru..." +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "Přednastavení Fade Out:" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "Soundcloud id tohoto souboru je: " +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Povolit vzdáleným webovým stránkám přístup k \"rozpisu\" Info? %s (Povolit " +"tuto funkci, aby front-end widgety fungovaly.)" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "Došlo k chybě při nahrávání do SoundCloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Vypnuto" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Chybný kód: " +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Povoleno" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Chyba msg: " +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Výchozí jazyk rozhraní" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "Vstup musí být kladné číslo" +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "Časové pásmo stanice" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "Vstup musí být číslo" +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "Týden začíná" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "Vstup musí být ve formátu: rrrr-mm-dd" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Neděle" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "Vstup musí být ve formátu: hh:mm:ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Pondělí" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "Právě nahráváte soubory. %sPřechodem na jinou obrazovku zrušíte nahrávací proces. %sOpravdu chcete opustit tuto stránku?" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Úterý" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "Otevřít Media Builder" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Středa" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "prosím nastavte čas '00:00:00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Čtvrtek" + +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Pátek" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "prosím nastavte čas v sekundách '00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Sobota" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Váš prohlížeč nepodporuje přehrávání souborů tohoto typu: " +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Datum zahájení:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Dynamický blok není možno ukázat předem" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Datum ukončení:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Omezeno na: " +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Telefon:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Playlist uložen" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Webová stránka stanice:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "Playlist zamíchán" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Stát:" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime si není jistý statusem souboru. To se může stát, když je soubor na vzdálené jednotce, která je nepřístupná nebo když je soubor v adresáři, který již není 'sledovaný'." +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "Město:" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "Počítat posluchače %s : %s" +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Popis stanice:" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Připomenout za 1 týden" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Logo stanice:" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Nikdy nepřipomínat" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Odeslat zpětnou vazbu" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Ano, pomoc Airtime" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Propagovat mou stanici na Sourcefabric.org" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "Obrázek musí být buď jpg, jpeg, png nebo gif" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "" +"Zaškrtnutím tohoto políčka potvrzuji, že souhlasím s podmínkami Sourcefabric " +"%sv oblasti ochrany osobních údajů%s ." -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "Statický chytrý blok uloží kritéria a vygeneruje obsah bloku okamžitě. To vám umožní upravit a zobrazit je v knihovně před přidáním do vysílání." +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "Musíte souhlasit se zásadami ochrany osobních údajů." -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "Dynamický chytrý blok bude ukládat pouze kritéria. Obsah bloku bude generován během přidání do vysílání. Nebudete moci prohlížet a upravovat obsah v knihovně." +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%hodnota%' nesedí formát času 'HH:mm'" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "Požadované délky bloku nebude dosaženo pokud Airtime nenalezne dostatek unikátních skladeb, které odpovídají vašim kritériím. Povolte tuto možnost, pokud chcete, aby byly skladby přidány do chytrého bloku vícekrát." +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Začátek datum/čas:" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Chytré bloky promíchány" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Konec datum/čas:" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Chytrý blok generován a kritéria uložena" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Doba trvání:" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Chytrý blok uložen" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Časová zó" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Zpracovává se..." +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Opakovat?" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Vyberte složku k uložení" +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Nelze vytvořit vysílání v minulosti" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Vyberte složku ke sledování" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "Nelze měnit datum/čas vysílání, které bylo již spuštěno" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Jste si jisti, že chcete změnit složku úložiště ?\nTímto odstraníte soubry z vaší Airtime knihovny!" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "Datum/čas ukončení nemůže být v minulosti" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Správa složek médií" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Nelze mít dobu trvání < 0m" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Jste si jisti, že chcete odstranit sledovanou složku?" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Nelze nastavit dobu trvání 00h 00m" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "Tato cesta není v současné době dostupná." +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Nelze mít dobu trvání delší než 24 hodin" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "Některé typy streamů vyžadují zvláštní konfiguraci. Detaily o přístupu %sAAC+ Support%s nebo %sOpus Support%s jsou poskytovány." +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Pořad bez názvu" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Připojeno k streamovacímu serveru" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Hledat uživatele:" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "Stream je vypnut" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "DJs:" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Nelze se připojit k streamovacímu serveru" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Potvrďte nové heslo" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Pokud je Airtime za routerem nebo firewall, budete možná muset nastavit přesměrování portu a tato informace pole budou nesprávná. V tomto případě budete muset ručně aktualizovat pole tak, aby ukazovalo správně host/port/mount, do kterých se Váš DJ potřebuje připojit. Povolené rozpětí je mezi 1024 a 49151." +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "Potvrzené heslo neodpovídá vašemu heslu." -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "Pro více informací si prosím přečtěte %s Airtime manuál %s" +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Získat nové heslo" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Zaškrtněte tuto volbu pro zapnutí metadat OGG streamů (metadata streamu jsou název sklady, umělec a název vysílání, které se zobrazí v audio přehrávači). VLC a mpřehrávač mají vážné chyby při přehrávání OGG/VORBIS streamu, který má povolené metadata informace: budou odpojena od streamu po každé písni. Pokud používáte stream OGG a vaši posluchači nevyžadují podporu těchto audio přehrávačů, pak neváhejte a tuto možnost povolte." +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "Typ uživatele:" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Zaškrtněte toto políčko pro automatické vypnutí zdroje Master/Vysílání na odpojení zdroje." +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Host" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Zaškrtněte toto políčko pro automatické zapnutí Master/Vysílání zdroj na připojení zdroje." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "DJ" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Pokud váš Icecast server očekává uživatelské jméno 'zdroj', může toto pole zůstat prázdné." +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Program manager" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "Pokud váš live streaming klient nepožádá o uživatelské jméno, toto pople bz mělo být 'zdroj'." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Administrátor" + +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "ISRC číslo:" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "Pokud změníte jméno uživatele nebo heslo hodnoty povoleného streamu playout motor bude restartován a vaši posluchači uslyší ticho po dobu 5-10 sekund. Změna následující pole nezpůsobí restartovaní: Stream Label (Globální nastavení) a Switch Transition Fade(s), Master Username, and Master Password (Nastavení vstupního streamu). Pokud Airtime pořizuje záznam, a pokud změna způsobí restart playoutu, nahrávaní bude přerušeno." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Vysílání:" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "Toto je administrátorské jméno a heslo pro Icecast / SHOUTcast k získání statistik poslechovosti." +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "Všechna má vysílání:" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "" +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "Link:" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "Žádný výsledek nenalezen" +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Typ opakování:" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "Toto následuje stejný bezpečnostní vzor pro výsílání: pouze uživatelé přiřazení k vysílání se mohou připojit." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "týdně" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Zadejte vlastní ověření, které bude fungovat pouze pro toto vysílání." +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "každé 2 týdny" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "Ukázka vysílání již neexistuje!" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "každé 3 týdny" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "Varování: Vysílání nemohou být znovu linkována." +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "každé 4 týdny" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "Propojením vašich opakujících se show, jakákoliv média zařazena v jakékoliv opakující se show bude také zařazena do dalších opakujících se show." +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "měsíčně" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "Časové pásmo je nastaveno v časovém pásmu stanice defoltně. Show v kalendáři bude zobrazena v lokálním čase nastaveném časovým pásmem vašeho uživatelského rozhraní ve vašem uživatelském nastavení. " +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Vyberte dny:" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Vysílání" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "Ne" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "Vysílání je prázdné" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Po" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1m" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Út" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5m" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "St" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10m" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Čt" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15m" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Pá" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30m" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "So" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60m" +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "Opakovat:" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Získávání dat ze serveru ..." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "den v měsíci" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "Toto vysílání nemá naplánovaný obsah." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "den v týdnu" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "Toto vysílání není zcela vyplněno." +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "Nekončí?" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "Leden" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "Datum ukončení musí být po počátečním datumu" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "Únor" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "Prosím vyberte den opakování" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "Březen" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "Povolit systému odesílat e-maily (Obnovení hesla)" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "Duben" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Odesílatel E-mailu Obnovení hesla" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "Květen" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Konfigurace poštovního serveru" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "Červen" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Vyžaduje ověření" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "Červenec" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Poštovní server" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "Srpen" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "E-mailová adresa" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "Září" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Vyberte kritéria" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "Říjen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Kvalita (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "Listopad" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "Prosinec" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Cue in" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Leden" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Cue out" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Únor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Zakódováno" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Březen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Naposledy změněno" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Duben" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Naposledy vysíláno" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Červen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Mime" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Červenec" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Vlastník" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Srpen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Opakovat Gain" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Září" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Vzorkovací frekvence (kHz)" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Říjen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Číslo stopy" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Listopad" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Nahráno" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Prosinec" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Internetové stránky" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "dnes" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Vyberte modifikátor" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "den" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "obsahuje" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "týden" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "neobsahuje" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "měsíc" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "je" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Vysílání delší než naplánovaný čas bude ukončeno začátkem dalšího vysílání." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "není" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Zrušit aktuální vysílání?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "začíná s" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Zastavit nahrávání aktuálního vysílání?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "končí s" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "OK" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "je větší než" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Obsah vysílání" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "je menší než" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Odstranit veškerý obsah?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "se pohybuje v rozmezí" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Odstranit vybranou položku(y)?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "hodiny" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Začátek" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "minuty" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "Konec" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "položka" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Trvání" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Nastavit chytrý typ bloku:" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Vysílání prázdné" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Statický" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Nahrávání z Line In" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Dynamický" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Náhled stopy" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Povolit Opakujte skladby:" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Nelze naplánovat mimo vysílání." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Omezit na" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Posunutí 1 položky" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Generovat obsah playlistu a uložit kritéria" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Posunutí %s položek" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Generovat" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "Fade Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Promíchat obsah playlistu" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "Cue Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "Limit nemůže být prázdný nebo menší než 0" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "Prvky Waveform jsou k dispozici v prohlížeči podporující Web Audio API" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "Limit nemůže být větší než 24 hodin" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Vybrat vše" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "Hodnota by měla být celé číslo" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Nic nevybrat" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "500 je max hodnota položky, kterou lze nastavit" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Odebrat duplicitní skladby" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "Musíte vybrat kritéria a modifikátor" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Odebrat vybrané naplánované položky" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "'Délka' by měla být ve formátu '00:00:00'" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Přejít na aktuálně přehrávanou skladbu" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"Hodnota by měla být v časový formát (např. 0000-00-00 nebo 0000-00-00 " +"00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Zrušit aktuální vysílání" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "Hodnota musí být číslo" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Otevřít knihovnu pro přidání nebo odebrání obsahu" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "Hodnota by měla být menší než 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Přidat / Odebrat obsah" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "Hodnota by měla mít méně znaků než %s" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "používá se" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "Hodnota nemůže být prázdná" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Disk" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Automatické přepínání vypnuto" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Podívat se" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Automatické přepínání zapnuto" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Otevřít" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Prolnutí při přepnutí (s)" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "Hosté mohou dělat následující:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "Zadejte čas v sekundách 00{0.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "Zobrazit plán" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Master uživatelské jméno" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "Zobrazit obsah vysílání" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Master uživatelské jméno" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "DJ může dělat následující:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "Master zdrojové URL připojení " -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Spravovat přidělený obsah vysílání" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "Zobrazit zdrojové URL připojení" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Import media souborů" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Hlavní zdrojový port" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Vytvořit playlisty, smart bloky a webstreamy" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Hlavní zdrojový přípojný bod" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Spravovat obsah vlastní knihovny" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Zobrazit zdrojový port" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "Progam Manažeři může dělat následující:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Zobrazit zdrojový přípojný bod" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "Zobrazit a spravovat obsah vysílání" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "Nemůžete použít stejný port jako Master DJ port." -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Plán ukazuje" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Port %s není k dispozici" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "Spravovat celý obsah knihovny" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" +"Airtime Copyright © Sourcefabric o.p.s. Všechna práva vyhrazena." +"%sSpravován a distribuován pod licencí GNU GPL v.3 od %sSourcefabric o.p.s.%s" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Správci mohou provést následující:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Odhlásit " -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Správa předvoleb" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "Přehrát" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "Správa uživatelů" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "Zastavit" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "Správa sledovaných složek" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "Nastavit Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "Zobrazit stav systému" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "Nstavit Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Přístup playout historii" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "Kurzor" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "Zobrazit posluchače statistiky" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Pozvolné zesilování " -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Zobrazit / skrýt sloupce" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Pozvolné zeslabování" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "Z {z} do {do}" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Audio přehrávač" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Prosím, zadejte své uživatelské jméno a heslo" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "rrrr-mm-dd" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "" +"Zadali jste chybně uživatelské jméno nebo heslo. Prosím, zkuste zadat znovu." -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"E-mail se nepodařilo odeslat. Zkontrolujte nastavení poštovního serveru a " +"ujistěte se, že byl správně nakonfigurován." -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "Zadaný e-mail nebyl nalezen." -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Ne" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Nahrávání:" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Po" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Mastr stream" + +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Live Stream" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Út" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Nic není naplánované" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "St" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Stávající vysílání:" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Čt" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Stávající" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Pá" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "Používáte nejnovější verzi" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "So" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "Nová verze k dispozici: " -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Zavřít" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "Tato verze bude brzy zastaralá." -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Hodina" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "Tato verze již není podporována." -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Minuta" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Prosím aktualizujte na " -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Hotovo" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Přidat do aktuálního playlistu" -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Vyberte soubory" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Přidat do aktuálního chytrého bloku" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Přidejte soubory do fronty pro nahrávání a klikněte na tlačítko start." +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Přidat 1 položku" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Stav" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "Přidat %s položek" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Přidat soubory." +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "Můžete přidat skladby pouze do chytrých bloků." -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Zastavit Nahrávání" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "Můžete přidat pouze skladby, chytré bloky a webstreamy do playlistů." -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Začít nahrávat" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "Prosím vyberte si pozici kurzoru na časové ose." -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Přidat soubory" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Upravit metadata" -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "Nahráno %d / %d souborů" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Přidat k vybranému vysílání" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "Nedostupné" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Vyberte" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Soubory přetáhněte zde." +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Vyberte tuto stránku" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "Chybná přípona souboru" +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Zrušte označení této stránky" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "Chybná velikost souboru." +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Zrušte zaškrtnutí všech" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "Chybný součet souborů." +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Jste si jisti, že chcete smazat vybranou položku(y)?" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Chyba Init." +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "Naplánováno" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "Chyba HTTP." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "Playlist/Blok" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Chyba zabezpečení." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Rychlost přenosu" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Obecná chyba. " +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Vzorkovací rychlost" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "CHyba IO." +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "Nahrávání ..." -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "Soubor: %s" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Soubory" -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d souborů ve frontě" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Playlisty" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "Soubor: %f , velikost: %s , max. velikost souboru:% m" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Chytré bloky" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "Přidané URL může být špatné nebo neexistuje" +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Webové streamy" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Chyba: Soubor je příliš velký: " +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Neznámý typ: " -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Chyba: Neplatná přípona souboru: " +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Jste si jisti, že chcete smazat vybranou položku?" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "Nastavit jako default" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Probíhá nahrávání..." -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "Vytvořit vstup" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Získávání dat ze serveru..." -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "Editovat historii nahrávky" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "Soundcloud id tohoto souboru je: " -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "Kopírovat %s řádků %s do schránky" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "Došlo k chybě při nahrávání do SoundCloud." -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%s náhled tisku %s k vytištění této tabulky použijte funkci tisku ve vašem prohlížeči. Po dokončení stiskněte escape." +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Chybný kód: " -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "Nemáte oprávnění k odpojení zdroje." +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Chyba msg: " -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "Neexistuje zdroj připojený k tomuto vstupu." +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "Vstup musí být kladné číslo" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "Nemáte oprávnění ke změně zdroje." +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "Vstup musí být číslo" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "Prohlížíte si starší verzi %s" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "Vstup musí být ve formátu: rrrr-mm-dd" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "Nemůžete přidávat skladby do dynamických bloků." +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "Vstup musí být ve formátu: hh:mm:ss.t" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "%s not found" -msgstr "%s nenalezen" +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"Právě nahráváte soubory. %sPřechodem na jinou obrazovku zrušíte nahrávací " +"proces. %sOpravdu chcete opustit tuto stránku?" -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "Nemáte oprávnění odstranit vybrané %s (s)." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "Otevřít Media Builder" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Něco je špatně." +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "prosím nastavte čas '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "Můžete pouze přidat skladby do chytrého bloku." +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "prosím nastavte čas v sekundách '00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Playlist bez názvu" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "Váš prohlížeč nepodporuje přehrávání souborů tohoto typu: " -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Chytrý block bez názvu" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Dynamický blok není možno ukázat předem" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Neznámý Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Omezeno na: " -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "Nemáte udělen přístup k tomuto zdroji." +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Playlist uložen" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "Nemáte udělen přístup k tomuto zdroji. " +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "Playlist zamíchán" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." msgstr "" +"Airtime si není jistý statusem souboru. To se může stát, když je soubor na " +"vzdálené jednotce, která je nepřístupná nebo když je soubor v adresáři, " +"který již není 'sledovaný'." -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Špatný požadavek. Žádný 'mode' parametr neprošel." - -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Špatný požadavek. 'Mode' parametr je neplatný." - -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Náhled" +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "Počítat posluchače %s : %s" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Přidat do Playlistu" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "Připomenout za 1 týden" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Přidat do chytrého bloku" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Nikdy nepřipomínat" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Smazat" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Ano, pomoc Airtime" -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Duplikátní Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "Obrázek musí být buď jpg, jpeg, png nebo gif" -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Upravit" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." +msgstr "" +"Statický chytrý blok uloží kritéria a vygeneruje obsah bloku okamžitě. To " +"vám umožní upravit a zobrazit je v knihovně před přidáním do vysílání." -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"Dynamický chytrý blok bude ukládat pouze kritéria. Obsah bloku bude " +"generován během přidání do vysílání. Nebudete moci prohlížet a upravovat " +"obsah v knihovně." -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Zobrazit na SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"Požadované délky bloku nebude dosaženo pokud Airtime nenalezne dostatek " +"unikátních skladeb, které odpovídají vašim kritériím. Povolte tuto možnost, " +"pokud chcete, aby byly skladby přidány do chytrého bloku vícekrát." -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Znovu nahrát do SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Chytré bloky promíchány" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Nahrát do SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Chytrý blok generován a kritéria uložena" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "Žádná akce není k dispozici" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Chytrý blok uložen" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "Nemáte oprávnění odstranit vybrané položky." +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "Zpracovává se..." -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Nelze odstranit některé naplánované soubory." +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Vyberte složku k uložení" -#: airtime_mvc/application/controllers/LibraryController.php:404 -#, php-format -msgid "Copy of %s" -msgstr "Kopie %s" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Vyberte složku ke sledování" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Vybrat kurzor" +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Jste si jisti, že chcete změnit složku úložiště ?\n" +"Tímto odstraníte soubry z vaší Airtime knihovny!" -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Odstranit kurzor" +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Jste si jisti, že chcete odstranit sledovanou složku?" -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "vysílání neexistuje" +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "Tato cesta není v současné době dostupná." -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Preference aktualizovány." +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#, php-format +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" +"Některé typy streamů vyžadují zvláštní konfiguraci. Detaily o přístupu %sAAC" +"+ Support%s nebo %sOpus Support%s jsou poskytovány." -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Podpora nastavení aktualizována." +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Připojeno k streamovacímu serveru" -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Technická podpora" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "Stream je vypnut" -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Nastavení streamu aktualizováno." +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Nelze se připojit k streamovacímu serveru" -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "cesta by měla být specifikována" +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"Pokud je Airtime za routerem nebo firewall, budete možná muset nastavit " +"přesměrování portu a tato informace pole budou nesprávná. V tomto případě " +"budete muset ručně aktualizovat pole tak, aby ukazovalo správně host/port/" +"mount, do kterých se Váš DJ potřebuje připojit. Povolené rozpětí je mezi " +"1024 a 49151." -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Problém s Liquidsoap ..." +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "Pro více informací si prosím přečtěte %s Airtime manuál %s" -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Právě se přehrává" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"Zaškrtněte tuto volbu pro zapnutí metadat OGG streamů (metadata streamu jsou " +"název sklady, umělec a název vysílání, které se zobrazí v audio přehrávači). " +"VLC a mpřehrávač mají vážné chyby při přehrávání OGG/VORBIS streamu, který " +"má povolené metadata informace: budou odpojena od streamu po každé písni. " +"Pokud používáte stream OGG a vaši posluchači nevyžadují podporu těchto audio " +"přehrávačů, pak neváhejte a tuto možnost povolte." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Přidat média" +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Zaškrtněte toto políčko pro automatické vypnutí zdroje Master/Vysílání na " +"odpojení zdroje." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Knihovna" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Zaškrtněte toto políčko pro automatické zapnutí Master/Vysílání zdroj na " +"připojení zdroje." -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Kalendář" +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"Pokud váš Icecast server očekává uživatelské jméno 'zdroj', může toto pole " +"zůstat prázdné." -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "Systém" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"Pokud váš live streaming klient nepožádá o uživatelské jméno, toto pople bz " +"mělo být 'zdroj'." -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Nastavení" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"Pokud změníte jméno uživatele nebo heslo hodnoty povoleného streamu playout " +"motor bude restartován a vaši posluchači uslyší ticho po dobu 5-10 sekund. " +"Změna následující pole nezpůsobí restartovaní: Stream Label (Globální " +"nastavení) a Switch Transition Fade(s), Master Username, and Master " +"Password (Nastavení vstupního streamu). Pokud Airtime pořizuje záznam, a " +"pokud změna způsobí restart playoutu, nahrávaní bude přerušeno." -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Uživatelé" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"Toto je administrátorské jméno a heslo pro Icecast / SHOUTcast k získání " +"statistik poslechovosti." -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Složky Médií" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Streamy" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "Žádný výsledek nenalezen" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Statistiky poslechovost" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"Toto následuje stejný bezpečnostní vzor pro výsílání: pouze uživatelé " +"přiřazení k vysílání se mohou připojit." -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" -msgstr "Historie" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "Zadejte vlastní ověření, které bude fungovat pouze pro toto vysílání." -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Historie odvysílaného" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "Ukázka vysílání již neexistuje!" -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "Historie nastavení" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "Varování: Vysílání nemohou být znovu linkována." -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Nápověda" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" +"Propojením vašich opakujících se show, jakákoliv média zařazena v jakékoliv " +"opakující se show bude také zařazena do dalších opakujících se show." -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Začínáme" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." +msgstr "" +"Časové pásmo je nastaveno v časovém pásmu stanice defoltně. Show v kalendáři " +"bude zobrazena v lokálním čase nastaveném časovým pásmem vašeho " +"uživatelského rozhraní ve vašem uživatelském nastavení. " -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "Návod k obsluze" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Vysílání" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "O aplikaci" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "Vysílání je prázdné" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Servis" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Doba provozuschopnosti" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Paměť" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Velikost disku" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60m" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "Nastavení Email / Mail Serveru" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Získávání dat ze serveru ..." -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "Nastavení SoundCloud " +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "Toto vysílání nemá naplánovaný obsah." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Opakovat dny:" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "Toto vysílání není zcela vyplněno." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Odstranit" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "Leden" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Přidat" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "Únor" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "Připojovací URL: " +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "Březen" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Nastavení vstupního streamu" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "Duben" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "URL připojení Master zdoje:" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "Květen" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Přepsat" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "Červen" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "OK" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "Červenec" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "Obnovit" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "Srpen" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "URL připojení Show Source:" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "Září" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Požadováno)" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "Říjen" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Registrovat Airtime" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "Listopad" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "Prosinec" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Leden" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(pouze pro ověřovací účely, nebude zveřejněno)" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "Únor" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Poznámka: Cokoli většího než 600x600 bude zmenšeno." +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "Březen" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Zobrazit co posílám " +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "Duben" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Pravidla a podmínky" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "Červen" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Obnovit heslo" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "Červenec" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Vyberte soubor" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "Srpen" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Nastavit" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "Září" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Aktuálně importovaný soubor:" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "Říjen" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "Listopad" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Odebrat sledovaný adresář" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "Prosinec" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "Nesledujete žádné mediální soubory." +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "dnes" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Stream " +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "den" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Dodatečné možnosti" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "týden" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "měsíc" + +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "Následující informace se zobrazí u posluchačů na jejich přehrávačích:" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "" +"Vysílání delší než naplánovaný čas bude ukončeno začátkem dalšího vysílání." + +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Zrušit aktuální vysílání?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(Webová stránka vaší rádiové stanice)" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Zastavit nahrávání aktuálního vysílání?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "URL streamu: " +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "OK" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Filtrovat historii" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Obsah vysílání" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Najít vysílání" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Odstranit veškerý obsah?" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Filtrovat dle vysílání:" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Odstranit vybranou položku(y)?" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "%s Nastavení" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "Konec" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Trvání" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(Za účelem podpory vaší stanice musí být povolena funkce 'Zaslat Váš názor')." +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Vysílání prázdné" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Zásady ochrany osobních údajů Sourcefabric " +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Nahrávání z Line In" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "Vybrat instanci show" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Náhled stopy" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "Najdi" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Nelze naplánovat mimo vysílání." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Vyberte dny:" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Posunutí 1 položky" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Možnosti Smart Blocku" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Posunutí %s položek" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "nebo" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" +msgstr "Fade Editor" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "a" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" +msgstr "Cue Editor" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr " do " +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "Prvky Waveform jsou k dispozici v prohlížeči podporující Web Audio API" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "soubory splňují kritéria" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Vybrat vše" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "soubor splňuje kritéria" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Nic nevybrat" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "Vytvořit soubor přehledu nastavení" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Odebrat duplicitní skladby" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "Vytvořit vzor přehledu logů" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Odebrat vybrané naplánované položky" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "Přidat elementy" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Přejít na aktuálně přehrávanou skladbu" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "Přidat nové pole" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Zrušit aktuální vysílání" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "Nastavit defolní šablnu" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "Otevřít knihovnu pro přidání nebo odebrání obsahu" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "Vzory přehledu logů" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "používá se" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "Vzory přehledu logů nejsou" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Disk" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "Nový vzor přehledu logů" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Podívat se" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "Vzory přehledu souboru" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Otevřít" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "Nový vzor přehledu souboru" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "Hosté mohou dělat následující:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "Nový vzor přehledu souboru" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "Zobrazit plán" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "Nový" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "Zobrazit obsah vysílání" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "Nový Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "DJ může dělat následující:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "Nový Smart blok" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "Spravovat přidělený obsah vysílání" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "Nový webstream" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Import media souborů" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "Zobrazit / upravit popis" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Vytvořit playlisty, smart bloky a webstreamy" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "URL streamu:" +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "Spravovat obsah vlastní knihovny" + +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "Progam Manažeři může dělat následující:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Defaultní délka:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "Zobrazit a spravovat obsah vysílání" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "Žádný webstream" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Plán ukazuje" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Nastavení Streamu" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "Spravovat celý obsah knihovny" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Globální nastavení" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "Správci mohou provést následující:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "dB" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Správa předvoleb" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Nastavení výstupního streamu" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "Správa uživatelů" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "Probíhá importování souboru ..." +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "Správa sledovaných složek" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Rozšířené možnosti hledání" +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "Zobrazit stav systému" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "předchozí" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Přístup playout historii" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "přehrát" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "Zobrazit posluchače statistiky" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "pauza" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Zobrazit / skrýt sloupce" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "další" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "Z {z} do {do}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "stop" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "vypnout zvuk" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "rrrr-mm-dd" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "zapnout zvuk" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "hh:mm:ss.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "max. hlasitost" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Nutná aktualizace" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "Ne" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "Chcete-li přehrávat média, budete si muset buď nastavit svůj prohlížeč na nejnovější verzi nebo aktualizovat svůj%sFlash plugin%s." +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Po" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Délka:" +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Út" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Vzorová frekvence:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "St" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "ISRC číslo" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Čt" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "Cesta souboru:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Pá" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Web Stream" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "So" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Dynamický Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Hodina" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Statický Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Minuta" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Audio stopa" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Hotovo" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Obsah Playlistu: " +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Vyberte soubory" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Obsah statistického Smart Blocku: " +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "Přidejte soubory do fronty pro nahrávání a klikněte na tlačítko start." -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Kritéria dynamickeho Smart Blocku: " +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Přidat soubory." -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Omezit na " +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Zastavit Nahrávání" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Počítaní posluchačů v čase" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Začít nahrávat" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 -#, php-format -msgid "Welcome to %s!" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Přidat soubory" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "" +msgid "Uploaded %d/%d files" +msgstr "Nahráno %d / %d souborů" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Začněte tím, že přidáte soubory do knihovny pomocí 'Přidat média' tlačítka v menu. Můžete jednoduše přetáhnout soubory do tohoto okna." +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "Nedostupné" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Vytvořte vysílání tím, že v menu půjdete do 'Kalendáře' a kliknete na ikonu '+ Show'. Může se jednat buď o jednorázové nebo opakující se vysílání. Přidávat vysílání mohou pouze administrátoři a manažeři programu." +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Soubory přetáhněte zde." + +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "Chybná přípona souboru" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Média přidáte do vysílání tak, že půjdete do svého vysílání v Plánovacím kalendáři a kliknutím na levé tlačítko myši se vám otevřou možnosti z kterých si vyberte 'Přidat / odstranit obsah'" +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "Chybná velikost souboru." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Vyberte si média z levého okna a přetáhněte je do svého vysílání v pravém okně." +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "Chybný součet souborů." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "Pak můžete začít!" +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Chyba Init." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "Pro podrobnější nápovědu si přečtěte %suživatelský manuál%s." +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "Chyba HTTP." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Sdílet" +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Chyba zabezpečení." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Vyberte stream:" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Obecná chyba. " -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "CHyba IO." + +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "" +msgid "File: %s" +msgstr "Soubor: %s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "" +msgid "%d files queued" +msgstr "%d souborů ve frontě" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "Nové heslo" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "Soubor: %f , velikost: %s , max. velikost souboru:% m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Prosím zadejte a potvrďte své nové heslo v políčkách níže." +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "Přidané URL může být špatné nebo neexistuje" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Prosím zadejte e-mailovou adresu ke svému účtu. Obdržíte e-mailem odkaz na vytvoření nového hesla." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Chyba: Soubor je příliš velký: " -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "Odeslat e-mail" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "Chyba: Neplatná přípona souboru: " -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "E-mail byl odeslán" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "Vytvořit vstup" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Zpět na přihlašovací stránku" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "Editovat historii nahrávky" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "Kopírovat %s řádků %s do schránky" + +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" +"%s náhled tisku %s k vytištění této tabulky použijte funkci tisku ve vašem " +"prohlížeči. Po dokončení stiskněte escape." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Předchozí:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Další:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Zdrojové Streamy" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Hlavní zdroj" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Zobrazit zdroj" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Náhled" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Naplánované vysílání" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Vybrat kurzor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "ON AIR" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Odstranit kurzor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Poslech" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "vysílání neexistuje" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Čas stanice" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Preference aktualizovány." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Váše zkušební období vyprší " +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Podpora nastavení aktualizována." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Nastavení streamu aktualizováno." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "Můj účet" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "cesta by měla být specifikována" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Správa uživatelů" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Problém s Liquidsoap ..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "Nový uživatel" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Stránka nebyla nalezena" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "id" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Chyba aplikace" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "Jméno" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s nenalezen" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Příjmení" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Něco je špatně." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "Typ uživatele" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Přidat do Playlistu" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "Přehled logu" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Přidat do chytrého bloku" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "Shrnutí souboru" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Stáhnout" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "Shrnutí show" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Duplikátní Playlist" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Defaultní aplikace Zend Frameworku " +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "Soundcloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Stránka nebyla nalezena!" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "Žádná akce není k dispozici" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "Stránka, kterou hledáte, neexistuje!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "Nemáte oprávnění odstranit vybrané položky." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Rozšířit statický blok" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "Nelze odstranit některé naplánované soubory." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Rozšířit dynamický blok" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Kopie %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "prázdný Smart blok" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Webstream bez názvu" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Prázdný playlist" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Webstream uložen." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "Prázdný playlist" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Neplatná forma hodnot." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "Vymazat" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "Nemáte oprávnění k odpojení zdroje." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Promíchat Playlist" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "Neexistuje zdroj připojený k tomuto vstupu." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Uložit playlist" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "Nemáte oprávnění ke změně zdroje." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Playlist crossfade" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "Uživatel byl úspěšně přidán!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Zesílit: " +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "Uživatel byl úspěšně aktualizován!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Zeslabit: " +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "Nastavení úspěšně aktualizováno!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "Neotevřený playlist" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Znovu spustit vysílaní %s od %s na %s" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "Prázný obsah smart block." +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." +msgstr "" +"Zkontrolujte prosím zda je správné administrátorské jméno/heslo v Systému-" +">Streamovací stránka." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "Nemáte udělen přístup k tomuto zdroji." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "Smart block není otevřený" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "Nemáte udělen přístup k tomuto zdroji. " -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "UKázat Waveform" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "Soubor v Airtime neexistuje." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Cue in: " +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "Soubor v Airtime neexistuje." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "Soubor v Airtime neexistuje." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Cue out: " +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Špatný požadavek. Žádný 'mode' parametr neprošel." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Původní délka:" +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Špatný požadavek. 'Mode' parametr je neplatný." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Přidat toto vysílání" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "Prohlížíte si starší verzi %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Aktualizace vysílání" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "Nemůžete přidávat skladby do dynamických bloků." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "Co" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "Nemáte oprávnění odstranit vybrané %s (s)." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "Kdy" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "Můžete pouze přidat skladby do chytrého bloku." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Vložení Live Streamu" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Playlist bez názvu" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Nahrát a znovu vysílat" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Chytrý block bez názvu" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Kdo" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Neznámý Playlist" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Styl" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "Cue in a cue out jsou prázné." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Znovu odvysílat %s od %s" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "Nelze nastavit delší cue out než je délka souboru." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Vyberte zemi" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "Nelze nastavit větší cue in než cue out." + +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Nelze nastavit menší cue out než je cue in." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3648,43 +4326,26 @@ msgstr "Neplatný webstream - tento vypadá jako stažení souboru." msgid "Unrecognized stream type: %s" msgstr "Neznámý typ streamu: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s je již sledován." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s obsahuje vložený sledovaný adresář: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s je vložený do stávajícího sledovaného adresáře: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s není platný adresář." - -#: airtime_mvc/application/models/MusicDir.php:232 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s je již nastaveno jako aktuální uložiště adresáře nebo ve sledovaném seznamu souborů." - -#: airtime_mvc/application/models/MusicDir.php:386 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s je již nastaven jako aktuální adresář úložiště nebo v seznamu sledovaných složek." - -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s neexistuje v seznamu sledovaných." +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Ahoj %s , \n" +"\n" +"Klikněte na tento odkaz pro obnovení vašeho hesla: " + +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Airtime obnovení hesla" + +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Vyberte zemi" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3699,6 +4360,8 @@ msgid "The schedule you're viewing is out of date! (instance mismatch)" msgstr "Program který si prohlížíte je zastaralý!" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3727,63 +4390,66 @@ msgstr "Vysílání %s bylo již dříve aktualizováno!" msgid "" "Content in linked shows must be scheduled before or after any one is " "broadcasted" -msgstr "Obsah v propojených show musí být zařazen před nebo po kterémkoliv, který je vysílaný " - -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." msgstr "" +"Obsah v propojených show musí být zařazen před nebo po kterémkoliv, který je " +"vysílaný " +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "Vybraný soubor neexistuje!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "Cue in a cue out jsou prázné." - -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Nelze nastavit větší cue in než cue out." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s je již sledován." -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Nelze nastavit delší cue out než je délka souboru." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s obsahuje vložený sledovaný adresář: %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Nelze nastavit menší cue out než je cue in." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s je vložený do stávajícího sledovaného adresáře: %s" -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." -msgstr "Nepodařilo se vytvořit adresář 'organize'." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s není platný adresář." -#: airtime_mvc/application/models/StoredFile.php:1017 +#: airtime_mvc/application/models/MusicDir.php:232 #, php-format msgid "" -"The file was not uploaded, there is %s MB of disk space left and the file " -"you are uploading has a size of %s MB." -msgstr "Soubor nebyl nahrán. Máte k dispozici %s MB volného místa na disku a soubor který jste chtěli nahrát má velikost %s MB." +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s je již nastaveno jako aktuální uložiště adresáře nebo ve sledovaném " +"seznamu souborů." -#: airtime_mvc/application/models/StoredFile.php:1026 +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format msgid "" -"This file appears to be corrupted and will not be added to media library." -msgstr "Tento soubor se zdá být poškozený a nebude přidán do knihovny médií." +"%s is already set as the current storage dir or in the watched folders list." +msgstr "" +"%s je již nastaven jako aktuální adresář úložiště nebo v seznamu sledovaných " +"složek." -#: airtime_mvc/application/models/StoredFile.php:1065 -msgid "" -"The file was not uploaded, this error can occur if the computer hard drive " -"does not have enough disk space or the stor directory does not have correct " -"write permissions." -msgstr "Soubor nebyl nahrán. K této chybě může dojít, pokud na pevném disku počítače není dostatek místa nebo adresář nemá správná oprávnění pro zápis." +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s neexistuje v seznamu sledovaných." + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Znovu odvysílat %s od %s" #: airtime_mvc/application/models/Show.php:180 msgid "Shows can have a max length of 24 hours." @@ -3793,116 +4459,151 @@ msgstr "Vysílání může mít max. délku 24 hodin." msgid "" "Cannot schedule overlapping shows.\n" "Note: Resizing a repeating show affects all of its repeats." -msgstr "Nelze naplánovat překrývající se vysílání.\nPoznámka:. Změna velikosti opakujícího se vysílání ovlivňuje všechny opakování tohoto vysílání." +msgstr "" +"Nelze naplánovat překrývající se vysílání.\n" +"Poznámka:. Změna velikosti opakujícího se vysílání ovlivňuje všechny " +"opakování tohoto vysílání." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/models/StoredFile.php:1017 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Ahoj %s , \n\nKlikněte na tento odkaz pro obnovení vašeho hesla: " - -#: airtime_mvc/application/models/Auth.php:36 -#, php-format -msgid "%s Password Reset" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." msgstr "" +"Soubor nebyl nahrán. Máte k dispozici %s MB volného místa na disku a soubor " +"který jste chtěli nahrát má velikost %s MB." -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "Soubor s nahrávkou neexistuje" +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "Nelze změnit velikost již odvysílaného pořadu." -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "Zobrazit nahraný soubor metadat" +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "Jednotlivá vysílání by se neměla překrývat" -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Zobrazit obsah" +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." +msgstr "Nepodařilo se vytvořit adresář 'organize'." -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Odstranit celý obsah" +#: airtime_mvc/application/models/StoredFile.php:1026 +msgid "" +"This file appears to be corrupted and will not be added to media library." +msgstr "Tento soubor se zdá být poškozený a nebude přidán do knihovny médií." -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Zrušit aktuální vysílání" +#: airtime_mvc/application/models/StoredFile.php:1065 +msgid "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." +msgstr "" +"Soubor nebyl nahrán. K této chybě může dojít, pokud na pevném disku počítače " +"není dostatek místa nebo adresář nemá správná oprávnění pro zápis." -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" -msgstr "Upravit " +#: airtime_mvc/application/layouts/scripts/login.phtml:24 +#, php-format +msgid "" +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Upravit vysílání" +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#, php-format +msgid "Promote my station on %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Odstranit tuto instanci" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Odstranit tuto instanci a všechny následující" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "Přístup odepřen" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Nelze přetáhnout opakujícící se vysílání" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Nelze přesunout vysílání z minulosti" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Nelze přesunout vysílání do minulosti" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Nelze přesunout nahrané vysílání méně než 1 hodinu před tím, než bude znovu vysíláno." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "Vysílání bylo vymazáno, protože nahrané vysílání neexistuje!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Musíte počkat 1 hodinu před dalším vysíláním." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" -msgstr "Stopa" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Přehráno" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "Rok %s musí být v rozmezí 1753 - 9999" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s - %s - %s není platné datum" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s : %s : %s není platný čas" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Prosím vyberte si možnost" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "Žádné záznamy" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/locale/de_AT/LC_MESSAGES/airtime.po b/airtime_mvc/locale/de_AT/LC_MESSAGES/airtime.po index 90e9411cd9..4c6b636ade 100644 --- a/airtime_mvc/locale/de_AT/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/de_AT/LC_MESSAGES/airtime.po @@ -1,7 +1,7 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: # hoerich , 2014 # Sourcefabric , 2013 @@ -9,3600 +9,4288 @@ msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2015-02-05 10:31+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: German (Austria) (http://www.transifex.com/projects/p/airtime/language/de_AT/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-02-11 20:10+0000\n" +"Last-Translator: hoerich \n" +"Language-Team: German (Austria) (http://www.transifex.com/projects/p/airtime/" +"language/de_AT/)\n" +"Language: de_AT\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: de_AT\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Audio Player" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Bitte eine Option wählen" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Abmelden" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "Keine Aufzeichnungen" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "Abspielen" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "Das Jahr %s muß innerhalb des Bereichs von 1753 - 9999 liegen." -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "Stopp" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s ist kein gültiges Datum" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Cue In" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s-%s-%s ist kein gültiger Zeitpunkt." -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "Cue In setzen" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Jetzt" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Cue Out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Medien hinzufügen" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "Cue Out setzen" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Bibliothek" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "Cursor" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Kalender" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Fade In" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "System" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Fade Out" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Einstellungen" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Benutzer" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Live Stream" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Medienverzeichnisse" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Aktiviert:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Streams" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Stream Typ:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Support Feedback" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Bitrate:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Status" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Service Typ:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Hörerstatistiken" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Kanäle:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "Verlauf" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Playout Verlauf" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "Verlaufsvorlagen" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Server" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Hilfe" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Ungültiges Zeichen eingeben" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Kurzanleitung" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Port" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "Benutzerhandbuch" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Es sind nur Zahlen erlaubt" +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "Über" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Passwort" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "Aufeichnung existiert nicht" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Genre" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "Metadaten der aufgezeichneten Datei ansehen" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Auf SoundCloud ansehen" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Name" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Auf SoundCloud hochladen " -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Beschreibung" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Nochmal auf SoundCloud hochladen." -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Mount Point" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Sendungsinhalt" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Benutzername" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Inhalt hinzufügen / entfernen" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Admin Benutzer" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Gesamten Inhalt entfernen" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Admin Passwort" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Aktuelle Sendung abbrechen" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Erhalte Information vom Server..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "Diese Folge bearbeiten" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Server darf nicht leer sein." +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Bearbeiten" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Port darf nicht leer sein." +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Sendung bearbeiten" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Mount darf nicht leer sein, wenn Icecast-Server verwendet wird." +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Löschen" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Lösche diese Folge" + +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Lösche diese Folge und alle Nachfolgenden" + +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "Zugriff verweigert" + +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "" +"Wiederkehrende Sendungen können nicht per Drag'n'Drop verschoben werden." + +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "" +"Eine in der Vergangenheit liegende Sendung kann nicht verschoben werden." + +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Eine Sendung kann nicht in die Vergangenheit verschoben werden." + +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Sendungen können nicht überlappend geplant werden." + +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "" +"Eine aufgezeichnete Sendung kann nicht verschoben werden, wenn der Zeitpunkt " +"der Wiederholung weniger als eine Stunde bevor liegt." + +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "" +"Die Sendung wurde gelöscht, weil die aufgezeichnete Sendung nicht existiert." + +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "" +"Das Wiederholen einer Sendung ist erst nach einer Stunde Wartezeit möglich." + +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" msgstr "Titel" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" -msgstr "Interpret:" +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Interpret" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "Album:" +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Album" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "Titelnummer:" +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Dauer" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" -msgstr "Genre:" +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Genre" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" -msgstr "Jahr:" +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Stimmung" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" -msgstr "Label:" +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Label" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" -msgstr "Komponist:" +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Komponist" -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" -msgstr "Dirigent:" +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Stimmung:" +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Copyright" -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Jahr" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" -msgstr "Copyright:" +#: airtime_mvc/application/services/HistoryService.php:1119 +msgid "Track" +msgstr "Titel" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "ISRC Nummer:" +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Dirigent" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" -msgstr "Webseite:" +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Sprache" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" -msgstr "Sprache:" +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +msgid "Start Time" +msgstr "Beginn" +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +msgid "End Time" +msgstr "Ende" + +#: airtime_mvc/application/services/HistoryService.php:1167 +msgid "Played" +msgstr "Abgespielt" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "Datei-Import in Bearbeitung..." + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Erweiterte Suchoptionen" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Hörerzahl im Zeitraffer" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "Neu" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "Neue Playlist" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "Neuer Smart Block" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "Neuer Webstream" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "Playlist leeren" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "Leeren" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Shuffle Playlist" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Shuffle" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Playlist speichern" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 #: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 #: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 #: airtime_mvc/application/forms/SupportSettings.php:161 #: airtime_mvc/application/controllers/LocaleController.php:283 #: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 #: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 msgid "Save" msgstr "Speichern" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Abbrechen" - -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Benutzername:" - -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Passwort:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Playlist Crossfade" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Passwort bestätigen:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "Beschreibung ansehen / bearbeiten" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Vorname:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Beschreibung" -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Nachname:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Fade In:" -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "E-Mail:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Fade Out:" -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Mobiltelefon:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "Keine Playlist geöffnet" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Statischen Block erweitern" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Dynamischen Block erweitern" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "Benutzertyp:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Smart Block leer" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Gast" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Playlist leer" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "DJ" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "Wellenform anzeigen" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Programm Manager" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Cue In:" -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Admin" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(hh:mm:ss.t)" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Benutzername ist nicht einmalig." +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Cue Out:" -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Hintergrundfarbe:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Original Dauer:" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Textfarbe:" +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(ss.t)" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Zeitpunkt Start:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "Smart Block leeren" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Zeitpunkt Ende:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "Kein Smart Block geöffnet" -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Sendung:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sAirtime%s %s, die offene Radio Software für Planung und Remote-Station-" +"Management. %s" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "Alle meine Sendungen:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "%sSourcefabric%s o.p.s. Airtime wird vertrieben unter %sGNU GPL v.3%s" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "Tage" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Willkommen bei Airtime!" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "Tag muß angegeben werden" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "" +"Starten sie hier, um die ersten Schritte für die Automation ihrer Radio " +"Station zu erfahren." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "Zeit muß angegeben werden" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Beginnen sie damit, Dateien ihrer Bibliothek hinzuzufügen. Verwenden sie " +"dazu die Schaltfläche 'Medien Hinzufügen'. Dateien können auch via " +"Drag'n'Drop hinzugefügt werden." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Das Wiederholen einer Sendung ist erst nach einer Stunde Wartezeit möglich." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Erstellen sie eine Sendung, indem sie in der Menüzeile die Schaltfläche " +"'Kalender' betätigen und anschließend die Schaltfläche '+ Sendung' wählen. " +"Dies kann eine einmalige oder sich wiederholende Sendung sein. Nur " +"Administratoren und Programm Manager können Sendungen hinzufügen." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Import Verzeichnis:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Fügen sie Mediendateien einer Show hinzu.\n" +"Öffnen sie dazu die gewünschte Sendung durch einen Links-Klick darauf im " +"Kalender und wählen sie 'Inhalt hinzufügen / entfernen'" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Überwachte Verzeichnisse:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Wählen sie Medien vom linken Feld und ziehen sie diese in ihre Sendung im " +"rechten Feld." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Kein gültiges Verzeichnis" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "Dann kann es auch schon los gehen!" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Benutzer suchen:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "Für weitere Hilfe bitte das %sBenutzerhandbuch%s lesen." -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "DJs:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +msgid "Live stream" +msgstr "Live Stream" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Anmeldung" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Teilen" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Geben sie die Zeichen ein, die im darunter liegenden Bild zu sehen sind." +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Stream wählen:" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Sendername" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "Stumm schalten" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "Standarddauer Crossfade (s):" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "Laut schalten" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "Geben sie eine Zeit in Sekunden ein 0{.0}" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "Alle" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "Standard Fade In (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "Standard Fade Out (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Erlaube Remote-Webseiten Zugriff auf \"Kalender\" Info?%s (Aktivierung ermöglicht die Verwendung von Front-End Widgets.)" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Deaktiviert" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "Stream URL:" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Aktiviert" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Standard Dauer:" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Standardsprache" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "Kein Webstream" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "Zeitzone Radiostation" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "Titel" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "Woche startet mit " +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "Interpret:" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Sonntag" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "Album:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Montag" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "Titelnummer:" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Dienstag" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Dauer:" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Mittwoch" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Samplerate:" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Donnerstag" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Bitrate:" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Freitag" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Stimmung:" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Samstag" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "Genre:" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "Verknüpfen:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "Jahr:" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Wiederholungstyp:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "Label:" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "Wöchentlich" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "jede Zweite Woche" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "Komponist:" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "jede Dritte Woche" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "Dirigent:" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "jede Vierte Woche" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "Copyright:" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "Monatlich" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "ISRC Number:" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Tage wählen:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "Webseite:" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "SO" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" +msgstr "Sprache:" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "MO" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "Dateipfad:" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "DI" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Name:" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "MI" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Beschreibung:" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "DO" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Web Stream" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "FR" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Dynamischer Smart Block" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "SA" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Statischer Smart Block" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "Wiederholung am:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Titel" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "Tag des Monats" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Playlist Inhalt:" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "Tag der Woche" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Statischer Smart Block Inhalt:" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "Kein Enddatum?" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Dynamische Smart Block Kriterien:" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "Enddatum muß nach Startdatum liegen." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Begrenzt auf " -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "Bitte Tag zum Wiederholen wählen" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL:" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Neues Passwort bestätigen" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "Folge wählen" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "Passwortbestätigung stimmt nicht mit Passwort überein" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "Keine Sendung" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Neues Passwort erhalten" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "Finden" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Kriterien wählen" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "%s's Einstellungen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Album" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Verzeichnis wählen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Bitrate (Kbps)" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Wählen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Aktuelles Import-Verzeichnis:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Komponist" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Hinzufügen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Dirigent" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Überwachte Verzeichnisse nochmals durchsuchen\n" +"(Dies könnte nützlich sein, wenn Airtime beim Synchronisieren mit " +"Netzlaufwerken Schwierigkeiten hat)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Copyright" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Überwachten Ordner entfernen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Interpret" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "Sie überwachen keine Medienverzeichnisse." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Encoded By" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Erforderlich)" + +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Helfen sie Airtime, indem sie uns erzählen, wie sie damit arbeiten. Diese " +"Informationen werden regelmäßig gesammelt, um die Erfahrungswerte der " +"Benutzer zu fördern.%sDrücken Sie auf 'Ja, Airtime helfen' und wir " +"versichern, die von ihnen verwendeten Features laufend zu verbessern." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "" +"Mit Aktivierung des unteren Kästchens werben sie für ihre Radiostation auf " +"%sSourcefabric.org%s. Dazu muss die Option 'Support Feedback senden' " +"aktiviert sein. Diese Daten werden zusätzlich zum Support Feedback gesammelt." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Label" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(Um ihre Radiostation bewerben zu können, muß 'Support Feedback senden' " +"aktiviert sein)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Sprache" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(Ausschließlich zu Kontrollzwecken, wird nicht veröffentlicht)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Zuletzt geändert" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "" +"Erinnerung: Sind Dateien größer als 600x600 Pixel, wird die Größe geändert." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Zuletzt gespielt" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Zeige mir was ich sende" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Dauer" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Sourcefabric Datenschutzrichtlinie" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Mime" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Sendungen suchen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Stimmung" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Nach Sendung filtern:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Besitzer" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "E-Mail- / Mail-Server-Einstellungen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Replay Gain" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "SoundCloud Einstellungen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Sample Rate (KHz)" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Tag wählen:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Titel" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Entfernen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Titelnummer" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Stream" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Hochgeladen" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Erweiterte Optionen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Webseite" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "" +"Die Hörer werden folgende Information auf dem Display ihres Medien-Players " +"sehen:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Jahr" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(Webseite ihrer Radiostation)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Wähle Modifikator" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "Stream URL:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "enthält" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "Verbindung URL:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "enthält nicht" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Passwort zurücksetzen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "ist" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Airtime registrieren" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "ist nicht" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "" +"Helfen sie Airtime, indem sie uns erzählen, wie sie damit arbeiten. Diese " +"Informationen werden regelmäßig gesammelt, um die Erfahrungswerte der " +"Benutzer zu fördern.%sDrücken Sie auf 'Ja, Airtime helfen' und wir " +"versichern, die von ihnen verwendeten Features laufend zu verbessern." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "beginnt mit" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Mit Aktivierung des unteren Kästchens werben sie für ihre Radiostation auf " +"%sSourcefabric.org%s. Dazu muss die Option 'Support Feedback senden' " +"aktiviert sein. Diese Daten werden zusätzlich zum Support Feedback gesammelt." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "endet mit" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Geschäftsbedingungen und Rahmenverhältnisse" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "ist größer als" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Stream-Eingang Einstellungen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "ist kleiner als" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "Master-Quelle Verbindungs-URL:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "ist im Bereich" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Übersteuern" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "Stunden" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "OK" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "Minuten" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "RESET" + +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "Show-Quelle Verbindungs-URL:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "Objekte" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Smart Block Optionen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Smart Block Typ festlegen:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "oder" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Statisch" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "and" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Dynamisch" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr " bis " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Erlaube Wiederholen von Titeln:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "Dateien entsprechen den Kriterien" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Beschränkt auf " +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "entspricht den Kriterien" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Playlist-Inhalt erstellen und Kriterien speichern" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Wiederholungstage:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Erstellen" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Filter Verlauf" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Shuffle Playlist-Inhalt (Durchmischen)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Schließen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Shuffle" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Sendung hinzufügen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "Beschränkung kann nicht leer oder kleiner als 0 sein." +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Sendung aktualisieren" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "Beschränkung kann nicht größer als 24 Stunden sein" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "Was" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "Der Wert muß eine ganze Zahl sein." +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "Wann" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "Die Anzahl der Objekte ist auf 500 beschränkt." +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Live-Stream Eingang" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "Sie müssen Kriterium und Modifikator bestimmen" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Aufzeichnen & Wiederholen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "Die 'Dauer' muß im Format '00:00:00' eingegeben werden" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Wer" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "Der Wert muß im Timestamp-Format eingegeben werden (zB. 0000-00-00 oder 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Style" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "Der eingegebene Wert muß aus Ziffern bestehen" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Beginn" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "Der eingegebene Wert muß kleiner sein als 2147483648" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Stream Einstellungen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "Der eingegebene Wert muß aus weniger als %s Zeichen bestehen." +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Globale Einstellungen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "Wert kann nicht leer sein" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "dB" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Automatisch abschalten" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Stream-Ausgabe Einstellungen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Automatisch einschalten" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Verwalte Medienverzeichnisse" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Übergang beim Umschalten (Fade in Sekunden)" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Zend Framework Default Application" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "Eingabe der Zeit in Sekunden 00{.000000}" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Seite nicht gefunden!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Master Benutzername" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "Scheinbar existiert die Seite die sie suchen nicht!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Master Passwort" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "Protokollvorlagen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "Master-Quelle Adresse (URL)" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "Keine Protokollvorlagen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "Show-Quelle Adresse (URL)" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "Standard festlegen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Master-Quelle Port" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "Neue Protokollvorlage" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Master-Quelle Mount Point" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "Dateiübersichtsvorlagen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Show-Quelle Port" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "Keine Dateiübersichtsvorlagen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Show-Quelle Mount Point" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "Neue Dateiübersichtsvorlage" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "Sie können nicht denselben Port wie für die Master-Quelle verwenden." +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "Erstelle Dateiübersichtsvorlage" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Port %s ist nicht verfügbar" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "Erstelle Protokollvorlage" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Telefon:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Name" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Sender-Webseite:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "Weitere Elemente hinzufügen" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Land:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "Neues Feld hinzufügen" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "Stadt:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "Standardvorlage festlegen" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Sender Beschreibung:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "Neues Passwort" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Sender Logo:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "" +"Bitte in den nachstehenden Feldern das neue Passwort eingeben und bestätigen." -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Support Feedback senden" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Anmeldung" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." msgstr "" +"Willkommen zur Online Artime Demo!\n" +"Sie können sich mit dem Benutzernamen 'admin' und dem Passwort 'admin' " +"anmelden." -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." msgstr "" +"Bitte geben sie die E-Mail-Adresse ein, die in ihrem Benutzerkonto " +"eingetragen ist. Sie erhalten einen Link um ein neues Passwort via E-Mail zu " +"erstellen." -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "Sie müssen die Datenschutzrichtlinien akzeptieren." +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "E-Mail gesendet" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Wert erforderlich. Feld darf nicht leer sein." +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "Ein E-Mail wurder gesendet" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "Beginn" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Zurück zum Anmeldungsbildschirm" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "Ende" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "Protokoll" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "Keine Sendung" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "Dateiübersicht" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Aufzeichnen von Line-In?" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "Sendungsübersicht" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Wiederholen?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "Zurück" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "Abspielen" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "Pause" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "Nächster" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "Stopp" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "Maximale Lautstärke" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Aktualisierung erforderlich" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 #, php-format -msgid "Use %s Authentication:" +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." msgstr "" +"Um diese Datei abspielen zu können muß entweder der Browser oder das %sFlash " +"Plugin%s aktualisiert werden." -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Benutzerdefinierte Authentifizierung:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Dienst" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Benutzerdefinierter Benutzername" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Betriebszeit" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Benutzerdefiniertes Passwort" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "Das Feld Benutzername darf nicht leer sein." +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Speicher" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "Das Feld Passwort darf nicht leer sein." +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Airtime Version" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "E-Mail" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Speicherplatz" -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Passwort wiederherstellen" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Benutzer verwalten" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Hardware Audioausgabe" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "Neuer Benutzer" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Ausgabetyp" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "ID" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Icecast Vorbis Metadata" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Benutzername" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Streambezeichnung:" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "Vorname" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Artist - Titel" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Nachname" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Sendung - Interpret - Titel" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "Benutzertyp" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Radiostation - Sendung" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Vorher:" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Off Air Metadata" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Danach:" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Replay Gain aktivieren" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Stream-Quellen" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Replay Gain Modifikator" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Master Quelle" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%value%' ist keine gültige E-Mail-Adresse im Standardformat local-part@hostname" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Show Quelle" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" -msgstr "'%value%' wurde nicht im erforderlichen Datumsformat '%format%' eingegeben" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Planmäßig Abspielen" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" -msgstr "'%value%' ist kürzer als %min% Zeichen lang" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "ON AIR" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" -msgstr "'%value%' ist mehr als %max% Zeichen lang" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Hören" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" -msgstr "'%value%' liegt nicht zwischen '%min%' und '%max%'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Uhrzeit" + +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Die Probelaufzeit läuft ab in" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" -msgstr "Passwörter stimmen nicht überein" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "Tage" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' ist nicht im Format 'HH:mm'" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Kaufen sie eine Kopie von Airtime" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Datum/Zeit Start:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "Mein Konto" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Datum/Zeit Ende:" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Benutzername:" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Dauer:" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Passwort:" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Zeitzone:" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "" +"Geben sie die Zeichen ein, die im darunter liegenden Bild zu sehen sind." -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Wiederholungen?" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Ungültiges Zeichen eingeben" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Eine Sendung kann nicht für einen bereits vergangenen Zeitpunkt geplant werden" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "Tag muß angegeben werden" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Beginn- & Endzeit einer bereits laufenden Sendung können nicht geändert werden" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "Zeit muß angegeben werden" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "Enddatum / Endzeit darf nicht in der Vergangheit liegen." +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "" +"Das Wiederholen einer Sendung ist erst nach einer Stunde Wartezeit möglich." -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Die Dauer einer Sendung kann nicht kürzer als 0 Minuten sein." +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Airtime Authentifizierung:" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Die Dauer einer Sendung kann nicht 00h 00m sein" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Benutzerdefinierte Authentifizierung:" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Die Dauer einer Sendung kann nicht länger als 24h sein" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Benutzerdefinierter Benutzername" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Sendungen können nicht überlappend geplant werden." +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Benutzerdefiniertes Passwort" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Name:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "Das Feld Benutzername darf nicht leer sein." -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Unbenannte Sendung" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "Das Feld Passwort darf nicht leer sein." -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Aktiviert:" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Beschreibung:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Stream Typ:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" -msgstr "Automatisches Hochladen aufgezeichneter Sendungen" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Service Typ:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" -msgstr "Aktiviere SoundCloud Upload" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Kanäle:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" -msgstr "Markiere Dateien auf SoundCloud automatisch als \"herunterladbar\"" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" -msgstr "SoundCloud E-Mail" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Stereo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" -msgstr "SoundCloud Passwort" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Server" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" -msgstr "SoundCloud Tags: (mehrere Tags durch Leertaste trennen)" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Port" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" -msgstr "Standard Genre:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Es sind nur Zahlen erlaubt" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" -msgstr "Standard Titel Typ:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Passwort" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" -msgstr "Original" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "Remix" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Mount Point" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "Live" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Admin Benutzer" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "Aufzeichnung" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Admin Passwort" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "Talk" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Erhalte Information vom Server..." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "Podcast" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Server darf nicht leer sein." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "Demo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Port darf nicht leer sein." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "In Bearbeitung" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Mount darf nicht leer sein, wenn Icecast-Server verwendet wird." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "Eindämmen" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Import Verzeichnis:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "Loop" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Überwachte Verzeichnisse:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "Sound Effekt" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Kein gültiges Verzeichnis" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "One-Shot-Sample" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Wert erforderlich. Feld darf nicht leer sein." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "Sonstige" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'%value%' ist keine gültige E-Mail-Adresse im Standardformat local-" +"part@hostname" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Standard Lizenz:" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" +msgstr "" +"'%value%' wurde nicht im erforderlichen Datumsformat '%format%' eingegeben" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "Das Werk ist in der öffentlichen Domäne" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" +msgstr "'%value%' ist kürzer als %min% Zeichen lang" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "Alle Rechte vorbehalten" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" +msgstr "'%value%' ist mehr als %max% Zeichen lang" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Creative Commons Zuordnung" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" +msgstr "'%value%' liegt nicht zwischen '%min%' und '%max%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Creative Commons Zuordnung Noncommercial" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" +msgstr "Passwörter stimmen nicht überein" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Creative Commons Zuordnung No Derivative Works" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Aufzeichnen von Line-In?" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Creative Commons Zuordnung Share Alike" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Wiederholen?" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Creative Commons Zuordnung Noncommercial Non Derivate Works" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Hintergrundfarbe:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Creative Commons Zuordnung Noncommercial Share Alike" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Textfarbe:" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "Zeitzone Interface" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "E-Mail" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "System E-Mails aktivieren (Passwort Reset)" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Passwort wiederherstellen" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Reset Passwort 'From' E-Mail (Absenderbezeichnung)" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Abbrechen" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Mail-Server konfigurieren" +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Passwort bestätigen:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Authentifizierung erforderlich" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Vorname:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Mail-Server" +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Nachname:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "E-Mail Adresse" +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "E-Mail:" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "Bitte versichern Sie sich, dass Benutzer/Passwort unter System->Streams korrekt eingetragen ist." +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Mobiltelefon:" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Unbenannter Webstream" +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Webstream gespeichert" +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Ungültiger Eingabewert" +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "Zeitzone Interface" -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Bitte geben sie Benutzername und Passwort ein" +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Benutzername ist nicht einmalig." -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Falscher Benutzername oder falsches Passwort eingegeben. Bitte versuchen sie es erneut." +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Hardware Audioausgabe" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "E-Mail konnte nicht gesendet werden. Überprüfen sie die Einstellungen des Mail-Servers und versichern sie sich, daß dieser richtig konfiguriert ist." +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Ausgabetyp" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "Vorgegebene E-Mail-Adresse konnte nicht gefunden werden." +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Icecast Vorbis Metadata" -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Wiederholung der Sendung % s vom %s um %s" +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Streambezeichnung:" -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Herunterladen" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Artist - Titel" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "Benutzer erfolgreich hinzugefügt!" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Sendung - Interpret - Titel" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "Benutzer erfolgreich aktualisiert!" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Radiostation - Sendung" -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Einstellungen erfolgreich aktualisiert!" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Off Air Metadata" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Seite nicht gefunden" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Replay Gain aktivieren" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Anwendungsfehler" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Replay Gain Modifikator" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Aufzeichnung:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" +msgstr "Automatisches Hochladen aufgezeichneter Sendungen" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Master Stream" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" +msgstr "Aktiviere SoundCloud Upload" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Live Stream" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +msgstr "Markiere Dateien auf SoundCloud automatisch als \"herunterladbar\"" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Nichts geplant" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" +msgstr "SoundCloud E-Mail" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Aktuelle Sendung:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" +msgstr "SoundCloud Passwort" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Aktuell" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" +msgstr "SoundCloud Tags: (mehrere Tags durch Leertaste trennen)" + +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" +msgstr "Standard Genre:" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "Sie verwenden die aktuellste Version" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" +msgstr "Standard Titel Typ:" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "Neue Version verfügbar:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" +msgstr "Original" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "Diese Version wird in Kürze veraltet sein." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "Remix" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "Diese Version wird technisch nicht mehr unterstützt." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "Live" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Bitte aktualisieren sie auf " +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "Aufzeichnung" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Zu aktueller Playlist hinzufügen" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "Talk" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Zu aktuellem Smart Block hinzufügen" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "Podcast" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Füge 1 Objekt hinzu" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "Demo" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Füge %s Objekte hinzu" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "In Bearbeitung" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "Sie können einem Smart Block nur Titel hinzufügen (keine Playlist oa.)" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "Eindämmen" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "Sie können einer Playlist nur Titel, Smart Blocks und Webstreams hinzufügen." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "Loop" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "Bitte wählen Sie eine Cursor-Position auf der Zeitleiste." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "Sound Effekt" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Metadaten bearbeiten" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "One-Shot-Sample" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Zu gewählter Sendung hinzufügen" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "Sonstige" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Auswahl" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Standard Lizenz:" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Ganze Seite markieren" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "Das Werk ist in der öffentlichen Domäne" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Ganze Seite nicht markieren" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "Alle Rechte vorbehalten" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Keines Markieren" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Creative Commons Zuordnung" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Wollen sie die gewählten Objekte wirklich löschen?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Creative Commons Zuordnung Noncommercial" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "Geplant" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Creative Commons Zuordnung No Derivative Works" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "Playlist / Block" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Creative Commons Zuordnung Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Bitrate" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Creative Commons Zuordnung Noncommercial Non Derivate Works" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Samplerate" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Creative Commons Zuordnung Noncommercial Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "wird geladen..." +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Sendername" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "Alle" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "Standarddauer Crossfade (s):" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Dateien" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "Geben sie eine Zeit in Sekunden ein 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Playlisten" +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "Standard Fade In (s):" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Smart Blöcke" +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "Standard Fade Out (s):" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Web Streams" +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Erlaube Remote-Webseiten Zugriff auf \"Kalender\" Info?%s (Aktivierung " +"ermöglicht die Verwendung von Front-End Widgets.)" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Unbekannter Typ:" +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Deaktiviert" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Wollen sie das gewählte Objekt wirklich löschen?" +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Aktiviert" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Hochladen wird durchgeführt..." +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Standardsprache" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Daten werden vom Server abgerufen..." +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "Zeitzone Radiostation" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "Die SoundCloud ID für diese Datei ist:" +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "Woche startet mit " -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "Während dem Hochladen auf SoundCloud ist ein Fehler aufgetreten." +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Sonntag" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Fehler Code:" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Montag" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Fehlermeldung:" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Dienstag" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "Der eingegeben Wert muß eine positive Zahl sein" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Mittwoch" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "Der eingegebene Wert muß eine Zahl sein" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Donnerstag" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "Der Wert muß in folgendem Format eingegeben werden: yyyy-mm-dd" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Freitag" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "Der Wert muß in folgendem Format eingegeben werden: hh:mm:ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Samstag" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "Sie laden im Augenblich Datein hoch. %sDas Wechseln der Seite würde diesen Prozess abbrechen. %sSind sie sicher, daß sie die Seite verlassen möchten?" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Zeitpunkt Start:" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "Open Media Builder" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Zeitpunkt Ende:" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "Bitte geben sie eine Zeit an '00:00:00 (.0)'" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Telefon:" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "Bitte geben sie eine Zeit in Sekunden ein '00 (.0)'" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Sender-Webseite:" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Das Abspielen des folgenden Dateityps wird von ihrem Browser nicht unterstützt:" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Land:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Bei einem Dynamischen Block ist keine Vorschau möglich" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "Stadt:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Beschränkung auf:" +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Sender Beschreibung:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Playlist gespeichert" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Sender Logo:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "Playlist durchgemischt" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Support Feedback senden" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime kann den Status dieser Datei nicht bestimmen.\nDas kann passieren, wenn die Datei auf einem nicht erreichbaren Netzlaufwerk liegt oder in einem Verzeichnis liegt, das nicht mehr überwacht wird." +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Meine Radio Station auf Sourcefabric.org bewerben" -#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 #, php-format -msgid "Listener Count on %s: %s" -msgstr "Hörerzahl %s: %s" - -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "In einer Woche erinnern" - -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Niemals erinnern" +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "Hiermit akzeptiere ich Sourcefabric's %sDatenschutzrichtlinien%s." -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Ja, Airtime helfen" +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "Sie müssen die Datenschutzrichtlinien akzeptieren." -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "Ein Bild muß jpg, jpeg, png, oder gif sein." +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' ist nicht im Format 'HH:mm'" -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "Ein Statischer Smart Block speichert die Kriterien und erstellt den Block sofort.\nDadurch kann der Inhalt in der Bibliothek eingesehen und verändert werden bevor der Smart Block einer Sendung hinzugefügt wird." +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Datum/Zeit Start:" -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "Ein Dynamischer Smart Block speichert nur die Kriterien.\nDabei wird der Inhalt erst erstellt, wenn der Smart Block einer Sendung hinzugefügt wird. Der Inhalt des Smart Blocks kann in der Bibliothek nicht eingesehen oder verändert werden." +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Datum/Zeit Ende:" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "Wenn Airtime nicht genug einzigartige Titel findet, kann die gewünschte Dauer des Smart Blocks nicht erreicht werden.\nAktivieren sie diese Option um das mehrfache Hinzufügen von Titel zum Smart Block zu erlauben." +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Dauer:" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Smart Block durchgemischt" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Zeitzone:" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Smart Block erstellt und Kriterien gespeichert" +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Wiederholungen?" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Smart Block gespeichert" +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "" +"Eine Sendung kann nicht für einen bereits vergangenen Zeitpunkt geplant " +"werden" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "In Bearbeitung..." +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "" +"Beginn- & Endzeit einer bereits laufenden Sendung können nicht geändert " +"werden" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Wähle Storage-Verzeichnis" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "Enddatum / Endzeit darf nicht in der Vergangheit liegen." -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Wähle zu überwachendes Verzeichnis" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Die Dauer einer Sendung kann nicht kürzer als 0 Minuten sein." -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Wollen sie wirklich das Storage-Verzeichnis ändern?\nDieser Vorgang entfernt alle Dateien der Airtime-Bibliothek!" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Die Dauer einer Sendung kann nicht 00h 00m sein" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Verwalte Medienverzeichnisse" +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Die Dauer einer Sendung kann nicht länger als 24h sein" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Wollen sie den überwachten Ordner wirklich entfernen?" +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Unbenannte Sendung" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "Dieser Pfad ist derzeit nicht erreichbar." +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Benutzer suchen:" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "Manche Stream-Typen erfordern zusätzlich Konfiguration. Details zur Aktivierung von %sAAC+ Support%s oder %sOpus Support%s sind bereitgestellt." +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "DJs:" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Mit Streaming-Server verbunden" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Neues Passwort bestätigen" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "Der Stream ist deaktiviert" +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "Passwortbestätigung stimmt nicht mit Passwort überein" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Verbindung mit Streaming-Server kann nicht hergestellt werden." +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Neues Passwort erhalten" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Falls sich Airtime hinter einem Router oder einer Firewall befindet, müssen sie gegebenenfalls eine Portweiterleitung konfigurieren. \nDer Wert sollte so geändert werden, daß host/port/mount den Zugangsdaten der DJ's entspricht. Der erlaubte Bereich liegt zwischen 1024 und 49151." +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "Benutzertyp:" -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "Für weitere Information lesen sie bitte das %sAirtime Benutzerhandbuch%s" +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Gast" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Diese Option aktiviert Metadaten für Ogg-Streams.\n(Stream-Metadaten wie Titel, Interpret und Sendungsname können von Audioplayern angezeigt werden.)\nVLC und mplayer haben ernsthafte Probleme beim Abspielen von Ogg/Vorbis-Streams mit aktivierten Metadaten: Beide Anwendungen werden die Verbindung zum Stream nach jedem Titel verlieren. Sollten sie einen Ogg-Stream verwenden und ihre Hörer erwarten keinen Support für diese Audioplayer, können sie diese Option gerne aktivieren." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "DJ" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Aktivieren sie dieses Kästchen, um die Master-/Show-Quelle bei Unterbrechung der Leitung automatisch abzuschalten." +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Programm Manager" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Aktivieren sie dieses Kästchen, um die Master-/Show-Quelle bei Herstellung einer Leitung automatisch anzuschalten." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Admin" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Falls der Icecast-Server den Benutzernamen 'source' erwartet, kann dieses Feld leer gelassen werden." +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "ISRC Nummer:" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "Falls der Live-Streaming-Client keinen Benutzernamen verlangt, sollte in dieses Feld 'source' eingetragen werden." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Sendung:" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "Wenn sie Benutzername oder Passwort eines aktivierten Streams ändern, wird das Playout-System neu gestartet und die Hörer werden für 5-10 Sekunden Stille hören.\nDas Wechseln folgender Werte erfordert KEINEN Neustart: Stream Label (Globale Einstellungen), Master Übergang beim Umschalten (Fade in Sekunden), Master Username und Master Passwort (Input Stream Einstellungen). Falls Airtime während eines Neustart des Dienstes eine Sendung aufzeichnet, wird die Aufzeichnung unterbrochen." +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "Alle meine Sendungen:" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "Das sind Admin Benutzername und Passwort, für die Hörerstatistiken von Icecast/SHOUTcast." +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "Verknüpfen:" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "Warnung: Dieses Feld kann nicht geändert werden, während die Sendung wiedergegeben wird." +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Wiederholungstyp:" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "Kein Ergebnis gefunden" +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "Wöchentlich" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "Diese Einstellung folgt den Sicherheitsvorlagen für Shows: Nur Benutzer denen diese Sendung zugewiesen wurde, können sich verbinden." +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "jede Zweite Woche" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Hiermit aktiviert man eine benutzerdefinierte Authentifizierung, welche nur für diese Sendung funktionieren wird." +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "jede Dritte Woche" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "Die Sendungsinstanz existiert nicht mehr!" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "jede Vierte Woche" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "Warnung: Sendungen können nicht erneut verknüpft werden." +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "Monatlich" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "Beim Verknüpfen von wiederkehrenden Sendungen werden jegliche Medien, die in einer wiederkehrenden Sendung geplant sind, auch in den anderen Sendungen geplant." +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Tage wählen:" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "Die Zeitzone ist standardmäßig auf die Zeitzone der Radiostation eingestellt. Der Im Kalender werden die Sendungen in jener Ortszeit dargestellt, welche in den Benutzereinstellungen für das Interface festgelegt wurde." +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "SO" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Sendung" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "MO" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "Sendung ist leer" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "DI" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1m" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "MI" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5m" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "DO" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10m" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "FR" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15m" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "SA" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30m" +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "Wiederholung am:" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60m" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "Tag des Monats" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Daten werden vom Server abgerufen..." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "Tag der Woche" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "Diese Sendung hat keinen geplanten Inhalt." +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "Kein Enddatum?" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "Diese Sendung ist noch nicht vollständig mit Inhalt befüllt." +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "Enddatum muß nach Startdatum liegen." -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "Januar" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "Bitte Tag zum Wiederholen wählen" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "Februar" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "System E-Mails aktivieren (Passwort Reset)" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "März" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Reset Passwort 'From' E-Mail (Absenderbezeichnung)" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "April" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Mail-Server konfigurieren" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "Mai" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Authentifizierung erforderlich" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "Juni" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Mail-Server" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "Juli" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "E-Mail Adresse" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "August" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Kriterien wählen" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "September" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Bitrate (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "Oktober" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "November" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "Dezember" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Jan" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Encoded By" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Feb" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Zuletzt geändert" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Mär" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Zuletzt gespielt" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Apr" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Mime" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Mai" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Besitzer" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Jul" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Replay Gain" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Aug" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Sample Rate (KHz)" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Sep" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Titelnummer" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Okt" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Hochgeladen" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Nov" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Webseite" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Dez" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Wähle Modifikator" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "Heute" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "enthält" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "Tag" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "enthält nicht" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "Woche" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "ist" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "Monat" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "ist nicht" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Wenn der Inhalt einer Sendung länger ist als die Sendung im Kalender geplant ist, wird das Ende durch eine nachfolgende Sendung abgeschnitten." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "beginnt mit" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Aktuelle Sendung abbrechen?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "endet mit" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Aufzeichnung der aktuellen Sendung stoppen?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "ist größer als" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "OK" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "ist kleiner als" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Sendungsinhalt" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "ist im Bereich" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Gesamten Inhalt entfernen?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "Stunden" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Gewählte Objekte löschen?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "Minuten" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Beginn" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "Objekte" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "Ende" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Smart Block Typ festlegen:" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Dauer" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Statisch" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Sendung leer" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Dynamisch" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Aufzeichnen von Line-In" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Erlaube Wiederholen von Titeln:" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Titelvorschau" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Beschränkt auf " -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Es ist keine Planung außerhalb einer Sendung möglich." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Playlist-Inhalt erstellen und Kriterien speichern" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Verschiebe 1 Objekt" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Erstellen" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Verschiebe %s Objekte" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Shuffle Playlist-Inhalt (Durchmischen)" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "Fade Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "Beschränkung kann nicht leer oder kleiner als 0 sein." -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "Cue Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "Beschränkung kann nicht größer als 24 Stunden sein" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "Wellenform-Funktionen ist in Browsern möglich, welche die Web Audio API unterstützen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "Der Wert muß eine ganze Zahl sein." -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Alle markieren" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "Die Anzahl der Objekte ist auf 500 beschränkt." -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Nichts Markieren" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "Sie müssen Kriterium und Modifikator bestimmen" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Überbuchte Titel entfernen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "Die 'Dauer' muß im Format '00:00:00' eingegeben werden" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Gewähltes Objekt entfernen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"Der Wert muß im Timestamp-Format eingegeben werden (zB. 0000-00-00 oder " +"0000-00-00 00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Springe zu aktuellem Titel" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "Der eingegebene Wert muß aus Ziffern bestehen" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Aktuelle Sendung abbrechen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "Der eingegebene Wert muß kleiner sein als 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Um Inhalte hinzuzufügen oder zu entfernen muß die Bibliothek geöffnet werden" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "Der eingegebene Wert muß aus weniger als %s Zeichen bestehen." -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Inhalt hinzufügen / entfernen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "Wert kann nicht leer sein" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "In Verwendung" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Automatisch abschalten" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Disk" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Automatisch einschalten" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Suchen in" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Übergang beim Umschalten (Fade in Sekunden)" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Öffnen" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "Eingabe der Zeit in Sekunden 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "Gäste können folgendes tun:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Master Benutzername" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "Kalender betrachten" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Master Passwort" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "Sendungsinhalt betrachten" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "Master-Quelle Adresse (URL)" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "DJ's können folgendes tun:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "Show-Quelle Adresse (URL)" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Verwalten zugewiesener Sendungsinhalte" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Master-Quelle Port" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Mediendateien importieren" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Master-Quelle Mount Point" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Erstellen von Playlisten, Smart Blöcken und Webstreams" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Show-Quelle Port" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Verwalten eigener Bibliotheksinhalte" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Show-Quelle Mount Point" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "Programm Manager können folgendes tun:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "Sie können nicht denselben Port wie für die Master-Quelle verwenden." -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "Sendungsinhalte betrachten und verwalten" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Port %s ist nicht verfügbar" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Sendungen festlegen" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" +"Airtime Copyright ©Sourcefabric o.p.s. Alle Rechte vorbehalten." +"%sGepflegt und vertrieben unter GNU GPL v.3 von %sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "Verwalten der gesamten Bibliothek" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Abmelden" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Admins können folgendes tun:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "Abspielen" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Einstellungen verwalten" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "Stopp" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "Benutzer verwalten" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "Cue In setzen" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "Verwalten überwachter Ordner" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "Cue Out setzen" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "System Status betrachten" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "Cursor" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Zugriff auf Playout Verlauf" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Fade In" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "Hörerstatistiken betrachten" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Fade Out" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Spalten zeigen / verbergen" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Audio Player" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "Von {from} bis {to}" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Bitte geben sie Benutzername und Passwort ein" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "" +"Falscher Benutzername oder falsches Passwort eingegeben. Bitte versuchen sie " +"es erneut." -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "yyyy-mm-dd" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"E-Mail konnte nicht gesendet werden. Überprüfen sie die Einstellungen des " +"Mail-Servers und versichern sie sich, daß dieser richtig konfiguriert ist." -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "Vorgegebene E-Mail-Adresse konnte nicht gefunden werden." -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Aufzeichnung:" -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "So" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Master Stream" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Mo" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Live Stream" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Di" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Nichts geplant" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "Mi" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Aktuelle Sendung:" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Do" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Aktuell" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Fr" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "Sie verwenden die aktuellste Version" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Sa" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "Neue Version verfügbar:" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Schließen" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "Diese Version wird in Kürze veraltet sein." -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Stunde" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "Diese Version wird technisch nicht mehr unterstützt." -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Minute" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Bitte aktualisieren sie auf " -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Fertig" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Zu aktueller Playlist hinzufügen" -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Dateien wählen" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Zu aktuellem Smart Block hinzufügen" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Fügen sie zum Hochladen Dateien der Warteschlange hinzu und drücken Sie auf Start." +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Füge 1 Objekt hinzu" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Status" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "Füge %s Objekte hinzu" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Dateien hinzufügen" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "Sie können einem Smart Block nur Titel hinzufügen (keine Playlist oa.)" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Hochladen stoppen" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "" +"Sie können einer Playlist nur Titel, Smart Blocks und Webstreams hinzufügen." -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Hochladen starten" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "Bitte wählen Sie eine Cursor-Position auf der Zeitleiste." -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Dateien hinzufügen" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Metadaten bearbeiten" -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "%d/%d Dateien hochgeladen" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Zu gewählter Sendung hinzufügen" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "Nicht Verfügbar" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Auswahl" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Dateien hierher ziehen" +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Ganze Seite markieren" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "Dateierweiterungsfehler" +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Ganze Seite nicht markieren" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "Dateigrößenfehler" +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Keines Markieren" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "Dateianzahlfehler" +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Wollen sie die gewählten Objekte wirklich löschen?" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Init Fehler" +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "Geplant" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "HTTP-Fehler" +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "Playlist / Block" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Sicherheitsfehler" +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Bitrate" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Allgemeiner Fehler" +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Samplerate" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "IO-Fehler" +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "wird geladen..." -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "Datei: %s" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Dateien" -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d Dateien in der Warteschlange" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Playlisten" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "Datei: %f, Größe: %s, Maximale Dateigröße: %m" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Smart Blöcke" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "Upload-URL scheint falsch zu sein oder existiert nicht" +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Web Streams" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Fehler: Datei zu groß" +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Unbekannter Typ:" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Fehler: Ungültige Dateierweiterung:" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Wollen sie das gewählte Objekt wirklich löschen?" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "Standard festlegen" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Hochladen wird durchgeführt..." -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "Eintrag erstellen" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Daten werden vom Server abgerufen..." -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "Verlaufsprotokoll bearbeiten" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "Die SoundCloud ID für diese Datei ist:" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "%s Reihen%s in die Zwischenablage kopiert" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "Während dem Hochladen auf SoundCloud ist ein Fehler aufgetreten." -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%sPrint view%sBitte verwenden Sie zum Ausdrucken dieser Tabelle die Browser-interne Druckfunktion. Drücken Sie die Escape-Taste nach Fertigstellung." +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Fehler Code:" -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "Sie haben nicht die erforderliche Berechtigung die Quelle zu trennen." +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Fehlermeldung:" -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "Mit diesem Eingang ist keine Quelle verbunden." +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "Der eingegeben Wert muß eine positive Zahl sein" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "Sie haben nicht die erforderliche Berechtigung die Quelle zu wechseln." +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "Der eingegebene Wert muß eine Zahl sein" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "Sie betrachten eine ältere Version von %s" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "Der Wert muß in folgendem Format eingegeben werden: yyyy-mm-dd" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "Sie können einem Dynamischen Smart Block keine einzelnen Titel hinzufügen." +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "Der Wert muß in folgendem Format eingegeben werden: hh:mm:ss.t" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "%s not found" -msgstr "%s nicht gefunden" +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"Sie laden im Augenblich Datein hoch. %sDas Wechseln der Seite würde diesen " +"Prozess abbrechen. %sSind sie sicher, daß sie die Seite verlassen möchten?" -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "Sie haben zum Löschen der gewählten %s (s) nicht die erforderliche Berechtigung. " +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "Open Media Builder" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Etwas ist falsch gelaufen." +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "Bitte geben sie eine Zeit an '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "Sie können einem Smart Block nur Titel hinzufügen." +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "Bitte geben sie eine Zeit in Sekunden ein '00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Unbenannte Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "" +"Das Abspielen des folgenden Dateityps wird von ihrem Browser nicht " +"unterstützt:" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Unbenannter Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Bei einem Dynamischen Block ist keine Vorschau möglich" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Unbenannte Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Beschränkung auf:" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "Sie haben nicht die erforderliche Berechtigung sich mit dieser Quelle zu verbinden." +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Playlist gespeichert" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "Sie haben nicht die erforderliche Berechtigung sich mit dieser Quelle zu verbinden." +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "Playlist durchgemischt" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." msgstr "" +"Airtime kann den Status dieser Datei nicht bestimmen.\n" +"Das kann passieren, wenn die Datei auf einem nicht erreichbaren Netzlaufwerk " +"liegt oder in einem Verzeichnis liegt, das nicht mehr überwacht wird." -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Fehlerhafte Anfrage. Kein passender 'Mode'-Parameter." - -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Fehlerhafte Anfrage. 'Mode'-Parameter ist ungültig." +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "Hörerzahl %s: %s" -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Vorschau" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "In einer Woche erinnern" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Zu Playlist hinzufügen" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Niemals erinnern" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Hinzufügen zu Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Ja, Airtime helfen" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Löschen" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "Ein Bild muß jpg, jpeg, png, oder gif sein." -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Playlist duplizieren" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." +msgstr "" +"Ein Statischer Smart Block speichert die Kriterien und erstellt den Block " +"sofort.\n" +"Dadurch kann der Inhalt in der Bibliothek eingesehen und verändert werden " +"bevor der Smart Block einer Sendung hinzugefügt wird." -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Bearbeiten" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"Ein Dynamischer Smart Block speichert nur die Kriterien.\n" +"Dabei wird der Inhalt erst erstellt, wenn der Smart Block einer Sendung " +"hinzugefügt wird. Der Inhalt des Smart Blocks kann in der Bibliothek nicht " +"eingesehen oder verändert werden." -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"Wenn Airtime nicht genug einzigartige Titel findet, kann die gewünschte " +"Dauer des Smart Blocks nicht erreicht werden.\n" +"Aktivieren sie diese Option um das mehrfache Hinzufügen von Titel zum Smart " +"Block zu erlauben." -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Auf SoundCloud ansehen" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Smart Block durchgemischt" -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Nochmal auf SoundCloud hochladen." +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Smart Block erstellt und Kriterien gespeichert" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Auf SoundCloud hochladen " +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Smart Block gespeichert" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "Keine Aktion verfügbar" +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "In Bearbeitung..." -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "Sie haben nicht die erforderliche Berechtigung die gewählten Objekte zu löschen." +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Wähle Storage-Verzeichnis" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Manche der festgelegten Dateien konnten nicht gelöscht werden." +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Wähle zu überwachendes Verzeichnis" -#: airtime_mvc/application/controllers/LibraryController.php:404 -#, php-format -msgid "Copy of %s" -msgstr "Kopie von %s" +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Wollen sie wirklich das Storage-Verzeichnis ändern?\n" +"Dieser Vorgang entfernt alle Dateien der Airtime-Bibliothek!" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Cursor wählen" +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Wollen sie den überwachten Ordner wirklich entfernen?" -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Cursor entfernen" +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "Dieser Pfad ist derzeit nicht erreichbar." -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "Sendung existiert nicht." +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#, php-format +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" +"Manche Stream-Typen erfordern zusätzlich Konfiguration. Details zur " +"Aktivierung von %sAAC+ Support%s oder %sOpus Support%s sind bereitgestellt." -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Einstellungen aktualisiert" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Mit Streaming-Server verbunden" -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Support-Einstellungen aktualisiert." +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "Der Stream ist deaktiviert" -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Support Feedback" +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Verbindung mit Streaming-Server kann nicht hergestellt werden." -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Stream-Einstellungen aktualisiert." +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"Falls sich Airtime hinter einem Router oder einer Firewall befindet, müssen " +"sie gegebenenfalls eine Portweiterleitung konfigurieren. \n" +"Der Wert sollte so geändert werden, daß host/port/mount den Zugangsdaten der " +"DJ's entspricht. Der erlaubte Bereich liegt zwischen 1024 und 49151." -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "Pfad muß angegeben werden" +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "" +"Für weitere Information lesen sie bitte das %sAirtime Benutzerhandbuch%s" -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Problem mit Liquidsoap..." +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"Diese Option aktiviert Metadaten für Ogg-Streams.\n" +"(Stream-Metadaten wie Titel, Interpret und Sendungsname können von " +"Audioplayern angezeigt werden.)\n" +"VLC und mplayer haben ernsthafte Probleme beim Abspielen von Ogg/Vorbis-" +"Streams mit aktivierten Metadaten: Beide Anwendungen werden die Verbindung " +"zum Stream nach jedem Titel verlieren. Sollten sie einen Ogg-Stream " +"verwenden und ihre Hörer erwarten keinen Support für diese Audioplayer, " +"können sie diese Option gerne aktivieren." -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Jetzt" +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Aktivieren sie dieses Kästchen, um die Master-/Show-Quelle bei Unterbrechung " +"der Leitung automatisch abzuschalten." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Medien hinzufügen" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Aktivieren sie dieses Kästchen, um die Master-/Show-Quelle bei Herstellung " +"einer Leitung automatisch anzuschalten." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Bibliothek" +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"Falls der Icecast-Server den Benutzernamen 'source' erwartet, kann dieses " +"Feld leer gelassen werden." -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Kalender" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"Falls der Live-Streaming-Client keinen Benutzernamen verlangt, sollte in " +"dieses Feld 'source' eingetragen werden." -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "System" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"Wenn sie Benutzername oder Passwort eines aktivierten Streams ändern, wird " +"das Playout-System neu gestartet und die Hörer werden für 5-10 Sekunden " +"Stille hören.\n" +"Das Wechseln folgender Werte erfordert KEINEN Neustart: Stream Label " +"(Globale Einstellungen), Master Übergang beim Umschalten (Fade in Sekunden), " +"Master Username und Master Passwort (Input Stream Einstellungen). Falls " +"Airtime während eines Neustart des Dienstes eine Sendung aufzeichnet, wird " +"die Aufzeichnung unterbrochen." -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"Das sind Admin Benutzername und Passwort, für die Hörerstatistiken von " +"Icecast/SHOUTcast." -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Benutzer" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" +"Warnung: Dieses Feld kann nicht geändert werden, während die Sendung " +"wiedergegeben wird." -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Medienverzeichnisse" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "Kein Ergebnis gefunden" -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Streams" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"Diese Einstellung folgt den Sicherheitsvorlagen für Shows: Nur Benutzer " +"denen diese Sendung zugewiesen wurde, können sich verbinden." -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Hörerstatistiken" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "" +"Hiermit aktiviert man eine benutzerdefinierte Authentifizierung, welche nur " +"für diese Sendung funktionieren wird." -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" -msgstr "Verlauf" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "Die Sendungsinstanz existiert nicht mehr!" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Playout Verlauf" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "Warnung: Sendungen können nicht erneut verknüpft werden." -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "Verlaufsvorlagen" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" +"Beim Verknüpfen von wiederkehrenden Sendungen werden jegliche Medien, die in " +"einer wiederkehrenden Sendung geplant sind, auch in den anderen Sendungen " +"geplant." -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Hilfe" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." +msgstr "" +"Die Zeitzone ist standardmäßig auf die Zeitzone der Radiostation " +"eingestellt. Der Im Kalender werden die Sendungen in jener Ortszeit " +"dargestellt, welche in den Benutzereinstellungen für das Interface " +"festgelegt wurde." -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Kurzanleitung" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Sendung" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "Benutzerhandbuch" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "Sendung ist leer" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "Über" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Dienst" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Betriebszeit" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Speicher" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Speicherplatz" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Daten werden vom Server abgerufen..." -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "E-Mail- / Mail-Server-Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "Diese Sendung hat keinen geplanten Inhalt." -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "SoundCloud Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "Diese Sendung ist noch nicht vollständig mit Inhalt befüllt." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Wiederholungstage:" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "Januar" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Entfernen" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "Februar" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Hinzufügen" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "März" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "Verbindung URL:" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "April" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Stream-Eingang Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "Mai" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "Master-Quelle Verbindungs-URL:" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "Juni" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Übersteuern" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "Juli" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "OK" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "August" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "RESET" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "September" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "Show-Quelle Verbindungs-URL:" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "Oktober" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Erforderlich)" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "November" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Airtime registrieren" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "Dezember" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Jan" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "Feb" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(Ausschließlich zu Kontrollzwecken, wird nicht veröffentlicht)" +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "Mär" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Erinnerung: Sind Dateien größer als 600x600 Pixel, wird die Größe geändert." +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "Apr" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Zeige mir was ich sende" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "Mai" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Geschäftsbedingungen und Rahmenverhältnisse" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "Jul" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Passwort zurücksetzen" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "Aug" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Verzeichnis wählen" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "Sep" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Wählen" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "Okt" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Aktuelles Import-Verzeichnis:" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "Nov" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "Dez" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Überwachten Ordner entfernen" +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "Heute" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "Sie überwachen keine Medienverzeichnisse." +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "Tag" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Stream" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "Woche" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Erweiterte Optionen" +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "Monat" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "Die Hörer werden folgende Information auf dem Display ihres Medien-Players sehen:" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "" +"Wenn der Inhalt einer Sendung länger ist als die Sendung im Kalender geplant " +"ist, wird das Ende durch eine nachfolgende Sendung abgeschnitten." + +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Aktuelle Sendung abbrechen?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(Webseite ihrer Radiostation)" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Aufzeichnung der aktuellen Sendung stoppen?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "Stream URL:" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "OK" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Filter Verlauf" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Sendungsinhalt" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Sendungen suchen" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Gesamten Inhalt entfernen?" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Nach Sendung filtern:" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Gewählte Objekte löschen?" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "%s's Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "Ende" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Dauer" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(Um ihre Radiostation bewerben zu können, muß 'Support Feedback senden' aktiviert sein)" +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Sendung leer" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Sourcefabric Datenschutzrichtlinie" +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Aufzeichnen von Line-In" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "Folge wählen" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Titelvorschau" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "Finden" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Es ist keine Planung außerhalb einer Sendung möglich." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Tag wählen:" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Verschiebe 1 Objekt" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Smart Block Optionen" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Verschiebe %s Objekte" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "oder" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" +msgstr "Fade Editor" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "and" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" +msgstr "Cue Editor" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr " bis " +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "" +"Wellenform-Funktionen ist in Browsern möglich, welche die Web Audio API " +"unterstützen" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "Dateien entsprechen den Kriterien" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Alle markieren" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "entspricht den Kriterien" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Nichts Markieren" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "Erstelle Dateiübersichtsvorlage" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Überbuchte Titel entfernen" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "Erstelle Protokollvorlage" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Gewähltes Objekt entfernen" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "Weitere Elemente hinzufügen" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Springe zu aktuellem Titel" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "Neues Feld hinzufügen" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Aktuelle Sendung abbrechen" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "Standardvorlage festlegen" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "" +"Um Inhalte hinzuzufügen oder zu entfernen muß die Bibliothek geöffnet werden" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "Protokollvorlagen" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "In Verwendung" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "Keine Protokollvorlagen" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Disk" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "Neue Protokollvorlage" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Suchen in" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "Dateiübersichtsvorlagen" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Öffnen" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "Keine Dateiübersichtsvorlagen" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "Gäste können folgendes tun:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "Neue Dateiübersichtsvorlage" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "Kalender betrachten" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "Neu" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "Sendungsinhalt betrachten" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "Neue Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "DJ's können folgendes tun:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "Neuer Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "Verwalten zugewiesener Sendungsinhalte" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "Neuer Webstream" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Mediendateien importieren" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "Beschreibung ansehen / bearbeiten" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Erstellen von Playlisten, Smart Blöcken und Webstreams" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "Stream URL:" +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "Verwalten eigener Bibliotheksinhalte" + +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "Programm Manager können folgendes tun:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Standard Dauer:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "Sendungsinhalte betrachten und verwalten" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "Kein Webstream" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Sendungen festlegen" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Stream Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "Verwalten der gesamten Bibliothek" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Globale Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "Admins können folgendes tun:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "dB" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Einstellungen verwalten" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Stream-Ausgabe Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "Benutzer verwalten" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "Datei-Import in Bearbeitung..." +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "Verwalten überwachter Ordner" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Erweiterte Suchoptionen" +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "System Status betrachten" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "Zurück" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Zugriff auf Playout Verlauf" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "Abspielen" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "Hörerstatistiken betrachten" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "Pause" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Spalten zeigen / verbergen" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "Nächster" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "Von {from} bis {to}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "Stopp" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "Stumm schalten" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "yyyy-mm-dd" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "Laut schalten" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "hh:mm:ss.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "Maximale Lautstärke" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Aktualisierung erforderlich" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "So" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "Um diese Datei abspielen zu können muß entweder der Browser oder das %sFlash Plugin%s aktualisiert werden." +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Mo" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Dauer:" +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Di" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Samplerate:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "Mi" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "ISRC Number:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Do" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "Dateipfad:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Fr" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Web Stream" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "Sa" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Dynamischer Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Stunde" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Statischer Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Minute" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Titel" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Fertig" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Playlist Inhalt:" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Dateien wählen" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Statischer Smart Block Inhalt:" +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "" +"Fügen sie zum Hochladen Dateien der Warteschlange hinzu und drücken Sie auf " +"Start." -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Dynamische Smart Block Kriterien:" +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Dateien hinzufügen" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Begrenzt auf " +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Hochladen stoppen" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Hörerzahl im Zeitraffer" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Hochladen starten" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 -#, php-format -msgid "Welcome to %s!" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Dateien hinzufügen" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "" +msgid "Uploaded %d/%d files" +msgstr "%d/%d Dateien hochgeladen" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Beginnen sie damit, Dateien ihrer Bibliothek hinzuzufügen. Verwenden sie dazu die Schaltfläche 'Medien Hinzufügen'. Dateien können auch via Drag'n'Drop hinzugefügt werden." +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "Nicht Verfügbar" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Erstellen sie eine Sendung, indem sie in der Menüzeile die Schaltfläche 'Kalender' betätigen und anschließend die Schaltfläche '+ Sendung' wählen. Dies kann eine einmalige oder sich wiederholende Sendung sein. Nur Administratoren und Programm Manager können Sendungen hinzufügen." +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Dateien hierher ziehen" + +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "Dateierweiterungsfehler" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Fügen sie Mediendateien einer Show hinzu.\nÖffnen sie dazu die gewünschte Sendung durch einen Links-Klick darauf im Kalender und wählen sie 'Inhalt hinzufügen / entfernen'" +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "Dateigrößenfehler" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Wählen sie Medien vom linken Feld und ziehen sie diese in ihre Sendung im rechten Feld." +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "Dateianzahlfehler" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "Dann kann es auch schon los gehen!" +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Init Fehler" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "Für weitere Hilfe bitte das %sBenutzerhandbuch%s lesen." +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "HTTP-Fehler" -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Teilen" +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Sicherheitsfehler" -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Stream wählen:" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Allgemeiner Fehler" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "IO-Fehler" + +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "" +msgid "File: %s" +msgstr "Datei: %s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "" +msgid "%d files queued" +msgstr "%d Dateien in der Warteschlange" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "Neues Passwort" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "Datei: %f, Größe: %s, Maximale Dateigröße: %m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Bitte in den nachstehenden Feldern das neue Passwort eingeben und bestätigen." +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "Upload-URL scheint falsch zu sein oder existiert nicht" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Bitte geben sie die E-Mail-Adresse ein, die in ihrem Benutzerkonto eingetragen ist. Sie erhalten einen Link um ein neues Passwort via E-Mail zu erstellen." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Fehler: Datei zu groß" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "E-Mail gesendet" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "Fehler: Ungültige Dateierweiterung:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "Ein E-Mail wurder gesendet" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "Eintrag erstellen" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Zurück zum Anmeldungsbildschirm" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "Verlaufsprotokoll bearbeiten" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "%s Reihen%s in die Zwischenablage kopiert" + +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" +"%sPrint view%sBitte verwenden Sie zum Ausdrucken dieser Tabelle die Browser-" +"interne Druckfunktion. Drücken Sie die Escape-Taste nach Fertigstellung." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Vorher:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Danach:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Stream-Quellen" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Master Quelle" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Show Quelle" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Vorschau" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Planmäßig Abspielen" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Cursor wählen" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "ON AIR" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Cursor entfernen" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Hören" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "Sendung existiert nicht." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Uhrzeit" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Einstellungen aktualisiert" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Die Probelaufzeit läuft ab in" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Support-Einstellungen aktualisiert." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Stream-Einstellungen aktualisiert." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "Mein Konto" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "Pfad muß angegeben werden" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Benutzer verwalten" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Problem mit Liquidsoap..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "Neuer Benutzer" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Seite nicht gefunden" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "ID" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Anwendungsfehler" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "Vorname" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s nicht gefunden" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Nachname" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Etwas ist falsch gelaufen." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "Benutzertyp" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Zu Playlist hinzufügen" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "Protokoll" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Hinzufügen zu Smart Block" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "Dateiübersicht" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Herunterladen" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "Sendungsübersicht" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Playlist duplizieren" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Zend Framework Default Application" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "SoundCloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Seite nicht gefunden!" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "Keine Aktion verfügbar" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "Scheinbar existiert die Seite die sie suchen nicht!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "" +"Sie haben nicht die erforderliche Berechtigung die gewählten Objekte zu " +"löschen." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Statischen Block erweitern" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "Manche der festgelegten Dateien konnten nicht gelöscht werden." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Dynamischen Block erweitern" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Kopie von %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Smart Block leer" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Unbenannter Webstream" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Playlist leer" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Webstream gespeichert" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "Playlist leeren" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Ungültiger Eingabewert" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "Leeren" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "Sie haben nicht die erforderliche Berechtigung die Quelle zu trennen." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Shuffle Playlist" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "Mit diesem Eingang ist keine Quelle verbunden." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Playlist speichern" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "Sie haben nicht die erforderliche Berechtigung die Quelle zu wechseln." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Playlist Crossfade" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "Benutzer erfolgreich hinzugefügt!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Fade In:" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "Benutzer erfolgreich aktualisiert!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Fade Out:" +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "Einstellungen erfolgreich aktualisiert!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "Keine Playlist geöffnet" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Wiederholung der Sendung % s vom %s um %s" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "Smart Block leeren" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." +msgstr "" +"Bitte versichern Sie sich, dass Benutzer/Passwort unter System->Streams " +"korrekt eingetragen ist." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "" +"Sie haben nicht die erforderliche Berechtigung sich mit dieser Quelle zu " +"verbinden." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "Kein Smart Block geöffnet" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "" +"Sie haben nicht die erforderliche Berechtigung sich mit dieser Quelle zu " +"verbinden." -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "Wellenform anzeigen" +#: airtime_mvc/application/controllers/ApiController.php:558 +msgid "File does not exist in Airtime." +msgstr "Datei existiert nicht in Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Cue In:" +#: airtime_mvc/application/controllers/ApiController.php:578 +msgid "File does not exist in Airtime" +msgstr "Datei existiert nicht in Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:590 +msgid "File doesn't exist in Airtime." +msgstr "Datei existiert nicht in Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Cue Out:" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Fehlerhafte Anfrage. Kein passender 'Mode'-Parameter." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Original Dauer:" +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Fehlerhafte Anfrage. 'Mode'-Parameter ist ungültig." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Sendung hinzufügen" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "Sie betrachten eine ältere Version von %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Sendung aktualisieren" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "" +"Sie können einem Dynamischen Smart Block keine einzelnen Titel hinzufügen." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "Was" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "" +"Sie haben zum Löschen der gewählten %s (s) nicht die erforderliche " +"Berechtigung. " -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "Wann" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "Sie können einem Smart Block nur Titel hinzufügen." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Live-Stream Eingang" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Unbenannte Playlist" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Aufzeichnen & Wiederholen" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Unbenannter Smart Block" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Wer" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Unbenannte Playlist" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Style" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "Cue In und Cue Out sind Null." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Wiederholung von %s am %s" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "Cue In darf nicht größer als die Gesamtdauer der Datei sein." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Land wählen" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "Cue In darf nicht größer als Cue Out sein." + +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Cue Out darf nicht kleiner als Cue In sein." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3642,50 +4330,33 @@ msgstr "M3U-Playlist konnte nicht aufgeschlüsselt werden." #: airtime_mvc/application/models/Webstream.php:314 msgid "Invalid webstream - This appears to be a file download." -msgstr "Ungültiger Webstream - Die eingegebene URL scheint ein Dateidownload zu sein." +msgstr "" +"Ungültiger Webstream - Die eingegebene URL scheint ein Dateidownload zu sein." #: airtime_mvc/application/models/Webstream.php:318 #, php-format msgid "Unrecognized stream type: %s" msgstr "Unbekannter Stream-Typ: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s wird bereits überwacht." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s enthält andere bereits überwachte Verzeichnisse: %s " - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s ist ein Unterverzeichnis eines bereits überwachten Verzeichnisses: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s ist kein gültiges Verzeichnis." - -#: airtime_mvc/application/models/MusicDir.php:232 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s ist bereits als aktuelles Speicherverzeichnis bestimmt oder in der Liste überwachter Verzeichnisse." - -#: airtime_mvc/application/models/MusicDir.php:386 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s ist bereits als aktuelles Speicherverzeichnis bestimmt oder in der Liste überwachter Verzeichnisse." - -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s existiert nicht in der Liste überwachter Verzeichnisse." +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Hallo %s,\n" +"\n" +"Klicke auf diesen Link um dein Passwort zurückzusetzen:" + +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Airtime Passwort Reset" + +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Land wählen" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3693,13 +4364,18 @@ msgstr "Objekte aus einer verknüpften Sendung können nicht verschoben werden." #: airtime_mvc/application/models/Scheduler.php:119 msgid "The schedule you're viewing is out of date! (sched mismatch)" -msgstr "Der Kalender den sie sehen ist nicht mehr aktuell! (Kalender falsch eingepasst)" +msgstr "" +"Der Kalender den sie sehen ist nicht mehr aktuell! (Kalender falsch " +"eingepasst)" #: airtime_mvc/application/models/Scheduler.php:124 msgid "The schedule you're viewing is out of date! (instance mismatch)" -msgstr "Der Kalender den sie sehen ist nicht mehr aktuell! (Objekt falsch eingepasst)" +msgstr "" +"Der Kalender den sie sehen ist nicht mehr aktuell! (Objekt falsch eingepasst)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3708,7 +4384,9 @@ msgstr "Der Kalender den sie sehen ist nicht mehr aktuell." #: airtime_mvc/application/models/Scheduler.php:142 #, php-format msgid "You are not allowed to schedule show %s." -msgstr "Sie haben nicht die erforderliche Berechtigung einen Termin für die Sendung %s zu festzulegen." +msgstr "" +"Sie haben nicht die erforderliche Berechtigung einen Termin für die Sendung " +"%s zu festzulegen." #: airtime_mvc/application/models/Scheduler.php:146 msgid "You cannot add files to recording shows." @@ -3728,63 +4406,67 @@ msgstr "Die Sendung %s wurde bereits aktualisiert." msgid "" "Content in linked shows must be scheduled before or after any one is " "broadcasted" -msgstr "Eine verknüpfte Sendung kann nicht befüllt werden, während eine ihrer Instanzen ausgestrahlt wird." - -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." msgstr "" +"Eine verknüpfte Sendung kann nicht befüllt werden, während eine ihrer " +"Instanzen ausgestrahlt wird." +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "Eine der gewählten Dateien existiert nicht!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "Cue In und Cue Out sind Null." - -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Cue In darf nicht größer als Cue Out sein." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s wird bereits überwacht." -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Cue In darf nicht größer als die Gesamtdauer der Datei sein." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s enthält andere bereits überwachte Verzeichnisse: %s " -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Cue Out darf nicht kleiner als Cue In sein." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "" +"%s ist ein Unterverzeichnis eines bereits überwachten Verzeichnisses: %s" -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." -msgstr "Fehler beim Erstellen des Ordners 'organize'" +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s ist kein gültiges Verzeichnis." -#: airtime_mvc/application/models/StoredFile.php:1017 +#: airtime_mvc/application/models/MusicDir.php:232 #, php-format msgid "" -"The file was not uploaded, there is %s MB of disk space left and the file " -"you are uploading has a size of %s MB." -msgstr "Die Datei konnte nicht hochgeladen werden. Es sind %s MB Speicherplatz frei und die Datei, die sie hochladen wollen, hat eine Größe von %s MB." +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s ist bereits als aktuelles Speicherverzeichnis bestimmt oder in der Liste " +"überwachter Verzeichnisse." -#: airtime_mvc/application/models/StoredFile.php:1026 +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format msgid "" -"This file appears to be corrupted and will not be added to media library." -msgstr "Die Datei scheint fehlerhaft zu sein und wird der Bibliothek nicht hinzugefügt." +"%s is already set as the current storage dir or in the watched folders list." +msgstr "" +"%s ist bereits als aktuelles Speicherverzeichnis bestimmt oder in der Liste " +"überwachter Verzeichnisse." -#: airtime_mvc/application/models/StoredFile.php:1065 -msgid "" -"The file was not uploaded, this error can occur if the computer hard drive " -"does not have enough disk space or the stor directory does not have correct " -"write permissions." -msgstr "Die Datei konnte nicht hochgeladen werden. Dieser Fehler kann auftreten, wenn die Festplatte des Computers nicht genug Speicherplatz frei hat oder sie keine Schreibberechtigung für den Ordner 'stor' haben." +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s existiert nicht in der Liste überwachter Verzeichnisse." + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Wiederholung von %s am %s" #: airtime_mvc/application/models/Show.php:180 msgid "Shows can have a max length of 24 hours." @@ -3794,116 +4476,152 @@ msgstr "Die Maximaldauer einer Sendung beträgt 24 Stunden." msgid "" "Cannot schedule overlapping shows.\n" "Note: Resizing a repeating show affects all of its repeats." -msgstr "Sendungen können nicht überlappend geplant werden.\nBeachte: Wird die Dauer einer wiederkehrenden Sendung verändert, wirkt sich das auch auf alle Wiederholungen aus." +msgstr "" +"Sendungen können nicht überlappend geplant werden.\n" +"Beachte: Wird die Dauer einer wiederkehrenden Sendung verändert, wirkt sich " +"das auch auf alle Wiederholungen aus." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/models/StoredFile.php:1017 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Hallo %s,\n\nKlicke auf diesen Link um dein Passwort zurückzusetzen:" - -#: airtime_mvc/application/models/Auth.php:36 -#, php-format -msgid "%s Password Reset" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." msgstr "" +"Die Datei konnte nicht hochgeladen werden. Es sind %s MB Speicherplatz frei " +"und die Datei, die sie hochladen wollen, hat eine Größe von %s MB." -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "Aufeichnung existiert nicht" - -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "Metadaten der aufgezeichneten Datei ansehen" +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." +msgstr "Fehler beim Erstellen des Ordners 'organize'" -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Sendungsinhalt" +#: airtime_mvc/application/models/StoredFile.php:1026 +msgid "" +"This file appears to be corrupted and will not be added to media library." +msgstr "" +"Die Datei scheint fehlerhaft zu sein und wird der Bibliothek nicht " +"hinzugefügt." -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Gesamten Inhalt entfernen" +#: airtime_mvc/application/models/StoredFile.php:1065 +msgid "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." +msgstr "" +"Die Datei konnte nicht hochgeladen werden. Dieser Fehler kann auftreten, " +"wenn die Festplatte des Computers nicht genug Speicherplatz frei hat oder " +"sie keine Schreibberechtigung für den Ordner 'stor' haben." -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Aktuelle Sendung abbrechen" +#: airtime_mvc/application/layouts/scripts/login.phtml:24 +#, php-format +msgid "" +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" -msgstr "Diese Folge bearbeiten" +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#, php-format +msgid "Promote my station on %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Sendung bearbeiten" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Lösche diese Folge" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Lösche diese Folge und alle Nachfolgenden" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "Zugriff verweigert" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Wiederkehrende Sendungen können nicht per Drag'n'Drop verschoben werden." +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Eine in der Vergangenheit liegende Sendung kann nicht verschoben werden." +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Eine Sendung kann nicht in die Vergangenheit verschoben werden." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Eine aufgezeichnete Sendung kann nicht verschoben werden, wenn der Zeitpunkt der Wiederholung weniger als eine Stunde bevor liegt." +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "Die Sendung wurde gelöscht, weil die aufgezeichnete Sendung nicht existiert." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Das Wiederholen einer Sendung ist erst nach einer Stunde Wartezeit möglich." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" -msgstr "Titel" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Abgespielt" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#, php-format +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "Das Jahr %s muß innerhalb des Bereichs von 1753 - 9999 liegen." +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s ist kein gültiges Datum" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" + +#: airtime_mvc/application/models/Auth.php:36 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s-%s-%s ist kein gültiger Zeitpunkt." +msgid "%s Password Reset" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Bitte eine Option wählen" +#~ msgid "can't resize a past show" +#~ msgstr "Die Dauer einer vergangenen Sendung kann nicht verändert werden." -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "Keine Aufzeichnungen" +#~ msgid "Should not overlap shows" +#~ msgstr "Sendungen sollten nicht überlappen." diff --git a/airtime_mvc/locale/de_DE/LC_MESSAGES/airtime.po b/airtime_mvc/locale/de_DE/LC_MESSAGES/airtime.po index 2b05d16652..9811beec62 100644 --- a/airtime_mvc/locale/de_DE/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/de_DE/LC_MESSAGES/airtime.po @@ -1,3609 +1,4340 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: -# Daniel James , 2014 +# danielhjames , 2014 # hoerich , 2014 # Sourcefabric , 2013 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: German (Germany) (http://www.transifex.com/projects/p/airtime/language/de_DE/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-02-12 11:00+0000\n" +"Last-Translator: danielhjames \n" +"Language-Team: German (Germany) (http://www.transifex.com/projects/p/airtime/" +"language/de_DE/)\n" +"Language: de_DE\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: de_DE\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Audio Player" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Bitte eine Option wählen" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Abmelden" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "Keine Aufzeichnungen" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "Play" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "Das Jahr %s muß im Bereich zwischen 1753 und 9999 sein" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "Stop" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s ist kein gültiges Datum" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Cue In" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s-%s-%s ist kein gültiger Zeitpunkt." -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "Set Cue In" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Jetzt" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Cue Out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Medien hinzufügen" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "Set Cue Out" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Bibliothek" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "Cursor" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Kalender" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Fade In" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "System" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Fade Out" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Einstellungen" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Benutzer" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Live Stream" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Medienordner" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Aktiviert:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Streams" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Stream Typ:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Support Feedback" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Bitrate:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Status" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Service Typ:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Hörerstatistiken" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Kanäle:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "Verlauf" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Playout Verlauf" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "Verlaufsvorlagen" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Server" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Hilfe" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Ungültiges Zeichen eingegeben" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Kurzanleitung" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Port" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "Benutzerhandbuch" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Es sind nur Zahlen erlaubt" +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "Über" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Passwort" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "Aufzeichnung existiert nicht" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Genre" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "Metadaten der aufgezeichneten Datei anzeigen" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Auf SoundCloud ansehen" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Name" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Auf SoundCloud hochladen" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Beschreibung" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Erneut auf SoundCloud hochladen" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Mount Point" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Sendungsinhalt" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Benutzername" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Inhalt hinzufügen / entfernen" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Admin Benutzer" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Gesamten Inhalt entfernen" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Admin Passwort" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Aktuelle Sendung abbrechen" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Erhalte Information vom Server..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "Diese Folge bearbeiten" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Server darf nicht leer sein." +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Ändern" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Port darf nicht leer sein." +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Sendung ändern" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Mount darf nicht leer sein, wenn Icecast-Server verwendet wird." +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Löschen" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" -msgstr "Titel:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Diese Folge löschen" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" -msgstr "Interpret:" +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Diese Folge und alle folgenden löschen" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "Album:" +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "Zugriff verweigert" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "Titel-Nr.:" +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "" +"Wiederkehrende Sendungen können nicht per Drag'n'Drop verschoben werden." -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" -msgstr "Genre:" +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "" +"Eine in der Vergangenheit liegende Sendung kann nicht verschoben werden." -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" -msgstr "Jahr:" +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Eine Sendung kann nicht in die Vergangenheit verschoben werden." -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" -msgstr "Label:" +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Sendungen können nicht überlappend geplant werden." -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" -msgstr "Komponist:" +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "" +"Eine aufgezeichnete Sendung kann nicht verschoben werden, wenn der Zeitpunkt " +"der Wiederholung weniger als eine Stunde bevor liegt." -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" -msgstr "Dirigent:" +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "" +"Die Sendung wurde gelöscht, weil die aufgezeichnete Sendung nicht existiert!" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Stimmung:" +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "" +"Das Wiederholen einer Sendung ist erst nach einer Stunde Wartezeit möglich." -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Titel" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" -msgstr "Copyright:" +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Interpret" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "ISRC-Nr.:" +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Album" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" -msgstr "Webseite:" +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Länge" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" -msgstr "Sprache:" +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Genre" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Stimmung" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Label" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Komponist" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Copyright" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Jahr" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "Titel" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Dirigent" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Sprache" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "Startzeit" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "Endzeit" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Abgespielt" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "Datei-Import in Bearbeitung..." + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Erweiterte Suchoptionen" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Hörerzahlen im Zeitraum" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "Neu" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "Neue Playlist" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "Neuer Smart Block" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "Neuer Webstream" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "Playlist leeren" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "Leeren" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Playlist mischen" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Mischen" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Playlist speichern" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 #: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 #: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 #: airtime_mvc/application/forms/SupportSettings.php:161 #: airtime_mvc/application/controllers/LocaleController.php:283 #: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 #: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 msgid "Save" msgstr "Speichern" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Abbrechen" - -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Benutzername:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Playlist Crossfade" -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Passwort:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "Beschreibung ansehen/ändern" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Passwort bestätigen:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Beschreibung" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Vorname:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Fade In: " -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Nachname:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Fade Out: " -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "E-Mail:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "Keine Playlist geöffnet" -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Mobiltelefon:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Statischen Block erweitern" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Dynamischen Block erweitern" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Smart Block leeren" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "Benutzertyp:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Playlist leeren" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Gast" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "Wellenform anzeigen" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "DJ" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Cue In: " -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Programm Manager" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(hh:mm:ss.t)" -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Admin" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Cue Out: " -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Benutzername ist bereits vorhanden." +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Originallänge:" -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Hintergrundfarbe:" +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(ss.t)" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Textfarbe:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "Leerer Smart Block Inhalt" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Zeitpunkt Beginn:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "Kein Smart Block geöffnet" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Zeitpunkt Ende:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sAirtime%s %s, die Open Source Radio Software für Programplanung und Remote " +"Radioverwaltung. %s" -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Sendung:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "%sSourcefabric%s o.p.s. Airtime wird vertrieben unter %s GNU GPL v.3%s" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "Alle meine Sendungen:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Willkommen bei Airtime!" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "Tage" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "" +"Starten sie hier, um die ersten Schritte für die Automation ihrer Radio " +"Station zu erfahren." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "Tag muß angegeben werden" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Beginnen sie damit, Dateien ihrer Bibliothek hinzuzufügen. Verwenden sie " +"dazu die Schaltfläche 'Medien Hinzufügen'. Dateien können auch via " +"Drag'n'Drop hinzugefügt werden." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "Zeit muß angegeben werden" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Erstellen sie eine Sendung, indem sie die Schaltfläche 'Kalender' betätigen " +"und anschließend auf die Schaltfläche '+ Sendung' klicken. Dies kann eine " +"einmalige oder sich wiederholende Sendung sein. Nur Administratoren und " +"Programm Manager können Sendungen hinzufügen." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Das Wiederholen einer Sendung ist erst nach einer Stunde Wartezeit möglich." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Fügen sie Mediendateien einer Show hinzu.\n" +"Öffnen sie dazu die gewünschte Sendung durch einen Links-Klick im Kalender " +"und wählen sie 'Inhalt hinzufügen / entfernen'" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Import Verzeichnis:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Wählen sie Medien vom linken Feld und ziehen sie es in ihre Sendung im " +"rechten Feld." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Überwachte Verzeichnisse:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "Dann kann es auch schon los gehen!" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Kein gültiges Verzeichnis" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "" +"Für weitere ausführliche Hilfe, lesen sie bitte das %sBenutzerhandbuch%s." -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Suche Benutzer:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Live Stream" -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "DJs:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Teilen" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Anmeldung" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Stream wählen:" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Geben sie die Zeichen aus dem Bild unten ein." +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "Stummschalten" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Sendername" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "Lautschalten" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "Standard Crossfade Dauer (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "Alle" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "Geben sie eine Zeit in Sekunden ein 0{.0}" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "Standard Fade In (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "Standard Fade Out (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Anderen Webseiten den Zugriff auf \"Kalender\" Info?%s erlauben. (Aktivieren Sie diese Option, damit Frontend-Widgets funktionieren.)" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "Stream URL:" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Deaktiviert" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Standard Dauer:" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Aktiviert" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "Kein Webstream" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Standardsprache" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "Titel:" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "Sendestation Zeitzone" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "Interpret:" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "Woche beginnt am" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "Album:" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Sonntag" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "Titel-Nr.:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Montag" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Länge:" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Dienstag" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Samplerate:" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Mittwoch" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Bitrate:" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Donnerstag" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Stimmung:" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Freitag" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "Genre:" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Samstag" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "Jahr:" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "Verknüpfen:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "Label:" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Wiederholungstyp:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "wöchentlich" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "Komponist:" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "jede zweite Woche" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "Dirigent:" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "jede dritte Woche" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "Copyright:" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "jede vierte Woche" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "ISRC-Nr.:" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "monatlich" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "Webseite:" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Tage wählen:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" +msgstr "Sprache:" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "So." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "Dateipfad:" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Mo." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Name:" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Di." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Beschreibung:" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Mi." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Web Stream" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Do." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Dynamischer Smart Block" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Fr." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Statischer Smart Block" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Sa." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Titel-Nr." -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "Wiederholung von:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Playlist Inhalt: " -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "Tag des Monats" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Statischer Smart Block Inhalt: " -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "Tag der Woche" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Dynamische Smart Block Kriterien: " -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "Kein Enddatum?" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Beschränken auf " -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "Enddatum muß nach dem Startdatum liegen" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "Bitte einen Tag zum Wiederholen wählen" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "Folge wählen" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Neues Passwort bestätigen" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "Keine Sendung" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "Passwortbestätigung stimmt nicht mit Passwort überein." +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "Finden" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Neues Passwort erhalten" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "%s's Einstellungen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr " - Kriterien - " +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Ordner wählen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Album" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Festlegen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Bit Rate (Kbps)" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Aktueller Import Ordner:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Hinzufüg." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Komponist" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Überwachte Verzeichnisse nochmals durchsuchen\n" +"(Dies könnte nützlich sein, wenn Airtime beim Synchronisieren mit " +"Netzlaufwerken Schwierigkeiten hat)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Dirigent" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Überwachten Ordner entfernen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Copyright" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "Sie überwachen keine Medienordner." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Interpret" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Erforderlich)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Encoded By" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Helfen sie Airtime, indem sie uns erzählen, wie sie damit arbeiten. Diese " +"Informationen werden regelmäßig gesammelt, um die Erfahrungswerte der " +"Benutzer zu fördern.%sAktivieren sie die Option 'Support Feedback senden' " +"und wir versichern, die von ihnen verwendeten Funktionen laufend zu " +"verbessern." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "" +"Mit Aktivierung des unteren Kästchens werben sie für ihre Radiostation auf " +"%sSourcefabric.org%s. Dazu muss die Option 'Support Feedback senden' " +"aktiviert sein. Diese Daten werden zusätzlich zum Support Feedback gesammelt." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Label" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(Um ihre Radiostation bewerben zu können, muß 'Support Feedback senden' " +"aktiviert sein)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Sprache" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(Ausschließlich zu Kontrollzwecken, wird nicht veröffentlicht)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "geändert am" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Hinweis: Grafiken, die größer als 600x600 sind, werden verkleinert." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Zuletzt gespielt" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Zeige mir was ich sende " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Länge" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Sourcefabric Datenschutzrichtlinie" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Mime" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Suche Sendungen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Stimmung" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Filter nach Sendung:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Besitzer" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "E-Mail / Mail-Server-Einstellungen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Replay Gain" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "SoundCloud Einstellungen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Sample Rate (kHz)" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Tage wählen:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Titel" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Entfernen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Titelnummer" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Stream " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Hochgeladen" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Erweiterte Optionen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Webseite" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "" +"Die folgenden Informationen werden den Zuhörern in ihren Playern angezeigt:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Jahr" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(Webseite Ihres Radiosenders)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr " - Attribut - " +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "Stream URL: " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "enthält" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "Verbindung URL:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "enthält nicht" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Passwort zurücksetzen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "ist" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Airtime registrieren" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "ist nicht" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "" +"Helfen sie Airtime, indem sie uns wissen lassen, wie sie es verwenden. Diese " +"Informationen werden regelmäßig gesammelt, um Ihre Nutzererfahrung zu " +"verbessern.%sDrücken sie auf 'Ja, Airtime helfen' und wir versichern, die " +"von ihnen verwendeten Features laufend zu verbessern. " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "beginnt mit" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Mit Aktivierung des unteren Kästchens werben sie für ihre Radiostation auf " +"%sSourcefabric.org%s. Dazu muss die Option 'Support Feedback senden' " +"aktiviert sein. Diese Daten werden zusätzlich zum Support Feedback gesammelt." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "endet mit" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Allgemeine Geschäftsbedingungen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "ist größer als" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Einstellungen Input Stream" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "ist kleiner als" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "Master Source URL Verbindung:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "ist im Bereich" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Überschreiben" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "Stunden" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "OK" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "Minuten" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "ZURÜCKSETZEN" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "Titel" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "Show Source Connection URL:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Smart Block Typ:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Smart Block Optionen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Statisch" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "oder" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Dynamisch" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "und" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Titel wiederholen:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr " bis " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Beschränke auf" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "Dateien entsprechen den Kriterien" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Playlist-Inhalt erstellen und Kriterien speichern" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "entspricht den Kriterien" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Erstellen" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Wiederholen Tage:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Inhalt der Playlist Mischen" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Filter Verlauf" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Mischen" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Schließen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "Beschränkung kann nicht leer oder kleiner als 0 sein" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Sendung hinzufügen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "Beschränkung kann nicht größer als 24 Stunden sein" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Sendung aktualisieren" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "Der Wert muß eine ganze Zahl sein" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "Was" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "Die Anzahl der Objekte ist auf 500 beschränkt" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "Wann" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "Sie müssen Kriterium und Modifikator bestimmen" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Live Stream Input" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "Die 'Dauer' muß im Format '00:00:00' eingegeben werden" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Aufnahme & Wiederholung" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "Der Wert muß im Timestamp-Format eingegeben werden (zB. 0000-00-00 oder 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Wer" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "Der eingegebene Wert muß aus Ziffern bestehen" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Farbe" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "Der eingegebene Wert muß kleiner sein als 2147483648" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Beginn" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "Der eingegebene Wert muß aus weniger als %s Zeichen bestehen." +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Stream Einstellungen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "Der Wert darf nicht leer sein" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Globale Einstellungen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Automatisch abschalten" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "dB" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Automatisch anschalten" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Stream-Ausgabe Einstellungen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Übergang beim Umschalten (Fade in Sekunden)" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Medienverzeichnisse verwalten" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "Eingabe der Zeit in Sekunden 00{.000000}" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Zend Framework Default Application" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Master Benutzername" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Seite nicht gefunden!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Master Passwort" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "Scheinbar existiert die Seite die sie suchen nicht!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "Master Source Connection-URL" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "Protokollvorlagen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "Show Source Connection URL" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "Keine Protokollvorlagen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Master Source Port" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "Standard festlegen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Master Source Mount Point" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "Neue Protokollvorlage" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Show Source Port" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "Dateiübersichtsvorlagen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Show Source Mount Point" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "Keine Dateiübersichtsvorlagen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "Sie können nicht denselben Port als \"Master Source Port\" nutzen." +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "Neue Dateiübersichtsvorlage" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Port %s ist nicht verfügbar" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "Erstelle Dateiübersichtsvorlage" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Telefon:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "Erstelle Protokollvorlage" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Sender-Webseite:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Name" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Land:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "Weitere Elemente hinzufügen" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "Stadt:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "Neues Feld hinzufügen" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Sender Beschreibung:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "Standardvorlage wählen" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Sender Logo:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "Neues Passwort" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Support Feedback senden" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "" +"Bitte geben sie Ihr neues Passwort ein und bestätigen es im folgenden Feld." -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Anmeldung" + +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." msgstr "" +"Willkommen zur Online Artime Demo!\n" +"Sie können sich mit dem Benutzernamen 'admin' und dem Passwort 'admin' " +"anmelden." -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." msgstr "" +"Bitte geben sie die E-Mail-Adresse ein, die in ihrem Benutzerkonto " +"eingetragen ist. sie erhalten einen Link um ein neues Passwort via E-Mail zu " +"erstellen." -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "Sie müssen die Datenschutzrichtlinien akzeptieren." +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "E-Mail gesendet" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Wert ist erforderlich und darf nicht leer sein" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "Ein E-Mail wurder gesendet" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "Startzeit" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Zurück zum Anmeldebildschirm" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "Endzeit" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "Protokoll" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "Keine Sendung" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "Dateiübersicht" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Aufzeichnen von Line-In?" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "Sendungsübersicht" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Wiederholen?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "zurück" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "Wiedergabe" -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Benutzerdefiniertes Login:" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "Pause" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Benutzerdefinierter Benutzername" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "weiter" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Benutzerdefiniertes Passwort" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "Stop" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "Das Feld Benutzername darf nicht leer sein." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "Maximale Lautstärke" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "Das Feld Passwort darf nicht leer sein." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Update erforderlich" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "E-Mail" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 +#, php-format +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." +msgstr "" +"Um die Medien zu spielen, müssen sie entweder Ihren Browser oder Ihr %s " +"Flash-Plugin %s aktualisieren." -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Passwort wiederherstellen" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Dienst" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Hardware Audioausgabe" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Betriebszeit" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Ausgabetyp" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Icecast Vorbis Metadata" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Speicher" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Streambezeichnung:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Airtime Version" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Artist - Titel" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Speicherplatz" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Sendung - Artist - Titel" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Benutzer verwalten" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Sender - Sendung" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "Neuer Benutzer" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Off Air Metadaten" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "ID" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Replay Gain aktivieren" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Benutzername" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Replay Gain Modifikator" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "Vorname" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%value%' ist keine gültige E-Mail-Adresse im Format local-part@hostname" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Nachname" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" -msgstr "'%value%' entspricht nicht dem erforderlichen Datumsformat '%format%'" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "Benutzertyp" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" -msgstr "'%value%' ist kürzer als %min% Zeichen lang" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Zuvor:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" -msgstr "'%value%' ist mehr als %max% Zeichen lang" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Danach:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" -msgstr "'%value%' liegt nicht zwischen '%min%' und '%max%'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Source Streams" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" -msgstr "Passwörter stimmen nicht überein" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Master Source" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' ist nicht im Format 'HH:mm'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Show Source" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "geplante Wiederg." + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "ON AIR" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Anhören" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Datum/Zeit Beginn:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Sender Zeit" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Datum/Uhrzeit Ende:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Ihre Testperiode endet in" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Dauer:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "Tage" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Zeitzone:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Kaufen sie eine Kopie von Airtime" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Wiederholungen?" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "Mein Konto" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Es kann keine Sendung für einen vergangenen Zeitpunkt geplant werden" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Benutzername:" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Startdatum/Zeit können nicht geändert werden, wenn die Sendung bereits begonnen hat." +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Passwort:" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "Datum/Uhrzeit des Endes darf nicht in der Vergangenheit liegen" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "Geben sie die Zeichen aus dem Bild unten ein." -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Die Dauer einer Sendung kann nicht kürzer als 0 Minuten sein." +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Ungültiges Zeichen eingegeben" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Die Dauer einer Sendung kann nicht 00h 00m sein" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "Tag muß angegeben werden" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Die Dauer einer Sendung kann nicht länger als 24h sein" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "Zeit muß angegeben werden" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Sendungen können nicht überlappend geplant werden." +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "" +"Das Wiederholen einer Sendung ist erst nach einer Stunde Wartezeit möglich." -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Name:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Verwende Airtime-Login:" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Unbenannte Sendung" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Benutzerdefiniertes Login:" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Benutzerdefinierter Benutzername" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Beschreibung:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Benutzerdefiniertes Passwort" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" -msgstr "Automatisches Hochladen aufgezeichneter Sendungen" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "Das Feld Benutzername darf nicht leer sein." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" -msgstr "Aktiviere SoundCloud Upload" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "Das Feld Passwort darf nicht leer sein." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" -msgstr "Markiere Dateien auf SoundCloud automatisch als \"herunterladbar\"" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Aktiviert:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" -msgstr "SoundCloud E-Mail" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Stream Typ:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" -msgstr "SoundCloud Passwort" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Service Typ:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" -msgstr "SoundCloud Tags: (mehrere Tags mit Leerzeichen trennen)" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Kanäle:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" -msgstr "Standard Genre:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" -msgstr "Standard Titel Typ:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Stereo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" -msgstr "Original" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Server" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "Remix" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Port" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "Live" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Es sind nur Zahlen erlaubt" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "Aufnahme" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Passwort" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "Talk" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "Podcast" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Mount Point" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "Demo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Admin Benutzer" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "In Bearbeitung" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Admin Passwort" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "Stem" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Erhalte Information vom Server..." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "Loop" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Server darf nicht leer sein." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "Sound Effekt" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Port darf nicht leer sein." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "One Shot Sample" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Mount darf nicht leer sein, wenn Icecast-Server verwendet wird." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "Sonstige" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Import Verzeichnis:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Standard Lizenz:" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Überwachte Verzeichnisse:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "Die Rechte an dieser Arbeit sind gemeinfrei" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Kein gültiges Verzeichnis" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "Alle Rechte vorbehalten" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Wert ist erforderlich und darf nicht leer sein" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "[CC-BY] Creative Commons Namensnennung" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'%value%' ist keine gültige E-Mail-Adresse im Format local-part@hostname" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "[CC-BY-NC] Creative Commons Namensnennung, keine kommerzielle Nutzung" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" +msgstr "'%value%' entspricht nicht dem erforderlichen Datumsformat '%format%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "[CC-BY-ND] Creative Commons Namensnennung, keine Bearbeitung" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" +msgstr "'%value%' ist kürzer als %min% Zeichen lang" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "[CC-BY-SA] Creative Commons Namensnennung, Weitergabe unter gleichen Bedingungen" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" +msgstr "'%value%' ist mehr als %max% Zeichen lang" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "[CC-BY-NC-ND] Creative Commons Namensnennung, keine kommerzielle Nutzung, keine Bearbeitung" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" +msgstr "'%value%' liegt nicht zwischen '%min%' und '%max%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "[CC-BY-NC-SA] Creative Commons Namensnennung, keine kommerzielle Nutzung, Weitergabe unter gleichen Bedingungen" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" +msgstr "Passwörter stimmen nicht überein" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "Interface Zeitzone:" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Aufzeichnen von Line-In?" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "System E-Mails aktivieren (ermöglicht Passwort zurücksetzen)" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Wiederholen?" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "'Von' Email (Passwort zurücksetzen Absender)" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Hintergrundfarbe:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Mailserver konfigurieren" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Textfarbe:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Erfordert Authentifizierung" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "E-Mail" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Mail Server" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Passwort wiederherstellen" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "E-Mail Adresse" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Abbrechen" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "Bitte prüfen sie, ob der Admin Nutzer/Password unter System->Stream korrekt eingetragen ist." +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Passwort bestätigen:" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Unbenannter Webstream" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Vorname:" -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Webstream gespeichert." +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Nachname:" -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Ungültige Formularwerte." +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "E-Mail:" -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Bitte geben sie Benutzernamen und Passwort ein" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Mobiltelefon:" -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Falscher Benutzername oder Passwort. Bitte versuchen sie es erneut." +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "E-Mail konnte nicht gesendet werden. Überprüfen sie die Einstellungen des E-Mail-Servers und vergwissern sie sich, dass dieser richtig konfiguriert wurde." +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "Angegebene E-Mail-Adresse konnte nicht gefunden." +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "Interface Zeitzone:" -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Wiederholung der Sendung %s vom %s um %s" +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Benutzername ist bereits vorhanden." -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Download" +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Hardware Audioausgabe" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "Benutzer erfolgreich hinzugefügt!" +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Ausgabetyp" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "Benutzer erfolgreich aktualisiert!" +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Icecast Vorbis Metadata" -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Einstellungen erfolgreich aktualisiert!" +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Streambezeichnung:" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Seite nicht gefunden" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Artist - Titel" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Anwendungsfehler" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Sendung - Artist - Titel" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Aufnahme:" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Sender - Sendung" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Master Stream" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Off Air Metadaten" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Live Stream" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Replay Gain aktivieren" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Es ist nichts geplant" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Replay Gain Modifikator" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Aktuelle Sendung:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" +msgstr "Automatisches Hochladen aufgezeichneter Sendungen" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Jezt" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" +msgstr "Aktiviere SoundCloud Upload" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "Sie verwenden die neueste Version" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +msgstr "Markiere Dateien auf SoundCloud automatisch als \"herunterladbar\"" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "Neue Version verfügbar: " +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" +msgstr "SoundCloud E-Mail" + +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" +msgstr "SoundCloud Passwort" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "Diese Version wird in Kürze veraltet sein." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" +msgstr "SoundCloud Tags: (mehrere Tags mit Leerzeichen trennen)" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "Diese Version wird technisch nicht mehr unterstützt." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" +msgstr "Standard Genre:" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Bitte aktualisieren sie auf " +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" +msgstr "Standard Titel Typ:" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Zu aktueller Playlist hinzufügen" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" +msgstr "Original" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Zu aktuellem Smart Block hinzufügen" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "Remix" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "1 Objekt hinzufügen" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "Live" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "%s Objekte hinzufügen" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "Aufnahme" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "Sie können einem Smart Block nur Titel hinzufügen (keine Playlist oa.)" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "Talk" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "Sie können einer Playlist nur Titel, Smart Blocks und Webstreams hinzufügen." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "Podcast" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "Bitte wählen sie eine Cursor-Position auf der Zeitleiste." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "Demo" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Metadaten ändern" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "In Bearbeitung" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Zur ausgewählten Sendungen hinzufügen" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "Stem" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Auswählen" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "Loop" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Wählen sie diese Seite" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "Sound Effekt" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Wählen sie diese Seite ab" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "One Shot Sample" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Alle Abwählen" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "Sonstige" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Wollen sie die gewählten Objekte wirklich löschen?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Standard Lizenz:" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "Geplant" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "Die Rechte an dieser Arbeit sind gemeinfrei" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "Playlist" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "Alle Rechte vorbehalten" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Bitrate" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "[CC-BY] Creative Commons Namensnennung" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Samplerate" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "[CC-BY-NC] Creative Commons Namensnennung, keine kommerzielle Nutzung" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "wird geladen..." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "[CC-BY-ND] Creative Commons Namensnennung, keine Bearbeitung" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "Alle" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "" +"[CC-BY-SA] Creative Commons Namensnennung, Weitergabe unter gleichen " +"Bedingungen" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Dateien" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "" +"[CC-BY-NC-ND] Creative Commons Namensnennung, keine kommerzielle Nutzung, " +"keine Bearbeitung" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Playlisten" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "" +"[CC-BY-NC-SA] Creative Commons Namensnennung, keine kommerzielle Nutzung, " +"Weitergabe unter gleichen Bedingungen" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Smart Blöcke" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Sendername" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Web Streams" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "Standard Crossfade Dauer (s):" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Unbekannter Typ: " +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "Geben sie eine Zeit in Sekunden ein 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Wollen sie das gewählte Objekt wirklich löschen?" +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "Standard Fade In (s):" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Upload wird durchgeführt..." +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "Standard Fade Out (s):" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Daten werden vom Server abgerufen..." +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Anderen Webseiten den Zugriff auf \"Kalender\" Info?%s erlauben. (Aktivieren " +"Sie diese Option, damit Frontend-Widgets funktionieren.)" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "Die SoundCloud ID für diese Datei ist: " +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Deaktiviert" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "Während dem Hochladen auf SoundCloud ist ein Fehler aufgetreten." +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Aktiviert" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Fehlercode: " +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Standardsprache" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Fehlermeldung: " +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "Sendestation Zeitzone" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "Der eingegeben Wert muß eine positive Zahl sein" +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "Woche beginnt am" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "Der eingegebene Wert muß eine Zahl sein" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Sonntag" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "Der Wert muß in folgendem Format eingegeben werden: yyyy-mm-dd" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Montag" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "Der Wert muß in folgendem Format eingegeben werden: hh:mm:ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Dienstag" + +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Mittwoch" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "Sie laden momentan Dateien hoch. %s Beim wechseln der Seite wird der Upload-Vorgang abgebrochen. %s Sind sie sicher, dass sie die Seite verlassen wollen?" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Donnerstag" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "Medienordner" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Freitag" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "Bitte geben sie eine Zeit an '00:00:00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Samstag" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "Bitte geben sie eine Zeit in Sekunden ein '00 (.0)'" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Zeitpunkt Beginn:" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Das Abspielen des folgenden Dateityps wird von ihrem Browser nicht unterstützt: " +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Zeitpunkt Ende:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Bei einem Dynamischen Block ist keine Vorschau möglich" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Telefon:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Beschränken auf: " +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Sender-Webseite:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Playlist gespeichert" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Land:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "Playliste gemischt" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "Stadt:" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime kann den Status dieser Datei nicht bestimmen.\nDas kann passieren, wenn die Datei auf einem nicht erreichbaren Netzlaufwerk liegt oder in einem Verzeichnis liegt, das nicht mehr überwacht wird." +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Sender Beschreibung:" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "Hörerzahl %s: %s" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Sender Logo:" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "In einer Woche erinnern" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Support Feedback senden" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Niemals erinnern" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Sender auf Sourcefabric.org veröffentlichen" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Ja, Airtime helfen" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "" +"Hiermit akzeptiere ich die %sDatenschutzrichtlinien%s von Sourcefabric." -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "Ein Bild muß jpg, jpeg, png, oder gif sein" +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "Sie müssen die Datenschutzrichtlinien akzeptieren." -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "Ein Statischer Smart Block speichert die Kriterien und erstellt den Block sofort.\nDadurch kann der Inhalt in der Bibliothek eingesehen und verändert werden bevor der Smart Block einer Sendung hinzugefügt wird." +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' ist nicht im Format 'HH:mm'" -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "Ein Dynamischer Smart Block speichert nur die Kriterien.\nDabei wird der Inhalt erst erstellt, wenn der Smart Block einer Sendung hinzugefügt wird. Der Inhalt des Smart Blocks kann daher nicht in der Bibliothek angezeigt oder bearbeitetet werden." +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Datum/Zeit Beginn:" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "Wenn Airtime nicht genug einzigartige Titel findet, die Ihren Kriterien entsprechen, kann die gewünschte Länge des Smart Blocks nicht erreicht werden. Wenn sie möchten, dass Titel mehrfach zum Smart Block hinzugefügt werden können, aktivieren sie diese Option." +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Datum/Uhrzeit Ende:" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Smart Block gemischt" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Dauer:" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Smart Block erstellt und Kriterien gespeichert" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Zeitzone:" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Smart Block gespeichert" +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Wiederholungen?" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "In Bearbeitung..." +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Es kann keine Sendung für einen vergangenen Zeitpunkt geplant werden" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Wähle Speicher-Verzeichnis" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "" +"Startdatum/Zeit können nicht geändert werden, wenn die Sendung bereits " +"begonnen hat." -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Wähle zu überwachendes Verzeichnis" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "Datum/Uhrzeit des Endes darf nicht in der Vergangenheit liegen" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Sind sie sicher, dass sie den Speicher-Verzeichnis ändern wollen?\nDieser Vorgang entfernt alle Dateien der Airtime-Bibliothek!" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Die Dauer einer Sendung kann nicht kürzer als 0 Minuten sein." -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Medienverzeichnisse verwalten" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Die Dauer einer Sendung kann nicht 00h 00m sein" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Sind sie sicher, dass sie das überwachte Verzeichnis entfernen wollen?" +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Die Dauer einer Sendung kann nicht länger als 24h sein" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "Dieser Pfad ist derzeit nicht erreichbar." +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Unbenannte Sendung" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "Manche Stream-Typen erfordern zusätzliche Konfiguration. Details zum Aktivieren von %sAAC+ Support%s oder %sOpus Support%s sind in der WIKI bereitgestellt." +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Suche Benutzer:" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Mit dem Streaming-Server verbunden" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "DJs:" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "Der Stream ist deaktiviert" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Neues Passwort bestätigen" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Verbindung mit Streaming-Server kann nicht hergestellt werden." +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "Passwortbestätigung stimmt nicht mit Passwort überein." -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Falls sich Airtime hinter einem Router oder einer Firewall befindet, müssen sie gegebenenfalls eine Portweiterleitung konfigurieren. \nIn diesem Fall müssen sie die URL manuell eintragen, damit Ihren DJs der richtige Host/Port/Mount zur verbindung anzeigt wird. Der erlaubte Port-Bereich liegt zwischen 1024 und 49151." +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Neues Passwort erhalten" -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "Für weitere Information lesen sie bitte das %sAirtime Benutzerhandbuch%s" +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "Benutzertyp:" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Diese Option aktiviert Metadaten für Ogg-Streams.\n(Stream-Metadaten wie Titel, Interpret und Sendungsname können von Audioplayern angezeigt werden.)\nVLC und mplayer haben ernsthafte Probleme beim Abspielen von Ogg/Vorbis-Streams mit aktivierten Metadaten: Beide Anwendungen werden die Verbindung zum Stream nach jedem Titel verlieren. Sollten sie einen Ogg-Stream verwenden und ihre Hörer keine Unterstützung für diese Audioplayer erwarten, können sie diese Option aktivieren." +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Gast" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Aktivieren sie dieses Kästchen, um die Master/Show-Source bei Unterbrechung der Leitung automatisch abzuschalten." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "DJ" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Aktivieren sie dieses Kästchen, um automatisch bei Verbindung einer Streameingabe umzuschalten." +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Programm Manager" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Wenn Ihr Icecast Server den Benutzernamen 'source' erwartet, kann dieses Feld leer bleiben." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Admin" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "Wenn Ihr Live-Streaming-Client nicht nach einem Benutzernamen fragt, sollten Sie hier 'source' eintragen." +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "ISRC-Nr.:" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "Wenn sie den Benutzernamen oder das Passwort für einen aktivierten Stream ändern, wird die Playout Engine neu gestartet und Ihre Zuhörer werden für 5-10 Sekunden Stille hören. \nWenn sie die folgenden Felder ändern, gibt es KEINEN Neustart: Stream Label (Allgemeine Einstellungen) und Master Übergang beim Umschalten (Fade in Sekunden), Master Benutzername Passwort (Input Stream Einstellungen). Wenn Airtime aufnimmt und wenn die Änderung eine Playout Engine Neustart bewirkt, wird die Aufnahme unterbrochen." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Sendung:" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "Admin Benutzer und Passwort, wird zur Abfrage der Zuhörerdaten in Icecast/SHOUTcast verwendet." +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "Alle meine Sendungen:" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "Warnung: Dieses Feld kann nicht geändert werden, während die Sendung wiedergegeben wird." +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "Verknüpfen:" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "Kein Ergebnis gefunden" +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Wiederholungstyp:" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "Diese Einstellung folgt den gleichen Sicherheitsvorlagen für Sendung: Nur Benutzer denen diese Sendung zugewiesen wurde, können sich verbinden." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "wöchentlich" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Bestimmen einer benutzerdefinierten Anmeldung eintragen, welche nur für diese Sendung funktionieren wird." +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "jede zweite Woche" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "Die Sendungsinstanz existiert nicht mehr!" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "jede dritte Woche" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "Warnung: Verknüpfte Sendungen können nicht erneut verknüpft werden" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "jede vierte Woche" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "Beim Verknüpfen von wiederkehrenden Sendungen werden jegliche Medien, die in einer wiederkehrenden Sendung geplant sind, auch in den anderen Sendungen geplant." +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "monatlich" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "Die Zeitzone ist standardmäßig auf die Zeitzone der Radiostation eingestellt. Der Im Kalender werden die Sendungen in jener Ortszeit dargestellt, welche in den Benutzereinstellungen für das Interface festgelegt wurde." +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Tage wählen:" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Sendung" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "So." -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "Sendung ist leer" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Mo." -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1m" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Di." -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5m" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "Mi." -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10m" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Do." -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15m" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Fr." -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30m" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "Sa." -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60m" +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "Wiederholung von:" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Daten werden vom Server abgerufen..." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "Tag des Monats" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "Diese Sendung hat keinen festgelegten Inhalt." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "Tag der Woche" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "Diese Sendung ist noch nicht vollständig mit Inhalten gefüllt." +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "Kein Enddatum?" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "Januar" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "Enddatum muß nach dem Startdatum liegen" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "Februar" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "Bitte einen Tag zum Wiederholen wählen" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "März" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "System E-Mails aktivieren (ermöglicht Passwort zurücksetzen)" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "April" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "'Von' Email (Passwort zurücksetzen Absender)" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "Mai" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Mailserver konfigurieren" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "Juni" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Erfordert Authentifizierung" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "Juli" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Mail Server" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "August" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "E-Mail Adresse" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "September" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr " - Kriterien - " -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "Oktober" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Bit Rate (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "November" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "Dezember" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Jan." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Feb." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Encoded By" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Mrz." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "geändert am" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Apr." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Zuletzt gespielt" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Jun." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Mime" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Jul." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Besitzer" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Aug." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Replay Gain" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Sep." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Sample Rate (kHz)" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Okt." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Titelnummer" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Nov." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Hochgeladen" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Dez." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Webseite" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "heute" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr " - Attribut - " -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "Tag" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "enthält" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "Woche" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "enthält nicht" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "Monat" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "ist" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Wenn der Inhalt einer Sendung länger ist als im Kalender festgelegt ist, wird das Ende durch eine nachfolgende Sendung abgschnitten." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "ist nicht" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Aktuelle Sendung abbrechen?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "beginnt mit" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Aufnahme der aktuellen Sendung stoppen?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "endet mit" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "Speichern" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "ist größer als" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Sendungsinhalt" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "ist kleiner als" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Gesamten Inhalt entfernen?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "ist im Bereich" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Gewählte Objekte löschen?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "Stunden" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Beginn" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "Minuten" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "Ende" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "Titel" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Dauer" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Smart Block Typ:" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Sendung ist leer" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Statisch" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Aufnehmen über Line In" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Dynamisch" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Titel Vorschau" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Titel wiederholen:" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Es ist keine Planung außerhalb einer Sendung möglich." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Beschränke auf" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Verschiebe 1 Objekt" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Playlist-Inhalt erstellen und Kriterien speichern" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Verschiebe %s Objekte" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Erstellen" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "Fade Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Inhalt der Playlist Mischen" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "Cue Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "Beschränkung kann nicht leer oder kleiner als 0 sein" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "Wellenform-Funktionen ist nur in Browsern möglich, welche die Web Audio API unterstützen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "Beschränkung kann nicht größer als 24 Stunden sein" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Alles auswählen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "Der Wert muß eine ganze Zahl sein" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Nichts auswählen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "Die Anzahl der Objekte ist auf 500 beschränkt" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Überbuchte Titel entfernen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "Sie müssen Kriterium und Modifikator bestimmen" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Ausgewählte Elemente aus dem Programm entfernen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "Die 'Dauer' muß im Format '00:00:00' eingegeben werden" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Springe zu aktuellem Titel" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"Der Wert muß im Timestamp-Format eingegeben werden (zB. 0000-00-00 oder " +"0000-00-00 00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Aktuelle Sendung abbrechen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "Der eingegebene Wert muß aus Ziffern bestehen" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Um Inhalte hinzuzufügen oder zu entfernen muß die Bibliothek geöffnet werden" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "Der eingegebene Wert muß kleiner sein als 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Inhalt hinzufügen / entfernen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "Der eingegebene Wert muß aus weniger als %s Zeichen bestehen." -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "In Verwendung" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "Der Wert darf nicht leer sein" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Disk" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Automatisch abschalten" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Suchen in" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Automatisch anschalten" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Öffnen" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Übergang beim Umschalten (Fade in Sekunden)" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "Gäste können folgendes tun:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "Eingabe der Zeit in Sekunden 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "Kalender betrachten" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Master Benutzername" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "Sendungsinhalt betrachten" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Master Passwort" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "DJs können folgendes tun:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "Master Source Connection-URL" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Verwalten zugewiesener Sendungsinhalte" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "Show Source Connection URL" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Mediendateien importieren" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Master Source Port" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Erstellen von Playlisten, Smart Blöcken und Webstreams" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Master Source Mount Point" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Verwalten eigener Bibliotheksinhalte" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Show Source Port" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "Programm Manager können folgendes tun:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Show Source Mount Point" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "Sendungsinhalte betrachten und verwalten" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "Sie können nicht denselben Port als \"Master Source Port\" nutzen." -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Sendungen festlegen" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Port %s ist nicht verfügbar" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "Verwalten der gesamten Bibliothek" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" +"Airtime Copyright ©Sourcefabric o.p.s. Alle Rechte vorbehalten." +"%sGepflegt und vertrieben unter GNU GPL v.3 von %sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Admins können folgendes tun:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Abmelden" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Einstellungen verwalten" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "Play" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "Benutzer verwalten" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "Stop" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "Verwalten überwachter Verzeichnisse" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "Set Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "System Status betrachten" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "Set Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Zugriff auf Playlist Verlauf" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "Cursor" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "Hörerstatistiken betrachten" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Fade In" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Spalten auswählen" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Fade Out" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "Von {from} bis {to}" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Audio Player" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Bitte geben sie Benutzernamen und Passwort ein" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "yyyy-mm-dd" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "Falscher Benutzername oder Passwort. Bitte versuchen sie es erneut." -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"E-Mail konnte nicht gesendet werden. Überprüfen sie die Einstellungen des E-" +"Mail-Servers und vergwissern sie sich, dass dieser richtig konfiguriert " +"wurde." -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "Angegebene E-Mail-Adresse konnte nicht gefunden." -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "So" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Aufnahme:" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Mo" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Master Stream" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Di" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Live Stream" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "Mi" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Es ist nichts geplant" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Do" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Aktuelle Sendung:" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Fr" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Jezt" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Sa" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "Sie verwenden die neueste Version" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Schließen" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "Neue Version verfügbar: " -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Stunde" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "Diese Version wird in Kürze veraltet sein." -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Minute" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "Diese Version wird technisch nicht mehr unterstützt." -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Fertig" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Bitte aktualisieren sie auf " -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Dateien auswählen" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Zu aktueller Playlist hinzufügen" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Dateien zur Uploadliste hinzufügen und den Startbutton klicken." +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Zu aktuellem Smart Block hinzufügen" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Status" +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "1 Objekt hinzufügen" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Dateien hinzufügen" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "%s Objekte hinzufügen" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Upload stoppen" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "Sie können einem Smart Block nur Titel hinzufügen (keine Playlist oa.)" -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Upload starten" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "" +"Sie können einer Playlist nur Titel, Smart Blocks und Webstreams hinzufügen." -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Dateien hinzufügen" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "Bitte wählen sie eine Cursor-Position auf der Zeitleiste." -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "%d/%d Dateien hochgeladen" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Metadaten ändern" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "N/A" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Zur ausgewählten Sendungen hinzufügen" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Dateien in dieses Feld ziehen.(Drag & Drop)" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Auswählen" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "Fehler in der Dateierweiterung." +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Wählen sie diese Seite" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "Fehler in der Dateigröße." +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Wählen sie diese Seite ab" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "Fehler in der Dateianzahl" +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Alle Abwählen" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Init Fehler." +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Wollen sie die gewählten Objekte wirklich löschen?" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "HTTP Fehler." +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "Geplant" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Sicherheitsfehler." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "Playlist" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Allgemeiner Fehler." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Bitrate" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "IO Fehler." +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Samplerate" -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "Datei: %s" +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "wird geladen..." -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d Dateien in der Warteschlange" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Dateien" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "Datei: %f, Größe: %s, Maximale Dateigröße: %m" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Playlisten" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "Upload-URL scheint falsch zu sein oder existiert nicht" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Smart Blöcke" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Fehler: Datei zu groß: " +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Web Streams" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Fehler: ungültige Dateierweiterung: " +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Unbekannter Typ: " -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "Standard festlegen" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Wollen sie das gewählte Objekt wirklich löschen?" + +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Upload wird durchgeführt..." -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "Eintrag erstellen" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Daten werden vom Server abgerufen..." -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "Verlaufsprotokoll bearbeiten" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "Die SoundCloud ID für diese Datei ist: " -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "%s Reihen%s in die Zwischenablage kopiert" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "Während dem Hochladen auf SoundCloud ist ein Fehler aufgetreten." -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%sDruckansicht%sBenutzen sie bitte die Druckfunktion des Browsers, um diese Tabelle auszudrucken. Wenn sie fertig sind, drücken sie die Escape-Taste." +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Fehlercode: " -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "Sie haben nicht die erforderliche Berechtigung, das Eingangssignal zu trennen." +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Fehlermeldung: " -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "Mit diesem Eingang ist kein Signal verbunden." +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "Der eingegeben Wert muß eine positive Zahl sein" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "Sie haben nicht die erforderliche Berechtigung, das Signal umzuschalten." +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "Der eingegebene Wert muß eine Zahl sein" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "Sie betrachten eine ältere Version von %s" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "Der Wert muß in folgendem Format eingegeben werden: yyyy-mm-dd" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "Sie können einem Dynamischen Smart Block keine Titel hinzufügen." +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "Der Wert muß in folgendem Format eingegeben werden: hh:mm:ss.t" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "%s not found" -msgstr "%s nicht gefunden" +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"Sie laden momentan Dateien hoch. %s Beim wechseln der Seite wird der Upload-" +"Vorgang abgebrochen. %s Sind sie sicher, dass sie die Seite verlassen wollen?" -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "Sie haben zum Löschen der gewählten %s (s) nicht die erforderliche Berechtigung." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "Medienordner" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Etwas ist falsch gelaufen." +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "Bitte geben sie eine Zeit an '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "Sie können einem Smart Block nur Titel hinzufügen." +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "Bitte geben sie eine Zeit in Sekunden ein '00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Unbenannte Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "" +"Das Abspielen des folgenden Dateityps wird von ihrem Browser nicht " +"unterstützt: " -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Unbenannter Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Bei einem Dynamischen Block ist keine Vorschau möglich" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Unbekannte Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Beschränken auf: " -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "Sie sind nicht berechtigt, auf diese Resource zuzugreifen" +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Playlist gespeichert" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "Sie sind nicht berechtigt, auf diese Resource zuzugreifen. " +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "Playliste gemischt" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." msgstr "" +"Airtime kann den Status dieser Datei nicht bestimmen.\n" +"Das kann passieren, wenn die Datei auf einem nicht erreichbaren Netzlaufwerk " +"liegt oder in einem Verzeichnis liegt, das nicht mehr überwacht wird." -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Fehlerhafte Anfrage. Es wurde kein 'mode' Parameter übergeben." - -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Fehlerhafte Anfrage. 'Mode' Parameter ist ungültig" - -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Vorschau" - -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Zur Playlist hinzufügen" +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "Hörerzahl %s: %s" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Zum Smart Block hinzufügen" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "In einer Woche erinnern" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Löschen" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Niemals erinnern" -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Duplizierte Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Ja, Airtime helfen" -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Ändern" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "Ein Bild muß jpg, jpeg, png, oder gif sein" -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." +msgstr "" +"Ein Statischer Smart Block speichert die Kriterien und erstellt den Block " +"sofort.\n" +"Dadurch kann der Inhalt in der Bibliothek eingesehen und verändert werden " +"bevor der Smart Block einer Sendung hinzugefügt wird." -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Auf SoundCloud ansehen" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"Ein Dynamischer Smart Block speichert nur die Kriterien.\n" +"Dabei wird der Inhalt erst erstellt, wenn der Smart Block einer Sendung " +"hinzugefügt wird. Der Inhalt des Smart Blocks kann daher nicht in der " +"Bibliothek angezeigt oder bearbeitetet werden." -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Erneut auf SoundCloud hochladen" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"Wenn Airtime nicht genug einzigartige Titel findet, die Ihren Kriterien " +"entsprechen, kann die gewünschte Länge des Smart Blocks nicht erreicht " +"werden. Wenn sie möchten, dass Titel mehrfach zum Smart Block hinzugefügt " +"werden können, aktivieren sie diese Option." -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Auf SoundCloud hochladen" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Smart Block gemischt" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "Keine Aktion verfügbar" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Smart Block erstellt und Kriterien gespeichert" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "Sie haben nicht die erforderliche Berechtigung die gewählten Objekte zu löschen." +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Smart Block gespeichert" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Einige im Programmplan enthaltene Dateien konnten nicht gelöscht werden." +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "In Bearbeitung..." -#: airtime_mvc/application/controllers/LibraryController.php:404 -#, php-format -msgid "Copy of %s" -msgstr "Kopie von %s" +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Wähle Speicher-Verzeichnis" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Cursor wählen" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Wähle zu überwachendes Verzeichnis" -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Cursor entfernen" +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Sind sie sicher, dass sie den Speicher-Verzeichnis ändern wollen?\n" +"Dieser Vorgang entfernt alle Dateien der Airtime-Bibliothek!" -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "Sendung existiert nicht" +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Sind sie sicher, dass sie das überwachte Verzeichnis entfernen wollen?" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Einstellungen aktualisiert." +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "Dieser Pfad ist derzeit nicht erreichbar." -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Support-Einstellungen aktualisiert." +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#, php-format +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" +"Manche Stream-Typen erfordern zusätzliche Konfiguration. Details zum " +"Aktivieren von %sAAC+ Support%s oder %sOpus Support%s sind in der WIKI " +"bereitgestellt." -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Support Feedback" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Mit dem Streaming-Server verbunden" -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Stream-Einstellungen aktualisiert." +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "Der Stream ist deaktiviert" -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "Pfad muß angegeben werden" +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Verbindung mit Streaming-Server kann nicht hergestellt werden." -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Problem mit Liquidsoap ..." +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"Falls sich Airtime hinter einem Router oder einer Firewall befindet, müssen " +"sie gegebenenfalls eine Portweiterleitung konfigurieren. \n" +"In diesem Fall müssen sie die URL manuell eintragen, damit Ihren DJs der " +"richtige Host/Port/Mount zur verbindung anzeigt wird. Der erlaubte Port-" +"Bereich liegt zwischen 1024 und 49151." -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Jetzt" +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "" +"Für weitere Information lesen sie bitte das %sAirtime Benutzerhandbuch%s" -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Medien hinzufügen" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"Diese Option aktiviert Metadaten für Ogg-Streams.\n" +"(Stream-Metadaten wie Titel, Interpret und Sendungsname können von " +"Audioplayern angezeigt werden.)\n" +"VLC und mplayer haben ernsthafte Probleme beim Abspielen von Ogg/Vorbis-" +"Streams mit aktivierten Metadaten: Beide Anwendungen werden die Verbindung " +"zum Stream nach jedem Titel verlieren. Sollten sie einen Ogg-Stream " +"verwenden und ihre Hörer keine Unterstützung für diese Audioplayer erwarten, " +"können sie diese Option aktivieren." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Bibliothek" +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Aktivieren sie dieses Kästchen, um die Master/Show-Source bei Unterbrechung " +"der Leitung automatisch abzuschalten." -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Kalender" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Aktivieren sie dieses Kästchen, um automatisch bei Verbindung einer " +"Streameingabe umzuschalten." -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "System" +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"Wenn Ihr Icecast Server den Benutzernamen 'source' erwartet, kann dieses " +"Feld leer bleiben." -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"Wenn Ihr Live-Streaming-Client nicht nach einem Benutzernamen fragt, sollten " +"Sie hier 'source' eintragen." -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Benutzer" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"Wenn sie den Benutzernamen oder das Passwort für einen aktivierten Stream " +"ändern, wird die Playout Engine neu gestartet und Ihre Zuhörer werden für " +"5-10 Sekunden Stille hören. \n" +"Wenn sie die folgenden Felder ändern, gibt es KEINEN Neustart: Stream Label " +"(Allgemeine Einstellungen) und Master Übergang beim Umschalten (Fade in " +"Sekunden), Master Benutzername Passwort (Input Stream Einstellungen). Wenn " +"Airtime aufnimmt und wenn die Änderung eine Playout Engine Neustart bewirkt, " +"wird die Aufnahme unterbrochen." -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Medienordner" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"Admin Benutzer und Passwort, wird zur Abfrage der Zuhörerdaten in Icecast/" +"SHOUTcast verwendet." -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Streams" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" +"Warnung: Dieses Feld kann nicht geändert werden, während die Sendung " +"wiedergegeben wird." -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Hörerstatistiken" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "Kein Ergebnis gefunden" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" -msgstr "Verlauf" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"Diese Einstellung folgt den gleichen Sicherheitsvorlagen für Sendung: Nur " +"Benutzer denen diese Sendung zugewiesen wurde, können sich verbinden." -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Playout Verlauf" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "" +"Bestimmen einer benutzerdefinierten Anmeldung eintragen, welche nur für " +"diese Sendung funktionieren wird." -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "Verlaufsvorlagen" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "Die Sendungsinstanz existiert nicht mehr!" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Hilfe" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "Warnung: Verknüpfte Sendungen können nicht erneut verknüpft werden" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Kurzanleitung" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" +"Beim Verknüpfen von wiederkehrenden Sendungen werden jegliche Medien, die in " +"einer wiederkehrenden Sendung geplant sind, auch in den anderen Sendungen " +"geplant." -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "Benutzerhandbuch" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." +msgstr "" +"Die Zeitzone ist standardmäßig auf die Zeitzone der Radiostation " +"eingestellt. Der Im Kalender werden die Sendungen in jener Ortszeit " +"dargestellt, welche in den Benutzereinstellungen für das Interface " +"festgelegt wurde." -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "Über" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Sendung" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Dienst" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "Sendung ist leer" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Betriebszeit" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Speicher" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10m" + +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Speicherplatz" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60m" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "E-Mail / Mail-Server-Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Daten werden vom Server abgerufen..." -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "SoundCloud Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "Diese Sendung hat keinen festgelegten Inhalt." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Wiederholen Tage:" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "Diese Sendung ist noch nicht vollständig mit Inhalten gefüllt." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Entfernen" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "Januar" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Hinzufüg." +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "Februar" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "Verbindung URL:" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "März" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Einstellungen Input Stream" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "April" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "Master Source URL Verbindung:" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "Mai" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Überschreiben" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "Juni" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "OK" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "Juli" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "ZURÜCKSETZEN" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "August" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "Show Source Connection URL:" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "September" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Erforderlich)" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "Oktober" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Airtime registrieren" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "November" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "Dezember" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Jan." -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(Ausschließlich zu Kontrollzwecken, wird nicht veröffentlicht)" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "Feb." -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Hinweis: Grafiken, die größer als 600x600 sind, werden verkleinert." +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "Mrz." -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Zeige mir was ich sende " +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "Apr." -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Allgemeine Geschäftsbedingungen" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "Jun." -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Passwort zurücksetzen" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "Jul." -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Ordner wählen" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "Aug." -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Festlegen" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "Sep." -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Aktueller Import Ordner:" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "Okt." -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "Nov." -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Überwachten Ordner entfernen" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "Dez." -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "Sie überwachen keine Medienordner." +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "heute" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Stream " +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "Tag" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Erweiterte Optionen" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "Woche" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "Monat" + +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "Die folgenden Informationen werden den Zuhörern in ihren Playern angezeigt:" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "" +"Wenn der Inhalt einer Sendung länger ist als im Kalender festgelegt ist, " +"wird das Ende durch eine nachfolgende Sendung abgschnitten." -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(Webseite Ihres Radiosenders)" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Aktuelle Sendung abbrechen?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "Stream URL: " +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Aufnahme der aktuellen Sendung stoppen?" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Filter Verlauf" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "Speichern" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Suche Sendungen" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Sendungsinhalt" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Filter nach Sendung:" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Gesamten Inhalt entfernen?" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "%s's Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Gewählte Objekte löschen?" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "Ende" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(Um ihre Radiostation bewerben zu können, muß 'Support Feedback senden' aktiviert sein)" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Dauer" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Sourcefabric Datenschutzrichtlinie" +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Sendung ist leer" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "Folge wählen" +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Aufnehmen über Line In" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "Finden" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Titel Vorschau" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Tage wählen:" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Es ist keine Planung außerhalb einer Sendung möglich." -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Smart Block Optionen" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Verschiebe 1 Objekt" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "oder" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Verschiebe %s Objekte" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "und" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" +msgstr "Fade Editor" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr " bis " +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" +msgstr "Cue Editor" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "Dateien entsprechen den Kriterien" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "" +"Wellenform-Funktionen ist nur in Browsern möglich, welche die Web Audio API " +"unterstützen" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "entspricht den Kriterien" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Alles auswählen" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "Erstelle Dateiübersichtsvorlage" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Nichts auswählen" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "Erstelle Protokollvorlage" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Überbuchte Titel entfernen" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "Weitere Elemente hinzufügen" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Ausgewählte Elemente aus dem Programm entfernen" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "Neues Feld hinzufügen" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Springe zu aktuellem Titel" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "Standardvorlage wählen" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Aktuelle Sendung abbrechen" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "Protokollvorlagen" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "" +"Um Inhalte hinzuzufügen oder zu entfernen muß die Bibliothek geöffnet werden" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "Keine Protokollvorlagen" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "In Verwendung" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "Neue Protokollvorlage" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Disk" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "Dateiübersichtsvorlagen" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Suchen in" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "Keine Dateiübersichtsvorlagen" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Öffnen" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "Neue Dateiübersichtsvorlage" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "Gäste können folgendes tun:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "Neu" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "Kalender betrachten" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "Neue Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "Sendungsinhalt betrachten" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "Neuer Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "DJs können folgendes tun:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "Neuer Webstream" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "Verwalten zugewiesener Sendungsinhalte" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "Beschreibung ansehen/ändern" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Mediendateien importieren" + +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Erstellen von Playlisten, Smart Blöcken und Webstreams" + +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "Verwalten eigener Bibliotheksinhalte" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "Stream URL:" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "Programm Manager können folgendes tun:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Standard Dauer:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "Sendungsinhalte betrachten und verwalten" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "Kein Webstream" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Sendungen festlegen" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Stream Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "Verwalten der gesamten Bibliothek" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Globale Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "Admins können folgendes tun:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "dB" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Einstellungen verwalten" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Stream-Ausgabe Einstellungen" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "Benutzer verwalten" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "Datei-Import in Bearbeitung..." +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "Verwalten überwachter Verzeichnisse" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Erweiterte Suchoptionen" +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "System Status betrachten" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "zurück" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Zugriff auf Playlist Verlauf" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "Wiedergabe" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "Hörerstatistiken betrachten" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "Pause" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Spalten auswählen" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "weiter" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "Von {from} bis {to}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "Stop" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "Stummschalten" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "yyyy-mm-dd" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "Lautschalten" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "hh:mm:ss.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "Maximale Lautstärke" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Update erforderlich" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "So" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "Um die Medien zu spielen, müssen sie entweder Ihren Browser oder Ihr %s Flash-Plugin %s aktualisieren." +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Mo" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Länge:" +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Di" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Samplerate:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "Mi" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "ISRC-Nr.:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Do" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "Dateipfad:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Fr" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Web Stream" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "Sa" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Dynamischer Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Stunde" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Statischer Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Minute" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Titel-Nr." +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Fertig" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Playlist Inhalt: " +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Dateien auswählen" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Statischer Smart Block Inhalt: " +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "Dateien zur Uploadliste hinzufügen und den Startbutton klicken." -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Dynamische Smart Block Kriterien: " +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Dateien hinzufügen" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Beschränken auf " +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Upload stoppen" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Hörerzahlen im Zeitraum" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Upload starten" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 -#, php-format -msgid "Welcome to %s!" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Dateien hinzufügen" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "" +msgid "Uploaded %d/%d files" +msgstr "%d/%d Dateien hochgeladen" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Beginnen sie damit, Dateien ihrer Bibliothek hinzuzufügen. Verwenden sie dazu die Schaltfläche 'Medien Hinzufügen'. Dateien können auch via Drag'n'Drop hinzugefügt werden." +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "N/A" + +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Dateien in dieses Feld ziehen.(Drag & Drop)" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Erstellen sie eine Sendung, indem sie die Schaltfläche 'Kalender' betätigen und anschließend auf die Schaltfläche '+ Sendung' klicken. Dies kann eine einmalige oder sich wiederholende Sendung sein. Nur Administratoren und Programm Manager können Sendungen hinzufügen." +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "Fehler in der Dateierweiterung." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Fügen sie Mediendateien einer Show hinzu.\nÖffnen sie dazu die gewünschte Sendung durch einen Links-Klick im Kalender und wählen sie 'Inhalt hinzufügen / entfernen'" +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "Fehler in der Dateigröße." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Wählen sie Medien vom linken Feld und ziehen sie es in ihre Sendung im rechten Feld." +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "Fehler in der Dateianzahl" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "Dann kann es auch schon los gehen!" +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Init Fehler." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "Für weitere ausführliche Hilfe, lesen sie bitte das %sBenutzerhandbuch%s." +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "HTTP Fehler." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Teilen" +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Sicherheitsfehler." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Stream wählen:" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Allgemeiner Fehler." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "IO Fehler." + +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "" +msgid "File: %s" +msgstr "Datei: %s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "" +msgid "%d files queued" +msgstr "%d Dateien in der Warteschlange" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "Neues Passwort" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "Datei: %f, Größe: %s, Maximale Dateigröße: %m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Bitte geben sie Ihr neues Passwort ein und bestätigen es im folgenden Feld." +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "Upload-URL scheint falsch zu sein oder existiert nicht" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Bitte geben sie die E-Mail-Adresse ein, die in ihrem Benutzerkonto eingetragen ist. sie erhalten einen Link um ein neues Passwort via E-Mail zu erstellen." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Fehler: Datei zu groß: " -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "E-Mail gesendet" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "Fehler: ungültige Dateierweiterung: " -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "Ein E-Mail wurder gesendet" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "Eintrag erstellen" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Zurück zum Anmeldebildschirm" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "Verlaufsprotokoll bearbeiten" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "%s Reihen%s in die Zwischenablage kopiert" + +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" +"%sDruckansicht%sBenutzen sie bitte die Druckfunktion des Browsers, um diese " +"Tabelle auszudrucken. Wenn sie fertig sind, drücken sie die Escape-Taste." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Zuvor:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Danach:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Source Streams" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Master Source" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Show Source" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Vorschau" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "geplante Wiederg." +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Cursor wählen" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "ON AIR" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Cursor entfernen" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Anhören" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "Sendung existiert nicht" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Sender Zeit" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Einstellungen aktualisiert." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Ihre Testperiode endet in" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Support-Einstellungen aktualisiert." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Stream-Einstellungen aktualisiert." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "Mein Konto" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "Pfad muß angegeben werden" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Benutzer verwalten" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Problem mit Liquidsoap ..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "Neuer Benutzer" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Seite nicht gefunden" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "ID" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Anwendungsfehler" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "Vorname" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s nicht gefunden" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Nachname" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Etwas ist falsch gelaufen." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "Benutzertyp" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Zur Playlist hinzufügen" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "Protokoll" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Zum Smart Block hinzufügen" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "Dateiübersicht" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Download" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "Sendungsübersicht" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Duplizierte Playlist" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Zend Framework Default Application" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "Soundcloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Seite nicht gefunden!" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "Keine Aktion verfügbar" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "Scheinbar existiert die Seite die sie suchen nicht!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "" +"Sie haben nicht die erforderliche Berechtigung die gewählten Objekte zu " +"löschen." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Statischen Block erweitern" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "" +"Einige im Programmplan enthaltene Dateien konnten nicht gelöscht werden." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Dynamischen Block erweitern" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Kopie von %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Smart Block leeren" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Unbenannter Webstream" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Playlist leeren" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Webstream gespeichert." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "Playlist leeren" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Ungültige Formularwerte." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "Leeren" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "" +"Sie haben nicht die erforderliche Berechtigung, das Eingangssignal zu " +"trennen." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Playlist mischen" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "Mit diesem Eingang ist kein Signal verbunden." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Playlist speichern" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "" +"Sie haben nicht die erforderliche Berechtigung, das Signal umzuschalten." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Playlist Crossfade" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "Benutzer erfolgreich hinzugefügt!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Fade In: " +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "Benutzer erfolgreich aktualisiert!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Fade Out: " +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "Einstellungen erfolgreich aktualisiert!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "Keine Playlist geöffnet" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Wiederholung der Sendung %s vom %s um %s" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "Leerer Smart Block Inhalt" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." +msgstr "" +"Bitte prüfen sie, ob der Admin Nutzer/Password unter System->Stream korrekt " +"eingetragen ist." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "Sie sind nicht berechtigt, auf diese Resource zuzugreifen" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "Kein Smart Block geöffnet" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "Sie sind nicht berechtigt, auf diese Resource zuzugreifen. " -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "Wellenform anzeigen" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "Datei existiert nicht in Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Cue In: " +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "Datei existiert nicht in Airtime" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "Datei existiert nicht in Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Cue Out: " +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Fehlerhafte Anfrage. Es wurde kein 'mode' Parameter übergeben." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Originallänge:" +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Fehlerhafte Anfrage. 'Mode' Parameter ist ungültig" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Sendung hinzufügen" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "Sie betrachten eine ältere Version von %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Sendung aktualisieren" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "Sie können einem Dynamischen Smart Block keine Titel hinzufügen." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "Was" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "" +"Sie haben zum Löschen der gewählten %s (s) nicht die erforderliche " +"Berechtigung." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "Wann" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "Sie können einem Smart Block nur Titel hinzufügen." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Live Stream Input" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Unbenannte Playlist" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Aufnahme & Wiederholung" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Unbenannter Smart Block" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Wer" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Unbekannte Playlist" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Farbe" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "Cue In und Cue Out sind Null." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Wiederholung der Sendung %s von %s" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "Cue In darf nicht größer als die Gesamtlänge der Datei sein." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Land wählen" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "Cue In darf nicht größer als Cue Out sein." + +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Cue Out darf nicht kleiner als Cue In sein." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3643,50 +4374,34 @@ msgstr "Die M3U Playlist konnte nicht eingelesen werden" #: airtime_mvc/application/models/Webstream.php:314 msgid "Invalid webstream - This appears to be a file download." -msgstr "Ungültiger Webstream - Die eingegebene URL scheint ein Dateidownload zu sein." +msgstr "" +"Ungültiger Webstream - Die eingegebene URL scheint ein Dateidownload zu sein." #: airtime_mvc/application/models/Webstream.php:318 #, php-format msgid "Unrecognized stream type: %s" msgstr "Unbekannter Stream-Typ: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s wird bereits überwacht." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s enthält andere bereits überwachte Verzeichnisse: %s " - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s ist ein Unterverzeichnis eines bereits überwachten Verzeichnisses: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s ist kein gültiges Verzeichnis." - -#: airtime_mvc/application/models/MusicDir.php:232 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s ist bereits als aktuelles Speicherverzeichnis bestimmt oder in der Liste überwachter Verzeichnisse" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Hallo %s , \n" +"\n" +"Klicke auf diesen Link um dein Passwort zurückzusetzen: " -#: airtime_mvc/application/models/MusicDir.php:386 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s ist bereits als aktuelles Speicherverzeichnis bestimmt oder in der Liste überwachter Verzeichnisse." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Airtime Passwort zurücksetzen" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s existiert nicht in der Liste überwachter Verzeichnisse." +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Land wählen" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3694,13 +4409,19 @@ msgstr "Inhalte aus verknüpften Sendungen können nicht verschoben werden" #: airtime_mvc/application/models/Scheduler.php:119 msgid "The schedule you're viewing is out of date! (sched mismatch)" -msgstr "Der Kalender den sie sehen ist nicht mehr aktuell!(Kalender falsch zugeordnet)" +msgstr "" +"Der Kalender den sie sehen ist nicht mehr aktuell!(Kalender falsch " +"zugeordnet)" #: airtime_mvc/application/models/Scheduler.php:124 msgid "The schedule you're viewing is out of date! (instance mismatch)" -msgstr "Der Kalender den sie sehen ist nicht mehr aktuell! (Instanz falsch zugeordnet)" +msgstr "" +"Der Kalender den sie sehen ist nicht mehr aktuell! (Instanz falsch " +"zugeordnet)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3709,7 +4430,9 @@ msgstr "Der Kalender den sie sehen ist nicht mehr aktuell!" #: airtime_mvc/application/models/Scheduler.php:142 #, php-format msgid "You are not allowed to schedule show %s." -msgstr "Sie haben nicht die erforderliche Berechtigung einen Termin für die Sendung %s zu festzulegen." +msgstr "" +"Sie haben nicht die erforderliche Berechtigung einen Termin für die Sendung " +"%s zu festzulegen." #: airtime_mvc/application/models/Scheduler.php:146 msgid "You cannot add files to recording shows." @@ -3729,40 +4452,88 @@ msgstr "Die Sendung %s wurde bereits aktualisiert!" msgid "" "Content in linked shows must be scheduled before or after any one is " "broadcasted" -msgstr "Inhalte in verknüpften Sendungen können nicht während der Sendung geändert werden" - -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." msgstr "" +"Inhalte in verknüpften Sendungen können nicht während der Sendung geändert " +"werden" +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "Eine der gewählten Dateien existiert nicht!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "Cue In und Cue Out sind Null." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s wird bereits überwacht." -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Cue In darf nicht größer als Cue Out sein." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s enthält andere bereits überwachte Verzeichnisse: %s " -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Cue In darf nicht größer als die Gesamtlänge der Datei sein." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "" +"%s ist ein Unterverzeichnis eines bereits überwachten Verzeichnisses: %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Cue Out darf nicht kleiner als Cue In sein." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s ist kein gültiges Verzeichnis." + +#: airtime_mvc/application/models/MusicDir.php:232 +#, php-format +msgid "" +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s ist bereits als aktuelles Speicherverzeichnis bestimmt oder in der Liste " +"überwachter Verzeichnisse" + +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format +msgid "" +"%s is already set as the current storage dir or in the watched folders list." +msgstr "" +"%s ist bereits als aktuelles Speicherverzeichnis bestimmt oder in der Liste " +"überwachter Verzeichnisse." + +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s existiert nicht in der Liste überwachter Verzeichnisse." + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Wiederholung der Sendung %s von %s" + +#: airtime_mvc/application/models/Show.php:180 +msgid "Shows can have a max length of 24 hours." +msgstr "Die Maximaldauer einer Sendung beträgt 24 Stunden." + +#: airtime_mvc/application/models/Show.php:289 +msgid "" +"Cannot schedule overlapping shows.\n" +"Note: Resizing a repeating show affects all of its repeats." +msgstr "" +"Sendungen können nicht überlappend geplant werden.\n" +"Beachte: Wird die Dauer einer wiederkehrenden Sendung verändert, wirkt sich " +"das auch auf alle Wiederholungen aus." + +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "Die Länge einer vergangenen Sendung kann nicht verändert werden." + +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "Sendungen sollten nicht überlappen" #: airtime_mvc/application/models/StoredFile.php:1003 msgid "Failed to create 'organize' directory." @@ -3773,138 +4544,132 @@ msgstr "Fehler beim Erstellen des Ordners 'organize'" msgid "" "The file was not uploaded, there is %s MB of disk space left and the file " "you are uploading has a size of %s MB." -msgstr "Die Datei konnte nicht hochgeladen werden. Es sind %s MB Speicherplatz frei und die Datei, die sie hochladen wollen, hat eine Größe von %s MB." +msgstr "" +"Die Datei konnte nicht hochgeladen werden. Es sind %s MB Speicherplatz frei " +"und die Datei, die sie hochladen wollen, hat eine Größe von %s MB." #: airtime_mvc/application/models/StoredFile.php:1026 msgid "" "This file appears to be corrupted and will not be added to media library." -msgstr "Die Datei scheint fehlerhaft zu sein und wird der Bibliothek nicht hinzugefügt." +msgstr "" +"Die Datei scheint fehlerhaft zu sein und wird der Bibliothek nicht " +"hinzugefügt." #: airtime_mvc/application/models/StoredFile.php:1065 msgid "" "The file was not uploaded, this error can occur if the computer hard drive " "does not have enough disk space or the stor directory does not have correct " "write permissions." -msgstr "Die Datei konnte nicht hochgeladen werden. Dieser Fehler kann auftreten, wenn die Festplatte des Computers nicht über genügend freien Speicherplatz verfügt oder das Ablageverzeichnis 'stor' keine Schreibrechte hat." - -#: airtime_mvc/application/models/Show.php:180 -msgid "Shows can have a max length of 24 hours." -msgstr "Die Maximaldauer einer Sendung beträgt 24 Stunden." - -#: airtime_mvc/application/models/Show.php:289 -msgid "" -"Cannot schedule overlapping shows.\n" -"Note: Resizing a repeating show affects all of its repeats." -msgstr "Sendungen können nicht überlappend geplant werden.\nBeachte: Wird die Dauer einer wiederkehrenden Sendung verändert, wirkt sich das auch auf alle Wiederholungen aus." +msgstr "" +"Die Datei konnte nicht hochgeladen werden. Dieser Fehler kann auftreten, " +"wenn die Festplatte des Computers nicht über genügend freien Speicherplatz " +"verfügt oder das Ablageverzeichnis 'stor' keine Schreibrechte hat." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/layouts/scripts/login.phtml:24 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Hallo %s , \n\nKlicke auf diesen Link um dein Passwort zurückzusetzen: " +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" +msgstr "" -#: airtime_mvc/application/models/Auth.php:36 +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 #, php-format -msgid "%s Password Reset" +msgid "Promote my station on %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "Aufzeichnung existiert nicht" - -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "Metadaten der aufgezeichneten Datei anzeigen" - -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Sendungsinhalt" - -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Gesamten Inhalt entfernen" - -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Aktuelle Sendung abbrechen" - -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" -msgstr "Diese Folge bearbeiten" - -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Sendung ändern" - -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Diese Folge löschen" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Diese Folge und alle folgenden löschen" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "Zugriff verweigert" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Wiederkehrende Sendungen können nicht per Drag'n'Drop verschoben werden." +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Eine in der Vergangenheit liegende Sendung kann nicht verschoben werden." +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Eine Sendung kann nicht in die Vergangenheit verschoben werden." +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Eine aufgezeichnete Sendung kann nicht verschoben werden, wenn der Zeitpunkt der Wiederholung weniger als eine Stunde bevor liegt." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "Die Sendung wurde gelöscht, weil die aufgezeichnete Sendung nicht existiert!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Das Wiederholen einer Sendung ist erst nach einer Stunde Wartezeit möglich." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" -msgstr "Titel" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Abgespielt" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "Das Jahr %s muß im Bereich zwischen 1753 und 9999 sein" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s ist kein gültiges Datum" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s-%s-%s ist kein gültiger Zeitpunkt." +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Bitte eine Option wählen" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "Keine Aufzeichnungen" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/locale/el_GR/LC_MESSAGES/airtime.po b/airtime_mvc/locale/el_GR/LC_MESSAGES/airtime.po index c2ac4ef8dd..7d82537434 100644 --- a/airtime_mvc/locale/el_GR/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/el_GR/LC_MESSAGES/airtime.po @@ -1,3608 +1,4319 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: -# Katerina Michailidi , 2014 +# KaterinaMic , 2014 # Sourcefabric , 2013 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: Greek (Greece) (http://www.transifex.com/projects/p/airtime/language/el_GR/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-02-04 10:31+0000\n" +"Last-Translator: danielhjames \n" +"Language-Team: Greek (Greece) (http://www.transifex.com/projects/p/airtime/" +"language/el_GR/)\n" +"Language: el_GR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: el_GR\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Αναπαραγωγή ήχου" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Παρακαλούμε επιλέξτε μια επιλογή" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Έξοδος" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "Κανένα Αρχείο" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "Αναπαραγωγή" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "Το έτος %s πρέπει να είναι εντός του εύρους 1753 - 9999" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "Παύση" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s δεν αποτελεί έγκυρη ημερομηνία" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Cue In" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s : %s : %s δεν αποτελεί έγκυρη ώρα" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "Ρύθμιση Cue In" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Αναπαραγωγή σε Εξέλιξη" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Cue Out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Προσθήκη Πολυμέσων" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "Ρύθμιση Cue Out" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Βιβλιοθήκη" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "Cursor" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Ημερολόγιο" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Fade In" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "Σύστημα" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Fade Out" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Προτιμήσεις" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Xρήστες" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Ζωντανό Stream" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Φάκελοι Πολυμέσων" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Ενεργοποιημένο" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Streams" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Τύπος Stream:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Σχόλια Υποστήριξης" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Ρυθμός Δεδομένων:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Κατάσταση" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Τύπος Υπηρεσίας:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Στατιστικές Ακροατών" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Κανάλια" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "Ιστορικό" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Ιστορικό Playout" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "Ιστορικό Template" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Διακομιστής" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Βοήθεια" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Εισαγωγή άκυρου χαρακτήρα" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Έναρξη" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Θύρα" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "Εγχειρίδιο Χρήστη" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Επιτρέπονται μόνο αριθμοί." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "Σχετικά" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Κωδικός πρόσβασης" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "Το αρχείο δεν υπάρχει" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Είδος" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "Προβολή εγγεγραμμένων Αρχείων Μεταδεδομένων " -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "Διεύθυνση URL:" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Προβολή σε Soundcloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Ονομασία" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Ανέβασμα σε SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Περιγραφή" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Επαναφόρτωση σε SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Σημείο Προσάρτησης" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Εμφάνιση Περιεχομένου" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Όνομα Χρήστη" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Προσθήκη / Αφαίρεση Περιεχομένου" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Διαχειριστής Χρήστης" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Αφαίρεση Όλου του Περιεχομένου" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Κωδικός πρόσβασης Διαχειριστή" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Ακύρωση Τρέχουσας Εκπομπής" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Λήψη πληροφοριών από το διακομιστή..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "Επεξεργασία της Παρουσίας" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Ο διακομιστής δεν μπορεί να είναι κενός." +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Επεξεργασία" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Το Port δεν μπορεί να είναι κενό." +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Επεξεργασία Εκπομπής" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Η προσάρτηση δεν μπορεί να είναι κενή με διακομιστή Icecast." +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Διαγραφή" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" -msgstr "Τίτλος:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Διαγραφή Της Παρουσίας" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" -msgstr "Δημιουργός:" +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Διαγραφή Της Παρουσίας και Όλων των Ακόλουθών της" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "Album:" +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "Δεν έχετε δικαίωμα πρόσβασης" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "Κομμάτι:" +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "Δεν είναι δυνατό το drag and drop επαναλαμβανόμενων εκπομπών" + +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "Δεν είναι δυνατή η μετακίνηση περασμένης εκπομπής" + +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Δεν είναι δυνατή η μετακίνηση εκπομπής στο παρελθόν" + +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Δεν είναι δυνατός ο προγραμματισμός αλληλοεπικαλυπτόμενων εκπομπών" + +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "" +"Δεν είναι δυνατή η μετακίνηση ηχογραφημένης εκπομπής σε λιγότερο από 1 ώρα " +"πριν από την αναμετάδοση της." + +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "Η εκπομπή διεγράφη επειδή δεν υπάρχει ηχογραφημένη εκπομπή!" + +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "Πρέπει να περιμένετε 1 ώρα για την αναμετάδοση." + +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Τίτλος" + +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Δημιουργός" + +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Album" + +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Διάρκεια" + +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Είδος" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Διάθεση" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Εταιρεία" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Συνθέτης" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Copyright" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Έτος" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "Κομμάτι" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Ενορχήστρωση" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Γλώσσα" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "Ώρα Έναρξης" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "Ώρα Τέλους" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Παίχτηκε" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "Εισαγωγή αρχείου σε εξέλιξη..." -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" -msgstr "Είδος:" +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Προηγμένες Επιλογές Αναζήτησης" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" -msgstr "Έτος" +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Καταμέτρηση Ακροατών με την Πάροδου Χρόνου" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" -msgstr "Δισκογραφική:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "Νέο" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" -msgstr "Συνθέτης:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "Νέα λίστα αναπαραγωγής" -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" -msgstr "Μαέστρος:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "Νέο Smart Block" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Διάθεση:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "Νέο Webstream" -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "Άδειασμα περιεχομένου λίστας αναπαραγωγής" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" -msgstr "Copyright:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "Εκκαθάριση" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "Αριθμός ISRC:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Shuffle λίστα αναπαραγωγής" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" -msgstr "Ιστοσελίδα:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Shuffle" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" -msgstr "Γλώσσα:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Αποθήκευση λίστας αναπαραγωγής" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 #: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 #: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 #: airtime_mvc/application/forms/SupportSettings.php:161 #: airtime_mvc/application/controllers/LocaleController.php:283 #: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 #: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 msgid "Save" msgstr "Αποθήκευση" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Ακύρωση" - -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Όνομα Χρήστη:" - -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Κωδικός πρόσβασης:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Crossfade λίστας αναπαραγωγής" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Επαλήθευση κωδικού πρόσβασης" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "Προβολή / επεξεργασία περιγραφής" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Όνομα:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Περιγραφή" -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Επώνυμο:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Fade in: " -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "Email:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Fade out: " -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Κινητό Τηλέφωνο:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "Καμία ανοικτή λίστα αναπαραγωγής" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Επέκταση Στατικών Block" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Επέκταση Δυναμικών Block" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "Τύπος Χρήστη:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Άδειασμα smart block" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Επισκέπτης" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Άδειασμα λίστας αναπαραγωγής" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "DJ" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "Εμφάνιση κυμματοειδούς μορφής" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Διευθυντής Προγράμματος" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Cue In: " -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Διαχειριστής" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(ωω:λλ:δδ.t)" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Το όνομα εισόδου δεν είναι μοναδικό." +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Cue Out: " -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Χρώμα Φόντου:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Αρχική Διάρκεια:" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Χρώμα Κειμένου:" +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(Ss.t)" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Ημερομηνία Έναρξης:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "Εκκαθάριση περιεχομένου του smart block" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Ημερομηνία Λήξης:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "Κανένα ανοικτό smart block " -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Εκπομπή:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sΤο Airtime%s %s, το ανοικτού κώδικα λογισμικό για προγραμματισμό και " +"διαχείριση ραδιοφωνικών σταθμών εξ αποστάσεως. %s" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "Όλες οι Εκπομπές μου:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "%s Sourcefabric%s o.p.s. Το Airtime διανέμεται υπό %s GNU GPL v.3 %s" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "ημέρες" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Καλώς ήρθατε στο Airtime!" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "Η μέρα πρέπει να προσδιοριστεί" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "" +"Διαβάστε τις οδηγίες για να ξεκινήσετε να χρησιμοποιείται το Airtime, για " +"την αυτοματοποίηση των εκπομπών σας: " -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "Η ώρα πρέπει να προσδιοριστεί" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Ξεκινήστε με την προσθήκη αρχείων στη βιβλιοθήκη επιλέγοντας 'Προσθήκη " +"Πολυμέσων' στο μενού. Μπορείτε να κάνετε και drag-and-drop στα αρχεία σας σε " +"αυτό το παράθυρο." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Πρέπει να περιμένετε τουλάχιστον 1 ώρα για την αναμετάδοση" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Δημιουργήστε μια εκπομπή πηγαίνοντας στο «Ημερολόγιο» και στη συνέχεια " +"κάνοντας κλικ στο εικονίδιο '+Εκπομπή'. Αυτό μπορεί να είναι είτε μια ή " +"επαναλαμβανόμενες εκπομπές. Μόνο οι διαχειριστές και οι μουσικοί παραγωγοί " +"μπορούν να επεξεργαστούν την εκπομπή." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Εισαγωγή Φακέλου:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Προσθέστε πολυμέσα στην εκπομπή σας πηγαίνοντας στο Ημερολόγιο " +"προγραμματισμού, κάνοντας αριστερό κλικ πάνω στην εκπομπή και επιλέγοντας " +"'Προσθήκη / Αφαίρεση Περιεχομένου'" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Παροβεβλημμένοι Φάκελοι:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Επιλέξτε τα πολυμέσα σας από το αριστερό τμήμα του παραθύρου και σύρετέ τα " +"στην εκπομπή σας στο δεξιό τμήμα." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Μη έγκυρο Ευρετήριο" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "Και είστε έτοιμοι!" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Αναζήτηση Χρηστών:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "Για περισσότερες αναλυτικές οδηγίες, διαβάστε το %sεγχειρίδιο%s ." -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "DJs:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Ζωντανό Stream" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Σύνδεση" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Μοιραστείτε" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Πληκτρολογήστε τους χαρακτήρες που βλέπετε στην παρακάτω εικόνα." +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Επιλέξτε stream:" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Όνομα Σταθμού" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "Σίγαση" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "Προεπιλεγμένη Διάρκεια Crossfade (s):" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "Κατάργηση σίγασης" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "εισάγετε ένα χρόνο σε δευτερόλεπτα 0{.0}" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "Όλα" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "Προεπιλεγμένο Fade In (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "Προεπιλεγμένο Fade Out (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Επιτρέψτε την Πρόσβαση \"Πρόγραμμα\" Πληροφορίες;%s σε Ιστοσελίδες με Απομακρυσμένη Πρόσβαση (Ενεργοποιήστε το για να λειτουργήσουν τα front-end widgets.)" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Απενεργοποιημένο" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "URL Stream:" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Ενεργοποιημένο" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Προεπιλεγμένη Διάρκεια:" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Προεπιλογή Γλώσσας Interface" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "Κανένα webstream" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "Ζώνη Ώρας Σταθμού" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "Τίτλος:" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "Η Εβδομάδα αρχίζει " +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "Δημιουργός:" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Κυριακή" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "Album:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Δευτέρα" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "Κομμάτι:" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Τρίτη" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Διάρκεια:" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Τετάρτη" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Ρυθμός δειγματοληψίας:" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Πέμπτη" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Ρυθμός Δεδομένων:" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Παρασκευή" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Διάθεση:" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Σάββατο" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "Είδος:" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "Σύνδεσμος" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "Έτος" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Τύπος Επανάληψης:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "Δισκογραφική:" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "εβδομαδιαία" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "Συνθέτης:" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "κάθε 2 εβδομάδες" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "Μαέστρος:" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "κάθε 3 εβδομάδες" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "Copyright:" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "κάθε 4 εβδομάδες" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "Αριθμός ISRC:" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "μηνιαία" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "Ιστοσελίδα:" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Επιλέξτε Ημέρες:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" +msgstr "Γλώσσα:" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Κυρ" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "Διαδρομή Αρχείου" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Δευ" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Όνομα:" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Τρι" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Περιγραφή:" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Τετ" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Web Stream" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Πεμ" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Δυναμικά Smart Block" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Παρ" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Στατικά Smart Block" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Σαβ" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Κομμάτι Ήχου" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "Επανάληψη από:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Περιεχόμενα Λίστας Αναπαραγωγής: " -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "ημέρα του μήνα" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Περιεχόμενα Στατικών Smart Block : " -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "ημέρα της εβδομάδας" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Κριτήρια Δυναμικών Smart Block: " -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "Χωρίς Τέλος;" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Όριο για " -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "Η ημερομηνία λήξης πρέπει να είναι μετά την ημερομηνία έναρξης" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "Διεύθυνση URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "Επιλέξτε ημέρα επανάληψης" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "Επιλογή Παρουσίας Εκπομπής" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Επιβεβαίωση νέου κωδικού πρόσβασης" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "Καμία Εκπομπή" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "Η επιβεβαίωση κωδικού δεν ταιριάζει με τον κωδικό πρόσβασής σας." +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "Εύρεση" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Αποκτήστε νέο κωδικό πρόσβασης" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "%s's Ρυθμίσεις" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Επιλέξτε κριτήρια" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Επιλέξτε φάκελο" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Album" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Ορισμός" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Bit Rate (Kbps)" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Τρέχων Φάκελος Εισαγωγής:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Προσθήκη" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Συνθέτης" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Επανασάρωση προβεβλημμένου ευρετηρίου (Αυτό είναι χρήσιμο αν το δίκτυο " +"στήριξης είναι εκτός συγχρονισμού με το Airtime)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Ενορχήστρωση" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Αφαίρεση προβεβλημμένου ευρετηρίου" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Copyright" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "Δεν παρακολουθείτε κανέναν φάκελο πολυμέσων." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Δημιουργός" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Απαιτείται)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Κωδικοποιήθηκε από" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Βοηθείστε το Airtime ενημερώνοντας τη Sourcefabric για τη χρήση που του " +"κάνετε. Αυτές οι πληροφορίες θα συλλέγονται τακτικά, προκειμένου να " +"ενισχύσουν την εμπειρία των χρηστών σας. %s Κάντε κλικ στο πλαίσιο Αποστολή " +"σχολίων υποστήριξης» και θα βεβαιωθείτε ότι οι λειτουργίες που " +"χρησιμοποιείτε βελτιώνοται συνεχώς." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "" +"Κάντε κλικ στο παρακάτω πλαίσιο για να προωθήσετε τον σταθμό σας στην " +"ιστοσελίδα %sSourcefabric.org%s ." + +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(Για να προωθήσετε τον σταθμό σας, η 'Αποστολή σχολίων υποστήριξης» πρέπει " +"να είναι ενεργοποιημένη)." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Εταιρεία" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(Μόνο για σκοπούς επαλήθευσης, δεν θα δημοσιευθεί)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Γλώσσα" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Σημείωση: Οτιδήποτε μεγαλύτερο από 600x600 θα αλλάξει μέγεθος." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Τελευταία τροποποίηση" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Δείξε μου τι στέλνω " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Τελευταία αναπαραγωγή" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Πολιτική Προστασίας Προσωπικών Δεδομένων της Sourcefabric" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Διάρκεια" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Εύρεση Εκπομπών" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Μίμος" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Φιλτράρισμα βάσει Εκπομπών:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Διάθεση" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "Ρυθμίσεις Δακομιστή Email / Αλληλογραφίας" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Ιδιοκτήτης" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "Ρυθμίσεις SoundCloud" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Κέρδος Επανάληψης" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Επιλέξτε Ημέρες:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Ρυθμός Δειγματοληψίας (kHz)" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Αφαίρεση" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Τίτλος" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Stream " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Αριθμός Κομματιού" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Πρόσθετες επιλογές" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Φορτώθηκε" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "" +"Η παρακάτω πληροφορία θα εμφανίζεται στις συσκευές αναπαραγωγής πολυμέσων " +"των ακροατών σας:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Ιστοσελίδα" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(Ιστοσελίδα του Ραδιοφωνικού σταθμού)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Έτος" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "URL Stream: " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Επιλέξτε τροποποιητή" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "URL Σύνδεσης: " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "περιέχει" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Επαναφορά κωδικού πρόσβασης" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "δεν περιέχει" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Εγγραφή σε Airtime" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "είναι" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "" +"Βοηθείστε στη βελτίωση του Airtime, ενημερώνοντας μας για την χρήση που του " +"κάνετε. Αυτές οι πληροφορίες θα συλλέγονται τακτικά, προκειμένου να " +"ενισχύσουν την εμπειρία των χρηστών σας. %sΚάντε κλικ στο κουμπί 'Ναι, βοηθώ " +"το Airtime' και θα βεβαιωθείτε ότι οι λειτουργίες που χρησιμοποιείτε συνεχώς " +"βελτιώνεται." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "δεν είναι" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Κάντε κλικ στο παρακάτω πλαίσιο για να διαφημίσετε το σταθμό σας στην " +"ιστοσελίδα %s Sourcefabric.org %s . Προκειμένου να το κάνετε πρέπει η " +"επιλογή 'Αποστολή σχολίων υποστήριξης» να είναι ενεργοποιημένη. Αυτά τα " +"δεδομένα θα συλλέγονται μαζί με τo feedback σας." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "ξεκινά με" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Όροι και Προϋποθέσεις" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "τελειώνει με" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Ρυθμίσεις Stream Εισόδου" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "είναι μεγαλύτερος από" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "URL Σύνδεσης Κυρίαρχης Πηγής:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "είναι μικρότερος από" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Παράκαμψη" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "είναι στην κλίμακα" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "ΟΚ" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "ώρες" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "ΕΠΑΝΑΦΟΡΑ" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "λεπτά" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "Εμφάνιση Πηγής URL Σύνδεσης:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "στοιχεία" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Επιλογές Smart Block" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Ορισμός τύπου smart block:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "ή" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Στατικό" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "και" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Δυναμικό" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr " να " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Επιτρέψτε την επανάληψη κομματιών:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "τα αρχεία πληρούν τα κριτήρια" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Όριο για" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "το αρχείο πληρεί τα κριτήρια" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Δημιουργία λίστας αναπαραγωγής περιεχομένου και αποθήκευση κριτηρίων" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Επανάληψη Ημερών:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Δημιουργία" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Φιλτράρισμα Ιστορίας" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Περιεχόμενο λίστας Shuffle " +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Κλείσιμο" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Shuffle" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Προσθήκη αυτής της εκπομπής " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "Το όριο δεν μπορεί να είναι κενό ή μικρότερο από 0" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Ενημέρωση εκπομπής" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "Το όριο δεν μπορεί να είναι ξεπερνάει τις 24 ώρες" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "Τι" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "Η τιμή πρέπει να είναι ακέραιος αριθμός" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "Πότε" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "Το 500 είναι η μέγιστη οριακή τιμή σημείου, που μπορείτε να ορίσετε" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Είσοδος Live Stream " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "Θα πρέπει να επιλέξετε Κριτήρια και Τροποποιητή" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Εγγραφή και Αναμετάδοση" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "Το «Μήκος» θα πρέπει να είναι σε υπό μορφής '00:00:00'" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Ποιός" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "Η τιμή θα πρέπει να είναι υπο μορφής ώρας (π.χ. 0000-00-00 ή 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Στυλ" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "Η τιμή πρέπει να είναι αριθμός" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Έναρξη" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "Η τιμή πρέπει να είναι μικρότερη από 2147483648" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Ρυθμίσεις Stream" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "Η τιμή πρέπει να είναι μικρότερη από %s χαρακτήρες" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Γενικές ρυθμίσεις" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "Η αξία δεν μπορεί να είναι κενή" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "βΔ" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Αυτόματη Απενεργοποίηση" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Ρυθμίσεις Stream Εξόδου" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Αυτόματη Ενεργοποίηση" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Διαχείριση Φακέλων Πολυμέσων" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Διακόπτης Fade Μετάβασης (s)" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Εφαρμογή Προεπιλεγμένου Πλαισίου Zend " -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "εισάγετε την ώρα σε δευτερόλεπτα 00{.000000}" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Η σελίδα δεν βρέθηκε!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Κύριο Όνομα Χρήστη" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "Η σελίδα που ψάχνατε δεν υπάρχει!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Κύριος Κωδικός Πρόσβασης" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "Template Φόρμας Σύνδεσης" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "URL Σύνδεσης Κύριας Πηγής " +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "Κανένα Template Φόρμας Σύνδεσης" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "Εμφάνιση URL Σύνδεσης Πηγής " +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "Ως Προεπιλογή" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Κύριο Port Πηγής" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "Νέο Template Φόρμας Σύνδεσης" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Κύριο Σημείο Προσάρτησης Πηγής" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "Template Περίληψης Αρχείου" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Εμφάνιση Port Πηγής" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "Κανένα Template Περίληψης Αρχείου" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Εμφάνιση Σημείου Προσάρτησης Πηγής" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "Νέο Template Περίληψης Αρχείου" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "Δεν μπορείτε να χρησιμοποιήσετε το ίδιο port ως Master DJ Show port." +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "Δημιουργία Αρχείου Περίληψης Template " -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Μη διαθέσιμο Port %s " +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "Δημιουργία Template Φόρμας Σύνδεσης" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Τηλέφωνο:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Ονομασία" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Ιστοσελίδα Σταθμού:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "Προσθήκη περισσότερων στοιχείων" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Χώρα" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "Προσθήκη Νέου Πεδίου" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "Πόλη" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "Ορισμός Προεπιλεγμένου Template " -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Περιγραφή Σταθμού:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "Νέος κωδικός πρόσβασης" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Λογότυπο Σταθμού:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "" +"Παρακαλώ εισάγετε και επαληθεύστε τον νέο κωδικό πρόσβασής σας στα παρακάτω " +"πεδία. " -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Αποστολή Σχολίων Υποστήριξης" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Σύνδεση" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." msgstr "" +"Καλώς ήρθατε στο online demo του Airtime! Μπορείτε να συνδεθείτε " +"χρησιμοποιώντας το όνομα χρήστη «admin» και τον κωδικό πρόσβασης «admin»." -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." msgstr "" +"Παρακαλώ εισάγετε τη διεύθυνση e-mail σας. Θα λάβετε ένα σύνδεσμο για να " +"δημιουργήσετε έναν νέο κωδικό πρόσβασης μέσω e-mail." -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "Πρέπει να συμφωνείτε με την πολιτική προστασίας προσωπικών δεδομένων." +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "Το e-mail εστάλη" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Απαιτείται αξία και δεν μπορεί να είναι κενή" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "Το e-mail εστάλη" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "Ώρα Έναρξης" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Επιστροφή στην σελίδα εισόδου" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "Ώρα Τέλους" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "Σελίδα Σύνδεσης" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "Καμία Εκπομπή" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "Περίληψη Αρχείων" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Ηχογράφηση από Line In;" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "Προβολή Περίληψης" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Αναμετάδοση;" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "προηγούμενο" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "αναπαραγωγή" -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Χρήση Προσαρμοσμένης Ταυτοποίησης:" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "παύση" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Προσαρμοσμένο Όνομα Χρήστη" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "επόμενο" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Προσαρμοσμένος Κωδικός Πρόσβασης" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "στάση" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "Το πεδίο 'Όνομα Χρήστη' δεν μπορεί να είναι κενό." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "μέγιστη ένταση" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "Το πεδίο 'Κωδικός Πρόσβασης' δεν μπορεί να είναι κενό." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Απαιτείται Ενημέρωση " -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "E-mail" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 +#, php-format +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." +msgstr "" +"Για να παίξετε τα πολυμέσα θα πρέπει είτε να αναβαθμίστε το πρόγραμμα " +"περιήγησηής σας σε μια πρόσφατη έκδοση ή να ενημέρώσετε το %sFlash plugin %s " +"σας." -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Επαναφορά κωδικού πρόσβασης" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Εξυπηρέτηση" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Έξοδος Hardware Ήχου" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Χρόνος λειτουργίας" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Τύπος Εξόδου" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Μεταδεδομένα Icecast Vorbis " +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Μνήμη" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Stream Label:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Έκδοση Airtime" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Καλλιτέχνης - Τίτλος" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Χώρος δίσκου" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Εκπομπή - Καλλιτέχνης - Τίτλος" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Διαχείριση Χρηστών" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Όνομα Σταθμού - Όνομα Εκπομπής" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "Νέος Χρήστης" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Μεταδεδομένα Off Air" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "ταυτότητα" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Ενεργοποίηση Επανάληψη Κέρδους" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Όνομα Χρήστη" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Τροποποιητής Επανάληψης Κέρδους" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "Όνομα" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%value%' δεν αποτελεί έγκυρη διεύθυνση ηλεκτρονικού ταχυδρομείου στη βασική μορφή local-part@hostname" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Επώνυμο" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" -msgstr "'%value%' δεν ταιριάζει με τη μορφή ημερομηνίας '%format%'" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "Τύπος Χρήστη" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" -msgstr "'%value%' είναι λιγότερο από %min% χαρακτήρες " +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Προηγούμενο" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" -msgstr "'%value%' είναι περισσότερο από %max% χαρακτήρες " +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Επόμενο" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" -msgstr "'%value%' δεν είναι μεταξύ '%min%' και '%max%', συνολικά" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Πηγή Streams" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" -msgstr "Οι κωδικοί πρόσβασης δεν συμπίπτουν" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Κύρια Πηγή " -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' δεν ταιριάζει με τη μορφή της ώρας 'ΩΩ:λλ'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Εμφάνιση Πηγής " -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Ημερομηνία/Ώρα Έναρξης:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Πρόγραμμα" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Ημερομηνία/Ώρα Λήξης:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "ON AIR" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Ακούστε!" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Χρόνος σταθμού" + +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Το δοκιμαστικό λήγει σε" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Διάρκεια:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "ημέρες" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Ζώνη Ώρας" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Αγοράστε το δικό σας αντίγραφο του Airtime" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Επαναλήψεις;" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "Ο λογαριασμός μου" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Δεν είναι δυνατή η δημιουργία εκπομπής στο παρελθόν" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Όνομα Χρήστη:" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Αδύνατη η τροποποίηση ημερομηνίας/ώρας έναρξης της εκπομπής που έχει ήδη αρχίσει" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Κωδικός πρόσβασης:" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "Η λήξη ημερομηνίας/χρόνου δεν μπορεί να είναι στο παρελθόν" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "Πληκτρολογήστε τους χαρακτήρες που βλέπετε στην παρακάτω εικόνα." -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Δεν μπορεί να έχει διάρκεια < 0m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Εισαγωγή άκυρου χαρακτήρα" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Δεν μπορεί να έχει διάρκεια 00h 00m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "Η μέρα πρέπει να προσδιοριστεί" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Δεν μπορεί να έχει διάρκεια μεγαλύτερη από 24 ώρες" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "Η ώρα πρέπει να προσδιοριστεί" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Δεν είναι δυνατός ο προγραμματισμός αλληλοεπικαλυπτόμενων εκπομπών" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "Πρέπει να περιμένετε τουλάχιστον 1 ώρα για την αναμετάδοση" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Όνομα:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Ταυτοποίηση Χρήστη Airtime:" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Εκπομπή χωρίς Τίτλο" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Χρήση Προσαρμοσμένης Ταυτοποίησης:" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "Διεύθυνση URL:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Προσαρμοσμένο Όνομα Χρήστη" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Περιγραφή:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Προσαρμοσμένος Κωδικός Πρόσβασης" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" -msgstr "Αυτόματο Ανέβασμα Ηχογραφημένων Εκπομπών" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "Το πεδίο 'Όνομα Χρήστη' δεν μπορεί να είναι κενό." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" -msgstr "Ενεργοποίηση Ανεβάσματος SoundCloud" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "Το πεδίο 'Κωδικός Πρόσβασης' δεν μπορεί να είναι κενό." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" -msgstr "Αυτόματη Σήμανση Αρχείων \"για λήψη \" στο SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Ενεργοποιημένο" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" -msgstr "SoundCloud Email" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Τύπος Stream:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" -msgstr "Κωδικός πρόσβασης SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Τύπος Υπηρεσίας:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" -msgstr "SoundCloud Ετικέτες: (διαχωρίσετε ετικέτες με κενά)" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Κανάλια" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" -msgstr "Προεπιλεγμένο Είδος:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" -msgstr "Προεπιλεγμένος Τύπος Κομματιού:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Stereo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" -msgstr "Πρώτυπο" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Διακομιστής" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "Remix" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Θύρα" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "Live" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Επιτρέπονται μόνο αριθμοί." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "Εγγραφή" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Κωδικός πρόσβασης" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "Ομιλούμενο" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "Διεύθυνση URL:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "Podcast" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Σημείο Προσάρτησης" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "Demo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Διαχειριστής Χρήστης" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "Εργασία σε εξέλιξη" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Κωδικός πρόσβασης Διαχειριστή" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "Στέλεχος" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Λήψη πληροφοριών από το διακομιστή..." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "Loop" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Ο διακομιστής δεν μπορεί να είναι κενός." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "Εφέ Ήχου" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Το Port δεν μπορεί να είναι κενό." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "Δείγμα Shot" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Η προσάρτηση δεν μπορεί να είναι κενή με διακομιστή Icecast." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "Άλλο" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Εισαγωγή Φακέλου:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Προεπιλεγμένη Άδεια :" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Παροβεβλημμένοι Φάκελοι:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "Εργασία δημόσιας χρήσης" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Μη έγκυρο Ευρετήριο" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "Διατήρηση όλων των δικαιωμάτων" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Απαιτείται αξία και δεν μπορεί να είναι κενή" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Απόδοση Creative Commons" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'%value%' δεν αποτελεί έγκυρη διεύθυνση ηλεκτρονικού ταχυδρομείου στη βασική " +"μορφή local-part@hostname" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Απόδοση Creative Commons Μη Εμπορική Χρήση" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" +msgstr "'%value%' δεν ταιριάζει με τη μορφή ημερομηνίας '%format%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Απόδοση Creative Commons Όχι Παράγωγα Έργα" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" +msgstr "'%value%' είναι λιγότερο από %min% χαρακτήρες " -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Απόδοση Creative Commons Share Alike" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" +msgstr "'%value%' είναι περισσότερο από %max% χαρακτήρες " -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Απόδοση Creative Commons Μη Εμπορική Χρήση Όχι Παράγωγα Έργα" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" +msgstr "'%value%' δεν είναι μεταξύ '%min%' και '%max%', συνολικά" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Απόδοση Creative Commons Μη Εμπορική Χρήση Share Alike" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" +msgstr "Οι κωδικοί πρόσβασης δεν συμπίπτουν" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "Interface Ζώνης ώρας:" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Ηχογράφηση από Line In;" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "Ενεργοποίηση Emails Συστήματος (Επαναφορά κωδικού πρόσβασης)" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Αναμετάδοση;" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Επαναφορά Κωδικού πρόσβασης 'Από' E-mail" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Χρώμα Φόντου:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Διαμόρφωση Διακομιστή Αλληλογραφίας" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Χρώμα Κειμένου:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Απαιτείται Έλεγχος Ταυτότητας" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "E-mail" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Διακομιστής Αλληλογραφίας" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Επαναφορά κωδικού πρόσβασης" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "Διεύθυνση Ηλεκτρονικού Ταχυδρομείου" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Ακύρωση" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "Παρακαλούμε σιγουρευτείτε ότι ο χρήστης/κωδικός πρόσβασης διαχειριστή είναι σωστός στη σελίδα Σύστημα>Streams." +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Επαλήθευση κωδικού πρόσβασης" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Webstream χωρίς Τίτλο" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Όνομα:" -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Το Webstream αποθηκεύτηκε." +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Επώνυμο:" -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Άκυρες μορφές αξίας." +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "Email:" -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Παρακαλώ εισάγετε το όνομα χρήστη και τον κωδικό πρόσβασής σας" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Κινητό Τηλέφωνο:" -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Άκυρο όνομα χρήστη ή κωδικός πρόσβασης. Παρακαλώ δοκιμάστε ξανά." +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "Το e-mail δεν μπόρεσε να σταλεί. Ελέγξτε τις ρυθμίσεις email του διακομιστή σας και βεβαιωθείτε ότι έχει ρυθμιστεί σωστά." +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "Το email δεν βρέθηκε." +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "Interface Ζώνης ώρας:" -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Αναμετάδοση της εκπομπής %s από %s σε %s" +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Το όνομα εισόδου δεν είναι μοναδικό." -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Λήψη" +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Έξοδος Hardware Ήχου" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "Ο χρήστης προστέθηκε επιτυχώς!" +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Τύπος Εξόδου" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "Ο χρήστης ενημερώθηκε με επιτυχία!" +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Μεταδεδομένα Icecast Vorbis " -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Οι ρυθμίσεις ενημερώθηκαν επιτυχώς!" +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Stream Label:" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Η σελίδα δεν βρέθηκε" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Καλλιτέχνης - Τίτλος" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Σφάλμα εφαρμογής" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Εκπομπή - Καλλιτέχνης - Τίτλος" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Εγγραφή" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Όνομα Σταθμού - Όνομα Εκπομπής" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Κύριο Stream" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Μεταδεδομένα Off Air" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Live Stream" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Ενεργοποίηση Επανάληψη Κέρδους" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Τίποτα δεν έχει προγραμματιστεί" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Τροποποιητής Επανάληψης Κέρδους" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Τρέχουσα Εκπομπή:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" +msgstr "Αυτόματο Ανέβασμα Ηχογραφημένων Εκπομπών" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Τρέχουσα" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" +msgstr "Ενεργοποίηση Ανεβάσματος SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "Χρησιμοποιείτε την τελευταία έκδοση" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +msgstr "Αυτόματη Σήμανση Αρχείων \"για λήψη \" στο SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "Νέα έκδοση διαθέσιμη: " +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" +msgstr "SoundCloud Email" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "Αυτή η έκδοση θα παρωχηθεί σύντομα." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" +msgstr "Κωδικός πρόσβασης SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "Αυτή η έκδοση δεν υποστηρίζεται πλέον." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" +msgstr "SoundCloud Ετικέτες: (διαχωρίσετε ετικέτες με κενά)" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Παρακαλούμε να αναβαθμίσετε σε " +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" +msgstr "Προεπιλεγμένο Είδος:" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Προσθήκη στην τρέχουσα λίστα αναπαραγωγής" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" +msgstr "Προεπιλεγμένος Τύπος Κομματιού:" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Προσθήκη στο τρέχον smart block" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" +msgstr "Πρώτυπο" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Προσθήκη 1 Στοιχείου" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "Remix" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Προσθήκη %s στοιχείου/ων" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "Live" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "Μπορείτε να προσθέσετε μόνο κομμάτια στα smart blocks." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "Εγγραφή" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "Μπορείτε να προσθέσετε μόνο κομμάτια, smart blocks και webstreams σε λίστες αναπαραγωγής." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "Ομιλούμενο" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "Παρακαλούμε επιλέξτε μια θέση δρομέα στο χρονοδιάγραμμα." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "Podcast" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Επεξεργασία Μεταδεδομένων" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "Demo" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Προσθήκη στην επιλεγμένη εκπομπή" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "Εργασία σε εξέλιξη" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Επιλογή" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "Στέλεχος" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Επιλέξτε αυτή τη σελίδα" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "Loop" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Καταργήστε αυτήν την σελίδα" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "Εφέ Ήχου" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Κατάργηση όλων" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "Δείγμα Shot" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Είστε σίγουροι ότι θέλετε να διαγράψετε το επιλεγμένο στοιχείο/α;" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "Άλλο" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "Προγραμματισμένο" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Προεπιλεγμένη Άδεια :" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "Λίστα αναπαραγωγής/ Block" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "Εργασία δημόσιας χρήσης" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Ρυθμός Bit:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "Διατήρηση όλων των δικαιωμάτων" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Ρυθμός δειγματοληψίας" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Απόδοση Creative Commons" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Φόρτωση..." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Απόδοση Creative Commons Μη Εμπορική Χρήση" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "Όλα" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Απόδοση Creative Commons Όχι Παράγωγα Έργα" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Αρχεία" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Απόδοση Creative Commons Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Λίστες αναπαραγωγής" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Απόδοση Creative Commons Μη Εμπορική Χρήση Όχι Παράγωγα Έργα" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Smart Blocks" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Απόδοση Creative Commons Μη Εμπορική Χρήση Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Web Streams" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Όνομα Σταθμού" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Άγνωστος τύπος: " +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "Προεπιλεγμένη Διάρκεια Crossfade (s):" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Είστε σίγουροι ότι θέλετε να διαγράψετε το επιλεγμένο στοιχείο;" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "εισάγετε ένα χρόνο σε δευτερόλεπτα 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Ανέβασμα σε εξέλιξη..." +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "Προεπιλεγμένο Fade In (s):" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Ανάκτηση δεδομένων από τον διακομιστή..." +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "Προεπιλεγμένο Fade Out (s):" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "Η ταυτότητα SoundCloud για αυτό το αρχείο είναι: " +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Επιτρέψτε την Πρόσβαση \"Πρόγραμμα\" Πληροφορίες;%s σε Ιστοσελίδες με " +"Απομακρυσμένη Πρόσβαση (Ενεργοποιήστε το για να λειτουργήσουν τα front-end " +"widgets.)" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "Υπήρξε ένα σφάλμα κατά το ανέβασμα στο SoundCloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Απενεργοποιημένο" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Κωδικός σφάλματος: " +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Ενεργοποιημένο" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Μήνυμα σφάλματος: " +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Προεπιλογή Γλώσσας Interface" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "Το input πρέπει να είναι θετικός αριθμός" +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "Ζώνη Ώρας Σταθμού" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "Το input πρέπει να είναι αριθμός" +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "Η Εβδομάδα αρχίζει " -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "Το input πρέπει να είναι υπό μορφής: εεεε-μμ-ηη" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Κυριακή" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "Το input πρέπει να είναι υπό μορφής: ωω: λλ: ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Δευτέρα" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "Προς το παρόν ανεβάζετε αρχεία. %sΠηγαίνοντας σε μια άλλη οθόνη θα ακυρώσετε τη διαδικασία του ανεβάσματος.%sΕίστε σίγουροι ότι θέλετε να εγκαταλείψετε τη σελίδα;" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Τρίτη" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "Άνοιγμα Δημιουργού Πολυμέσων" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Τετάρτη" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "παρακαλούμε εισάγετε τιμή ώρας '00:00:00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Πέμπτη" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "παρακαλούμε εισάγετε τιμή ώρας σε δευτερόλεπτα '00 (0,0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Παρασκευή" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Ο περιηγητής ιστού σας δεν υποστηρίζει την αναπαραγωγή αρχείων αυτού του τύπου: " +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Σάββατο" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Αδύνατη η προεπισκόπιση του δυναμικού block" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Ημερομηνία Έναρξης:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Όριο για: " +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Ημερομηνία Λήξης:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Οι λίστες αναπαραγωγής αποθηκεύτηκαν" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Τηλέφωνο:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "Ανασχηματισμός λίστας αναπαραγωγής" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Ιστοσελίδα Σταθμού:" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "To Airtime είναι αβέβαιο για την κατάσταση αυτού του αρχείου. Αυτό μπορεί να συμβεί όταν το αρχείο είναι σε μια απομακρυσμένη μονάδα δίσκου που είναι απροσπέλαστη ή το αρχείο είναι σε ευρετήριο που δεν «προβάλλεται» πια." +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Χώρα" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "Καταμέτρηση Ακροατών για %s : %s" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "Πόλη" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Υπενθύμιση σε 1 εβδομάδα" +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Περιγραφή Σταθμού:" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Καμία υπενθύμιση" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Λογότυπο Σταθμού:" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Ναι, βοηθώ το Airtime" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Αποστολή Σχολίων Υποστήριξης" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "Η εικόνα πρέπει να είναι jpg, jpeg, png ή gif " +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Προώθηση του σταθμού μου στην ιστοσελίδα Sourcefabric.org" -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "Ένα στατικό smart block θα αποθηκεύσει τα κριτήρια και θα δημιουργήσει αμέσως το περιεχόμενο του block. Αυτό σας επιτρέπει να το επεξεργαστείτε και να το προβάλεται στη Βιβλιοθήκη πριν το προσθέσετε σε μια εκπομπή." +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "" +"Με την επιλογή του πλαισίου, συμφωνώ με την %sπολιτική απορρήτου%s της " +"Sourcefabric." -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "Ένα στατικό smart block θα αποθηκεύσει μόνο τα κριτήρια. Το περιεχόμενο του block θα δημιουργηθεί κατά την προσθήκη του σε μια εκπομπή. Δεν θα μπορείτε να δείτε και να επεξεργαστείτε το περιεχόμενο στη Βιβλιοθήκη." +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "Πρέπει να συμφωνείτε με την πολιτική προστασίας προσωπικών δεδομένων." -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "Η επιθυμητή διάρκεια του block δεν θα επιτευχθεί αν το Airtime δεν μπορέσει να βρεί αρκετά μοναδικά κομμάτια που να ταιριάζουν στα κριτήριά σας. Ενεργοποιήστε αυτή την επιλογή αν θέλετε να επιτρέψετε την πολλαπλή προσθήκη κομματιών στο smart block." +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' δεν ταιριάζει με τη μορφή της ώρας 'ΩΩ:λλ'" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Smart block shuffled" +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Ημερομηνία/Ώρα Έναρξης:" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Το Smart block δημιουργήθηκε και τα κριτήρια αποθηκεύτηκαν" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Ημερομηνία/Ώρα Λήξης:" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Το Smart block αποθηκεύτηκε" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Διάρκεια:" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Επεξεργασία..." +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Ζώνη Ώρας" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Επιλογή Φακέλου Αποθήκευσης" +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Επαναλήψεις;" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Επιλογή Φακέλου για Προβολή" +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Δεν είναι δυνατή η δημιουργία εκπομπής στο παρελθόν" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Είστε βέβαιοι ότι θέλετε να αλλάξετε το φάκελο αποθήκευσης;\nΑυτό θα αφαιρέσει τα αρχεία από τη βιβλιοθήκη του Airtime!" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "" +"Αδύνατη η τροποποίηση ημερομηνίας/ώρας έναρξης της εκπομπής που έχει ήδη " +"αρχίσει" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Διαχείριση Φακέλων Πολυμέσων" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "Η λήξη ημερομηνίας/χρόνου δεν μπορεί να είναι στο παρελθόν" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Είστε βέβαιοι ότι θέλετε να αφαιρέσετε το φάκελο που προβάλλεται;" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Δεν μπορεί να έχει διάρκεια < 0m" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "Αυτή η διαδρομή δεν είναι προς το παρόν προσβάσιμη." +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Δεν μπορεί να έχει διάρκεια 00h 00m" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "Κάποιοι τύποι stream απαιτούν επιπλέον ρυθμίσεις. Λεπτομέρειες για την ενεργοποίηση %sAAC+ Support%s ή %sOpus Support%s παρέχονται." +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Δεν μπορεί να έχει διάρκεια μεγαλύτερη από 24 ώρες" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Συνδέθηκε με τον διακομιστή streaming " +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Εκπομπή χωρίς Τίτλο" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "Το stream είναι απενεργοποιημένο" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Αναζήτηση Χρηστών:" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Αδύνατη η σύνδεση με τον διακομιστή streaming " +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "DJs:" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Αν το Airtime είναι πίσω από ένα τείχος προστασίας ή router, ίσως χρειαστεί να ρυθμίσετε την προώθηση port και οι πληροφορίες πεδίου θα είναι λανθασμένες. Σε αυτή την περίπτωση θα πρέπει να ενημερώσετε αυτό το πεδίο, ώστε να δείχνει το σωστό host/port/mount που χρειάζονται οι DJ σας για να συνδεθούν. Το επιτρεπόμενο εύρος είναι μεταξύ 1024 και 49151." +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Επιβεβαίωση νέου κωδικού πρόσβασης" -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "Για περισσότερες λεπτομέρειες, παρακαλούμε διαβάστε το %sAirtime Εγχειρίδιο%s" +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "Η επιβεβαίωση κωδικού δεν ταιριάζει με τον κωδικό πρόσβασής σας." -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Τσεκάρετε αυτή την επιλογή για να ενεργοποιήσετε τα μεταδεδομένα για OGG streams (τα stream μεταδεδομένα είναι ο τίτλος του κομματιού και του καλλιτέχνη, που εμφανίζονται σε ένα audio player). VLC και mplayer προκαλούν βλάβες κατά την αναπαραγωγή ενός OGG / Vorbis stream, το οποίο έχει ενεργοποιημένες τις πληροφορίες μεταδεδομένων: θα αποσυνδέονται από το stream μετά από κάθε κομμάτι. Εάν χρησιμοποιείτε ένα OGG stream και οι ακροατές σας δεν απαιτούν υποστήριξη για αυτές τις συσκευές αναπαραγωγής ήχου, τότε μπορείτε να ενεργοποιήσετε αυτή την επιλογή." +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Αποκτήστε νέο κωδικό πρόσβασης" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Επιλέξτε αυτό το πλαίσιο για να σβήσει αυτόματα η Κύρια/Εμφάνιση πηγής κατά την αποσύνδεση πηγής." +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "Τύπος Χρήστη:" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Επιλέξτε αυτό το πλαίσιο για να ενεργοποιηθεί αυτόματα η η Κύρια/Εμφάνιση πηγής κατά την σύνδεση πηγής." +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Επισκέπτης" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Εάν ο διακομιστής Icecast περιμένει ένα όνομα χρήστη από την «πηγή», αυτό το πεδίο μπορεί να μείνει κενό." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "DJ" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "Εάν ο live streaming πελάτη σας δεν ζητά ένα όνομα χρήστη, το πεδίο αυτό θα πρέπει να είναι η «πηγή»." +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Διευθυντής Προγράμματος" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "Εάν αλλάξετε το όνομα χρήστη ή τον κωδικό πρόσβασης για ένα ενεργοποιημένο stream, η μηχανή playout θα πραγματοποιήσει επανεκκίνηση και οι ακροατές σας θα ακούσουν σιωπή για 5-10 δευτερόλεπτα. Με την αλλαγή των παρακάτω πεδίων ΔΕΝ θα προκληθεί επανεκκίνηση: Stream Label (Γενικές Ρυθμίσεις), και Εναλλαγή Fade(s) Μετάβασης, Κύριο Όνομα χρήστη και Κύριος Κωδικός πρόσβασης (Ρυθμίσεις Stream Εισόδου). Αν το Airtime ηχογραφεί και αν η αλλαγή προκαλέσει επανεκκίνηση της μηχανής playout, η ηχογράφηση θα διακοπεί." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Διαχειριστής" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "Αυτό είναι το Icecast/SHOUTcast όνομα χρήστη και ο κωδικός πρόσβασης διαχειριστή για τις στατιστικές ακροατών." +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "Αριθμός ISRC:" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "Προειδοποίηση: Δεν μπορείτε να κάνετε αλλαγές κατά την διάρκεια της εκπομπής " +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Εκπομπή:" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "Δεν βρέθηκαν αποτελέσματα" +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "Όλες οι Εκπομπές μου:" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "Αυτό ακολουθεί το ίδιο πρότυπο ασφαλείας για τις εκπομπές: μόνο οι χρήστες της συγκεκριμένης εκπομπής μπορούν να συνδεθούν." +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "Σύνδεσμος" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Καθορίστε την προσαρμόσιμη πιστοποίηση, η οποία θα λειτουργήσει μόνο για αυτή την εκπομπή." +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Τύπος Επανάληψης:" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "Η εκπομπή δεν υπάρχει πια!" +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "εβδομαδιαία" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "Προειδοποίηση: οι εκπομπές δεν μπορούν να συνδεθούν εκ νέου" +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "κάθε 2 εβδομάδες" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "Κατά τη διασύνδεση επαναλαμβανόμενων εκπομπών, όλα τα προγραμματισμένα στοιχεία πολυμέσων κάθε εκπομπής θα προγραμματιστούν σε όλες τις επαναλαμβανόμενες εκπομπές" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "κάθε 3 εβδομάδες" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "Η ζώνη ώρας είναι ρυθμισμένη ανάλογα με τη τοποθεσία του σταθμού. Οι εκμπομπές θα μεταδίδονται στην τοπική ώρα, ρυθμισμένη από το Interface Ζώνης ώρας στις ρυθμίσεις χρήστη " +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "κάθε 4 εβδομάδες" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Εκπομπή" +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "μηνιαία" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "Η εκπομπή είναι άδεια" +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Επιλέξτε Ημέρες:" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1λ" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "Κυρ" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5λ" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Δευ" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10λ" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Τρι" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15λ" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "Τετ" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30λ" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Πεμ" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60λ" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Παρ" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Ανάκτηση δεδομένων από το διακομιστή..." +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "Σαβ" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "Αυτή η εκπομπή δεν έχει προγραμματισμένο περιεχόμενο." +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "Επανάληψη από:" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "Η εκπομπή δεν εντελώς γεμάτη με περιεχόμενο " +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "ημέρα του μήνα" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "Ιανουάριος" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "ημέρα της εβδομάδας" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "Φεβρουάριος" +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "Χωρίς Τέλος;" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "Μάρτιος" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "Η ημερομηνία λήξης πρέπει να είναι μετά την ημερομηνία έναρξης" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "Απρίλης" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "Επιλέξτε ημέρα επανάληψης" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "Μάιος" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "Ενεργοποίηση Emails Συστήματος (Επαναφορά κωδικού πρόσβασης)" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "Ιούνιος" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Επαναφορά Κωδικού πρόσβασης 'Από' E-mail" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "Ιούλιος" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Διαμόρφωση Διακομιστή Αλληλογραφίας" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "Αύγουστος" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Απαιτείται Έλεγχος Ταυτότητας" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "Σεπτέμβριος" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Διακομιστής Αλληλογραφίας" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "Οκτώβριος" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "Διεύθυνση Ηλεκτρονικού Ταχυδρομείου" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "Νοέμβριος" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Επιλέξτε κριτήρια" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "Δεκέμβριος" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Bit Rate (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Ιαν" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Φεβ" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Μαρ" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Cue Out" + +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Κωδικοποιήθηκε από" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Απρ" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Τελευταία τροποποίηση" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Ιουν" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Τελευταία αναπαραγωγή" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Ιουλ" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Μίμος" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Αυγ" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Ιδιοκτήτης" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Σεπ" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Κέρδος Επανάληψης" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Οκτ" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Ρυθμός Δειγματοληψίας (kHz)" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Νοε" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Αριθμός Κομματιού" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Δεκ" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Φορτώθηκε" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "σήμερα" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Ιστοσελίδα" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "ημέρα" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Επιλέξτε τροποποιητή" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "εβδομάδα" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "περιέχει" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "μήνας" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "δεν περιέχει" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Εκπομπές μεγαλύτερες από την προγραμματισμένη διάρκειά τους θα διακόπτονται από την επόμενη εκπομπή." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "είναι" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Ακύρωση Τρέχουσας Εκπομπής;" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "δεν είναι" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Πάυση ηχογράφησης τρέχουσας εκπομπής;" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "ξεκινά με" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "Οκ" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "τελειώνει με" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Περιεχόμενα Εκπομπής" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "είναι μεγαλύτερος από" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Αφαίρεση όλου του περιεχομένου;" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "είναι μικρότερος από" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Διαγραφή επιλεγμένου στοιχείου/ων;" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "είναι στην κλίμακα" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Έναρξη" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "ώρες" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "Τέλος" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "λεπτά" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Διάρκεια" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "στοιχεία" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Η εκπομπή είναι άδεια" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Ορισμός τύπου smart block:" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Ηχογράφηση Από Line In" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Στατικό" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Προεπισκόπηση κομματιού" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Δυναμικό" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Δεν είναι δυνατός ο προγραμματισμός εκτός εκπομπής." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Επιτρέψτε την επανάληψη κομματιών:" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Μετακίνηση 1 Στοιχείου" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Όριο για" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Μετακίνηση Στοιχείων %s" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Δημιουργία λίστας αναπαραγωγής περιεχομένου και αποθήκευση κριτηρίων" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "Επεξεργαστής Fade" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Δημιουργία" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "Επεξεργαστής Cue" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Περιεχόμενο λίστας Shuffle " -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "Τα χαρακτηριστικά της κυμματοειδούς μορφής είναι διαθέσιμα σε πρόγραμμα πλοήγησης που υποστηρίζει Web Audio API" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "Το όριο δεν μπορεί να είναι κενό ή μικρότερο από 0" + +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "Το όριο δεν μπορεί να είναι ξεπερνάει τις 24 ώρες" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Επιλογή όλων" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "Η τιμή πρέπει να είναι ακέραιος αριθμός" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Καμία Επιλογή" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "Το 500 είναι η μέγιστη οριακή τιμή σημείου, που μπορείτε να ορίσετε" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Αφαίρεση υπεράριθμων κρατήσεων κομματιών" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "Θα πρέπει να επιλέξετε Κριτήρια και Τροποποιητή" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Αφαίρεση επιλεγμένων προγραμματισμένων στοιχείων " +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "Το «Μήκος» θα πρέπει να είναι σε υπό μορφής '00:00:00'" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Μετάβαση στο τρέχον κομμάτι " +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"Η τιμή θα πρέπει να είναι υπο μορφής ώρας (π.χ. 0000-00-00 ή 0000-00-00 " +"00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Ακύρωση τρέχουσας εκπομπής" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "Η τιμή πρέπει να είναι αριθμός" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Άνοιγμα βιβλιοθήκης για προσθήκη ή αφαίρεση περιεχομένου" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "Η τιμή πρέπει να είναι μικρότερη από 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Προσθήκη / Αφαίρεση Περιεχομένου" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "Η τιμή πρέπει να είναι μικρότερη από %s χαρακτήρες" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "σε χρήση" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "Η αξία δεν μπορεί να είναι κενή" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Δίσκος" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Αυτόματη Απενεργοποίηση" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Κοιτάξτε σε" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Αυτόματη Ενεργοποίηση" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Άνοιγμα" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Διακόπτης Fade Μετάβασης (s)" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "Οι επισκέπτες μπορούν να κάνουν τα παρακάτω" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "εισάγετε την ώρα σε δευτερόλεπτα 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "Προβολή Προγράμματος" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Κύριο Όνομα Χρήστη" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "Προβολή περιεχομένου εκπομπής" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Κύριος Κωδικός Πρόσβασης" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "Οι DJ μπορούν να κάνουν τα παρακάτω" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "URL Σύνδεσης Κύριας Πηγής " -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Διαχείριση ανατεθημένου περιεχομένου εκπομπής" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "Εμφάνιση URL Σύνδεσης Πηγής " -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Εισαγωγή αρχείων πολυμέσων" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Κύριο Port Πηγής" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Δημιουργία λιστών αναπαραγωγής, smart blocks, και webstreams " +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Κύριο Σημείο Προσάρτησης Πηγής" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Διαχείριση δικού τους περιεχομένου βιβλιοθήκης" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Εμφάνιση Port Πηγής" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "Οι Μάνατζερ Προγράμματος μπορούν να κάνουν τα παρακάτω:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Εμφάνιση Σημείου Προσάρτησης Πηγής" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "Προβολή και διαχείριση περιεχομένου εκπομπής" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "Δεν μπορείτε να χρησιμοποιήσετε το ίδιο port ως Master DJ Show port." -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Πρόγραμμα εκπομπών" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Μη διαθέσιμο Port %s " -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "Διαχείριση όλου του περιεχομένου βιβλιοθήκης" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" +"Airtime Copyright ©Sourcefabric o.p.s. Διατήρηση όλων των δικαιωμάτων." +"%sΣυντήρηση και διανομή από GNU GPL v.3 by %sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "ΟΙ Διαχειριστές μπορούν να κάνουν τα παρακάτω:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Έξοδος" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Διαχείριση προτιμήσεων" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "Αναπαραγωγή" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "Διαχείριση Χρηστών" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "Παύση" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "Διαχείριση προβεβλημένων φακέλων " +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "Ρύθμιση Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "Προβολή κατάστασης συστήματος" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "Ρύθμιση Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Πρόσβαση στην ιστορία playout" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "Cursor" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "Προβολή στατιστικών των ακροατών" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Fade In" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Εμφάνιση / απόκρυψη στηλών" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Fade Out" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "Από {από} σε {σε}" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Αναπαραγωγή ήχου" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "Kbps" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Παρακαλώ εισάγετε το όνομα χρήστη και τον κωδικό πρόσβασής σας" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "εεεε-μμ-ηη" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "Άκυρο όνομα χρήστη ή κωδικός πρόσβασης. Παρακαλώ δοκιμάστε ξανά." -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "ωω:λλ:δδ.t" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"Το e-mail δεν μπόρεσε να σταλεί. Ελέγξτε τις ρυθμίσεις email του διακομιστή " +"σας και βεβαιωθείτε ότι έχει ρυθμιστεί σωστά." -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "Το email δεν βρέθηκε." -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Κυ" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Εγγραφή" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Δε" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Κύριο Stream" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Τρ" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Live Stream" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "Τε" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Τίποτα δεν έχει προγραμματιστεί" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Πε" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Τρέχουσα Εκπομπή:" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Πα" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Τρέχουσα" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Σα" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "Χρησιμοποιείτε την τελευταία έκδοση" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Κλείσιμο" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "Νέα έκδοση διαθέσιμη: " -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Ώρα" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "Αυτή η έκδοση θα παρωχηθεί σύντομα." -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Λεπτό" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "Αυτή η έκδοση δεν υποστηρίζεται πλέον." -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Ολοκληρώθηκε" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Παρακαλούμε να αναβαθμίσετε σε " -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Επιλογή αρχείων" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Προσθήκη στην τρέχουσα λίστα αναπαραγωγής" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Προσθέστε αρχεία στην ουρά ανεβάσματος και κάντε κλίκ στο κουμπί έναρξης" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Προσθήκη στο τρέχον smart block" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Κατάσταση" +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Προσθήκη 1 Στοιχείου" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Προσθήκη Αρχείων" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "Προσθήκη %s στοιχείου/ων" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Στάση Ανεβάσματος" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "Μπορείτε να προσθέσετε μόνο κομμάτια στα smart blocks." -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Έναρξη ανεβάσματος" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "" +"Μπορείτε να προσθέσετε μόνο κομμάτια, smart blocks και webstreams σε λίστες " +"αναπαραγωγής." -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Προσθήκη αρχείων" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "Παρακαλούμε επιλέξτε μια θέση δρομέα στο χρονοδιάγραμμα." -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "Ανέβηκαν %d/%d αρχεία" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Επεξεργασία Μεταδεδομένων" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "N/A" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Προσθήκη στην επιλεγμένη εκπομπή" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Σύρετε αρχεία εδώ." +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Επιλογή" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "Σφάλμα επέκτασης αρχείου." +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Επιλέξτε αυτή τη σελίδα" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "Σφάλμα μεγέθους αρχείου." +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Καταργήστε αυτήν την σελίδα" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "Σφάλμα μέτρησης αρχείων." +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Κατάργηση όλων" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Σφάλμα αρχικοποίησης." +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Είστε σίγουροι ότι θέλετε να διαγράψετε το επιλεγμένο στοιχείο/α;" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "Σφάλμα HTTP." +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "Προγραμματισμένο" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Σφάλμα ασφάλειας." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "Λίστα αναπαραγωγής/ Block" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Γενικό σφάλμα." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Ρυθμός Bit:" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "Σφάλμα IO" +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Ρυθμός δειγματοληψίας" -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "Αρχείο: %s" +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "Φόρτωση..." -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d αρχεία σε αναμονή" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Αρχεία" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "Αρχείο: %f, μέγεθος: %s, μέγιστο μέγεθος αρχείου: %m" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Λίστες αναπαραγωγής" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "Το URL είτε είναι λάθος ή δεν υφίσταται" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Smart Blocks" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Σφάλμα: Πολύ μεγάλο αρχείο: " +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Web Streams" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Σφάλμα: Μη έγκυρη προέκταση αρχείου: " +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Άγνωστος τύπος: " -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "Ως Προεπιλογή" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Είστε σίγουροι ότι θέλετε να διαγράψετε το επιλεγμένο στοιχείο;" -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "Δημιουργία Εισόδου" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Ανέβασμα σε εξέλιξη..." -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "Επεξεργασία Ιστορικού" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Ανάκτηση δεδομένων από τον διακομιστή..." -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "Αντιγράφηκαν %s σειρές%s στο πρόχειρο" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "Η ταυτότητα SoundCloud για αυτό το αρχείο είναι: " -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%sΕκτύπωση προβολής%sΠαρακαλούμε να χρησιμοποιείσετε την λειτουργία εκτύπωσης του περιηγητή σας για να τυπώσετε τον πίνακα. Όταν τελειώσετε πατήστε escape" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "Υπήρξε ένα σφάλμα κατά το ανέβασμα στο SoundCloud." -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "Δεν έχετε άδεια για αποσύνδεση πηγής." +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Κωδικός σφάλματος: " -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "Δεν υπάρχει καμία πηγή που είναι συνδεδεμένη σε αυτή την είσοδο." +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Μήνυμα σφάλματος: " -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "Δεν έχετε άδεια για αλλαγή πηγής." +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "Το input πρέπει να είναι θετικός αριθμός" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "Βλέπετε μια παλαιότερη έκδοση του %s" +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "Το input πρέπει να είναι αριθμός" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "Δεν μπορείτε να προσθέσετε κομμάτια σε δυναμικά blocks." +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "Το input πρέπει να είναι υπό μορφής: εεεε-μμ-ηη" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 -#, php-format -msgid "%s not found" -msgstr "%s δεν βρέθηκε" +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "Το input πρέπει να είναι υπό μορφής: ωω: λλ: ss.t" -#: airtime_mvc/application/controllers/PlaylistController.php:144 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "Δεν έχετε άδεια διαγραφής επιλεγμένων %s(s)." +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"Προς το παρόν ανεβάζετε αρχεία. %sΠηγαίνοντας σε μια άλλη οθόνη θα ακυρώσετε " +"τη διαδικασία του ανεβάσματος.%sΕίστε σίγουροι ότι θέλετε να εγκαταλείψετε " +"τη σελίδα;" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Κάτι πήγε στραβά." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "Άνοιγμα Δημιουργού Πολυμέσων" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "Μπορείτε να προσθέσετε κομμάτια μόνο σε smart block." +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "παρακαλούμε εισάγετε τιμή ώρας '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Λίστα Αναπαραγωγλης χωρίς Τίτλο" +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "παρακαλούμε εισάγετε τιμή ώρας σε δευτερόλεπτα '00 (0,0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Smart Block χωρίς Τίτλο" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "" +"Ο περιηγητής ιστού σας δεν υποστηρίζει την αναπαραγωγή αρχείων αυτού του " +"τύπου: " -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Άγνωστη λίστα αναπαραγωγής" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Αδύνατη η προεπισκόπιση του δυναμικού block" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "Δεν έχετε δικαίωμα πρόσβασης σε αυτό το βοήθημα" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Όριο για: " -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "Δεν έχετε δικαίωμα πρόσβασης σε αυτό το βοήθημα. " +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Οι λίστες αναπαραγωγής αποθηκεύτηκαν" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "Ανασχηματισμός λίστας αναπαραγωγής" + +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." msgstr "" +"To Airtime είναι αβέβαιο για την κατάσταση αυτού του αρχείου. Αυτό μπορεί να " +"συμβεί όταν το αρχείο είναι σε μια απομακρυσμένη μονάδα δίσκου που είναι " +"απροσπέλαστη ή το αρχείο είναι σε ευρετήριο που δεν «προβάλλεται» πια." -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Λανθασμένο αίτημα. Η παράμετρος «κατάσταση» δεν πέρασε." +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "Καταμέτρηση Ακροατών για %s : %s" -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Λανθασμένο αίτημα. Η παράμετρος «κατάσταση» δεν είναι έγκυρη" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "Υπενθύμιση σε 1 εβδομάδα" -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Προεπισκόπηση" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Καμία υπενθύμιση" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Προσθήκη στη λίστα αναπαραγωγής" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Ναι, βοηθώ το Airtime" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Προσθήκη στο Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "Η εικόνα πρέπει να είναι jpg, jpeg, png ή gif " -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Διαγραφή" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." +msgstr "" +"Ένα στατικό smart block θα αποθηκεύσει τα κριτήρια και θα δημιουργήσει " +"αμέσως το περιεχόμενο του block. Αυτό σας επιτρέπει να το επεξεργαστείτε και " +"να το προβάλεται στη Βιβλιοθήκη πριν το προσθέσετε σε μια εκπομπή." -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Αντιγραφή Λίστας Αναπαραγωγής" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"Ένα στατικό smart block θα αποθηκεύσει μόνο τα κριτήρια. Το περιεχόμενο του " +"block θα δημιουργηθεί κατά την προσθήκη του σε μια εκπομπή. Δεν θα μπορείτε " +"να δείτε και να επεξεργαστείτε το περιεχόμενο στη Βιβλιοθήκη." -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Επεξεργασία" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"Η επιθυμητή διάρκεια του block δεν θα επιτευχθεί αν το Airtime δεν μπορέσει " +"να βρεί αρκετά μοναδικά κομμάτια που να ταιριάζουν στα κριτήριά σας. " +"Ενεργοποιήστε αυτή την επιλογή αν θέλετε να επιτρέψετε την πολλαπλή προσθήκη " +"κομματιών στο smart block." -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Smart block shuffled" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Προβολή σε Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Το Smart block δημιουργήθηκε και τα κριτήρια αποθηκεύτηκαν" -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Επαναφόρτωση σε SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Το Smart block αποθηκεύτηκε" + +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "Επεξεργασία..." + +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Επιλογή Φακέλου Αποθήκευσης" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Ανέβασμα σε SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Επιλογή Φακέλου για Προβολή" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "Καμία διαθέσιμη δράση" +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Είστε βέβαιοι ότι θέλετε να αλλάξετε το φάκελο αποθήκευσης;\n" +"Αυτό θα αφαιρέσει τα αρχεία από τη βιβλιοθήκη του Airtime!" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "Δεν έχετε άδεια διαγραφής των επιλεγμένων στοιχείων." +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Είστε βέβαιοι ότι θέλετε να αφαιρέσετε το φάκελο που προβάλλεται;" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Δεν ήταν δυνατή η διαγραφή ορισμένων προγραμματισμένων αρχείων." +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "Αυτή η διαδρομή δεν είναι προς το παρόν προσβάσιμη." -#: airtime_mvc/application/controllers/LibraryController.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 #, php-format -msgid "Copy of %s" -msgstr "Αντιγραφή από %s" - -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Επιλέξτε cursor" +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" +"Κάποιοι τύποι stream απαιτούν επιπλέον ρυθμίσεις. Λεπτομέρειες για την " +"ενεργοποίηση %sAAC+ Support%s ή %sOpus Support%s παρέχονται." -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Αφαίρεση cursor" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Συνδέθηκε με τον διακομιστή streaming " -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "η εκπομπή δεν υπάρχει" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "Το stream είναι απενεργοποιημένο" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Οι προτιμήσεις ενημερώθηκαν." +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Αδύνατη η σύνδεση με τον διακομιστή streaming " -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Η ρύθμιση υποστήριξης ενημερώθηκε." +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"Αν το Airtime είναι πίσω από ένα τείχος προστασίας ή router, ίσως χρειαστεί " +"να ρυθμίσετε την προώθηση port και οι πληροφορίες πεδίου θα είναι " +"λανθασμένες. Σε αυτή την περίπτωση θα πρέπει να ενημερώσετε αυτό το πεδίο, " +"ώστε να δείχνει το σωστό host/port/mount που χρειάζονται οι DJ σας για να " +"συνδεθούν. Το επιτρεπόμενο εύρος είναι μεταξύ 1024 και 49151." -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Σχόλια Υποστήριξης" +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "" +"Για περισσότερες λεπτομέρειες, παρακαλούμε διαβάστε το %sAirtime Εγχειρίδιο%s" -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Η Ρύθμιση Stream Ενημερώθηκε." +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"Τσεκάρετε αυτή την επιλογή για να ενεργοποιήσετε τα μεταδεδομένα για OGG " +"streams (τα stream μεταδεδομένα είναι ο τίτλος του κομματιού και του " +"καλλιτέχνη, που εμφανίζονται σε ένα audio player). VLC και mplayer προκαλούν " +"βλάβες κατά την αναπαραγωγή ενός OGG / Vorbis stream, το οποίο έχει " +"ενεργοποιημένες τις πληροφορίες μεταδεδομένων: θα αποσυνδέονται από το " +"stream μετά από κάθε κομμάτι. Εάν χρησιμοποιείτε ένα OGG stream και οι " +"ακροατές σας δεν απαιτούν υποστήριξη για αυτές τις συσκευές αναπαραγωγής " +"ήχου, τότε μπορείτε να ενεργοποιήσετε αυτή την επιλογή." -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "η διαδρομή πρέπει να καθοριστεί" +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Επιλέξτε αυτό το πλαίσιο για να σβήσει αυτόματα η Κύρια/Εμφάνιση πηγής κατά " +"την αποσύνδεση πηγής." -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Πρόβλημα με Liquidsoap ..." +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Επιλέξτε αυτό το πλαίσιο για να ενεργοποιηθεί αυτόματα η η Κύρια/Εμφάνιση " +"πηγής κατά την σύνδεση πηγής." -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Αναπαραγωγή σε Εξέλιξη" +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"Εάν ο διακομιστής Icecast περιμένει ένα όνομα χρήστη από την «πηγή», αυτό το " +"πεδίο μπορεί να μείνει κενό." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Προσθήκη Πολυμέσων" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"Εάν ο live streaming πελάτη σας δεν ζητά ένα όνομα χρήστη, το πεδίο αυτό θα " +"πρέπει να είναι η «πηγή»." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Βιβλιοθήκη" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"Εάν αλλάξετε το όνομα χρήστη ή τον κωδικό πρόσβασης για ένα ενεργοποιημένο " +"stream, η μηχανή playout θα πραγματοποιήσει επανεκκίνηση και οι ακροατές σας " +"θα ακούσουν σιωπή για 5-10 δευτερόλεπτα. Με την αλλαγή των παρακάτω πεδίων " +"ΔΕΝ θα προκληθεί επανεκκίνηση: Stream Label (Γενικές Ρυθμίσεις), και " +"Εναλλαγή Fade(s) Μετάβασης, Κύριο Όνομα χρήστη και Κύριος Κωδικός πρόσβασης " +"(Ρυθμίσεις Stream Εισόδου). Αν το Airtime ηχογραφεί και αν η αλλαγή " +"προκαλέσει επανεκκίνηση της μηχανής playout, η ηχογράφηση θα διακοπεί." -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Ημερολόγιο" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"Αυτό είναι το Icecast/SHOUTcast όνομα χρήστη και ο κωδικός πρόσβασης " +"διαχειριστή για τις στατιστικές ακροατών." -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "Σύστημα" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" +"Προειδοποίηση: Δεν μπορείτε να κάνετε αλλαγές κατά την διάρκεια της εκπομπής " -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Προτιμήσεις" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "Δεν βρέθηκαν αποτελέσματα" -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Xρήστες" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"Αυτό ακολουθεί το ίδιο πρότυπο ασφαλείας για τις εκπομπές: μόνο οι χρήστες " +"της συγκεκριμένης εκπομπής μπορούν να συνδεθούν." -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Φάκελοι Πολυμέσων" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "" +"Καθορίστε την προσαρμόσιμη πιστοποίηση, η οποία θα λειτουργήσει μόνο για " +"αυτή την εκπομπή." -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Streams" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "Η εκπομπή δεν υπάρχει πια!" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Στατιστικές Ακροατών" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "Προειδοποίηση: οι εκπομπές δεν μπορούν να συνδεθούν εκ νέου" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" -msgstr "Ιστορικό" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" +"Κατά τη διασύνδεση επαναλαμβανόμενων εκπομπών, όλα τα προγραμματισμένα " +"στοιχεία πολυμέσων κάθε εκπομπής θα προγραμματιστούν σε όλες τις " +"επαναλαμβανόμενες εκπομπές" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Ιστορικό Playout" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." +msgstr "" +"Η ζώνη ώρας είναι ρυθμισμένη ανάλογα με τη τοποθεσία του σταθμού. Οι " +"εκμπομπές θα μεταδίδονται στην τοπική ώρα, ρυθμισμένη από το Interface Ζώνης " +"ώρας στις ρυθμίσεις χρήστη " -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "Ιστορικό Template" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Εκπομπή" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Βοήθεια" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "Η εκπομπή είναι άδεια" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Έναρξη" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1λ" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "Εγχειρίδιο Χρήστη" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5λ" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "Σχετικά" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10λ" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Εξυπηρέτηση" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15λ" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Χρόνος λειτουργίας" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30λ" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60λ" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Μνήμη" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Ανάκτηση δεδομένων από το διακομιστή..." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "Αυτή η εκπομπή δεν έχει προγραμματισμένο περιεχόμενο." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Χώρος δίσκου" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "Η εκπομπή δεν εντελώς γεμάτη με περιεχόμενο " -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "Ρυθμίσεις Δακομιστή Email / Αλληλογραφίας" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "Ιανουάριος" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "Ρυθμίσεις SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "Φεβρουάριος" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Επανάληψη Ημερών:" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "Μάρτιος" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Αφαίρεση" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "Απρίλης" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Προσθήκη" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "Μάιος" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "URL Σύνδεσης: " +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "Ιούνιος" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Ρυθμίσεις Stream Εισόδου" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "Ιούλιος" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "URL Σύνδεσης Κυρίαρχης Πηγής:" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "Αύγουστος" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Παράκαμψη" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "Σεπτέμβριος" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "ΟΚ" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "Οκτώβριος" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "ΕΠΑΝΑΦΟΡΑ" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "Νοέμβριος" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "Εμφάνιση Πηγής URL Σύνδεσης:" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "Δεκέμβριος" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Απαιτείται)" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Ιαν" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Εγγραφή σε Airtime" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "Φεβ" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "Μαρ" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "Απρ" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(Μόνο για σκοπούς επαλήθευσης, δεν θα δημοσιευθεί)" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "Ιουν" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Σημείωση: Οτιδήποτε μεγαλύτερο από 600x600 θα αλλάξει μέγεθος." +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "Ιουλ" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Δείξε μου τι στέλνω " +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "Αυγ" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Όροι και Προϋποθέσεις" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "Σεπ" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Επαναφορά κωδικού πρόσβασης" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "Οκτ" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Επιλέξτε φάκελο" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "Νοε" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Ορισμός" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "Δεκ" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Τρέχων Φάκελος Εισαγωγής:" +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "σήμερα" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "ημέρα" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Αφαίρεση προβεβλημμένου ευρετηρίου" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "εβδομάδα" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "Δεν παρακολουθείτε κανέναν φάκελο πολυμέσων." +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "μήνας" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Stream " +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 +msgid "" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "" +"Εκπομπές μεγαλύτερες από την προγραμματισμένη διάρκειά τους θα διακόπτονται " +"από την επόμενη εκπομπή." -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Πρόσθετες επιλογές" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Ακύρωση Τρέχουσας Εκπομπής;" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "Η παρακάτω πληροφορία θα εμφανίζεται στις συσκευές αναπαραγωγής πολυμέσων των ακροατών σας:" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Πάυση ηχογράφησης τρέχουσας εκπομπής;" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(Ιστοσελίδα του Ραδιοφωνικού σταθμού)" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "Οκ" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "URL Stream: " +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Περιεχόμενα Εκπομπής" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Φιλτράρισμα Ιστορίας" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Αφαίρεση όλου του περιεχομένου;" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Εύρεση Εκπομπών" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Διαγραφή επιλεγμένου στοιχείου/ων;" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Φιλτράρισμα βάσει Εκπομπών:" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "Τέλος" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "%s's Ρυθμίσεις" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Διάρκεια" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Η εκπομπή είναι άδεια" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(Για να προωθήσετε τον σταθμό σας, η 'Αποστολή σχολίων υποστήριξης» πρέπει να είναι ενεργοποιημένη)." +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Ηχογράφηση Από Line In" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Πολιτική Προστασίας Προσωπικών Δεδομένων της Sourcefabric" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Προεπισκόπηση κομματιού" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "Επιλογή Παρουσίας Εκπομπής" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Δεν είναι δυνατός ο προγραμματισμός εκτός εκπομπής." -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "Εύρεση" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Μετακίνηση 1 Στοιχείου" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Επιλέξτε Ημέρες:" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Μετακίνηση Στοιχείων %s" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Επιλογές Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" +msgstr "Επεξεργαστής Fade" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "ή" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" +msgstr "Επεξεργαστής Cue" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "και" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "" +"Τα χαρακτηριστικά της κυμματοειδούς μορφής είναι διαθέσιμα σε πρόγραμμα " +"πλοήγησης που υποστηρίζει Web Audio API" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr " να " +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Επιλογή όλων" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "τα αρχεία πληρούν τα κριτήρια" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Καμία Επιλογή" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "το αρχείο πληρεί τα κριτήρια" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Αφαίρεση υπεράριθμων κρατήσεων κομματιών" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "Δημιουργία Αρχείου Περίληψης Template " +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Αφαίρεση επιλεγμένων προγραμματισμένων στοιχείων " -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "Δημιουργία Template Φόρμας Σύνδεσης" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Μετάβαση στο τρέχον κομμάτι " -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "Προσθήκη περισσότερων στοιχείων" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Ακύρωση τρέχουσας εκπομπής" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "Προσθήκη Νέου Πεδίου" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "Άνοιγμα βιβλιοθήκης για προσθήκη ή αφαίρεση περιεχομένου" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "Ορισμός Προεπιλεγμένου Template " +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "σε χρήση" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "Template Φόρμας Σύνδεσης" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Δίσκος" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "Κανένα Template Φόρμας Σύνδεσης" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Κοιτάξτε σε" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "Νέο Template Φόρμας Σύνδεσης" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Άνοιγμα" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "Template Περίληψης Αρχείου" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "Οι επισκέπτες μπορούν να κάνουν τα παρακάτω" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "Κανένα Template Περίληψης Αρχείου" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "Προβολή Προγράμματος" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "Νέο Template Περίληψης Αρχείου" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "Προβολή περιεχομένου εκπομπής" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "Νέο" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "Οι DJ μπορούν να κάνουν τα παρακάτω" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "Νέα λίστα αναπαραγωγής" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "Διαχείριση ανατεθημένου περιεχομένου εκπομπής" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "Νέο Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Εισαγωγή αρχείων πολυμέσων" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "Νέο Webstream" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Δημιουργία λιστών αναπαραγωγής, smart blocks, και webstreams " -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "Προβολή / επεξεργασία περιγραφής" +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "Διαχείριση δικού τους περιεχομένου βιβλιοθήκης" + +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "Οι Μάνατζερ Προγράμματος μπορούν να κάνουν τα παρακάτω:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "URL Stream:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "Προβολή και διαχείριση περιεχομένου εκπομπής" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Προεπιλεγμένη Διάρκεια:" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Πρόγραμμα εκπομπών" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "Κανένα webstream" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "Διαχείριση όλου του περιεχομένου βιβλιοθήκης" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Ρυθμίσεις Stream" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "ΟΙ Διαχειριστές μπορούν να κάνουν τα παρακάτω:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Γενικές ρυθμίσεις" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Διαχείριση προτιμήσεων" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "βΔ" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "Διαχείριση Χρηστών" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Ρυθμίσεις Stream Εξόδου" +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "Διαχείριση προβεβλημένων φακέλων " -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "Εισαγωγή αρχείου σε εξέλιξη..." +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "Προβολή κατάστασης συστήματος" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Προηγμένες Επιλογές Αναζήτησης" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Πρόσβαση στην ιστορία playout" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "προηγούμενο" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "Προβολή στατιστικών των ακροατών" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "αναπαραγωγή" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Εμφάνιση / απόκρυψη στηλών" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "παύση" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "Από {από} σε {σε}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "επόμενο" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "Kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "στάση" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "εεεε-μμ-ηη" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "Σίγαση" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "ωω:λλ:δδ.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "Κατάργηση σίγασης" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "μέγιστη ένταση" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "Κυ" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Απαιτείται Ενημέρωση " +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Δε" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "Για να παίξετε τα πολυμέσα θα πρέπει είτε να αναβαθμίστε το πρόγραμμα περιήγησηής σας σε μια πρόσφατη έκδοση ή να ενημέρώσετε το %sFlash plugin %s σας." +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Τρ" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Διάρκεια:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "Τε" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Ρυθμός δειγματοληψίας:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Πε" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "Αριθμός ISRC:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Πα" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "Διαδρομή Αρχείου" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "Σα" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Web Stream" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Ώρα" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Δυναμικά Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Λεπτό" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Στατικά Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Ολοκληρώθηκε" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Κομμάτι Ήχου" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Επιλογή αρχείων" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Περιεχόμενα Λίστας Αναπαραγωγής: " +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "" +"Προσθέστε αρχεία στην ουρά ανεβάσματος και κάντε κλίκ στο κουμπί έναρξης" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Περιεχόμενα Στατικών Smart Block : " +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Προσθήκη Αρχείων" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Κριτήρια Δυναμικών Smart Block: " +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Στάση Ανεβάσματος" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Όριο για " +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Έναρξη ανεβάσματος" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Καταμέτρηση Ακροατών με την Πάροδου Χρόνου" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Προσθήκη αρχείων" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Welcome to %s!" -msgstr "" +msgid "Uploaded %d/%d files" +msgstr "Ανέβηκαν %d/%d αρχεία" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 -#, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "N/A" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Ξεκινήστε με την προσθήκη αρχείων στη βιβλιοθήκη επιλέγοντας 'Προσθήκη Πολυμέσων' στο μενού. Μπορείτε να κάνετε και drag-and-drop στα αρχεία σας σε αυτό το παράθυρο." +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Σύρετε αρχεία εδώ." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Δημιουργήστε μια εκπομπή πηγαίνοντας στο «Ημερολόγιο» και στη συνέχεια κάνοντας κλικ στο εικονίδιο '+Εκπομπή'. Αυτό μπορεί να είναι είτε μια ή επαναλαμβανόμενες εκπομπές. Μόνο οι διαχειριστές και οι μουσικοί παραγωγοί μπορούν να επεξεργαστούν την εκπομπή." +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "Σφάλμα επέκτασης αρχείου." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Προσθέστε πολυμέσα στην εκπομπή σας πηγαίνοντας στο Ημερολόγιο προγραμματισμού, κάνοντας αριστερό κλικ πάνω στην εκπομπή και επιλέγοντας 'Προσθήκη / Αφαίρεση Περιεχομένου'" +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "Σφάλμα μεγέθους αρχείου." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Επιλέξτε τα πολυμέσα σας από το αριστερό τμήμα του παραθύρου και σύρετέ τα στην εκπομπή σας στο δεξιό τμήμα." +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "Σφάλμα μέτρησης αρχείων." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "Και είστε έτοιμοι!" +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Σφάλμα αρχικοποίησης." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "Για περισσότερες αναλυτικές οδηγίες, διαβάστε το %sεγχειρίδιο%s ." +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "Σφάλμα HTTP." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Μοιραστείτε" +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Σφάλμα ασφάλειας." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Επιλέξτε stream:" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Γενικό σφάλμα." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "Σφάλμα IO" + +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "" +msgid "File: %s" +msgstr "Αρχείο: %s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "" +msgid "%d files queued" +msgstr "%d αρχεία σε αναμονή" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "Νέος κωδικός πρόσβασης" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "Αρχείο: %f, μέγεθος: %s, μέγιστο μέγεθος αρχείου: %m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Παρακαλώ εισάγετε και επαληθεύστε τον νέο κωδικό πρόσβασής σας στα παρακάτω πεδία. " +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "Το URL είτε είναι λάθος ή δεν υφίσταται" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Παρακαλώ εισάγετε τη διεύθυνση e-mail σας. Θα λάβετε ένα σύνδεσμο για να δημιουργήσετε έναν νέο κωδικό πρόσβασης μέσω e-mail." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Σφάλμα: Πολύ μεγάλο αρχείο: " -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "Το e-mail εστάλη" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "Σφάλμα: Μη έγκυρη προέκταση αρχείου: " -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "Το e-mail εστάλη" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "Δημιουργία Εισόδου" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Επιστροφή στην σελίδα εισόδου" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "Επεξεργασία Ιστορικού" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "Αντιγράφηκαν %s σειρές%s στο πρόχειρο" + +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" +"%sΕκτύπωση προβολής%sΠαρακαλούμε να χρησιμοποιείσετε την λειτουργία " +"εκτύπωσης του περιηγητή σας για να τυπώσετε τον πίνακα. Όταν τελειώσετε " +"πατήστε escape" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Προηγούμενο" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Επόμενο" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Πηγή Streams" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Κύρια Πηγή " - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Εμφάνιση Πηγής " +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Προεπισκόπηση" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Πρόγραμμα" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Επιλέξτε cursor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "ON AIR" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Αφαίρεση cursor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Ακούστε!" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "η εκπομπή δεν υπάρχει" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Χρόνος σταθμού" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Οι προτιμήσεις ενημερώθηκαν." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Το δοκιμαστικό λήγει σε" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Η ρύθμιση υποστήριξης ενημερώθηκε." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Η Ρύθμιση Stream Ενημερώθηκε." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "Ο λογαριασμός μου" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "η διαδρομή πρέπει να καθοριστεί" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Διαχείριση Χρηστών" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Πρόβλημα με Liquidsoap ..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "Νέος Χρήστης" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Η σελίδα δεν βρέθηκε" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "ταυτότητα" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Σφάλμα εφαρμογής" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "Όνομα" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s δεν βρέθηκε" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Επώνυμο" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Κάτι πήγε στραβά." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "Τύπος Χρήστη" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Προσθήκη στη λίστα αναπαραγωγής" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "Σελίδα Σύνδεσης" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Προσθήκη στο Smart Block" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "Περίληψη Αρχείων" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Λήψη" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "Προβολή Περίληψης" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Αντιγραφή Λίστας Αναπαραγωγής" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Εφαρμογή Προεπιλεγμένου Πλαισίου Zend " +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "Soundcloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Η σελίδα δεν βρέθηκε!" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "Καμία διαθέσιμη δράση" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "Η σελίδα που ψάχνατε δεν υπάρχει!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "Δεν έχετε άδεια διαγραφής των επιλεγμένων στοιχείων." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Επέκταση Στατικών Block" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "Δεν ήταν δυνατή η διαγραφή ορισμένων προγραμματισμένων αρχείων." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Επέκταση Δυναμικών Block" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Αντιγραφή από %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Άδειασμα smart block" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Webstream χωρίς Τίτλο" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Άδειασμα λίστας αναπαραγωγής" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Το Webstream αποθηκεύτηκε." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "Άδειασμα περιεχομένου λίστας αναπαραγωγής" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Άκυρες μορφές αξίας." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "Εκκαθάριση" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "Δεν έχετε άδεια για αποσύνδεση πηγής." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Shuffle λίστα αναπαραγωγής" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "Δεν υπάρχει καμία πηγή που είναι συνδεδεμένη σε αυτή την είσοδο." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Αποθήκευση λίστας αναπαραγωγής" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "Δεν έχετε άδεια για αλλαγή πηγής." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Crossfade λίστας αναπαραγωγής" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "Ο χρήστης προστέθηκε επιτυχώς!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Fade in: " +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "Ο χρήστης ενημερώθηκε με επιτυχία!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Fade out: " +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "Οι ρυθμίσεις ενημερώθηκαν επιτυχώς!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "Καμία ανοικτή λίστα αναπαραγωγής" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Αναμετάδοση της εκπομπής %s από %s σε %s" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "Εκκαθάριση περιεχομένου του smart block" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." +msgstr "" +"Παρακαλούμε σιγουρευτείτε ότι ο χρήστης/κωδικός πρόσβασης διαχειριστή είναι " +"σωστός στη σελίδα Σύστημα>Streams." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(Ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "Δεν έχετε δικαίωμα πρόσβασης σε αυτό το βοήθημα" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "Κανένα ανοικτό smart block " +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "Δεν έχετε δικαίωμα πρόσβασης σε αυτό το βοήθημα. " -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "Εμφάνιση κυμματοειδούς μορφής" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "Το αρχείο δεν υπάρχει στο Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Cue In: " +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "Το αρχείο δεν υπάρχει στο Airtime" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(ωω:λλ:δδ.t)" +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "Το αρχείο δεν υπάρχει στο Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Cue Out: " +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Λανθασμένο αίτημα. Η παράμετρος «κατάσταση» δεν πέρασε." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Αρχική Διάρκεια:" +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Λανθασμένο αίτημα. Η παράμετρος «κατάσταση» δεν είναι έγκυρη" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Προσθήκη αυτής της εκπομπής " +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "Βλέπετε μια παλαιότερη έκδοση του %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Ενημέρωση εκπομπής" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "Δεν μπορείτε να προσθέσετε κομμάτια σε δυναμικά blocks." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "Τι" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "Δεν έχετε άδεια διαγραφής επιλεγμένων %s(s)." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "Πότε" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "Μπορείτε να προσθέσετε κομμάτια μόνο σε smart block." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Είσοδος Live Stream " +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Λίστα Αναπαραγωγλης χωρίς Τίτλο" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Εγγραφή και Αναμετάδοση" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Smart Block χωρίς Τίτλο" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Ποιός" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Άγνωστη λίστα αναπαραγωγής" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Στυλ" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "Cue in και cue out είναι μηδέν." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Αναμετάδοση του %s από %s" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "Το cue out δεν μπορεί να είναι μεγαλύτερο από το μήκος του αρχείου." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Επιλέξτε Χώρα" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "Το cue in δεν μπορεί να είναι μεγαλύτερης διάρκειας από το cue out." + +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Το cue out δεν μπορεί να είναι μικρότερο από το cue in." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3649,43 +4360,26 @@ msgstr "Μη έγκυρο webstream - Αυτό φαίνεται να αποτε msgid "Unrecognized stream type: %s" msgstr "Άγνωστος τύπος stream: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s έχει ήδη προβληθεί." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s περιέχει ένθετο ευρετήριο προβεβλημένων: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s βρίσκεται σε υποκατηγορία υπάρχωντος ευρετηρίου προβεβλημμένων: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s μη έγκυρο ευρετήριο." - -#: airtime_mvc/application/models/MusicDir.php:232 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s έχει ήδη οριστεί ως το τρέχον ευρετήριο αποθήκευσης ή βρίσκεται στη λίστα προβεβλημένων φακέλων" - -#: airtime_mvc/application/models/MusicDir.php:386 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s έχει ήδη οριστεί ως το τρέχον ευρετήριο αποθήκευσης ή βρίσκεται στη λίστα προβεβλημένων φακέλων." +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Γεια σας %s , \n" +"\n" +"Πατήστε αυτόν τον σύνδεσμο για να επαναφέρετε τον κωδικό πρόσβασής σας: " -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s δεν υπάρχει στη λίστα προβεβλημένων." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Επαναφορά κωδικού πρόσβασης Airtime" + +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Επιλέξτε Χώρα" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3693,13 +4387,17 @@ msgstr "Η μετακίνηση στοιχείων εκτός συνδεδεμέ #: airtime_mvc/application/models/Scheduler.php:119 msgid "The schedule you're viewing is out of date! (sched mismatch)" -msgstr "Το πρόγραμμα που βλέπετε δεν είναι έγκυρο! (αναντιστοιχία προγράμματος)" +msgstr "" +"Το πρόγραμμα που βλέπετε δεν είναι έγκυρο! (αναντιστοιχία προγράμματος)" #: airtime_mvc/application/models/Scheduler.php:124 msgid "The schedule you're viewing is out of date! (instance mismatch)" -msgstr "Το πρόγραμμα που βλέπετε δεν είναι ενημερωμένο! (αναντιστοιχία παραδείγματος)" +msgstr "" +"Το πρόγραμμα που βλέπετε δεν είναι ενημερωμένο! (αναντιστοιχία παραδείγματος)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3728,63 +4426,66 @@ msgstr "Η εκπομπή %s έχει ενημερωθεί πρόσφατα!" msgid "" "Content in linked shows must be scheduled before or after any one is " "broadcasted" -msgstr "Το περιεχόμενο συνδεδεμένων εκπομπών πρέπει να να προγραμματιστεί πριν ή μετά την αναμετάδοσή τους" - -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." msgstr "" +"Το περιεχόμενο συνδεδεμένων εκπομπών πρέπει να να προγραμματιστεί πριν ή " +"μετά την αναμετάδοσή τους" +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "Ένα επιλεγμένο αρχείο δεν υπάρχει!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "Cue in και cue out είναι μηδέν." - -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Το cue in δεν μπορεί να είναι μεγαλύτερης διάρκειας από το cue out." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s έχει ήδη προβληθεί." -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Το cue out δεν μπορεί να είναι μεγαλύτερο από το μήκος του αρχείου." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s περιέχει ένθετο ευρετήριο προβεβλημένων: %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Το cue out δεν μπορεί να είναι μικρότερο από το cue in." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s βρίσκεται σε υποκατηγορία υπάρχωντος ευρετηρίου προβεβλημμένων: %s" -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." -msgstr "Αποτυχία δημιουργίας «οργάνωση» directory." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s μη έγκυρο ευρετήριο." -#: airtime_mvc/application/models/StoredFile.php:1017 +#: airtime_mvc/application/models/MusicDir.php:232 #, php-format msgid "" -"The file was not uploaded, there is %s MB of disk space left and the file " -"you are uploading has a size of %s MB." -msgstr "Το αρχείο δεν ανέβηκε, υπάρχει %s MB ελεύθερου χώρου στο δίσκο και το αρχείο που ανεβάζετε έχει μέγεθος %s MB." +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s έχει ήδη οριστεί ως το τρέχον ευρετήριο αποθήκευσης ή βρίσκεται στη λίστα " +"προβεβλημένων φακέλων" -#: airtime_mvc/application/models/StoredFile.php:1026 +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format msgid "" -"This file appears to be corrupted and will not be added to media library." -msgstr "Αυτό το αρχείο φαίνεται να είναι κατεστραμμένο και δεν θα προστεθεί στη βιβλιοθήκη πολυμέσων." +"%s is already set as the current storage dir or in the watched folders list." +msgstr "" +"%s έχει ήδη οριστεί ως το τρέχον ευρετήριο αποθήκευσης ή βρίσκεται στη λίστα " +"προβεβλημένων φακέλων." -#: airtime_mvc/application/models/StoredFile.php:1065 -msgid "" -"The file was not uploaded, this error can occur if the computer hard drive " -"does not have enough disk space or the stor directory does not have correct " -"write permissions." -msgstr "Το αρχείο δεν ανέβηκε, αυτό το σφάλμα μπορεί να προκύψει είτε διότι ο σκληρός δίσκος του υπολογιστή δεν έχει αρκετό χώρο ή διότι ο directory αποθήκευσης δεν έχει έγγυρες άδειες εγγραφής." +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s δεν υπάρχει στη λίστα προβεβλημένων." + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Αναμετάδοση του %s από %s" #: airtime_mvc/application/models/Show.php:180 msgid "Shows can have a max length of 24 hours." @@ -3794,116 +4495,154 @@ msgstr "Η μέγιστη διάρκει εκπομπών είναι 24 ώρες msgid "" "Cannot schedule overlapping shows.\n" "Note: Resizing a repeating show affects all of its repeats." -msgstr "Δεν είναι δυνατός ο προγραμματισμός αλληλοεπικαλυπτώμενων εκπομπών.\n Σημείωση: Η αλλαγή μεγέθους μιας εκπομπής επηρεάζει όλες τις επαναλήψεις της." +msgstr "" +"Δεν είναι δυνατός ο προγραμματισμός αλληλοεπικαλυπτώμενων εκπομπών.\n" +" Σημείωση: Η αλλαγή μεγέθους μιας εκπομπής επηρεάζει όλες τις επαναλήψεις " +"της." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/models/StoredFile.php:1017 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Γεια σας %s , \n\nΠατήστε αυτόν τον σύνδεσμο για να επαναφέρετε τον κωδικό πρόσβασής σας: " - -#: airtime_mvc/application/models/Auth.php:36 -#, php-format -msgid "%s Password Reset" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." msgstr "" +"Το αρχείο δεν ανέβηκε, υπάρχει %s MB ελεύθερου χώρου στο δίσκο και το αρχείο " +"που ανεβάζετε έχει μέγεθος %s MB." -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "Το αρχείο δεν υπάρχει" +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "Δεν είναι δυνατή η αλλαγή μεγέθους παρελθοντικής εκπομπής" -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "Προβολή εγγεγραμμένων Αρχείων Μεταδεδομένων " +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "Αδύνατη η αλληλοεπικάλυψη εκπομπών" -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Εμφάνιση Περιεχομένου" +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." +msgstr "Αποτυχία δημιουργίας «οργάνωση» directory." -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Αφαίρεση Όλου του Περιεχομένου" +#: airtime_mvc/application/models/StoredFile.php:1026 +msgid "" +"This file appears to be corrupted and will not be added to media library." +msgstr "" +"Αυτό το αρχείο φαίνεται να είναι κατεστραμμένο και δεν θα προστεθεί στη " +"βιβλιοθήκη πολυμέσων." -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Ακύρωση Τρέχουσας Εκπομπής" +#: airtime_mvc/application/models/StoredFile.php:1065 +msgid "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." +msgstr "" +"Το αρχείο δεν ανέβηκε, αυτό το σφάλμα μπορεί να προκύψει είτε διότι ο " +"σκληρός δίσκος του υπολογιστή δεν έχει αρκετό χώρο ή διότι ο directory " +"αποθήκευσης δεν έχει έγγυρες άδειες εγγραφής." -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" -msgstr "Επεξεργασία της Παρουσίας" +#: airtime_mvc/application/layouts/scripts/login.phtml:24 +#, php-format +msgid "" +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Επεξεργασία Εκπομπής" +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#, php-format +msgid "Promote my station on %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Διαγραφή Της Παρουσίας" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Διαγραφή Της Παρουσίας και Όλων των Ακόλουθών της" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "Δεν έχετε δικαίωμα πρόσβασης" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Δεν είναι δυνατό το drag and drop επαναλαμβανόμενων εκπομπών" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Δεν είναι δυνατή η μετακίνηση περασμένης εκπομπής" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Δεν είναι δυνατή η μετακίνηση εκπομπής στο παρελθόν" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Δεν είναι δυνατή η μετακίνηση ηχογραφημένης εκπομπής σε λιγότερο από 1 ώρα πριν από την αναμετάδοση της." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "Η εκπομπή διεγράφη επειδή δεν υπάρχει ηχογραφημένη εκπομπή!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Πρέπει να περιμένετε 1 ώρα για την αναμετάδοση." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" -msgstr "Κομμάτι" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Παίχτηκε" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "Το έτος %s πρέπει να είναι εντός του εύρους 1753 - 9999" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s δεν αποτελεί έγκυρη ημερομηνία" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s : %s : %s δεν αποτελεί έγκυρη ώρα" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Παρακαλούμε επιλέξτε μια επιλογή" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "Κανένα Αρχείο" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/locale/en_CA/LC_MESSAGES/airtime.po b/airtime_mvc/locale/en_CA/LC_MESSAGES/airtime.po index cf965a15c0..379be33f23 100644 --- a/airtime_mvc/locale/en_CA/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/en_CA/LC_MESSAGES/airtime.po @@ -1,1220 +1,1687 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: -# Daniel James , 2014 +# danielhjames , 2014 # Sourcefabric , 2012 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: English (Canada) (http://www.transifex.com/projects/p/airtime/language/en_CA/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-01-29 17:12+0000\n" +"Last-Translator: danielhjames \n" +"Language-Team: English (Canada) (http://www.transifex.com/projects/p/airtime/" +"language/en_CA/)\n" +"Language: en_CA\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: en_CA\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Audio Player" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Please select an option" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Logout" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "No Records" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "Play" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "The year %s must be within the range of 1753 - 9999" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "Stop" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s is not a valid date" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Cue In" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s:%s:%s is not a valid time" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "Set Cue In" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Now Playing" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Cue Out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Add Media" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "Set Cue Out" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Library" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "Cursor" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Calendar" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Fade In" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "System" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Fade Out" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Preferences" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Users" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Live stream" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Media Folders" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Enabled:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Streams" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Stream Type:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Support Feedback" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Bit Rate:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Status" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Service Type:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Listener Stats" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Channels:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "History" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Playout History" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "History Templates" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Server" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Help" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Invalid character entered" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Getting Started" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Port" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "User Manual" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Only numbers are allowed." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "About" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Password" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "Record file doesn't exist" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Genre" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "View Recorded File Metadata" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "View on Soundcloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Name" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Upload to SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Description" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Re-upload to SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Mount Point" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Show Content" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Username" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Add / Remove Content" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Admin User" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Remove All Content" + +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Cancel Current Show" + +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "Edit This Instance" + +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Edit" + +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Edit Show" + +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Delete" + +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Delete This Instance" + +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Delete This Instance and All Following" + +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "Permission denied" + +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "Can't drag and drop repeating shows" + +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "Can't move a past show" + +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Can't move show into past" + +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Cannot schedule overlapping shows" + +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "Can't move a recorded show less than 1 hour before its rebroadcasts." + +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "Show was deleted because recorded show does not exist!" + +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "Must wait 1 hour to rebroadcast." + +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Title" + +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Creator" + +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Album" + +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Length" + +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Genre" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Mood" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Label" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Composer" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Copyright" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Year" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "Track" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Conductor" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Language" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "Start Time" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "End Time" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Played" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "File import in progress..." + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Advanced Search Options" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Listener Count Over Time" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "New" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "New Playlist" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "New Smart Block" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "New Webstream" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "Empty playlist content" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "Clear" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Shuffle playlist" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Admin Password" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Shuffle" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Getting information from the server..." +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Save playlist" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Server cannot be empty." +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 +#: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 +#: airtime_mvc/application/forms/AddUser.php:110 +#: airtime_mvc/application/forms/SupportSettings.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 +msgid "Save" +msgstr "Save" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Port cannot be empty." +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Playlist crossfade" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Mount cannot be empty with Icecast server." +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "View / edit description" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Description" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Fade in: " + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Fade out: " + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "No open playlist" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Expand Static Block" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Expand Dynamic Block" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Empty smart block" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Empty playlist" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "Show Waveform" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Cue In: " + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(hh:mm:ss.t)" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Cue Out: " + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Original Length:" + +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(ss.t)" + +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "Empty smart block content" + +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "No open smart block" + +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" + +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Welcome to Airtime!" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "" +"Here's how you can get started using Airtime to automate your broadcasts: " + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Select your media from the left pane and drag them to your show in the right " +"pane." + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "Then you're good to go!" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "For more detailed help, read the %suser manual%s." + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Live stream" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Share" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Select stream:" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "mute" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "unmute" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "All" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" + +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "Stream URL:" + +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Default Length:" + +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "No webstream" -#: airtime_mvc/application/forms/EditAudioMD.php:19 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 msgid "Title:" msgstr "Title:" -#: airtime_mvc/application/forms/EditAudioMD.php:26 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 msgid "Creator:" msgstr "Creator:" -#: airtime_mvc/application/forms/EditAudioMD.php:33 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 msgid "Album:" msgstr "Album:" -#: airtime_mvc/application/forms/EditAudioMD.php:40 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 msgid "Track:" msgstr "Track:" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Length:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Sample Rate:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Bit Rate:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Mood:" + #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 msgid "Genre:" msgstr "Genre:" -#: airtime_mvc/application/forms/EditAudioMD.php:55 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 msgid "Year:" msgstr "Year:" -#: airtime_mvc/application/forms/EditAudioMD.php:67 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 msgid "Label:" msgstr "Label:" -#: airtime_mvc/application/forms/EditAudioMD.php:74 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" + #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 msgid "Composer:" msgstr "Composer:" -#: airtime_mvc/application/forms/EditAudioMD.php:81 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 msgid "Conductor:" msgstr "Conductor:" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Mood:" - -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" - -#: airtime_mvc/application/forms/EditAudioMD.php:105 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 msgid "Copyright:" msgstr "Copyright:" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "ISRC Number:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "Isrc Number:" -#: airtime_mvc/application/forms/EditAudioMD.php:119 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 msgid "Website:" msgstr "Website:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 #: airtime_mvc/application/forms/EditAudioMD.php:126 #: airtime_mvc/application/forms/Login.php:52 #: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 msgid "Language:" msgstr "Language:" -#: airtime_mvc/application/forms/EditAudioMD.php:135 -#: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 -#: airtime_mvc/application/forms/SupportSettings.php:161 -#: airtime_mvc/application/controllers/LocaleController.php:283 -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 -msgid "Save" -msgstr "Save" - -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Cancel" - -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Username:" - -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Password:" - -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Verify Password:" - -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "First name:" - -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Last name:" - -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "Email:" - -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Mobile Phone:" - -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" - -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" - -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "User Type:" - -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Guest" - -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "DJ" - -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Program Manager" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "File Path:" -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Admin" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Name:" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Login name is not unique." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Description:" -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Background Colour:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Web Stream" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Text Colour:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Dynamic Smart Block" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Date Start:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Static Smart Block" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Date End:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Audio Track" -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Show:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Playlist Contents: " -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "All My Shows:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Static Smart Block Contents: " -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "days" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Dynamic Smart Block Criteria: " -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "Day must be specified" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Limit to " -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "Time must be specified" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL:" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Must wait at least 1 hour to rebroadcast" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "Choose Show Instance" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Import Folder:" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "No Show" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Watched Folders:" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "Find" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Not a valid Directory" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "%s's Settings" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Search Users:" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Choose folder" -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "DJs:" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Set" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Login" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Current Import Folder:" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Type the characters you see in the picture below." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Add" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Station Name" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "Default Crossfade Duration (s):" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Remove watched directory" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "enter a time in seconds 0{.0}" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "You are not watching any media folders." -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "Default Fade In (s):" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Required)" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "Default Fade Out (s):" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." -#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 #, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "Click the box below to promote your station on %sSourcefabric.org%s." + +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make front-end widgets work.)" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(In order to promote your station, 'Send support feedback' must be enabled)." -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Disabled" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(for verification purposes only, will not be published)" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Enabled" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Note: Anything larger than 600x600 will be resized." -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Default Interface Language" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Show me what I am sending " -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "Station Timezone" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Sourcefabric Privacy Policy" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "Week Starts On" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Find Shows" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Sunday" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Filter By Show:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Monday" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "Email / Mail Server Settings" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Tuesday" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "SoundCloud Settings" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Wednesday" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Choose Days:" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Thursday" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Remove" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Friday" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Stream " -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Saturday" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Additional Options" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "Link:" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "" +"The following info will be displayed to listeners in their media player:" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Repeat Type:" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(Your radio station website)" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "weekly" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "Stream URL: " -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "every 2 weeks" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "Connection URL: " -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "every 3 weeks" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Reset password" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "every 4 weeks" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Register Airtime" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "monthly" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Select Days:" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Sun" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Terms and Conditions" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Mon" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Input Stream Settings" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Tue" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "Master Source Connection URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Wed" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Override" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Thu" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "OK" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Fri" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "RESET" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Sat" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "Show Source Connection URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "Repeat By:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Smart Block Options" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "day of the month" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "or" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "day of the week" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "and" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "No End?" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr " to " -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "End date must be after start date" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "files meet the criteria" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "Please select a repeat day" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "file meet the criteria" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Confirm new password" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Repeat Days:" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "Password confirmation does not match your password." +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Filter History" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Get new password" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Close" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Select criteria" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Add this show" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Album" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Update show" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Bit Rate (Kbps)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "What" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "When" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Composer" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Live Stream Input" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Conductor" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Record & Rebroadcast" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Copyright" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Who" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Creator" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Style" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Encoded By" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Start" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Stream Settings" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Label" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Global Settings" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Language" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "dB" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Last Modified" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Output Stream Settings" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Last Played" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Manage Media Folders" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Length" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Zend Framework Default Application" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Mime" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Page not found!" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Mood" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "Looks like the page you were looking for doesn't exist!" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Owner" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "Log Sheet Templates" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Replay Gain" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "No Log Sheet Templates" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Sample Rate (kHz)" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "Set Default" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Title" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "New Log Sheet Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Track Number" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "File Summary Templates" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Uploaded" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "No File Summary Templates" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Website" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "New File Summary Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Year" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "Creating File Summary Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Select modifier" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "Creating Log Sheet Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "contains" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Name" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "does not contain" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "Add more elements" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "is" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "Add New Field" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "is not" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "Set Default Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "starts with" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "New password" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "ends with" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "Please enter and confirm your new password in the fields below." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "is greater than" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Login" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "is less than" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." +msgstr "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "is in the range" +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." +msgstr "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "hours" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "Email sent" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "minutes" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "An email has been sent" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "items" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Back to login screen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Set smart block type:" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "Log Sheet" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Static" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "File Summary" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Dynamic" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "Show Summary" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Allow Repeat Tracks:" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "previous" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Limit to" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "play" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Generate playlist content and save criteria" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "pause" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Generate" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "next" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Shuffle playlist content" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "stop" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Shuffle" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "max volume" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "Limit cannot be empty or smaller than 0" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Update Required" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "Limit cannot be more than 24 hrs" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 +#, php-format +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." +msgstr "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "The value should be an integer" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Service" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "500 is the max item limit value you can set" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Uptime" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "You must select Criteria and Modifier" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "'Length' should be in '00:00:00' format" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Memory" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Airtime Version" + +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Disk Space" + +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Manage Users" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "The value has to be numeric" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "New User" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "The value should be less then 2147483648" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "id" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "The value should be less than %s characters" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Username" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "Value cannot be empty" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "First Name" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Auto Switch Off" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Last Name" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Auto Switch On" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "User Type" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Switch Transition Fade (s)" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Previous:" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "enter a time in seconds 00{.000000}" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Next:" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Master Username" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Source Streams" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Master Password" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Master Source" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "Master Source Connection URL" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Show Source" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "Show Source Connection URL" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Scheduled Play" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Master Source Port" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "ON AIR" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Master Source Mount Point" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Listen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Show Source Port" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Station time" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Show Source Mount Point" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Your trial expires in" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "You cannot use same port as Master DJ port." +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "days" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Port %s is not available" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Purchase your copy of Airtime" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Phone:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "My Account" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Station Web Site:" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Username:" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Country:" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Password:" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "City:" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "Type the characters you see in the picture below." -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Station Description:" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Invalid character entered" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Station Logo:" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "Day must be specified" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Send support feedback" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "Time must be specified" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" -msgstr "" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "Must wait at least 1 hour to rebroadcast" -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." -msgstr "" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Use Airtime Authentication:" -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "You have to agree to privacy policy." +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Use Custom Authentication:" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Value is required and can't be empty" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Custom Username" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "Start Time" +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Custom Password" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "End Time" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "Username field cannot be empty." -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "No Show" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "Password field cannot be empty." -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Record from Line In?" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Enabled:" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Rebroadcast?" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Stream Type:" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Service Type:" + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Channels:" -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Use Custom Authentication:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Custom Username" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Stereo" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Custom Password" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Server" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "Username field cannot be empty." +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Port" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "Password field cannot be empty." +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Only numbers are allowed." -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "E-mail" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Password" -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Restore password" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Hardware Audio Output" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Mount Point" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Output Type" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Admin User" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Icecast Vorbis Metadata" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Admin Password" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Stream Label:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Getting information from the server..." -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Artist - Title" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Server cannot be empty." -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Show - Artist - Title" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Port cannot be empty." -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Station name - Show name" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Mount cannot be empty with Icecast server." -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Off Air Metadata" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Import Folder:" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Enable Replay Gain" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Watched Folders:" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Replay Gain Modifier" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Not a valid Directory" + +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Value is required and can't be empty" #: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 msgid "" "'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'%value%' is no valid email address in the basic format local-part@hostname" #: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 msgid "'%value%' does not fit the date format '%format%'" @@ -1236,84 +1703,142 @@ msgstr "'%value%' is not between '%min%' and '%max%', inclusively" msgid "Passwords do not match" msgstr "Passwords do not match" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' does not fit the time format 'HH:mm'" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Record from Line In?" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Date/Time Start:" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Rebroadcast?" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Date/Time End:" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Background Colour:" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Duration:" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Text Colour:" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Timezone:" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "E-mail" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Repeats?" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Restore password" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Cannot create show in the past" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Cancel" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Cannot modify start date/time of the show that is already started" +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Verify Password:" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "End date/time cannot be in the past" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "First name:" -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Cannot have duration < 0m" +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Last name:" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Cannot have duration 00h 00m" +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "Email:" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Cannot have duration greater than 24h" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Mobile Phone:" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Cannot schedule overlapping shows" +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Name:" +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" + +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "Interface Timezone:" + +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Login name is not unique." + +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Hardware Audio Output" + +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Output Type" + +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Icecast Vorbis Metadata" + +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Stream Label:" + +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Artist - Title" + +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Show - Artist - Title" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Untitled Show" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Station name - Show name" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL:" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Off Air Metadata" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Description:" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Enable Replay Gain" + +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Replay Gain Modifier" #: airtime_mvc/application/forms/SoundcloudPreferences.php:16 msgid "Automatically Upload Recorded Shows" @@ -1399,2210 +1924,2359 @@ msgstr "One Shot Sample" msgid "Other" msgstr "Other" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Default License:" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "The work is in the public domain" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "All rights are reserved" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Creative Commons Attribution" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Creative Commons Attribution Noncommercial" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Creative Commons Attribution No Derivative Works" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Creative Commons Attribution Share Alike" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Creative Commons Attribution Noncommercial Non Derivate Works" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Creative Commons Attribution Noncommercial Share Alike" - -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "Interface Timezone:" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "Enable System Emails (Password Reset)" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Reset Password 'From' Email" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Configure Mail Server" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Requires Authentication" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Mail Server" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "Email Address" - -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "Please make sure Admin User and Admin Password for the streaming server are present and correct under Stream -> Additional Options on the System -> Streams page." - -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Untitled Webstream" - -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Webstream saved." - -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Invalid form values." - -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Please enter your user name and password" - -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Wrong username or password provided. Please try again." - -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "Email could not be sent. Check your mail server settings and ensure it has been configured properly." - -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "Given email not found." - -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Rebroadcast of show %s from %s at %s" - -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Download" - -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "User added successfully!" - -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "User updated successfully!" - -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Settings updated successfully!" - -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Page not found" - -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Application error" - -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Recording:" - -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Master Stream" - -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Live Stream" - -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Nothing Scheduled" - -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Current Show:" - -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Current" - -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "You are running the latest version" - -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "New version available: " - -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "This version will soon be obsolete." - -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "This version is no longer supported." - -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Please upgrade to " - -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Add to current playlist" - -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Add to current smart block" - -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Adding 1 Item" - -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Adding %s Items" - -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "You can only add tracks to smart blocks." - -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "You can only add tracks, smart blocks, and webstreams to playlists." - -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "Please select a cursor position on timeline." - -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Edit Metadata" - -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Add to selected show" - -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Select" - -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Select this page" - -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Deselect this page" - -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Deselect all" - -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Are you sure you want to delete the selected item(s)?" - -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "Scheduled" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Default License:" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "Playlist / Block" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "The work is in the public domain" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Bit Rate" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "All rights are reserved" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Sample Rate" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Creative Commons Attribution" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Loading..." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Creative Commons Attribution Noncommercial" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "All" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Creative Commons Attribution No Derivative Works" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Files" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Creative Commons Attribution Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Playlists" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Creative Commons Attribution Noncommercial Non Derivate Works" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Smart Blocks" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Creative Commons Attribution Noncommercial Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Web Streams" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Station Name" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Unknown type: " +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "Default Crossfade Duration (s):" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Are you sure you want to delete the selected item?" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "enter a time in seconds 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Uploading in progress..." +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "Default Fade In (s):" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Retrieving data from the server..." +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "Default Fade Out (s):" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "The soundcloud id for this file is: " +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "There was an error while uploading to soundcloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Disabled" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Error code: " +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Enabled" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Error msg: " +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Default Interface Language" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "Input must be a positive number" +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "Station Timezone" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "Input must be a number" +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "Week Starts On" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "Input must be in the format: yyyy-mm-dd" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Sunday" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "Input must be in the format: hh:mm:ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Monday" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "You are currently uploading files. %sGoing to another screen will cancel the upload process. %sAre you sure you want to leave the page?" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Tuesday" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "Open Media Builder" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Wednesday" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "please put in a time '00:00:00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Thursday" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "please put in a time in seconds '00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Friday" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Your browser does not support playing this file type: " +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Saturday" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Dynamic block is not previewable" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Date Start:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Limit to: " +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Date End:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Playlist saved" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Phone:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "Playlist shuffled" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Station Web Site:" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime is unsure about the status of this file. This can happen when the file is on a remote drive that is unaccessible or the file is in a directory that isn't 'watched' anymore." +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Country:" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "Listener Count on %s: %s" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "City:" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Remind me in 1 week" +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Station Description:" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Remind me never" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Station Logo:" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Yes, help Airtime" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Send support feedback" + +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Promote my station on Sourcefabric.org" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "Image must be one of jpg, jpeg, png, or gif" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "A static smart block will save the criteria and generate the block content immediately. This allows you to edit and view it in the Library before adding it to a show." +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "You have to agree to privacy policy." -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "A dynamic smart block will only save the criteria. The block content will get generated upon adding it to a show. You will not be able to view and edit the content in the Library." +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' does not fit the time format 'HH:mm'" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "The desired block length will not be reached if Airtime cannot find enough unique tracks to match your criteria. Enable this option if you wish to allow tracks to be added multiple times to the smart block." +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Date/Time Start:" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Smart block shuffled" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Date/Time End:" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Smart block generated and criteria saved" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Duration:" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Smart block saved" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Timezone:" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Processing..." +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Repeats?" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Choose Storage Folder" +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Cannot create show in the past" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Choose Folder to Watch" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "Cannot modify start date/time of the show that is already started" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Are you sure you want to change the storage folder?\nThis will remove the files from your Airtime library!" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "End date/time cannot be in the past" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Manage Media Folders" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Cannot have duration < 0m" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Are you sure you want to remove the watched folder?" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Cannot have duration 00h 00m" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "This path is currently not accessible." +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Cannot have duration greater than 24h" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "Some stream types require extra configuration. Details about enabling %sAAC+ Support%s or %sOpus Support%s are provided." +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Untitled Show" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Connected to the streaming server" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Search Users:" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "The stream is disabled" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "DJs:" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Can not connect to the streaming server" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Confirm new password" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "If Airtime is behind a router or firewall, you may need to configure port forwarding and this field information will be incorrect. In this case you will need to manually update this field so it shows the correct host/port/mount that your DJ's need to connect to. The allowed range is between 1024 and 49151." +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "Password confirmation does not match your password." -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "For more details, please read the %sAirtime Manual%s" +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Get new password" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Check this option to enable metadata for OGG streams (stream metadata is the track title, artist, and show name that is displayed in an audio player). VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that has metadata information enabled: they will disconnect from the stream after every song. If you are using an OGG stream and your listeners do not require support for these audio players, then feel free to enable this option." +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "User Type:" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Check this box to automatically switch off Master/Show source upon source disconnection." +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Guest" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Check this box to automatically switch on Master/Show source upon source connection." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "DJ" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "If your Icecast server expects a username of 'source', this field can be left blank." +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Program Manager" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "If your live streaming client does not ask for a username, this field should be 'source'." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Admin" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "If you change the username or password values for an enabled stream the playout engine will be rebooted and your listeners will hear silence for 5-10 seconds. Changing the following fields will NOT cause a reboot: Stream Label (Global Settings), and Switch Transition Fade(s), Master Username, and Master Password (Input Stream Settings). If Airtime is recording, and if the change causes a playout engine restart, the recording will be interrupted." +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "ISRC Number:" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "This is the admin username and password for Icecast/SHOUTcast to get listener statistics." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Show:" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "Warning: You cannot change this field while the show is currently playing" +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "All My Shows:" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "No result found" +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "Link:" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "This follows the same security pattern for the shows: only users assigned to the show can connect." +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Repeat Type:" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Specify custom authentication which will work only for this show." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "weekly" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "The show instance doesn't exist anymore!" +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "every 2 weeks" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "Warning: Shows cannot be re-linked" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "every 3 weeks" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "By linking your repeating shows any media items scheduled in any repeat show will also get scheduled in the other repeat shows" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "every 4 weeks" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "Timezone is set to the station timezone by default. Shows in the calendar will be displayed in your local time defined by the Interface Timezone in your user settings." +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "monthly" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Show" +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Select Days:" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "Show is empty" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "Sun" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1m" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Mon" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5m" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Tue" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10m" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "Wed" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15m" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Thu" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30m" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Fri" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60m" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "Sat" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Retrieving data from the server..." +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "Repeat By:" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "This show has no scheduled content." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "day of the month" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "This show is not completely filled with content." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "day of the week" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "January" +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "No End?" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "February" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "End date must be after start date" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "March" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "Please select a repeat day" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "April" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "Enable System Emails (Password Reset)" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "May" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Reset Password 'From' Email" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "June" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Configure Mail Server" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "July" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Requires Authentication" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "August" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Mail Server" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "September" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "Email Address" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "October" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Select criteria" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "November" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Bit Rate (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "December" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Jan" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Feb" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Mar" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Encoded By" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Apr" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Last Modified" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Jun" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Last Played" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Jul" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Mime" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Aug" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Owner" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Sep" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Replay Gain" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Oct" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Sample Rate (kHz)" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Nov" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Track Number" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Dec" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Uploaded" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "today" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Website" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "day" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Select modifier" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "week" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "contains" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "month" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "does not contain" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Shows longer than their scheduled time will be cut off by a following show." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "is" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Cancel Current Show?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "is not" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Stop recording current show?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "starts with" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "Ok" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "ends with" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Contents of Show" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "is greater than" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Remove all content?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "is less than" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Delete selected item(s)?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "is in the range" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Start" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "hours" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "End" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "minutes" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Duration" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "items" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Show Empty" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Set smart block type:" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Recording From Line In" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Static" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Track preview" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Dynamic" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Cannot schedule outside a show." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Allow Repeat Tracks:" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Moving 1 Item" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Limit to" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Moving %s Items" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Generate playlist content and save criteria" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "Fade Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Generate" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "Cue Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Shuffle playlist content" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "Waveform features are available in a browser supporting the Web Audio API" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "Limit cannot be empty or smaller than 0" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Select all" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "Limit cannot be more than 24 hrs" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Select none" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "The value should be an integer" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Remove overbooked tracks" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "500 is the max item limit value you can set" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Remove selected scheduled items" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "You must select Criteria and Modifier" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Jump to the current playing track" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "'Length' should be in '00:00:00' format" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Cancel current show" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Open library to add or remove content" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "The value has to be numeric" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Add / Remove Content" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "The value should be less then 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "in use" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "The value should be less than %s characters" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Disk" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "Value cannot be empty" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Look in" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Auto Switch Off" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Open" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Auto Switch On" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "Guests can do the following:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Switch Transition Fade (s)" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "View schedule" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "enter a time in seconds 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "View show content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Master Username" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "DJs can do the following:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Master Password" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Manage assigned show content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "Master Source Connection URL" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Import media files" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "Show Source Connection URL" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Create playlists, smart blocks, and webstreams" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Master Source Port" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Manage their own library content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Master Source Mount Point" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "Progam Managers can do the following:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Show Source Port" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "View and manage show content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Show Source Mount Point" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Schedule shows" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "You cannot use same port as Master DJ port." -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "Manage all library content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Port %s is not available" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Admins can do the following:" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Manage preferences" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Logout" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "Manage users" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "Play" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "Manage watched folders" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "Stop" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "View system status" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "Set Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Access playout history" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "Set Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "View listener stats" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "Cursor" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Show / hide columns" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Fade In" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "From {from} to {to}" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Fade Out" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Audio Player" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "yyyy-mm-dd" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Please enter your user name and password" -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "Wrong username or password provided. Please try again." -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Su" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "Given email not found." -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Mo" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Recording:" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Tu" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Master Stream" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "We" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Live Stream" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Th" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Nothing Scheduled" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Fr" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Current Show:" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Sa" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Current" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Close" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "You are running the latest version" -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Hour" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "New version available: " -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Minute" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "This version will soon be obsolete." -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Done" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "This version is no longer supported." -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Select files" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Please upgrade to " -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Add files to the upload queue and click the start button." +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Add to current playlist" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Status" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Add to current smart block" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Add Files" +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Adding 1 Item" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Stop Upload" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "Adding %s Items" -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Start upload" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "You can only add tracks to smart blocks." -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Add files" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "You can only add tracks, smart blocks, and webstreams to playlists." -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "Uploaded %d/%d files" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "Please select a cursor position on timeline." -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "N/A" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Edit Metadata" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Drag files here." +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Add to selected show" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "File extension error." +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Select" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "File size error." +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Select this page" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "File count error." +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Deselect this page" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Init error." +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Deselect all" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "HTTP Error." +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Are you sure you want to delete the selected item(s)?" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Security error." +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "Scheduled" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Generic error." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "Playlist / Block" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "IO error." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Bit Rate" -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "File: %s" +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Sample Rate" -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d files queued" +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "Loading..." -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "File: %f, size: %s, max file size: %m" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Files" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "Upload URL might be wrong or doesn't exist" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Playlists" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Error: File too large: " +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Smart Blocks" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Error: Invalid file extension: " +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Web Streams" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "Set Default" +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Unknown type: " -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "Create Entry" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Are you sure you want to delete the selected item?" -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "Edit History Record" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Uploading in progress..." -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "Copied %s row%s to the clipboard" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Retrieving data from the server..." -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%sPrint view%sPlease use your browser's print function to print this table. Press escape when finished." +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "The soundcloud id for this file is: " -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "You don't have permission to disconnect source." +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "There was an error while uploading to soundcloud." -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "There is no source connected to this input." +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Error code: " -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "You don't have permission to switch source." +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Error msg: " -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "You are viewing an older version of %s" +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "Input must be a positive number" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "You cannot add tracks to dynamic blocks." +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "Input must be a number" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 -#, php-format -msgid "%s not found" -msgstr "%s not found" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "Input must be in the format: yyyy-mm-dd" -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "You don't have permission to delete selected %s(s)." +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "Input must be in the format: hh:mm:ss.t" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Something went wrong." +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 +#, php-format +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "You can only add tracks to smart block." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "Open Media Builder" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Untitled Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "please put in a time '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Untitled Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "please put in a time in seconds '00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Unknown Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "Your browser does not support playing this file type: " -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "You are not allowed to access this resource." +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Dynamic block is not previewable" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "You are not allowed to access this resource. " +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Limit to: " -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Playlist saved" -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Bad request. no 'mode' parameter passed." +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "Playlist shuffled" -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Bad request. 'mode' parameter is invalid" +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." +msgstr "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Preview" +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "Listener Count on %s: %s" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Add to Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "Remind me in 1 week" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Add to Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Remind me never" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Delete" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Yes, help Airtime" -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Duplicate Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "Image must be one of jpg, jpeg, png, or gif" -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Edit" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." +msgstr "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "View on Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Re-upload to SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Smart block shuffled" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Upload to SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Smart block generated and criteria saved" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "No action available" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Smart block saved" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "You don't have permission to delete selected items." +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "Processing..." -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Could not delete some scheduled files." +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Choose Storage Folder" -#: airtime_mvc/application/controllers/LibraryController.php:404 -#, php-format -msgid "Copy of %s" -msgstr "Copy of %s" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Choose Folder to Watch" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Select cursor" +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Remove cursor" +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Are you sure you want to remove the watched folder?" -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "show does not exist" +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "This path is currently not accessible." -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Preferences updated." +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#, php-format +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Support setting updated." +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Connected to the streaming server" -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Support Feedback" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "The stream is disabled" -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Stream Setting Updated." +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Can not connect to the streaming server" -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "path should be specified" +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Problem with Liquidsoap..." +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "For more details, please read the %sAirtime Manual%s" -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Now Playing" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Add Media" +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Library" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Calendar" +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "System" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Preferences" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Users" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Media Folders" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" +"Warning: You cannot change this field while the show is currently playing" -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Streams" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "No result found" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Listener Stats" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" -msgstr "History" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "Specify custom authentication which will work only for this show." -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Playout History" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "The show instance doesn't exist anymore!" -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "History Templates" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "Warning: Shows cannot be re-linked" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Help" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Getting Started" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." +msgstr "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "User Manual" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Show" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "About" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "Show is empty" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Service" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Uptime" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Memory" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Disk Space" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60m" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "Email / Mail Server Settings" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Retrieving data from the server..." -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "SoundCloud Settings" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "This show has no scheduled content." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Repeat Days:" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "This show is not completely filled with content." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Remove" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "January" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Add" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "February" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "Connection URL: " +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "March" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Input Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "April" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "Master Source Connection URL:" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "May" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Override" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "June" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "OK" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "July" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "RESET" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "August" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "Show Source Connection URL:" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "September" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Required)" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "October" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Register Airtime" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "November" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "December" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Jan" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(for verification purposes only, will not be published)" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "Feb" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Note: Anything larger than 600x600 will be resized." +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "Mar" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Show me what I am sending " +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "Apr" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Terms and Conditions" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "Jun" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Reset password" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "Jul" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Choose folder" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "Aug" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Set" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "Sep" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Current Import Folder:" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "Oct" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "Nov" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Remove watched directory" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "Dec" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "You are not watching any media folders." +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "today" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Stream " +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "day" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Additional Options" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "week" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "month" + +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "The following info will be displayed to listeners in their media player:" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "" +"Shows longer than their scheduled time will be cut off by a following show." -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(Your radio station website)" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Cancel Current Show?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "Stream URL: " +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Stop recording current show?" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Filter History" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "Ok" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Find Shows" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Contents of Show" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Filter By Show:" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Remove all content?" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "%s's Settings" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Delete selected item(s)?" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "End" + +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Duration" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(In order to promote your station, 'Send support feedback' must be enabled)." +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Show Empty" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Sourcefabric Privacy Policy" +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Recording From Line In" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "Choose Show Instance" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Track preview" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "Find" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Cannot schedule outside a show." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Choose Days:" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Moving 1 Item" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Smart Block Options" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Moving %s Items" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "or" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" +msgstr "Fade Editor" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "and" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" +msgstr "Cue Editor" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr " to " +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "" +"Waveform features are available in a browser supporting the Web Audio API" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "files meet the criteria" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Select all" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "file meet the criteria" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Select none" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "Creating File Summary Template" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Remove overbooked tracks" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "Creating Log Sheet Template" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Remove selected scheduled items" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "Add more elements" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Jump to the current playing track" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "Add New Field" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Cancel current show" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "Set Default Template" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "Open library to add or remove content" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "Log Sheet Templates" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "in use" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "No Log Sheet Templates" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Disk" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "New Log Sheet Template" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Look in" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "File Summary Templates" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Open" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "No File Summary Templates" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "Guests can do the following:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "New File Summary Template" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "View schedule" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "New" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "View show content" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "New Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "DJs can do the following:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "New Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "Manage assigned show content" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "New Webstream" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Import media files" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "View / edit description" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Create playlists, smart blocks, and webstreams" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "Stream URL:" +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "Manage their own library content" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Default Length:" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "Progam Managers can do the following:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "No webstream" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "View and manage show content" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Schedule shows" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Global Settings" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "Manage all library content" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "dB" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "Admins can do the following:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Output Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Manage preferences" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "File import in progress..." +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "Manage users" + +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "Manage watched folders" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Advanced Search Options" +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "View system status" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "previous" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Access playout history" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "play" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "View listener stats" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "pause" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Show / hide columns" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "next" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "From {from} to {to}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "stop" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "mute" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "yyyy-mm-dd" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "unmute" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "hh:mm:ss.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "max volume" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Update Required" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "Su" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "To play the media you will need to either update your browser to a recent version or update your %sFlash plugin%s." +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Mo" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Length:" +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Tu" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Sample Rate:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "We" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "Isrc Number:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Th" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "File Path:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Fr" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Web Stream" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "Sa" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Dynamic Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Hour" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Static Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Minute" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Audio Track" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Done" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Playlist Contents: " +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Select files" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Static Smart Block Contents: " +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "Add files to the upload queue and click the start button." -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Dynamic Smart Block Criteria: " +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Add Files" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Limit to " +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Stop Upload" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Listener Count Over Time" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Start upload" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 -#, php-format -msgid "Welcome to %s!" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Add files" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "" +msgid "Uploaded %d/%d files" +msgstr "Uploaded %d/%d files" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Begin by adding your files to the library using the 'Add Media' menu button. You can drag and drop your files to this window too." +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "N/A" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Create a show by going to 'Calendar' in the menu bar, and then clicking the '+ Show' icon. This can be either a one-time or repeating show. Only admins and program managers can add shows." +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Drag files here." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Add media to the show by going to your show in the Schedule calendar, left-clicking on it and selecting 'Add / Remove Content'" +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "File extension error." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Select your media from the left pane and drag them to your show in the right pane." +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "File size error." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "Then you're good to go!" +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "File count error." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "For more detailed help, read the %suser manual%s." +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Init error." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Share" +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "HTTP Error." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Select stream:" +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Security error." + +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Generic error." + +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "IO error." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "" +msgid "File: %s" +msgstr "File: %s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "" +msgid "%d files queued" +msgstr "%d files queued" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "New password" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "File: %f, size: %s, max file size: %m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Please enter and confirm your new password in the fields below." +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "Upload URL might be wrong or doesn't exist" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Please enter your account e-mail address. You will receive a link to create a new password via e-mail." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Error: File too large: " -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "Email sent" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "Error: Invalid file extension: " -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "An email has been sent" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "Create Entry" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Back to login screen" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "Edit History Record" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "Copied %s row%s to the clipboard" + +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Previous:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Next:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Source Streams" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Master Source" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Preview" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Show Source" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Select cursor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Scheduled Play" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Remove cursor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "ON AIR" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "show does not exist" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Listen" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Preferences updated." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Station time" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Support setting updated." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Your trial expires in" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Stream Setting Updated." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "path should be specified" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "My Account" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Problem with Liquidsoap..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Manage Users" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Page not found" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "New User" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Application error" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "id" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s not found" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "First Name" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Something went wrong." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Last Name" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Add to Playlist" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "User Type" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Add to Smart Block" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "Log Sheet" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Download" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "File Summary" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Duplicate Playlist" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "Show Summary" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "Soundcloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Zend Framework Default Application" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "No action available" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Page not found!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "You don't have permission to delete selected items." -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "Looks like the page you were looking for doesn't exist!" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "Could not delete some scheduled files." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Expand Static Block" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Copy of %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Expand Dynamic Block" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Untitled Webstream" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Empty smart block" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Webstream saved." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Empty playlist" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Invalid form values." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "Empty playlist content" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "You don't have permission to disconnect source." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "Clear" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "There is no source connected to this input." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Shuffle playlist" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "You don't have permission to switch source." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Save playlist" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "User added successfully!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Playlist crossfade" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "User updated successfully!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Fade in: " +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "Settings updated successfully!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Fade out: " +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Rebroadcast of show %s from %s at %s" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "No open playlist" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." +msgstr "" +"Please make sure Admin User and Admin Password for the streaming server are " +"present and correct under Stream -> Additional Options on the System -> " +"Streams page." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "Empty smart block content" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "You are not allowed to access this resource." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "You are not allowed to access this resource. " -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "No open smart block" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "File does not exist in Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "Show Waveform" +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "File does not exist in Airtime" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Cue In: " +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "File doesn't exist in Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Bad request. no 'mode' parameter passed." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Cue Out: " +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Bad request. 'mode' parameter is invalid" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Original Length:" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "You are viewing an older version of %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Add this show" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "You cannot add tracks to dynamic blocks." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Update show" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "You don't have permission to delete selected %s(s)." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "What" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "You can only add tracks to smart block." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "When" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Untitled Playlist" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Live Stream Input" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Untitled Smart Block" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Record & Rebroadcast" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Unknown Playlist" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Who" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "Cue in and cue out are null." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Style" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "Can't set cue out to be greater than file length." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Rebroadcast of %s from %s" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "Can't set cue in to be larger than cue out." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Select Country" +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Can't set cue out to be smaller than cue in." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3649,43 +4323,26 @@ msgstr "Invalid webstream - This appears to be a file download." msgid "Unrecognized stream type: %s" msgstr "Unrecognized stream type: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s is already watched." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s contains nested watched directory: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s is nested within existing watched directory: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s is not a valid directory." - -#: airtime_mvc/application/models/MusicDir.php:232 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s is already set as the current storage dir or in the watched folders list" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " -#: airtime_mvc/application/models/MusicDir.php:386 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s is already set as the current storage dir or in the watched folders list." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Airtime Password Reset" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s doesn't exist in the watched list." +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Select Country" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3700,6 +4357,8 @@ msgid "The schedule you're viewing is out of date! (instance mismatch)" msgstr "The schedule you're viewing is out of date! (instance mismatch)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3714,196 +4373,233 @@ msgstr "You are not allowed to schedule show %s." msgid "You cannot add files to recording shows." msgstr "You cannot add files to recording shows." -#: airtime_mvc/application/models/Scheduler.php:152 +#: airtime_mvc/application/models/Scheduler.php:152 +#, php-format +msgid "The show %s is over and cannot be scheduled." +msgstr "The show %s is over and cannot be scheduled." + +#: airtime_mvc/application/models/Scheduler.php:159 +#, php-format +msgid "The show %s has been previously updated!" +msgstr "The show %s has been previously updated!" + +#: airtime_mvc/application/models/Scheduler.php:178 +msgid "" +"Content in linked shows must be scheduled before or after any one is " +"broadcasted" +msgstr "" +"Content in linked shows must be scheduled before or after any one is " +"broadcasted" + +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 +#: airtime_mvc/application/models/Scheduler.php:216 +#: airtime_mvc/application/models/Scheduler.php:305 +msgid "A selected File does not exist!" +msgstr "A selected File does not exist!" + +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s is already watched." + +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s contains nested watched directory: %s" + +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s is nested within existing watched directory: %s" + +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s is not a valid directory." + +#: airtime_mvc/application/models/MusicDir.php:232 #, php-format -msgid "The show %s is over and cannot be scheduled." -msgstr "The show %s is over and cannot be scheduled." +msgid "" +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s is already set as the current storage dir or in the watched folders list" -#: airtime_mvc/application/models/Scheduler.php:159 +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 #, php-format -msgid "The show %s has been previously updated!" -msgstr "The show %s has been previously updated!" - -#: airtime_mvc/application/models/Scheduler.php:178 msgid "" -"Content in linked shows must be scheduled before or after any one is " -"broadcasted" -msgstr "Content in linked shows must be scheduled before or after any one is broadcasted" - -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." +"%s is already set as the current storage dir or in the watched folders list." msgstr "" +"%s is already set as the current storage dir or in the watched folders list." -#: airtime_mvc/application/models/Scheduler.php:216 -#: airtime_mvc/application/models/Scheduler.php:305 -msgid "A selected File does not exist!" -msgstr "A selected File does not exist!" - -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "Cue in and cue out are null." - -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Can't set cue in to be larger than cue out." +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s doesn't exist in the watched list." -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Can't set cue out to be greater than file length." +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Rebroadcast of %s from %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Can't set cue out to be smaller than cue in." +#: airtime_mvc/application/models/Show.php:180 +msgid "Shows can have a max length of 24 hours." +msgstr "Shows can have a max length of 24 hours." -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." -msgstr "Failed to create 'organize' directory." +#: airtime_mvc/application/models/Show.php:289 +msgid "" +"Cannot schedule overlapping shows.\n" +"Note: Resizing a repeating show affects all of its repeats." +msgstr "" +"Cannot schedule overlapping shows.\n" +"Note: Resizing a repeating show affects all of its repeats." #: airtime_mvc/application/models/StoredFile.php:1017 #, php-format msgid "" "The file was not uploaded, there is %s MB of disk space left and the file " "you are uploading has a size of %s MB." -msgstr "The file was not uploaded, there is %s MB of disk space left and the file you are uploading has a size of %s MB." +msgstr "" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." + +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "can't resize a past show" + +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "Should not overlap shows" + +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." +msgstr "Failed to create 'organize' directory." #: airtime_mvc/application/models/StoredFile.php:1026 msgid "" "This file appears to be corrupted and will not be added to media library." -msgstr "This file appears to be corrupted and will not be added to media library." +msgstr "" +"This file appears to be corrupted and will not be added to media library." #: airtime_mvc/application/models/StoredFile.php:1065 msgid "" "The file was not uploaded, this error can occur if the computer hard drive " "does not have enough disk space or the stor directory does not have correct " "write permissions." -msgstr "The file was not uploaded, this error can occur if the computer hard drive does not have enough disk space or the stor directory does not have correct write permissions." - -#: airtime_mvc/application/models/Show.php:180 -msgid "Shows can have a max length of 24 hours." -msgstr "Shows can have a max length of 24 hours." - -#: airtime_mvc/application/models/Show.php:289 -msgid "" -"Cannot schedule overlapping shows.\n" -"Note: Resizing a repeating show affects all of its repeats." -msgstr "Cannot schedule overlapping shows.\nNote: Resizing a repeating show affects all of its repeats." +msgstr "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/layouts/scripts/login.phtml:24 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Hi %s, \n\nClick this link to reset your password: " +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" +msgstr "" -#: airtime_mvc/application/models/Auth.php:36 +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 #, php-format -msgid "%s Password Reset" +msgid "Promote my station on %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "Record file doesn't exist" - -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "View Recorded File Metadata" - -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Show Content" - -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Remove All Content" - -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Cancel Current Show" - -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" -msgstr "Edit This Instance" - -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Edit Show" - -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Delete This Instance" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Delete This Instance and All Following" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "Permission denied" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Can't drag and drop repeating shows" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Can't move a past show" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Can't move show into past" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Can't move a recorded show less than 1 hour before its rebroadcasts." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "Show was deleted because recorded show does not exist!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Must wait 1 hour to rebroadcast." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" -msgstr "Track" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Played" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "The year %s must be within the range of 1753 - 9999" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s is not a valid date" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s:%s:%s is not a valid time" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Please select an option" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "No Records" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/locale/en_GB/LC_MESSAGES/airtime.po b/airtime_mvc/locale/en_GB/LC_MESSAGES/airtime.po index 73aaaff7c4..804251ebe7 100644 --- a/airtime_mvc/locale/en_GB/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/en_GB/LC_MESSAGES/airtime.po @@ -1,1148 +1,1566 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: -# Daniel James , 2014 -# Daniel James , 2014 +# danielhjames , 2014 +# danielhjames , 2014 # Sourcefabric , 2012 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2015-02-05 10:31+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/airtime/language/en_GB/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-01-29 15:09+0000\n" +"Last-Translator: andrey.podshivalov\n" +"Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/" +"airtime/language/en_GB/)\n" +"Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: en_GB\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Audio Player" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Please select an option" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Logout" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "No Records" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "Play" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "The year %s must be within the range of 1753 - 9999" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "Stop" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s is not a valid date" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Cue In" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s:%s:%s is not a valid time" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "Set Cue In" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Now Playing" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Cue Out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Add Media" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "Set Cue Out" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Library" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "Cursor" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Calendar" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Fade In" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "System" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Fade Out" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Preferences" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "%1$s copyright © %2$s All rights reserved.%3$sMaintained and distributed under the %4$s by %5$s" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Users" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Live stream" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Media Folders" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Enabled:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Streams" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Stream Type:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Support Feedback" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Bit Rate:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Status" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Service Type:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Listener Stats" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Channels:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "History" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Playout History" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "History Templates" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Server" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Help" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Invalid character entered" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Getting Started" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Port" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "User Manual" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Only numbers are allowed." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "About" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Password" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "Record file doesn't exist" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Genre" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "View Recorded File Metadata" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "View on SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Name" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Upload to SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Description" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Re-upload to SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Mount Point" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Show Content" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Username" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Add / Remove Content" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Admin User" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Remove All Content" + +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Cancel Current Show" + +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "Edit This Instance" + +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Edit" + +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Edit Show" + +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Delete" + +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Delete This Instance" + +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Delete This Instance and All Following" + +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "Permission denied" + +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "Can't drag and drop repeating shows" + +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "Can't move a past show" + +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Can't move show into past" + +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Cannot schedule overlapping shows" + +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "Can't move a recorded show less than 1 hour before its rebroadcasts." + +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "Show was deleted because recorded show does not exist!" + +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "Must wait 1 hour to rebroadcast." + +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Title" + +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Creator" + +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Album" + +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Length" + +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Genre" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Mood" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Label" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Composer" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Copyright" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Year" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "Track" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Conductor" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Language" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "Start Time" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "End Time" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Played" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "File import in progress..." + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Advanced Search Options" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Listener Count Over Time" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "New" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "New Playlist" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "New Smart Block" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "New Webstream" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "Empty playlist content" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Admin Password" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "Clear" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Getting information from the server..." +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Shuffle playlist" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Server cannot be empty." +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Shuffle" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Port cannot be empty." +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Save playlist" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Mount cannot be empty with Icecast server." +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 +#: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 +#: airtime_mvc/application/forms/AddUser.php:110 +#: airtime_mvc/application/forms/SupportSettings.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 +msgid "Save" +msgstr "Save" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Playlist crossfade" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "View / edit description" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Description" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Fade in: " + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Fade out: " + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "No open playlist" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Expand Static Block" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Expand Dynamic Block" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Empty smart block" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Empty playlist" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "Show Waveform" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Cue In: " + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(hh:mm:ss.t)" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Cue Out: " + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Original Length:" + +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(ss.t)" + +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "Empty smart block content" + +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "No open smart block" + +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" + +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Welcome to Airtime!" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "" +"Here's how you can get started using Airtime to automate your broadcasts: " + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Select your media from the left pane and drag them to your show in the right " +"pane." + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "Then you're ready to broadcast!" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "For more detailed help, read the %suser manual%s." + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Live stream" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Share" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Select stream:" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "mute" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "unmute" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "All" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" + +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "Stream URL:" + +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Default Length:" + +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "No webstream" -#: airtime_mvc/application/forms/EditAudioMD.php:19 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 msgid "Title:" msgstr "Title:" -#: airtime_mvc/application/forms/EditAudioMD.php:26 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 msgid "Creator:" msgstr "Creator:" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "Album:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "Album:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "Track:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Length:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Sample Rate:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Bit Rate:" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "Track:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Mood:" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 msgid "Genre:" msgstr "Genre:" -#: airtime_mvc/application/forms/EditAudioMD.php:55 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 msgid "Year:" msgstr "Year:" -#: airtime_mvc/application/forms/EditAudioMD.php:67 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 msgid "Label:" msgstr "Label:" -#: airtime_mvc/application/forms/EditAudioMD.php:74 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" + #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 msgid "Composer:" msgstr "Composer:" -#: airtime_mvc/application/forms/EditAudioMD.php:81 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 msgid "Conductor:" msgstr "Conductor:" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Mood:" - -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" - -#: airtime_mvc/application/forms/EditAudioMD.php:105 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 msgid "Copyright:" msgstr "Copyright:" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "ISRC Number:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "Isrc Number:" -#: airtime_mvc/application/forms/EditAudioMD.php:119 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 msgid "Website:" msgstr "Website:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 #: airtime_mvc/application/forms/EditAudioMD.php:126 #: airtime_mvc/application/forms/Login.php:52 #: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 msgid "Language:" msgstr "Language:" -#: airtime_mvc/application/forms/EditAudioMD.php:135 -#: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 -#: airtime_mvc/application/forms/SupportSettings.php:161 -#: airtime_mvc/application/controllers/LocaleController.php:283 -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 -msgid "Save" -msgstr "Save" - -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Cancel" - -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Username:" - -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Password:" - -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Verify Password:" - -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Firstname:" - -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Lastname:" - -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "Email:" - -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Mobile Phone:" - -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" - -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" - -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "User Type:" - -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Guest" - -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "DJ" - -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Program Manager" - -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Admin" - -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Login name is not unique." - -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Background Colour:" - -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Text Colour:" - -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Date Start:" - -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Date End:" - -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Show:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "File Path:" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "All My Shows:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Name:" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "days" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Description:" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "Day must be specified" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Web Stream" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "Time must be specified" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Dynamic Smart Block" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Must wait at least 1 hour to rebroadcast" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Static Smart Block" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Import Folder:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Audio Track" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Watched Folders:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Playlist Contents: " -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Not a valid Directory" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Static Smart Block Contents: " -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Search Users:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Dynamic Smart Block Criteria: " -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "DJs:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Limit to " -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Login" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL:" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Type the characters you see in the picture below." +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "Choose Show Instance" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Station Name" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "No Show" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "Default Crossfade Duration (s):" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "Find" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "enter a time in seconds 0{.0}" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "%s's Settings" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "Default Fade In (s):" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Choose folder" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "Default Fade Out (s):" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Set" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make front-end widgets work.)" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Current Import Folder:" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Disabled" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Add" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Enabled" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Default Interface Language" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Remove watched directory" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "Station Timezone" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "You are not watching any media folders." -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "Week Starts On" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Required)" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Sunday" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Monday" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "Click the box below to promote your station on %sSourcefabric.org%s." -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Tuesday" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(In order to promote your station, 'Send support feedback' must be enabled)." -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Wednesday" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(for verification purposes only, will not be published)" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Thursday" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Note: Anything larger than 600x600 will be resized." -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Friday" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Show me what I am sending " -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Saturday" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Sourcefabric Privacy Policy" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "Link:" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Find Shows" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Repeat Type:" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Filter By Show:" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "weekly" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "Email / Mail Server Settings" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "every 2 weeks" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "SoundCloud Settings" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "every 3 weeks" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Choose Days:" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "every 4 weeks" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Remove" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "monthly" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Stream " -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Select Days:" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Additional Options" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Sun" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "" +"The following info will be displayed to listeners in their media player:" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Mon" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(Your radio station website)" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Tue" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "Stream URL: " -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Wed" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "Connection URL: " -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Thu" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Reset password" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Fri" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Register Airtime" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Sat" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "Repeat By:" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "day of the month" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Terms and Conditions" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "day of the week" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Input Stream Settings" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "No End?" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "Master Source Connection URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "End date must be after start date" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Override" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "Please select a repeat day" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "OK" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Confirm new password" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "RESET" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "Password confirmation does not match your password." +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "Show Source Connection URL:" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Get new password" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Smart Block Options" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Select criteria" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "or" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Album" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "and" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Bit Rate (Kbps)" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr " to " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "files meet the criteria" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Composer" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "file meet the criteria" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Conductor" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Repeat Days:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Copyright" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Filter History" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Creator" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Close" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Encoded By" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Add this show" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Update show" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Label" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "What" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Language" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "When" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Last Modified" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Live Stream Input" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Last Played" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Record & Rebroadcast" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Length" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Who" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Mime" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Style" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Mood" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Start" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Owner" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Stream Settings" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Replay Gain" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Global Settings" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Sample Rate (kHz)" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "dB" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Title" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Output Stream Settings" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Track Number" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Manage Media Folders" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Uploaded" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Zend Framework Default Application" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Website" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Page not found!" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Year" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "Looks like the page you were looking for doesn't exist!" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Select modifier" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "Log Sheet Templates" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "contains" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "No Log Sheet Templates" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "does not contain" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "Set Default" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "is" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "New Log Sheet Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "is not" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "File Summary Templates" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "starts with" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "No File Summary Templates" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "ends with" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "New File Summary Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "is greater than" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "Creating File Summary Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "is less than" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "Creating Log Sheet Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "is in the range" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Name" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "hours" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "Add more elements" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "minutes" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "Add New Field" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "items" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "Set Default Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Set smart block type:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "New password" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Static" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "Please enter and confirm your new password in the fields below." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Dynamic" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Login" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Allow Repeat Tracks:" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." +msgstr "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Limit to" +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." +msgstr "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Generate playlist content and save criteria" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "Email sent" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Generate" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "An email has been sent" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Shuffle playlist content" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Back to login screen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Shuffle" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "Log Sheet" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "Limit cannot be empty or smaller than 0" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "File Summary" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "Limit cannot be more than 24 hrs" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "Show Summary" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "The value should be an integer" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "previous" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "500 is the max item limit value you can set" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "play" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "You must select Criteria and Modifier" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "pause" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "'Length' should be in '00:00:00' format" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "next" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "stop" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "The value has to be numeric" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "max volume" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "The value should be less then 2147483648" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Update Required" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 #, php-format -msgid "The value should be less than %s characters" -msgstr "The value should be less than %s characters" +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." +msgstr "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "Value cannot be empty" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Service" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Auto Switch Off" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Uptime" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Auto Switch On" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Switch Transition Fade (s)" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Memory" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "enter a time in seconds 00{.000000}" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Airtime Version" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Master Username" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Disk Space" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Master Password" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Manage Users" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "Master Source Connection URL" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "New User" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "Show Source Connection URL" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "id" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Master Source Port" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Username" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Master Source Mount Point" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "First Name" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Show Source Port" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Last Name" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Show Source Mount Point" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "User Type" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "You cannot use same port as Master DJ port." +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Previous:" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Port %s is not available" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Next:" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Phone:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Source Streams" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Station Web Site:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Master Source" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Country:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Show Source" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "City:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Scheduled Play" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Station Description:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "ON AIR" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Station Logo:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Listen" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Send support feedback" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Station time" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" -msgstr "Promote my station on %s" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Your trial expires in" -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." -msgstr "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "days" -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "You have to agree to privacy policy." +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Purchase your copy of Airtime" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Value is required and can't be empty" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "My Account" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "Start Time" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Username:" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "End Time" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Password:" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "No Show" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "Type the characters you see in the picture below." -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Record from Line In?" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Invalid character entered" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Rebroadcast?" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "Day must be specified" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "Use %s Authentication:" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "Time must be specified" + +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "Must wait at least 1 hour to rebroadcast" + +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Use Airtime Authentication:" #: airtime_mvc/application/forms/AddShowLiveStream.php:16 msgid "Use Custom Authentication:" @@ -1164,58 +1582,107 @@ msgstr "Username field cannot be empty." msgid "Password field cannot be empty." msgstr "Password field cannot be empty." -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "E-mail" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Enabled:" -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Restore password" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Stream Type:" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Hardware Audio Output" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Service Type:" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Output Type" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Channels:" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Icecast Vorbis Metadata" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Stream Label:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Stereo" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Artist - Title" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Server" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Show - Artist - Title" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Port" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Station name - Show name" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Only numbers are allowed." -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Off Air Metadata" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Password" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Enable Replay Gain" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Replay Gain Modifier" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Mount Point" + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Admin User" + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Admin Password" + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Getting information from the server..." + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Server cannot be empty." + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Port cannot be empty." + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Mount cannot be empty with Icecast server." + +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Import Folder:" + +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Watched Folders:" + +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Not a valid Directory" + +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Value is required and can't be empty" #: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 msgid "" "'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'%value%' is no valid email address in the basic format local-part@hostname" #: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 msgid "'%value%' does not fit the date format '%format%'" @@ -1237,84 +1704,142 @@ msgstr "'%value%' is not between '%min%' and '%max%', inclusively" msgid "Passwords do not match" msgstr "Passwords do not match" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' does not fit the time format 'HH:mm'" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Record from Line In?" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Date/Time Start:" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Rebroadcast?" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Date/Time End:" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Background Colour:" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Duration:" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Text Colour:" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Timezone:" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "E-mail" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Repeats?" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Restore password" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Cannot create show in the past" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Cancel" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Cannot modify start date/time of the show that is already started" +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Verify Password:" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "End date/time cannot be in the past" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Firstname:" -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Cannot have duration < 0m" +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Lastname:" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Cannot have duration 00h 00m" +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "Email:" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Cannot have duration greater than 24h" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Mobile Phone:" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Cannot schedule overlapping shows" +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" + +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" + +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "Interface Timezone:" + +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Login name is not unique." + +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Hardware Audio Output" + +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Output Type" + +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Icecast Vorbis Metadata" + +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Stream Label:" + +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Artist - Title" + +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Show - Artist - Title" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Name:" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Station name - Show name" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Untitled Show" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Off Air Metadata" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL:" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Enable Replay Gain" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Description:" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Replay Gain Modifier" #: airtime_mvc/application/forms/SoundcloudPreferences.php:16 msgid "Automatically Upload Recorded Shows" @@ -1380,2230 +1905,2377 @@ msgstr "Demo" msgid "Work in progress" msgstr "Work in progress" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "Stem" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "Loop" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "Sound Effect" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "One Shot Sample" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "Other" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Default License:" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "The work is in the public domain" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "All rights are reserved" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Creative Commons Attribution" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Creative Commons Attribution Noncommercial" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Creative Commons Attribution No Derivative Works" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Creative Commons Attribution Share Alike" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Creative Commons Attribution Noncommercial Non Derivate Works" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Creative Commons Attribution Noncommercial Share Alike" - -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "Interface Timezone:" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "Enable System Emails (Password Reset)" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Reset Password 'From' Email" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Configure Mail Server" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Requires Authentication" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Mail Server" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "Email Address" - -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "Please make sure admin user/password is correct on System->Streams page." - -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Untitled Webstream" - -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Webstream saved." - -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Invalid form values." - -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Please enter your user name and password" - -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Wrong username or password provided. Please try again." - -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "Email could not be sent. Check your mail server settings and ensure it has been configured properly." - -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "Given email not found." - -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Rebroadcast of show %s from %s at %s" - -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Download" - -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "User added successfully!" - -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "User updated successfully!" - -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Settings updated successfully!" - -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Page not found" - -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Application error" - -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Recording:" - -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Master Stream" - -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Live Stream" - -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Nothing Scheduled" - -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Current Show:" - -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Current" - -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "You are running the latest version" - -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "New version available: " - -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "This version will soon be obsolete." - -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "This version is no longer supported." - -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Please upgrade to " - -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Add to current playlist" - -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Add to current smart block" - -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Adding 1 Item" - -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Adding %s Items" - -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "You can only add tracks to smart blocks." - -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "You can only add tracks, smart blocks, and webstreams to playlists." - -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "Please select a cursor position on timeline." - -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Edit Metadata" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "Stem" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Add to selected show" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "Loop" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Select" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "Sound Effect" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Select this page" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "One Shot Sample" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Deselect this page" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "Other" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Deselect all" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Default License:" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Are you sure you want to delete the selected item(s)?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "The work is in the public domain" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "Scheduled" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "All rights are reserved" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "Playlist / Block" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Creative Commons Attribution" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Bit Rate" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Creative Commons Attribution Noncommercial" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Sample Rate" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Creative Commons Attribution No Derivative Works" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Loading..." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Creative Commons Attribution Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "All" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Creative Commons Attribution Noncommercial Non Derivate Works" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Files" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Creative Commons Attribution Noncommercial Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Playlists" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Station Name" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Smart Blocks" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "Default Crossfade Duration (s):" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Web Streams" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "enter a time in seconds 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Unknown type: " +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "Default Fade In (s):" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Are you sure you want to delete the selected item?" +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "Default Fade Out (s):" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Uploading in progress..." +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Retrieving data from the server..." +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Disabled" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "The SoundCloud id for this file is: " +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Enabled" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "There was an error while uploading to SoundCloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Default Interface Language" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Error code: " +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "Station Timezone" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Error msg: " +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "Week Starts On" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "Input must be a positive number" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Sunday" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "Input must be a number" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Monday" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "Input must be in the format: yyyy-mm-dd" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Tuesday" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "Input must be in the format: hh:mm:ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Wednesday" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "You are currently uploading files. %sGoing to another screen will cancel the upload process. %sAre you sure you want to leave the page?" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Thursday" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "Open Media Builder" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Friday" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "please put in a time '00:00:00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Saturday" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "please put in a time in seconds '00 (.0)'" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Date Start:" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Your browser does not support playing this file type: " +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Date End:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Dynamic block is not previewable" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Phone:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Limit to: " +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Station Web Site:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Playlist saved" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Country:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "Playlist shuffled" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "City:" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime is unsure about the status of this file. This can happen when the file is on a remote drive that is unaccessible or the file is in a directory that isn't 'watched' anymore." +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Station Description:" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "Listener Count on %s: %s" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Station Logo:" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Remind me in 1 week" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Send support feedback" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Remind me never" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Promote my station on Sourcefabric.org" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Yes, help Airtime" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "Image must be one of jpg, jpeg, png, or gif" +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "You have to agree to privacy policy." -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "A static smart block will save the criteria and generate the block content immediately. This allows you to edit and view it in the Library before adding it to a show." +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' does not fit the time format 'HH:mm'" -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "A dynamic smart block will only save the criteria. The block content will get generated upon adding it to a show. You will not be able to view and edit the content in the Library." +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Date/Time Start:" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "The desired block length will not be reached if Airtime cannot find enough unique tracks to match your criteria. Enable this option if you wish to allow tracks to be added multiple times to the smart block." +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Date/Time End:" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Smart block shuffled" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Duration:" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Smart block generated and criteria saved" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Timezone:" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Smart block saved" +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Repeats?" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Processing..." +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Cannot create show in the past" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Choose Storage Folder" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "Cannot modify start date/time of the show that is already started" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Choose Folder to Watch" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "End date/time cannot be in the past" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Are you sure you want to change the storage folder?\nThis will remove the files from your Airtime library!" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Cannot have duration < 0m" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Manage Media Folders" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Cannot have duration 00h 00m" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Are you sure you want to remove the watched folder?" +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Cannot have duration greater than 24h" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "This path is currently not accessible." +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Untitled Show" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "Some stream types require extra configuration. Details about enabling %sAAC+ Support%s or %sOpus Support%s are provided." +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Search Users:" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Connected to the streaming server" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "DJs:" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "The stream is disabled" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Confirm new password" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Can not connect to the streaming server" +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "Password confirmation does not match your password." -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "If Airtime is behind a router or firewall, you may need to configure port forwarding and this field information will be incorrect. In this case you will need to manually update this field so it shows the correct host/port/mount that your DJ's need to connect to. The allowed range is between 1024 and 49151." +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Get new password" -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "For more details, please read the %sAirtime Manual%s" +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "User Type:" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Check this option to enable metadata for OGG streams (stream metadata is the track title, artist, and show name that is displayed in an audio player). VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that has metadata information enabled: they will disconnect from the stream after every song. If you are using an OGG stream and your listeners do not require support for these audio players, then feel free to enable this option." +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Guest" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Check this box to automatically switch off Master/Show source upon source disconnection." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "DJ" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Check this box to automatically switch on Master/Show source upon source connection." +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Program Manager" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "If your Icecast server expects a username of 'source', this field can be left blank." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Admin" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "If your live streaming client does not ask for a username, this field should be 'source'." +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "ISRC Number:" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "If you change the username or password values for an enabled stream the playout engine will be rebooted and your listeners will hear silence for 5-10 seconds. Changing the following fields will NOT cause a reboot: Stream Label (Global Settings), and Switch Transition Fade(s), Master Username, and Master Password (Input Stream Settings). If Airtime is recording, and if the change causes a playout engine restart, the recording will be interrupted." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Show:" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "This is the admin username and password for Icecast/SHOUTcast to get listener statistics." +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "All My Shows:" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "Warning: You cannot change this field while the show is currently playing" +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "Link:" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "No result found" +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Repeat Type:" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "This follows the same security pattern for the shows: only users assigned to the show can connect." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "weekly" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Specify custom authentication which will work only for this show." +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "every 2 weeks" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "The show instance doesn't exist anymore!" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "every 3 weeks" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "Warning: Shows cannot be re-linked" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "every 4 weeks" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "By linking your repeating shows any media items scheduled in any repeat show will also get scheduled in the other repeat shows" +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "monthly" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "Timezone is set to the station timezone by default. Shows in the calendar will be displayed in your local time defined by the Interface Timezone in your user settings." +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Select Days:" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Show" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "Sun" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "Show is empty" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Mon" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1m" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Tue" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5m" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "Wed" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10m" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Thu" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15m" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Fri" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30m" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "Sat" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60m" +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "Repeat By:" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Retrieving data from the server..." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "day of the month" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "This show has no scheduled content." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "day of the week" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "This show is not completely filled with content." +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "No End?" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "January" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "End date must be after start date" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "February" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "Please select a repeat day" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "March" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "Enable System Emails (Password Reset)" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "April" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Reset Password 'From' Email" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "May" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Configure Mail Server" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "June" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Requires Authentication" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "July" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Mail Server" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "August" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "Email Address" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "September" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Select criteria" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "October" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Bit Rate (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "November" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "December" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Jan" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Feb" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Encoded By" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Mar" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Last Modified" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Apr" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Last Played" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Jun" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Mime" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Jul" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Owner" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Aug" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Replay Gain" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Sep" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Sample Rate (kHz)" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Oct" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Track Number" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Nov" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Uploaded" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Dec" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Website" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "today" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Select modifier" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "day" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "contains" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "week" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "does not contain" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "month" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "is" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Shows longer than their scheduled time will be cut off by a following show." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "is not" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Cancel Current Show?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "starts with" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Stop recording current show?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "ends with" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "Ok" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "is greater than" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Contents of Show" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "is less than" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Remove all content?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "is in the range" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Delete selected item(s)?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "hours" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Start" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "minutes" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "End" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "items" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Duration" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Set smart block type:" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Show Empty" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Static" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Recording From Line In" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Dynamic" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Track preview" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Allow Repeat Tracks:" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Cannot schedule outside a show." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Limit to" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Moving 1 Item" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Generate playlist content and save criteria" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Moving %s Items" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Generate" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "Fade Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Shuffle playlist content" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "Cue Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "Limit cannot be empty or smaller than 0" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "Waveform features are available in a browser supporting the Web Audio API" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "Limit cannot be more than 24 hrs" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Select all" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "The value should be an integer" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Select none" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "500 is the max item limit value you can set" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Remove overbooked tracks" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "You must select Criteria and Modifier" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Remove selected scheduled items" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "'Length' should be in '00:00:00' format" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Jump to the current playing track" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Cancel current show" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "The value has to be numeric" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Open library to add or remove content" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "The value should be less then 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Add / Remove Content" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "The value should be less than %s characters" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "in use" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "Value cannot be empty" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Disk" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Auto Switch Off" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Look in" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Auto Switch On" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Open" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Switch Transition Fade (s)" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "Guests can do the following:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "enter a time in seconds 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "View schedule" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Master Username" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "View show content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Master Password" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "DJs can do the following:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "Master Source Connection URL" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Manage assigned show content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "Show Source Connection URL" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Import media files" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Master Source Port" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Create playlists, smart blocks, and webstreams" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Master Source Mount Point" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Manage their own library content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Show Source Port" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "Progam Managers can do the following:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Show Source Mount Point" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "View and manage show content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "You cannot use same port as Master DJ port." -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Schedule shows" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Port %s is not available" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "Manage all library content" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Admins can do the following:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Logout" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Manage preferences" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "Play" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "Manage users" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "Stop" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "Manage watched folders" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "Set Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "View system status" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "Set Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Access playout history" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "Cursor" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "View listener stats" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Fade In" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Show / hide columns" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Fade Out" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "From {from} to {to}" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Audio Player" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Please enter your user name and password" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "yyyy-mm-dd" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "Wrong username or password provided. Please try again." -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "Given email not found." -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Su" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Recording:" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Mo" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Master Stream" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Tu" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Live Stream" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "We" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Nothing Scheduled" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Th" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Current Show:" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Fr" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Current" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Sa" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "You are running the latest version" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Close" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "New version available: " -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Hour" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "This version will soon be obsolete." -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Minute" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "This version is no longer supported." -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Done" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Please upgrade to " -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Select files" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Add to current playlist" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Add files to the upload queue and click the start button." +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Add to current smart block" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Status" +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Adding 1 Item" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Add Files" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "Adding %s Items" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Stop Upload" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "You can only add tracks to smart blocks." -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Start upload" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "You can only add tracks, smart blocks, and webstreams to playlists." -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Add files" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "Please select a cursor position on timeline." -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "Uploaded %d/%d files" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Edit Metadata" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "N/A" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Add to selected show" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Drag files here." +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Select" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "File extension error." +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Select this page" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "File size error." +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Deselect this page" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "File count error." +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Deselect all" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Init error." +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Are you sure you want to delete the selected item(s)?" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "HTTP Error." +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "Scheduled" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Security error." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "Playlist / Block" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Generic error." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Bit Rate" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "IO error." +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Sample Rate" -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "File: %s" +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "Loading..." -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d files queued" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Files" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "File: %f, size: %s, max file size: %m" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Playlists" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "Upload URL might be wrong or doesn't exist" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Smart Blocks" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Error: File too large: " +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Web Streams" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Error: Invalid file extension: " +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Unknown type: " -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "Set Default" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Are you sure you want to delete the selected item?" -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "Create Entry" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Uploading in progress..." -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "Edit History Record" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Retrieving data from the server..." -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "Copied %s row%s to the clipboard" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "The SoundCloud id for this file is: " -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%sPrint view%sPlease use your browser's print function to print this table. Press the Escape key when finished." +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "There was an error while uploading to SoundCloud." -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "You don't have permission to disconnect source." +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Error code: " -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "There is no source connected to this input." +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Error msg: " -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "You don't have permission to switch source." +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "Input must be a positive number" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "You are viewing an older version of %s" +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "Input must be a number" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "You cannot add tracks to dynamic blocks." +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "Input must be in the format: yyyy-mm-dd" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 -#, php-format -msgid "%s not found" -msgstr "%s not found" +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "Input must be in the format: hh:mm:ss.t" -#: airtime_mvc/application/controllers/PlaylistController.php:144 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "You don't have permission to delete selected %s(s)." +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Something went wrong." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "Open Media Builder" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "You can only add tracks to smart block." +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "please put in a time '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Untitled Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "please put in a time in seconds '00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Untitled Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "Your browser does not support playing this file type: " -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Unknown Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Dynamic block is not previewable" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "You are not allowed to access this resource." +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Limit to: " -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "You are not allowed to access this resource. " +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Playlist saved" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "Playlist shuffled" + +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." +msgstr "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." + +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 #, php-format -msgid "File does not exist in %s" -msgstr "File does not exist in %s" +msgid "Listener Count on %s: %s" +msgstr "Listener Count on %s: %s" -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Bad request. no 'mode' parameter passed." +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "Remind me in 1 week" -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Bad request. 'mode' parameter is invalid" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Remind me never" -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Preview" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Yes, help Airtime" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Add to Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "Image must be one of jpg, jpeg, png, or gif" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Add to Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." +msgstr "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Delete" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Duplicate Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Edit" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Smart block shuffled" -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Smart block generated and criteria saved" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "View on SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Smart block saved" -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Re-upload to SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "Processing..." -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Upload to SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Choose Storage Folder" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "No action available" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Choose Folder to Watch" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "You don't have permission to delete selected items." +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Could not delete some scheduled files." +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Are you sure you want to remove the watched folder?" -#: airtime_mvc/application/controllers/LibraryController.php:404 -#, php-format -msgid "Copy of %s" -msgstr "Copy of %s" +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "This path is currently not accessible." -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Select cursor" +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#, php-format +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Remove cursor" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Connected to the streaming server" -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "show does not exist" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "The stream is disabled" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Preferences updated." +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Can not connect to the streaming server" -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Support setting updated." +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Support Feedback" +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "For more details, please read the %sAirtime Manual%s" -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Stream Setting Updated." +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "path should be specified" +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Problem with Liquidsoap..." +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Now Playing" +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Add Media" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Library" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Calendar" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "System" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" +"Warning: You cannot change this field while the show is currently playing" -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Preferences" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "No result found" -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Users" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Media Folders" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "Specify custom authentication which will work only for this show." -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Streams" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "The show instance doesn't exist anymore!" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Listener Stats" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "Warning: Shows cannot be re-linked" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" -msgstr "History" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Playout History" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." +msgstr "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "History Templates" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Show" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Help" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "Show is empty" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Getting Started" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1m" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "User Manual" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5m" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "About" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Service" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Uptime" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Memory" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Retrieving data from the server..." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "%s Version" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "This show has no scheduled content." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Disk Space" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "This show is not completely filled with content." + +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "January" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "Email / Mail Server Settings" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "February" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "SoundCloud Settings" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "March" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Repeat Days:" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "April" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Remove" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "May" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Add" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "June" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "Connection URL: " +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "July" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Input Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "August" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "Master Source Connection URL:" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "September" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Override" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "October" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "OK" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "November" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "RESET" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "December" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "Show Source Connection URL:" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Jan" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Required)" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "Feb" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Register Airtime" +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "Mar" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "Help %1$s improve by letting us know how you are using it. This info will be collected regularly in order to enhance your user experience.%2$sClick 'Yes, help %1$s' and we'll make sure the features you use are constantly improving." +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "Apr" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "Click the box below to promote your station on %s." +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "Jun" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(for verification purposes only, will not be published)" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "Jul" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Note: Anything larger than 600x600 will be resized." +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "Aug" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Show me what I am sending " +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "Sep" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Terms and Conditions" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "Oct" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Reset password" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "Nov" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Choose folder" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "Dec" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Set" +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "today" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Current Import Folder:" +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "day" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "Rescan watched directory (This is useful if it is a network mount and may be out of sync with %s)" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "week" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Remove watched directory" +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "month" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "You are not watching any media folders." +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 +msgid "" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "" +"Shows longer than their scheduled time will be cut off by a following show." -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Stream " +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Cancel Current Show?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Additional Options" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Stop recording current show?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "The following info will be displayed to listeners in their media player:" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "Ok" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(Your radio station website)" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Contents of Show" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "Stream URL: " +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Remove all content?" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Filter History" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Delete selected item(s)?" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Find Shows" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "End" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Filter By Show:" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Duration" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "%s's Settings" +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Show Empty" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "Help %s improve by letting %s know how you are using it. This information will be collected regularly in order to enhance your user experience.%sClick the 'Send support feedback' box and we'll make sure the features you use are constantly improving." +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Recording From Line In" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(In order to promote your station, 'Send support feedback' must be enabled)." +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Track preview" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Sourcefabric Privacy Policy" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Cannot schedule outside a show." -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "Choose Show Instance" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Moving 1 Item" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "Find" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Moving %s Items" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Choose Days:" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" +msgstr "Fade Editor" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Smart Block Options" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" +msgstr "Cue Editor" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "or" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "" +"Waveform features are available in a browser supporting the Web Audio API" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "and" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Select all" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr " to " +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Select none" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "files meet the criteria" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Remove overbooked tracks" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "file meet the criteria" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Remove selected scheduled items" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "Creating File Summary Template" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Jump to the current playing track" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "Creating Log Sheet Template" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Cancel current show" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "Add more elements" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "Open library to add or remove content" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "Add New Field" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "in use" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "Set Default Template" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Disk" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "Log Sheet Templates" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Look in" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "No Log Sheet Templates" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Open" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "New Log Sheet Template" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "Guests can do the following:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "File Summary Templates" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "View schedule" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "No File Summary Templates" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "View show content" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "New File Summary Template" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "DJs can do the following:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "New" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "Manage assigned show content" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "New Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Import media files" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "New Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Create playlists, smart blocks, and webstreams" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "New Webstream" +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "Manage their own library content" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "View / edit description" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "Progam Managers can do the following:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "Stream URL:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "View and manage show content" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Default Length:" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Schedule shows" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "No webstream" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "Manage all library content" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "Admins can do the following:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Global Settings" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Manage preferences" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "dB" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "Manage users" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Output Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "Manage watched folders" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "File import in progress..." +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "View system status" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Advanced Search Options" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Access playout history" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "previous" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "View listener stats" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "play" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Show / hide columns" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "pause" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "From {from} to {to}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "next" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "stop" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "yyyy-mm-dd" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "mute" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "hh:mm:ss.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "unmute" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "max volume" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "Su" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Update Required" +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Mo" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "To play the media you will need to either update your browser to a recent version or update your %sFlash plugin%s." +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Tu" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Length:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "We" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Sample Rate:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Th" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "Isrc Number:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Fr" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "File Path:" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "Sa" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Web Stream" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Hour" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Dynamic Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Minute" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Static Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Done" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Audio Track" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Select files" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Playlist Contents: " +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "Add files to the upload queue and click the start button." -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Static Smart Block Contents: " +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Add Files" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Dynamic Smart Block Criteria: " +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Stop Upload" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Limit to " +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Start upload" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Listener Count Over Time" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Add files" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Welcome to %s!" -msgstr "Welcome to %s!" +msgid "Uploaded %d/%d files" +msgstr "Uploaded %d/%d files" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 -#, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "Here's how you can get started using %s to automate your broadcasts: " +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "N/A" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Begin by adding your files to the library using the 'Add Media' menu button. You can drag and drop your files to this window too." +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Drag files here." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Create a show by going to 'Calendar' in the menu bar, and then clicking the '+ Show' icon. This can be either a one-time or repeating show. Only admins and program managers can add shows." +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "File extension error." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Add media to the show by going to your show in the Schedule calendar, left-clicking on it and selecting 'Add / Remove Content'" +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "File size error." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Select your media from the left pane and drag them to your show in the right pane." +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "File count error." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "Then you're ready to broadcast!" +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Init error." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "For more detailed help, read the %suser manual%s." +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "HTTP Error." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Share" +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Security error." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Select stream:" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Generic error." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "IO error." + +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "%1$s %2$s, the open radio software for scheduling and remote station management." +msgid "File: %s" +msgstr "File: %s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "%1$s %2$s is distributed under the %3$s" +msgid "%d files queued" +msgstr "%d files queued" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "New password" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "File: %f, size: %s, max file size: %m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Please enter and confirm your new password in the fields below." +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "Upload URL might be wrong or doesn't exist" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Please enter your account e-mail address. You will receive a link to create a new password via e-mail." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Error: File too large: " -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "Email sent" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "Error: Invalid file extension: " -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "An email has been sent" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "Create Entry" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Back to login screen" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "Edit History Record" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 #, php-format -msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." -msgstr "Welcome to the %s demo! You can log in using the username 'admin' and the password 'admin'." - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Previous:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Next:" +msgid "Copied %s row%s to the clipboard" +msgstr "Copied %s row%s to the clipboard" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Source Streams" +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#, php-format +msgid "" +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." +msgstr "" +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press the Escape key when finished." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Master Source" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Preview" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Show Source" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Select cursor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Scheduled Play" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Remove cursor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "ON AIR" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "show does not exist" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Listen" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Preferences updated." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Station time" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Support setting updated." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Your trial expires in" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Stream Setting Updated." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "Purchase your copy of %s" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "path should be specified" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "My Account" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Problem with Liquidsoap..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Manage Users" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Page not found" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "New User" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Application error" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "id" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s not found" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "First Name" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Something went wrong." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Last Name" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Add to Playlist" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "User Type" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Add to Smart Block" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "Log Sheet" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Download" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "File Summary" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Duplicate Playlist" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "Show Summary" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "SoundCloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Zend Framework Default Application" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "No action available" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Page not found!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "You don't have permission to delete selected items." -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "Looks like the page you were looking for doesn't exist!" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "Could not delete some scheduled files." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Expand Static Block" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Copy of %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Expand Dynamic Block" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Untitled Webstream" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Empty smart block" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Webstream saved." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Empty playlist" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Invalid form values." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "Empty playlist content" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "You don't have permission to disconnect source." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "Clear" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "There is no source connected to this input." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Shuffle playlist" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "You don't have permission to switch source." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Save playlist" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "User added successfully!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Playlist crossfade" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "User updated successfully!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Fade in: " +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "Settings updated successfully!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Fade out: " +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Rebroadcast of show %s from %s at %s" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "No open playlist" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." +msgstr "" +"Please make sure admin user/password is correct on System->Streams page." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "Empty smart block content" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "You are not allowed to access this resource." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "You are not allowed to access this resource. " -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "No open smart block" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "File does not exist in Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "Show Waveform" +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "File does not exist in Airtime" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Cue In: " +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "File doesn't exist in Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Bad request. no 'mode' parameter passed." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Cue Out: " +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Bad request. 'mode' parameter is invalid" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Original Length:" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "You are viewing an older version of %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Add this show" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "You cannot add tracks to dynamic blocks." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Update show" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "You don't have permission to delete selected %s(s)." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "What" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "You can only add tracks to smart block." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "When" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Untitled Playlist" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Live Stream Input" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Untitled Smart Block" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Record & Rebroadcast" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Unknown Playlist" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Who" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "Cue in and cue out are null." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Style" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "Can't set cue out to be greater than file length." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Rebroadcast of %s from %s" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "Can't set cue in to be larger than cue out." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Select Country" +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Can't set cue out to be smaller than cue in." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3650,43 +4322,26 @@ msgstr "Invalid webstream - This appears to be a file download." msgid "Unrecognized stream type: %s" msgstr "Unrecognised stream type: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s is already watched." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s contains nested watched directory: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s is nested within existing watched directory: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s is not a valid directory." - -#: airtime_mvc/application/models/MusicDir.php:232 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s is already set as the current storage dir or in the watched folders list" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " -#: airtime_mvc/application/models/MusicDir.php:386 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s is already set as the current storage dir or in the watched folders list." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Airtime Password Reset" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s doesn't exist in the watched list." +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Select Country" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3701,6 +4356,8 @@ msgid "The schedule you're viewing is out of date! (instance mismatch)" msgstr "The schedule you're viewing is out of date! (instance mismatch)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3729,63 +4386,64 @@ msgstr "The show %s has been previously updated!" msgid "" "Content in linked shows must be scheduled before or after any one is " "broadcasted" -msgstr "Content in linked shows must be scheduled before or after any one is broadcasted" - -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." -msgstr "Cannot schedule a playlist that contains missing files." +msgstr "" +"Content in linked shows must be scheduled before or after any one is " +"broadcasted" +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "A selected File does not exist!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "Cue in and cue out are null." - -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Can't set cue in to be larger than cue out." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s is already watched." -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Can't set cue out to be greater than file length." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s contains nested watched directory: %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Can't set cue out to be smaller than cue in." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s is nested within existing watched directory: %s" -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." -msgstr "Failed to create 'organise' directory." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s is not a valid directory." -#: airtime_mvc/application/models/StoredFile.php:1017 +#: airtime_mvc/application/models/MusicDir.php:232 #, php-format msgid "" -"The file was not uploaded, there is %s MB of disk space left and the file " -"you are uploading has a size of %s MB." -msgstr "The file was not uploaded, there is %s MB of disk space left and the file you are uploading has a size of %s MB." +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s is already set as the current storage dir or in the watched folders list" -#: airtime_mvc/application/models/StoredFile.php:1026 +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format msgid "" -"This file appears to be corrupted and will not be added to media library." -msgstr "This file appears to be corrupted and will not be added to media library." +"%s is already set as the current storage dir or in the watched folders list." +msgstr "" +"%s is already set as the current storage dir or in the watched folders list." -#: airtime_mvc/application/models/StoredFile.php:1065 -msgid "" -"The file was not uploaded, this error can occur if the computer hard drive " -"does not have enough disk space or the stor directory does not have correct " -"write permissions." -msgstr "The file was not uploaded, this error can occur if the computer hard drive does not have enough disk space or the stor directory does not have correct write permissions." +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s doesn't exist in the watched list." + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Rebroadcast of %s from %s" #: airtime_mvc/application/models/Show.php:180 msgid "Shows can have a max length of 24 hours." @@ -3795,116 +4453,167 @@ msgstr "Shows can have a max length of 24 hours." msgid "" "Cannot schedule overlapping shows.\n" "Note: Resizing a repeating show affects all of its repeats." -msgstr "Cannot schedule overlapping shows.\nNote: Resizing a repeating show affects all of its repeats." +msgstr "" +"Cannot schedule overlapping shows.\n" +"Note: Resizing a repeating show affects all of its repeats." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/models/StoredFile.php:1017 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Hi %s, \n\nClick this link to reset your password: " - -#: airtime_mvc/application/models/Auth.php:36 -#, php-format -msgid "%s Password Reset" -msgstr "%s Password Reset" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." +msgstr "" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "Record file doesn't exist" +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "can't resize a past show" -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "View Recorded File Metadata" +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "Should not overlap shows" -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Show Content" +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." +msgstr "Failed to create 'organise' directory." -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Remove All Content" +#: airtime_mvc/application/models/StoredFile.php:1026 +msgid "" +"This file appears to be corrupted and will not be added to media library." +msgstr "" +"This file appears to be corrupted and will not be added to media library." -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Cancel Current Show" +#: airtime_mvc/application/models/StoredFile.php:1065 +msgid "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." +msgstr "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" -msgstr "Edit This Instance" +#: airtime_mvc/application/layouts/scripts/login.phtml:24 +#, php-format +msgid "" +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" +msgstr "" +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Edit Show" +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#, php-format +msgid "Promote my station on %s" +msgstr "Promote my station on %s" -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Delete This Instance" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "By checking this box, I agree to %s's %sprivacy policy%s." -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Delete This Instance and All Following" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "Use %s Authentication:" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "Permission denied" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" +msgstr "File does not exist in %s" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Can't drag and drop repeating shows" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "%s Version" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Can't move a past show" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Can't move show into past" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "Click the box below to promote your station on %s." -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Can't move a recorded show less than 1 hour before its rebroadcasts." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" +"Rescan watched directory (This is useful if it is a network mount and may be " +"out of sync with %s)" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "Show was deleted because recorded show does not exist!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Must wait 1 hour to rebroadcast." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "Welcome to %s!" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" -msgstr "Track" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " +msgstr "Here's how you can get started using %s to automate your broadcasts: " -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Played" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "The year %s must be within the range of 1753 - 9999" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "%1$s %2$s is distributed under the %3$s" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s is not a valid date" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s:%s:%s is not a valid time" +msgid "Purchase your copy of %s" +msgstr "Purchase your copy of %s" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Please select an option" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "Cannot schedule a playlist that contains missing files." -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "No Records" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "%s Password Reset" diff --git a/airtime_mvc/locale/en_US/LC_MESSAGES/airtime.po b/airtime_mvc/locale/en_US/LC_MESSAGES/airtime.po index dff568afcb..19f2feaf9a 100644 --- a/airtime_mvc/locale/en_US/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/en_US/LC_MESSAGES/airtime.po @@ -1,1220 +1,1687 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: -# Daniel James , 2014 +# danielhjames , 2014 # Sourcefabric , 2012 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: English (United States) (http://www.transifex.com/projects/p/airtime/language/en_US/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-01-29 17:06+0000\n" +"Last-Translator: danielhjames \n" +"Language-Team: English (United States) (http://www.transifex.com/projects/p/" +"airtime/language/en_US/)\n" +"Language: en_US\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: en_US\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Audio Player" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Please select an option" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Logout" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "No Records" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "Play" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "The year %s must be within the range of 1753 - 9999" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "Stop" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s is not a valid date" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Cue In" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s:%s:%s is not a valid time" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "Set Cue In" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Now Playing" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Cue Out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Add Media" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "Set Cue Out" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Library" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "Cursor" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Calendar" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Fade In" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "System" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Fade Out" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Preferences" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Users" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Live stream" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Media Folders" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Enabled:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Streams" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Stream Type:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Support Feedback" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Bit Rate:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Status" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Service Type:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Listener Stats" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Channels:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "History" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Playout History" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "History Templates" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Server" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Help" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Invalid character entered" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Getting Started" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Port" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "User Manual" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Only numbers are allowed." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "About" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Password" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "Record file doesn't exist" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Genre" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "View Recorded File Metadata" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "View on SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Name" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Upload to SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Description" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Re-upload to SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Mount Point" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Show Content" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Username" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Add / Remove Content" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Admin User" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Remove All Content" + +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Cancel Current Show" + +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "Edit This Instance" + +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Edit" + +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Edit Show" + +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Delete" + +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Delete This Instance" + +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Delete This Instance and All Following" + +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "Permission denied" + +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "Can't drag and drop repeating shows" + +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "Can't move a past show" + +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Can't move show into past" + +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Cannot schedule overlapping shows" + +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "Can't move a recorded show less than 1 hour before its rebroadcasts." + +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "Show was deleted because recorded show does not exist!" + +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "Must wait 1 hour to rebroadcast." + +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Title" + +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Creator" + +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Album" + +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Length" + +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Genre" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Mood" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Label" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Composer" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Copyright" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Year" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "Track" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Conductor" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Language" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "Start Time" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "End Time" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Played" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "File import in progress..." + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Advanced Search Options" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Listener Count Over Time" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "New" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "New Playlist" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "New Smart Block" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "New Webstream" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "Empty playlist content" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "Clear" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Admin Password" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Shuffle playlist" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Getting information from the server..." +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Shuffle" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Server cannot be empty." +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Save playlist" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Port cannot be empty." +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 +#: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 +#: airtime_mvc/application/forms/AddUser.php:110 +#: airtime_mvc/application/forms/SupportSettings.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 +msgid "Save" +msgstr "Save" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Mount cannot be empty with Icecast server." +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Playlist crossfade" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "View / edit description" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Description" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Fade in: " + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Fade out: " + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "No open playlist" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Expand Static Block" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Expand Dynamic Block" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Empty smart block" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Empty playlist" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "Show Waveform" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Cue In: " + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(hh:mm:ss.t)" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Cue Out: " + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Original Length:" + +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(ss.t)" + +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "Empty smart block content" + +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "No open smart block" + +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" + +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Welcome to Airtime!" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "" +"Here's how you can get started using Airtime to automate your broadcasts: " + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Select your media from the left pane and drag them to your show in the right " +"pane." + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "Then you're good to go!" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "For more detailed help, read the %suser manual%s." + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Live stream" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Share" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Select stream:" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "mute" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "unmute" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "All" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" + +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "Stream URL:" + +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Default Length:" + +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "No webstream" -#: airtime_mvc/application/forms/EditAudioMD.php:19 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 msgid "Title:" msgstr "Title:" -#: airtime_mvc/application/forms/EditAudioMD.php:26 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 msgid "Creator:" msgstr "Creator:" -#: airtime_mvc/application/forms/EditAudioMD.php:33 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 msgid "Album:" msgstr "Album:" -#: airtime_mvc/application/forms/EditAudioMD.php:40 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 msgid "Track:" msgstr "Track:" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Length:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Sample Rate:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Bit Rate:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Mood:" + #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 msgid "Genre:" msgstr "Genre:" -#: airtime_mvc/application/forms/EditAudioMD.php:55 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 msgid "Year:" msgstr "Year:" -#: airtime_mvc/application/forms/EditAudioMD.php:67 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 msgid "Label:" msgstr "Label:" -#: airtime_mvc/application/forms/EditAudioMD.php:74 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" + #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 msgid "Composer:" msgstr "Composer:" -#: airtime_mvc/application/forms/EditAudioMD.php:81 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 msgid "Conductor:" msgstr "Conductor:" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Mood:" - -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" - -#: airtime_mvc/application/forms/EditAudioMD.php:105 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 msgid "Copyright:" msgstr "Copyright:" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "ISRC Number:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "Isrc Number:" -#: airtime_mvc/application/forms/EditAudioMD.php:119 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 msgid "Website:" msgstr "Website:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 #: airtime_mvc/application/forms/EditAudioMD.php:126 #: airtime_mvc/application/forms/Login.php:52 #: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 msgid "Language:" msgstr "Language:" -#: airtime_mvc/application/forms/EditAudioMD.php:135 -#: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 -#: airtime_mvc/application/forms/SupportSettings.php:161 -#: airtime_mvc/application/controllers/LocaleController.php:283 -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 -msgid "Save" -msgstr "Save" - -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Cancel" - -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Username:" - -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Password:" - -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Verify Password:" - -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Firstname:" - -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Lastname:" - -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "Email:" - -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Mobile Phone:" - -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" - -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "File Path:" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "User Type:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Name:" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Guest" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Description:" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "DJ" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Web Stream" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Program Manager" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Dynamic Smart Block" -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Admin" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Static Smart Block" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Login name is not unique." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Audio Track" -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Background Color:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Playlist Contents: " -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Text Color:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Static Smart Block Contents: " -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Date Start:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Dynamic Smart Block Criteria: " -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Date End:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Limit to " -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Show:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL:" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "All My Shows:" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "Choose Show Instance" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "days" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "No Show" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "Day must be specified" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "Find" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "Time must be specified" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "%s's Settings" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Must wait at least 1 hour to rebroadcast" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Choose folder" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Import Folder:" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Set" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Watched Folders:" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Current Import Folder:" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Not a valid Directory" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Add" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Search Users:" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "DJs:" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Remove watched directory" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Login" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "You are not watching any media folders." -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Type the characters you see in the picture below." +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Required)" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Station Name" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "Default Crossfade Duration (s):" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "Click the box below to promote your station on %sSourcefabric.org%s." -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "enter a time in seconds 0{.0}" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(In order to promote your station, 'Send support feedback' must be enabled)." -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "Default Fade In (s):" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(for verification purposes only, will not be published)" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "Default Fade Out (s):" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Note: Anything larger than 600x600 will be resized." -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make front-end widgets work.)" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Show me what I am sending " -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Disabled" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Sourcefabric Privacy Policy" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Enabled" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Find Shows" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Default Interface Language" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Filter By Show:" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "Station Timezone" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "Email / Mail Server Settings" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "Week Starts On" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "SoundCloud Settings" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Sunday" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Choose Days:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Monday" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Remove" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Tuesday" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Stream " -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Wednesday" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Additional Options" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Thursday" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "" +"The following info will be displayed to listeners in their media player:" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Friday" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(Your radio station website)" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Saturday" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "Stream URL: " -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "Link:" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "Connection URL: " -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Repeat Type:" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Reset password" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "weekly" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Register Airtime" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "every 2 weeks" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "every 3 weeks" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "every 4 weeks" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Terms and Conditions" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "monthly" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Input Stream Settings" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Select Days:" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "Master Source Connection URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Sun" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Override" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Mon" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "OK" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Tue" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "RESET" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Wed" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "Show Source Connection URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Thu" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Smart Block Options" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Fri" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "or" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Sat" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "and" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "Repeat By:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr " to " -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "day of the month" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "files meet the criteria" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "day of the week" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "file meet the criteria" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "No End?" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Repeat Days:" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "End date must be after start date" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Filter History" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "Please select a repeat day" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Close" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Confirm new password" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Add this show" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "Password confirmation does not match your password." +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Update show" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Get new password" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "What" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Select criteria" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "When" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Album" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Live Stream Input" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Bit Rate (Kbps)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Record & Rebroadcast" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Who" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Composer" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Style" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Conductor" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Start" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Copyright" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Stream Settings" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Creator" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Global Settings" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Encoded By" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "dB" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Output Stream Settings" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Label" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Manage Media Folders" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Language" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Zend Framework Default Application" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Last Modified" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Page not found!" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Last Played" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "Looks like the page you were looking for doesn't exist!" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Length" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "Log Sheet Templates" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Mime" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "No Log Sheet Templates" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Mood" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "Set Default" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Owner" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "New Log Sheet Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Replay Gain" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "File Summary Templates" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Sample Rate (kHz)" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "No File Summary Templates" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Title" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "New File Summary Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Track Number" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "Creating File Summary Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Uploaded" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "Creating Log Sheet Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Website" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Name" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Year" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "Add more elements" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Select modifier" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "Add New Field" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "contains" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "Set Default Template" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "does not contain" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "New password" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "is" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "Please enter and confirm your new password in the fields below." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "is not" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Login" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "starts with" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." +msgstr "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "ends with" +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." +msgstr "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "is greater than" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "Email sent" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "is less than" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "An email has been sent" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "is in the range" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Back to login screen" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "hours" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "Log Sheet" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "minutes" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "File Summary" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "items" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "Show Summary" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Set smart block type:" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "previous" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Static" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "play" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Dynamic" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "pause" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Allow Repeat Tracks:" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "next" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Limit to" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "stop" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Generate playlist content and save criteria" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "max volume" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Generate" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Update Required" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Shuffle playlist content" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 +#, php-format +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." +msgstr "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Shuffle" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Service" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "Limit cannot be empty or smaller than 0" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Uptime" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "Limit cannot be more than 24 hrs" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "The value should be an integer" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Memory" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "500 is the max item limit value you can set" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Airtime Version" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "You must select Criteria and Modifier" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Disk Space" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "'Length' should be in '00:00:00' format" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Manage Users" + +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "New User" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "id" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "The value has to be numeric" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Username" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "The value should be less then 2147483648" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "First Name" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "The value should be less than %s characters" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Last Name" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "Value cannot be empty" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "User Type" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Auto Switch Off" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Previous:" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Auto Switch On" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Next:" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Switch Transition Fade (s)" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Source Streams" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "enter a time in seconds 00{.000000}" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Master Source" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Master Username" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Show Source" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Master Password" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Scheduled Play" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "Master Source Connection URL" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "ON AIR" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "Show Source Connection URL" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Listen" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Master Source Port" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Station time" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Master Source Mount Point" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Your trial expires in" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Show Source Port" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "days" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Show Source Mount Point" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Purchase your copy of Airtime" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "You cannot use same port as Master DJ port." +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "My Account" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Port %s is not available" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Username:" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Phone:" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Password:" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Station Web Site:" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "Type the characters you see in the picture below." -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Country:" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Invalid character entered" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "City:" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "Day must be specified" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Station Description:" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "Time must be specified" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Station Logo:" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "Must wait at least 1 hour to rebroadcast" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Send support feedback" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Use Airtime Authentication:" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" -msgstr "" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Use Custom Authentication:" -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." -msgstr "" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Custom Username" -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "You have to agree to privacy policy." +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Custom Password" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Value is required and can't be empty" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "Username field cannot be empty." -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "Start Time" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "Password field cannot be empty." -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "End Time" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Enabled:" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "No Show" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Stream Type:" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Record from Line In?" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Service Type:" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Rebroadcast?" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Channels:" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Use Custom Authentication:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Stereo" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Custom Username" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Server" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Custom Password" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Port" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "Username field cannot be empty." +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Only numbers are allowed." -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "Password field cannot be empty." +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Password" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "E-mail" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Restore password" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Mount Point" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Hardware Audio Output" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Admin User" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Output Type" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Admin Password" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Icecast Vorbis Metadata" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Getting information from the server..." -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Stream Label:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Server cannot be empty." -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Artist - Title" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Port cannot be empty." -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Show - Artist - Title" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Mount cannot be empty with Icecast server." -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Station name - Show name" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Import Folder:" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Off Air Metadata" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Watched Folders:" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Enable Replay Gain" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Not a valid Directory" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Replay Gain Modifier" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Value is required and can't be empty" #: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 msgid "" "'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'%value%' is no valid email address in the basic format local-part@hostname" #: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 msgid "'%value%' does not fit the date format '%format%'" @@ -1236,84 +1703,142 @@ msgstr "'%value%' is not between '%min%' and '%max%', inclusively" msgid "Passwords do not match" msgstr "Passwords do not match" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' does not fit the time format 'HH:mm'" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Record from Line In?" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Date/Time Start:" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Rebroadcast?" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Date/Time End:" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Background Color:" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Duration:" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Text Color:" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Timezone:" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "E-mail" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Repeats?" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Restore password" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Cannot create show in the past" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Cancel" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Cannot modify start date/time of the show that is already started" +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Verify Password:" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "End date/time cannot be in the past" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Firstname:" -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Cannot have duration < 0m" +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Lastname:" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Cannot have duration 00h 00m" +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "Email:" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Cannot have duration greater than 24h" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Mobile Phone:" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Cannot schedule overlapping shows" +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Name:" +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" + +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "Interface Timezone:" + +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Login name is not unique." + +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Hardware Audio Output" + +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Output Type" + +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Icecast Vorbis Metadata" + +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Stream Label:" + +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Artist - Title" + +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Show - Artist - Title" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Untitled Show" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Station name - Show name" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL:" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Off Air Metadata" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Description:" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Enable Replay Gain" + +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Replay Gain Modifier" #: airtime_mvc/application/forms/SoundcloudPreferences.php:16 msgid "Automatically Upload Recorded Shows" @@ -1399,2210 +1924,2357 @@ msgstr "One Shot Sample" msgid "Other" msgstr "Other" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Default License:" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "The work is in the public domain" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "All rights are reserved" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Creative Commons Attribution" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Creative Commons Attribution Noncommercial" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Creative Commons Attribution No Derivative Works" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Creative Commons Attribution Share Alike" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Creative Commons Attribution Noncommercial Non Derivate Works" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Creative Commons Attribution Noncommercial Share Alike" - -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "Interface Timezone:" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "Enable System Emails (Password Reset)" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Reset Password 'From' Email" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Configure Mail Server" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Requires Authentication" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Mail Server" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "Email Address" - -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "Please make sure admin user/password is correct on System->Streams page." - -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Untitled Webstream" - -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Webstream saved." - -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Invalid form values." - -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Please enter your user name and password" - -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Wrong username or password provided. Please try again." - -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "Email could not be sent. Check your mail server settings and ensure it has been configured properly." - -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "Given email not found." - -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Rebroadcast of show %s from %s at %s" - -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Download" - -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "User added successfully!" - -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "User updated successfully!" - -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Settings updated successfully!" - -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Page not found" - -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Application error" - -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Recording:" - -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Master Stream" - -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Live Stream" - -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Nothing Scheduled" - -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Current Show:" - -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Current" - -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "You are running the latest version" - -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "New version available: " - -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "This version will soon be obsolete." - -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "This version is no longer supported." - -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Please upgrade to " - -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Add to current playlist" - -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Add to current smart block" - -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Adding 1 Item" - -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Adding %s Items" - -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "You can only add tracks to smart blocks." - -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "You can only add tracks, smart blocks, and webstreams to playlists." - -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "Please select a cursor position on timeline." - -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Edit Metadata" - -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Add to selected show" - -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Select" - -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Select this page" - -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Deselect this page" - -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Deselect all" - -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Are you sure you want to delete the selected item(s)?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Default License:" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "Scheduled" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "The work is in the public domain" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "Playlist / Block" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "All rights are reserved" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Bit Rate" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Creative Commons Attribution" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Sample Rate" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Creative Commons Attribution Noncommercial" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Loading..." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Creative Commons Attribution No Derivative Works" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "All" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Creative Commons Attribution Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Files" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Creative Commons Attribution Noncommercial Non Derivate Works" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Playlists" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Creative Commons Attribution Noncommercial Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Smart Blocks" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Station Name" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Web Streams" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "Default Crossfade Duration (s):" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Unknown type: " +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "enter a time in seconds 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Are you sure you want to delete the selected item?" +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "Default Fade In (s):" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Uploading in progress..." +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "Default Fade Out (s):" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Retrieving data from the server..." +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "The SoundCloud id for this file is: " +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Disabled" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "There was an error while uploading to SoundCloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Enabled" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Error code: " +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Default Interface Language" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Error msg: " +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "Station Timezone" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "Input must be a positive number" +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "Week Starts On" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "Input must be a number" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Sunday" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "Input must be in the format: yyyy-mm-dd" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Monday" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "Input must be in the format: hh:mm:ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Tuesday" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "You are currently uploading files. %sGoing to another screen will cancel the upload process. %sAre you sure you want to leave the page?" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Wednesday" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "Open Media Builder" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Thursday" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "please put in a time '00:00:00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Friday" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "please put in a time in seconds '00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Saturday" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Your browser does not support playing this file type: " +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Date Start:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Dynamic block is not previewable" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Date End:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Limit to: " +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Phone:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Playlist saved" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Station Web Site:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "Playlist shuffled" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Country:" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime is unsure about the status of this file. This can happen when the file is on a remote drive that is unaccessible or the file is in a directory that isn't 'watched' anymore." +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "City:" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "Listener Count on %s: %s" +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Station Description:" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Remind me in 1 week" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Station Logo:" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Remind me never" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Send support feedback" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Yes, help Airtime" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Promote my station on Sourcefabric.org" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "Image must be one of jpg, jpeg, png, or gif" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "A static smart block will save the criteria and generate the block content immediately. This allows you to edit and view it in the Library before adding it to a show." +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "You have to agree to privacy policy." -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "A dynamic smart block will only save the criteria. The block content will get generated upon adding it to a show. You will not be able to view and edit the content in the Library." +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' does not fit the time format 'HH:mm'" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "The desired block length will not be reached if Airtime cannot find enough unique tracks to match your criteria. Enable this option if you wish to allow tracks to be added multiple times to the smart block." +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Date/Time Start:" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Smart block shuffled" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Date/Time End:" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Smart block generated and criteria saved" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Duration:" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Smart block saved" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Timezone:" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Processing..." +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Repeats?" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Choose Storage Folder" +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Cannot create show in the past" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Choose Folder to Watch" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "Cannot modify start date/time of the show that is already started" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Are you sure you want to change the storage folder?\nThis will remove the files from your Airtime library!" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "End date/time cannot be in the past" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Manage Media Folders" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Cannot have duration < 0m" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Are you sure you want to remove the watched folder?" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Cannot have duration 00h 00m" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "This path is currently not accessible." +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Cannot have duration greater than 24h" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "Some stream types require extra configuration. Details about enabling %sAAC+ Support%s or %sOpus Support%s are provided." +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Untitled Show" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Connected to the streaming server" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Search Users:" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "The stream is disabled" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "DJs:" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Can not connect to the streaming server" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Confirm new password" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "If Airtime is behind a router or firewall, you may need to configure port forwarding and this field information will be incorrect. In this case you will need to manually update this field so it shows the correct host/port/mount that your DJ's need to connect to. The allowed range is between 1024 and 49151." +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "Password confirmation does not match your password." -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "For more details, please read the %sAirtime Manual%s" +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Get new password" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Check this option to enable metadata for OGG streams (stream metadata is the track title, artist, and show name that is displayed in an audio player). VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that has metadata information enabled: they will disconnect from the stream after every song. If you are using an OGG stream and your listeners do not require support for these audio players, then feel free to enable this option." +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "User Type:" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Check this box to automatically switch off Master/Show source upon source disconnection." +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Guest" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Check this box to automatically switch on Master/Show source upon source connection." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "DJ" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "If your Icecast server expects a username of 'source', this field can be left blank." +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Program Manager" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "If your live streaming client does not ask for a username, this field should be 'source'." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Admin" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "If you change the username or password values for an enabled stream the playout engine will be rebooted and your listeners will hear silence for 5-10 seconds. Changing the following fields will NOT cause a reboot: Stream Label (Global Settings), and Switch Transition Fade(s), Master Username, and Master Password (Input Stream Settings). If Airtime is recording, and if the change causes a playout engine restart, the recording will be interrupted." +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "ISRC Number:" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "This is the admin username and password for Icecast/SHOUTcast to get listener statistics." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Show:" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "Warning: You cannot change this field while the show is currently playing" +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "All My Shows:" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "No result found" +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "Link:" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "This follows the same security pattern for the shows: only users assigned to the show can connect." +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Repeat Type:" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Specify custom authentication which will work only for this show." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "weekly" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "The show instance doesn't exist anymore!" +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "every 2 weeks" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "Warning: Shows cannot be re-linked" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "every 3 weeks" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "By linking your repeating shows any media items scheduled in any repeat show will also get scheduled in the other repeat shows" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "every 4 weeks" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "Timezone is set to the station timezone by default. Shows in the calendar will be displayed in your local time defined by the Interface Timezone in your user settings." +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "monthly" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Show" +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Select Days:" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "Show is empty" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "Sun" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1m" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Mon" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5m" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Tue" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10m" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "Wed" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15m" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Thu" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30m" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Fri" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60m" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "Sat" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Retrieving data from the server..." +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "Repeat By:" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "This show has no scheduled content." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "day of the month" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "This show is not completely filled with content." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "day of the week" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "January" +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "No End?" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "February" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "End date must be after start date" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "March" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "Please select a repeat day" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "April" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "Enable System Emails (Password Reset)" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "May" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Reset Password 'From' Email" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "June" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Configure Mail Server" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "July" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Requires Authentication" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "August" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Mail Server" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "September" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "Email Address" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "October" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Select criteria" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "November" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Bit Rate (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "December" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Jan" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Feb" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Mar" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Encoded By" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Apr" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Last Modified" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Jun" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Last Played" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Jul" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Mime" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Aug" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Owner" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Sep" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Replay Gain" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Oct" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Sample Rate (kHz)" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Nov" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Track Number" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Dec" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Uploaded" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "today" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Website" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "day" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Select modifier" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "week" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "contains" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "month" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "does not contain" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Shows longer than their scheduled time will be cut off by a following show." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "is" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Cancel Current Show?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "is not" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Stop recording current show?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "starts with" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "Ok" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "ends with" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Contents of Show" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "is greater than" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Remove all content?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "is less than" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Delete selected item(s)?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "is in the range" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Start" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "hours" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "End" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "minutes" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Duration" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "items" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Show Empty" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Set smart block type:" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Recording From Line In" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Static" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Track preview" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Dynamic" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Cannot schedule outside a show." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Allow Repeat Tracks:" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Moving 1 Item" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Limit to" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Moving %s Items" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Generate playlist content and save criteria" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "Fade Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Generate" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "Cue Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Shuffle playlist content" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "Waveform features are available in a browser supporting the Web Audio API" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "Limit cannot be empty or smaller than 0" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Select all" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "Limit cannot be more than 24 hrs" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Select none" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "The value should be an integer" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Remove overbooked tracks" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "500 is the max item limit value you can set" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Remove selected scheduled items" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "You must select Criteria and Modifier" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Jump to the current playing track" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "'Length' should be in '00:00:00' format" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Cancel current show" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Open library to add or remove content" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "The value has to be numeric" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Add / Remove Content" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "The value should be less then 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "in use" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "The value should be less than %s characters" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Disk" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "Value cannot be empty" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Look in" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Auto Switch Off" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Open" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Auto Switch On" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "Guests can do the following:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Switch Transition Fade (s)" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "View schedule" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "enter a time in seconds 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "View show content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Master Username" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "DJs can do the following:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Master Password" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Manage assigned show content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "Master Source Connection URL" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Import media files" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "Show Source Connection URL" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Create playlists, smart blocks, and webstreams" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Master Source Port" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Manage their own library content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Master Source Mount Point" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "Progam Managers can do the following:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Show Source Port" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "View and manage show content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Show Source Mount Point" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Schedule shows" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "You cannot use same port as Master DJ port." -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "Manage all library content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Port %s is not available" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Admins can do the following:" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Manage preferences" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Logout" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "Manage users" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "Play" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "Manage watched folders" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "Stop" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "View system status" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "Set Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Access playout history" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "Set Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "View listener stats" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "Cursor" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Show / hide columns" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Fade In" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "From {from} to {to}" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Fade Out" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Audio Player" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "yyyy-mm-dd" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Please enter your user name and password" -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "Wrong username or password provided. Please try again." -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Su" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "Given email not found." -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Mo" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Recording:" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Tu" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Master Stream" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "We" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Live Stream" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Th" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Nothing Scheduled" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Fr" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Current Show:" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Sa" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Current" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Close" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "You are running the latest version" -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Hour" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "New version available: " -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Minute" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "This version will soon be obsolete." -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Done" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "This version is no longer supported." -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Select files" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Please upgrade to " -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Add files to the upload queue and click the start button." +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Add to current playlist" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Status" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Add to current smart block" + +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Adding 1 Item" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Add Files" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "Adding %s Items" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Stop Upload" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "You can only add tracks to smart blocks." -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Start upload" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "You can only add tracks, smart blocks, and webstreams to playlists." -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Add files" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "Please select a cursor position on timeline." -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "Uploaded %d/%d files" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Edit Metadata" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "N/A" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Add to selected show" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Drag files here." +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Select" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "File extension error." +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Select this page" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "File size error." +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Deselect this page" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "File count error." +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Deselect all" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Init error." +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Are you sure you want to delete the selected item(s)?" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "HTTP Error." +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "Scheduled" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Security error." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "Playlist / Block" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Generic error." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Bit Rate" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "IO error." +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Sample Rate" -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "File: %s" +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "Loading..." -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d files queued" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Files" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "File: %f, size: %s, max file size: %m" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Playlists" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "Upload URL might be wrong or doesn't exist" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Smart Blocks" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Error: File too large: " +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Web Streams" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Error: Invalid file extension: " +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Unknown type: " -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "Set Default" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Are you sure you want to delete the selected item?" -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "Create Entry" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Uploading in progress..." -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "Edit History Record" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Retrieving data from the server..." -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "Copied %s row%s to the clipboard" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "The SoundCloud id for this file is: " -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%sPrint view%sPlease use your browser's print function to print this table. Press escape when finished." +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "There was an error while uploading to SoundCloud." -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "You don't have permission to disconnect source." +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Error code: " -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "There is no source connected to this input." +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Error msg: " -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "You don't have permission to switch source." +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "Input must be a positive number" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "You are viewing an older version of %s" +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "Input must be a number" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "You cannot add tracks to dynamic blocks." +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "Input must be in the format: yyyy-mm-dd" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 -#, php-format -msgid "%s not found" -msgstr "%s not found" +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "Input must be in the format: hh:mm:ss.t" -#: airtime_mvc/application/controllers/PlaylistController.php:144 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "You don't have permission to delete selected %s(s)." - -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Something went wrong." +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "You can only add tracks to smart block." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "Open Media Builder" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Untitled Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "please put in a time '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Untitled Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "please put in a time in seconds '00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Unknown Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "Your browser does not support playing this file type: " -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "You are not allowed to access this resource." +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Dynamic block is not previewable" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "You are not allowed to access this resource. " +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Limit to: " -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Playlist saved" -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Bad request. no 'mode' parameter passed." +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "Playlist shuffled" -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Bad request. 'mode' parameter is invalid" +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." +msgstr "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Preview" +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "Listener Count on %s: %s" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Add to Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "Remind me in 1 week" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Add to Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Remind me never" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Delete" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Yes, help Airtime" -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Duplicate Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "Image must be one of jpg, jpeg, png, or gif" -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Edit" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." +msgstr "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "View on SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Re-upload to SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Smart block shuffled" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Upload to SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Smart block generated and criteria saved" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "No action available" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Smart block saved" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "You don't have permission to delete selected items." +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "Processing..." -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Could not delete some scheduled files." +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Choose Storage Folder" -#: airtime_mvc/application/controllers/LibraryController.php:404 -#, php-format -msgid "Copy of %s" -msgstr "Copy of %s" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Choose Folder to Watch" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Select cursor" +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Remove cursor" +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Are you sure you want to remove the watched folder?" -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "show does not exist" +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "This path is currently not accessible." -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Preferences updated." +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#, php-format +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Support setting updated." +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Connected to the streaming server" -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Support Feedback" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "The stream is disabled" -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Stream Setting Updated." +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Can not connect to the streaming server" -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "path should be specified" +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Problem with Liquidsoap..." +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "For more details, please read the %sAirtime Manual%s" -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Now Playing" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Add Media" +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Library" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Calendar" +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "System" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Preferences" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Users" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Media Folders" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" +"Warning: You cannot change this field while the show is currently playing" -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Streams" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "No result found" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Listener Stats" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" -msgstr "History" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "Specify custom authentication which will work only for this show." -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Playout History" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "The show instance doesn't exist anymore!" -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "History Templates" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "Warning: Shows cannot be re-linked" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Help" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Getting Started" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." +msgstr "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "User Manual" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Show" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "About" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "Show is empty" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Service" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Uptime" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Memory" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Disk Space" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60m" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "Email / Mail Server Settings" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Retrieving data from the server..." -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "SoundCloud Settings" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "This show has no scheduled content." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Repeat Days:" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "This show is not completely filled with content." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Remove" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "January" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Add" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "February" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "Connection URL: " +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "March" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Input Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "April" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "Master Source Connection URL:" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "May" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Override" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "June" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "OK" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "July" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "RESET" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "August" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "Show Source Connection URL:" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "September" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Required)" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "October" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Register Airtime" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "November" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "December" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Jan" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(for verification purposes only, will not be published)" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "Feb" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Note: Anything larger than 600x600 will be resized." +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "Mar" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Show me what I am sending " +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "Apr" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Terms and Conditions" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "Jun" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Reset password" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "Jul" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Choose folder" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "Aug" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Set" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "Sep" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Current Import Folder:" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "Oct" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "Nov" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Remove watched directory" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "Dec" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "You are not watching any media folders." +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "today" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Stream " +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "day" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Additional Options" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "week" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "month" + +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "The following info will be displayed to listeners in their media player:" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "" +"Shows longer than their scheduled time will be cut off by a following show." -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(Your radio station website)" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Cancel Current Show?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "Stream URL: " +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Stop recording current show?" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Filter History" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "Ok" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Find Shows" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Contents of Show" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Filter By Show:" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Remove all content?" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "%s's Settings" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Delete selected item(s)?" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "End" + +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Duration" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(In order to promote your station, 'Send support feedback' must be enabled)." +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Show Empty" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Sourcefabric Privacy Policy" +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Recording From Line In" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "Choose Show Instance" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Track preview" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "Find" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Cannot schedule outside a show." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Choose Days:" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Moving 1 Item" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Smart Block Options" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Moving %s Items" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "or" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" +msgstr "Fade Editor" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "and" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" +msgstr "Cue Editor" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr " to " +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "" +"Waveform features are available in a browser supporting the Web Audio API" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "files meet the criteria" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Select all" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "file meet the criteria" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Select none" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "Creating File Summary Template" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Remove overbooked tracks" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "Creating Log Sheet Template" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Remove selected scheduled items" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "Add more elements" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Jump to the current playing track" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "Add New Field" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Cancel current show" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "Set Default Template" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "Open library to add or remove content" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "Log Sheet Templates" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "in use" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "No Log Sheet Templates" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Disk" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "New Log Sheet Template" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Look in" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "File Summary Templates" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Open" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "No File Summary Templates" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "Guests can do the following:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "New File Summary Template" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "View schedule" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "New" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "View show content" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "New Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "DJs can do the following:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "New Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "Manage assigned show content" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "New Webstream" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Import media files" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "View / edit description" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Create playlists, smart blocks, and webstreams" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "Stream URL:" +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "Manage their own library content" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Default Length:" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "Progam Managers can do the following:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "No webstream" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "View and manage show content" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Schedule shows" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Global Settings" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "Manage all library content" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "dB" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "Admins can do the following:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Output Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Manage preferences" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "File import in progress..." +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "Manage users" + +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "Manage watched folders" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Advanced Search Options" +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "View system status" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "previous" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Access playout history" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "play" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "View listener stats" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "pause" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Show / hide columns" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "next" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "From {from} to {to}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "stop" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "mute" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "yyyy-mm-dd" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "unmute" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "hh:mm:ss.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "max volume" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Update Required" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "Su" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "To play the media you will need to either update your browser to a recent version or update your %sFlash plugin%s." +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Mo" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Length:" +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Tu" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Sample Rate:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "We" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "Isrc Number:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Th" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "File Path:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Fr" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Web Stream" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "Sa" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Dynamic Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Hour" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Static Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Minute" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Audio Track" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Done" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Playlist Contents: " +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Select files" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Static Smart Block Contents: " +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "Add files to the upload queue and click the start button." -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Dynamic Smart Block Criteria: " +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Add Files" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Limit to " +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Stop Upload" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Listener Count Over Time" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Start upload" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 -#, php-format -msgid "Welcome to %s!" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Add files" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "" +msgid "Uploaded %d/%d files" +msgstr "Uploaded %d/%d files" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Begin by adding your files to the library using the 'Add Media' menu button. You can drag and drop your files to this window too." +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "N/A" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Create a show by going to 'Calendar' in the menu bar, and then clicking the '+ Show' icon. This can be either a one-time or repeating show. Only admins and program managers can add shows." +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Drag files here." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Add media to the show by going to your show in the Schedule calendar, left-clicking on it and selecting 'Add / Remove Content'" +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "File extension error." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Select your media from the left pane and drag them to your show in the right pane." +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "File size error." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "Then you're good to go!" +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "File count error." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "For more detailed help, read the %suser manual%s." +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Init error." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Share" +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "HTTP Error." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Select stream:" +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Security error." + +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Generic error." + +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "IO error." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "" +msgid "File: %s" +msgstr "File: %s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "" +msgid "%d files queued" +msgstr "%d files queued" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "New password" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "File: %f, size: %s, max file size: %m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Please enter and confirm your new password in the fields below." +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "Upload URL might be wrong or doesn't exist" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Please enter your account e-mail address. You will receive a link to create a new password via e-mail." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Error: File too large: " -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "Email sent" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "Error: Invalid file extension: " -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "An email has been sent" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "Create Entry" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Back to login screen" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "Edit History Record" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "Copied %s row%s to the clipboard" + +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Previous:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Next:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Source Streams" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Master Source" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Preview" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Show Source" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Select cursor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Scheduled Play" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Remove cursor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "ON AIR" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "show does not exist" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Listen" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Preferences updated." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Station time" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Support setting updated." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Your trial expires in" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Stream Setting Updated." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "path should be specified" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "My Account" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Problem with Liquidsoap..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Manage Users" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Page not found" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "New User" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Application error" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "id" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s not found" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "First Name" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Something went wrong." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Last Name" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Add to Playlist" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "User Type" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Add to Smart Block" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "Log Sheet" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Download" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "File Summary" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Duplicate Playlist" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "Show Summary" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "Soundcloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Zend Framework Default Application" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "No action available" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Page not found!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "You don't have permission to delete selected items." -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "Looks like the page you were looking for doesn't exist!" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "Could not delete some scheduled files." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Expand Static Block" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Copy of %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Expand Dynamic Block" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Untitled Webstream" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Empty smart block" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Webstream saved." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Empty playlist" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Invalid form values." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "Empty playlist content" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "You don't have permission to disconnect source." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "Clear" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "There is no source connected to this input." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Shuffle playlist" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "You don't have permission to switch source." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Save playlist" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "User added successfully!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Playlist crossfade" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "User updated successfully!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Fade in: " +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "Settings updated successfully!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Fade out: " +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Rebroadcast of show %s from %s at %s" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "No open playlist" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." +msgstr "" +"Please make sure admin user/password is correct on System->Streams page." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "Empty smart block content" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "You are not allowed to access this resource." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "You are not allowed to access this resource. " -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "No open smart block" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "File does not exist in Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "Show Waveform" +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "File does not exist in Airtime" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Cue In: " +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "File doesn't exist in Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Bad request. no 'mode' parameter passed." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Cue Out: " +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Bad request. 'mode' parameter is invalid" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Original Length:" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "You are viewing an older version of %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Add this show" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "You cannot add tracks to dynamic blocks." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Update show" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "You don't have permission to delete selected %s(s)." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "What" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "You can only add tracks to smart block." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "When" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Untitled Playlist" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Live Stream Input" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Untitled Smart Block" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Record & Rebroadcast" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Unknown Playlist" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Who" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "Cue in and cue out are null." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Style" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "Can't set cue out to be greater than file length." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Rebroadcast of %s from %s" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "Can't set cue in to be larger than cue out." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Select Country" +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Can't set cue out to be smaller than cue in." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3649,43 +4321,26 @@ msgstr "Invalid webstream - This appears to be a file download." msgid "Unrecognized stream type: %s" msgstr "Unrecognized stream type: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s is already watched." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s contains nested watched directory: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s is nested within existing watched directory: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s is not a valid directory." - -#: airtime_mvc/application/models/MusicDir.php:232 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s is already set as the current storage dir or in the watched folders list" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " -#: airtime_mvc/application/models/MusicDir.php:386 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s is already set as the current storage dir or in the watched folders list." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Airtime Password Reset" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s doesn't exist in the watched list." +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Select Country" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3700,6 +4355,8 @@ msgid "The schedule you're viewing is out of date! (instance mismatch)" msgstr "The schedule you're viewing is out of date! (instance mismatch)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3714,196 +4371,233 @@ msgstr "You are not allowed to schedule show %s." msgid "You cannot add files to recording shows." msgstr "You cannot add files to recording shows." -#: airtime_mvc/application/models/Scheduler.php:152 +#: airtime_mvc/application/models/Scheduler.php:152 +#, php-format +msgid "The show %s is over and cannot be scheduled." +msgstr "The show %s is over and cannot be scheduled." + +#: airtime_mvc/application/models/Scheduler.php:159 +#, php-format +msgid "The show %s has been previously updated!" +msgstr "The show %s has been previously updated!" + +#: airtime_mvc/application/models/Scheduler.php:178 +msgid "" +"Content in linked shows must be scheduled before or after any one is " +"broadcasted" +msgstr "" +"Content in linked shows must be scheduled before or after any one is " +"broadcasted" + +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 +#: airtime_mvc/application/models/Scheduler.php:216 +#: airtime_mvc/application/models/Scheduler.php:305 +msgid "A selected File does not exist!" +msgstr "A selected File does not exist!" + +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s is already watched." + +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s contains nested watched directory: %s" + +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s is nested within existing watched directory: %s" + +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s is not a valid directory." + +#: airtime_mvc/application/models/MusicDir.php:232 #, php-format -msgid "The show %s is over and cannot be scheduled." -msgstr "The show %s is over and cannot be scheduled." +msgid "" +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s is already set as the current storage dir or in the watched folders list" -#: airtime_mvc/application/models/Scheduler.php:159 +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 #, php-format -msgid "The show %s has been previously updated!" -msgstr "The show %s has been previously updated!" - -#: airtime_mvc/application/models/Scheduler.php:178 msgid "" -"Content in linked shows must be scheduled before or after any one is " -"broadcasted" -msgstr "Content in linked shows must be scheduled before or after any one is broadcasted" - -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." +"%s is already set as the current storage dir or in the watched folders list." msgstr "" +"%s is already set as the current storage dir or in the watched folders list." -#: airtime_mvc/application/models/Scheduler.php:216 -#: airtime_mvc/application/models/Scheduler.php:305 -msgid "A selected File does not exist!" -msgstr "A selected File does not exist!" - -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "Cue in and cue out are null." - -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Can't set cue in to be larger than cue out." +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s doesn't exist in the watched list." -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Can't set cue out to be greater than file length." +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Rebroadcast of %s from %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Can't set cue out to be smaller than cue in." +#: airtime_mvc/application/models/Show.php:180 +msgid "Shows can have a max length of 24 hours." +msgstr "Shows can have a max length of 24 hours." -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." -msgstr "Failed to create 'organize' directory." +#: airtime_mvc/application/models/Show.php:289 +msgid "" +"Cannot schedule overlapping shows.\n" +"Note: Resizing a repeating show affects all of its repeats." +msgstr "" +"Cannot schedule overlapping shows.\n" +"Note: Resizing a repeating show affects all of its repeats." #: airtime_mvc/application/models/StoredFile.php:1017 #, php-format msgid "" "The file was not uploaded, there is %s MB of disk space left and the file " "you are uploading has a size of %s MB." -msgstr "The file was not uploaded, there is %s MB of disk space left and the file you are uploading has a size of %s MB." +msgstr "" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." + +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "can't resize a past show" + +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "Should not overlap shows" + +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." +msgstr "Failed to create 'organize' directory." #: airtime_mvc/application/models/StoredFile.php:1026 msgid "" "This file appears to be corrupted and will not be added to media library." -msgstr "This file appears to be corrupted and will not be added to media library." +msgstr "" +"This file appears to be corrupted and will not be added to media library." #: airtime_mvc/application/models/StoredFile.php:1065 msgid "" "The file was not uploaded, this error can occur if the computer hard drive " "does not have enough disk space or the stor directory does not have correct " "write permissions." -msgstr "The file was not uploaded, this error can occur if the computer hard drive does not have enough disk space or the stor directory does not have correct write permissions." - -#: airtime_mvc/application/models/Show.php:180 -msgid "Shows can have a max length of 24 hours." -msgstr "Shows can have a max length of 24 hours." - -#: airtime_mvc/application/models/Show.php:289 -msgid "" -"Cannot schedule overlapping shows.\n" -"Note: Resizing a repeating show affects all of its repeats." -msgstr "Cannot schedule overlapping shows.\nNote: Resizing a repeating show affects all of its repeats." +msgstr "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/layouts/scripts/login.phtml:24 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Hi %s, \n\nClick this link to reset your password: " +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" +msgstr "" -#: airtime_mvc/application/models/Auth.php:36 +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 #, php-format -msgid "%s Password Reset" +msgid "Promote my station on %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "Record file doesn't exist" - -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "View Recorded File Metadata" - -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Show Content" - -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Remove All Content" - -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Cancel Current Show" - -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" -msgstr "Edit This Instance" - -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Edit Show" - -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Delete This Instance" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Delete This Instance and All Following" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "Permission denied" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Can't drag and drop repeating shows" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Can't move a past show" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Can't move show into past" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Can't move a recorded show less than 1 hour before its rebroadcasts." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "Show was deleted because recorded show does not exist!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Must wait 1 hour to rebroadcast." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" -msgstr "Track" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Played" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "The year %s must be within the range of 1753 - 9999" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s is not a valid date" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s:%s:%s is not a valid time" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Please select an option" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "No Records" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/locale/es_ES/LC_MESSAGES/airtime.po b/airtime_mvc/locale/es_ES/LC_MESSAGES/airtime.po index c8480d0000..ff80eda7aa 100644 --- a/airtime_mvc/locale/es_ES/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/es_ES/LC_MESSAGES/airtime.po @@ -1,3608 +1,4296 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: # Sourcefabric , 2012 -# Víctor Carranza , 2014 +# vmcarranza , 2014 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: Spanish (Spain) (http://www.transifex.com/projects/p/airtime/language/es_ES/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-03-12 16:10+0000\n" +"Last-Translator: vmcarranza \n" +"Language-Team: Spanish (Spain) (http://www.transifex.com/projects/p/airtime/" +"language/es_ES/)\n" +"Language: es_ES\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: es_ES\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Reproductor de audio" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Por favor elige una opción" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Salir" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "No hay registros" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "El año %s debe estar dentro del rango de 1753-9999" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s no es una fecha válida" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Cue in" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s:%s:%s no es una hora válida" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Reproduciéndose ahora" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Cue out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Añadir pistas" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Biblioteca" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Calendario" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Fade In" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "Sistema" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Fade out" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Preferencias" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Usuarios" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Stream en vivo" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Carpetas de medios" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Activado:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Streams" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Tipo de stream:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Tu estación en nuestro catálogo" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Tasa de bits:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Estatus" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Tipo de servicio:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Estadísticas de oyentes" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Canales:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Historial de reproducción" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Estéreo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Servidor" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Ayuda" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Se introdujo un caracter inválido" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Cómo iniciar" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Puerto" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "Manual para el usuario" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Solo se permiten números." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "Sobre nosotros" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Contraseña" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Género" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "Ver los metadatos del archivo grabado" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Ver en SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Nombre" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Cargar a SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Descripción" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Volver a cargar a SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Punto de instalación" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Mostrar contenido" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Usuario" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Agregar / eliminar contenido" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Usuario administrativo" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Eliminar todo el contenido" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Contraseña administrativa" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Cancelar el show actual" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Obteniendo información desde el servidor..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "El servidor no puede estar vacío." +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Editar" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "El puerto no puede estar vacío." +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Editar show" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "La instalación no puede estar vacía con el servidor Icecast." +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Eliminar" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" -msgstr "Título:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Eliminar esta instancia" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" -msgstr "Creador:" +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Eliminar esta instancia y todas las que siguen" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "Álbum:" +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "Pista:" +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "No es posible arrastrar y soltar shows que se repiten" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" -msgstr "Género:" +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "No se puede mover un show pasado" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" -msgstr "Año:" +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "No se puede mover un show al pasado" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" -msgstr "Sello:" +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "No se pueden programar shows traslapados" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" -msgstr "Compositor:" +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "" +"No se pueden mover shows grabados a menos de 1 hora antes de su " +"retransmisión." -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" -msgstr "Conductor:" +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "El show se eliminó porque el show grabado no existe!" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Estilo (mood):" +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "Debe esperar 1 hora para retransmitir." -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Título" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" -msgstr "Derechos de autor:" +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Creador" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "Número ISRC:" +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Álbum" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" -msgstr "Sitio web:" +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Duración" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" -msgstr "Idioma:" +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Género" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Estilo (mood)" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Sello" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Compositor" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Derechos de autor" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Año" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Director" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Idioma" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Reproducido" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "Importación del archivo en progreso..." + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Opciones de búsqueda avanzada" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Conteo de oyentes a lo largo del tiempo" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "Nuevo" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "Nueva lista de reproducción" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "Nuevo bloque inteligente" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "Nuevo webstream" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Lista de reproducción aleatoria" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Reproducción aleatoria" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Almacenar lista de reproducción" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 #: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 #: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 #: airtime_mvc/application/forms/SupportSettings.php:161 #: airtime_mvc/application/controllers/LocaleController.php:283 #: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 #: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 msgid "Save" msgstr "Guardar" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Cancelar" - -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Usuario:" - -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Contraseña:" - -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Verificar contraseña:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Transición (crossfade) de la lista de reproducción" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Nombre:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "Ver / editar descripción" -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Apellido:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Descripción" -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "Correo electrónico" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Fade in:" -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Celular:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Fade out:" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "No hay listas de reproducción abiertas" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Expandir bloque estático" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "Tipo de usuario:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Expandir bloque dinámico" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Invitado" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Vaciar bloque inteligente" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "DJ" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Lista de reproducción vacía" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Administrador de programa" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "" -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Admin" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Cue in:" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Tu usuario no es único." +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(hh:mm:ss.t)" -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Color de fondo:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Cue out:" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Color del texto:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Duración original:" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Fecha de Inicio:" +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(ss.t)" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Fecha de Finalización:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "" -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Show:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "No hay bloques inteligentes abiertos" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "Todos mis shows:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sAirtime%s %s, el software de código abierto para programar y administrar " +"estaciones de radio de forma remota. %s" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "días" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "%sSourcefabric%s o.p.s. Airtime se distribuye bajo la %sGNE GPL v.3%s" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "Se debe especificar un día" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "¡Bienvenido a Airtime!" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "Se debe especificar una hora" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "Aprende aquí como usar Airtime para automatizar tus transmisiones:" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Debes esperar al menos 1 hora para reprogramar" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Comienza agregando tus archivos a la biblioteca usando el botón 'Add " +"Media' (Agregar Pistas). También puedes arrastrar y soltar tus archivos a " +"esta ventana." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Carpeta de importación:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Crea un show ubicándote en 'Calendar' (Calendario) en la barra de menú, y " +"luego haciendo clic en el ícono '+ Show' (agregar show). Este puede ser un " +"show único o periódico. Solo los administradores y los administradores de " +"programa pueden agregar shows." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Carpetas monitoreadas:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Agrega pistas al show ubicándote en tu show en el calendario de " +"programación. Presiona clic izquierdo sobre él y selecciona 'Add / Remove " +"Content' (Agregar / Quitar Contenido)" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "No es un directorio válido" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Selecciona tus pistas del panel izquierdo y arrástralas a tu programa en el " +"panel derecho." -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Búsqueda de usuarios:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "¡Estas listo para comenzar!" -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "DJs:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "Para una ayuda más detallada, lee el manual%s del %susuario." -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Ingreso" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Stream en vivo" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Digita los caracteres que ves en la gráfica que aparece a continuación." +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Compartir" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Nombre de la estación" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Seleccionar stream:" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "silenciar" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "ingresa el tiempo en segundos 0{.0}" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "desactivar silencio" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "Todo" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Permitir a sitios web remotos acceder a \"Schedule\" Info?%s (Activa esto para que los widgets públicos funcionen.)" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Desactivado" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "URL del stream:" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Activado" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Duración por defecto:" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Idioma de la interfaz por defecto" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "No existe un webstream" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "Título:" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "La semana empieza el" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "Creador:" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "domingo" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "Álbum:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "lunes" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "Pista:" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "martes" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Duración:" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "miércoles" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Tasa de muestreo:" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "jueves" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Tasa de bits:" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Viernes" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Estilo (mood):" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Sábado" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "Género:" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "Año:" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Repetir tipo:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "Sello:" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "semanal" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "Compositor:" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "Conductor:" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "Derechos de autor:" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "mensual" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "Número ISRC" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Seleccione días:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "Sitio web:" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Dom" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" +msgstr "Idioma:" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Lun" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "Ruta del archivo:" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Mar" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Nombre:" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Miér" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Descripción:" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Jue" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Stream web" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Vier" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Bloque inteligente dinámico" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Sab" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Bloque inteligente estático" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Pista de audio" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Contenido de la lista de reproducción:" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Contenido del bloque inteligente estático:" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "¿Sin fin?" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Criterios del bloque inteligente dinámico:" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "La fecha de finalización debe ser posterior a la inicio" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Límite hasta" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL:" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Confirma nueva contraseña" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "La confirmación de la contraseña no concuerda con tu contraseña." +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Obtener nueva contraseña" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Seleccionar criterio" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "Configuraciones de %s's" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Álbum" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Elija la carpeta" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Tasa de bits (Kbps)" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Fijar" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Carpeta actual de importación:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Compositor" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Añadir" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Director" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Re-escanear el directorio monitoreado (esto es útil si es un directorio " +"montado sobre una red y pudiera no estar en sincronía con Airtime)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Derechos de autor" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Remover el directorio monitoreado" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Creador" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "No está monitoreando ninguna carpeta de medios." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Codificado por" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Requerido)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Ayuda a mejorar Airtime informando a Sourcefabric sobre cómo lo estás " +"usando. Esta información se recolectará regularmente para mejorar tu " +"experiencia como usuario. %sHaz clic en la casilla 'Send support " +"feedback' (Enviar retroalimentación de soporte) y procuraremos que las " +"funciones que usas mejoren constantemente." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Sello" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "" +"Haz clic en la casilla de abajo para promocionar tu estación en " +"%sSourcefabric.org%s." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Idioma" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(Para poder promocionar tu estación, 'Send support feedback' (Enviar " +"retroalimentación de soporte) debe estar activado)." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Último modificado" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(únicamente para fines de verificación, no será publicado)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Último reproducido" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Nota: cualquier cosa mayor a 600x600 será redimensionada." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Duración" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Muéstrame lo que estoy enviando" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Mime" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Política de privacidad de Sourcefabric" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Estilo (mood)" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Encontrar shows" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Propietario" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Filtrar ppor show:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Ganancia en la repetición" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "Correo electrónico / Configuración del servidor de correo" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Tasa de muestreo (kHz)" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "Configuración de SoundCloud" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Título" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Elige los días:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Número de registro" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Elimina" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Cargado" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Stream" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Sitio web" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Optiones adicionales" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Año" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "" +"La siguiente información se desplegará a los oyentes en sus reproductores:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Elige un modificador" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(El sitio web de tu estación)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "contiene" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "URL del stream:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "no contiene" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "URL de conexión:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "es" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Restablecer contraseña" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "no es" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Registrar Airtime" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "empieza con" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "" +"Ayúdenos a mejorar Airtime dándonos a conocer cómo lo está usando. Esta " +"información se recopila con regularidad para mejorar la experiencia de los " +"usuarios.%s Haga clic en 'Sí, ayudar a Airtime' y nos aseguraremos de que " +"las funciones que más utiliza se mantengan bajo constante mejora." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "termina con" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Acepta la siguiente opción para anunciar tu estación en %sSourcefabric.org" +"%s. A fin de promover tu estación debes activar la opción de 'Enviar " +"retroalimentación de soporte'. Estos datos se recopilarán además de dichos " +"comentarios." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "es mayor que" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Términos y condiciones" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "es menor que" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Configuración del stream de entrada" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "está en el rango de" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "URL de la conexión de la fuente maestra:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "horas" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Anular" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "minutos" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "OK" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "items" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "RESTABLECER" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Configura un tipo de bloque inteligente:" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "URL de la conexión de la fuente del show" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Estático" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Opciones del bloque inteligente" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Dinámico" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Permitir repetición de pistas:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Limitar a" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr "para" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Generar contenido para la lista de reproducción y guardar criterios" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "los archivos si cumplen con los criterios" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Generar" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "los archivos si cumplen con los criterios" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Reproducir de forma aleatoria los contenidos de la lista de reproducción" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Días en que se repite:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Reproducción aleatoria" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Filtrar historial" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "El límite no puede estar vacío o ser menor que 0" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Cerrar" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "El límite no puede ser mayor a 24 horas" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Añadir este show" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "El valor debe ser un número entero" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Actualizar show" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "500 es el valor máximo de ítems que se pueden configurar" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "Que" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "Debes elegir Criterios y Modificador" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "Cuando" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "'Length' (la duración) debe establecerse e un formato de '00:00:00' " +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Entrada de stream en vivo" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "El valor debe estar en un formato de tiempo (e.g. 0000-00-00 or 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Grabar y retransmitir" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "El valor debe ser numérico" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Quien" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "El valor debe ser menor a 2147483648" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Estilo" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "El valor debe ser menor que los caracteres %s" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Inicio" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "El valor no se puede vaciar" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Configuración de stream" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Apagado automático" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Configuración global" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Encendido automático" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "dB" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Cambiar el Fade (s) de Transición" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Configuración de los streams de salida" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "ingresa un tiempo en segundos 00{.000000}" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Administrar las Carpetas de Medios" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Usuario master" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Aplicación de Zend Framework por defecto" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Contraseña master" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "¡Página no encontrada!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "URL de la conexión de la fuente maestra" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "¡Parece que la página que buscas no existe!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "URL de la conexión de la fuente del show" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Puerto de la fuente maestra" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Punto maestro de instalación de la fuente" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Mostrar puerto de la fuente" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Mostrar punto de instalación de la fuente" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "No puedes usar el mismo puerto que el del DJ maestro" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "El puerto %s no está disponible" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Teléfono:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Sitio web de la estación:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "" + +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Nombre" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "País:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "Ciudad:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Descripción de la estación:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Logo de la estación:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "Nueva contraseña" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Enviar retroalimentación respecto al soporte técnico" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "" +"Por favor ingrese y confirme una nueva cotnraseña en los campos que aparecen " +"a continuación." -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Ingreso" + +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." msgstr "" +"¡Bienvenido al demo de Airtime en línea! Puedes ingresar usando el nombre de " +"usuario 'admin' y la contraseña 'admin'." -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." msgstr "" +"Por favor ingresa el correo electrónico con el que te suscribiste. " +"Recibirás por ese medio un enlace para crear una nueva contraseña." -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "Debes aceptar las políticas de privacidad." +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "Correo enviado" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "El valor es necesario y no puede estar vacío" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "Se envió un correo electrónico" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "De vuelta a la pantalla ingreso" + +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" msgstr "" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" msgstr "" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" msgstr "" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "¿Grabar desde la entrada (line in)?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "previo" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "¿Reprogramar?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "reproducir" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "pausa" -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Use la autenticación personalizada:" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "próximo" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Usuario personalizado" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "parar" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Contraseña personalizada" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "volumen máximo" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "El campo de usuario no puede estar vacío." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Se requiere actualizar" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "El campo de contraseña no puede estar vacío." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 +#, php-format +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." +msgstr "" +"Para reproducir estas pistas necesitarás actualizar tu navegador a una " +"versión más reciente o atualizar tus plugin%s de %sFlash" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "Correo electrónico" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Servicio" -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Restablecer contraseña" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Tiempo de actividad (uptime)" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Salida del equipo de audio" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Tipo de salida" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Memoria" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Metadata Icecast Vorbis" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Versión de Airtime" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Sello del stream:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Espacio en disco" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Artísta - Título" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Administrar usuarios" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Show - Artista - Título" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "Nuevo usuario" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Nombre de la estación - nombre del show" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "id" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Metadata fuera del aire" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Usuario" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Activar ajuste del volumen" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "Nombre" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Modificar ajuste de volumen" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Apellido" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%value%' no es una dirección de correo electrónico válida en el formato básico local-part@hostname" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "Tipo de usuario" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" -msgstr "'%value%' no se ajusta al formato de fecha '%format%'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Previamente:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" -msgstr "'%value%' tiene menos de %min% caracteres" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Próximamente:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" -msgstr "'%value%' tiene más de %max% caracteres" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Streams fuente" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" -msgstr "'%value%' no está entre '%min%' y '%max%', inclusive" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Fuente maestra " + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Fuente del show" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Contenido programado" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "AL AIRE" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" -msgstr "Las contraseñas no coinciden" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Escuchar" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' no concuerda con el formato de tiempo 'HH:mm'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Nombre de la estación" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Fecha/hora de inicio:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Tu prueba expira el" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Fecha/hora de finalización:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "días" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Duración:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Adquiere tu copia de Airtime" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Huso horario:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "Mi cuenta" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "¿Se repite?" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Usuario:" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "No puedes crear un show en el pasado" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Contraseña:" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "No puedes modificar la hora/fecha de inicio de un show que ya empezó" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "" +"Digita los caracteres que ves en la gráfica que aparece a continuación." -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "La fecha/hora de finalización no puede estar en el pasado." +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Se introdujo un caracter inválido" -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "No puede tener una duración < 0m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "Se debe especificar un día" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "No puede tener una duración 00h 00m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "Se debe especificar una hora" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "No puede tener una duración mayor a 24 horas" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "Debes esperar al menos 1 hora para reprogramar" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "No se pueden programar shows traslapados" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Use la autenticación de Airtime:" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Nombre:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Use la autenticación personalizada:" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Show sin nombre" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Usuario personalizado" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Contraseña personalizada" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Descripción:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "El campo de usuario no puede estar vacío." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" -msgstr "Subir automáticamente los shows grabados" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "El campo de contraseña no puede estar vacío." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" -msgstr "Activar la carga a SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Activado:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" -msgstr "Marcar automáticamente los archivos \"Downloadable\" en SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Tipo de stream:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" -msgstr "Correo electrónico SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Tipo de servicio:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" -msgstr "Contraseña SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Canales:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" -msgstr "Etiquetas SoundCloud: (separadas con espacios)" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" -msgstr "Género por defecto:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Estéreo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" -msgstr "Tipo de pista por defecto:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Servidor" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" -msgstr "Original" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Puerto" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "Mezcla" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Solo se permiten números." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "En vivo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Contraseña" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "Grabando" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "Hablado" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Punto de instalación" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "Podcast" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Usuario administrativo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "Demo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Contraseña administrativa" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "Trabajo en progreso" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Obteniendo información desde el servidor..." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "Stem" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "El servidor no puede estar vacío." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "Loop" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "El puerto no puede estar vacío." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "Efecto de sonido" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "La instalación no puede estar vacía con el servidor Icecast." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "Muestreo de una toma " +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Carpeta de importación:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "Otro" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Carpetas monitoreadas:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Licencia por defecto:" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "No es un directorio válido" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "El trabajo es de dominio público" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "El valor es necesario y no puede estar vacío" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "Todos los derechos reservados" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'%value%' no es una dirección de correo electrónico válida en el formato " +"básico local-part@hostname" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Atribución Creative Commons" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" +msgstr "'%value%' no se ajusta al formato de fecha '%format%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Atribución-NoComercial Creative Commons" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" +msgstr "'%value%' tiene menos de %min% caracteres" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Atribución-sinDerivadas Creative Commons" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" +msgstr "'%value%' tiene más de %max% caracteres" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Atribución-CompartirIgual Creative Commons" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" +msgstr "'%value%' no está entre '%min%' y '%max%', inclusive" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Atribución-NoComercial-SinDerivadas Creative Commons" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" +msgstr "Las contraseñas no coinciden" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Atribución-NoComercial-CompartirIgual Creative Commons" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "¿Grabar desde la entrada (line in)?" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "¿Reprogramar?" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "Activar Correos elctrónicos del Sistema (Restablecer Contraseña)" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Color de fondo:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Restablecer la contraseña del correo electrónico del 'Emisor' ('From')" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Color del texto:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Configurar el servidor de correo" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "Correo electrónico" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Requiere autenticación" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Restablecer contraseña" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Servidor de correo" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Cancelar" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "Correo electrónico" +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Verificar contraseña:" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "Verifica que la contraseña del usuario admin. esté correcta en Sistema->página de streams." +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Nombre:" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Webstream si nombre" +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Apellido:" -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Se almacenó el webstream" +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "Correo electrónico" -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Los valores en el formulario son inválidos." +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Celular:" -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Por favor ingresa tu usuario y contraseña" +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "El usuario o la contraseña son incorrectos. Por favor intenta de nuevo." +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "No fue posible enviar el correo electrónico. Revisa tu configuración de correo y asegúrate de que sea correcta." +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "No se encontró ese correo electrónico." +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Tu usuario no es único." -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Retransmitir el show %s de %s a %s " +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Salida del equipo de audio" -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Descargar" +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Tipo de salida" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "Se agregó exitosamente el usuario." +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Metadata Icecast Vorbis" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "Se actualizó exitosamente el usuario." +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Sello del stream:" -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "¡Configuraciones actualizadas con éxito!" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Artísta - Título" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "No se encontró esa página" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Show - Artista - Título" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Error de la aplicación" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Nombre de la estación - nombre del show" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Grabando:" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Metadata fuera del aire" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Stream maestro" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Activar ajuste del volumen" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Stream en vivo" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Modificar ajuste de volumen" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Nada programado" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" +msgstr "Subir automáticamente los shows grabados" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Show actual:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" +msgstr "Activar la carga a SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Actual" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +msgstr "Marcar automáticamente los archivos \"Downloadable\" en SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "Estás usando la versión más reciente" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" +msgstr "Correo electrónico SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "Ya está disponible una versión nueva:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" +msgstr "Contraseña SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "Pronto esta versión será obsoleta." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" +msgstr "Etiquetas SoundCloud: (separadas con espacios)" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "Esta versión ya no cuenta con soporte." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" +msgstr "Género por defecto:" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Por favor actualiza a" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" +msgstr "Tipo de pista por defecto:" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Añadir a la lista de reproducción actual" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" +msgstr "Original" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Añadir al bloque inteligente actual" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "Mezcla" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Añadiendo 1 item" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "En vivo" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Añadiendo %s ítems" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "Grabando" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "Solo puedes añadir pistas a bloques inteligentes" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "Hablado" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "solo puedes añadir pistas, bloques inteligentes y webstreams a listas de reproducción." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "Podcast" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "Indica tu selección en la lista de reproducción actual." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "Demo" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Editar metadata" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "Trabajo en progreso" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Añadir al show seleccionado" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "Stem" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Seleccionar" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "Loop" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Seleccionar esta página" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "Efecto de sonido" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Deseleccionar esta página" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "Muestreo de una toma " -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Deseleccionar todo" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "Otro" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "¿De verdad quieres eliminar los ítems seleccionados?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Licencia por defecto:" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "El trabajo es de dominio público" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "Todos los derechos reservados" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Tasa de bits" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Atribución Creative Commons" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Tasa de muestreo" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Atribución-NoComercial Creative Commons" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Cargando..." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Atribución-sinDerivadas Creative Commons" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "Todo" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Atribución-CompartirIgual Creative Commons" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Archivos" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Atribución-NoComercial-SinDerivadas Creative Commons" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Listas de reproducción" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Atribución-NoComercial-CompartirIgual Creative Commons" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Bloques inteligentes" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Nombre de la estación" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Web streams" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Tipo desconocido:" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "ingresa el tiempo en segundos 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "¿De verdad deseas eliminar el ítem seleccionado?" +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Carga en progreso..." +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Recolectando data desde el servidor..." +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Permitir a sitios web remotos acceder a \"Schedule\" Info?%s (Activa esto " +"para que los widgets públicos funcionen.)" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "El ID de SoundCloud para este archivo es:" +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Desactivado" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "Se registró un error mientras se cargaba a SoundCloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Activado" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Código de error:" +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Idioma de la interfaz por defecto" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Msg de error:" +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "La entrada debe ser un número positivo" +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "La semana empieza el" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "La entrada debe ser un número" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "domingo" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "La entrada debe estar en el siguiente formato: yyyy-mm-dd" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "lunes" + +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "martes" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "La entrada debe estar en el siguiente formato: hh:mm:ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "miércoles" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "Actualmente estas subiendo archivos. %sSi cambias de pantalla el proceso de carga se cancelará. %s¿De verdad quieres dejar esta página e ir a otra?" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "jueves" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Viernes" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "por favor ingresa un tiempo '00:00:00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Sábado" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "por favor ingresa un tiempo '00 (.0)'" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Fecha de Inicio:" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Tu navegador no respalda la reproducción de este tipo de archivos:" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Fecha de Finalización:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Los bloques dinámicos no se pueden previsualizar" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Teléfono:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Limitado a:" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Sitio web de la estación:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Se guardó la lista de reproducción" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "País:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "Se mezclaron las listas de reproducción." +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "Ciudad:" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime no está seguro del estatus de este archivo. Esto puede ocurrir cuando el archivo está en un disco remoto que no está accesible o el archivo está en un directorio que ya no está 'monitoreado'." +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Descripción de la estación:" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "El conteo de los oyentes en %s: %s" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Logo de la estación:" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Recuérdame en 1 semana" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Enviar retroalimentación respecto al soporte técnico" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Nunca me recuerdes" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Promover mi estación en Sourcefabric.org" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Sí, ayudar a Airtime" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "" +"Al seleccionar esta opción, acepto las %spolíticas de privacidad%s de " +"Sourcefabric." -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "La imagen debe ser jpg, jpeg, png, o gif" +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "Debes aceptar las políticas de privacidad." -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "Un bloque inteligente estático almacenará los criterios y generará el contenido del bloque inmediatamente. Esto te permite editarlo y verlo en la biblioteca antes de agregarlo a un show." +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' no concuerda con el formato de tiempo 'HH:mm'" -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "Un bloque inteligente dinámico sólo guardará los criterios. El contenido del bloque será generado al agregarlo a un show. No podrás ver ni editar el contenido en la Biblioteca." +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Fecha/hora de inicio:" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "La duración deseada para el bloque no se alcanzará si Airtime no puede encontrar suficientes pistas únicas que se ajusten a tus criterios. Activa esta opción si deseas que se agreguen pistas varias veces al bloque inteligente." +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Fecha/hora de finalización:" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Se reprodujo el bloque inteligente de forma aleatoria" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Duración:" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Bloque inteligente generado y criterios guardados" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Huso horario:" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Se guardó el bloque inteligente" +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "¿Se repite?" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Procesando..." +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "No puedes crear un show en el pasado" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Elegir carpeta de almacenamiento" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "No puedes modificar la hora/fecha de inicio de un show que ya empezó" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Elegir carpeta para monitorear" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "La fecha/hora de finalización no puede estar en el pasado." -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "¿Estás seguro de querer cambiar la carpeta de almacenamiento?\n ¡Esto eliminará los archivos de tu biblioteca de Airtime!" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "No puede tener una duración < 0m" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Administrar las Carpetas de Medios" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "No puede tener una duración 00h 00m" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "¿Estás seguro de que quieres quitar la carpeta monitoreada?" +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "No puede tener una duración mayor a 24 horas" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "Esta ruta actualmente está inaccesible." +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Show sin nombre" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Búsqueda de usuarios:" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Conectado al servidor de streaming" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "DJs:" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "Se desactivó el stream" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Confirma nueva contraseña" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "No es posible conectar el servidor de streaming" +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "La confirmación de la contraseña no concuerda con tu contraseña." -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Si Airtime está detrás de un router o firewall, posiblemente tengas que configurar una redirección en el puerto (port forwarding) y esta información de campo será incorrecta. En este caso necesitarás actualizar manualmente el campo pra que muestre el host/port/mount correcto al que tus DJs necesitan conectarse. El rango permitido es entre 1024 y 49151. " +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Obtener nueva contraseña" -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "Para más detalles, por favor lee el Manual%s de %sAirtime" +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "Tipo de usuario:" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Elige esta opción para activar los metadatos de los streams OGG (los metadatos del stream incluyen información de la pista como título, artista y nombre del show, los cuales se desplegarán en el reproductor de audio). VLC y mplayer muestran un bug serio cuando reproducen streams OGG/VORBIS que tienen los metadatos activados: se desconectarán del stream después de cada pista. Si eestas usando un stream OGG y tus oyentes no requieren soporte para estos reproductores de audio, entonces activa esta opción." +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Invitado" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Elige esta opción para desactivar automáticamente la fuente maestra/del show cuando ocurra una desconexión de la fuente." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "DJ" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Elige esta opción para activar automáticamente la fuente maestra/del show cuando ocurra una desconexión de la fuente." +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Administrador de programa" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Si tu servidor de Icecast te pide un usuario para la 'source' (fuente), puedes dejar este campo en blanco." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Admin" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "Si tu cliente de streaming en vivo no te pide un usuario, este campo debe ser la 'source' (fuente)." +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "Número ISRC:" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "Si cambias los valores del usuario o contraseña para un stream activado el motor de reproducción se reiniciará y tus oyentes escucharán silencio por 5-10 segundos. Cambiar los siguientes campos NO provocará un reinicio del sistema: sello del stream (configuración global), Switch en el fade (s) de transición, usuario maestro y contraseña maestra (configuración del stream de entrada). Si Airtime está grabando y si el cambio provoca el reinicio del motor de reproducció, la grabación se interrumpirá." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Show:" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "Este es el usuario y contraseña administrativa de Icecast/SHOUTcast para obtener las estadísticas de oyentes." +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "Todos mis shows:" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "Sin resultados" - -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "Esto sigue el mismo patrón de seguridad de los shows: solo los usuarios asignados al show se pueden conectar." - -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Especifique una autenticación personalizada que funcione solo para este show." +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Repetir tipo:" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "¡La instancia de este show ya no existe!" +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "semanal" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Show" +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "mensual" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "El show está vacío" +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Seleccione días:" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1m" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "Dom" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5m" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Lun" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10m" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Mar" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15m" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "Miér" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30m" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Jue" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60m" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Vier" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Recopilando información desde el servidor..." +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "Sab" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "Este show no cuenta con contenido programado." +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "A este show le falta contenido. " +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "enero" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "febrero" +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "¿Sin fin?" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "marzo" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "La fecha de finalización debe ser posterior a la inicio" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "abril" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "mayo" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "Activar Correos elctrónicos del Sistema (Restablecer Contraseña)" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "junio" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Restablecer la contraseña del correo electrónico del 'Emisor' ('From')" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "julio" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Configurar el servidor de correo" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "agosto" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Requiere autenticación" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "septiembre" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Servidor de correo" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "octubre" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "Correo electrónico" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "noviembre" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Seleccionar criterio" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "diciembre" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Tasa de bits (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Ene" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" + +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Cue in" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "feb" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Cue out" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "mar" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Codificado por" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "abr" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Último modificado" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "jun" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Último reproducido" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "jul" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Mime" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "ag" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Propietario" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "sept" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Ganancia en la repetición" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "oct" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Tasa de muestreo (kHz)" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "nov" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Número de registro" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "dic" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Cargado" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "hoy" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Sitio web" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "día" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Elige un modificador" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "semana" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "contiene" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "mes" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "no contiene" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Los shows que sean más largos que su segmento programado serán cortados por el show que continúe." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "es" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "¿Deseas cancelar el show actual?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "no es" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "¿Deseas detener la grabación del show actual?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "empieza con" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "Ok" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "termina con" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Contenidos del show" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "es mayor que" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "¿Eliminar todo el contenido?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "es menor que" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "¿Eliminar los ítems seleccionados?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "está en el rango de" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Inicio" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "horas" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "Final" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "minutos" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Duración" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "items" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Show vacío" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Configura un tipo de bloque inteligente:" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Grabando desde la entrada" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Estático" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Previsualización de la pista" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Dinámico" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "No es posible programar un show externo." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Permitir repetición de pistas:" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Moviendo 1 ítem" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Limitar a" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Moviendo %s ítems." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Generar contenido para la lista de reproducción y guardar criterios" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Generar" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" msgstr "" +"Reproducir de forma aleatoria los contenidos de la lista de reproducción" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "El límite no puede estar vacío o ser menor que 0" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Seleccionar todos" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "El límite no puede ser mayor a 24 horas" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Seleccionar uno" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "El valor debe ser un número entero" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Eliminar pistas utilizadas con demasiada frecuencia." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "500 es el valor máximo de ítems que se pueden configurar" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Eliminar los ítems programados seleccionados" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "Debes elegir Criterios y Modificador" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Saltar a la pista en reproducción actual" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "'Length' (la duración) debe establecerse e un formato de '00:00:00' " -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Cancelar el show actual" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"El valor debe estar en un formato de tiempo (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Abrir biblioteca para agregar o eliminar contenido" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "El valor debe ser numérico" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Agregar / eliminar contenido" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "El valor debe ser menor a 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "en uso" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "El valor debe ser menor que los caracteres %s" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Disco" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "El valor no se puede vaciar" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Buscar en" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Apagado automático" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Abrir" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Encendido automático" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "Los invitados pueden hacer lo siguiente:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Cambiar el Fade (s) de Transición" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "Ver programación" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "ingresa un tiempo en segundos 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "Ver contenido del show" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Usuario master" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "Los DJ pueden hacer lo siguiente:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Contraseña master" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Administrar el contenido del show asignado" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "URL de la conexión de la fuente maestra" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Importar archivos de medios" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "URL de la conexión de la fuente del show" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Crear listas de reproducción, bloques inteligentes y webstreams" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Puerto de la fuente maestra" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Administrar su propia biblioteca de contenido" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Punto maestro de instalación de la fuente" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "Los encargados de programa pueden hacer lo siguiente:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Mostrar puerto de la fuente" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "Ver y administrar contenido del show" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Mostrar punto de instalación de la fuente" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Programar shows" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "No puedes usar el mismo puerto que el del DJ maestro" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "Administrar el contenido de toda la biblioteca" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "El puerto %s no está disponible" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Los administradores pueden:" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" +"Airtime Copyright ©Sourcefabric o.p.s. Todos los derechos reservados." +"%sMantenido y distribuido bajo GNU GPL v.3 por %sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Administrar preferencias" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Salir" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "Administrar usuarios" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "Administrar folders monitoreados" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "Ver el estatus del sistema" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Acceder al historial de reproducción" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "Ver las estadísticas de los oyentes" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Mostrar / ocultar columnas" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Fade In" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "De {from} para {to}" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Fade out" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Reproductor de audio" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "yyyy-mm-dd" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Por favor ingresa tu usuario y contraseña" -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "" +"El usuario o la contraseña son incorrectos. Por favor intenta de nuevo." + +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"No fue posible enviar el correo electrónico. Revisa tu configuración de " +"correo y asegúrate de que sea correcta." -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "No se encontró ese correo electrónico." -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Dom" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Grabando:" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Lun" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Stream maestro" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Mar" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Stream en vivo" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "Miér" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Nada programado" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Jue" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Show actual:" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Vier" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Actual" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Sáb" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "Estás usando la versión más reciente" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Cerrar" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "Ya está disponible una versión nueva:" -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Hora" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "Pronto esta versión será obsoleta." -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Minuto" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "Esta versión ya no cuenta con soporte." -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Hecho" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Por favor actualiza a" -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Seleccione los archivos" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Añadir a la lista de reproducción actual" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Añade los archivos a la cola de carga y haz clic en el botón de iniciar." +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Añadir al bloque inteligente actual" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Estatus" +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Añadiendo 1 item" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Añadir archivos" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "Añadiendo %s ítems" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Detener carga" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "Solo puedes añadir pistas a bloques inteligentes" -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Iniciar carga" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "" +"solo puedes añadir pistas, bloques inteligentes y webstreams a listas de " +"reproducción." -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Añadir archivos" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "Indica tu selección en la lista de reproducción actual." -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "Archivos %d/%d cargados" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Editar metadata" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "No disponible" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Añadir al show seleccionado" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Arrastra los archivos a esta área." +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Seleccionar" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "Error de extensión del archivo." +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Seleccionar esta página" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "Error de tamaño del archivo." +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Deseleccionar esta página" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "Error de cuenta del archivo." +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Deseleccionar todo" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Error de inicialización." +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "¿De verdad quieres eliminar los ítems seleccionados?" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "Error de HTTP." +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Error de seguridad." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Error genérico." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Tasa de bits" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "Error IO." +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Tasa de muestreo" -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "Archivo: %s" +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "Cargando..." -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d archivos en cola" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Archivos" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "Archivo: %f, tamaño: %s, tamaño máximo del archivo: %m" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Listas de reproducción" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "Puede que el URL de carga no esté funcionando o no exista" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Bloques inteligentes" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Error: el archivo es demasiado grande:" +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Web streams" + +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Tipo desconocido:" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Error: extensión de archivo inválida:" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "¿De verdad deseas eliminar el ítem seleccionado?" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Carga en progreso..." -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Recolectando data desde el servidor..." -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "El ID de SoundCloud para este archivo es:" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "Se copiaron %s celda%s al portapapeles" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "Se registró un error mientras se cargaba a SoundCloud." -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "Vista%s de %simpresión Por favor usa tu navegador para imprimir esta tabla. Presiona escape cuando termines." +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Código de error:" -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "No tienes permiso para desconectar la fuente." +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Msg de error:" -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "No hay fuente conectada a esta entrada." +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "La entrada debe ser un número positivo" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "No tienes permiso para prender/apagar la fuente." +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "La entrada debe ser un número" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "Estas viendo una versión antigua de %s" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "La entrada debe estar en el siguiente formato: yyyy-mm-dd" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "No puedes añadir pistas a los bloques dinámicos." +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "La entrada debe estar en el siguiente formato: hh:mm:ss.t" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "%s not found" -msgstr "No se encontró %s" +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"Actualmente estas subiendo archivos. %sSi cambias de pantalla el proceso de " +"carga se cancelará. %s¿De verdad quieres dejar esta página e ir a otra?" -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "No tienes permiso para eliminar los %s(s) seleccionados." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Algo falló." +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "por favor ingresa un tiempo '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "Solo puedes añadir pistas a los bloques inteligentes." +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "por favor ingresa un tiempo '00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Lista de reproducción sin nombre" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "Tu navegador no respalda la reproducción de este tipo de archivos:" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Bloque inteligente sin nombre" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Los bloques dinámicos no se pueden previsualizar" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Lista de reproducción desconocida" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Limitado a:" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "No tienes permiso para acceder a esta fuente." +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Se guardó la lista de reproducción" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "No tienes permiso para acceder a esta fuente." +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "Se mezclaron las listas de reproducción." -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." msgstr "" +"Airtime no está seguro del estatus de este archivo. Esto puede ocurrir " +"cuando el archivo está en un disco remoto que no está accesible o el archivo " +"está en un directorio que ya no está 'monitoreado'." -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Solicitud errónea. Ningún parámetro 'mode' pasó." +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "El conteo de los oyentes en %s: %s" -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Solicitud errónea. El parámetro 'mode' es inválido" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "Recuérdame en 1 semana" -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Previsualizar" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Nunca me recuerdes" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Agregar a lista de reproducción." +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Sí, ayudar a Airtime" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Agregar un bloque inteligente" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "La imagen debe ser jpg, jpeg, png, o gif" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Eliminar" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." +msgstr "" +"Un bloque inteligente estático almacenará los criterios y generará el " +"contenido del bloque inmediatamente. Esto te permite editarlo y verlo en la " +"biblioteca antes de agregarlo a un show." -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Lista de reproducción duplicada" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"Un bloque inteligente dinámico sólo guardará los criterios. El contenido " +"del bloque será generado al agregarlo a un show. No podrás ver ni editar el " +"contenido en la Biblioteca." -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Editar" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"La duración deseada para el bloque no se alcanzará si Airtime no puede " +"encontrar suficientes pistas únicas que se ajusten a tus criterios. Activa " +"esta opción si deseas que se agreguen pistas varias veces al bloque " +"inteligente." -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Se reprodujo el bloque inteligente de forma aleatoria" + +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Bloque inteligente generado y criterios guardados" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Ver en SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Se guardó el bloque inteligente" -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Volver a cargar a SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "Procesando..." -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Cargar a SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Elegir carpeta de almacenamiento" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "No una acción disponible" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Elegir carpeta para monitorear" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "No tienes permiso para eliminar los ítems seleccionados." +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"¿Estás seguro de querer cambiar la carpeta de almacenamiento?\n" +" ¡Esto eliminará los archivos de tu biblioteca de Airtime!" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "No se pudo eliminar algunos de los archivos programados." +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "¿Estás seguro de que quieres quitar la carpeta monitoreada?" -#: airtime_mvc/application/controllers/LibraryController.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "Esta ruta actualmente está inaccesible." + +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 #, php-format -msgid "Copy of %s" -msgstr "Copia de %s" +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Elegir cursor" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Conectado al servidor de streaming" -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Eliminar cursor" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "Se desactivó el stream" -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "El show no existe" +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "No es posible conectar el servidor de streaming" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Se actualizaron las preferencias." +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"Si Airtime está detrás de un router o firewall, posiblemente tengas que " +"configurar una redirección en el puerto (port forwarding) y esta información " +"de campo será incorrecta. En este caso necesitarás actualizar manualmente " +"el campo pra que muestre el host/port/mount correcto al que tus DJs " +"necesitan conectarse. El rango permitido es entre 1024 y 49151. " -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Se actualizaron las configuraciones de soporte." +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "Para más detalles, por favor lee el Manual%s de %sAirtime" -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Tu estación en nuestro catálogo" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"Elige esta opción para activar los metadatos de los streams OGG (los " +"metadatos del stream incluyen información de la pista como título, artista y " +"nombre del show, los cuales se desplegarán en el reproductor de audio). VLC " +"y mplayer muestran un bug serio cuando reproducen streams OGG/VORBIS que " +"tienen los metadatos activados: se desconectarán del stream después de cada " +"pista. Si eestas usando un stream OGG y tus oyentes no requieren soporte " +"para estos reproductores de audio, entonces activa esta opción." -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Se actualizaron las configuraciones del stream." +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Elige esta opción para desactivar automáticamente la fuente maestra/del show " +"cuando ocurra una desconexión de la fuente." -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "se debe especificar la ruta" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Elige esta opción para activar automáticamente la fuente maestra/del show " +"cuando ocurra una desconexión de la fuente." -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Hay un problema con Liquidsoap..." +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"Si tu servidor de Icecast te pide un usuario para la 'source' (fuente), " +"puedes dejar este campo en blanco." -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Reproduciéndose ahora" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"Si tu cliente de streaming en vivo no te pide un usuario, este campo debe " +"ser la 'source' (fuente)." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Añadir pistas" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"Si cambias los valores del usuario o contraseña para un stream activado el " +"motor de reproducción se reiniciará y tus oyentes escucharán silencio por " +"5-10 segundos. Cambiar los siguientes campos NO provocará un reinicio del " +"sistema: sello del stream (configuración global), Switch en el fade (s) de " +"transición, usuario maestro y contraseña maestra (configuración del stream " +"de entrada). Si Airtime está grabando y si el cambio provoca el reinicio " +"del motor de reproducció, la grabación se interrumpirá." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Biblioteca" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"Este es el usuario y contraseña administrativa de Icecast/SHOUTcast para " +"obtener las estadísticas de oyentes." -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Calendario" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "Sistema" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "Sin resultados" -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Preferencias" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"Esto sigue el mismo patrón de seguridad de los shows: solo los usuarios " +"asignados al show se pueden conectar." -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Usuarios" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "" +"Especifique una autenticación personalizada que funcione solo para este show." -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Carpetas de medios" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "¡La instancia de este show ya no existe!" -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Streams" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Estadísticas de oyentes" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." msgstr "" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Historial de reproducción" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Show" -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "El show está vacío" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Ayuda" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1m" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Cómo iniciar" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5m" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "Manual para el usuario" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10m" + +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15m" + +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30m" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "Sobre nosotros" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Servicio" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Recopilando información desde el servidor..." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Tiempo de actividad (uptime)" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "Este show no cuenta con contenido programado." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "A este show le falta contenido. " -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Memoria" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "enero" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "febrero" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Espacio en disco" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "marzo" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "Correo electrónico / Configuración del servidor de correo" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "abril" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "Configuración de SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "mayo" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Días en que se repite:" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "junio" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Elimina" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "julio" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Añadir" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "agosto" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "URL de conexión:" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "septiembre" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Configuración del stream de entrada" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "octubre" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "URL de la conexión de la fuente maestra:" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "noviembre" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Anular" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "diciembre" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "OK" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Ene" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "RESTABLECER" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "feb" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "URL de la conexión de la fuente del show" +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "mar" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Requerido)" +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "abr" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Registrar Airtime" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "jun" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "jul" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "ag" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(únicamente para fines de verificación, no será publicado)" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "sept" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Nota: cualquier cosa mayor a 600x600 será redimensionada." +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "oct" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Muéstrame lo que estoy enviando" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "nov" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Términos y condiciones" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "dic" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Restablecer contraseña" +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "hoy" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Elija la carpeta" +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "día" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Fijar" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "semana" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Carpeta actual de importación:" +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "mes" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" +"Shows longer than their scheduled time will be cut off by a following show." msgstr "" +"Los shows que sean más largos que su segmento programado serán cortados por " +"el show que continúe." -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Remover el directorio monitoreado" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "¿Deseas cancelar el show actual?" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "No está monitoreando ninguna carpeta de medios." +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "¿Deseas detener la grabación del show actual?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Stream" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "Ok" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Optiones adicionales" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Contenidos del show" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "La siguiente información se desplegará a los oyentes en sus reproductores:" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "¿Eliminar todo el contenido?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(El sitio web de tu estación)" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "¿Eliminar los ítems seleccionados?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "URL del stream:" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "Final" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Filtrar historial" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Duración" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Encontrar shows" +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Show vacío" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Filtrar ppor show:" +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Grabando desde la entrada" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "Configuraciones de %s's" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Previsualización de la pista" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "No es posible programar un show externo." -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(Para poder promocionar tu estación, 'Send support feedback' (Enviar retroalimentación de soporte) debe estar activado)." +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Moviendo 1 ítem" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Política de privacidad de Sourcefabric" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Moviendo %s ítems." -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" msgstr "" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" msgstr "" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Elige los días:" - -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Opciones del bloque inteligente" - -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Seleccionar todos" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr "para" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Seleccionar uno" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "los archivos si cumplen con los criterios" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Eliminar pistas utilizadas con demasiada frecuencia." -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "los archivos si cumplen con los criterios" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Eliminar los ítems programados seleccionados" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Saltar a la pista en reproducción actual" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Cancelar el show actual" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "Abrir biblioteca para agregar o eliminar contenido" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "en uso" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Disco" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Buscar en" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Abrir" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "Los invitados pueden hacer lo siguiente:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "Ver programación" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "Ver contenido del show" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "Los DJ pueden hacer lo siguiente:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "Nuevo" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "Administrar el contenido del show asignado" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "Nueva lista de reproducción" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Importar archivos de medios" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "Nuevo bloque inteligente" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Crear listas de reproducción, bloques inteligentes y webstreams" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "Nuevo webstream" +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "Administrar su propia biblioteca de contenido" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "Ver / editar descripción" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "Los encargados de programa pueden hacer lo siguiente:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "URL del stream:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "Ver y administrar contenido del show" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Duración por defecto:" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Programar shows" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "No existe un webstream" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "Administrar el contenido de toda la biblioteca" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Configuración de stream" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "Los administradores pueden:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Configuración global" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Administrar preferencias" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "dB" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "Administrar usuarios" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Configuración de los streams de salida" +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "Administrar folders monitoreados" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "Importación del archivo en progreso..." +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "Ver el estatus del sistema" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Opciones de búsqueda avanzada" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Acceder al historial de reproducción" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "previo" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "Ver las estadísticas de los oyentes" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "reproducir" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Mostrar / ocultar columnas" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "pausa" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "De {from} para {to}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "próximo" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "parar" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "yyyy-mm-dd" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "silenciar" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "hh:mm:ss.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "desactivar silencio" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "volumen máximo" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "Dom" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Se requiere actualizar" +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Lun" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "Para reproducir estas pistas necesitarás actualizar tu navegador a una versión más reciente o atualizar tus plugin%s de %sFlash" +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Mar" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Duración:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "Miér" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Tasa de muestreo:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Jue" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "Número ISRC" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Vier" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "Ruta del archivo:" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "Sáb" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Stream web" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Hora" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Bloque inteligente dinámico" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Minuto" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Bloque inteligente estático" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Hecho" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Pista de audio" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Seleccione los archivos" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Contenido de la lista de reproducción:" +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "" +"Añade los archivos a la cola de carga y haz clic en el botón de iniciar." -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Contenido del bloque inteligente estático:" +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Añadir archivos" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Criterios del bloque inteligente dinámico:" +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Detener carga" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Límite hasta" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Iniciar carga" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Conteo de oyentes a lo largo del tiempo" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Añadir archivos" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Welcome to %s!" -msgstr "" +msgid "Uploaded %d/%d files" +msgstr "Archivos %d/%d cargados" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 -#, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "No disponible" + +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Arrastra los archivos a esta área." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Comienza agregando tus archivos a la biblioteca usando el botón 'Add Media' (Agregar Pistas). También puedes arrastrar y soltar tus archivos a esta ventana." +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "Error de extensión del archivo." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Crea un show ubicándote en 'Calendar' (Calendario) en la barra de menú, y luego haciendo clic en el ícono '+ Show' (agregar show). Este puede ser un show único o periódico. Solo los administradores y los administradores de programa pueden agregar shows." +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "Error de tamaño del archivo." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Agrega pistas al show ubicándote en tu show en el calendario de programación. Presiona clic izquierdo sobre él y selecciona 'Add / Remove Content' (Agregar / Quitar Contenido)" +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "Error de cuenta del archivo." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Selecciona tus pistas del panel izquierdo y arrástralas a tu programa en el panel derecho." +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Error de inicialización." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "¡Estas listo para comenzar!" +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "Error de HTTP." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "Para una ayuda más detallada, lee el manual%s del %susuario." +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Error de seguridad." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Compartir" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Error genérico." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Seleccionar stream:" +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "Error IO." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "" +msgid "File: %s" +msgstr "Archivo: %s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "" +msgid "%d files queued" +msgstr "%d archivos en cola" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "Nueva contraseña" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "Archivo: %f, tamaño: %s, tamaño máximo del archivo: %m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Por favor ingrese y confirme una nueva cotnraseña en los campos que aparecen a continuación." +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "Puede que el URL de carga no esté funcionando o no exista" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Por favor ingresa el correo electrónico con el que te suscribiste. Recibirás por ese medio un enlace para crear una nueva contraseña." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Error: el archivo es demasiado grande:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "Correo enviado" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "Error: extensión de archivo inválida:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "Se envió un correo electrónico" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "De vuelta a la pantalla ingreso" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "Se copiaron %s celda%s al portapapeles" + +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" +"Vista%s de %simpresión Por favor usa tu navegador para imprimir esta tabla. " +"Presiona escape cuando termines." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Previamente:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Próximamente:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Streams fuente" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Fuente maestra " - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Fuente del show" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Previsualizar" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Contenido programado" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Elegir cursor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "AL AIRE" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Eliminar cursor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Escuchar" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "El show no existe" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Nombre de la estación" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Se actualizaron las preferencias." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Tu prueba expira el" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Se actualizaron las configuraciones de soporte." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Se actualizaron las configuraciones del stream." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "Mi cuenta" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "se debe especificar la ruta" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Administrar usuarios" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Hay un problema con Liquidsoap..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "Nuevo usuario" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "No se encontró esa página" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "id" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Error de la aplicación" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "Nombre" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "No se encontró %s" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Apellido" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Algo falló." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "Tipo de usuario" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Agregar a lista de reproducción." -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Agregar un bloque inteligente" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Descargar" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Lista de reproducción duplicada" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Aplicación de Zend Framework por defecto" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "SoundCloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "¡Página no encontrada!" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "No una acción disponible" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "¡Parece que la página que buscas no existe!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "No tienes permiso para eliminar los ítems seleccionados." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Expandir bloque estático" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "No se pudo eliminar algunos de los archivos programados." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Expandir bloque dinámico" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Copia de %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Vaciar bloque inteligente" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Webstream si nombre" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Lista de reproducción vacía" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Se almacenó el webstream" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Los valores en el formulario son inválidos." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "No tienes permiso para desconectar la fuente." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Lista de reproducción aleatoria" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "No hay fuente conectada a esta entrada." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Almacenar lista de reproducción" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "No tienes permiso para prender/apagar la fuente." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Transición (crossfade) de la lista de reproducción" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "Se agregó exitosamente el usuario." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Fade in:" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "Se actualizó exitosamente el usuario." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Fade out:" +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "¡Configuraciones actualizadas con éxito!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "No hay listas de reproducción abiertas" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Retransmitir el show %s de %s a %s " -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." msgstr "" +"Verifica que la contraseña del usuario admin. esté correcta en Sistema-" +">página de streams." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "No tienes permiso para acceder a esta fuente." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "No hay bloques inteligentes abiertos" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "No tienes permiso para acceder a esta fuente." -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "El archivo no existe en Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Cue in:" +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "El archivo no existe en Airtime" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "El archivo no existe en Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Cue out:" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Solicitud errónea. Ningún parámetro 'mode' pasó." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Duración original:" +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Solicitud errónea. El parámetro 'mode' es inválido" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Añadir este show" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "Estas viendo una versión antigua de %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Actualizar show" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "No puedes añadir pistas a los bloques dinámicos." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "Que" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "No tienes permiso para eliminar los %s(s) seleccionados." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "Cuando" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "Solo puedes añadir pistas a los bloques inteligentes." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Entrada de stream en vivo" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Lista de reproducción sin nombre" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Grabar y retransmitir" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Bloque inteligente sin nombre" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Quien" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Lista de reproducción desconocida" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Estilo" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "Cue in y cue out son nulos." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Retransmisión de %s desde %s" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "No se puede asignar un cue out mayor que la duración del archivo." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Seleccionar país" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "No se puede asignar un cue in mayor al cue out." + +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "No se puede asignar un cue out menor que el cue in." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3649,43 +4337,26 @@ msgstr "Webstream inválido - Esto parece ser una descarga de archivo." msgid "Unrecognized stream type: %s" msgstr "Tipo de stream no reconocido: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s ya está siendo monitoreado." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s contiene un directorio anidado monitoreado: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s está anidado dentro de un directorio monitoreado existente: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s no es un directorio válido." - -#: airtime_mvc/application/models/MusicDir.php:232 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s ya está asignado como el directorio actual de almacenamiento o en la lista de carpetas monitoreadas." +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Hola %s, \n" +"\n" +"Haz clic en este enlace para restablecer tu contraseña: " -#: airtime_mvc/application/models/MusicDir.php:386 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s ya está asignado como el directorio actual de almacenamiento o en la lista de carpetas monitoreadas." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Restablecer contraseña de Airtime" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s no existe en la lista de monitoreo." +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Seleccionar país" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3693,13 +4364,17 @@ msgstr "" #: airtime_mvc/application/models/Scheduler.php:119 msgid "The schedule you're viewing is out of date! (sched mismatch)" -msgstr "¡El calendario que tienes a la vista no está actualizado! (sched mismatch)" +msgstr "" +"¡El calendario que tienes a la vista no está actualizado! (sched mismatch)" #: airtime_mvc/application/models/Scheduler.php:124 msgid "The schedule you're viewing is out of date! (instance mismatch)" -msgstr "¡La programación que estás viendo está desactualizada! (desfase de instancia)" +msgstr "" +"¡La programación que estás viendo está desactualizada! (desfase de instancia)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3730,38 +4405,82 @@ msgid "" "broadcasted" msgstr "" -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." -msgstr "" - +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "¡Un Archivo seleccionado no existe!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "Cue in y cue out son nulos." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s ya está siendo monitoreado." -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "No se puede asignar un cue in mayor al cue out." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s contiene un directorio anidado monitoreado: %s" -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "No se puede asignar un cue out mayor que la duración del archivo." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s está anidado dentro de un directorio monitoreado existente: %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "No se puede asignar un cue out menor que el cue in." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s no es un directorio válido." + +#: airtime_mvc/application/models/MusicDir.php:232 +#, php-format +msgid "" +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s ya está asignado como el directorio actual de almacenamiento o en la " +"lista de carpetas monitoreadas." + +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format +msgid "" +"%s is already set as the current storage dir or in the watched folders list." +msgstr "" +"%s ya está asignado como el directorio actual de almacenamiento o en la " +"lista de carpetas monitoreadas." + +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s no existe en la lista de monitoreo." + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Retransmisión de %s desde %s" + +#: airtime_mvc/application/models/Show.php:180 +msgid "Shows can have a max length of 24 hours." +msgstr "Los shows pueden tener una duración máxima de 24 horas." + +#: airtime_mvc/application/models/Show.php:289 +msgid "" +"Cannot schedule overlapping shows.\n" +"Note: Resizing a repeating show affects all of its repeats." +msgstr "" +"No se pueden programar shows traslapados.\n" +"Nota: Cambiar el tamaño de un show periódico afecta todas sus repeticiones." + +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "No puedes cambiar la duración de un show pasado" + +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "No debes traslapar shows" #: airtime_mvc/application/models/StoredFile.php:1003 msgid "Failed to create 'organize' directory." @@ -3772,138 +4491,132 @@ msgstr "Falló la creación del directorio 'organize' (organizar)" msgid "" "The file was not uploaded, there is %s MB of disk space left and the file " "you are uploading has a size of %s MB." -msgstr "El archivo no se cargó, solo queda %s MB de espacio en disco y el archivo que intentas cargar mide %s MB." +msgstr "" +"El archivo no se cargó, solo queda %s MB de espacio en disco y el archivo " +"que intentas cargar mide %s MB." #: airtime_mvc/application/models/StoredFile.php:1026 msgid "" "This file appears to be corrupted and will not be added to media library." -msgstr "Este archivo parece estar corrupto y no se agregará a la biblioteca de pistas." +msgstr "" +"Este archivo parece estar corrupto y no se agregará a la biblioteca de " +"pistas." #: airtime_mvc/application/models/StoredFile.php:1065 msgid "" "The file was not uploaded, this error can occur if the computer hard drive " "does not have enough disk space or the stor directory does not have correct " "write permissions." -msgstr "El archivo no se cargó. Este error puede ocurrir si el disco duro de la computadora no tiene suficiente espacio o el directorio stor no tiene los permisos correctos para escritura." - -#: airtime_mvc/application/models/Show.php:180 -msgid "Shows can have a max length of 24 hours." -msgstr "Los shows pueden tener una duración máxima de 24 horas." - -#: airtime_mvc/application/models/Show.php:289 -msgid "" -"Cannot schedule overlapping shows.\n" -"Note: Resizing a repeating show affects all of its repeats." -msgstr "No se pueden programar shows traslapados.\nNota: Cambiar el tamaño de un show periódico afecta todas sus repeticiones." +msgstr "" +"El archivo no se cargó. Este error puede ocurrir si el disco duro de la " +"computadora no tiene suficiente espacio o el directorio stor no tiene los " +"permisos correctos para escritura." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/layouts/scripts/login.phtml:24 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Hola %s, \n\nHaz clic en este enlace para restablecer tu contraseña: " +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" +msgstr "" -#: airtime_mvc/application/models/Auth.php:36 +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 #, php-format -msgid "%s Password Reset" +msgid "Promote my station on %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." msgstr "" -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "Ver los metadatos del archivo grabado" - -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Mostrar contenido" - -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Eliminar todo el contenido" - -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Cancelar el show actual" - -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Editar show" - -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Eliminar esta instancia" - -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Eliminar esta instancia y todas las que siguen" - -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "No es posible arrastrar y soltar shows que se repiten" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "No se puede mover un show pasado" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "No se puede mover un show al pasado" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "No se pueden mover shows grabados a menos de 1 hora antes de su retransmisión." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "El show se eliminó porque el show grabado no existe!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Debe esperar 1 hora para retransmitir." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Reproducido" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "El año %s debe estar dentro del rango de 1753-9999" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s no es una fecha válida" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s:%s:%s no es una hora válida" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Por favor elige una opción" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "No hay registros" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/locale/fr_FR/LC_MESSAGES/airtime.po b/airtime_mvc/locale/fr_FR/LC_MESSAGES/airtime.po index 26709555ec..8d8bd6e472 100644 --- a/airtime_mvc/locale/fr_FR/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/fr_FR/LC_MESSAGES/airtime.po @@ -1,3608 +1,4325 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: -# AlbertFR , 2014 # Sourcefabric , 2012 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-12-23 10:11+0000\n" -"Last-Translator: AlbertFR \n" -"Language-Team: French (France) (http://www.transifex.com/projects/p/airtime/language/fr_FR/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-01-29 15:10+0000\n" +"Last-Translator: andrey.podshivalov\n" +"Language-Team: French (France) (http://www.transifex.com/projects/p/airtime/" +"language/fr_FR/)\n" +"Language: fr_FR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: fr_FR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Lecteur Audio" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "S'il vous plait, selectionnez une option" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Déconnexion" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "Aucun Enregistrements" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "Lecture" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "L'année %s doit être comprise entre 1753 - 9999" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "Stop" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s n'est pas une date valide" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Point d'Entré" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s:%s:%s n'est pas une durée valide" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "Placer le Point d'Entré" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "En Lecture" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Point de Sorti" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Ajouter un Media" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "Placer le Point de Sortie" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Audiothèque" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "Curseur" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Calendrier" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "fondu en Entré" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "Système" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Fondu en Sorti" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Préférences" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "%1$s copyright © %2$s Tous droits réservés.%3$sMaintenue et distribuée sous %4$s by %5$s" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Utilisateurs" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Flux Live" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Répertoires des Médias" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Activé:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Flux" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Type de Flux:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Remarques au support" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Débit:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Status" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Type de service:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Statistiques des Auditeurs" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Cannaux:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "Historique" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Historique de Diffusion" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "Modèle d'historique" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Serveur" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Aide" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Caractère Invalide saisi" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Mise en route" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Port" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "Manuel Utilisateur" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Seuls les chiffres sont autorisés." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "A propos" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Mot de Passe" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "L'enregistrement du fichier n'existe pas" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Genre" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "Afficher les métadonnées du fichier enregistré" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Voir sur SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Nom" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Téléverser vers SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Description" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Re-Téléverser vers SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Point de Montage" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Contenu Emission" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Utilisateur" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Ajouter/Supprimer Contenu" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Utilisateur Admin" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Supprimer tous les contenus" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Mot de Passe Admin" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Annuler l'émission en cours" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Obtention des informations à partir du serveur ..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "Editer cette instance" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Le Serveur ne peut être vide." +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Edition" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Le Port ne peut être vide." +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Edition de l'Emission" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Le Point de Montage ne peut être vide avec un serveur Icecast." +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Effacer" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" -msgstr "Titre:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Suppression de l'instance" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" -msgstr "Créateur:" +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Suppression de l'instance et des suivantes" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "Album:" +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "Permission refusée" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "Piste:" +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "" +"Vous ne pouvez pas faire glisser et déposer des émissions en répétition" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" -msgstr "Genre:" +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "Ne peux pas déplacer une émission diffusée" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" -msgstr "Année:" +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Ne peux pas déplacer une émission dans le passé" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" -msgstr "Label:" +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Ne peux pas programmer des émissions qui se chevauchent" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" -msgstr "Compositeur:" +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "" +"Impossible de déplacer une émission enregistrée à moins d'1 heure avant ses " +"rediffusions." -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" -msgstr "Conducteur:" +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "" +"L'Emission a été éffacée parce que l'enregistrement de l'émission n'existe " +"pas!" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Atmosphère:" +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "Doit attendre 1 heure pour retransmettre." -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Titre" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" -msgstr "Copyright:" +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Créateur" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "Numéro ISRC:" +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Album" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" -msgstr "Site Internet:" +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Durée" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Genre" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Mood" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Label" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Compositeur" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Droit d'Auteur" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Année" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "Morceau" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Conducteur" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" msgstr "Langue" +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "Heure de Début" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "Heure de Fin" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Joué" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "Import du Fichier en cours..." + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Options Avancées de Recherche" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Nombre d'auditeur au fil du temps" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "Nouveau" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "Nouvelle Liste de Lecture" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "Nouveau Bloc Intelligent" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "Nouveau Flux Web" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "Vider le contenu de la Liste de Lecture" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "Vider" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Liste de Lecture Aléatoire" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Aléatoire" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Sauvegarde de la Liste de Lecture" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 #: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 #: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 #: airtime_mvc/application/forms/SupportSettings.php:161 #: airtime_mvc/application/controllers/LocaleController.php:283 #: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 #: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 msgid "Save" msgstr "Sauvegarder" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Annuler" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Fondu enchainé de la Liste de Lecture" -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Utilisateur:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "Voir / Editer la description" -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Mot de Passe:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Description" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Vérification du Mot de Passe:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Fondu en entrée:" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Prénom:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Fondu en sortie:" -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Nom:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "Pas de Liste de Lecture Ouverte" -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "Courriel:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Ettendre le bloc Statique" -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Numéro de Mobile:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Ettendre le Bloc Dynamique" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Bloc Intelligent Vide" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Liste de Lecture Vide" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "Type d'Utilisateur:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "Montrer la Forme d'Onde" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Invité" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Point d'Entrée" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "DeaJee" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(hh:mm:ss.t)" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Programmateur" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Point de Sortie:" -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Administrateur" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Durée Originale:" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Le Nom de connexion n'est pas unique." +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(ss.t)" + +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "Vider le contenu du bloc intelligent" + +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "Pas de Bloc Intelligent Ouvert" + +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sAirtime%s %s, est un logiciel libre pour la gestion et l'automation d'une " +"station de radio distante. %s" -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Couleur de Fond:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "" +"%sSourcefabric%s o.p.s. Airtime est distribué sous la licence %sGNU GPL v.3%s" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Couleur du Texte:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Bienvenue à Airtime!" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Date de Début:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "" +"Voici comment vous pouvez commencer à utiliser Airtime pour automatiser vos " +"diffusions:" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Date de Fin:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Commencez par ajouter vos fichiers à l'aide du menu \"Ajouter un média\". " +"Vous pouvez faire glisser et déposer vos fichiers sur la fenêtre." -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Emission:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Créer une émission en allant sur «Calendrier» dans la barre de menus, puis " +"en cliquant sur l'icône 'Emission + \". Il peut s'agir d'une seule fois ou " +"d'une émission en répétition. Seuls les administrateurs et les gestionnaires " +"de programmation peuvent ajouter des émissions." -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "Toutes Mes Emissions:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Ajouter des médias à votre émission en cliquant sur votre émission dans le " +"calendrier, Clic gauche dessus et selectionnez 'Ajouter / Supprimer Contenu'" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "jours" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Sélectionnez votre média dans le cadre de gauche et glissez-les dans votre " +"émission dans le cadre de droite." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "Le Jour doit être spécifié" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "Alors vous êtes prêt à démarrer!" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "La durée doit être spécifiée" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "Pour une aide plus détaillée, lisez le %smanuel utilisateur%s." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Vous devez attendre au moins 1 heure pour retransmettre" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Flux Live" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "répertoire d'Import:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Partager" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Répertoires Suveillés:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Selection du Flux:" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "N'est pas un Répertoire valide" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "sourdine" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Recherche d'Utilisateurs:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "désactiver" -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "v" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "Tous" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Connexion" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Saisissez les caractères que vous voyez dans l'image ci-dessous." +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Nom de la Station" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "Durée du fondu enchaîné " +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "URL du Flux:" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "Entrez une durée en secondes 0{.0}" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Durée par Défaut:" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "Fondu en Entrée par défaut (s):" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "Aucun Flux Web" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "Fondu en Sorti par défaut (s):" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "Titre:" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Autoriser les sites internet à acceder aux informations de la Programmation ?%s (Activer cette option permettra aux widgets de fonctionner.)" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "Créateur:" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Désactivé" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "Album:" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Activé" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "Piste:" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Langue de l'interface par défaut" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Durée:" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "Fuseau horaire de la Station" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Fréquence d'Echantillonnage" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "La Semaine Commence Le" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Débit:" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Dimanche" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Atmosphère:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Lundi" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "Genre:" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Mardi" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "Année:" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Mercredi" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "Label:" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Jeudi" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Vendredi" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "Compositeur:" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Samedi" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "Conducteur:" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "Lien:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "Copyright:" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Type de Répétition:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "Numéro ISRC:" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "hebdomadaire" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "Site Internet:" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "Toutes les 2 semaines" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" +msgstr "Langue" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "Toutes les 3 semaines" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "Chemin du fichier:" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "Toutes les 4 semaines" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Nom:" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "mensuel" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Description:" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Selection des Jours:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Flux Web" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Dim" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Bloc Intelligent Dynamique" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Lun" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Bloc Intélligent Statique" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Mar" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Piste Audio" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Mer" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Contenus de la Liste de Lecture:" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Jeu" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Contenus du Bloc Intelligent Statique:" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Ven" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Critère(s) du Bloc Intelligent Dynamique:" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Sam" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Limité à" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "Répétition par:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "jour du mois" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "Choisissez Afficher instance" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "jour de la semaine" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "Pas d'émission" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "Sans Fin?" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "Trouver" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "La Date de Fin doit être postérieure à la Date de Début" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "%s's Réglages" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "SVP, selectionnez un jour de répétition" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Choisir le répertoire" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Confirmez le nouveau mot de passe" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Installer" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "La confirmation mot de passe ne correspond pas à votre mot de passe." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Répertoire d'Import en Cours:" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Récuperer un nouveau mot de passe" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Ajouter" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Selectionner le critère" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Rescanner le répertoire surveillé (Peut être utile si c'est un montage " +"réseau et est peut être désynchronisé avec Airtime)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Album" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Supprimer le répertoire surveillé" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Taux d'Echantillonage (Kbps)" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "Vous ne surveillez pas les dossiers médias." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Requis)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Compositeur" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Aide Airtime à s'améliorer en laissant Sourcefabric savoir comment vous " +"l'utilisez. Ces informations seront recueillies régulièrement afin " +"d'améliorer votre expérience utilisateur.%sCochez la case 'Envoyer un retour " +"d'information au support' et nous ferons en sorte que les fonctions que vous " +"utilisez s'améliorent constamment." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Conducteur" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "" +"Cliquez sur la case ci-dessous pour la promotion de votre station sur " +"%sSourcefabric.org%s." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Droit d'Auteur" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(Pour la promotion de votre station, 'Envoyez vos remarques au support' doit " +"être activé)." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Créateur" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(à des fins de vérification uniquement, ne sera pas publié)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Encodé Par" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Remarque: Tout ce qui est plus grand que 600x600 sera redimensionné." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Montrez-moi ce que je vais envoyer" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Label" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Politique de Confidentialité Sourcefabric" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Langue" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Trouver Emissions" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Dernier Modifié" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Filtrer par émission" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Dernier Joué" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "Courriel / Réglages du Serveur de Courriels" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Durée" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "Réglages SoundCloud" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Mime" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Choix des Jours:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Mood" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Enlever" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Propriétaire" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Flux" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Replay Gain" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "options supplémentaires" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Taux d'Echantillonage (Khz)" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "" +"Les informations suivantes seront affichées aux auditeurs dans leur lecteur " +"multimédia:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Titre" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(Site Internet de la Station de Radio)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Numéro de la Piste" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "URL du Flux:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Téléversé" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "URL de Connexion:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Site Internet" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Réinitialisation du Mot de Passe" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Année" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Enregistrez Airtime" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Sélectionnez modification" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "" +"Aidez Airtime à s' améliorer en nous faisant savoir comment vous l'utilisez. " +"Cette information sera recueillie régulièrement afin d'améliorer votre " +"expérience utilisateur.%sClickez «Oui, aidez Airtime» et nous nous " +"assurerons que les fonctions que vous utilisez soient en constante " +"amélioration." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "contient" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Cliquez sur la case ci-dessous pour annoncer votre station sur " +"%sSourcefabric.org%s. Afin de promouvoir votre station, 'Envoyez vos " +"remarques au support \"doit être activé. Ces données seront recueillies en " +"plus des retours d'informations." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "ne contitent pas" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Termes et Conditions." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "est" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Réglages de Flux en Entrée" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "n'est pas" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "URL de Connexion de la Source Maitre:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "commence par" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Outrepasser" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "fini par" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "OK" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "est plus grand que" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "Remise à Zéro" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "est plus petit que" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "URL de Connexion de la Source Emission:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "est dans le champ" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Options de Bloc Intelligent" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "heures" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "ou" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "minutes" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "et" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "éléments" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr "à" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Définir le type de Bloc Intelligent:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "fichiers répondent aux critères" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Statique" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "Le fichier doit correspondre aux crtères" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Dynamique" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Jours de Répétition:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Permettre la Répétition des Pistes:" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Filtre de l'Historique" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Limiter à" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Fermer" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Génération de la liste de lecture et sauvegarde des crières" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Ajouter cette Emission" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Générer" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Mettre à jour l'émission" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Contenu de la liste de lecture alèatoire" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "Quoi" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Aléatoire" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "Quand" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "La Limite ne peut être vide ou plus petite que 0" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Entrée du Flux Direct" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "La Limite ne peut être supérieure à 24 heures" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Enregistrement & Rediffusion" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "La valeur doit être un entier" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Qui" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "500 est la valeur maximale de l'élément que vous pouvez définir" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Style" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "Vous devez sélectionner Critères et Modification" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Début" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "La 'Durée' doit être au format '00:00:00'" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Réglages des Flux" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "La valeur doit être en format d'horodatage (par exemple 0000-00-00 ou 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Réglages Globaux" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "La valeur doit être numérique" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "dB" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "La valeur doit être inférieure à 2147483648" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Réglages flux de sortie" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "La valeur doit être inférieure à %s caractères" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Gérer les Répertoires des Médias" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "La Valeur ne peut pas être vide" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Application par défaut du Framework Zend" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Auto commutateur Arrété" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Page non trouvée!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Auto Commutateur Activé" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "On dirait que la page que vous cherchez n'existe pas!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "fondu(s) de Transition du Commutateur" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "Modèles de fichiers de Log" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "Saisissez une durée en secondes 00{.000000}" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "Aucun modèles de fichiers de Log" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Nom Utilisateur Maître" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "Définir par défaut" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Mot de Passe Maître" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "Nouveau modèle de fichier de Log" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "URL de Connexion de la Source Maître" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "Modèle de fichier d'historique" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "URL de connexion de la Source Emission" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "aucun modèle de fichier d'Historique" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Port de la Source Maitre" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "Nouveau modèle de fichier d'Historique" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Point de Montage de la Source Maitre" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "Création du fichier Modèle d'Historique" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Port de la Source Emission" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "Création du modèle de fichier de Log" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Point de Montage de la Source Emission" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Nom" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "Vous ne pouvez pas utiliser le même port que le port Maitre DJ." +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "Ajouter plus d'éléments" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Le Port %s n'est pas disponible" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "Ajouter un nouveau champs" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Téléphone" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "Definir le modèle par défaut" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Site Internet de la Station" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "Nouveau mot de passe" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Pays:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "" +"S'il vous plaît saisir et confirmer votre nouveau mot de passe dans les " +"champs ci-dessous." -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "Ville:" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Connexion" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Description de la Station:" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." +msgstr "" +"Bienvenue à la démonstration en ligne d'Airtime! Vous pouvez vous connecter " +"en utilisant \"admin\" comme nom d'utilisateur et «admin» comme mot de passe." -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Logo de la Station:" +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." +msgstr "" +"S'il vous plaît saisissez votre adresse de courriel. Vous recevrez un lien " +"pour créer un nouveau mot de passe par courriel." -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Envoyez vos remarques au support" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "Courriel envoyé" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" -msgstr "Promouvoir station sur %s" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "Un courriel a été envoyé" -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." -msgstr "En cochant cette case , je accepte la %s's %s de politique de confidentialité %s ." +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Retour à l'écran de connexion" -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "Vous devez accepter la politique de confidentialité." +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "Fichier de Log" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Une Valeur est requise, ne peut pas être vide" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "Résumé du fichier" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "Heure de Début" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "Historique Emision" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "Heure de Fin" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "précédent" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "Pas d'émission" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "jouer" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Enregistrer à partir de 'Line In'?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "pause" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Rediffusion?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "suivant" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "Utilisez l'authentification %s :" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "stop" -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Utiliser l'authentification personnalisée:" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "Volume max" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Nom d'utilisateur personnalisé" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Mise à Jour Requise" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Mot de Passe personnalisé" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 +#, php-format +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." +msgstr "" +"Pour lire le média, vous devrez mettre à jour votre navigateur vers une " +"version récente ou mettre à jour votre %sPlugin Flash%s." -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "Le Champ Nom d'Utilisateur ne peut pas être vide." +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Service" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "Le Champ Mot de Passe ne peut être vide." +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Durée de Fonctionnement" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "Courriel" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "Proc." -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Récuperer le mot de passe" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Mémoire" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Sortie Audio Matérielle" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Version d'Airtime" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Type de Sortie" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Espace Disque" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Icecast Metadata Vorbis" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Gérer les Utilisateurs" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Label du Flux:" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "Nouvel Utilisateur" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Artiste - Titre" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "id" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Emission - Artiste - Titre" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Utilisateur" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Nom de la Station - Nom de l'Emission" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "Prénom" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Métadonnées Hors Antenne" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Nom" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Activer" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "Type d'Utilisateur" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Modifier le Niveau du Gain" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Précédent:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%value%' n'est pas une adresse de courriel valide dans le format de type partie-locale@nomdedomaine" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Prochain:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" -msgstr "'%value%' ne correspond pas au format de la date '%format%'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Sources des Flux" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" -msgstr "'%value%' est inférieur à %min% charactères" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Source Maitre" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" -msgstr "'%value%' est plus grand de %min% charactères" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Source Emission" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" -msgstr "'%value%' n'est pas entre '%min%' et '%max%', inclusivement" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Lecture Programmée" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" -msgstr "Les mots de passe ne correspondent pas" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "DIRECT" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' ne correspond pas au format de durée 'HH:mm'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Ecouter" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Date/Heure de Début:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Heure de la Station" + +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Votre période d'éssai expire dans" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Date/Heure de Fin:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "jours" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Durée:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Achetez votre copie d'Airtime" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Fuseau horaire:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "Mon Compte" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Répétitions?" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Utilisateur:" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Impossible de créer un émission dans le passé" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Mot de Passe:" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Vous ne pouvez pas modifier la date / heure de début de l'émission qui a déjà commencé" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "Saisissez les caractères que vous voyez dans l'image ci-dessous." -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "La date/heure de Fin ne peut être dans le passé" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Caractère Invalide saisi" -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Ne peut pas avoir une durée <0m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "Le Jour doit être spécifié" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Ne peut pas avoir une durée de 00h 00m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "La durée doit être spécifiée" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Ne peut pas avoir une durée supérieure à 24h" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "Vous devez attendre au moins 1 heure pour retransmettre" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Ne peux pas programmer des émissions qui se chevauchent" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Utiliser l'authentification d'Airtime:" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Nom:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Utiliser l'authentification personnalisée:" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Emission sans Titre" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Nom d'utilisateur personnalisé" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Mot de Passe personnalisé" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Description:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "Le Champ Nom d'Utilisateur ne peut pas être vide." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" -msgstr "Téléverser Automatiquement les Emissions Enregistrées" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "Le Champ Mot de Passe ne peut être vide." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" -msgstr "Activer le Téléversement SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Activé:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" -msgstr "Marquer automatiquement les fichiers \"téléchargeable\" sur SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Type de Flux:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" -msgstr "Courriel SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Type de service:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" -msgstr "Mot de Passe SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Cannaux:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" -msgstr "Tags SoundCloud: (séparer les tags avec des espaces)" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" -msgstr "Genre par Défaut:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Stereo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" -msgstr "Type de Piste par Défaut:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Serveur" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" -msgstr "Original" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Port" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "Remix" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Seuls les chiffres sont autorisés." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "Direct" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Mot de Passe" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "Enregistrement" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "Parlé" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Point de Montage" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "Ballado-diffusion" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Utilisateur Admin" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "Démo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Mot de Passe Admin" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "travail en cours" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Obtention des informations à partir du serveur ..." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "Contenir" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Le Serveur ne peut être vide." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "Boucle" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Le Port ne peut être vide." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "Effet Sonore" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Le Point de Montage ne peut être vide avec un serveur Icecast." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "Un Court Echantillon" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "répertoire d'Import:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "Autre" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Répertoires Suveillés:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Licence par Défaut:" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "N'est pas un Répertoire valide" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "Ce travail est dans le domaine public" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Une Valeur est requise, ne peut pas être vide" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "Tous droits réservés" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'%value%' n'est pas une adresse de courriel valide dans le format de type " +"partie-locale@nomdedomaine" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Creative Commons Attribution" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" +msgstr "'%value%' ne correspond pas au format de la date '%format%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Creative Commons Attribution Non Commercial" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" +msgstr "'%value%' est inférieur à %min% charactères" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Creative Commons Attribution Pas de Travaux Dérivés" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" +msgstr "'%value%' est plus grand de %min% charactères" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Creative Commons Attribution Distribution à l'Identique" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" +msgstr "'%value%' n'est pas entre '%min%' et '%max%', inclusivement" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Creative Commons Attribution Non Commercial Pas de Travaux Dérivés" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" +msgstr "Les mots de passe ne correspondent pas" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Creative Commons Attribution Non Commercial Distribution à l'Identique" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Enregistrer à partir de 'Line In'?" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "Fuseau horaire de l'Interface:" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Rediffusion?" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "Activer les courriels système (Réinitialisation du mot de passe)" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Couleur de Fond:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Réinitialisation du mot de passe Courriel 'De'" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Couleur du Texte:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Configuration du Serveur de Courriels" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "Courriel" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Requier une authentification" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Récuperer le mot de passe" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Serveur de Courriel" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Annuler" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "Adresse de Courriel" +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Vérification du Mot de Passe:" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "S'il vous plaît assurez-vous que l'utilisateur admin a un mot de passe correct sur le système-> page flux." +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Prénom:" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Flux Web sans Titre" +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Nom:" -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Flux Web sauvegardé" +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "Courriel:" -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Valeurs du formulaire non valides." +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Numéro de Mobile:" -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "S'il vous plaît saisissez votre nom d'utilisateur et mot de passe" +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Mauvais Nom d'utilisateur ou mot de passe fourni. S'il vous plaît essayez de nouveau." +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "Le Courriel n'a pas pu être envoyé. Vérifiez vos paramètres du serveur de messagerie et s'assurez vous qu'il a été correctement configuré." +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "Fuseau horaire de l'Interface:" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "Courriel donné non trouvé" +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Le Nom de connexion n'est pas unique." -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Rediffusion de l'émission %s de %s à %s" +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Sortie Audio Matérielle" -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Téléchargement" +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Type de Sortie" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "Utilisateur ajouté avec succès!" +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Icecast Metadata Vorbis" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "Utilisateur mis à jour avec succès!" +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Label du Flux:" -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Paramètres mis à jour avec succès!" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Artiste - Titre" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Page non trouvée" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Emission - Artiste - Titre" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Erreur de l'application" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Nom de la Station - Nom de l'Emission" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Enregistrement:" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Métadonnées Hors Antenne" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Flux Maitre" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Activer" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Flux Direct" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Modifier le Niveau du Gain" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Rien de Prévu" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" +msgstr "Téléverser Automatiquement les Emissions Enregistrées" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Emission en Cours:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" +msgstr "Activer le Téléversement SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "En ce moment" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +msgstr "Marquer automatiquement les fichiers \"téléchargeable\" sur SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "Vous éxécutez la dernière version" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" +msgstr "Courriel SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "Nouvelle version disponible:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" +msgstr "Mot de Passe SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "Cette version sera bientôt obsolête." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" +msgstr "Tags SoundCloud: (séparer les tags avec des espaces)" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "Cette version n'est plus supportée." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" +msgstr "Genre par Défaut:" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "SVP mettez vous à jour vers" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" +msgstr "Type de Piste par Défaut:" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Ajouter à la liste de lecture" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" +msgstr "Original" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Ajouter au Bloc Intelligent" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "Remix" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Ajouter 1 élément" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "Direct" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Ajout de %s Elements" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "Enregistrement" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "Vous pouvez seulement ajouter des pistes aux Blocs Intelligents." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "Parlé" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "Vous pouvez uniquement ajouter des pistes, des blocs intelligents et flux web aux listes de lecture." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "Ballado-diffusion" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "S'il vous plaît sélectionner un curseur sur la timeline." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "Démo" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Edition des Méta-Données" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "travail en cours" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Ajouter à l'émission selectionnée" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "Contenir" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Selection" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "Boucle" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Selectionner cette page" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "Effet Sonore" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Dé-selectionner cette page" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "Un Court Echantillon" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Tous déselectioner" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "Autre" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Etes-vous sûr de vouloir efacer le(s) élément(s) selectionné(s)?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Licence par Défaut:" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "Programmé" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "Ce travail est dans le domaine public" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "Liste de Lecture / Bloc" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "Tous droits réservés" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Taux d'echantillonage" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Creative Commons Attribution" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Taux d'Echantillonnage" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Creative Commons Attribution Non Commercial" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Chargement..." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Creative Commons Attribution Pas de Travaux Dérivés" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "Tous" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Creative Commons Attribution Distribution à l'Identique" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Fichiers" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Creative Commons Attribution Non Commercial Pas de Travaux Dérivés" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Listes de Lecture" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Creative Commons Attribution Non Commercial Distribution à l'Identique" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Blocs Intelligents" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Nom de la Station" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Flux Web" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "Durée du fondu enchaîné " -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Type non reconnu:" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "Entrez une durée en secondes 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Êtes-vous sûr de vouloir supprimer l'élément sélectionné?" +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "Fondu en Entrée par défaut (s):" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Téléversement en cours..." +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "Fondu en Sorti par défaut (s):" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Récupération des données du serveur..." +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Autoriser les sites internet à acceder aux informations de la Programmation ?" +"%s (Activer cette option permettra aux widgets de fonctionner.)" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "L'Id. SoundCloud pour ce fichier est:" +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Désactivé" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "Une erreur s'est produite lors du téléversement vers SoundCloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Activé" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Code d'Erreur:" +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Langue de l'interface par défaut" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Message d'Erreur:" +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "Fuseau horaire de la Station" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "L'entrée doit être un nombre positif" +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "La Semaine Commence Le" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "L'entrée doit être un nombre" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Dimanche" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "L'entrée doit être au format suivant: aaaa-mm-jj" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Lundi" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "L'entrée doit être au format suivant: hh:mm:ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Mardi" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "Vous êtes en train de téléverser des fichiers. %s Aller vers un autre écran pour annuler le processus de téléversement. %s Êtes-vous sûr de vouloir quitter la page?" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Mercredi" + +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Jeudi" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "Ouvrir le Constructeur de Média" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Vendredi" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "s'il vous plaît mettez en durée '00: 00:00 (.0) '" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Samedi" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "s'il vous plaît mettez dans une durée en secondes '00 (.0) '" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Date de Début:" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Votre navigateur ne prend pas en charge la lecture de ce type de fichier:" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Date de Fin:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Le Bloc dynamique n'est pas prévisualisable" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Téléphone" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Limiter à:" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Site Internet de la Station" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Liste de Lecture sauvegardé" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Pays:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "liste de lecture mélangée" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "Ville:" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime n'est pas sûr de l'état de ce fichier. Cela peut arriver lorsque le fichier se trouve sur un lecteur distant qui est inaccessible ou si le fichier est dans un répertoire qui n'est pas plus «sruveillé»." +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Description de la Station:" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "Nombre d'auditeur sur %s: %s" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Logo de la Station:" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Me le Rappeler dans une semain" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Envoyez vos remarques au support" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Ne jamais me le Rapeller" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Promouvoir ma station sur Sourcefabric.org" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Oui, aidez Airtime" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "" +"En cochant cette case, j'accepte la %spolitique de confidentialité%s de " +"Sourcefabric ." -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "L'Image doit être du type jpg, jpeg, png, ou gif" +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "Vous devez accepter la politique de confidentialité." -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "Un bloc statique intelligent permettra d'économiser les critères et générera le contenu du bloc immédiatement. Cela vous permet d'éditer et de le voir dans la médiathèque avant de l'ajouter à une émission." +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' ne correspond pas au format de durée 'HH:mm'" -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "Un bloc dynamique intelligent enregistre uniquement les critères. Le contenu du bloc que vous obtiendrez sera généré lors de l'ajout à l'émission. Vous ne serez pas en mesure d'afficher et de modifier le contenu de la médiathèque." +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Date/Heure de Début:" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "La longueur du bloc souhaité ne sera pas atteint si de temps d'antenne ne peut pas trouver suffisamment de pistes uniques en fonction de vos critères. Activez cette option si vous souhaitez autoriser les pistes à s'ajouter plusieurs fois dans le bloc intelligent." +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Date/Heure de Fin:" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Bloc intelligent mélangé" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Durée:" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Bloc Intelligent généré et critère(s) sauvegardé(s)" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Fuseau horaire:" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Bloc Intelligent sauvegardé" +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Répétitions?" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Traitement en cours ..." +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Impossible de créer un émission dans le passé" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Choisir un Répertoire de Stockage" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "" +"Vous ne pouvez pas modifier la date / heure de début de l'émission qui a " +"déjà commencé" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Choisir un Répertoire à Surveiller" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "La date/heure de Fin ne peut être dans le passé" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Etes-vous sûr que vous voulez changer le répertoire de stockage? \nCela supprimera les fichiers de votre médiathèque Airtime!" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Ne peut pas avoir une durée <0m" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Gérer les Répertoires des Médias" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Ne peut pas avoir une durée de 00h 00m" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Êtes-vous sûr de vouloir supprimer le répertoire surveillé?" +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Ne peut pas avoir une durée supérieure à 24h" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "Ce chemin n'est pas accessible." +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Emission sans Titre" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "Certains types de flux nécessitent une configuration supplémentaire. Les détails sur l'activation de l' %sAAC+ Support%s ou %sOpus Support%s sont prévus." +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Recherche d'Utilisateurs:" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Connecté au serveur de flux" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "v" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "Le flux est désactivé" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Confirmez le nouveau mot de passe" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Impossible de se connecter au serveur de flux" +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "La confirmation mot de passe ne correspond pas à votre mot de passe." -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Si Airtime est derrière un routeur ou un pare-feu, vous devrez peut-être configurer la redirection de port et ce champ d'information sera alors incorrect.Dans ce cas, vous devrez mettre à jour manuellement ce champ de sorte qu'il affiche l'hôte/le port /le point de montage correct dont le DJ a besoin pour s'y connecter. La plage autorisée est comprise entre 1024 et 49151." +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Récuperer un nouveau mot de passe" -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "Pour plus de détails, s'il vous plaît lire le %sManuel d'Airtime%s" +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "Type d'Utilisateur:" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Cochez cette option pour activer les métadonnées pour les flux OGG (les métadonnées du flux est le titre de la piste, l'artiste et le nom de émission qui est affiché dans un lecteur audio). VLC et mplayer ont un sérieux bogue lors de la lecture d'un flux Ogg / Vorbis qui affiche les informations de métadonnées: ils se déconnecteront après chaque chanson. Si vous utilisez un flux OGG et vos auditeurs n'utilisent pas ces lecteurs audio, alors n'hésitez pas à activer cette option." +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Invité" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Cochez cette case arrête automatiquement la source Maître/Emission lors de la déconnexion." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "DeaJee" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Cochez cette case démarre automatiquement la source Maître/Emission lors de la connexion." +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Programmateur" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Si votre serveur Icecast s'attend à ce que le nom d'utilisateur soit «source», ce champ peut être laissé vide." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Administrateur" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "Si votre client de flux audio ne demande pas un nom d'utilisateur, ce champ doit être «source»." +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "Numéro ISRC:" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "Si vous modifiez les valeurs du nom d'utilisateur ou du mot de passe pour un flux activé le moteur diffusion sera redémarré et vos auditeurs entendront un silence pendant 5-10 secondes. Changer les champs suivants ne provoqueront pas un redémarrage: Label du Flux (Paramètres globaux), et Commutateur de transition du fondu (s), Nom d'Utilisateur Maître, et le Mot de passe Maître (Paramètres du flux d'entrée). Si Airtime enregistre, et si la modification entraîne un redémarrage du moteur, l'enregistrement sera interrompu." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Emission:" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "C'est le nom d'utilisateur administrateur et mot de passe pour icecast / shoutcast qui permet obtenir les statistiques d'écoute." +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "Toutes Mes Emissions:" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "Attention: Vous ne pouvez pas modifier ce champ alors que l'émission est en cours de lecture" +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "Lien:" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "aucun résultat trouvé" +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Type de Répétition:" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "Cela suit le même modèle de sécurité que pour les émissions: seuls les utilisateurs affectés à l' émission peuvent se connecter." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "hebdomadaire" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Spécifiez l'authentification personnalisée qui ne fonctionnera que pour cette émission." +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "Toutes les 2 semaines" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "L'instance émission n'existe plus!" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "Toutes les 3 semaines" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "Attention: Les émissions ne peuvent pas être re-liés" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "Toutes les 4 semaines" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "En liant vos émissions répétées chaques éléments multimédias programmés dans n'importe quelle émission répétitée seront également programmées dans les autres émissions répétées" +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "mensuel" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "Le fuseau horaire est fixé au fuseau horaire de la Station par défaut. les émissions dans le calendrier seront affichés dans votre heure locale définie par le fuseau horaire de l'interface dans vos paramètres utilisateur." +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Selection des Jours:" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Emission" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "Dim" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "L'Emission est vide" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Lun" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1m" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Mar" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5m" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "Mer" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10m" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Jeu" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15m" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Ven" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30m" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "Sam" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60m" +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "Répétition par:" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Récupération des données du serveur..." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "jour du mois" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "Cette émission n'a pas de contenu programmée." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "jour de la semaine" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "Cette émission n'est pas complètement remplie avec ce contenu." +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "Sans Fin?" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "Janvier" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "La Date de Fin doit être postérieure à la Date de Début" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "Fevrier" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "SVP, selectionnez un jour de répétition" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "Mars" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "Activer les courriels système (Réinitialisation du mot de passe)" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "Avril" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Réinitialisation du mot de passe Courriel 'De'" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "Mai" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Configuration du Serveur de Courriels" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "Juin" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Requier une authentification" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "Juillet" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Serveur de Courriel" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "Aout" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "Adresse de Courriel" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "Septembre" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Selectionner le critère" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "Octobre" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Taux d'Echantillonage (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "Novembre" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "Décembre" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Point d'Entré" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Jan" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Point de Sorti" + +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Encodé Par" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Fev" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Dernier Modifié" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Mar" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Dernier Joué" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Avr" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Mime" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Jun" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Propriétaire" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Jui" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Replay Gain" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Aou" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Taux d'Echantillonage (Khz)" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Sep" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Numéro de la Piste" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Oct" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Téléversé" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Nov" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Site Internet" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Dec" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Sélectionnez modification" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "aujourd'hui" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "contient" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "jour" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "ne contitent pas" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "semaine" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "est" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "mois" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "n'est pas" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Les émissions qui dépassent leur programmation seront coupés par les émissions suivantes." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "commence par" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Annuler l'Emission en Cours?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "fini par" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Arreter l'enregistrement de l'émission en cours" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "est plus grand que" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "Ok" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "est plus petit que" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Contenu de l'émission" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "est dans le champ" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Enlever tous les contenus?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "heures" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Selectionner le(s) élément(s)?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "minutes" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Début" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "éléments" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "Fin" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Définir le type de Bloc Intelligent:" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Durée" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Statique" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Emission vide" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Dynamique" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Enregistrement à partir de 'Line In'" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Permettre la Répétition des Pistes:" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Pré-écoute de la Piste" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Limiter à" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Vous ne pouvez pas programmer en dehors d'une émission." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Génération de la liste de lecture et sauvegarde des crières" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Déplacer 1 élément" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Générer" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Déplacer %s éléments" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Contenu de la liste de lecture alèatoire" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "Editeur de Fondu" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "La Limite ne peut être vide ou plus petite que 0" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "Editeur de Point d'E/S" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "La Limite ne peut être supérieure à 24 heures" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "Les caractéristiques de la forme d'onde sont disponibles dans un navigateur supportant l'API Web Audio" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "La valeur doit être un entier" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Tout Selectionner" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "500 est la valeur maximale de l'élément que vous pouvez définir" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Ne Rien Selectionner" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "Vous devez sélectionner Critères et Modification" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Suppression des pistes en surcharge" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "La 'Durée' doit être au format '00:00:00'" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Supprimer les éléments programmés selectionnés" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"La valeur doit être en format d'horodatage (par exemple 0000-00-00 ou " +"0000-00-00 00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Aller à la piste en cours de lecture" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "La valeur doit être numérique" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Annuler l'émission en cours" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "La valeur doit être inférieure à 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Ouvrir la Médiathèque pour ajouter ou supprimer du contenu" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "La valeur doit être inférieure à %s caractères" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Ajouter/Supprimer Contenu" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "La Valeur ne peut pas être vide" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "en utilisation" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Auto commutateur Arrété" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Disque" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Auto Commutateur Activé" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Regarder à l'intérieur" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "fondu(s) de Transition du Commutateur" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Ouvrir" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "Saisissez une durée en secondes 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "Les Invités peuvent effectuer les opérations suivantes:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Nom Utilisateur Maître" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "Voir le calendrier" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Mot de Passe Maître" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "Voir le contenu des émissions" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "URL de Connexion de la Source Maître" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "Les DJs peuvent effectuer les opérations suivantes:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "URL de connexion de la Source Emission" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Gérer le contenu des émissions attribué" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Port de la Source Maitre" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Importer des fichiers multimédias" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Point de Montage de la Source Maitre" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Créez des listes de lectures, des blocs intelligents et des flux web" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Port de la Source Emission" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Gérer le contenu de leur propre audiotheque" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Point de Montage de la Source Emission" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "Les gestionnaires pouvent effectuer les opérations suivantes:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "Vous ne pouvez pas utiliser le même port que le port Maitre DJ." -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "Afficher et gérer le contenu des émissions" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Le Port %s n'est pas disponible" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Programmer des émissions" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" +"Airtime Copyright ©Sourcefabric o.p.s. Tous droits réservés.%sMaintenu " +"et distribué sous la GNU GPL v.3 par %sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "Gérez tout le contenu de l'audiotheque" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Déconnexion" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Les Administrateurs peuvent effectuer les opérations suivantes:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "Lecture" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Gérer les préférences" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "Stop" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "Gérer les utilisateurs" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "Placer le Point d'Entré" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "Gérer les dossiers surveillés" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "Placer le Point de Sortie" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "Voir l'état du système" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "Curseur" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Accédez à l'historique diffusion" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "fondu en Entré" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "Voir les statistiques des auditeurs" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Fondu en Sorti" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Montrer / cacher les colonnes" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Lecteur Audio" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "De {from} à {to}" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "S'il vous plaît saisissez votre nom d'utilisateur et mot de passe" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "" +"Mauvais Nom d'utilisateur ou mot de passe fourni. S'il vous plaît essayez de " +"nouveau." -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "aaaa-mm-jj" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"Le Courriel n'a pas pu être envoyé. Vérifiez vos paramètres du serveur de " +"messagerie et s'assurez vous qu'il a été correctement configuré." -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "Courriel donné non trouvé" -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Enregistrement:" -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Di" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Flux Maitre" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Lu" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Flux Direct" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Ma" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Rien de Prévu" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "Me" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Emission en Cours:" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Je" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "En ce moment" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Ve" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "Vous éxécutez la dernière version" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Sa" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "Nouvelle version disponible:" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Fermer" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "Cette version sera bientôt obsolête." -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Heure" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "Cette version n'est plus supportée." -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Minute" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "SVP mettez vous à jour vers" -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Fait" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Ajouter à la liste de lecture" -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Sélectionnez les fichiers" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Ajouter au Bloc Intelligent" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Ajouter des fichiers à la file d'attente de téléversement, puis cliquez sur le bouton Démarrer." +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Ajouter 1 élément" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Status" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "Ajout de %s Elements" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Ajouter des fichiers" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "Vous pouvez seulement ajouter des pistes aux Blocs Intelligents." -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Arreter le Téléversement" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "" +"Vous pouvez uniquement ajouter des pistes, des blocs intelligents et flux " +"web aux listes de lecture." -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Démarrer le Téléversement" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "S'il vous plaît sélectionner un curseur sur la timeline." -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Ajouter des fichiers" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Edition des Méta-Données" -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "Téléversement de %d/%d fichiers" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Ajouter à l'émission selectionnée" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "N/A" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Selection" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Faites glisser les fichiers ici." +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Selectionner cette page" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "Erreur d'extension du fichier." +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Dé-selectionner cette page" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "Erreur de la Taille de Fichier." +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Tous déselectioner" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "Erreur de comptage des fichiers." +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Etes-vous sûr de vouloir efacer le(s) élément(s) selectionné(s)?" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Erreur d'Initialisation." +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "Programmé" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "Erreur HTTP." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "Liste de Lecture / Bloc" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Erreur de sécurité." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Taux d'echantillonage" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Erreur générique." +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Taux d'Echantillonnage" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "Erreur d'E/S." +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "Chargement..." -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "Fichier: %s" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Fichiers" -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d fichiers en file d'attente" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Listes de Lecture" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "Fichier:%f, taille: %s, taille de fichier maximale: %m" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Blocs Intelligents" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "l'URL de Téléversement est peut être erronée ou inexistante" +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Flux Web" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Erreur: Fichier trop grand:" +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Type non reconnu:" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Erreur: extension de fichier non valide:" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Êtes-vous sûr de vouloir supprimer l'élément sélectionné?" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "Définir par défaut" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Téléversement en cours..." -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "créer une entrée" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Récupération des données du serveur..." -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "Éditer l'enregistrement de l'historique" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "L'Id. SoundCloud pour ce fichier est:" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "Copié %s ligne(s)%s dans le presse papier" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "Une erreur s'est produite lors du téléversement vers SoundCloud." -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%sVue Imprimante%s Veuillez utiliser la fonction d'impression de votre navigateur pour imprimer ce tableau. Appuyez sur échapper lorsque vous avez terminé." +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Code d'Erreur:" -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "Vous n'avez pas la permission de déconnecter la source." +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Message d'Erreur:" -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "Il n'y a pas de source connectée à cette entrée." +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "L'entrée doit être un nombre positif" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "Vous n'avez pas la permission de changer de source." +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "L'entrée doit être un nombre" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "Vous visualisez l'ancienne version de %s" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "L'entrée doit être au format suivant: aaaa-mm-jj" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "Vous ne pouvez pas ajouter de pistes aux blocs dynamiques." +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "L'entrée doit être au format suivant: hh:mm:ss.t" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "%s not found" -msgstr "%s non trouvé" +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"Vous êtes en train de téléverser des fichiers. %s Aller vers un autre écran " +"pour annuler le processus de téléversement. %s Êtes-vous sûr de vouloir " +"quitter la page?" -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "Vous n'avez pas la permission de supprimer la sélection %s(s)." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "Ouvrir le Constructeur de Média" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Quelque chose s'est mal passé." +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "s'il vous plaît mettez en durée '00: 00:00 (.0) '" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "Vous pouvez seulement ajouter des pistes au bloc intelligent." +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "s'il vous plaît mettez dans une durée en secondes '00 (.0) '" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Liste de Lecture Sans Titre" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "" +"Votre navigateur ne prend pas en charge la lecture de ce type de fichier:" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Bloc Intelligent Sans Titre" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Le Bloc dynamique n'est pas prévisualisable" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Liste de Lecture Inconnue" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Limiter à:" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "Vous n'êtes pas autorisé à acceder à cette ressource." +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Liste de Lecture sauvegardé" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "Vous n'êtes pas autorisé à acceder à cette ressource." +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "liste de lecture mélangée" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." +msgstr "" +"Airtime n'est pas sûr de l'état de ce fichier. Cela peut arriver lorsque le " +"fichier se trouve sur un lecteur distant qui est inaccessible ou si le " +"fichier est dans un répertoire qui n'est pas plus «sruveillé»." + +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 #, php-format -msgid "File does not exist in %s" -msgstr "Le fichier n'existe pas dans %s" +msgid "Listener Count on %s: %s" +msgstr "Nombre d'auditeur sur %s: %s" -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Mauvaise requête. pas de \"mode\" paramètre passé." +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "Me le Rappeler dans une semain" -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Mauvaise requête.paramètre 'mode' invalide" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Ne jamais me le Rapeller" -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Pré-Visualisation" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Oui, aidez Airtime" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Ajouter une" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "L'Image doit être du type jpg, jpeg, png, ou gif" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Ajouter un bloc Intelligent" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." +msgstr "" +"Un bloc statique intelligent permettra d'économiser les critères et générera " +"le contenu du bloc immédiatement. Cela vous permet d'éditer et de le voir " +"dans la médiathèque avant de l'ajouter à une émission." -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Effacer" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"Un bloc dynamique intelligent enregistre uniquement les critères. Le contenu " +"du bloc que vous obtiendrez sera généré lors de l'ajout à l'émission. Vous " +"ne serez pas en mesure d'afficher et de modifier le contenu de la " +"médiathèque." -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "dupliquer la Liste de lecture" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"La longueur du bloc souhaité ne sera pas atteint si de temps d'antenne ne " +"peut pas trouver suffisamment de pistes uniques en fonction de vos critères. " +"Activez cette option si vous souhaitez autoriser les pistes à s'ajouter " +"plusieurs fois dans le bloc intelligent." -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Edition" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Bloc intelligent mélangé" -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Bloc Intelligent généré et critère(s) sauvegardé(s)" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Voir sur SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Bloc Intelligent sauvegardé" -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Re-Téléverser vers SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "Traitement en cours ..." + +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Choisir un Répertoire de Stockage" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Téléverser vers SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Choisir un Répertoire à Surveiller" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "Aucune action disponible" +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Etes-vous sûr que vous voulez changer le répertoire de stockage? \n" +"Cela supprimera les fichiers de votre médiathèque Airtime!" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "Vous n'avez pas la permission de supprimer les éléments sélectionnés." +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Êtes-vous sûr de vouloir supprimer le répertoire surveillé?" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Impossible de supprimer certains fichiers programmés." +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "Ce chemin n'est pas accessible." -#: airtime_mvc/application/controllers/LibraryController.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 #, php-format -msgid "Copy of %s" -msgstr "Copie de %s" - -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Selectionner le Curseur" +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" +"Certains types de flux nécessitent une configuration supplémentaire. Les " +"détails sur l'activation de l' %sAAC+ Support%s ou %sOpus Support%s sont " +"prévus." -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Enlever le Curseur" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Connecté au serveur de flux" -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "L'Emission n'existe pas" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "Le flux est désactivé" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Préférences mises à jour." +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Impossible de se connecter au serveur de flux" -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Régalges su Support mis à jour." +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"Si Airtime est derrière un routeur ou un pare-feu, vous devrez peut-être " +"configurer la redirection de port et ce champ d'information sera alors " +"incorrect.Dans ce cas, vous devrez mettre à jour manuellement ce champ de " +"sorte qu'il affiche l'hôte/le port /le point de montage correct dont le DJ " +"a besoin pour s'y connecter. La plage autorisée est comprise entre 1024 et " +"49151." -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Remarques au support" +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "Pour plus de détails, s'il vous plaît lire le %sManuel d'Airtime%s" -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Réglages du Flux mis à jour." +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"Cochez cette option pour activer les métadonnées pour les flux OGG (les " +"métadonnées du flux est le titre de la piste, l'artiste et le nom de " +"émission qui est affiché dans un lecteur audio). VLC et mplayer ont un " +"sérieux bogue lors de la lecture d'un flux Ogg / Vorbis qui affiche les " +"informations de métadonnées: ils se déconnecteront après chaque chanson. Si " +"vous utilisez un flux OGG et vos auditeurs n'utilisent pas ces lecteurs " +"audio, alors n'hésitez pas à activer cette option." -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "le chemin doit être spécifié" +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Cochez cette case arrête automatiquement la source Maître/Emission lors de " +"la déconnexion." -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Problème ave Liquidsoap..." +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Cochez cette case démarre automatiquement la source Maître/Emission lors de " +"la connexion." -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "En Lecture" +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"Si votre serveur Icecast s'attend à ce que le nom d'utilisateur soit " +"«source», ce champ peut être laissé vide." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Ajouter un Media" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"Si votre client de flux audio ne demande pas un nom d'utilisateur, ce champ " +"doit être «source»." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Audiothèque" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"Si vous modifiez les valeurs du nom d'utilisateur ou du mot de passe pour un " +"flux activé le moteur diffusion sera redémarré et vos auditeurs entendront " +"un silence pendant 5-10 secondes. Changer les champs suivants ne " +"provoqueront pas un redémarrage: Label du Flux (Paramètres globaux), et " +"Commutateur de transition du fondu (s), Nom d'Utilisateur Maître, et le Mot " +"de passe Maître (Paramètres du flux d'entrée). Si Airtime enregistre, et si " +"la modification entraîne un redémarrage du moteur, l'enregistrement sera " +"interrompu." -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Calendrier" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"C'est le nom d'utilisateur administrateur et mot de passe pour icecast / " +"shoutcast qui permet obtenir les statistiques d'écoute." -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "Système" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" +"Attention: Vous ne pouvez pas modifier ce champ alors que l'émission est en " +"cours de lecture" -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Préférences" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "aucun résultat trouvé" -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Utilisateurs" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"Cela suit le même modèle de sécurité que pour les émissions: seuls les " +"utilisateurs affectés à l' émission peuvent se connecter." -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Répertoires des Médias" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "" +"Spécifiez l'authentification personnalisée qui ne fonctionnera que pour " +"cette émission." -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Flux" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "L'instance émission n'existe plus!" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Statistiques des Auditeurs" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "Attention: Les émissions ne peuvent pas être re-liés" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" -msgstr "Historique" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" +"En liant vos émissions répétées chaques éléments multimédias programmés dans " +"n'importe quelle émission répétitée seront également programmées dans les " +"autres émissions répétées" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Historique de Diffusion" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." +msgstr "" +"Le fuseau horaire est fixé au fuseau horaire de la Station par défaut. les " +"émissions dans le calendrier seront affichés dans votre heure locale définie " +"par le fuseau horaire de l'interface dans vos paramètres utilisateur." -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "Modèle d'historique" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Emission" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Aide" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "L'Emission est vide" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Mise en route" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1m" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "Manuel Utilisateur" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5m" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "A propos" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Service" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Durée de Fonctionnement" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "Proc." +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Mémoire" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Récupération des données du serveur..." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "%s Version" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "Cette émission n'a pas de contenu programmée." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Espace Disque" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "Cette émission n'est pas complètement remplie avec ce contenu." -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "Courriel / Réglages du Serveur de Courriels" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "Janvier" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "Réglages SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "Fevrier" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Jours de Répétition:" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "Mars" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Enlever" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "Avril" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Ajouter" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "Mai" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "URL de Connexion:" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "Juin" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Réglages de Flux en Entrée" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "Juillet" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "URL de Connexion de la Source Maitre:" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "Aout" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Outrepasser" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "Septembre" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "OK" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "Octobre" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "Remise à Zéro" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "Novembre" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "URL de Connexion de la Source Emission:" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "Décembre" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Requis)" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Jan" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Enregistrez Airtime" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "Fev" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "Aidez %1$s nous à l'améliorer en nous faisant savoir comment vous l'utilisez. Cette information sera recueillie régulièrement afin d'améliorer votre expérience utilisateur.\n%2$s Cliquez Oui, aider %1$s et nous vous assurerons que les fonctions que vous utilisez seront en constante amélioration." +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "Mar" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "Cliquez sur la case ci-dessous pour promouvoir votre station sur %s ." +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "Avr" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(à des fins de vérification uniquement, ne sera pas publié)" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "Jun" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Remarque: Tout ce qui est plus grand que 600x600 sera redimensionné." +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "Jui" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Montrez-moi ce que je vais envoyer" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "Aou" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Termes et Conditions." +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "Sep" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Réinitialisation du Mot de Passe" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "Oct" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Choisir le répertoire" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "Nov" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Installer" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "Dec" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Répertoire d'Import en Cours:" +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "aujourd'hui" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "Rescanner le répertoire surveillé (Ce qui peut être utile si il est sur le réseau et est peut être désynchronisé de %s)" +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "jour" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Supprimer le répertoire surveillé" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "semaine" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "Vous ne surveillez pas les dossiers médias." +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "mois" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Flux" +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 +msgid "" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "" +"Les émissions qui dépassent leur programmation seront coupés par les " +"émissions suivantes." -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "options supplémentaires" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Annuler l'Emission en Cours?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "Les informations suivantes seront affichées aux auditeurs dans leur lecteur multimédia:" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Arreter l'enregistrement de l'émission en cours" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(Site Internet de la Station de Radio)" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "Ok" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "URL du Flux:" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Contenu de l'émission" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Filtre de l'Historique" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Enlever tous les contenus?" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Trouver Emissions" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Selectionner le(s) élément(s)?" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Filtrer par émission" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "Fin" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "%s's Réglages" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Durée" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "Aidez %s à améliorer le logiciel en nous faisant savoir comment vous l'utilisez %s. Cette information sera recueillie régulièrement afin d'améliorer votre expérience utilisateur.\n%s Cliquez la case \"Envoyer des rapports d'utilisation» et nous nous assurerons que les fonctions que vous utilisez seront en constante amélioration." +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Emission vide" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(Pour la promotion de votre station, 'Envoyez vos remarques au support' doit être activé)." +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Enregistrement à partir de 'Line In'" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Politique de Confidentialité Sourcefabric" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Pré-écoute de la Piste" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "Choisissez Afficher instance" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Vous ne pouvez pas programmer en dehors d'une émission." -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "Trouver" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Déplacer 1 élément" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Choix des Jours:" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Déplacer %s éléments" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Options de Bloc Intelligent" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" +msgstr "Editeur de Fondu" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "ou" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" +msgstr "Editeur de Point d'E/S" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "et" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "" +"Les caractéristiques de la forme d'onde sont disponibles dans un navigateur " +"supportant l'API Web Audio" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr "à" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Tout Selectionner" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "fichiers répondent aux critères" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Ne Rien Selectionner" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "Le fichier doit correspondre aux crtères" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Suppression des pistes en surcharge" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "Création du fichier Modèle d'Historique" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Supprimer les éléments programmés selectionnés" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "Création du modèle de fichier de Log" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Aller à la piste en cours de lecture" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "Ajouter plus d'éléments" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Annuler l'émission en cours" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "Ajouter un nouveau champs" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "Ouvrir la Médiathèque pour ajouter ou supprimer du contenu" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "Definir le modèle par défaut" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "en utilisation" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "Modèles de fichiers de Log" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Disque" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "Aucun modèles de fichiers de Log" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Regarder à l'intérieur" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "Nouveau modèle de fichier de Log" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Ouvrir" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "Modèle de fichier d'historique" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "Les Invités peuvent effectuer les opérations suivantes:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "aucun modèle de fichier d'Historique" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "Voir le calendrier" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "Nouveau modèle de fichier d'Historique" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "Voir le contenu des émissions" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "Nouveau" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "Les DJs peuvent effectuer les opérations suivantes:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "Nouvelle Liste de Lecture" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "Gérer le contenu des émissions attribué" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "Nouveau Bloc Intelligent" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Importer des fichiers multimédias" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "Nouveau Flux Web" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Créez des listes de lectures, des blocs intelligents et des flux web" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "Voir / Editer la description" +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "Gérer le contenu de leur propre audiotheque" + +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "Les gestionnaires pouvent effectuer les opérations suivantes:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "URL du Flux:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "Afficher et gérer le contenu des émissions" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Durée par Défaut:" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Programmer des émissions" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "Aucun Flux Web" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "Gérez tout le contenu de l'audiotheque" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Réglages des Flux" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "Les Administrateurs peuvent effectuer les opérations suivantes:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Réglages Globaux" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Gérer les préférences" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "dB" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "Gérer les utilisateurs" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Réglages flux de sortie" +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "Gérer les dossiers surveillés" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "Import du Fichier en cours..." +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "Voir l'état du système" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Options Avancées de Recherche" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Accédez à l'historique diffusion" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "précédent" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "Voir les statistiques des auditeurs" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "jouer" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Montrer / cacher les colonnes" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "pause" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "De {from} à {to}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "suivant" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "stop" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "aaaa-mm-jj" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "sourdine" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "hh:mm:ss.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "désactiver" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "Volume max" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "Di" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Mise à Jour Requise" +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Lu" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "Pour lire le média, vous devrez mettre à jour votre navigateur vers une version récente ou mettre à jour votre %sPlugin Flash%s." +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Ma" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Durée:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "Me" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Fréquence d'Echantillonnage" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Je" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "Numéro ISRC:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Ve" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "Chemin du fichier:" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "Sa" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Flux Web" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Heure" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Bloc Intelligent Dynamique" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Minute" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Bloc Intélligent Statique" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Fait" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Piste Audio" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Sélectionnez les fichiers" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Contenus de la Liste de Lecture:" +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "" +"Ajouter des fichiers à la file d'attente de téléversement, puis cliquez sur " +"le bouton Démarrer." -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Contenus du Bloc Intelligent Statique:" +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Ajouter des fichiers" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Critère(s) du Bloc Intelligent Dynamique:" +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Arreter le Téléversement" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Limité à" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Démarrer le Téléversement" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Nombre d'auditeur au fil du temps" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Ajouter des fichiers" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Welcome to %s!" -msgstr "Bienvenue à %s !" +msgid "Uploaded %d/%d files" +msgstr "Téléversement de %d/%d fichiers" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 -#, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "Voici comment vous pouvez commencer à utiliser %s pour automatiser vos émissions:" +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "N/A" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Commencez par ajouter vos fichiers à l'aide du menu \"Ajouter un média\". Vous pouvez faire glisser et déposer vos fichiers sur la fenêtre." +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Faites glisser les fichiers ici." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Créer une émission en allant sur «Calendrier» dans la barre de menus, puis en cliquant sur l'icône 'Emission + \". Il peut s'agir d'une seule fois ou d'une émission en répétition. Seuls les administrateurs et les gestionnaires de programmation peuvent ajouter des émissions." +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "Erreur d'extension du fichier." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Ajouter des médias à votre émission en cliquant sur votre émission dans le calendrier, Clic gauche dessus et selectionnez 'Ajouter / Supprimer Contenu'" +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "Erreur de la Taille de Fichier." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Sélectionnez votre média dans le cadre de gauche et glissez-les dans votre émission dans le cadre de droite." +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "Erreur de comptage des fichiers." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "Alors vous êtes prêt à démarrer!" +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Erreur d'Initialisation." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "Pour une aide plus détaillée, lisez le %smanuel utilisateur%s." +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "Erreur HTTP." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Partager" +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Erreur de sécurité." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Selection du Flux:" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Erreur générique." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "Erreur d'E/S." + +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "%1$s %2$s, le logiciel ouvert de gestion et de programmation pour vos stations distantes." +msgid "File: %s" +msgstr "Fichier: %s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "%1$s %2$s est distribué sous %3$s" +msgid "%d files queued" +msgstr "%d fichiers en file d'attente" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "Nouveau mot de passe" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "Fichier:%f, taille: %s, taille de fichier maximale: %m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "S'il vous plaît saisir et confirmer votre nouveau mot de passe dans les champs ci-dessous." +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "l'URL de Téléversement est peut être erronée ou inexistante" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "S'il vous plaît saisissez votre adresse de courriel. Vous recevrez un lien pour créer un nouveau mot de passe par courriel." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Erreur: Fichier trop grand:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "Courriel envoyé" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "Erreur: extension de fichier non valide:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "Un courriel a été envoyé" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "créer une entrée" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Retour à l'écran de connexion" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "Éditer l'enregistrement de l'historique" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 #, php-format -msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." -msgstr "Bienvenue à la démo %s ! Vous pouvez vous connecter en utilisant le nom d'utilisateur «admin» et le mot de passe «admin» ." - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Précédent:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Prochain:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Sources des Flux" +msgid "Copied %s row%s to the clipboard" +msgstr "Copié %s ligne(s)%s dans le presse papier" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Source Maitre" +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#, php-format +msgid "" +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." +msgstr "" +"%sVue Imprimante%s Veuillez utiliser la fonction d'impression de votre " +"navigateur pour imprimer ce tableau. Appuyez sur échapper lorsque vous avez " +"terminé." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Source Emission" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Pré-Visualisation" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Lecture Programmée" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Selectionner le Curseur" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "DIRECT" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Enlever le Curseur" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Ecouter" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "L'Emission n'existe pas" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Heure de la Station" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Préférences mises à jour." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Votre période d'éssai expire dans" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Régalges su Support mis à jour." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "Achetez votre copie d' %s" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Réglages du Flux mis à jour." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "Mon Compte" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "le chemin doit être spécifié" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Gérer les Utilisateurs" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Problème ave Liquidsoap..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "Nouvel Utilisateur" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Page non trouvée" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "id" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Erreur de l'application" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "Prénom" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s non trouvé" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Nom" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Quelque chose s'est mal passé." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "Type d'Utilisateur" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Ajouter une" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "Fichier de Log" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Ajouter un bloc Intelligent" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "Résumé du fichier" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Téléchargement" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "Historique Emision" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "dupliquer la Liste de lecture" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Application par défaut du Framework Zend" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "SoundCloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Page non trouvée!" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "Aucune action disponible" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "On dirait que la page que vous cherchez n'existe pas!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "Vous n'avez pas la permission de supprimer les éléments sélectionnés." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Ettendre le bloc Statique" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "Impossible de supprimer certains fichiers programmés." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Ettendre le Bloc Dynamique" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Copie de %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Bloc Intelligent Vide" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Flux Web sans Titre" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Liste de Lecture Vide" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Flux Web sauvegardé" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "Vider le contenu de la Liste de Lecture" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Valeurs du formulaire non valides." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "Vider" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "Vous n'avez pas la permission de déconnecter la source." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Liste de Lecture Aléatoire" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "Il n'y a pas de source connectée à cette entrée." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Sauvegarde de la Liste de Lecture" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "Vous n'avez pas la permission de changer de source." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Fondu enchainé de la Liste de Lecture" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "Utilisateur ajouté avec succès!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Fondu en entrée:" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "Utilisateur mis à jour avec succès!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Fondu en sortie:" +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "Paramètres mis à jour avec succès!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "Pas de Liste de Lecture Ouverte" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Rediffusion de l'émission %s de %s à %s" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "Vider le contenu du bloc intelligent" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." +msgstr "" +"S'il vous plaît assurez-vous que l'utilisateur admin a un mot de passe " +"correct sur le système-> page flux." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "Vous n'êtes pas autorisé à acceder à cette ressource." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "Pas de Bloc Intelligent Ouvert" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "Vous n'êtes pas autorisé à acceder à cette ressource." -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "Montrer la Forme d'Onde" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "Le fichier n'existe pas dans Airtime" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Point d'Entrée" +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "Le fichier n'existe pas dans Airtime" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "Le fichier n'existe pas dans Airtime" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Point de Sortie:" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Mauvaise requête. pas de \"mode\" paramètre passé." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Durée Originale:" +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Mauvaise requête.paramètre 'mode' invalide" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Ajouter cette Emission" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "Vous visualisez l'ancienne version de %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Mettre à jour l'émission" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "Vous ne pouvez pas ajouter de pistes aux blocs dynamiques." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "Quoi" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "Vous n'avez pas la permission de supprimer la sélection %s(s)." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "Quand" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "Vous pouvez seulement ajouter des pistes au bloc intelligent." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Entrée du Flux Direct" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Liste de Lecture Sans Titre" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Enregistrement & Rediffusion" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Bloc Intelligent Sans Titre" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Qui" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Liste de Lecture Inconnue" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Style" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "Le Point d'entré et le point de sortie sont nul." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Rediffusion de %s à %s" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "" +"Ne peut pas fixer un point de sortie plus grand que la durée du fichier." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Selectionner le Pays" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "" +"Impossible de définir un point d'entrée plus grand que le point de sortie." + +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Ne peux pas fixer un point de sortie plus petit que le point d'entrée." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3649,43 +4366,26 @@ msgstr "Flux Web Invalide - Ceci semble être un fichier téléchargeable." msgid "Unrecognized stream type: %s" msgstr "Type de flux non reconnu: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s déjà examiné(s)." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s contient un répertoire surveillé imbriqué: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s est imbriqué avec un répertoire surveillé existant: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s n'est pas un répertoire valide." - -#: airtime_mvc/application/models/MusicDir.php:232 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s est déjà défini comme le répertoire de stockage courant ou dans la liste des dossiers surveillés" - -#: airtime_mvc/application/models/MusicDir.php:386 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s est déjà défini comme espace de stockage courant ou dans la liste des répertoires surveillés." - -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s n'existe pas dans la liste surveillée" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Bonjour %s, \n" +"\n" +"Cliquez sur ce lien pour réinitialiser votre mot de passe:" + +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Mot de passe Airtime Réinitialisé" + +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Selectionner le Pays" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3693,13 +4393,17 @@ msgstr "Vous ne pouvez pas déplacer les éléments sur les émissions liées" #: airtime_mvc/application/models/Scheduler.php:119 msgid "The schedule you're viewing is out of date! (sched mismatch)" -msgstr "Le calendrier que vous consultez n'est pas à jour! (décalage calendaire)" +msgstr "" +"Le calendrier que vous consultez n'est pas à jour! (décalage calendaire)" #: airtime_mvc/application/models/Scheduler.php:124 msgid "The schedule you're viewing is out of date! (instance mismatch)" -msgstr "La programmation que vous consultez n'est pas à jour! (décalage d'instance)" +msgstr "" +"La programmation que vous consultez n'est pas à jour! (décalage d'instance)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3728,63 +4432,65 @@ msgstr "L'émission %s a été précédement mise à jour!" msgid "" "Content in linked shows must be scheduled before or after any one is " "broadcasted" -msgstr "Le contenu des émissions liés doit être programmé avant ou après sa diffusion" - -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." -msgstr "Vous ne pouvez pas programmer une liste de lecture qui contient des fichiers manquants " +msgstr "" +"Le contenu des émissions liés doit être programmé avant ou après sa diffusion" +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "Un fichier séléctionné n'existe pas!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "Le Point d'entré et le point de sortie sont nul." - -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Impossible de définir un point d'entrée plus grand que le point de sortie." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s déjà examiné(s)." -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Ne peut pas fixer un point de sortie plus grand que la durée du fichier." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s contient un répertoire surveillé imbriqué: %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Ne peux pas fixer un point de sortie plus petit que le point d'entrée." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s est imbriqué avec un répertoire surveillé existant: %s" -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." -msgstr "Impossible de créer le répertoire \"organize\"." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s n'est pas un répertoire valide." -#: airtime_mvc/application/models/StoredFile.php:1017 +#: airtime_mvc/application/models/MusicDir.php:232 #, php-format msgid "" -"The file was not uploaded, there is %s MB of disk space left and the file " -"you are uploading has a size of %s MB." -msgstr "Le fichier n'a pas été téléchargé, il y a %s Mo d'espace libre sur le disque et le fichier que vous téléchargez a une taille de %s MB." +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s est déjà défini comme le répertoire de stockage courant ou dans la liste " +"des dossiers surveillés" -#: airtime_mvc/application/models/StoredFile.php:1026 +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format msgid "" -"This file appears to be corrupted and will not be added to media library." -msgstr "Ce fichier semble être endommagé et ne sera pas ajouté à la médiathèque." +"%s is already set as the current storage dir or in the watched folders list." +msgstr "" +"%s est déjà défini comme espace de stockage courant ou dans la liste des " +"répertoires surveillés." -#: airtime_mvc/application/models/StoredFile.php:1065 -msgid "" -"The file was not uploaded, this error can occur if the computer hard drive " -"does not have enough disk space or the stor directory does not have correct " -"write permissions." -msgstr "Le fichier n'a pas été téléchargé, cette erreur peut se produire si le disque dur de l'ordinateur ne dispose pas de suffisamment d'espace libre ou le répertoire stockage ne dispose pas des autorisations d'écriture correctes." +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s n'existe pas dans la liste surveillée" + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Rediffusion de %s à %s" #: airtime_mvc/application/models/Show.php:180 msgid "Shows can have a max length of 24 hours." @@ -3794,116 +4500,178 @@ msgstr "Les Emissions peuvent avoir une durée maximale de 24 heures." msgid "" "Cannot schedule overlapping shows.\n" "Note: Resizing a repeating show affects all of its repeats." -msgstr "Ne peux pas programmer des émissions qui se chevauchent. \nRemarque: Le redimensionnement d'une émission répétée affecte l'ensemble de ses répétitions." +msgstr "" +"Ne peux pas programmer des émissions qui se chevauchent. \n" +"Remarque: Le redimensionnement d'une émission répétée affecte l'ensemble de " +"ses répétitions." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/models/StoredFile.php:1017 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Bonjour %s, \n\nCliquez sur ce lien pour réinitialiser votre mot de passe:" - -#: airtime_mvc/application/models/Auth.php:36 -#, php-format -msgid "%s Password Reset" -msgstr "%s Réinitialisation du mot de passe" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." +msgstr "" +"Le fichier n'a pas été téléchargé, il y a %s Mo d'espace libre sur le disque " +"et le fichier que vous téléchargez a une taille de %s MB." -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "L'enregistrement du fichier n'existe pas" +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "Ne peux pas redimmensionner une émission diffusée" -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "Afficher les métadonnées du fichier enregistré" +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "Les émissions ne doivent pas se chevaucher" -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Contenu Emission" +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." +msgstr "Impossible de créer le répertoire \"organize\"." -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Supprimer tous les contenus" +#: airtime_mvc/application/models/StoredFile.php:1026 +msgid "" +"This file appears to be corrupted and will not be added to media library." +msgstr "" +"Ce fichier semble être endommagé et ne sera pas ajouté à la médiathèque." -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Annuler l'émission en cours" +#: airtime_mvc/application/models/StoredFile.php:1065 +msgid "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." +msgstr "" +"Le fichier n'a pas été téléchargé, cette erreur peut se produire si le " +"disque dur de l'ordinateur ne dispose pas de suffisamment d'espace libre ou " +"le répertoire stockage ne dispose pas des autorisations d'écriture correctes." -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" -msgstr "Editer cette instance" +#: airtime_mvc/application/layouts/scripts/login.phtml:24 +#, php-format +msgid "" +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" +msgstr "" +"%1$s copyright © %2$s Tous droits réservés.%3$sMaintenue et distribuée " +"sous %4$s by %5$s" -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Edition de l'Emission" +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#, php-format +msgid "Promote my station on %s" +msgstr "Promouvoir station sur %s" -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Suppression de l'instance" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" +"En cochant cette case , je accepte la %s's %s de politique de " +"confidentialité %s ." -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Suppression de l'instance et des suivantes" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "Utilisez l'authentification %s :" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "Permission refusée" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" +msgstr "Le fichier n'existe pas dans %s" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Vous ne pouvez pas faire glisser et déposer des émissions en répétition" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "%s Version" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Ne peux pas déplacer une émission diffusée" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" +"Aidez %1$s nous à l'améliorer en nous faisant savoir comment vous " +"l'utilisez. Cette information sera recueillie régulièrement afin d'améliorer " +"votre expérience utilisateur.\n" +"%2$s Cliquez Oui, aider %1$s et nous vous assurerons que les fonctions que " +"vous utilisez seront en constante amélioration." -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Ne peux pas déplacer une émission dans le passé" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "Cliquez sur la case ci-dessous pour promouvoir votre station sur %s ." -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Impossible de déplacer une émission enregistrée à moins d'1 heure avant ses rediffusions." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" +"Rescanner le répertoire surveillé (Ce qui peut être utile si il est sur le " +"réseau et est peut être désynchronisé de %s)" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "L'Emission a été éffacée parce que l'enregistrement de l'émission n'existe pas!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" +"Aidez %s à améliorer le logiciel en nous faisant savoir comment vous " +"l'utilisez %s. Cette information sera recueillie régulièrement afin " +"d'améliorer votre expérience utilisateur.\n" +"%s Cliquez la case \"Envoyer des rapports d'utilisation» et nous nous " +"assurerons que les fonctions que vous utilisez seront en constante " +"amélioration." -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Doit attendre 1 heure pour retransmettre." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "Bienvenue à %s !" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" -msgstr "Morceau" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " +msgstr "" +"Voici comment vous pouvez commencer à utiliser %s pour automatiser vos " +"émissions:" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Joué" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" +"%1$s %2$s, le logiciel ouvert de gestion et de programmation pour vos " +"stations distantes." -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "L'année %s doit être comprise entre 1753 - 9999" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "%1$s %2$s est distribué sous %3$s" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s n'est pas une date valide" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" +"Bienvenue à la démo %s ! Vous pouvez vous connecter en utilisant le nom " +"d'utilisateur «admin» et le mot de passe «admin» ." -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s:%s:%s n'est pas une durée valide" +msgid "Purchase your copy of %s" +msgstr "Achetez votre copie d' %s" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "S'il vous plait, selectionnez une option" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" +"Vous ne pouvez pas programmer une liste de lecture qui contient des fichiers " +"manquants " -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "Aucun Enregistrements" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "%s Réinitialisation du mot de passe" diff --git a/airtime_mvc/locale/hr_HR/LC_MESSAGES/airtime.po b/airtime_mvc/locale/hr_HR/LC_MESSAGES/airtime.po index e9fd6214d3..52c6760784 100644 --- a/airtime_mvc/locale/hr_HR/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/hr_HR/LC_MESSAGES/airtime.po @@ -1,3607 +1,4267 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: # Sourcefabric , 2013 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: Croatian (Croatia) (http://www.transifex.com/projects/p/airtime/language/hr_HR/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-04-02 12:14+0000\n" +"Last-Translator: andrey.podshivalov\n" +"Language-Team: Croatian (Croatia) (http://www.transifex.com/projects/p/" +"airtime/language/hr_HR/)\n" +"Language: hr_HR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: hr_HR\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Audio Uređaj" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Molimo, odaberi opciju" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Odjava" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "Nema Zapisa" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "Pokreni" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "Godine %s moraju biti u rasponu od 1753 - 9999" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "Zaustavi" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s nije ispravan datum" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Cue In" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s:%s:%s nije ispravan datum" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "Podesi Cue In" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Trenutno Izvođena" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Cue Out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Dodaj Medije" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "Podesi Cue Out" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Knjižnica" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "Pokazivač" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Kalendar" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Odtamnjenje" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "Sustav" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Zatamnjenje" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Postavke" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Korisnici" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Prijenos uživo" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Medijska Mapa" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Omogućeno:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Prijenosi" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Prijenos Tipa:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Povratne Informacije" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Brzina u Bitovima:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Stanje" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Tip Usluge:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Slušateljska Statistika" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Kanali:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "Povijest" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Povijest puštenih pjesama" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "Povijesni Predlošci" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Poslužitelj" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Pomoć" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Uneseni su nevažeći znakovi" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Početak Korištenja" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Port" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "Priručnik" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Dopušteni su samo brojevi." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "O projektu" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Lozinka" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "Snimljena datoteka ne postoji" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Žanr" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "Metapodaci Snimljenog Fajla" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Prikaz na Soundcloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Naziv" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Prijenos na Soundcloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Opis" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Ponovno-prenijeti na Soundcloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Točka Montiranja" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Programski Sadržaj" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Korisničko ime" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Dodaj / Ukloni Sadržaj" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Admin Korisnik" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Ukloni Sve Sadržaje" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Admin Lozinka" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Prekid Programa" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Dobivanje informacija sa poslužitelja..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "Uredi u tom slučaju" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Poslužitelj ne može biti prazan." +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Uredi" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Port ne može biti prazan." +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Uredi Programa" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Montiranje ne može biti prazna s Icecast poslužiteljem." +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Izbriši" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" -msgstr "Naziv:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Izbriši u tom slučaju" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" -msgstr "Tvorac:" +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Izbriši u tom slučaju i svi prateći" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "Album:" +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "Dozvola odbijena" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "Pjesma:" +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "Ne možeš povući i ispustiti ponavljajuće emisije" + +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "Ne možeš premjestiti događane emisije" + +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Ne možeš premjestiti emisiju u prošlosti" + +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Ne možeš zakazati preklapajuće emisije" + +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "" +"Ne možeš premjestiti snimljene emisije ranije od 1 sat vremena prije njenih " +"reemitiranja." + +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "Emisija je izbrisana jer je snimljena emisija ne postoji!" + +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "Moraš pričekati 1 sat za re-emitiranje." + +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Naziv" + +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Tvorac" + +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Album" + +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Dužina" + +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Žanr" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Raspoloženje" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Naljepnica" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Kompozitor" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Autorsko pravo" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Godina" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "Pjesma" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Dirigent" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Jezik" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "Vrijeme Početka" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "Vrijeme Završetka" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Pušteno" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "Uvoz datoteke je u tijeku..." -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" -msgstr "Žanr:" +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Napredne Opcije Pretraživanja" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" -msgstr "Godina:" +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Statistika Slušalaca" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" -msgstr "Naljepnica:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "Novi" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" -msgstr "Kompozitor:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "Novi Popis Pjesama" -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" -msgstr "Dirigent:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "Novi Pametni Blok" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Raspoloženje:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "Novi Prijenos" -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "Prazan sadržaj popis pjesama" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" -msgstr "Autorsko pravo:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "Očisti" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "ISRC Broj:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Slučajni izbor popis pjesama" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" -msgstr "Web stranica:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Miješanje" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" -msgstr "Jezik:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Spremi popis pjesama" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 #: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 #: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 #: airtime_mvc/application/forms/SupportSettings.php:161 #: airtime_mvc/application/controllers/LocaleController.php:283 #: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 #: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 msgid "Save" msgstr "Spremi" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Otkaži" - -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Korisničko ime:" - -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Lozinka:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Križno utišavanje popis pjesama" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Potvrdi Lozinku:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "Pregled / ured opisa" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Ime:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Opis" -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Prezime:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Odtamnjenje:" -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "E-mail:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Zatamnjenje:" -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Mobitel:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "Nema otvorenih popis pjesama" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Proširenje Statičkog Bloka" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Proširenje Dinamičkog Bloka" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "Vrsta Korisnika:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Prazan pametni blok" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Gost" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Prazan popis pjesama" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "Disk-džokej" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "Emisijski zvučni talasni oblik" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Voditelj Programa" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Cue In: " -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Administrator" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(hh:mm:ss.t)" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Ime prijave nije jedinstveno." +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Cue Out: " -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Boja Pozadine:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Izvorna Dužina:" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Boja Teksta:" +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(ss.t)" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Datum Početka:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "Prazan sadržaj pametnog bloka" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Datum Završetka:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "Nema otvoreni pametni blok" -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Program:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sAirtime%s %s, otvoreni radio softver za zakazivanje i daljinsko vođenje " +"postaje. %s" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "Sve Moje Emisije:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "%sSourcefabric%s o.p.s. Airtime se distribuira pod %sGNU GPL v.3%s" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "dani" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Dobrodošli kod Airtime-a!" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "Dan mora biti naveden" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "" +"Evo kako možeš početi koristiti emitiranja za automatiziranje svoje emisije:" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "Vrijeme mora biti navedeno" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Započni dodavanjem datoteke u knjižnicu pomoću 'Dodaj Medije' meni tipkom. " +"Možeš povući i ispustiti datoteke na ovom prozoru." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Moraš čekati najmanje 1 sat za re-emitiranje" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Kreiraj jednu emisiju tako da ideš na 'Kalendar' na traci izbornika, a zatim " +"klikom na '+ Emisija' ikonu. One mogu biti bilo jednokratne ili ponavljajuće " +"emisije. Samo administratori i urednici mogu dodati emisije." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Uvozna Mapa:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Dodaj medije za emisiju u kalendaru, klikni sa lijevom klikom na njega i " +"izaberi opciju 'Dodaj / Ukloni sadržaj'" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Mape Pod Nadzorom:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Odaberi svoje medije na lijevom oknu i povuci ih na svoju emisiju u desnom " +"oknu." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Ne valjana Direktorija" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "I već je završeno!" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Traži Korisnike:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "Za detaljnu pomoć, pročitaj %skorisnički priručnik%s." -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "Disk-Džokeji:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Prijenos uživo" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Prijava" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Podijeli" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Upiši znakove koje vidiš na slici u nastavku." +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Prijenosi:" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Naziv Postaje" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "nijemi" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "Zadano Trajanje Križno Stišavanje (s):" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "uključi" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "unesi vrijeme u sekundama 0{.0}" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "Sve" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "Zadano Odtamnjenje (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "Zadano Zatamnjenje (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Dopusti daljinske Web stranice za pristup \"Raspored\" Info?%s (Omogući ovo da bi front-end widgets rad.)" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Onemogućeno" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "URL Prijenosa:" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Omogućeno" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Zadana Dužina:" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Zadani Jezik Sučelja" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "Nema prijenosa" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "Stanična Vremenska Zona" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "Naziv:" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "Prvi Dan u Tjednu" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "Tvorac:" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Nedjelja" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "Album:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Ponedjeljak" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "Pjesma:" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Utorak" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Dužina:" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Srijeda" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Uzorak Stopa:" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Četvrtak" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Brzina u Bitovima:" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Petak" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Raspoloženje:" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Subota" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "Žanr:" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "Link:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "Godina:" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Tip Ponavljanje:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "Naljepnica:" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "tjedno" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "Kompozitor:" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "svaka 2 tjedna" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "Dirigent:" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "svaka 3 tjedna" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "Autorsko pravo:" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "svaka 4 tjedna" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "Isrc Broj:" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "mjesečno" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "Web stranica:" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Odaberi Dane:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" +msgstr "Jezik:" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Ned" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "Staža Datoteka:" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Pon" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Naziv:" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Uto" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Opis:" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Sri" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Prijenos" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Čet" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Dinamički Smart Block" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Pet" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Statički Smart Block" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Sub" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Zvučni Zapis" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "Ponavljanje Po:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Sadržaji Popis Pjesama:" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "dan u mjesecu" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Statički Smart Block Sadržaji:" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "dan u tjednu" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Dinamički Smart Block Kriteriji:" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "Nema Kraja?" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Ograničeno za" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "Datum završetka mora biti nakon datuma početka" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "Molimo, odaberi kojeg dana" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "Odaberi Emisijsku Stupnju" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Potvrdi novu lozinku" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "Nema Programa" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "Lozinke koje ste unijeli ne podudaraju se." +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "Nađi" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Nabavi novu lozinku" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "%s Postavke" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Odaberi kriterije" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Odaberi mapu" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Album" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Podesi" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Brzina u Bitovima (Kbps)" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Aktualna Uvozna Mapa:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Dodaj" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Kompozitor" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Skeniraj ponovno praćenu direktoriju (Ovo je korisno ako je mrežna veza nije " +"sinkronizirana sa Airtime-om)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Dirigent" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Ukloni nadzoranu direktoriju" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Autorsko pravo" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "Ne pratiš nijedne medijske mape." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Tvorac" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Obavezno)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Kodirano je po" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Molimo, pomozi našeg rada.%sKlikni u kutiju 'Pošalji povratne informacije'." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "" +"Klikni na donji okvir za promicanje svoju stanicu na %sSourcefabric.org%s." + +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(Kako bi se promovirao svoju stanicu, 'Pošalji povratne informacije' mora " +"biti omogućena)." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Naljepnica" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(služi samo za provjeru, neće biti objavljena)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Jezik" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Napomena: Sve veća od 600x600 će se mijenjati." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Zadnja Izmjena" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Pokaži mi što šaljem" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Zadnji Put Odigrano" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Sourcefabric Pravila o Privatnosti" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Dužina" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Nađi Emisije" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Mimika" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Po Emisiji:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Raspoloženje" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "Postavka E-mail / Mail Poslužitelja" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Vlasnik" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "SoundCloud Postavke" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Replay Gain" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Odaberi Dane:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Uzorak Stopa (kHz)" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Ukloni" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Naziv" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Prijenos" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Broj Pjesma" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Dodatne Opcije" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Dodano" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "" +"Sljedeće informacije će biti prikazane slušateljima u medijskom plejerima:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Web stranica" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(Tvoja radijska postaja web stranice)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Godina" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "URL Prijenosa:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Odaberi modifikator" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "Priključni URL:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "sadrži" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Resetuj lozinku" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "ne sadrži" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Airtime Registar" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "je" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "Molimo, pomozi našeg rada.%sKlikni u kutiju 'Da, pomažem Airtime-u'." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "nije" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Klikni na donji okvir za oglašavanje svoju stanicu na %sSourcefabric.org%s. " +"U cilju promicanja svoju stanicu, 'Pošalji povratne informacije' mora biti " +"omogućena. Ovi podaci će se prikupljati uz podršku poruci." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "počinje sa" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Uvjeti i Odredbe" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "završava sa" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Postavke Ulaznog Signala" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "je veći od" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "URL veza Majstorskog izvora:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "je manji od" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Nadjačaj" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "je u rasponu" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "Ok" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "sati" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "Resetiranje" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "minuti" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "URL veza Programskog izvora:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "elementi" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Smart Block Opcije" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Postavi smart block tipa:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "ili" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Statički" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "i" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Dinamički" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr "do" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Dopusti Ponavljanje Pjesama:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "datoteke zadovoljavaju kriterije" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Ograničeno na" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "datoteka zadovoljava kriterije" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Generiranje popisa pjesama i spremanje sadržaja kriterije" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Ponovljeni Dani:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Generiraj" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Filtriraj Povijesti" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Sadržaj slučajni izbor popis pjesama" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Zatvori" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Miješanje" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Dodaj ovu emisiju" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "Ograničenje ne može biti prazan ili manji od 0" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Ažuriranje emisije" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "Ograničenje ne može biti više od 24 sati" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "Što" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "Vrijednost mora biti cijeli broj" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "Kada" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "500 je max stavku graničnu vrijednost moguće je podesiti" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Ulaz Uživnog Prijenosa" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "Moraš odabrati Kriteriju i Modifikaciju" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Snimanje & Reemitiranje" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "'Dužina' trebala biti u '00:00:00' obliku" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Tko" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "Vrijednost mora biti u obliku vremenske oznake (npr. 0000-00-00 ili 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Stil" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "Vrijednost mora biti numerička" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Početak" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "Vrijednost bi trebala biti manja od 2147483648" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Prijenosne Postavke" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "Vrijednost mora biti manja od %s znakova" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Globalne Postavke" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "Vrijednost ne može biti prazna" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "dB" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Automatsko Isključivanje" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Izlazne Prijenosne Postavke" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Automatsko Uključivanje" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Upravljanje Medijske Mape" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Prijelazni Fade Prekidač (s)" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Zend Framework Zadana Aplikacija" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "unesi vrijeme u sekundama 00{.000000}" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Stranica nije pronađena!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Majstorsko Kor. Ime" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "Izgleda stranica koju si tražio ne postoji!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Majstorska Lozinka" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "Predlošci Popis Prijave" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "URL veza Majstorskog izvora" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "Nema Popis Predložaka" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "URL veza Programskog izvora" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "Postavi Zadano" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Port Majstorskog Izvora" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "Novi Popis Predložaka" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Točka Majstorskog Izvora" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "Predlošci za Datotečni Sažeci" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Port Programskog Izvora" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "Nema Predložaka za Datotečni Sažeci" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Točka Programskog Izvora" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "Novi Predložak za Datotečni Sažeci" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "Ne možeš koristiti isti port kao Majstor DJ priključak." +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "Stvaranje Predložaka za Datotečni Sažeci" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Port %s nije dostupan" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "Stvaranje Popis Predložaka" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Telefon:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Naziv" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Web Stranica:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "Dodaj više elemenata" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Država:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "Dodaj Novo Polje" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "Grad:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "Postavi Zadano Predlošku" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Opis:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "Nova lozinka" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Logo:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "Unesi i potvrdi svoju novu lozinku u polja dolje." -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Pošalji povratne informacije" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Prijava" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." msgstr "" +"Dobrodošli! Možete se prijaviti koristeći panel za prijavu. Dovoljno je samo " +"uneti korisničko ime i lozinku: 'admin'." -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." msgstr "" +"Unesi svoju e-mail adresu računa. Primit ćeš link za novu lozinku putem e-" +"maila." -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "Moraš pristati na pravila o privatnosti." +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "E-mail je poslan" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Vrijednost je potrebna i ne može biti prazan" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "E-mail je poslan" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "Vrijeme Početka" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Povratak na zaslon za prijavu" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "Vrijeme Završetka" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "Popis Prijava" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "Nema Programa" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "Datotečni Sažetak" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Snimanje sa Line In?" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "Programski Sažetak" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Ponovno emitirati?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "prethodna" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "pokreni" -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Koristi Prilagođeno provjeru autentičnosti:" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "pauza" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Prilagođeno Korisničko Ime" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "sljedeća" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Prilagođena Lozinka" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "zaustavi" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "'Korisničko Ime' polja ne smije ostati prazno." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "max glasnoća" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "'Lozinka' polja ne smije ostati prazno." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Potrebno Ažuriranje" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "E-mail" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 +#, php-format +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." +msgstr "" +"Medija je potrebna za reprodukciju, i moraš ažurirati svoj preglednik na " +"noviju verziju, ili ažurirati svoj %sFlash plugin%s." -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Vraćanje lozinke" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Usluga" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Hardver Audio Izlaz" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Radno Vrijeme" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Tip Izlaza" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Icecast Vorbis Metapodaci" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Memorija" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Vidljivi Podaci:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Airtime Verzija" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Autor - Naziv" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Diskovni Prostor" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Program - Autor - Naziv" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Upravljanje Korisnike" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Naziv postaje - Naziv programa" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "Novi Korisnik" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Off Air Metapodaci" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "id" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Omogući Replay Gain" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Korisničko ime" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Replay Gain Modifikator" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "Ime" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%value%' nije valjana e-mail adresa u osnovnom obliku local-part@hostname" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Prezime" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" -msgstr "'%value%' ne odgovara po obliku datuma '%format%'" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "Tip Korisnika" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" -msgstr "'%value%' je manji od %min% dugačko znakova" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Prethodna:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" -msgstr "'%value%' je više od %max% dugačko znakova" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Sljedeća:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" -msgstr "'%value%' nije između '%min%' i '%max%', uključivo" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Prijenosni Izvori" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" -msgstr "Lozinke se ne podudaraju" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Majstorski Izvor" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' se ne uklapa u vremenskom formatu 'HH:mm'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Emisijski Izvor" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Datum/Vrijeme Početka:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Zakazana Predstava" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Datum/Vrijeme Završetka:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "PRIJENOS" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Slušaj" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Glavno vrijeme" + +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Vaš račun istječe u" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Trajanje:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "dani" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Vremenska Zona:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Kupnja svoj primjerak medijskog prostora" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Ponavljanje?" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "Moj Račun" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Ne može se stvoriti emisije u prošlosti" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Korisničko ime:" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Ne možeš mijenjati datum/vrijeme početak emisije, ako je već počela" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Lozinka:" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "Datum završetka i vrijeme ne može biti u prošlosti" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "Upiši znakove koje vidiš na slici u nastavku." -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Ne može trajati < 0m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Uneseni su nevažeći znakovi" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Ne može trajati 00h 00m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "Dan mora biti naveden" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Ne može trajati više od 24h" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "Vrijeme mora biti navedeno" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Ne možeš zakazati preklapajuće emisije" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "Moraš čekati najmanje 1 sat za re-emitiranje" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Naziv:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Koristi Airtime provjeru autentičnosti:" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Neimenovan Program" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Koristi Prilagođeno provjeru autentičnosti:" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Prilagođeno Korisničko Ime" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Opis:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Prilagođena Lozinka" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" -msgstr "Automatski Prijenos (Upload) Snimljene Emisije" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "'Korisničko Ime' polja ne smije ostati prazno." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" -msgstr "Omogući SoundCloud Prijenos" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "'Lozinka' polja ne smije ostati prazno." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" -msgstr "Automatski Obilježeni Fajlovi \"može se preuzeti\" sa SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Omogućeno:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" -msgstr "SoundCloud E-mail" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Prijenos Tipa:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" -msgstr "SoundCloud Lozinka" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Tip Usluge:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" -msgstr "SoundCloud Tagovi: (zasebne oznake s razmacima)" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Kanali:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" -msgstr "Zadani Žanr:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" -msgstr "Zadana Vrsta Pjesme:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Stereo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" -msgstr "Izvorni" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Poslužitelj" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "Remix" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Port" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "Uživo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Dopušteni su samo brojevi." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "Snimanje" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Lozinka" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "Govorni" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "Podcast" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Točka Montiranja" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "Ogledni" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Admin Korisnik" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "Radovi su u tijeku" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Admin Lozinka" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "Podrijetlo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Dobivanje informacija sa poslužitelja..." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "Petlja" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Poslužitelj ne može biti prazan." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "Zvučni Efekt" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Port ne može biti prazan." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "Jedan Metak Uzorak" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Montiranje ne može biti prazna s Icecast poslužiteljem." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "Ostalo" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Uvozna Mapa:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Zadana Dozvola:" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Mape Pod Nadzorom:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "Rad je u javnoj domeni" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Ne valjana Direktorija" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "Sva prava pridržana" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Vrijednost je potrebna i ne može biti prazan" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Creative Commons Imenovanje" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'%value%' nije valjana e-mail adresa u osnovnom obliku local-part@hostname" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Creative Commons Imenovanje Nekomercijalno" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" +msgstr "'%value%' ne odgovara po obliku datuma '%format%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Creative Commons Imenovanje Bez Izvedenih Djela" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" +msgstr "'%value%' je manji od %min% dugačko znakova" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Creative Commons Imenovanje Dijeli Pod Istim Uvjetima" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" +msgstr "'%value%' je više od %max% dugačko znakova" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Creative Commons Imenovanje Nekomercijalno Bez Izvedenih Djela" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" +msgstr "'%value%' nije između '%min%' i '%max%', uključivo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Creative Commons Imenovanje Nekomercijalno Dijeli Pod Istim Uvjetima" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" +msgstr "Lozinke se ne podudaraju" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "Vremenska Zona Sučelja:" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Snimanje sa Line In?" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "Omogućavanje sustava e-pošte (Ponovno postavljanje zaporke)" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Ponovno emitirati?" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Ponovno postavi zaporku 'iz' e-pošte" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Boja Pozadine:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Konfiguriranje Mail poslužitelja" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Boja Teksta:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Zahtijeva Provjeru Autentičnosti" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "E-mail" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Mail Poslužitelj" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Vraćanje lozinke" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "E-mail Adresa" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Otkaži" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "Molimo, provjeri da li je ispravan/na admin korisnik/lozinka na stranici Sustav->Prijenosi." +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Potvrdi Lozinku:" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Neimenovani Prijenos" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Ime:" -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Prijenos je spremljen." +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Prezime:" -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Nevažeći vrijednosti obrasca." +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "E-mail:" -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Molimo unesi svoje korisničko ime i lozinku" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Mobitel:" -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Pogrešno korisničko ime ili lozinka. Molimo pokušaj ponovno." +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "E-mail nije mogao biti poslan. Provjeri svoje postavke poslužitelja pošte i uvjeri se da je ispravno podešen." +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "S obzirom e-mail nije pronađen." +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "Vremenska Zona Sučelja:" -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Reemitiranje emisija %s od %s na %s" +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Ime prijave nije jedinstveno." -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Preuzimanje" +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Hardver Audio Izlaz" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "Korisnik je uspješno dodan!" +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Tip Izlaza" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "Korisnik je uspješno ažuriran!" +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Icecast Vorbis Metapodaci" -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Postavke su uspješno ažurirane!" +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Vidljivi Podaci:" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Stranica nije pronađena" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Autor - Naziv" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Pogreška aplikacije" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Program - Autor - Naziv" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Snimanje:" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Naziv postaje - Naziv programa" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Majstorski Prijenos" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Off Air Metapodaci" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Prijenos Uživo" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Omogući Replay Gain" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Ništa po rasporedu" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Replay Gain Modifikator" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Trenutna Emisija:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" +msgstr "Automatski Prijenos (Upload) Snimljene Emisije" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Trenutna" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" +msgstr "Omogući SoundCloud Prijenos" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "Ti imaš instaliranu najnoviju verziju" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +msgstr "Automatski Obilježeni Fajlovi \"može se preuzeti\" sa SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "Nova verzija je dostupna:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" +msgstr "SoundCloud E-mail" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "Ova verzija uskoro će biti zastario." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" +msgstr "SoundCloud Lozinka" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "Ova verzija više nije podržana." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" +msgstr "SoundCloud Tagovi: (zasebne oznake s razmacima)" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Molimo nadogradi na" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" +msgstr "Zadani Žanr:" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Dodaj u trenutni popis pjesama" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" +msgstr "Zadana Vrsta Pjesme:" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Dodaj u trenutni smart block" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" +msgstr "Izvorni" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Dodavanje 1 Stavke" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "Remix" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Dodavanje %s Stavke" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "Uživo" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "Možeš dodavati samo pjesme kod pametnih blokova." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "Snimanje" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "Možeš samo dodati pjesme, pametne blokova, i prijenose kod popise pjesama." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "Govorni" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "Molimo odaberi mjesto pokazivača na vremenskoj crti." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "Podcast" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Uredi Metapodatke" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "Ogledni" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Dodaj u odabranoj emisiji" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "Radovi su u tijeku" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Odaberi" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "Podrijetlo" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Odaberi ovu stranicu" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "Petlja" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Odznači ovu stranicu" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "Zvučni Efekt" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Odznači sve" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "Jedan Metak Uzorak" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Jesi li siguran da želiš izbrisati odabranu (e) stavku (e)?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "Ostalo" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "Zakazana" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Zadana Dozvola:" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "Playlista / Block" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "Rad je u javnoj domeni" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Prijenos Bita" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "Sva prava pridržana" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Uzorak Stopa" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Creative Commons Imenovanje" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Učitavanje..." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Creative Commons Imenovanje Nekomercijalno" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "Sve" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Creative Commons Imenovanje Bez Izvedenih Djela" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Datoteke" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Creative Commons Imenovanje Dijeli Pod Istim Uvjetima" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Popisi pjesama" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Creative Commons Imenovanje Nekomercijalno Bez Izvedenih Djela" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Smart Block-ovi" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Creative Commons Imenovanje Nekomercijalno Dijeli Pod Istim Uvjetima" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Prijenosi" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Naziv Postaje" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Nepoznati tip:" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "Zadano Trajanje Križno Stišavanje (s):" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Jesi li siguran da želiš obrisati odabranu stavku?" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "unesi vrijeme u sekundama 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Prijenos je u tijeku..." +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "Zadano Odtamnjenje (s):" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Preuzimanje podataka s poslužitelja..." +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "Zadano Zatamnjenje (s):" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "SoundCloud id za ovu datoteku je:" +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Dopusti daljinske Web stranice za pristup \"Raspored\" Info?%s (Omogući ovo " +"da bi front-end widgets rad.)" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "Došlo je do pogreške prilikom prijenosa na SoundCloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Onemogućeno" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Šifra pogreške:" +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Omogućeno" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Poruka o pogrešci:" +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Zadani Jezik Sučelja" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "Mora biti pozitivan broj" +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "Stanična Vremenska Zona" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "Mora biti broj" +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "Prvi Dan u Tjednu" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "Mora biti u obliku: gggg-mm-dd" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Nedjelja" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "Mora biti u obliku: hh:mm:ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Ponedjeljak" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "Trenutno je prijenos datoteke. %sOdlazak na drugom ekranu će otkazati proces slanja. %sJesi li siguran da želiš napustiti stranicu?" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Utorak" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "Otvori Medijskog Graditelja" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Srijeda" + +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Četvrtak" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "molimo stavi u vrijeme '00:00:00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Petak" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "molimo stavi u vrijeme u sekundama '00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Subota" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Tvoj preglednik ne podržava ovu vrstu audio datoteku:" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Datum Početka:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Dinamički blok nije dostupan za pregled" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Datum Završetka:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Ograničiti se na:" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Telefon:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Popis pjesama je spremljena" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Web Stranica:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "Popis pjesama je izmiješan" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Država:" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime je nesiguran o statusu ove datoteke. To se također može dogoditi kada je datoteka na udaljenom disku ili je datoteka u nekoj direktoriji, koja se više nije 'praćena tj. nadzirana'." +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "Grad:" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "Broj Slušalaca %s: %s" +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Opis:" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Podsjeti me za 1 tjedan" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Logo:" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Nikad me više ne podsjeti" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Pošalji povratne informacije" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Da, pomažem Airtime-u" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Promovirati svoju stanicu na Sourcefabric.org" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "Slika mora biti jpg, jpeg, png, ili gif" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "Odabirom ove opcije, slažem se %ssa pravilima o privatnosti%s." -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "Statički pametni blokovi spremaju kriterije i odmah generiraju blok sadržaja. To ti omogućuje da urediš i vidiš ga u knjižnici prije nego što ga dodaš na emisiju." +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "Moraš pristati na pravila o privatnosti." -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "Dinamički pametni blokovi samo kriterije spremaju. Blok sadržaja će se generira nakon što ga dodate na emisiju. Nećeš moći pregledavati i uređivati sadržaj u knjižnici." +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' se ne uklapa u vremenskom formatu 'HH:mm'" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "Željena duljina bloka neće biti postignut jer Airtime ne mogu naći dovoljno jedinstvene pjesme koje odgovaraju tvojim kriterijima. Omogući ovu opciju ako želiš dopustiti da neke pjesme mogu se više puta ponavljati." +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Datum/Vrijeme Početka:" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Smart block je izmiješan" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Datum/Vrijeme Završetka:" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Smart block je generiran i kriterije su spremne" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Trajanje:" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Smart block je spremljen" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Vremenska Zona:" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Obrada..." +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Ponavljanje?" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Odaberi Mapu za Skladištenje" +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Ne može se stvoriti emisije u prošlosti" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Odaberi Mapu za Praćenje" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "Ne možeš mijenjati datum/vrijeme početak emisije, ako je već počela" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Jesi li siguran da želiš promijeniti mapu za pohranu?\nTo će ukloniti datoteke iz tvoje knjižnice!" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "Datum završetka i vrijeme ne može biti u prošlosti" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Upravljanje Medijske Mape" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Ne može trajati < 0m" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Jesi li siguran da želiš ukloniti nadzorsku mapu?" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Ne može trajati 00h 00m" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "Ovaj put nije trenutno dostupan." +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Ne može trajati više od 24h" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "Neke vrste emitiranje zahtijevaju dodatnu konfiguraciju. Detalji oko omogućavanja %sAAC+ Podrške%s ili %sOpus Podrške%s su ovdje dostupni." +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Neimenovan Program" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Priključen je na poslužitelju" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Traži Korisnike:" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "Prijenos je onemogućen" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "Disk-Džokeji:" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Ne može se povezati na poslužitelju" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Potvrdi novu lozinku" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Ako je iza Airtime-a usmjerivač ili vatrozid, možda ćeš morati konfigurirati polje porta prosljeđivanje i ovo informacijsko polje će biti netočan. U tom slučaju morat ćeš ručno ažurirati ovo polje, da bi pokazao točno host/port/mount da se mogu povezati tvoji Disk Džokeji. Dopušteni raspon je između 1024 i 49151." +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "Lozinke koje ste unijeli ne podudaraju se." -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "Za više detalja, pročitaj %sPriručniku za korisnike%s" +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Nabavi novu lozinku" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Provjeri ovu opciju kako bi se omogućilo metapodataka za OGG potoke." +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "Vrsta Korisnika:" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Provjeri ovu kućicu za automatsko isključenje Majstor/Emisija izvora, nakon prestanka rada izvora." +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Gost" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Provjeri ovu kućicu za automatsko prebacivanje na Majstor/Emisija izvora, nakon što je spojen izvor." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "Disk-džokej" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Ako tvoj Icecast poslužitelj očekuje korisničko ime iz 'izvora', ovo polje može ostati prazno." +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Voditelj Programa" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "Ako tvoj 'live streaming' klijent ne pita za korisničko ime, ovo polje trebalo biti 'izvor'." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Administrator" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "Oprezno pri ažuriranju podataka!" +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "ISRC Broj:" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "Ovo je admin korisničko ime i lozinka za Icecast/SHOUTcast da bi dobio slušateljsku statistiku." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Program:" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "Upozorenje: Ne možeš promijeniti sadržaj polja, dok se sadašnja emisija ne završava" +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "Sve Moje Emisije:" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "Nema pronađenih rezultata" +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "Link:" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "To slijedi isti uzorak sigurnosti za emisije: samo dodijeljeni korisnici se mogu povezati na emisiju." +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Tip Ponavljanje:" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Odredi prilagođene autentikacije koje će se uvažiti samo za ovu emisiju." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "tjedno" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "Emisija u ovom slučaju više ne postoji!" +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "svaka 2 tjedna" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "Upozorenje: Emisije ne može ponovno se povezati" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "svaka 3 tjedna" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "Povezivanjem svoje ponavljajuće emisije svaka zakazana medijska stavka u svakoj ponavljajućim emisijama dobit će isti raspored također i u drugim ponavljajućim emisijama" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "svaka 4 tjedna" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "Vremenska zona je postavljena po staničnu zonu prema zadanim. Emisije u kalendaru će se prikazati po tvojim lokalnom vremenu koja je definirana u sučelji vremenske zone u tvojim korisničkim postavcima." +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "mjesečno" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Program" +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Odaberi Dane:" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "Emisija je prazna" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "Ned" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1m" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Pon" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5m" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Uto" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10m" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "Sri" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15m" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Čet" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30m" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Pet" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60m" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "Sub" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Dobivanje podataka s poslužitelja..." +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "Ponavljanje Po:" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "Ova emisija nema zakazanog sadržaja." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "dan u mjesecu" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "Ova emisija nije u potpunosti ispunjena sa sadržajem." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "dan u tjednu" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "Siječanj" +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "Nema Kraja?" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "Veljača" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "Datum završetka mora biti nakon datuma početka" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "Ožujak" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "Molimo, odaberi kojeg dana" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "Travanj" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "Omogućavanje sustava e-pošte (Ponovno postavljanje zaporke)" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "Svibanj" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Ponovno postavi zaporku 'iz' e-pošte" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "Lipanj" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Konfiguriranje Mail poslužitelja" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "Srpanj" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Zahtijeva Provjeru Autentičnosti" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "Kolovoz" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Mail Poslužitelj" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "Rujan" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "E-mail Adresa" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "Listopad" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Odaberi kriterije" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "Studeni" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Brzina u Bitovima (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "Prosinac" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Sij" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Vel" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Cue Out" + +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Kodirano je po" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Ožu" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Zadnja Izmjena" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Tra" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Zadnji Put Odigrano" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Lip" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Mimika" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Srp" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Vlasnik" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Kol" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Replay Gain" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Ruj" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Uzorak Stopa (kHz)" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Lis" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Broj Pjesma" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Stu" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Dodano" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Pro" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Web stranica" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "danas" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Odaberi modifikator" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "dan" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "sadrži" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "tjedan" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "ne sadrži" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "mjesec" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "je" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Emisija dulje od predviđenog vremena će biti odsječen." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "nije" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Otkaži Trenutnog Programa?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "počinje sa" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Zaustavljanje snimanje emisije?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "završava sa" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "Ok" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "je veći od" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Sadržaj Emisije" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "je manji od" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Ukloniš sve sadržaje?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "je u rasponu" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Obrišeš li odabranu(e) stavku(e)?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "sati" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Početak" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "minuti" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "Završetak" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "elementi" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Trajanje" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Postavi smart block tipa:" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Prazna Emisija" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Statički" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Snimanje sa Line In" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Dinamički" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Pregled pjesma" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Dopusti Ponavljanje Pjesama:" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Ne može se zakazivati izvan emisije." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Ograničeno na" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Premještanje 1 Stavka" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Generiranje popisa pjesama i spremanje sadržaja kriterije" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Premještanje %s Stavke" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Generiraj" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "Uređivač za (Od-/Za-)tamnjivanje" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Sadržaj slučajni izbor popis pjesama" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "Cue Uređivač" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "Ograničenje ne može biti prazan ili manji od 0" + +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "Ograničenje ne može biti više od 24 sati" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "Valni oblik značajke su dostupne u sporednu Web Audio API pregledniku" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "Vrijednost mora biti cijeli broj" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Odaberi sve" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "500 je max stavku graničnu vrijednost moguće je podesiti" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Ne odaberi ništa" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "Moraš odabrati Kriteriju i Modifikaciju" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Ukloni prebukirane pjesme" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "'Dužina' trebala biti u '00:00:00' obliku" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Ukloni odabrane zakazane stavke" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"Vrijednost mora biti u obliku vremenske oznake (npr. 0000-00-00 ili " +"0000-00-00 00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Skoči na trenutnu sviranu pjesmu" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "Vrijednost mora biti numerička" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Poništi trenutnu emisiju" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "Vrijednost bi trebala biti manja od 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Otvori knjižnicu za dodavanje ili uklanjanje sadržaja" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "Vrijednost mora biti manja od %s znakova" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Dodaj / Ukloni Sadržaj" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "Vrijednost ne može biti prazna" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "u upotrebi" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Automatsko Isključivanje" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Disk" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Automatsko Uključivanje" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Pogledaj unutra" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Prijelazni Fade Prekidač (s)" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Otvori" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "unesi vrijeme u sekundama 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "Gosti mogu učiniti sljedeće:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Majstorsko Kor. Ime" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "Pregled rasporeda" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Majstorska Lozinka" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "Pregled sadržaj emisije" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "URL veza Majstorskog izvora" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "Disk-džokeji mogu učiniti sljedeće:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "URL veza Programskog izvora" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Upravljanje dodijeljen sadržaj emisije" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Port Majstorskog Izvora" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Uvoz medijske datoteke" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Točka Majstorskog Izvora" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Izradi popise naslova, smart block-ove, i prijenose" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Port Programskog Izvora" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Upravljanje svoje knjižničnog sadržaja" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Točka Programskog Izvora" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "Menadžer programa mogu učiniti sljedeće:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "Ne možeš koristiti isti port kao Majstor DJ priključak." -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "Prikaz i upravljanje sadržaj emisije" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Port %s nije dostupan" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Rasporedne emisije" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" +"Airtime vlasnik autorskih prava;Sourcefabric o.p.s. Sva prava pridržana." +"%sOdržavana i distribuira se pod GNU GPL v.3 od strane %sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "Upravljanje sve sadržaje knjižnica" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Odjava" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Administratori mogu učiniti sljedeće:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "Pokreni" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Upravljanje postavke" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "Zaustavi" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "Upravljanje korisnike" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "Podesi Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "Upravljanje nadziranih datoteke" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "Podesi Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "Pregled stanja sustava" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "Pokazivač" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Pristup za povijest puštenih pjesama" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Odtamnjenje" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "Pogledaj statistiku slušatelje" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Zatamnjenje" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Pokaži/sakrij stupce" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Audio Uređaj" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "Od {from} do {to}" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Molimo unesi svoje korisničko ime i lozinku" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "Pogrešno korisničko ime ili lozinka. Molimo pokušaj ponovno." -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "gggg-mm-dd" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"E-mail nije mogao biti poslan. Provjeri svoje postavke poslužitelja pošte i " +"uvjeri se da je ispravno podešen." -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "S obzirom e-mail nije pronađen." -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Snimanje:" -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Ne" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Majstorski Prijenos" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Po" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Prijenos Uživo" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Ut" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Ništa po rasporedu" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "Sr" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Trenutna Emisija:" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Če" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Trenutna" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Pe" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "Ti imaš instaliranu najnoviju verziju" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Su" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "Nova verzija je dostupna:" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Zatvori" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "Ova verzija uskoro će biti zastario." -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Sat" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "Ova verzija više nije podržana." -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Minuta" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Molimo nadogradi na" -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Gotovo" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Dodaj u trenutni popis pjesama" -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Odaberi datoteke" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Dodaj u trenutni smart block" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Dodaj datoteke i klikni na 'Pokreni Upload' dugme." +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Dodavanje 1 Stavke" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Stanje" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "Dodavanje %s Stavke" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Dodaj Datoteke" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "Možeš dodavati samo pjesme kod pametnih blokova." -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Zaustavi Upload" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "" +"Možeš samo dodati pjesme, pametne blokova, i prijenose kod popise pjesama." -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Pokreni upload" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "Molimo odaberi mjesto pokazivača na vremenskoj crti." -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Dodaj datoteke" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Uredi Metapodatke" -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "Poslana %d/%d datoteka" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Dodaj u odabranoj emisiji" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "N/A" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Odaberi" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Povuci datoteke ovdje." +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Odaberi ovu stranicu" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "Pogreška (datotečni nastavak)." +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Odznači ovu stranicu" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "Pogreška veličine datoteke." +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Odznači sve" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "Pogreška broj datoteke." +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Jesi li siguran da želiš izbrisati odabranu (e) stavku (e)?" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Init pogreška." +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "Zakazana" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "HTTP pogreška." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "Playlista / Block" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Sigurnosna pogreška." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Prijenos Bita" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Generička pogreška." +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Uzorak Stopa" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "IO pogreška." +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "Učitavanje..." -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "Datoteka: %s" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Datoteke" -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d datoteka na čekanju" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Popisi pjesama" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "Datoteka: %f, veličina: %s, maks veličina datoteke: %m" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Smart Block-ovi" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "Prijenosni URL može biti u krivu ili ne postoji" +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Prijenosi" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Pogreška: Datoteka je prevelika:" +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Nepoznati tip:" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Pogreška: Nevažeći datotečni nastavak:" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Jesi li siguran da želiš obrisati odabranu stavku?" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "Postavi Zadano" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Prijenos je u tijeku..." -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "Stvaranje Unosa" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Preuzimanje podataka s poslužitelja..." -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "Uredi Povijest Zapisa" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "SoundCloud id za ovu datoteku je:" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "%s red%s je kopiran u međumemoriju" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "Došlo je do pogreške prilikom prijenosa na SoundCloud." -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%sIspis pogled%sMolimo, koristi preglednika ispis funkciju za ispis ovu tablicu. Kad završiš, pritisni Escape." +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Šifra pogreške:" -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "Nemaš dopuštenje isključiti izvor." +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Poruka o pogrešci:" -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "Nema spojenog izvora na ovaj ulaz." +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "Mora biti pozitivan broj" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "Nemaš dozvolu za promjenu izvora." +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "Mora biti broj" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "Gledaš stariju verziju %s" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "Mora biti u obliku: gggg-mm-dd" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "Ne možeš dodavati pjesme za dinamične blokove." +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "Mora biti u obliku: hh:mm:ss.t" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "%s not found" -msgstr "%s nije pronađen" +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"Trenutno je prijenos datoteke. %sOdlazak na drugom ekranu će otkazati proces " +"slanja. %sJesi li siguran da želiš napustiti stranicu?" -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "Nemaš dopuštenje za brisanje odabranog (e) %s." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "Otvori Medijskog Graditelja" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Nešto je pošlo po krivu." +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "molimo stavi u vrijeme '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "Možeš samo pjesme dodavati za pametnog bloka." +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "molimo stavi u vrijeme u sekundama '00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Neimenovani Popis Pjesama" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "Tvoj preglednik ne podržava ovu vrstu audio datoteku:" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Neimenovani Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Dinamički blok nije dostupan za pregled" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Nepoznati Popis Pjesama" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Ograničiti se na:" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "Ne smiješ pristupiti ovog izvora." +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Popis pjesama je spremljena" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "Ne smiješ pristupiti ovog izvora." +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "Popis pjesama je izmiješan" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." msgstr "" +"Airtime je nesiguran o statusu ove datoteke. To se također može dogoditi " +"kada je datoteka na udaljenom disku ili je datoteka u nekoj direktoriji, " +"koja se više nije 'praćena tj. nadzirana'." -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Neispravan zahtjev." +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "Broj Slušalaca %s: %s" -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Neispravan zahtjev" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "Podsjeti me za 1 tjedan" -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Pregled" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Nikad me više ne podsjeti" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Dodaj na Popis Pjesama" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Da, pomažem Airtime-u" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Dodaj u Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "Slika mora biti jpg, jpeg, png, ili gif" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Izbriši" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." +msgstr "" +"Statički pametni blokovi spremaju kriterije i odmah generiraju blok " +"sadržaja. To ti omogućuje da urediš i vidiš ga u knjižnici prije nego što ga " +"dodaš na emisiju." -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Udvostručavanje" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"Dinamički pametni blokovi samo kriterije spremaju. Blok sadržaja će se " +"generira nakon što ga dodate na emisiju. Nećeš moći pregledavati i uređivati " +"sadržaj u knjižnici." -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Uredi" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"Željena duljina bloka neće biti postignut jer Airtime ne mogu naći dovoljno " +"jedinstvene pjesme koje odgovaraju tvojim kriterijima. Omogući ovu opciju " +"ako želiš dopustiti da neke pjesme mogu se više puta ponavljati." -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Smart block je izmiješan" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Prikaz na Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Smart block je generiran i kriterije su spremne" -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Ponovno-prenijeti na Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Smart block je spremljen" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Prijenos na Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "Obrada..." -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "Nema dostupnih akcija" +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Odaberi Mapu za Skladištenje" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "Nemaš dopuštenje za brisanje odabrane stavke." +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Odaberi Mapu za Praćenje" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Ne može se izbrisati neke zakazane datoteke." +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Jesi li siguran da želiš promijeniti mapu za pohranu?\n" +"To će ukloniti datoteke iz tvoje knjižnice!" -#: airtime_mvc/application/controllers/LibraryController.php:404 -#, php-format -msgid "Copy of %s" -msgstr "Kopiranje od %s" +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Jesi li siguran da želiš ukloniti nadzorsku mapu?" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Odaberi pokazivač" +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "Ovaj put nije trenutno dostupan." -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Ukloni pokazivač" +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#, php-format +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" +"Neke vrste emitiranje zahtijevaju dodatnu konfiguraciju. Detalji oko " +"omogućavanja %sAAC+ Podrške%s ili %sOpus Podrške%s su ovdje dostupni." -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "emisija ne postoji" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Priključen je na poslužitelju" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Postavke su ažurirane." +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "Prijenos je onemogućen" -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Podrška postavka je ažurirana." +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Ne može se povezati na poslužitelju" -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Povratne Informacije" +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"Ako je iza Airtime-a usmjerivač ili vatrozid, možda ćeš morati konfigurirati " +"polje porta prosljeđivanje i ovo informacijsko polje će biti netočan. U tom " +"slučaju morat ćeš ručno ažurirati ovo polje, da bi pokazao točno host/port/" +"mount da se mogu povezati tvoji Disk Džokeji. Dopušteni raspon je između " +"1024 i 49151." -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Prijenos Podešavanje je Ažurirano." +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "Za više detalja, pročitaj %sPriručniku za korisnike%s" -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "put bi trebao biti specificiran" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "Provjeri ovu opciju kako bi se omogućilo metapodataka za OGG potoke." -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Problem sa Liquidsoap..." +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Provjeri ovu kućicu za automatsko isključenje Majstor/Emisija izvora, nakon " +"prestanka rada izvora." -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Trenutno Izvođena" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Provjeri ovu kućicu za automatsko prebacivanje na Majstor/Emisija izvora, " +"nakon što je spojen izvor." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Dodaj Medije" +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"Ako tvoj Icecast poslužitelj očekuje korisničko ime iz 'izvora', ovo polje " +"može ostati prazno." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Knjižnica" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"Ako tvoj 'live streaming' klijent ne pita za korisničko ime, ovo polje " +"trebalo biti 'izvor'." -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Kalendar" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "Oprezno pri ažuriranju podataka!" -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "Sustav" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"Ovo je admin korisničko ime i lozinka za Icecast/SHOUTcast da bi dobio " +"slušateljsku statistiku." -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Postavke" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" +"Upozorenje: Ne možeš promijeniti sadržaj polja, dok se sadašnja emisija ne " +"završava" -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Korisnici" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "Nema pronađenih rezultata" -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Medijska Mapa" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"To slijedi isti uzorak sigurnosti za emisije: samo dodijeljeni korisnici se " +"mogu povezati na emisiju." -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Prijenosi" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "" +"Odredi prilagođene autentikacije koje će se uvažiti samo za ovu emisiju." -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Slušateljska Statistika" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "Emisija u ovom slučaju više ne postoji!" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" -msgstr "Povijest" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "Upozorenje: Emisije ne može ponovno se povezati" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Povijest puštenih pjesama" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" +"Povezivanjem svoje ponavljajuće emisije svaka zakazana medijska stavka u " +"svakoj ponavljajućim emisijama dobit će isti raspored također i u drugim " +"ponavljajućim emisijama" -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "Povijesni Predlošci" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." +msgstr "" +"Vremenska zona je postavljena po staničnu zonu prema zadanim. Emisije u " +"kalendaru će se prikazati po tvojim lokalnom vremenu koja je definirana u " +"sučelji vremenske zone u tvojim korisničkim postavcima." -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Pomoć" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Program" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Početak Korištenja" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "Emisija je prazna" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "Priručnik" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1m" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "O projektu" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Usluga" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Radno Vrijeme" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Memorija" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Dobivanje podataka s poslužitelja..." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Diskovni Prostor" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "Ova emisija nema zakazanog sadržaja." -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "Postavka E-mail / Mail Poslužitelja" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "Ova emisija nije u potpunosti ispunjena sa sadržajem." -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "SoundCloud Postavke" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "Siječanj" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Ponovljeni Dani:" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "Veljača" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Ukloni" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "Ožujak" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Dodaj" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "Travanj" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "Priključni URL:" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "Svibanj" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Postavke Ulaznog Signala" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "Lipanj" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "URL veza Majstorskog izvora:" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "Srpanj" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Nadjačaj" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "Kolovoz" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "Ok" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "Rujan" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "Resetiranje" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "Listopad" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "URL veza Programskog izvora:" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "Studeni" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Obavezno)" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "Prosinac" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Airtime Registar" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Sij" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "Vel" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "Ožu" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(služi samo za provjeru, neće biti objavljena)" +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "Tra" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Napomena: Sve veća od 600x600 će se mijenjati." +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "Lip" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Pokaži mi što šaljem" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "Srp" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Uvjeti i Odredbe" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "Kol" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Resetuj lozinku" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "Ruj" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Odaberi mapu" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "Lis" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Podesi" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "Stu" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Aktualna Uvozna Mapa:" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "Pro" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "danas" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Ukloni nadzoranu direktoriju" +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "dan" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "Ne pratiš nijedne medijske mape." +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "tjedan" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Prijenos" +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "mjesec" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Dodatne Opcije" +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 +msgid "" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "Emisija dulje od predviđenog vremena će biti odsječen." -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "Sljedeće informacije će biti prikazane slušateljima u medijskom plejerima:" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Otkaži Trenutnog Programa?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(Tvoja radijska postaja web stranice)" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Zaustavljanje snimanje emisije?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "URL Prijenosa:" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "Ok" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Filtriraj Povijesti" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Sadržaj Emisije" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Nađi Emisije" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Ukloniš sve sadržaje?" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Po Emisiji:" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Obrišeš li odabranu(e) stavku(e)?" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "%s Postavke" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "Završetak" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Trajanje" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(Kako bi se promovirao svoju stanicu, 'Pošalji povratne informacije' mora biti omogućena)." +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Prazna Emisija" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Sourcefabric Pravila o Privatnosti" +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Snimanje sa Line In" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "Odaberi Emisijsku Stupnju" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Pregled pjesma" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "Nađi" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Ne može se zakazivati izvan emisije." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Odaberi Dane:" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Premještanje 1 Stavka" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Smart Block Opcije" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Premještanje %s Stavke" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "ili" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" +msgstr "Uređivač za (Od-/Za-)tamnjivanje" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "i" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" +msgstr "Cue Uređivač" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr "do" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "Valni oblik značajke su dostupne u sporednu Web Audio API pregledniku" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "datoteke zadovoljavaju kriterije" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Odaberi sve" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "datoteka zadovoljava kriterije" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Ne odaberi ništa" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "Stvaranje Predložaka za Datotečni Sažeci" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Ukloni prebukirane pjesme" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "Stvaranje Popis Predložaka" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Ukloni odabrane zakazane stavke" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "Dodaj više elemenata" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Skoči na trenutnu sviranu pjesmu" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "Dodaj Novo Polje" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Poništi trenutnu emisiju" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "Postavi Zadano Predlošku" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "Otvori knjižnicu za dodavanje ili uklanjanje sadržaja" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "Predlošci Popis Prijave" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "u upotrebi" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "Nema Popis Predložaka" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Disk" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "Novi Popis Predložaka" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Pogledaj unutra" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "Predlošci za Datotečni Sažeci" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Otvori" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "Nema Predložaka za Datotečni Sažeci" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "Gosti mogu učiniti sljedeće:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "Novi Predložak za Datotečni Sažeci" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "Pregled rasporeda" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "Novi" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "Pregled sadržaj emisije" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "Novi Popis Pjesama" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "Disk-džokeji mogu učiniti sljedeće:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "Novi Pametni Blok" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "Upravljanje dodijeljen sadržaj emisije" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "Novi Prijenos" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Uvoz medijske datoteke" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "Pregled / ured opisa" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Izradi popise naslova, smart block-ove, i prijenose" + +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "Upravljanje svoje knjižničnog sadržaja" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "URL Prijenosa:" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "Menadžer programa mogu učiniti sljedeće:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Zadana Dužina:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "Prikaz i upravljanje sadržaj emisije" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "Nema prijenosa" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Rasporedne emisije" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Prijenosne Postavke" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "Upravljanje sve sadržaje knjižnica" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Globalne Postavke" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "Administratori mogu učiniti sljedeće:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "dB" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Upravljanje postavke" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Izlazne Prijenosne Postavke" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "Upravljanje korisnike" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "Uvoz datoteke je u tijeku..." +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "Upravljanje nadziranih datoteke" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Napredne Opcije Pretraživanja" +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "Pregled stanja sustava" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "prethodna" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Pristup za povijest puštenih pjesama" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "pokreni" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "Pogledaj statistiku slušatelje" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "pauza" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Pokaži/sakrij stupce" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "sljedeća" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "Od {from} do {to}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "zaustavi" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "nijemi" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "gggg-mm-dd" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "uključi" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "hh:mm:ss.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "max glasnoća" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Potrebno Ažuriranje" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "Ne" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "Medija je potrebna za reprodukciju, i moraš ažurirati svoj preglednik na noviju verziju, ili ažurirati svoj %sFlash plugin%s." +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Po" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Dužina:" +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Ut" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Uzorak Stopa:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "Sr" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "Isrc Broj:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Če" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "Staža Datoteka:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Pe" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Prijenos" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "Su" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Dinamički Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Sat" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Statički Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Minuta" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Zvučni Zapis" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Gotovo" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Sadržaji Popis Pjesama:" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Odaberi datoteke" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Statički Smart Block Sadržaji:" +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "Dodaj datoteke i klikni na 'Pokreni Upload' dugme." -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Dinamički Smart Block Kriteriji:" +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Dodaj Datoteke" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Ograničeno za" +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Zaustavi Upload" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Statistika Slušalaca" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Pokreni upload" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 -#, php-format -msgid "Welcome to %s!" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Dodaj datoteke" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "" +msgid "Uploaded %d/%d files" +msgstr "Poslana %d/%d datoteka" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Započni dodavanjem datoteke u knjižnicu pomoću 'Dodaj Medije' meni tipkom. Možeš povući i ispustiti datoteke na ovom prozoru." +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "N/A" + +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Povuci datoteke ovdje." + +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "Pogreška (datotečni nastavak)." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Kreiraj jednu emisiju tako da ideš na 'Kalendar' na traci izbornika, a zatim klikom na '+ Emisija' ikonu. One mogu biti bilo jednokratne ili ponavljajuće emisije. Samo administratori i urednici mogu dodati emisije." +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "Pogreška veličine datoteke." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Dodaj medije za emisiju u kalendaru, klikni sa lijevom klikom na njega i izaberi opciju 'Dodaj / Ukloni sadržaj'" +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "Pogreška broj datoteke." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Odaberi svoje medije na lijevom oknu i povuci ih na svoju emisiju u desnom oknu." +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Init pogreška." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "I već je završeno!" +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "HTTP pogreška." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "Za detaljnu pomoć, pročitaj %skorisnički priručnik%s." +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Sigurnosna pogreška." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Podijeli" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Generička pogreška." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Prijenosi:" +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "IO pogreška." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "" +msgid "File: %s" +msgstr "Datoteka: %s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "" +msgid "%d files queued" +msgstr "%d datoteka na čekanju" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "Nova lozinka" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "Datoteka: %f, veličina: %s, maks veličina datoteke: %m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Unesi i potvrdi svoju novu lozinku u polja dolje." +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "Prijenosni URL može biti u krivu ili ne postoji" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Unesi svoju e-mail adresu računa. Primit ćeš link za novu lozinku putem e-maila." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Pogreška: Datoteka je prevelika:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "E-mail je poslan" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "Pogreška: Nevažeći datotečni nastavak:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "E-mail je poslan" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "Stvaranje Unosa" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Povratak na zaslon za prijavu" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "Uredi Povijest Zapisa" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "%s red%s je kopiran u međumemoriju" + +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" +"%sIspis pogled%sMolimo, koristi preglednika ispis funkciju za ispis ovu " +"tablicu. Kad završiš, pritisni Escape." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Prethodna:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Sljedeća:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Prijenosni Izvori" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Majstorski Izvor" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Pregled" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Emisijski Izvor" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Odaberi pokazivač" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Zakazana Predstava" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Ukloni pokazivač" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "PRIJENOS" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "emisija ne postoji" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Slušaj" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Postavke su ažurirane." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Glavno vrijeme" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Podrška postavka je ažurirana." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Vaš račun istječe u" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Prijenos Podešavanje je Ažurirano." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "put bi trebao biti specificiran" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "Moj Račun" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Problem sa Liquidsoap..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Upravljanje Korisnike" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Stranica nije pronađena" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "Novi Korisnik" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Pogreška aplikacije" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "id" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s nije pronađen" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "Ime" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Nešto je pošlo po krivu." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Prezime" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Dodaj na Popis Pjesama" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "Tip Korisnika" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Dodaj u Smart Block" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "Popis Prijava" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Preuzimanje" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "Datotečni Sažetak" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Udvostručavanje" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "Programski Sažetak" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "Soundcloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Zend Framework Zadana Aplikacija" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "Nema dostupnih akcija" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Stranica nije pronađena!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "Nemaš dopuštenje za brisanje odabrane stavke." -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "Izgleda stranica koju si tražio ne postoji!" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "Ne može se izbrisati neke zakazane datoteke." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Proširenje Statičkog Bloka" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Kopiranje od %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Proširenje Dinamičkog Bloka" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Neimenovani Prijenos" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Prazan pametni blok" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Prijenos je spremljen." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Prazan popis pjesama" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Nevažeći vrijednosti obrasca." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "Prazan sadržaj popis pjesama" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "Nemaš dopuštenje isključiti izvor." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "Očisti" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "Nema spojenog izvora na ovaj ulaz." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Slučajni izbor popis pjesama" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "Nemaš dozvolu za promjenu izvora." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Spremi popis pjesama" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "Korisnik je uspješno dodan!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Križno utišavanje popis pjesama" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "Korisnik je uspješno ažuriran!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Odtamnjenje:" +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "Postavke su uspješno ažurirane!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Zatamnjenje:" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Reemitiranje emisija %s od %s na %s" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "Nema otvorenih popis pjesama" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." +msgstr "" +"Molimo, provjeri da li je ispravan/na admin korisnik/lozinka na stranici " +"Sustav->Prijenosi." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "Prazan sadržaj pametnog bloka" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "Ne smiješ pristupiti ovog izvora." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "Ne smiješ pristupiti ovog izvora." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "Nema otvoreni pametni blok" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "Datoteka ne postoji." -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "Emisijski zvučni talasni oblik" +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "Datoteka ne postoji" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Cue In: " +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "Datoteke ne postoje." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Neispravan zahtjev." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Cue Out: " +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Neispravan zahtjev" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Izvorna Dužina:" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "Gledaš stariju verziju %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Dodaj ovu emisiju" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "Ne možeš dodavati pjesme za dinamične blokove." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Ažuriranje emisije" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "Nemaš dopuštenje za brisanje odabranog (e) %s." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "Što" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "Možeš samo pjesme dodavati za pametnog bloka." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "Kada" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Neimenovani Popis Pjesama" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Ulaz Uživnog Prijenosa" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Neimenovani Smart Block" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Snimanje & Reemitiranje" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Nepoznati Popis Pjesama" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Tko" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "Cue in i cue out su nule." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Stil" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "Ne možeš postaviti da će 'cue out' biti veće od duljine datoteke." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Reemitiranje od %s od %s" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "Ne možeš postaviti da će 'cue in' biti veće od 'cue out'." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Odaberi Državu" +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Ne mogu se postaviti da će 'cue out' biti manje od 'cue in'." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3648,43 +4308,26 @@ msgstr "Nevažeći prijenos - Čini se da je ovo preuzimanje datoteka." msgid "Unrecognized stream type: %s" msgstr "Nepoznati prijenosni tip: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s je već nadziran." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s sadržava ugniježđene nadzirane direktorije: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s se nalazi unutar u postojeći nadzirani direktoriji: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s nije valjana direktorija." - -#: airtime_mvc/application/models/MusicDir.php:232 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s je već postavljena kao mapa za pohranu ili je između popisa praćene mape" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Bok %s, \n" +"\n" +"Klikni na ovaj link kako bi poništio lozinku: " -#: airtime_mvc/application/models/MusicDir.php:386 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s je već postavljena kao mapa za pohranu ili je između popisa praćene mape." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Resetiranje Lozinke" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s ne postoji u popisu nadziranih lokacija." +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Odaberi Državu" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3699,6 +4342,8 @@ msgid "The schedule you're viewing is out of date! (instance mismatch)" msgstr "Zastario se pregledan raspored! (primjer neusklađenost)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3727,40 +4372,85 @@ msgstr "Ranije je %s emisija već bila ažurirana!" msgid "" "Content in linked shows must be scheduled before or after any one is " "broadcasted" -msgstr "Sadržaj u povezanim emisijama mora biti zakazan prije ili poslije bilo koje emisije" - -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." msgstr "" +"Sadržaj u povezanim emisijama mora biti zakazan prije ili poslije bilo koje " +"emisije" +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "Odabrana Datoteka ne postoji!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "Cue in i cue out su nule." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s je već nadziran." -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Ne možeš postaviti da će 'cue in' biti veće od 'cue out'." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s sadržava ugniježđene nadzirane direktorije: %s" -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Ne možeš postaviti da će 'cue out' biti veće od duljine datoteke." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s se nalazi unutar u postojeći nadzirani direktoriji: %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Ne mogu se postaviti da će 'cue out' biti manje od 'cue in'." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s nije valjana direktorija." + +#: airtime_mvc/application/models/MusicDir.php:232 +#, php-format +msgid "" +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s je već postavljena kao mapa za pohranu ili je između popisa praćene mape" + +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format +msgid "" +"%s is already set as the current storage dir or in the watched folders list." +msgstr "" +"%s je već postavljena kao mapa za pohranu ili je između popisa praćene mape." + +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s ne postoji u popisu nadziranih lokacija." + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Reemitiranje od %s od %s" + +#: airtime_mvc/application/models/Show.php:180 +msgid "Shows can have a max length of 24 hours." +msgstr "Emisija može imati najveću duljinu od 24 sata." + +#: airtime_mvc/application/models/Show.php:289 +msgid "" +"Cannot schedule overlapping shows.\n" +"Note: Resizing a repeating show affects all of its repeats." +msgstr "" +"Ne može se zakazati preklapajuće emisije.\n" +"Napomena: Promjena veličine ponovljene emisije utječe na sve njene " +"ponavljanje" + +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "Ne možeš promijeniti veličinu jednoj emisiji u prošlosti" + +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "Ne bi bilo slobodno da se emisije preklapaju" #: airtime_mvc/application/models/StoredFile.php:1003 msgid "Failed to create 'organize' directory." @@ -3771,138 +4461,131 @@ msgstr "Nije uspjelo stvaranje 'organiziranje' direktorija." msgid "" "The file was not uploaded, there is %s MB of disk space left and the file " "you are uploading has a size of %s MB." -msgstr "Prijenos datoteke nije uspio jer je slobodan prostor je samo %s MB od željenih datoteke veličine od %s MB." +msgstr "" +"Prijenos datoteke nije uspio jer je slobodan prostor je samo %s MB od " +"željenih datoteke veličine od %s MB." #: airtime_mvc/application/models/StoredFile.php:1026 msgid "" "This file appears to be corrupted and will not be added to media library." -msgstr "Ova datoteka čini se da je oštećena i neće biti dodana u medijskoj knjižnici." +msgstr "" +"Ova datoteka čini se da je oštećena i neće biti dodana u medijskoj knjižnici." #: airtime_mvc/application/models/StoredFile.php:1065 msgid "" "The file was not uploaded, this error can occur if the computer hard drive " "does not have enough disk space or the stor directory does not have correct " "write permissions." -msgstr "Datoteka nije poslana, ova pogreška može se pojaviti ako hard disk računala nema dovoljno prostora na disku ili stor direktorija nema ispravnih ovlasti za zapisivanje." - -#: airtime_mvc/application/models/Show.php:180 -msgid "Shows can have a max length of 24 hours." -msgstr "Emisija može imati najveću duljinu od 24 sata." - -#: airtime_mvc/application/models/Show.php:289 -msgid "" -"Cannot schedule overlapping shows.\n" -"Note: Resizing a repeating show affects all of its repeats." -msgstr "Ne može se zakazati preklapajuće emisije.\nNapomena: Promjena veličine ponovljene emisije utječe na sve njene ponavljanje" +msgstr "" +"Datoteka nije poslana, ova pogreška može se pojaviti ako hard disk računala " +"nema dovoljno prostora na disku ili stor direktorija nema ispravnih ovlasti " +"za zapisivanje." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/layouts/scripts/login.phtml:24 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Bok %s, \n\nKlikni na ovaj link kako bi poništio lozinku: " +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" +msgstr "" -#: airtime_mvc/application/models/Auth.php:36 +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 #, php-format -msgid "%s Password Reset" +msgid "Promote my station on %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "Snimljena datoteka ne postoji" - -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "Metapodaci Snimljenog Fajla" - -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Programski Sadržaj" - -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Ukloni Sve Sadržaje" - -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Prekid Programa" - -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" -msgstr "Uredi u tom slučaju" - -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Uredi Programa" - -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Izbriši u tom slučaju" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Izbriši u tom slučaju i svi prateći" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "Dozvola odbijena" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Ne možeš povući i ispustiti ponavljajuće emisije" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Ne možeš premjestiti događane emisije" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Ne možeš premjestiti emisiju u prošlosti" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Ne možeš premjestiti snimljene emisije ranije od 1 sat vremena prije njenih reemitiranja." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "Emisija je izbrisana jer je snimljena emisija ne postoji!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Moraš pričekati 1 sat za re-emitiranje." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" -msgstr "Pjesma" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Pušteno" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "Godine %s moraju biti u rasponu od 1753 - 9999" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s nije ispravan datum" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s:%s:%s nije ispravan datum" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Molimo, odaberi opciju" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "Nema Zapisa" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/locale/hu_HU/LC_MESSAGES/airtime.po b/airtime_mvc/locale/hu_HU/LC_MESSAGES/airtime.po index 72fa42b509..0e397883a6 100644 --- a/airtime_mvc/locale/hu_HU/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/hu_HU/LC_MESSAGES/airtime.po @@ -1,1149 +1,1440 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: -# Zsolt Magyar , 2014 -# Zsolt Magyar , 2014 +# picizse , 2014 +# picizse , 2014 # Sourcefabric , 2012 -# Zsolt Magyar , 2015 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2015-01-19 13:10+0000\n" -"Last-Translator: Zsolt Magyar \n" +"POT-Creation-Date: 2013-12-13 12:58-0500\n" +"PO-Revision-Date: 2014-04-25 15:57+0000\n" +"Last-Translator: danielhjames \n" "Language-Team: Hungarian (Hungary) (http://www.transifex.com/projects/p/airtime/language/hu_HU/)\n" +"Language: hu_HU\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: hu_HU\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Audió Lejátszó" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Kérjük, válasszon egy lehetőséget" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Kijelentkezés" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "Nincsennek Nyilvántartások" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "Lejátszás" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "Az évnek %s 1753 - 9999 közötti tartományban kell lennie" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "Leállítás" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s érvénytelen dátum" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Felkeverés" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s:%s:%s érvénytelen időpont" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "Felkeverés Beállítása" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Most Játszott" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Lekeverés" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Média Hozzáadása" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "Lekeverés Beállítása" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Médiatár" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "Kurzor" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Naptár" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Felúsztatás" +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +msgid "Creator" +msgstr "Előadó/Szerző" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Leúsztatás" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "Rendszer" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "%1$s szerzői & másolási jog; %2$s Minden jog fenntartva.%3$sFejleszti és forgalmazza %4$s alatt a %5$s" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Beállítások" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Élő adásfolyam" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Felhasználók" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Engedélyezett:" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Média Mappák" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Adatfolyam Típus:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Adásfolyamok" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Bitráta:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Támogatási Visszajelzés" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Kiszolgálói Típus:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Status" +msgstr "Állapot" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Csatornák:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Hallgatói Statisztikák" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Monó" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "Előzmények" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Sztereó" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Lejátszási Előzmények" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Szerver" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "Előzményi Sablonok" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Érvénytelen bevitt karakterek" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Segítség" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Port" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Első Lépések" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Csak számok adhatók meg." +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "Felhasználói Kézikönyv" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Jelszó" +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "Rólunk" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Műfaj" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "Rögzített fájl nem létezik" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "A Rögzített Fájl Metaadatai" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Név" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Megtekintés a SoundCloud-on" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Leírás" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Feltöltés a SoundCloud-ra" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Csatolási Pont" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Újra-feltöltés a SoundCloud-ra" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Felhasználónév" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +msgid "Show Content" +msgstr "Műsor Tartalom" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Admin Felhasználó" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "Add / Remove Content" +msgstr "Elemek Hozzáadása / Eltávolítása" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Admin Jelszó" +#: airtime_mvc/application/services/CalendarService.php:111 +msgid "Remove All Content" +msgstr "Minden Tartalom Eltávolítása" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Információk lekérdezése a kiszolgálóról..." - -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "A szerver nem lehet üres." +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +msgid "Cancel Current Show" +msgstr "Jelenlegi Műsor Megszakítása" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "A port nem lehet üres." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +msgid "Edit This Instance" +msgstr "Szerkesztés Ebben az Esetben" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "A csatolási pont nem lehet üres Icecast szerver esetében." +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +msgid "Edit" +msgstr "Szerkeszt" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" -msgstr "Cím:" +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +msgid "Edit Show" +msgstr "Műsor Szerkesztése" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" -msgstr "Előadó/Szerző:" +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +msgid "Delete" +msgstr "Törlés" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "Album:" +#: airtime_mvc/application/services/CalendarService.php:191 +msgid "Delete This Instance" +msgstr "Törlés Ebben az Esetben" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "Dalszám:" +#: airtime_mvc/application/services/CalendarService.php:196 +msgid "Delete This Instance and All Following" +msgstr "Törlés Ebben és Minden Más Esetben" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" -msgstr "Műfaj:" +#: airtime_mvc/application/services/CalendarService.php:250 +msgid "Permission denied" +msgstr "Engedély megtagadva" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" -msgstr "Év:" +#: airtime_mvc/application/services/CalendarService.php:254 +msgid "Can't drag and drop repeating shows" +msgstr "Nem lehet megismételni a fogd és vidd típusú műsorokat" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" -msgstr "Kiadó:" +#: airtime_mvc/application/services/CalendarService.php:263 +msgid "Can't move a past show" +msgstr "Az elhangzott műsort nem lehet áthelyezni" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" -msgstr "Zeneszerző:" +#: airtime_mvc/application/services/CalendarService.php:298 +msgid "Can't move show into past" +msgstr "A műsort nem lehet a múltba áthelyezni" -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" -msgstr "Vezénylő:" +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +msgid "Cannot schedule overlapping shows" +msgstr "Nem fedhetik egymást a műsorok" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Hangulat:" +#: airtime_mvc/application/services/CalendarService.php:318 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "A rögzített műsort, 1 óránál korábban nem lehet újra közvetíteni." -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" +#: airtime_mvc/application/services/CalendarService.php:328 +msgid "Show was deleted because recorded show does not exist!" +msgstr "A műsor törlésre került, mert a rögzített műsor nem létezik!" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" -msgstr "Szerzői jog:" +#: airtime_mvc/application/services/CalendarService.php:335 +msgid "Must wait 1 hour to rebroadcast." +msgstr "Az adás újbóli közvetítésére 1 órát kell várni." -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "ISRC Szám:" +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +msgid "Title" +msgstr "Cím" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" -msgstr "Honlap:" +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +msgid "Creator" +msgstr "Szerző" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" -msgstr "Nyelv:" +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +msgid "Album" +msgstr "Album" -#: airtime_mvc/application/forms/EditAudioMD.php:135 -#: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 -#: airtime_mvc/application/forms/SupportSettings.php:161 -#: airtime_mvc/application/controllers/LocaleController.php:283 -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 -msgid "Save" -msgstr "Mentés" +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +msgid "Length" +msgstr "Hossz" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Mégse" +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +msgid "Genre" +msgstr "Műfaj" -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Felhasználónév:" +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +msgid "Mood" +msgstr "Hangulat" -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Jelszó:" +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +msgid "Label" +msgstr "Címke" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Jelszó Ellenőrzés:" +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +msgid "Composer" +msgstr "Hangszerkesztő" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Vezetéknév:" +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +msgid "ISRC" +msgstr "ISRC" -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Keresztnév:" +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +msgid "Copyright" +msgstr "Szerzői jog" -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "E-mail:" +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +msgid "Year" +msgstr "Év" -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Mobiltelefon:" +#: airtime_mvc/application/services/HistoryService.php:1119 +msgid "Track" +msgstr "Szám" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +msgid "Conductor" +msgstr "Karmester" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +msgid "Language" +msgstr "Nyelv" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "Felhasználói Típus:" +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +msgid "Start Time" +msgstr "Kezdési Idő" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Vendég" +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +msgid "End Time" +msgstr "Fejezési Idő" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "DJ" +#: airtime_mvc/application/services/HistoryService.php:1167 +msgid "Played" +msgstr "Lejátszva" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Programkezelő" +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "Fájl importálása folyamatban..." -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Admin" +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Speciális Keresési Beállítások" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "A login név nem egyedi." +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Hallgatói Statisztika" -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Háttérszín:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "Új" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Szövegszín:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "Új Lejátszási Lista" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Kezdés Ideje:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "Új Smart Block" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Végzés Ideje:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "Új Adásfolyam" -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Műsor:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "Üres lejátszási lista tartalom" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "Összes Műsorom:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "Törlés" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "napok" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This" +" information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "Segítse az Airtime fejlesztését azáltal, hogy a Sourcefabric tudja, hogy Ön, hogyan használja azt. Információk összegyűjtése céljából, rendszerezve azokat, hogy fokozza a felhasználás élményét.%sKlikkeljen a 'Támogatási Visszajelzés Küldése' mezőbe és győződjön meg arról, hogy a funkciók használatának minősége folyamatosan javul." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "A napot meg kell határoznia" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Véletlenszerű lejátszási lista" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "Az időt meg kell határoznia" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Véletlenszerű" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Az újraközvetítésre legalább 1 órát kell várni" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Lejátszási lista mentése" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Tároló Mappa:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 +#: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Save" +msgstr "Mentés" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Figyelt Mappák:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Lejátszási lista átúsztatása" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Érvénytelen Könyvtár" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "Mester Forrási URL Kapcsolat:" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Felhasználók Keresése:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "A leíás megtekíntése / szerkesztése" -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "DJ-k:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Leírás" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Bejelentkezés" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Felúsztatás:" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Gépelje be a képen látható karaktereket." +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Leúsztatás:" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Állomás Név" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "Műsor Forrási URL Kapcsolat:" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "Alapértelmezett Áttünési Időtartam (mp):" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "Nincs megnyitott lejátszási lista" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "adja meg másodpercben 0{0,0}" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Statikus Block Kibővítése" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "Alapértelmezett Felúsztatás (mp)" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Dinamikus Block Kibővítése" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "Alapértelmezett Leúsztatás (mp)" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Üres smart block" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Távoli Weboldalak Engedélyezése \"Ütemzés\" Info?%s (Engedélyezi vele a front-end alkalmazás-kiegészítő munkáját.)" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Üres lejátszási lista" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Letiltva" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "Mutasd a Hullámalakot" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Engedélyezve" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Felkeverés:" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Alapértelmezett Nyelvi Felület" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(óó:pp:mm.t)" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "Állomási Időzóna:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Lekeverés:" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "A Hét Indul" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Eredeti Hossz:" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Vasárnap" +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(mm.t)" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Hétfő" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "Üres smart block tartalom" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Kedd" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "Nincs megnyitott smart block" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Szerda" - -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Csütörtök" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "%sAirtime%s %s, the open radio software for scheduling and remote station management. %s" +msgstr "%sAirtime%s %s, a nyitott rádiós szoftver, az ütemezett és távoli állomás menedzsment. %s" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Péntek" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "%sSourcefabric%s o.p.s. az Airtime forgalmazója %sGNU GPL v.3%s alatt" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Szombat" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Üdvözöljük az Airtime-nál!" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "Hivatkozás:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "Itt van pár tipp, hogy hogyan is automatizálhatja adásait az Airtime segítségével:" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Ismétlés Típusa:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "hetente" +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button." +" You can drag and drop your files to this window too." +msgstr "Kezdje médiafájlok hozzáadásával a 'Média Hozzáadása' menü gombon. A \"hozd és vidd\" fájlokat ugyanebben az ablakban szerkesztheti." -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "minden második héten" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "Hozzon létre egy műsort a 'Naptár' menüpontban, majd kattintson a '+ Műsor' ikonra. Ez lehet alkalmi vagy megismétlő műsor. Csak az adminisztrátorok és a programkezelők adhatnak hozzá műsort." -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "minden harmadik héten" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "Adjon hozzá médiatartalmakat, hogy műsorokat tudjon ütemezni, a 'Naptár' menüpontban, bal egérgombbal kattintva, és itt válassza ki a 'Tartalom Hozzáadása/Eltávolítása' opciót" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "minden negyedik héten" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "Select your media from the left pane and drag them to your show in the right pane." +msgstr "Válassza ki a média tartalmat a bal oldali panelen, és húzza azt a műsorba, a jobb oldali panelre." -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "havonta" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "És már készen is van!" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Napok Kiválasztása:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "További segítségért, olvassa el a %shasználati útmutatót%s." -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Va" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +msgid "Live stream" +msgstr "Élő adásfolyam" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Hé" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Megosztás" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Ke" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Adásfolyam:" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Sz" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "elnémítás" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Cs" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "elnémítás megszüntetése" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Pé" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +msgid "All" +msgstr "Összes" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Sz" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "Által Ismételt:" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "a hónap napja" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "a hét napja" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "Adásfolyam URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "Nincs Vége?" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Alapértelmezett Hossz:" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "A befejezési idő után kell, hogy legyen kezdési idő is." +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "Nincs adásfolyam" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "Kérjük, válasszon egy ismétlési napot" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "Cím:" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Új jelszó megerősítése" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "Szerző:" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "A megadott jelszavak nem egyeznek meg." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "Album:" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Új jelszó igénylése" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "Sorszám:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "A feltételek megadása" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Hossz:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Album" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Mintavételi Ráta:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Bitráta (Kbps)" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Bitráta:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Hangulat:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Zeneszerző" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "Műfaj:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Karmester" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "Év:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Szerzői jog" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "Kiadó:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Előadó/Szerző" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Kódolva" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "Zeneszerző:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "Vezénylő:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "Szerzői jog:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "Isrc Szám:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "Honlap:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +msgid "Language:" +msgstr "Nyelv:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "Fájl Elérési Útvonal:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Név:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Leírás:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Adásfolyam" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Dinamikus Smart Block" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Statikus Smart Block" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Audió Sáv" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Lejátszási Lista Tartalmak:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Statikus Smart Block Tartalmak:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Dinamikus Smart Block Kritériumok:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Korlátozva" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL:" + +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "Adjon hozzá több elemet" + +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +msgid "No Show" +msgstr "Nincs Műsor" + +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "Találat" + +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "%s Beállítások" + +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Válasszon mappát" + +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Beállítás" + +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Jelenlegi Tároló Mappa:" + +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Hozzáadás" + +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "Rescan watched directory (This is useful if it is network mount and may be out of sync with Airtime)" +msgstr "A vizsgált mappa újraellenőrzése (Ez akkor hasznos, ha a hálózati csatolás nincs szinkronban az Airtime-al)" + +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "A vizsgált mappa eltávolítása" + +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +msgid "You are not watching any media folders." +msgstr "Ön nem figyel minden média mappát." + +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +msgid "(Required)" +msgstr "(Kötelező)" + +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "Help Airtime improve by letting Sourcefabric know how you are using it. This information will be collected regularly in order to enhance your user experience.%sClick the 'Send support feedback' box and we'll make sure the features you use are constantly improving." +msgstr "Segítse az Airtime fejlesztését azáltal, hogy a Sourcefabric tudja, hogy Ön, hogyan használja azt. Információk összegyűjtése céljából, rendszerezve azokat, hogy fokozza a felhasználás élményét.%sKlikk a 'Támogatási Visszajelzés Küldése' mezőbe és győződjön meg arról, hogy a funkciók használatának minősége folyamatosan javul." + +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "Kattintson az alábbi mezőbe, hogy hírdesse a saját állomását %sSourcefabric.org%s." + +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +msgid "(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "(Annak érdekében, hogy hírdetni tudja az állomását, a 'Támogatási Visszajelzés Küldését' engedélyeznie kell.)" + +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +msgid "(for verification purposes only, will not be published)" +msgstr "(csupán ellenőrzés céljából, nem kerül közzétételre)" + +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Megjegyzés: Bármi, ami kisebb nagyobb, mint 600x600, átméretezésre kerül." + +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +msgid "Show me what I am sending " +msgstr "Mutasd meg, hogy mit küldök" + +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +msgid "Sourcefabric Privacy Policy" +msgstr "Sourcefabric Adatvédelem" + +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Műsorok Keresése" + +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Műsor Alapján:" + +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "E-mail / Levelezési Kiszolgáló Beállítások" + +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "SoundCloud Beállítások" + +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Válasszon Napot:" + +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Eltávolítás" + +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Adásfolyam" + +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "További Lehetőségek" + +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "The following info will be displayed to listeners in their media player:" +msgstr "A következő információk megjelennek a hallgatók számára, a saját média lejátszóikban:" + +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(A rádióállomás honlapja)" + +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "Adásfolyam URL:" + +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "Kapcsolati URL:" + +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +msgid "Reset password" +msgstr "A jelszó visszaállítása" + +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Airtime Regisztráció" + +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "Help Airtime improve by letting us know how you are using it. This info will be collected regularly in order to enhance your user experience.%sClick 'Yes, help Airtime' and we'll make sure the features you use are constantly improving." +msgstr "Segítsen az Airtime fejlesztésében, tudassa velünk az ötleteit. Az információk gyűjtése fokozza a felhasználás élményét.%sKlikk 'Igen, segítek az Airtime-nak' fejlesztésében, és igyekszek folyamatosan a funkciók használatának javításán fáradozni. " + +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "Click the box below to advertise your station on %sSourcefabric.org%s. In order to promote your station, 'Send support feedback' must be enabled. This data will be collected in addition to the support feedback." +msgstr "Kattintson az alábbi mezőbe, hogy hírdetni szeretném az állomásomat a %sSourcefabric.org%s-on. Annak érdekében, hogy támogassák az Ön állomását, a 'Támogatás Visszajelzés Küldését' engedélyeznie kell." + +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +msgid "Terms and Conditions" +msgstr "Felhasználási Feltételek" + +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Bemeneti Adásfolyam Beállítások" + +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "Mester Kapcsolati Forrás URL:" + +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Felülírás" + +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "OK" + +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "NULLÁZÁS" + +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "Műsor Kapcsolati Forrás URL:" + +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Smart Block Beállításai" + +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "vagy" + +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "és" + +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr "-hoz/-hez/-höz" + +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "fájl megfelel a kritériumoknak" + +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "a fájl megfelenek a kritériumoknak" + +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Ismétlések Napjai:" + +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Előzmények Szűrése" + +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "Close" +msgstr "Bezárás" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Adja hozzá ezt a műsort" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Címke" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "A műsor frissítése" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Nyelv" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "Mi" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Utoljára Módosítva" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "Mikor" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Utoljára Játszott" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Élő Adásfolyam Bemenet" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Hossz" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Rögzítés & Újrasugárzás" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Mimika" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Ki" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Hangulat" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Stílus" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Tulajdonos" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Start" +msgstr "Kezdése" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Replay Gain" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Adásfolyam/Patak Beállítások" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Mintavételi Ráta (kHz)" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +msgid "Global Settings" +msgstr "Általános Beállítások" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Cím" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +msgid "dB" +msgstr "dB" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Dalsorszám" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "Naplózási Sablon Létrehozása" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Feltöltve" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +msgid "Output Stream Settings" +msgstr "Kimenő Adásfolyam Beállítások" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Honlap" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "Manage Media Folders" +msgstr "Média Mappák Kezelése" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Év" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Zend Keretrendszeres Alapértelmezett Alkalmazás" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Módosítás választása" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Az oldal nem található!" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "tartalmaz" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "Úgy néz ki, az oldal, amit keresett nem létezik!" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "nem tartalmaz" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "Naplózási Sablonok" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "az" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "Nincsenek Naplózási Sablonok" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "nem az" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Set Default" +msgstr "Alapértelmezett" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "vele kezdődik" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "Új Naplózási Sablon" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "vele végződik" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "Összegzési Sablon Fájlok" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "több, mint" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "Nincsenek Összegzési Sablon Fájlok" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "kevesebb, mint" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "Új Összegzési Sablon Fájl" + +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "Összegzési Sablon Fájl Létrehozása" + +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "Bejelentkezési Adatlap Sablon Létrehozása" + +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Név" + +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "Adjon hozzá több elemet" + +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "Új Mező Hozzáadása" + +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "Alapértelmezett Sablon" + +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "Új jelszó" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "Előadó/Szerző:" + +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "Kérjük, adja meg és erősítse meg az új jelszavát az alábbi mezőkben." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "közötti tartományban" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +msgid "Login" +msgstr "Bejelentkezés" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "órák" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "Welcome to the online Airtime demo! You can log in using the username 'admin' and the password 'admin'." +msgstr "Üdvözöljük az online Airtime demó változatában! Jelentkezzen be 'admin' felhasználónévvel és 'admin' jelszóval." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "percek" +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "Please enter your account e-mail address. You will receive a link to create a new password via e-mail." +msgstr "Kérjük, írja be a fiókja e-mail címét. Kap majd egy linket, új jelszó létrehozásához, e-mailen keresztül." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "elemek" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "E-mail elküldve" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Okos tábla típusa:" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "Egy e-mailt elküldtünk" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Statikus" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Vissza a belépéshez" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Dinamikus" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "Belépési Adatlap" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "A Dalszámok Ismétlődhetnek:" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "Fájl Összegzés" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Korlátozva" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "Műsor Összegzés" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Lejátszási lista tartalom létrehozása és kritériumok mentése" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "előző" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Létrehozás" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "lejátszás" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Véletlenszerű lejátszási lista tartalom" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "szünet" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Véletlenszerű" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "következő" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "A határérték nem lehet üres vagy kisebb, mint 0" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "leállítás" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "A határérték nem lehet hosszabb, mint 24 óra" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "max hangerő" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "Az érték csak egész szám lehet" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Frissítés Szükséges" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "Maximum 500 elem állítható be" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 +#, php-format +msgid "To play the media you will need to either update your browser to a recent version or update your %sFlash plugin%s." +msgstr "A lejátszáshoz média szükséges, és frissítenie kell a böngészőjét egy újabb verzióra, vagy frissítse a %sFlash bővítményt%s." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "Ki kell választania a Kritériumot és a Módosítót" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Szolgáltatás" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "'Hosszúság' '00:00:00' formában lehet" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Üzemidő" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "Az értéknek az alábbi időbélyeg formátumban kell lennie (pl. 0000-00-00 vagy 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "Az értéknek numerikusnak kell lennie" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Memória" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "Az érték lehet kevesebb, mint 2147483648" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Airtime Verzió" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "Az értéknek rövidebb kell lennie, mint %s karakter" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Lemezterület" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "Az érték nem lehet üres" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "A Felhasználók Kezelése" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Auto Kikapcs." +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "Új Felhasználó" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Auto Bekapcs." +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "id" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Úsztatási Átmenet Kapcsoló" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Felhasználónév" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "adja meg az időt másodpercekben 00{.000000}" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "Vezetéknév" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Mester Felhasználónév" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Keresztnév" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Mester Jelszó" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "Felhasználói Típus" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "Mester Csatlakozás Forrása URL" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "Napló" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "Műsor Csatlakozás Forrása URL" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "Fájl Összegző" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Mester Forrás Port" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "Műsor Összegző" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Mester Forrási Csatolási Pont" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Műsor Forrás Port" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Előző:" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Műsor Forrási Csatolási Pont" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Következő:" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "Nem használhatja ugyanazt a portot, mint a Master DJ." +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Az Adásfolyam Forrásai" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "A Port %s jelenleg nem elérhető" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Mester Forrás" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Telefon:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Műsor Forrás" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Az Állomás Honlapja:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Ütemezett Lejátszás" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Ország:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "ADÁSBAN" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "Város:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Hallgat" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Állomás Leírás: (lehetőség szerint angolul)" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Állomás idő" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Állomás Logó:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Az Ön próba ideje lejár" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Támogatási Visszajelzés Küldése" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "napok" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" -msgstr "Az állomásom közzététele a %s-on" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Vásárolja meg az Ön Airtime másolatát" -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." -msgstr "A mező bejelölésével, elfogadom a %s %sadatvédelmi irányelveit%s." +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "Saját Fiókom" -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "El kell fogadnia az adatvédelmi irányelveket." +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +msgid "Username:" +msgstr "Felhasználónév:" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Adjon meg egy értéket, nem lehet üres" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +msgid "Password:" +msgstr "Jelszó:" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "Kezdési Idő" +#: airtime_mvc/application/forms/Login.php:83 +msgid "Type the characters you see in the picture below." +msgstr "Gépelje be a képen látható karaktereket." -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "Fejezési Idő" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Érvénytelen bevitt karakterek" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "Nincs Műsor" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "A napot meg kell határoznia" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Felvétel a vonalbemenetről?" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "Az időt meg kell határoznia" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Újraközvetítés?" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "Az újraközvetítésre legalább 1 órát kell várni" #: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "%s Hitelesítés Használata:" +msgid "Use Airtime Authentication:" +msgstr "Airtime Hitelesítés Használata:" #: airtime_mvc/application/forms/AddShowLiveStream.php:16 msgid "Use Custom Authentication:" @@ -1165,57 +1456,103 @@ msgstr "A felhasználónév nem lehet üres." msgid "Password field cannot be empty." msgstr "A jelszó nem lehet üres." -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "E-mail" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Engedélyezett:" -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Jelszó visszaállítás" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Adatfolyam Típus:" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Hardver Hangkimenet" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Kiszolgálói Típus:" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Kimenet Típusa" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Csatornák:" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Icecast Vorbis Metaadatok" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Monó" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Adás Címke:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Sztereó" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Előadó - Cím" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Szerver" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Műsor - Előadó - Cím" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Port" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Állomásnév - Műsornév" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Csak számok adhatók meg." -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Adáson Kívüli - Metaadat" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Jelszó" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Replay Gain Engedélyezése" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Replay Gain Módosító" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Csatolási Pont" + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Admin Felhasználó" + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Admin Jelszó" + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +msgid "Getting information from the server..." +msgstr "Információk lekérdezése a kiszolgálóról..." + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "A szerver nem lehet üres." + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "A port nem lehet üres." + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "A csatolási pont nem lehet üres Icecast szerver esetében." + +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Tároló Mappa:" + +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Vizsgált Mappák:" + +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Érvénytelen Könyvtár" + +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Adjon meg egy értéket, nem lehet üres" #: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" +msgid "'%value%' is no valid email address in the basic format local-part@hostname" msgstr "'%value%' érvénytelen formátum (név@hosztnév)" #: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 @@ -1238,84 +1575,123 @@ msgstr "'%value%' nem szerepel '%min%' és '%max%', értékek között" msgid "Passwords do not match" msgstr "A jelszavak nem egyeznek meg" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' az időformátum nem illeszkedik 'ÓÓ:pp'" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Felvétel a vonalbemenetről?" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Dátum/Idő Kezdés:" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Újraközvetítés?" + +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Háttérszín:" + +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Szövegszín:" + +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "E-mail" + +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Jelszó visszaállítás" + +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +msgid "Cancel" +msgstr "Mégse" + +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +msgid "Verify Password:" +msgstr "Jelszó Ellenőrzés:" + +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +msgid "Firstname:" +msgstr "Vezetéknév:" + +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +msgid "Lastname:" +msgstr "Keresztnév:" + +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +msgid "Email:" +msgstr "E-mail:" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Dátum/Idő Végzés:" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +msgid "Mobile Phone:" +msgstr "Mobiltelefon:" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Időtartam:" +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Időzóna:" +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +msgid "Jabber:" +msgstr "Jabber:" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Ismétlések?" +#: airtime_mvc/application/forms/EditUser.php:121 +msgid "Interface Timezone:" +msgstr "Felületi Időzóna:" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Műsort nem lehet a múltban létrehozni" +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +msgid "Login name is not unique." +msgstr "A login név nem egyedi." -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Nem lehet módosítani a műsor kezdési időpontját, ha a műsor már elindult" +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Hardver Hangkimenet" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "A befejezési dátum/idő nem lehet a múltban" +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Kimenet Típusa" -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Nem lehet <0p időtartam" +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Icecast Vorbis Metaadatok" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Nem lehet 00ó 00p időtartam" +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Adás Címke:" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Nem tarthat tovább, mint 24h" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Előadó - Cím" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Nem fedhetik egymást a műsorok" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Műsor - Előadó - Cím" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Név:" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Állomásnév - Műsornév" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Névtelen Műsor" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Adáson Kívüli - Metaadat" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL:" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Replay Gain Engedélyezése" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Leírás:" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Replay Gain Módosító" #: airtime_mvc/application/forms/SoundcloudPreferences.php:16 msgid "Automatically Upload Recorded Shows" @@ -1355,7 +1731,7 @@ msgstr "Eredeti" #: airtime_mvc/application/forms/SoundcloudPreferences.php:114 msgid "Remix" -msgstr "Remix" +msgstr "Kevert" #: airtime_mvc/application/forms/SoundcloudPreferences.php:115 msgid "Live" @@ -1371,7 +1747,7 @@ msgstr "Beszélt" #: airtime_mvc/application/forms/SoundcloudPreferences.php:118 msgid "Podcast" -msgstr "Podcast" +msgstr "Híresség" #: airtime_mvc/application/forms/SoundcloudPreferences.php:119 msgid "Demo" @@ -1415,2196 +1791,1930 @@ msgstr "Minden jog fenntartva" #: airtime_mvc/application/forms/SoundcloudPreferences.php:139 msgid "Creative Commons Attribution" -msgstr "Creative Commons Tulajdonjog" +msgstr "Creative Commons Attribution" #: airtime_mvc/application/forms/SoundcloudPreferences.php:140 msgid "Creative Commons Attribution Noncommercial" -msgstr "Creative Commons Nem Kereskedelmi Tulajdonjog" +msgstr "Creative Commons Attribution Noncommercial" #: airtime_mvc/application/forms/SoundcloudPreferences.php:141 msgid "Creative Commons Attribution No Derivative Works" -msgstr "Creative Commons Nem Feldolgozható Tulajdonjog" +msgstr "Creative Commons Attribution No Derivative Works" #: airtime_mvc/application/forms/SoundcloudPreferences.php:142 msgid "Creative Commons Attribution Share Alike" -msgstr "Creative Commons Eredményeket Megosztó Tulajdonjog" +msgstr "Creative Commons Attribution Share Alike" #: airtime_mvc/application/forms/SoundcloudPreferences.php:143 msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Creative Commons Nem Kereskedelmi Nem Feldolgozható Tulajdonjog" +msgstr "Creative Commons Attribution Noncommercial Non Derivate Works" #: airtime_mvc/application/forms/SoundcloudPreferences.php:144 msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Creative Commons Nem Kereskedelmi Megosztó Tulajdonjog" - -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "Felületi Időzóna:" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "E-mail Rendszer Engedélyezése (Jelszó Visszaállítás)" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Jelszó Visszaállítási E-mail" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Levelezési Kiszolgáló Beállítása" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Hitelesítést Igényel" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Levelezési Kiszolgáló" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "E-mail Cím" - -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "Kérjük, győződjön meg arról, hogy az admin felhasználónév/jelszó helyes-e a Rendszer-> Adásfolyamok oldalon." - -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Névtelen Adásfolyam" - -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Adásfolyam mentve." - -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Érvénytelen érték forma." - -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Kérjük, adja meg felhasználónevét és jelszavát" - -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Hibás felhasználónév vagy jelszó. Kérjük, próbálja meg újra." - -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "Az e-mailt nem lehetett elküldeni. Ellenőrizze a levelező kiszolgáló beállításait." - -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "Tekintve, hogy e-mail nem található." - -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "A műsor újraközvetítése %s -tól/-től %s a %s" - -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Letöltés" - -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "Felhasználó sikeresen hozzáadva!" - -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "Felhasználó sikeresen módosítva!" - -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Beállítások sikeresen módosítva!" - -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Az oldal nem található" - -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Alkalmazás hiba" - -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Felvétel:" - -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Mester Adás" - -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Élő Adás" - -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Nincs semmi ütemezve" - -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Jelenlegi Műsor:" - -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Jelenleg" - -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "Ön a legújabb verziót futtatja" - -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "Új verzió érhető el:" - -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "Ez a verzió hamarosan elavul." - -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "Ez a verzió már nem támogatott." - -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Kérjük, frissítsen" - -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Hozzáadás a jelenlegi lejátszási listához" - -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Hozzáadás a jelenlegi okos táblához" - -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "1 Elem Hozzáadása" - -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "%s Elem Hozzáadása" - -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "Csak dalszámokat adhat hozzá az okos táblákhoz." - -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "Csak dalszámokat, okos táblákat és adásfolyamokat adhatunk a lejátszási listákhoz." - -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "Kérjük, válasszon kurzor pozíciót az idővonalon." - -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Metaadatok Szerkesztése" - -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Adja hozzá a kiválasztott műsort" +msgstr "Creative Commons Attribution Noncommercial Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Kijelölés" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Állomás Név" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Jelölje ki ezt az oldalt" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "Alapértelmezett Áttünési Időtartam (mp):" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Az oldal kijelölésének megszüntetése" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "adja meg másodpercben 0{0,0}" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Minden kijelölés törlése" +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "Alapértelmezett Felúsztatás (mp)" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Biztos benne, hogy törli a kijelölt eleme(ke)t?" +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "Alapértelmezett Leúsztatás (mp)" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "Ütemezett" +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make front-end widgets work.)" +msgstr "Távoli Weboldalak Engedélyezése \"Ütemzés\" Info?%s (Engedélyezi vele a front-end kütyü munkát.)" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "Lejátszási lista / Tábla" +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Letiltva" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Bitráta" +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Engedélyezve" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Mintavétel" +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Alapértelmezett Nyelvi Felület" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Betöltés..." +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "Állomási Időzóna:" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "Összes" +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "A Hét Indul" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Fájlok" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Sunday" +msgstr "Vasárnap" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Lejátszási listák" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Monday" +msgstr "Hétfő" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Okos Táblák" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Tuesday" +msgstr "Kedd" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Adásfolyamok" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Wednesday" +msgstr "Szerda" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Ismeretlen típus:" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Thursday" +msgstr "Csütörtök" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Biztos benne, hogy törli a kijelölt elemet?" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Friday" +msgstr "Péntek" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Feltöltés folyamatban..." +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Saturday" +msgstr "Szombat" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Adatok lekérdezése a kiszolgálóról..." +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Kezdés Ideje:" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "A soundcloud azonosító erre a fájlra:" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Végzés Ideje:" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "A soundcloud-ra feltöltés közben hiba jelentkezett." +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Telefon:" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Hibakód:" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Az Állomás Honlapja:" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Hibaüzenet:" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Ország:" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "A bemenetnek pozitív számnak kell lennie" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "Város:" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "A bemenetnek számnak kell lennie" +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Állomás Leírás:" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "A bemenet formája lehet: éééé-hh-nn" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Állomás Logó:" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "A bemenet formája lehet: óó:pp:mm.t" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Send support feedback" +msgstr "Támogatási Visszajelzés Küldése" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "Ön jelenleg fájlokat tölt fel. %sHa másik ablakot nyit meg, akkor a feltöltési folyamat megszakad. %sBiztos benne, hogy elhagyja az oldalt?" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Az állomásom közzététele a Sourcefabric.org-on" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "Média Építő Megnyitása" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "A mező bejelölésével, elfogadom a Sourcefabric %sadatvédelmi irányelveit%s." -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "kérjük, tegye időbe '00:00:00 (.0)'" +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +msgid "You have to agree to privacy policy." +msgstr "El kell fogadnia az adatvédelmi irányelveket." -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "kérjük, tegye másodpercekbe '00 (.0)'" +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' az időformátum nem illeszkedik 'ÓÓ:pp'" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "A böngészője nem támogatja az ilyen típusú fájlok lejátszását:" +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Dátum/Idő Kezdés:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "A dinamikus tábla nem érhető el előnézetben" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Dátum/Idő Végzés:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Korlátozva:" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Időtartam:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Lejátszási lista mentve" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Időzóna:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "Lejátszási lista megkeverve" +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Ismétlések?" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Az Airtime bizonytalan a fájl állapotával kapcsolatban. Lehetséges, hogy a tárhely már nem elérhető, vagy a 'figyelt' mappa útvonala megváltozott." +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Műsort nem lehet a múltban létrehozni" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "Hallgatók Száma %s: %s" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "Nem lehet módosítani a műsor kezdési időpontját, ha a műsor már elindult" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Emlékeztessen 1 hét múlva" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "A befejezési dátum/idő nem lehet a múltban" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Soha ne emlékeztessen" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Nem lehet <0p időtartam" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Igen, segítek az Airtime-nak" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Nem lehet 00ó 00p időtartam" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "A képek lehetnek: jpg, jpeg, png, vagy gif" +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Nem tarthat tovább, mint 24h" -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "A statikus okos tábla elmenti a kritériumokat és azonnal létre is hozza a tábla tartalmát is. Ez lehetővé teszi, hogy módosítsuk és lássuk a könyvtár tartalmát még a műsor közvetítése előtt." +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Névtelen Műsor" -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "A dinamikus okos tábla csak elmenti a kritériumokat. A táblát szerkesztés után lehet hozzáadni a műsorhoz. Később a tartalmát sem megtekinteni, sem módosítani nem lehet." +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Felhasználók Keresése:" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "A kívánt táblahosszúság nem elérhető, mert az Airtime nem talál elég egyedi dalszámot, ami megfelelne a kritériumoknak. Engedélyezze ezt az opciót, ha azt szeretné, hogy egyes dalszámok ismétlődjenek." +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "DJ-k:" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Okos tábla megkeverve" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Új jelszó megerősítése" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Okos tábla létrehozva és kritériumok mentve" +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "A megadott jelszavak nem egyeznek meg." -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Okos tábla elmentve" +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Új jelszó igénylése" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Feldolgozás..." +#: airtime_mvc/application/forms/AddUser.php:91 +msgid "User Type:" +msgstr "Felhasználói Típus:" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Válasszon Tároló Mappát" +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "Guest" +msgstr "Vendég" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Válasszon Figyelt Mappát" +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "DJ" +msgstr "DJ" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Biztos benne, hogy meg akarja változtatni a tároló mappát?\nEzzel eltávolítja a fájlokat az Airtime médiatárából!" +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Program Manager" +msgstr "Programkezelő" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Média Mappák Kezelése" +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Admin" +msgstr "Admin" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Biztos benne, hogy el akarja távolítani a figyelt mappát?" +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "ISRC Szám:" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "Ez az útvonal jelenleg nem elérhető." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Műsor:" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "Egyes patak típusokhoz extra beállítások szükségesek. További részletek: a %sAAC+ Támogatással%s vagy a %sOpus Támogatással%s kapcsolatban." +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "Összes Műsorom:" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Csatlakozva az adás kiszolgálóhoz" +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "Hivatkozás:" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "Az adásfolyam ki van kapcsolva" +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Ismétlés Típusa:" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Nem lehet kapcsolódni az adásfolyam kiszolgálójához" +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "hetente" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Ha az Airtime mögött van egy router vagy egy tűzfal, akkor be kell állítani a továbbító porot, mert ezen a területen az információ helytelen lesz. Ebben az esetben manuálisan kell frissíteni ezen a területen, hogy mutassa a hosztot / portot / csatolási pontot, amelyre a DJ-k csatlakozhatnak. A megengedett tartomány 1024 és 49151 között van." +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "minden második héten" -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "A további részletekért, kérjük, olvassa el az %sAirtime Kézikönyvét%s" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "minden harmadik héten" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Jelölje be és ellenőrizze ezt az opciót: metaadatok engedélyezése OGG-os adásfolyamra (adatfolyam metaadatok: dalcím, előadó, műsornév, amely megjelenik egy audió lejátszóban). A VLC és mplayer lejátszóknál súlyos hibák előfordulhatnak, OGG/Vorbis adatfolyam játszásakor, amelynél a metaadatok küldése engedélyezett: ilyenkor akadozik az adatfolyam. Ha az OGG-os adatfolyam és a hallgatói nem igényelnek támogatást az ilyen jellegű audió lejátszókhoz, akkor nyugodtan engedélyezze ezt az opciót." - -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Jelölje be ezt a négyzetet, hogy automatikusan kikapcsol a Mester/Műsor a forrás megszakítása után." +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "minden negyedik héten" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Jelölje be ezt a négyzetet, hogy automatikusan bekapcsol a Mester/Műsor a forrás csatlakozását követően." +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "havonta" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Lehet, hogy az Ön Icecast kiszolgálója nem igényli a 'forrás' felhasználónevét, ez a mező üresen maradhat." +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Napok Kiválasztása:" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "Ha az Ön élő adásfolyam kliense nem igényel felhasználónevet, akkor meg kell adnia a 'forrást'." +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Sun" +msgstr "Va" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "Ha megváltoztatja a felhasználónév vagy a jelszó értékeit, az engedélyezett adatfolyam és a lejátszási motor újraindul, és a hallgatók 5-10 másodpercig csendet fognak hallani. Módosítása az alábbi mezőket, ez NEM okoz újraindítást: Adásfolyam Címke (Általános Beállítások), és a Úsztatási Átmenet Kapcsoló, Mester Felhasználónév, Mester Jelszó (Bejövő Adatfolyam Beállítások). Ha az Airtime éppen rögzít, és ha a változás miatt újra kell indítani a lejátszási motort, akkor a vételezés megszakad." +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Mon" +msgstr "Hé" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "Ez az admin felhasználónév és jelszó az Icecast/SHOUTcast hallgató statisztikához szükségesek." +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Tue" +msgstr "Ke" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "Figyelmeztetés: Nem lehet megváltoztatni a mező tartalmát, míg a jelenlegi műsor tart" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Wed" +msgstr "Sz" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "Nem volt találat" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Thu" +msgstr "Cs" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "Ezt követi ugyanolyan biztonsági műsor-minta: csak a hozzárendelt felhasználók csatlakozhatnak a műsorhoz." +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +msgid "Fri" +msgstr "Pé" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Adjon meg egy egyéni hitelesítést, amely csak ennél a műsornál működik." +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Sat" +msgstr "Sz" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "A műsor ez esetben nem létezik többé!" +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "Által Ismételt:" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "Figyelem: a Műsorokat nem lehet újra-linkelni" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "a hónap napja" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "Az ismétlődő műsorok összekötésével, minden ütemezett médiai elem, az összes ismétlődő műsorban, ugyanazt a sorrendet kapja, mint a többi ismétlődő műsorban" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "a hét napja" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "Az időzóna az Állomási Időzóna szerint van alapértelmezetten beállítva. A naptárban megjelenő helyi időt a Felületi Időzóna menüpontban módosíthatja, a felhasználói beállításoknál." +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "Nincs Vége?" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Műsor" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "A befejezési idő után kell, hogy legyen kezdési idő is." -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "A műsor üres" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "Kérjük, válasszon egy ismétlési napot" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1p" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "E-mail Rendszer Engedélyezése (Jelszó Visszaállítás)" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5p" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Jelszó Visszaállítási E-mail" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10p" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Levelezési Kiszolgáló Beállítása" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15p" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Hitelesítést Igényel" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30p" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Levelezési Kiszolgáló" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60p" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "E-mail Cím" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Az adatok lekérdezése a szolgálóról..." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "A feltételek megadása" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "Ez a műsor nem tartalmaz ütemezett tartalmat." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Bitráta (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "Ez a műsor nincs teljesen kitöltve tartalommal." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "Január" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +msgid "Cue In" +msgstr "Felkeverés" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "Február" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +msgid "Cue Out" +msgstr "Lekeverés" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "Március" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +msgid "Encoded By" +msgstr "Kódolva" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "Április" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +msgid "Last Modified" +msgstr "Utoljára Módosítva" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "Május" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +msgid "Last Played" +msgstr "Utoljára Játszott" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "Június" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +msgid "Mime" +msgstr "Mime" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "Július" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +msgid "Owner" +msgstr "Tulajdonos" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "Augusztus" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +msgid "Replay Gain" +msgstr "Replay Gain" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "Szeptember" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Mintavételi Ráta (kHz)" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "Október" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +msgid "Track Number" +msgstr "Műsorszám Sorszáma" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "November" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +msgid "Uploaded" +msgstr "Feltöltve" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "December" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +msgid "Website" +msgstr "Honlap" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Jan" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +msgid "Select modifier" +msgstr "Módosítás választása" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Feb" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +msgid "contains" +msgstr "tartalmaz" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Már" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +msgid "does not contain" +msgstr "nem tartalmaz" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Ápr" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +msgid "is" +msgstr "az" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Jún" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +msgid "is not" +msgstr "nem az" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Júl" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +msgid "starts with" +msgstr "vele kezdődik" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Aug" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +msgid "ends with" +msgstr "vele végződik" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Sze" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +msgid "is greater than" +msgstr "több, mint" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Okt" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +msgid "is less than" +msgstr "kevesebb, mint" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Nov" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +msgid "is in the range" +msgstr "közötti tartományban" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Dec" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "órák" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "ma" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "percek" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "nap" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "elemek" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "hét" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Smart Block típusa:" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "hónap" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Statikus" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Ha egy műsor hosszabb az ütemezett időnél, meg lesz vágva és követi azt a következő műsor." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Dinamikus" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "A Jelenlegi Műsor Megszakítása?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "A Számok Ismétlődhetnek:" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "A jelenlegi műsor rögzítésének félbeszakítása?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Korlátozva" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "Ok" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Lejátszási lista tartalom létrehozása és kritériumok mentése" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "A Műsor Tartalmai" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Létrehozás" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Az összes tartalom eltávolítása?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Véletlenszerű lejátszási lista tartalom" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Törli a kiválasztott elem(ek)et?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "A határérték nem lehet üres vagy kisebb, mint 0" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Kezdése" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "A határérték nem lehet hosszabb, mint 24 óra" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "Vége" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "Az érték csak egész szám lehet" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Időtartam" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "Maximum 500 elem állítható be" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Üres Műsor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "Ki kell választania a Kritériumot és a Módosítót" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Rögzítés a Hangbemenetről" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "'Hosszúság' '00:00:00' formában lehet" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Belehallgatás a számba" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 00:00:00)" +msgstr "Az értéknek az alábbi időbélyeg formátumban kell lennie (pl. 0000-00-00 vagy 0000-00-00 00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Nem lehet ütemezni a műsoron kívül." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "Az értéknek numerikusnak kell lennie" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "1 Elem Áthelyezése" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "Az érték lehet kevesebb, mint 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 #, php-format -msgid "Moving %s Items" -msgstr "%s Elemek Áthelyezése" - -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "Úsztatási Szerkesztő" +msgid "The value should be less than %s characters" +msgstr "Az értéknek rövidebb kell lennie, mint %s karakter" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "Keverési Szerkesztő" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "Az érték nem lehet üres" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "Hullámalak funkciók állnak rendelkezésre a böngészőben, támogatja a Web Audio API-t" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Auto Kikapcs." -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Az összes kijelölése" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Auto Bekapcs." -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Egyet sem jelöl ki" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Úsztatási Átmenet Kapcsoló" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "A túlzsúfolt dalszámok eltávolítása" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "adja meg az időt másodpercekben 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "A kijelölt ütemezett elemek eltávolítása" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Mester Felhasználónév" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Ugrás a jelenleg hallható számra" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Mester Jelszó" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "A jelenlegi műsor megszakítása" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "Mester Csatlakozás Forrása URL" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "A médiatár megnyitása az elemek hozzáadásához vagy eltávolításához" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "Műsor Csatlakozás Forrása URL" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Elemek Hozzáadása / Eltávolítása" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Mester Forrás Portja" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "használatban van" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Mester Csatolási Pont Forrása" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Lemez" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Műsor Forrás Portja" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Nézze meg" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Műsor Csatolási Pont Forrása" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Megnyitás" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "Nem használhatja ugyanazt a portot, mint a Master DJ." -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "A vendégek a kővetkezőket tehetik:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "A Port %s jelenleg nem elérhető" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "Az ütemezés megtekintése" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "Airtime Szerzői & másolási jog;Sourcefabric o.p.s. Minden jog fenntartva.%sFejleszti és forgalmazza GNU GPL v.3 alatt a %sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "A műsor tartalmának megtekintése" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Kijelentkezés" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "A DJ-k a következőket tehetik:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "Lejátszás" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Minden kijelölt műsor tartalom kezelése" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "Leállítás" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Médiafájlok hozzáadása" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "Felkeverés Beállítása" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Lejátszási listák, okos táblák és adatfolyamok létrehozása" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "Lekeverés Beállítása" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Saját médiatár tartalmának kezelése" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "Kurzor" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "A Program Vezetők a következőket tehetik:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Fade In" +msgstr "Felúsztatás" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "Minden tartalom megtekintése és kezelése" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Fade Out" +msgstr "Leúsztatás" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "A műsorok ütemzései" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Audio Player" +msgstr "Audió Lejátszó" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "A teljes médiatár tartalmának kezelése" +#: airtime_mvc/application/controllers/LoginController.php:34 +msgid "Please enter your user name and password" +msgstr "Kérjük, adja meg felhasználónevét és jelszavát" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Az Adminok a következőket tehetik:" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "Hibás felhasználónév vagy jelszó. Kérjük, próbálja meg újra." -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Beállítások kezelései" +#: airtime_mvc/application/controllers/LoginController.php:142 +msgid "Email could not be sent. Check your mail server settings and ensure it has been configured properly." +msgstr "Az e-mailt nem lehetett elküldeni. Ellenőrizze a levelező kiszolgáló beállításait." -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "A felhasználók kezelése" +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "Given email not found." +msgstr "Tekintve, hogy e-mail nem található." -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "A figyelt mappák kezelése" +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Recording:" +msgstr "Felvétel:" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "A rendszer állapot megtekitnése" +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Master Stream" +msgstr "Mester Adás" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Hozzáférés lejátszási előzményekhez" +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Live Stream" +msgstr "Élő Adás" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "A hallgatói statisztikák megtekintése" +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Nothing Scheduled" +msgstr "Nincs semmi ütemezve" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Az oszlopok megjelenítése/elrejtése" +#: airtime_mvc/application/controllers/LocaleController.php:36 +msgid "Current Show:" +msgstr "Jelenlegi Műsor:" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "{from} -tól/-től {to} -ig" +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "Current" +msgstr "Jelenleg" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "You are running the latest version" +msgstr "Ön a legújabb verziót futtatja" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "éééé-hh-nn" +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "New version available: " +msgstr "Új verzió érhető el:" -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "óó:pp:mm.t" +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "This version will soon be obsolete." +msgstr "Ez a verzió hamarosan elavul." -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/controllers/LocaleController.php:42 +msgid "This version is no longer supported." +msgstr "Ez a verzió már nem támogatott." -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Va" +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Please upgrade to " +msgstr "Kérjük, frissítsen" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Hé" +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Add to current playlist" +msgstr "Hozzáadás az aktuális lejátszási listához" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Ke" +#: airtime_mvc/application/controllers/LocaleController.php:46 +msgid "Add to current smart block" +msgstr "Hozzáadás az aktuális smart block-hoz" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "Sze" +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "Adding 1 Item" +msgstr "1 Elem Hozzáadása" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Cs" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#, php-format +msgid "Adding %s Items" +msgstr "%s Elem Hozzáadása" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Pé" +#: airtime_mvc/application/controllers/LocaleController.php:49 +msgid "You can only add tracks to smart blocks." +msgstr "Csak számokat adhat hozzá a smart block-hoz." -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Szo" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "Csak számokat, smart block-okat és adásfolyamokat adhatunk a lejátszási listákhoz." -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Bezárás" +#: airtime_mvc/application/controllers/LocaleController.php:53 +msgid "Please select a cursor position on timeline." +msgstr "Kérjük, válasszon kurzor pozíciót az idővonalon." -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Óra" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +msgid "Edit Metadata" +msgstr "Metaadatok Szerkesztése" -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Perc" +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Add to selected show" +msgstr "Adja hozzá a kiválasztott műsort" -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Kész" +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Select" +msgstr "Kijelölés" -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Fájlok kiválasztása" +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Select this page" +msgstr "Jelölje ki ezt az oldalt" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Adja meg a fájlokat feltöltési sorrendben, majd kattintson a \"Feltöltés indítása\" gombra." +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Deselect this page" +msgstr "Az oldal kijelölésének megszüntetése" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Állapot" +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Deselect all" +msgstr "Minden kijelölés törlése" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Fájlok Hozzáadása" +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Biztos benne, hogy törli a kijelölt eleme(ke)t?" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Feltöltés Megszakítása" +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Scheduled" +msgstr "Ütemezett" -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Feltöltés indítása" +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Playlist / Block" +msgstr "Lejátszási lista / Block" -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Fájlok hozzáadása" +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Bit Rate" +msgstr "Bitráta" -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "Feltöltve %d/%d fájl" +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Sample Rate" +msgstr "Mintavétel" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "N/A" +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Loading..." +msgstr "Betöltés..." -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Húzza a fájlokat ide." +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Files" +msgstr "Fájlok" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "Fájlkiterjesztési hiba." +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Playlists" +msgstr "Lejátszási listák" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "Fájlméreti hiba." +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Smart Blocks" +msgstr "Smart Block-ok" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "Fájl számi hiba." +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Web Streams" +msgstr "Adásfolyamok" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Init hiba." +#: airtime_mvc/application/controllers/LocaleController.php:97 +msgid "Unknown type: " +msgstr "Ismeretlen típus:" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "HTTP Hiba." +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Are you sure you want to delete the selected item?" +msgstr "Biztos benne, hogy törli a kijelölt elemet?" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Biztonsági hiba." +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +msgid "Uploading in progress..." +msgstr "Feltöltés folyamatban..." -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Általános hiba." +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "Retrieving data from the server..." +msgstr "Adatok lekérdezése a kiszolgálóról..." -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "IO hiba." +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "The soundcloud id for this file is: " +msgstr "A soundcloud id erre a fájlra:" -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "Fájl: %s" +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "There was an error while uploading to soundcloud." +msgstr "A soundcloud-ra feltöltés közben hiba jelentkezett." -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d várakozó fájl" +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Error code: " +msgstr "Hibakód:" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "Fájl: %f,méret: %s, max fájl méret: %m" +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Error msg: " +msgstr "Hibaüzenet:" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "URL feltöltése esetén, felléphet hiba, esetleg nem létezik" +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be a positive number" +msgstr "A bemenetnek pozitív számnak kell lennie" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Hiba: A fájl túl nagy:" +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be a number" +msgstr "A bemenetnek számnak kell lennie" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Hiba: Érvénytelen fájl kiterjesztés:" +#: airtime_mvc/application/controllers/LocaleController.php:107 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "A bemenet formája lehet: éééé-hh-nn" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "Alapértelmezett" +#: airtime_mvc/application/controllers/LocaleController.php:108 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "A bemenet formája lehet: óó:pp:mm.t" -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "Napló Létrehozása" +#: airtime_mvc/application/controllers/LocaleController.php:111 +#, php-format +msgid "You are currently uploading files. %sGoing to another screen will cancel the upload process. %sAre you sure you want to leave the page?" +msgstr "Ön jelenleg fájlokat tölt fel. %sHa másik ablakot nyit meg, akkor a feltöltési folyamat megszakad. %sBiztos benne, hogy elhagyja az oldalt?" -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "Előzmények Szerkesztése" +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "Open Media Builder" +msgstr "Média Építő Megnyitása" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "%s sor%s van másolva a vágólapra" +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "kérjük, tegye időbe '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%sNyomtatási előnézet%sKérjük, használja böngészője nyomtatási beállításait. Nyomja meg az Esc-t ha végzett." +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "kérjük, tegye másodpercekbe '00 (.0)'" -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "Nincs jogosúltsága a forrás bontásához." +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Your browser does not support playing this file type: " +msgstr "A böngészője nem támogatja az ilyen típusú fájlok lejátszását:" -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "Nem csatlakozik forrás az alábbi bemenethez." +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Dynamic block is not previewable" +msgstr "A dinamikus block nem érhető el előnézetben" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "Nincs jogosúltsága a forrás megváltoztatásához." +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Limit to: " +msgstr "Korlátozva:" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "Ön egy régebbi verziót tekint meg %s" +#: airtime_mvc/application/controllers/LocaleController.php:119 +msgid "Playlist saved" +msgstr "Lejátszási lista mentve" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "Nem adhat hozzá dalszámokat a dinamikus táblákhoz." +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "Playlist shuffled" +msgstr "Lejátszási lista megkeverve" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 -#, php-format -msgid "%s not found" -msgstr "%s nem található" +#: airtime_mvc/application/controllers/LocaleController.php:122 +msgid "Airtime is unsure about the status of this file. This can happen when the file is on a remote drive that is unaccessible or the file is in a directory that isn't 'watched' anymore." +msgstr "Az Airtime bizonytalan a fájl állapotával kapcsolatban. Lehetséges, hogy a tárhely már nem elérhető, vagy a 'vizsgált' mappa útvonala megváltozott." -#: airtime_mvc/application/controllers/PlaylistController.php:144 +#: airtime_mvc/application/controllers/LocaleController.php:124 #, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "Nincs engedélye, hogy törölje a kiválasztott %s." +msgid "Listener Count on %s: %s" +msgstr "Hallgatók Száma %s: %s" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Valami hiba történt." +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Remind me in 1 week" +msgstr "Emlékeztessen 1 hét múlva" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "Csak dalszámokat lehet hozzáadni okos táblához." +#: airtime_mvc/application/controllers/LocaleController.php:127 +msgid "Remind me never" +msgstr "Soha ne emlékeztessen" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Névtelen Lejátszási Lista" +#: airtime_mvc/application/controllers/LocaleController.php:128 +msgid "Yes, help Airtime" +msgstr "Igen, segítek az Airtime-nak" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Névtelen Okos Tábla" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "A képek lehetnek: jpg, jpeg, png, vagy gif" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Ismeretlen Lejátszási Lista" +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "A static smart block will save the criteria and generate the block content immediately. This allows you to edit and view it in the Library before adding it to a show." +msgstr "A statikus smart block elmenti a kritériumokat és azonnal létre is hozza a block tartalmát is. Ez lehetővé teszi, hogy módosítsuk és lássuk a könyvtár tartalmát még a műsor közvetítése előtt." -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "Az Ön számára nem érhető el az alábbi erőforrás." +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "A dynamic smart block will only save the criteria. The block content will get generated upon adding it to a show. You will not be able to view and edit the content in the Library." +msgstr "A dinamikus smart block csak elmenti a kritériumokat. A block-ot szerkesztés után lehet hozzáadni a műsorhoz. Később a tartalmát sem megtekinteni, sem módosítani nem lehet." -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "Az Ön számára nem érhető el az alábbi erőforrás." +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "The desired block length will not be reached if Airtime cannot find enough unique tracks to match your criteria. Enable this option if you wish to allow tracks to be added multiple times to the smart block." +msgstr "A kívánt blokkhosszúság nem elérhető, mert az Airtime nem talál elég egyedi műsorszámot, ami megfelelne a kritériumoknak. Engedélyezze ezt az opciót, ha azt szeretné, hogy egyes számok ismétlődjenek." -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" -msgstr "A fájl nem elérhető itt: %s" +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block shuffled" +msgstr "Smart Block keverés" -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Helytelen kérés. nincs 'mód' paraméter lett átadva." +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Smart block generated and criteria saved" +msgstr "Smart Block létrehozva és kritériumok mentve" -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Helytelen kérés. 'mód' paraméter érvénytelen." +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Smart block saved" +msgstr "Smart Block mentve" -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Előnézet" +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "Processing..." +msgstr "Feldolgozás..." -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Hozzáadás a Lejátszási listához" +#: airtime_mvc/application/controllers/LocaleController.php:152 +msgid "Choose Storage Folder" +msgstr "Válasszon Tároló Mappát" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Hozzáadás az Okos Táblához" +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "Choose Folder to Watch" +msgstr "Válasszon Vizsgált Mappát" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Törlés" +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Biztos benne, hogy meg akarja változtatni a tároló mappát?\n" +"Ezzel eltávolítja a fájlokat az Airtime médiatárából!" -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Lejátszási lista másolatának elkészítése" +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "Create Entry" +msgstr "Napló Létrehozása" -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Szerkeszt" -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:157 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Biztos benne, hogy el akarja távolítani a vizsgált mappát?" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Megtekintés a SoundCloud-on" +#: airtime_mvc/application/controllers/LocaleController.php:158 +msgid "This path is currently not accessible." +msgstr "Ez az útvonal jelenleg nem elérhető." -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Újra-feltöltés a SoundCloud-ra" +#: airtime_mvc/application/controllers/LocaleController.php:160 +#, php-format +msgid "Some stream types require extra configuration. Details about enabling %sAAC+ Support%s or %sOpus Support%s are provided." +msgstr "Egyes patak típusokhoz extra beállítások szükségesek. További részletek: a %sAAC+ Támogatással%s vagy a %sOpus Támogatással%s kapcsolatban." -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Feltöltés a SoundCloud-ra" +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Connected to the streaming server" +msgstr "Csatlakozva az adás kiszolgálóhoz" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "Nincs elérhető művelet" +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "The stream is disabled" +msgstr "Az adásfolyam ki van kapcsolva" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "Nincs engedélye, hogy törölje a kiválasztott elemeket." +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "Can not connect to the streaming server" +msgstr "Nem lehet kapcsolódni az adásfolyam kiszolgálójához" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Nem sikerült törölni néhány ütemezett fájlt." +#: airtime_mvc/application/controllers/LocaleController.php:166 +msgid "If Airtime is behind a router or firewall, you may need to configure port forwarding and this field information will be incorrect. In this case you will need to manually update this field so it shows the correct host/port/mount that your DJ's need to connect to. The allowed range is between 1024 and 49151." +msgstr "Ha az Airtime mögött van egy router vagy egy tűzfal, akkor be kell állítani a továbbító porot, mert ezen a területen az információ helytelen lesz. Ebben az esetben manuálisan kell frissíteni ezen a területen, hogy mutassa a hosztot / portot / csatolási pontot, amelyre a DJ-k csatlakozhatnak. A megengedett tartomány 1024 és 49151 között van." -#: airtime_mvc/application/controllers/LibraryController.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:167 #, php-format -msgid "Copy of %s" -msgstr "Másolás %s" +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "A további részletekért, kérjük, olvassa el az %sAirtime Kézikönyvét%s" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Kurzor kiválasztása" +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "Check this option to enable metadata for OGG streams (stream metadata is the track title, artist, and show name that is displayed in an audio player). VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that has metadata information enabled: they will disconnect from the stream after every song. If you are using an OGG stream and your listeners do not require support for these audio players, then feel free to enable this option." +msgstr "Jelölje be és ellenőrizze ezt az opciót: metaadatok engedélyezése OGG-os adásfolyamra (adatfolyam metaadatok: a műsorszám címe, előadó, műsornév, amely megjelenik egy audió lejátszóban). A VLC és mplayer lejátszóknál súlyos hibák előfordulhatnak, OGG/Vorbis adatfolyam játszásakor, amelynél a metaadatok küldése engedélyezett: ilyenkor akadozik az adatfolyam. Ha az OGG-os adatfolyam és a hallgatói nem igényelnek támogatást az ilyen jellegű audió lejátszókhoz, akkor nyugodtan engedélyezze ezt az opciót." -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Kurzor eltávolítása" +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "Check this box to automatically switch off Master/Show source upon source disconnection." +msgstr "Jelölje be ezt a négyzetet, hogy automatikusan kikapcsol a Mester/Műsor a forrás megszakítása után." -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "a műsor nem található" +#: airtime_mvc/application/controllers/LocaleController.php:171 +msgid "Check this box to automatically switch on Master/Show source upon source connection." +msgstr "Jelölje be ezt a négyzetet, hogy automatikusan bekapcsol a Mester/Műsor a forrás csatlakozását követően." -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Beállítások frissítve." +#: airtime_mvc/application/controllers/LocaleController.php:172 +msgid "If your Icecast server expects a username of 'source', this field can be left blank." +msgstr "Lehet, hogy az Ön Icecast kiszolgálója nem igényli a 'forrás' felhasználónevét, ez a mező üresen maradhat." -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Támogatási beállítások frissítve." +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "If your live streaming client does not ask for a username, this field should be 'source'." +msgstr "Ha az Ön élő adásfolyam kliense nem igényel felhasználónevet, akkor meg kell adnia a 'forrást'." -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Támogatási Visszajelzés" +#: airtime_mvc/application/controllers/LocaleController.php:175 +msgid "If you change the username or password values for an enabled stream the playout engine will be rebooted and your listeners will hear silence for 5-10 seconds. Changing the following fields will NOT cause a reboot: Stream Label (Global Settings), and Switch Transition Fade(s), Master Username, and Master Password (Input Stream Settings). If Airtime is recording, and if the change causes a playout engine restart, the recording will be interrupted." +msgstr "Ha megváltoztatja a felhasználónév vagy a jelszó értékeit, az engedélyezett adatfolyam és a lejátszási motor újraindul, és a hallgatók 5-10 másodpercig csendet fognak hallani. Módosítása az alábbi mezőket, ez NEM okoz újraindítást: Adásfolyam Címke (Általános Beállítások), és a Úsztatási Átmenet Kapcsoló, Mester Felhasználónév, Mester Jelszó (Bejövő Adatfolyam Beállítások). Ha az Airtime éppen rögzít, és ha a változás miatt újra kell indítani a lejátszási motort, akkor a vételezés megszakad." -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Adásfolyam Beállítások Frissítve." +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "This is the admin username and password for Icecast/SHOUTcast to get listener statistics." +msgstr "Ez az admin felhasználónév és jelszó az Icecast/SHOUTcast hallgató statisztikához szükségesek." -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "az útvonalat meg kell határozni" +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "Warning: You cannot change this field while the show is currently playing" +msgstr "Figyelmeztetés: Nem lehet megváltoztatni a mező tartalmát, míg a jelenlegi műsor tart" -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Probléma lépett fel a Liquidsoap-al..." +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "No result found" +msgstr "Nem volt találat" -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Most Játszott" +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "This follows the same security pattern for the shows: only users assigned to the show can connect." +msgstr "Ezt követi ugyanolyan biztonsági műsor-minta: csak a hozzárendelt felhasználók csatlakozhatnak a műsorhoz." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Média Hozzáadása" +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "Specify custom authentication which will work only for this show." +msgstr "Adjon meg egy egyéni hitelesítéset, amely csak ennél a műsornál működik." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Médiatár" +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "The show instance doesn't exist anymore!" +msgstr "A műsor ez esetben nem létezik többé!" -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Naptár" +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "Warning: Shows cannot be re-linked" +msgstr "Figyelem: a Műsorokat nem lehet újra-linkelni" -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "Rendszer" +#: airtime_mvc/application/controllers/LocaleController.php:187 +msgid "By linking your repeating shows any media items scheduled in any repeat show will also get scheduled in the other repeat shows" +msgstr "Az ismétlődő műsorok összekötésével, minden ütemezett médiai elem, az összes ismétlődő műsorban, ugyanazt a sorrendet kapja, mint a többi ismétlődő műsorban" -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Beállítások" +#: airtime_mvc/application/controllers/LocaleController.php:188 +msgid "Timezone is set to the station timezone by default. Shows in the calendar will be displayed in your local time defined by the Interface Timezone in your user settings." +msgstr "Az időzóna az Állomási Időzóna szerint van alapértelmezetten beállítva. A naptárban megjelenő helyi időt a Felületi Időzóna menüpontban módosíthatja, a felhasználói beállításoknál." -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Felhasználók" +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "Show" +msgstr "Műsor" -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Média Mappák" +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "Show is empty" +msgstr "A műsor üres" -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Adásfolyamok" +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "1m" +msgstr "1p" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Hallgatói Statisztikák" +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "5m" +msgstr "5p" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" -msgstr "Előzmények" +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "10m" +msgstr "10p" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Lejátszási Előzmények" +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "15m" +msgstr "15p" -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "Naplózási Sablonok" +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "30m" +msgstr "30p" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Segítség" +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "60m" +msgstr "60p" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Első Lépések" +#: airtime_mvc/application/controllers/LocaleController.php:201 +msgid "Retreiving data from the server..." +msgstr "Az adatok lekérdezése a szolgálóról..." -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "Felhasználói Kézikönyv" +#: airtime_mvc/application/controllers/LocaleController.php:207 +msgid "This show has no scheduled content." +msgstr "Ez a műsor nem tartalmaz ütemezett tartalmat." -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "Rólunk" +#: airtime_mvc/application/controllers/LocaleController.php:208 +msgid "This show is not completely filled with content." +msgstr "Ez a műsor nincs teljesen kitöltve tartalommal." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Szolgáltatás" +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "January" +msgstr "Január" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Üzemidő" +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "February" +msgstr "Február" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:214 +msgid "March" +msgstr "Március" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Memória" +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "April" +msgstr "Április" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "%s Verzió" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "May" +msgstr "Május" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Lemezterület" +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "June" +msgstr "Június" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "E-mail / Levelezési Kiszolgáló Beállítások" +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "July" +msgstr "Július" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "SoundCloud Beállítások" +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "August" +msgstr "Augusztus" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Ismétlések Napjai:" +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "September" +msgstr "Szeptember" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Eltávolítás" +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "October" +msgstr "Október" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Hozzáadás" +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "November" +msgstr "November" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "Kapcsolati URL:" +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "December" +msgstr "December" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Bemeneti Adásfolyam Beállítások" +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Jan" +msgstr "Jan" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "Mester Forrási URL Kapcsolat:" +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Feb" +msgstr "Feb" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Felülírás" +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "Mar" +msgstr "Már" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "OK" +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Apr" +msgstr "Ápr" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "NULLÁZÁS" +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Jun" +msgstr "Jún" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "Műsor Forrási URL Kapcsolat:" +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Jul" +msgstr "Júl" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Kötelező)" +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Aug" +msgstr "Aug" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Airtime Regisztráció" +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Sep" +msgstr "Sze" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "Segítsen az %1$s fejlesztésében, tudassa velünk az ötleteit. Az információk gyűjtése fokozza a felhasználás élményét.%2$sKlikk 'Igen, segítek az %1$s-nak' fejlesztésében, és igyekszek folyamatosan a funkciók használatának javításain fáradozni. " - -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "Jelöld be a mezőt az állomásod közzétételéhez a %s-on." +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Oct" +msgstr "Okt" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(csupán ellenőrzés céljából, nem kerül közzétételre)" +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "Nov" +msgstr "Nov" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Megjegyzés: Bármi, ami kisebb nagyobb, mint 600x600, átméretezésre kerül." +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "Dec" +msgstr "Dec" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Mutasd meg, hogy mit küldök" +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "today" +msgstr "ma" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Felhasználási Feltételek" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Mester Forrás Port" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "A jelszó visszaállítása" +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "day" +msgstr "nap" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Válasszon mappát" +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "week" +msgstr "hét" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Beállítás" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Mester Forrási Csatolási Pont" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Jelenlegi Tároló Mappa:" +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "month" +msgstr "hónap" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "A figyelt mappa újraellenőrzése (Ez akkor hasznos, ha a hálózati csatolás nincs szinkronban az %s-al)" +#: airtime_mvc/application/controllers/LocaleController.php:254 +msgid "Shows longer than their scheduled time will be cut off by a following show." +msgstr "Ha egy műsor hosszabb az ütemezett időnél, meg lesz vágva és követi azt a következő műsor." -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "A figyelt mappa eltávolítása" +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Cancel Current Show?" +msgstr "A Jelenlegi Műsor Megszakítása?" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "Ön nem figyel minden média mappát." +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Műsor Forrás Port" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Adásfolyam" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Műsor Forrási Csatolási Pont" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "További Lehetőségek" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Stop recording current show?" +msgstr "A jelenlegi műsor rögzítésének félbeszakítása?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "A következő információk megjelennek a hallgatók számára, a saját média lejátszóikban:" +#: airtime_mvc/application/controllers/LocaleController.php:257 +msgid "Ok" +msgstr "Ok" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(A rádióállomás honlapja)" +#: airtime_mvc/application/controllers/LocaleController.php:258 +msgid "Contents of Show" +msgstr "A Műsor Tartalmai" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "Adásfolyam URL:" +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Remove all content?" +msgstr "Az összes tartalom eltávolítása?" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Előzmények Szűrése" +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "Delete selected item(s)?" +msgstr "Törli a kiválasztott elem(ek)et?" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Műsorok Keresése" +#: airtime_mvc/application/controllers/LocaleController.php:265 +msgid "End" +msgstr "Vége" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Műsor Alapján:" +#: airtime_mvc/application/controllers/LocaleController.php:266 +msgid "Duration" +msgstr "Időtartam" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "%s Beállítások" +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Show Empty" +msgstr "Üres Műsor" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "Segítse az %s fejlesztését azáltal, hogy a %s tudja, hogy Ön, hogyan használja azt. Információk összegyűjtése céljából, rendszerezve azokat, hogy fokozza a felhasználás élményét.%sKlikkeljen a 'Támogatási Visszajelzés Küldése' mezőbe és győződjön meg arról, hogy a funkciók használatának minősége folyamatosan javul." +#: airtime_mvc/application/controllers/LocaleController.php:277 +msgid "Recording From Line In" +msgstr "Rögzítés a Hangbemenetről" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(Annak érdekében, hogy hírdetni tudja az állomását, a 'Támogatási Visszajelzés Küldését' engedélyeznie kell.)" +#: airtime_mvc/application/controllers/LocaleController.php:278 +msgid "Track preview" +msgstr "Belehallgatás a számba" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Sourcefabric Adatvédelem" +#: airtime_mvc/application/controllers/LocaleController.php:282 +msgid "Cannot schedule outside a show." +msgstr "Nem lehet ütemezni a műsoron kívül." -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "Adjon hozzá több elemet" +#: airtime_mvc/application/controllers/LocaleController.php:283 +msgid "Moving 1 Item" +msgstr "1 Elem Áthelyezése" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "Találat" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#, php-format +msgid "Moving %s Items" +msgstr "%s Elemek Áthelyezése" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Válasszon Napot:" +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "Fade Editor" +msgstr "Úsztatási Szerkesztő" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Okos Tábla Beállításai" +#: airtime_mvc/application/controllers/LocaleController.php:288 +msgid "Cue Editor" +msgstr "Keverési Szerkesztő" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "vagy" +#: airtime_mvc/application/controllers/LocaleController.php:289 +msgid "Waveform features are available in a browser supporting the Web Audio API" +msgstr "Hullámalak funkciók állnak rendelkezésre a böngészőben, támogatja a Web Audio API-t" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "és" +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Select all" +msgstr "Az összes kijelölése" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr "-ig" +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Select none" +msgstr "Egyet sem jelöl ki" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "fájl megfelel a kritériumoknak" +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Remove overbooked tracks" +msgstr "A túlfoglalt számok eltávolítása" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "a fájl megfelenek a kritériumoknak" +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Remove selected scheduled items" +msgstr "A kijelölt ütemezett elemek eltávolítása" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "Összegzési Sablon Fájl Létrehozása" +#: airtime_mvc/application/controllers/LocaleController.php:296 +msgid "Jump to the current playing track" +msgstr "Ugrás a jelenleg hallható számra" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "Naplózási Sablon Létrehozása" +#: airtime_mvc/application/controllers/LocaleController.php:297 +msgid "Cancel current show" +msgstr "A jelenlegi műsor megszakítása" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "Adjon hozzá több elemet" +#: airtime_mvc/application/controllers/LocaleController.php:302 +msgid "Open library to add or remove content" +msgstr "A médiatár megnyitása az elemek hozzáadásához vagy eltávolításához" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "Új Mező Hozzáadása" +#: airtime_mvc/application/controllers/LocaleController.php:305 +msgid "in use" +msgstr "használatban van" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "Alapértelmezett Sablon" +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Disk" +msgstr "Lemez" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "Naplózási Sablonok" +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Look in" +msgstr "Nézze meg" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "Nincsenek Naplózási Sablonok" +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Open" +msgstr "Megnyitás" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "Új Naplózási Sablon" +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "Guests can do the following:" +msgstr "A vendégek a kővetkezőket tehetik:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "Összegzési Sablon Fájlok" +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "View schedule" +msgstr "Az ütemezés megtekintése" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "Nincsenek Összegzési Sablon Fájlok" +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "View show content" +msgstr "A műsor tartalmának megtekintése" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "Új Összegzési Sablon Fájl" +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "DJs can do the following:" +msgstr "A DJ-k a következőket tehetik:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "Új" +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Manage assigned show content" +msgstr "Minden kijelölt műsor tartalom kezelése" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "Új Lejátszási Lista" +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Import media files" +msgstr "Médiafájlok hozzáadása" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "Új Okos Tábla" +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Lejátszási listák, smart block-ok és adatfolyamok létrehozása" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "Új Adásfolyam" +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "Manage their own library content" +msgstr "Saját médiatár tartalmának kezelése" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "A leíás megtekíntése / szerkesztése" +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Progam Managers can do the following:" +msgstr "A Program Vezetők a következőket tehetik:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "Adásfolyam URL:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "View and manage show content" +msgstr "Minden tartalom megtekintése és kezelése" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Alapértelmezett Hossz:" +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Schedule shows" +msgstr "A műsorok ütemzései" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "Nincs adásfolyam" +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage all library content" +msgstr "A teljes médiatár tartalmának kezelése" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Adásfolyam/Patak Beállítások" +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Admins can do the following:" +msgstr "Az Adminok a következőket tehetik:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Általános Beállítások" +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage preferences" +msgstr "Beállítások kezelései" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "dB" +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Manage users" +msgstr "A felhasználók kezelése" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Kimenő Adásfolyam Beállítások" +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "Manage watched folders" +msgstr "A vizsgált mappák kezelése" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "Fájl importálása folyamatban..." +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View system status" +msgstr "A rendszer állapot megtekitnése" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Speciális Keresési Beállítások" +#: airtime_mvc/application/controllers/LocaleController.php:334 +msgid "Access playout history" +msgstr "Hozzáférés lejátszási előzményekhez" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "előző" +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "View listener stats" +msgstr "A hallgatói statisztikák megtekintése" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "lejátszás" +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "Show / hide columns" +msgstr "Az oszlopok megjelenítése/elrejtése" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "szünet" +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "From {from} to {to}" +msgstr "{from} -tól/-től {to} -ig" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "következő" +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "leállítás" +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "yyyy-mm-dd" +msgstr "éééé-hh-nn" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "elnémítás" +#: airtime_mvc/application/controllers/LocaleController.php:342 +msgid "hh:mm:ss.t" +msgstr "óó:pp:mm.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "elnémítás megszüntetése" +#: airtime_mvc/application/controllers/LocaleController.php:343 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "max hangerő" +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Su" +msgstr "Va" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Frissítés Szükséges" +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "Mo" +msgstr "Hé" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "A lejátszáshoz média szükséges, és frissítenie kell a böngészőjét egy újabb verzióra, vagy frissítse a %sFlash bővítményt%s." +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Tu" +msgstr "Ke" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Hossz:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "We" +msgstr "Sze" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Mintavételi Ráta:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Th" +msgstr "Cs" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "Isrc Szám:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +msgid "Fr" +msgstr "Pé" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "Fájl Elérési Útvonal:" +#: airtime_mvc/application/controllers/LocaleController.php:352 +msgid "Sa" +msgstr "Szo" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Adásfolyam" +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Hour" +msgstr "Óra" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Dinamikus Okos Tábla" +#: airtime_mvc/application/controllers/LocaleController.php:356 +msgid "Minute" +msgstr "Perc" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Statikus Okos Tábla" +#: airtime_mvc/application/controllers/LocaleController.php:357 +msgid "Done" +msgstr "Kész" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Audió Sáv" +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Select files" +msgstr "Fájlok kiválasztása" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Lejátszási Lista Tartalmak:" +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Add files to the upload queue and click the start button." +msgstr "Adja meg a fájlokat feltöltési sorrendben, majd kattintson a gombra." -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Statikus Okos Tábla Tartalmak:" +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Add Files" +msgstr "Fájlok Hozzáadása" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Dinamikus Okos Tábla Kritériumok:" +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Stop Upload" +msgstr "Feltöltés Megszakítása" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Korlátozva" +#: airtime_mvc/application/controllers/LocaleController.php:367 +msgid "Start upload" +msgstr "Feltöltés indítása" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Hallgatói Statisztika" +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "Add files" +msgstr "Fájlok hozzáadása" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:369 #, php-format -msgid "Welcome to %s!" -msgstr "Üdvözöljük az %s-nál!" +msgid "Uploaded %d/%d files" +msgstr "Feltöltve %d/%d fájl" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 -#, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "Itt van, hogyan tudod elindítani adásaid automatizálását használva az %s-t:" +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "N/A" +msgstr "N/A" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Kezdje médiafájlok hozzáadásával a 'Média Hozzáadása' menü gombon. A \"hozd és vidd\" fájlokat ugyanebben az ablakban szerkesztheti." +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "Drag files here." +msgstr "Húzza a fájlokat ide." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Hozzon létre egy műsort a 'Naptár' menüpontban, a '+ Műsor' gombra kattintva. Ez lehet alkalmi vagy ismétlődő műsor. Csak az adminisztrátorok és a programkezelők hozhatnak létre műsort." +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File extension error." +msgstr "Fájlkiterjesztési hiba." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Adjon hozzá médiatartalmakat, hogy műsorokat tudjon ütemezni, a 'Naptár' menüponton belül, a bal egérgombra való kattintás után válassza ki a 'Tartalom Hozzáadása/Eltávolítása' nevű opciót" +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "File size error." +msgstr "Fájlméreti hiba." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Válassza ki a média tartalmat a bal oldali panelen, és húzza azt a műsorba, a jobb oldali panelre." +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "File count error." +msgstr "Fájl számi hiba." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "És már készen is van!" +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Init error." +msgstr "Init hiba." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "További segítségért, olvassa el a %shasználati útmutatót%s." +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "HTTP Error." +msgstr "HTTP Hiba." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Megosztás" +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "Security error." +msgstr "Biztonsági hiba." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Adásfolyam:" +#: airtime_mvc/application/controllers/LocaleController.php:378 +msgid "Generic error." +msgstr "Általános hiba." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 -#, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "%1$s %2$s, a nyitott rádiós szoftver, az ütemezett és távoli állomás menedzsment." +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "IO error." +msgstr "IO hiba." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "%1$s %2$s-ot %3$s mellett terjesztik" - -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "Új jelszó" - -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Kérjük, adja meg és erősítse meg az új jelszavát az alábbi mezőkben." - -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Kérjük, írja be a fiókja e-mail címét. Kap majd egy linket, új jelszó létrehozásához, e-mailen keresztül." +msgid "File: %s" +msgstr "Fájl: %s" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "E-mail elküldve" +#: airtime_mvc/application/controllers/LocaleController.php:382 +#, php-format +msgid "%d files queued" +msgstr "%d várakozó fájl" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "Egy e-mailt elküldtünk" +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "File: %f, size: %s, max file size: %m" +msgstr "Fájl: %f,méret: %s, max fájl méret: %m" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Vissza a belépéshez" +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "URL feltöltése esetén, felléphet hiba, esetleg nem létezik" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 -#, php-format -msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." -msgstr "Üdvözöljük az %s demó változatában! Jelentkezzen be 'admin' felhasználónévvel és 'admin' jelszóval." +#: airtime_mvc/application/controllers/LocaleController.php:385 +msgid "Error: File too large: " +msgstr "Hiba: A fájl túl nagy:" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Előző:" +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Error: Invalid file extension: " +msgstr "Hiba: Érvénytelen fájl kiterjesztés:" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Következő:" +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "Create Entry" +msgstr "Belépés Létrehozása" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Az Adásfolyam Forrásai" +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "Edit History Record" +msgstr "Előzmények Szerkesztése" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Mester Forrás" +#: airtime_mvc/application/controllers/LocaleController.php:393 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "%s sor%s van másolva a vágólapra" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Műsor Forrás" +#: airtime_mvc/application/controllers/LocaleController.php:394 +#, php-format +msgid "%sPrint view%sPlease use your browser's print function to print this table. Press escape when finished." +msgstr "%sNyomtatási előnézet%sKérjük, használja böngészője nyomtatási beállításait. Nyomja meg az Esc-t ha végzett." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Ütemezett Lejátszás" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Előnézet" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "ADÁSBAN" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Kurzor kiválasztása" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Hallgat" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Kurzor eltávolítása" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Állomás idő" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "a műsor nem található" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Az Ön próba ideje lejár" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Beállítások frissítve." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "Vásárolja meg az Ön %s másolatát" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Támogatási beállítások frissítve." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "Saját Fiókom" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +msgid "Stream Setting Updated." +msgstr "Adásfolyam Beállítások Frissítve." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "A Felhasználók Kezelése" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +msgid "path should be specified" +msgstr "az útvonalat meg kell határozni" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "Új Felhasználó" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +msgid "Problem with Liquidsoap..." +msgstr "Probléma lépett fel a Liquidsoap-al..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "id" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Az oldal nem található" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "Vezetéknév" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Alkalmazás hiba" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Keresztnév" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s nem található" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "Felhasználói Típus" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Valami hiba történt." -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "Napló" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Hozzáadás a Lejátszási listához" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "Fájl Összegző" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Hozzáadás a Smart Block-hoz" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "Műsor Összegző" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Letöltés" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Zend Keretrendszeres Alapértelmezett Alkalmazás" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Lejátszási lista duplikálása" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Az oldal nem található!" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "Soundcloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "Úgy néz ki, az oldal, amit keresett nem létezik!" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "Nincs elérhető művelet" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Statikus Tábla Kibővítése" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "Nincs engedélye, hogy törölje a kiválasztott elemeket." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Dinamikus Tábla Kibővítése" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "Nem sikerült törölni néhány ütemezett fájlt." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Üres okos tábla" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Másolás %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Üres lejátszási lista" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Névtelen Adásfolyam" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "Üres lejátszási lista tartalom" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Adásfolyam mentve." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "Törlés" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Érvénytelen érték forma." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Véletlenszerű lejátszási lista" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "Nincs jogosúltsága a forrás bontásához." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Lejátszási lista mentése" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "Nem csatlakozik forrás az alábbi bemenethez." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Lejátszási lista átúsztatása" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "Nincs jogosúltsága a forrás megváltoztatásához." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Felúsztatás:" +#: airtime_mvc/application/controllers/UserController.php:82 +msgid "User added successfully!" +msgstr "Felhasználó sikeresen hozzáadva!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Leúsztatás:" +#: airtime_mvc/application/controllers/UserController.php:84 +msgid "User updated successfully!" +msgstr "Felhasználó sikeresen módosítva!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "Nincs megnyitott lejátszási lista" +#: airtime_mvc/application/controllers/UserController.php:154 +msgid "Settings updated successfully!" +msgstr "Beállítások sikeresen módosítva!" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "Üres okos tábla tartalom" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "A műsor újraközvetítése %s -tól/-től %s a %s" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(mm.t)" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +msgid "Please make sure admin user/password is correct on System->Streams page." +msgstr "Kérjük, győződjön meg arról, hogy az admin felhasználónév/jelszó helyes-e a Rendszer-> Adásfolyamok oldalon." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "Nincs megnyitott okos tábla" +#: airtime_mvc/application/controllers/ApiController.php:60 +msgid "You are not allowed to access this resource." +msgstr "Az Ön számára nem érhető el az alábbi erőforrás." -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "Mutasd a Hullámalakot" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +msgid "You are not allowed to access this resource. " +msgstr "Az Ön számára nem érhető el az alábbi erőforrás." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Felkeverés:" +#: airtime_mvc/application/controllers/ApiController.php:558 +msgid "File does not exist in Airtime." +msgstr "A fájl nem található az Airtime-ban." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(óó:pp:mm.t)" +#: airtime_mvc/application/controllers/ApiController.php:578 +msgid "File does not exist in Airtime" +msgstr "A fájl nem található az Airtime-ban." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Lekeverés:" +#: airtime_mvc/application/controllers/ApiController.php:590 +msgid "File doesn't exist in Airtime." +msgstr "A fájl nem létezik az Airtime-ban." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Eredeti Hossz:" +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Helytelen kérés. nincs 'mód' paraméter lett átadva." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Adja hozzá ezt a műsort" +#: airtime_mvc/application/controllers/ApiController.php:651 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Helytelen kérés. 'mód' paraméter érvénytelen." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "A műsor frissítése" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "Ön egy régebbi verziót tekint meg %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "Mi" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "Nem adhat számokat dinamikus block-okhoz." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "Mikor" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "Nincs engedélye, hogy törölje a kiválasztott %s." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Élő Adásfolyam Bemenet" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "Csak számokat lehet hozzáadni smart block-hoz." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Rögzítés & Ismétlés" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Névtelen Lejátszási Lista" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Kicsoda" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Névtelen Smart Block" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Stílus" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Ismeretlen Lejátszási Lista" -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Úrjaközvetítés %s -tól/-től %s" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "A fel- és a lekeverés értékei nullák." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Ország Kiválasztása" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "Nem lehet beállítani, mert a lekeverési idő nem lehet nagyobb a fájl hosszánál." + +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "Nem lehet beállítani, hogy a felkeverés hosszabb legyen, mint a lekeverés." + +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Nem lehet a lekeverés rövidebb, mint a felkeverés." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3651,43 +3761,24 @@ msgstr "Érvénytelen adásfolyam - Úgy néz ki, hogy ez egy fájl letöltés." msgid "Unrecognized stream type: %s" msgstr "Ismeretlen típusú adásfolyam: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s már figyelve van." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s tartalmazza a beágyazott figyelt könyvtárat: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s beágyazva a létező figyelt mappán belül: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s nem létező könyvtár." - -#: airtime_mvc/application/models/MusicDir.php:232 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s már be van állítva, mint a jelenlegi tároló elérési útvonala vagy a figyelt mappák listája" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Üdv. %s, \n" +"\n" +"Erre a hivatkozásra kattintva visszaállíthatja a jelszavát: " -#: airtime_mvc/application/models/MusicDir.php:386 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s már be van állítva, mint jelenlegi tároló elérési útvonala vagy, a figyelt mappák listájában." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Airtime Jelszó Visszaállítása" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s nem szerepel a figyeltek listáján." +#: airtime_mvc/application/models/Preference.php:662 +msgid "Select Country" +msgstr "Ország Kiválasztása" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3702,8 +3793,8 @@ msgid "The schedule you're viewing is out of date! (instance mismatch)" msgstr "A megtekintett ütemterv elavult! (például eltérés)" #: airtime_mvc/application/models/Scheduler.php:132 -#: airtime_mvc/application/models/Scheduler.php:460 -#: airtime_mvc/application/models/Scheduler.php:498 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 msgid "The schedule you're viewing is out of date!" msgstr "A megtekintett ütemterv időpontja elavult!" @@ -3727,66 +3818,54 @@ msgid "The show %s has been previously updated!" msgstr "A műsor %s már korábban frissítve lett!" #: airtime_mvc/application/models/Scheduler.php:178 -msgid "" -"Content in linked shows must be scheduled before or after any one is " -"broadcasted" +msgid "Content in linked shows must be scheduled before or after any one is broadcasted" msgstr "A kapcsolódó műsorok tartalmait bármelyik adás előtt vagy után kell ütemezni" -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." -msgstr "Nem lehet ütemezni olyan lejátszási listát, amely tartalmaz hiányzó fájlokat." - -#: airtime_mvc/application/models/Scheduler.php:216 -#: airtime_mvc/application/models/Scheduler.php:305 +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 msgid "A selected File does not exist!" msgstr "A kiválasztott fájl nem létezik!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "A fel- és a lekeverés értékei nullák." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s már megvizsgált." -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Nem lehet beállítani, hogy a felkeverés hosszabb legyen, mint a lekeverés." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s tartalmazza a beágyazott vizsgált könyvtárat: %s" -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Nem lehet beállítani, mert a lekeverési idő nem lehet nagyobb a fájl hosszánál." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s beágyazva a létező vizsgált mappán belül: %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Nem lehet a lekeverés rövidebb, mint a felkeverés." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s nem létező könyvtár." -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." -msgstr "Nem sikerült létrehozni 'szervező' könyvtárat." +#: airtime_mvc/application/models/MusicDir.php:232 +#, php-format +msgid "%s is already set as the current storage dir or in the watched folders list" +msgstr "%s már be van állítva, mint a jelenlegi tároló elérési útvonala vagy a vizsgált mappák listája" -#: airtime_mvc/application/models/StoredFile.php:1017 +#: airtime_mvc/application/models/MusicDir.php:388 #, php-format -msgid "" -"The file was not uploaded, there is %s MB of disk space left and the file " -"you are uploading has a size of %s MB." -msgstr "A fájl feltöltése sikertelen, mert a szabad lemezterület már csak %s MB a feltöltött fájl mérete pedig %s MB." +msgid "%s is already set as the current storage dir or in the watched folders list." +msgstr "%s már be van állítva, mint jelenlegi tároló elérési útvonala vagy, a vizsgált mappák listájában." -#: airtime_mvc/application/models/StoredFile.php:1026 -msgid "" -"This file appears to be corrupted and will not be added to media library." -msgstr "A fájl úgy tűnik sérült, nem került be a médiatárba." +#: airtime_mvc/application/models/MusicDir.php:431 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s nem szerepel a vizsgáltak listáján." -#: airtime_mvc/application/models/StoredFile.php:1065 -msgid "" -"The file was not uploaded, this error can occur if the computer hard drive " -"does not have enough disk space or the stor directory does not have correct " -"write permissions." -msgstr "A fájl feltöltése sikertelen, valószínű, hogy a számítógép merevlemezén nincs elég hely, vagy a tárolási könyvtár nem rendelkezik megfelelő írási engedélyekkel." +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Úrjaközvetítés %s -tól/-től %s" #: airtime_mvc/application/models/Show.php:180 msgid "Shows can have a max length of 24 hours." @@ -3796,116 +3875,27 @@ msgstr "A műsorok maximum 24 óra hosszúságúak lehetnek." msgid "" "Cannot schedule overlapping shows.\n" "Note: Resizing a repeating show affects all of its repeats." -msgstr "Az ütemzés nem fedheti át a műsorokat.\nMegjegyzés: Az ismételt műsorok átméretezése kavarodást okozhat." - -#: airtime_mvc/application/models/Auth.php:33 -#, php-format -msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Üdv. %s, \n\nErre a hivatkozásra kattintva visszaállíthatja a jelszavát: " - -#: airtime_mvc/application/models/Auth.php:36 -#, php-format -msgid "%s Password Reset" -msgstr "%s Jelszó Visszaállítás" - -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "Rögzített fájl nem létezik" - -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "A Rögzített Fájl Metaadatai" - -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Műsor Tartalom" - -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Minden Tartalom Eltávolítása" - -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Jelenlegi Műsor Megszakítása" - -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" -msgstr "Szerkesztés Ebben az Esetben" - -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Műsor Szerkesztése" - -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Törlés Ebben az Esetben" - -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Törlés Ebben és Minden Más Esetben" - -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "Engedély megtagadva" - -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Nem lehet megismételni a fogd és vidd típusú műsorokat" - -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Az elhangzott műsort nem lehet áthelyezni" - -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "A műsort nem lehet a múltba áthelyezni" - -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "A rögzített műsort, 1 óránál korábban nem lehet újra közvetíteni." - -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "A műsor törlésre került, mert a rögzített műsor nem létezik!" - -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Az adás újbóli közvetítésére 1 órát kell várni." - -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" -msgstr "Dalszám" +msgstr "" +"Az ütemzés nem fedheti át a műsorokat.\n" +"Megjegyzés: Az ismételt műsorok átméretezése kavarodást okozhat." -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Lejátszva" +#~ msgid "can't resize a past show" +#~ msgstr "elhangzott adást nem lehet átméretezni" -#: airtime_mvc/application/common/DateHelper.php:213 -#, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "Az évnek %s 1753 - 9999 közötti tartományban kell lennie" +#~ msgid "Should not overlap shows" +#~ msgstr "Nem kellene, hogy a műsorok fedjék egymást" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "Naplózási Sablonok" -#: airtime_mvc/application/common/DateHelper.php:216 -#, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s érvénytelen dátum" +#~ msgid "Failed to create 'organize' directory." +#~ msgstr "Nem sikerült létrehozni 'szervező' könyvtárat." -#: airtime_mvc/application/common/DateHelper.php:240 -#, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s:%s:%s érvénytelen időpont" +#~ msgid "The file was not uploaded, there is %s MB of disk space left and the file you are uploading has a size of %s MB." +#~ msgstr "A fájl feltöltése sikertelen, mert a szabad lemezterület már csak %s MB a feltöltött fájl mérete pedig %s MB." -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Kérjük, válasszon egy lehetőséget" +#~ msgid "This file appears to be corrupted and will not be added to media library." +#~ msgstr "A fájl úgy tűnik sérült, nem került be a médiatárba." -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "Nincsennek Nyilvántartások" +#~ msgid "The file was not uploaded, this error can occur if the computer hard drive does not have enough disk space or the stor directory does not have correct write permissions." +#~ msgstr "A fájl feltöltése sikertelen, valószínű, hogy a számítógép merevlemezén nincs elég hely, vagy a tárolási könyvtár nem rendelkezik megfelelő írási engedélyekkel." diff --git a/airtime_mvc/locale/it_IT/LC_MESSAGES/airtime.po b/airtime_mvc/locale/it_IT/LC_MESSAGES/airtime.po index 7fa4546022..c08fe0e266 100644 --- a/airtime_mvc/locale/it_IT/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/it_IT/LC_MESSAGES/airtime.po @@ -1,1148 +1,1567 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: -# danse , 2014 +# danse , 2014 # Sourcefabric , 2012 -# xorxi , 2014 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: Italian (Italy) (http://www.transifex.com/projects/p/airtime/language/it_IT/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-02-04 20:40+0000\n" +"Last-Translator: danse \n" +"Language-Team: Italian (Italy) (http://www.transifex.com/projects/p/airtime/" +"language/it_IT/)\n" +"Language: it_IT\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: it_IT\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Audio Player" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Seleziona opzioni" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Esci" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "No registrazione" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "L'anno %s deve essere compreso nella serie 1753 - 9999" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s non è una data valida" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Cue In" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s:%s:%s non è un ora valida" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "In esecuzione" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Cue Out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Aggiungi Media" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Biblioteca" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Calendario" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Dissolvenza in entrata" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "Sistema" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Dissolvenza in uscita" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Preferenze" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Utenti" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Live stream" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Cartelle dei Media" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Attiva:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Streams" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Tipo di stream:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Support Feedback" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Velocità di trasmissione: " +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Stato" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Tipo di servizio:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Statistiche ascolto" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Canali:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Storico playlist" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Server" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Aiuto" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Carattere inserito non valido" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Iniziare" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Port" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "Manuale utente" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Solo numeri." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "Chi siamo" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Password" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Genere" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "Vedi file registrati Metadata" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Vedi su SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Nome" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Carica su SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Descrizione" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Carica su SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Mount Point" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Contenuto show" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Nome utente" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Aggiungi/Rimuovi contenuto" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Rimuovi il contenuto" + +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Cancella show attuale" + +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "" + +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Edita" + +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Edita show" + +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Cancella" + +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Cancella esempio" + +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Cancella esempio e tutto il seguito" + +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "" + +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "Non puoi spostare show ripetuti" + +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "Non puoi spostare uno show passato" + +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Non puoi spostare uno show nel passato" + +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Non puoi sovrascrivere gli show" + +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "" +"Non puoi spostare uno show registrato meno di un'ora prima che sia " +"ritrasmesso." + +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "Lo show è stato cancellato perché lo show registrato non esiste!" + +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "Devi aspettare un'ora prima di ritrasmettere." + +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Titolo" + +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Creatore" + +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Album" + +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Lunghezza" + +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Genere" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Genere (Mood)" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Etichetta" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Compositore" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Copyright" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Anno" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Conduttore" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Lingua" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Riprodotti" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "File importato in corso..." + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Opzioni di ricerca avanzate" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Programma in ascolto troppo lungo" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "Nuovo" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "Nuova playlist" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "Nuovo blocca intelligente " + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "Nuove produzioni web" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Riproduzione casuale" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Casuale" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Salva playlist" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 +#: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 +#: airtime_mvc/application/forms/AddUser.php:110 +#: airtime_mvc/application/forms/SupportSettings.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 +msgid "Save" +msgstr "Salva" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Playlist crossfade" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "Vedi/edita descrizione" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Descrizione" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Dissolvenza in entrata:" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Dissolvenza in chiusura:" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "Non aprire playlist" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Espandi blocco statico" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Espandi blocco dinamico " + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Blocco intelligente vuoto" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Playlist vuota" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Cue in:" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(hh:mm:ss.t)" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Cue Out:" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Lunghezza originale:" + +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(ss.t)" + +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "Non aprire blocco intelligente" + +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sAirtime%s %s, il software di radio aperto per elencare e gestione di " +"stazione remota. %s" + +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "%sSourcefabric%s o.p.s. Airtime è distribuito da %sGNU GPL v.%s" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Benvenuti in Airtime!" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "" +"Può cominciato ad usare tAirtime per automatizzare le sue trasmissioni:" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Cominci aggiungendo i suoi file alla biblioteca usando 'Aggiunga Media'. " +"Può trascinare e trasportare i suoi file in questa finestra." + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Crea show cliccando su 'Calendario' nel menu e cliccando l'icona 'Show'. " +"Questo può essere uno show di una volta o a ripetizione. Solamente " +"l'amministratore e il direttore del programma possono aggiungere show." + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Aggiunga media allo show selezionando il suo show nel calendario, cliccando " +"sul sinistro e selezionando 'Aggiungi/Rimuovi Contenuto'" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Selezioni i suoi media dal pannello sinistro e trascini al suo show nel " +"pannello destro." + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "Può andare!" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "Per aiuto dettagliato, legga %suser manual%s." + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Live stream" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Seleziona stream:" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "disattiva microfono" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "attiva microfono" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "Tutto" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Ottenere informazioni dal server..." +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Il server non è libero." +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "Stream URL:" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Il port non può essere libero." +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Lunghezza predefinita:" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Mount non può essere vuoto con il server Icecast." +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "No webstream" -#: airtime_mvc/application/forms/EditAudioMD.php:19 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 msgid "Title:" msgstr "Titolo:" -#: airtime_mvc/application/forms/EditAudioMD.php:26 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 msgid "Creator:" msgstr "Creatore:" -#: airtime_mvc/application/forms/EditAudioMD.php:33 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 msgid "Album:" msgstr "Album:" -#: airtime_mvc/application/forms/EditAudioMD.php:40 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 msgid "Track:" msgstr "Traccia:" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Lunghezza" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Percentuale" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Velocità di trasmissione: " + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Umore:" + #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 msgid "Genre:" msgstr "Genere:" -#: airtime_mvc/application/forms/EditAudioMD.php:55 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 msgid "Year:" msgstr "Anno:" -#: airtime_mvc/application/forms/EditAudioMD.php:67 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 msgid "Label:" msgstr "Etichetta:" -#: airtime_mvc/application/forms/EditAudioMD.php:74 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" + #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 msgid "Composer:" msgstr "Compositore:" -#: airtime_mvc/application/forms/EditAudioMD.php:81 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 msgid "Conductor:" msgstr "Conduttore:" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Umore:" - -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" - -#: airtime_mvc/application/forms/EditAudioMD.php:105 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 msgid "Copyright:" msgstr "Copyright:" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "Numero ISRC :" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "Numero ISRC:" -#: airtime_mvc/application/forms/EditAudioMD.php:119 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 msgid "Website:" msgstr "Sito web:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 #: airtime_mvc/application/forms/EditAudioMD.php:126 #: airtime_mvc/application/forms/Login.php:52 #: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 msgid "Language:" msgstr "Lingua:" -#: airtime_mvc/application/forms/EditAudioMD.php:135 -#: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 -#: airtime_mvc/application/forms/SupportSettings.php:161 -#: airtime_mvc/application/controllers/LocaleController.php:283 -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 -msgid "Save" -msgstr "Salva" - -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Cancella" - -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Username:" - -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Password:" - -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Nome:" - -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Cognome:" - -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "E-mail:" - -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Cellulare:" - -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" - -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" - -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "tipo di utente:" - -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Ospite" - -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "DJ" - -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Programma direttore" - -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Amministratore " - -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Il nome utente esiste già ." - -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Colore sfondo:" - -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Colore testo:" - -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Data inizio:" - -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Data fine:" - -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Show:" - -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "Tutti i miei show:" - -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "giorni" - -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "Il giorno deve essere specificato" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Nome:" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "L'ora dev'essere specificata" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Descrizione:" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Aspettare almeno un'ora prima di ritrasmettere" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Web Stream" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Importa Folder:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Blocco intelligente e dinamico" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Folder visionati:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Blocco intelligente e statico" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Catalogo non valido" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Traccia audio" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Cerca utenti:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Contenuti playlist:" -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "Dj:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Contenuto di blocco intelligente e statico:" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Accedi" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Criteri di blocco intelligenti e dinamici:" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Digita le parole del riquadro." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Limiti" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Nome stazione" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL:" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "inserisci il tempo in secondi 0{.0}" - -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 #, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Permetti alla connessione remota dei siti di accedere\"Programma\" Info? %s(Abilita i widgets frontali.)" +msgid "%s's Settings" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Disattivato" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Scegli cartella" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Abilitato" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Imposta" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Importa cartelle:" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Aggiungi " + +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" msgstr "" +"Ripeti elenco visionato (Questo è utile se c'è da eseguire montaggio di " +"rete e può essere fuori sincronizzazione con Airtime)" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "La settimana inizia il" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Rimuovi elenco visionato" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Domenica" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "Sta guardando i cataloghi media." -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Lunedì" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Richiesto)" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Martedì" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Aiuti Airtime a migliorare facendo sapere a Sourcefabric come lo sta " +"usandolo. Queste informazioni saranno raccolte regolarmente per migliorare. " +"%s Clicchi su 'Spedisca aderenza feedback'e noi ci assicureremo che i " +"servizi da lei usati stanno migliorando." -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Mercoledì" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "Clicchi sotto per promuovere la sua Stazione su %sSourcefabric.org%s." -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Giovedì" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(Per promuovere la sua stazione, 'Spedisca aderenza feedback' deve essere " +"abilitato)." -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Venerdì" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(per scopi di verifica, non ci saranno pubblicazioni)" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Sabato" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Note: La lunghezze superiori a 600x600 saranno ridimensionate." -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Mostra cosa sto inviando" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Ripeti tipo:" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Trattamento dati Sourcefabric" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "settimanalmente" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Trova Shows" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Filtri Show:" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "Impostazioni sistema di servizio e-mail / posta" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "Impostazioni SoundCloud" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "mensilmente" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Scegli giorni:" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Seleziona giorni:" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Rimuovi" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Dom" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Stream" + +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Opzioni aggiuntive" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Lun" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "" +"La seguente informazione sarà esposta agli ascoltatori nelle loro " +"eseguzione:" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Mar" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(Il sito della tua radio)" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Mer" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "Stream URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Gio" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "Connessioni URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Ven" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Reimposta password" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Sab" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Registro Airtime" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." msgstr "" +"Aiuti Airtime a migliorare facendoci sapere come lo sta usando. Questa " +"informazione sarà raccolta regolarmente per migliorare.%sClicchi 'Si, " +"aiuta Airtime e noi ci assicureremo che i servizi da lei usati migliorino." -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." msgstr "" +"Clicchi sotto per pubblicare la sua stazione su %sSourcefabric.org%s. Per " +"promuovere la sua stazione, 'Spedisca aderenza feedback' deve essere " +"abilitato. Questi dati saranno raccolti." -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Termini e condizioni" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "Ripeti all'infinito?" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Impostazioni Input Stream" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "La data di fine deve essere posteriore a quella di inizio" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "Domini di connessione alla fonte URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Sovrascrivi" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Conferma nuova password" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "Ok" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "La password di conferma non corrisponde con la sua password." +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "Azzera" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Inserisci nuova password" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "Mostra connessioni alla fonte URL:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Seleziona criteri" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Opzioni di blocco intelligente" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Album" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Bit Rate (kbps)" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr "a" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Compositore" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "Files e criteri" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Conduttore" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "File e criteri" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Copyright" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Ripeti giorni:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Creatore" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Filtra storia" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Codificato da" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Chiudi" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Aggiungi show" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Etichetta" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Aggiorna show" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Lingua" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "Cosa" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Ultima modifica" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "Quando" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Ultima esecuzione" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Ingresso Stream diretta" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Lunghezza" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Registra e ritrasmetti" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Formato (Mime)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Chi" + +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Stile" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Genere (Mood)" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Start" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Proprietario" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Impostazioni Stream" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Ripeti" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Setting globale" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Velocità campione (kHz)" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Titolo" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Impostazioni Output Stream" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Numero traccia" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Gestisci cartelle media" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Caricato" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Zend Framework Default Application" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Sito web" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Pagina non trovata!" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Anno" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "La pagina che stai cercando non esiste! " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Seleziona modificatore" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "contiene" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "non contiene" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "è " +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "non è" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "inizia con" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "finisce con" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "è più di" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "è meno di" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "nella seguenza" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Nome" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "ore" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "minuti" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "elementi" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Inserisci blocco intelligente" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "Nuova password" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Statico" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "Prego inserire e confermare la sua nuova password nel seguente spazio." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Dinamico" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Accedi" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Permetti ripetizione tracce" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." +msgstr "" +"Benvenuti al demo online Airtime! Può accedere usando l'username 'consenti' " +"e la password 'consenti'." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Limitato a " +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." +msgstr "" +"Prego inserire la sua e-mail. Riceverà un link per creare una nuova " +"password via e-mail-" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Genera contenuto playlist e salva criteri" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "E-mail inviata" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Genere" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "Una e-mail è stata inviata" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Eseguzione casuale playlist" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Indietro a schermo login" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Casuale" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "Il margine non può essere vuoto o più piccolo di 0" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "Il margine non può superare le 24ore" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "Il valore deve essere un numero intero" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "precedente" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "500 è il limite massimo di elementi che può inserire" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "riproduci" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "Devi selezionare da Criteri e Modifica" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "pausa" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "La lunghezza deve essere nel formato '00:00:00'" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "next" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "Il valore deve essere nel formato (es. 0000-00-00 o 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "stop" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "Il valore deve essere numerico" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "volume massimo" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "Il valore deve essere inferiore a 2147483648" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Aggiornamenti richiesti" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 #, php-format -msgid "The value should be less than %s characters" -msgstr "Il valore deve essere inferiore a %s caratteri" +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." +msgstr "" +"Per riproduzione media, avrà bisogno di aggiornare il suo browser ad una " +"recente versione o aggiornare il suo %sFlash plugin%s." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "Il valore non deve essere vuoto" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Servizi" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Spegnimento automatico" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Durata" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Accensione automatica" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Cambia dissolvenza di transizione " +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Memoria" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "inserisci il tempo in secondi" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Versione Airtime" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Username principale" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Spazio disco" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Password principale" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Gestione utenti" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "Principale fonte di connessione URL" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "Nuovo Utente" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "Mostra la connessione fonte URL" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "id" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Principale fonte Port" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Nome utente" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Fonte principale Mount Point" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "Nome" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Mostra fonte Port" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Cognome" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Mostra fonte Mount Point" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "Tipo di utente" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "Non può usare lo stesso port del principale Dj port." +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Precedente:" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Port %s non disponibile" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Successivo:" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Telefono:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Source Streams" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Stazione sito web:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Fonte principale" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Paese:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Mostra fonte" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "Città :" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Programmazione play" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Descrizione stazione:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "IN ONDA" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Logo stazione: " +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Ascolta" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Invia supporto feedback:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Orario di stazione" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" -msgstr "" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "La sua versione di prova scade entro" -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." -msgstr "" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "giorni" -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "Autorizzo il trattamento dei miei dati personali." +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Acquisti la sua copia Airtime" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Il calore richiesto non può rimanere vuoto" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "Account personale" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Username:" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Password:" + +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "Digita le parole del riquadro." + +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Carattere inserito non valido" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "Il giorno deve essere specificato" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Registra da Line In?" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "L'ora dev'essere specificata" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Ritrasmetti?" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "Aspettare almeno un'ora prima di ritrasmettere" #: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "" +msgid "Use Airtime Authentication:" +msgstr "Usa autenticazione Airtime:" #: airtime_mvc/application/forms/AddShowLiveStream.php:16 msgid "Use Custom Authentication:" @@ -1164,2446 +1583,2695 @@ msgstr "Il campo nome utente non può rimanere vuoto." msgid "Password field cannot be empty." msgstr "Il campo della password non può rimanere vuoto." -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "E-mail" - -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Ripristina password" - -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Produzione Audio dell'hardware" - -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Tipo di Output" - -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Icecast Vorbis Metadata" - -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Etichetta Stream:" - -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Artista - Titolo" - -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Show - Artista - Titolo" - -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Nome stazione - Nome show" - -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "" - -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Attiva:" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Tipo di stream:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%value%' non è valido l'indirizzo e-mail nella forma base local-part@hostname" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Tipo di servizio:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" -msgstr "'%value%' non va bene con il formato data '%formato%'" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Canali:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" -msgstr "'%value%' è più corto di %min% caratteri" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" -msgstr "'%value%' è più lungo di %max% caratteri" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Stereo" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" -msgstr "'%value%' non è tra '%min%' e '%max%' compresi" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Server" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" -msgstr "" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Port" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' non si adatta al formato dell'ora 'HH:mm'" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Solo numeri." -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Data/Ora inizio:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Password" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Data/Ora fine:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Durata:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Mount Point" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Ripetizioni?" - -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Non creare show al passato" - -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Non modificare data e ora di inizio degli slot in eseguzione" - -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "L'ora e la data finale non possono precedere quelle iniziali" - -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Non ci può essere una durata <0m" - -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Non ci può essere una durata 00h 00m" - -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Non ci può essere una durata superiore a 24h" - -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Non puoi sovrascrivere gli show" - -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Nome:" - -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Show senza nome" - -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL:" - -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Descrizione:" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" -msgstr "Caricamento automatico Show registrati" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" -msgstr "Abilità caricamento SoudCloud" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" -msgstr "File contrassegnati automaticamente\"Scaricabili\" da SoundCloud" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" -msgstr "E-mail SoudCloud" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" -msgstr "Password SoudCloud" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" -msgstr "Tag SoundCloud: (separare i tag con uno spazio)" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" -msgstr "Impostazione predefinita genere:" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" -msgstr "Impostazione predefinita tipo di traccia:" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" -msgstr "Originale" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "Remix" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Ottenere informazioni dal server..." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "Live" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Il server non è libero." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "Registra" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Il port non può essere libero." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "Parlato" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Mount non può essere vuoto con il server Icecast." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "Podcast" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Importa Folder:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "Demo" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Folder visionati:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "Elaborazione in corso" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Catalogo non valido" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "Origine" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Il calore richiesto non può rimanere vuoto" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr " Riprodurre a ciclo continuo" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'%value%' non è valido l'indirizzo e-mail nella forma base local-" +"part@hostname" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "Effetto sonoro" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" +msgstr "'%value%' non va bene con il formato data '%formato%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "Campione singolo" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" +msgstr "'%value%' è più corto di %min% caratteri" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "Altro" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" +msgstr "'%value%' è più lungo di %max% caratteri" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Licenza predefinita:" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" +msgstr "'%value%' non è tra '%min%' e '%max%' compresi" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "Il lavoro è nel dominio pubblico" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" +msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "Tutti i diritti riservati" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Registra da Line In?" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Creative Commons Attribution" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Ritrasmetti?" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Creative Commons Attribution Noncommercial" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Colore sfondo:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Creative Commons Attribution No Derivate Works" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Colore testo:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Creative Commons Attribution Share Alike" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "E-mail" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Creative Commons Attribution Noncommercial Non Derivate Works" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Ripristina password" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Creative Commons Attribution Noncommercial Share Alike" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Cancella" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" msgstr "" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "Abilita E-mail di Sistema (reimposta password)" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Nome:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Reimposta password dalla E-mail" +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Cognome:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Configura Mail del Server" +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "E-mail:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Richiede l'autentificazione" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Cellulare:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Mail Server" +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "Indirizzo e-mail" +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" msgstr "" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Webstream senza titolo" - -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Webstream salvate." - -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Valori non validi." +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Il nome utente esiste già ." -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Inserisca per favore il suo nome utente e password" +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Produzione Audio dell'hardware" -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Nome utente o password forniti errati. Per favore riprovi." +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Tipo di Output" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "L' e-mail non può essere inviata. Controlli le impostazioni della sua mail e si accerti che è stata configurata correttamente." +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Icecast Vorbis Metadata" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "E-mail inserita non trovata." +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Etichetta Stream:" -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Ritrasmetti show %s da %s a %s" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Artista - Titolo" -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Scarica" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Show - Artista - Titolo" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "User aggiunto con successo!" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Nome stazione - Nome show" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "User aggiornato con successo!" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "" -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" msgstr "" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Pagina non trovata" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Errore applicazione " +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" +msgstr "Caricamento automatico Show registrati" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Registra:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" +msgstr "Abilità caricamento SoudCloud" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Stream Principale" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +msgstr "File contrassegnati automaticamente\"Scaricabili\" da SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Live Stream" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" +msgstr "E-mail SoudCloud" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Niente programmato" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" +msgstr "Password SoudCloud" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Show attuale:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" +msgstr "Tag SoundCloud: (separare i tag con uno spazio)" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Attuale" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" +msgstr "Impostazione predefinita genere:" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "Sta gestendo l'ultima versione" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" +msgstr "Impostazione predefinita tipo di traccia:" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "Nuova versione disponibile:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" +msgstr "Originale" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "Questa versione sarà presto aggiornata." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "Remix" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "Questa versione non è più sopportata." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "Live" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Per favore aggiorni" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "Registra" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Aggiungi all'attuale playlist" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "Parlato" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Aggiungi all' attuale blocco intelligente" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "Podcast" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Sto aggiungendo un elemento" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "Demo" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Aggiunte %s voci" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "Elaborazione in corso" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "Puoi solo aggiungere tracce ai blocchi intelligenti." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "Origine" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "Puoi solo aggiungere tracce, blocchi intelligenti, e webstreams alle playlist." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr " Riprodurre a ciclo continuo" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "Effetto sonoro" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Edita Metadata" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "Campione singolo" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Aggiungi agli show selezionati" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "Altro" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Seleziona" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Licenza predefinita:" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Seleziona pagina" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "Il lavoro è nel dominio pubblico" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Deseleziona pagina" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "Tutti i diritti riservati" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Deseleziona tutto" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Creative Commons Attribution" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "E' sicuro di voler eliminare la/e voce/i selezionata/e?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Creative Commons Attribution Noncommercial" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Creative Commons Attribution No Derivate Works" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Creative Commons Attribution Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Velocità di trasmissione" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Creative Commons Attribution Noncommercial Non Derivate Works" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Velocità campione" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Creative Commons Attribution Noncommercial Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Caricamento..." +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Nome stazione" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "Tutto" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "File" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "inserisci il tempo in secondi 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Playlist" +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Blocchi intelligenti" +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Web Streams" +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Permetti alla connessione remota dei siti di accedere\"Programma\" Info? " +"%s(Abilita i widgets frontali.)" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Tipologia sconosciuta:" +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Disattivato" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Sei sicuro di voler eliminare gli elementi selezionati?" +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Abilitato" + +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "" + +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Caricamento in corso..." +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "La settimana inizia il" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Dati recuperati dal server..." +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Domenica" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "L'ID soundcloud per questo file è:" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Lunedì" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "Si è presentato un errore durante il caricamento a suondcloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Martedì" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Errore codice:" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Mercoledì" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Errore messaggio:" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Giovedì" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "L'ingresso deve essere un numero positivo" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Venerdì" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "L'ingresso deve essere un numero" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Sabato" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "L'ingresso deve essere nel formato : yyyy-mm-dd" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Data inizio:" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "L'ingresso deve essere nel formato : hh:mm:ss.t" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Data fine:" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "Stai attualmente scaricando file. %sCambiando schermata cancellerà il processo di caricamento. %sSei sicuro di voler abbandonare la pagina?" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Telefono:" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Stazione sito web:" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "inserisca per favore il tempo '00:00:00(.0)'" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Paese:" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "inserisca per favore il tempo in secondi '00(.0)'" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "Città :" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Il suo browser non sopporta la riproduzione di questa tipologia di file:" +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Descrizione stazione:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Il blocco dinamico non c'è in anteprima" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Logo stazione: " -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Limitato a:" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Invia supporto feedback:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Playlist salvata" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Promuovi la mia stazione su Sourcefabric.org" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." msgstr "" +"Spuntando questo box, acconsento il trattamento dei miei dati personali " +"attraverso la %sprivacy policy%s di Sourcefabric." -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime è insicuro sullo stato del file. °Questo può accadere quando il file è su un drive remoto che non è accessibile o il file è su un elenco che non viene più visionato." +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "Autorizzo il trattamento dei miei dati personali." -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "Programma in ascolto su %s: %s" +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' non si adatta al formato dell'ora 'HH:mm'" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Ricordamelo tra 1 settimana" +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Data/Ora inizio:" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Non ricordarmelo" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Data/Ora fine:" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Si, aiuta Airtime" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Durata:" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "L'immagine deve essere in formato jpg, jpeg, png, oppure gif" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "Uno statico blocco intelligente salverà i criteri e genererà il blocco del contenuto immediatamente. Questo permette di modificare e vedere la biblioteca prima di aggiungerla allo show." +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Ripetizioni?" -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "Un dinamico blocco intelligente salverà i criteri. Il contenuto del blocco sarà generato per aggiungerlo ad un show. Non riuscirà a vedere e modificare il contenuto della Biblioteca." +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Non creare show al passato" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "Alla lunghezza di blocco desiderata non si arriverà se Airtime non può trovare abbastanza tracce uniche per accoppiare i suoi criteri.Abiliti questa scelta se desidera permettere alle tracce di essere aggiunte molteplici volte al blocco intelligente." +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "Non modificare data e ora di inizio degli slot in eseguzione" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Blocco intelligente casuale" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "L'ora e la data finale non possono precedere quelle iniziali" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Blocco Intelligente generato ed criteri salvati" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Non ci può essere una durata <0m" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Blocco intelligente salvato" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Non ci può essere una durata 00h 00m" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Elaborazione in corso..." +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Non ci può essere una durata superiore a 24h" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Scelga l'archivio delle cartelle" +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Show senza nome" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Scelga le cartelle da guardare" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Cerca utenti:" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "E' sicuro di voler cambiare l'archivio delle cartelle?\n Questo rimuoverà i file dal suo archivio Airtime!" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "Dj:" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Gestisci cartelle media" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Conferma nuova password" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "E' sicuro di voler rimuovere le cartelle guardate?" +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "La password di conferma non corrisponde con la sua password." -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "Questo percorso non è accessibile attualmente." +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Inserisci nuova password" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "" +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "tipo di utente:" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Connesso al server di streaming." +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Ospite" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "Stream disattivato" +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "DJ" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Non può connettersi al server di streaming" +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Programma direttore" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Se Airtime è dietro un router o firewall, può avere bisogno di configurare il trasferimento e queste informazioni di campo saranno incorrette. In questo caso avrò bisogno di aggiornare manualmente questo campo per mostrare ospite/trasferimento/installa di cui il suo Dj ha bisogno per connettersi. La serie permessa è tra 1024 e 49151." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Amministratore " -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "Per maggiori informazioni, legga per favore il %sManuale Airtime%s" +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "Numero ISRC :" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Controllo questa opzione per abilitare metadata per le stream OGG (lo stream metadata è il titolo della traccia,artista, e nome dello show esposto in un audio player). VLC e mplayer riscontrano un grave errore nel eseguire le stream OGG/VORBIS che ha abilitata l'informazione metadata:si disconnetterà lo stream dopo ogni canzone. Se sta usando uno stream OGG ed i suoi ascoltatori non richiedono supporto nelle eseguzionu audio, può scegliere di abilitare questa opzione." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Show:" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Controlli questo spazio per uscire automaticamente dalla fonte Master/Show." +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "Tutti i miei show:" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Controlli questo spazio per accendere automaticamente alla fonte di Master / Show su collegamento di fonte." +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Se il suo server Icecast si aspetta un nome utente di 'fonte', questo spazio può essere lasciato in bianco." +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Ripeti tipo:" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "Se la live stream non risponde al nome utente, questo campo dovrebbe essere 'fonte'." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "settimanalmente" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "Se cambia in nome utente o la password per uno stream il playout sarà riavviato ed i suoi ascoltatori sentiranno silenzio per 5-10 secondi.Cambiando i seguenti campi non ci sarà un riavvio: Etichetta Stream (Impostazioni Globali), e Cambia dissolvenza di transizione, Nome utente e Password (Impostazioni Stream di immissione).Se Airtime sta registrando, e se il cambio provoca un nuovo inizio di motore di emissione, la registrazione sarà interrotta" +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "Nessun risultato trovato" +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "mensilmente" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "Questo segue lo stesso modello di sicurezza per gli show: solo gli utenti assegnati allo show possono connettersi." +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Seleziona giorni:" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Imposta autenticazione personalizzata che funzionerà solo per questo show." +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "Dom" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "L'istanza dello show non esiste più!" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Lun" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Mar" + +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "Mer" + +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Gio" + +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Ven" + +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "Sab" + +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Show" +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "Ripeti all'infinito?" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "Lo show è vuoto" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "La data di fine deve essere posteriore a quella di inizio" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1min" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5min" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "Abilita E-mail di Sistema (reimposta password)" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10min" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Reimposta password dalla E-mail" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15min" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Configura Mail del Server" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30min" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Richiede l'autentificazione" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60min" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Mail Server" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Recupera data dal server..." +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "Indirizzo e-mail" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "Lo show non ha un contenuto programmato." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Seleziona criteri" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Bit Rate (kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "Gennaio" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" + +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "Febbraio" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "Marzo" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Codificato da" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "Aprile" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Ultima modifica" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "Maggio" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Ultima esecuzione" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "Giugno" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Formato (Mime)" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "Luglio" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Proprietario" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "Agosto" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Ripeti" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "Settembre" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Velocità campione (kHz)" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "Ottobre" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Numero traccia" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "Novembre" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Caricato" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "Dicembre" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Sito web" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Gen" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Seleziona modificatore" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Feb" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "contiene" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Mar" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "non contiene" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Apr" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "è " -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Giu" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "non è" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Lug" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "inizia con" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Ago" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "finisce con" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Set" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "è più di" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Ott" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "è meno di" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Nov" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "nella seguenza" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Dic" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "ore" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "oggi" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "minuti" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "giorno" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "elementi" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "settimana" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Inserisci blocco intelligente" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "mese" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Statico" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Gli show più lunghi del tempo programmato saranno tagliati dallo show successivo." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Dinamico" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Cancellare lo show attuale?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Permetti ripetizione tracce" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Fermare registrazione dello show attuale?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Limitato a " -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "OK" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Genera contenuto playlist e salva criteri" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Contenuti dello Show" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Genere" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Rimuovere tutto il contenuto?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Eseguzione casuale playlist" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Cancellare la/e voce/i selezionata/e?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "Il margine non può essere vuoto o più piccolo di 0" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Start" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "Il margine non può superare le 24ore" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "Fine" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "Il valore deve essere un numero intero" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Durata" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "500 è il limite massimo di elementi che può inserire" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Show vuoto" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "Devi selezionare da Criteri e Modifica" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Registrando da Line In" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "La lunghezza deve essere nel formato '00:00:00'" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Anteprima traccia" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"Il valore deve essere nel formato (es. 0000-00-00 o 0000-00-00 00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Non può programmare fuori show." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "Il valore deve essere numerico" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Spostamento di un elemento in corso" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "Il valore deve essere inferiore a 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 #, php-format -msgid "Moving %s Items" -msgstr "Spostamento degli elementi %s in corso" +msgid "The value should be less than %s characters" +msgstr "Il valore deve essere inferiore a %s caratteri" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "Il valore non deve essere vuoto" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Spegnimento automatico" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Accensione automatica" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Seleziona tutto" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Cambia dissolvenza di transizione " -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Nessuna selezione" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "inserisci il tempo in secondi" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Rimuovi le tracce in eccesso" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Username principale" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Rimuovi la voce selezionata" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Password principale" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Salta alla traccia dell'attuale playlist" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "Principale fonte di connessione URL" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Cancella show attuale" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "Mostra la connessione fonte URL" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Apri biblioteca per aggiungere o rimuovere contenuto" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Principale fonte Port" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Aggiungi/Rimuovi contenuto" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Fonte principale Mount Point" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "in uso" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Mostra fonte Port" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Disco" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Mostra fonte Mount Point" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Cerca in" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "Non può usare lo stesso port del principale Dj port." -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Apri" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Port %s non disponibile" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" msgstr "" +"Airtime Copyright ©Sourcefabric o.p.s.Tutti i diritti riservati." +"%sMantenuto e distribuito sotto GNU GPL v.3 da %sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Esci" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Dissolvenza in entrata" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Dissolvenza in uscita" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Audio Player" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Inserisca per favore il suo nome utente e password" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "Nome utente o password forniti errati. Per favore riprovi." + +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." msgstr "" +"L' e-mail non può essere inviata. Controlli le impostazioni della sua mail " +"e si accerti che è stata configurata correttamente." + +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "E-mail inserita non trovata." + +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Registra:" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Stream Principale" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Live Stream" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Niente programmato" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Show attuale:" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Attuale" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "Sta gestendo l'ultima versione" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "Nuova versione disponibile:" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Mostra/nascondi colonne" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "Questa versione sarà presto aggiornata." -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "Da {da} a {a}" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "Questa versione non è più sopportata." -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Per favore aggiorni" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "yyyy-mm-dd" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Aggiungi all'attuale playlist" -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Aggiungi all' attuale blocco intelligente" -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Sto aggiungendo un elemento" -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Dom" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "Aggiunte %s voci" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Lun" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "Puoi solo aggiungere tracce ai blocchi intelligenti." -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Mar" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "" +"Puoi solo aggiungere tracce, blocchi intelligenti, e webstreams alle " +"playlist." -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "Mer" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Gio" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Edita Metadata" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Ven" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Aggiungi agli show selezionati" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Sab" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Seleziona" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Chiudi" +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Seleziona pagina" -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Ore" +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Deseleziona pagina" -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Minuti" +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Deseleziona tutto" -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Completato" +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "E' sicuro di voler eliminare la/e voce/i selezionata/e?" -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Stato" +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Velocità di trasmissione" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Velocità campione" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "Caricamento..." -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "File" -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Playlist" -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Blocchi intelligenti" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Web Streams" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Tipologia sconosciuta:" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Sei sicuro di voler eliminare gli elementi selezionati?" + +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Caricamento in corso..." + +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Dati recuperati dal server..." -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "L'ID soundcloud per questo file è:" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "Si è presentato un errore durante il caricamento a suondcloud." -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Errore codice:" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Errore messaggio:" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "L'ingresso deve essere un numero positivo" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "L'ingresso deve essere un numero" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "L'ingresso deve essere nel formato : yyyy-mm-dd" -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "L'ingresso deve essere nel formato : hh:mm:ss.t" -#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "%d files queued" +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" msgstr "" +"Stai attualmente scaricando file. %sCambiando schermata cancellerà il " +"processo di caricamento. %sSei sicuro di voler abbandonare la pagina?" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "inserisca per favore il tempo '00:00:00(.0)'" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "inserisca per favore il tempo in secondi '00(.0)'" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " msgstr "" +"Il suo browser non sopporta la riproduzione di questa tipologia di file:" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Il blocco dinamico non c'è in anteprima" -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Limitato a:" -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Playlist salvata" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." msgstr "" +"Airtime è insicuro sullo stato del file. °Questo può accadere quando il " +"file è su un drive remoto che non è accessibile o il file è su un elenco " +"che non viene più visionato." -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "Non è consentito disconnettersi dalla fonte." - -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "Nessuna fonte connessa a questo ingresso." - -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "Non ha il permesso per cambiare fonte." - -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "Sta visualizzando una versione precedente di %s" - -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "Non può aggiungere tracce al blocco dinamico." - -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 -#, php-format -msgid "%s not found" -msgstr "%s non trovato" - -#: airtime_mvc/application/controllers/PlaylistController.php:144 +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 #, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "Non ha i permessi per cancellare la selezione %s(s)." - -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Qualcosa è andato storto." - -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "Può solo aggiungere tracce al blocco intelligente." - -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Playlist senza nome" +msgid "Listener Count on %s: %s" +msgstr "Programma in ascolto su %s: %s" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Blocco intelligente senza nome" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "Ricordamelo tra 1 settimana" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Playlist sconosciuta" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Non ricordarmelo" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "Non è permesso l'accesso alla risorsa." +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Si, aiuta Airtime" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "Non è permesso l'accesso alla risorsa." +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "L'immagine deve essere in formato jpg, jpeg, png, oppure gif" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." msgstr "" +"Uno statico blocco intelligente salverà i criteri e genererà il blocco del " +"contenuto immediatamente. Questo permette di modificare e vedere la " +"biblioteca prima di aggiungerla allo show." -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Richiesta errata. 'modalità ' parametro non riuscito." - -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Richiesta errata. 'modalità ' parametro non valido" - -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Anteprima" - -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Aggiungi a playlist" - -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Aggiungi al blocco intelligente" - -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Cancella" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"Un dinamico blocco intelligente salverà i criteri. Il contenuto del blocco " +"sarà generato per aggiungerlo ad un show. Non riuscirà a vedere e " +"modificare il contenuto della Biblioteca." -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." msgstr "" +"Alla lunghezza di blocco desiderata non si arriverà se Airtime non può " +"trovare abbastanza tracce uniche per accoppiare i suoi criteri.Abiliti " +"questa scelta se desidera permettere alle tracce di essere aggiunte " +"molteplici volte al blocco intelligente." -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Edita" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Blocco intelligente casuale" -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Blocco Intelligente generato ed criteri salvati" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Vedi su SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Blocco intelligente salvato" -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Carica su SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "Elaborazione in corso..." -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Carica su SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Scelga l'archivio delle cartelle" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "Nessuna azione disponibile" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Scelga le cartelle da guardare" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "Non ha il permesso per cancellare gli elementi selezionati." +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"E' sicuro di voler cambiare l'archivio delle cartelle?\n" +" Questo rimuoverà i file dal suo archivio Airtime!" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Non può cancellare i file programmati." +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "E' sicuro di voler rimuovere le cartelle guardate?" -#: airtime_mvc/application/controllers/LibraryController.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "Questo percorso non è accessibile attualmente." + +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 #, php-format -msgid "Copy of %s" +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." msgstr "" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Seleziona cursore" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Connesso al server di streaming." -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Rimuovere il cursore" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "Stream disattivato" -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "lo show non esiste" +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Non può connettersi al server di streaming" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Preferenze aggiornate." +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"Se Airtime è dietro un router o firewall, può avere bisogno di configurare " +"il trasferimento e queste informazioni di campo saranno incorrette. In " +"questo caso avrò bisogno di aggiornare manualmente questo campo per " +"mostrare ospite/trasferimento/installa di cui il suo Dj ha bisogno per " +"connettersi. La serie permessa è tra 1024 e 49151." -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Aggiornamento impostazioni assistenza." +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "Per maggiori informazioni, legga per favore il %sManuale Airtime%s" -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Support Feedback" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"Controllo questa opzione per abilitare metadata per le stream OGG (lo " +"stream metadata è il titolo della traccia,artista, e nome dello show " +"esposto in un audio player). VLC e mplayer riscontrano un grave errore nel " +"eseguire le stream OGG/VORBIS che ha abilitata l'informazione metadata:si " +"disconnetterà lo stream dopo ogni canzone. Se sta usando uno stream OGG ed " +"i suoi ascoltatori non richiedono supporto nelle eseguzionu audio, può " +"scegliere di abilitare questa opzione." -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Aggiornamento impostazioni Stream." +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Controlli questo spazio per uscire automaticamente dalla fonte Master/Show." -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "il percorso deve essere specificato" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Controlli questo spazio per accendere automaticamente alla fonte di Master / " +"Show su collegamento di fonte." -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Problemi con Liquidsoap..." +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"Se il suo server Icecast si aspetta un nome utente di 'fonte', questo spazio " +"può essere lasciato in bianco." -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "In esecuzione" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"Se la live stream non risponde al nome utente, questo campo dovrebbe essere " +"'fonte'." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Aggiungi Media" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"Se cambia in nome utente o la password per uno stream il playout sarà " +"riavviato ed i suoi ascoltatori sentiranno silenzio per 5-10 secondi." +"Cambiando i seguenti campi non ci sarà un riavvio: Etichetta Stream " +"(Impostazioni Globali), e Cambia dissolvenza di transizione, Nome utente e " +"Password (Impostazioni Stream di immissione).Se Airtime sta registrando, e " +"se il cambio provoca un nuovo inizio di motore di emissione, la " +"registrazione sarà interrotta" -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Biblioteca" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Calendario" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "Sistema" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "Nessun risultato trovato" -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Preferenze" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"Questo segue lo stesso modello di sicurezza per gli show: solo gli utenti " +"assegnati allo show possono connettersi." -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Utenti" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "" +"Imposta autenticazione personalizzata che funzionerà solo per questo show." -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Cartelle dei Media" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "L'istanza dello show non esiste più!" -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Streams" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Statistiche ascolto" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." msgstr "" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Storico playlist" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Show" -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "Lo show è vuoto" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Aiuto" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1min" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Iniziare" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5min" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "Manuale utente" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10min" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "Chi siamo" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15min" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Servizi" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30min" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Durata" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60min" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Recupera data dal server..." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Memoria" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "Lo show non ha un contenuto programmato." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." msgstr "" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Spazio disco" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "Gennaio" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "Impostazioni sistema di servizio e-mail / posta" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "Febbraio" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "Impostazioni SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "Marzo" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Ripeti giorni:" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "Aprile" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Rimuovi" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "Maggio" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Aggiungi " +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "Giugno" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "Connessioni URL:" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "Luglio" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Impostazioni Input Stream" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "Agosto" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "Domini di connessione alla fonte URL:" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "Settembre" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Sovrascrivi" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "Ottobre" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "Ok" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "Novembre" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "Azzera" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "Dicembre" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "Mostra connessioni alla fonte URL:" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Gen" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Richiesto)" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "Feb" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Registro Airtime" +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "Mar" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "Apr" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "Giu" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(per scopi di verifica, non ci saranno pubblicazioni)" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "Lug" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Note: La lunghezze superiori a 600x600 saranno ridimensionate." +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "Ago" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Mostra cosa sto inviando" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "Set" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Termini e condizioni" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "Ott" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Reimposta password" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "Nov" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Scegli cartella" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "Dic" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Imposta" +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "oggi" + +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "giorno" + +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "settimana" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Importa cartelle:" +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "mese" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" +"Shows longer than their scheduled time will be cut off by a following show." msgstr "" +"Gli show più lunghi del tempo programmato saranno tagliati dallo show " +"successivo." -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Rimuovi elenco visionato" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Cancellare lo show attuale?" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "Sta guardando i cataloghi media." +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Fermare registrazione dello show attuale?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Stream" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "OK" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Opzioni aggiuntive" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Contenuti dello Show" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "La seguente informazione sarà esposta agli ascoltatori nelle loro eseguzione:" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Rimuovere tutto il contenuto?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(Il sito della tua radio)" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Cancellare la/e voce/i selezionata/e?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "Stream URL:" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "Fine" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Filtra storia" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Durata" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Trova Shows" +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Show vuoto" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Filtri Show:" +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Registrando da Line In" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Anteprima traccia" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Non può programmare fuori show." -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(Per promuovere la sua stazione, 'Spedisca aderenza feedback' deve essere abilitato)." +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Spostamento di un elemento in corso" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Trattamento dati Sourcefabric" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Spostamento degli elementi %s in corso" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" msgstr "" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" msgstr "" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Scegli giorni:" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Opzioni di blocco intelligente" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Seleziona tutto" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Nessuna selezione" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Rimuovi le tracce in eccesso" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr "a" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Rimuovi la voce selezionata" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "Files e criteri" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Salta alla traccia dell'attuale playlist" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "File e criteri" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Cancella show attuale" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "Apri biblioteca per aggiungere o rimuovere contenuto" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "in uso" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Disco" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Cerca in" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Apri" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "Nuovo" - -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "Nuova playlist" - -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "Nuovo blocca intelligente " +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "Nuove produzioni web" +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "Vedi/edita descrizione" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "Stream URL:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Lunghezza predefinita:" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "No webstream" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Impostazioni Stream" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Setting globale" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" msgstr "" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Impostazioni Output Stream" +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "File importato in corso..." +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Opzioni di ricerca avanzate" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "precedente" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "riproduci" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Mostra/nascondi colonne" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "pausa" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "Da {da} a {a}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "next" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "stop" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "yyyy-mm-dd" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "disattiva microfono" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "hh:mm:ss.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "attiva microfono" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "volume massimo" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "Dom" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Aggiornamenti richiesti" +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Lun" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "Per riproduzione media, avrà bisogno di aggiornare il suo browser ad una recente versione o aggiornare il suo %sFlash plugin%s." +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Mar" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Lunghezza" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "Mer" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Percentuale" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Gio" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "Numero ISRC:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Ven" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "Sab" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Web Stream" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Ore" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Blocco intelligente e dinamico" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Minuti" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Blocco intelligente e statico" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Completato" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Traccia audio" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Contenuti playlist:" +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Contenuto di blocco intelligente e statico:" +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Criteri di blocco intelligenti e dinamici:" +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Limiti" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Programma in ascolto troppo lungo" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Welcome to %s!" +msgid "Uploaded %d/%d files" +msgstr "" + +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 -#, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Cominci aggiungendo i suoi file alla biblioteca usando 'Aggiunga Media'. Può trascinare e trasportare i suoi file in questa finestra." +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Crea show cliccando su 'Calendario' nel menu e cliccando l'icona 'Show'. Questo può essere uno show di una volta o a ripetizione. Solamente l'amministratore e il direttore del programma possono aggiungere show." +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Aggiunga media allo show selezionando il suo show nel calendario, cliccando sul sinistro e selezionando 'Aggiungi/Rimuovi Contenuto'" +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Selezioni i suoi media dal pannello sinistro e trascini al suo show nel pannello destro." +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "Può andare!" +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "Per aiuto dettagliato, legga %suser manual%s." +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Seleziona stream:" +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." +msgid "File: %s" msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" +msgid "%d files queued" msgstr "" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "Nuova password" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Prego inserire e confermare la sua nuova password nel seguente spazio." +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Prego inserire la sua e-mail. Riceverà un link per creare una nuova password via e-mail-" +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "E-mail inviata" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "Una e-mail è stata inviata" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Indietro a schermo login" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 #, php-format -msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +msgid "Copied %s row%s to the clipboard" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Precedente:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Successivo:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Source Streams" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Fonte principale" +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#, php-format +msgid "" +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." +msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Mostra fonte" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Anteprima" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Programmazione play" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Seleziona cursore" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "IN ONDA" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Rimuovere il cursore" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Ascolta" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "lo show non esiste" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Orario di stazione" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Preferenze aggiornate." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "La sua versione di prova scade entro" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Aggiornamento impostazioni assistenza." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Aggiornamento impostazioni Stream." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "Account personale" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "il percorso deve essere specificato" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Gestione utenti" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Problemi con Liquidsoap..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "Nuovo Utente" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Pagina non trovata" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "id" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Errore applicazione " -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "Nome" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s non trovato" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Cognome" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Qualcosa è andato storto." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "Tipo di utente" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Aggiungi a playlist" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Aggiungi al blocco intelligente" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Scarica" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" msgstr "" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Zend Framework Default Application" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "SoundCloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Pagina non trovata!" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "Nessuna azione disponibile" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "La pagina che stai cercando non esiste! " +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "Non ha il permesso per cancellare gli elementi selezionati." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Espandi blocco statico" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "Non può cancellare i file programmati." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Espandi blocco dinamico " +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Blocco intelligente vuoto" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Webstream senza titolo" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Playlist vuota" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Webstream salvate." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Valori non validi." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "Non è consentito disconnettersi dalla fonte." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Riproduzione casuale" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "Nessuna fonte connessa a questo ingresso." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Salva playlist" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "Non ha il permesso per cambiare fonte." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Playlist crossfade" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "User aggiunto con successo!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Dissolvenza in entrata:" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "User aggiornato con successo!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Dissolvenza in chiusura:" +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "Non aprire playlist" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Ritrasmetti show %s da %s a %s" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "Non è permesso l'accesso alla risorsa." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "Non aprire blocco intelligente" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "Non è permesso l'accesso alla risorsa." -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "Il file non esiste in Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Cue in:" +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "Il file non esiste in Airtime" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "Il file non esiste in Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Cue Out:" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Richiesta errata. 'modalità ' parametro non riuscito." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Lunghezza originale:" +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Richiesta errata. 'modalità ' parametro non valido" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Aggiungi show" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "Sta visualizzando una versione precedente di %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Aggiorna show" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "Non può aggiungere tracce al blocco dinamico." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "Cosa" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "Non ha i permessi per cancellare la selezione %s(s)." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "Quando" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "Può solo aggiungere tracce al blocco intelligente." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Ingresso Stream diretta" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Playlist senza nome" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Registra e ritrasmetti" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Blocco intelligente senza nome" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Chi" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Playlist sconosciuta" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Stile" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "Cue in e cue out sono nulli." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Ritrasmetti da %s a %s" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "Il cue out non può essere più grande della lunghezza del file." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Seleziona paese" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "Il cue in non può essere più grande del cue out." + +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Il cue out non può essere più piccolo del cue in." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3650,43 +4318,26 @@ msgstr "Webstream non valido - Questo potrebbe essere un file scaricato." msgid "Unrecognized stream type: %s" msgstr "Tipo di stream sconosciuto: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s è già stato visionato." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s contiene una sotto directory già visionata: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s annidato con una directory già visionata: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s non è una directory valida." - -#: airtime_mvc/application/models/MusicDir.php:232 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s è già impostato come attuale cartella archivio o appartiene alle cartelle visionate" - -#: airtime_mvc/application/models/MusicDir.php:386 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s è già impostato come attuale cartella archivio o appartiene alle cartelle visionate." +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Ciao %s, \n" +"\n" +" Clicca questo link per reimpostare la tua password:" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s non esiste nella lista delle cartelle visionate." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Reimposta la password di Airtime" + +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Seleziona paese" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3694,13 +4345,17 @@ msgstr "" #: airtime_mvc/application/models/Scheduler.php:119 msgid "The schedule you're viewing is out of date! (sched mismatch)" -msgstr "Il programma che sta visionando è fuori data! (disadattamento dell'orario)" +msgstr "" +"Il programma che sta visionando è fuori data! (disadattamento dell'orario)" #: airtime_mvc/application/models/Scheduler.php:124 msgid "The schedule you're viewing is out of date! (instance mismatch)" -msgstr "Il programma che sta visionando è fuori data! (disadattamento dell'esempio)" +msgstr "" +"Il programma che sta visionando è fuori data! (disadattamento dell'esempio)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3731,61 +4386,62 @@ msgid "" "broadcasted" msgstr "" -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." -msgstr "" - +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "Il File selezionato non esiste!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "Cue in e cue out sono nulli." - -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Il cue in non può essere più grande del cue out." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s è già stato visionato." -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Il cue out non può essere più grande della lunghezza del file." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s contiene una sotto directory già visionata: %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Il cue out non può essere più piccolo del cue in." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s annidato con una directory già visionata: %s" -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." -msgstr "Impossibile creare 'organize' directory." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s non è una directory valida." -#: airtime_mvc/application/models/StoredFile.php:1017 +#: airtime_mvc/application/models/MusicDir.php:232 #, php-format msgid "" -"The file was not uploaded, there is %s MB of disk space left and the file " -"you are uploading has a size of %s MB." -msgstr "Il file non è stato caricato, sono rimasti %s MB di spazio ed il file in caricamento ha una lunghezza di %s MB." +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s è già impostato come attuale cartella archivio o appartiene alle " +"cartelle visionate" -#: airtime_mvc/application/models/StoredFile.php:1026 +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format msgid "" -"This file appears to be corrupted and will not be added to media library." -msgstr "Il file risulta corrotto e non sarà aggiunto nella biblioteca." +"%s is already set as the current storage dir or in the watched folders list." +msgstr "" +"%s è già impostato come attuale cartella archivio o appartiene alle " +"cartelle visionate." -#: airtime_mvc/application/models/StoredFile.php:1065 -msgid "" -"The file was not uploaded, this error can occur if the computer hard drive " -"does not have enough disk space or the stor directory does not have correct " -"write permissions." -msgstr "Il file non è stato caricato, l'errore si può ripresentare se il disco rigido del computer non ha abbastanza spazio o il catalogo degli archivi non ha i giusti permessi." +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s non esiste nella lista delle cartelle visionate." + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Ritrasmetti da %s a %s" #: airtime_mvc/application/models/Show.php:180 msgid "Shows can have a max length of 24 hours." @@ -3795,116 +4451,152 @@ msgstr "Gli show possono avere una lunghezza massima di 24 ore." msgid "" "Cannot schedule overlapping shows.\n" "Note: Resizing a repeating show affects all of its repeats." -msgstr "Non si possono programmare show sovrapposti.\n Note: Ridimensionare uno slot a ripetizione colpisce tutte le sue ripetizioni." +msgstr "" +"Non si possono programmare show sovrapposti.\n" +" Note: Ridimensionare uno slot a ripetizione colpisce tutte le sue " +"ripetizioni." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/models/StoredFile.php:1017 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Ciao %s, \n\n Clicca questo link per reimpostare la tua password:" - -#: airtime_mvc/application/models/Auth.php:36 -#, php-format -msgid "%s Password Reset" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." msgstr "" +"Il file non è stato caricato, sono rimasti %s MB di spazio ed il file in " +"caricamento ha una lunghezza di %s MB." -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "" +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "Non puoi ridimensionare uno show passato" -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "Vedi file registrati Metadata" +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "Non si devono sovrapporre gli show" -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Contenuto show" +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." +msgstr "Impossibile creare 'organize' directory." -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Rimuovi il contenuto" +#: airtime_mvc/application/models/StoredFile.php:1026 +msgid "" +"This file appears to be corrupted and will not be added to media library." +msgstr "Il file risulta corrotto e non sarà aggiunto nella biblioteca." -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Cancella show attuale" +#: airtime_mvc/application/models/StoredFile.php:1065 +msgid "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." +msgstr "" +"Il file non è stato caricato, l'errore si può ripresentare se il disco " +"rigido del computer non ha abbastanza spazio o il catalogo degli archivi non " +"ha i giusti permessi." -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" +#: airtime_mvc/application/layouts/scripts/login.phtml:24 +#, php-format +msgid "" +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Edita show" +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#, php-format +msgid "Promote my station on %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Cancella esempio" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Cancella esempio e tutto il seguito" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Non puoi spostare show ripetuti" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Non puoi spostare uno show passato" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Non puoi spostare uno show nel passato" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Non puoi spostare uno show registrato meno di un'ora prima che sia ritrasmesso." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "Lo show è stato cancellato perché lo show registrato non esiste!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Devi aspettare un'ora prima di ritrasmettere." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Riprodotti" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "L'anno %s deve essere compreso nella serie 1753 - 9999" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s non è una data valida" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s:%s:%s non è un ora valida" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Seleziona opzioni" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "No registrazione" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/locale/ko_KR/LC_MESSAGES/airtime.po b/airtime_mvc/locale/ko_KR/LC_MESSAGES/airtime.po index 7260681fdb..030983fdfa 100644 --- a/airtime_mvc/locale/ko_KR/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/ko_KR/LC_MESSAGES/airtime.po @@ -1,3607 +1,4246 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: # Sourcefabric , 2012 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: Korean (Korea) (http://www.transifex.com/projects/p/airtime/language/ko_KR/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-01-29 15:11+0000\n" +"Last-Translator: andrey.podshivalov\n" +"Language-Team: Korean (Korea) (http://www.transifex.com/projects/p/airtime/" +"language/ko_KR/)\n" +"Language: ko_KR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ko_KR\n" "Plural-Forms: nplurals=1; plural=0;\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "오디오 플레이어" - -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "로그아웃" - -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "재생" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "옵션을 선택 해주세요" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "정지" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "레코드 없음" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "큐 인" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "년도 값은 %s 1753 - 9999 입니다" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s는 맞지 않는 날짜 입니다" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "큐 아웃" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s:%s:%s는 맞지 않는 시간 입니다" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "큐 아웃 설정" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "방송중" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "커서" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "미디어 추가" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "페이드 인" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "라이브러리" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "패이드 아웃" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "스케쥴" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "시스템" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "라이브 스트림" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "설정" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "사용:" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "계정" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "스트림 타입:" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "미디어 폴더" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "비트 레이트:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "스트림" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "서비스 타입:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "사용자 피드백" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "채널:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "상태" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - 모노" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "청취자 통계" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - 스테레오" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "서버" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "방송 기록" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "허용되지 않는 문자입니다" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "포트" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "도움" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "숫자만 허용 됩니다" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "초보자 가이드" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "암호" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "사용자 메뉴얼" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "장르" +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "정보" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "이름" - -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "설명" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "녹음된 파일의 메타데이타 보기" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "마운트 지점" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Soundcloud 보기" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "아이디" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Soundcloud에 업로드" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "관리자 아이디" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Soundcloud에 다시 업로드" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "관리자 암호" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "쇼 내용 보기" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "서버에서 정보를 받는중..." +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "내용 추가/제거" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "서버를 지정해주세요" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "내용 모두 삭제" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "포트를 지정해주세요" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "현재 쇼 취소" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Icecast 서버는 마운트 지점을 지정해야 합니다" +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" -msgstr "제목:" +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "수정" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" -msgstr "제작자:" +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "쇼 수정" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "앨범:" +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "삭제" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "트랙:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "이 인스턴스 삭제" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" -msgstr "장르:" +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "이 인스턴스와 이후에 모든 인스턴스 삭제" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" -msgstr "년도:" +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "권한이 부족합니다" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" -msgstr "상표:" +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "반복쇼는 드래그 앤 드롭 할수 없습니다" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" -msgstr "작곡가:" +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "지난 쇼는 이동할수 없습니다" -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" -msgstr "지휘자" +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "과거로 쇼를 이동할수 없습니다" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "쇼를 중복되게 스케쥴할수 없습니다" + +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "녹화 쇼를 재방송 시작 1시간 안으로 이동할수 없습니다" + +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "녹화 쇼가 없으로 쇼가 삭제 되었습니다" + +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "녹화 쇼와 재방송 사이에는 1시간의 간격이 필요합니다 " + +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "제목" + +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "제작자" + +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "앨범" + +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "길이" + +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "장르" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" msgstr "무드" -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "레이블" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "작곡가" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" -msgstr "저작권:" +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "저작권" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "ISRC 넘버" +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "년도" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" -msgstr "웹사이트" +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "지휘자" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" msgstr "언어" +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "방송됨" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "파일 가져오기 진행중" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "고급 검색 옵션" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "시간 경과에 따른 청취자 숫자 " + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "새로 만들기" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "새 재생 목록" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "새 스마트 블록" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "새 웹스트림" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "재생 목록 비우기" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "지우기" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "재생 목록 셔플" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "셔플" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "재생 목록 저장" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 #: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 #: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 #: airtime_mvc/application/forms/SupportSettings.php:161 #: airtime_mvc/application/controllers/LocaleController.php:283 #: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 #: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 msgid "Save" msgstr "저장" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "취소" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "재생 목록 크로스페이드" -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "아이디: " +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "설명 보기/수정" -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "암호: " +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "설명" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "암호 확인:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "페이드 인: " -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "이름:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "페이드 아웃:" -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "성:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "열린 재생 목록 없음" -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "이메일" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "정적 블록 확장" -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "휴대전화:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "동적 블록 확장" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "스카입:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "내용물 없음" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "내용물 없음" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "유저 타입" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "웨이브 폼 보기" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "손님" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "큐 인:" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "프로그램 매니저" - -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "관리자" - -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "사용할수 없는 아이디 입니다" - -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "배경 색:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "큐 아웃:" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "글자 색:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "오리지날 길이" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "시작" +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "종료" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "스마트 블락 내용 지우기" -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "쇼: " +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "열린 스마트 블록 없음" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "내 쇼:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "일" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "날짜를 설정하세요" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Airtime에 오신걸 환영합니다" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "시간을 설정하세요" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "Airtime을 이용하여 방송을 자동화 할수 있는 기본 가이드 입니다:" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "재방송 설정까지 1시간 기간이 필요합니다" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"미디어 추가 페이지로 가셔서 원하는 파일을 드래그 앤 드랍 하십시오. 라이브러" +"리 페이지를 가시면 업로드된 파일을 확인 할수 있습니다." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "폴더 가져오기" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"스케쥴 페이지에 가셔서 원하는 날짜에 더블클릭 하셔서 쇼를 생성 하십시오. 관지" +"자와 프로그램 매니저만 쇼를 생성할수 있는 권한이 있습니다" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "모니터중인 폴더" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "만드신 쇼에 클릭을 하신다음 '내용 추가/제거' 를 클릭하십시오." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "옳치 않은 폴더 입니다" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"왼쪽 라이브러리 스크린에서 오른쪽 쇼 내용 패널로 드래그 앤 드랍 하며 미디어" +"를 추가 합니다" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "사용자 검색:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "첫 번째 쇼를 성공적으로 생성 하였습니다." -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "DJ들:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "더 자세한 도움을 원하시면, 메뉴얼을 참고 하여 주세요. %suser manual%s" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "로그인" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "라이브 스트림" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "밑에 보이는 그림에 나온 문자를 입력하세요" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "공유" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "방송국 이름" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "스트림 선택" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "기본 크로스페이드 길이(s)" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "음소거" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "초단위를 입력해주세요 0{.0}" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "음소거 해제" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "기본 페이드 인(s)" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "전체" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "기본 페이드 아웃(s)" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "리모트 웹사이트에서 스케쥴 정보에 접근을 허용? %s (위젯을 사용하려면 체크 하세요)" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "미사용" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "사용" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "스트림 URL:" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "기본 인터페이스 언어" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "기본 길이:" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "열린 웹스트림 없음" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "주 시작일" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "제목:" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "일요일" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "제작자:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "월요일" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "앨범:" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "화요일" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "트랙:" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "수요일" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "길이:" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "목요일" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "샘플 레이트:" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "금요일" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "비트 레이트:" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "토요일" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "무드" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "링크:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "장르:" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "반복 유형:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "년도:" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "주간" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "상표:" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "작곡가:" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "지휘자" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "월간" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "저작권:" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "날짜 선택" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "ISRC 넘버:" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "일" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "웹사이트" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "월" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" +msgstr "언어" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "화" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "파일 위치:" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "수" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "이름:" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "목" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "설명:" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "금" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "웹스트림" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "토" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "동적 스마트 블록" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "정적 스마트 블록" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "월중 날짜" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "오디오 트랙" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "주중 날짜" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "재생목록 내용" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "무한 반복?" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "정적 스마트 블록 내용: " -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "종료 일이 시작일 보다 먼져 입니다." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "동적 스마트 블록 내용: " -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "길이 제한 " + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "새 암호 확인" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "암호와 암호 확인 값이 일치 하지 않습니다." +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "새 암호 받기" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "기준 선택" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "%s의 설정" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "앨범" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "폴더 선택" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "비트 레이트(Kbps)" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "저장" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "현재 저장 폴더:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "작곡가" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "추가" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "지휘자" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"모니터중인 폴더 다시 검색(네트워크 드라이브를 모니터중일떄, Airtime과 동기" +"화 실패시 사용)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "저작권" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "모니터중인 폴더를 리스트에서 삭제" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "제작자" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "모니터중인 폴더가 없습니다" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(*)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." msgstr "" +"Airtime 사용자들 께서 피드백을 보내주시면, 그걸 기본으로 사용자들이 원하는 방" +"향으로 나아가는Airtime이 되겠습니다. %s'Airtime 도와주기' 클릭하여 피드백을 " +"보내주세요" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "레이블" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "%sSourcefabric.org%s에 방송국을 홍보 하시려면 체크 하세요." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "언어" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "(체크 하기 위해선 '피드백 보내기'를 체크 하셔야 합니다)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "마지막 수정일" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(확인을 위한것입니다, 이 정보는 어디에도 게시 되지 않습니다)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "마지막 방송일" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "주의: 600*600보다 큰 이미지는 사이즈가 수정 됩니다" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "길이" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "보내지는 데이타 보기" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Sourcefabric 이용 약관" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "무드" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "쇼 찾기" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "소유자" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "쇼 필터" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "리플레이 게인" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "이메일/메일 서버 설정" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "샘플 레이트" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "SoundCloud 설정" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "제목" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "날짜 선택" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "트랙 번호" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "제거" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "업로드 날짜" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "스트림 " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "웹싸이트" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "추가 설정" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "년도" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "밑에 정보들은 청취자에 플래이어에 표시 됩니다:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "모디파이어 선택" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(방송국 웹사이트 주소)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "다음을 포합" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "스트림 URL: " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "다음을 포함하지 않는" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "접속 URL:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "다음과 같음" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "암호 초기화" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "다음과 같지 않음" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Airtime 등록" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "다음으로 시작" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "" +"Airtime 사용자들 께서 피드백을 보내주시면, 그걸 기본으로 사용자들이 원하는 방" +"향으로 나아가는Airtime이 되겠습니다. %s'Airtime 도와주기' 클릭하여 피드백을 " +"보내주세요" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "다음으로 끝남" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"%sSourcefabric.org%s에 방송국을 홍보 하시려면 체크 하세요. 체크 하기 위해선 " +"'피드백 보내기'를 체크 하셔야 합니다" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "다음 보다 큰" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "사용자 약관" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "다음 보타 작은" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "입력 스트림 설정" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "다음 범위 안에 있는 " +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "마스터 소스 접속 URL:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "시간" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "덮어쓰기" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "분" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "확인" + +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "초기화" + +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "쇼 소스 접속 URL:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "아이템" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "스마트 블록 옵션" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "스마트 블록 유형" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "정적(Static)" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "동적(Dynamic)" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr " 부터 " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "반복적인 트랙 허용:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "개의 파일들" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "길이 제한" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "개의 파일들" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "재생 목록 내용 생성후 설정 저장" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "반복 날짜:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "생성" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "필터 히스토리" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "재생 목록 내용 셔플하기" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "닫기" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "셔플" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "쇼 추가" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "길이 제한은 비어두거나 0으로 설정할수 없습니다" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "쇼 업데이트" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "길이 제한은 24h 보다 클수 없습니다" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "무엇" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "이 값은 정수(integer) 입니다" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "언제" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "아이템 곗수의 최대값은 500 입니다" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "라이브 스트림" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "기준과 모디파이어를 골라주세요" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "녹음 & 재방송" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "길이는 00:00:00 형태로 입력하세요" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "누구" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "이 값은 timestamp 형태 (e.g. 0000-00-00 or 0000-00-00 00:00:00) 로 입력해주세요" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "스타일" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "이 값은 숫자만 허용 됩니다" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "시작" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "이 값은 2147483648보다 작은 수만 허용 됩니다" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "락스트림 설정" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "이 값은 %s 문자보다 작은 길이만 허용 됩니다" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "전역 설정" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "이 값은 비어둘수 없습니다" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "자동 스위치 끄기" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "출력 스트림 설정" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "자동 스위치 켜기" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "미디어 폴더 관리" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "스위치 페이딩" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "초 단위를 입력해 주세요 00{.000000}" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "페이지를 찾을수 없습니다!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "마스터 아이디" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "찾는 페이지가 존재 하지 않습니다!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "마스터 암호" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "마스터 소스 접속 URL" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "쇼 소스 접속 URL" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "마스터 소스 포트" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "마스터 소스 마운트 지점" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "쇼 소스 포트" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "쇼 소스 마운트 지점" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "마스터 소스 포트와 같은 포트를 사용할수 없스니다" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "포트 %s는 이용 할수 없습니다" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "전화" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "이름" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "방송국 웹사이트" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "나라" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "도시" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "방송국 설명" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "새 암호" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "방송국 로고" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "새 암호 확인" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "사용자 피드백을 보냄" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "로그인" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" -msgstr "" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." +msgstr "Airtime 데모에 오신건 환영합니다! admin/admin으로 로그인 하십시오." -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." msgstr "" +"사용자 계정의 이메일을 입력해 주세요. 새로 암호를 설정할수 있는 링크가 포함" +"된 이메일이 전송 됩니다" -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "사용자 약관에 동의 하십시오" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "이메일이 전송 되었습니다" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "이 필드는 비워둘수 없습니다." +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "이메일이 전송 되었습니다" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "로그인 페이지로 가기" + +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" msgstr "" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" msgstr "" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" msgstr "" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Line In으로 녹음" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "이전" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "재방송?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "재생" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "중지" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "다음" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "정지" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "최대 음량 " + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "업데이트가 필요함" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 #, php-format -msgid "Use %s Authentication:" +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." msgstr "" +"미디어를 재생하기 위해선, 브라우저를 최신 버젼으로 업데이트 하시고, %sFlash " +"plugin%s도 업데이트 해주세요" -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Custom 인증 사용" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "서비스" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Custom 아이디" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "업타임" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Custom 암호" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "아이디를 입력해주세요" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "메모리" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "암호를 입력해주세요" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Airtime 버전" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "이메일" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "디스크 공간" -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "암호 복원" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "사용자 관리" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "하드에어 오디오 출력" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "새 사용자" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "출력 유형" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "아이디" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Icecast Vorbis 메타데이타" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "아이디" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "스트림 레이블" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "이름" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "아티스트 - 제목" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "성" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "쇼 - 아티스트 - 제목" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "사용자 유형" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "방송국 이름 - 쇼 이름" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "이전:" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "오프 에어 메타데이타" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "다음:" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "리플레이 게인 활성화" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "소스 스트림" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "리플레이 게인 설정" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "마스터 소스" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%value%'은 맞지 않는 이메일 형식 입니다." +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "쇼 소스" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" -msgstr "'%value%'은 날짜 형식('%format%')에 맞지 않습니다." +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "스케쥴" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" -msgstr "'%value%'는 %min%글자 보다 짧을수 없습니다" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "방송중" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" -msgstr "'%value%'는 %max%글자 보다 길수 없습니다" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "듣기" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" -msgstr "'%value%'은 '%min%'와 '%max%' 사이에 있지 않습니다." +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "방송국 시간" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" -msgstr "암호가 맞지 않습니다" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr " " -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%'은 시간 형식('HH:mm')에 맞지 않습니다." +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "일" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "날짜/시간 시작:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Airtime을 구입하세요" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "날짜/시간 종료:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "내 계정" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "길이:" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "아이디: " -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "시간대:" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "암호: " -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "반복?" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "밑에 보이는 그림에 나온 문자를 입력하세요" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "쇼를 과거에 생성 할수 없습니다" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "허용되지 않는 문자입니다" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "이미 시작한 쇼의 시작 날짜/시간을 바꿀수 없습니다" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "날짜를 설정하세요" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "종료 날짜/시간을 과거로 설정할수 없습니다" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "시간을 설정하세요" -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "길이가 0m 보다 작을수 없습니다" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "재방송 설정까지 1시간 기간이 필요합니다" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "길이가 00h 00m인 쇼를 생성 할수 없습니다" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Airtime 인증 사용" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "쇼의 길이가 24h를 넘을수 없습니다" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Custom 인증 사용" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "쇼를 중복되게 스케쥴할수 없습니다" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Custom 아이디" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "이름:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Custom 암호" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "이름없는 쇼" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "아이디를 입력해주세요" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "암호를 입력해주세요" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "설명:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "사용:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" -msgstr "자동으로 녹음된 쇼 업로드 하기" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "스트림 타입:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" -msgstr "Soundcloud 업로드 사용" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "서비스 타입:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" -msgstr "Soundcloud에 자동으로 파일을 \"Downloadable\"로 마크" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "채널:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" -msgstr "SoundCloud 이메일" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - 모노" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" -msgstr "SoundCloud 암호" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - 스테레오" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" -msgstr "SoundCloud 태그: (여려 태그 입력시 띄어쓰기로 구분)" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "서버" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" -msgstr "기본 장르:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "포트" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" -msgstr "기본 트랙 타입:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "숫자만 허용 됩니다" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" -msgstr "오리지날" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "암호" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "리믹스" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "라이브" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "마운트 지점" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "녹음" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "관리자 아이디" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "인터뷰" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "관리자 암호" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "포드캐스트" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "서버에서 정보를 받는중..." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "데모" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "서버를 지정해주세요" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "진행중" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "포트를 지정해주세요" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Icecast 서버는 마운트 지점을 지정해야 합니다" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "폴더 가져오기" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "모니터중인 폴더" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "옳치 않은 폴더 입니다" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "이 필드는 비워둘수 없습니다." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "기본 라이센스:" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "'%value%'은 맞지 않는 이메일 형식 입니다." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" +msgstr "'%value%'은 날짜 형식('%format%')에 맞지 않습니다." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" +msgstr "'%value%'는 %min%글자 보다 짧을수 없습니다" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" +msgstr "'%value%'는 %max%글자 보다 길수 없습니다" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" +msgstr "'%value%'은 '%min%'와 '%max%' 사이에 있지 않습니다." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" +msgstr "암호가 맞지 않습니다" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Line In으로 녹음" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "재방송?" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "배경 색:" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "글자 색:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "시스템 이메일 사용(암호 리셋)" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "이메일" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "암호 초기화에 보낸이 이메일 주소" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "암호 복원" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "메일 서버 설정" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "취소" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "인증 필요" +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "암호 확인:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "메일 서버" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "이름:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "이메일 주소" +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "성:" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "시스템->스트림 에서 관리자 아이디/암호를 다시 확인하세요." +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "이메일" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "제목없는 웹스트림" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "휴대전화:" -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "웹스트림이 저장 되었습니다" +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "스카입:" -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "잘못된 값입니다" +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "" -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "아이디와 암호를 입력해주세요" +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "" -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "아이디와 암호가 맞지 않습니다. 다시 시도해주세요" +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "사용할수 없는 아이디 입니다" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "이메일을 전송 할수 없습니다. 메일 서버 세팅을 다시 확인 하여 주세요" +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "하드에어 오디오 출력" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "이메일을 찾을수 없습니다" +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "출력 유형" -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "%s의 재방송 %s부터 %s까지" +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Icecast Vorbis 메타데이타" -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "다운로드" +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "스트림 레이블" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "사용자가 추가 되었습니다!" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "아티스트 - 제목" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "사용자 정보가 업데이트 되었습니다!" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "쇼 - 아티스트 - 제목" -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "세팅이 성공적으로 업데이트 되었습니다!" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "방송국 이름 - 쇼 이름" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "페이지를 찾을수 없습니다" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "오프 에어 메타데이타" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Application 애러" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "리플레이 게인 활성화" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "녹음:" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "리플레이 게인 설정" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "마스터 스트림" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" +msgstr "자동으로 녹음된 쇼 업로드 하기" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "라이브 스트림" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" +msgstr "Soundcloud 업로드 사용" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "스케쥴 없음" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +msgstr "Soundcloud에 자동으로 파일을 \"Downloadable\"로 마크" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "현재 쇼:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" +msgstr "SoundCloud 이메일" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "현재" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" +msgstr "SoundCloud 암호" + +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" +msgstr "SoundCloud 태그: (여려 태그 입력시 띄어쓰기로 구분)" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "최신 버전입니다." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" +msgstr "기본 장르:" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "새 버젼이 있습니다" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" +msgstr "기본 트랙 타입:" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "지금 사용중인 버전은 조만간 지원 하지 않을것입니다" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" +msgstr "오리지날" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "지금 사용중인 버전은 더 이상 지원 되지 않습니다" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "리믹스" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "새 버전으로 업그래이드 " +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "라이브" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "현제 플레이리스트에 추가" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "녹음" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "현제 스마트 블록에 추가" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "인터뷰" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "아이템 1개 추가" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "포드캐스트" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "아이템 %s개 추가" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "데모" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "스마트 블록에는 파일만 추가 가능합니다" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "진행중" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "재생 몰록에는 파일, 스마트 블록, 웹스트림만 추가 가능합니다" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "타임 라인에서 커서를 먼져 선택 하여 주세요." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "메타데이타 수정" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "선택된 쇼에 추가" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "선택" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "현재 페이지 선택" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "기본 라이센스:" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "현재 페이지 선택 취소 " +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "모두 선택 취소" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "선택된 아이템들을 모두 지우시겠습니다?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "스케쥴됨" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "재생목록/블" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "비트 레이트" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "샘플 레이트" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "로딩..." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "전체" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "방송국 이름" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "파일" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "기본 크로스페이드 길이(s)" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "재생 목록" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "초단위를 입력해주세요 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "스마트 블록" +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "기본 페이드 인(s)" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "웹스트림" +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "기본 페이드 아웃(s)" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "알수 없는 유형:" +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"리모트 웹사이트에서 스케쥴 정보에 접근을 허용? %s (위젯을 사용하려면 체크 하" +"세요)" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "선택된 아이템을 모두 삭제 하시겠습니까?" +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "미사용" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "업로딩중..." +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "사용" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "서버에서 정보를 가져오는중..." +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "기본 인터페이스 언어" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "파일의 SoundCloud 아이디:" +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "SoundCloud에 업로딩중 에러가 발생했습니다." +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "주 시작일" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "에러 코드: " +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "일요일" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "에러 메세지: " +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "월요일" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "이 값은 0보다 큰 숫자만 허용 됩니다" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "화요일" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "이 값은 숫자만 허용합니다" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "수요일" + +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "목요일" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "yyyy-mm-dd의 형태로 입력해주세요" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "금요일" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "hh:mm:ss.t의 형태로 입력해주세요" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "토요일" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "현재 파일이 업로드 중입니다. %s다른 화면으로 이동하면 현재까지 업로드한 프로세스가 취소됩니다. %s이동하겠습니까?" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "시작" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "미디아 빌더 열기" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "종료" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "'00:00:00 (.0)' 형태로 입력해주세요" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "전화" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "초단위 '00 (.0)'로 입력해주세요" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "방송국 웹사이트" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "현재 사용중인 브라우저에선 이 파일을 play할수 없습니다: " +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "나라" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "동적인 스마트 블록은 프리뷰 할수 없습니다" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "도시" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "길이 제한: " +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "방송국 설명" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "재생 목록이 저장 되었습니다" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "방송국 로고" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "플레이 리스트가 셔플 되었습니다" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "사용자 피드백을 보냄" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime이 파일에 대해 정확히 알수 없습니다. 이 경우는 파일이 접근할수 없는 리모트 드라이브에 있거나, 파일이 있는 폴더가 더이상 모니터 되지 않을때 일어날수 있습니다." +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "내 방송국을 Sourcefabric.org에 홍보" -#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 #, php-format -msgid "Listener Count on %s: %s" -msgstr "%s의청취자 숫자 : %s" +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "이 박스에 체크함으로, Sourcefabric's %sprivacy policy%s에 동의합니다." -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "1주후에 다시 알림" +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "사용자 약관에 동의 하십시오" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "이 창을 다시 표시 하지 않음" +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%'은 시간 형식('HH:mm')에 맞지 않습니다." -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Airtime 도와주기" +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "날짜/시간 시작:" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "허용된 이미지 파일 타입은 jpg, jpeg, png 또는 gif 입니다" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "날짜/시간 종료:" -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "정적 스마트 블록은 크라이테리아를 저장하고 내용을 생성 합니다. 그러므로 쇼에 추가 하기전에 내용을 수정하실수 있습니다 " +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "길이:" -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "동적 스마트 블록은 크라이테리아만 저장하고 내용은 쇼에 추가 할때까지 생성하지 않습니다. 이는 동적 스마트 블록을 쇼에 추가 할때마다 다른 내용을 추가하게 됩니다." +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "시간대:" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "블록 생성시 충분한 파일을 찾지 못하면, 블록 길이가 원하는 길이보다 짧아 질수 있습니다. 이 옵션을 선택하시면,Airtime이 트랙을 반복적으로 사용하여 길이를 채웁니다." +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "반복?" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "스마트 블록이 셔플 되었습니다" +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "쇼를 과거에 생성 할수 없습니다" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "스마트 블록이 생성 되고 크라이테리아가 저장 되었습니다" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "이미 시작한 쇼의 시작 날짜/시간을 바꿀수 없습니다" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "스마트 블록이 저장 되었습니다" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "종료 날짜/시간을 과거로 설정할수 없습니다" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "진행중..." +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "길이가 0m 보다 작을수 없습니다" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "저장 폴더 선택" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "길이가 00h 00m인 쇼를 생성 할수 없습니다" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "모니터 폴더 선택" +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "쇼의 길이가 24h를 넘을수 없습니다" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "저장 폴더를 수정하길 원하십니까? 수정시 모든 파일이 라이브러리에서 사라집니다." +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "이름없는 쇼" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "미디어 폴더 관리" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "사용자 검색:" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "선택하신 폴더를 모니터 리스트에서 삭제 하시겠습ㄴ지까?" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "DJ들:" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "경로에 접근할수 없습니다" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "새 암호 확인" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "어떤 스트림은 추가 설정이 필요합니다. %sAAC+ 지원%s 또는 %sOpus 지원%s 설명" +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "암호와 암호 확인 값이 일치 하지 않습니다." -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "스트리밍 서버에 접속됨" +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "새 암호 받기" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "스트림이 사용되지 않음" +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "유저 타입" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "스트리밍 서버에 접속 할수 없음" +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "손님" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Airtime이 방화벽 뒤에 설치 되었다면, 포트 포워딩을 설정해야 할수도 있습니다. 이 경우엔 자동으로 생성된 이 정보가 틀릴수 있습니다. 수동적으로 이 필드를 수정하여 DJ들이 접속해야 하는서버/마운트/포트 등을 공지 하십시오. 포트 범위는 1024~49151 입니다." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "더 자세한 정보는 %sAirtime Manual%s에서 찾으실수 있습니다" +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "프로그램 매니저" + +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "관리자" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "OGG 스트림의 메타데이타를 사용하고 싶으시면, 이 옵션을 체크 해주세요. VLC나 mplayer 같은 플래이어들에서 버그가 발견되어 OGG 스트림을 메타데이타와 함꼐 사용시, 각 파일 종료시 스트림을 끊어버립니다." +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "ISRC 넘버" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "마스터/쇼 소스가 끊어졌을때 자동으로 스위치를 끔." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "쇼: " -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "마스터/쇼 소스가 접속 되었을때 자동으로 스위를 켬." +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "내 쇼:" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Icecast 서버 인증 아이디가 source로 설정이 되어있다면, 이 필드는 입렵 하실필요 없습니다." +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "링크:" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "현재 사용중이신 라이브 스트리밍 클라이언트에 사용자 필드가 없다면, 이 필드에 'source'라고 입력 해주세요." +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "반복 유형:" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "스트림 되고 있는 스트림에 아이디나 암호를 수정한다면, 플레이 아웃 엔진이 다시 시작되며, 청취자들이 5~10초 정도 정적이 들릴것입니다. 다음 필드들을 수정하는것은 엔진을 다시 시작 하지 않습니다: (스트림 레이블, 스위치 페이딩, 마스터 마이디, 마스터 암호). Airtime이 현재 녹음 중이고 엔진이 재시작 되면 녹음이 중단 됩니다" +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "주간" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "관리자 아이디/암호는 Icecast와 SHOUTcast에서 청취자 통계를 얻기 위해 필요합니다" +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "결과 없음" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "쇼에 지정된 사람들만 접속 할수 있습니다" +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "월간" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "커스텁 인증을 설정하시면, 아무나 그걸 사용하여 해당 쇼에 접속 가능합니다" +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "날짜 선택" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "쇼 인스턴스가 존재 하지 않습니다" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "일" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "주의: 쇼는 다시 링크 될수 없습니다" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "월" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "반복 되는 쇼를 링크하면, 반복 쇼에 스케쥴된 아이템들이 다른 반복 쇼에도 스케쥴이 됩니다" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "화" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "수" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "쇼" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "목" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "쇼가 비어 있습니다" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "금" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1분" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "토" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5분" +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10분" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "월중 날짜" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15분" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "주중 날짜" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30분" +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "무한 반복?" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60분" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "종료 일이 시작일 보다 먼져 입니다." -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "서버로부터 데이타를 불러오는중..." +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "내용이 없는 쇼입니다" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "시스템 이메일 사용(암호 리셋)" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "쇼가 완전히 채워지지 않았습니다" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "암호 초기화에 보낸이 이메일 주소" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "1월" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "메일 서버 설정" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "2월" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "인증 필요" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "3월" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "메일 서버" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "4월" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "이메일 주소" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "5월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "기준 선택" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "6월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "비트 레이트(Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "7월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "8월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "큐 인" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "9월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "큐 아웃" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "10월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "11월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "마지막 수정일" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "12월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "마지막 방송일" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "1월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "2월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "소유자" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "3월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "리플레이 게인" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "4월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "샘플 레이트" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "6월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "트랙 번호" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "7월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "업로드 날짜" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "8월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "웹싸이트" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "9월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "모디파이어 선택" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "10월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "다음을 포합" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "11월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "다음을 포함하지 않는" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "12월" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "다음과 같음" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "오늘" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "다음과 같지 않음" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "일별" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "다음으로 시작" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "주별" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "다음으로 끝남" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "월별" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "다음 보다 큰" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "쇼가 자신의 길이보다 더 길게 스케쥴 되었다면, 쇼 길이에 맞게 짤라지며, 다음 쇼가 시작 됩니다" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "다음 보타 작은" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "현재 방송중인 쇼를 중단 하시겠습니까?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "다음 범위 안에 있는 " -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "현재 녹음 중인 쇼를 중단 하시겠습니까?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "시간" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "확인" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "분" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "쇼 내용" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "아이템" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "모든 내용물 삭제하시겠습까?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "스마트 블록 유형" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "선택한 아이템을 삭제 하시겠습니까?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "정적(Static)" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "시작" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "동적(Dynamic)" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "종료" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "반복적인 트랙 허용:" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "길이" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "길이 제한" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "내용 없음" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "재생 목록 내용 생성후 설정 저장" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "라인 인으로 부터 녹음" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "생성" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "트랙 프리뷰" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "재생 목록 내용 셔플하기" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "쇼 범위 밖에 스케쥴 할수 없습니다" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "길이 제한은 비어두거나 0으로 설정할수 없습니다" + +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "길이 제한은 24h 보다 클수 없습니다" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "아이템 1개 이동" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "이 값은 정수(integer) 입니다" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "아이템 %s개 이동" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "아이템 곗수의 최대값은 500 입니다" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "페이드 에디터" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "기준과 모디파이어를 골라주세요" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "큐 에디터" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "길이는 00:00:00 형태로 입력하세요" -#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "웨이브 폼 기능은 Web Audio API를 지원하면 브라우저에서만 사용 가능합니다" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"이 값은 timestamp 형태 (e.g. 0000-00-00 or 0000-00-00 00:00:00) 로 입력해주세" +"요" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "전체 선택" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "이 값은 숫자만 허용 됩니다" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "전체 선택 취소" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "이 값은 2147483648보다 작은 수만 허용 됩니다" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "초과 예약된 트랙 제거" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "이 값은 %s 문자보다 작은 길이만 허용 됩니다" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "선택된 아이템 제거" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "이 값은 비어둘수 없습니다" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "현재 방송중인 트랙으로 가기" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "자동 스위치 끄기" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "현재 쇼 취소" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "자동 스위치 켜기" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "라이브러리 열기" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "스위치 페이딩" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "내용 추가/제거" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "초 단위를 입력해 주세요 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "사용중" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "마스터 아이디" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "디스크" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "마스터 암호" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "경로" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "마스터 소스 접속 URL" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "열기" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "쇼 소스 접속 URL" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "손님의 권한:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "마스터 소스 포트" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "스케쥴 보기" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "마스터 소스 마운트 지점" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "쇼 내용 보기" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "쇼 소스 포트" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "DJ의 권한:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "쇼 소스 마운트 지점" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "할당된 쇼의 내용 관리" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "마스터 소스 포트와 같은 포트를 사용할수 없스니다" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "미디아 파일 추가" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "포트 %s는 이용 할수 없습니다" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "플레이 리스트, 스마트 블록, 웹스트림 생성" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "자신의 라이브러리 내용 관리" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "로그아웃" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "프로그램 매니저의 권한:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "재생" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "쇼 내용 보기및 관리" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "정지" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "쇼 스케쥴 하기" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "모든 라이브러리 내용 관리" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "큐 아웃 설정" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "관리자의 권한:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "커서" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "설정 관리" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "페이드 인" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "사용자 관리" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "패이드 아웃" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "모니터 폴터 관리" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "오디오 플레이어" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "이시스템 상황 보기" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "아이디와 암호를 입력해주세요" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "방송 기록 접근 권한" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "아이디와 암호가 맞지 않습니다. 다시 시도해주세요" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "청취자 통계 보기" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "이메일을 전송 할수 없습니다. 메일 서버 세팅을 다시 확인 하여 주세요" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "컬럼 보이기/숨기기" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "이메일을 찾을수 없습니다" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr " {from}부터 {to}까지" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "녹음:" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "마스터 스트림" + +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "라이브 스트림" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "스케쥴 없음" -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "현재 쇼:" -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "현재" -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "일" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "최신 버전입니다." -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "월" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "새 버젼이 있습니다" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "화" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "지금 사용중인 버전은 조만간 지원 하지 않을것입니다" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "수" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "지금 사용중인 버전은 더 이상 지원 되지 않습니다" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "목" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "새 버전으로 업그래이드 " -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "금" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "현제 플레이리스트에 추가" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "토" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "현제 스마트 블록에 추가" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "닫기" +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "아이템 1개 추가" -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "시" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "아이템 %s개 추가" -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "분" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "스마트 블록에는 파일만 추가 가능합니다" -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "확인" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "재생 몰록에는 파일, 스마트 블록, 웹스트림만 추가 가능합니다" -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "파일 선택" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "타임 라인에서 커서를 먼져 선택 하여 주세요." -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "업로드를 원하는 파일을 선택하신후 시작 버틑을 눌러주세요." +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "메타데이타 수정" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "상태" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "선택된 쇼에 추가" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "파일 추가" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "선택" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "업로드 중지" +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "현재 페이지 선택" -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "업로드 시작" +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "현재 페이지 선택 취소 " -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "파일 추가" +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "모두 선택 취소" -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "%d/%d 파일이 업로드됨" +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "선택된 아이템들을 모두 지우시겠습니다?" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "스케쥴됨" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "파일을 여기로 드래그 앤 드랍 하세요" +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "재생목록/블" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "파일 확장자 에러." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "비트 레이트" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "파일 크기 에러." +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "샘플 레이트" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "파일 갯수 에러." +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "로딩..." -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "초기화 에러." +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "파일" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "HTTP 에러." +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "재생 목록" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "보안 에러." +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "스마트 블록" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "일반적인 에러." +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "웹스트림" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "IO 에러." +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "알수 없는 유형:" -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "파일: %s" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "선택된 아이템을 모두 삭제 하시겠습니까?" -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d개의 파일이 대기중" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "업로딩중..." -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "파일: %f, 크기: %s, 최대 파일 크기: %m" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "서버에서 정보를 가져오는중..." -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "업로드 URL이 맞지 않거나 존재 하지 않습니다" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "파일의 SoundCloud 아이디:" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "에러: 파일이 너무 큽니다:" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "SoundCloud에 업로딩중 에러가 발생했습니다." -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "에러: 지원하지 않는 확장자:" +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "에러 코드: " -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "에러 메세지: " -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "이 값은 0보다 큰 숫자만 허용 됩니다" -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "이 값은 숫자만 허용합니다" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "%s row %s를 클립보드로 복사 하였습니다" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "yyyy-mm-dd의 형태로 입력해주세요" -#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "hh:mm:ss.t의 형태로 입력해주세요" + +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%sPrint view%s프린트를 하려면 브라우저의 프린트 기능을 사용하여주세요. 종료를 원하시면 ESC키를 누르세요" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"현재 파일이 업로드 중입니다. %s다른 화면으로 이동하면 현재까지 업로드한 프로" +"세스가 취소됩니다. %s이동하겠습니까?" -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "소스를 끊을수 있는 권한이 부족합니다" +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "미디아 빌더 열기" -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "연결된 소스가 없습니다" +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "'00:00:00 (.0)' 형태로 입력해주세요" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "소스를 바꿀수 있는 권한이 부족합니다" +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "초단위 '00 (.0)'로 입력해주세요" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "오래된 %s를 보고 있습니다" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "현재 사용중인 브라우저에선 이 파일을 play할수 없습니다: " -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "동적인 스마트 블록에는 트랙을 추가 할수 없습니다" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "동적인 스마트 블록은 프리뷰 할수 없습니다" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 -#, php-format -msgid "%s not found" -msgstr "%s를 찾을수 없습니다" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "길이 제한: " -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "선택하신 %s를 삭제 할수 있는 권한이 부족합니다." +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "재생 목록이 저장 되었습니다" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "알수없는 에러." +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "플레이 리스트가 셔플 되었습니다" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "스마트 블록에는 트랙만 추가 가능합니다" +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." +msgstr "" +"Airtime이 파일에 대해 정확히 알수 없습니다. 이 경우는 파일이 접근할수 없는 리" +"모트 드라이브에 있거나, 파일이 있는 폴더가 더이상 모니터 되지 않을때 일어날" +"수 있습니다." -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "제목없는 재생목록" +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "%s의청취자 숫자 : %s" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "제목없는 스마트 블록" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "1주후에 다시 알림" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "모르는 재생목록" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "이 창을 다시 표시 하지 않음" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "권한이 부족합니다" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Airtime 도와주기" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "권한이 부족합니다" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "허용된 이미지 파일 타입은 jpg, jpeg, png 또는 gif 입니다" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." msgstr "" +"정적 스마트 블록은 크라이테리아를 저장하고 내용을 생성 합니다. 그러므로 쇼에 " +"추가 하기전에 내용을 수정하실수 있습니다 " -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." msgstr "" +"동적 스마트 블록은 크라이테리아만 저장하고 내용은 쇼에 추가 할때까지 생성하" +"지 않습니다. 이는 동적 스마트 블록을 쇼에 추가 할때마다 다른 내용을 추가하게 " +"됩니다." -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." msgstr "" +"블록 생성시 충분한 파일을 찾지 못하면, 블록 길이가 원하는 길이보다 짧아 질수 " +"있습니다. 이 옵션을 선택하시면,Airtime이 트랙을 반복적으로 사용하여 길이를 채" +"웁니다." -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "프리뷰" - -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "재생 목록에 추가" - -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "스마트 블록에 추가" - -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "삭제" - -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "중복된 플레이 리스트" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "스마트 블록이 셔플 되었습니다" -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "수정" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "스마트 블록이 생성 되고 크라이테리아가 저장 되었습니다" -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "스마트 블록이 저장 되었습니다" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Soundcloud 보기" +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "진행중..." -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Soundcloud에 다시 업로드" +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "저장 폴더 선택" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Soundcloud에 업로드" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "모니터 폴더 선택" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "액션 없음" +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"저장 폴더를 수정하길 원하십니까? 수정시 모든 파일이 라이브러리에서 사라집니" +"다." -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "선택된 아이템을 지울수 있는 권한이 부족합니다." +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "선택하신 폴더를 모니터 리스트에서 삭제 하시겠습ㄴ지까?" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "스케쥴된 아이템들은 삭제 할수 없습니다" +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "경로에 접근할수 없습니다" -#: airtime_mvc/application/controllers/LibraryController.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 #, php-format -msgid "Copy of %s" -msgstr "%s의 사본" - -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "커서 선택" +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" +"어떤 스트림은 추가 설정이 필요합니다. %sAAC+ 지원%s 또는 %sOpus 지원%s 설명" -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "커서 제거" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "스트리밍 서버에 접속됨" -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "쇼가 존재 하지 않음" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "스트림이 사용되지 않음" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "설정이 업데이트 되었습니다" +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "스트리밍 서버에 접속 할수 없음" -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "지원 설정이 업데이트 되었습니다" +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"Airtime이 방화벽 뒤에 설치 되었다면, 포트 포워딩을 설정해야 할수도 있습니다. " +"이 경우엔 자동으로 생성된 이 정보가 틀릴수 있습니다. 수동적으로 이 필드를 수" +"정하여 DJ들이 접속해야 하는서버/마운트/포트 등을 공지 하십시오. 포트 범위는 " +"1024~49151 입니다." -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "사용자 피드백" +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "더 자세한 정보는 %sAirtime Manual%s에서 찾으실수 있습니다" -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "스트림 설정이 업데이트 되었습니다" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"OGG 스트림의 메타데이타를 사용하고 싶으시면, 이 옵션을 체크 해주세요. VLC나 " +"mplayer 같은 플래이어들에서 버그가 발견되어 OGG 스트림을 메타데이타와 함꼐 사" +"용시, 각 파일 종료시 스트림을 끊어버립니다." -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "경로를 입력해주세요" +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "마스터/쇼 소스가 끊어졌을때 자동으로 스위치를 끔." -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Liquidsoap 문제..." +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "마스터/쇼 소스가 접속 되었을때 자동으로 스위를 켬." -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "방송중" +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"Icecast 서버 인증 아이디가 source로 설정이 되어있다면, 이 필드는 입렵 하실필" +"요 없습니다." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "미디어 추가" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"현재 사용중이신 라이브 스트리밍 클라이언트에 사용자 필드가 없다면, 이 필드에 " +"'source'라고 입력 해주세요." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "라이브러리" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"스트림 되고 있는 스트림에 아이디나 암호를 수정한다면, 플레이 아웃 엔진이 다" +"시 시작되며, 청취자들이 5~10초 정도 정적이 들릴것입니다. 다음 필드들을 수정하" +"는것은 엔진을 다시 시작 하지 않습니다: (스트림 레이블, 스위치 페이딩, 마스" +"터 마이디, 마스터 암호). Airtime이 현재 녹음 중이고 엔진이 재시작 되면 녹음" +"이 중단 됩니다" -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "스케쥴" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"관리자 아이디/암호는 Icecast와 SHOUTcast에서 청취자 통계를 얻기 위해 필요합니" +"다" -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "시스템" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "설정" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "결과 없음" -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "계정" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "쇼에 지정된 사람들만 접속 할수 있습니다" -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "미디어 폴더" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "" +"커스텁 인증을 설정하시면, 아무나 그걸 사용하여 해당 쇼에 접속 가능합니다" -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "스트림" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "쇼 인스턴스가 존재 하지 않습니다" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "청취자 통계" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "주의: 쇼는 다시 링크 될수 없습니다" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" msgstr "" +"반복 되는 쇼를 링크하면, 반복 쇼에 스케쥴된 아이템들이 다른 반복 쇼에도 스케" +"쥴이 됩니다" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "방송 기록" - -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." msgstr "" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "도움" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "쇼" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "초보자 가이드" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "쇼가 비어 있습니다" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "사용자 메뉴얼" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1분" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "정보" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5분" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "서비스" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10분" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "업타임" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15분" + +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30분" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60분" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "메모리" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "서버로부터 데이타를 불러오는중..." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "내용이 없는 쇼입니다" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "디스크 공간" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "쇼가 완전히 채워지지 않았습니다" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "이메일/메일 서버 설정" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "1월" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "SoundCloud 설정" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "2월" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "반복 날짜:" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "3월" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "제거" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "4월" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "추가" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "5월" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "접속 URL:" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "6월" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "입력 스트림 설정" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "7월" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "마스터 소스 접속 URL:" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "8월" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "덮어쓰기" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "9월" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "확인" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "10월" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "초기화" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "11월" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "쇼 소스 접속 URL:" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "12월" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(*)" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "1월" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Airtime 등록" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "2월" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "3월" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "4월" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(확인을 위한것입니다, 이 정보는 어디에도 게시 되지 않습니다)" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "6월" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "주의: 600*600보다 큰 이미지는 사이즈가 수정 됩니다" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "7월" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "보내지는 데이타 보기" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "8월" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "사용자 약관" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "9월" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "암호 초기화" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "10월" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "폴더 선택" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "11월" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "저장" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "12월" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "현재 저장 폴더:" +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "오늘" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "일별" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "모니터중인 폴더를 리스트에서 삭제" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "주별" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "모니터중인 폴더가 없습니다" +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "월별" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "스트림 " +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 +msgid "" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "" +"쇼가 자신의 길이보다 더 길게 스케쥴 되었다면, 쇼 길이에 맞게 짤라지며, 다음 " +"쇼가 시작 됩니다" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "추가 설정" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "현재 방송중인 쇼를 중단 하시겠습니까?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "밑에 정보들은 청취자에 플래이어에 표시 됩니다:" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "현재 녹음 중인 쇼를 중단 하시겠습니까?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(방송국 웹사이트 주소)" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "확인" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "스트림 URL: " +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "쇼 내용" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "필터 히스토리" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "모든 내용물 삭제하시겠습까?" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "쇼 찾기" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "선택한 아이템을 삭제 하시겠습니까?" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "쇼 필터" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "종료" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "%s의 설정" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "길이" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "내용 없음" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(체크 하기 위해선 '피드백 보내기'를 체크 하셔야 합니다)" +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "라인 인으로 부터 녹음" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Sourcefabric 이용 약관" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "트랙 프리뷰" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "쇼 범위 밖에 스케쥴 할수 없습니다" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "아이템 1개 이동" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "날짜 선택" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "아이템 %s개 이동" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "스마트 블록 옵션" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" +msgstr "페이드 에디터" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" +msgstr "큐 에디터" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" msgstr "" +"웨이브 폼 기능은 Web Audio API를 지원하면 브라우저에서만 사용 가능합니다" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr " 부터 " +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "전체 선택" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "개의 파일들" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "전체 선택 취소" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "개의 파일들" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "초과 예약된 트랙 제거" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "선택된 아이템 제거" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "현재 방송중인 트랙으로 가기" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "현재 쇼 취소" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "라이브러리 열기" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "사용중" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "디스크" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "경로" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "열기" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "손님의 권한:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "스케쥴 보기" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "쇼 내용 보기" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "새로 만들기" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "DJ의 권한:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "새 재생 목록" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "할당된 쇼의 내용 관리" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "새 스마트 블록" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "미디아 파일 추가" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "새 웹스트림" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "플레이 리스트, 스마트 블록, 웹스트림 생성" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "설명 보기/수정" +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "자신의 라이브러리 내용 관리" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "스트림 URL:" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "프로그램 매니저의 권한:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "기본 길이:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "쇼 내용 보기및 관리" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "열린 웹스트림 없음" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "쇼 스케쥴 하기" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "락스트림 설정" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "모든 라이브러리 내용 관리" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "전역 설정" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "관리자의 권한:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "설정 관리" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "출력 스트림 설정" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "사용자 관리" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "파일 가져오기 진행중" +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "모니터 폴터 관리" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "고급 검색 옵션" +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "이시스템 상황 보기" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "이전" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "방송 기록 접근 권한" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "재생" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "청취자 통계 보기" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "중지" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "컬럼 보이기/숨기기" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "다음" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "" +" {from}부터 {to}까" +"지" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "정지" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "음소거" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "음소거 해제" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "최대 음량 " +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "업데이트가 필요함" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "일" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "미디어를 재생하기 위해선, 브라우저를 최신 버젼으로 업데이트 하시고, %sFlash plugin%s도 업데이트 해주세요" +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "월" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "길이:" +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "화" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "샘플 레이트:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "수" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "ISRC 넘버:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "목" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "파일 위치:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "금" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "웹스트림" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "토" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "동적 스마트 블록" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "시" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "정적 스마트 블록" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "분" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "오디오 트랙" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "확인" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "재생목록 내용" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "파일 선택" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "정적 스마트 블록 내용: " +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "업로드를 원하는 파일을 선택하신후 시작 버틑을 눌러주세요." -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "동적 스마트 블록 내용: " +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "파일 추가" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "길이 제한 " +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "업로드 중지" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "시간 경과에 따른 청취자 숫자 " +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "업로드 시작" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 -#, php-format -msgid "Welcome to %s!" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "파일 추가" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " +msgid "Uploaded %d/%d files" +msgstr "%d/%d 파일이 업로드됨" + +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "미디어 추가 페이지로 가셔서 원하는 파일을 드래그 앤 드랍 하십시오. 라이브러리 페이지를 가시면 업로드된 파일을 확인 할수 있습니다." +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "파일을 여기로 드래그 앤 드랍 하세요" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "스케쥴 페이지에 가셔서 원하는 날짜에 더블클릭 하셔서 쇼를 생성 하십시오. 관지자와 프로그램 매니저만 쇼를 생성할수 있는 권한이 있습니다" +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "파일 확장자 에러." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "만드신 쇼에 클릭을 하신다음 '내용 추가/제거' 를 클릭하십시오." +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "파일 크기 에러." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "왼쪽 라이브러리 스크린에서 오른쪽 쇼 내용 패널로 드래그 앤 드랍 하며 미디어를 추가 합니다" +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "파일 갯수 에러." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "첫 번째 쇼를 성공적으로 생성 하였습니다." +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "초기화 에러." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "더 자세한 도움을 원하시면, 메뉴얼을 참고 하여 주세요. %suser manual%s" +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "HTTP 에러." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "공유" +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "보안 에러." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "스트림 선택" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "일반적인 에러." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "IO 에러." + +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "" +msgid "File: %s" +msgstr "파일: %s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "" +msgid "%d files queued" +msgstr "%d개의 파일이 대기중" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "새 암호" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "파일: %f, 크기: %s, 최대 파일 크기: %m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "새 암호 확인" +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "업로드 URL이 맞지 않거나 존재 하지 않습니다" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "사용자 계정의 이메일을 입력해 주세요. 새로 암호를 설정할수 있는 링크가 포함된 이메일이 전송 됩니다" +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "에러: 파일이 너무 큽니다:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "이메일이 전송 되었습니다" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "에러: 지원하지 않는 확장자:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "이메일이 전송 되었습니다" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "로그인 페이지로 가기" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "%s row %s를 클립보드로 복사 하였습니다" + +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" +"%sPrint view%s프린트를 하려면 브라우저의 프린트 기능을 사용하여주세요. 종료" +"를 원하시면 ESC키를 누르세요" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "이전:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "다음:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "소스 스트림" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "마스터 소스" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "쇼 소스" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "프리뷰" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "스케쥴" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "커서 선택" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "방송중" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "커서 제거" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "듣기" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "쇼가 존재 하지 않음" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "방송국 시간" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "설정이 업데이트 되었습니다" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr " " +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "지원 설정이 업데이트 되었습니다" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "스트림 설정이 업데이트 되었습니다" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "내 계정" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "경로를 입력해주세요" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "사용자 관리" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Liquidsoap 문제..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "새 사용자" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "페이지를 찾을수 없습니다" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "아이디" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Application 애러" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "이름" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s를 찾을수 없습니다" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "성" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "알수없는 에러." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "사용자 유형" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "재생 목록에 추가" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "스마트 블록에 추가" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "다운로드" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "중복된 플레이 리스트" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" msgstr "" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "페이지를 찾을수 없습니다!" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "액션 없음" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "찾는 페이지가 존재 하지 않습니다!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "선택된 아이템을 지울수 있는 권한이 부족합니다." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "정적 블록 확장" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "스케쥴된 아이템들은 삭제 할수 없습니다" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "동적 블록 확장" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "%s의 사본" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "내용물 없음" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "제목없는 웹스트림" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "내용물 없음" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "웹스트림이 저장 되었습니다" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "재생 목록 비우기" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "잘못된 값입니다" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "지우기" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "소스를 끊을수 있는 권한이 부족합니다" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "재생 목록 셔플" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "연결된 소스가 없습니다" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "재생 목록 저장" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "소스를 바꿀수 있는 권한이 부족합니다" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "재생 목록 크로스페이드" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "사용자가 추가 되었습니다!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "페이드 인: " +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "사용자 정보가 업데이트 되었습니다!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "페이드 아웃:" +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "세팅이 성공적으로 업데이트 되었습니다!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "열린 재생 목록 없음" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "%s의 재방송 %s부터 %s까지" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "스마트 블락 내용 지우기" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." +msgstr "시스템->스트림 에서 관리자 아이디/암호를 다시 확인하세요." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "권한이 부족합니다" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "열린 스마트 블록 없음" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "권한이 부족합니다" -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "웨이브 폼 보기" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "파일이 존재 하지 않습니다" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "큐 인:" +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "파일이 존재 하지 않습니다" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "파일이 존재 하지 않습니다" + +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "큐 아웃:" +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "오리지날 길이" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "오래된 %s를 보고 있습니다" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "쇼 추가" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "동적인 스마트 블록에는 트랙을 추가 할수 없습니다" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "쇼 업데이트" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "선택하신 %s를 삭제 할수 있는 권한이 부족합니다." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "무엇" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "스마트 블록에는 트랙만 추가 가능합니다" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "언제" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "제목없는 재생목록" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "라이브 스트림" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "제목없는 스마트 블록" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "녹음 & 재방송" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "모르는 재생목록" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "누구" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "큐-인 과 큐 -아웃 이 null 입니다" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "스타일" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "큐-아웃 값은 파일 길이보다 클수 없습니다" -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "%s 재방송( %s에 시작) " +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "큐-인 값은 큐-아웃 값보다 클수 없습니다." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "국가 선택" +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "큐-아웃 값은 큐-인 값보다 작을수 없습니다." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3648,43 +4287,25 @@ msgstr "잘못된 웹스트림 - 웹스트림이 아니고 파일 다운로드 msgid "Unrecognized stream type: %s" msgstr "알수 없는 스트림 타입: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s는 이미 모니터 중입니다 " - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s는 이미 모니터중인 폴더를 포함하고 있습니다: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s를 포함하는 폴더를 이미 모니터 중입니다: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s는 옳은 경로가 아닙니다." - -#: airtime_mvc/application/models/MusicDir.php:232 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s는 이미 현재 저장 폴더로 지정이 되었거나 모니터중인 폴더 입니다." +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"안녕하세요 %s님, \n" +"암호 재설정을 하시려면 링크를 클릭하세요: " -#: airtime_mvc/application/models/MusicDir.php:386 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s는 이미 현재 저장 폴더로 지정이 되었거나 모니터중인 폴더 입니다." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Airtime 암호 초기화" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s가 모니터 목록에 없습니다" +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "국가 선택" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3699,6 +4320,8 @@ msgid "The schedule you're viewing is out of date! (instance mismatch)" msgstr "현재 보고 계신 스케쥴이 맞지 않습니다(instance mismatch)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3729,61 +4352,58 @@ msgid "" "broadcasted" msgstr "링크 쇼의 내용은 이미 방송된 쇼의 전후에만 스케쥴 할수 있습니다" -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." -msgstr "" - +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "선택하신 파일이 존재 하지 않습니다" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "큐-인 과 큐 -아웃 이 null 입니다" - -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "큐-인 값은 큐-아웃 값보다 클수 없습니다." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s는 이미 모니터 중입니다 " -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "큐-아웃 값은 파일 길이보다 클수 없습니다" +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s는 이미 모니터중인 폴더를 포함하고 있습니다: %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "큐-아웃 값은 큐-인 값보다 작을수 없습니다." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s를 포함하는 폴더를 이미 모니터 중입니다: %s" -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." -msgstr "스마트 블록" +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s는 옳은 경로가 아닙니다." -#: airtime_mvc/application/models/StoredFile.php:1017 +#: airtime_mvc/application/models/MusicDir.php:232 #, php-format msgid "" -"The file was not uploaded, there is %s MB of disk space left and the file " -"you are uploading has a size of %s MB." -msgstr "파일 업로드를 실패 하였습니다. 남은 disk공간이 %s MB 이고, 파일 크기가 %s MB 입니다." +"%s is already set as the current storage dir or in the watched folders list" +msgstr "%s는 이미 현재 저장 폴더로 지정이 되었거나 모니터중인 폴더 입니다." -#: airtime_mvc/application/models/StoredFile.php:1026 +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format msgid "" -"This file appears to be corrupted and will not be added to media library." -msgstr "파일이 손상되었으므로, 라이브러리에 추가 되지 않습니다." +"%s is already set as the current storage dir or in the watched folders list." +msgstr "%s는 이미 현재 저장 폴더로 지정이 되었거나 모니터중인 폴더 입니다." -#: airtime_mvc/application/models/StoredFile.php:1065 -msgid "" -"The file was not uploaded, this error can occur if the computer hard drive " -"does not have enough disk space or the stor directory does not have correct " -"write permissions." -msgstr "파일이 업로드 되지 않았습니다. 이 에러는 하드 디스크에 공간이 충분치 않거나, 권한이 부족하여 생길수 있습니다." +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s가 모니터 목록에 없습니다" + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "%s 재방송( %s에 시작) " #: airtime_mvc/application/models/Show.php:180 msgid "Shows can have a max length of 24 hours." @@ -3793,116 +4413,150 @@ msgstr "쇼 길이는 24시간을 넘을수 없습니다." msgid "" "Cannot schedule overlapping shows.\n" "Note: Resizing a repeating show affects all of its repeats." -msgstr "쇼를 중복되게 스케줄 할수 없습니다.\n주의: 반복 쇼의 크기를 조정하면, 모든 반복 쇼의 크기가 바뀝니다." +msgstr "" +"쇼를 중복되게 스케줄 할수 없습니다.\n" +"주의: 반복 쇼의 크기를 조정하면, 모든 반복 쇼의 크기가 바뀝니다." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/models/StoredFile.php:1017 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "안녕하세요 %s님, \n암호 재설정을 하시려면 링크를 클릭하세요: " - -#: airtime_mvc/application/models/Auth.php:36 -#, php-format -msgid "%s Password Reset" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." msgstr "" +"파일 업로드를 실패 하였습니다. 남은 disk공간이 %s MB 이고, 파일 크기가 %s MB " +"입니다." -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "" +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "지난 쇼는 사이즈를 조정할수 없습니다 " -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "녹음된 파일의 메타데이타 보기" +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "중복 스케쥴을 할수 없스니다" -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "쇼 내용 보기" +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." +msgstr "스마트 블록" -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "내용 모두 삭제" +#: airtime_mvc/application/models/StoredFile.php:1026 +msgid "" +"This file appears to be corrupted and will not be added to media library." +msgstr "파일이 손상되었으므로, 라이브러리에 추가 되지 않습니다." -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "현재 쇼 취소" +#: airtime_mvc/application/models/StoredFile.php:1065 +msgid "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." +msgstr "" +"파일이 업로드 되지 않았습니다. 이 에러는 하드 디스크에 공간이 충분치 않거나, " +"권한이 부족하여 생길수 있습니다." -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" +#: airtime_mvc/application/layouts/scripts/login.phtml:24 +#, php-format +msgid "" +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "쇼 수정" +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#, php-format +msgid "Promote my station on %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "이 인스턴스 삭제" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "이 인스턴스와 이후에 모든 인스턴스 삭제" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "권한이 부족합니다" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "반복쇼는 드래그 앤 드롭 할수 없습니다" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "지난 쇼는 이동할수 없습니다" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "과거로 쇼를 이동할수 없습니다" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "녹화 쇼를 재방송 시작 1시간 안으로 이동할수 없습니다" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "녹화 쇼가 없으로 쇼가 삭제 되었습니다" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "녹화 쇼와 재방송 사이에는 1시간의 간격이 필요합니다 " +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "방송됨" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "년도 값은 %s 1753 - 9999 입니다" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s는 맞지 않는 날짜 입니다" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s:%s:%s는 맞지 않는 시간 입니다" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "옵션을 선택 해주세요" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "레코드 없음" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/locale/nl_NL/LC_MESSAGES/airtime.po b/airtime_mvc/locale/nl_NL/LC_MESSAGES/airtime.po index f4188fd4da..59f6a35c91 100644 --- a/airtime_mvc/locale/nl_NL/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/nl_NL/LC_MESSAGES/airtime.po @@ -1,1213 +1,1645 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: # terwey , 2014 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: Dutch (Netherlands) (http://www.transifex.com/projects/p/airtime/language/nl_NL/)\n" +"POT-Creation-Date: 2013-12-13 12:58-0500\n" +"PO-Revision-Date: 2014-04-24 15:34+0000\n" +"Last-Translator: terwey \n" +"Language-Team: Dutch (Netherlands) (http://www.transifex.com/projects/p/" +"airtime/language/nl_NL/)\n" +"Language: nl_NL\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: nl_NL\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" msgstr "" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" msgstr "" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "" + +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "" + +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "" + +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "" + +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "" + +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 +#: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 +#: airtime_mvc/application/forms/AddUser.php:110 +#: airtime_mvc/application/forms/SupportSettings.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 +msgid "Save" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:135 -#: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 -#: airtime_mvc/application/forms/SupportSettings.php:161 -#: airtime_mvc/application/controllers/LocaleController.php:283 -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 -msgid "Save" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." msgstr "" -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "" + +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" msgstr "" -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " msgstr "" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " msgstr "" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " msgstr "" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " msgstr "" -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" msgstr "" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" msgstr "" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" msgstr "" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" msgstr "" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" msgstr "" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" msgstr "" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" msgstr "" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" msgstr "" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" msgstr "" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" msgstr "" -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" msgstr "" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." msgstr "" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 +#, php-format +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "" + +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" msgstr "" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." msgstr "" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." msgstr "" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" msgstr "" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" msgstr "" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" msgstr "" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" msgstr "" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" msgstr "" -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" msgstr "" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" msgstr "" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" msgstr "" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." msgstr "" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" msgstr "" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" msgstr "" -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" msgstr "" #: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 @@ -1235,83 +1667,141 @@ msgstr "" msgid "Passwords do not match" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "" + +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "" + +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "" + +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "" + +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "" + +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "" + +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "" + +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "" + +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" msgstr "" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" msgstr "" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" msgstr "" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" msgstr "" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "" + +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" msgstr "" #: airtime_mvc/application/forms/SoundcloudPreferences.php:16 @@ -1434,2173 +1924,2254 @@ msgstr "" msgid "Creative Commons Attribution Noncommercial Share Alike" msgstr "" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "" - -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "" - -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "" - -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "" - -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "" - -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "" - -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "" - -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "" - -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "" - -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "" - -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "" - -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "" - -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "" - -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "" - -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "" - -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "" - -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" + +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " msgstr "" -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " msgstr "" -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" msgstr "" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "%s not found" +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " msgstr "" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" msgstr "" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" msgstr "" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." +msgstr "" + +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 #, php-format -msgid "File does not exist in %s" +msgid "Listener Count on %s: %s" msgstr "" -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" msgstr "" -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:404 -#, php-format -msgid "Copy of %s" +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." msgstr "" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#, php-format +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." msgstr "" -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" msgstr "" -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." msgstr "" -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." msgstr "" -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." msgstr "" -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." msgstr "" -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." msgstr "" -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" msgstr "" -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" msgstr "" -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." msgstr "" -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." msgstr "" -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" msgstr "" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" msgstr "" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" msgstr "" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." msgstr "" -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" msgstr "" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" msgstr "" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" msgstr "" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" msgstr "" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" msgstr "" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" msgstr "" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" msgstr "" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" msgstr "" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." msgstr "" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." msgstr "" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" msgstr "" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" msgstr "" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" msgstr "" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" msgstr "" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" msgstr "" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" msgstr "" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" msgstr "" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" msgstr "" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" msgstr "" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" msgstr "" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" msgstr "" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" msgstr "" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" msgstr "" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 +msgid "" +"Shows longer than their scheduled time will be cut off by a following show." msgstr "" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" msgstr "" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "" -"The following info will be displayed to listeners in their media player:" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" msgstr "" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" msgstr "" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" msgstr "" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" msgstr "" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" msgstr "" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" msgstr "" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" msgstr "" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" msgstr "" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" msgstr "" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" msgstr "" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." msgstr "" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" msgstr "" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" msgstr "" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" msgstr "" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" msgstr "" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" msgstr "" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" msgstr "" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" msgstr "" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" msgstr "" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 -#, php-format -msgid "Welcome to %s!" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " +msgid "Uploaded %d/%d files" msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 -#, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 -#, php-format -msgid "%1$s %2$s is distributed under the %3$s" +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." msgstr "" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 +#, php-format +msgid "File: %s" msgstr "" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 +#, php-format +msgid "%d files queued" msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " msgstr "" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 -#, php-format -msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#, php-format +msgid "" +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." msgstr "" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" msgstr "" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" msgstr "" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" msgstr "" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." msgstr "" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" msgstr "" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" msgstr "" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" msgstr "" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." msgstr "" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " msgstr "" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." msgstr "" -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." msgstr "" -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." msgstr "" #: airtime_mvc/application/models/Webstream.php:157 @@ -3648,42 +4219,22 @@ msgstr "" msgid "Unrecognized stream type: %s" msgstr "" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "" - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "" - -#: airtime_mvc/application/models/MusicDir.php:232 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " msgstr "" -#: airtime_mvc/application/models/MusicDir.php:386 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" msgstr "" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" msgstr "" #: airtime_mvc/application/models/Scheduler.php:73 @@ -3699,6 +4250,8 @@ msgid "The schedule you're viewing is out of date! (instance mismatch)" msgstr "" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3729,60 +4282,57 @@ msgid "" "broadcasted" msgstr "" -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." -msgstr "" - +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." msgstr "" -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" msgstr "" -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" msgstr "" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." msgstr "" -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." +#: airtime_mvc/application/models/MusicDir.php:232 +#, php-format +msgid "" +"%s is already set as the current storage dir or in the watched folders list" msgstr "" -#: airtime_mvc/application/models/StoredFile.php:1017 +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 #, php-format msgid "" -"The file was not uploaded, there is %s MB of disk space left and the file " -"you are uploading has a size of %s MB." +"%s is already set as the current storage dir or in the watched folders list." msgstr "" -#: airtime_mvc/application/models/StoredFile.php:1026 -msgid "" -"This file appears to be corrupted and will not be added to media library." +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." msgstr "" -#: airtime_mvc/application/models/StoredFile.php:1065 -msgid "" -"The file was not uploaded, this error can occur if the computer hard drive " -"does not have enough disk space or the stor directory does not have correct " -"write permissions." +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" msgstr "" #: airtime_mvc/application/models/Show.php:180 @@ -3795,114 +4345,142 @@ msgid "" "Note: Resizing a repeating show affects all of its repeats." msgstr "" -#: airtime_mvc/application/models/Auth.php:33 -#, php-format -msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "" - -#: airtime_mvc/application/models/Auth.php:36 -#, php-format -msgid "%s Password Reset" +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." msgstr "" -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" +#: airtime_mvc/application/models/StoredFile.php:1017 +#, php-format +msgid "" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." msgstr "" -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" +#: airtime_mvc/application/models/StoredFile.php:1026 +msgid "" +"This file appears to be corrupted and will not be added to media library." msgstr "" -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" +#: airtime_mvc/application/models/StoredFile.php:1065 +msgid "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." msgstr "" -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" +#: airtime_mvc/application/layouts/scripts/login.phtml:24 +#, php-format +msgid "" +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#, php-format +msgid "Promote my station on %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" +msgid "%1$s %2$s is distributed under the %3$s" msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" +msgid "Purchase your copy of %s" msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" msgstr "" diff --git a/airtime_mvc/locale/pl_PL/LC_MESSAGES/airtime.po b/airtime_mvc/locale/pl_PL/LC_MESSAGES/airtime.po index c45bb51f1f..6f57b15d49 100644 --- a/airtime_mvc/locale/pl_PL/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/pl_PL/LC_MESSAGES/airtime.po @@ -1,3607 +1,4284 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: # Sourcefabric , 2012 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: Polish (Poland) (http://www.transifex.com/projects/p/airtime/language/pl_PL/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-01-29 15:11+0000\n" +"Last-Translator: andrey.podshivalov\n" +"Language-Team: Polish (Poland) (http://www.transifex.com/projects/p/airtime/" +"language/pl_PL/)\n" +"Language: pl_PL\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: pl_PL\n" -"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Odtwrzacz " +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Wybierz opcję" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Wyloguj" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "Brak danych" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "Rok %s musi być w przedziale od 1753 do 9999" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s nie jest poprawną datą" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Cue In" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s:%s:%s nie jest prawidłowym czasem" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Aktualnie odtwarzane" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Cue out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Dodaj media" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Biblioteka" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Kalendarz" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Zgłaśnianie [Fade In]" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "System" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Wyciszanie [Fade out]" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Preferencje" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Użytkownicy" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Transmisja na żywo" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Foldery mediów" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Włączony:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Strumienie" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Typ strumienia:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Informacja zwrotna" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Bit Rate:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Status" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Typ usługi:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Statystyki słuchaczy" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Kanały:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Historia odtwarzania" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Serwer" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Pomoc" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Wprowadzony znak jest nieprawidłowy" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Jak zacząć" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Port" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "Instrukcja użytkowania" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Możliwe są tylko cyfry." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "Informacje" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Hasło" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Gatunek" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "Przeglądaj metadane nagrania" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "adres URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Zobacz na Soundcloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Nazwa" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Prześlij do SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Opis" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Prześlij ponownie do SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Punkt montowania" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Zawartość audycji" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Nazwa użytkownika" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Dodaj/usuń zawartość" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Login Administratora" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Usuń całą zawartość" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Hasło Administratora" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Skasuj obecną audycję" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Pobieranie informacji z serwera..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Serwer nie może być pusty." +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Edytuj" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Port nie może być pusty." +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Edytuj audycję" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Punkt montowania nie może być pusty dla serwera Icecast." +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Usuń" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" -msgstr "Tytuł:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Usuń tą instancję" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" -msgstr "Autor:" +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Usuń ten i wszystkie inne instancje" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "Album:" +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "Utwór:" +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "Nie można użyć metody 'przeciągnij i upuść' dla powtórek audycji." -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" -msgstr "Rodzaj:" +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "Nie można przenieść audycji archiwalnej" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" -msgstr "Rok:" +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Nie można przenieść audycji w przeszłość" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" -msgstr "Wydawnictwo:" +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Nie można planować nakładających się audycji" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" -msgstr "Kompozytor:" +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "" +"Nagrywana audycja nie może zostać przeniesiona na mniej niż 1h przed jej " +"powtórką." -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" -msgstr "Dyrygent/Pod batutą:" +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "Audycja została usunięta, ponieważ nagranie nie istnieje!" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Nastrój:" +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "Należy odczekać 1 godzinę przed ponownym odtworzeniem." -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Tytuł" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" -msgstr "Prawa autorskie:" +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Twórca" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "Numer ISRC:" +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Album" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" -msgstr "Strona internetowa:" +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Długość" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" -msgstr "Język:" +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Gatunek" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Nastrój" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Wydawnictwo" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Kompozytor" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Prawa autorskie" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Rok" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Dyrygent/Pod batutą" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Język" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Odtwarzane" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "Importowanie plików w toku..." + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Zaawansowane opcje wyszukiwania" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Licznik słuchaczy na przestrzeni czasu" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "Nowy" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "Nowa lista odtwarzania" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "Nowy Smartblock" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "Nowy webstream" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Wymieszaj listę odtwarzania" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Przemieszaj" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Zapisz listę odtwarzania" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 #: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 #: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 #: airtime_mvc/application/forms/SupportSettings.php:161 #: airtime_mvc/application/controllers/LocaleController.php:283 #: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 #: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 msgid "Save" msgstr "Zapisz" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Anuluj" - -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Nazwa użytkownika:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Płynne przenikanie utworów na liście dotwarzania" -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Hasło:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "Zobacz/edytuj opis" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Potwierdź hasło:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Opis" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Imię:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Zgłaśnianie [fade in]:" -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Nazwisko:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Wyciszanie [fade out]:" -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "Email:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "Brak otwartej listy odtwarzania" -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Telefon:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Zwiększ bok statyczny" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Zwiększ blok dynamiczny" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Pusty smart block" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "Typ użytkownika:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Pusta playlista" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Gość" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "Prowadzący" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Zgłaśnianie [Cue in]:" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Menedżer programowy" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(hh:mm:ss.t)" -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Administrator" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Wyciszanie [Cue out]:" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Nazwa użytkownika musi być unikalna." +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Oryginalna długość:" -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Kolor tła:" +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(ss.t)" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Kolor tekstu:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Data rozpoczęcia:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "Brak otwartego smartblocka" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Data zakończenia:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sAirtime%s %s otwarte oprogramowanie radiowe do planowania i zdalnego " +"zarządzania stacją. %s" -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Audycja:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "" +"%sSourcefabric%s o.p.s. Airtime jest rozpowszechniany na podstawie %sGNU GPL " +"v.3%s" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "Wszystkie moje audycje:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Witamy w Airtime!" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "dni" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "" +"Dowiedz się jak rozpocząć użytkowanie Airtime'a, aby zautomatyzować " +"transmisje radiowe:" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "Należy określić dzień" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Zacznij od dodania swoich plików do biblioteki używając przycisku \"dodaj " +"media\" w menu programu\". Możesz także przeciągnąć pliki do tego okna." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "Należy określić czas" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Utwórz audycję przechodząc do '\"kalendarza\" w pasku \"menu\" a następnie " +"klikając w ikonę \"+ Audycja\". Można utworzyć audycję do jednorazowego bądź " +"wielokrotnego odtwarzania. Jedynie administratorzy i zarządzający audycjami " +"mogą je dodawać." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Należy odczekać przynajmniej 1 godzinę przed ponownym odtworzeniem" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Dodaj media do audycji przez przejście do audycji w kalendarzu, kliknij na " +"niego lewym przyciskiem myszki wybierając opcję 'dodaj/usuń zawartość'" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Katalog importu:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Wybierz media z lewego okna i przeciągnij do utworzonej audyji w prawym oknie" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Katalogi obserwowane:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "Gotowe!" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Nieprawidłowy katalog" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "W celu uzyskania szczegółowej pomocy, skorzystaj z %suser manual%s" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Szukaj Użytkowników:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Transmisja na żywo" -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "Prowadzący:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Podziel się" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Zaloguj" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Wybierz strumień:" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Wpisz znaki, które widzisz na obrazku poniżej." +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "wycisz" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Nazwa stacji" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "włącz głos" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "Wszystko" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "wprowadź czas w sekundach 0{.0}" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Umożliwienie zdalnego dostępu z innych stron \"Plan\" Info?%s (Włącz, aby zewnętrzne widgety działały.)" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "URL strumienia:" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Wyłączone" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Domyślna długość:" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Włączone" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "Brak webstreamu" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Domyślny język" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "Tytuł:" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "Autor:" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "Tydzień zaczynaj od" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "Album:" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Niedziela" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "Utwór:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Poniedziałek" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Długość: " -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Wtorek" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Częstotliwość próbkowania:" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Środa" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Bit Rate:" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Czwartek" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Nastrój:" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Piątek" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "Rodzaj:" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Sobota" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "Rok:" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "Wydawnictwo:" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Typ powtarzania:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "tygodniowo" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "Kompozytor:" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "Dyrygent/Pod batutą:" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "Prawa autorskie:" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "Numer Isrc:" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "miesięcznie" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "Strona internetowa:" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Wybierz dni:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" +msgstr "Język:" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Nie" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "Ścieżka pliku:" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Pon" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Nazwa:" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Wt" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Opis:" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Śr" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Web Stream" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Czw" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Smart block dynamiczny" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Pt" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Smart block statyczny" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Sob" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Ścieżka audio" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Zawartość listy odtwarzania:" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Zawartość statycznego Smart Blocka:" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Kryteria dynamicznego Smart Blocku " -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "Bez czasu końcowego?" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Ogranicz(enie) do:" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "Data końcowa musi występować po dacie początkowej" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "Adres URL" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Potwierdź nowe hasło" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "Hasła muszą się zgadzać." +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Uzyskaj nowe hasło" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "ustawienia %s's " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Wybierz kryteria" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Wybierz folder" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Album" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Ustaw" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Bit Rate (Kbps)" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Aktualny folder importu:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Dodaj" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Kompozytor" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Przeskanuj ponownie obserwowany katalog (Przydatne w przypadku " +"rozsynchronizowanego dysku sieciowego)." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Dyrygent/Pod batutą" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Usuń obserwowany katalog." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Prawa autorskie" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "Nie obserwujesz w tej chwili żadnych folderów" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Twórca" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Wymagane)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Kodowane przez" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"W celu udoskonalenia programu Airtime, prosimy o przesłanie informacji " +"zwrotnej o sposobie uzytkowania. Informacje takie będą zbierane regualrnie w " +"celu poprawienia jakości uzytkowania. %s Kliknij \"Tak, chcę wesprzeć Airtime" +"\", dołożymy starań, by funkcje, których używasz, były stale ulepszane." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "" +"Kliknij w poniższe pole w celu zareklamowania swojej stacji na " +"%sSourcefabric.org%s." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Wydawnictwo" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(Aby promowac stację, należy udostepnić funkcję \"wyślij informację zwrotną" +"\")" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Język" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(tylko dla celów weryfikacji, dane nie będą rozpowszechniane)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Ostatnio zmodyfikowany" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "" +"Uwaga: każdy plik o rozmiarze większym niż 600x600 zostanie zmniejszony" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Ostatnio odtwarzany" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Pokazuj, co wysyłam" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Długość" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Polityka prywatności Sourcefabric" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Podobne do" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Znajdź audycję" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Nastrój" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Filtruj wg audycji" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Właściciel" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "Ustawienia Email/Serwera pocztowego" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Normalizacja głośności (Replay Gain)" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "Ustawienia SoundCloud" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Częstotliwość próbkowania (kHz)" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Wybierz dni:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Tytuł" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Usuń" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Numer utworu" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Strumień" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Przesłano" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Opcje dodatkowe" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Strona internetowa" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "W odtwarzaczu słuchacza wyświetli sie nastepujaca informacja:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Rok" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(Strona internetowa Twojej stacji)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Wybierz modyfikator" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "URL strumienia:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "zawiera" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "Połaczenie URL:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "nie zawiera" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Resetuj hasło" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "to" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Zarejestruj Airtime" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "to nie" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "" +"W celu udoskonalenia programu Airtime, prosimy o przesłanie informacji " +"zwrotnej o sposobie uzytkowania. Informacje takie będą zbierane regualrnie w " +"celu poprawienia jakości uzytkowania. %s Kliknij \"Tak, chcę wesprzeć Airtime" +"\", dołożymy starań, by funkcje, których używasz, były stale ulepszane." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "zaczyna się od" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Kliknij w poniższe pole w celu umieszczenia reklamy twojej radiostacji na %s " +"Sourfabric.org%s. Należy przy tym udostępnić opcję 'Wyślij informację " +"zwrotną'. Informacje te będą pozyskiwane razem z informacją zwrotną." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "kończy się" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Zasady i warunki" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "jest większa niż" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Ustawienia strumienia wejściowego" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "jest mniejsza niż" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "Adres URL połącznia dla Źródła Nadrzędnego" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "mieści się w zakresie" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Zastąp" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "godzin(y)" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "OK" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "minut(y)" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "RESETUJ" + +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "Adres URL połączenia dla Żródła audycji" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "elementy" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Opcje smart blocku" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Ustaw typ smart blocku:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Statyczny" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Dynamiczny" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr "do" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Zezwól na powtarzanie utworów:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "pliki spełniają kryteria" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Ogranicz do" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "plik spełnia kryteria" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Tworzenie zawartości listy odtwarzania i zapisz kryteria" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Dni powtarzania:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Utwórz" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Filtruj Historię" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Losowa kolejność odtwarzania" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Zamknij" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Przemieszaj" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Dodaj audycję" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "Limit nie może być pusty oraz mniejszy od 0" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Aktualizuj audycję" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "Limit nie może być większy niż 24 godziny" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "Co" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "Wartość powinna być liczbą całkowitą" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "Kiedy" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "Maksymalna liczba elementów do ustawienia to 500" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Wejście Strumienia \"Na żywo\"" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "Należy wybrać kryteria i modyfikator" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Nagrywaj i odtwarzaj ponownie" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "Długość powinna być wprowadzona w formacie '00:00:00'" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Kto" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "Wartość powinna byc zapisana w formacie timestamp (np. 0000-00-00 lub 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Styl" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "Wartość musi być liczbą" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Rozpocznij" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "Wartość powinna być mniejsza niż 2147483648" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Ustawienia strumienia" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "Wartość powinna posiadać mniej niż %s znaków" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Ustawienia ogólne" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "Wartość nie może być pusta" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "dB" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Automatyczne wyłączanie" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Ustawienia strumienia wyjściowego" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Automatyczne włączanie" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Zarządzaj folderami mediów" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Zmień długość przenikania się utworów" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Aplikacja domyślna Zend Framework" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "wprowadź czas w sekundach 00{.000000}" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Nie znaleziono strony!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Nazwa użytkownika nadrzędnego" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "Wygląda na to, że strona, której szukasz nie istnieje" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Hasło użytkownika nadrzędnego" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "Adres URL do źródła nadrzędnego" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "Adres URL dostępu do źródła audycji" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Nadrzędny port źródłowy" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Nadrzędny punkt montowania źródła" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Port źródłowy audycji" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Źródłowy punkt montowania audycji" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "Nie można użyć tego samego portu co źródło nadrzędne" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Port %s nie jest dostępny" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Telefon:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Nazwa" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Strona internetowa stacji:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Kraj:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "Miasto:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Opis stacji:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "Nowe hasło" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Logo stacji:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "Wprowadź i potwierdź swoje hasło w poniższych polach" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Wyślij informację zwrotną" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Zaloguj" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." msgstr "" +"Witamy w internetowej wersji demonstracyjnej programu Airtime. Możesz się " +"zalogować, wpisując login 'admin' oraz hasło 'admin'" -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." msgstr "" +"Wprowadź adres swojego konta e-mail, na który zostanie przesłany link w celu " +"utworzenia nowego hasła. " -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "Wymagana jest akceptacja polityki prywatności." +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "Email został wysłany" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Pole jest wymagane i nie może być puste" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "E-mail został wysłany" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Powrót do okna logowania" + +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" msgstr "" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" msgstr "" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" msgstr "" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Nagrywać z wejścia liniowego?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "poprzedni" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Odtwarzać ponownie?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "play" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "pauza" -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Zastosuj własne uwierzytelnienie:" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "następny" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Nazwa użytkownika" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "stop" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Hasło" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "maksymalna głośność" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "Pole nazwy użytkownika nie może być puste." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Wymagana aktualizacja" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "Pole hasła nie może być puste." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 +#, php-format +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." +msgstr "" +"By odtworzyć medium, należy zaktualizować przeglądarkę do najnowszej wersji " +"bądź zainstalowac aktualizację %sFlash plugin%s" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "E-mail" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Usługa" -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Przywracanie hasła" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Czas pracy" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Sprzętowe wyjście audio" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Typ wyjścia" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Pamięć" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Metadane Icecast Vorbis" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Wersja Airtime" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Nazwa strumienia:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Miejsce na dysku " -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Artysta - Tytuł" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Zarządzaj Użytkownikami" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Audycja - Artysta -Tytuł" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "Nowy Użytkownik" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Nazwa stacji - Nazwa audycji" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "id" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Metadane Off Air" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Nazwa użytkownika" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Włącz normalizację głośności (Replay Gain)" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "Imię" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Modyfikator normalizacji głośności" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Nazwisko" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%value%' nie jest poprawnym adresem email w podstawowym formacie local-part@hostname" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "Typ użytkownika" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" -msgstr "'%value%' nie pasuje do formatu daty '%format%'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Poprzedni:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" -msgstr "'%value%' zawiera mniej niż %min% znaków" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Następny:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" -msgstr "'%value%' zawiera więcej niż %max% znaków" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Strumienie źródłowe" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" -msgstr "'%value%' nie zawiera się w przedziale od '%min%' do '%max%'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Źródło Nadrzędne" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" -msgstr "Hasła muszą się zgadzać" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Źródło audycji" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "%value% nie odpowiada formatowi 'HH:mm'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Planowane odtwarzanie" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Data/Czas rozpoczęcia:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "Na antenie" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Słuchaj" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Czas stacji" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Data/Czas zakończenia:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Twoja próba wygasa" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Czas trwania:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "dni" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Strefa czasowa:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Zakup kopię Airtime'a" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Powtarzanie?" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "Moje konto" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Nie można utworzyć audycji w przeszłości" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Nazwa użytkownika:" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Nie mozna zmienić daty/czasu audycji, która się już rozpoczęła" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Hasło:" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "Data lub czas zakończenia nie może być z przeszłości." +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "Wpisz znaki, które widzisz na obrazku poniżej." -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Czas trwania nie może być mniejszy niż 0m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Wprowadzony znak jest nieprawidłowy" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Czas trwania nie może wynosić 00h 00m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "Należy określić dzień" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Czas trwania nie może być dłuższy niż 24h" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "Należy określić czas" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Nie można planować nakładających się audycji" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "Należy odczekać przynajmniej 1 godzinę przed ponownym odtworzeniem" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Nazwa:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Zastosuj uwierzytelnienie Airtime:" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Audycja bez nazwy" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Zastosuj własne uwierzytelnienie:" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "Adres URL" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Nazwa użytkownika" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Opis:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Hasło" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" -msgstr "Automatycznie dodawaj nagrane audycje" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "Pole nazwy użytkownika nie może być puste." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" -msgstr "Włącz wysyłanie do SoundCloud" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "Pole hasła nie może być puste." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" -msgstr "Automatycznie oznaczaj pliki jako \"Do pobrania\" na SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Włączony:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" -msgstr "Email SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Typ strumienia:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" -msgstr "Hasło SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Typ usługi:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" -msgstr "Tagi SoundCloud: (oddzielaj tagi spacją)" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Kanały:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" -msgstr "Domyślny gatunek:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" -msgstr "Domyślny typ utworu:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Stereo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" -msgstr "Oryginalny" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Serwer" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "Remix" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Port" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "Na żywo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Możliwe są tylko cyfry." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "Nagranie" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Hasło" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "Mówiony" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "adres URL" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "Podcast" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Punkt montowania" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "Demo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Login Administratora" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "Praca w toku" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Hasło Administratora" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "Rdzeń" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Pobieranie informacji z serwera..." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "Pętla" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Serwer nie może być pusty." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "Efekt dźwiękowy" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Port nie może być pusty." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "Próbka one-shot" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Punkt montowania nie może być pusty dla serwera Icecast." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "Inne" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Katalog importu:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Domyślna licencja:" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Katalogi obserwowane:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "Utwór w domenie publicznej" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Nieprawidłowy katalog" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "Wszelkie prawa zastrzeżone" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Pole jest wymagane i nie może być puste" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Uznanie autorstwa wg licencji Creative Commons " +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'%value%' nie jest poprawnym adresem email w podstawowym formacie local-" +"part@hostname" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Użycie niekomercyjne wg Creative Commons " +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" +msgstr "'%value%' nie pasuje do formatu daty '%format%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Uznanie Autorstwa Bez Utworów Zależnych wg Creative Commons" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" +msgstr "'%value%' zawiera mniej niż %min% znaków" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Uznanie a Na Tych Samych Warunkach wg Creative Commons " +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" +msgstr "'%value%' zawiera więcej niż %max% znaków" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Uznanie Autorstwa Bez Utworów Zależnych wg Creative Commons" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" +msgstr "'%value%' nie zawiera się w przedziale od '%min%' do '%max%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Uznanie a Na Tych Samych Warunkach wg Creative Commons " +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" +msgstr "Hasła muszą się zgadzać" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Nagrywać z wejścia liniowego?" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "Włącz Emaile Systemowe (Resetowanie hasła)" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Odtwarzać ponownie?" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Adres nadawcy Emaila" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Kolor tła:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Skonfiguruj serwer pocztowy" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Kolor tekstu:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Wymagana autoryzacja" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "E-mail" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Serwer Email" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Przywracanie hasła" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "Adres Email" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Anuluj" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "Upewnij się, że nazwa użytkownika i hasło są poprawne w System->Strumienie." +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Potwierdź hasło:" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Webstream bez nazwy" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Imię:" -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Zapisano webstream" +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Nazwisko:" -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Nieprawidłowe wartości formularzy" +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "Email:" -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Proszę wpisać nazwę użytkownika i hasło" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Telefon:" -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Błędna nazwa użytkownika lub hasło. Spróbuj ponownie." +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "Email nie został wysłany. Sprawdź swoje ustawienia serwera pocztowego i upewnij się, że został skonfigurowany poprawnie." +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "Podany adres email nie został odnaleziony." +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "" -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Retransmisja audycji %s z %s o %s" +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Nazwa użytkownika musi być unikalna." -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Pobierz" +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Sprzętowe wyjście audio" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "Użytkownik został dodany poprawnie!" +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Typ wyjścia" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "Użytkownik został poprawnie zaktualizowany!" +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Metadane Icecast Vorbis" -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Ustawienia zostały poprawnie zaktualizowane!" +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Nazwa strumienia:" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Nie odnaleziono strony" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Artysta - Tytuł" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Błąd aplikacji" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Audycja - Artysta -Tytuł" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Nagrywanie:" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Nazwa stacji - Nazwa audycji" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Strumień Nadrzędny" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Metadane Off Air" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Transmisja na żywo" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Włącz normalizację głośności (Replay Gain)" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Nic nie zaplanowano" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Modyfikator normalizacji głośności" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Aktualna audycja:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" +msgstr "Automatycznie dodawaj nagrane audycje" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Aktualny" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" +msgstr "Włącz wysyłanie do SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "Używasz najnowszej wersji" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +msgstr "Automatycznie oznaczaj pliki jako \"Do pobrania\" na SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "Dostępna jest nowa wersja:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" +msgstr "Email SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "Ta wersja będzie wkrótce przestarzała." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" +msgstr "Hasło SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "Ta wersja nie jest już obsługiwana" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" +msgstr "Tagi SoundCloud: (oddzielaj tagi spacją)" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Zaktualizuj na" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" +msgstr "Domyślny gatunek:" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Dodaj do bieżącej listy odtwarzania" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" +msgstr "Domyślny typ utworu:" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Dodaj do bieżącego smart blocku" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" +msgstr "Oryginalny" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Dodawanie 1 elementu" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "Remix" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Dodawanie %s elementów" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "Na żywo" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "do smart blocków mozna dodawać tylko utwory." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "Nagranie" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "Do list odtwarzania można dodawać tylko utwory, smart blocki i webstreamy" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "Mówiony" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "Proszę wybrać pozycję kursora na osi czasu." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "Podcast" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Edytuj Metadane." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "Demo" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Dodaj do wybranej audycji" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "Praca w toku" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Zaznacz" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "Rdzeń" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Zaznacz tę stronę" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "Pętla" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Odznacz tę stronę" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "Efekt dźwiękowy" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Odznacz wszystko" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "Próbka one-shot" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Czy na pewno chcesz usunąć wybrane elementy?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "Inne" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Domyślna licencja:" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "Utwór w domenie publicznej" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Bit Rate" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "Wszelkie prawa zastrzeżone" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Wartość próbkowania" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Uznanie autorstwa wg licencji Creative Commons " -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Ładowanie" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Użycie niekomercyjne wg Creative Commons " -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "Wszystko" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Uznanie Autorstwa Bez Utworów Zależnych wg Creative Commons" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Pliki" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Uznanie a Na Tych Samych Warunkach wg Creative Commons " -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Listy odtwarzania" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Uznanie Autorstwa Bez Utworów Zależnych wg Creative Commons" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Smart Blocki" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Uznanie a Na Tych Samych Warunkach wg Creative Commons " -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Web Stream" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Nazwa stacji" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Nieznany typ:" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Czy na pewno chcesz usunąć wybrany element?" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "wprowadź czas w sekundach 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Wysyłanie w toku..." +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Pobieranie danych z serwera..." +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "Id SoundCloud dla tego pliku to:" +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Umożliwienie zdalnego dostępu z innych stron \"Plan\" Info?%s (Włącz, aby " +"zewnętrzne widgety działały.)" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "Wystąpił błąd podczas wysyłania na SoundCloud" +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Wyłączone" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Kod błędu:" +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Włączone" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Komunikat błędu:" +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Domyślny język" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "Podana wartość musi być liczbą dodatnią" +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "Podana wartość musi być liczbą" +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "Tydzień zaczynaj od" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "Podana wartość musi mieć format yyyy-mm-dd" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Niedziela" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "Podana wartość musi mieć format hh:mm:ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Poniedziałek" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "Aktualnie dodajesz pliki. %sPrzejście do innej strony przerwie ten proces. %sCzy na pewno chcesz przejść do innej strony?" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Wtorek" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Środa" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "Wprowadź czas w formacie: '00:00:00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Czwartek" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "Wprowadź czas w sekundach '00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Piątek" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Twoja przeglądarka nie obsługuje odtwarzania plików tego typu:" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Sobota" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Podgląd bloku dynamicznego nie jest możliwy" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Data rozpoczęcia:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Ograniczenie do:" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Data zakończenia:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Lista odtwarzania została zapisana" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Telefon:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "Playlista została przemieszana" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Strona internetowa stacji:" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime nie może odczytać statusu pliku. Może się tak zdarzyć, gdy plik znajduje się na zdalnym dysku, do którego aktualnie nie ma dostępu lub znajduje się w katalogu, który nie jest już \"obserwowany\"." +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Kraj:" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "Licznik słuchaczy na %s: %s" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "Miasto:" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Przypomnij mi za 1 tydzień" +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Opis stacji:" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Nie przypominaj nigdy" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Logo stacji:" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Tak, wspieraj Airtime" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Wyślij informację zwrotną" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "Obraz musi mieć format jpg, jpeg, png lub gif" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Promuj moją stację na Sourcefabric.org" -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "Statyczny smart block będzie zapisywał kryteria i zawartość bezpośrednio, co umożliwia edycję i wyświetlanie go w bibliotece, przed dodaniem do audycji." +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "Zanaczając to pole, akceptujesz %spolitykę prywatności%s Sourcefabric." -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "Dynamiczny smart block zapisuje tylko kryteria. Jego zawartość będzie generowana automatycznie po dodaniu go do audycji. Nie będzie można go wyświetlać i edytować w zawartości biblioteki." +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "Wymagana jest akceptacja polityki prywatności." -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "Pożądana długość bloku nie zostanie osiągnięta jesli airtime nie znajdzie wystarczającej liczby oryginalnych ścieżek spełniających kryteria wyszukiwania. Włącz tę opcję jesli chcesz, żeby ścieżki zostały wielokrotnie dodane do smart blocku." +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "%value% nie odpowiada formatowi 'HH:mm'" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Smart blocku został przemieszany" +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Data/Czas rozpoczęcia:" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Utworzono smartblock i zapisano kryteria" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Data/Czas zakończenia:" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Smart block został zapisany" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Czas trwania:" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Przetwarzanie..." +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Strefa czasowa:" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Wybierz ścieżkę do katalogu importu" +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Powtarzanie?" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Wybierz katalog do obserwacji" +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Nie można utworzyć audycji w przeszłości" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Czy na pewno chcesz zamienić ścieżkę do katalogu importu\nWszystkie pliki z biblioteki Airtime zostaną usunięte." +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "Nie mozna zmienić daty/czasu audycji, która się już rozpoczęła" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Zarządzaj folderami mediów" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "Data lub czas zakończenia nie może być z przeszłości." -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Czy na pewno chcesz usunąć katalog z listy katalogów obserwowanych?" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Czas trwania nie może być mniejszy niż 0m" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "Ściezka jest obecnie niedostepna." +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Czas trwania nie może wynosić 00h 00m" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "" +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Czas trwania nie może być dłuższy niż 24h" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Połączono z serwerem streamingu" +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Audycja bez nazwy" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "Strumień jest odłączony" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Szukaj Użytkowników:" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Nie można połączyć z serwerem streamującym" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "Prowadzący:" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Jesli Airtime korzysta z routera bądź firewalla, może być konieczna konfiguracja przekierowywania portu i informacja w tym polu będzie nieprawidłowa. W takim wypadku należy dokonac ręcznej aktualizacji pola, tak żeby wyświetlił się prawidłowy host/ port/ mount, do którego mógłby podłączyć się prowadzący. Dopuszczalny zakres to 1024 i 49151." +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Potwierdź nowe hasło" -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "W celu uzyskania wiecej informacji, należy zapoznać się z %sAirtime Manual%s" +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "Hasła muszą się zgadzać." -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Zaznacz tę opcję w celu włączenia metadanych dla strumieni OGG (metadane strumieniowe to tytuł ścieżki, artysta i nazwa audycji, ktróre wyświetlają się w odtwarzaczu audio). VLC oraz mplayer mają problem z odtwarzaniem strumienia OGG/Vorbis, których metadane zostały udostępnione- odłączają się one od strumenia po każdej piosence. Jeśli używasz strumeinia OGG, a słuchacze nie żądają mozliwości odtwarzania w tych odtwarzaczach, wówczas można udostepnić tę opcję" +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Uzyskaj nowe hasło" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "To pole służy do automatycznego wyłączenia źródła nadrzędnego/źródła audycji po jego odłączeniu." +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "Typ użytkownika:" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "To pole służy automatycznego uruchomienia źródła nadrzędnego/źródła audycji na połączeniu źródłowym" +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Gość" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Jesli serwer Icecast wymaga nazwy użytkownika \"source\", pole to może zostać puste" +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "Prowadzący" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "Jeśli klient nie żąda nazwy uzytkownika, zawartośc tego pola powinna być \"source\"" +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Menedżer programowy" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "Jeśli nazwa użytkownika bądź hasło zostaną zmienione na włączonym strumieniu, urządzenie zostanie uruchomione ponownie i nastąpi 5-10 sekundowa cisza. Zmiany w następujących polach NIE spowodują ponownego uruchomienia: Nazwa Strumienia (ustawienia globalne), Zmiana Czasu Zanikania, Nazwa Użytkownika Nadrzędnego (Ustawienia Strumienia Wyjściowego). Jeśli Airtime jest w trakcie nagrywania programu, a zmiany spowodują ponowne uruchomienie urządzenia, nagrywanie zostanie przerwane." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Administrator" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "Nazwa uzytkownika i hasło administartora w programie Icecast/ SHOUTcast w celu uzyskania dostępu do statystyki słuchalności" +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "Numer ISRC:" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "" +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Audycja:" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "Nie znaleziono wyników" +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "Wszystkie moje audycje:" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "Ta funkcja działa w programach wg tych samych zasad bezpiezeństwa: jedynie użytkownicy przypisani do audcyji mogą się podłączyć." +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Ustal własne uwierzytelnienie tylko dla tej audycji." +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Typ powtarzania:" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "Instancja audycji już nie istnieje." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "tygodniowo" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Audycja" - -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "Audycja jest pusta" - -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1 min" - -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5 min" +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "miesięcznie" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10 min" +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Wybierz dni:" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15 min" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "Nie" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30 min" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Pon" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60 min" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Wt" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Odbieranie danych z serwera" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "Śr" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "Ta audycja nie ma zawartości" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Czw" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "Brak pełnej zawartości tej audycji." +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Pt" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "Styczeń" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "Sob" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "Luty" +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "Marzec" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "Kwiecień" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "Maj" +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "Bez czasu końcowego?" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "Czerwiec" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "Data końcowa musi występować po dacie początkowej" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "Lipiec" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "Sierpień" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "Włącz Emaile Systemowe (Resetowanie hasła)" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "Wrzesień" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Adres nadawcy Emaila" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "Październik" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Skonfiguruj serwer pocztowy" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "Listopad" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Wymagana autoryzacja" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "Grudzień" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Serwer Email" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Sty" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "Adres Email" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Lut" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Wybierz kryteria" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Mar" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Bit Rate (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Kwi" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Cze" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Lip" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Cue out" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Sie" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Kodowane przez" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Wrz" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Ostatnio zmodyfikowany" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Paź" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Ostatnio odtwarzany" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Lis" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Podobne do" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Gru" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Właściciel" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "dzisiaj" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Normalizacja głośności (Replay Gain)" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "dzień" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Częstotliwość próbkowania (kHz)" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "tydzień" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Numer utworu" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "miesiąć" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Przesłano" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Audycje o czasie dłuższym niż zaplanowany będą przerywane przez następne ." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Strona internetowa" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Skasować obecną audycję?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Wybierz modyfikator" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Przerwać nagrywanie aktualnej audycji?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "zawiera" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "Ok" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "nie zawiera" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Zawartośc audycji" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "to" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Usunąć całą zawartość?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "to nie" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Skasować wybrane elementy?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "zaczyna się od" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Rozpocznij" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "kończy się" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "Zakończ" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "jest większa niż" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Czas trwania" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "jest mniejsza niż" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Audycja jest pusta" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "mieści się w zakresie" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Nagrywaanie z wejścia liniowego" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "godzin(y)" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Podgląd utworu" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "minut(y)" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Nie ma możliwości planowania poza audycją." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "elementy" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Przenoszenie 1 elementu" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Ustaw typ smart blocku:" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Przenoszenie %s elementów" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Statyczny" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Dynamiczny" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Zezwól na powtarzanie utworów:" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Ogranicz do" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Zaznacz wszystko" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Tworzenie zawartości listy odtwarzania i zapisz kryteria" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Odznacz wszystkie" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Utwórz" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Usuń utwory niemieszczące się w ramach czasowych audycji" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Losowa kolejność odtwarzania" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Usuń wybrane elementy" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "Limit nie może być pusty oraz mniejszy od 0" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Przejdź do obecnie odtwarzanej ściezki" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "Limit nie może być większy niż 24 godziny" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Skasuj obecną audycję" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "Wartość powinna być liczbą całkowitą" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Otwóz bibliotekę w celu dodania bądź usunięcia zawartości" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "Maksymalna liczba elementów do ustawienia to 500" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Dodaj/usuń zawartość" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "Należy wybrać kryteria i modyfikator" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "W użyciu" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "Długość powinna być wprowadzona w formacie '00:00:00'" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Dysk" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"Wartość powinna byc zapisana w formacie timestamp (np. 0000-00-00 lub " +"0000-00-00 00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Sprawdź" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "Wartość musi być liczbą" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Otwórz" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "Wartość powinna być mniejsza niż 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "Goście mają mozliwość:" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "Wartość powinna posiadać mniej niż %s znaków" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "Przeglądanie harmonogramu" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "Wartość nie może być pusta" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "Przeglądanie zawartości audycji" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Automatyczne wyłączanie" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "Prowadzący ma możliwość:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Automatyczne włączanie" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Zarządzać przypisaną sobie zawartością audycji" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Zmień długość przenikania się utworów" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Importować pliki mediów" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "wprowadź czas w sekundach 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Tworzyć playlisty, smart blocki i webstreamy" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Nazwa użytkownika nadrzędnego" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Zarządzać zawartością własnej biblioteki" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Hasło użytkownika nadrzędnego" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "Zarządzający programowi mają możliwość:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "Adres URL do źródła nadrzędnego" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "Przeglądać i zarządzać zawartością audycji" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "Adres URL dostępu do źródła audycji" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Planować audycję" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Nadrzędny port źródłowy" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "Zarządzać całą zawartością biblioteki" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Nadrzędny punkt montowania źródła" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Administrator ma mozliwość:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Port źródłowy audycji" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Zarządzać preferencjami" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Źródłowy punkt montowania audycji" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "Zarządzać użytkownikami" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "Nie można użyć tego samego portu co źródło nadrzędne" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "Zarządzać przeglądanymi katalogami" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Port %s nie jest dostępny" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "Sprawdzać status systemu" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" +"Airtime Copyright ©Sourcefabric o.p.s. Wszelkie prawa zastrzeżone." +"%sUżytkowany i udostępniany na podstawie licencji GNU GPL v.3 by " +"%sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Przeglądać historię odtworzeń" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Wyloguj" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "Sprawdzać statystyki słuchaczy" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Pokaż/ukryj kolumny" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "Od {from} do {to}" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "yyyy-mm-dd" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "hh:mm:ss.t" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Zgłaśnianie [Fade In]" -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Wyciszanie [Fade out]" -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Nd" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Odtwrzacz " -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Pn" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Proszę wpisać nazwę użytkownika i hasło" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Wt" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "Błędna nazwa użytkownika lub hasło. Spróbuj ponownie." + +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"Email nie został wysłany. Sprawdź swoje ustawienia serwera pocztowego i " +"upewnij się, że został skonfigurowany poprawnie." -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "Śr" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "Podany adres email nie został odnaleziony." -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Cz" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Nagrywanie:" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Pt" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Strumień Nadrzędny" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "So" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Transmisja na żywo" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Zamknij" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Nic nie zaplanowano" -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Godzina" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Aktualna audycja:" -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Minuta" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Aktualny" -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Gotowe" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "Używasz najnowszej wersji" -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Wybierz pliki" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "Dostępna jest nowa wersja:" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Dodaj pliki do kolejki i wciśnij \"start\"" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "Ta wersja będzie wkrótce przestarzała." -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Status" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "Ta wersja nie jest już obsługiwana" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Dodaj pliki" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Zaktualizuj na" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Zatrzymaj przesyłanie" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Dodaj do bieżącej listy odtwarzania" -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Rozpocznij przesyłanie" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Dodaj do bieżącego smart blocku" -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Dodaj pliki" +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Dodawanie 1 elementu" -#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 #, php-format -msgid "Uploaded %d/%d files" -msgstr "Dodano pliki %d%d" +msgid "Adding %s Items" +msgstr "Dodawanie %s elementów" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "Nie dotyczy" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "do smart blocków mozna dodawać tylko utwory." -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Przeciągnij pliki tutaj." +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "" +"Do list odtwarzania można dodawać tylko utwory, smart blocki i webstreamy" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "Błąd rozszerzenia pliku." +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "Proszę wybrać pozycję kursora na osi czasu." -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "Błąd rozmiaru pliku." +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Edytuj Metadane." -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "Błąd liczenia plików" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Dodaj do wybranej audycji" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Błąd inicjalizacji" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Zaznacz" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "Błąd HTTP." +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Zaznacz tę stronę" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Błąd zabezpieczeń." +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Odznacz tę stronę" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Błąd ogólny." +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Odznacz wszystko" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "Błąd I/O" +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Czy na pewno chcesz usunąć wybrane elementy?" -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "Plik: %s" +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d plików oczekujących" +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "Plik: %f, rozmiar %s, maksymalny rozmiar pliku: %m" +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Bit Rate" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "URL nie istnieje bądź jest niewłaściwy" +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Wartość próbkowania" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Błąd: plik jest za duży:" +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "Ładowanie" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Błąd: nieprawidłowe rozszerzenie pliku:" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Pliki" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Listy odtwarzania" -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Smart Blocki" + +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Web Stream" + +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Nieznany typ:" -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Czy na pewno chcesz usunąć wybrany element?" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "Skopiowano %srow%s do schowka" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Wysyłanie w toku..." -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%sPrint view%s Użyj j funkcji drukowania na swojej wyszykiwarce. By zakończyć, wciśnij 'escape'." +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Pobieranie danych z serwera..." -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "Nie masz uprawnień do odłączenia żródła" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "Id SoundCloud dla tego pliku to:" -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "Źródło nie jest podłączone do tego wyjścia." +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "Wystąpił błąd podczas wysyłania na SoundCloud" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "Nie masz uprawnień do przełączenia źródła." +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Kod błędu:" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "Przeglądasz starszą wersję %s" +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Komunikat błędu:" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "Nie można dodać ścieżek do bloków dynamicznych" +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "Podana wartość musi być liczbą dodatnią" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 -#, php-format -msgid "%s not found" -msgstr "nie znaleziono %s" +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "Podana wartość musi być liczbą" -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "Nie masz pozwolenia na usunięcie wybranych %s(s)" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "Podana wartość musi mieć format yyyy-mm-dd" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Wystapił błąd" +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "Podana wartość musi mieć format hh:mm:ss.t" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "Utwory mogą być dodane tylko do smartblocku" +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 +#, php-format +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"Aktualnie dodajesz pliki. %sPrzejście do innej strony przerwie ten proces. " +"%sCzy na pewno chcesz przejść do innej strony?" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Lista odtwarzania bez tytułu" +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Smartblock bez tytułu" +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "Wprowadź czas w formacie: '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Nieznana playlista" +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "Wprowadź czas w sekundach '00 (.0)'" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "Nie masz dostępu do tej lokalizacji" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "Twoja przeglądarka nie obsługuje odtwarzania plików tego typu:" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "Nie masz dostępu do tej lokalizacji." +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Podgląd bloku dynamicznego nie jest możliwy" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Ograniczenie do:" -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Złe zapytanie. Nie zaakceprtowano parametru 'mode'" +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Lista odtwarzania została zapisana" -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Złe zapytanie. Parametr 'mode' jest nieprawidłowy" +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "Playlista została przemieszana" -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Podgląd" +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." +msgstr "" +"Airtime nie może odczytać statusu pliku. Może się tak zdarzyć, gdy plik " +"znajduje się na zdalnym dysku, do którego aktualnie nie ma dostępu lub " +"znajduje się w katalogu, który nie jest już \"obserwowany\"." -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Dodaj do listy odtwarzania" +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "Licznik słuchaczy na %s: %s" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Dodaj do smartblocku" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "Przypomnij mi za 1 tydzień" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Usuń" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Nie przypominaj nigdy" -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Skopiuj listę odtwarzania" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Tak, wspieraj Airtime" -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Edytuj" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "Obraz musi mieć format jpg, jpeg, png lub gif" -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." +msgstr "" +"Statyczny smart block będzie zapisywał kryteria i zawartość bezpośrednio, co " +"umożliwia edycję i wyświetlanie go w bibliotece, przed dodaniem do audycji." -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Zobacz na Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"Dynamiczny smart block zapisuje tylko kryteria. Jego zawartość będzie " +"generowana automatycznie po dodaniu go do audycji. Nie będzie można go " +"wyświetlać i edytować w zawartości biblioteki." -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Prześlij ponownie do SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"Pożądana długość bloku nie zostanie osiągnięta jesli airtime nie znajdzie " +"wystarczającej liczby oryginalnych ścieżek spełniających kryteria " +"wyszukiwania. Włącz tę opcję jesli chcesz, żeby ścieżki zostały wielokrotnie " +"dodane do smart blocku." -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Prześlij do SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Smart blocku został przemieszany" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "Brak dostepnych czynności" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Utworzono smartblock i zapisano kryteria" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "Nie masz uprawnień do usunięcia wybranych elementów" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Smart block został zapisany" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Nie można skasować niektórych plików z harmonogramu." +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "Przetwarzanie..." -#: airtime_mvc/application/controllers/LibraryController.php:404 -#, php-format -msgid "Copy of %s" -msgstr "Kopia %s" +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Wybierz ścieżkę do katalogu importu" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Wybierz kursor" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Wybierz katalog do obserwacji" -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Usuń kursor" +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Czy na pewno chcesz zamienić ścieżkę do katalogu importu\n" +"Wszystkie pliki z biblioteki Airtime zostaną usunięte." -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "audycja nie istnieje" +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Czy na pewno chcesz usunąć katalog z listy katalogów obserwowanych?" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Zaktualizowano preferencje." +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "Ściezka jest obecnie niedostepna." -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Zaktualizowano ustawienia wsparcia." +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#, php-format +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Informacja zwrotna" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Połączono z serwerem streamingu" -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Zaktualizowano ustawienia strumienia" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "Strumień jest odłączony" -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "należy okreslić ścieżkę" +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Nie można połączyć z serwerem streamującym" -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Problem z Liquidsoap..." +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"Jesli Airtime korzysta z routera bądź firewalla, może być konieczna " +"konfiguracja przekierowywania portu i informacja w tym polu będzie " +"nieprawidłowa. W takim wypadku należy dokonac ręcznej aktualizacji pola, tak " +"żeby wyświetlił się prawidłowy host/ port/ mount, do którego mógłby " +"podłączyć się prowadzący. Dopuszczalny zakres to 1024 i 49151." -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Aktualnie odtwarzane" +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "" +"W celu uzyskania wiecej informacji, należy zapoznać się z %sAirtime Manual%s" -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Dodaj media" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"Zaznacz tę opcję w celu włączenia metadanych dla strumieni OGG (metadane " +"strumieniowe to tytuł ścieżki, artysta i nazwa audycji, ktróre wyświetlają " +"się w odtwarzaczu audio). VLC oraz mplayer mają problem z odtwarzaniem " +"strumienia OGG/Vorbis, których metadane zostały udostępnione- odłączają się " +"one od strumenia po każdej piosence. Jeśli używasz strumeinia OGG, a " +"słuchacze nie żądają mozliwości odtwarzania w tych odtwarzaczach, wówczas " +"można udostepnić tę opcję" -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Biblioteka" +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"To pole służy do automatycznego wyłączenia źródła nadrzędnego/źródła audycji " +"po jego odłączeniu." -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Kalendarz" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"To pole służy automatycznego uruchomienia źródła nadrzędnego/źródła audycji " +"na połączeniu źródłowym" -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "System" +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"Jesli serwer Icecast wymaga nazwy użytkownika \"source\", pole to może " +"zostać puste" -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Preferencje" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"Jeśli klient nie żąda nazwy uzytkownika, zawartośc tego pola powinna być " +"\"source\"" -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Użytkownicy" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"Jeśli nazwa użytkownika bądź hasło zostaną zmienione na włączonym " +"strumieniu, urządzenie zostanie uruchomione ponownie i nastąpi 5-10 " +"sekundowa cisza. Zmiany w następujących polach NIE spowodują ponownego " +"uruchomienia: Nazwa Strumienia (ustawienia globalne), Zmiana Czasu " +"Zanikania, Nazwa Użytkownika Nadrzędnego (Ustawienia Strumienia " +"Wyjściowego). Jeśli Airtime jest w trakcie nagrywania programu, a zmiany " +"spowodują ponowne uruchomienie urządzenia, nagrywanie zostanie przerwane." -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Foldery mediów" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"Nazwa uzytkownika i hasło administartora w programie Icecast/ SHOUTcast w " +"celu uzyskania dostępu do statystyki słuchalności" -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Strumienie" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Statystyki słuchaczy" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "Nie znaleziono wyników" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." msgstr "" +"Ta funkcja działa w programach wg tych samych zasad bezpiezeństwa: jedynie " +"użytkownicy przypisani do audcyji mogą się podłączyć." -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Historia odtwarzania" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "Ustal własne uwierzytelnienie tylko dla tej audycji." -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "Instancja audycji już nie istnieje." + +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" msgstr "" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Pomoc" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Jak zacząć" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." +msgstr "" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "Instrukcja użytkowania" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Audycja" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "Informacje" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "Audycja jest pusta" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Usługa" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1 min" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Czas pracy" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5 min" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10 min" + +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15 min" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Pamięć" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30 min" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60 min" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Miejsce na dysku " +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Odbieranie danych z serwera" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "Ustawienia Email/Serwera pocztowego" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "Ta audycja nie ma zawartości" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "Ustawienia SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "Brak pełnej zawartości tej audycji." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Dni powtarzania:" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "Styczeń" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Usuń" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "Luty" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Dodaj" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "Marzec" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "Połaczenie URL:" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "Kwiecień" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Ustawienia strumienia wejściowego" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "Maj" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "Adres URL połącznia dla Źródła Nadrzędnego" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "Czerwiec" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Zastąp" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "Lipiec" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "OK" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "Sierpień" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "RESETUJ" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "Wrzesień" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "Adres URL połączenia dla Żródła audycji" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "Październik" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Wymagane)" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "Listopad" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Zarejestruj Airtime" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "Grudzień" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Sty" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "Lut" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(tylko dla celów weryfikacji, dane nie będą rozpowszechniane)" +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "Mar" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Uwaga: każdy plik o rozmiarze większym niż 600x600 zostanie zmniejszony" +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "Kwi" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Pokazuj, co wysyłam" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "Cze" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Zasady i warunki" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "Lip" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Resetuj hasło" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "Sie" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Wybierz folder" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "Wrz" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Ustaw" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "Paź" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Aktualny folder importu:" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "Lis" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "Gru" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Usuń obserwowany katalog." +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "dzisiaj" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "Nie obserwujesz w tej chwili żadnych folderów" +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "dzień" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Strumień" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "tydzień" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Opcje dodatkowe" +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "miesiąć" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "W odtwarzaczu słuchacza wyświetli sie nastepujaca informacja:" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "" +"Audycje o czasie dłuższym niż zaplanowany będą przerywane przez następne ." -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(Strona internetowa Twojej stacji)" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Skasować obecną audycję?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "URL strumienia:" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Przerwać nagrywanie aktualnej audycji?" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Filtruj Historię" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "Ok" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Znajdź audycję" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Zawartośc audycji" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Filtruj wg audycji" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Usunąć całą zawartość?" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "ustawienia %s's " +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Skasować wybrane elementy?" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "Zakończ" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(Aby promowac stację, należy udostepnić funkcję \"wyślij informację zwrotną\")" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Czas trwania" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Polityka prywatności Sourcefabric" +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Audycja jest pusta" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Nagrywaanie z wejścia liniowego" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Podgląd utworu" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Wybierz dni:" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Nie ma możliwości planowania poza audycją." -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Opcje smart blocku" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Przenoszenie 1 elementu" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Przenoszenie %s elementów" + +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr "do" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "pliki spełniają kryteria" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Zaznacz wszystko" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "plik spełnia kryteria" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Odznacz wszystkie" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Usuń utwory niemieszczące się w ramach czasowych audycji" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Usuń wybrane elementy" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Przejdź do obecnie odtwarzanej ściezki" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Skasuj obecną audycję" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "Otwóz bibliotekę w celu dodania bądź usunięcia zawartości" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "W użyciu" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Dysk" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Sprawdź" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Otwórz" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "Goście mają mozliwość:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "Przeglądanie harmonogramu" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "Nowy" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "Przeglądanie zawartości audycji" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "Nowa lista odtwarzania" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "Prowadzący ma możliwość:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "Nowy Smartblock" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "Zarządzać przypisaną sobie zawartością audycji" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "Nowy webstream" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Importować pliki mediów" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "Zobacz/edytuj opis" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Tworzyć playlisty, smart blocki i webstreamy" + +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "Zarządzać zawartością własnej biblioteki" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "URL strumienia:" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "Zarządzający programowi mają możliwość:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Domyślna długość:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "Przeglądać i zarządzać zawartością audycji" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "Brak webstreamu" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Planować audycję" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Ustawienia strumienia" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "Zarządzać całą zawartością biblioteki" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Ustawienia ogólne" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "Administrator ma mozliwość:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "dB" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Zarządzać preferencjami" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Ustawienia strumienia wyjściowego" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "Zarządzać użytkownikami" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "Importowanie plików w toku..." +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "Zarządzać przeglądanymi katalogami" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Zaawansowane opcje wyszukiwania" +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "Sprawdzać status systemu" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "poprzedni" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Przeglądać historię odtworzeń" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "play" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "Sprawdzać statystyki słuchaczy" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "pauza" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Pokaż/ukryj kolumny" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "następny" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "Od {from} do {to}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "stop" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "wycisz" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "yyyy-mm-dd" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "włącz głos" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "hh:mm:ss.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "maksymalna głośność" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Wymagana aktualizacja" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "Nd" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "By odtworzyć medium, należy zaktualizować przeglądarkę do najnowszej wersji bądź zainstalowac aktualizację %sFlash plugin%s" +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Pn" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Długość: " +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Wt" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Częstotliwość próbkowania:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "Śr" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "Numer Isrc:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Cz" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "Ścieżka pliku:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Pt" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Web Stream" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "So" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Smart block dynamiczny" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Godzina" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Smart block statyczny" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Minuta" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Ścieżka audio" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Gotowe" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Zawartość listy odtwarzania:" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Wybierz pliki" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Zawartość statycznego Smart Blocka:" +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "Dodaj pliki do kolejki i wciśnij \"start\"" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Kryteria dynamicznego Smart Blocku " +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Dodaj pliki" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Ogranicz(enie) do:" +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Zatrzymaj przesyłanie" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Licznik słuchaczy na przestrzeni czasu" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Rozpocznij przesyłanie" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 -#, php-format -msgid "Welcome to %s!" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Dodaj pliki" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "" +msgid "Uploaded %d/%d files" +msgstr "Dodano pliki %d%d" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Zacznij od dodania swoich plików do biblioteki używając przycisku \"dodaj media\" w menu programu\". Możesz także przeciągnąć pliki do tego okna." +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "Nie dotyczy" + +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Przeciągnij pliki tutaj." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Utwórz audycję przechodząc do '\"kalendarza\" w pasku \"menu\" a następnie klikając w ikonę \"+ Audycja\". Można utworzyć audycję do jednorazowego bądź wielokrotnego odtwarzania. Jedynie administratorzy i zarządzający audycjami mogą je dodawać." +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "Błąd rozszerzenia pliku." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Dodaj media do audycji przez przejście do audycji w kalendarzu, kliknij na niego lewym przyciskiem myszki wybierając opcję 'dodaj/usuń zawartość'" +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "Błąd rozmiaru pliku." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Wybierz media z lewego okna i przeciągnij do utworzonej audyji w prawym oknie" +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "Błąd liczenia plików" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "Gotowe!" +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Błąd inicjalizacji" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "W celu uzyskania szczegółowej pomocy, skorzystaj z %suser manual%s" +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "Błąd HTTP." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Podziel się" +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Błąd zabezpieczeń." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Wybierz strumień:" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Błąd ogólny." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "Błąd I/O" + +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "" +msgid "File: %s" +msgstr "Plik: %s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "" +msgid "%d files queued" +msgstr "%d plików oczekujących" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "Nowe hasło" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "Plik: %f, rozmiar %s, maksymalny rozmiar pliku: %m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Wprowadź i potwierdź swoje hasło w poniższych polach" +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "URL nie istnieje bądź jest niewłaściwy" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Wprowadź adres swojego konta e-mail, na który zostanie przesłany link w celu utworzenia nowego hasła. " +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Błąd: plik jest za duży:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "Email został wysłany" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "Błąd: nieprawidłowe rozszerzenie pliku:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "E-mail został wysłany" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Powrót do okna logowania" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "Skopiowano %srow%s do schowka" + +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" +"%sPrint view%s Użyj j funkcji drukowania na swojej wyszykiwarce. By " +"zakończyć, wciśnij 'escape'." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Poprzedni:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Następny:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Strumienie źródłowe" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Źródło Nadrzędne" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Źródło audycji" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Podgląd" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Planowane odtwarzanie" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Wybierz kursor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "Na antenie" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Usuń kursor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Słuchaj" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "audycja nie istnieje" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Czas stacji" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Zaktualizowano preferencje." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Twoja próba wygasa" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Zaktualizowano ustawienia wsparcia." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Zaktualizowano ustawienia strumienia" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "Moje konto" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "należy okreslić ścieżkę" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Zarządzaj Użytkownikami" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Problem z Liquidsoap..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "Nowy Użytkownik" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Nie odnaleziono strony" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "id" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Błąd aplikacji" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "Imię" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "nie znaleziono %s" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Nazwisko" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Wystapił błąd" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "Typ użytkownika" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Dodaj do listy odtwarzania" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Dodaj do smartblocku" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Pobierz" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Skopiuj listę odtwarzania" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Aplikacja domyślna Zend Framework" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "Soundcloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Nie znaleziono strony!" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "Brak dostepnych czynności" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "Wygląda na to, że strona, której szukasz nie istnieje" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "Nie masz uprawnień do usunięcia wybranych elementów" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Zwiększ bok statyczny" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "Nie można skasować niektórych plików z harmonogramu." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Zwiększ blok dynamiczny" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Kopia %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Pusty smart block" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Webstream bez nazwy" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Pusta playlista" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Zapisano webstream" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Nieprawidłowe wartości formularzy" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "Nie masz uprawnień do odłączenia żródła" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Wymieszaj listę odtwarzania" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "Źródło nie jest podłączone do tego wyjścia." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Zapisz listę odtwarzania" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "Nie masz uprawnień do przełączenia źródła." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Płynne przenikanie utworów na liście dotwarzania" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "Użytkownik został dodany poprawnie!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Zgłaśnianie [fade in]:" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "Użytkownik został poprawnie zaktualizowany!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Wyciszanie [fade out]:" +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "Ustawienia zostały poprawnie zaktualizowane!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "Brak otwartej listy odtwarzania" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Retransmisja audycji %s z %s o %s" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." msgstr "" +"Upewnij się, że nazwa użytkownika i hasło są poprawne w System->Strumienie." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "Nie masz dostępu do tej lokalizacji" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "Brak otwartego smartblocka" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "Nie masz dostępu do tej lokalizacji." -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "Plik nie istnieje w Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Zgłaśnianie [Cue in]:" +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "Plik nie istnieje w Airtime" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "Plik nie istnieje w Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Wyciszanie [Cue out]:" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Złe zapytanie. Nie zaakceprtowano parametru 'mode'" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Oryginalna długość:" +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Złe zapytanie. Parametr 'mode' jest nieprawidłowy" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Dodaj audycję" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "Przeglądasz starszą wersję %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Aktualizuj audycję" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "Nie można dodać ścieżek do bloków dynamicznych" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "Co" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "Nie masz pozwolenia na usunięcie wybranych %s(s)" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "Kiedy" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "Utwory mogą być dodane tylko do smartblocku" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Wejście Strumienia \"Na żywo\"" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Lista odtwarzania bez tytułu" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Nagrywaj i odtwarzaj ponownie" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Smartblock bez tytułu" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Kto" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Nieznana playlista" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Styl" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "Cue-in i cue-out mają wartość zerową." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Retransmisja z %s do %s" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "Wartość cue-out nie może być większa niż długość pliku." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Wybierz kraj" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "Wartość cue-in nie może być większa niż cue-out." + +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Wartość cue-out nie może być mniejsza od cue-in." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3648,43 +4325,26 @@ msgstr "Nieprawidłowy webstream, prawdopodobnie trwa pobieranie pliku." msgid "Unrecognized stream type: %s" msgstr "Nie rozpoznano typu strumienia: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s jest już obserwowny." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s zawiera obserwowany katalog zagnieżdzony: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s jest zagnieżdzony w istniejącym, aktualnie obserwowanym katalogu: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s nie jest poprawnym katalogiem." - -#: airtime_mvc/application/models/MusicDir.php:232 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s jest już ustawiony jako katalog główny bądź znajduje się na liście katalogów obserwowanych" - -#: airtime_mvc/application/models/MusicDir.php:386 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s jest już ustawiony jako katalog główny bądź znajduje się na liście katalogów obserwowanych." +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Witaj %s, \n" +"\n" +"Kliknij w ten link aby zresetować swoje hasło:" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s nie występuje na liście katalogów obserwowanych." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Resetowanie hasła Airtime" + +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Wybierz kraj" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3692,13 +4352,19 @@ msgstr "" #: airtime_mvc/application/models/Scheduler.php:119 msgid "The schedule you're viewing is out of date! (sched mismatch)" -msgstr "Harmonogram, który przeglądasz jest nieaktualny! (błędne dopasowanie harmonogramu)" +msgstr "" +"Harmonogram, który przeglądasz jest nieaktualny! (błędne dopasowanie " +"harmonogramu)" #: airtime_mvc/application/models/Scheduler.php:124 msgid "The schedule you're viewing is out of date! (instance mismatch)" -msgstr "Harmonogram, który przeglądasz jest nieaktualny! (błędne dopasowanie instancji)" +msgstr "" +"Harmonogram, który przeglądasz jest nieaktualny! (błędne dopasowanie " +"instancji)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3716,7 +4382,8 @@ msgstr "Nie można dodawać plików do nagrywanych audycji." #: airtime_mvc/application/models/Scheduler.php:152 #, php-format msgid "The show %s is over and cannot be scheduled." -msgstr "Audycja %s przekracza dopuszczalną długość i nie może zostać zaplanowana." +msgstr "" +"Audycja %s przekracza dopuszczalną długość i nie może zostać zaplanowana." #: airtime_mvc/application/models/Scheduler.php:159 #, php-format @@ -3729,61 +4396,63 @@ msgid "" "broadcasted" msgstr "" -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." -msgstr "" - +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "Wybrany plik nie istnieje!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "Cue-in i cue-out mają wartość zerową." - -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Wartość cue-in nie może być większa niż cue-out." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s jest już obserwowny." -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Wartość cue-out nie może być większa niż długość pliku." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s zawiera obserwowany katalog zagnieżdzony: %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Wartość cue-out nie może być mniejsza od cue-in." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "" +"%s jest zagnieżdzony w istniejącym, aktualnie obserwowanym katalogu: %s" -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." -msgstr "Katalog 'organize' nie może zostać utworzony." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s nie jest poprawnym katalogiem." -#: airtime_mvc/application/models/StoredFile.php:1017 +#: airtime_mvc/application/models/MusicDir.php:232 #, php-format msgid "" -"The file was not uploaded, there is %s MB of disk space left and the file " -"you are uploading has a size of %s MB." -msgstr "Plik nie został przesłany, na dysku pozostało %s MB wolnego miejsca, a plik który próbujesz przesłać ma %s MB." +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s jest już ustawiony jako katalog główny bądź znajduje się na liście " +"katalogów obserwowanych" -#: airtime_mvc/application/models/StoredFile.php:1026 +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format msgid "" -"This file appears to be corrupted and will not be added to media library." -msgstr "Ten plik jest prawdopodobnie uszkodzony i nie można go dodać do biblioteki mediów." +"%s is already set as the current storage dir or in the watched folders list." +msgstr "" +"%s jest już ustawiony jako katalog główny bądź znajduje się na liście " +"katalogów obserwowanych." -#: airtime_mvc/application/models/StoredFile.php:1065 -msgid "" -"The file was not uploaded, this error can occur if the computer hard drive " -"does not have enough disk space or the stor directory does not have correct " -"write permissions." -msgstr "Plik nie został dodany, błąd ten może występować w przypadku, kiedy nie ma wystarczającej ilości wolnego miejsca na dysku lub katalog przechowywania nie posiada odpowiednich uprawnień do zapisu." +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s nie występuje na liście katalogów obserwowanych." + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Retransmisja z %s do %s" #: airtime_mvc/application/models/Show.php:180 msgid "Shows can have a max length of 24 hours." @@ -3793,116 +4462,153 @@ msgstr "Audycje mogą mieć maksymalną długość 24 godzin." msgid "" "Cannot schedule overlapping shows.\n" "Note: Resizing a repeating show affects all of its repeats." -msgstr "Nie można planować audycji nakładających się na siebie.\nUwaga: zmiana audycji powoduje automatyczną zmianę wszystkich jej powtórzeń." +msgstr "" +"Nie można planować audycji nakładających się na siebie.\n" +"Uwaga: zmiana audycji powoduje automatyczną zmianę wszystkich jej powtórzeń." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/models/StoredFile.php:1017 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Witaj %s, \n\nKliknij w ten link aby zresetować swoje hasło:" - -#: airtime_mvc/application/models/Auth.php:36 -#, php-format -msgid "%s Password Reset" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." msgstr "" +"Plik nie został przesłany, na dysku pozostało %s MB wolnego miejsca, a plik " +"który próbujesz przesłać ma %s MB." -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "" +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "nie można zmienić rozmiaru przeszłej audycji" -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "Przeglądaj metadane nagrania" +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "Audycje nie powinny nakładać się." -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Zawartość audycji" +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." +msgstr "Katalog 'organize' nie może zostać utworzony." -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Usuń całą zawartość" +#: airtime_mvc/application/models/StoredFile.php:1026 +msgid "" +"This file appears to be corrupted and will not be added to media library." +msgstr "" +"Ten plik jest prawdopodobnie uszkodzony i nie można go dodać do biblioteki " +"mediów." -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Skasuj obecną audycję" +#: airtime_mvc/application/models/StoredFile.php:1065 +msgid "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." +msgstr "" +"Plik nie został dodany, błąd ten może występować w przypadku, kiedy nie ma " +"wystarczającej ilości wolnego miejsca na dysku lub katalog przechowywania " +"nie posiada odpowiednich uprawnień do zapisu." -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" +#: airtime_mvc/application/layouts/scripts/login.phtml:24 +#, php-format +msgid "" +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Edytuj audycję" +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#, php-format +msgid "Promote my station on %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Usuń tą instancję" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Usuń ten i wszystkie inne instancje" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Nie można użyć metody 'przeciągnij i upuść' dla powtórek audycji." +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Nie można przenieść audycji archiwalnej" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Nie można przenieść audycji w przeszłość" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Nagrywana audycja nie może zostać przeniesiona na mniej niż 1h przed jej powtórką." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "Audycja została usunięta, ponieważ nagranie nie istnieje!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Należy odczekać 1 godzinę przed ponownym odtworzeniem." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Odtwarzane" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "Rok %s musi być w przedziale od 1753 do 9999" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s nie jest poprawną datą" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s:%s:%s nie jest prawidłowym czasem" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Wybierz opcję" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "Brak danych" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/locale/pt_BR/LC_MESSAGES/airtime.po b/airtime_mvc/locale/pt_BR/LC_MESSAGES/airtime.po index 6bc0006023..ce56bba108 100644 --- a/airtime_mvc/locale/pt_BR/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/pt_BR/LC_MESSAGES/airtime.po @@ -1,3609 +1,4286 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: -# Felipe Thomaz Pedroni, 2014 -# Pedro Garbellini da Silva , 2014 # Sourcefabric , 2012 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2015-02-05 10:31+0000\n" -"Last-Translator: Felipe Thomaz Pedroni\n" -"Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/airtime/language/pt_BR/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-01-29 15:11+0000\n" +"Last-Translator: andrey.podshivalov\n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/" +"airtime/language/pt_BR/)\n" +"Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: pt_BR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Player de Áudio" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Por favor selecione uma opção" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Sair" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "Não há gravações" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "O ano % s deve estar compreendido no intervalo entre 1753 - 9999" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s não é uma data válida" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Cue Entrada" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s:%s:%s não é um horário válido" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Tocando agora" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Cue Saída" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Adicionar Mídia" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Biblioteca" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Calendário" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Fade Entrada" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "Sistema" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Fade Saída" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Preferências" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Usuários" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Fluxo ao vivo" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Diretórios de Mídia" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Habilitado:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Fluxos" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Tipo de Fluxo:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Informações de Suporte" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Bitrate:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Estado" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Tipo de Serviço:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Estatísticas de Ouvintes" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Canais:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Histórico da Programação" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Stéreo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Servidor" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Ajuda" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Caracter inválido informado" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Iniciando" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Porta" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "Manual do Usuário" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Somente números são permitidos." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "Sobre" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Senha" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Gênero" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "Visualizar Metadados do Arquivo Gravado" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Visualizar no SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Nome" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Enviar para SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Descrição" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Re-enviar para SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Ponto de Montagem" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Exibir Conteúdo" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Usuário" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Adicionar / Remover Conteúdo" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Usuário Administrador" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Remover Todo o Conteúdo" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Senha do Administrador" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Cancelar Programa em Exibição" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Obtendo informações do servidor..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Servidor não pode estar em branco." +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Editar" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Porta não pode estar em branco." +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Editar Programa" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Ponto de montagem deve ser informada em servidor Icecast." +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Excluir" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" -msgstr "Título:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Excluir esta Instância" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" -msgstr "Criador:" +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Excluir esta Instância e todas as seguintes" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "Álbum:" +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "Faixa:" +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "Não é possível arrastar e soltar programas repetidos" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" -msgstr "Gênero:" +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "Não é possível mover um programa anterior" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" -msgstr "Ano:" +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Não é possível mover um programa anterior" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" -msgstr "Legenda:" +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Não é permitido agendar programas sobrepostos" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" -msgstr "Compositor:" +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "" +"Não é possível mover um programa gravado menos de 1 hora antes de suas " +"retransmissões." -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" -msgstr "Maestro:" +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "O programa foi excluído porque a gravação prévia não existe!" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Humor:" +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "É necessário aguardar 1 hora antes de retransmitir." -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Título" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" -msgstr "Copyright:" +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Criador" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "Número ISRC:" +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Álbum" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" -msgstr "Website:" +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Duração" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" -msgstr "Idioma:" +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Gênero" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Humor" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Legenda" +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Compositor" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Copyright" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Ano" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Maestro" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Idioma" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Executado" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "Importação de arquivo em progresso..." + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Opções da Busca Avançada" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Número de ouvintes durante a exibição" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "Novo" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "Nova Lista" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "Novo Bloco" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "Novo Fluxo Web" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Embaralhar Lista" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Embaralhar" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Salvar Lista" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 #: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 #: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 #: airtime_mvc/application/forms/SupportSettings.php:161 #: airtime_mvc/application/controllers/LocaleController.php:283 #: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 #: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 msgid "Save" msgstr "Salvar" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Cancelar" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Crossfade da Lista" -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Usuário:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "Ver / editar descrição" -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Senha:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Descrição" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Confirmar Senha:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Fade de entrada" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Primeiro nome:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Fade de saída" -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Último nome:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "Nenhuma lista aberta" -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "Email:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Expandir Bloco Estático" -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Celular:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Expandir Bloco Dinâmico" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Bloco vazio" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Lista vazia" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "Perfil do Usuário:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Visitante" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Cue entrada:" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "DJ" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(hh:mm:ss.t)" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Gerente de Programação" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Cue Saída:" -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Administrador" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Duração Original:" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Usuário já existe." +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(ss,t)" -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Cor de Fundo:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Cor da Fonte:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "Nenhum bloco aberto" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Data de Início:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sAirtime%s %s, um software livre para automação e gestão remota de estação " +"de rádio. % s" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Data de Fim:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "" +"%sSourcefabric%s o.p.s. Airtime é distribuído sob a licença %sGNU GPL v.3%s" -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Programa:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Benvindo ao Airtime!" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "Meus Programas:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "Saiba como utilizar o Airtime para automatizar suas transmissões:" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "dias" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Comece adicionando seus arquivos à biblioteca usando o botão \"Adicionar " +"Mídia\" . Você também pode arrastar e soltar os arquivos dentro da página." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "O dia precisa ser especificado" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Crie um programa, através do 'Calendário' , clicando no ícone '+Programa'. " +"Este pode ser um programa inédito ou retransmitido. Apenas administradores e " +"gerentes de programação podem adicionar programas." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "O horário deve ser especificado" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Adicione conteúdos ao seu programa, através do link Calendário, clique com o " +"botão esquerdo do mouse sobre o programa e selecione \"Adicionar / Remover " +"Conteúdo\"" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "É preciso aguardar uma hora para retransmitir" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Selecione seu conteúdo a partir da lista , no painel esquerdo, e arraste-o " +"para o seu programa, no painel da direita." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Diretório de Importação:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "Você já está pronto para começar!" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Diretórios Monitorados: " +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "Para obter ajuda mais detalhada, leia o %smanual do usuário%s." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Não é um diretório válido" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Fluxo ao vivo" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Procurar Usuários:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Compartilhar" -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "DJs:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Selecionar fluxo:" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Acessar" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "Mudo" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Digite os caracteres que você vê na imagem abaixo." +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "retirar mudo" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Nome da Estação" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "Todos" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "informe o tempo em segundos 0{.0}" - -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Permitir que sites remotos acessem as informações sobre \"Programação\"?%s (Habilite para fazer com que widgets externos funcionem.)" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "URL do Fluxo:" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Inativo" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Duração Padrão:" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Ativo" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "Nenhum fluxo web" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Idioma Padrão da Interface" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "Título:" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "Criador:" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "Semana Inicia Em" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "Álbum:" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Domingo" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "Faixa:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Segunda" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Duração:" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Terça" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Taxa de Amostragem:" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Quarta" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Bitrate:" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Quinta" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Humor:" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Sexta" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "Gênero:" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Sábado" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "Ano:" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "Legenda:" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Tipo de Reexibição:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "semanal" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "Compositor:" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "Maestro:" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "Copyright:" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "Número Isrc:" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "mensal" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "Website:" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Selecione os Dias:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" +msgstr "Idioma:" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Dom" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "Caminho do Arquivo:" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Seg" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Nome:" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Ter" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Descrição:" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Qua" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Fluxo Web" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Qui" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Bloco Inteligente Dinâmico" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Sex" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Bloco Inteligente Estático" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Sab" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Faixa de Áudio" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Conteúdos da Lista de Reprodução:" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Conteúdo do Bloco Inteligente Estático:" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Critério para Bloco Inteligente Dinâmico:" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "Sem fim?" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Limitar em" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "A data de fim deve ser posterior à data de início" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Confirmar nova senha" - -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "A senha de confirmação não confere." +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Obter nova senha" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Selecione um critério" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "Configurações de %s" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Álbum" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Selecione o diretório" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Bitrate (Kbps)" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Definir" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Diretório de Importação Atual:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Compositor" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Adicionar" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Maestro" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Verificar novamente diretório monitorado (Isso pode ser útil em caso de " +"montagem de volume em rede e este estiver fora de sincronia com o Airtime)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Copyright" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Remover diretório monitorado" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Criador" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "Você não está monitorando nenhum diretório." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Convertido por" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Obrigatório)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Colabore com a evolução do Airtime, permitindo à Sourcefabric conhecer como " +"você está usando o produto. Essas informações serão colhidas regularmente, a " +"fim de melhorar a sua experiência como usuário.%s Clique na opção \"Enviar " +"Comentário de Apoio\" e nós garantiremos a evolução contínua das " +"funcionalidade que você utiliza." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Legenda" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "" +"Clique na oção abaixo para divulgar sua estação em %sSourcefabric.org%s." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Idioma" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(para divulgação de sua estação, a opção 'Enviar Informações de Suporte\" " +"precisa estar habilitada)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Última Ateração" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(somente para efeito de verificação, não será publicado)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Última Execução" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Nota: qualquer arquivo maior que 600x600 será redimensionado" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Duração" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Mostrar quais informações estou enviando" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Mime" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Política de Privacidade Sourcefabric" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Humor" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Encontrar Programas" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Prorietário" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Filtrar por Programa:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Ganho de Reprodução" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "Configurações de Email" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Taxa de Amostragem (khz)" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "Configurações do SoundCloud" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Título" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Selecione os Dias:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Número de Faixa" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Remover" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Adicionado" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Fluxo" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Website" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Opções Adicionais" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Ano" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "" +"A informação a seguir será exibida para os ouvintes em seu player de mídia:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Selecionar modificador" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(O website de sua estação de rádio)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "contém" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "URL do Fluxo:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "não contém" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "URL de Conexão:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "é" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Redefinir senha" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "não é" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Registrar Airtime" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "começa com" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "" +"Colabore com a evolução do Airtime, permitindo à Sourcefabric conhecer como " +"você está usando o produto. Essas informações serão colhidas regularmente, a " +"fim de melhorar a sua experiência como usuário.%s Clique na opção \"Enviar " +"Comentário de Apoio\" e nós garantiremos a evolução contínua das " +"funcionalidade que você utiliza." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "termina com" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Clique na oção abaixo para divulgar sua estação em %sSourcefabric.org%s." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "é maior que" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Termos e Condições" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "é menor que" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Configurações do Fluxo de Entrada" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "está no intervalo" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "URL de Conexão da Fonte Master:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "horas" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Soprebor" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "minutos" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "OK" + +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "REDEFINIR" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "itens" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "URL de Conexão da Fonte do Programa:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Definir tipo de bloco:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Opções de Bloco" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Estático" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Dinâmico" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Permitir Repetição de Faixas:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr "para" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Limitar em" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "arquivos correspondem ao critério" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Gerar conteúdo da lista e salvar critério" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "arquivo corresponde ao critério" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Gerar" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Dias para reexibir:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Embaralhar conteúdo da lista" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Histórico de Filtros" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Embaralhar" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Fechar" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "O limite não pode ser vazio ou menor que 0" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Adicionar este programa" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "O limite não pode ser maior que 24 horas" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Atualizar programa" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "O valor deve ser um número inteiro" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "O que" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "O número máximo de itens é 500" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "Quando" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "Você precisa selecionar Critério e Modificador " +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Fluxo de entrada ao vivo" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "A duração deve ser informada no formato '00:00:00'" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Gravar & Retransmitir" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "O valor deve estar no formato timestamp (ex. 0000-00-00 ou 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Quem" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "O valor deve ser numérico" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Aparência" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "O valor precisa ser menor que 2147483648" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Início" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "O valor deve conter no máximo %s caracteres" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Configurações de Fluxo" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "O valor não pode estar em branco" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Configurações Globais" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Desligar Auto Switch" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "dB" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Ligar Auto Switch" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Configurações do Fluxo de Saída" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Fade de Transição do Switch:" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Gerenciar Diretórios de Mídia" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "informe o tempo em segundo 00{.000000}" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Aplicativo Padrão Zend Framework" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Usuário Master" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Página não encontrada!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Senha Master" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "A página que você procura não existe!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "URL de Conexão da Fonte Master" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "URL de Conexão da Fonte Programa" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Porta da Fonte Master" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Ponto de Montagem da Fonte Master" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Porta da Fonte Programa" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Ponto de Montagem da Fonte Programa" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "Você não pode utilizar a mesma porta do Master DJ." +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Porta %s indisponível." +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Fone:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Website da Estação:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Nome" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "País:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "Cidade:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Descrição da Estação:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Logo da Estação:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "Nova senha" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Enviar informações de suporte" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "Por favor informe e confirme sua nova senha nos campos abaixo." -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Acessar" + +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." msgstr "" +"Bem-vindo à demonstração online do Airtime! Autentique-se com usuário " +"'admin' e senha \"admin\"." -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." msgstr "" +"Digite seu endereço de email. Você receberá uma mensagem contendo um link " +"para criar sua senha." -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "Você precisa concordar com a política de privacidade." +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "Email enviado" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Valor é obrigatório e não poder estar em branco." +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "Um email foi enviado" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Voltar à tela de login" + +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" msgstr "" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" msgstr "" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" msgstr "" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Gravar a partir do Line In?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "anterior" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Retransmitir?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "play" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "pause" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "próximo" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "stop" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "volume máximo" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Atualização Necessária" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 #, php-format -msgid "Use %s Authentication:" +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." msgstr "" +"Para reproduzir a mídia que você terá que quer atualizar seu navegador para " +"uma versão recente ou atualizar seu %sFlash plugin%s." -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Usar Autenticação Personalizada:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Serviço" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Definir Usuário:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Uptime" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Definir Senha:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "O usuário não pode estar em branco." +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Memória" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "A senha não pode estar em branco." +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Versão do Airtime" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "Email" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Espaço em Disco" -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Redefinir senha" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Gerenciar Usuários" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Hardware para Saída de Áudio" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "Novo Usuário" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Tipo de Saída" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "id" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Metadados Icecast Vorbis" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Usuário" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Legenda do Fluxo:" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "Primeiro Nome" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Artista - Título" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Último Nome" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Programa - Artista - Título" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "Tipo de Usuário" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Nome da Estação - Nome do Programa" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Anterior:" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Metadados Off Air" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Próximo:" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Habilitar Ganho de Reprodução" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Fontes de Fluxo" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Modificador de Ganho de Reprodução" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Master" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "%value%' não é um enderçeo de email válido" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Programa" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" -msgstr "'%value%' não corresponde a uma data válida '%format%'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Programação" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" -msgstr "'%value%' is menor que comprimento mínimo %min% de caracteres" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "NO AR" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Ouvir" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Hora Local" + +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Seu período de teste termina em" + +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "dias" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" -msgstr "'%value%' is maior que o número máximo %max% de caracteres" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Adquira sua cópia do Airtime" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" -msgstr "'%value%' não está compreendido entre '%min%' e '%max%', inclusive" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "Minha Conta" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" -msgstr "Senhas não conferem" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Usuário:" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' não corresponde ao formato 'HH:mm'" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Senha:" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Data/Horário de Início:" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "Digite os caracteres que você vê na imagem abaixo." -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Data/Horário de Fim:" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Caracter inválido informado" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Duração:" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "O dia precisa ser especificado" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Fuso Horário:" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "O horário deve ser especificado" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Reexibir?" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "É preciso aguardar uma hora para retransmitir" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Não é possível criar um programa no passado." +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Usar Autenticação do Airtime:" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Não é possível alterar o início de um programa que está em execução" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Usar Autenticação Personalizada:" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "Data e horário finais não podem ser definidos no passado." +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Definir Usuário:" -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Não pode ter duração < 0m" +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Definir Senha:" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Não pode ter duração 00h 00m" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "O usuário não pode estar em branco." -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Não pode ter duração maior que 24 horas" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "A senha não pode estar em branco." -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Não é permitido agendar programas sobrepostos" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Habilitado:" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Nome:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Tipo de Fluxo:" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Programa Sem Título" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Tipo de Serviço:" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Canais:" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Descrição:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" -msgstr "Enviar programas gravados automaticamente" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Stéreo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" -msgstr "Habilitar envio para SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Servidor" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" -msgstr "Permitir download dos arquivos no SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Porta" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" -msgstr "Email do SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Somente números são permitidos." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" -msgstr "Senha do SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Senha" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" -msgstr "Tags do SoundCloud: (separados por espaços)" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" -msgstr "Gênero Padrão:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Ponto de Montagem" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" -msgstr "Tipo de Faixa Padrão:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Usuário Administrador" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" -msgstr "Original" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Senha do Administrador" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "Remix" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Obtendo informações do servidor..." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "Ao Vivo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Servidor não pode estar em branco." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "Gravando" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Porta não pode estar em branco." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "Falado" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Ponto de montagem deve ser informada em servidor Icecast." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "Podcast" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Diretório de Importação:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "Demo" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Diretórios Monitorados: " -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "Trabalho am andamento" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Não é um diretório válido" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "Base" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Valor é obrigatório e não poder estar em branco." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "Loop" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "%value%' não é um enderçeo de email válido" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "Efeito de Áudio" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" +msgstr "'%value%' não corresponde a uma data válida '%format%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "Amostra 'One Shot'" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" +msgstr "'%value%' is menor que comprimento mínimo %min% de caracteres" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "Outro" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" +msgstr "'%value%' is maior que o número máximo %max% de caracteres" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Licença Padrão:" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" +msgstr "'%value%' não está compreendido entre '%min%' e '%max%', inclusive" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "O trabalho é de domínio público" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" +msgstr "Senhas não conferem" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "Todos os direitos são reservados" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Gravar a partir do Line In?" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Creative Commons Attribution" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Retransmitir?" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Creative Commons Attribution Noncommercial" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Cor de Fundo:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Creative Commons Attribution No Derivative Works" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Cor da Fonte:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Creative Commons Attribution Share Alike" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "Email" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Creative Commons Attribution Noncommercial Non Derivate Works" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Redefinir senha" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Creative Commons Attribution Noncommercial Share Alike" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Cancelar" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "" +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Confirmar Senha:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "Ativar Envio de Emails (Recuperação de Senha)" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Primeiro nome:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Remetente de Email para Recuperação de Senha" +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Último nome:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Configurar Servidor de Email" +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "Email:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Requer Autenticação" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Celular:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Servidor de Email" +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "Endereço de Email" +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "Confirme se o nome de usuário / senha do administrador estão corretos na página Sistema > Fluxos." +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Fluxo Sem Título" +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Usuário já existe." -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Fluxo gravado." +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Hardware para Saída de Áudio" -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Valores do formulário inválidos." +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Tipo de Saída" -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Por favor informe seu usuário e senha" +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Metadados Icecast Vorbis" -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Usuário ou senha inválidos. Tente novamente." +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Legenda do Fluxo:" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "O email não pôde ser enviado. Verifique as definições do servidor de email e certifique-se de que esteja corretamente configurado." +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Artista - Título" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "O email informado não foi localizado." +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Programa - Artista - Título" -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Retransmissão do programa %s de %s as %s" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Nome da Estação - Nome do Programa" -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Download" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Metadados Off Air" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "Usuário adicionado com sucesso!" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Habilitar Ganho de Reprodução" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "Usuário atualizado com sucesso!" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Modificador de Ganho de Reprodução" -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Configurações atualizadas com sucesso!" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" +msgstr "Enviar programas gravados automaticamente" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Página não encontrada" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" +msgstr "Habilitar envio para SoundCloud" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Erro na aplicação" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +msgstr "Permitir download dos arquivos no SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Gravando:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" +msgstr "Email do SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Fluxo Mestre" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" +msgstr "Senha do SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Fluxo Ao Vivo" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" +msgstr "Tags do SoundCloud: (separados por espaços)" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Nada Programado" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" +msgstr "Gênero Padrão:" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Programa em Exibição:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" +msgstr "Tipo de Faixa Padrão:" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Agora" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" +msgstr "Original" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "Você está executando a versão mais recente" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "Remix" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "Nova versão disponível:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "Ao Vivo" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "Esta versão ficará obsoleta em breve." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "Gravando" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "Esta versão não é mais suportada." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "Falado" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Por favor, atualize para" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "Podcast" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Adicionar a esta lista de reprodução" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "Demo" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Adiconar a este bloco" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "Trabalho am andamento" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Adicionando 1 item" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "Base" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Adicionando %s items" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "Loop" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "Você pode adicionar somente faixas a um bloco inteligente." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "Efeito de Áudio" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "Você pode adicionar apenas faixas, blocos e fluxos às listas de reprodução" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "Amostra 'One Shot'" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "Por favor selecione um posição do cursor na linha do tempo." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "Outro" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Editar Metadados" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Licença Padrão:" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Adicionar ao programa selecionado" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "O trabalho é de domínio público" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Selecionar" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "Todos os direitos são reservados" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Selecionar esta página" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Creative Commons Attribution" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Desmarcar esta página" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Creative Commons Attribution Noncommercial" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Desmarcar todos" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Creative Commons Attribution No Derivative Works" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Você tem certeza que deseja excluir o(s) item(ns) selecionado(s)?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Creative Commons Attribution Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Creative Commons Attribution Noncommercial Non Derivate Works" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Creative Commons Attribution Noncommercial Share Alike" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Bitrate" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Nome da Estação" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Taxa de Amostragem" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Carregando..." +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "informe o tempo em segundos 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "Todos" +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Arquivos" +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Listas" +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Permitir que sites remotos acessem as informações sobre \"Programação\"?%s " +"(Habilite para fazer com que widgets externos funcionem.)" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Blocos" +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Inativo" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Fluxos" +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Ativo" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Tipo Desconhecido:" +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Idioma Padrão da Interface" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Você tem certeza que deseja excluir o item selecionado?" +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Upload em andamento..." +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "Semana Inicia Em" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Obtendo dados do servidor..." +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Domingo" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "O id no SoundCloud para este arquivo é:" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Segunda" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "Ocorreu um erro durante o upload para o SoundCloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Terça" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Código do erro:" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Quarta" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Mensagem de erro:" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Quinta" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "A entrada deve ser um número positivo" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Sexta" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "A entrada deve ser um número" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Sábado" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "A entrada deve estar no formato yyyy-mm-dd" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Data de Início:" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "A entrada deve estar no formato hh:mm:ss.t" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Data de Fim:" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "Você está fazendo upload de arquivos neste momento. %s Ir a outra tela cancelará o processo de upload. %sTem certeza de que deseja sair desta página?" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Fone:" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Website da Estação:" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "por favor informe o tempo no formato '00:00:00 (.0)'" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "País:" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "por favor informe o tempo em segundos '00 (.0)'" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "Cidade:" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Seu navegador não suporta a execução deste tipo de arquivo:" +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Descrição da Estação:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Não é possível o preview de blocos dinâmicos" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Logo da Estação:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Limitar em:" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Enviar informações de suporte" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "A lista foi salva" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Divulgue minha estação em Sourcefabric.org" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "A lista foi embaralhada" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "" +"Clicando nesta caixa, eu concordo com a %spolitica de privacidade%s da " +"Sourcefabric." -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "O Airtime não pôde determinar o status do arquivo. Isso pode acontecer quando o arquivo está armazenado em uma unidade remota atualmente inacessível ou está em um diretório que deixou de ser 'monitorado'." +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "Você precisa concordar com a política de privacidade." -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "Número de Ouvintes em %s: %s" +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' não corresponde ao formato 'HH:mm'" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Lembrar-me dentro de uma semana" +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Data/Horário de Início:" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Não me lembrar novamente" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Data/Horário de Fim:" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Sim, quero colaborar com o Airtime" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Duração:" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "A imagem precisa conter extensão jpg, jpeg, png ou gif" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Fuso Horário:" -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "Um bloco estático salvará os critérios e gerará o conteúdo imediatamente. Isso permite que você edite e visualize-o na Biblioteca antes de adicioná-lo a um programa." +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Reexibir?" -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "Um bloco dinâmico apenas conterá critérios. O conteúdo do bloco será gerado após adicioná-lo a um programa. Você não será capaz de ver ou editar o conteúdo na Biblioteca." +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Não é possível criar um programa no passado." -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "A duração desejada do bloco não será completada se o Airtime não localizar faixas únicas suficientes que correspondem aos critérios informados. Ative esta opção se você deseja permitir que as mesmas faixas sejam adicionadas várias vezes num bloco inteligente." +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "Não é possível alterar o início de um programa que está em execução" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "O bloco foi embaralhado" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "Data e horário finais não podem ser definidos no passado." -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "O bloco foi gerado e o criterio foi salvo" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Não pode ter duração < 0m" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "O bloco foi salvo" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Não pode ter duração 00h 00m" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Processando..." +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Não pode ter duração maior que 24 horas" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Selecione o Diretório de Armazenamento" +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Programa Sem Título" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Selecione o Diretório para Monitoramento" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Procurar Usuários:" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Tem certeza de que deseja alterar o diretório de armazenamento? \nIsto irá remover os arquivos de sua biblioteca Airtime!" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "DJs:" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Gerenciar Diretórios de Mídia" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Confirmar nova senha" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Tem certeza que deseja remover o diretório monitorado?" +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "A senha de confirmação não confere." -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "O caminho está inacessível no momento." +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Obter nova senha" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "" +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "Perfil do Usuário:" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Conectado ao servidor de fluxo" +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Visitante" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "O fluxo está desabilitado" +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "DJ" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Não é possível conectar ao servidor de streaming" +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Gerente de Programação" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Se o Airtime estiver atrás de um roteador ou firewall, pode ser necessário configurar o redirecionamento de portas e esta informação de campo ficará incorreta. Neste caso, você terá de atualizar manualmente este campo para que ele exiba o corretamente o host / porta / ponto de montagem necessários para seu DJ para se conectar. O intervalo permitido é entre 1024 e 49151." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Administrador" -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "Para mais informações, leia o %sManual do Airtime%s" +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "Número ISRC:" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Marque esta opção para habilitar metadados para fluxos OGG (metadados fluxo são o título da faixa, artista e nome doprograma que é exibido em um player de áudio). VLC e MPlayer tem um bug sério quando executam fluxos Ogg / Vorbis, que possuem o recurso de metadados habilitado: eles vão desconectar do fluxo depois de cada faixa. Se você estiver transmitindo um fluxo no formato OGG e seus ouvintes não precisem de suporte para esses players de áudio, sinta-se à vontade para ativar essa opção." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Programa:" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Marque esta caixa para desligar automaticamente as fontes Mestre / Programa, após a desconexão de uma fonte." +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "Meus Programas:" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Marque esta caixa para ligar automaticamente as fontes Mestre / Programa, após a conexão de uma fonte." +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Se o servidor Icecast esperar por um usuário 'source', este campo poderá permanecer em branco." +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Tipo de Reexibição:" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "Se o cliente de fluxo ao vivo não solicitar um usuário, este campo deve ser \"source\"." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "semanal" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "Se você alterar os campos de usuário ou senha de um fluxo ativo, o mecanismo de saída será reiniciado e seus ouvintes ouvirão um silêncio por 5-10 segundos. Alterando os seguintes campos não causará reinicialização: Legenda do Fluxo (Configurações Globais), e Mudar Fade(s) de Transição, Usuário Master e Senha Master (Configurações de fluxo de entrada). Se o Airtime estiver gravando e, se a mudança fizer com que uma reinicialização de mecanismo de saída seja necessária, a gravação será interrompida." +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "Este é o usuário e senha de servidores Icecast / SHOUTcast, para obter estatísticas de ouvintes." +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "Nenhum resultado encontrado" +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "mensal" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "Este segue o mesmo padrão de segurança para os programas: apenas usuários designados para o programa poderão se conectar." +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Selecione os Dias:" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Defina uma autenticação personalizada que funcionará apenas neste programa." +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "Dom" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "A instância deste programa não existe mais!" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Seg" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Ter" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "Qua" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Qui" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Programa" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Sex" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "O programa está vazio" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "Sab" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1m" +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5m" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10m" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15m" +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "Sem fim?" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30m" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "A data de fim deve ser posterior à data de início" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60m" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Obtendo dados do servidor..." +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "Ativar Envio de Emails (Recuperação de Senha)" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "Este programa não possui conteúdo agendado." +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Remetente de Email para Recuperação de Senha" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "Este programa não possui duração completa de conteúdos." +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Configurar Servidor de Email" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "Janeiro" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Requer Autenticação" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "Fevereiro" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Servidor de Email" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "Março" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "Endereço de Email" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "Abril" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Selecione um critério" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "Maio" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Bitrate (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "Junho" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "Julho" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Cue Entrada" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "Agosto" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Cue Saída" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "Setembro" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Convertido por" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "Outubro" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Última Ateração" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "Novembro" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Última Execução" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "Dezembro" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Mime" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Jan" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Prorietário" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Fev" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Ganho de Reprodução" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Mar" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Taxa de Amostragem (khz)" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Abr" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Número de Faixa" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Jun" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Adicionado" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Jul" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Website" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Ago" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Selecionar modificador" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Set" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "contém" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Out" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "não contém" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Nov" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "é" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Dez" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "não é" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "hoje" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "começa com" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "dia" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "termina com" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "semana" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "é maior que" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "mês" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "é menor que" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Um programa com tempo maior que a duração programada será cortado pelo programa seguinte." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "está no intervalo" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Cancelar Programa em Execução?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "horas" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Parar gravação do programa em execução?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "minutos" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "Ok" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "itens" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Conteúdos do Programa" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Definir tipo de bloco:" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Remover todos os conteúdos?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Estático" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Excluir item(ns) selecionado(s)?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Dinâmico" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Início" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Permitir Repetição de Faixas:" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "Fim" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Limitar em" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Duração" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Gerar conteúdo da lista e salvar critério" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Programa vazio" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Gerar" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Gravando a partir do Line In" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Embaralhar conteúdo da lista" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Prévia da faixa" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "O limite não pode ser vazio ou menor que 0" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Não é possível realizar agendamento fora de um programa." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "O limite não pode ser maior que 24 horas" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Movendo 1 item" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "O valor deve ser um número inteiro" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Movendo %s itens" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "O número máximo de itens é 500" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "Você precisa selecionar Critério e Modificador " -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "A duração deve ser informada no formato '00:00:00'" -#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 msgid "" -"Waveform features are available in a browser supporting the Web Audio API" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" msgstr "" +"O valor deve estar no formato timestamp (ex. 0000-00-00 ou 0000-00-00 " +"00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Selecionar todos" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "O valor deve ser numérico" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Selecionar nenhum" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "O valor precisa ser menor que 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Remover faixas excedentes" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "O valor deve conter no máximo %s caracteres" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Remover seleção de itens agendados" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "O valor não pode estar em branco" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Saltar para faixa em execução" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Desligar Auto Switch" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Cancelar programa atual" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Ligar Auto Switch" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Abrir biblioteca para adicionar ou remover conteúdo" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Fade de Transição do Switch:" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Adicionar / Remover Conteúdo" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "informe o tempo em segundo 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "em uso" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Usuário Master" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Disco" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Senha Master" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Explorar" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "URL de Conexão da Fonte Master" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Abrir" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "URL de Conexão da Fonte Programa" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "Visitantes podem fazer o seguinte:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Porta da Fonte Master" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "Visualizar agendamentos" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Ponto de Montagem da Fonte Master" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "Visualizar conteúdo dos programas" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Porta da Fonte Programa" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "DJs podem fazer o seguinte:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Ponto de Montagem da Fonte Programa" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Gerenciar o conteúdo de programas delegados a ele" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "Você não pode utilizar a mesma porta do Master DJ." -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Importar arquivos de mídia" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Porta %s indisponível." -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Criar listas de reprodução, blocos inteligentes e fluxos" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" +"Airtime Copyright ©Sourcefabric o.p.s. Todos od direitos reservados." +"%sMantido e distribuído sob licença GNU GPL v.3 by %sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Gerenciar sua própria blblioteca de conteúdos" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Sair" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "Gerentes de Programação podem fazer o seguinte:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "Visualizar e gerenciar o conteúdo dos programas" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Agendar programas" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "Gerenciar bibliotecas de conteúdo" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Administradores podem fazer o seguinte:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Gerenciar configurações" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Fade Entrada" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "Gerenciar usuários" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Fade Saída" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "Gerenciar diretórios monitorados" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Player de Áudio" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "Visualizar estado do sistema" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Por favor informe seu usuário e senha" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Acessar o histórico da programação" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "Usuário ou senha inválidos. Tente novamente." -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "Ver estado dos ouvintes" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"O email não pôde ser enviado. Verifique as definições do servidor de email e " +"certifique-se de que esteja corretamente configurado." -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Exibir / ocultar colunas" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "O email informado não foi localizado." -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "De {from} até {to}" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Gravando:" + +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Fluxo Mestre" + +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Fluxo Ao Vivo" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Nada Programado" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "yyy-mm-dd" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Programa em Exibição:" -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Agora" -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "khz" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "Você está executando a versão mais recente" -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Do" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "Nova versão disponível:" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Se" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "Esta versão ficará obsoleta em breve." -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Te" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "Esta versão não é mais suportada." -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "Qu" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Por favor, atualize para" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Qu" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Adicionar a esta lista de reprodução" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Se" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Adiconar a este bloco" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Sa" +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Adicionando 1 item" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Fechar" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "Adicionando %s items" -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Hora" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "Você pode adicionar somente faixas a um bloco inteligente." -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Minuto" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "" +"Você pode adicionar apenas faixas, blocos e fluxos às listas de reprodução" -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Concluído" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "Por favor selecione um posição do cursor na linha do tempo." -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Selecionar arquivos" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Editar Metadados" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Adicione arquivos para a fila de upload e pressione o botão iniciar " +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Adicionar ao programa selecionado" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Estado" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Selecionar" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Adicionar Arquivos" +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Selecionar esta página" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Parar Upload" +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Desmarcar esta página" -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Iniciar Upload" +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Desmarcar todos" -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Adicionar arquivos" +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Você tem certeza que deseja excluir o(s) item(ns) selecionado(s)?" -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "%d/%d arquivos importados" +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "N/A" +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Arraste arquivos nesta área." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Bitrate" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "Erro na extensão do arquivo." +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Taxa de Amostragem" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "Erro no tamanho do arquivo." +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "Carregando..." -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "Erro na contagem dos arquivos." +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Arquivos" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Erro de inicialização." +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Listas" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "Erro HTTP." +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Blocos" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Erro de segurança." +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Fluxos" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Erro genérico." +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Tipo Desconhecido:" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "Erro de I/O." +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Você tem certeza que deseja excluir o item selecionado?" -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "Arquivos: %s." +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Upload em andamento..." -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d arquivos adicionados à fila." +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Obtendo dados do servidor..." -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "Arquivo: %f, tamanho: %s, tamanho máximo: %m" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "O id no SoundCloud para este arquivo é:" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "URL de upload pode estar incorreta ou inexiste." +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "Ocorreu um erro durante o upload para o SoundCloud." -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Erro: Arquivo muito grande:" +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Código do erro:" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Erro: Extensão de arquivo inválida." +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Mensagem de erro:" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "A entrada deve ser um número positivo" -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "A entrada deve ser um número" -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "A entrada deve estar no formato yyyy-mm-dd" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "%s linhas%s copiadas para a área de transferência" +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "A entrada deve estar no formato hh:mm:ss.t" -#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%sVisualizar impressão%sUse a função de impressão do navegador para imprimir esta tabela. Pressione ESC quando terminar." +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"Você está fazendo upload de arquivos neste momento. %s Ir a outra tela " +"cancelará o processo de upload. %sTem certeza de que deseja sair desta " +"página?" -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "Você não tem permissão para desconectar a fonte." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "" -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "Não há fonte conectada a esta entrada." +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "por favor informe o tempo no formato '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "Você não tem permissão para alternar entre as fontes." +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "por favor informe o tempo em segundos '00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "Você está vendo uma versão obsoleta de %s" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "Seu navegador não suporta a execução deste tipo de arquivo:" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "Você não pode adicionar faixas a um bloco dinâmico" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Não é possível o preview de blocos dinâmicos" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 -#, php-format -msgid "%s not found" -msgstr "%s não encontrado" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Limitar em:" -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "Você não tem permissão para excluir os %s(s) selecionados." +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "A lista foi salva" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Ocorreu algo errado." +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "A lista foi embaralhada" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "Você pode somente adicionar faixas um bloco inteligente." +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." +msgstr "" +"O Airtime não pôde determinar o status do arquivo. Isso pode acontecer " +"quando o arquivo está armazenado em uma unidade remota atualmente " +"inacessível ou está em um diretório que deixou de ser 'monitorado'." -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Lista Sem Título" +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "Número de Ouvintes em %s: %s" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Bloco Sem Título" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "Lembrar-me dentro de uma semana" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Lista Desconhecida" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Não me lembrar novamente" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "Você não tem permissão para acessar esta funcionalidade." +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Sim, quero colaborar com o Airtime" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "Você não tem permissão para acessar esta funcionalidade." +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "A imagem precisa conter extensão jpg, jpeg, png ou gif" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." msgstr "" +"Um bloco estático salvará os critérios e gerará o conteúdo imediatamente. " +"Isso permite que você edite e visualize-o na Biblioteca antes de adicioná-lo " +"a um programa." -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Requisição inválida. Parâmetro não informado." - -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Requisição inválida. Parâmetro informado é inválido." - -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Visualizar" - -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Adicionar à Lista" - -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Adicionar ao Bloco" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"Um bloco dinâmico apenas conterá critérios. O conteúdo do bloco será gerado " +"após adicioná-lo a um programa. Você não será capaz de ver ou editar o " +"conteúdo na Biblioteca." -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Excluir" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"A duração desejada do bloco não será completada se o Airtime não localizar " +"faixas únicas suficientes que correspondem aos critérios informados. Ative " +"esta opção se você deseja permitir que as mesmas faixas sejam adicionadas " +"várias vezes num bloco inteligente." -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Duplicar Lista" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "O bloco foi embaralhado" -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Editar" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "O bloco foi gerado e o criterio foi salvo" -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "O bloco foi salvo" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Visualizar no SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "Processando..." -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Re-enviar para SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Selecione o Diretório de Armazenamento" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Enviar para SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Selecione o Diretório para Monitoramento" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "Nenhuma ação disponível" +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Tem certeza de que deseja alterar o diretório de armazenamento? \n" +"Isto irá remover os arquivos de sua biblioteca Airtime!" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "Você não tem permissão para excluir os itens selecionados." +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Tem certeza que deseja remover o diretório monitorado?" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Não foi possível excluir alguns arquivos, por estarem com execução agendada." +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "O caminho está inacessível no momento." -#: airtime_mvc/application/controllers/LibraryController.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 #, php-format -msgid "Copy of %s" -msgstr "Cópia de %s" +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Selecione o cursor" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Conectado ao servidor de fluxo" -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Remover o cursor" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "O fluxo está desabilitado" -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "programa inexistente" +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Não é possível conectar ao servidor de streaming" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Preferências atualizadas." +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"Se o Airtime estiver atrás de um roteador ou firewall, pode ser necessário " +"configurar o redirecionamento de portas e esta informação de campo ficará " +"incorreta. Neste caso, você terá de atualizar manualmente este campo para " +"que ele exiba o corretamente o host / porta / ponto de montagem necessários " +"para seu DJ para se conectar. O intervalo permitido é entre 1024 e 49151." -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Configurações de suporte atualizadas." +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "Para mais informações, leia o %sManual do Airtime%s" -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Informações de Suporte" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"Marque esta opção para habilitar metadados para fluxos OGG (metadados fluxo " +"são o título da faixa, artista e nome doprograma que é exibido em um player " +"de áudio). VLC e MPlayer tem um bug sério quando executam fluxos Ogg / " +"Vorbis, que possuem o recurso de metadados habilitado: eles vão desconectar " +"do fluxo depois de cada faixa. Se você estiver transmitindo um fluxo no " +"formato OGG e seus ouvintes não precisem de suporte para esses players de " +"áudio, sinta-se à vontade para ativar essa opção." -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Preferências de fluxo atualizadas." +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Marque esta caixa para desligar automaticamente as fontes Mestre / Programa, " +"após a desconexão de uma fonte." -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "o caminho precisa ser informado" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Marque esta caixa para ligar automaticamente as fontes Mestre / Programa, " +"após a conexão de uma fonte." -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Problemas com o Liquidsoap..." +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"Se o servidor Icecast esperar por um usuário 'source', este campo poderá " +"permanecer em branco." -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Tocando agora" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"Se o cliente de fluxo ao vivo não solicitar um usuário, este campo deve ser " +"\"source\"." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Adicionar Mídia" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"Se você alterar os campos de usuário ou senha de um fluxo ativo, o mecanismo " +"de saída será reiniciado e seus ouvintes ouvirão um silêncio por 5-10 " +"segundos. Alterando os seguintes campos não causará reinicialização: Legenda " +"do Fluxo (Configurações Globais), e Mudar Fade(s) de Transição, Usuário " +"Master e Senha Master (Configurações de fluxo de entrada). Se o Airtime " +"estiver gravando e, se a mudança fizer com que uma reinicialização de " +"mecanismo de saída seja necessária, a gravação será interrompida." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Biblioteca" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"Este é o usuário e senha de servidores Icecast / SHOUTcast, para obter " +"estatísticas de ouvintes." -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Calendário" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "Sistema" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "Nenhum resultado encontrado" -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Preferências" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"Este segue o mesmo padrão de segurança para os programas: apenas usuários " +"designados para o programa poderão se conectar." -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Usuários" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "" +"Defina uma autenticação personalizada que funcionará apenas neste programa." -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Diretórios de Mídia" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "A instância deste programa não existe mais!" -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Fluxos" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Estatísticas de Ouvintes" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." msgstr "" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Histórico da Programação" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Programa" -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "O programa está vazio" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Ajuda" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1m" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Iniciando" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5m" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "Manual do Usuário" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10m" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "Sobre" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15m" + +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Serviço" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Uptime" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Obtendo dados do servidor..." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "Este programa não possui conteúdo agendado." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Memória" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "Este programa não possui duração completa de conteúdos." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "Janeiro" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Espaço em Disco" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "Fevereiro" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "Configurações de Email" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "Março" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "Configurações do SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "Abril" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Dias para reexibir:" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "Maio" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Remover" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "Junho" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Adicionar" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "Julho" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "URL de Conexão:" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "Agosto" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Configurações do Fluxo de Entrada" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "Setembro" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "URL de Conexão da Fonte Master:" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "Outubro" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Soprebor" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "Novembro" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "OK" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "Dezembro" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "REDEFINIR" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Jan" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "URL de Conexão da Fonte do Programa:" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "Fev" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Obrigatório)" +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "Mar" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Registrar Airtime" +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "Abr" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "Jun" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "Jul" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(somente para efeito de verificação, não será publicado)" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "Ago" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Nota: qualquer arquivo maior que 600x600 será redimensionado" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "Set" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Mostrar quais informações estou enviando" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "Out" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Termos e Condições" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "Nov" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Redefinir senha" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "Dez" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Selecione o diretório" +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "hoje" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Definir" +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "dia" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Diretório de Importação Atual:" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "semana" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "mês" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Remover diretório monitorado" +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 +msgid "" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "" +"Um programa com tempo maior que a duração programada será cortado pelo " +"programa seguinte." -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "Você não está monitorando nenhum diretório." +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Cancelar Programa em Execução?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Fluxo" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Parar gravação do programa em execução?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Opções Adicionais" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "Ok" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "A informação a seguir será exibida para os ouvintes em seu player de mídia:" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Conteúdos do Programa" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(O website de sua estação de rádio)" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Remover todos os conteúdos?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "URL do Fluxo:" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Excluir item(ns) selecionado(s)?" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Histórico de Filtros" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "Fim" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Encontrar Programas" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Duração" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Filtrar por Programa:" +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Programa vazio" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "Configurações de %s" +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Gravando a partir do Line In" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Prévia da faixa" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(para divulgação de sua estação, a opção 'Enviar Informações de Suporte\" precisa estar habilitada)" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Não é possível realizar agendamento fora de um programa." -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Política de Privacidade Sourcefabric" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Movendo 1 item" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Movendo %s itens" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" msgstr "" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Selecione os Dias:" - -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Opções de Bloco" - -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr "para" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Selecionar todos" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "arquivos correspondem ao critério" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Selecionar nenhum" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "arquivo corresponde ao critério" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Remover faixas excedentes" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Remover seleção de itens agendados" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Saltar para faixa em execução" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Cancelar programa atual" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "Abrir biblioteca para adicionar ou remover conteúdo" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "em uso" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Disco" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Explorar" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Abrir" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "Visitantes podem fazer o seguinte:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "Visualizar agendamentos" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "Visualizar conteúdo dos programas" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "Novo" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "DJs podem fazer o seguinte:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "Nova Lista" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "Gerenciar o conteúdo de programas delegados a ele" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "Novo Bloco" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Importar arquivos de mídia" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "Novo Fluxo Web" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Criar listas de reprodução, blocos inteligentes e fluxos" + +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "Gerenciar sua própria blblioteca de conteúdos" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "Ver / editar descrição" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "Gerentes de Programação podem fazer o seguinte:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "URL do Fluxo:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "Visualizar e gerenciar o conteúdo dos programas" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Duração Padrão:" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Agendar programas" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "Nenhum fluxo web" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "Gerenciar bibliotecas de conteúdo" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Configurações de Fluxo" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "Administradores podem fazer o seguinte:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Configurações Globais" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Gerenciar configurações" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "dB" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "Gerenciar usuários" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Configurações do Fluxo de Saída" +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "Gerenciar diretórios monitorados" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "Importação de arquivo em progresso..." +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "Visualizar estado do sistema" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Opções da Busca Avançada" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Acessar o histórico da programação" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "anterior" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "Ver estado dos ouvintes" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "play" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Exibir / ocultar colunas" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "pause" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "De {from} até {to}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "próximo" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "stop" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "yyy-mm-dd" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "Mudo" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "hh:mm:ss.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "retirar mudo" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "khz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "volume máximo" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "Do" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Atualização Necessária" +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Se" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "Para reproduzir a mídia que você terá que quer atualizar seu navegador para uma versão recente ou atualizar seu %sFlash plugin%s." +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Te" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Duração:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "Qu" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Taxa de Amostragem:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Qu" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "Número Isrc:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Se" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "Caminho do Arquivo:" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "Sa" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Fluxo Web" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Hora" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Bloco Inteligente Dinâmico" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Minuto" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Bloco Inteligente Estático" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Concluído" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Faixa de Áudio" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Selecionar arquivos" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Conteúdos da Lista de Reprodução:" +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "Adicione arquivos para a fila de upload e pressione o botão iniciar " -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Conteúdo do Bloco Inteligente Estático:" +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Adicionar Arquivos" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Critério para Bloco Inteligente Dinâmico:" +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Parar Upload" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Limitar em" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Iniciar Upload" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Número de ouvintes durante a exibição" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Adicionar arquivos" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Welcome to %s!" -msgstr "" +msgid "Uploaded %d/%d files" +msgstr "%d/%d arquivos importados" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 -#, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "N/A" + +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Arraste arquivos nesta área." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Comece adicionando seus arquivos à biblioteca usando o botão \"Adicionar Mídia\" . Você também pode arrastar e soltar os arquivos dentro da página." +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "Erro na extensão do arquivo." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Crie um programa, através do 'Calendário' , clicando no ícone '+Programa'. Este pode ser um programa inédito ou retransmitido. Apenas administradores e gerentes de programação podem adicionar programas." +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "Erro no tamanho do arquivo." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Adicione conteúdos ao seu programa, através do link Calendário, clique com o botão esquerdo do mouse sobre o programa e selecione \"Adicionar / Remover Conteúdo\"" +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "Erro na contagem dos arquivos." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Selecione seu conteúdo a partir da lista , no painel esquerdo, e arraste-o para o seu programa, no painel da direita." +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Erro de inicialização." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "Você já está pronto para começar!" +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "Erro HTTP." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "Para obter ajuda mais detalhada, leia o %smanual do usuário%s." +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Erro de segurança." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Compartilhar" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Erro genérico." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Selecionar fluxo:" +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "Erro de I/O." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "" +msgid "File: %s" +msgstr "Arquivos: %s." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "" +msgid "%d files queued" +msgstr "%d arquivos adicionados à fila." -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "Nova senha" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "Arquivo: %f, tamanho: %s, tamanho máximo: %m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Por favor informe e confirme sua nova senha nos campos abaixo." +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "URL de upload pode estar incorreta ou inexiste." -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Digite seu endereço de email. Você receberá uma mensagem contendo um link para criar sua senha." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Erro: Arquivo muito grande:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "Email enviado" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "Erro: Extensão de arquivo inválida." -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "Um email foi enviado" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Voltar à tela de login" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "%s linhas%s copiadas para a área de transferência" + +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" +"%sVisualizar impressão%sUse a função de impressão do navegador para imprimir " +"esta tabela. Pressione ESC quando terminar." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Anterior:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Próximo:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Fontes de Fluxo" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Master" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Programa" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Visualizar" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Programação" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Selecione o cursor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "NO AR" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Remover o cursor" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Ouvir" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "programa inexistente" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Hora Local" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Preferências atualizadas." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Seu período de teste termina em" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Configurações de suporte atualizadas." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Preferências de fluxo atualizadas." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "Minha Conta" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "o caminho precisa ser informado" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Gerenciar Usuários" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Problemas com o Liquidsoap..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "Novo Usuário" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Página não encontrada" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "id" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Erro na aplicação" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "Primeiro Nome" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s não encontrado" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Último Nome" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Ocorreu algo errado." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "Tipo de Usuário" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Adicionar à Lista" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Adicionar ao Bloco" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Download" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Duplicar Lista" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Aplicativo Padrão Zend Framework" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "SoundCloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Página não encontrada!" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "Nenhuma ação disponível" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "A página que você procura não existe!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "Você não tem permissão para excluir os itens selecionados." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Expandir Bloco Estático" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "" +"Não foi possível excluir alguns arquivos, por estarem com execução agendada." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Expandir Bloco Dinâmico" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Cópia de %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Bloco vazio" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Fluxo Sem Título" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Lista vazia" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Fluxo gravado." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Valores do formulário inválidos." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "Você não tem permissão para desconectar a fonte." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Embaralhar Lista" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "Não há fonte conectada a esta entrada." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Salvar Lista" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "Você não tem permissão para alternar entre as fontes." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Crossfade da Lista" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "Usuário adicionado com sucesso!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Fade de entrada" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "Usuário atualizado com sucesso!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Fade de saída" +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "Configurações atualizadas com sucesso!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "Nenhuma lista aberta" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Retransmissão do programa %s de %s as %s" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." msgstr "" +"Confirme se o nome de usuário / senha do administrador estão corretos na " +"página Sistema > Fluxos." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(ss,t)" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "Você não tem permissão para acessar esta funcionalidade." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "Nenhum bloco aberto" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "Você não tem permissão para acessar esta funcionalidade." -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "Arquivo não existe no Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Cue entrada:" +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "Arquivo não existe no Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "Arquivo não existe no Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Cue Saída:" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Requisição inválida. Parâmetro não informado." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Duração Original:" +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Requisição inválida. Parâmetro informado é inválido." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Adicionar este programa" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "Você está vendo uma versão obsoleta de %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Atualizar programa" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "Você não pode adicionar faixas a um bloco dinâmico" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "O que" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "Você não tem permissão para excluir os %s(s) selecionados." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "Quando" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "Você pode somente adicionar faixas um bloco inteligente." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Fluxo de entrada ao vivo" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Lista Sem Título" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Gravar & Retransmitir" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Bloco Sem Título" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Quem" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Lista Desconhecida" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Aparência" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "Cue de entrada e saída são nulos." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Retransmissão de %s a partir de %s" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "O ponto de saída não pode ser maior que a duração do arquivo" -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Selecione o País" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "" +"A duração do ponto de entrada não pode ser maior que a do ponto de saída." + +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "" +"A duração do ponto de saída não pode ser menor que a do ponto de entrada." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3650,43 +4327,26 @@ msgstr "Fluxo web inválido. A URL parece tratar-se de download de arquivo." msgid "Unrecognized stream type: %s" msgstr "Tipo de fluxo não reconhecido: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s já está monitorado." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s contém o diretório monitorado:% s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s está contido dentro de diretório já monitorado: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s não é um diretório válido." - -#: airtime_mvc/application/models/MusicDir.php:232 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s já está definido como armazenamento atual ou está na lista de diretórios monitorados" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Olá %s, \n" +"\n" +"Clique neste link para redefinir sua senha: " -#: airtime_mvc/application/models/MusicDir.php:386 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s já está definido como armazenamento atual ou está na lista de diretórios monitorados." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Redefinição de Senha do Airtime" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s não existe na lista de diretórios monitorados." +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Selecione o País" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3694,13 +4354,19 @@ msgstr "" #: airtime_mvc/application/models/Scheduler.php:119 msgid "The schedule you're viewing is out of date! (sched mismatch)" -msgstr "A programação que você está vendo está desatualizada! (programação incompatível)" +msgstr "" +"A programação que você está vendo está desatualizada! (programação " +"incompatível)" #: airtime_mvc/application/models/Scheduler.php:124 msgid "The schedule you're viewing is out of date! (instance mismatch)" -msgstr "A programação que você está vendo está desatualizada! (instância incompatível)" +msgstr "" +"A programação que você está vendo está desatualizada! (instância " +"incompatível)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3731,61 +4397,62 @@ msgid "" "broadcasted" msgstr "" -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." -msgstr "" - +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "Um dos arquivos selecionados não existe!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "Cue de entrada e saída são nulos." - -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "A duração do ponto de entrada não pode ser maior que a do ponto de saída." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s já está monitorado." -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "O ponto de saída não pode ser maior que a duração do arquivo" +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s contém o diretório monitorado:% s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "A duração do ponto de saída não pode ser menor que a do ponto de entrada." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s está contido dentro de diretório já monitorado: %s" -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." -msgstr "Falha ao criar diretório 'organize'" +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s não é um diretório válido." -#: airtime_mvc/application/models/StoredFile.php:1017 +#: airtime_mvc/application/models/MusicDir.php:232 #, php-format msgid "" -"The file was not uploaded, there is %s MB of disk space left and the file " -"you are uploading has a size of %s MB." -msgstr "O arquivo não foi transferido, há %s MB de espaço livre em disco e o arquivo que você está enviando tem um tamanho de %s MB." +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s já está definido como armazenamento atual ou está na lista de diretórios " +"monitorados" -#: airtime_mvc/application/models/StoredFile.php:1026 +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format msgid "" -"This file appears to be corrupted and will not be added to media library." -msgstr "Este arquivo parece estar corrompido e não será adicionado à biblioteca de mídia." +"%s is already set as the current storage dir or in the watched folders list." +msgstr "" +"%s já está definido como armazenamento atual ou está na lista de diretórios " +"monitorados." -#: airtime_mvc/application/models/StoredFile.php:1065 -msgid "" -"The file was not uploaded, this error can occur if the computer hard drive " -"does not have enough disk space or the stor directory does not have correct " -"write permissions." -msgstr "O arquivo não foi transferido, esse erro pode ocorrer se o computador não tem espaço suficiente em disco ou o diretório stor não tem as permissões de gravação corretas." +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s não existe na lista de diretórios monitorados." + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Retransmissão de %s a partir de %s" #: airtime_mvc/application/models/Show.php:180 msgid "Shows can have a max length of 24 hours." @@ -3795,116 +4462,153 @@ msgstr "Os programas podem ter duração máxima de 24 horas." msgid "" "Cannot schedule overlapping shows.\n" "Note: Resizing a repeating show affects all of its repeats." -msgstr "Não é possível agendar programas sobrepostos.\nNota: Redimensionar um programa repetitivo afeta todas as suas repetições." +msgstr "" +"Não é possível agendar programas sobrepostos.\n" +"Nota: Redimensionar um programa repetitivo afeta todas as suas repetições." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/models/StoredFile.php:1017 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Olá %s, \n\nClique neste link para redefinir sua senha: " - -#: airtime_mvc/application/models/Auth.php:36 -#, php-format -msgid "%s Password Reset" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." msgstr "" +"O arquivo não foi transferido, há %s MB de espaço livre em disco e o arquivo " +"que você está enviando tem um tamanho de %s MB." -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "" +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "Não é permitido redimensionar um programa anterior" -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "Visualizar Metadados do Arquivo Gravado" +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "Os programas não devem ser sobrepostos" -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Exibir Conteúdo" +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." +msgstr "Falha ao criar diretório 'organize'" -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Remover Todo o Conteúdo" +#: airtime_mvc/application/models/StoredFile.php:1026 +msgid "" +"This file appears to be corrupted and will not be added to media library." +msgstr "" +"Este arquivo parece estar corrompido e não será adicionado à biblioteca de " +"mídia." -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Cancelar Programa em Exibição" +#: airtime_mvc/application/models/StoredFile.php:1065 +msgid "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." +msgstr "" +"O arquivo não foi transferido, esse erro pode ocorrer se o computador não " +"tem espaço suficiente em disco ou o diretório stor não tem as permissões de " +"gravação corretas." -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" +#: airtime_mvc/application/layouts/scripts/login.phtml:24 +#, php-format +msgid "" +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Editar Programa" +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#, php-format +msgid "Promote my station on %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Excluir esta Instância" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Excluir esta Instância e todas as seguintes" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Não é possível arrastar e soltar programas repetidos" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Não é possível mover um programa anterior" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Não é possível mover um programa anterior" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Não é possível mover um programa gravado menos de 1 hora antes de suas retransmissões." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "O programa foi excluído porque a gravação prévia não existe!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "É necessário aguardar 1 hora antes de retransmitir." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Executado" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "O ano % s deve estar compreendido no intervalo entre 1753 - 9999" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s não é uma data válida" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s:%s:%s não é um horário válido" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Por favor selecione uma opção" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "Não há gravações" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/locale/ru_RU/LC_MESSAGES/airtime.po b/airtime_mvc/locale/ru_RU/LC_MESSAGES/airtime.po index 066b52619f..4366c4a2c6 100644 --- a/airtime_mvc/locale/ru_RU/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/ru_RU/LC_MESSAGES/airtime.po @@ -1,3611 +1,4290 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: -# Andrey Podshivalov, 2014 -# Andrey Podshivalov, 2014 -# Andrey Podshivalov, 2014 +# andrey.podshivalov, 2014 +# Андрей Подшивалов, 2014 +# Андрей Подшивалов, 2014 # Sourcefabric , 2012 # Андрей Подшивалов, 2014 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: Russian (Russia) (http://www.transifex.com/projects/p/airtime/language/ru_RU/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-02-04 17:30+0000\n" +"Last-Translator: andrey.podshivalov\n" +"Language-Team: Russian (Russia) (http://www.transifex.com/projects/p/airtime/" +"language/ru_RU/)\n" +"Language: ru_RU\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ru_RU\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Аудио-плейер" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Пожалуйста, выбор опции" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Выход" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "Нет записей" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "Проигр." +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "Год %s должен быть в пределах 1753 - 9999" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "Стоп" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s - %s - %s не является допустимой датой" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Начало звучания" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s : %s : %s не является допустимым временем" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "Установить начало звучания" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Сейчас в эфире" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Окончание звучания" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Добавить медиа-файлы" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "Установить окончание звучания" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Библиотека" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "Курсор" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Календарь" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Усиление" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "Система" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Затухание" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Установки пользователя" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Пользователи" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Потоковый режим" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Папки медиа-файлов" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Активировано:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Потоки" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Тип потока:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Отзывы о поддержке" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Битовая скорость:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Статус" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Тип услуги:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Статистика слушателей" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Каналы:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "История" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Моно" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "История воспроизведения" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Стерео" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "Шаблоны истории" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Сервер" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Справка" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Неверно введенный символ" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "С чего начать" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Порт" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "Руководство пользователя" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Разрешены только числа." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "О программе" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Пароль" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "Записанный файл не найден" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Жанр" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "Просмотр метаданных записанного файла" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Взгляд на Soundcloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Имя" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Загрузить на SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Описание" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Повторно загрузить на SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Точка монтирования" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Показать содержимое" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Имя пользователя" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Добавить / удалить содержимое" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Администратор" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Удалить все содержимое" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Пароль администратора" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Отмена текущей программы" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Получение информации с сервера ..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "Редактировать" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Сервер не может быть пустым" +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Редактировать" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Порт не может быть пустым." +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Редактировать программу" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Монтирование не может быть пустым с Icecast сервер." +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Удалить" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" -msgstr "Заголовок:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Удалить этот выпуск" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" -msgstr "Создатель:" +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Удалить этот выпуск и все последующие" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "Альбом:" +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "Нет доступа" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "Дорожка" +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "Невозможно перетащить повторяющиеся программы" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" -msgstr "Жанр:" +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "Невозможно переместить прошлую программу" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" -msgstr "Год:" +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Невозможно переместить программу в прошедший период" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" -msgstr "Метка:" +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Невозможно поставить в расписание пересекающиеся программы" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" -msgstr "Композитор:" +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "" +"Невозможно переместить записанную программу менее, чем за 1 час до ее " +"ретрансляции." -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" -msgstr "Исполнитель:" +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "Программа была удалена, потому что записанная программа не существует!" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Настроение:" +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "До ретрансляции необходимо ожидать 1 час." -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Заголовок" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" -msgstr "Авторское право:" +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Создатель" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "ISRC номер:" +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Альбом" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" -msgstr "Вебсайт:" +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Длина" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" -msgstr "Язык: " +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Жанр" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Настроение" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Ярлык " + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Композитор" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Авторское право" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Год" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "Трек" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Исполнитель" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Язык" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "Время старта" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "Время окончания" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Проиграно" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "Импорт файлов в процессе ..." + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Дополнительные параметры поиска" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Слушатель граф с течением времени" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "Новый" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "Новый плейлист" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "Новый умный блок" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "Новый веб-поток" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "Очистить плейлист" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "Очистить" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Перемешать плейлист" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Перемешать" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Сохранить плейлист" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 #: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 #: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 #: airtime_mvc/application/forms/SupportSettings.php:161 #: airtime_mvc/application/controllers/LocaleController.php:283 #: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 #: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 msgid "Save" msgstr "Сохранить" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Отменить" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Перекрестное затухание композиций плейлиста" -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Логин:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "Просмотр / редактирование описания" -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Пароль:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Описание" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Повторите пароль:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Усиление: " -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Имя" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Затухание: " -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Фамилия" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "Нет открытых плейлистов" -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "Email:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Развернуть статический блок" -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Тел:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Развернуть динамический блок" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Очистить умный блок" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Очистить плейлист" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "Тип пользователя:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "Показать трек" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Гость" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Начало звучания: " -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "Диджей" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(чч: мм: сс)" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Менеджер программы" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Окончание звучания: " + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Исходная длина:" + +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(сс)" -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Администратор" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "Очистить умный блок" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Имя пользователя не является уникальным." +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "Нет открытых умных блоков" -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Цвет фона:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sAirtime%s %s, открытое программное обеспечение для радио для планирования " +"и удаленного управления станцией.%s" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Цвет текста:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "" +"%sSourcefabric%s o.p.s. Airtime распространяется в соответствии с %sGNU GPL " +"v.3%s" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Дата начала:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Добро пожаловать в Airtime!" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Дата окончания:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "" +"Вот как вы можете начать использовать Airtime для автоматизации вещания: " -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Программа:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Начните с добавления файлов в библиотеку с помощью кнопки \"Добавить медиа-" +"файлы\". Вы также можете перетащить файлы в это окно." -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "Все мои программы:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Создайте программу в разделе 'Календарь' и кликните \"+ Show '. Это может " +"быть разовая или повторяющаяся программа. Только администраторы и менеджеры " +"могут добавить программу." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "дней" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Добавить медиа-файлы программы в Календаре, кликнув левой кнопкой и выбрав " +"\"Добавить/Удалить контент\" в выпадающем меню" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "День должен быть указан" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Выберите медиа-файлы на левой панели и перетащите их в вашу программу на " +"правой панели." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "Время должно быть указано" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "Вы готовы!" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Должны ждать по крайней мере 1 час до ретрансляции" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "Для более подробной справки читать %sруководство пользователя%s ." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Импорт папки:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Потоковый режим" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Просматриваемые папки:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Поделиться" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Не является допустимой папкой" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Выбор потока:" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Поиск пользователей:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "отключить звук" -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "Диджеи:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "включить звук" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Войти" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "Все" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Введите символы, которые вы видите на картинке ниже." +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Название станции" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "Введите время в секундах 0 {0,0}" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "URL потока:" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "Возрастание по умолчанию:" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Длина по умолчанию:" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "Затухание по умолчанию:" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "Нет веб-потока" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Разрешить удаленным вебсайтам доступ к \"Расписание \" информация? %s (Активировать для работы виджетов интерфейса)." +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "Заголовок:" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Отключено" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "Создатель:" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Активировано" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "Альбом:" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Язык по умолчанию" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "Дорожка" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "Временная зона станции" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Длина:" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "Начало недели" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Частота дискретизации:" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Воскресенье" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Битовая скорость:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Понедельник" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Настроение:" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Вторник" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "Жанр:" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Среда" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "Год:" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Четверг" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "Метка:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Пятница" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "Композитор:" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Суббота" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "Исполнитель:" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "Ссылка:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "Авторское право:" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Тип повтора:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "ISRC номер:" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "Еженедельно" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "Вебсайт:" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "каждые 2 недели" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" +msgstr "Язык: " -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "каждые 3 недели" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "каждые 4 недели" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Имя:" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "ежемесячно" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Описание:" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Выберите дни:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Веб-поток" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Вс" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Динамический умный блок" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Пн" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Статический умный блок" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Вт" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Аудио-дорожка" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Ср" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Содержание плейлиста: " -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Чт" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Содержание статического умного блока: " -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Пт" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Критерии динамического умного блока: " -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Сб" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Ограничение до " -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "день месяца" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "Выберите программу" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "день недели" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "Нет Show" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "Нет окончания?" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "Найти" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "Дата окончания должна быть после даты начала" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "%s's Настройки" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Выбрать" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Подтвердить новый пароль" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Установка" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "Подтверждение пароля не совпадает с вашим паролем." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Текущая папка импорта:" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Получить новый пароль" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Добавить" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Выбрать критерии" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Повторно сканировать просмотренную папку (Это полезно, если это сетевая " +"сборка, которая может быть не синхронна с Airtime)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Альбом" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Удалить просмотренную папку" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Битовая скорость (Kbps)" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "Вы не просматриваете никакие папки медиа-файлов." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Обязательно)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Композитор" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Помогите улучшить Airtime, рассказав нам, как вы работаете с ним. Мы будем " +"собирать эту информацию регулярно. %sНажмите \"Послать отзывы\" и мы " +"позаботимся о том, чтобы те опции, которые вы используете, постоянно " +"совершенствовались." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Исполнитель" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "" +"Щелкните поле ниже, чтобы рекламировать вашу станцию на %s Sourcefabric.org " +"%s ." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Авторское право" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(В целях продвижения вашей станции, опция 'Отправить отзывы о поддержке' " +"должна быть включена)." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Создатель" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(Только для проверки, не будет опубликовано)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Закодировано в" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Примечание: все, что превысит размеры 600x600, будет изменено." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Покажите мне, что я посылаю " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Ярлык " +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Политика конфиденциальности Sourcefabric " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Язык" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Найти программы" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Последние изменения" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Фильтр по программе:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Последнее проигрывание" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "Настройки Email / почтового сервера" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Длина" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "Настройки SoundCloud " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Mime" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Выберите дни:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Настроение" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Удалить" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Владелец" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Поток " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Выравнивание громкости" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Дополнительные параметры" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Частота дискретизации (кГц)" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "" +"Следующая информация будет отображаться для слушателей в их медиа-плейере:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Заголовок" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(Веб-сайт вашей радиостанции)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Номер дорожки" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "URL потока: " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Загружено" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "URL подключенія:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Вебсайт" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Сменить пароль" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Год" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Регистрация Airtime " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Выберите модификатор" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "" +"Помогите улучшить Airtime, рассказав нам, как вы работаете с ним. Мы будем " +"собирать эту информацию регулярно. %s Нажмите кнопку \"Да, помочь Airtime\" " +"и мы позаботимся о том, чтобы те опции, которые вы используете, постоянно " +"совершенствовались." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "содержит" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Щелкните поле ниже, чтобы рекламировать свою станцию на %s Sourcefabric.org " +"%s . В целях содействия вашей станции, опция 'Отправить отзыв о поддержке " +"»должна быть включена. Эти данные будут собираться в дополнение к отзывам о " +"поддержке." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "не содержит:" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Постановления и условия" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "является" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Настройки входного потока" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "не является" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "URL подключения к Master:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "начинается с" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Заменить" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "заканчивается" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "OK" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "больше, чем" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "ВОССТАНОВИТЬ" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "меньше, чем" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "URL подключения к программе:" + +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Параметры умного блока" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "находится в диапазоне" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "или" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "часов" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "и" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "минут" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr " к " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "элементы" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "Файлы отвечают критериям" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Установка типа умного блока:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "файл отвечает критериям" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Статический" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Повторить дні:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Динамический" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Фильтровать историю" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Разрешить повтор треков:" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Закрыть" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Ограничить до" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Добавить эту программу" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Создать содержание плейлиста и сохранить критерии" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Обновить программу" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Создать" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "Что" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Перемешать содержание плейлиста" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "Когда" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Перемешать" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Потоковый ввод" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "Ограничение не может быть пустым или менее 0" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Запись и Ретрансляция" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "Ограничение не может быть более 24 часов" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Кто" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "Значение должно быть целым числом" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Стиль" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "500 является максимально допустимым значением элемента" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Начало" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "Вы должны выбрать критерии и модификаторы" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Настройки потоковой передачи " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "\"Длина\" должна быть в формате '00:00:00'" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Общие настройки" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "Значение должно быть в формате временной метки (например, 0000-00-00 или 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "дБ" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "Значение должно быть числом" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Настройки выходного потока" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "Значение должно быть меньше, чем 2147483648" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Управление папками медиа-файлов" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "Значение должно быть меньше, чем %s символов" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Приложение по умолчанию Zend Framework " -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "Значение не может быть пустым" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Страница не найдена!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Автоматическое выключение" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "Похоже, что страница, которую вы ищете, не существует!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Автоматическое включение" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "Шаблоны лога" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Переключение переходов затухания (s)" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "Нет шаблона лога" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "Введите время в секундах, 00{0,000000}" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "Установить по умолчанию" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Имя пользователя Master " +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Пароль Master" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "URL подключения к источнику Master" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "URL подключения к источнику Show" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Порт источника Master " +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "Создание шаблона по файлам" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Точка монтирования источника Master" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "Создание шаблона лога" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Порт источника Show" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Имя" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Точка монтирования источника Show" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "Добавить еще элементы" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "Вы не можете использовать порт, используемый Master DJ." +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "Добавить поле" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Порт %s не доступен." +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "Установить шаблон по умолчанию" + +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "Новый пароль" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Телефон:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "Пожалуйста, введите и подтвердите новый пароль ниже." -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Вебсайт станции:" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Войти" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Страна:" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." +msgstr "" +"Добро пожаловать в онлайн демо-версию Airtime! Вы можете войти, используя " +"логин \"admin\" и пароль \"admin\"." -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "Город" +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." +msgstr "" +"Пожалуйста, введите email своей учетной записи. Вы получите ссылку, чтобы " +"создать новый пароль." -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Описание станции:" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "E-mail отправлен" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Логотип станции:" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "Сообщение было отправлено" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Отправить отзыв о поддержке" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Вернуться на страницу входа" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "Вы должны согласиться с политикой конфиденциальности." +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "Данные по прграмме" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Значение является обязательным и не может быть пустым" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "предыдущая" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "Время старта" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "играть" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "Время окончания" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "пауза" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "Нет Show" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "следующая" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Запись с линейного входа?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "стоп" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Ретрансляция?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "максимальная громкость" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Требуется обновление" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 #, php-format -msgid "Use %s Authentication:" +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." msgstr "" +"Для проигрывания медиа-файла необходимо либо обновить браузер до последней " +"версии или обновить %sфлэш-плагина%s." -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Использование пользовательской идентификации:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Услуги" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Пользовательские имя пользователя" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Время работы" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Пользовательский пароль" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "ЦП" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "Имя пользователя не может быть пустым." +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Память" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "Пароль не может быть пустым." +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Версия Airtime" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "E-mail" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Дисковое пространство" -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Восстановить пароль" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Управление пользователями" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Средства аудиовыхода" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "Новый пользователь" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Тип выхода" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "id" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Метаданные Icecast Vorbis " +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Имя пользователя" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Метка потока:" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "Имя" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Исполнитель - Название" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Фамилия" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Программа - Исполнитель - Название" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "Тип пользователя" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Название станции - Название программы" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Предыдущая:" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Отключить мета-данные" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Следующая:" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Исходные потоки" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Источник Master " -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'% значение%' не является действительным адресом электронной почты в формате local-part@hostname" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Источник Show" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" -msgstr "'%значение%' не соответствует формату даты '%формат%'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Из календаря" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" -msgstr "'%значение%' имеет менее %min% символов" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "В эфире" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" -msgstr "'%значение%' имеет более %max% символов" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Слушать" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Время станции" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" -msgstr "'%значение%' не входит в промежуток '%min%' и '%maxс% включительно" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "лизензия истекает через" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" -msgstr "Пароли не совпадают" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "дней" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%значение%' не соответствует формату времени 'ЧЧ:мм'" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Купить копию Airtime" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Дата /время начала:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "Моя учетная запись" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Дата / время окончания:" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Логин:" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Длительность:" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Пароль:" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Временная зона:" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "Введите символы, которые вы видите на картинке ниже." -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Повторы?" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Неверно введенный символ" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Невозможно создать программу в прошедшем периоде" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "День должен быть указан" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Невозможно изменить дату/время начала программы, которая уже началась" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "Время должно быть указано" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "Дата/время окончания не могут быть прошедшими" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "Должны ждать по крайней мере 1 час до ретрансляции" -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Не может иметь длительность <0м" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Использование идентификации Airtime:" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Не может иметь длительность 00ч 00м" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Использование пользовательской идентификации:" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Не может иметь длительность более 24 часов" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Пользовательские имя пользователя" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Невозможно поставить в расписание пересекающиеся программы" +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Пользовательский пароль" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Имя:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "Имя пользователя не может быть пустым." -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Программа без названия" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "Пароль не может быть пустым." -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Активировано:" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Описание:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Тип потока:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" -msgstr "Автоматически загружать записанные программы" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Тип услуги:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" -msgstr "Включить загрузку SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Каналы:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" -msgstr "Автоматически отмечать файлы \"Загружаемые\" на SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Моно" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" -msgstr "SoundCloud e-mail" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Стерео" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" -msgstr "SoundCloud пароль" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Сервер" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" -msgstr "SoundCloud теги: (отдельные метки с пробелами)" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Порт" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" -msgstr "Жанр по умолчанию:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Разрешены только числа." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" -msgstr "Тип трека по умолчанию:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Пароль" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" -msgstr "Оригинал" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "Ремикс" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Точка монтирования" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "Прямой эфир" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Администратор" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "Запись" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Пароль администратора" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "Разговорный" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Получение информации с сервера ..." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "Подкаст" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Сервер не может быть пустым" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "Демо" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Порт не может быть пустым." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "Незавершенная работа" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Монтирование не может быть пустым с Icecast сервер." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "Основа" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Импорт папки:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "Цикл" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Просматриваемые папки:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "Звуковой эффект" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Не является допустимой папкой" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "Единичный сэмпл" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Значение является обязательным и не может быть пустым" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "Другое" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'% значение%' не является действительным адресом электронной почты в формате " +"local-part@hostname" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Лицензия по умолчанию:" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" +msgstr "'%значение%' не соответствует формату даты '%формат%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "Работа находится в публичном домене" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" +msgstr "'%значение%' имеет менее %min% символов" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "Все права защищены" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" +msgstr "'%значение%' имеет более %max% символов" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Лицензия Creative Commons Attribution" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" +msgstr "'%значение%' не входит в промежуток '%min%' и '%maxс% включительно" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Некоммерческая Creative Commons Attribution" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" +msgstr "Пароли не совпадают" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Creative Commons Attribution без производных продуктов" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Запись с линейного входа?" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Creative Commons Attribution в равных долях" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Ретрансляция?" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Creative Commons Attribution Non Некоммерческое производных работ" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Цвет фона:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Creative Commons Attribution некоммерческая в равных долях" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Цвет текста:" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "Временная зона (броузер)" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "E-mail" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "Включение системы электронной почты (смена пароля)" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Восстановить пароль" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Сброс пароля 'От' E-mail" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Отменить" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Настройка почтового сервера" +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Повторите пароль:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Требуется проверка подлинности" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Имя" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Почтовый сервер" +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Фамилия" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "Адрес электронной почты" +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "Email:" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Тел:" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Веб-поток без названия" +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Веб-поток сохранен." +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Недопустимые значения формы." +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "Временная зона (броузер)" -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Пожалуйста, введите ваше имя пользователя и пароль" +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Имя пользователя не является уникальным." -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Неверное имя пользователя или пароль. Пожалуйста, попробуйте еще раз." +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Средства аудиовыхода" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "E-mail не может быть отправлен. Проверьте настройки почтового сервера и убедитесь, что он был настроен должным образом." +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Тип выхода" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "Данный email не найден." +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Метаданные Icecast Vorbis " -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Ретрансляция программы %s от %s в %s" +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Метка потока:" -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Загрузить" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Исполнитель - Название" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "Пользователь успешно добавлен!" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Программа - Исполнитель - Название" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "Пользователь успешно обновлен!" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Название станции - Название программы" -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Изменения в настройках сохранены!" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Отключить мета-данные" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Страница не найдена" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Ошибка приложения" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Запись:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" +msgstr "Автоматически загружать записанные программы" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Поток Master" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" +msgstr "Включить загрузку SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Потоковый режим" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +msgstr "Автоматически отмечать файлы \"Загружаемые\" на SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Ничего не запланировано" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" +msgstr "SoundCloud e-mail" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Текущая программа:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" +msgstr "SoundCloud пароль" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Текущий" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" +msgstr "SoundCloud теги: (отдельные метки с пробелами)" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "Вы используете последнюю версию" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" +msgstr "Жанр по умолчанию:" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "Доступна новая версия:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" +msgstr "Тип трека по умолчанию:" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "Эта версия скоро устареет." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" +msgstr "Оригинал" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "Эта версия больше не поддерживается." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "Ремикс" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Пожалуйста, обновите до" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "Прямой эфир" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Добавить в текущий плейлист" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "Запись" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Добавить в текущем умный блок" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "Разговорный" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Добавление 1 элемента" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "Подкаст" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Добавление %s элементов" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "Демо" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "Вы можете добавить треки только в умные блоки." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "Незавершенная работа" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "Вы можете добавить только треки, умные блоки и веб-потоки к плейлистам." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "Основа" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "Цикл" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Редактировать метаданные" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "Звуковой эффект" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Добавить в избранную программу" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "Единичный сэмпл" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Выбрать" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "Другое" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Выбрать эту страницу" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Лицензия по умолчанию:" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Отменить выбор страницы" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "Работа находится в публичном домене" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Отменить все выделения" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "Все права защищены" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Вы действительно хотите удалить выделенное?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Лицензия Creative Commons Attribution" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "Запланировано" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Некоммерческая Creative Commons Attribution" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "Плейлист / Блок" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Creative Commons Attribution без производных продуктов" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Скорость передачи данных" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Creative Commons Attribution в равных долях" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Частота дискретизации" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Creative Commons Attribution Non Некоммерческое производных работ" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Загрузка..." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Creative Commons Attribution некоммерческая в равных долях" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "Все" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Название станции" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Файлы" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Плейлисты" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "Введите время в секундах 0 {0,0}" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Умные блоки" +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "Возрастание по умолчанию:" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Веб-потоки" +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "Затухание по умолчанию:" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Неизвестный тип:" +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Разрешить удаленным вебсайтам доступ к \"Расписание \" информация? %s " +"(Активировать для работы виджетов интерфейса)." -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Вы действительно хотите удалить выбранный элемент?" +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Отключено" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Загрузка продолжается ..." +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Активировано" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Получение данных с сервера ..." +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Язык по умолчанию" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "Soundcloud идентификатор для этого файла: " +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "Временная зона станции" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "Произошла ошибка при загрузке на Soundcloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "Начало недели" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Код ошибки: " +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Воскресенье" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Сообщение об ошибке: " +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Понедельник" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "Вход должен быть положительным числом" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Вторник" + +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Среда" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "Вход должен быть числом" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Четверг" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "Вход должен быть в формате: гггг-мм-дд" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Пятница" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "Вход должен быть в формате: чч: мм: сс" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Суббота" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "Вы загружаете файлы. %sПереход на другой экран отменит процесс загрузки. %sВы уверены, что хотите покинуть страницу?" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Дата начала:" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "Открыть медиа-построитель" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Дата окончания:" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "пожалуйста, поставьте во время '00:00:00 (.0)'" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Телефон:" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "пожалуйста, поставьте во время в секундах '00 (.0)'" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Вебсайт станции:" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Ваш браузер не поддерживает воспроизведения данного типа файлов: " +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Страна:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Динамический блок не подлежит предпросмотру" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "Город" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Ограничить до: " +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Описание станции:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Playlist сохранен" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Логотип станции:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Отправить отзыв о поддержке" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime не уверен в статусе этого файла. Это возможно, если файл находится на удаленном недоступном диске или в папке, которая более не \"просматривается\"." +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Поддержать мою станцию на Sourcefabric.org" -#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 #, php-format -msgid "Listener Count on %s: %s" -msgstr "Слушатель считает на %s : %s" +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "" +"Установив этот флажок, я соглашаюсь с %sполитикой конфиденциальности%s " +"Sourcefabric." -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Напомнить мне через 1 неделю" +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "Вы должны согласиться с политикой конфиденциальности." -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Не напоминать никогда" +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%значение%' не соответствует формату времени 'ЧЧ:мм'" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Да, помочь Airtime" +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Дата /время начала:" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "Изображение должно быть в любом из следующих форматов: jpg, jpeg, png или gif" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Дата / время окончания:" -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "Статический умный блок сохранит критерии и немедленно создаст контент блока. Это позволяет редактировать и просматривать его в библиотеке, прежде чем добавить его в программу." +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Длительность:" -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "Динамический умный блок сохранит только критерии. Содержания блока будете сгенерировано после добавления его в программу. Вы не сможете просматривать и редактировать содержимое в библиотеке." +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Временная зона:" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "Желаемая длина блока не будет достигнута, если Airtime не найдет уникальных треков, соответствующих вашим критериям. Активируйте эту опцию, если хотите неоднократного добавления треков в умный блок." +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Повторы?" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Умный блок перемешан" +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Невозможно создать программу в прошедшем периоде" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Умный блок создан и критерии сохранены" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "Невозможно изменить дату/время начала программы, которая уже началась" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Умный блок сохранен" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "Дата/время окончания не могут быть прошедшими" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Обработка ..." +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Не может иметь длительность <0м" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "выберите папку для хранения" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Не может иметь длительность 00ч 00м" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Выберите папку для просмотра" +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Не может иметь длительность более 24 часов" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Вы уверены, что хотите изменить папку хранения? \n Файлы из вашей библиотеки будут удалены!" +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Программа без названия" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Управление папками медиа-файлов" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Поиск пользователей:" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Вы уверены, что хотите удалить просмотренную папку?" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "Диджеи:" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "Этот путь в настоящий момент недоступен." +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Подтвердить новый пароль" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "" +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "Подтверждение пароля не совпадает с вашим паролем." -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Подключено к потоковому серверу" +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Получить новый пароль" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "Поток отключен" +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "Тип пользователя:" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Не удается подключиться к потоковому серверу" +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Гость" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Если Airtime находится за маршрутизатором или брандмауэром, вам может потребоваться настроить переадресацию портов, и информация в этом поле будет неверной. В этом случае вам нужно будет вручную обновлять это поле так, чтобы оно показывало верный хост / порт / сборку, к которым должен подключиться ваш диджей. Допустимый диапазон: от 1024 до 49151." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "Диджей" + +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Менеджер программы" -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "Для более подробной информации, пожалуйста, прочитайте %sРуководство Airtime %s" +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Администратор" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Отметьте эту опцию для активации метаданных OGG потока (метаданные потока это название композиции, имя исполнителя и название шоу, которое отображается в аудио-плейере). В VLC и mplayer наблюдается серьезная ошибка при воспроизведении потоков OGG/VORBIS, в которых метаданные включены: они будут отключаться от потока после каждой песни. Если вы используете поток OGG и ваши слушатели не требуют поддержки этих аудиоплееров, то не стесняйтесь включить эту опцию." +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "ISRC номер:" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Выберите эту опцию для автоматического выключения источника Master / Show после отключения источника." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Программа:" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Выберите эту опцию для автоматического включения источника Master / Show после соединения с источником." +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "Все мои программы:" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Если ваш сервер Icecast ожидает имя пользователя \"источника\", это поле можно оставить пустым." +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "Ссылка:" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "Если ваш клиент потокового режима не запросит имя пользователя, то это поле должно быть 'источником'." +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Тип повтора:" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "Если вы измените имя пользователя или пароль для активного потока, механизм воспроизведения будет перезагружен, а в эфире в течение 5-10 секунд будет звучать тишина. Изменение следующих полей НЕ вызовет перезагрузки: Метка потока (Общие настройки), Переключение переходов затухания, Пользовательское имя Master, Пароль Master (Настройки входящих потоков). Если Airtime ведет запись, и если изменения вызовут перезапуск механизма воспроизведения, запись будет остановлена." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "Еженедельно" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "" +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "каждые 2 недели" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "каждые 3 недели" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "Результатов не найдено" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "каждые 4 недели" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "Действует та же схема безопасности программы: только пользователи, назначенные для программы, могут подключиться." +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "ежемесячно" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Укажите пользовательскую идентификацию, которая будет работать только для этой программы." +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Выберите дни:" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "Выпуска программы больше не существует!" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "Вс" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Пн" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Вт" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "Ср" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Программа" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Чт" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "Программа не заполнена" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Пт" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1мин" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "Сб" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5мин" +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10мин" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "день месяца" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15мин" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "день недели" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30мин" +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "Нет окончания?" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60мин" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "Дата окончания должна быть после даты начала" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Retreiving данных с сервера ..." +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "Эта программа не имеет запланированного содержания." +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "Включение системы электронной почты (смена пароля)" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Сброс пароля 'От' E-mail" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "января" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Настройка почтового сервера" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "февраля" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Требуется проверка подлинности" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "марта" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Почтовый сервер" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "апреля" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "Адрес электронной почты" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "мая" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Выбрать критерии" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "июня" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Битовая скорость (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "июля" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "августа" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Начало звучания" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "сентября" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Окончание звучания" + +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Закодировано в" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "октября" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Последние изменения" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "ноября" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Последнее проигрывание" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "декабря" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Mime" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "янв" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Владелец" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "фев" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Выравнивание громкости" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "март" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Частота дискретизации (кГц)" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "апр" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Номер дорожки" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "июн" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Загружено" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "июл" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Вебсайт" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "авг" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Выберите модификатор" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "сент" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "содержит" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "окт" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "не содержит:" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "нояб" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "является" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "дек" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "не является" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "сегодня" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "начинается с" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "день" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "заканчивается" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "неделя" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "больше, чем" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "месяц" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "меньше, чем" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Программы, превышающие время, запланированное в расписании, будут обрезаны следующей программой." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "находится в диапазоне" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Отменить текущую программу?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "часов" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Остановить запись текущей программы?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "минут" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "ОК" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "элементы" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Содержание программы" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Установка типа умного блока:" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Удалить все содержание?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Статический" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Удалить выбранный элемент(ы)?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Динамический" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Начало" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Разрешить повтор треков:" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "Конец" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Ограничить до" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Продолжительность" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Создать содержание плейлиста и сохранить критерии" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Программа не заполнена" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Создать" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Запись с линейного входа" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Перемешать содержание плейлиста" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Предпросмотр треков" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "Ограничение не может быть пустым или менее 0" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Нельзя планировать вне рамок программы." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "Ограничение не может быть более 24 часов" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Перемещение 1 элемента" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "Значение должно быть целым числом" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Перемещение %s элементов" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "500 является максимально допустимым значением элемента" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "Редактор затухания" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "Вы должны выбрать критерии и модификаторы" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "\"Длина\" должна быть в формате '00:00:00'" -#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 msgid "" -"Waveform features are available in a browser supporting the Web Audio API" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" msgstr "" +"Значение должно быть в формате временной метки (например, 0000-00-00 или " +"0000-00-00 00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Выделить все" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "Значение должно быть числом" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Снять выделения" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "Значение должно быть меньше, чем 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Удалить лишние треки" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "Значение должно быть меньше, чем %s символов" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Удалить выбранные запланированные элементы" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "Значение не может быть пустым" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Перейти к текущей проигрываемой дорожке" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Автоматическое выключение" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Отмена текущей программы" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Автоматическое включение" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Открыть библиотеку, чтобы добавить или удалить содержимое" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Переключение переходов затухания (s)" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Добавить / удалить содержимое" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "Введите время в секундах, 00{0,000000}" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "используется" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Имя пользователя Master " -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Диск" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Пароль Master" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Заглянуть" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "URL подключения к источнику Master" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Открыть" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "URL подключения к источнику Show" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Порт источника Master " -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "Показать календарь" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Точка монтирования источника Master" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "Показать программу" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Порт источника Show" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Точка монтирования источника Show" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "Вы не можете использовать порт, используемый Master DJ." -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Импорт медиа-файлов" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Порт %s не доступен." -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" msgstr "" +"Авторское право Airtime ©Sourcefabric o.p.s. Все права защищены. " +"%sПоддерживается и распространяется под лицензией GNU GPL v.3 от " +"%sSourcefabric o.p.s.%s" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Выход" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "Проигр." -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "Редактировать программу" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "Стоп" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Планировать программу" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "Установить начало звучания" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "Установить окончание звучания" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Администраторы могут:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "Курсор" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Настроить предпочтения" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Усиление" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Затухание" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Аудио-плейер" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "Системный статус" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Пожалуйста, введите ваше имя пользователя и пароль" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Доступ к истории плейлиста" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "Неверное имя пользователя или пароль. Пожалуйста, попробуйте еще раз." -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "Статистика слушателей" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"E-mail не может быть отправлен. Проверьте настройки почтового сервера и " +"убедитесь, что он был настроен должным образом." -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Показать / скрыть столбцы" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "Данный email не найден." -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "С {с} до {до}" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Запись:" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "кбит" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Поток Master" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "гггг-мм-дд" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Потоковый режим" -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "чч: мм: сс" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Ничего не запланировано" -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "кГц" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Текущая программа:" -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Вс" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Текущий" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Пн" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "Вы используете последнюю версию" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Вт" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "Доступна новая версия:" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "Ср" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "Эта версия скоро устареет." -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Чт" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "Эта версия больше не поддерживается." -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Пт" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Пожалуйста, обновите до" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Сб" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Добавить в текущий плейлист" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Закрыть" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Добавить в текущем умный блок" -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Часов" +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Добавление 1 элемента" -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Минут" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "Добавление %s элементов" -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Сделано" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "Вы можете добавить треки только в умные блоки." -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Выбрать файлы" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "" +"Вы можете добавить только треки, умные блоки и веб-потоки к плейлистам." -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Статус" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Редактировать метаданные" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Добавить файлы" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Добавить в избранную программу" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Остановить загрузку" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Выбрать" -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Начать загрузку" +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Выбрать эту страницу" -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Добавить файлы" +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Отменить выбор страницы" -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "Загружено файлов: %d/%d " +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Отменить все выделения" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "н/о" +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Вы действительно хотите удалить выделенное?" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Перетащите сюда файлы." +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "Запланировано" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "Неверное расширение файла." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "Плейлист / Блок" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "Невереный размер файла." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Скорость передачи данных" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Частота дискретизации" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Ошибка инициализации." +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "Загрузка..." -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "Ошибка HTTP." +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Файлы" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Ошибка безопасности." +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Плейлисты" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Общая ошибка." +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Умные блоки" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "Ошибка записи/чтения." +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Веб-потоки" -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Неизвестный тип:" -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Вы действительно хотите удалить выбранный элемент?" + +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Загрузка продолжается ..." + +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Получение данных с сервера ..." -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "Soundcloud идентификатор для этого файла: " -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "Произошла ошибка при загрузке на Soundcloud." -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Ошибка: Файл слишком большой:" +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Код ошибки: " -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Сообщение об ошибке: " -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "Установить по умолчанию" +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "Вход должен быть положительным числом" -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "Создать" +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "Вход должен быть числом" -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "Редактировать историю" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "Вход должен быть в формате: гггг-мм-дд" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "Вход должен быть в формате: чч: мм: сс" -#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" msgstr "" +"Вы загружаете файлы. %sПереход на другой экран отменит процесс загрузки. " +"%sВы уверены, что хотите покинуть страницу?" -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "У вас нет разрешения отсоединить источник." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "Открыть медиа-построитель" -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "Нет источника, подключенного к этому входу." +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "пожалуйста, поставьте во время '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "У вас нет разрешения для переключения источника." +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "пожалуйста, поставьте во время в секундах '00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "Вы просматриваете старые версии %s" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "Ваш браузер не поддерживает воспроизведения данного типа файлов: " -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "Вы не можете добавить треки в динамические блоки." +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Динамический блок не подлежит предпросмотру" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 -#, php-format -msgid "%s not found" -msgstr "%s не найден" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Ограничить до: " -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "У вас нет разрешения на удаление выбранных %s(s)." +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Playlist сохранен" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Что-то пошло не так." +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "Вы можете добавить треки только в умный блок." +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." +msgstr "" +"Airtime не уверен в статусе этого файла. Это возможно, если файл находится " +"на удаленном недоступном диске или в папке, которая более не " +"\"просматривается\"." -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Плейлист без названия" +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "Слушатель считает на %s : %s" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Умный блок без названия" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "Напомнить мне через 1 неделю" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Неизвестный плейлист" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Не напоминать никогда" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "Вы не имеете доступа к этому ресурсу." +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Да, помочь Airtime" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "Вы не имеете доступа к этому ресурсу." +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "" +"Изображение должно быть в любом из следующих форматов: jpg, jpeg, png или gif" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." msgstr "" +"Статический умный блок сохранит критерии и немедленно создаст контент блока. " +"Это позволяет редактировать и просматривать его в библиотеке, прежде чем " +"добавить его в программу." -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Неверный запрос. параметр 'режим' не прошел." +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"Динамический умный блок сохранит только критерии. Содержания блока будете " +"сгенерировано после добавления его в программу. Вы не сможете просматривать " +"и редактировать содержимое в библиотеке." -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Неверный запрос. параметр 'режим' является недопустимым" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"Желаемая длина блока не будет достигнута, если Airtime не найдет уникальных " +"треков, соответствующих вашим критериям. Активируйте эту опцию, если хотите " +"неоднократного добавления треков в умный блок." -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Предварительный просмотр" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Умный блок перемешан" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Добавить в плейлист" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Умный блок создан и критерии сохранены" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Добавить в умный блок" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Умный блок сохранен" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Удалить" +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "Обработка ..." -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Дублировать плейлист" +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "выберите папку для хранения" + +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Выберите папку для просмотра" -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Редактировать" +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Вы уверены, что хотите изменить папку хранения? \n" +" Файлы из вашей библиотеки будут удалены!" -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Вы уверены, что хотите удалить просмотренную папку?" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Взгляд на Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "Этот путь в настоящий момент недоступен." -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Повторно загрузить на SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#, php-format +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Загрузить на SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Подключено к потоковому серверу" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "Нет доступных действий" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "Поток отключен" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "У вас нет разрешения на удаление выбранных элементов." +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Не удается подключиться к потоковому серверу" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Не удается удалить некоторые запланированные файлы." +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"Если Airtime находится за маршрутизатором или брандмауэром, вам может " +"потребоваться настроить переадресацию портов, и информация в этом поле будет " +"неверной. В этом случае вам нужно будет вручную обновлять это поле так, " +"чтобы оно показывало верный хост / порт / сборку, к которым должен " +"подключиться ваш диджей. Допустимый диапазон: от 1024 до 49151." -#: airtime_mvc/application/controllers/LibraryController.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 #, php-format -msgid "Copy of %s" -msgstr "Копия %s" +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "" +"Для более подробной информации, пожалуйста, прочитайте %sРуководство Airtime " +"%s" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Выбрать курсор" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"Отметьте эту опцию для активации метаданных OGG потока (метаданные потока " +"это название композиции, имя исполнителя и название шоу, которое " +"отображается в аудио-плейере). В VLC и mplayer наблюдается серьезная " +"ошибка при воспроизведении потоков OGG/VORBIS, в которых метаданные " +"включены: они будут отключаться от потока после каждой песни. Если вы " +"используете поток OGG и ваши слушатели не требуют поддержки этих " +"аудиоплееров, то не стесняйтесь включить эту опцию." -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Удалить курсор" +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Выберите эту опцию для автоматического выключения источника Master / Show " +"после отключения источника." -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "Программа не существует" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Выберите эту опцию для автоматического включения источника Master / Show " +"после соединения с источником." -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Установки пользователя обновлены." +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"Если ваш сервер Icecast ожидает имя пользователя \"источника\", это поле " +"можно оставить пустым." -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Настройка поддержки обновлена." +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"Если ваш клиент потокового режима не запросит имя пользователя, то это поле " +"должно быть 'источником'." -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Отзывы о поддержке" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"Если вы измените имя пользователя или пароль для активного потока, механизм " +"воспроизведения будет перезагружен, а в эфире в течение 5-10 секунд будет " +"звучать тишина. Изменение следующих полей НЕ вызовет перезагрузки: Метка " +"потока (Общие настройки), Переключение переходов затухания, Пользовательское " +"имя Master, Пароль Master (Настройки входящих потоков). Если Airtime ведет " +"запись, и если изменения вызовут перезапуск механизма воспроизведения, " +"запись будет остановлена." -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Настройки потока обновлены." +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "Путь должен быть указан" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Проблема с Liquidsoap ..." +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "Результатов не найдено" -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Сейчас в эфире" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"Действует та же схема безопасности программы: только пользователи, " +"назначенные для программы, могут подключиться." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Добавить медиа-файлы" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "" +"Укажите пользовательскую идентификацию, которая будет работать только для " +"этой программы." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Библиотека" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "Выпуска программы больше не существует!" -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Календарь" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "Система" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Установки пользователя" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." +msgstr "" -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Пользователи" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Программа" -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Папки медиа-файлов" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "Программа не заполнена" -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Потоки" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1мин" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Статистика слушателей" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5мин" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" -msgstr "История" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10мин" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "История воспроизведения" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15мин" -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "Шаблоны истории" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30мин" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Справка" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60мин" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "С чего начать" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Retreiving данных с сервера ..." -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "Руководство пользователя" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "Эта программа не имеет запланированного содержания." -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "О программе" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Услуги" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "января" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Время работы" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "февраля" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "ЦП" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "марта" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Память" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "апреля" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "мая" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Дисковое пространство" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "июня" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "Настройки Email / почтового сервера" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "июля" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "Настройки SoundCloud " +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "августа" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Повторить дні:" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "сентября" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Удалить" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "октября" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Добавить" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "ноября" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "URL подключенія:" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "декабря" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Настройки входного потока" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "янв" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "URL подключения к Master:" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "фев" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Заменить" +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "март" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "OK" +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "апр" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "ВОССТАНОВИТЬ" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "июн" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "URL подключения к программе:" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "июл" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Обязательно)" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "авг" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Регистрация Airtime " +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "сент" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "окт" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "нояб" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(Только для проверки, не будет опубликовано)" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "дек" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Примечание: все, что превысит размеры 600x600, будет изменено." +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "сегодня" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Покажите мне, что я посылаю " +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "день" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Постановления и условия" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "неделя" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Сменить пароль" +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "месяц" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Выбрать" +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 +msgid "" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "" +"Программы, превышающие время, запланированное в расписании, будут обрезаны " +"следующей программой." -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Установка" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Отменить текущую программу?" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Текущая папка импорта:" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Остановить запись текущей программы?" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "ОК" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Удалить просмотренную папку" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Содержание программы" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "Вы не просматриваете никакие папки медиа-файлов." +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Удалить все содержание?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Поток " +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Удалить выбранный элемент(ы)?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Дополнительные параметры" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "Конец" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "Следующая информация будет отображаться для слушателей в их медиа-плейере:" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Продолжительность" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(Веб-сайт вашей радиостанции)" +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Программа не заполнена" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "URL потока: " +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Запись с линейного входа" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Фильтровать историю" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Предпросмотр треков" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Найти программы" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Нельзя планировать вне рамок программы." -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Фильтр по программе:" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Перемещение 1 элемента" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 #, php-format -msgid "%s's Settings" -msgstr "%s's Настройки" +msgid "Moving %s Items" +msgstr "Перемещение %s элементов" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" +msgstr "Редактор затухания" + +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" msgstr "" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(В целях продвижения вашей станции, опция 'Отправить отзывы о поддержке' должна быть включена)." - -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Политика конфиденциальности Sourcefabric " - -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "Выберите программу" - -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "Найти" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Выберите дни:" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Выделить все" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Параметры умного блока" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Снять выделения" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "или" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Удалить лишние треки" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "и" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Удалить выбранные запланированные элементы" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr " к " +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Перейти к текущей проигрываемой дорожке" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "Файлы отвечают критериям" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Отмена текущей программы" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "файл отвечает критериям" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "Открыть библиотеку, чтобы добавить или удалить содержимое" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "Создание шаблона по файлам" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "используется" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "Создание шаблона лога" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Диск" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "Добавить еще элементы" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Заглянуть" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "Добавить поле" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Открыть" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "Установить шаблон по умолчанию" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "Шаблоны лога" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "Показать календарь" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "Нет шаблона лога" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "Показать программу" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Импорт медиа-файлов" + +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "Новый" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "Новый плейлист" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "Редактировать программу" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "Новый умный блок" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Планировать программу" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "Новый веб-поток" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "Просмотр / редактирование описания" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "Администраторы могут:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "URL потока:" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Настроить предпочтения" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Длина по умолчанию:" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "Нет веб-потока" +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Настройки потоковой передачи " +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "Системный статус" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Общие настройки" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Доступ к истории плейлиста" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "дБ" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "Статистика слушателей" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Настройки выходного потока" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Показать / скрыть столбцы" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "Импорт файлов в процессе ..." +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "С {с} до {до}" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Дополнительные параметры поиска" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "кбит" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "предыдущая" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "гггг-мм-дд" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "играть" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "чч: мм: сс" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "пауза" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "кГц" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "следующая" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "Вс" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "стоп" +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Пн" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "отключить звук" +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Вт" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "включить звук" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "Ср" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "максимальная громкость" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Чт" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Требуется обновление" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Пт" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "Для проигрывания медиа-файла необходимо либо обновить браузер до последней версии или обновить %sфлэш-плагина%s." +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "Сб" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Длина:" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Часов" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Частота дискретизации:" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Минут" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "ISRC номер:" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Сделано" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Выбрать файлы" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Веб-поток" +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Динамический умный блок" +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Добавить файлы" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Статический умный блок" +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Остановить загрузку" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Аудио-дорожка" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Начать загрузку" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Содержание плейлиста: " +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Добавить файлы" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Содержание статического умного блока: " +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 +#, php-format +msgid "Uploaded %d/%d files" +msgstr "Загружено файлов: %d/%d " -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Критерии динамического умного блока: " +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "н/о" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Ограничение до " +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Перетащите сюда файлы." -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Слушатель граф с течением времени" +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "Неверное расширение файла." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 -#, php-format -msgid "Welcome to %s!" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "Невереный размер файла." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 -#, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Начните с добавления файлов в библиотеку с помощью кнопки \"Добавить медиа-файлы\". Вы также можете перетащить файлы в это окно." +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Ошибка инициализации." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Создайте программу в разделе 'Календарь' и кликните \"+ Show '. Это может быть разовая или повторяющаяся программа. Только администраторы и менеджеры могут добавить программу." +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "Ошибка HTTP." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Добавить медиа-файлы программы в Календаре, кликнув левой кнопкой и выбрав \"Добавить/Удалить контент\" в выпадающем меню" +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Ошибка безопасности." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Выберите медиа-файлы на левой панели и перетащите их в вашу программу на правой панели." +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Общая ошибка." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "Вы готовы!" +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "Ошибка записи/чтения." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "Для более подробной справки читать %sруководство пользователя%s ." - -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Поделиться" - -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Выбор потока:" +msgid "File: %s" +msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." +msgid "%d files queued" msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 -#, php-format -msgid "%1$s %2$s is distributed under the %3$s" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" msgstr "" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "Новый пароль" +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Пожалуйста, введите и подтвердите новый пароль ниже." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Ошибка: Файл слишком большой:" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Пожалуйста, введите email своей учетной записи. Вы получите ссылку, чтобы создать новый пароль." +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "E-mail отправлен" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "Создать" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "Сообщение было отправлено" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "Редактировать историю" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Вернуться на страницу входа" +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Предыдущая:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Следующая:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Исходные потоки" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Источник Master " - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Источник Show" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Предварительный просмотр" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Из календаря" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Выбрать курсор" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "В эфире" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Удалить курсор" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Слушать" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "Программа не существует" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Время станции" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Установки пользователя обновлены." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "лизензия истекает через" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Настройка поддержки обновлена." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Настройки потока обновлены." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "Моя учетная запись" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "Путь должен быть указан" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Управление пользователями" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Проблема с Liquidsoap ..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "Новый пользователь" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Страница не найдена" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "id" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Ошибка приложения" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "Имя" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s не найден" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Фамилия" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Что-то пошло не так." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "Тип пользователя" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Добавить в плейлист" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Добавить в умный блок" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Загрузить" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "Данные по прграмме" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Дублировать плейлист" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Приложение по умолчанию Zend Framework " +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "Soundcloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Страница не найдена!" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "Нет доступных действий" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "Похоже, что страница, которую вы ищете, не существует!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "У вас нет разрешения на удаление выбранных элементов." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Развернуть статический блок" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "Не удается удалить некоторые запланированные файлы." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Развернуть динамический блок" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Копия %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Очистить умный блок" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Веб-поток без названия" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Очистить плейлист" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Веб-поток сохранен." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "Очистить плейлист" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Недопустимые значения формы." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "Очистить" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "У вас нет разрешения отсоединить источник." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Перемешать плейлист" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "Нет источника, подключенного к этому входу." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Сохранить плейлист" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "У вас нет разрешения для переключения источника." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Перекрестное затухание композиций плейлиста" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "Пользователь успешно добавлен!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Усиление: " +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "Пользователь успешно обновлен!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Затухание: " +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "Изменения в настройках сохранены!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "Нет открытых плейлистов" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Ретрансляция программы %s от %s в %s" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "Очистить умный блок" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." +msgstr "" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(сс)" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "Вы не имеете доступа к этому ресурсу." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "Нет открытых умных блоков" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "Вы не имеете доступа к этому ресурсу." -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "Показать трек" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "Файл не существует в Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Начало звучания: " +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "Файл не существует в Airtime" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(чч: мм: сс)" +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "Файл не существует в Airtime." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Окончание звучания: " +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Неверный запрос. параметр 'режим' не прошел." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Исходная длина:" +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Неверный запрос. параметр 'режим' является недопустимым" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Добавить эту программу" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "Вы просматриваете старые версии %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Обновить программу" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "Вы не можете добавить треки в динамические блоки." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "Что" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "У вас нет разрешения на удаление выбранных %s(s)." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "Когда" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "Вы можете добавить треки только в умный блок." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Потоковый ввод" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Плейлист без названия" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Запись и Ретрансляция" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Умный блок без названия" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Кто" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Неизвестный плейлист" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Стиль" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "Время начала и окончания звучания трека не заполнены." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Ретрансляция %s из %s" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "Время окончания звучания не может превышать длину трека." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Выберите страну" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "Время начала звучания не может быть больше времени окончания. " + +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Время окончания звучания не может быть меньше времени начала." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3652,43 +4331,26 @@ msgstr "Неверный вебпоток - это загрузка файла." msgid "Unrecognized stream type: %s" msgstr "Неизвестный тип потока: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s уже просматривают." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s содержит вложенную просматриваемую папку: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s вложено в существующую просматриваемую папку: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s не является допустимой папкой." - -#: airtime_mvc/application/models/MusicDir.php:232 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s уже установлена в качестве текущей папки хранения или в списке просматриваемых папок" - -#: airtime_mvc/application/models/MusicDir.php:386 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s уже установлен в качестве текущей папки хранения или в списке просматриваемых папок." +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Привет %s, \n" +"\n" +" Нажмите ссылку для сброса пароля: " -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s не существует в просматриваемом списке" +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Сброс пароля Airtime" + +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Выберите страну" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3696,13 +4358,17 @@ msgstr "" #: airtime_mvc/application/models/Scheduler.php:119 msgid "The schedule you're viewing is out of date! (sched mismatch)" -msgstr "Расписание, которое вы просматриваете, устарело! (несоответствие расписания)" +msgstr "" +"Расписание, которое вы просматриваете, устарело! (несоответствие расписания)" #: airtime_mvc/application/models/Scheduler.php:124 msgid "The schedule you're viewing is out of date! (instance mismatch)" -msgstr "Расписание, которое вы просматриваете, устарело! (несоответствие выпусков)" +msgstr "" +"Расписание, которое вы просматриваете, устарело! (несоответствие выпусков)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3733,61 +4399,62 @@ msgid "" "broadcasted" msgstr "" -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." -msgstr "" - +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "Выбранный файл не существует!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "Время начала и окончания звучания трека не заполнены." - -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Время начала звучания не может быть больше времени окончания. " +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s уже просматривают." -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Время окончания звучания не может превышать длину трека." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s содержит вложенную просматриваемую папку: %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Время окончания звучания не может быть меньше времени начала." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s вложено в существующую просматриваемую папку: %s" -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." -msgstr "Не удалось создать папку organize." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s не является допустимой папкой." -#: airtime_mvc/application/models/StoredFile.php:1017 +#: airtime_mvc/application/models/MusicDir.php:232 #, php-format msgid "" -"The file was not uploaded, there is %s MB of disk space left and the file " -"you are uploading has a size of %s MB." -msgstr "Файл не был загружен, размер свободного дискового пространства %s МБ, а размер загружаемого файла %s МБ." +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s уже установлена в качестве текущей папки хранения или в списке " +"просматриваемых папок" -#: airtime_mvc/application/models/StoredFile.php:1026 +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format msgid "" -"This file appears to be corrupted and will not be added to media library." -msgstr "Этот файл по-видимому поврежден и не будет добавлен к медиа-библиотеке." +"%s is already set as the current storage dir or in the watched folders list." +msgstr "" +"%s уже установлен в качестве текущей папки хранения или в списке " +"просматриваемых папок." -#: airtime_mvc/application/models/StoredFile.php:1065 -msgid "" -"The file was not uploaded, this error can occur if the computer hard drive " -"does not have enough disk space or the stor directory does not have correct " -"write permissions." -msgstr "Загрузка не удалась. Эта ошибка возможна, если на жестком диске компьютера не хватает места или папка не имеет необходимых разрешений записи." +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s не существует в просматриваемом списке" + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Ретрансляция %s из %s" #: airtime_mvc/application/models/Show.php:180 msgid "Shows can have a max length of 24 hours." @@ -3797,116 +4464,152 @@ msgstr "Максимальная продолжительность програ msgid "" "Cannot schedule overlapping shows.\n" "Note: Resizing a repeating show affects all of its repeats." -msgstr "Нельзя планировать пересекающиеся программы.\nПримечание: изменение размера повторяющейся программы влияет на все ее повторы." +msgstr "" +"Нельзя планировать пересекающиеся программы.\n" +"Примечание: изменение размера повторяющейся программы влияет на все ее " +"повторы." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/models/StoredFile.php:1017 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Привет %s, \n\n Нажмите ссылку для сброса пароля: " - -#: airtime_mvc/application/models/Auth.php:36 -#, php-format -msgid "%s Password Reset" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." msgstr "" +"Файл не был загружен, размер свободного дискового пространства %s МБ, а " +"размер загружаемого файла %s МБ." -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "Записанный файл не найден" +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "невозможно изменить размеры программы прошлого периода" -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "Просмотр метаданных записанного файла" +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "Нельзя пересекать программы" -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Показать содержимое" +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." +msgstr "Не удалось создать папку organize." -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Удалить все содержимое" +#: airtime_mvc/application/models/StoredFile.php:1026 +msgid "" +"This file appears to be corrupted and will not be added to media library." +msgstr "" +"Этот файл по-видимому поврежден и не будет добавлен к медиа-библиотеке." -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Отмена текущей программы" +#: airtime_mvc/application/models/StoredFile.php:1065 +msgid "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." +msgstr "" +"Загрузка не удалась. Эта ошибка возможна, если на жестком диске компьютера " +"не хватает места или папка не имеет необходимых разрешений записи." -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" -msgstr "Редактировать" +#: airtime_mvc/application/layouts/scripts/login.phtml:24 +#, php-format +msgid "" +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Редактировать программу" +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#, php-format +msgid "Promote my station on %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Удалить этот выпуск" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Удалить этот выпуск и все последующие" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "Нет доступа" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Невозможно перетащить повторяющиеся программы" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Невозможно переместить прошлую программу" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Невозможно переместить программу в прошедший период" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Невозможно переместить записанную программу менее, чем за 1 час до ее ретрансляции." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "Программа была удалена, потому что записанная программа не существует!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "До ретрансляции необходимо ожидать 1 час." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" -msgstr "Трек" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Проиграно" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "Год %s должен быть в пределах 1753 - 9999" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s - %s - %s не является допустимой датой" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s : %s : %s не является допустимым временем" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Пожалуйста, выбор опции" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "Нет записей" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/locale/sr_RS/LC_MESSAGES/airtime.po b/airtime_mvc/locale/sr_RS/LC_MESSAGES/airtime.po index 3d9146e013..58cfada758 100644 --- a/airtime_mvc/locale/sr_RS/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/sr_RS/LC_MESSAGES/airtime.po @@ -1,3607 +1,4268 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: # Sourcefabric , 2013 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: Serbian (Serbia) (http://www.transifex.com/projects/p/airtime/language/sr_RS/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-04-02 12:13+0000\n" +"Last-Translator: andrey.podshivalov\n" +"Language-Team: Serbian (Serbia) (http://www.transifex.com/projects/p/airtime/" +"language/sr_RS/)\n" +"Language: sr_RS\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: sr_RS\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Аудио Уређај" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Молимо, одабери опцију" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Одјава" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "Нема Записа" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "Покрени" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "Година %s мора да буде у распону између 1753 - 9999" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "Стани" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s није исправан датум" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Cue In" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s:%s:%s није исправан датум" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "Подеси Cue In" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Тренутно Извођена" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Cue Out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Додај Медије" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "Подеси Cue Out" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Библиотека" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "Показивач" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Календар" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Одтамњење" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "Систем" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Затамњење" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Подешавање" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Корисници" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Пренос уживо" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Медијска Мапа" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Омогућено:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Преноси" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Пренос Типа:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Повратне Информације" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Брзина у Битовима:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Стање" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Тип Услуге:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Слушатељска Статистика" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Канали:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "Историја" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Историја Пуштених Песама" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "Историјски Шаблони" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Сервер" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Помоћ" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Унесени су неважећи знакови" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Почетак Коришћења" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Порт" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "Упутство" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Допуштени су само бројеви." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "О пројекту" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Лозинка" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "Снимљена датотека не постоји" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Жанр" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "Метаподаци снимљеног фајла" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Приказ на Soundcloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Назив" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Пренос на Soundcloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Опис" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Поново-да пренесе на Soundcloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Тачка Монтирања" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Програмски Садржај" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Корисничко име" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Додај / Уклони Садржај" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Админ Корисник" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Уклони Све Садржаје" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Aдминска Лозинка" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Прекид Емисија" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Добијање информација са сервера..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "Уреди у том случају" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Сервер не може да буде празан." +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Уређивање" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Port не може да буде празан." +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Уређивање Програма" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Монтирање не може да буде празна са Icecast сервером." +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Обриши" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" -msgstr "Назив:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Обриши у том случају" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" -msgstr "Творац:" +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Обриши у том случају и сви пратећи" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "Aлбум:" +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "Дозвола одбијена" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "Песма:" +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "Не можеш повући и испустити понављајуће емисије" + +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "Не можеш преместити догађане емисије" + +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Не можеш преместити емисију у прошлости" + +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Не можеш заказати преклапајуће емисије" + +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "" +"Не можеш преместити снимљене емисије раније од 1 сат времена пре њених " +"реемитовања." + +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "Емисија је избрисана јер је снимљена емисија не постоји!" + +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "Мораш причекати 1 сат за ре-емитовање." + +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Назив" + +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Творац" + +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Албум" + +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Дужина" + +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Жанр" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Расположење" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Налепница" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Композитор" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Ауторско право" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Година" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "Песма" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Диригент" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Језик" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "Време Почетка" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "Време Завршетка" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Пуштена" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "Увоз датотеке је у току..." -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" -msgstr "Жанр:" +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Напредне Опције Претраживања" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" -msgstr "Година:" +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Статистика Слушалаца" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" -msgstr "Налепница:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "Нови" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" -msgstr "Композитор:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "Нови Списак Песама" -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" -msgstr "Диригент:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "Нови Паметни Блок" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Расположење:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "Нови Пренос" -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "Празан садржај списак песама" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" -msgstr "Ауторско право:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "Очисти" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "ISRC Број:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Случајни избор списак песама" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" -msgstr "Веб страница:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Мешање" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" -msgstr "Језик:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Сачувај списак песама" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 #: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 #: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 #: airtime_mvc/application/forms/SupportSettings.php:161 #: airtime_mvc/application/controllers/LocaleController.php:283 #: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 #: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 msgid "Save" msgstr "Сачувај" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Одустани" - -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Корисничко име:" - -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Лозинка:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Крижно утишавање списак песама" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Потврди Лозинку:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "Преглед / уред описа" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Име:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Опис" -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Презиме:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Одтамњење:" -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "Е-маил:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Затамњење:" -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Мобилни Телефон:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "Нема отворених списак песама" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Проширење Статичког Bloка" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Проширење Динамичког Блока" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "Типова Корисника:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Празан паметни блок" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Гост" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Празан списак песама" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "Диск-џокеј" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "Емисијски звучни таласни облик" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Водитељ Програма" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Cue In: " -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Администратор" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(hh:mm:ss.t)" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Име пријаве није јединствено." +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Cue Out: " -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Боја Позадине:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Оригинална Дужина:" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Боја Текста:" +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(ss.t)" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Датум Почетка:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "Празан садржај паметног блока" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Датум Завршетка:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "Нема отворени паметни блок" -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Програм:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sAirtime%s %s, отворени радио софтвер за заказивање и даљинско вођење " +"станице. %s" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "Све Моје Емисије:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "%sSourcefabric%s o.p.s. Airtime се дистрибуира под %sGNU GPL v.3%s" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "дани" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Добродошли код Airtime-а!" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "Дан мора да буде наведен" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "" +"Ево како можеш да почнеш да користиш емитовања за аутоматизацију своје " +"емисије:" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "Време мора да буде наведено" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Започни додавањем датотеке у библиотеку помоћу 'Додај Медије' мени тастером. " +"Можеш да повучеш и испустиш датотеке на овом прозору." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Мораш да чекаш најмање 1 сат за ре-емитовање" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Креирај једну емисију тако да идеш на 'Календар' на траци менија, а затим " +"кликом на '+ Емисија' иконицу. Оне могу да буде било једнократне или " +"понављајуће емисије. Само администратори и уредници могу да додају емисије." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Увозна Мапа:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Додај медије за емисију у календару, кликни са левом кликом на њега и " +"изабери опцију 'Додај / Уклони садржај'" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Мапе Под Надзором:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Одабери своје медије на левом окну и повуци их на своју емисију у десном " +"окну." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Не важећи Директоријум" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "И већ је завршено!" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Тражи Кориснике:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "За детаљну помоћ, прочитај %sупутство за коришћење%s." -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "Диск-џокеји:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Пренос уживо" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Пријава" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Подели" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Упиши знаке које видиш на слици у наставку." +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Преноси:" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Назив Станице" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "mute" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "Подразумевано Трајање Укрштено Стишавање (s):" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "укључи" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "унеси време у секундама 0{.0}" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "Све" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "Подразумевано Одтамњење (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "Подразумевано Затамњење (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Допусти даљинске Веб странице за приступ \"Распоред\" Инфо?%s (Омогући ово да би front-end widgets рад.)" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Онемогућено" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "URL Преноса:" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Омогућено" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Задата Дужина:" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Подразумевани Језик Интерфејса" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "Нема преноса" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "Станична Временска Зона" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "Назив:" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "Први Дан у Недељи" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "Творац:" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Недеља" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "Aлбум:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Понедељак" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "Песма:" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Уторак" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Дужина:" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Среда" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Узорак Стопа:" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Четвртак" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Брзина у Битовима:" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Петак" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Расположење:" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Субота" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "Жанр:" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "Link:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "Година:" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Тип Понављање:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "Налепница:" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "недељно" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "Композитор:" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "сваке 2 недеље" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "Диригент:" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "свака 3 недеље" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "Ауторско право:" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "свака 4 недеље" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "Isrc Број:" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "месечно" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "Веб страница:" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Одабери Дане:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" +msgstr "Језик:" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Нед" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "Стажа Датотека:" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Пон" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Назив:" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Уто" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Опис:" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Сре" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Пренос" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Чет" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Динамички Паметан Блок" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Пет" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Статички Паметан Блок" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Суб" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Звучни Запис" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "Понављање По:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Садржаји Списак Песама:" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "дан у месецу" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Статички Паметан Блок Садржаји:" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "дан у недељи" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Динамички Паметан Блок Критеријуми:" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "Нема Краја?" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Ограничено за" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "Датум завршетка мора да буде после датума почетка" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "Молимо, одабери којег дана" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "Одабери Емисијску Степену" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Потврди нову лозинку" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "Нема Програма" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "Лозинке које сте унели не подударају се." +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "Пронађи" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Набави нову лозинку" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "%s Подешавање" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Одабери критеријуме" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Одабери фолдер" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Албум" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Подеси" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Брзина у Битовима (Kbps)" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Актуална Увозна Мапа:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Додај" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Композитор" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Скенирај поново праћену директоријуму (Ово је корисно ако је мрежна веза " +"није синхронизована са Airtime-ом)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Диригент" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Уклони надзорану директоријуму" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Ауторско право" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "Не пратиш ниједне медијске мапе." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Творац" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Обавезно)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Кодирано је по" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Молимо, помози нашег рада.%sКликни у кутију 'Пошаљи повратне информације'." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "" +"Кликни на доњи оквир за промовисање своју станицу на %sSourcefabric.org%s." + +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(Како би се промовисао своју станицу, 'Пошаљи повратне информације' мора да " +"буде омогућена)." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Налепница" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(служи само за проверу, неће да буде објављена)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Језик" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Напомена: Све већа од 600к600 ће да се мењају." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Последња Измена" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Покажи ми шта шаљем" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Задњи Пут Одиграна" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Sourcefabric Правила о Приватности" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Дужина" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Пронађи Емисије" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Mime" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "По Емисији:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Расположење" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "Подешавања Е-маил / Маил Сервера" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Власник" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "SoundCloud Подешавање" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Replay Gain" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Одабери Дане:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Узорак Стопа (kHz)" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Уклони" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Назив" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Пренос" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Број Песма" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Додатне Опције" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Додата" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "" +"Следеће информације ће да буде приказане слушаоцима у медијском плејерима:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Веб страница" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(Твоја радијска станица веб странице)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Година" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "URL Преноса:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Одабери модификатор" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "Прикључни URL:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "садржи" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Ресетуј лозинку" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "не садржи" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Airtime Регистар" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "је" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "Молимо, помози нашег рада.%sКликни у кутију 'Да, помажем Airtime-у'." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "није" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Кликни на доњи оквир за оглашавање своју станицу на %sSourcefabric.org%s. У " +"циљу промовисања своју станицу, 'Пошаљи повратне информације' мора да буде " +"омогућена. Ови подаци ће се да прикупљају уз подршку поруци." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "почиње се са" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Услови и Одредбе" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "завршава се са" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Подешавање Улазног сигнала" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "је већи од" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "URL веза Мајсторског извора:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "је мањи од" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Надјачај" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "је у опсегу" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "ОК" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "сати" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "Ресетовање" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "минути" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "URL веза Програмског извора:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "елементи" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Smart Block Опције" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Подеси smart block типа:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "или" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Статички" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "и" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Динамички" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr "до" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Допусти Понављање Песама:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "датотеке задовољавају критеријуме" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Ограничено на" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "датотека задовољава критеријуме" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Генерисање листе песама и чување садржаја критеријуме" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Поновљени Дани:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Генериши" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Филтрирај Историје" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Садржај случајни избор списак песама" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Затвори" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Мешање" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Додај ову емисију" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "Ограничење не може да буде празан или мањи од 0" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Ажурирање емисије" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "Ограничење не може да буде више од 24 сати" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "Шта" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "Вредност мора да буде цео број" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "Када" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "500 је макс ставу граничну вредност могуће је да подесиш" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Улаз Уживног Преноса" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "Мораш да изабереш Критерију и Модификацију" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Снимање & Реемитовање" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "'Дужина' требала да буде у '00:00:00' облику" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Ко" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "Вредност мора да буде у облику временске ознаке (нпр. 0000-00-00 или 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Стил" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "Вредност мора да буде нумеричка" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Почетак" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "Вредност би требала да буде мања од 2147483648" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Преносна Подешавања" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "Вредност мора да буде мања од %s знакова" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Глобална Подешавања" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "Вредност не може да буде празна" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "dB" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Аутоматско Искључивање" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Излазне Преносне Подешавање" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Аутоматско Укључивање" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Управљање Медијске Мапе" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Прелазни Fade Прекидач (s)" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Zend Framework Задата Апликација" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "унеси време у секундама 00{.000000}" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Страница није пронађена!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Мајсторско Кор. Име" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "Изгледа страница коју си тражио не постоји!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Мајсторска Лозинка" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "Шаблони Списак Пријаве" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "URL веза мајсторског извора" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "Нема Листу Шаблона" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "URL веза Програмског извора" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "Постави Подразумевано" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Port Мајсторског Извора" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "Нови Листу шаблона" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Тачка Мајсторског Извора" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "Шаблони за Датотечни Сажеци" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Port Програмског Извора" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "Нема Шаблона за Датотечни Сажеци" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Тачка Програмског Извора" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "Нови Шаблон за Датотечни Сажеци" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "Не можеш да користиш исти порт као Мајстор ДЈ прикључак." +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "Стварање Шаблона за Датотечни Сажеци" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Port %s није доступан" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "Стварање Листу Шаблона" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Телефон:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Назив" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Веб Страница:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "Додај више елемената" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Држава:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "Додај Ново Поље" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "Град:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "Подеси Подразумевано Шаблону" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Опис:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "Нова лозинка" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Лого:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "Унеси и потврди своју нову лозинку у поља доле." -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Пошаљи повратне информације" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Пријава" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." msgstr "" +"Добродошли! Можете се пријавити користећи панел за пријаву. Довољно је само " +"унети корисничко име и лозинку: 'admin'." -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." msgstr "" +"Унеси своју е-маил адресу налога. Примићеш линк за нову лозинку путем е-" +"маила." -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "Мораш да пристанеш на правила о приватности." +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "Е-маил је послат" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Вредност је потребна и не може да буде празан" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "Е-маил је послат" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "Време Почетка" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Повратак на екран за пријаву" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "Време Завршетка" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "Списак Пријава" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "Нема Програма" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "Датотечни Извештај" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Снимање са Line In?" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "Програмски Извештај" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Поново да емитује?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "претходна" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "покрени" -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Користи Прилагођено потврду идентитета:" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "пауза" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Прилагођено Корисничко Име" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "следећа" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Прилагођена Лозинка" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "заустави" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "'Корисничко Име' поља не сме да остане празно." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "макс гласноћа" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "'Лозинка' поља не сме да остане празно." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Потребно Ажурирање" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "Е-маил" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 +#, php-format +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." +msgstr "" +"Медија је потребна за репродукцију, и мораш да ажурираш свој претраживач на " +"новију верзију, или да ажурираш свој %sFlash plugin%s." -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Опоравак лозинке" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Услуга" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Хардвер Аудио Излаз" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Радно Време" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Тип Излаза" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Icecast Vorbis Метаподаци" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Меморија" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Видљиви Подаци:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Airtime Верзија" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Аутор - Назив" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Дисковни Простор" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Емисија - Аутор - Назив" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Управљање Кориснике" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Назив станице - Назив емисије" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "Нови Корисник" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Off Air Метаподаци" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "id" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Укључи Replay Gain" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Корисничко име" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Replay Gain Модификатор" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "Име" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%value%' није ваљана е-маил адреса у основном облику local-part@hostname" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Презиме" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" -msgstr "'%value%' не одговара по облику датума '%format%'" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "Врста Корисника" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" -msgstr "'%value%' је мањи од %min% дугачко знакова" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Претходна:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" -msgstr "'%value%' је више од %max% дугачко знакова" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Следећа:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" -msgstr "'%value%' није између '%min%' и '%max%', укључиво" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Преносни Извори" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" -msgstr "Лозинке се не подударају" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Мајсторски Извор" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' се не уклапа у временском формату 'HH:mm'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Emisijski Izvor" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Датум/Време Почетка:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Заказана Представа" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Датум/Време Завршетка:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "ПРЕНОС" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Слушај" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Главно време" + +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Ваш налог истиче у" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Трајање:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "дани" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Временска Зона:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Куповина свој примерак медијског простора" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Понављање?" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "Мој Налог" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Не може да се створи емисију у прошлости" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Корисничко име:" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Не можеш да мењаш датум/време почетак емисије, ако је већ почела" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Лозинка:" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "Датум завршетка и време не може да буде у прошлости" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "Упиши знаке које видиш на слици у наставку." -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Не може да траје < 0m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Унесени су неважећи знакови" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Не може да траје 00h 00m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "Дан мора да буде наведен" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Не може да траје више од 24h" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "Време мора да буде наведено" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Не можеш заказати преклапајуће емисије" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "Мораш да чекаш најмање 1 сат за ре-емитовање" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Назив:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Користи Airtime потврду идентитета:" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Неименована Емисија" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Користи Прилагођено потврду идентитета:" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Прилагођено Корисничко Име" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Опис:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Прилагођена Лозинка" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" -msgstr "Аутоматски Пренос (Upload) снимљене емисије" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "'Корисничко Име' поља не сме да остане празно." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" -msgstr "Омогући SoundCloud Пренос" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "'Лозинка' поља не сме да остане празно." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" -msgstr "Аутоматски Обележени Фајлови \"може се преузети\" са SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Омогућено:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" -msgstr "SoundCloud Е-маил" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Пренос Типа:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" -msgstr "SoundCloud Лозинка" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Тип Услуге:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" -msgstr "SoundCloud Тагови: (засебне ознаке са размацима)" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Канали:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" -msgstr "Подразумевани Жанр:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" -msgstr "Задата Врста Песме:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Stereo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" -msgstr "Изворни" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Сервер" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "Remix" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Порт" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "Уживо" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Допуштени су само бројеви." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "Снимање" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Лозинка" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "Говорни" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "Podcast" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Тачка Монтирања" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "Огледни" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Админ Корисник" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "Радови су у току" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Aдминска Лозинка" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "Порекло" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Добијање информација са сервера..." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "Петља" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Сервер не може да буде празан." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "Звучни ефекат" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Port не може да буде празан." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "Један Метак Узорак" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Монтирање не може да буде празна са Icecast сервером." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "Остало" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Увозна Мапа:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Задата Дозвола:" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Мапе Под Надзором:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "Рад је у јавном домену" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Не важећи Директоријум" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "Сва права задржана" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Вредност је потребна и не може да буде празан" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Creative Commons Именовање" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'%value%' није ваљана е-маил адреса у основном облику local-part@hostname" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Creative Commons Именовање Некомерцијално" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" +msgstr "'%value%' не одговара по облику датума '%format%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Creative Commons Именовање Без Изведених Дела" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" +msgstr "'%value%' је мањи од %min% дугачко знакова" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Creative Commons Дели Под Истим Условима" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" +msgstr "'%value%' је више од %max% дугачко знакова" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Creative Commons Именовање Некомерцијално Без Изведених Дела" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" +msgstr "'%value%' није између '%min%' и '%max%', укључиво" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Creative Commons Именовање Некомерцијално Дијели Под Истим Условима" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" +msgstr "Лозинке се не подударају" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "Временска Зона Интерфејси:" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Снимање са Line In?" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "Омогућавање система е-поште (Поново постављање лозинке)" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Поново да емитује?" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Поново постави лозинку 'из' е-поште" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Боја Позадине:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Конфигурисање Маил сервера" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Боја Текста:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Захтева потврду идентитета" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "Е-маил" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Маил Сервер" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Опоравак лозинке" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "Е-маил Адреса" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Одустани" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "Молимо, провери да ли је исправан/на админ корисник/лозинка на страници Систем->Преноси." +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Потврди Лозинку:" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Неименовани Пренос" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Име:" -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Пренос је сачуван." +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Презиме:" -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Неважећи вредности обрасца." +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "Е-маил:" -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Молимо унеси своје корисничко име и лозинку" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Мобилни Телефон:" -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Погрешно корисничко име или лозинка. Молимо покушај поново." +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "Е-маил није могао да буде послат. Провери своје поставке сервера поште и провери се да је исправно подешен." +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "С обзиром е-маил није пронађен." +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "Временска Зона Интерфејси:" -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Реемитовање емисија %s од %s на %s" +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Име пријаве није јединствено." -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Преузимање" +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Хардвер Аудио Излаз" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "Корисник је успешно додат!" +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Тип Излаза" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "Корисник је успешно ажуриран!" +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Icecast Vorbis Метаподаци" -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Подешавања су успешно ажуриране!" +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Видљиви Подаци:" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Страница није пронађена" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Аутор - Назив" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Грешка апликације" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Емисија - Аутор - Назив" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Снимање:" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Назив станице - Назив емисије" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Мајсторски Пренос" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Off Air Метаподаци" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Пренос Уживо" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Укључи Replay Gain" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Ништа по распореду" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Replay Gain Модификатор" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Садашња Емисија:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" +msgstr "Аутоматски Пренос (Upload) снимљене емисије" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Тренутна" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" +msgstr "Омогући SoundCloud Пренос" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "Ти имаш инсталирану најновију верзију" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +msgstr "Аутоматски Обележени Фајлови \"може се преузети\" са SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "Нова верзија је доступна:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" +msgstr "SoundCloud Е-маил" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "Ова верзија ускоро ће да буде застарео." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" +msgstr "SoundCloud Лозинка" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "Ова верзија више није подржана." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" +msgstr "SoundCloud Тагови: (засебне ознаке са размацима)" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Молимо надогради на" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" +msgstr "Подразумевани Жанр:" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Додај у тренутни списак песама" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" +msgstr "Задата Врста Песме:" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Додај у тренутни smart block" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" +msgstr "Изворни" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Додавање 1 Ставке" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "Remix" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Додавање %s Ставке" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "Уживо" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "Можеш да додаш само песме код паметних блокова." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "Снимање" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "Можеш само да додаш песме, паметне блокова, и преносе код листе нумера." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "Говорни" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "Молимо одабери место показивача на временској црти." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "Podcast" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Уреди Метаподатке" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "Огледни" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Додај у одабраној емисији" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "Радови су у току" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Одабери" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "Порекло" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Одабери ову страницу" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "Петља" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Одзначи ову страницу" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "Звучни ефекат" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Одзначи све" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "Један Метак Узорак" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Јеси ли сигуран да желиш да избришеш одабрану (е) ставу (е)?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "Остало" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "Заказана" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Задата Дозвола:" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "Playlist / Block" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "Рад је у јавном домену" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Пренос Бита" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "Сва права задржана" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Узорак Стопа" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Creative Commons Именовање" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Учитавање..." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Creative Commons Именовање Некомерцијално" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "Све" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Creative Commons Именовање Без Изведених Дела" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Датотеке" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Creative Commons Дели Под Истим Условима" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Листе песама" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Creative Commons Именовање Некомерцијално Без Изведених Дела" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Smart Block-ови" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Creative Commons Именовање Некомерцијално Дијели Под Истим Условима" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Преноси" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Назив Станице" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Непознати тип:" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "Подразумевано Трајање Укрштено Стишавање (s):" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Јеси ли сигуран да желиш да обришеш изабрану ставку?" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "унеси време у секундама 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Пренос је у току..." +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "Подразумевано Одтамњење (s):" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Преузимање података са сервера..." +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "Подразумевано Затамњење (s):" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "SoundCloud id за ову датотеку је:" +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Допусти даљинске Веб странице за приступ \"Распоред\" Инфо?%s (Омогући ово " +"да би front-end widgets рад.)" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "Дошло је до грешке приликом преноса на soundcloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Онемогућено" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Шифра грешке:" +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Омогућено" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Порука о грешци:" +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Подразумевани Језик Интерфејса" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "Мора да буде позитиван број" +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "Станична Временска Зона" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "Мора да буде број" +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "Први Дан у Недељи" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "Мора да буде у облику: гггг-мм-дд" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Недеља" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "Мора да буде у облику: hh:mm:ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Понедељак" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "Тренутно је пренос датотеке. %sОдлазак на другом екрану ће да откаже процес слања. %s" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Уторак" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "Отвори Медијског Градитеља" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Среда" + +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Четвртак" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "молимо стави у време '00:00:00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Петак" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "молимо стави у време у секундама '00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Субота" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Твој претраживач не подржава ову врсту аудио фајл:" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Датум Почетка:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Динамички блок није доступан за преглед" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Датум Завршетка:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Ограничити се на:" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Телефон:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Списак песама је спремљена" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Веб Страница:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "Списак песама је измешан" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Држава:" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime је несигуран о статусу ове датотеке. То такође може да се деси када је датотека на удаљеном диску или је датотека у некој директоријуми, која се више није 'праћена односно надзирана'." +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "Град:" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "Број Слушалаца %s: %s" +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Опис:" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Подсети ме за 1 недељу" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Лого:" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Никад ме више не подсети" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Пошаљи повратне информације" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Да, помажем Airtime-у" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Промовисати своју станицу на Sourcefabric.org" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "Слика мора да буде jpg, jpeg, png, или gif" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "Избором ове опције, слажем се %sса правилима о приватности%s." -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "Статички паметни блокови спремају критеријуме и одмах генеришу блок садржаја. То ти омогућава да уредиш и видиш га у библиотеци пре него што га додаш на емисију." +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "Мораш да пристанеш на правила о приватности." -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "Динамички паметни блокови само критеријуме спремају. Блок садржаја ће се генерише након што га додамо на емисију. Нећеш моћи да прегледаш и уређиваш садржај у библиотеци." +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' се не уклапа у временском формату 'HH:mm'" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "Жељена дужина блока неће да буде постигнут јер Airtime не могу да пронађе довољно јединствене песме које одговарају твојим критеријумима. Омогући ову опцију ако желиш да допустиш да неке песме могу да се више пута понављају." +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Датум/Време Почетка:" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Smart block је измешан" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Датум/Време Завршетка:" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Smart block је генерисан и критеријуме су спремне" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Трајање:" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Smart block је сачуван" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Временска Зона:" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Обрада..." +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Понављање?" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Одабери Мапу за Складиштење" +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Не може да се створи емисију у прошлости" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Одабери Мапу за Праћење" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "Не можеш да мењаш датум/време почетак емисије, ако је већ почела" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Јеси ли сигуран да желиш да промениш мапу за складиштење?\nТо ће да уклони датотеке из твоје библиотеке!" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "Датум завршетка и време не може да буде у прошлости" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Управљање Медијске Мапе" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Не може да траје < 0m" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Јеси ли сигуран да желиш да уклониш надзорску мапу?" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Не може да траје 00h 00m" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "Овај пут није тренутно доступан." +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Не може да траје више од 24h" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "Неке врсте емитовање захтевају додатну конфигурацију. Детаљи око омогућавања %sAAC+ Подршке%s или %sOpus Подршке%s су овде доступни." +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Неименована Емисија" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Прикључен је на серверу" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Тражи Кориснике:" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "Пренос је онемогућен" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "Диск-џокеји:" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Не може да се повеже на серверу" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Потврди нову лозинку" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Ако је иза Airtime-а рутер или заштитни зид, можда мораш да конфигуришеш поље порта прослеђивање и ово информационо поље ће да буде нетачан. У том случају мораћеш ручно да ажурираш ово поље, да би показао тачноhost/port/mount да се могу да повеже твоји диск-џокеји. Допуштени опсег је између 1024 и 49151." +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "Лозинке које сте унели не подударају се." -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "За више детаља, прочитај %sУпутству за употребу%s" +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Набави нову лозинку" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Провери ову опцију како би се омогућило метаподатака за OGG потоке." +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "Типова Корисника:" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Провери ову кућицу за аутоматско искључење Мајстор/Емисија извора, након престанка рада извора." +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Гост" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Провери ову кућицу за аутоматско пребацивање на Мајстор/Емисија извора, након што је спојен извор." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "Диск-џокеј" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Ако твој Icecast сервер очекује корисничко име из 'извора', ово поље може да остане празно." +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Водитељ Програма" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "Ако твој 'live streaming' клијент не пита за корисничко име, ово поље требало да буде 'извор'." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Администратор" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "Опрезно приликом ажурирању података!" +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "ISRC Број:" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "Ово је админ корисничко име и лозинка за Icecast/SHOUTcast да би добио слушатељску статистику." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Програм:" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "Упозорење: Не можеш променити садржај поља, док се садашња емисија не завршава" +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "Све Моје Емисије:" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "Нема пронађених резултата" +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "Link:" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "То следи исти образац безбедности за емисије: само додељени корисници могу да се повеже на емисију." +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Тип Понављање:" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Одреди прилагођене аутентификације које ће да се уважи само за ову емисију." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "недељно" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "Емисија у овом случају више не постоји!" +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "сваке 2 недеље" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "Упозорење: Емисије не може поново да се повеже" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "свака 3 недеље" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "Повезивањем своје понављајуће емисије свака заказана медијска става у свакој понављајућим емисијама добиће исти распоред такође и у другим понављајућим емисијама" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "свака 4 недеље" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "Временска зона је постављена по станичну зону према задатим. Емисије у календару ће се да прикаже по твојим локалном времену која је дефинисана у интерфејса временске зоне у твојим корисничким поставци." +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "месечно" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Емисија" +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Одабери Дане:" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "Емисија је празна" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "Нед" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1m" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Пон" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5m" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Уто" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10m" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "Сре" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15m" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Чет" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30m" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Пет" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60m" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "Суб" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Добијање података са сервера..." +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "Понављање По:" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "Ова емисија нема заказаног садржаја." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "дан у месецу" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "Ова емисија није у потпуности испуњена са садржајем." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "дан у недељи" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "Јануар" +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "Нема Краја?" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "Фебруар" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "Датум завршетка мора да буде после датума почетка" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "Март" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "Молимо, одабери којег дана" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "Април" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "Омогућавање система е-поште (Поново постављање лозинке)" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "Мај" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Поново постави лозинку 'из' е-поште" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "Јун" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Конфигурисање Маил сервера" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "Јул" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Захтева потврду идентитета" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "Август" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Маил Сервер" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "Септембар" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "Е-маил Адреса" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "Октобар" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Одабери критеријуме" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "Новембар" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Брзина у Битовима (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "Децембар" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Јан" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Феб" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Cue Out" + +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Кодирано је по" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Мар" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Последња Измена" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Апр" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Задњи Пут Одиграна" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Јун" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Mime" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Јул" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Власник" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Авг" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Replay Gain" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Сеп" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Узорак Стопа (kHz)" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Окт" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Број Песма" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Нов" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Додата" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Дец" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Веб страница" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "данас" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Одабери модификатор" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "дан" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "садржи" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "недеља" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "не садржи" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "месец" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "је" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Емисија дуже од предвиђеног времена ће да буде одсечен." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "није" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Откажи Тренутног Програма?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "почиње се са" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Заустављање снимање емисије?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "завршава се са" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "Ок" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "је већи од" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Садржај Емисије" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "је мањи од" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Уклониш све садржаје?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "је у опсегу" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Обришеш ли одабрану (е) ставу (е)?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "сати" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Почетак" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "минути" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "Завршетак" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "елементи" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Трајање" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Подеси smart block типа:" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Празна Емисија" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Статички" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Снимање са Line In" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Динамички" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Преглед песма" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Допусти Понављање Песама:" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Не може да се заказује ван емисије." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Ограничено на" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Премештање 1 Ставка" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Генерисање листе песама и чување садржаја критеријуме" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Премештање %s Ставке" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Генериши" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "Уређивач за (Од-/За-)тамњивање" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Садржај случајни избор списак песама" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "Cue Уређивач" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "Ограничење не може да буде празан или мањи од 0" + +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "Ограничење не може да буде више од 24 сати" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "Таласни облик функције су доступне у споредну Web Audio API прегледачу" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "Вредност мора да буде цео број" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Одабери све" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "500 је макс ставу граничну вредност могуће је да подесиш" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Не одабери ништа" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "Мораш да изабереш Критерију и Модификацију" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Уклони пребукиране песме" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "'Дужина' требала да буде у '00:00:00' облику" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Уклони одабране заказане ставке" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"Вредност мора да буде у облику временске ознаке (нпр. 0000-00-00 или " +"0000-00-00 00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Скочи на тренутну свирану песму" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "Вредност мора да буде нумеричка" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Поништи тренутну емисију" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "Вредност би требала да буде мања од 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Отвори библиотеку за додавање или уклањање садржаја" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "Вредност мора да буде мања од %s знакова" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Додај / Уклони Садржај" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "Вредност не може да буде празна" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "у употреби" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Аутоматско Искључивање" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Диск" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Аутоматско Укључивање" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Погледај унутра" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Прелазни Fade Прекидач (s)" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Отвори" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "унеси време у секундама 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "Гости могу да уради следеће:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Мајсторско Кор. Име" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "Преглед распореда" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Мајсторска Лозинка" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "Преглед садржај емисије" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "URL веза мајсторског извора" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "Диск-џокеји могу да уради следеће:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "URL веза Програмског извора" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Управљање додељен садржај емисије" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Port Мајсторског Извора" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Увоз медијске фајлове" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Тачка Мајсторског Извора" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Изради листе песама, паметне блокове, и преносе" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Port Програмског Извора" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Управљање своје библиотечког садржаја" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Тачка Програмског Извора" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "Менаџер програма могу да уради следеће:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "Не можеш да користиш исти порт као Мајстор ДЈ прикључак." -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "Приказ и управљање садржај емисије" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Port %s није доступан" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Распоредне емисије" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" +"Airtime власник ауторских права;Sourcefabric o.p.s. Сва права задржана." +"%sОдржавана и дистрибуира се под GNU GPL v.3 %sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "Управљање све садржаје библиотека" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Одјава" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Администратори могу да уради следеће:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "Покрени" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Управљање подешавања" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "Стани" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "Управљање кориснике" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "Подеси Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "Управљање надзираних датотеке" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "Подеси Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "Преглед стања система" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "Показивач" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Приступ за историју пуштених песама" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Одтамњење" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "Погледај статистику слушаоце" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Затамњење" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Покажи/сакриј колоне" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Аудио Уређај" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "Од {from} до {to}" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Молимо унеси своје корисничко име и лозинку" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "Погрешно корисничко име или лозинка. Молимо покушај поново." -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "гггг-мм-дд" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"Е-маил није могао да буде послат. Провери своје поставке сервера поште и " +"провери се да је исправно подешен." -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "С обзиром е-маил није пронађен." -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Снимање:" -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Не" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Мајсторски Пренос" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "По" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Пренос Уживо" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Ут" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Ништа по распореду" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "Ср" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Садашња Емисија:" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Че" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Тренутна" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Пе" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "Ти имаш инсталирану најновију верзију" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Су" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "Нова верзија је доступна:" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Затвори" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "Ова верзија ускоро ће да буде застарео." -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Сат" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "Ова верзија више није подржана." -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Минута" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Молимо надогради на" -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Готово" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Додај у тренутни списак песама" -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Изабери датотеке" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Додај у тренутни smart block" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Додај датотеке и кликни на 'Покрени Upload' дугме." +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Додавање 1 Ставке" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Стање" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "Додавање %s Ставке" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Додај Датотеке" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "Можеш да додаш само песме код паметних блокова." -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Заустави Upload" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "" +"Можеш само да додаш песме, паметне блокова, и преносе код листе нумера." -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Покрени upload" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "Молимо одабери место показивача на временској црти." -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Додај датотеке" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Уреди Метаподатке" -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "Послата %d/%d датотека" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Додај у одабраној емисији" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "N/A" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Одабери" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Повуци датотеке овде." +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Одабери ову страницу" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "Грешка (ознаку типа датотеке)." +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Одзначи ову страницу" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "Грешка величине датотеке." +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Одзначи све" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "Грешка број датотеке." +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Јеси ли сигуран да желиш да избришеш одабрану (е) ставу (е)?" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Init грешка." +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "Заказана" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "HTTP Грешка." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "Playlist / Block" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Безбедносна грешка." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Пренос Бита" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Генеричка грешка." +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Узорак Стопа" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "IO грешка." +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "Учитавање..." -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "Фајл: %s" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Датотеке" -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d датотека на чекању" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Листе песама" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "Датотека: %f, величина: %s, макс величина датотеке: %m" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Smart Block-ови" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "Преносни URL може да буде у криву или не постоји" +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Преноси" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Грешка: Датотека је превелика:" +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Непознати тип:" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Грешка: Неважећи ознак типа датотека:" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Јеси ли сигуран да желиш да обришеш изабрану ставку?" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "Постави Подразумевано" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Пренос је у току..." -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "Стварање Уноса" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Преузимање података са сервера..." -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "Уреди Историјат Уписа" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "SoundCloud id за ову датотеку је:" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "%s ред%s је копиран у међумеморију" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "Дошло је до грешке приликом преноса на soundcloud." -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%sИспис поглед%sМолимо, користи прегледача штампање функцију за штампање ову табелу. Кад завршиш, притисни Escape." +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Шифра грешке:" -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "Немаш допуштење да искључиш извор." +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Порука о грешци:" -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "Нема спојеног извора на овај улаз." +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "Мора да буде позитиван број" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "Немаш дозволу за промену извора." +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "Мора да буде број" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "Гледаш старију верзију %s" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "Мора да буде у облику: гггг-мм-дд" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "Не можеш да додаш песме за динамичне блокове." +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "Мора да буде у облику: hh:mm:ss.t" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "%s not found" -msgstr "%s није пронађен" +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"Тренутно је пренос датотеке. %sОдлазак на другом екрану ће да откаже процес " +"слања. %s" -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "Немаш допуштење за брисање одабраног (е) %s." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "Отвори Медијског Градитеља" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Нешто је пошло по криву." +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "молимо стави у време '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "Можеш само песме да додаш за паметног блока." +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "молимо стави у време у секундама '00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Неименовани Списак Песама" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "Твој претраживач не подржава ову врсту аудио фајл:" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Неименовани Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Динамички блок није доступан за преглед" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Непознати Списак Песама" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Ограничити се на:" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "Не смеш да приступиш овог извора." +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Списак песама је спремљена" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "Не смеш да приступите овог извора." +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "Списак песама је измешан" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." msgstr "" +"Airtime је несигуран о статусу ове датотеке. То такође може да се деси када " +"је датотека на удаљеном диску или је датотека у некој директоријуми, која се " +"више није 'праћена односно надзирана'." -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Неисправан захтев." +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "Број Слушалаца %s: %s" -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Неисправан захтев" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "Подсети ме за 1 недељу" -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Преглед" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Никад ме више не подсети" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Додај на Списак Песама" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Да, помажем Airtime-у" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Додај у Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "Слика мора да буде jpg, jpeg, png, или gif" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Обриши" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." +msgstr "" +"Статички паметни блокови спремају критеријуме и одмах генеришу блок " +"садржаја. То ти омогућава да уредиш и видиш га у библиотеци пре него што га " +"додаш на емисију." -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Удвостручавање" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"Динамички паметни блокови само критеријуме спремају. Блок садржаја ће се " +"генерише након што га додамо на емисију. Нећеш моћи да прегледаш и уређиваш " +"садржај у библиотеци." -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Уређивање" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"Жељена дужина блока неће да буде постигнут јер Airtime не могу да пронађе " +"довољно јединствене песме које одговарају твојим критеријумима. Омогући ову " +"опцију ако желиш да допустиш да неке песме могу да се више пута понављају." -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Smart block је измешан" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Приказ на Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Smart block је генерисан и критеријуме су спремне" -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Поново-да пренесе на Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Smart block је сачуван" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Пренос на Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "Обрада..." -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "Нема доступних акција" +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Одабери Мапу за Складиштење" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "Немаш допуштење за брисање одабране ставке." +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Одабери Мапу за Праћење" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Не може да се избрише неке заказане датотеке." +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Јеси ли сигуран да желиш да промениш мапу за складиштење?\n" +"То ће да уклони датотеке из твоје библиотеке!" -#: airtime_mvc/application/controllers/LibraryController.php:404 -#, php-format -msgid "Copy of %s" -msgstr "Копирање од %s" +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Јеси ли сигуран да желиш да уклониш надзорску мапу?" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Одабери показивач" +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "Овај пут није тренутно доступан." -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Уклони показивач" +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#, php-format +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" +"Неке врсте емитовање захтевају додатну конфигурацију. Детаљи око омогућавања " +"%sAAC+ Подршке%s или %sOpus Подршке%s су овде доступни." -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "емисија не постоји" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Прикључен је на серверу" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Подешавања су ажуриране." +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "Пренос је онемогућен" -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Подршка подешавања је ажурирана." +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Не може да се повеже на серверу" -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Повратне Информације" +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"Ако је иза Airtime-а рутер или заштитни зид, можда мораш да конфигуришеш " +"поље порта прослеђивање и ово информационо поље ће да буде нетачан. У том " +"случају мораћеш ручно да ажурираш ово поље, да би показао тачноhost/port/" +"mount да се могу да повеже твоји диск-џокеји. Допуштени опсег је између 1024 " +"и 49151." -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Пренос Подешавање је Ажурирано." +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "За више детаља, прочитај %sУпутству за употребу%s" -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "пут би требао да буде специфициран" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "Провери ову опцију како би се омогућило метаподатака за OGG потоке." -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Проблем са Liquidsoap..." +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Провери ову кућицу за аутоматско искључење Мајстор/Емисија извора, након " +"престанка рада извора." -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Тренутно Извођена" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Провери ову кућицу за аутоматско пребацивање на Мајстор/Емисија извора, " +"након што је спојен извор." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Додај Медије" +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"Ако твој Icecast сервер очекује корисничко име из 'извора', ово поље може да " +"остане празно." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Библиотека" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"Ако твој 'live streaming' клијент не пита за корисничко име, ово поље " +"требало да буде 'извор'." -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Календар" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "Опрезно приликом ажурирању података!" -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "Систем" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"Ово је админ корисничко име и лозинка за Icecast/SHOUTcast да би добио " +"слушатељску статистику." -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Подешавање" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" +"Упозорење: Не можеш променити садржај поља, док се садашња емисија не " +"завршава" -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Корисници" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "Нема пронађених резултата" -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Медијска Мапа" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"То следи исти образац безбедности за емисије: само додељени корисници могу " +"да се повеже на емисију." -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Преноси" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "" +"Одреди прилагођене аутентификације које ће да се уважи само за ову емисију." -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Слушатељска Статистика" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "Емисија у овом случају више не постоји!" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" -msgstr "Историја" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "Упозорење: Емисије не може поново да се повеже" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Историја Пуштених Песама" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" +"Повезивањем своје понављајуће емисије свака заказана медијска става у свакој " +"понављајућим емисијама добиће исти распоред такође и у другим понављајућим " +"емисијама" -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "Историјски Шаблони" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." +msgstr "" +"Временска зона је постављена по станичну зону према задатим. Емисије у " +"календару ће се да прикаже по твојим локалном времену која је дефинисана у " +"интерфејса временске зоне у твојим корисничким поставци." -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Помоћ" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Емисија" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Почетак Коришћења" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "Емисија је празна" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "Упутство" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1m" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "О пројекту" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Услуга" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Радно Време" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Меморија" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Добијање података са сервера..." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Дисковни Простор" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "Ова емисија нема заказаног садржаја." -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "Подешавања Е-маил / Маил Сервера" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "Ова емисија није у потпуности испуњена са садржајем." -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "SoundCloud Подешавање" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "Јануар" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Поновљени Дани:" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "Фебруар" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Уклони" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "Март" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Додај" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "Април" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "Прикључни URL:" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "Мај" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Подешавање Улазног сигнала" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "Јун" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "URL веза Мајсторског извора:" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "Јул" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Надјачај" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "Август" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "ОК" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "Септембар" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "Ресетовање" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "Октобар" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "URL веза Програмског извора:" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "Новембар" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Обавезно)" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "Децембар" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Airtime Регистар" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Јан" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "Феб" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "Мар" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(служи само за проверу, неће да буде објављена)" +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "Апр" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Напомена: Све већа од 600к600 ће да се мењају." +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "Јун" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Покажи ми шта шаљем" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "Јул" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Услови и Одредбе" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "Авг" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Ресетуј лозинку" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "Сеп" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Одабери фолдер" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "Окт" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Подеси" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "Нов" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Актуална Увозна Мапа:" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "Дец" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "данас" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Уклони надзорану директоријуму" +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "дан" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "Не пратиш ниједне медијске мапе." +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "недеља" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Пренос" +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "месец" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Додатне Опције" +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 +msgid "" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "Емисија дуже од предвиђеног времена ће да буде одсечен." -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "Следеће информације ће да буде приказане слушаоцима у медијском плејерима:" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Откажи Тренутног Програма?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(Твоја радијска станица веб странице)" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Заустављање снимање емисије?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "URL Преноса:" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "Ок" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Филтрирај Историје" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Садржај Емисије" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Пронађи Емисије" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Уклониш све садржаје?" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "По Емисији:" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Обришеш ли одабрану (е) ставу (е)?" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "%s Подешавање" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "Завршетак" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Трајање" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(Како би се промовисао своју станицу, 'Пошаљи повратне информације' мора да буде омогућена)." +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Празна Емисија" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Sourcefabric Правила о Приватности" +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Снимање са Line In" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "Одабери Емисијску Степену" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Преглед песма" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "Пронађи" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Не може да се заказује ван емисије." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Одабери Дане:" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Премештање 1 Ставка" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Smart Block Опције" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Премештање %s Ставке" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "или" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" +msgstr "Уређивач за (Од-/За-)тамњивање" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "и" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" +msgstr "Cue Уређивач" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr "до" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "Таласни облик функције су доступне у споредну Web Audio API прегледачу" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "датотеке задовољавају критеријуме" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Одабери све" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "датотека задовољава критеријуме" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Не одабери ништа" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "Стварање Шаблона за Датотечни Сажеци" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Уклони пребукиране песме" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "Стварање Листу Шаблона" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Уклони одабране заказане ставке" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "Додај више елемената" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Скочи на тренутну свирану песму" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "Додај Ново Поље" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Поништи тренутну емисију" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "Подеси Подразумевано Шаблону" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "Отвори библиотеку за додавање или уклањање садржаја" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "Шаблони Списак Пријаве" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "у употреби" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "Нема Листу Шаблона" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Диск" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "Нови Листу шаблона" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Погледај унутра" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "Шаблони за Датотечни Сажеци" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Отвори" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "Нема Шаблона за Датотечни Сажеци" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "Гости могу да уради следеће:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "Нови Шаблон за Датотечни Сажеци" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "Преглед распореда" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "Нови" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "Преглед садржај емисије" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "Нови Списак Песама" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "Диск-џокеји могу да уради следеће:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "Нови Паметни Блок" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "Управљање додељен садржај емисије" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "Нови Пренос" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Увоз медијске фајлове" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "Преглед / уред описа" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Изради листе песама, паметне блокове, и преносе" + +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "Управљање своје библиотечког садржаја" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "URL Преноса:" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "Менаџер програма могу да уради следеће:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Задата Дужина:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "Приказ и управљање садржај емисије" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "Нема преноса" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Распоредне емисије" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Преносна Подешавања" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "Управљање све садржаје библиотека" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Глобална Подешавања" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "Администратори могу да уради следеће:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "dB" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Управљање подешавања" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Излазне Преносне Подешавање" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "Управљање кориснике" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "Увоз датотеке је у току..." +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "Управљање надзираних датотеке" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Напредне Опције Претраживања" +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "Преглед стања система" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "претходна" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Приступ за историју пуштених песама" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "покрени" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "Погледај статистику слушаоце" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "пауза" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Покажи/сакриј колоне" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "следећа" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "Од {from} до {to}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "заустави" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "mute" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "гггг-мм-дд" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "укључи" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "hh:mm:ss.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "макс гласноћа" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Потребно Ажурирање" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "Не" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "Медија је потребна за репродукцију, и мораш да ажурираш свој претраживач на новију верзију, или да ажурираш свој %sFlash plugin%s." +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "По" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Дужина:" +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Ут" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Узорак Стопа:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "Ср" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "Isrc Број:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Че" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "Стажа Датотека:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Пе" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Пренос" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "Су" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Динамички Паметан Блок" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Сат" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Статички Паметан Блок" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Минута" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Звучни Запис" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Готово" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Садржаји Списак Песама:" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Изабери датотеке" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Статички Паметан Блок Садржаји:" +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "Додај датотеке и кликни на 'Покрени Upload' дугме." -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Динамички Паметан Блок Критеријуми:" +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Додај Датотеке" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Ограничено за" +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Заустави Upload" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Статистика Слушалаца" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Покрени upload" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 -#, php-format -msgid "Welcome to %s!" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Додај датотеке" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "" +msgid "Uploaded %d/%d files" +msgstr "Послата %d/%d датотека" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Започни додавањем датотеке у библиотеку помоћу 'Додај Медије' мени тастером. Можеш да повучеш и испустиш датотеке на овом прозору." +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "N/A" + +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Повуци датотеке овде." + +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "Грешка (ознаку типа датотеке)." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Креирај једну емисију тако да идеш на 'Календар' на траци менија, а затим кликом на '+ Емисија' иконицу. Оне могу да буде било једнократне или понављајуће емисије. Само администратори и уредници могу да додају емисије." +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "Грешка величине датотеке." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Додај медије за емисију у календару, кликни са левом кликом на њега и изабери опцију 'Додај / Уклони садржај'" +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "Грешка број датотеке." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Одабери своје медије на левом окну и повуци их на своју емисију у десном окну." +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Init грешка." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "И већ је завршено!" +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "HTTP Грешка." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "За детаљну помоћ, прочитај %sупутство за коришћење%s." +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Безбедносна грешка." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Подели" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Генеричка грешка." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Преноси:" +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "IO грешка." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "" +msgid "File: %s" +msgstr "Фајл: %s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "" +msgid "%d files queued" +msgstr "%d датотека на чекању" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "Нова лозинка" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "Датотека: %f, величина: %s, макс величина датотеке: %m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Унеси и потврди своју нову лозинку у поља доле." +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "Преносни URL може да буде у криву или не постоји" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Унеси своју е-маил адресу налога. Примићеш линк за нову лозинку путем е-маила." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Грешка: Датотека је превелика:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "Е-маил је послат" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "Грешка: Неважећи ознак типа датотека:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "Е-маил је послат" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "Стварање Уноса" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Повратак на екран за пријаву" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "Уреди Историјат Уписа" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "%s ред%s је копиран у међумеморију" + +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" +"%sИспис поглед%sМолимо, користи прегледача штампање функцију за штампање ову " +"табелу. Кад завршиш, притисни Escape." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Претходна:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Следећа:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Преносни Извори" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Мајсторски Извор" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Преглед" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Emisijski Izvor" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Одабери показивач" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Заказана Представа" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Уклони показивач" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "ПРЕНОС" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "емисија не постоји" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Слушај" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Подешавања су ажуриране." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Главно време" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Подршка подешавања је ажурирана." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Ваш налог истиче у" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Пренос Подешавање је Ажурирано." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "пут би требао да буде специфициран" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "Мој Налог" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Проблем са Liquidsoap..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Управљање Кориснике" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Страница није пронађена" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "Нови Корисник" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Грешка апликације" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "id" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s није пронађен" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "Име" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Нешто је пошло по криву." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Презиме" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Додај на Списак Песама" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "Врста Корисника" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Додај у Smart Block" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "Списак Пријава" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Преузимање" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "Датотечни Извештај" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Удвостручавање" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "Програмски Извештај" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "Soundcloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Zend Framework Задата Апликација" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "Нема доступних акција" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Страница није пронађена!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "Немаш допуштење за брисање одабране ставке." -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "Изгледа страница коју си тражио не постоји!" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "Не може да се избрише неке заказане датотеке." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Проширење Статичког Bloка" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Копирање од %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Проширење Динамичког Блока" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Неименовани Пренос" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Празан паметни блок" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Пренос је сачуван." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Празан списак песама" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Неважећи вредности обрасца." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "Празан садржај списак песама" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "Немаш допуштење да искључиш извор." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "Очисти" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "Нема спојеног извора на овај улаз." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Случајни избор списак песама" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "Немаш дозволу за промену извора." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Сачувај списак песама" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "Корисник је успешно додат!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Крижно утишавање списак песама" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "Корисник је успешно ажуриран!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Одтамњење:" +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "Подешавања су успешно ажуриране!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Затамњење:" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Реемитовање емисија %s од %s на %s" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "Нема отворених списак песама" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." +msgstr "" +"Молимо, провери да ли је исправан/на админ корисник/лозинка на страници " +"Систем->Преноси." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "Празан садржај паметног блока" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "Не смеш да приступиш овог извора." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "Не смеш да приступите овог извора." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "Нема отворени паметни блок" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "Датотека не постоји." -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "Емисијски звучни таласни облик" +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "Датотека не постоји" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Cue In: " +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "Датотеке не постоје." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Неисправан захтев." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Cue Out: " +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Неисправан захтев" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Оригинална Дужина:" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "Гледаш старију верзију %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Додај ову емисију" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "Не можеш да додаш песме за динамичне блокове." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Ажурирање емисије" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "Немаш допуштење за брисање одабраног (е) %s." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "Шта" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "Можеш само песме да додаш за паметног блока." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "Када" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Неименовани Списак Песама" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Улаз Уживног Преноса" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Неименовани Smart Block" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Снимање & Реемитовање" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Непознати Списак Песама" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Ко" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "'Cue in' и 'cue out' су нуле." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Стил" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "Не можеш да подесиш да 'cue out' буде веће од дужине фајла." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Реемитовање од %s од %s" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "Не можеш да подесиш да 'cue in' буде веће него 'cue out'." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Одабери Државу" +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Не можеш да подесиш да 'cue out' буде мање него 'cue in'." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3648,43 +4309,26 @@ msgstr "Неважећи пренос - Чини се да је ово преу msgid "Unrecognized stream type: %s" msgstr "Непознати преносни тип: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s је већ надзиран." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s садржава угнежђене надзиране директоријуме: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s се налази унутар у постојећи надзирани директоријуми: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s није ваљан директоријум." - -#: airtime_mvc/application/models/MusicDir.php:232 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s је већ постављена као мапа за складиштење или је између пописа праћених фолдера" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Здраво %s, \n" +"\n" +"Кликни на овај линк како би поништио лозинку:" -#: airtime_mvc/application/models/MusicDir.php:386 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s је већ постављена као мапа за складиштење или је између пописа праћених фолдера." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Ресетовање Лозинке" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s не постоји у листи надзираних локације." +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Одабери Државу" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3699,6 +4343,8 @@ msgid "The schedule you're viewing is out of date! (instance mismatch)" msgstr "Застарео се прегледан распоред! (пример неусклађеност)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3727,40 +4373,86 @@ msgstr "Раније је %s емисија већ била ажурирана!" msgid "" "Content in linked shows must be scheduled before or after any one is " "broadcasted" -msgstr "Садржај у повезаним емисијама мора да буде заказан пре или после било које емисије" - -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." msgstr "" +"Садржај у повезаним емисијама мора да буде заказан пре или после било које " +"емисије" +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "Изабрани Фајл не постоји!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "'Cue in' и 'cue out' су нуле." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s је већ надзиран." -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Не можеш да подесиш да 'cue in' буде веће него 'cue out'." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s садржава угнежђене надзиране директоријуме: %s" -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Не можеш да подесиш да 'cue out' буде веће од дужине фајла." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s се налази унутар у постојећи надзирани директоријуми: %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Не можеш да подесиш да 'cue out' буде мање него 'cue in'." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s није ваљан директоријум." + +#: airtime_mvc/application/models/MusicDir.php:232 +#, php-format +msgid "" +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s је већ постављена као мапа за складиштење или је између пописа праћених " +"фолдера" + +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format +msgid "" +"%s is already set as the current storage dir or in the watched folders list." +msgstr "" +"%s је већ постављена као мапа за складиштење или је између пописа праћених " +"фолдера." + +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s не постоји у листи надзираних локације." + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Реемитовање од %s од %s" + +#: airtime_mvc/application/models/Show.php:180 +msgid "Shows can have a max length of 24 hours." +msgstr "Емисије могу да имају највећу дужину 24 сата." + +#: airtime_mvc/application/models/Show.php:289 +msgid "" +"Cannot schedule overlapping shows.\n" +"Note: Resizing a repeating show affects all of its repeats." +msgstr "" +"Не може да се закаже преклапајуће емисије.\n" +"Напомена: Промена величине понављане емисије утиче на све њене понављање." + +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "не можеш да промениш величину једној емисији у прошлости" + +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "Не би било слободно да се емисије преклапају" #: airtime_mvc/application/models/StoredFile.php:1003 msgid "Failed to create 'organize' directory." @@ -3771,138 +4463,132 @@ msgstr "Није успело стварање 'организовање' дир msgid "" "The file was not uploaded, there is %s MB of disk space left and the file " "you are uploading has a size of %s MB." -msgstr "Пренос датотеке није успео јер слободан простор је само %s MB од жељених датотеке величине од %s MB." +msgstr "" +"Пренос датотеке није успео јер слободан простор је само %s MB од жељених " +"датотеке величине од %s MB." #: airtime_mvc/application/models/StoredFile.php:1026 msgid "" "This file appears to be corrupted and will not be added to media library." -msgstr "Ова датотека чини се да је оштећена и неће буде додата у медијској библиотеци." +msgstr "" +"Ова датотека чини се да је оштећена и неће буде додата у медијској " +"библиотеци." #: airtime_mvc/application/models/StoredFile.php:1065 msgid "" "The file was not uploaded, this error can occur if the computer hard drive " "does not have enough disk space or the stor directory does not have correct " "write permissions." -msgstr "Датотека није послата, ова грешка може да се појави ако хард диск рачунара нема довољно простора на диску или стор директоријума нема исправних овлашћења за записивање." - -#: airtime_mvc/application/models/Show.php:180 -msgid "Shows can have a max length of 24 hours." -msgstr "Емисије могу да имају највећу дужину 24 сата." - -#: airtime_mvc/application/models/Show.php:289 -msgid "" -"Cannot schedule overlapping shows.\n" -"Note: Resizing a repeating show affects all of its repeats." -msgstr "Не може да се закаже преклапајуће емисије.\nНапомена: Промена величине понављане емисије утиче на све њене понављање." +msgstr "" +"Датотека није послата, ова грешка може да се појави ако хард диск рачунара " +"нема довољно простора на диску или стор директоријума нема исправних " +"овлашћења за записивање." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/layouts/scripts/login.phtml:24 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Здраво %s, \n\nКликни на овај линк како би поништио лозинку:" +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" +msgstr "" -#: airtime_mvc/application/models/Auth.php:36 +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 #, php-format -msgid "%s Password Reset" +msgid "Promote my station on %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "Снимљена датотека не постоји" - -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "Метаподаци снимљеног фајла" - -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Програмски Садржај" - -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Уклони Све Садржаје" - -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Прекид Емисија" - -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" -msgstr "Уреди у том случају" - -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Уређивање Програма" - -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Обриши у том случају" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Обриши у том случају и сви пратећи" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "Дозвола одбијена" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Не можеш повући и испустити понављајуће емисије" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Не можеш преместити догађане емисије" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Не можеш преместити емисију у прошлости" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Не можеш преместити снимљене емисије раније од 1 сат времена пре њених реемитовања." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "Емисија је избрисана јер је снимљена емисија не постоји!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Мораш причекати 1 сат за ре-емитовање." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" -msgstr "Песма" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Пуштена" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "Година %s мора да буде у распону између 1753 - 9999" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s није исправан датум" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s:%s:%s није исправан датум" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Молимо, одабери опцију" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "Нема Записа" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/locale/sr_RS@latin/LC_MESSAGES/airtime.po b/airtime_mvc/locale/sr_RS@latin/LC_MESSAGES/airtime.po index be21f24a6b..0f5ec8b382 100644 --- a/airtime_mvc/locale/sr_RS@latin/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/sr_RS@latin/LC_MESSAGES/airtime.po @@ -1,3607 +1,4268 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: # Sourcefabric , 2013 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: Serbian (Latin) (Serbia) (http://www.transifex.com/projects/p/airtime/language/sr_RS@latin/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-04-02 12:12+0000\n" +"Last-Translator: andrey.podshivalov\n" +"Language-Team: Serbian (Latin) (Serbia) (http://www.transifex.com/projects/p/" +"airtime/language/sr_RS@latin/)\n" +"Language: sr_RS@latin\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: sr_RS@latin\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "Audio Uređaj" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "Molimo, odaberi opciju" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "Odjava" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "Nema Zapisa" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "Pokreni" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "Godina %s mora da bude u rasponu između 1753 - 9999" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "Stani" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s nije ispravan datum" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "Cue In" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s:%s:%s nije ispravan datum" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "Podesi Cue In" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "Trenutno Izvođena" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "Cue Out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "Dodaj Medije" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "Podesi Cue Out" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "Biblioteka" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "Pokazivač" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "Kalendar" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "Odtamnjenje" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "Sistem" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "Zatamnjenje" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "Podešavanje" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "Korisnici" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "Prenos uživo" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "Medijska Mapa" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "Omogućeno:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "Prenosi" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "Prenos Tipa:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "Povratne Informacije" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "Brzina u Bitovima:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "Stanje" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "Tip Usluge:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "Slušateljska Statistika" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "Kanali:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "Istorija" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "Istorija Puštenih Pesama" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "Istorijski Šabloni" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "Server" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "Pomoć" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "Uneseni su nevažeći znakovi" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "Početak Korišćenja" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "Port" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "Uputstvo" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "Dopušteni su samo brojevi." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "O projektu" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "Lozinka" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "Snimljena datoteka ne postoji" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "Žanr" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "Metapodaci snimljenog fajla" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "Prikaz na Soundcloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "Naziv" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "Prenos na Soundcloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "Opis" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "Ponovo-da prenese na Soundcloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "Tačka Montiranja" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "Programski Sadržaj" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "Korisničko ime" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "Dodaj / Ukloni Sadržaj" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "Admin Korisnik" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "Ukloni Sve Sadržaje" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "Adminska Lozinka" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "Prekid Emisija" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "Dobijanje informacija sa servera..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "Uredi u tom slučaju" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "Server ne može da bude prazan." +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "Uređivanje" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "Port ne može da bude prazan." +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "Uređivanje Programa" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "Montiranje ne može da bude prazna sa Icecast serverom." +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "Obriši" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" -msgstr "Naziv:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "Obriši u tom slučaju" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" -msgstr "Tvorac:" +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "Obriši u tom slučaju i svi prateći" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" -msgstr "Album:" +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "Dozvola odbijena" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" -msgstr "Pesma:" +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "Ne možeš povući i ispustiti ponavljajuće emisije" + +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "Ne možeš premestiti događane emisije" + +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "Ne možeš premestiti emisiju u prošlosti" + +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "Ne možeš zakazati preklapajuće emisije" + +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "" +"Ne možeš premestiti snimljene emisije ranije od 1 sat vremena pre njenih " +"reemitovanja." + +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "Emisija je izbrisana jer je snimljena emisija ne postoji!" + +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "Moraš pričekati 1 sat za re-emitovanje." + +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "Naziv" + +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "Tvorac" + +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "Album" + +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "Dužina" + +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "Žanr" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "Raspoloženje" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "Nalepnica" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "Kompozitor" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "Autorsko pravo" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "Godina" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "Pesma" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "Dirigent" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "Jezik" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "Vreme Početka" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "Vreme Završetka" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "Puštena" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "Uvoz datoteke je u toku..." -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" -msgstr "Žanr:" +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "Napredne Opcije Pretraživanja" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" -msgstr "Godina:" +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "Statistika Slušalaca" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" -msgstr "Nalepnica:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "Novi" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" -msgstr "Kompozitor:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "Novi Spisak Pesama" -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" -msgstr "Dirigent:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "Novi Pametni Blok" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "Raspoloženje:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "Novi Prenos" -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "BPM:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "Prazan sadržaj spisak pesama" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" -msgstr "Autorsko pravo:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "Očisti" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" -msgstr "ISRC Broj:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "Slučajni izbor spisak pesama" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" -msgstr "Veb stranica:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "Mešanje" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" -msgstr "Jezik:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "Sačuvaj spisak pesama" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 #: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 #: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 #: airtime_mvc/application/forms/SupportSettings.php:161 #: airtime_mvc/application/controllers/LocaleController.php:283 #: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 #: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 msgid "Save" msgstr "Sačuvaj" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "Odustani" - -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "Korisničko ime:" - -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "Lozinka:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "Križno utišavanje spisak pesama" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "Potvrdi Lozinku:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "Pregled / ured opisa" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "Ime:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "Opis" -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "Prezime:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "Odtamnjenje:" -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "E-mail:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "Zatamnjenje:" -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "Mobilni Telefon:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "Nema otvorenih spisak pesama" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "Proširenje Statičkog Bloka" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "Proširenje Dinamičkog Bloka" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "Tipova Korisnika:" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "Prazan pametni blok" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "Gost" +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "Prazan spisak pesama" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "Disk-džokej" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "Emisijski zvučni talasni oblik" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "Voditelj Programa" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "Cue In: " -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "Administrator" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(hh:mm:ss.t)" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "Ime prijave nije jedinstveno." +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "Cue Out: " -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "Boja Pozadine:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "Originalna Dužina:" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "Boja Teksta:" +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(ss.t)" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "Datum Početka:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "Prazan sadržaj pametnog bloka" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "Datum Završetka:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "Nema otvoreni pametni blok" -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "Program:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "" +"%sAirtime%s %s, otvoreni radio softver za zakazivanje i daljinsko vođenje " +"stanice. %s" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "Sve Moje Emisije:" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "%sSourcefabric%s o.p.s. Airtime se distribuira pod %sGNU GPL v.3%s" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "dani" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "Dobrodošli kod Airtime-a!" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "Dan mora da bude naveden" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "" +"Evo kako možeš da počneš da koristiš emitovanja za automatizaciju svoje " +"emisije:" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "Vreme mora da bude navedeno" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"Započni dodavanjem datoteke u biblioteku pomoću 'Dodaj Medije' meni " +"tasterom. Možeš da povučeš i ispustiš datoteke na ovom prozoru." -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "Moraš da čekaš najmanje 1 sat za re-emitovanje" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"Kreiraj jednu emisiju tako da ideš na 'Kalendar' na traci menija, a zatim " +"klikom na '+ Emisija' ikonicu. One mogu da bude bilo jednokratne ili " +"ponavljajuće emisije. Samo administratori i urednici mogu da dodaju emisije." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "Uvozna Mapa:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"Dodaj medije za emisiju u kalendaru, klikni sa levom klikom na njega i " +"izaberi opciju 'Dodaj / Ukloni sadržaj'" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "Mape Pod Nadzorom:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "" +"Odaberi svoje medije na levom oknu i povuci ih na svoju emisiju u desnom " +"oknu." -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "Ne važeći Direktorijum" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "I već je završeno!" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "Traži Korisnike:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "Za detaljnu pomoć, pročitaj %suputstvo za korišćenje%s." -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "Disk-džokeji:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "Prenos uživo" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "Prijava" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "Podeli" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "Upiši znake koje vidiš na slici u nastavku." +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "Prenosi:" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "Naziv Stanice" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "mute" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "Podrazumevano Trajanje Ukršteno Stišavanje (s):" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "uključi" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "unesi vreme u sekundama 0{.0}" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "Sve" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "Podrazumevano Odtamnjenje (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "Podrazumevano Zatamnjenje (s):" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "Dopusti daljinske Veb stranice za pristup \"Raspored\" Info?%s (Omogući ovo da bi front-end widgets rad.)" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "Onemogućeno" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "URL Prenosa:" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "Omogućeno" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "Zadata Dužina:" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "Podrazumevani Jezik Interfejsa" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "Nema prenosa" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "Stanična Vremenska Zona" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" +msgstr "Naziv:" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "Prvi Dan u Nedelji" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" +msgstr "Tvorac:" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "Nedelja" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" +msgstr "Album:" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "Ponedeljak" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" +msgstr "Pesma:" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "Utorak" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "Dužina:" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "Sreda" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "Uzorak Stopa:" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "Četvrtak" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "Brzina u Bitovima:" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "Petak" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "Raspoloženje:" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "Subota" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" +msgstr "Žanr:" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "Link:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" +msgstr "Godina:" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "Tip Ponavljanje:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" +msgstr "Nalepnica:" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "nedeljno" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "BPM:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" +msgstr "Kompozitor:" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "svake 2 nedelje" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" +msgstr "Dirigent:" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "svaka 3 nedelje" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" +msgstr "Autorsko pravo:" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "svaka 4 nedelje" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" +msgstr "Isrc Broj:" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "mesečno" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" +msgstr "Veb stranica:" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" -msgstr "Odaberi Dane:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" +msgstr "Jezik:" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "Ned" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "Staža Datoteka:" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "Pon" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "Naziv:" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "Uto" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "Opis:" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "Sre" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "Prenos" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "Čet" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "Dinamički Pametan Blok" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "Pet" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "Statički Pametan Blok" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "Sub" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "Zvučni Zapis" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "Ponavljanje Po:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "Sadržaji Spisak Pesama:" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "dan u mesecu" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "Statički Pametan Blok Sadržaji:" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "dan u nedelji" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "Dinamički Pametan Blok Kriterijumi:" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "Nema Kraja?" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "Ograničeno za" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "Datum završetka mora da bude posle datuma početka" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "URL:" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "Molimo, odaberi kojeg dana" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "Odaberi Emisijsku Stepenu" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "Potvrdi novu lozinku" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "Nema Programa" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "Lozinke koje ste uneli ne podudaraju se." +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "Pronađi" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "Nabavi novu lozinku" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" +msgstr "%s Podešavanje" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "Odaberi kriterijume" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "Odaberi folder" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "Album" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "Podesi" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "Brzina u Bitovima (Kbps)" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "Aktualna Uvozna Mapa:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "BPM" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "Dodaj" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "Kompozitor" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "" +"Skeniraj ponovo praćenu direktorijumu (Ovo je korisno ako je mrežna veza " +"nije sinhronizovana sa Airtime-om)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "Dirigent" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "Ukloni nadzoranu direktorijumu" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "Autorsko pravo" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "Ne pratiš nijedne medijske mape." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "Tvorac" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(Obavezno)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "Kodirano je po" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"Molimo, pomozi našeg rada.%sKlikni u kutiju 'Pošalji povratne informacije'." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "" +"Klikni na donji okvir za promovisanje svoju stanicu na %sSourcefabric.org%s." + +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "" +"(Kako bi se promovisao svoju stanicu, 'Pošalji povratne informacije' mora da " +"bude omogućena)." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "Nalepnica" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(služi samo za proveru, neće da bude objavljena)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "Jezik" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "Napomena: Sve veća od 600k600 će da se menjaju." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "Poslednja Izmena" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "Pokaži mi šta šaljem" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "Zadnji Put Odigrana" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Sourcefabric Pravila o Privatnosti" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "Dužina" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "Pronađi Emisije" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "Mime" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "Po Emisiji:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" -msgstr "Raspoloženje" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "Podešavanja E-mail / Mail Servera" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "Vlasnik" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "SoundCloud Podešavanje" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "Replay Gain" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" +msgstr "Odaberi Dane:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "Uzorak Stopa (kHz)" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "Ukloni" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "Naziv" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "Prenos" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "Broj Pesma" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "Dodatne Opcije" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "Dodata" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "" +"Sledeće informacije će da bude prikazane slušaocima u medijskom plejerima:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "Veb stranica" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(Tvoja radijska stanica veb stranice)" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "Godina" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "URL Prenosa:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "Odaberi modifikator" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "Priključni URL:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "sadrži" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "Resetuj lozinku" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "ne sadrži" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "Airtime Registar" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "je" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "Molimo, pomozi našeg rada.%sKlikni u kutiju 'Da, pomažem Airtime-u'." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "nije" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"Klikni na donji okvir za oglašavanje svoju stanicu na %sSourcefabric.org%s. " +"U cilju promovisanja svoju stanicu, 'Pošalji povratne informacije' mora da " +"bude omogućena. Ovi podaci će se da prikupljaju uz podršku poruci." -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "počinje se sa" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "Uslovi i Odredbe" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "završava se sa" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "Podešavanje Ulaznog signala" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "je veći od" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "URL veza Majstorskog izvora:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "je manji od" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "Nadjačaj" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "je u opsegu" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "OK" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "sati" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "Resetovanje" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "minuti" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "URL veza Programskog izvora:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "elementi" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "Smart Block Opcije" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "Podesi smart block tipa:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "ili" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "Statički" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "i" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "Dinamički" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr "do" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "Dopusti Ponavljanje Pesama:" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "datoteke zadovoljavaju kriterijume" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "Ograničeno na" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "datoteka zadovoljava kriterijume" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "Generisanje liste pesama i čuvanje sadržaja kriterijume" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "Ponovljeni Dani:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "Generiši" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "Filtriraj Istorije" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "Sadržaj slučajni izbor spisak pesama" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "Zatvori" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "Mešanje" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "Dodaj ovu emisiju" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "Ograničenje ne može da bude prazan ili manji od 0" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "Ažuriranje emisije" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "Ograničenje ne može da bude više od 24 sati" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "Šta" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "Vrednost mora da bude ceo broj" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "Kada" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "500 je maks stavu graničnu vrednost moguće je da podesiš" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "Ulaz Uživnog Prenosa" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "Moraš da izabereš Kriteriju i Modifikaciju" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "Snimanje & Reemitovanje" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "'Dužina' trebala da bude u '00:00:00' obliku" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "Ko" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "Vrednost mora da bude u obliku vremenske oznake (npr. 0000-00-00 ili 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" +msgstr "Stil" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "Vrednost mora da bude numerička" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "Početak" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "Vrednost bi trebala da bude manja od 2147483648" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "Prenosna Podešavanja" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" -msgstr "Vrednost mora da bude manja od %s znakova" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "Globalna Podešavanja" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "Vrednost ne može da bude prazna" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "dB" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "Automatsko Isključivanje" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "Izlazne Prenosne Podešavanje" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "Automatsko Uključivanje" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "Upravljanje Medijske Mape" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "Prelazni Fade Prekidač (s)" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Zend Framework Zadata Aplikacija" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "unesi vreme u sekundama 00{.000000}" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "Stranica nije pronađena!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "Majstorsko Kor. Ime" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "Izgleda stranica koju si tražio ne postoji!" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "Majstorska Lozinka" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "Šabloni Spisak Prijave" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "URL veza majstorskog izvora" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "Nema Listu Šablona" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "URL veza Programskog izvora" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "Postavi Podrazumevano" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "Port Majstorskog Izvora" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "Novi Listu šablona" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "Tačka Majstorskog Izvora" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "Šabloni za Datotečni Sažeci" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "Port Programskog Izvora" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "Nema Šablona za Datotečni Sažeci" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "Tačka Programskog Izvora" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "Novi Šablon za Datotečni Sažeci" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "Ne možeš da koristiš isti port kao Majstor DJ priključak." +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "Stvaranje Šablona za Datotečni Sažeci" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "Port %s nije dostupan" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "Stvaranje Listu Šablona" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "Telefon:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "Naziv" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "Veb Stranica:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "Dodaj više elemenata" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "Država:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "Dodaj Novo Polje" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "Grad:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "Podesi Podrazumevano Šablonu" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "Opis:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "Nova lozinka" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "Logo:" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "Unesi i potvrdi svoju novu lozinku u polja dole." -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "Pošalji povratne informacije" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "Prijava" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." msgstr "" +"Dobrodošli! Možete se prijaviti koristeći panel za prijavu. Dovoljno je samo " +"uneti korisničko ime i lozinku: 'admin'." -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." msgstr "" +"Unesi svoju e-mail adresu naloga. Primićeš link za novu lozinku putem e-" +"maila." -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "Moraš da pristaneš na pravila o privatnosti." +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "E-mail je poslat" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "Vrednost je potrebna i ne može da bude prazan" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "E-mail je poslat" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "Vreme Početka" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "Povratak na ekran za prijavu" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "Vreme Završetka" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "Spisak Prijava" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "Nema Programa" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "Datotečni Izveštaj" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "Snimanje sa Line In?" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "Programski Izveštaj" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "Ponovo da emituje?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "prethodna" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "pokreni" -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" -msgstr "Koristi Prilagođeno potvrdu identiteta:" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "pauza" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" -msgstr "Prilagođeno Korisničko Ime" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "sledeća" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" -msgstr "Prilagođena Lozinka" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "zaustavi" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." -msgstr "'Korisničko Ime' polja ne sme da ostane prazno." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "maks glasnoća" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." -msgstr "'Lozinka' polja ne sme da ostane prazno." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "Potrebno Ažuriranje" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "E-mail" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 +#, php-format +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." +msgstr "" +"Medija je potrebna za reprodukciju, i moraš da ažuriraš svoj pretraživač na " +"noviju verziju, ili da ažuriraš svoj %sFlash plugin%s." -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "Oporavak lozinke" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "Usluga" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "Hardver Audio Izlaz" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "Radno Vreme" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "Tip Izlaza" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "CPU" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Icecast Vorbis Metapodaci" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "Memorija" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "Vidljivi Podaci:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Airtime Verzija" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "Autor - Naziv" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "Diskovni Prostor" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "Emisija - Autor - Naziv" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "Upravljanje Korisnike" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "Naziv stanice - Naziv emisije" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "Novi Korisnik" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "Off Air Metapodaci" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "id" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "Uključi Replay Gain" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "Korisničko ime" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "Replay Gain Modifikator" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "Ime" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "" -"'%value%' is no valid email address in the basic format local-part@hostname" -msgstr "'%value%' nije valjana e-mail adresa u osnovnom obliku local-part@hostname" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "Prezime" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" -msgstr "'%value%' ne odgovara po obliku datuma '%format%'" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "Vrsta Korisnika" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" -msgstr "'%value%' je manji od %min% dugačko znakova" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "Prethodna:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" -msgstr "'%value%' je više od %max% dugačko znakova" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "Sledeća:" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" -msgstr "'%value%' nije između '%min%' i '%max%', uključivo" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "Prenosni Izvori" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" -msgstr "Lozinke se ne podudaraju" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "Majstorski Izvor" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' se ne uklapa u vremenskom formatu 'HH:mm'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "Emisijski Izvor" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "Datum/Vreme Početka:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "Zakazana Predstava" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "Datum/Vreme Završetka:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "PRENOS" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "Slušaj" + +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "Glavno vreme" + +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "Vaš nalog ističe u" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "Trajanje:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "dani" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "Vremenska Zona:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "Kupovina svoj primerak medijskog prostora" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "Ponavljanje?" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "Moj Nalog" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "Ne može da se stvori emisiju u prošlosti" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "Korisničko ime:" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "Ne možeš da menjaš datum/vreme početak emisije, ako je već počela" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "Lozinka:" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "Datum završetka i vreme ne može da bude u prošlosti" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "Upiši znake koje vidiš na slici u nastavku." -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "Ne može da traje < 0m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "Uneseni su nevažeći znakovi" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "Ne može da traje 00h 00m" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "Dan mora da bude naveden" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "Ne može da traje više od 24h" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "Vreme mora da bude navedeno" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "Ne možeš zakazati preklapajuće emisije" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "Moraš da čekaš najmanje 1 sat za re-emitovanje" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "Naziv:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" +msgstr "Koristi Airtime potvrdu identiteta:" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "Neimenovana Emisija" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" +msgstr "Koristi Prilagođeno potvrdu identiteta:" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "URL:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" +msgstr "Prilagođeno Korisničko Ime" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "Opis:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" +msgstr "Prilagođena Lozinka" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" -msgstr "Automatski Prenos (Upload) snimljene emisije" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." +msgstr "'Korisničko Ime' polja ne sme da ostane prazno." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" -msgstr "Omogući SoundCloud Prenos" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." +msgstr "'Lozinka' polja ne sme da ostane prazno." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" -msgstr "Automatski Obeleženi Fajlovi \"može se preuzeti\" sa SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "Omogućeno:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" -msgstr "SoundCloud E-mail" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "Prenos Tipa:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" -msgstr "SoundCloud Lozinka" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "Tip Usluge:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" -msgstr "SoundCloud Tagovi: (zasebne oznake sa razmacima)" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "Kanali:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" -msgstr "Podrazumevani Žanr:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - Mono" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" -msgstr "Zadata Vrsta Pesme:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - Stereo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" -msgstr "Izvorni" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "Server" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "Remix" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "Port" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "Uživo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "Dopušteni su samo brojevi." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "Snimanje" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "Lozinka" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "Govorni" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "URL" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "Podcast" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "Tačka Montiranja" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "Ogledni" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "Admin Korisnik" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "Radovi su u toku" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "Adminska Lozinka" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "Poreklo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "Dobijanje informacija sa servera..." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "Petlja" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "Server ne može da bude prazan." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "Zvučni efekat" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "Port ne može da bude prazan." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "Jedan Metak Uzorak" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "Montiranje ne može da bude prazna sa Icecast serverom." -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "Ostalo" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "Uvozna Mapa:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "Zadata Dozvola:" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "Mape Pod Nadzorom:" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "Rad je u javnom domenu" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "Ne važeći Direktorijum" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "Sva prava zadržana" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "Vrednost je potrebna i ne može da bude prazan" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "Creative Commons Imenovanje" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" +msgstr "" +"'%value%' nije valjana e-mail adresa u osnovnom obliku local-part@hostname" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "Creative Commons Imenovanje Nekomercijalno" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" +msgstr "'%value%' ne odgovara po obliku datuma '%format%'" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "Creative Commons Imenovanje Bez Izvedenih Dela" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" +msgstr "'%value%' je manji od %min% dugačko znakova" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "Creative Commons Deli Pod Istim Uslovima" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" +msgstr "'%value%' je više od %max% dugačko znakova" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "Creative Commons Imenovanje Nekomercijalno Bez Izvedenih Dela" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" +msgstr "'%value%' nije između '%min%' i '%max%', uključivo" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "Creative Commons Imenovanje Nekomercijalno Dijeli Pod Istim Uslovima" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" +msgstr "Lozinke se ne podudaraju" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "Vremenska Zona Interfejsi:" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "Snimanje sa Line In?" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "Omogućavanje sistema e-pošte (Ponovo postavljanje lozinke)" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "Ponovo da emituje?" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "Ponovo postavi lozinku 'iz' e-pošte" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "Boja Pozadine:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "Konfigurisanje Mail servera" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "Boja Teksta:" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "Zahteva potvrdu identiteta" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "E-mail" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "Mail Server" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "Oporavak lozinke" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "E-mail Adresa" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "Odustani" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "Molimo, proveri da li je ispravan/na admin korisnik/lozinka na stranici Sistem->Prenosi." +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "Potvrdi Lozinku:" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "Neimenovani Prenos" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "Ime:" -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "Prenos je sačuvan." +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "Prezime:" -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "Nevažeći vrednosti obrasca." +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "E-mail:" -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "Molimo unesi svoje korisničko ime i lozinku" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "Mobilni Telefon:" -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "Pogrešno korisničko ime ili lozinka. Molimo pokušaj ponovo." +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype:" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "E-mail nije mogao da bude poslat. Proveri svoje postavke servera pošte i proveri se da je ispravno podešen." +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber:" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "S obzirom e-mail nije pronađen." +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "Vremenska Zona Interfejsi:" -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "Reemitovanje emisija %s od %s na %s" +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "Ime prijave nije jedinstveno." -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "Preuzimanje" +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "Hardver Audio Izlaz" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "Korisnik je uspešno dodat!" +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "Tip Izlaza" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "Korisnik je uspešno ažuriran!" +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Icecast Vorbis Metapodaci" -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "Podešavanja su uspešno ažurirane!" +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "Vidljivi Podaci:" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "Stranica nije pronađena" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "Autor - Naziv" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "Greška aplikacije" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "Emisija - Autor - Naziv" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "Snimanje:" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "Naziv stanice - Naziv emisije" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "Majstorski Prenos" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "Off Air Metapodaci" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "Prenos Uživo" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "Uključi Replay Gain" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "Ništa po rasporedu" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "Replay Gain Modifikator" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "Sadašnja Emisija:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" +msgstr "Automatski Prenos (Upload) snimljene emisije" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "Trenutna" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" +msgstr "Omogući SoundCloud Prenos" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "Ti imaš instaliranu najnoviju verziju" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +msgstr "Automatski Obeleženi Fajlovi \"može se preuzeti\" sa SoundCloud" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "Nova verzija je dostupna:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" +msgstr "SoundCloud E-mail" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "Ova verzija uskoro će da bude zastareo." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" +msgstr "SoundCloud Lozinka" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "Ova verzija više nije podržana." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" +msgstr "SoundCloud Tagovi: (zasebne oznake sa razmacima)" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "Molimo nadogradi na" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" +msgstr "Podrazumevani Žanr:" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "Dodaj u trenutni spisak pesama" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" +msgstr "Zadata Vrsta Pesme:" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "Dodaj u trenutni smart block" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" +msgstr "Izvorni" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "Dodavanje 1 Stavke" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "Remix" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "Dodavanje %s Stavke" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "Uživo" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "Možeš da dodaš samo pesme kod pametnih blokova." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "Snimanje" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "Možeš samo da dodaš pesme, pametne blokova, i prenose kod liste numera." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "Govorni" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "Molimo odaberi mesto pokazivača na vremenskoj crti." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "Podcast" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "Uredi Metapodatke" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "Ogledni" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "Dodaj u odabranoj emisiji" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "Radovi su u toku" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "Odaberi" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "Poreklo" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "Odaberi ovu stranicu" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "Petlja" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "Odznači ovu stranicu" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "Zvučni efekat" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "Odznači sve" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "Jedan Metak Uzorak" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "Jesi li siguran da želiš da izbrišeš odabranu (e) stavu (e)?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "Ostalo" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "Zakazana" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "Zadata Dozvola:" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "Playlist / Block" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "Rad je u javnom domenu" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "Prenos Bita" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "Sva prava zadržana" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "Uzorak Stopa" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "Creative Commons Imenovanje" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "Učitavanje..." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "Creative Commons Imenovanje Nekomercijalno" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "Sve" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "Creative Commons Imenovanje Bez Izvedenih Dela" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "Datoteke" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "Creative Commons Deli Pod Istim Uslovima" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "Liste pesama" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "Creative Commons Imenovanje Nekomercijalno Bez Izvedenih Dela" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "Smart Block-ovi" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "Creative Commons Imenovanje Nekomercijalno Dijeli Pod Istim Uslovima" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "Prenosi" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "Naziv Stanice" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "Nepoznati tip:" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "Podrazumevano Trajanje Ukršteno Stišavanje (s):" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "Jesi li siguran da želiš da obrišeš izabranu stavku?" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "unesi vreme u sekundama 0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "Prenos je u toku..." +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "Podrazumevano Odtamnjenje (s):" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "Preuzimanje podataka sa servera..." +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "Podrazumevano Zatamnjenje (s):" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "SoundCloud id za ovu datoteku je:" +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "" +"Dopusti daljinske Veb stranice za pristup \"Raspored\" Info?%s (Omogući ovo " +"da bi front-end widgets rad.)" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "Došlo je do greške prilikom prenosa na soundcloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "Onemogućeno" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "Šifra greške:" +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "Omogućeno" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "Poruka o grešci:" +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "Podrazumevani Jezik Interfejsa" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "Mora da bude pozitivan broj" +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "Stanična Vremenska Zona" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "Mora da bude broj" +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "Prvi Dan u Nedelji" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "Mora da bude u obliku: gggg-mm-dd" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "Nedelja" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "Mora da bude u obliku: hh:mm:ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "Ponedeljak" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "Trenutno je prenos datoteke. %sOdlazak na drugom ekranu će da otkaže proces slanja. %s" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "Utorak" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "Otvori Medijskog Graditelja" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "Sreda" + +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "Četvrtak" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "molimo stavi u vreme '00:00:00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "Petak" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "molimo stavi u vreme u sekundama '00 (.0)'" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "Subota" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "Tvoj pretraživač ne podržava ovu vrstu audio fajl:" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "Datum Početka:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "Dinamički blok nije dostupan za pregled" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "Datum Završetka:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "Ograničiti se na:" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "Telefon:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "Spisak pesama je spremljena" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "Veb Stranica:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "Spisak pesama je izmešan" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "Država:" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "Airtime je nesiguran o statusu ove datoteke. To takođe može da se desi kada je datoteka na udaljenom disku ili je datoteka u nekoj direktorijumi, koja se više nije 'praćena odnosno nadzirana'." +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "Grad:" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "Broj Slušalaca %s: %s" +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "Opis:" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "Podseti me za 1 nedelju" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "Logo:" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "Nikad me više ne podseti" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "Pošalji povratne informacije" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "Da, pomažem Airtime-u" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "Promovisati svoju stanicu na Sourcefabric.org" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "Slika mora da bude jpg, jpeg, png, ili gif" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "Izborom ove opcije, slažem se %ssa pravilima o privatnosti%s." -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "Statički pametni blokovi spremaju kriterijume i odmah generišu blok sadržaja. To ti omogućava da urediš i vidiš ga u biblioteci pre nego što ga dodaš na emisiju." +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "Moraš da pristaneš na pravila o privatnosti." -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "Dinamički pametni blokovi samo kriterijume spremaju. Blok sadržaja će se generiše nakon što ga dodamo na emisiju. Nećeš moći da pregledaš i uređivaš sadržaj u biblioteci." +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' se ne uklapa u vremenskom formatu 'HH:mm'" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "Željena dužina bloka neće da bude postignut jer Airtime ne mogu da pronađe dovoljno jedinstvene pesme koje odgovaraju tvojim kriterijumima. Omogući ovu opciju ako želiš da dopustiš da neke pesme mogu da se više puta ponavljaju." +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "Datum/Vreme Početka:" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "Smart block je izmešan" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "Datum/Vreme Završetka:" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "Smart block je generisan i kriterijume su spremne" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "Trajanje:" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "Smart block je sačuvan" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "Vremenska Zona:" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "Obrada..." +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "Ponavljanje?" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "Odaberi Mapu za Skladištenje" +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "Ne može da se stvori emisiju u prošlosti" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "Odaberi Mapu za Praćenje" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "Ne možeš da menjaš datum/vreme početak emisije, ako je već počela" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "Jesi li siguran da želiš da promeniš mapu za skladištenje?\nTo će da ukloni datoteke iz tvoje biblioteke!" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "Datum završetka i vreme ne može da bude u prošlosti" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "Upravljanje Medijske Mape" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "Ne može da traje < 0m" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "Jesi li siguran da želiš da ukloniš nadzorsku mapu?" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "Ne može da traje 00h 00m" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "Ovaj put nije trenutno dostupan." +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "Ne može da traje više od 24h" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "Neke vrste emitovanje zahtevaju dodatnu konfiguraciju. Detalji oko omogućavanja %sAAC+ Podrške%s ili %sOpus Podrške%s su ovde dostupni." +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "Neimenovana Emisija" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "Priključen je na serveru" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "Traži Korisnike:" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "Prenos je onemogućen" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "Disk-džokeji:" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "Ne može da se poveže na serveru" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "Potvrdi novu lozinku" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "Ako je iza Airtime-a ruter ili zaštitni zid, možda moraš da konfigurišeš polje porta prosleđivanje i ovo informaciono polje će da bude netačan. U tom slučaju moraćeš ručno da ažuriraš ovo polje, da bi pokazao tačnohost/port/mount da se mogu da poveže tvoji disk-džokeji. Dopušteni opseg je između 1024 i 49151." +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "Lozinke koje ste uneli ne podudaraju se." -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "Za više detalja, pročitaj %sUputstvu za upotrebu%s" +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "Nabavi novu lozinku" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "Proveri ovu opciju kako bi se omogućilo metapodataka za OGG potoke." +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "Tipova Korisnika:" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "Proveri ovu kućicu za automatsko isključenje Majstor/Emisija izvora, nakon prestanka rada izvora." +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "Gost" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "Proveri ovu kućicu za automatsko prebacivanje na Majstor/Emisija izvora, nakon što je spojen izvor." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "Disk-džokej" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "Ako tvoj Icecast server očekuje korisničko ime iz 'izvora', ovo polje može da ostane prazno." +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "Voditelj Programa" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "Ako tvoj 'live streaming' klijent ne pita za korisničko ime, ovo polje trebalo da bude 'izvor'." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "Administrator" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "Oprezno prilikom ažuriranju podataka!" +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "ISRC Broj:" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "Ovo je admin korisničko ime i lozinka za Icecast/SHOUTcast da bi dobio slušateljsku statistiku." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "Program:" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "Upozorenje: Ne možeš promeniti sadržaj polja, dok se sadašnja emisija ne završava" +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "Sve Moje Emisije:" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "Nema pronađenih rezultata" +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "Link:" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "To sledi isti obrazac bezbednosti za emisije: samo dodeljeni korisnici mogu da se poveže na emisiju." +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "Tip Ponavljanje:" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "Odredi prilagođene autentifikacije koje će da se uvaži samo za ovu emisiju." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "nedeljno" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "Emisija u ovom slučaju više ne postoji!" +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "svake 2 nedelje" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "Upozorenje: Emisije ne može ponovo da se poveže" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "svaka 3 nedelje" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "Povezivanjem svoje ponavljajuće emisije svaka zakazana medijska stava u svakoj ponavljajućim emisijama dobiće isti raspored takođe i u drugim ponavljajućim emisijama" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "svaka 4 nedelje" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "Vremenska zona je postavljena po staničnu zonu prema zadatim. Emisije u kalendaru će se da prikaže po tvojim lokalnom vremenu koja je definisana u interfejsa vremenske zone u tvojim korisničkim postavci." +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "mesečno" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "Emisija" +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "Odaberi Dane:" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "Emisija je prazna" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "Ned" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1m" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "Pon" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5m" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "Uto" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10m" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "Sre" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15m" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "Čet" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30m" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "Pet" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60m" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "Sub" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "Dobijanje podataka sa servera..." +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "Ponavljanje Po:" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "Ova emisija nema zakazanog sadržaja." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "dan u mesecu" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "Ova emisija nije u potpunosti ispunjena sa sadržajem." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "dan u nedelji" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "Januar" +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "Nema Kraja?" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "Februar" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "Datum završetka mora da bude posle datuma početka" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "Mart" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "Molimo, odaberi kojeg dana" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "April" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "Omogućavanje sistema e-pošte (Ponovo postavljanje lozinke)" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "Maj" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "Ponovo postavi lozinku 'iz' e-pošte" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "Jun" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "Konfigurisanje Mail servera" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "Jul" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "Zahteva potvrdu identiteta" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "Avgust" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "Mail Server" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "Septembar" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "E-mail Adresa" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "Oktobar" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "Odaberi kriterijume" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "Novembar" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "Brzina u Bitovima (Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "Decembar" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "BPM" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "Jan" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "Feb" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "Cue Out" + +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "Kodirano je po" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "Mar" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "Poslednja Izmena" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "Apr" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "Zadnji Put Odigrana" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "Jun" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "Mime" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "Jul" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "Vlasnik" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "Avg" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "Replay Gain" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "Sep" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "Uzorak Stopa (kHz)" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "Okt" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "Broj Pesma" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "Nov" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "Dodata" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "Dec" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "Veb stranica" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "danas" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "Odaberi modifikator" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "dan" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "sadrži" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "nedelja" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "ne sadrži" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "mesec" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "je" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "Emisija duže od predviđenog vremena će da bude odsečen." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "nije" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "Otkaži Trenutnog Programa?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "počinje se sa" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "Zaustavljanje snimanje emisije?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "završava se sa" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "Ok" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "je veći od" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "Sadržaj Emisije" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "je manji od" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "Ukloniš sve sadržaje?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "je u opsegu" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "Obrišeš li odabranu (e) stavu (e)?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "sati" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "Početak" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "minuti" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "Završetak" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "elementi" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "Trajanje" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "Podesi smart block tipa:" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "Prazna Emisija" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "Statički" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "Snimanje sa Line In" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "Dinamički" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "Pregled pesma" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "Dopusti Ponavljanje Pesama:" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "Ne može da se zakazuje van emisije." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "Ograničeno na" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "Premeštanje 1 Stavka" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "Generisanje liste pesama i čuvanje sadržaja kriterijume" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "Premeštanje %s Stavke" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "Generiši" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "Uređivač za (Od-/Za-)tamnjivanje" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "Sadržaj slučajni izbor spisak pesama" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "Cue Uređivač" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "Ograničenje ne može da bude prazan ili manji od 0" + +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "Ograničenje ne može da bude više od 24 sati" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "Talasni oblik funkcije su dostupne u sporednu Web Audio API pregledaču" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "Vrednost mora da bude ceo broj" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "Odaberi sve" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "500 je maks stavu graničnu vrednost moguće je da podesiš" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "Ne odaberi ništa" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "Moraš da izabereš Kriteriju i Modifikaciju" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "Ukloni prebukirane pesme" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "'Dužina' trebala da bude u '00:00:00' obliku" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "Ukloni odabrane zakazane stavke" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "" +"Vrednost mora da bude u obliku vremenske oznake (npr. 0000-00-00 ili " +"0000-00-00 00:00:00)" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "Skoči na trenutnu sviranu pesmu" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "Vrednost mora da bude numerička" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "Poništi trenutnu emisiju" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "Vrednost bi trebala da bude manja od 2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "Otvori biblioteku za dodavanje ili uklanjanje sadržaja" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "Vrednost mora da bude manja od %s znakova" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "Dodaj / Ukloni Sadržaj" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "Vrednost ne može da bude prazna" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "u upotrebi" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "Automatsko Isključivanje" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "Disk" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "Automatsko Uključivanje" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "Pogledaj unutra" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "Prelazni Fade Prekidač (s)" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "Otvori" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "unesi vreme u sekundama 00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "Gosti mogu da uradi sledeće:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "Majstorsko Kor. Ime" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "Pregled rasporeda" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "Majstorska Lozinka" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "Pregled sadržaj emisije" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "URL veza majstorskog izvora" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "Disk-džokeji mogu da uradi sledeće:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "URL veza Programskog izvora" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "Upravljanje dodeljen sadržaj emisije" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "Port Majstorskog Izvora" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "Uvoz medijske fajlove" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "Tačka Majstorskog Izvora" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "Izradi liste pesama, pametne blokove, i prenose" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "Port Programskog Izvora" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "Upravljanje svoje bibliotečkog sadržaja" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "Tačka Programskog Izvora" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "Menadžer programa mogu da uradi sledeće:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "Ne možeš da koristiš isti port kao Majstor DJ priključak." -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "Prikaz i upravljanje sadržaj emisije" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "Port %s nije dostupan" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "Rasporedne emisije" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "" +"Airtime vlasnik autorskih prava;Sourcefabric o.p.s. Sva prava zadržana." +"%sOdržavana i distribuira se pod GNU GPL v.3 %sSourcefabric o.p.s%s" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "Upravljanje sve sadržaje biblioteka" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "Odjava" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "Administratori mogu da uradi sledeće:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "Pokreni" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "Upravljanje podešavanja" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "Stani" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "Upravljanje korisnike" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "Podesi Cue In" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "Upravljanje nadziranih datoteke" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "Podesi Cue Out" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "Pregled stanja sistema" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "Pokazivač" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "Pristup za istoriju puštenih pesama" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "Odtamnjenje" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "Pogledaj statistiku slušaoce" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "Zatamnjenje" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "Pokaži/sakrij kolone" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "Audio Uređaj" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "Od {from} do {to}" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "Molimo unesi svoje korisničko ime i lozinku" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "kbps" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "Pogrešno korisničko ime ili lozinka. Molimo pokušaj ponovo." -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "gggg-mm-dd" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "" +"E-mail nije mogao da bude poslat. Proveri svoje postavke servera pošte i " +"proveri se da je ispravno podešen." -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "S obzirom e-mail nije pronađen." -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "kHz" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "Snimanje:" -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "Ne" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "Majstorski Prenos" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "Po" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "Prenos Uživo" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "Ut" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "Ništa po rasporedu" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "Sr" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "Sadašnja Emisija:" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "Če" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "Trenutna" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "Pe" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "Ti imaš instaliranu najnoviju verziju" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "Su" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "Nova verzija je dostupna:" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "Zatvori" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "Ova verzija uskoro će da bude zastareo." -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "Sat" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "Ova verzija više nije podržana." -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "Minuta" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "Molimo nadogradi na" -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "Gotovo" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "Dodaj u trenutni spisak pesama" -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "Izaberi datoteke" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "Dodaj u trenutni smart block" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "Dodaj datoteke i klikni na 'Pokreni Upload' dugme." +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "Dodavanje 1 Stavke" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "Stanje" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "Dodavanje %s Stavke" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "Dodaj Datoteke" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "Možeš da dodaš samo pesme kod pametnih blokova." -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "Zaustavi Upload" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "" +"Možeš samo da dodaš pesme, pametne blokova, i prenose kod liste numera." -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "Pokreni upload" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "Molimo odaberi mesto pokazivača na vremenskoj crti." -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "Dodaj datoteke" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "Uredi Metapodatke" -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "Poslata %d/%d datoteka" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "Dodaj u odabranoj emisiji" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "N/A" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "Odaberi" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "Povuci datoteke ovde." +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "Odaberi ovu stranicu" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "Greška (oznaku tipa datoteke)." +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "Odznači ovu stranicu" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "Greška veličine datoteke." +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "Odznači sve" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "Greška broj datoteke." +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "Jesi li siguran da želiš da izbrišeš odabranu (e) stavu (e)?" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "Init greška." +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "Zakazana" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "HTTP Greška." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "Playlist / Block" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "Bezbednosna greška." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "Prenos Bita" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "Generička greška." +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "Uzorak Stopa" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "IO greška." +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "Učitavanje..." -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "Fajl: %s" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "Datoteke" -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "%d datoteka na čekanju" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "Liste pesama" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "Datoteka: %f, veličina: %s, maks veličina datoteke: %m" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "Smart Block-ovi" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "Prenosni URL može da bude u krivu ili ne postoji" +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "Prenosi" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "Greška: Datoteka je prevelika:" +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "Nepoznati tip:" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "Greška: Nevažeći oznak tipa datoteka:" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "Jesi li siguran da želiš da obrišeš izabranu stavku?" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "Postavi Podrazumevano" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "Prenos je u toku..." -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "Stvaranje Unosa" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "Preuzimanje podataka sa servera..." -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "Uredi Istorijat Upisa" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "SoundCloud id za ovu datoteku je:" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "%s red%s je kopiran u međumemoriju" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "Došlo je do greške prilikom prenosa na soundcloud." -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%sIspis pogled%sMolimo, koristi pregledača štampanje funkciju za štampanje ovu tabelu. Kad završiš, pritisni Escape." +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "Šifra greške:" -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "Nemaš dopuštenje da isključiš izvor." +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "Poruka o grešci:" -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "Nema spojenog izvora na ovaj ulaz." +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "Mora da bude pozitivan broj" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "Nemaš dozvolu za promenu izvora." +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "Mora da bude broj" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "Gledaš stariju verziju %s" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "Mora da bude u obliku: gggg-mm-dd" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "Ne možeš da dodaš pesme za dinamične blokove." +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "Mora da bude u obliku: hh:mm:ss.t" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "%s not found" -msgstr "%s nije pronađen" +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "" +"Trenutno je prenos datoteke. %sOdlazak na drugom ekranu će da otkaže proces " +"slanja. %s" -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "Nemaš dopuštenje za brisanje odabranog (e) %s." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "Otvori Medijskog Graditelja" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "Nešto je pošlo po krivu." +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "molimo stavi u vreme '00:00:00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "Možeš samo pesme da dodaš za pametnog bloka." +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "molimo stavi u vreme u sekundama '00 (.0)'" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "Neimenovani Spisak Pesama" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "Tvoj pretraživač ne podržava ovu vrstu audio fajl:" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "Neimenovani Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "Dinamički blok nije dostupan za pregled" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "Nepoznati Spisak Pesama" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "Ograničiti se na:" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "Ne smeš da pristupiš ovog izvora." +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "Spisak pesama je spremljena" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "Ne smeš da pristupite ovog izvora." +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "Spisak pesama je izmešan" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." msgstr "" +"Airtime je nesiguran o statusu ove datoteke. To takođe može da se desi kada " +"je datoteka na udaljenom disku ili je datoteka u nekoj direktorijumi, koja " +"se više nije 'praćena odnosno nadzirana'." -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "Neispravan zahtev." +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "Broj Slušalaca %s: %s" -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "Neispravan zahtev" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "Podseti me za 1 nedelju" -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "Pregled" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "Nikad me više ne podseti" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "Dodaj na Spisak Pesama" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "Da, pomažem Airtime-u" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "Dodaj u Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "Slika mora da bude jpg, jpeg, png, ili gif" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "Obriši" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." +msgstr "" +"Statički pametni blokovi spremaju kriterijume i odmah generišu blok " +"sadržaja. To ti omogućava da urediš i vidiš ga u biblioteci pre nego što ga " +"dodaš na emisiju." -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "Udvostručavanje" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"Dinamički pametni blokovi samo kriterijume spremaju. Blok sadržaja će se " +"generiše nakon što ga dodamo na emisiju. Nećeš moći da pregledaš i uređivaš " +"sadržaj u biblioteci." -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "Uređivanje" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"Željena dužina bloka neće da bude postignut jer Airtime ne mogu da pronađe " +"dovoljno jedinstvene pesme koje odgovaraju tvojim kriterijumima. Omogući ovu " +"opciju ako želiš da dopustiš da neke pesme mogu da se više puta ponavljaju." -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "Smart block je izmešan" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "Prikaz na Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "Smart block je generisan i kriterijume su spremne" -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "Ponovo-da prenese na Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "Smart block je sačuvan" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "Prenos na Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "Obrada..." -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "Nema dostupnih akcija" +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "Odaberi Mapu za Skladištenje" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "Nemaš dopuštenje za brisanje odabrane stavke." +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "Odaberi Mapu za Praćenje" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "Ne može da se izbriše neke zakazane datoteke." +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"Jesi li siguran da želiš da promeniš mapu za skladištenje?\n" +"To će da ukloni datoteke iz tvoje biblioteke!" -#: airtime_mvc/application/controllers/LibraryController.php:404 -#, php-format -msgid "Copy of %s" -msgstr "Kopiranje od %s" +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "Jesi li siguran da želiš da ukloniš nadzorsku mapu?" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "Odaberi pokazivač" +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "Ovaj put nije trenutno dostupan." -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "Ukloni pokazivač" +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#, php-format +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" +"Neke vrste emitovanje zahtevaju dodatnu konfiguraciju. Detalji oko " +"omogućavanja %sAAC+ Podrške%s ili %sOpus Podrške%s su ovde dostupni." -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "emisija ne postoji" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "Priključen je na serveru" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "Podešavanja su ažurirane." +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "Prenos je onemogućen" -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "Podrška podešavanja je ažurirana." +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "Ne može da se poveže na serveru" -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "Povratne Informacije" +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"Ako je iza Airtime-a ruter ili zaštitni zid, možda moraš da konfigurišeš " +"polje porta prosleđivanje i ovo informaciono polje će da bude netačan. U tom " +"slučaju moraćeš ručno da ažuriraš ovo polje, da bi pokazao tačnohost/port/" +"mount da se mogu da poveže tvoji disk-džokeji. Dopušteni opseg je između " +"1024 i 49151." -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "Prenos Podešavanje je Ažurirano." +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "Za više detalja, pročitaj %sUputstvu za upotrebu%s" -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "put bi trebao da bude specificiran" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "Proveri ovu opciju kako bi se omogućilo metapodataka za OGG potoke." -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Problem sa Liquidsoap..." +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"Proveri ovu kućicu za automatsko isključenje Majstor/Emisija izvora, nakon " +"prestanka rada izvora." -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "Trenutno Izvođena" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"Proveri ovu kućicu za automatsko prebacivanje na Majstor/Emisija izvora, " +"nakon što je spojen izvor." -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "Dodaj Medije" +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "" +"Ako tvoj Icecast server očekuje korisničko ime iz 'izvora', ovo polje može " +"da ostane prazno." -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "Biblioteka" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "" +"Ako tvoj 'live streaming' klijent ne pita za korisničko ime, ovo polje " +"trebalo da bude 'izvor'." -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "Kalendar" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "Oprezno prilikom ažuriranju podataka!" -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "Sistem" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"Ovo je admin korisničko ime i lozinka za Icecast/SHOUTcast da bi dobio " +"slušateljsku statistiku." -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "Podešavanje" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" +"Upozorenje: Ne možeš promeniti sadržaj polja, dok se sadašnja emisija ne " +"završava" -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "Korisnici" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "Nema pronađenih rezultata" -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "Medijska Mapa" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "" +"To sledi isti obrazac bezbednosti za emisije: samo dodeljeni korisnici mogu " +"da se poveže na emisiju." -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "Prenosi" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "" +"Odredi prilagođene autentifikacije koje će da se uvaži samo za ovu emisiju." -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "Slušateljska Statistika" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "Emisija u ovom slučaju više ne postoji!" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" -msgstr "Istorija" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "Upozorenje: Emisije ne može ponovo da se poveže" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "Istorija Puštenih Pesama" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" +"Povezivanjem svoje ponavljajuće emisije svaka zakazana medijska stava u " +"svakoj ponavljajućim emisijama dobiće isti raspored takođe i u drugim " +"ponavljajućim emisijama" -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "Istorijski Šabloni" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." +msgstr "" +"Vremenska zona je postavljena po staničnu zonu prema zadatim. Emisije u " +"kalendaru će se da prikaže po tvojim lokalnom vremenu koja je definisana u " +"interfejsa vremenske zone u tvojim korisničkim postavci." -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "Pomoć" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "Emisija" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "Početak Korišćenja" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "Emisija je prazna" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "Uputstvo" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1m" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "O projektu" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "Usluga" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "Radno Vreme" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "Memorija" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60m" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "Dobijanje podataka sa servera..." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "Diskovni Prostor" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "Ova emisija nema zakazanog sadržaja." -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "Podešavanja E-mail / Mail Servera" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "Ova emisija nije u potpunosti ispunjena sa sadržajem." -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "SoundCloud Podešavanje" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "Januar" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "Ponovljeni Dani:" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "Februar" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "Ukloni" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "Mart" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "Dodaj" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "April" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "Priključni URL:" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "Maj" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "Podešavanje Ulaznog signala" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "Jun" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "URL veza Majstorskog izvora:" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "Jul" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "Nadjačaj" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "Avgust" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "OK" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "Septembar" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "Resetovanje" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "Oktobar" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "URL veza Programskog izvora:" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "Novembar" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(Obavezno)" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "Decembar" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "Airtime Registar" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "Jan" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "Feb" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "Mar" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(služi samo za proveru, neće da bude objavljena)" +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "Apr" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "Napomena: Sve veća od 600k600 će da se menjaju." +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "Jun" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "Pokaži mi šta šaljem" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "Jul" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "Uslovi i Odredbe" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "Avg" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "Resetuj lozinku" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "Sep" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "Odaberi folder" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "Okt" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "Podesi" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "Nov" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "Aktualna Uvozna Mapa:" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "Dec" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "danas" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "Ukloni nadzoranu direktorijumu" +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "dan" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "Ne pratiš nijedne medijske mape." +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "nedelja" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "Prenos" +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "mesec" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "Dodatne Opcije" +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 +msgid "" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "Emisija duže od predviđenog vremena će da bude odsečen." -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "Sledeće informacije će da bude prikazane slušaocima u medijskom plejerima:" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "Otkaži Trenutnog Programa?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(Tvoja radijska stanica veb stranice)" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "Zaustavljanje snimanje emisije?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "URL Prenosa:" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "Ok" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "Filtriraj Istorije" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "Sadržaj Emisije" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "Pronađi Emisije" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "Ukloniš sve sadržaje?" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "Po Emisiji:" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "Obrišeš li odabranu (e) stavu (e)?" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "%s Podešavanje" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "Završetak" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "Trajanje" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(Kako bi se promovisao svoju stanicu, 'Pošalji povratne informacije' mora da bude omogućena)." +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "Prazna Emisija" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Sourcefabric Pravila o Privatnosti" +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "Snimanje sa Line In" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "Odaberi Emisijsku Stepenu" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "Pregled pesma" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "Pronađi" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "Ne može da se zakazuje van emisije." -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "Odaberi Dane:" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "Premeštanje 1 Stavka" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "Smart Block Opcije" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "Premeštanje %s Stavke" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "ili" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" +msgstr "Uređivač za (Od-/Za-)tamnjivanje" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "i" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" +msgstr "Cue Uređivač" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr "do" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "Talasni oblik funkcije su dostupne u sporednu Web Audio API pregledaču" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "datoteke zadovoljavaju kriterijume" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "Odaberi sve" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "datoteka zadovoljava kriterijume" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "Ne odaberi ništa" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "Stvaranje Šablona za Datotečni Sažeci" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "Ukloni prebukirane pesme" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "Stvaranje Listu Šablona" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "Ukloni odabrane zakazane stavke" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "Dodaj više elemenata" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "Skoči na trenutnu sviranu pesmu" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "Dodaj Novo Polje" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "Poništi trenutnu emisiju" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "Podesi Podrazumevano Šablonu" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "Otvori biblioteku za dodavanje ili uklanjanje sadržaja" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "Šabloni Spisak Prijave" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "u upotrebi" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "Nema Listu Šablona" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "Disk" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "Novi Listu šablona" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "Pogledaj unutra" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "Šabloni za Datotečni Sažeci" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "Otvori" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "Nema Šablona za Datotečni Sažeci" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "Gosti mogu da uradi sledeće:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "Novi Šablon za Datotečni Sažeci" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "Pregled rasporeda" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "Novi" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "Pregled sadržaj emisije" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "Novi Spisak Pesama" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "Disk-džokeji mogu da uradi sledeće:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "Novi Pametni Blok" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "Upravljanje dodeljen sadržaj emisije" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "Novi Prenos" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "Uvoz medijske fajlove" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "Pregled / ured opisa" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "Izradi liste pesama, pametne blokove, i prenose" + +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "Upravljanje svoje bibliotečkog sadržaja" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "URL Prenosa:" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "Menadžer programa mogu da uradi sledeće:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "Zadata Dužina:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "Prikaz i upravljanje sadržaj emisije" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "Nema prenosa" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "Rasporedne emisije" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "Prenosna Podešavanja" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "Upravljanje sve sadržaje biblioteka" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "Globalna Podešavanja" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "Administratori mogu da uradi sledeće:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "dB" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "Upravljanje podešavanja" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "Izlazne Prenosne Podešavanje" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "Upravljanje korisnike" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "Uvoz datoteke je u toku..." +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "Upravljanje nadziranih datoteke" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "Napredne Opcije Pretraživanja" +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "Pregled stanja sistema" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "prethodna" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "Pristup za istoriju puštenih pesama" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "pokreni" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "Pogledaj statistiku slušaoce" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "pauza" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "Pokaži/sakrij kolone" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "sledeća" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "Od {from} do {to}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "zaustavi" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "kbps" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "mute" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "gggg-mm-dd" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "uključi" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "hh:mm:ss.t" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "maks glasnoća" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "kHz" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "Potrebno Ažuriranje" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "Ne" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "Medija je potrebna za reprodukciju, i moraš da ažuriraš svoj pretraživač na noviju verziju, ili da ažuriraš svoj %sFlash plugin%s." +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "Po" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "Dužina:" +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "Ut" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "Uzorak Stopa:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "Sr" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "Isrc Broj:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "Če" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "Staža Datoteka:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "Pe" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "Prenos" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "Su" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "Dinamički Pametan Blok" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "Sat" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "Statički Pametan Blok" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "Minuta" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "Zvučni Zapis" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "Gotovo" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "Sadržaji Spisak Pesama:" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "Izaberi datoteke" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "Statički Pametan Blok Sadržaji:" +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "Dodaj datoteke i klikni na 'Pokreni Upload' dugme." -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "Dinamički Pametan Blok Kriterijumi:" +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "Dodaj Datoteke" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "Ograničeno za" +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "Zaustavi Upload" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "Statistika Slušalaca" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "Pokreni upload" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 -#, php-format -msgid "Welcome to %s!" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "Dodaj datoteke" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "" +msgid "Uploaded %d/%d files" +msgstr "Poslata %d/%d datoteka" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "Započni dodavanjem datoteke u biblioteku pomoću 'Dodaj Medije' meni tasterom. Možeš da povučeš i ispustiš datoteke na ovom prozoru." +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "N/A" + +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "Povuci datoteke ovde." + +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "Greška (oznaku tipa datoteke)." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "Kreiraj jednu emisiju tako da ideš na 'Kalendar' na traci menija, a zatim klikom na '+ Emisija' ikonicu. One mogu da bude bilo jednokratne ili ponavljajuće emisije. Samo administratori i urednici mogu da dodaju emisije." +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "Greška veličine datoteke." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "Dodaj medije za emisiju u kalendaru, klikni sa levom klikom na njega i izaberi opciju 'Dodaj / Ukloni sadržaj'" +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "Greška broj datoteke." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "Odaberi svoje medije na levom oknu i povuci ih na svoju emisiju u desnom oknu." +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "Init greška." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "I već je završeno!" +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "HTTP Greška." -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "Za detaljnu pomoć, pročitaj %suputstvo za korišćenje%s." +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "Bezbednosna greška." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "Podeli" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "Generička greška." -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "Prenosi:" +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "IO greška." -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "" +msgid "File: %s" +msgstr "Fajl: %s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "" +msgid "%d files queued" +msgstr "%d datoteka na čekanju" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "Nova lozinka" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "Datoteka: %f, veličina: %s, maks veličina datoteke: %m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "Unesi i potvrdi svoju novu lozinku u polja dole." +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "Prenosni URL može da bude u krivu ili ne postoji" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "Unesi svoju e-mail adresu naloga. Primićeš link za novu lozinku putem e-maila." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "Greška: Datoteka je prevelika:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "E-mail je poslat" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "Greška: Nevažeći oznak tipa datoteka:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "E-mail je poslat" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "Stvaranje Unosa" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "Povratak na ekran za prijavu" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "Uredi Istorijat Upisa" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "%s red%s je kopiran u međumemoriju" + +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" +"%sIspis pogled%sMolimo, koristi pregledača štampanje funkciju za štampanje " +"ovu tabelu. Kad završiš, pritisni Escape." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "Prethodna:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "Sledeća:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "Prenosni Izvori" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "Majstorski Izvor" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "Pregled" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "Emisijski Izvor" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "Odaberi pokazivač" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "Zakazana Predstava" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "Ukloni pokazivač" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "PRENOS" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "emisija ne postoji" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "Slušaj" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "Podešavanja su ažurirane." -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "Glavno vreme" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "Podrška podešavanja je ažurirana." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "Vaš nalog ističe u" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "Prenos Podešavanje je Ažurirano." -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "put bi trebao da bude specificiran" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "Moj Nalog" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Problem sa Liquidsoap..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "Upravljanje Korisnike" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "Stranica nije pronađena" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "Novi Korisnik" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "Greška aplikacije" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "id" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s nije pronađen" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "Ime" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "Nešto je pošlo po krivu." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "Prezime" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "Dodaj na Spisak Pesama" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "Vrsta Korisnika" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "Dodaj u Smart Block" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "Spisak Prijava" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "Preuzimanje" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "Datotečni Izveštaj" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "Udvostručavanje" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "Programski Izveštaj" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "Soundcloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Zend Framework Zadata Aplikacija" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "Nema dostupnih akcija" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "Stranica nije pronađena!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "Nemaš dopuštenje za brisanje odabrane stavke." -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "Izgleda stranica koju si tražio ne postoji!" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "Ne može da se izbriše neke zakazane datoteke." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "Proširenje Statičkog Bloka" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "Kopiranje od %s" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "Proširenje Dinamičkog Bloka" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "Neimenovani Prenos" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "Prazan pametni blok" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "Prenos je sačuvan." -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "Prazan spisak pesama" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "Nevažeći vrednosti obrasca." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "Prazan sadržaj spisak pesama" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "Nemaš dopuštenje da isključiš izvor." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "Očisti" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "Nema spojenog izvora na ovaj ulaz." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "Slučajni izbor spisak pesama" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "Nemaš dozvolu za promenu izvora." -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "Sačuvaj spisak pesama" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "Korisnik je uspešno dodat!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "Križno utišavanje spisak pesama" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "Korisnik je uspešno ažuriran!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "Odtamnjenje:" +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "Podešavanja su uspešno ažurirane!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "Zatamnjenje:" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "Reemitovanje emisija %s od %s na %s" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "Nema otvorenih spisak pesama" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." +msgstr "" +"Molimo, proveri da li je ispravan/na admin korisnik/lozinka na stranici " +"Sistem->Prenosi." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "Prazan sadržaj pametnog bloka" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "Ne smeš da pristupiš ovog izvora." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "Ne smeš da pristupite ovog izvora." -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "Nema otvoreni pametni blok" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "Datoteka ne postoji." -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "Emisijski zvučni talasni oblik" +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "Datoteka ne postoji" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "Cue In: " +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "Datoteke ne postoje." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "Neispravan zahtev." -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "Cue Out: " +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "Neispravan zahtev" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "Originalna Dužina:" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "Gledaš stariju verziju %s" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "Dodaj ovu emisiju" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "Ne možeš da dodaš pesme za dinamične blokove." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "Ažuriranje emisije" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "Nemaš dopuštenje za brisanje odabranog (e) %s." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "Šta" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "Možeš samo pesme da dodaš za pametnog bloka." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "Kada" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "Neimenovani Spisak Pesama" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "Ulaz Uživnog Prenosa" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "Neimenovani Smart Block" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "Snimanje & Reemitovanje" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "Nepoznati Spisak Pesama" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "Ko" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "'Cue in' i 'cue out' su nule." -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "Stil" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "Ne možeš da podesiš da 'cue out' bude veće od dužine fajla." -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "Reemitovanje od %s od %s" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "Ne možeš da podesiš da 'cue in' bude veće nego 'cue out'." -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "Odaberi Državu" +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "Ne možeš da podesiš da 'cue out' bude manje nego 'cue in'." #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3648,43 +4309,26 @@ msgstr "Nevažeći prenos - Čini se da je ovo preuzimanje." msgid "Unrecognized stream type: %s" msgstr "Nepoznati prenosni tip: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s je već nadziran." - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s sadržava ugnežđene nadzirane direktorijume: %s" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s se nalazi unutar u postojeći nadzirani direktorijumi: %s" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s nije valjan direktorijum." - -#: airtime_mvc/application/models/MusicDir.php:232 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s je već postavljena kao mapa za skladištenje ili je između popisa praćenih foldera" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"Zdravo %s, \n" +"\n" +"Klikni na ovaj link kako bi poništio lozinku:" -#: airtime_mvc/application/models/MusicDir.php:386 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s je već postavljena kao mapa za skladištenje ili je između popisa praćenih foldera." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Resetovanje Lozinke" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "%s ne postoji u listi nadziranih lokacije." +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "Odaberi Državu" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3699,6 +4343,8 @@ msgid "The schedule you're viewing is out of date! (instance mismatch)" msgstr "Zastareo se pregledan raspored! (primer neusklađenost)" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3727,40 +4373,86 @@ msgstr "Ranije je %s emisija već bila ažurirana!" msgid "" "Content in linked shows must be scheduled before or after any one is " "broadcasted" -msgstr "Sadržaj u povezanim emisijama mora da bude zakazan pre ili posle bilo koje emisije" - -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." msgstr "" +"Sadržaj u povezanim emisijama mora da bude zakazan pre ili posle bilo koje " +"emisije" +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "Izabrani Fajl ne postoji!" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "'Cue in' i 'cue out' su nule." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s je već nadziran." -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "Ne možeš da podesiš da 'cue in' bude veće nego 'cue out'." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s sadržava ugnežđene nadzirane direktorijume: %s" -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "Ne možeš da podesiš da 'cue out' bude veće od dužine fajla." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s se nalazi unutar u postojeći nadzirani direktorijumi: %s" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "Ne možeš da podesiš da 'cue out' bude manje nego 'cue in'." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s nije valjan direktorijum." + +#: airtime_mvc/application/models/MusicDir.php:232 +#, php-format +msgid "" +"%s is already set as the current storage dir or in the watched folders list" +msgstr "" +"%s je već postavljena kao mapa za skladištenje ili je između popisa praćenih " +"foldera" + +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format +msgid "" +"%s is already set as the current storage dir or in the watched folders list." +msgstr "" +"%s je već postavljena kao mapa za skladištenje ili je između popisa praćenih " +"foldera." + +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "%s ne postoji u listi nadziranih lokacije." + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "Reemitovanje od %s od %s" + +#: airtime_mvc/application/models/Show.php:180 +msgid "Shows can have a max length of 24 hours." +msgstr "Emisije mogu da imaju najveću dužinu 24 sata." + +#: airtime_mvc/application/models/Show.php:289 +msgid "" +"Cannot schedule overlapping shows.\n" +"Note: Resizing a repeating show affects all of its repeats." +msgstr "" +"Ne može da se zakaže preklapajuće emisije.\n" +"Napomena: Promena veličine ponavljane emisije utiče na sve njene ponavljanje." + +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "ne možeš da promeniš veličinu jednoj emisiji u prošlosti" + +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "Ne bi bilo slobodno da se emisije preklapaju" #: airtime_mvc/application/models/StoredFile.php:1003 msgid "Failed to create 'organize' directory." @@ -3771,138 +4463,132 @@ msgstr "Nije uspelo stvaranje 'organizovanje' direktorijuma." msgid "" "The file was not uploaded, there is %s MB of disk space left and the file " "you are uploading has a size of %s MB." -msgstr "Prenos datoteke nije uspeo jer slobodan prostor je samo %s MB od željenih datoteke veličine od %s MB." +msgstr "" +"Prenos datoteke nije uspeo jer slobodan prostor je samo %s MB od željenih " +"datoteke veličine od %s MB." #: airtime_mvc/application/models/StoredFile.php:1026 msgid "" "This file appears to be corrupted and will not be added to media library." -msgstr "Ova datoteka čini se da je oštećena i neće bude dodata u medijskoj biblioteci." +msgstr "" +"Ova datoteka čini se da je oštećena i neće bude dodata u medijskoj " +"biblioteci." #: airtime_mvc/application/models/StoredFile.php:1065 msgid "" "The file was not uploaded, this error can occur if the computer hard drive " "does not have enough disk space or the stor directory does not have correct " "write permissions." -msgstr "Datoteka nije poslata, ova greška može da se pojavi ako hard disk računara nema dovoljno prostora na disku ili stor direktorijuma nema ispravnih ovlašćenja za zapisivanje." - -#: airtime_mvc/application/models/Show.php:180 -msgid "Shows can have a max length of 24 hours." -msgstr "Emisije mogu da imaju najveću dužinu 24 sata." - -#: airtime_mvc/application/models/Show.php:289 -msgid "" -"Cannot schedule overlapping shows.\n" -"Note: Resizing a repeating show affects all of its repeats." -msgstr "Ne može da se zakaže preklapajuće emisije.\nNapomena: Promena veličine ponavljane emisije utiče na sve njene ponavljanje." +msgstr "" +"Datoteka nije poslata, ova greška može da se pojavi ako hard disk računara " +"nema dovoljno prostora na disku ili stor direktorijuma nema ispravnih " +"ovlašćenja za zapisivanje." -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/layouts/scripts/login.phtml:24 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "Zdravo %s, \n\nKlikni na ovaj link kako bi poništio lozinku:" +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" +msgstr "" -#: airtime_mvc/application/models/Auth.php:36 +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 #, php-format -msgid "%s Password Reset" +msgid "Promote my station on %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "Snimljena datoteka ne postoji" - -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "Metapodaci snimljenog fajla" - -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "Programski Sadržaj" - -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "Ukloni Sve Sadržaje" - -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "Prekid Emisija" - -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" -msgstr "Uredi u tom slučaju" - -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "Uređivanje Programa" - -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "Obriši u tom slučaju" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "Obriši u tom slučaju i svi prateći" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "Dozvola odbijena" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "Ne možeš povući i ispustiti ponavljajuće emisije" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "Ne možeš premestiti događane emisije" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "Ne možeš premestiti emisiju u prošlosti" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "Ne možeš premestiti snimljene emisije ranije od 1 sat vremena pre njenih reemitovanja." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "Emisija je izbrisana jer je snimljena emisija ne postoji!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "Moraš pričekati 1 sat za re-emitovanje." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" -msgstr "Pesma" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "Puštena" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "Godina %s mora da bude u rasponu između 1753 - 9999" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s nije ispravan datum" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s:%s:%s nije ispravan datum" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "Molimo, odaberi opciju" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "Nema Zapisa" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/locale/template/airtime.po b/airtime_mvc/locale/template/airtime.po index 4db55c073f..f441a3bf0e 100644 --- a/airtime_mvc/locale/template/airtime.po +++ b/airtime_mvc/locale/template/airtime.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Airtime 2.5\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,3493 +17,4116 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" msgstr "" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" msgstr "" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "%1$s copyright © %2$s All rights reserved.%3$sMaintained and distributed under the %4$s by %5$s" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" msgstr "" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" msgstr "" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:19 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 -msgid "Title:" +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 -msgid "Creator:" +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 -msgid "Album:" +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 -msgid "Track:" +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 -msgid "Genre:" +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:55 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 -msgid "Year:" +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 -msgid "Label:" +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:74 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 -msgid "Composer:" +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:81 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 -msgid "Conductor:" +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:105 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 -msgid "Copyright:" +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:119 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 -msgid "Website:" +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:126 -#: airtime_mvc/application/forms/Login.php:52 -#: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 -msgid "Language:" +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" msgstr "" +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1119 +msgid "Track" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +msgid "Start Time" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +msgid "End Time" +msgstr "" + +#: airtime_mvc/application/services/HistoryService.php:1167 +msgid "Played" +msgstr "" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 #: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 #: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 #: airtime_mvc/application/forms/SupportSettings.php:161 #: airtime_mvc/application/controllers/LocaleController.php:283 #: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 #: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 msgid "Save" msgstr "" -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " msgstr "" -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " msgstr "" -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " msgstr "" -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" msgstr "" -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " msgstr "" -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." msgstr "" -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." msgstr "" -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" msgstr "" -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." msgstr "" -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" msgstr "" -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." msgstr "" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +msgid "Live stream" msgstr "" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" msgstr "" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" msgstr "" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" msgstr "" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" msgstr "" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" msgstr "" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" msgstr "" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" msgstr "" -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" msgstr "" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" msgstr "" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 +msgid "Title:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 +msgid "Creator:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 +msgid "Album:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 +msgid "Track:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 -#, php-format -msgid "Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make front-end widgets work.)" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 +msgid "Genre:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 +msgid "Year:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 +msgid "Label:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 +msgid "Composer:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 +msgid "Conductor:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 +msgid "Copyright:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" msgstr "" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 +msgid "Website:" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 +#: airtime_mvc/application/forms/EditAudioMD.php:126 +#: airtime_mvc/application/forms/Login.php:52 +#: airtime_mvc/application/forms/EditUser.php:118 +msgid "Language:" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 +#, php-format +msgid "%s's Settings" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" msgstr "" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." msgstr "" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 00:00:00)" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 -#, php-format -msgid "The value should be less than %s characters" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" msgstr "" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." msgstr "" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" msgstr "" -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" msgstr "" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" msgstr "" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" msgstr "" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" msgstr "" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" msgstr "" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" msgstr "" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 +#, php-format +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." msgstr "" -#: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" msgstr "" -#: airtime_mvc/application/forms/AddShowLiveStream.php:16 -msgid "Use Custom Authentication:" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" msgstr "" -#: airtime_mvc/application/forms/AddShowLiveStream.php:26 -msgid "Custom Username" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" msgstr "" -#: airtime_mvc/application/forms/AddShowLiveStream.php:39 -msgid "Custom Password" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" msgstr "" -#: airtime_mvc/application/forms/AddShowLiveStream.php:63 -msgid "Username field cannot be empty." +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" msgstr "" -#: airtime_mvc/application/forms/AddShowLiveStream.php:68 -msgid "Password field cannot be empty." +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" msgstr "" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" msgstr "" -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" msgstr "" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" msgstr "" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 -msgid "'%value%' is no valid email address in the basic format local-part@hostname" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" msgstr "" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 -msgid "'%value%' does not fit the date format '%format%'" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" msgstr "" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 -msgid "'%value%' is less than %min% characters long" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" msgstr "" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 -msgid "'%value%' is more than %max% characters long" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" msgstr "" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 -msgid "'%value%' is not between '%min%' and '%max%', inclusively" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" msgstr "" -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 -msgid "Passwords do not match" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "" + +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +msgid "Use Airtime Authentication:" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" +#: airtime_mvc/application/forms/AddShowLiveStream.php:16 +msgid "Use Custom Authentication:" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" +#: airtime_mvc/application/forms/AddShowLiveStream.php:26 +msgid "Custom Username" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" +#: airtime_mvc/application/forms/AddShowLiveStream.php:39 +msgid "Custom Password" msgstr "" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" +#: airtime_mvc/application/forms/AddShowLiveStream.php:63 +msgid "Username field cannot be empty." msgstr "" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" +#: airtime_mvc/application/forms/AddShowLiveStream.php:68 +msgid "Password field cannot be empty." msgstr "" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" msgstr "" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" msgstr "" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 -msgid "Automatically Upload Recorded Shows" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 -msgid "Enable SoundCloud Upload" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 -msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 -msgid "SoundCloud Email" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 -msgid "SoundCloud Password" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 -msgid "SoundCloud Tags: (separate tags with spaces)" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 -msgid "Default Genre:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 -msgid "Default Track Type:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 -msgid "Original" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 +msgid "" +"'%value%' is no valid email address in the basic format local-part@hostname" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:33 +msgid "'%value%' does not fit the date format '%format%'" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:59 +msgid "'%value%' is less than %min% characters long" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:64 +msgid "'%value%' is more than %max% characters long" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:76 +msgid "'%value%' is not between '%min%' and '%max%', inclusively" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:89 +msgid "Passwords do not match" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" msgstr "" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" msgstr "" -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" msgstr "" -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" msgstr "" -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" msgstr "" -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" msgstr "" -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" msgstr "" -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" msgstr "" -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" msgstr "" -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "Please make sure admin user/password is correct on System->Streams page." +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" msgstr "" -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" msgstr "" -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" msgstr "" -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." msgstr "" -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" msgstr "" -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" msgstr "" -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "Email could not be sent. Check your mail server settings and ensure it has been configured properly." +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" msgstr "" -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" msgstr "" -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" msgstr "" -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" msgstr "" -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" msgstr "" -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" msgstr "" -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" msgstr "" -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" msgstr "" -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:16 +msgid "Automatically Upload Recorded Shows" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:26 +msgid "Enable SoundCloud Upload" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:36 +msgid "Automatically Mark Files \"Downloadable\" on SoundCloud" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:47 +msgid "SoundCloud Email" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:67 +msgid "SoundCloud Password" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:87 +msgid "SoundCloud Tags: (separate tags with spaces)" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:99 +msgid "Default Genre:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:109 +msgid "Default Track Type:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " +#: airtime_mvc/application/forms/SoundcloudPreferences.php:113 +msgid "Original" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "You are currently uploading files. %sGoing to another screen will cancel the upload process. %sAre you sure you want to leave the page?" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "Airtime is unsure about the status of this file. This can happen when the file is on a remote drive that is unaccessible or the file is in a directory that isn't 'watched' anymore." +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 #, php-format -msgid "Listener Count on %s: %s" +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "A static smart block will save the criteria and generate the block content immediately. This allows you to edit and view it in the Library before adding it to a show." +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "A dynamic smart block will only save the criteria. The block content will get generated upon adding it to a show. You will not be able to view and edit the content in the Library." +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "The desired block length will not be reached if Airtime cannot find enough unique tracks to match your criteria. Enable this option if you wish to allow tracks to be added multiple times to the smart block." +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "Some stream types require extra configuration. Details about enabling %sAAC+ Support%s or %sOpus Support%s are provided." +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "If Airtime is behind a router or firewall, you may need to configure port forwarding and this field information will be incorrect. In this case you will need to manually update this field so it shows the correct host/port/mount that your DJ's need to connect to. The allowed range is between 1024 and 49151." +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "Check this option to enable metadata for OGG streams (stream metadata is the track title, artist, and show name that is displayed in an audio player). VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that has metadata information enabled: they will disconnect from the stream after every song. If you are using an OGG stream and your listeners do not require support for these audio players, then feel free to enable this option." +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "Check this box to automatically switch off Master/Show source upon source disconnection." +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "Check this box to automatically switch on Master/Show source upon source connection." +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "If your Icecast server expects a username of 'source', this field can be left blank." +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "If your live streaming client does not ask for a username, this field should be 'source'." +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "If you change the username or password values for an enabled stream the playout engine will be rebooted and your listeners will hear silence for 5-10 seconds. Changing the following fields will NOT cause a reboot: Stream Label (Global Settings), and Switch Transition Fade(s), Master Username, and Master Password (Input Stream Settings). If Airtime is recording, and if the change causes a playout engine restart, the recording will be interrupted." +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "This is the admin username and password for Icecast/SHOUTcast to get listener statistics." +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "Warning: You cannot change this field while the show is currently playing" +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "This follows the same security pattern for the shows: only users assigned to the show can connect." +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "By linking your repeating shows any media items scheduled in any repeat show will also get scheduled in the other repeat shows" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "Timezone is set to the station timezone by default. Shows in the calendar will be displayed in your local time defined by the Interface Timezone in your user settings." +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "Shows longer than their scheduled time will be cut off by a following show." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "Waveform features are available in a browser supporting the Web Audio API" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " msgstr "" -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "%sPrint view%sPlease use your browser's print function to print this table. Press escape when finished." +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" msgstr "" -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" msgstr "" -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" msgstr "" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "You are viewing an older version of %s" +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 -#, php-format -msgid "%s not found" +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" msgstr "" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" msgstr "" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." msgstr "" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" msgstr "" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" msgstr "" -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" msgstr "" -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." msgstr "" -#: airtime_mvc/application/controllers/LibraryController.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 #, php-format -msgid "Copy of %s" +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." msgstr "" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" msgstr "" -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" msgstr "" -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." msgstr "" -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." msgstr "" -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." msgstr "" -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." msgstr "" -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." msgstr "" -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" msgstr "" -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" msgstr "" -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." msgstr "" -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." msgstr "" -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" msgstr "" -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" msgstr "" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" msgstr "" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." msgstr "" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" msgstr "" -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" msgstr "" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" msgstr "" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" msgstr "" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" msgstr "" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" msgstr "" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" msgstr "" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" msgstr "" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." msgstr "" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." msgstr "" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." msgstr "" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" msgstr "" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" msgstr "" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" msgstr "" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" msgstr "" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" msgstr "" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" msgstr "" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "Help %1$s improve by letting us know how you are using it. This info will be collected regularly in order to enhance your user experience.%2$sClick 'Yes, help %1$s' and we'll make sure the features you use are constantly improving." +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" msgstr "" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" msgstr "" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" msgstr "" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" msgstr "" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" msgstr "" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" msgstr "" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "Rescan watched directory (This is useful if it is network mount and may be out of sync with %s)" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" msgstr "" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 +msgid "" +"Shows longer than their scheduled time will be cut off by a following show." msgstr "" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" msgstr "" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" msgstr "" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "The following info will be displayed to listeners in their media player:" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" msgstr "" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" msgstr "" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" msgstr "" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" msgstr "" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" msgstr "" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" msgstr "" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" msgstr "" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "Help %s improve by letting %s know how you are using it. This information will be collected regularly in order to enhance your user experience.%sClick the 'Send support feedback' box and we'll make sure the features you use are constantly improving." +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" msgstr "" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "(In order to promote your station, 'Send support feedback' must be enabled)." +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" msgstr "" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." msgstr "" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" msgstr "" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" msgstr "" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" msgstr "" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" msgstr "" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" msgstr "" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" msgstr "" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" msgstr "" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" msgstr "" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" msgstr "" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" msgstr "" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" msgstr "" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "To play the media you will need to either update your browser to a recent version or update your %sFlash plugin%s." +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" msgstr "" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" msgstr "" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Welcome to %s!" +msgid "Uploaded %d/%d files" msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 -#, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "Begin by adding your files to the library using the 'Add Media' menu button. You can drag and drop your files to this window too." +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "Create a show by going to 'Calendar' in the menu bar, and then clicking the '+ Show' icon. This can be either a one-time or repeating show. Only admins and program managers can add shows." +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "Add media to the show by going to your show in the Schedule calendar, left-clicking on it and selecting 'Add / Remove Content'" +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "Select your media from the left pane and drag them to your show in the right pane." +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "" + +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "%1$s %2$s, the open radio software for scheduling and remote station management." +msgid "File: %s" msgstr "" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" +msgid "%d files queued" msgstr "" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" msgstr "" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "Please enter your account e-mail address. You will receive a link to create a new password via e-mail." +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" msgstr "" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" msgstr "" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 #, php-format -msgid "Welcome to the %s demo! You can log in using the username 'admin' and the password 'admin'." -msgstr "" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" +msgid "Copied %s row%s to the clipboard" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#, php-format +msgid "" +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" msgstr "" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." msgstr "" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" msgstr "" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" msgstr "" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" msgstr "" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." msgstr "" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" msgstr "" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" msgstr "" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" msgstr "" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" msgstr "" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." msgstr "" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " msgstr "" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" +#: airtime_mvc/application/controllers/ApiController.php:558 +msgid "File does not exist in Airtime." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" +#: airtime_mvc/application/controllers/ApiController.php:578 +msgid "File does not exist in Airtime" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " +#: airtime_mvc/application/controllers/ApiController.php:590 +msgid "File doesn't exist in Airtime." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." msgstr "" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" msgstr "" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." msgstr "" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." msgstr "" -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." msgstr "" -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." msgstr "" #: airtime_mvc/application/models/Webstream.php:157 @@ -3551,40 +4174,21 @@ msgstr "" msgid "Unrecognized stream type: %s" msgstr "" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "" - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "" - -#: airtime_mvc/application/models/MusicDir.php:232 +#: airtime_mvc/application/models/Auth.php:33 #, php-format -msgid "%s is already set as the current storage dir or in the watched folders list" +msgid "" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " msgstr "" -#: airtime_mvc/application/models/MusicDir.php:386 -#, php-format -msgid "%s is already set as the current storage dir or in the watched folders list." +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" msgstr "" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" msgstr "" #: airtime_mvc/application/models/Scheduler.php:73 @@ -3600,6 +4204,8 @@ msgid "The schedule you're viewing is out of date! (instance mismatch)" msgstr "" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3625,57 +4231,62 @@ msgid "The show %s has been previously updated!" msgstr "" #: airtime_mvc/application/models/Scheduler.php:178 -msgid "Content in linked shows must be scheduled before or after any one is broadcasted" -msgstr "" - -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." +msgid "" +"Content in linked shows must be scheduled before or after any one is " +"broadcasted" msgstr "" +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." msgstr "" -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" msgstr "" -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" msgstr "" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." msgstr "" -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." +#: airtime_mvc/application/models/MusicDir.php:232 +#, php-format +msgid "" +"%s is already set as the current storage dir or in the watched folders list" msgstr "" -#: airtime_mvc/application/models/StoredFile.php:1017 +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 #, php-format -msgid "The file was not uploaded, there is %s MB of disk space left and the file you are uploading has a size of %s MB." +msgid "" +"%s is already set as the current storage dir or in the watched folders list." msgstr "" -#: airtime_mvc/application/models/StoredFile.php:1026 -msgid "This file appears to be corrupted and will not be added to media library." +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." msgstr "" -#: airtime_mvc/application/models/StoredFile.php:1065 -msgid "The file was not uploaded, this error can occur if the computer hard drive does not have enough disk space or the stor directory does not have correct write permissions." +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" msgstr "" #: airtime_mvc/application/models/Show.php:180 @@ -3688,114 +4299,134 @@ msgid "" "Note: Resizing a repeating show affects all of its repeats." msgstr "" -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/layouts/scripts/login.phtml:24 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" msgstr "" -#: airtime_mvc/application/models/Auth.php:36 +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 #, php-format -msgid "%s Password Reset" -msgstr "" - -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "" - -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "" - -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" +msgid "Promote my station on %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." msgstr "" -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#, php-format +msgid "%1$s %2$s is distributed under the %3$s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#, php-format +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +#, php-format +msgid "Purchase your copy of %s" msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 -#, php-format -msgid "The year %s must be within the range of 1753 - 9999" +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/models/StoredFile.php:1017 #, php-format -msgid "%s-%s-%s is not a valid date" +msgid "" +"The file was not uploaded, there is %s MB of disk space left and the file " +"you are uploading has a size of %s MB." msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 -#, php-format -msgid "%s:%s:%s is not a valid time" +#: airtime_mvc/application/models/StoredFile.php:1026 +msgid "" +"This file appears to be corrupted and will not be added to media library." msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" +#: airtime_mvc/application/models/StoredFile.php:1065 +msgid "" +"The file was not uploaded, this error can occur if the computer hard drive " +"does not have enough disk space or the stor directory does not have correct " +"write permissions." msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" msgstr "" diff --git a/airtime_mvc/locale/zh_CN/LC_MESSAGES/airtime.po b/airtime_mvc/locale/zh_CN/LC_MESSAGES/airtime.po index 12721d6f2e..270ef41c94 100644 --- a/airtime_mvc/locale/zh_CN/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/zh_CN/LC_MESSAGES/airtime.po @@ -1,1146 +1,1548 @@ # LANGUAGE (xx_XX) translation for Airtime. # Copyright (C) 2012 Sourcefabric # This file is distributed under the same license as the Airtime package. -# +# # Translators: # Sourcefabric , 2012 msgid "" msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-13 13:55-0500\n" -"PO-Revision-Date: 2014-11-14 09:58+0000\n" -"Last-Translator: Daniel James \n" -"Language-Team: Chinese (China) (http://www.transifex.com/projects/p/airtime/language/zh_CN/)\n" +"POT-Creation-Date: 2014-04-23 15:57-0400\n" +"PO-Revision-Date: 2014-01-29 15:10+0000\n" +"Last-Translator: andrey.podshivalov\n" +"Language-Team: Chinese (China) (http://www.transifex.com/projects/p/airtime/" +"language/zh_CN/)\n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: zh_CN\n" "Plural-Forms: nplurals=1; plural=0;\n" -#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 -#: airtime_mvc/application/controllers/LocaleController.php:28 -msgid "Audio Player" -msgstr "音频播放器" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 +msgid "Please selection an option" +msgstr "请选择一项" -#: airtime_mvc/application/layouts/scripts/layout.phtml:27 -msgid "Logout" -msgstr "登出" +#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 +msgid "No Records" +msgstr "无记录" -#: airtime_mvc/application/layouts/scripts/layout.phtml:42 -#: airtime_mvc/application/layouts/scripts/layout.phtml:68 -msgid "Play" -msgstr "试听" +#: airtime_mvc/application/common/DateHelper.php:213 +#, php-format +msgid "The year %s must be within the range of 1753 - 9999" +msgstr "1753 - 9999 是可以接受的年代值,而不是“%s”" -#: airtime_mvc/application/layouts/scripts/layout.phtml:43 -#: airtime_mvc/application/layouts/scripts/layout.phtml:69 -msgid "Stop" -msgstr "暂停" +#: airtime_mvc/application/common/DateHelper.php:216 +#, php-format +msgid "%s-%s-%s is not a valid date" +msgstr "%s-%s-%s采用了错误的日期格式" -#: airtime_mvc/application/layouts/scripts/layout.phtml:47 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 -#: airtime_mvc/application/controllers/LocaleController.php:270 -#: airtime_mvc/application/models/Block.php:1347 -msgid "Cue In" -msgstr "切入" +#: airtime_mvc/application/common/DateHelper.php:240 +#, php-format +msgid "%s:%s:%s is not a valid time" +msgstr "%s:%s:%s 采用了错误的时间格式" -#: airtime_mvc/application/layouts/scripts/layout.phtml:49 -msgid "Set Cue In" -msgstr "设为切入时间" +#: airtime_mvc/application/configs/navigation.php:12 +msgid "Now Playing" +msgstr "直播室" -#: airtime_mvc/application/layouts/scripts/layout.phtml:54 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 -#: airtime_mvc/application/controllers/LocaleController.php:271 -#: airtime_mvc/application/models/Block.php:1348 -msgid "Cue Out" -msgstr "切出" +#: airtime_mvc/application/configs/navigation.php:19 +msgid "Add Media" +msgstr "添加媒体" -#: airtime_mvc/application/layouts/scripts/layout.phtml:56 -msgid "Set Cue Out" -msgstr "设为切出时间" +#: airtime_mvc/application/configs/navigation.php:26 +msgid "Library" +msgstr "媒体库" -#: airtime_mvc/application/layouts/scripts/layout.phtml:73 -msgid "Cursor" -msgstr "设置游标" +#: airtime_mvc/application/configs/navigation.php:33 +msgid "Calendar" +msgstr "节目日程" -#: airtime_mvc/application/layouts/scripts/layout.phtml:74 -#: airtime_mvc/application/controllers/LocaleController.php:272 -msgid "Fade In" -msgstr "淡入" +#: airtime_mvc/application/configs/navigation.php:40 +msgid "System" +msgstr "系统" -#: airtime_mvc/application/layouts/scripts/layout.phtml:75 -#: airtime_mvc/application/controllers/LocaleController.php:273 -msgid "Fade Out" -msgstr "淡出" +#: airtime_mvc/application/configs/navigation.php:45 +#: airtime_mvc/application/views/scripts/preference/index.phtml:2 +msgid "Preferences" +msgstr "系统属性" -#: airtime_mvc/application/layouts/scripts/login.phtml:24 -#, php-format -msgid "" -"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " -"distributed under the %4$s by %5$s" -msgstr "" +#: airtime_mvc/application/configs/navigation.php:50 +msgid "Users" +msgstr "用户管理" -#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 -msgid "Live stream" -msgstr "插播流" +#: airtime_mvc/application/configs/navigation.php:57 +msgid "Media Folders" +msgstr "存储路径" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 -msgid "Enabled:" -msgstr "启用:" +#: airtime_mvc/application/configs/navigation.php:64 +msgid "Streams" +msgstr "媒体流设置" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 -msgid "Stream Type:" -msgstr "流格式:" +#: airtime_mvc/application/configs/navigation.php:70 +#: airtime_mvc/application/controllers/PreferenceController.php:137 +msgid "Support Feedback" +msgstr "意见反馈" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 -msgid "Bit Rate:" -msgstr "比特率:" +#: airtime_mvc/application/configs/navigation.php:76 +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:363 +#: airtime_mvc/application/controllers/LocaleController.php:364 +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +msgid "Status" +msgstr "系统状态" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 -msgid "Service Type:" -msgstr "服务类型:" +#: airtime_mvc/application/configs/navigation.php:83 +msgid "Listener Stats" +msgstr "收听状态" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 -msgid "Channels:" -msgstr "声道:" +#: airtime_mvc/application/configs/navigation.php:92 +msgid "History" +msgstr "历史记录" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "1 - Mono" -msgstr "1 - 单声道" +#: airtime_mvc/application/configs/navigation.php:97 +msgid "Playout History" +msgstr "播出历史" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 -msgid "2 - Stereo" -msgstr "2 - 立体声" +#: airtime_mvc/application/configs/navigation.php:104 +msgid "History Templates" +msgstr "历史记录模板" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 -msgid "Server" -msgstr "服务器" +#: airtime_mvc/application/configs/navigation.php:113 +#: airtime_mvc/application/views/scripts/error/error.phtml:13 +msgid "Help" +msgstr "帮助" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 -#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 -#: airtime_mvc/application/forms/ShowBuilder.php:37 -#: airtime_mvc/application/forms/ShowBuilder.php:65 -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 -#: airtime_mvc/application/forms/DateRange.php:35 -#: airtime_mvc/application/forms/DateRange.php:63 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 -msgid "Invalid character entered" -msgstr "输入的字符不合要求" +#: airtime_mvc/application/configs/navigation.php:118 +msgid "Getting Started" +msgstr "基本用法" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 -#: airtime_mvc/application/forms/EmailServerPreferences.php:100 -msgid "Port" -msgstr "端口号" +#: airtime_mvc/application/configs/navigation.php:125 +msgid "User Manual" +msgstr "用户手册" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 -msgid "Only numbers are allowed." -msgstr "只允许输入数字" +#: airtime_mvc/application/configs/navigation.php:130 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 +msgid "About" +msgstr "关于" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 -#: airtime_mvc/application/forms/PasswordChange.php:17 -#: airtime_mvc/application/forms/EmailServerPreferences.php:82 -msgid "Password" -msgstr "密码" +#: airtime_mvc/application/services/CalendarService.php:50 +msgid "Record file doesn't exist" +msgstr "录制文件不存在" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 -#: airtime_mvc/application/controllers/LocaleController.php:73 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 -#: airtime_mvc/application/models/Block.php:1351 -#: airtime_mvc/application/services/HistoryService.php:1112 -msgid "Genre" -msgstr "风格" +#: airtime_mvc/application/services/CalendarService.php:54 +msgid "View Recorded File Metadata" +msgstr "查看录制文件的元数据" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 -msgid "URL" -msgstr "链接地址" +#: airtime_mvc/application/services/CalendarService.php:65 +#: airtime_mvc/application/controllers/LibraryController.php:282 +msgid "View on Soundcloud" +msgstr "在Soundcloud中查看" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 -msgid "Name" -msgstr "名字" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:288 +msgid "Upload to SoundCloud" +msgstr "上传到SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 -msgid "Description" -msgstr "描述" +#: airtime_mvc/application/services/CalendarService.php:70 +#: airtime_mvc/application/controllers/LibraryController.php:286 +msgid "Re-upload to SoundCloud" +msgstr "重新上传到SoundCloud" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 -msgid "Mount Point" -msgstr "加载点" +#: airtime_mvc/application/services/CalendarService.php:77 +#: airtime_mvc/application/services/CalendarService.php:121 +#: airtime_mvc/application/services/CalendarService.php:120 +msgid "Show Content" +msgstr "显示内容" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 -#: airtime_mvc/application/forms/PasswordRestore.php:25 -#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 -msgid "Username" -msgstr "用户名" +#: airtime_mvc/application/services/CalendarService.php:93 +#: airtime_mvc/application/services/CalendarService.php:100 +#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 +#: airtime_mvc/application/controllers/LocaleController.php:303 +#: airtime_mvc/application/controllers/LocaleController.php:301 +#: airtime_mvc/application/services/CalendarService.php:96 +msgid "Add / Remove Content" +msgstr "添加 / 删除内容" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 -msgid "Admin User" -msgstr "管理员用户名" +#: airtime_mvc/application/services/CalendarService.php:111 +#: airtime_mvc/application/services/CalendarService.php:109 +msgid "Remove All Content" +msgstr "清空全部内容" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 -msgid "Admin Password" -msgstr "管理员密码" +#: airtime_mvc/application/services/CalendarService.php:131 +#: airtime_mvc/application/services/CalendarService.php:135 +#: airtime_mvc/application/services/CalendarService.php:130 +#: airtime_mvc/application/services/CalendarService.php:134 +msgid "Cancel Current Show" +msgstr "取消当前节目" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 -#: airtime_mvc/application/controllers/LocaleController.php:161 -msgid "Getting information from the server..." -msgstr "从服务器加载中..." +#: airtime_mvc/application/services/CalendarService.php:152 +#: airtime_mvc/application/services/CalendarService.php:167 +#: airtime_mvc/application/services/CalendarService.php:151 +#: airtime_mvc/application/services/CalendarService.php:166 +msgid "Edit This Instance" +msgstr "编辑此节目" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 -msgid "Server cannot be empty." -msgstr "请填写“服务器”。" +#: airtime_mvc/application/services/CalendarService.php:157 +#: airtime_mvc/application/controllers/LibraryController.php:241 +#: airtime_mvc/application/controllers/LibraryController.php:263 +#: airtime_mvc/application/services/CalendarService.php:156 +msgid "Edit" +msgstr "编辑" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 -msgid "Port cannot be empty." -msgstr "请填写“端口”。" +#: airtime_mvc/application/services/CalendarService.php:162 +#: airtime_mvc/application/services/CalendarService.php:173 +#: airtime_mvc/application/services/CalendarService.php:161 +#: airtime_mvc/application/services/CalendarService.php:172 +msgid "Edit Show" +msgstr "编辑节目" + +#: airtime_mvc/application/services/CalendarService.php:186 +#: airtime_mvc/application/services/CalendarService.php:201 +#: airtime_mvc/application/services/CalendarService.php:206 +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 +#: airtime_mvc/application/controllers/ShowbuilderController.php:202 +#: airtime_mvc/application/controllers/LibraryController.php:217 +#: airtime_mvc/application/controllers/LibraryController.php:246 +#: airtime_mvc/application/controllers/LibraryController.php:265 +#: airtime_mvc/application/services/CalendarService.php:185 +#: airtime_mvc/application/services/CalendarService.php:200 +#: airtime_mvc/application/services/CalendarService.php:205 +msgid "Delete" +msgstr "删除" + +#: airtime_mvc/application/services/CalendarService.php:191 +#: airtime_mvc/application/services/CalendarService.php:190 +msgid "Delete This Instance" +msgstr "删除当前节目" + +#: airtime_mvc/application/services/CalendarService.php:196 +#: airtime_mvc/application/services/CalendarService.php:195 +msgid "Delete This Instance and All Following" +msgstr "删除当前以及随后的系列节目" + +#: airtime_mvc/application/services/CalendarService.php:250 +#: airtime_mvc/application/services/CalendarService.php:249 +msgid "Permission denied" +msgstr "没有编辑权限" + +#: airtime_mvc/application/services/CalendarService.php:254 +#: airtime_mvc/application/services/CalendarService.php:253 +msgid "Can't drag and drop repeating shows" +msgstr "系列中的节目无法拖拽" + +#: airtime_mvc/application/services/CalendarService.php:263 +#: airtime_mvc/application/services/CalendarService.php:262 +msgid "Can't move a past show" +msgstr "已经结束的节目无法更改时间" + +#: airtime_mvc/application/services/CalendarService.php:298 +#: airtime_mvc/application/services/CalendarService.php:281 +#: airtime_mvc/application/services/CalendarService.php:297 +msgid "Can't move show into past" +msgstr "节目不能设置到已过去的时间点" + +#: airtime_mvc/application/services/CalendarService.php:305 +#: airtime_mvc/application/forms/AddShowWhen.php:287 +#: airtime_mvc/application/forms/AddShowWhen.php:301 +#: airtime_mvc/application/forms/AddShowWhen.php:325 +#: airtime_mvc/application/forms/AddShowWhen.php:331 +#: airtime_mvc/application/forms/AddShowWhen.php:336 +#: airtime_mvc/application/services/CalendarService.php:288 +#: airtime_mvc/application/forms/AddShowWhen.php:280 +#: airtime_mvc/application/forms/AddShowWhen.php:294 +#: airtime_mvc/application/forms/AddShowWhen.php:318 +#: airtime_mvc/application/forms/AddShowWhen.php:324 +#: airtime_mvc/application/forms/AddShowWhen.php:329 +#: airtime_mvc/application/services/CalendarService.php:304 +msgid "Cannot schedule overlapping shows" +msgstr "节目时间设置与其他节目有冲突" + +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:301 +#: airtime_mvc/application/services/CalendarService.php:317 +msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." +msgstr "录音和重播节目之间的间隔必须大于等于1小时。" + +#: airtime_mvc/application/services/CalendarService.php:328 +#: airtime_mvc/application/services/CalendarService.php:311 +#: airtime_mvc/application/services/CalendarService.php:327 +msgid "Show was deleted because recorded show does not exist!" +msgstr "录音节目不存在,节目已删除!" + +#: airtime_mvc/application/services/CalendarService.php:335 +#: airtime_mvc/application/services/CalendarService.php:318 +#: airtime_mvc/application/services/CalendarService.php:334 +msgid "Must wait 1 hour to rebroadcast." +msgstr "重播节目必须设置于1小时之后。" + +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1148 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 +#: airtime_mvc/application/controllers/LocaleController.php:66 +#: airtime_mvc/application/models/Block.php:1363 +#: airtime_mvc/application/services/HistoryService.php:1105 +#: airtime_mvc/application/services/HistoryService.php:1145 +#: airtime_mvc/application/services/HistoryService.php:1162 +#: airtime_mvc/application/controllers/LocaleController.php:64 +msgid "Title" +msgstr "标题" + +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/services/HistoryService.php:1149 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:67 +#: airtime_mvc/application/models/Block.php:1349 +#: airtime_mvc/application/services/HistoryService.php:1106 +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/services/HistoryService.php:1163 +#: airtime_mvc/application/controllers/LocaleController.php:65 +msgid "Creator" +msgstr "作者" + +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:68 +#: airtime_mvc/application/models/Block.php:1341 +#: airtime_mvc/application/services/HistoryService.php:1107 +#: airtime_mvc/application/controllers/LocaleController.php:66 +msgid "Album" +msgstr "专辑" + +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/services/HistoryService.php:1168 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:81 +#: airtime_mvc/application/models/Block.php:1357 +#: airtime_mvc/application/services/HistoryService.php:1108 +#: airtime_mvc/application/services/HistoryService.php:1165 +#: airtime_mvc/application/controllers/LocaleController.php:79 +msgid "Length" +msgstr "时长" + +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:10 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:132 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:75 +#: airtime_mvc/application/models/Block.php:1351 +#: airtime_mvc/application/services/HistoryService.php:1109 +#: airtime_mvc/application/controllers/LocaleController.php:73 +msgid "Genre" +msgstr "风格" + +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 +#: airtime_mvc/application/controllers/LocaleController.php:83 +#: airtime_mvc/application/models/Block.php:1359 +#: airtime_mvc/application/services/HistoryService.php:1110 +#: airtime_mvc/application/controllers/LocaleController.php:81 +msgid "Mood" +msgstr "风格" + +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:77 +#: airtime_mvc/application/models/Block.php:1353 +#: airtime_mvc/application/services/HistoryService.php:1111 +#: airtime_mvc/application/controllers/LocaleController.php:75 +msgid "Label" +msgstr "标签" + +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/services/HistoryService.php:1169 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 +#: airtime_mvc/application/controllers/LocaleController.php:71 +#: airtime_mvc/application/models/Block.php:1344 +#: airtime_mvc/application/services/HistoryService.php:1112 +#: airtime_mvc/application/services/HistoryService.php:1166 +#: airtime_mvc/application/controllers/LocaleController.php:69 +msgid "Composer" +msgstr "作曲" + +#: airtime_mvc/application/services/HistoryService.php:1116 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:76 +#: airtime_mvc/application/models/Block.php:1352 +#: airtime_mvc/application/services/HistoryService.php:1113 +#: airtime_mvc/application/controllers/LocaleController.php:74 +msgid "ISRC" +msgstr "ISRC码" + +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/services/HistoryService.php:1170 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 +#: airtime_mvc/application/controllers/LocaleController.php:73 +#: airtime_mvc/application/models/Block.php:1346 +#: airtime_mvc/application/services/HistoryService.php:1114 +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/controllers/LocaleController.php:71 +msgid "Copyright" +msgstr "版权" + +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/models/Block.php:1367 +#: airtime_mvc/application/services/HistoryService.php:1115 +#: airtime_mvc/application/controllers/LocaleController.php:88 +msgid "Year" +msgstr "年代" + +#: airtime_mvc/application/services/HistoryService.php:1119 +#: airtime_mvc/application/services/HistoryService.php:1116 +msgid "Track" +msgstr "曲目" + +#: airtime_mvc/application/services/HistoryService.php:1120 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:72 +#: airtime_mvc/application/models/Block.php:1345 +#: airtime_mvc/application/services/HistoryService.php:1117 +#: airtime_mvc/application/controllers/LocaleController.php:70 +msgid "Conductor" +msgstr "指挥" + +#: airtime_mvc/application/services/HistoryService.php:1121 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:78 +#: airtime_mvc/application/models/Block.php:1354 +#: airtime_mvc/application/services/HistoryService.php:1118 +#: airtime_mvc/application/controllers/LocaleController.php:76 +msgid "Language" +msgstr "语种" + +#: airtime_mvc/application/services/HistoryService.php:1146 +#: airtime_mvc/application/forms/EditHistoryItem.php:32 +#: airtime_mvc/application/services/HistoryService.php:1143 +msgid "Start Time" +msgstr "开始时间" + +#: airtime_mvc/application/services/HistoryService.php:1147 +#: airtime_mvc/application/forms/EditHistoryItem.php:44 +#: airtime_mvc/application/services/HistoryService.php:1144 +msgid "End Time" +msgstr "结束时间" + +#: airtime_mvc/application/services/HistoryService.php:1167 +#: airtime_mvc/application/services/HistoryService.php:1164 +msgid "Played" +msgstr "已播放" + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 +#: airtime_mvc/application/views/scripts/library/library.phtml:3 +msgid "File import in progress..." +msgstr "导入文件进行中..." + +#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 +#: airtime_mvc/application/views/scripts/library/library.phtml:10 +msgid "Advanced Search Options" +msgstr "高级查询选项" + +#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 +msgid "Listener Count Over Time" +msgstr "听众统计报告" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 +msgid "New" +msgstr "新建" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 +msgid "New Playlist" +msgstr "新建播放列表" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 +msgid "New Smart Block" +msgstr "新建智能模块" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 +msgid "New Webstream" +msgstr "新建网络流媒体" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +msgid "Empty playlist content" +msgstr "播放列表无内容" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Clear" +msgstr "清除" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +msgid "Shuffle playlist" +msgstr "随机打乱播放列表" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 +msgid "Shuffle" +msgstr "随机" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +msgid "Save playlist" +msgstr "保存播放列表" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:160 +#: airtime_mvc/application/views/scripts/preference/index.phtml:6 +#: airtime_mvc/application/views/scripts/preference/index.phtml:14 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:115 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 +#: airtime_mvc/application/forms/EditHistory.php:131 +#: airtime_mvc/application/forms/AddUser.php:106 +#: airtime_mvc/application/forms/EditAudioMD.php:135 +#: airtime_mvc/application/forms/SupportSettings.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:285 +#: airtime_mvc/application/forms/AddUser.php:110 +#: airtime_mvc/application/forms/SupportSettings.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 +msgid "Save" +msgstr "保存" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 +msgid "Playlist crossfade" +msgstr "播放列表交错淡入淡出效果" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 +msgid "View / edit description" +msgstr "查看/编辑描述" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:55 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:57 +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:41 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:162 +msgid "Description" +msgstr "描述" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +msgid "Fade in: " +msgstr "淡入:" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "Fade out: " +msgstr "淡出:" + +#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 +msgid "No open playlist" +msgstr "没有打开的播放列表" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 +msgid "Expand Static Block" +msgstr "展开静态智能模块" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 +msgid "Expand Dynamic Block" +msgstr "展开动态智能模块" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 +msgid "Empty smart block" +msgstr "无内容的智能模块" + +#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 +msgid "Empty playlist" +msgstr "无内容的播放列表" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 +msgid "Show Waveform" +msgstr "显示波形图" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +msgid "Cue In: " +msgstr "切入:" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "(hh:mm:ss.t)" +msgstr "(时:分:秒.分秒)" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 +msgid "Cue Out: " +msgstr "切出:" + +#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 +msgid "Original Length:" +msgstr "原始长度:" + +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 +#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 +msgid "(ss.t)" +msgstr "(秒.分秒)" + +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 +msgid "Empty smart block content" +msgstr "智能模块无内容" + +#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 +msgid "No open smart block" +msgstr "没有打开的智能模块" + +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:5 +#, php-format +msgid "" +"%sAirtime%s %s, the open radio software for scheduling and remote station " +"management. %s" +msgstr "%sAirtime%s %s, 提供内容编排及远程管理的开源电台软件。%s" + +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:13 +#, php-format +msgid "" +"%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s" +msgstr "%sSourcefabric%s o.p.s. Airtime遵循%sGNU GPL v.3%s" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +msgid "Welcome to Airtime!" +msgstr "欢迎使用Airtime!" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +msgid "" +"Here's how you can get started using Airtime to automate your broadcasts: " +msgstr "简单介绍如何使用Airtime来自动完成播放:" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 +msgid "" +"Begin by adding your files to the library using the 'Add Media' menu button. " +"You can drag and drop your files to this window too." +msgstr "" +"首先把你的媒体文件通过‘添加媒体’导入到媒体库中。你也可以简单的拖拽文件到本窗" +"口" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 +msgid "" +"Create a show by going to 'Calendar' in the menu bar, and then clicking the " +"'+ Show' icon. This can be either a one-time or repeating show. Only admins " +"and program managers can add shows." +msgstr "" +"你可以创建一个节目,从菜单栏打开页面‘日程表’,点击按钮‘+ 节目’。这个节目可以" +"是一次性的,也可以是系列性的。只有系统管理员" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 +msgid "" +"Add media to the show by going to your show in the Schedule calendar, left-" +"clicking on it and selecting 'Add / Remove Content'" +msgstr "" +"然后给你的节目添加内容,在日程表页面中选中节目,左键单击,在出现的菜单上选" +"择‘添加/删除内容’" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 +msgid "" +"Select your media from the left pane and drag them to your show in the right " +"pane." +msgstr "在页面左半部分选择媒体文件,然后拖拽到右半部分。" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 +msgid "Then you're good to go!" +msgstr "然后就大功告成啦!" + +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:13 +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 +#, php-format +msgid "For more detailed help, read the %suser manual%s." +msgstr "详细的指导,可以参考%s用户手册%s。" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2 +#: airtime_mvc/application/layouts/scripts/livestream.phtml:9 +#: airtime_mvc/application/layouts/scripts/bare.phtml:5 +msgid "Live stream" +msgstr "插播流" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 +msgid "Share" +msgstr "共享" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 +msgid "Select stream:" +msgstr "选择流:" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 +msgid "mute" +msgstr "静音" + +#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 +msgid "unmute" +msgstr "取消静音" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:25 +#: airtime_mvc/application/controllers/LocaleController.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:392 +#: airtime_mvc/application/controllers/LocaleController.php:90 +#: airtime_mvc/application/controllers/LocaleController.php:390 +msgid "All" +msgstr "全部" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:26 +msgid "Failed" +msgstr "" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:27 +msgid "Pending" +msgstr "" + +#: airtime_mvc/application/views/scripts/plupload/index.phtml:30 +msgid "Recent Uploads" +msgstr "" + +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 +msgid "Stream URL:" +msgstr "流的链接地址:" + +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 +msgid "Default Length:" +msgstr "默认长度:" -#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 -msgid "Mount cannot be empty with Icecast server." -msgstr "请填写“加载点”。" +#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 +msgid "No webstream" +msgstr "没有网络流媒体" -#: airtime_mvc/application/forms/EditAudioMD.php:19 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:9 +#: airtime_mvc/application/forms/EditAudioMD.php:19 msgid "Title:" msgstr "歌曲名:" -#: airtime_mvc/application/forms/EditAudioMD.php:26 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:10 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:34 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:148 +#: airtime_mvc/application/forms/EditAudioMD.php:26 msgid "Creator:" msgstr "作者:" -#: airtime_mvc/application/forms/EditAudioMD.php:33 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:11 +#: airtime_mvc/application/forms/EditAudioMD.php:33 msgid "Album:" msgstr "专辑名:" -#: airtime_mvc/application/forms/EditAudioMD.php:40 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:12 +#: airtime_mvc/application/forms/EditAudioMD.php:40 msgid "Track:" msgstr "曲目编号:" -#: airtime_mvc/application/forms/EditAudioMD.php:47 -#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 +msgid "Length:" +msgstr "长度:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 +msgid "Sample Rate:" +msgstr "样本率:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:15 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:67 +msgid "Bit Rate:" +msgstr "比特率:" + +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 +#: airtime_mvc/application/forms/EditAudioMD.php:88 +msgid "Mood:" +msgstr "情怀:" + #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:17 +#: airtime_mvc/application/forms/AddShowWhat.php:45 +#: airtime_mvc/application/forms/EditAudioMD.php:47 msgid "Genre:" msgstr "风格:" -#: airtime_mvc/application/forms/EditAudioMD.php:55 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:18 +#: airtime_mvc/application/forms/EditAudioMD.php:55 msgid "Year:" msgstr "年份:" -#: airtime_mvc/application/forms/EditAudioMD.php:67 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:19 +#: airtime_mvc/application/forms/EditAudioMD.php:67 msgid "Label:" msgstr "标签:" -#: airtime_mvc/application/forms/EditAudioMD.php:74 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 +#: airtime_mvc/application/forms/EditAudioMD.php:96 +msgid "BPM:" +msgstr "拍子(BPM):" + #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:21 +#: airtime_mvc/application/forms/EditAudioMD.php:74 msgid "Composer:" msgstr "编曲:" -#: airtime_mvc/application/forms/EditAudioMD.php:81 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:22 +#: airtime_mvc/application/forms/EditAudioMD.php:81 msgid "Conductor:" msgstr "制作:" -#: airtime_mvc/application/forms/EditAudioMD.php:88 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:16 -msgid "Mood:" -msgstr "情怀:" - -#: airtime_mvc/application/forms/EditAudioMD.php:96 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:20 -msgid "BPM:" -msgstr "拍子(BPM):" - -#: airtime_mvc/application/forms/EditAudioMD.php:105 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:23 +#: airtime_mvc/application/forms/EditAudioMD.php:105 msgid "Copyright:" msgstr "版权:" -#: airtime_mvc/application/forms/EditAudioMD.php:112 -msgid "ISRC Number:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 +msgid "Isrc Number:" msgstr "ISRC编号:" -#: airtime_mvc/application/forms/EditAudioMD.php:119 #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:25 +#: airtime_mvc/application/forms/EditAudioMD.php:119 msgid "Website:" msgstr "网站:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 +#: airtime_mvc/application/forms/Login.php:48 +#: airtime_mvc/application/forms/EditUser.php:114 #: airtime_mvc/application/forms/EditAudioMD.php:126 #: airtime_mvc/application/forms/Login.php:52 #: airtime_mvc/application/forms/EditUser.php:118 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:26 msgid "Language:" msgstr "语言:" -#: airtime_mvc/application/forms/EditAudioMD.php:135 -#: airtime_mvc/application/forms/AddUser.php:110 -#: airtime_mvc/application/forms/EditHistory.php:131 -#: airtime_mvc/application/forms/SupportSettings.php:161 -#: airtime_mvc/application/controllers/LocaleController.php:283 -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:163 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:85 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:16 -#: airtime_mvc/application/views/scripts/preference/index.phtml:6 -#: airtime_mvc/application/views/scripts/preference/index.phtml:14 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:6 -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:116 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:24 -msgid "Save" -msgstr "保存" - -#: airtime_mvc/application/forms/EditAudioMD.php:145 -#: airtime_mvc/application/forms/EditHistory.php:141 -#: airtime_mvc/application/forms/PasswordRestore.php:46 -#: airtime_mvc/application/controllers/LocaleController.php:284 -#: airtime_mvc/application/controllers/LocaleController.php:307 -msgid "Cancel" -msgstr "取消" - -#: airtime_mvc/application/forms/AddUser.php:29 -#: airtime_mvc/application/forms/Login.php:23 -#: airtime_mvc/application/forms/EditUser.php:36 -msgid "Username:" -msgstr "用户名:" - -#: airtime_mvc/application/forms/AddUser.php:38 -#: airtime_mvc/application/forms/Login.php:38 -#: airtime_mvc/application/forms/EditUser.php:47 -msgid "Password:" -msgstr "密码:" - -#: airtime_mvc/application/forms/AddUser.php:46 -#: airtime_mvc/application/forms/EditUser.php:56 -msgid "Verify Password:" -msgstr "再次输入密码:" - -#: airtime_mvc/application/forms/AddUser.php:55 -#: airtime_mvc/application/forms/EditUser.php:66 -msgid "Firstname:" -msgstr "名:" - -#: airtime_mvc/application/forms/AddUser.php:61 -#: airtime_mvc/application/forms/EditUser.php:74 -msgid "Lastname:" -msgstr "姓:" - -#: airtime_mvc/application/forms/AddUser.php:67 -#: airtime_mvc/application/forms/SupportSettings.php:46 -#: airtime_mvc/application/forms/RegisterAirtime.php:51 -#: airtime_mvc/application/forms/EditUser.php:82 -msgid "Email:" -msgstr "电邮:" - -#: airtime_mvc/application/forms/AddUser.php:76 -#: airtime_mvc/application/forms/EditUser.php:93 -msgid "Mobile Phone:" -msgstr "手机:" - -#: airtime_mvc/application/forms/AddUser.php:82 -#: airtime_mvc/application/forms/EditUser.php:101 -msgid "Skype:" -msgstr "Skype帐号:" - -#: airtime_mvc/application/forms/AddUser.php:88 -#: airtime_mvc/application/forms/EditUser.php:109 -msgid "Jabber:" -msgstr "Jabber帐号:" - -#: airtime_mvc/application/forms/AddUser.php:95 -msgid "User Type:" -msgstr "用户类型:" - -#: airtime_mvc/application/forms/AddUser.php:99 -#: airtime_mvc/application/controllers/LocaleController.php:313 -msgid "Guest" -msgstr "游客" - -#: airtime_mvc/application/forms/AddUser.php:100 -#: airtime_mvc/application/controllers/LocaleController.php:311 -msgid "DJ" -msgstr "节目编辑" - -#: airtime_mvc/application/forms/AddUser.php:101 -#: airtime_mvc/application/controllers/LocaleController.php:312 -msgid "Program Manager" -msgstr "节目主管" - -#: airtime_mvc/application/forms/AddUser.php:102 -#: airtime_mvc/application/controllers/LocaleController.php:310 -msgid "Admin" -msgstr "系统管理员" - -#: airtime_mvc/application/forms/AddUser.php:120 -#: airtime_mvc/application/forms/EditUser.php:139 -msgid "Login name is not unique." -msgstr "帐号重名。" - -#: airtime_mvc/application/forms/AddShowStyle.php:10 -msgid "Background Colour:" -msgstr "背景色:" - -#: airtime_mvc/application/forms/AddShowStyle.php:29 -msgid "Text Colour:" -msgstr "文字颜色:" - -#: airtime_mvc/application/forms/ShowBuilder.php:18 -#: airtime_mvc/application/forms/DateRange.php:16 -msgid "Date Start:" -msgstr "开始日期:" - -#: airtime_mvc/application/forms/ShowBuilder.php:46 -#: airtime_mvc/application/forms/DateRange.php:44 -#: airtime_mvc/application/forms/AddShowRepeats.php:56 -msgid "Date End:" -msgstr "结束日期:" - -#: airtime_mvc/application/forms/ShowBuilder.php:72 -msgid "Show:" -msgstr "节目:" - -#: airtime_mvc/application/forms/ShowBuilder.php:80 -msgid "All My Shows:" -msgstr "我的全部节目:" - -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 -msgid "days" -msgstr "天" - -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 -msgid "Day must be specified" -msgstr "请指定天" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 +msgid "File Path:" +msgstr "文件路径:" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 -msgid "Time must be specified" -msgstr "请指定时间" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 +#: airtime_mvc/application/forms/AddShowWhat.php:26 +msgid "Name:" +msgstr "名字:" -#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 -#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 -msgid "Must wait at least 1 hour to rebroadcast" -msgstr "至少间隔一个小时" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 +#: airtime_mvc/application/forms/AddShowWhat.php:54 +msgid "Description:" +msgstr "描述:" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 -msgid "Import Folder:" -msgstr "导入文件夹:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 +msgid "Web Stream" +msgstr "网络流媒体" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 -msgid "Watched Folders:" -msgstr "监控文件夹:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 +msgid "Dynamic Smart Block" +msgstr "动态智能模块" -#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 -msgid "Not a valid Directory" -msgstr "无效的路径" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 +msgid "Static Smart Block" +msgstr "静态智能模块" -#: airtime_mvc/application/forms/AddShowWho.php:10 -msgid "Search Users:" -msgstr "查找用户:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 +msgid "Audio Track" +msgstr "音频文件" -#: airtime_mvc/application/forms/AddShowWho.php:24 -msgid "DJs:" -msgstr "选择节目编辑:" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 +msgid "Playlist Contents: " +msgstr "播放列表内容:" -#: airtime_mvc/application/forms/Login.php:67 -#: airtime_mvc/application/views/scripts/login/index.phtml:3 -msgid "Login" -msgstr "登录" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 +msgid "Static Smart Block Contents: " +msgstr "静态智能模块条件:" -#: airtime_mvc/application/forms/Login.php:86 -msgid "Type the characters you see in the picture below." -msgstr "请输入图像里的字符。" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 +msgid "Dynamic Smart Block Criteria: " +msgstr "动态智能模块条件:" -#: airtime_mvc/application/forms/GeneralPreferences.php:21 -#: airtime_mvc/application/forms/SupportSettings.php:21 -#: airtime_mvc/application/forms/RegisterAirtime.php:30 -msgid "Station Name" -msgstr "电台名称" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 +msgid "Limit to " +msgstr "限制到" -#: airtime_mvc/application/forms/GeneralPreferences.php:33 -msgid "Default Crossfade Duration (s):" -msgstr "默认混合淡入淡出效果(秒):" +#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 +#: airtime_mvc/application/forms/AddShowWhat.php:36 +msgid "URL:" +msgstr "链接地址:" -#: airtime_mvc/application/forms/GeneralPreferences.php:40 -#: airtime_mvc/application/forms/GeneralPreferences.php:59 -#: airtime_mvc/application/forms/GeneralPreferences.php:78 -msgid "enter a time in seconds 0{.0}" -msgstr "请输入秒数,格式为0{.0}" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 +msgid "Choose Show Instance" +msgstr "选择节目项" -#: airtime_mvc/application/forms/GeneralPreferences.php:52 -msgid "Default Fade In (s):" -msgstr "默认淡入效果(秒):" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 +#: airtime_mvc/application/forms/EditHistoryItem.php:57 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#: airtime_mvc/application/controllers/LocaleController.php:389 +msgid "No Show" +msgstr "无节目" -#: airtime_mvc/application/forms/GeneralPreferences.php:71 -msgid "Default Fade Out (s):" -msgstr "默认淡出效果(秒):" +#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 +msgid "Find" +msgstr "查找" -#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 #, php-format -msgid "" -"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " -"front-end widgets work.)" -msgstr "允许远程访问节目表信息?%s (此项启用后才能使用“小工具”,既widgets)" +msgid "%s's Settings" +msgstr "%s设置" -#: airtime_mvc/application/forms/GeneralPreferences.php:90 -msgid "Disabled" -msgstr "禁用" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 +msgid "Choose folder" +msgstr "选择文件夹" -#: airtime_mvc/application/forms/GeneralPreferences.php:91 -msgid "Enabled" -msgstr "启用" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 +msgid "Set" +msgstr "设置" -#: airtime_mvc/application/forms/GeneralPreferences.php:97 -msgid "Default Interface Language" -msgstr "界面的默认语言" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 +msgid "Current Import Folder:" +msgstr "当前的导入文件夹:" -#: airtime_mvc/application/forms/GeneralPreferences.php:105 -msgid "Station Timezone" -msgstr "系统使用的时区" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 +msgid "Add" +msgstr "添加" -#: airtime_mvc/application/forms/GeneralPreferences.php:113 -msgid "Week Starts On" -msgstr "一周开始于" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with Airtime)" +msgstr "重新扫描监控的文件夹(针对于需要手动更新的网络存储路径)" -#: airtime_mvc/application/forms/GeneralPreferences.php:123 -#: airtime_mvc/application/controllers/LocaleController.php:238 -msgid "Sunday" -msgstr "周日" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 +msgid "Remove watched directory" +msgstr "移除监控文件夹" -#: airtime_mvc/application/forms/GeneralPreferences.php:124 -#: airtime_mvc/application/controllers/LocaleController.php:239 -msgid "Monday" -msgstr "周一" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:50 +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 +msgid "You are not watching any media folders." +msgstr "你没有正在监控的文件夹。" -#: airtime_mvc/application/forms/GeneralPreferences.php:125 -#: airtime_mvc/application/controllers/LocaleController.php:240 -msgid "Tuesday" -msgstr "周二" +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:47 +#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 +#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 +msgid "(Required)" +msgstr "(必填)" -#: airtime_mvc/application/forms/GeneralPreferences.php:126 -#: airtime_mvc/application/controllers/LocaleController.php:241 -msgid "Wednesday" -msgstr "周三" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help Airtime improve by letting Sourcefabric know how you are using it. This " +"information will be collected regularly in order to enhance your user " +"experience.%sClick the 'Send support feedback' box and we'll make sure the " +"features you use are constantly improving." +msgstr "" +"通过告诉Sourcefabric您是如何使用Airtime的,可以帮助我们改进Airtime。这些信息" +"将会被手机起来用于提高您的客户体验。%s只要勾选‘发送支持反馈’,就能确保让我们" +"持续改进您所使用" -#: airtime_mvc/application/forms/GeneralPreferences.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:242 -msgid "Thursday" -msgstr "周四" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23 +#, php-format +msgid "Click the box below to promote your station on %sSourcefabric.org%s." +msgstr "勾选随后的选项就可以在%sSourcefabric.org%s上推广您的电台。" -#: airtime_mvc/application/forms/GeneralPreferences.php:128 -#: airtime_mvc/application/controllers/LocaleController.php:243 -msgid "Friday" -msgstr "周五" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 +msgid "" +"(In order to promote your station, 'Send support feedback' must be enabled)." +msgstr "(为了推广您的电台,请启用‘发送支持反馈’)" -#: airtime_mvc/application/forms/GeneralPreferences.php:129 -#: airtime_mvc/application/controllers/LocaleController.php:244 -msgid "Saturday" -msgstr "周六" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:61 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:76 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:65 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:79 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 +msgid "(for verification purposes only, will not be published)" +msgstr "(仅作为验证目的使用,不会用于发布)" -#: airtime_mvc/application/forms/AddShowRepeats.php:10 -msgid "Link:" -msgstr "绑定:" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:151 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:150 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 +msgid "Note: Anything larger than 600x600 will be resized." +msgstr "注意:大于600x600的图片将会被缩放" -#: airtime_mvc/application/forms/AddShowRepeats.php:16 -msgid "Repeat Type:" -msgstr "类型:" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:164 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 +msgid "Show me what I am sending " +msgstr "显示我所发送的信息" -#: airtime_mvc/application/forms/AddShowRepeats.php:19 -msgid "weekly" -msgstr "每周" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 +msgid "Sourcefabric Privacy Policy" +msgstr "Sourcefabric隐私策略" -#: airtime_mvc/application/forms/AddShowRepeats.php:20 -msgid "every 2 weeks" -msgstr "每隔2周" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 +msgid "Find Shows" +msgstr "查找节目" -#: airtime_mvc/application/forms/AddShowRepeats.php:21 -msgid "every 3 weeks" -msgstr "每隔3周" +#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 +msgid "Filter By Show:" +msgstr "节目过滤器" -#: airtime_mvc/application/forms/AddShowRepeats.php:22 -msgid "every 4 weeks" -msgstr "每隔4周" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 +msgid "Email / Mail Server Settings" +msgstr "邮件服务器设置" -#: airtime_mvc/application/forms/AddShowRepeats.php:23 -msgid "monthly" -msgstr "每月" +#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 +msgid "SoundCloud Settings" +msgstr "SoundCloud设置" -#: airtime_mvc/application/forms/AddShowRepeats.php:32 -msgid "Select Days:" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 +msgid "Choose Days:" msgstr "选择天数:" -#: airtime_mvc/application/forms/AddShowRepeats.php:35 -#: airtime_mvc/application/controllers/LocaleController.php:245 -msgid "Sun" -msgstr "周日" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 +msgid "Remove" +msgstr "移除" -#: airtime_mvc/application/forms/AddShowRepeats.php:36 -#: airtime_mvc/application/controllers/LocaleController.php:246 -msgid "Mon" -msgstr "周一" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 +msgid "Stream " +msgstr "流" -#: airtime_mvc/application/forms/AddShowRepeats.php:37 -#: airtime_mvc/application/controllers/LocaleController.php:247 -msgid "Tue" -msgstr "周二" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 +msgid "Additional Options" +msgstr "附属选项" -#: airtime_mvc/application/forms/AddShowRepeats.php:38 -#: airtime_mvc/application/controllers/LocaleController.php:248 -msgid "Wed" -msgstr "周三" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 +msgid "" +"The following info will be displayed to listeners in their media player:" +msgstr "以下内容将会在听众的媒体播放器上显示:" -#: airtime_mvc/application/forms/AddShowRepeats.php:39 -#: airtime_mvc/application/controllers/LocaleController.php:249 -msgid "Thu" -msgstr "周四" +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 +msgid "(Your radio station website)" +msgstr "(你电台的网站)" + +#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 +msgid "Stream URL: " +msgstr "流的链接地址:" + +#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 +msgid "Connection URL: " +msgstr "链接地址:" -#: airtime_mvc/application/forms/AddShowRepeats.php:40 -#: airtime_mvc/application/controllers/LocaleController.php:250 -msgid "Fri" -msgstr "周五" +#: airtime_mvc/application/views/scripts/form/login.phtml:34 +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 +#: airtime_mvc/application/views/scripts/form/login.phtml:36 +msgid "Reset password" +msgstr "重置密码" -#: airtime_mvc/application/forms/AddShowRepeats.php:41 -#: airtime_mvc/application/controllers/LocaleController.php:251 -msgid "Sat" -msgstr "周六" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 +msgid "Register Airtime" +msgstr "注册Airtime" -#: airtime_mvc/application/forms/AddShowRepeats.php:47 -msgid "Repeat By:" -msgstr "重复类型:" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help Airtime improve by letting us know how you are using it. This info will " +"be collected regularly in order to enhance your user experience.%sClick " +"'Yes, help Airtime' and we'll make sure the features you use are constantly " +"improving." +msgstr "" +"通过告诉我们您使用Airtime的方式,可以帮助我们改进Airtime。这些信息会周期性的" +"收集起来,并且提高您的用户体验。%s点击‘是的,帮助Airtime’,就能让我们确保你所" +"使用的功能持续地得到改进。" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the month" -msgstr "按月的同一日期" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:25 +#, php-format +msgid "" +"Click the box below to advertise your station on %sSourcefabric.org%s. In " +"order to promote your station, 'Send support feedback' must be enabled. This " +"data will be collected in addition to the support feedback." +msgstr "" +"勾选下面的选项,就可以在%sSourcefabric.org%s上推广您的电台。前提是‘发送支持反" +"馈’选项已经启用。这些数据将会被收集起来以作为支持反馈的信息。" -#: airtime_mvc/application/forms/AddShowRepeats.php:50 -msgid "day of the week" -msgstr "一个星期的同一日子" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:178 +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 +msgid "Terms and Conditions" +msgstr "使用条款" -#: airtime_mvc/application/forms/AddShowRepeats.php:69 -msgid "No End?" -msgstr "无休止?" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 +msgid "Input Stream Settings" +msgstr "输入流设置" -#: airtime_mvc/application/forms/AddShowRepeats.php:106 -msgid "End date must be after start date" -msgstr "结束日期应晚于开始日期" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 +msgid "Master Source Connection URL:" +msgstr "主输入流的链接地址:" -#: airtime_mvc/application/forms/AddShowRepeats.php:113 -msgid "Please select a repeat day" -msgstr "请选择在哪一天重复" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 +msgid "Override" +msgstr "覆盖" -#: airtime_mvc/application/forms/PasswordChange.php:28 -msgid "Confirm new password" -msgstr "确认新密码" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "OK" +msgstr "确定" -#: airtime_mvc/application/forms/PasswordChange.php:36 -msgid "Password confirmation does not match your password." -msgstr "新密码不匹配" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 +msgid "RESET" +msgstr "重置" -#: airtime_mvc/application/forms/PasswordChange.php:43 -msgid "Get new password" -msgstr "获取新密码" +#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 +msgid "Show Source Connection URL:" +msgstr "节目定制输入流的链接地址:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 -#: airtime_mvc/application/models/Block.php:1340 -msgid "Select criteria" -msgstr "选择属性" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 +msgid "Smart Block Options" +msgstr "智能模块选项" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:49 -#: airtime_mvc/application/controllers/LocaleController.php:66 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:8 -#: airtime_mvc/application/models/Block.php:1341 -#: airtime_mvc/application/services/HistoryService.php:1110 -msgid "Album" -msgstr "专辑" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 +msgid "or" +msgstr "或" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 -#: airtime_mvc/application/models/Block.php:1342 -msgid "Bit Rate (Kbps)" -msgstr "比特率(Kbps)" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 +msgid "and" +msgstr "和" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 -#: airtime_mvc/application/controllers/LocaleController.php:68 -#: airtime_mvc/application/models/Block.php:1343 -msgid "BPM" -msgstr "每分钟拍子数" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 +msgid " to " +msgstr "到" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:52 -#: airtime_mvc/application/controllers/LocaleController.php:69 -#: airtime_mvc/application/models/Block.php:1344 -#: airtime_mvc/application/services/HistoryService.php:1115 -#: airtime_mvc/application/services/HistoryService.php:1169 -msgid "Composer" -msgstr "作曲" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 +msgid "files meet the criteria" +msgstr "个文件符合条件" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:53 -#: airtime_mvc/application/controllers/LocaleController.php:70 -#: airtime_mvc/application/models/Block.php:1345 -#: airtime_mvc/application/services/HistoryService.php:1120 -msgid "Conductor" -msgstr "指挥" +#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 +msgid "file meet the criteria" +msgstr "个文件符合条件" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:54 -#: airtime_mvc/application/controllers/LocaleController.php:71 -#: airtime_mvc/application/models/Block.php:1346 -#: airtime_mvc/application/services/HistoryService.php:1117 -#: airtime_mvc/application/services/HistoryService.php:1170 -msgid "Copyright" -msgstr "版权" +#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 +msgid "Repeat Days:" +msgstr "重复天数:" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:65 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:7 -#: airtime_mvc/application/models/Block.php:1349 -#: airtime_mvc/application/services/HistoryService.php:1109 -#: airtime_mvc/application/services/HistoryService.php:1149 -#: airtime_mvc/application/services/HistoryService.php:1166 -msgid "Creator" -msgstr "作者" +#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 +msgid "Filter History" +msgstr "历史记录过滤" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 -#: airtime_mvc/application/controllers/LocaleController.php:72 -#: airtime_mvc/application/models/Block.php:1350 -msgid "Encoded By" -msgstr "编曲" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:353 +#: airtime_mvc/application/controllers/LocaleController.php:381 +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:379 +msgid "Close" +msgstr "关闭" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:60 -#: airtime_mvc/application/controllers/LocaleController.php:74 -#: airtime_mvc/application/models/Block.php:1352 -#: airtime_mvc/application/services/HistoryService.php:1116 -msgid "ISRC" -msgstr "ISRC码" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Add this show" +msgstr "添加此节目" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:61 -#: airtime_mvc/application/controllers/LocaleController.php:75 -#: airtime_mvc/application/models/Block.php:1353 -#: airtime_mvc/application/services/HistoryService.php:1114 -msgid "Label" -msgstr "标签" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 +msgid "Update show" +msgstr "更新节目" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:62 -#: airtime_mvc/application/controllers/LocaleController.php:76 -#: airtime_mvc/application/models/Block.php:1354 -#: airtime_mvc/application/services/HistoryService.php:1121 -msgid "Language" -msgstr "语种" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 +msgid "What" +msgstr "名称" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 -#: airtime_mvc/application/controllers/LocaleController.php:77 -#: airtime_mvc/application/models/Block.php:1355 -msgid "Last Modified" -msgstr "最近更新于" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 +msgid "When" +msgstr "时间" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 -#: airtime_mvc/application/controllers/LocaleController.php:78 -#: airtime_mvc/application/models/Block.php:1356 -msgid "Last Played" -msgstr "上次播放于" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 +msgid "Live Stream Input" +msgstr "输入流设置" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:65 -#: airtime_mvc/application/controllers/LocaleController.php:79 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:9 -#: airtime_mvc/application/models/Block.php:1357 -#: airtime_mvc/application/services/HistoryService.php:1111 -#: airtime_mvc/application/services/HistoryService.php:1168 -msgid "Length" -msgstr "时长" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 +msgid "Record & Rebroadcast" +msgstr "录制与重播" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 -#: airtime_mvc/application/controllers/LocaleController.php:80 -#: airtime_mvc/application/models/Block.php:1358 -msgid "Mime" -msgstr "MIME信息" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 +msgid "Who" +msgstr "管理和编辑" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:67 -#: airtime_mvc/application/controllers/LocaleController.php:81 -#: airtime_mvc/application/models/Block.php:1359 -#: airtime_mvc/application/services/HistoryService.php:1113 -msgid "Mood" +#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 +msgid "Style" msgstr "风格" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 -#: airtime_mvc/application/controllers/LocaleController.php:82 -#: airtime_mvc/application/models/Block.php:1360 -msgid "Owner" -msgstr "所有者" +#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:264 +#: airtime_mvc/application/controllers/LocaleController.php:262 +msgid "Start" +msgstr "开始" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 -#: airtime_mvc/application/controllers/LocaleController.php:83 -#: airtime_mvc/application/models/Block.php:1361 -msgid "Replay Gain" -msgstr "回放增益" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 +msgid "Stream Settings" +msgstr "流设定" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 -#: airtime_mvc/application/models/Block.php:1362 -msgid "Sample Rate (kHz)" -msgstr "样本率(KHz)" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:12 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 +msgid "Global Settings" +msgstr "全局设定" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:71 -#: airtime_mvc/application/controllers/LocaleController.php:64 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:6 -#: airtime_mvc/application/models/Block.php:1363 -#: airtime_mvc/application/services/HistoryService.php:1108 -#: airtime_mvc/application/services/HistoryService.php:1148 -#: airtime_mvc/application/services/HistoryService.php:1165 -msgid "Title" -msgstr "标题" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:87 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 +msgid "dB" +msgstr "分贝" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 -#: airtime_mvc/application/controllers/LocaleController.php:85 -#: airtime_mvc/application/models/Block.php:1364 -msgid "Track Number" -msgstr "曲目" +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:106 +#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 +msgid "Output Stream Settings" +msgstr "输出流设定" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 -#: airtime_mvc/application/controllers/LocaleController.php:86 -#: airtime_mvc/application/models/Block.php:1365 -msgid "Uploaded" -msgstr "上传于" +#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 +#: airtime_mvc/application/controllers/LocaleController.php:156 +#: airtime_mvc/application/controllers/LocaleController.php:154 +msgid "Manage Media Folders" +msgstr "管理媒体文件夹" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 -#: airtime_mvc/application/controllers/LocaleController.php:87 -#: airtime_mvc/application/models/Block.php:1366 -msgid "Website" -msgstr "网址" +#: airtime_mvc/application/views/scripts/error/error.phtml:6 +msgid "Zend Framework Default Application" +msgstr "Zend框架默认程序" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:75 -#: airtime_mvc/application/controllers/LocaleController.php:88 -#: airtime_mvc/application/models/Block.php:1367 -#: airtime_mvc/application/services/HistoryService.php:1118 -msgid "Year" -msgstr "年代" +#: airtime_mvc/application/views/scripts/error/error.phtml:10 +msgid "Page not found!" +msgstr "页面不存在!" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 -#: airtime_mvc/application/controllers/LocaleController.php:139 -#: airtime_mvc/application/models/Block.php:1371 -msgid "Select modifier" -msgstr "选择操作符" +#: airtime_mvc/application/views/scripts/error/error.phtml:11 +msgid "Looks like the page you were looking for doesn't exist!" +msgstr "你所寻找的页面不存在!" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 -#: airtime_mvc/application/controllers/LocaleController.php:140 -#: airtime_mvc/application/models/Block.php:1372 -msgid "contains" -msgstr "包含" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 +msgid "Log Sheet Templates" +msgstr "历史记录表单模板" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 -#: airtime_mvc/application/controllers/LocaleController.php:141 -#: airtime_mvc/application/models/Block.php:1373 -msgid "does not contain" -msgstr "不包含" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 +msgid "No Log Sheet Templates" +msgstr "无历史记录表单模板" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 -#: airtime_mvc/application/controllers/LocaleController.php:142 -#: airtime_mvc/application/models/Block.php:1374 -#: airtime_mvc/application/models/Block.php:1378 -msgid "is" -msgstr "是" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 +#: airtime_mvc/application/controllers/LocaleController.php:388 +#: airtime_mvc/application/controllers/LocaleController.php:386 +msgid "Set Default" +msgstr "设为默认" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 -#: airtime_mvc/application/controllers/LocaleController.php:143 -#: airtime_mvc/application/models/Block.php:1375 -#: airtime_mvc/application/models/Block.php:1379 -msgid "is not" -msgstr "不是" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 +msgid "New Log Sheet Template" +msgstr "新建历史记录模板" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 -#: airtime_mvc/application/controllers/LocaleController.php:144 -#: airtime_mvc/application/models/Block.php:1376 -msgid "starts with" -msgstr "起始于" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 +msgid "File Summary Templates" +msgstr "文件播放记录模板列表" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 -#: airtime_mvc/application/controllers/LocaleController.php:145 -#: airtime_mvc/application/models/Block.php:1377 -msgid "ends with" -msgstr "结束于" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 +msgid "No File Summary Templates" +msgstr "无文件播放记录模板" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 -#: airtime_mvc/application/controllers/LocaleController.php:146 -#: airtime_mvc/application/models/Block.php:1380 -msgid "is greater than" -msgstr "大于" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 +msgid "New File Summary Template" +msgstr "新建文件播放记录模板" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 -#: airtime_mvc/application/controllers/LocaleController.php:147 -#: airtime_mvc/application/models/Block.php:1381 -msgid "is less than" -msgstr "小于" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 +msgid "Creating File Summary Template" +msgstr "创建文件播放记录模板" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 -#: airtime_mvc/application/controllers/LocaleController.php:148 -#: airtime_mvc/application/models/Block.php:1382 -msgid "is in the range" -msgstr "处于" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 +msgid "Creating Log Sheet Template" +msgstr "创建历史记录表单模板" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 -msgid "hours" -msgstr "小时" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:9 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:153 +msgid "Name" +msgstr "名字" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 -msgid "minutes" -msgstr "分钟" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 +msgid "Add more elements" +msgstr "增加更多元素" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 -#: airtime_mvc/application/models/Block.php:333 -msgid "items" -msgstr "个数" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 +msgid "Add New Field" +msgstr "添加新项目" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 -msgid "Set smart block type:" -msgstr "设置智能模块类型:" +#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 +msgid "Set Default Template" +msgstr "设为默认模板" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 -msgid "Static" -msgstr "静态" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 +msgid "New password" +msgstr "新密码" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 -msgid "Dynamic" -msgstr "动态" +#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 +msgid "Please enter and confirm your new password in the fields below." +msgstr "请再次输入你的新密码。" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 -msgid "Allow Repeat Tracks:" -msgstr "允许重复选择歌曲:" +#: airtime_mvc/application/views/scripts/login/index.phtml:3 +#: airtime_mvc/application/forms/Login.php:65 +#: airtime_mvc/application/forms/Login.php:67 +msgid "Login" +msgstr "登录" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 -msgid "Limit to" -msgstr "限制在" +#: airtime_mvc/application/views/scripts/login/index.phtml:7 +msgid "" +"Welcome to the online Airtime demo! You can log in using the username " +"'admin' and the password 'admin'." +msgstr "" +"欢迎来到在线Airtime演示!你可以用‘admin’和‘admin’作为用户名和密码登录。" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 -msgid "Generate playlist content and save criteria" -msgstr "保存条件设置并生成播放列表内容" +#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 +msgid "" +"Please enter your account e-mail address. You will receive a link to create " +"a new password via e-mail." +msgstr "" +"请输入你帐号的邮件地址,然后你将收到一封邮件,其中有一个链接,用来创建你的新" +"密码。" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 -msgid "Generate" -msgstr "开始生成" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 +msgid "Email sent" +msgstr "邮件已发送" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 -msgid "Shuffle playlist content" -msgstr "随机打乱歌曲次序" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 +msgid "An email has been sent" +msgstr "邮件已经发出" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:334 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle" -msgstr "随机" +#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 +msgid "Back to login screen" +msgstr "返回登录页面" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 -msgid "Limit cannot be empty or smaller than 0" -msgstr "限制的设置不能比0小" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 +msgid "Log Sheet" +msgstr "历史记录表单" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 -msgid "Limit cannot be more than 24 hrs" -msgstr "限制的设置不能大于24小时" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 +msgid "File Summary" +msgstr "文件播放记录" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 -msgid "The value should be an integer" -msgstr "值只能为整数" +#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 +msgid "Show Summary" +msgstr "节目播放记录" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 -msgid "500 is the max item limit value you can set" -msgstr "最多只能允许500条内容" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 +msgid "previous" +msgstr "往前" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 -msgid "You must select Criteria and Modifier" -msgstr "条件和操作符不能为空" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 +msgid "play" +msgstr "播放" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 -msgid "'Length' should be in '00:00:00' format" -msgstr "‘长度’格式应该为‘00:00:00’" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 +msgid "pause" +msgstr "暂停" + +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 +msgid "next" +msgstr "往后" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 -#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 -msgid "" -"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " -"00:00:00)" -msgstr "时间格式错误,应该为形如0000-00-00 或 0000-00-00 00:00:00的格式" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 +msgid "stop" +msgstr "停止" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 -msgid "The value has to be numeric" -msgstr "应该为数字" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 +msgid "max volume" +msgstr "最大音量" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 -msgid "The value should be less then 2147483648" -msgstr "不能大于2147483648" +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 +msgid "Update Required" +msgstr "需要更新升级" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 #, php-format -msgid "The value should be less than %s characters" -msgstr "不能小于%s个字符" +msgid "" +"To play the media you will need to either update your browser to a recent " +"version or update your %sFlash plugin%s." +msgstr "" +"想要播放媒体,需要更新你的浏览器到最新的版本,或者更新你的%sFalsh插件%s。" -#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 -msgid "Value cannot be empty" -msgstr "不能为空" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 +msgid "Service" +msgstr "服务名称" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 -msgid "Auto Switch Off" -msgstr "当输入流断开时自动关闭" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 +msgid "Uptime" +msgstr "在线时间" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 -msgid "Auto Switch On" -msgstr "当输入流连接时自动打开" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 +msgid "CPU" +msgstr "处理器" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 -msgid "Switch Transition Fade (s)" -msgstr "切换时的淡入淡出效果(秒)" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 +msgid "Memory" +msgstr "内存" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 -msgid "enter a time in seconds 00{.000000}" -msgstr "请输入秒数00{.000000}" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +msgid "Airtime Version" +msgstr "Airtime版本" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 -msgid "Master Username" -msgstr "主输入流的用户名" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 +msgid "Disk Space" +msgstr "磁盘空间" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 -msgid "Master Password" -msgstr "主输入流的密码" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 +msgid "Manage Users" +msgstr "用户管理" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 -msgid "Master Source Connection URL" -msgstr "主输入流的链接地址" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 +msgid "New User" +msgstr "新建用户" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 -msgid "Show Source Connection URL" -msgstr "节目定制输入流的链接地址" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 +msgid "id" +msgstr "编号" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 -msgid "Master Source Port" -msgstr "主输入流的端口" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:18 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:183 +#: airtime_mvc/application/forms/PasswordRestore.php:25 +msgid "Username" +msgstr "用户名" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 -msgid "Master Source Mount Point" -msgstr "主输入流的加载点" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 +msgid "First Name" +msgstr "名" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 -msgid "Show Source Port" -msgstr "节目定制输入流的端口" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 +msgid "Last Name" +msgstr "姓" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 -msgid "Show Source Mount Point" -msgstr "节目定制输入流的加载点" +#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 +msgid "User Type" +msgstr "用户类型" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 -msgid "You cannot use same port as Master DJ port." -msgstr "端口设置不能重复" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 +msgid "Previous:" +msgstr "之前的:" -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 -#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 -#, php-format -msgid "Port %s is not available" -msgstr "%s端口已被占用" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 +msgid "Next:" +msgstr "之后的:" -#: airtime_mvc/application/forms/SupportSettings.php:34 -#: airtime_mvc/application/forms/RegisterAirtime.php:39 -msgid "Phone:" -msgstr "电话:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 +msgid "Source Streams" +msgstr "输入流" -#: airtime_mvc/application/forms/SupportSettings.php:57 -#: airtime_mvc/application/forms/RegisterAirtime.php:62 -msgid "Station Web Site:" -msgstr "电台网址:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 +msgid "Master Source" +msgstr "主输入流" -#: airtime_mvc/application/forms/SupportSettings.php:68 -#: airtime_mvc/application/forms/RegisterAirtime.php:73 -msgid "Country:" -msgstr "国家:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 +msgid "Show Source" +msgstr "节目定制的输入流" -#: airtime_mvc/application/forms/SupportSettings.php:79 -#: airtime_mvc/application/forms/RegisterAirtime.php:84 -msgid "City:" -msgstr "城市:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 +msgid "Scheduled Play" +msgstr "预先安排的节目流" -#: airtime_mvc/application/forms/SupportSettings.php:91 -#: airtime_mvc/application/forms/RegisterAirtime.php:96 -msgid "Station Description:" -msgstr "电台描述:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 +msgid "ON AIR" +msgstr "直播中" -#: airtime_mvc/application/forms/SupportSettings.php:101 -#: airtime_mvc/application/forms/RegisterAirtime.php:106 -msgid "Station Logo:" -msgstr "电台标志:" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 +msgid "Listen" +msgstr "收听" -#: airtime_mvc/application/forms/SupportSettings.php:112 -#: airtime_mvc/application/forms/RegisterAirtime.php:116 -#: airtime_mvc/application/controllers/LocaleController.php:330 -msgid "Send support feedback" -msgstr "提交反馈意见" +#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 +msgid "Station time" +msgstr "电台当前时间" -#: airtime_mvc/application/forms/SupportSettings.php:122 -#: airtime_mvc/application/forms/RegisterAirtime.php:126 -#, php-format -msgid "Promote my station on %s" -msgstr "" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 +msgid "Your trial expires in" +msgstr "你的试用天数还剩" -#: airtime_mvc/application/forms/SupportSettings.php:150 -#: airtime_mvc/application/forms/RegisterAirtime.php:151 -#, php-format -msgid "By checking this box, I agree to %s's %sprivacy policy%s." -msgstr "" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:6 +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:15 +msgid "days" +msgstr "天" -#: airtime_mvc/application/forms/SupportSettings.php:174 -#: airtime_mvc/application/forms/RegisterAirtime.php:169 -msgid "You have to agree to privacy policy." -msgstr "请先接受隐私策略" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "Purchase your copy of Airtime" +msgstr "购买你使用的Airtime" -#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 -#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 -msgid "Value is required and can't be empty" -msgstr "不能为空" +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 +msgid "My Account" +msgstr "我的账户" -#: airtime_mvc/application/forms/EditHistoryItem.php:32 -#: airtime_mvc/application/services/HistoryService.php:1146 -msgid "Start Time" -msgstr "开始时间" +#: airtime_mvc/application/forms/Login.php:19 +#: airtime_mvc/application/forms/EditUser.php:32 +#: airtime_mvc/application/forms/AddUser.php:25 +#: airtime_mvc/application/forms/AddUser.php:29 +#: airtime_mvc/application/forms/Login.php:23 +#: airtime_mvc/application/forms/EditUser.php:36 +msgid "Username:" +msgstr "用户名:" -#: airtime_mvc/application/forms/EditHistoryItem.php:44 -#: airtime_mvc/application/services/HistoryService.php:1147 -msgid "End Time" -msgstr "结束时间" +#: airtime_mvc/application/forms/Login.php:34 +#: airtime_mvc/application/forms/EditUser.php:43 +#: airtime_mvc/application/forms/AddUser.php:34 +#: airtime_mvc/application/forms/AddUser.php:38 +#: airtime_mvc/application/forms/Login.php:38 +#: airtime_mvc/application/forms/EditUser.php:47 +msgid "Password:" +msgstr "密码:" -#: airtime_mvc/application/forms/EditHistoryItem.php:57 -#: airtime_mvc/application/controllers/LocaleController.php:389 -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:53 -msgid "No Show" -msgstr "无节目" +#: airtime_mvc/application/forms/Login.php:83 +#: airtime_mvc/application/forms/Login.php:86 +msgid "Type the characters you see in the picture below." +msgstr "请输入图像里的字符。" -#: airtime_mvc/application/forms/AddShowRR.php:10 -msgid "Record from Line In?" -msgstr "从线路输入录制?" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:31 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:100 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:123 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:144 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:174 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:186 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:198 +#: airtime_mvc/application/forms/StreamSettingSubForm.php:210 +#: airtime_mvc/application/forms/DateRange.php:35 +#: airtime_mvc/application/forms/DateRange.php:63 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:26 +#: airtime_mvc/application/forms/ShowBuilder.php:37 +#: airtime_mvc/application/forms/ShowBuilder.php:65 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:99 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:118 +msgid "Invalid character entered" +msgstr "输入的字符不合要求" + +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:71 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:66 +msgid "Day must be specified" +msgstr "请指定天" + +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:76 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:71 +msgid "Time must be specified" +msgstr "请指定时间" -#: airtime_mvc/application/forms/AddShowRR.php:16 -msgid "Rebroadcast?" -msgstr "重播?" +#: airtime_mvc/application/forms/AddShowRebroadcastDates.php:103 +#: airtime_mvc/application/forms/AddShowAbsoluteRebroadcastDates.php:94 +msgid "Must wait at least 1 hour to rebroadcast" +msgstr "至少间隔一个小时" #: airtime_mvc/application/forms/AddShowLiveStream.php:10 -#, php-format -msgid "Use %s Authentication:" -msgstr "" +msgid "Use Airtime Authentication:" +msgstr "使用Airtime的用户认证:" #: airtime_mvc/application/forms/AddShowLiveStream.php:16 msgid "Use Custom Authentication:" @@ -1162,53 +1564,101 @@ msgstr "请填写用户名" msgid "Password field cannot be empty." msgstr "请填写密码" -#: airtime_mvc/application/forms/PasswordRestore.php:14 -msgid "E-mail" -msgstr "电邮地址" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:48 +msgid "Enabled:" +msgstr "启用:" -#: airtime_mvc/application/forms/PasswordRestore.php:36 -msgid "Restore password" -msgstr "找回密码" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:57 +msgid "Stream Type:" +msgstr "流格式:" -#: airtime_mvc/application/forms/StreamSetting.php:22 -msgid "Hardware Audio Output" -msgstr "硬件声音输出" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:77 +msgid "Service Type:" +msgstr "服务类型:" -#: airtime_mvc/application/forms/StreamSetting.php:33 -msgid "Output Type" -msgstr "输出类型" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:87 +msgid "Channels:" +msgstr "声道:" -#: airtime_mvc/application/forms/StreamSetting.php:44 -msgid "Icecast Vorbis Metadata" -msgstr "Icecast的Vorbis元数据" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "1 - Mono" +msgstr "1 - 单声道" -#: airtime_mvc/application/forms/StreamSetting.php:54 -msgid "Stream Label:" -msgstr "流标签:" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:88 +msgid "2 - Stereo" +msgstr "2 - 立体声" -#: airtime_mvc/application/forms/StreamSetting.php:55 -msgid "Artist - Title" -msgstr "歌手 - 歌名" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:97 +msgid "Server" +msgstr "服务器" -#: airtime_mvc/application/forms/StreamSetting.php:56 -msgid "Show - Artist - Title" -msgstr "节目 - 歌手 - 歌名" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:109 +#: airtime_mvc/application/forms/EmailServerPreferences.php:100 +msgid "Port" +msgstr "端口号" -#: airtime_mvc/application/forms/StreamSetting.php:57 -msgid "Station name - Show name" -msgstr "电台名 - 节目名" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:112 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:90 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:109 +msgid "Only numbers are allowed." +msgstr "只允许输入数字" -#: airtime_mvc/application/forms/StreamSetting.php:63 -msgid "Off Air Metadata" -msgstr "非直播状态下的输出流元数据" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:120 +#: airtime_mvc/application/forms/PasswordChange.php:17 +#: airtime_mvc/application/forms/EmailServerPreferences.php:82 +msgid "Password" +msgstr "密码" -#: airtime_mvc/application/forms/StreamSetting.php:69 -msgid "Enable Replay Gain" -msgstr "启用回放增益" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:141 +msgid "URL" +msgstr "链接地址" -#: airtime_mvc/application/forms/StreamSetting.php:75 -msgid "Replay Gain Modifier" -msgstr "回放增益调整" +#: airtime_mvc/application/forms/StreamSettingSubForm.php:171 +msgid "Mount Point" +msgstr "加载点" + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:195 +msgid "Admin User" +msgstr "管理员用户名" + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:207 +msgid "Admin Password" +msgstr "管理员密码" + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:161 +msgid "Getting information from the server..." +msgstr "从服务器加载中..." + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:232 +msgid "Server cannot be empty." +msgstr "请填写“服务器”。" + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:237 +msgid "Port cannot be empty." +msgstr "请填写“端口”。" + +#: airtime_mvc/application/forms/StreamSettingSubForm.php:243 +msgid "Mount cannot be empty with Icecast server." +msgstr "请填写“加载点”。" + +#: airtime_mvc/application/forms/WatchedDirPreferences.php:14 +msgid "Import Folder:" +msgstr "导入文件夹:" + +#: airtime_mvc/application/forms/WatchedDirPreferences.php:25 +msgid "Watched Folders:" +msgstr "监控文件夹:" + +#: airtime_mvc/application/forms/WatchedDirPreferences.php:40 +msgid "Not a valid Directory" +msgstr "无效的路径" + +#: airtime_mvc/application/forms/helpers/ValidationTypes.php:8 +#: airtime_mvc/application/forms/customvalidators/ConditionalNotEmpty.php:26 +msgid "Value is required and can't be empty" +msgstr "不能为空" #: airtime_mvc/application/forms/helpers/ValidationTypes.php:19 msgid "" @@ -1235,84 +1685,142 @@ msgstr "'%value%' 应该介于 '%min%' 和 '%max%'之间" msgid "Passwords do not match" msgstr "两次密码输入不匹配" -#: airtime_mvc/application/forms/AddShowWhen.php:16 -msgid "'%value%' does not fit the time format 'HH:mm'" -msgstr "'%value%' 不符合形如 '小时:分'的格式要求,例如,‘01:59’" +#: airtime_mvc/application/forms/AddShowRR.php:10 +msgid "Record from Line In?" +msgstr "从线路输入录制?" -#: airtime_mvc/application/forms/AddShowWhen.php:22 -msgid "Date/Time Start:" -msgstr "开始日期/时间" +#: airtime_mvc/application/forms/AddShowRR.php:16 +msgid "Rebroadcast?" +msgstr "重播?" -#: airtime_mvc/application/forms/AddShowWhen.php:49 -msgid "Date/Time End:" -msgstr "结束日期/时间" +#: airtime_mvc/application/forms/AddShowStyle.php:10 +msgid "Background Colour:" +msgstr "背景色:" -#: airtime_mvc/application/forms/AddShowWhen.php:74 -msgid "Duration:" -msgstr "时长:" +#: airtime_mvc/application/forms/AddShowStyle.php:29 +msgid "Text Colour:" +msgstr "文字颜色:" -#: airtime_mvc/application/forms/AddShowWhen.php:83 -msgid "Timezone:" -msgstr "时区" +#: airtime_mvc/application/forms/PasswordRestore.php:14 +msgid "E-mail" +msgstr "电邮地址" -#: airtime_mvc/application/forms/AddShowWhen.php:92 -msgid "Repeats?" -msgstr "是否设置为系列节目?" +#: airtime_mvc/application/forms/PasswordRestore.php:36 +msgid "Restore password" +msgstr "找回密码" -#: airtime_mvc/application/forms/AddShowWhen.php:124 -msgid "Cannot create show in the past" -msgstr "节目不能设置为过去的时间" +#: airtime_mvc/application/forms/PasswordRestore.php:46 +#: airtime_mvc/application/forms/EditHistory.php:141 +#: airtime_mvc/application/forms/EditAudioMD.php:145 +#: airtime_mvc/application/controllers/LocaleController.php:286 +#: airtime_mvc/application/controllers/LocaleController.php:309 +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:307 +msgid "Cancel" +msgstr "取消" -#: airtime_mvc/application/forms/AddShowWhen.php:132 -msgid "Cannot modify start date/time of the show that is already started" -msgstr "节目已经启动,无法修改开始时间/日期" +#: airtime_mvc/application/forms/EditUser.php:52 +#: airtime_mvc/application/forms/AddUser.php:42 +#: airtime_mvc/application/forms/AddUser.php:46 +#: airtime_mvc/application/forms/EditUser.php:56 +msgid "Verify Password:" +msgstr "再次输入密码:" -#: airtime_mvc/application/forms/AddShowWhen.php:141 -#: airtime_mvc/application/models/Show.php:278 -msgid "End date/time cannot be in the past" -msgstr "节目结束的时间或日期不能设置为过去的时间" +#: airtime_mvc/application/forms/EditUser.php:62 +#: airtime_mvc/application/forms/AddUser.php:51 +#: airtime_mvc/application/forms/AddUser.php:55 +#: airtime_mvc/application/forms/EditUser.php:66 +msgid "Firstname:" +msgstr "名:" -#: airtime_mvc/application/forms/AddShowWhen.php:149 -msgid "Cannot have duration < 0m" -msgstr "节目时长不能小于0" +#: airtime_mvc/application/forms/EditUser.php:70 +#: airtime_mvc/application/forms/AddUser.php:57 +#: airtime_mvc/application/forms/AddUser.php:61 +#: airtime_mvc/application/forms/EditUser.php:74 +msgid "Lastname:" +msgstr "姓:" -#: airtime_mvc/application/forms/AddShowWhen.php:153 -msgid "Cannot have duration 00h 00m" -msgstr "节目时长不能为0" +#: airtime_mvc/application/forms/EditUser.php:78 +#: airtime_mvc/application/forms/RegisterAirtime.php:51 +#: airtime_mvc/application/forms/AddUser.php:63 +#: airtime_mvc/application/forms/SupportSettings.php:46 +#: airtime_mvc/application/forms/AddUser.php:67 +#: airtime_mvc/application/forms/EditUser.php:82 +msgid "Email:" +msgstr "电邮:" -#: airtime_mvc/application/forms/AddShowWhen.php:160 -msgid "Cannot have duration greater than 24h" -msgstr "节目时长不能超过24小时" +#: airtime_mvc/application/forms/EditUser.php:89 +#: airtime_mvc/application/forms/AddUser.php:72 +#: airtime_mvc/application/forms/AddUser.php:76 +#: airtime_mvc/application/forms/EditUser.php:93 +msgid "Mobile Phone:" +msgstr "手机:" -#: airtime_mvc/application/forms/AddShowWhen.php:287 -#: airtime_mvc/application/forms/AddShowWhen.php:301 -#: airtime_mvc/application/forms/AddShowWhen.php:325 -#: airtime_mvc/application/forms/AddShowWhen.php:331 -#: airtime_mvc/application/forms/AddShowWhen.php:336 -#: airtime_mvc/application/services/CalendarService.php:304 -msgid "Cannot schedule overlapping shows" -msgstr "节目时间设置与其他节目有冲突" +#: airtime_mvc/application/forms/EditUser.php:97 +#: airtime_mvc/application/forms/AddUser.php:78 +#: airtime_mvc/application/forms/AddUser.php:82 +#: airtime_mvc/application/forms/EditUser.php:101 +msgid "Skype:" +msgstr "Skype帐号:" + +#: airtime_mvc/application/forms/EditUser.php:105 +#: airtime_mvc/application/forms/AddUser.php:84 +#: airtime_mvc/application/forms/AddUser.php:88 +#: airtime_mvc/application/forms/EditUser.php:109 +msgid "Jabber:" +msgstr "Jabber帐号:" + +#: airtime_mvc/application/forms/EditUser.php:121 +#: airtime_mvc/application/forms/EditUser.php:125 +msgid "Interface Timezone:" +msgstr "用户界面使用的时区:" + +#: airtime_mvc/application/forms/EditUser.php:135 +#: airtime_mvc/application/forms/AddUser.php:116 +#: airtime_mvc/application/forms/AddUser.php:120 +#: airtime_mvc/application/forms/EditUser.php:139 +msgid "Login name is not unique." +msgstr "帐号重名。" + +#: airtime_mvc/application/forms/StreamSetting.php:22 +msgid "Hardware Audio Output" +msgstr "硬件声音输出" + +#: airtime_mvc/application/forms/StreamSetting.php:33 +msgid "Output Type" +msgstr "输出类型" + +#: airtime_mvc/application/forms/StreamSetting.php:44 +msgid "Icecast Vorbis Metadata" +msgstr "Icecast的Vorbis元数据" + +#: airtime_mvc/application/forms/StreamSetting.php:54 +msgid "Stream Label:" +msgstr "流标签:" -#: airtime_mvc/application/forms/AddShowWhat.php:26 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:33 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:146 -msgid "Name:" -msgstr "名字:" +#: airtime_mvc/application/forms/StreamSetting.php:55 +msgid "Artist - Title" +msgstr "歌手 - 歌名" -#: airtime_mvc/application/forms/AddShowWhat.php:30 -msgid "Untitled Show" -msgstr "未命名节目" +#: airtime_mvc/application/forms/StreamSetting.php:56 +msgid "Show - Artist - Title" +msgstr "节目 - 歌手 - 歌名" -#: airtime_mvc/application/forms/AddShowWhat.php:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:150 -msgid "URL:" -msgstr "链接地址:" +#: airtime_mvc/application/forms/StreamSetting.php:57 +msgid "Station name - Show name" +msgstr "电台名 - 节目名" -#: airtime_mvc/application/forms/AddShowWhat.php:54 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:40 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:149 -msgid "Description:" -msgstr "描述:" +#: airtime_mvc/application/forms/StreamSetting.php:63 +msgid "Off Air Metadata" +msgstr "非直播状态下的输出流元数据" + +#: airtime_mvc/application/forms/StreamSetting.php:69 +msgid "Enable Replay Gain" +msgstr "启用回放增益" + +#: airtime_mvc/application/forms/StreamSetting.php:75 +msgid "Replay Gain Modifier" +msgstr "回放增益调整" #: airtime_mvc/application/forms/SoundcloudPreferences.php:16 msgid "Automatically Upload Recorded Shows" @@ -1350,2258 +1858,2373 @@ msgstr "默认声音文件类型:" msgid "Original" msgstr "原版" -#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 -msgid "Remix" -msgstr "重编版" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 -msgid "Live" -msgstr "实况" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 -msgid "Recording" -msgstr "录制" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 -msgid "Spoken" -msgstr "谈话" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 -msgid "Podcast" -msgstr "播客" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 -msgid "Demo" -msgstr "小样" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 -msgid "Work in progress" -msgstr "未完成" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 -msgid "Stem" -msgstr "主干" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 -msgid "Loop" -msgstr "循环" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 -msgid "Sound Effect" -msgstr "声效" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 -msgid "One Shot Sample" -msgstr "样本" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 -msgid "Other" -msgstr "其他" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 -msgid "Default License:" -msgstr "默认版权策略:" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 -msgid "The work is in the public domain" -msgstr "公开" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 -msgid "All rights are reserved" -msgstr "版权所有" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 -msgid "Creative Commons Attribution" -msgstr "知识共享署名" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 -msgid "Creative Commons Attribution Noncommercial" -msgstr "知识共享署名-非商业应用" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 -msgid "Creative Commons Attribution No Derivative Works" -msgstr "知识共享署名-不允许衍生" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 -msgid "Creative Commons Attribution Share Alike" -msgstr "知识共享署名-相同方式共享" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 -msgid "Creative Commons Attribution Noncommercial Non Derivate Works" -msgstr "知识共享署名-非商业应用且不允许衍生" - -#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 -msgid "Creative Commons Attribution Noncommercial Share Alike" -msgstr "知识共享署名-非商业应用且相同方式共享" - -#: airtime_mvc/application/forms/EditUser.php:125 -msgid "Interface Timezone:" -msgstr "用户界面使用的时区:" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:17 -msgid "Enable System Emails (Password Reset)" -msgstr "为密码重置启用邮件功能" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:27 -msgid "Reset Password 'From' Email" -msgstr "密码重置邮件发送于" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:34 -msgid "Configure Mail Server" -msgstr "邮件服务器" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:43 -msgid "Requires Authentication" -msgstr "需要身份验证" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:53 -msgid "Mail Server" -msgstr "邮件服务器地址" - -#: airtime_mvc/application/forms/EmailServerPreferences.php:67 -msgid "Email Address" -msgstr "邮件地址" - -#: airtime_mvc/application/controllers/ListenerstatController.php:91 -msgid "" -"Please make sure admin user/password is correct on System->Streams page." -msgstr "请检查系统->媒体流设置中,管理员用户/密码的设置是否正确。" - -#: airtime_mvc/application/controllers/WebstreamController.php:29 -#: airtime_mvc/application/controllers/WebstreamController.php:33 -msgid "Untitled Webstream" -msgstr "未命名的网络流媒体" - -#: airtime_mvc/application/controllers/WebstreamController.php:138 -msgid "Webstream saved." -msgstr "网络流媒体已保存。" - -#: airtime_mvc/application/controllers/WebstreamController.php:146 -msgid "Invalid form values." -msgstr "无效的表格内容。" - -#: airtime_mvc/application/controllers/LoginController.php:35 -msgid "Please enter your user name and password" -msgstr "请输入用户名和密码" - -#: airtime_mvc/application/controllers/LoginController.php:77 -msgid "Wrong username or password provided. Please try again." -msgstr "用户名或密码错误,请重试。" - -#: airtime_mvc/application/controllers/LoginController.php:145 -msgid "" -"Email could not be sent. Check your mail server settings and ensure it has " -"been configured properly." -msgstr "邮件发送失败。请检查邮件服务器设置,并确定设置无误。" - -#: airtime_mvc/application/controllers/LoginController.php:148 -msgid "Given email not found." -msgstr "邮件地址没有找到。" - -#: airtime_mvc/application/controllers/ScheduleController.php:350 -#, php-format -msgid "Rebroadcast of show %s from %s at %s" -msgstr "节目%s是节目%s的重播,时间是%s" - -#: airtime_mvc/application/controllers/ScheduleController.php:624 -#: airtime_mvc/application/controllers/LibraryController.php:222 -msgid "Download" -msgstr "下载" - -#: airtime_mvc/application/controllers/UserController.php:76 -msgid "User added successfully!" -msgstr "用户已添加成功!" - -#: airtime_mvc/application/controllers/UserController.php:78 -msgid "User updated successfully!" -msgstr "用于已成功更新!" - -#: airtime_mvc/application/controllers/UserController.php:148 -msgid "Settings updated successfully!" -msgstr "设置更新成功!" - -#: airtime_mvc/application/controllers/ErrorController.php:17 -msgid "Page not found" -msgstr "页面不存在" - -#: airtime_mvc/application/controllers/ErrorController.php:22 -msgid "Application error" -msgstr "应用程序错误" - -#: airtime_mvc/application/controllers/LocaleController.php:30 -msgid "Recording:" -msgstr "录制:" - -#: airtime_mvc/application/controllers/LocaleController.php:31 -msgid "Master Stream" -msgstr "主输入源" - -#: airtime_mvc/application/controllers/LocaleController.php:32 -msgid "Live Stream" -msgstr "节目定制输入源" - -#: airtime_mvc/application/controllers/LocaleController.php:33 -msgid "Nothing Scheduled" -msgstr "没有安排节目内容" - -#: airtime_mvc/application/controllers/LocaleController.php:34 -msgid "Current Show:" -msgstr "当前节目:" - -#: airtime_mvc/application/controllers/LocaleController.php:35 -msgid "Current" -msgstr "当前的" - -#: airtime_mvc/application/controllers/LocaleController.php:37 -msgid "You are running the latest version" -msgstr "你已经在使用最新版" - -#: airtime_mvc/application/controllers/LocaleController.php:38 -msgid "New version available: " -msgstr "版本有更新:" - -#: airtime_mvc/application/controllers/LocaleController.php:39 -msgid "This version will soon be obsolete." -msgstr "这个版本即将过时。" - -#: airtime_mvc/application/controllers/LocaleController.php:40 -msgid "This version is no longer supported." -msgstr "这个版本即将停支持。" - -#: airtime_mvc/application/controllers/LocaleController.php:41 -msgid "Please upgrade to " -msgstr "请升级到" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:114 +msgid "Remix" +msgstr "重编版" -#: airtime_mvc/application/controllers/LocaleController.php:43 -msgid "Add to current playlist" -msgstr "添加到播放列表" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:115 +msgid "Live" +msgstr "实况" -#: airtime_mvc/application/controllers/LocaleController.php:44 -msgid "Add to current smart block" -msgstr "添加到只能模块" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:116 +msgid "Recording" +msgstr "录制" -#: airtime_mvc/application/controllers/LocaleController.php:45 -msgid "Adding 1 Item" -msgstr "添加1项" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:117 +msgid "Spoken" +msgstr "谈话" -#: airtime_mvc/application/controllers/LocaleController.php:46 -#, php-format -msgid "Adding %s Items" -msgstr "添加%s项" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:118 +msgid "Podcast" +msgstr "播客" -#: airtime_mvc/application/controllers/LocaleController.php:47 -msgid "You can only add tracks to smart blocks." -msgstr "智能模块只能添加声音文件。" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:119 +msgid "Demo" +msgstr "小样" -#: airtime_mvc/application/controllers/LocaleController.php:48 -#: airtime_mvc/application/controllers/PlaylistController.php:163 -msgid "You can only add tracks, smart blocks, and webstreams to playlists." -msgstr "播放列表只能添加声音文件,只能模块和网络流媒体。" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:120 +msgid "Work in progress" +msgstr "未完成" -#: airtime_mvc/application/controllers/LocaleController.php:51 -msgid "Please select a cursor position on timeline." -msgstr "请在右部的时间表视图中选择一个游标位置。" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:121 +msgid "Stem" +msgstr "主干" -#: airtime_mvc/application/controllers/LocaleController.php:55 -#: airtime_mvc/application/controllers/LibraryController.php:218 -msgid "Edit Metadata" -msgstr "编辑元数据" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:122 +msgid "Loop" +msgstr "循环" -#: airtime_mvc/application/controllers/LocaleController.php:56 -msgid "Add to selected show" -msgstr "添加到所选的节目" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:123 +msgid "Sound Effect" +msgstr "声效" -#: airtime_mvc/application/controllers/LocaleController.php:57 -msgid "Select" -msgstr "选择" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:124 +msgid "One Shot Sample" +msgstr "样本" -#: airtime_mvc/application/controllers/LocaleController.php:58 -msgid "Select this page" -msgstr "选择此页" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:125 +msgid "Other" +msgstr "其他" -#: airtime_mvc/application/controllers/LocaleController.php:59 -msgid "Deselect this page" -msgstr "取消整页" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:133 +msgid "Default License:" +msgstr "默认版权策略:" -#: airtime_mvc/application/controllers/LocaleController.php:60 -msgid "Deselect all" -msgstr "全部取消" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:137 +msgid "The work is in the public domain" +msgstr "公开" -#: airtime_mvc/application/controllers/LocaleController.php:61 -msgid "Are you sure you want to delete the selected item(s)?" -msgstr "确定删除选择的项?" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:138 +msgid "All rights are reserved" +msgstr "版权所有" -#: airtime_mvc/application/controllers/LocaleController.php:62 -msgid "Scheduled" -msgstr "已安排进日程" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:139 +msgid "Creative Commons Attribution" +msgstr "知识共享署名" -#: airtime_mvc/application/controllers/LocaleController.php:63 -msgid "Playlist / Block" -msgstr "播放列表 / 智能模块" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:140 +msgid "Creative Commons Attribution Noncommercial" +msgstr "知识共享署名-非商业应用" -#: airtime_mvc/application/controllers/LocaleController.php:67 -msgid "Bit Rate" -msgstr "比特率" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:141 +msgid "Creative Commons Attribution No Derivative Works" +msgstr "知识共享署名-不允许衍生" -#: airtime_mvc/application/controllers/LocaleController.php:84 -msgid "Sample Rate" -msgstr "样本率" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:142 +msgid "Creative Commons Attribution Share Alike" +msgstr "知识共享署名-相同方式共享" -#: airtime_mvc/application/controllers/LocaleController.php:89 -msgid "Loading..." -msgstr "加载中..." +#: airtime_mvc/application/forms/SoundcloudPreferences.php:143 +msgid "Creative Commons Attribution Noncommercial Non Derivate Works" +msgstr "知识共享署名-非商业应用且不允许衍生" -#: airtime_mvc/application/controllers/LocaleController.php:90 -#: airtime_mvc/application/controllers/LocaleController.php:390 -msgid "All" -msgstr "全部" +#: airtime_mvc/application/forms/SoundcloudPreferences.php:144 +msgid "Creative Commons Attribution Noncommercial Share Alike" +msgstr "知识共享署名-非商业应用且相同方式共享" -#: airtime_mvc/application/controllers/LocaleController.php:91 -msgid "Files" -msgstr "文件" +#: airtime_mvc/application/forms/GeneralPreferences.php:21 +#: airtime_mvc/application/forms/RegisterAirtime.php:30 +#: airtime_mvc/application/forms/SupportSettings.php:21 +msgid "Station Name" +msgstr "电台名称" -#: airtime_mvc/application/controllers/LocaleController.php:92 -msgid "Playlists" -msgstr "播放列表" +#: airtime_mvc/application/forms/GeneralPreferences.php:33 +msgid "Default Crossfade Duration (s):" +msgstr "默认混合淡入淡出效果(秒):" -#: airtime_mvc/application/controllers/LocaleController.php:93 -msgid "Smart Blocks" -msgstr "智能模块" +#: airtime_mvc/application/forms/GeneralPreferences.php:40 +#: airtime_mvc/application/forms/GeneralPreferences.php:59 +#: airtime_mvc/application/forms/GeneralPreferences.php:78 +msgid "enter a time in seconds 0{.0}" +msgstr "请输入秒数,格式为0{.0}" -#: airtime_mvc/application/controllers/LocaleController.php:94 -msgid "Web Streams" -msgstr "网络流媒体" +#: airtime_mvc/application/forms/GeneralPreferences.php:52 +msgid "Default Fade In (s):" +msgstr "默认淡入效果(秒):" -#: airtime_mvc/application/controllers/LocaleController.php:95 -msgid "Unknown type: " -msgstr "位置类型:" +#: airtime_mvc/application/forms/GeneralPreferences.php:71 +msgid "Default Fade Out (s):" +msgstr "默认淡出效果(秒):" -#: airtime_mvc/application/controllers/LocaleController.php:96 -msgid "Are you sure you want to delete the selected item?" -msgstr "确定删除所选项?" +#: airtime_mvc/application/forms/GeneralPreferences.php:89 +#, php-format +msgid "" +"Allow Remote Websites To Access \"Schedule\" Info?%s (Enable this to make " +"front-end widgets work.)" +msgstr "允许远程访问节目表信息?%s (此项启用后才能使用“小工具”,既widgets)" -#: airtime_mvc/application/controllers/LocaleController.php:97 -#: airtime_mvc/application/controllers/LocaleController.php:198 -msgid "Uploading in progress..." -msgstr "正在上传..." +#: airtime_mvc/application/forms/GeneralPreferences.php:90 +msgid "Disabled" +msgstr "禁用" -#: airtime_mvc/application/controllers/LocaleController.php:98 -msgid "Retrieving data from the server..." -msgstr "数据正在从服务器下载中..." +#: airtime_mvc/application/forms/GeneralPreferences.php:91 +msgid "Enabled" +msgstr "启用" -#: airtime_mvc/application/controllers/LocaleController.php:99 -msgid "The soundcloud id for this file is: " -msgstr "文件的SoundCloud编号是:" +#: airtime_mvc/application/forms/GeneralPreferences.php:97 +msgid "Default Interface Language" +msgstr "界面的默认语言" -#: airtime_mvc/application/controllers/LocaleController.php:100 -msgid "There was an error while uploading to soundcloud." -msgstr "文件上传到SoundCloud时发生错误" +#: airtime_mvc/application/forms/GeneralPreferences.php:105 +msgid "Station Timezone" +msgstr "系统使用的时区" -#: airtime_mvc/application/controllers/LocaleController.php:101 -msgid "Error code: " -msgstr "错误代码:" +#: airtime_mvc/application/forms/GeneralPreferences.php:113 +msgid "Week Starts On" +msgstr "一周开始于" -#: airtime_mvc/application/controllers/LocaleController.php:102 -msgid "Error msg: " -msgstr "错误信息:" +#: airtime_mvc/application/forms/GeneralPreferences.php:123 +#: airtime_mvc/application/controllers/LocaleController.php:240 +#: airtime_mvc/application/controllers/LocaleController.php:238 +msgid "Sunday" +msgstr "周日" -#: airtime_mvc/application/controllers/LocaleController.php:103 -msgid "Input must be a positive number" -msgstr "输入只能为正数" +#: airtime_mvc/application/forms/GeneralPreferences.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:241 +#: airtime_mvc/application/controllers/LocaleController.php:239 +msgid "Monday" +msgstr "周一" -#: airtime_mvc/application/controllers/LocaleController.php:104 -msgid "Input must be a number" -msgstr "只允许数字输入" +#: airtime_mvc/application/forms/GeneralPreferences.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:242 +#: airtime_mvc/application/controllers/LocaleController.php:240 +msgid "Tuesday" +msgstr "周二" -#: airtime_mvc/application/controllers/LocaleController.php:105 -msgid "Input must be in the format: yyyy-mm-dd" -msgstr "输入格式应为:年-月-日(yyyy-mm-dd)" +#: airtime_mvc/application/forms/GeneralPreferences.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:243 +#: airtime_mvc/application/controllers/LocaleController.php:241 +msgid "Wednesday" +msgstr "周三" -#: airtime_mvc/application/controllers/LocaleController.php:106 -msgid "Input must be in the format: hh:mm:ss.t" -msgstr "输入格式应为:时:分:秒 (hh:mm:ss.t)" +#: airtime_mvc/application/forms/GeneralPreferences.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:244 +#: airtime_mvc/application/controllers/LocaleController.php:242 +msgid "Thursday" +msgstr "周四" -#: airtime_mvc/application/controllers/LocaleController.php:109 -#, php-format -msgid "" -"You are currently uploading files. %sGoing to another screen will cancel the" -" upload process. %sAre you sure you want to leave the page?" -msgstr "你正在上传文件。%s如果离开此页,上传过程将被打断。%s确定离开吗?" +#: airtime_mvc/application/forms/GeneralPreferences.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:245 +#: airtime_mvc/application/controllers/LocaleController.php:243 +msgid "Friday" +msgstr "周五" -#: airtime_mvc/application/controllers/LocaleController.php:111 -msgid "Open Media Builder" -msgstr "打开媒体编辑器" +#: airtime_mvc/application/forms/GeneralPreferences.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:246 +#: airtime_mvc/application/controllers/LocaleController.php:244 +msgid "Saturday" +msgstr "周六" -#: airtime_mvc/application/controllers/LocaleController.php:112 -msgid "please put in a time '00:00:00 (.0)'" -msgstr "请输入时间‘00:00:00(.0)’" +#: airtime_mvc/application/forms/DateRange.php:16 +#: airtime_mvc/application/forms/ShowBuilder.php:18 +msgid "Date Start:" +msgstr "开始日期:" -#: airtime_mvc/application/controllers/LocaleController.php:113 -msgid "please put in a time in seconds '00 (.0)'" -msgstr "请输入秒数‘00(.0)’" +#: airtime_mvc/application/forms/DateRange.php:44 +#: airtime_mvc/application/forms/ShowBuilder.php:46 +#: airtime_mvc/application/forms/AddShowRepeats.php:56 +msgid "Date End:" +msgstr "结束日期:" -#: airtime_mvc/application/controllers/LocaleController.php:114 -msgid "Your browser does not support playing this file type: " -msgstr "你的浏览器不支持这种文件类型:" +#: airtime_mvc/application/forms/RegisterAirtime.php:39 +#: airtime_mvc/application/forms/SupportSettings.php:34 +msgid "Phone:" +msgstr "电话:" -#: airtime_mvc/application/controllers/LocaleController.php:115 -msgid "Dynamic block is not previewable" -msgstr "动态智能模块无法预览" +#: airtime_mvc/application/forms/RegisterAirtime.php:62 +#: airtime_mvc/application/forms/SupportSettings.php:57 +msgid "Station Web Site:" +msgstr "电台网址:" -#: airtime_mvc/application/controllers/LocaleController.php:116 -msgid "Limit to: " -msgstr "限制在:" +#: airtime_mvc/application/forms/RegisterAirtime.php:73 +#: airtime_mvc/application/forms/SupportSettings.php:68 +msgid "Country:" +msgstr "国家:" -#: airtime_mvc/application/controllers/LocaleController.php:117 -msgid "Playlist saved" -msgstr "播放列表已存储" +#: airtime_mvc/application/forms/RegisterAirtime.php:84 +#: airtime_mvc/application/forms/SupportSettings.php:79 +msgid "City:" +msgstr "城市:" -#: airtime_mvc/application/controllers/LocaleController.php:118 -msgid "Playlist shuffled" -msgstr "播放列表已经随机化" +#: airtime_mvc/application/forms/RegisterAirtime.php:96 +#: airtime_mvc/application/forms/SupportSettings.php:91 +msgid "Station Description:" +msgstr "电台描述:" -#: airtime_mvc/application/controllers/LocaleController.php:120 -msgid "" -"Airtime is unsure about the status of this file. This can happen when the " -"file is on a remote drive that is unaccessible or the file is in a directory" -" that isn't 'watched' anymore." -msgstr "文件的状态不可知。这可能是由于文件位于远程存储位置,或者所在的文件夹已经不再监控。" +#: airtime_mvc/application/forms/RegisterAirtime.php:106 +#: airtime_mvc/application/forms/SupportSettings.php:101 +msgid "Station Logo:" +msgstr "电台标志:" -#: airtime_mvc/application/controllers/LocaleController.php:122 -#, php-format -msgid "Listener Count on %s: %s" -msgstr "听众统计%s:%s" +#: airtime_mvc/application/forms/RegisterAirtime.php:116 +#: airtime_mvc/application/forms/SupportSettings.php:112 +#: airtime_mvc/application/controllers/LocaleController.php:332 +#: airtime_mvc/application/controllers/LocaleController.php:330 +msgid "Send support feedback" +msgstr "提交反馈意见" -#: airtime_mvc/application/controllers/LocaleController.php:124 -msgid "Remind me in 1 week" -msgstr "一周以后再提醒我" +#: airtime_mvc/application/forms/RegisterAirtime.php:126 +#: airtime_mvc/application/forms/SupportSettings.php:122 +msgid "Promote my station on Sourcefabric.org" +msgstr "在Sourcefabric.org上推广我的电台" -#: airtime_mvc/application/controllers/LocaleController.php:125 -msgid "Remind me never" -msgstr "不再提醒" +#: airtime_mvc/application/forms/RegisterAirtime.php:149 +#: airtime_mvc/application/forms/SupportSettings.php:148 +#, php-format +msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s." +msgstr "我同意Sourcefabric的%s隐私策略%s" -#: airtime_mvc/application/controllers/LocaleController.php:126 -msgid "Yes, help Airtime" -msgstr "是的,帮助Airtime" +#: airtime_mvc/application/forms/RegisterAirtime.php:166 +#: airtime_mvc/application/forms/SupportSettings.php:171 +#: airtime_mvc/application/forms/SupportSettings.php:174 +#: airtime_mvc/application/forms/RegisterAirtime.php:169 +msgid "You have to agree to privacy policy." +msgstr "请先接受隐私策略" -#: airtime_mvc/application/controllers/LocaleController.php:127 -#: airtime_mvc/application/controllers/LocaleController.php:176 -msgid "Image must be one of jpg, jpeg, png, or gif" -msgstr "图像文件格式只能是jpg,jpeg,png或者gif" +#: airtime_mvc/application/forms/AddShowWhen.php:16 +msgid "'%value%' does not fit the time format 'HH:mm'" +msgstr "'%value%' 不符合形如 '小时:分'的格式要求,例如,‘01:59’" -#: airtime_mvc/application/controllers/LocaleController.php:130 -msgid "" -"A static smart block will save the criteria and generate the block content " -"immediately. This allows you to edit and view it in the Library before " -"adding it to a show." -msgstr "静态的智能模块将会保存条件设置并且马上生成所有内容。这样就可以让你在添加到节目中前,还可以编辑和预览该智能模块。" +#: airtime_mvc/application/forms/AddShowWhen.php:22 +msgid "Date/Time Start:" +msgstr "开始日期/时间" -#: airtime_mvc/application/controllers/LocaleController.php:132 -msgid "" -"A dynamic smart block will only save the criteria. The block content will " -"get generated upon adding it to a show. You will not be able to view and " -"edit the content in the Library." -msgstr "动态的智能模块将只保存条件设置。而模块的内容将在每次添加到节目中是动态生成。在媒体库中,你不能直接编辑和预览动态智能模块。" +#: airtime_mvc/application/forms/AddShowWhen.php:49 +msgid "Date/Time End:" +msgstr "结束日期/时间" -#: airtime_mvc/application/controllers/LocaleController.php:134 -msgid "" -"The desired block length will not be reached if Airtime cannot find enough " -"unique tracks to match your criteria. Enable this option if you wish to " -"allow tracks to be added multiple times to the smart block." -msgstr "因为满足条件的声音文件数量有限,只能播放列表指定的时长可能无法达成。如果你不介意出现重复的项目,你可以启用此项。" +#: airtime_mvc/application/forms/AddShowWhen.php:74 +msgid "Duration:" +msgstr "时长:" -#: airtime_mvc/application/controllers/LocaleController.php:135 -msgid "Smart block shuffled" -msgstr "智能模块已经随机排列" +#: airtime_mvc/application/forms/AddShowWhen.php:83 +msgid "Timezone:" +msgstr "时区" -#: airtime_mvc/application/controllers/LocaleController.php:136 -msgid "Smart block generated and criteria saved" -msgstr "智能模块已经生成,条件设置已经保存" +#: airtime_mvc/application/forms/AddShowWhen.php:92 +msgid "Repeats?" +msgstr "是否设置为系列节目?" -#: airtime_mvc/application/controllers/LocaleController.php:137 -msgid "Smart block saved" -msgstr "智能模块已经保存" +#: airtime_mvc/application/forms/AddShowWhen.php:124 +msgid "Cannot create show in the past" +msgstr "节目不能设置为过去的时间" -#: airtime_mvc/application/controllers/LocaleController.php:138 -msgid "Processing..." -msgstr "加载中..." +#: airtime_mvc/application/forms/AddShowWhen.php:132 +msgid "Cannot modify start date/time of the show that is already started" +msgstr "节目已经启动,无法修改开始时间/日期" -#: airtime_mvc/application/controllers/LocaleController.php:150 -msgid "Choose Storage Folder" -msgstr "选择存储文件夹" +#: airtime_mvc/application/forms/AddShowWhen.php:141 +#: airtime_mvc/application/models/Show.php:278 +msgid "End date/time cannot be in the past" +msgstr "节目结束的时间或日期不能设置为过去的时间" -#: airtime_mvc/application/controllers/LocaleController.php:151 -msgid "Choose Folder to Watch" -msgstr "选择监控的文件夹" +#: airtime_mvc/application/forms/AddShowWhen.php:149 +msgid "Cannot have duration < 0m" +msgstr "节目时长不能小于0" -#: airtime_mvc/application/controllers/LocaleController.php:153 -msgid "" -"Are you sure you want to change the storage folder?\n" -"This will remove the files from your Airtime library!" -msgstr "确定更改存储路径?\n这项操作将从媒体库中删除所有文件!" +#: airtime_mvc/application/forms/AddShowWhen.php:153 +msgid "Cannot have duration 00h 00m" +msgstr "节目时长不能为0" -#: airtime_mvc/application/controllers/LocaleController.php:154 -#: airtime_mvc/application/views/scripts/preference/directory-config.phtml:2 -msgid "Manage Media Folders" -msgstr "管理媒体文件夹" +#: airtime_mvc/application/forms/AddShowWhen.php:160 +msgid "Cannot have duration greater than 24h" +msgstr "节目时长不能超过24小时" -#: airtime_mvc/application/controllers/LocaleController.php:155 -msgid "Are you sure you want to remove the watched folder?" -msgstr "确定取消该文件夹的监控?" +#: airtime_mvc/application/forms/AddShowWhat.php:30 +msgid "Untitled Show" +msgstr "未命名节目" -#: airtime_mvc/application/controllers/LocaleController.php:156 -msgid "This path is currently not accessible." -msgstr "指定的路径无法访问。" +#: airtime_mvc/application/forms/AddShowWho.php:10 +msgid "Search Users:" +msgstr "查找用户:" -#: airtime_mvc/application/controllers/LocaleController.php:158 -#, php-format -msgid "" -"Some stream types require extra configuration. Details about enabling %sAAC+" -" Support%s or %sOpus Support%s are provided." -msgstr "某些类型的输出流需要第三方软件的设置,具体步骤如下:%sAAC+%s 和 %sOpus%s。" +#: airtime_mvc/application/forms/AddShowWho.php:24 +msgid "DJs:" +msgstr "选择节目编辑:" -#: airtime_mvc/application/controllers/LocaleController.php:159 -msgid "Connected to the streaming server" -msgstr "流服务器已连接" +#: airtime_mvc/application/forms/PasswordChange.php:28 +msgid "Confirm new password" +msgstr "确认新密码" -#: airtime_mvc/application/controllers/LocaleController.php:160 -msgid "The stream is disabled" -msgstr "输出流已禁用" +#: airtime_mvc/application/forms/PasswordChange.php:36 +msgid "Password confirmation does not match your password." +msgstr "新密码不匹配" -#: airtime_mvc/application/controllers/LocaleController.php:162 -msgid "Can not connect to the streaming server" -msgstr "无法连接流服务器" +#: airtime_mvc/application/forms/PasswordChange.php:43 +msgid "Get new password" +msgstr "获取新密码" -#: airtime_mvc/application/controllers/LocaleController.php:164 -msgid "" -"If Airtime is behind a router or firewall, you may need to configure port " -"forwarding and this field information will be incorrect. In this case you " -"will need to manually update this field so it shows the correct " -"host/port/mount that your DJ's need to connect to. The allowed range is " -"between 1024 and 49151." -msgstr "如果Airtime配置在路由器或者防火墙之后,你可能需要配置端口转发,所以当前文本框内的信息需要调整。在这种情况下,就需要人工指定该信息以确定所显示的主机名/端口/加载点的正确性,从而让节目编辑能连接的上。端口所允许的范围,介于1024到49151之间。" +#: airtime_mvc/application/forms/AddUser.php:91 +#: airtime_mvc/application/forms/AddUser.php:95 +msgid "User Type:" +msgstr "用户类型:" -#: airtime_mvc/application/controllers/LocaleController.php:165 -#, php-format -msgid "For more details, please read the %sAirtime Manual%s" -msgstr "更多的细节可以参阅%sAirtime用户手册%s" +#: airtime_mvc/application/forms/AddUser.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:315 +#: airtime_mvc/application/forms/AddUser.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:313 +msgid "Guest" +msgstr "游客" -#: airtime_mvc/application/controllers/LocaleController.php:167 -msgid "" -"Check this option to enable metadata for OGG streams (stream metadata is the" -" track title, artist, and show name that is displayed in an audio player). " -"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " -"has metadata information enabled: they will disconnect from the stream after" -" every song. If you are using an OGG stream and your listeners do not " -"require support for these audio players, then feel free to enable this " -"option." -msgstr "勾选此项会启用OGG格式流媒体的元数据(流的元数据包括歌曲名,歌手/作者,节目名,这些都会显示在音频播放器中。)VLC和mplayer有个已知的问题,他们在播放OGG/VORBIS媒体流时,如果该流已启用元数据,那么在每首歌的间隙都会断开流。所以,如果你使用OGG媒体流,同时你的听众不使用上述媒体播放器的话,你可以随意地勾选此项。" +#: airtime_mvc/application/forms/AddUser.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:313 +#: airtime_mvc/application/forms/AddUser.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:311 +msgid "DJ" +msgstr "节目编辑" -#: airtime_mvc/application/controllers/LocaleController.php:168 -msgid "" -"Check this box to automatically switch off Master/Show source upon source " -"disconnection." -msgstr "勾选此项后,在输入流断开时,主输入源和节目定制输入源将会自动切换为关闭状态。" +#: airtime_mvc/application/forms/AddUser.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:314 +#: airtime_mvc/application/forms/AddUser.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:312 +msgid "Program Manager" +msgstr "节目主管" -#: airtime_mvc/application/controllers/LocaleController.php:169 -msgid "" -"Check this box to automatically switch on Master/Show source upon source " -"connection." -msgstr "勾选此项后,在输入流连接上时,主输入源和节目定制输入源将会自动切换到开启状态。" +#: airtime_mvc/application/forms/AddUser.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:312 +#: airtime_mvc/application/forms/AddUser.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:310 +msgid "Admin" +msgstr "系统管理员" -#: airtime_mvc/application/controllers/LocaleController.php:170 -msgid "" -"If your Icecast server expects a username of 'source', this field can be " -"left blank." -msgstr "如果你的Icecast服务器所要求的用户名是‘source’,那么当前项可以留空。" +#: airtime_mvc/application/forms/EditAudioMD.php:112 +msgid "ISRC Number:" +msgstr "ISRC编号:" -#: airtime_mvc/application/controllers/LocaleController.php:171 -#: airtime_mvc/application/controllers/LocaleController.php:182 -msgid "" -"If your live streaming client does not ask for a username, this field should" -" be 'source'." -msgstr "如果你的流客户端不需要用户名,那么当前项可以留空" +#: airtime_mvc/application/forms/ShowBuilder.php:72 +msgid "Show:" +msgstr "节目:" -#: airtime_mvc/application/controllers/LocaleController.php:173 -msgid "" -"If you change the username or password values for an enabled stream the " -"playout engine will be rebooted and your listeners will hear silence for " -"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " -"Label (Global Settings), and Switch Transition Fade(s), Master Username, and" -" Master Password (Input Stream Settings). If Airtime is recording, and if " -"the change causes a playout engine restart, the recording will be " -"interrupted." -msgstr "如果你更改了一个已经启用了的输出流的用户名或者密码,那么内置的播放输出引擎模块将会重启,你的听众将会听到一段时间的空白,大概持续5到10秒。而改变如下的模块将不会导致该模块重启:流标签(全局设置里)和流切换淡入淡出效果(秒),主输入流用户名和密码(输入流设置)。如果Airtime正在录制过程中,而且改变设置导致引擎模块重启后,当前的录制进程将会被打断。" +#: airtime_mvc/application/forms/ShowBuilder.php:80 +msgid "All My Shows:" +msgstr "我的全部节目:" -#: airtime_mvc/application/controllers/LocaleController.php:174 -msgid "" -"This is the admin username and password for Icecast/SHOUTcast to get " -"listener statistics." -msgstr "此处填写Icecast或者SHOUTcast的管理员用户名和密码,用于获取收听数据的统计。" +#: airtime_mvc/application/forms/AddShowRepeats.php:10 +msgid "Link:" +msgstr "绑定:" -#: airtime_mvc/application/controllers/LocaleController.php:178 -msgid "" -"Warning: You cannot change this field while the show is currently playing" -msgstr "" +#: airtime_mvc/application/forms/AddShowRepeats.php:16 +msgid "Repeat Type:" +msgstr "类型:" -#: airtime_mvc/application/controllers/LocaleController.php:179 -msgid "No result found" -msgstr "搜索无结果" +#: airtime_mvc/application/forms/AddShowRepeats.php:19 +msgid "weekly" +msgstr "每周" -#: airtime_mvc/application/controllers/LocaleController.php:180 -msgid "" -"This follows the same security pattern for the shows: only users assigned to" -" the show can connect." -msgstr "当前遵循与节目同样的安全模式:只有指定到当前节目的用户才能连接的上。" +#: airtime_mvc/application/forms/AddShowRepeats.php:20 +msgid "every 2 weeks" +msgstr "每隔2周" -#: airtime_mvc/application/controllers/LocaleController.php:181 -msgid "Specify custom authentication which will work only for this show." -msgstr "所设置的自定义认证设置只对当前的节目有效。" +#: airtime_mvc/application/forms/AddShowRepeats.php:21 +msgid "every 3 weeks" +msgstr "每隔3周" -#: airtime_mvc/application/controllers/LocaleController.php:183 -msgid "The show instance doesn't exist anymore!" -msgstr "此节目已不存在" +#: airtime_mvc/application/forms/AddShowRepeats.php:22 +msgid "every 4 weeks" +msgstr "每隔4周" -#: airtime_mvc/application/controllers/LocaleController.php:184 -msgid "Warning: Shows cannot be re-linked" -msgstr "注意:节目取消绑定后无法再次绑定" +#: airtime_mvc/application/forms/AddShowRepeats.php:23 +msgid "monthly" +msgstr "每月" -#: airtime_mvc/application/controllers/LocaleController.php:185 -msgid "" -"By linking your repeating shows any media items scheduled in any repeat show" -" will also get scheduled in the other repeat shows" -msgstr "系列节目勾选绑定后,所有节目的内容都会一模一样,对任何未开始节目的更改都会影响到其他节目。" +#: airtime_mvc/application/forms/AddShowRepeats.php:32 +msgid "Select Days:" +msgstr "选择天数:" -#: airtime_mvc/application/controllers/LocaleController.php:186 -msgid "" -"Timezone is set to the station timezone by default. Shows in the calendar " -"will be displayed in your local time defined by the Interface Timezone in " -"your user settings." -msgstr "此时区设定的默认值是系统的时区设置。日程表中的节目时间则已用户定义的界面显示时区为准,两者可能有所不同。" +#: airtime_mvc/application/forms/AddShowRepeats.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:247 +#: airtime_mvc/application/controllers/LocaleController.php:245 +msgid "Sun" +msgstr "周日" -#: airtime_mvc/application/controllers/LocaleController.php:190 -msgid "Show" -msgstr "节目" +#: airtime_mvc/application/forms/AddShowRepeats.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:248 +#: airtime_mvc/application/controllers/LocaleController.php:246 +msgid "Mon" +msgstr "周一" -#: airtime_mvc/application/controllers/LocaleController.php:191 -msgid "Show is empty" -msgstr "节目内容为空" +#: airtime_mvc/application/forms/AddShowRepeats.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:249 +#: airtime_mvc/application/controllers/LocaleController.php:247 +msgid "Tue" +msgstr "周二" -#: airtime_mvc/application/controllers/LocaleController.php:192 -msgid "1m" -msgstr "1分钟" +#: airtime_mvc/application/forms/AddShowRepeats.php:38 +#: airtime_mvc/application/controllers/LocaleController.php:250 +#: airtime_mvc/application/controllers/LocaleController.php:248 +msgid "Wed" +msgstr "周三" -#: airtime_mvc/application/controllers/LocaleController.php:193 -msgid "5m" -msgstr "5分钟" +#: airtime_mvc/application/forms/AddShowRepeats.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:251 +#: airtime_mvc/application/controllers/LocaleController.php:249 +msgid "Thu" +msgstr "周四" -#: airtime_mvc/application/controllers/LocaleController.php:194 -msgid "10m" -msgstr "10分钟" +#: airtime_mvc/application/forms/AddShowRepeats.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:252 +#: airtime_mvc/application/controllers/LocaleController.php:250 +msgid "Fri" +msgstr "周五" -#: airtime_mvc/application/controllers/LocaleController.php:195 -msgid "15m" -msgstr "15分钟" +#: airtime_mvc/application/forms/AddShowRepeats.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:253 +#: airtime_mvc/application/controllers/LocaleController.php:251 +msgid "Sat" +msgstr "周六" -#: airtime_mvc/application/controllers/LocaleController.php:196 -msgid "30m" -msgstr "30分钟" +#: airtime_mvc/application/forms/AddShowRepeats.php:47 +msgid "Repeat By:" +msgstr "重复类型:" -#: airtime_mvc/application/controllers/LocaleController.php:197 -msgid "60m" -msgstr "60分钟" +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the month" +msgstr "按月的同一日期" -#: airtime_mvc/application/controllers/LocaleController.php:199 -msgid "Retreiving data from the server..." -msgstr "从服务器下载数据中..." +#: airtime_mvc/application/forms/AddShowRepeats.php:50 +msgid "day of the week" +msgstr "一个星期的同一日子" -#: airtime_mvc/application/controllers/LocaleController.php:205 -msgid "This show has no scheduled content." -msgstr "此节目没有安排内容。" +#: airtime_mvc/application/forms/AddShowRepeats.php:69 +msgid "No End?" +msgstr "无休止?" -#: airtime_mvc/application/controllers/LocaleController.php:206 -msgid "This show is not completely filled with content." -msgstr "节目内容只填充了一部分。" +#: airtime_mvc/application/forms/AddShowRepeats.php:106 +msgid "End date must be after start date" +msgstr "结束日期应晚于开始日期" -#: airtime_mvc/application/controllers/LocaleController.php:210 -msgid "January" -msgstr "一月" +#: airtime_mvc/application/forms/AddShowRepeats.php:113 +msgid "Please select a repeat day" +msgstr "请选择在哪一天重复" -#: airtime_mvc/application/controllers/LocaleController.php:211 -msgid "February" -msgstr "二月" +#: airtime_mvc/application/forms/EmailServerPreferences.php:17 +msgid "Enable System Emails (Password Reset)" +msgstr "为密码重置启用邮件功能" -#: airtime_mvc/application/controllers/LocaleController.php:212 -msgid "March" -msgstr "三月" +#: airtime_mvc/application/forms/EmailServerPreferences.php:27 +msgid "Reset Password 'From' Email" +msgstr "密码重置邮件发送于" -#: airtime_mvc/application/controllers/LocaleController.php:213 -msgid "April" -msgstr "四月" +#: airtime_mvc/application/forms/EmailServerPreferences.php:34 +msgid "Configure Mail Server" +msgstr "邮件服务器" -#: airtime_mvc/application/controllers/LocaleController.php:214 -#: airtime_mvc/application/controllers/LocaleController.php:226 -msgid "May" -msgstr "五月" +#: airtime_mvc/application/forms/EmailServerPreferences.php:43 +msgid "Requires Authentication" +msgstr "需要身份验证" -#: airtime_mvc/application/controllers/LocaleController.php:215 -msgid "June" -msgstr "六月" +#: airtime_mvc/application/forms/EmailServerPreferences.php:53 +msgid "Mail Server" +msgstr "邮件服务器地址" -#: airtime_mvc/application/controllers/LocaleController.php:216 -msgid "July" -msgstr "七月" +#: airtime_mvc/application/forms/EmailServerPreferences.php:67 +msgid "Email Address" +msgstr "邮件地址" -#: airtime_mvc/application/controllers/LocaleController.php:217 -msgid "August" -msgstr "八月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:48 +#: airtime_mvc/application/models/Block.php:1340 +msgid "Select criteria" +msgstr "选择属性" -#: airtime_mvc/application/controllers/LocaleController.php:218 -msgid "September" -msgstr "九月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:50 +#: airtime_mvc/application/models/Block.php:1342 +msgid "Bit Rate (Kbps)" +msgstr "比特率(Kbps)" -#: airtime_mvc/application/controllers/LocaleController.php:219 -msgid "October" -msgstr "十月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:51 +#: airtime_mvc/application/controllers/LocaleController.php:70 +#: airtime_mvc/application/models/Block.php:1343 +#: airtime_mvc/application/controllers/LocaleController.php:68 +msgid "BPM" +msgstr "每分钟拍子数" -#: airtime_mvc/application/controllers/LocaleController.php:220 -msgid "November" -msgstr "十一月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:55 +#: airtime_mvc/application/layouts/scripts/layout.phtml:47 +#: airtime_mvc/application/controllers/LocaleController.php:272 +#: airtime_mvc/application/models/Block.php:1347 +#: airtime_mvc/application/controllers/LocaleController.php:270 +msgid "Cue In" +msgstr "切入" -#: airtime_mvc/application/controllers/LocaleController.php:221 -msgid "December" -msgstr "十二月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:56 +#: airtime_mvc/application/layouts/scripts/layout.phtml:54 +#: airtime_mvc/application/controllers/LocaleController.php:273 +#: airtime_mvc/application/models/Block.php:1348 +#: airtime_mvc/application/controllers/LocaleController.php:271 +msgid "Cue Out" +msgstr "切出" -#: airtime_mvc/application/controllers/LocaleController.php:222 -msgid "Jan" -msgstr "一月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:74 +#: airtime_mvc/application/models/Block.php:1350 +#: airtime_mvc/application/controllers/LocaleController.php:72 +msgid "Encoded By" +msgstr "编曲" -#: airtime_mvc/application/controllers/LocaleController.php:223 -msgid "Feb" -msgstr "二月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:79 +#: airtime_mvc/application/models/Block.php:1355 +#: airtime_mvc/application/controllers/LocaleController.php:77 +msgid "Last Modified" +msgstr "最近更新于" -#: airtime_mvc/application/controllers/LocaleController.php:224 -msgid "Mar" -msgstr "三月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:80 +#: airtime_mvc/application/models/Block.php:1356 +#: airtime_mvc/application/controllers/LocaleController.php:78 +msgid "Last Played" +msgstr "上次播放于" -#: airtime_mvc/application/controllers/LocaleController.php:225 -msgid "Apr" -msgstr "四月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:66 +#: airtime_mvc/application/controllers/LocaleController.php:82 +#: airtime_mvc/application/models/Block.php:1358 +#: airtime_mvc/application/controllers/LocaleController.php:80 +msgid "Mime" +msgstr "MIME信息" -#: airtime_mvc/application/controllers/LocaleController.php:227 -msgid "Jun" -msgstr "六月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:68 +#: airtime_mvc/application/controllers/LocaleController.php:84 +#: airtime_mvc/application/models/Block.php:1360 +#: airtime_mvc/application/controllers/LocaleController.php:82 +msgid "Owner" +msgstr "所有者" -#: airtime_mvc/application/controllers/LocaleController.php:228 -msgid "Jul" -msgstr "七月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:85 +#: airtime_mvc/application/models/Block.php:1361 +#: airtime_mvc/application/controllers/LocaleController.php:83 +msgid "Replay Gain" +msgstr "回放增益" -#: airtime_mvc/application/controllers/LocaleController.php:229 -msgid "Aug" -msgstr "八月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:70 +#: airtime_mvc/application/models/Block.php:1362 +msgid "Sample Rate (kHz)" +msgstr "样本率(KHz)" -#: airtime_mvc/application/controllers/LocaleController.php:230 -msgid "Sep" -msgstr "九月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:72 +#: airtime_mvc/application/controllers/LocaleController.php:87 +#: airtime_mvc/application/models/Block.php:1364 +#: airtime_mvc/application/controllers/LocaleController.php:85 +msgid "Track Number" +msgstr "曲目" -#: airtime_mvc/application/controllers/LocaleController.php:231 -msgid "Oct" -msgstr "十月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:73 +#: airtime_mvc/application/controllers/LocaleController.php:88 +#: airtime_mvc/application/models/Block.php:1365 +#: airtime_mvc/application/controllers/LocaleController.php:86 +msgid "Uploaded" +msgstr "上传于" -#: airtime_mvc/application/controllers/LocaleController.php:232 -msgid "Nov" -msgstr "十一月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:74 +#: airtime_mvc/application/controllers/LocaleController.php:89 +#: airtime_mvc/application/models/Block.php:1366 +#: airtime_mvc/application/controllers/LocaleController.php:87 +msgid "Website" +msgstr "网址" -#: airtime_mvc/application/controllers/LocaleController.php:233 -msgid "Dec" -msgstr "十二月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:87 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:103 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:251 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:366 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:141 +#: airtime_mvc/application/models/Block.php:1371 +#: airtime_mvc/application/controllers/LocaleController.php:139 +msgid "Select modifier" +msgstr "选择操作符" -#: airtime_mvc/application/controllers/LocaleController.php:234 -msgid "today" -msgstr "今天" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:88 +#: airtime_mvc/application/controllers/LocaleController.php:142 +#: airtime_mvc/application/models/Block.php:1372 +#: airtime_mvc/application/controllers/LocaleController.php:140 +msgid "contains" +msgstr "包含" -#: airtime_mvc/application/controllers/LocaleController.php:235 -msgid "day" -msgstr "日" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:89 +#: airtime_mvc/application/controllers/LocaleController.php:143 +#: airtime_mvc/application/models/Block.php:1373 +#: airtime_mvc/application/controllers/LocaleController.php:141 +msgid "does not contain" +msgstr "不包含" -#: airtime_mvc/application/controllers/LocaleController.php:236 -msgid "week" -msgstr "星期" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:90 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:144 +#: airtime_mvc/application/models/Block.php:1374 +#: airtime_mvc/application/models/Block.php:1378 +#: airtime_mvc/application/controllers/LocaleController.php:142 +msgid "is" +msgstr "是" -#: airtime_mvc/application/controllers/LocaleController.php:237 -msgid "month" -msgstr "月" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:91 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:145 +#: airtime_mvc/application/models/Block.php:1375 +#: airtime_mvc/application/models/Block.php:1379 +#: airtime_mvc/application/controllers/LocaleController.php:143 +msgid "is not" +msgstr "不是" -#: airtime_mvc/application/controllers/LocaleController.php:252 -msgid "" -"Shows longer than their scheduled time will be cut off by a following show." -msgstr "超出的节目内容将被随后的节目所取代。" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:92 +#: airtime_mvc/application/controllers/LocaleController.php:146 +#: airtime_mvc/application/models/Block.php:1376 +#: airtime_mvc/application/controllers/LocaleController.php:144 +msgid "starts with" +msgstr "起始于" -#: airtime_mvc/application/controllers/LocaleController.php:253 -msgid "Cancel Current Show?" -msgstr "取消当前的节目?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:147 +#: airtime_mvc/application/models/Block.php:1377 +#: airtime_mvc/application/controllers/LocaleController.php:145 +msgid "ends with" +msgstr "结束于" -#: airtime_mvc/application/controllers/LocaleController.php:254 -#: airtime_mvc/application/controllers/LocaleController.php:298 -msgid "Stop recording current show?" -msgstr "停止录制当前的节目?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:148 +#: airtime_mvc/application/models/Block.php:1380 +#: airtime_mvc/application/controllers/LocaleController.php:146 +msgid "is greater than" +msgstr "大于" -#: airtime_mvc/application/controllers/LocaleController.php:255 -msgid "Ok" -msgstr "确定" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:149 +#: airtime_mvc/application/models/Block.php:1381 +#: airtime_mvc/application/controllers/LocaleController.php:147 +msgid "is less than" +msgstr "小于" -#: airtime_mvc/application/controllers/LocaleController.php:256 -msgid "Contents of Show" -msgstr "浏览节目内容" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:150 +#: airtime_mvc/application/models/Block.php:1382 +#: airtime_mvc/application/controllers/LocaleController.php:148 +msgid "is in the range" +msgstr "处于" -#: airtime_mvc/application/controllers/LocaleController.php:259 -msgid "Remove all content?" -msgstr "清空全部内容?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:118 +msgid "hours" +msgstr "小时" -#: airtime_mvc/application/controllers/LocaleController.php:261 -msgid "Delete selected item(s)?" -msgstr "删除选定的项目?" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:119 +msgid "minutes" +msgstr "分钟" -#: airtime_mvc/application/controllers/LocaleController.php:262 -#: airtime_mvc/application/views/scripts/schedule/show-content-dialog.phtml:5 -msgid "Start" -msgstr "开始" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:120 +#: airtime_mvc/application/models/Block.php:333 +msgid "items" +msgstr "个数" -#: airtime_mvc/application/controllers/LocaleController.php:263 -msgid "End" -msgstr "结束" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:167 +msgid "Set smart block type:" +msgstr "设置智能模块类型:" -#: airtime_mvc/application/controllers/LocaleController.php:264 -msgid "Duration" -msgstr "时长" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:170 +msgid "Static" +msgstr "静态" -#: airtime_mvc/application/controllers/LocaleController.php:274 -msgid "Show Empty" -msgstr "节目无内容" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:171 +msgid "Dynamic" +msgstr "动态" -#: airtime_mvc/application/controllers/LocaleController.php:275 -msgid "Recording From Line In" -msgstr "从线路输入录制" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:285 +msgid "Allow Repeat Tracks:" +msgstr "允许重复选择歌曲:" -#: airtime_mvc/application/controllers/LocaleController.php:276 -msgid "Track preview" -msgstr "试听媒体" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:302 +msgid "Limit to" +msgstr "限制在" -#: airtime_mvc/application/controllers/LocaleController.php:280 -msgid "Cannot schedule outside a show." -msgstr "没有指定节目,无法凭空安排内容。" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:324 +msgid "Generate playlist content and save criteria" +msgstr "保存条件设置并生成播放列表内容" -#: airtime_mvc/application/controllers/LocaleController.php:281 -msgid "Moving 1 Item" -msgstr "移动1个项目" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:326 +msgid "Generate" +msgstr "开始生成" -#: airtime_mvc/application/controllers/LocaleController.php:282 -#, php-format -msgid "Moving %s Items" -msgstr "移动%s个项目" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:332 +msgid "Shuffle playlist content" +msgstr "随机打乱歌曲次序" -#: airtime_mvc/application/controllers/LocaleController.php:285 -msgid "Fade Editor" -msgstr "淡入淡出编辑器" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:500 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:512 +msgid "Limit cannot be empty or smaller than 0" +msgstr "限制的设置不能比0小" -#: airtime_mvc/application/controllers/LocaleController.php:286 -msgid "Cue Editor" -msgstr "切入切出编辑器" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:505 +msgid "Limit cannot be more than 24 hrs" +msgstr "限制的设置不能大于24小时" -#: airtime_mvc/application/controllers/LocaleController.php:287 -msgid "" -"Waveform features are available in a browser supporting the Web Audio API" -msgstr "想要启用波形图功能,需要支持Web Audio API的浏览器。" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:515 +msgid "The value should be an integer" +msgstr "值只能为整数" -#: airtime_mvc/application/controllers/LocaleController.php:290 -msgid "Select all" -msgstr "全选" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:518 +msgid "500 is the max item limit value you can set" +msgstr "最多只能允许500条内容" -#: airtime_mvc/application/controllers/LocaleController.php:291 -msgid "Select none" -msgstr "全不选" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:529 +msgid "You must select Criteria and Modifier" +msgstr "条件和操作符不能为空" -#: airtime_mvc/application/controllers/LocaleController.php:292 -msgid "Remove overbooked tracks" -msgstr "移除安排多余的内容" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:536 +msgid "'Length' should be in '00:00:00' format" +msgstr "‘长度’格式应该为‘00:00:00’" -#: airtime_mvc/application/controllers/LocaleController.php:293 -msgid "Remove selected scheduled items" -msgstr "移除所选的项目" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:541 +#: airtime_mvc/application/forms/SmartBlockCriteria.php:554 +msgid "" +"The value should be in timestamp format (e.g. 0000-00-00 or 0000-00-00 " +"00:00:00)" +msgstr "时间格式错误,应该为形如0000-00-00 或 0000-00-00 00:00:00的格式" -#: airtime_mvc/application/controllers/LocaleController.php:294 -msgid "Jump to the current playing track" -msgstr "跳转到当前播放的项目" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:568 +msgid "The value has to be numeric" +msgstr "应该为数字" -#: airtime_mvc/application/controllers/LocaleController.php:295 -msgid "Cancel current show" -msgstr "取消当前的节目" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:573 +msgid "The value should be less then 2147483648" +msgstr "不能大于2147483648" -#: airtime_mvc/application/controllers/LocaleController.php:300 -msgid "Open library to add or remove content" -msgstr "打开媒体库,添加或者删除节目内容" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:578 +#, php-format +msgid "The value should be less than %s characters" +msgstr "不能小于%s个字符" -#: airtime_mvc/application/controllers/LocaleController.php:301 -#: airtime_mvc/application/views/scripts/showbuilder/index.phtml:15 -#: airtime_mvc/application/services/CalendarService.php:96 -msgid "Add / Remove Content" -msgstr "添加 / 删除内容" +#: airtime_mvc/application/forms/SmartBlockCriteria.php:585 +msgid "Value cannot be empty" +msgstr "不能为空" -#: airtime_mvc/application/controllers/LocaleController.php:303 -msgid "in use" -msgstr "使用中" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:19 +msgid "Auto Switch Off" +msgstr "当输入流断开时自动关闭" -#: airtime_mvc/application/controllers/LocaleController.php:304 -msgid "Disk" -msgstr "磁盘" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:26 +msgid "Auto Switch On" +msgstr "当输入流连接时自动打开" -#: airtime_mvc/application/controllers/LocaleController.php:306 -msgid "Look in" -msgstr "查询" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:33 +msgid "Switch Transition Fade (s)" +msgstr "切换时的淡入淡出效果(秒)" -#: airtime_mvc/application/controllers/LocaleController.php:308 -msgid "Open" -msgstr "打开" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:36 +msgid "enter a time in seconds 00{.000000}" +msgstr "请输入秒数00{.000000}" -#: airtime_mvc/application/controllers/LocaleController.php:314 -msgid "Guests can do the following:" -msgstr "游客的权限包括:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:45 +msgid "Master Username" +msgstr "主输入流的用户名" -#: airtime_mvc/application/controllers/LocaleController.php:315 -msgid "View schedule" -msgstr "显示节目日程" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:62 +msgid "Master Password" +msgstr "主输入流的密码" -#: airtime_mvc/application/controllers/LocaleController.php:316 -msgid "View show content" -msgstr "显示节目内容" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:70 +msgid "Master Source Connection URL" +msgstr "主输入流的链接地址" -#: airtime_mvc/application/controllers/LocaleController.php:317 -msgid "DJs can do the following:" -msgstr "节目编辑的权限包括:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:78 +msgid "Show Source Connection URL" +msgstr "节目定制输入流的链接地址" -#: airtime_mvc/application/controllers/LocaleController.php:318 -msgid "Manage assigned show content" -msgstr "为指派的节目管理节目内容" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:87 +msgid "Master Source Port" +msgstr "主输入流的端口" -#: airtime_mvc/application/controllers/LocaleController.php:319 -msgid "Import media files" -msgstr "导入媒体文件" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:96 +msgid "Master Source Mount Point" +msgstr "主输入流的加载点" -#: airtime_mvc/application/controllers/LocaleController.php:320 -msgid "Create playlists, smart blocks, and webstreams" -msgstr "创建播放列表,智能模块和网络流媒体" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:106 +msgid "Show Source Port" +msgstr "节目定制输入流的端口" -#: airtime_mvc/application/controllers/LocaleController.php:321 -msgid "Manage their own library content" -msgstr "管理媒体库中属于自己的内容" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:115 +msgid "Show Source Mount Point" +msgstr "节目定制输入流的加载点" -#: airtime_mvc/application/controllers/LocaleController.php:322 -msgid "Progam Managers can do the following:" -msgstr "节目主管的权限是:" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:153 +msgid "You cannot use same port as Master DJ port." +msgstr "端口设置不能重复" -#: airtime_mvc/application/controllers/LocaleController.php:323 -msgid "View and manage show content" -msgstr "查看和管理节目内容" +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:164 +#: airtime_mvc/application/forms/LiveStreamingPreferences.php:182 +#, php-format +msgid "Port %s is not available" +msgstr "%s端口已被占用" -#: airtime_mvc/application/controllers/LocaleController.php:324 -msgid "Schedule shows" -msgstr "安排节目日程" +#: airtime_mvc/application/layouts/scripts/login.phtml:16 +#, php-format +msgid "" +"Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%sMaintained " +"and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s" +msgstr "Airtime 遵循GPL第三版协议,%s由%sSourcefabric o.p.s%s版权所有。" -#: airtime_mvc/application/controllers/LocaleController.php:325 -msgid "Manage all library content" -msgstr "管理媒体库的所有内容" +#: airtime_mvc/application/layouts/scripts/layout.phtml:27 +msgid "Logout" +msgstr "登出" -#: airtime_mvc/application/controllers/LocaleController.php:326 -msgid "Admins can do the following:" -msgstr "管理员的权限包括:" +#: airtime_mvc/application/layouts/scripts/layout.phtml:42 +#: airtime_mvc/application/layouts/scripts/layout.phtml:68 +msgid "Play" +msgstr "试听" -#: airtime_mvc/application/controllers/LocaleController.php:327 -msgid "Manage preferences" -msgstr "属性管理" +#: airtime_mvc/application/layouts/scripts/layout.phtml:43 +#: airtime_mvc/application/layouts/scripts/layout.phtml:69 +msgid "Stop" +msgstr "暂停" -#: airtime_mvc/application/controllers/LocaleController.php:328 -msgid "Manage users" -msgstr "管理用户" +#: airtime_mvc/application/layouts/scripts/layout.phtml:49 +msgid "Set Cue In" +msgstr "设为切入时间" -#: airtime_mvc/application/controllers/LocaleController.php:329 -msgid "Manage watched folders" -msgstr "管理监控文件夹" +#: airtime_mvc/application/layouts/scripts/layout.phtml:56 +msgid "Set Cue Out" +msgstr "设为切出时间" -#: airtime_mvc/application/controllers/LocaleController.php:331 -msgid "View system status" -msgstr "显示系统状态" +#: airtime_mvc/application/layouts/scripts/layout.phtml:73 +msgid "Cursor" +msgstr "设置游标" -#: airtime_mvc/application/controllers/LocaleController.php:332 -msgid "Access playout history" -msgstr "查看播放历史" +#: airtime_mvc/application/layouts/scripts/layout.phtml:74 +#: airtime_mvc/application/controllers/LocaleController.php:274 +#: airtime_mvc/application/controllers/LocaleController.php:272 +msgid "Fade In" +msgstr "淡入" -#: airtime_mvc/application/controllers/LocaleController.php:333 -msgid "View listener stats" -msgstr "显示收听统计数据" +#: airtime_mvc/application/layouts/scripts/layout.phtml:75 +#: airtime_mvc/application/controllers/LocaleController.php:275 +#: airtime_mvc/application/controllers/LocaleController.php:273 +msgid "Fade Out" +msgstr "淡出" -#: airtime_mvc/application/controllers/LocaleController.php:335 -msgid "Show / hide columns" -msgstr "显示/隐藏栏" +#: airtime_mvc/application/layouts/scripts/audio-player.phtml:5 +#: airtime_mvc/application/controllers/LocaleController.php:30 +#: airtime_mvc/application/controllers/LocaleController.php:28 +msgid "Audio Player" +msgstr "音频播放器" -#: airtime_mvc/application/controllers/LocaleController.php:337 -msgid "From {from} to {to}" -msgstr "从{from}到{to}" +#: airtime_mvc/application/controllers/LoginController.php:34 +#: airtime_mvc/application/controllers/LoginController.php:35 +msgid "Please enter your user name and password" +msgstr "请输入用户名和密码" -#: airtime_mvc/application/controllers/LocaleController.php:338 -msgid "kbps" -msgstr "千比特每秒" +#: airtime_mvc/application/controllers/LoginController.php:77 +msgid "Wrong username or password provided. Please try again." +msgstr "用户名或密码错误,请重试。" -#: airtime_mvc/application/controllers/LocaleController.php:339 -msgid "yyyy-mm-dd" -msgstr "年-月-日" +#: airtime_mvc/application/controllers/LoginController.php:142 +#: airtime_mvc/application/controllers/LoginController.php:145 +msgid "" +"Email could not be sent. Check your mail server settings and ensure it has " +"been configured properly." +msgstr "邮件发送失败。请检查邮件服务器设置,并确定设置无误。" -#: airtime_mvc/application/controllers/LocaleController.php:340 -msgid "hh:mm:ss.t" -msgstr "时:分:秒" +#: airtime_mvc/application/controllers/LoginController.php:145 +#: airtime_mvc/application/controllers/LoginController.php:148 +msgid "Given email not found." +msgstr "邮件地址没有找到。" -#: airtime_mvc/application/controllers/LocaleController.php:341 -msgid "kHz" -msgstr "千赫兹" +#: airtime_mvc/application/controllers/LocaleController.php:32 +#: airtime_mvc/application/controllers/LocaleController.php:30 +msgid "Recording:" +msgstr "录制:" -#: airtime_mvc/application/controllers/LocaleController.php:344 -msgid "Su" -msgstr "周天" +#: airtime_mvc/application/controllers/LocaleController.php:33 +#: airtime_mvc/application/controllers/LocaleController.php:31 +msgid "Master Stream" +msgstr "主输入源" -#: airtime_mvc/application/controllers/LocaleController.php:345 -msgid "Mo" -msgstr "周一" +#: airtime_mvc/application/controllers/LocaleController.php:34 +#: airtime_mvc/application/controllers/LocaleController.php:32 +msgid "Live Stream" +msgstr "节目定制输入源" -#: airtime_mvc/application/controllers/LocaleController.php:346 -msgid "Tu" -msgstr "周二" +#: airtime_mvc/application/controllers/LocaleController.php:35 +#: airtime_mvc/application/controllers/LocaleController.php:33 +msgid "Nothing Scheduled" +msgstr "没有安排节目内容" -#: airtime_mvc/application/controllers/LocaleController.php:347 -msgid "We" -msgstr "周三" +#: airtime_mvc/application/controllers/LocaleController.php:36 +#: airtime_mvc/application/controllers/LocaleController.php:34 +msgid "Current Show:" +msgstr "当前节目:" -#: airtime_mvc/application/controllers/LocaleController.php:348 -msgid "Th" -msgstr "周四" +#: airtime_mvc/application/controllers/LocaleController.php:37 +#: airtime_mvc/application/controllers/LocaleController.php:35 +msgid "Current" +msgstr "当前的" -#: airtime_mvc/application/controllers/LocaleController.php:349 -msgid "Fr" -msgstr "周五" +#: airtime_mvc/application/controllers/LocaleController.php:39 +#: airtime_mvc/application/controllers/LocaleController.php:37 +msgid "You are running the latest version" +msgstr "你已经在使用最新版" -#: airtime_mvc/application/controllers/LocaleController.php:350 -msgid "Sa" -msgstr "周六" +#: airtime_mvc/application/controllers/LocaleController.php:40 +#: airtime_mvc/application/controllers/LocaleController.php:38 +msgid "New version available: " +msgstr "版本有更新:" -#: airtime_mvc/application/controllers/LocaleController.php:351 -#: airtime_mvc/application/controllers/LocaleController.php:379 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:3 -msgid "Close" -msgstr "关闭" +#: airtime_mvc/application/controllers/LocaleController.php:41 +#: airtime_mvc/application/controllers/LocaleController.php:39 +msgid "This version will soon be obsolete." +msgstr "这个版本即将过时。" -#: airtime_mvc/application/controllers/LocaleController.php:353 -msgid "Hour" -msgstr "小时" +#: airtime_mvc/application/controllers/LocaleController.php:42 +#: airtime_mvc/application/controllers/LocaleController.php:40 +msgid "This version is no longer supported." +msgstr "这个版本即将停支持。" -#: airtime_mvc/application/controllers/LocaleController.php:354 -msgid "Minute" -msgstr "分钟" +#: airtime_mvc/application/controllers/LocaleController.php:43 +#: airtime_mvc/application/controllers/LocaleController.php:41 +msgid "Please upgrade to " +msgstr "请升级到" -#: airtime_mvc/application/controllers/LocaleController.php:355 -msgid "Done" -msgstr "设定" +#: airtime_mvc/application/controllers/LocaleController.php:45 +#: airtime_mvc/application/controllers/LocaleController.php:43 +msgid "Add to current playlist" +msgstr "添加到播放列表" -#: airtime_mvc/application/controllers/LocaleController.php:358 -msgid "Select files" -msgstr "选择文件" +#: airtime_mvc/application/controllers/LocaleController.php:46 +#: airtime_mvc/application/controllers/LocaleController.php:44 +msgid "Add to current smart block" +msgstr "添加到只能模块" -#: airtime_mvc/application/controllers/LocaleController.php:359 -#: airtime_mvc/application/controllers/LocaleController.php:360 -msgid "Add files to the upload queue and click the start button." -msgstr "添加需要上传的文件到传输队列中,然后点击开始上传。" +#: airtime_mvc/application/controllers/LocaleController.php:47 +#: airtime_mvc/application/controllers/LocaleController.php:45 +msgid "Adding 1 Item" +msgstr "添加1项" -#: airtime_mvc/application/controllers/LocaleController.php:361 -#: airtime_mvc/application/controllers/LocaleController.php:362 -#: airtime_mvc/application/configs/navigation.php:76 -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:5 -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:8 -msgid "Status" -msgstr "系统状态" +#: airtime_mvc/application/controllers/LocaleController.php:48 +#: airtime_mvc/application/controllers/LocaleController.php:46 +#, php-format +msgid "Adding %s Items" +msgstr "添加%s项" -#: airtime_mvc/application/controllers/LocaleController.php:363 -msgid "Add Files" -msgstr "添加文件" +#: airtime_mvc/application/controllers/LocaleController.php:49 +#: airtime_mvc/application/controllers/LocaleController.php:47 +msgid "You can only add tracks to smart blocks." +msgstr "智能模块只能添加声音文件。" -#: airtime_mvc/application/controllers/LocaleController.php:364 -msgid "Stop Upload" -msgstr "停止上传" +#: airtime_mvc/application/controllers/LocaleController.php:50 +#: airtime_mvc/application/controllers/PlaylistController.php:163 +#: airtime_mvc/application/controllers/LocaleController.php:48 +msgid "You can only add tracks, smart blocks, and webstreams to playlists." +msgstr "播放列表只能添加声音文件,只能模块和网络流媒体。" -#: airtime_mvc/application/controllers/LocaleController.php:365 -msgid "Start upload" -msgstr "开始上传" +#: airtime_mvc/application/controllers/LocaleController.php:53 +#: airtime_mvc/application/controllers/LocaleController.php:51 +msgid "Please select a cursor position on timeline." +msgstr "请在右部的时间表视图中选择一个游标位置。" -#: airtime_mvc/application/controllers/LocaleController.php:366 -msgid "Add files" -msgstr "添加文件" +#: airtime_mvc/application/controllers/LocaleController.php:57 +#: airtime_mvc/application/controllers/LibraryController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:55 +msgid "Edit Metadata" +msgstr "编辑元数据" -#: airtime_mvc/application/controllers/LocaleController.php:367 -#, php-format -msgid "Uploaded %d/%d files" -msgstr "已经上传%d/%d个文件" +#: airtime_mvc/application/controllers/LocaleController.php:58 +#: airtime_mvc/application/controllers/LocaleController.php:56 +msgid "Add to selected show" +msgstr "添加到所选的节目" -#: airtime_mvc/application/controllers/LocaleController.php:368 -msgid "N/A" -msgstr "未知" +#: airtime_mvc/application/controllers/LocaleController.php:59 +#: airtime_mvc/application/controllers/LocaleController.php:57 +msgid "Select" +msgstr "选择" -#: airtime_mvc/application/controllers/LocaleController.php:369 -msgid "Drag files here." -msgstr "拖拽文件到此处。" +#: airtime_mvc/application/controllers/LocaleController.php:60 +#: airtime_mvc/application/controllers/LocaleController.php:58 +msgid "Select this page" +msgstr "选择此页" -#: airtime_mvc/application/controllers/LocaleController.php:370 -msgid "File extension error." -msgstr "文件后缀名出错。" +#: airtime_mvc/application/controllers/LocaleController.php:61 +#: airtime_mvc/application/controllers/LocaleController.php:59 +msgid "Deselect this page" +msgstr "取消整页" -#: airtime_mvc/application/controllers/LocaleController.php:371 -msgid "File size error." -msgstr "文件大小出错。" +#: airtime_mvc/application/controllers/LocaleController.php:62 +#: airtime_mvc/application/controllers/LocaleController.php:60 +msgid "Deselect all" +msgstr "全部取消" -#: airtime_mvc/application/controllers/LocaleController.php:372 -msgid "File count error." -msgstr "发生文件统计错误。" +#: airtime_mvc/application/controllers/LocaleController.php:63 +#: airtime_mvc/application/controllers/LocaleController.php:61 +msgid "Are you sure you want to delete the selected item(s)?" +msgstr "确定删除选择的项?" -#: airtime_mvc/application/controllers/LocaleController.php:373 -msgid "Init error." -msgstr "发生初始化错误。" +#: airtime_mvc/application/controllers/LocaleController.php:64 +#: airtime_mvc/application/controllers/LocaleController.php:62 +msgid "Scheduled" +msgstr "已安排进日程" -#: airtime_mvc/application/controllers/LocaleController.php:374 -msgid "HTTP Error." -msgstr "发生HTTP类型的错误" +#: airtime_mvc/application/controllers/LocaleController.php:65 +#: airtime_mvc/application/controllers/LocaleController.php:63 +msgid "Playlist / Block" +msgstr "播放列表 / 智能模块" -#: airtime_mvc/application/controllers/LocaleController.php:375 -msgid "Security error." -msgstr "发生安全性错误。" +#: airtime_mvc/application/controllers/LocaleController.php:69 +#: airtime_mvc/application/controllers/LocaleController.php:67 +msgid "Bit Rate" +msgstr "比特率" -#: airtime_mvc/application/controllers/LocaleController.php:376 -msgid "Generic error." -msgstr "发生通用类型的错误。" +#: airtime_mvc/application/controllers/LocaleController.php:86 +#: airtime_mvc/application/controllers/LocaleController.php:84 +msgid "Sample Rate" +msgstr "样本率" -#: airtime_mvc/application/controllers/LocaleController.php:377 -msgid "IO error." -msgstr "输入输出错误。" +#: airtime_mvc/application/controllers/LocaleController.php:91 +#: airtime_mvc/application/controllers/LocaleController.php:89 +msgid "Loading..." +msgstr "加载中..." -#: airtime_mvc/application/controllers/LocaleController.php:378 -#, php-format -msgid "File: %s" -msgstr "文件:%s" +#: airtime_mvc/application/controllers/LocaleController.php:93 +#: airtime_mvc/application/controllers/LocaleController.php:91 +msgid "Files" +msgstr "文件" -#: airtime_mvc/application/controllers/LocaleController.php:380 -#, php-format -msgid "%d files queued" -msgstr "队列中有%d个文件" +#: airtime_mvc/application/controllers/LocaleController.php:94 +#: airtime_mvc/application/controllers/LocaleController.php:92 +msgid "Playlists" +msgstr "播放列表" -#: airtime_mvc/application/controllers/LocaleController.php:381 -msgid "File: %f, size: %s, max file size: %m" -msgstr "文件:%f,大小:%s,最大的文件大小:%m" +#: airtime_mvc/application/controllers/LocaleController.php:95 +#: airtime_mvc/application/controllers/LocaleController.php:93 +msgid "Smart Blocks" +msgstr "智能模块" -#: airtime_mvc/application/controllers/LocaleController.php:382 -msgid "Upload URL might be wrong or doesn't exist" -msgstr "用于上传的地址有误或者不存在" +#: airtime_mvc/application/controllers/LocaleController.php:96 +#: airtime_mvc/application/controllers/LocaleController.php:94 +msgid "Web Streams" +msgstr "网络流媒体" -#: airtime_mvc/application/controllers/LocaleController.php:383 -msgid "Error: File too large: " -msgstr "错误:文件过大:" +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:95 +msgid "Unknown type: " +msgstr "位置类型:" -#: airtime_mvc/application/controllers/LocaleController.php:384 -msgid "Error: Invalid file extension: " -msgstr "错误:无效的文件后缀名:" +#: airtime_mvc/application/controllers/LocaleController.php:98 +#: airtime_mvc/application/controllers/LocaleController.php:96 +msgid "Are you sure you want to delete the selected item?" +msgstr "确定删除所选项?" -#: airtime_mvc/application/controllers/LocaleController.php:386 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:25 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:56 -msgid "Set Default" -msgstr "设为默认" +#: airtime_mvc/application/controllers/LocaleController.php:99 +#: airtime_mvc/application/controllers/LocaleController.php:200 +#: airtime_mvc/application/controllers/LocaleController.php:97 +#: airtime_mvc/application/controllers/LocaleController.php:198 +msgid "Uploading in progress..." +msgstr "正在上传..." -#: airtime_mvc/application/controllers/LocaleController.php:387 -msgid "Create Entry" -msgstr "创建项目" +#: airtime_mvc/application/controllers/LocaleController.php:100 +#: airtime_mvc/application/controllers/LocaleController.php:98 +msgid "Retrieving data from the server..." +msgstr "数据正在从服务器下载中..." -#: airtime_mvc/application/controllers/LocaleController.php:388 -msgid "Edit History Record" -msgstr "编辑历史记录" +#: airtime_mvc/application/controllers/LocaleController.php:101 +#: airtime_mvc/application/controllers/LocaleController.php:99 +msgid "The soundcloud id for this file is: " +msgstr "文件的SoundCloud编号是:" -#: airtime_mvc/application/controllers/LocaleController.php:391 -#, php-format -msgid "Copied %s row%s to the clipboard" -msgstr "复制%s行%s到剪贴板" +#: airtime_mvc/application/controllers/LocaleController.php:102 +#: airtime_mvc/application/controllers/LocaleController.php:100 +msgid "There was an error while uploading to soundcloud." +msgstr "文件上传到SoundCloud时发生错误" -#: airtime_mvc/application/controllers/LocaleController.php:392 -#, php-format -msgid "" -"%sPrint view%sPlease use your browser's print function to print this table. " -"Press escape when finished." -msgstr "%s打印预览%s请使用浏览器的打印功能进行打印。按下Esc键可以退出当前状态。" +#: airtime_mvc/application/controllers/LocaleController.php:103 +#: airtime_mvc/application/controllers/LocaleController.php:101 +msgid "Error code: " +msgstr "错误代码:" -#: airtime_mvc/application/controllers/DashboardController.php:36 -#: airtime_mvc/application/controllers/DashboardController.php:85 -msgid "You don't have permission to disconnect source." -msgstr "你没有断开输入源的权限。" +#: airtime_mvc/application/controllers/LocaleController.php:104 +#: airtime_mvc/application/controllers/LocaleController.php:102 +msgid "Error msg: " +msgstr "错误信息:" -#: airtime_mvc/application/controllers/DashboardController.php:38 -#: airtime_mvc/application/controllers/DashboardController.php:87 -msgid "There is no source connected to this input." -msgstr "没有连接上的输入源。" +#: airtime_mvc/application/controllers/LocaleController.php:105 +#: airtime_mvc/application/controllers/LocaleController.php:103 +msgid "Input must be a positive number" +msgstr "输入只能为正数" -#: airtime_mvc/application/controllers/DashboardController.php:82 -msgid "You don't have permission to switch source." -msgstr "你没有切换的权限。" +#: airtime_mvc/application/controllers/LocaleController.php:106 +#: airtime_mvc/application/controllers/LocaleController.php:104 +msgid "Input must be a number" +msgstr "只允许数字输入" -#: airtime_mvc/application/controllers/PlaylistController.php:48 -#, php-format -msgid "You are viewing an older version of %s" -msgstr "你所查看的%s已更改" +#: airtime_mvc/application/controllers/LocaleController.php:107 +#: airtime_mvc/application/controllers/LocaleController.php:105 +msgid "Input must be in the format: yyyy-mm-dd" +msgstr "输入格式应为:年-月-日(yyyy-mm-dd)" -#: airtime_mvc/application/controllers/PlaylistController.php:123 -msgid "You cannot add tracks to dynamic blocks." -msgstr "动态智能模块不能添加声音文件。" +#: airtime_mvc/application/controllers/LocaleController.php:108 +#: airtime_mvc/application/controllers/LocaleController.php:106 +msgid "Input must be in the format: hh:mm:ss.t" +msgstr "输入格式应为:时:分:秒 (hh:mm:ss.t)" -#: airtime_mvc/application/controllers/PlaylistController.php:130 -#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/LocaleController.php:111 +#: airtime_mvc/application/controllers/LocaleController.php:109 #, php-format -msgid "%s not found" -msgstr "%s不存在" +msgid "" +"You are currently uploading files. %sGoing to another screen will cancel the " +"upload process. %sAre you sure you want to leave the page?" +msgstr "你正在上传文件。%s如果离开此页,上传过程将被打断。%s确定离开吗?" -#: airtime_mvc/application/controllers/PlaylistController.php:144 -#, php-format -msgid "You don't have permission to delete selected %s(s)." -msgstr "你没有删除所选%s的权限。" +#: airtime_mvc/application/controllers/LocaleController.php:113 +#: airtime_mvc/application/controllers/LocaleController.php:111 +msgid "Open Media Builder" +msgstr "打开媒体编辑器" -#: airtime_mvc/application/controllers/PlaylistController.php:151 -#: airtime_mvc/application/controllers/LibraryController.php:134 -msgid "Something went wrong." -msgstr "未知错误。" +#: airtime_mvc/application/controllers/LocaleController.php:114 +#: airtime_mvc/application/controllers/LocaleController.php:112 +msgid "please put in a time '00:00:00 (.0)'" +msgstr "请输入时间‘00:00:00(.0)’" -#: airtime_mvc/application/controllers/PlaylistController.php:157 -msgid "You can only add tracks to smart block." -msgstr "智能模块只能添加媒体文件。" +#: airtime_mvc/application/controllers/LocaleController.php:115 +#: airtime_mvc/application/controllers/LocaleController.php:113 +msgid "please put in a time in seconds '00 (.0)'" +msgstr "请输入秒数‘00(.0)’" -#: airtime_mvc/application/controllers/PlaylistController.php:175 -msgid "Untitled Playlist" -msgstr "未命名的播放列表" +#: airtime_mvc/application/controllers/LocaleController.php:116 +#: airtime_mvc/application/controllers/LocaleController.php:114 +msgid "Your browser does not support playing this file type: " +msgstr "你的浏览器不支持这种文件类型:" -#: airtime_mvc/application/controllers/PlaylistController.php:177 -msgid "Untitled Smart Block" -msgstr "未命名的智能模块" +#: airtime_mvc/application/controllers/LocaleController.php:117 +#: airtime_mvc/application/controllers/LocaleController.php:115 +msgid "Dynamic block is not previewable" +msgstr "动态智能模块无法预览" -#: airtime_mvc/application/controllers/PlaylistController.php:495 -msgid "Unknown Playlist" -msgstr "位置播放列表" +#: airtime_mvc/application/controllers/LocaleController.php:118 +#: airtime_mvc/application/controllers/LocaleController.php:116 +msgid "Limit to: " +msgstr "限制在:" -#: airtime_mvc/application/controllers/ApiController.php:61 -#: airtime_mvc/application/controllers/Apiv2Controller.php:77 -msgid "You are not allowed to access this resource." -msgstr "你没有访问该资源的权限" +#: airtime_mvc/application/controllers/LocaleController.php:119 +#: airtime_mvc/application/controllers/LocaleController.php:117 +msgid "Playlist saved" +msgstr "播放列表已存储" -#: airtime_mvc/application/controllers/ApiController.php:318 -#: airtime_mvc/application/controllers/ApiController.php:390 -#: airtime_mvc/application/controllers/ApiController.php:504 -#: airtime_mvc/application/controllers/ApiController.php:608 -#: airtime_mvc/application/controllers/ApiController.php:641 -msgid "You are not allowed to access this resource. " -msgstr "你没有访问该资源的权限" +#: airtime_mvc/application/controllers/LocaleController.php:120 +#: airtime_mvc/application/controllers/LocaleController.php:118 +msgid "Playlist shuffled" +msgstr "播放列表已经随机化" -#: airtime_mvc/application/controllers/ApiController.php:771 -#: airtime_mvc/application/controllers/ApiController.php:791 -#: airtime_mvc/application/controllers/ApiController.php:803 -#, php-format -msgid "File does not exist in %s" +#: airtime_mvc/application/controllers/LocaleController.php:122 +#: airtime_mvc/application/controllers/LocaleController.php:120 +msgid "" +"Airtime is unsure about the status of this file. This can happen when the " +"file is on a remote drive that is unaccessible or the file is in a directory " +"that isn't 'watched' anymore." msgstr "" +"文件的状态不可知。这可能是由于文件位于远程存储位置,或者所在的文件夹已经不再" +"监控。" -#: airtime_mvc/application/controllers/ApiController.php:854 -msgid "Bad request. no 'mode' parameter passed." -msgstr "请求错误。没有提供‘模式’参数。" +#: airtime_mvc/application/controllers/LocaleController.php:124 +#: airtime_mvc/application/controllers/LocaleController.php:122 +#, php-format +msgid "Listener Count on %s: %s" +msgstr "听众统计%s:%s" -#: airtime_mvc/application/controllers/ApiController.php:864 -msgid "Bad request. 'mode' parameter is invalid" -msgstr "请求错误。提供的‘模式’参数无效。" +#: airtime_mvc/application/controllers/LocaleController.php:126 +#: airtime_mvc/application/controllers/LocaleController.php:124 +msgid "Remind me in 1 week" +msgstr "一周以后再提醒我" -#: airtime_mvc/application/controllers/LibraryController.php:189 -#: airtime_mvc/application/controllers/ShowbuilderController.php:194 -msgid "Preview" -msgstr "预览" +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:125 +msgid "Remind me never" +msgstr "不再提醒" -#: airtime_mvc/application/controllers/LibraryController.php:210 -#: airtime_mvc/application/controllers/LibraryController.php:234 -#: airtime_mvc/application/controllers/LibraryController.php:257 -msgid "Add to Playlist" -msgstr "添加到播放列表" +#: airtime_mvc/application/controllers/LocaleController.php:128 +#: airtime_mvc/application/controllers/LocaleController.php:126 +msgid "Yes, help Airtime" +msgstr "是的,帮助Airtime" -#: airtime_mvc/application/controllers/LibraryController.php:212 -msgid "Add to Smart Block" -msgstr "添加到智能模块" +#: airtime_mvc/application/controllers/LocaleController.php:129 +#: airtime_mvc/application/controllers/LocaleController.php:178 +#: airtime_mvc/application/controllers/LocaleController.php:127 +#: airtime_mvc/application/controllers/LocaleController.php:176 +msgid "Image must be one of jpg, jpeg, png, or gif" +msgstr "图像文件格式只能是jpg,jpeg,png或者gif" -#: airtime_mvc/application/controllers/LibraryController.php:217 -#: airtime_mvc/application/controllers/LibraryController.php:246 -#: airtime_mvc/application/controllers/LibraryController.php:265 -#: airtime_mvc/application/controllers/ShowbuilderController.php:202 -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:19 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:30 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:27 -#: airtime_mvc/application/services/CalendarService.php:185 -#: airtime_mvc/application/services/CalendarService.php:200 -#: airtime_mvc/application/services/CalendarService.php:205 -msgid "Delete" -msgstr "删除" +#: airtime_mvc/application/controllers/LocaleController.php:132 +#: airtime_mvc/application/controllers/LocaleController.php:130 +msgid "" +"A static smart block will save the criteria and generate the block content " +"immediately. This allows you to edit and view it in the Library before " +"adding it to a show." +msgstr "" +"静态的智能模块将会保存条件设置并且马上生成所有内容。这样就可以让你在添加到节" +"目中前,还可以编辑和预览该智能模块。" -#: airtime_mvc/application/controllers/LibraryController.php:226 -msgid "Duplicate Playlist" -msgstr "复制播放列表" +#: airtime_mvc/application/controllers/LocaleController.php:134 +#: airtime_mvc/application/controllers/LocaleController.php:132 +msgid "" +"A dynamic smart block will only save the criteria. The block content will " +"get generated upon adding it to a show. You will not be able to view and " +"edit the content in the Library." +msgstr "" +"动态的智能模块将只保存条件设置。而模块的内容将在每次添加到节目中是动态生成。" +"在媒体库中,你不能直接编辑和预览动态智能模块。" -#: airtime_mvc/application/controllers/LibraryController.php:241 -#: airtime_mvc/application/controllers/LibraryController.php:263 -#: airtime_mvc/application/services/CalendarService.php:156 -msgid "Edit" -msgstr "编辑" +#: airtime_mvc/application/controllers/LocaleController.php:136 +#: airtime_mvc/application/controllers/LocaleController.php:134 +msgid "" +"The desired block length will not be reached if Airtime cannot find enough " +"unique tracks to match your criteria. Enable this option if you wish to " +"allow tracks to be added multiple times to the smart block." +msgstr "" +"因为满足条件的声音文件数量有限,只能播放列表指定的时长可能无法达成。如果你不" +"介意出现重复的项目,你可以启用此项。" -#: airtime_mvc/application/controllers/LibraryController.php:276 -msgid "Soundcloud" -msgstr "Soundcloud" +#: airtime_mvc/application/controllers/LocaleController.php:137 +#: airtime_mvc/application/controllers/LocaleController.php:135 +msgid "Smart block shuffled" +msgstr "智能模块已经随机排列" -#: airtime_mvc/application/controllers/LibraryController.php:282 -#: airtime_mvc/application/services/CalendarService.php:65 -msgid "View on Soundcloud" -msgstr "在Soundcloud中查看" +#: airtime_mvc/application/controllers/LocaleController.php:138 +#: airtime_mvc/application/controllers/LocaleController.php:136 +msgid "Smart block generated and criteria saved" +msgstr "智能模块已经生成,条件设置已经保存" -#: airtime_mvc/application/controllers/LibraryController.php:286 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Re-upload to SoundCloud" -msgstr "重新上传到SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:139 +#: airtime_mvc/application/controllers/LocaleController.php:137 +msgid "Smart block saved" +msgstr "智能模块已经保存" -#: airtime_mvc/application/controllers/LibraryController.php:288 -#: airtime_mvc/application/services/CalendarService.php:70 -msgid "Upload to SoundCloud" -msgstr "上传到SoundCloud" +#: airtime_mvc/application/controllers/LocaleController.php:140 +#: airtime_mvc/application/controllers/LocaleController.php:138 +msgid "Processing..." +msgstr "加载中..." + +#: airtime_mvc/application/controllers/LocaleController.php:152 +#: airtime_mvc/application/controllers/LocaleController.php:150 +msgid "Choose Storage Folder" +msgstr "选择存储文件夹" -#: airtime_mvc/application/controllers/LibraryController.php:295 -msgid "No action available" -msgstr "没有操作选择" +#: airtime_mvc/application/controllers/LocaleController.php:153 +#: airtime_mvc/application/controllers/LocaleController.php:151 +msgid "Choose Folder to Watch" +msgstr "选择监控的文件夹" -#: airtime_mvc/application/controllers/LibraryController.php:315 -msgid "You don't have permission to delete selected items." -msgstr "你没有删除选定项目的权限。" +#: airtime_mvc/application/controllers/LocaleController.php:155 +#: airtime_mvc/application/controllers/LocaleController.php:153 +msgid "" +"Are you sure you want to change the storage folder?\n" +"This will remove the files from your Airtime library!" +msgstr "" +"确定更改存储路径?\n" +"这项操作将从媒体库中删除所有文件!" -#: airtime_mvc/application/controllers/LibraryController.php:364 -msgid "Could not delete some scheduled files." -msgstr "部分已经安排的节目内容不能删除。" +#: airtime_mvc/application/controllers/LocaleController.php:157 +#: airtime_mvc/application/controllers/LocaleController.php:155 +msgid "Are you sure you want to remove the watched folder?" +msgstr "确定取消该文件夹的监控?" -#: airtime_mvc/application/controllers/LibraryController.php:404 +#: airtime_mvc/application/controllers/LocaleController.php:158 +#: airtime_mvc/application/controllers/LocaleController.php:156 +msgid "This path is currently not accessible." +msgstr "指定的路径无法访问。" + +#: airtime_mvc/application/controllers/LocaleController.php:160 +#: airtime_mvc/application/controllers/LocaleController.php:158 #, php-format -msgid "Copy of %s" -msgstr "%s的副本" +msgid "" +"Some stream types require extra configuration. Details about enabling %sAAC+ " +"Support%s or %sOpus Support%s are provided." +msgstr "" +"某些类型的输出流需要第三方软件的设置,具体步骤如下:%sAAC+%s 和 %sOpus%s。" -#: airtime_mvc/application/controllers/ShowbuilderController.php:196 -msgid "Select cursor" -msgstr "选择游标" +#: airtime_mvc/application/controllers/LocaleController.php:161 +#: airtime_mvc/application/controllers/LocaleController.php:159 +msgid "Connected to the streaming server" +msgstr "流服务器已连接" -#: airtime_mvc/application/controllers/ShowbuilderController.php:197 -msgid "Remove cursor" -msgstr "删除游标" +#: airtime_mvc/application/controllers/LocaleController.php:162 +#: airtime_mvc/application/controllers/LocaleController.php:160 +msgid "The stream is disabled" +msgstr "输出流已禁用" -#: airtime_mvc/application/controllers/ShowbuilderController.php:216 -msgid "show does not exist" -msgstr "节目不存在" +#: airtime_mvc/application/controllers/LocaleController.php:164 +#: airtime_mvc/application/controllers/LocaleController.php:162 +msgid "Can not connect to the streaming server" +msgstr "无法连接流服务器" -#: airtime_mvc/application/controllers/PreferenceController.php:74 -msgid "Preferences updated." -msgstr "属性已更新。" +#: airtime_mvc/application/controllers/LocaleController.php:166 +#: airtime_mvc/application/controllers/LocaleController.php:164 +msgid "" +"If Airtime is behind a router or firewall, you may need to configure port " +"forwarding and this field information will be incorrect. In this case you " +"will need to manually update this field so it shows the correct host/port/" +"mount that your DJ's need to connect to. The allowed range is between 1024 " +"and 49151." +msgstr "" +"如果Airtime配置在路由器或者防火墙之后,你可能需要配置端口转发,所以当前文本框" +"内的信息需要调整。在这种情况下,就需要人工指定该信息以确定所显示的主机名/端" +"口/加载点的正确性,从而让节目编辑能连接的上。端口所允许的范围,介于1024到" +"49151之间。" -#: airtime_mvc/application/controllers/PreferenceController.php:125 -msgid "Support setting updated." -msgstr "支持设定已更新。" +#: airtime_mvc/application/controllers/LocaleController.php:167 +#: airtime_mvc/application/controllers/LocaleController.php:165 +#, php-format +msgid "For more details, please read the %sAirtime Manual%s" +msgstr "更多的细节可以参阅%sAirtime用户手册%s" -#: airtime_mvc/application/controllers/PreferenceController.php:137 -#: airtime_mvc/application/configs/navigation.php:70 -msgid "Support Feedback" -msgstr "意见反馈" +#: airtime_mvc/application/controllers/LocaleController.php:169 +#: airtime_mvc/application/controllers/LocaleController.php:167 +msgid "" +"Check this option to enable metadata for OGG streams (stream metadata is the " +"track title, artist, and show name that is displayed in an audio player). " +"VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that " +"has metadata information enabled: they will disconnect from the stream after " +"every song. If you are using an OGG stream and your listeners do not require " +"support for these audio players, then feel free to enable this option." +msgstr "" +"勾选此项会启用OGG格式流媒体的元数据(流的元数据包括歌曲名,歌手/作者,节目" +"名,这些都会显示在音频播放器中。)VLC和mplayer有个已知的问题,他们在播放OGG/" +"VORBIS媒体流时,如果该流已启用元数据,那么在每首歌的间隙都会断开流。所以,如" +"果你使用OGG媒体流,同时你的听众不使用上述媒体播放器的话,你可以随意地勾选此" +"项。" -#: airtime_mvc/application/controllers/PreferenceController.php:336 -msgid "Stream Setting Updated." -msgstr "流设置已更新。" +#: airtime_mvc/application/controllers/LocaleController.php:170 +#: airtime_mvc/application/controllers/LocaleController.php:168 +msgid "" +"Check this box to automatically switch off Master/Show source upon source " +"disconnection." +msgstr "" +"勾选此项后,在输入流断开时,主输入源和节目定制输入源将会自动切换为关闭状态。" -#: airtime_mvc/application/controllers/PreferenceController.php:369 -msgid "path should be specified" -msgstr "请指定路径" +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:169 +msgid "" +"Check this box to automatically switch on Master/Show source upon source " +"connection." +msgstr "" +"勾选此项后,在输入流连接上时,主输入源和节目定制输入源将会自动切换到开启状" +"态。" -#: airtime_mvc/application/controllers/PreferenceController.php:464 -msgid "Problem with Liquidsoap..." -msgstr "Liquidsoap出错..." +#: airtime_mvc/application/controllers/LocaleController.php:172 +#: airtime_mvc/application/controllers/LocaleController.php:170 +msgid "" +"If your Icecast server expects a username of 'source', this field can be " +"left blank." +msgstr "如果你的Icecast服务器所要求的用户名是‘source’,那么当前项可以留空。" -#: airtime_mvc/application/configs/navigation.php:12 -msgid "Now Playing" -msgstr "直播室" +#: airtime_mvc/application/controllers/LocaleController.php:173 +#: airtime_mvc/application/controllers/LocaleController.php:184 +#: airtime_mvc/application/controllers/LocaleController.php:171 +#: airtime_mvc/application/controllers/LocaleController.php:182 +msgid "" +"If your live streaming client does not ask for a username, this field should " +"be 'source'." +msgstr "如果你的流客户端不需要用户名,那么当前项可以留空" -#: airtime_mvc/application/configs/navigation.php:19 -msgid "Add Media" -msgstr "添加媒体" +#: airtime_mvc/application/controllers/LocaleController.php:175 +#: airtime_mvc/application/controllers/LocaleController.php:173 +msgid "" +"If you change the username or password values for an enabled stream the " +"playout engine will be rebooted and your listeners will hear silence for " +"5-10 seconds. Changing the following fields will NOT cause a reboot: Stream " +"Label (Global Settings), and Switch Transition Fade(s), Master Username, and " +"Master Password (Input Stream Settings). If Airtime is recording, and if the " +"change causes a playout engine restart, the recording will be interrupted." +msgstr "" +"如果你更改了一个已经启用了的输出流的用户名或者密码,那么内置的播放输出引擎模" +"块将会重启,你的听众将会听到一段时间的空白,大概持续5到10秒。而改变如下的模块" +"将不会导致该模块重启:流标签(全局设置里)和流切换淡入淡出效果(秒),主输入" +"流用户名和密码(输入流设置)。如果Airtime正在录制过程中,而且改变设置导致引擎" +"模块重启后,当前的录制进程将会被打断。" -#: airtime_mvc/application/configs/navigation.php:26 -msgid "Library" -msgstr "媒体库" +#: airtime_mvc/application/controllers/LocaleController.php:176 +#: airtime_mvc/application/controllers/LocaleController.php:174 +msgid "" +"This is the admin username and password for Icecast/SHOUTcast to get " +"listener statistics." +msgstr "" +"此处填写Icecast或者SHOUTcast的管理员用户名和密码,用于获取收听数据的统计。" -#: airtime_mvc/application/configs/navigation.php:33 -msgid "Calendar" -msgstr "节目日程" +#: airtime_mvc/application/controllers/LocaleController.php:180 +#: airtime_mvc/application/controllers/LocaleController.php:178 +msgid "" +"Warning: You cannot change this field while the show is currently playing" +msgstr "" -#: airtime_mvc/application/configs/navigation.php:40 -msgid "System" -msgstr "系统" +#: airtime_mvc/application/controllers/LocaleController.php:181 +#: airtime_mvc/application/controllers/LocaleController.php:179 +msgid "No result found" +msgstr "搜索无结果" -#: airtime_mvc/application/configs/navigation.php:45 -#: airtime_mvc/application/views/scripts/preference/index.phtml:2 -msgid "Preferences" -msgstr "系统属性" +#: airtime_mvc/application/controllers/LocaleController.php:182 +#: airtime_mvc/application/controllers/LocaleController.php:180 +msgid "" +"This follows the same security pattern for the shows: only users assigned to " +"the show can connect." +msgstr "当前遵循与节目同样的安全模式:只有指定到当前节目的用户才能连接的上。" -#: airtime_mvc/application/configs/navigation.php:50 -msgid "Users" -msgstr "用户管理" +#: airtime_mvc/application/controllers/LocaleController.php:183 +#: airtime_mvc/application/controllers/LocaleController.php:181 +msgid "Specify custom authentication which will work only for this show." +msgstr "所设置的自定义认证设置只对当前的节目有效。" -#: airtime_mvc/application/configs/navigation.php:57 -msgid "Media Folders" -msgstr "存储路径" +#: airtime_mvc/application/controllers/LocaleController.php:185 +#: airtime_mvc/application/controllers/LocaleController.php:183 +msgid "The show instance doesn't exist anymore!" +msgstr "此节目已不存在" -#: airtime_mvc/application/configs/navigation.php:64 -msgid "Streams" -msgstr "媒体流设置" +#: airtime_mvc/application/controllers/LocaleController.php:186 +#: airtime_mvc/application/controllers/LocaleController.php:184 +msgid "Warning: Shows cannot be re-linked" +msgstr "注意:节目取消绑定后无法再次绑定" -#: airtime_mvc/application/configs/navigation.php:83 -msgid "Listener Stats" -msgstr "收听状态" +#: airtime_mvc/application/controllers/LocaleController.php:187 +#: airtime_mvc/application/controllers/LocaleController.php:185 +msgid "" +"By linking your repeating shows any media items scheduled in any repeat show " +"will also get scheduled in the other repeat shows" +msgstr "" +"系列节目勾选绑定后,所有节目的内容都会一模一样,对任何未开始节目的更改都会影" +"响到其他节目。" -#: airtime_mvc/application/configs/navigation.php:92 -msgid "History" -msgstr "历史记录" +#: airtime_mvc/application/controllers/LocaleController.php:188 +#: airtime_mvc/application/controllers/LocaleController.php:186 +msgid "" +"Timezone is set to the station timezone by default. Shows in the calendar " +"will be displayed in your local time defined by the Interface Timezone in " +"your user settings." +msgstr "" +"此时区设定的默认值是系统的时区设置。日程表中的节目时间则已用户定义的界面显示" +"时区为准,两者可能有所不同。" -#: airtime_mvc/application/configs/navigation.php:97 -msgid "Playout History" -msgstr "播出历史" +#: airtime_mvc/application/controllers/LocaleController.php:192 +#: airtime_mvc/application/controllers/LocaleController.php:190 +msgid "Show" +msgstr "节目" -#: airtime_mvc/application/configs/navigation.php:104 -msgid "History Templates" -msgstr "历史记录模板" +#: airtime_mvc/application/controllers/LocaleController.php:193 +#: airtime_mvc/application/controllers/LocaleController.php:191 +msgid "Show is empty" +msgstr "节目内容为空" -#: airtime_mvc/application/configs/navigation.php:113 -#: airtime_mvc/application/views/scripts/error/error.phtml:13 -msgid "Help" -msgstr "帮助" +#: airtime_mvc/application/controllers/LocaleController.php:194 +#: airtime_mvc/application/controllers/LocaleController.php:192 +msgid "1m" +msgstr "1分钟" -#: airtime_mvc/application/configs/navigation.php:118 -msgid "Getting Started" -msgstr "基本用法" +#: airtime_mvc/application/controllers/LocaleController.php:195 +#: airtime_mvc/application/controllers/LocaleController.php:193 +msgid "5m" +msgstr "5分钟" -#: airtime_mvc/application/configs/navigation.php:125 -msgid "User Manual" -msgstr "用户手册" +#: airtime_mvc/application/controllers/LocaleController.php:196 +#: airtime_mvc/application/controllers/LocaleController.php:194 +msgid "10m" +msgstr "10分钟" -#: airtime_mvc/application/configs/navigation.php:130 -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:2 -msgid "About" -msgstr "关于" +#: airtime_mvc/application/controllers/LocaleController.php:197 +#: airtime_mvc/application/controllers/LocaleController.php:195 +msgid "15m" +msgstr "15分钟" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:4 -msgid "Service" -msgstr "服务名称" +#: airtime_mvc/application/controllers/LocaleController.php:198 +#: airtime_mvc/application/controllers/LocaleController.php:196 +msgid "30m" +msgstr "30分钟" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:6 -msgid "Uptime" -msgstr "在线时间" +#: airtime_mvc/application/controllers/LocaleController.php:199 +#: airtime_mvc/application/controllers/LocaleController.php:197 +msgid "60m" +msgstr "60分钟" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:7 -msgid "CPU" -msgstr "处理器" +#: airtime_mvc/application/controllers/LocaleController.php:201 +#: airtime_mvc/application/controllers/LocaleController.php:199 +msgid "Retreiving data from the server..." +msgstr "从服务器下载数据中..." -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:8 -msgid "Memory" -msgstr "内存" +#: airtime_mvc/application/controllers/LocaleController.php:207 +#: airtime_mvc/application/controllers/LocaleController.php:205 +msgid "This show has no scheduled content." +msgstr "此节目没有安排内容。" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 -#, php-format -msgid "%s Version" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:208 +#: airtime_mvc/application/controllers/LocaleController.php:206 +msgid "This show is not completely filled with content." +msgstr "节目内容只填充了一部分。" -#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30 -msgid "Disk Space" -msgstr "磁盘空间" +#: airtime_mvc/application/controllers/LocaleController.php:212 +#: airtime_mvc/application/controllers/LocaleController.php:210 +msgid "January" +msgstr "一月" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:5 -msgid "Email / Mail Server Settings" -msgstr "邮件服务器设置" +#: airtime_mvc/application/controllers/LocaleController.php:213 +#: airtime_mvc/application/controllers/LocaleController.php:211 +msgid "February" +msgstr "二月" -#: airtime_mvc/application/views/scripts/form/preferences.phtml:10 -msgid "SoundCloud Settings" -msgstr "SoundCloud设置" +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:212 +msgid "March" +msgstr "三月" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:4 -msgid "Repeat Days:" -msgstr "重复天数:" +#: airtime_mvc/application/controllers/LocaleController.php:215 +#: airtime_mvc/application/controllers/LocaleController.php:213 +msgid "April" +msgstr "四月" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:18 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:18 -msgid "Remove" -msgstr "移除" +#: airtime_mvc/application/controllers/LocaleController.php:216 +#: airtime_mvc/application/controllers/LocaleController.php:228 +#: airtime_mvc/application/controllers/LocaleController.php:214 +#: airtime_mvc/application/controllers/LocaleController.php:226 +msgid "May" +msgstr "五月" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml:41 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:28 -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:40 -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:75 -msgid "Add" -msgstr "添加" +#: airtime_mvc/application/controllers/LocaleController.php:217 +#: airtime_mvc/application/controllers/LocaleController.php:215 +msgid "June" +msgstr "六月" -#: airtime_mvc/application/views/scripts/form/add-show-live-stream.phtml:53 -msgid "Connection URL: " -msgstr "链接地址:" +#: airtime_mvc/application/controllers/LocaleController.php:218 +#: airtime_mvc/application/controllers/LocaleController.php:216 +msgid "July" +msgstr "七月" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2 -msgid "Input Stream Settings" -msgstr "输入流设置" +#: airtime_mvc/application/controllers/LocaleController.php:219 +#: airtime_mvc/application/controllers/LocaleController.php:217 +msgid "August" +msgstr "八月" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:109 -msgid "Master Source Connection URL:" -msgstr "主输入流的链接地址:" +#: airtime_mvc/application/controllers/LocaleController.php:220 +#: airtime_mvc/application/controllers/LocaleController.php:218 +msgid "September" +msgstr "九月" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:115 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:159 -msgid "Override" -msgstr "覆盖" +#: airtime_mvc/application/controllers/LocaleController.php:221 +#: airtime_mvc/application/controllers/LocaleController.php:219 +msgid "October" +msgstr "十月" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "OK" -msgstr "确定" +#: airtime_mvc/application/controllers/LocaleController.php:222 +#: airtime_mvc/application/controllers/LocaleController.php:220 +msgid "November" +msgstr "十一月" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:120 -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:164 -msgid "RESET" -msgstr "重置" +#: airtime_mvc/application/controllers/LocaleController.php:223 +#: airtime_mvc/application/controllers/LocaleController.php:221 +msgid "December" +msgstr "十二月" -#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153 -msgid "Show Source Connection URL:" -msgstr "节目定制输入流的链接地址:" +#: airtime_mvc/application/controllers/LocaleController.php:224 +#: airtime_mvc/application/controllers/LocaleController.php:222 +msgid "Jan" +msgstr "一月" -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:74 -#: airtime_mvc/application/views/scripts/form/preferences_email_server.phtml:90 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:44 -#: airtime_mvc/application/views/scripts/form/preferences_soundcloud.phtml:59 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:49 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:34 -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:48 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:51 -#: airtime_mvc/application/views/scripts/form/preferences_general.phtml:97 -msgid "(Required)" -msgstr "(必填)" +#: airtime_mvc/application/controllers/LocaleController.php:225 +#: airtime_mvc/application/controllers/LocaleController.php:223 +msgid "Feb" +msgstr "二月" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:1 -msgid "Register Airtime" -msgstr "注册Airtime" +#: airtime_mvc/application/controllers/LocaleController.php:226 +#: airtime_mvc/application/controllers/LocaleController.php:224 +msgid "Mar" +msgstr "三月" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 -#, php-format -msgid "" -"Help %1$s improve by letting us know how you are using it. This info will be" -" collected regularly in order to enhance your user experience.%2$sClick " -"'Yes, help %1$s' and we'll make sure the features you use are constantly " -"improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:227 +#: airtime_mvc/application/controllers/LocaleController.php:225 +msgid "Apr" +msgstr "四月" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 -#, php-format -msgid "Click the box below to promote your station on %s." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:229 +#: airtime_mvc/application/controllers/LocaleController.php:227 +msgid "Jun" +msgstr "六月" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67 -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:66 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:81 -msgid "(for verification purposes only, will not be published)" -msgstr "(仅作为验证目的使用,不会用于发布)" +#: airtime_mvc/application/controllers/LocaleController.php:230 +#: airtime_mvc/application/controllers/LocaleController.php:228 +msgid "Jul" +msgstr "七月" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:152 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:156 -msgid "Note: Anything larger than 600x600 will be resized." -msgstr "注意:大于600x600的图片将会被缩放" +#: airtime_mvc/application/controllers/LocaleController.php:231 +#: airtime_mvc/application/controllers/LocaleController.php:229 +msgid "Aug" +msgstr "八月" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:166 -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:169 -msgid "Show me what I am sending " -msgstr "显示我所发送的信息" +#: airtime_mvc/application/controllers/LocaleController.php:232 +#: airtime_mvc/application/controllers/LocaleController.php:230 +msgid "Sep" +msgstr "九月" -#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:180 -msgid "Terms and Conditions" -msgstr "使用条款" +#: airtime_mvc/application/controllers/LocaleController.php:233 +#: airtime_mvc/application/controllers/LocaleController.php:231 +msgid "Oct" +msgstr "十月" -#: airtime_mvc/application/views/scripts/form/login.phtml:36 -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3 -msgid "Reset password" -msgstr "重置密码" +#: airtime_mvc/application/controllers/LocaleController.php:234 +#: airtime_mvc/application/controllers/LocaleController.php:232 +msgid "Nov" +msgstr "十一月" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:9 -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:27 -msgid "Choose folder" -msgstr "选择文件夹" +#: airtime_mvc/application/controllers/LocaleController.php:235 +#: airtime_mvc/application/controllers/LocaleController.php:233 +msgid "Dec" +msgstr "十二月" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:10 -msgid "Set" -msgstr "设置" +#: airtime_mvc/application/controllers/LocaleController.php:236 +#: airtime_mvc/application/controllers/LocaleController.php:234 +msgid "today" +msgstr "今天" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:19 -msgid "Current Import Folder:" -msgstr "当前的导入文件夹:" +#: airtime_mvc/application/controllers/LocaleController.php:237 +#: airtime_mvc/application/controllers/LocaleController.php:235 +msgid "day" +msgstr "日" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 -#, php-format -msgid "" -"Rescan watched directory (This is useful if it is network mount and may be " -"out of sync with %s)" -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:238 +#: airtime_mvc/application/controllers/LocaleController.php:236 +msgid "week" +msgstr "星期" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44 -msgid "Remove watched directory" -msgstr "移除监控文件夹" +#: airtime_mvc/application/controllers/LocaleController.php:239 +#: airtime_mvc/application/controllers/LocaleController.php:237 +msgid "month" +msgstr "月" -#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:49 -msgid "You are not watching any media folders." -msgstr "你没有正在监控的文件夹。" +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:252 +msgid "" +"Shows longer than their scheduled time will be cut off by a following show." +msgstr "超出的节目内容将被随后的节目所取代。" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:4 -msgid "Stream " -msgstr "流" +#: airtime_mvc/application/controllers/LocaleController.php:255 +#: airtime_mvc/application/controllers/LocaleController.php:253 +msgid "Cancel Current Show?" +msgstr "取消当前的节目?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:77 -msgid "Additional Options" -msgstr "附属选项" +#: airtime_mvc/application/controllers/LocaleController.php:256 +#: airtime_mvc/application/controllers/LocaleController.php:300 +#: airtime_mvc/application/controllers/LocaleController.php:254 +#: airtime_mvc/application/controllers/LocaleController.php:298 +msgid "Stop recording current show?" +msgstr "停止录制当前的节目?" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:137 -msgid "" -"The following info will be displayed to listeners in their media player:" -msgstr "以下内容将会在听众的媒体播放器上显示:" +#: airtime_mvc/application/controllers/LocaleController.php:257 +#: airtime_mvc/application/controllers/LocaleController.php:255 +msgid "Ok" +msgstr "确定" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:170 -msgid "(Your radio station website)" -msgstr "(你电台的网站)" +#: airtime_mvc/application/controllers/LocaleController.php:258 +#: airtime_mvc/application/controllers/LocaleController.php:256 +msgid "Contents of Show" +msgstr "浏览节目内容" -#: airtime_mvc/application/views/scripts/form/stream-setting-form.phtml:208 -msgid "Stream URL: " -msgstr "流的链接地址:" +#: airtime_mvc/application/controllers/LocaleController.php:261 +#: airtime_mvc/application/controllers/LocaleController.php:259 +msgid "Remove all content?" +msgstr "清空全部内容?" -#: airtime_mvc/application/views/scripts/form/daterange.phtml:6 -msgid "Filter History" -msgstr "历史记录过滤" +#: airtime_mvc/application/controllers/LocaleController.php:263 +#: airtime_mvc/application/controllers/LocaleController.php:261 +msgid "Delete selected item(s)?" +msgstr "删除选定的项目?" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:7 -msgid "Find Shows" -msgstr "查找节目" +#: airtime_mvc/application/controllers/LocaleController.php:265 +#: airtime_mvc/application/controllers/LocaleController.php:263 +msgid "End" +msgstr "结束" -#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12 -msgid "Filter By Show:" -msgstr "节目过滤器" +#: airtime_mvc/application/controllers/LocaleController.php:266 +#: airtime_mvc/application/controllers/LocaleController.php:264 +msgid "Duration" +msgstr "时长" -#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1 -#, php-format -msgid "%s's Settings" -msgstr "%s设置" +#: airtime_mvc/application/controllers/LocaleController.php:276 +#: airtime_mvc/application/controllers/LocaleController.php:274 +msgid "Show Empty" +msgstr "节目无内容" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 -#, php-format -msgid "" -"Help %s improve by letting %s know how you are using it. This information " -"will be collected regularly in order to enhance your user experience.%sClick" -" the 'Send support feedback' box and we'll make sure the features you use " -"are constantly improving." -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:277 +#: airtime_mvc/application/controllers/LocaleController.php:275 +msgid "Recording From Line In" +msgstr "从线路输入录制" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46 -msgid "" -"(In order to promote your station, 'Send support feedback' must be enabled)." -msgstr "(为了推广您的电台,请启用‘发送支持反馈’)" +#: airtime_mvc/application/controllers/LocaleController.php:278 +#: airtime_mvc/application/controllers/LocaleController.php:276 +msgid "Track preview" +msgstr "试听媒体" -#: airtime_mvc/application/views/scripts/form/support-setting.phtml:191 -msgid "Sourcefabric Privacy Policy" -msgstr "Sourcefabric隐私策略" +#: airtime_mvc/application/controllers/LocaleController.php:282 +#: airtime_mvc/application/controllers/LocaleController.php:280 +msgid "Cannot schedule outside a show." +msgstr "没有指定节目,无法凭空安排内容。" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:45 -msgid "Choose Show Instance" -msgstr "选择节目项" +#: airtime_mvc/application/controllers/LocaleController.php:283 +#: airtime_mvc/application/controllers/LocaleController.php:281 +msgid "Moving 1 Item" +msgstr "移动1个项目" -#: airtime_mvc/application/views/scripts/form/edit-history-item.phtml:56 -msgid "Find" -msgstr "查找" +#: airtime_mvc/application/controllers/LocaleController.php:284 +#: airtime_mvc/application/controllers/LocaleController.php:282 +#, php-format +msgid "Moving %s Items" +msgstr "移动%s个项目" -#: airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml:4 -msgid "Choose Days:" -msgstr "选择天数:" +#: airtime_mvc/application/controllers/LocaleController.php:287 +#: airtime_mvc/application/controllers/LocaleController.php:285 +msgid "Fade Editor" +msgstr "淡入淡出编辑器" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:3 -msgid "Smart Block Options" -msgstr "智能模块选项" +#: airtime_mvc/application/controllers/LocaleController.php:288 +#: airtime_mvc/application/controllers/LocaleController.php:286 +msgid "Cue Editor" +msgstr "切入切出编辑器" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:39 -msgid "or" -msgstr "或" +#: airtime_mvc/application/controllers/LocaleController.php:289 +#: airtime_mvc/application/controllers/LocaleController.php:287 +msgid "" +"Waveform features are available in a browser supporting the Web Audio API" +msgstr "想要启用波形图功能,需要支持Web Audio API的浏览器。" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:40 -msgid "and" -msgstr "和" +#: airtime_mvc/application/controllers/LocaleController.php:292 +#: airtime_mvc/application/controllers/LocaleController.php:290 +msgid "Select all" +msgstr "全选" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:63 -msgid " to " -msgstr "到" +#: airtime_mvc/application/controllers/LocaleController.php:293 +#: airtime_mvc/application/controllers/LocaleController.php:291 +msgid "Select none" +msgstr "全不选" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:120 -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:133 -msgid "files meet the criteria" -msgstr "个文件符合条件" +#: airtime_mvc/application/controllers/LocaleController.php:294 +#: airtime_mvc/application/controllers/LocaleController.php:292 +msgid "Remove overbooked tracks" +msgstr "移除安排多余的内容" -#: airtime_mvc/application/views/scripts/form/smart-block-criteria.phtml:127 -msgid "file meet the criteria" -msgstr "个文件符合条件" +#: airtime_mvc/application/controllers/LocaleController.php:295 +#: airtime_mvc/application/controllers/LocaleController.php:293 +msgid "Remove selected scheduled items" +msgstr "移除所选的项目" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:2 -msgid "Creating File Summary Template" -msgstr "创建文件播放记录模板" +#: airtime_mvc/application/controllers/LocaleController.php:296 +#: airtime_mvc/application/controllers/LocaleController.php:294 +msgid "Jump to the current playing track" +msgstr "跳转到当前播放的项目" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:4 -msgid "Creating Log Sheet Template" -msgstr "创建历史记录表单模板" +#: airtime_mvc/application/controllers/LocaleController.php:297 +#: airtime_mvc/application/controllers/LocaleController.php:295 +msgid "Cancel current show" +msgstr "取消当前的节目" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:46 -msgid "Add more elements" -msgstr "增加更多元素" +#: airtime_mvc/application/controllers/LocaleController.php:302 +#: airtime_mvc/application/controllers/LocaleController.php:300 +msgid "Open library to add or remove content" +msgstr "打开媒体库,添加或者删除节目内容" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:67 -msgid "Add New Field" -msgstr "添加新项目" +#: airtime_mvc/application/controllers/LocaleController.php:305 +#: airtime_mvc/application/controllers/LocaleController.php:303 +msgid "in use" +msgstr "使用中" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml:83 -msgid "Set Default Template" -msgstr "设为默认模板" +#: airtime_mvc/application/controllers/LocaleController.php:306 +#: airtime_mvc/application/controllers/LocaleController.php:304 +msgid "Disk" +msgstr "磁盘" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:4 -msgid "Log Sheet Templates" -msgstr "历史记录表单模板" +#: airtime_mvc/application/controllers/LocaleController.php:308 +#: airtime_mvc/application/controllers/LocaleController.php:306 +msgid "Look in" +msgstr "查询" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:7 -msgid "No Log Sheet Templates" -msgstr "无历史记录表单模板" +#: airtime_mvc/application/controllers/LocaleController.php:310 +#: airtime_mvc/application/controllers/LocaleController.php:308 +msgid "Open" +msgstr "打开" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:31 -msgid "New Log Sheet Template" -msgstr "新建历史记录模板" +#: airtime_mvc/application/controllers/LocaleController.php:316 +#: airtime_mvc/application/controllers/LocaleController.php:314 +msgid "Guests can do the following:" +msgstr "游客的权限包括:" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:35 -msgid "File Summary Templates" -msgstr "文件播放记录模板列表" +#: airtime_mvc/application/controllers/LocaleController.php:317 +#: airtime_mvc/application/controllers/LocaleController.php:315 +msgid "View schedule" +msgstr "显示节目日程" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:38 -msgid "No File Summary Templates" -msgstr "无文件播放记录模板" +#: airtime_mvc/application/controllers/LocaleController.php:318 +#: airtime_mvc/application/controllers/LocaleController.php:316 +msgid "View show content" +msgstr "显示节目内容" -#: airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml:62 -msgid "New File Summary Template" -msgstr "新建文件播放记录模板" +#: airtime_mvc/application/controllers/LocaleController.php:319 +#: airtime_mvc/application/controllers/LocaleController.php:317 +msgid "DJs can do the following:" +msgstr "节目编辑的权限包括:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:11 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:11 -msgid "New" -msgstr "新建" +#: airtime_mvc/application/controllers/LocaleController.php:320 +#: airtime_mvc/application/controllers/LocaleController.php:318 +msgid "Manage assigned show content" +msgstr "为指派的节目管理节目内容" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:8 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:14 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:14 -msgid "New Playlist" -msgstr "新建播放列表" +#: airtime_mvc/application/controllers/LocaleController.php:321 +#: airtime_mvc/application/controllers/LocaleController.php:319 +msgid "Import media files" +msgstr "导入媒体文件" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:9 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:15 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:15 -msgid "New Smart Block" -msgstr "新建智能模块" +#: airtime_mvc/application/controllers/LocaleController.php:322 +#: airtime_mvc/application/controllers/LocaleController.php:320 +msgid "Create playlists, smart blocks, and webstreams" +msgstr "创建播放列表,智能模块和网络流媒体" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:10 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:16 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:16 -msgid "New Webstream" -msgstr "新建网络流媒体" +#: airtime_mvc/application/controllers/LocaleController.php:323 +#: airtime_mvc/application/controllers/LocaleController.php:321 +msgid "Manage their own library content" +msgstr "管理媒体库中属于自己的内容" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:39 -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:53 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:55 -msgid "View / edit description" -msgstr "查看/编辑描述" +#: airtime_mvc/application/controllers/LocaleController.php:324 +#: airtime_mvc/application/controllers/LocaleController.php:322 +msgid "Progam Managers can do the following:" +msgstr "节目主管的权限是:" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:52 -msgid "Stream URL:" -msgstr "流的链接地址:" +#: airtime_mvc/application/controllers/LocaleController.php:325 +#: airtime_mvc/application/controllers/LocaleController.php:323 +msgid "View and manage show content" +msgstr "查看和管理节目内容" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:57 -msgid "Default Length:" -msgstr "默认长度:" +#: airtime_mvc/application/controllers/LocaleController.php:326 +#: airtime_mvc/application/controllers/LocaleController.php:324 +msgid "Schedule shows" +msgstr "安排节目日程" -#: airtime_mvc/application/views/scripts/webstream/webstream.phtml:64 -msgid "No webstream" -msgstr "没有网络流媒体" +#: airtime_mvc/application/controllers/LocaleController.php:327 +#: airtime_mvc/application/controllers/LocaleController.php:325 +msgid "Manage all library content" +msgstr "管理媒体库的所有内容" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:2 -msgid "Stream Settings" -msgstr "流设定" +#: airtime_mvc/application/controllers/LocaleController.php:328 +#: airtime_mvc/application/controllers/LocaleController.php:326 +msgid "Admins can do the following:" +msgstr "管理员的权限包括:" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:13 -msgid "Global Settings" -msgstr "全局设定" +#: airtime_mvc/application/controllers/LocaleController.php:329 +#: airtime_mvc/application/controllers/LocaleController.php:327 +msgid "Manage preferences" +msgstr "属性管理" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:88 -msgid "dB" -msgstr "分贝" +#: airtime_mvc/application/controllers/LocaleController.php:330 +#: airtime_mvc/application/controllers/LocaleController.php:328 +msgid "Manage users" +msgstr "管理用户" -#: airtime_mvc/application/views/scripts/preference/stream-setting.phtml:107 -msgid "Output Stream Settings" -msgstr "输出流设定" +#: airtime_mvc/application/controllers/LocaleController.php:331 +#: airtime_mvc/application/controllers/LocaleController.php:329 +msgid "Manage watched folders" +msgstr "管理监控文件夹" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:3 -#: airtime_mvc/application/views/scripts/library/library.phtml:3 -msgid "File import in progress..." -msgstr "导入文件进行中..." +#: airtime_mvc/application/controllers/LocaleController.php:333 +#: airtime_mvc/application/controllers/LocaleController.php:331 +msgid "View system status" +msgstr "显示系统状态" -#: airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml:5 -#: airtime_mvc/application/views/scripts/library/library.phtml:10 -msgid "Advanced Search Options" -msgstr "高级查询选项" +#: airtime_mvc/application/controllers/LocaleController.php:334 +#: airtime_mvc/application/controllers/LocaleController.php:332 +msgid "Access playout history" +msgstr "查看播放历史" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:23 -msgid "previous" -msgstr "往前" +#: airtime_mvc/application/controllers/LocaleController.php:335 +#: airtime_mvc/application/controllers/LocaleController.php:333 +msgid "View listener stats" +msgstr "显示收听统计数据" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:28 -msgid "play" -msgstr "播放" +#: airtime_mvc/application/controllers/LocaleController.php:337 +#: airtime_mvc/application/controllers/LocaleController.php:335 +msgid "Show / hide columns" +msgstr "显示/隐藏栏" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:32 -msgid "pause" -msgstr "暂停" +#: airtime_mvc/application/controllers/LocaleController.php:339 +#: airtime_mvc/application/controllers/LocaleController.php:337 +msgid "From {from} to {to}" +msgstr "从{from}到{to}" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:37 -msgid "next" -msgstr "往后" +#: airtime_mvc/application/controllers/LocaleController.php:340 +#: airtime_mvc/application/controllers/LocaleController.php:338 +msgid "kbps" +msgstr "千比特每秒" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:42 -msgid "stop" -msgstr "停止" +#: airtime_mvc/application/controllers/LocaleController.php:341 +#: airtime_mvc/application/controllers/LocaleController.php:339 +msgid "yyyy-mm-dd" +msgstr "年-月-日" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:60 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:90 -msgid "mute" -msgstr "静音" +#: airtime_mvc/application/controllers/LocaleController.php:342 +#: airtime_mvc/application/controllers/LocaleController.php:340 +msgid "hh:mm:ss.t" +msgstr "时:分:秒" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:63 -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:91 -msgid "unmute" -msgstr "取消静音" +#: airtime_mvc/application/controllers/LocaleController.php:343 +#: airtime_mvc/application/controllers/LocaleController.php:341 +msgid "kHz" +msgstr "千赫兹" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:69 -msgid "max volume" -msgstr "最大音量" +#: airtime_mvc/application/controllers/LocaleController.php:346 +#: airtime_mvc/application/controllers/LocaleController.php:344 +msgid "Su" +msgstr "周天" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:79 -msgid "Update Required" -msgstr "需要更新升级" +#: airtime_mvc/application/controllers/LocaleController.php:347 +#: airtime_mvc/application/controllers/LocaleController.php:345 +msgid "Mo" +msgstr "周一" -#: airtime_mvc/application/views/scripts/audiopreview/audio-preview.phtml:80 -#, php-format -msgid "" -"To play the media you will need to either update your browser to a recent " -"version or update your %sFlash plugin%s." -msgstr "想要播放媒体,需要更新你的浏览器到最新的版本,或者更新你的%sFalsh插件%s。" +#: airtime_mvc/application/controllers/LocaleController.php:348 +#: airtime_mvc/application/controllers/LocaleController.php:346 +msgid "Tu" +msgstr "周二" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:13 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:36 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:38 -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:147 -msgid "Length:" -msgstr "长度:" +#: airtime_mvc/application/controllers/LocaleController.php:349 +#: airtime_mvc/application/controllers/LocaleController.php:347 +msgid "We" +msgstr "周三" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:14 -msgid "Sample Rate:" -msgstr "样本率:" +#: airtime_mvc/application/controllers/LocaleController.php:350 +#: airtime_mvc/application/controllers/LocaleController.php:348 +msgid "Th" +msgstr "周四" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:24 -msgid "Isrc Number:" -msgstr "ISRC编号:" +#: airtime_mvc/application/controllers/LocaleController.php:351 +#: airtime_mvc/application/controllers/LocaleController.php:349 +msgid "Fr" +msgstr "周五" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:27 -msgid "File Path:" -msgstr "文件路径:" +#: airtime_mvc/application/controllers/LocaleController.php:352 +#: airtime_mvc/application/controllers/LocaleController.php:350 +msgid "Sa" +msgstr "周六" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:45 -msgid "Web Stream" -msgstr "网络流媒体" +#: airtime_mvc/application/controllers/LocaleController.php:355 +#: airtime_mvc/application/controllers/LocaleController.php:353 +msgid "Hour" +msgstr "小时" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 -msgid "Dynamic Smart Block" -msgstr "动态智能模块" +#: airtime_mvc/application/controllers/LocaleController.php:356 +#: airtime_mvc/application/controllers/LocaleController.php:354 +msgid "Minute" +msgstr "分钟" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 -msgid "Static Smart Block" -msgstr "静态智能模块" +#: airtime_mvc/application/controllers/LocaleController.php:357 +#: airtime_mvc/application/controllers/LocaleController.php:355 +msgid "Done" +msgstr "设定" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 -msgid "Audio Track" -msgstr "音频文件" +#: airtime_mvc/application/controllers/LocaleController.php:360 +#: airtime_mvc/application/controllers/LocaleController.php:358 +msgid "Select files" +msgstr "选择文件" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:63 -msgid "Playlist Contents: " -msgstr "播放列表内容:" +#: airtime_mvc/application/controllers/LocaleController.php:361 +#: airtime_mvc/application/controllers/LocaleController.php:362 +#: airtime_mvc/application/controllers/LocaleController.php:359 +#: airtime_mvc/application/controllers/LocaleController.php:360 +msgid "Add files to the upload queue and click the start button." +msgstr "添加需要上传的文件到传输队列中,然后点击开始上传。" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 -msgid "Static Smart Block Contents: " -msgstr "静态智能模块条件:" +#: airtime_mvc/application/controllers/LocaleController.php:365 +#: airtime_mvc/application/controllers/LocaleController.php:363 +msgid "Add Files" +msgstr "添加文件" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 -msgid "Dynamic Smart Block Criteria: " -msgstr "动态智能模块条件:" +#: airtime_mvc/application/controllers/LocaleController.php:366 +#: airtime_mvc/application/controllers/LocaleController.php:364 +msgid "Stop Upload" +msgstr "停止上传" -#: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 -msgid "Limit to " -msgstr "限制到" +#: airtime_mvc/application/controllers/LocaleController.php:367 +#: airtime_mvc/application/controllers/LocaleController.php:365 +msgid "Start upload" +msgstr "开始上传" -#: airtime_mvc/application/views/scripts/listenerstat/index.phtml:2 -msgid "Listener Count Over Time" -msgstr "听众统计报告" +#: airtime_mvc/application/controllers/LocaleController.php:368 +#: airtime_mvc/application/controllers/LocaleController.php:366 +msgid "Add files" +msgstr "添加文件" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#: airtime_mvc/application/controllers/LocaleController.php:369 +#: airtime_mvc/application/controllers/LocaleController.php:367 #, php-format -msgid "Welcome to %s!" -msgstr "" +msgid "Uploaded %d/%d files" +msgstr "已经上传%d/%d个文件" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 -#, php-format -msgid "Here's how you can get started using %s to automate your broadcasts: " -msgstr "" +#: airtime_mvc/application/controllers/LocaleController.php:370 +#: airtime_mvc/application/controllers/LocaleController.php:368 +msgid "N/A" +msgstr "未知" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7 -msgid "" -"Begin by adding your files to the library using the 'Add Media' menu button." -" You can drag and drop your files to this window too." -msgstr "首先把你的媒体文件通过‘添加媒体’导入到媒体库中。你也可以简单的拖拽文件到本窗口" +#: airtime_mvc/application/controllers/LocaleController.php:371 +#: airtime_mvc/application/controllers/LocaleController.php:369 +msgid "Drag files here." +msgstr "拖拽文件到此处。" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:8 -msgid "" -"Create a show by going to 'Calendar' in the menu bar, and then clicking the " -"'+ Show' icon. This can be either a one-time or repeating show. Only admins " -"and program managers can add shows." -msgstr "你可以创建一个节目,从菜单栏打开页面‘日程表’,点击按钮‘+ 节目’。这个节目可以是一次性的,也可以是系列性的。只有系统管理员" +#: airtime_mvc/application/controllers/LocaleController.php:372 +#: airtime_mvc/application/controllers/LocaleController.php:370 +msgid "File extension error." +msgstr "文件后缀名出错。" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:9 -msgid "" -"Add media to the show by going to your show in the Schedule calendar, left-" -"clicking on it and selecting 'Add / Remove Content'" -msgstr "然后给你的节目添加内容,在日程表页面中选中节目,左键单击,在出现的菜单上选择‘添加/删除内容’" +#: airtime_mvc/application/controllers/LocaleController.php:373 +#: airtime_mvc/application/controllers/LocaleController.php:371 +msgid "File size error." +msgstr "文件大小出错。" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:10 -msgid "" -"Select your media from the left pane and drag them to your show in the right" -" pane." -msgstr "在页面左半部分选择媒体文件,然后拖拽到右半部分。" +#: airtime_mvc/application/controllers/LocaleController.php:374 +#: airtime_mvc/application/controllers/LocaleController.php:372 +msgid "File count error." +msgstr "发生文件统计错误。" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:12 -msgid "Then you're good to go!" -msgstr "然后就大功告成啦!" +#: airtime_mvc/application/controllers/LocaleController.php:375 +#: airtime_mvc/application/controllers/LocaleController.php:373 +msgid "Init error." +msgstr "发生初始化错误。" -#: airtime_mvc/application/views/scripts/dashboard/help.phtml:15 -#, php-format -msgid "For more detailed help, read the %suser manual%s." -msgstr "详细的指导,可以参考%s用户手册%s。" +#: airtime_mvc/application/controllers/LocaleController.php:376 +#: airtime_mvc/application/controllers/LocaleController.php:374 +msgid "HTTP Error." +msgstr "发生HTTP类型的错误" -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:3 -msgid "Share" -msgstr "共享" +#: airtime_mvc/application/controllers/LocaleController.php:377 +#: airtime_mvc/application/controllers/LocaleController.php:375 +msgid "Security error." +msgstr "发生安全性错误。" -#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:64 -msgid "Select stream:" -msgstr "选择流:" +#: airtime_mvc/application/controllers/LocaleController.php:378 +#: airtime_mvc/application/controllers/LocaleController.php:376 +msgid "Generic error." +msgstr "发生通用类型的错误。" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#: airtime_mvc/application/controllers/LocaleController.php:379 +#: airtime_mvc/application/controllers/LocaleController.php:377 +msgid "IO error." +msgstr "输入输出错误。" + +#: airtime_mvc/application/controllers/LocaleController.php:380 +#: airtime_mvc/application/controllers/LocaleController.php:378 #, php-format -msgid "" -"%1$s %2$s, the open radio software for scheduling and remote station " -"management." -msgstr "" +msgid "File: %s" +msgstr "文件:%s" -#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 +#: airtime_mvc/application/controllers/LocaleController.php:382 +#: airtime_mvc/application/controllers/LocaleController.php:380 #, php-format -msgid "%1$s %2$s is distributed under the %3$s" -msgstr "" +msgid "%d files queued" +msgstr "队列中有%d个文件" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:3 -msgid "New password" -msgstr "新密码" +#: airtime_mvc/application/controllers/LocaleController.php:383 +#: airtime_mvc/application/controllers/LocaleController.php:381 +msgid "File: %f, size: %s, max file size: %m" +msgstr "文件:%f,大小:%s,最大的文件大小:%m" -#: airtime_mvc/application/views/scripts/login/password-change.phtml:6 -msgid "Please enter and confirm your new password in the fields below." -msgstr "请再次输入你的新密码。" +#: airtime_mvc/application/controllers/LocaleController.php:384 +#: airtime_mvc/application/controllers/LocaleController.php:382 +msgid "Upload URL might be wrong or doesn't exist" +msgstr "用于上传的地址有误或者不存在" -#: airtime_mvc/application/views/scripts/login/password-restore.phtml:7 -msgid "" -"Please enter your account e-mail address. You will receive a link to create " -"a new password via e-mail." -msgstr "请输入你帐号的邮件地址,然后你将收到一封邮件,其中有一个链接,用来创建你的新密码。" +#: airtime_mvc/application/controllers/LocaleController.php:385 +#: airtime_mvc/application/controllers/LocaleController.php:383 +msgid "Error: File too large: " +msgstr "错误:文件过大:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:3 -msgid "Email sent" -msgstr "邮件已发送" +#: airtime_mvc/application/controllers/LocaleController.php:386 +#: airtime_mvc/application/controllers/LocaleController.php:384 +msgid "Error: Invalid file extension: " +msgstr "错误:无效的文件后缀名:" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:6 -msgid "An email has been sent" -msgstr "邮件已经发出" +#: airtime_mvc/application/controllers/LocaleController.php:389 +#: airtime_mvc/application/controllers/LocaleController.php:387 +msgid "Create Entry" +msgstr "创建项目" -#: airtime_mvc/application/views/scripts/login/password-restore-after.phtml:7 -msgid "Back to login screen" -msgstr "返回登录页面" +#: airtime_mvc/application/controllers/LocaleController.php:390 +#: airtime_mvc/application/controllers/LocaleController.php:388 +msgid "Edit History Record" +msgstr "编辑历史记录" -#: airtime_mvc/application/views/scripts/login/index.phtml:7 +#: airtime_mvc/application/controllers/LocaleController.php:393 +#: airtime_mvc/application/controllers/LocaleController.php:391 +#, php-format +msgid "Copied %s row%s to the clipboard" +msgstr "复制%s行%s到剪贴板" + +#: airtime_mvc/application/controllers/LocaleController.php:394 +#: airtime_mvc/application/controllers/LocaleController.php:392 #, php-format msgid "" -"Welcome to the %s demo! You can log in using the username 'admin' and the " -"password 'admin'." +"%sPrint view%sPlease use your browser's print function to print this table. " +"Press escape when finished." msgstr "" +"%s打印预览%s请使用浏览器的打印功能进行打印。按下Esc键可以退出当前状态。" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3 -msgid "Previous:" -msgstr "之前的:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:10 -msgid "Next:" -msgstr "之后的:" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24 -msgid "Source Streams" -msgstr "输入流" - -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29 -msgid "Master Source" -msgstr "主输入流" +#: airtime_mvc/application/controllers/ShowbuilderController.php:194 +#: airtime_mvc/application/controllers/LibraryController.php:189 +msgid "Preview" +msgstr "预览" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:38 -msgid "Show Source" -msgstr "节目定制的输入流" +#: airtime_mvc/application/controllers/ShowbuilderController.php:196 +msgid "Select cursor" +msgstr "选择游标" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:45 -msgid "Scheduled Play" -msgstr "预先安排的节目流" +#: airtime_mvc/application/controllers/ShowbuilderController.php:197 +msgid "Remove cursor" +msgstr "删除游标" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:54 -msgid "ON AIR" -msgstr "直播中" +#: airtime_mvc/application/controllers/ShowbuilderController.php:216 +msgid "show does not exist" +msgstr "节目不存在" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:55 -msgid "Listen" -msgstr "收听" +#: airtime_mvc/application/controllers/PreferenceController.php:74 +msgid "Preferences updated." +msgstr "属性已更新。" -#: airtime_mvc/application/views/scripts/partialviews/header.phtml:59 -msgid "Station time" -msgstr "电台当前时间" +#: airtime_mvc/application/controllers/PreferenceController.php:125 +msgid "Support setting updated." +msgstr "支持设定已更新。" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:3 -msgid "Your trial expires in" -msgstr "你的试用天数还剩" +#: airtime_mvc/application/controllers/PreferenceController.php:332 +#: airtime_mvc/application/controllers/PreferenceController.php:336 +msgid "Stream Setting Updated." +msgstr "流设置已更新。" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -#, php-format -msgid "Purchase your copy of %s" -msgstr "" +#: airtime_mvc/application/controllers/PreferenceController.php:365 +#: airtime_mvc/application/controllers/PreferenceController.php:369 +msgid "path should be specified" +msgstr "请指定路径" -#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 -msgid "My Account" -msgstr "我的账户" +#: airtime_mvc/application/controllers/PreferenceController.php:460 +#: airtime_mvc/application/controllers/PreferenceController.php:464 +msgid "Problem with Liquidsoap..." +msgstr "Liquidsoap出错..." -#: airtime_mvc/application/views/scripts/user/add-user.phtml:3 -msgid "Manage Users" -msgstr "用户管理" +#: airtime_mvc/application/controllers/ErrorController.php:17 +msgid "Page not found" +msgstr "页面不存在" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:10 -msgid "New User" -msgstr "新建用户" +#: airtime_mvc/application/controllers/ErrorController.php:22 +msgid "Application error" +msgstr "应用程序错误" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:17 -msgid "id" -msgstr "编号" +#: airtime_mvc/application/controllers/LibraryController.php:125 +#: airtime_mvc/application/controllers/PlaylistController.php:130 +#, php-format +msgid "%s not found" +msgstr "%s不存在" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:19 -msgid "First Name" -msgstr "名" +#: airtime_mvc/application/controllers/LibraryController.php:134 +#: airtime_mvc/application/controllers/PlaylistController.php:151 +msgid "Something went wrong." +msgstr "未知错误。" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:20 -msgid "Last Name" -msgstr "姓" +#: airtime_mvc/application/controllers/LibraryController.php:210 +#: airtime_mvc/application/controllers/LibraryController.php:234 +#: airtime_mvc/application/controllers/LibraryController.php:257 +msgid "Add to Playlist" +msgstr "添加到播放列表" -#: airtime_mvc/application/views/scripts/user/add-user.phtml:21 -msgid "User Type" -msgstr "用户类型" +#: airtime_mvc/application/controllers/LibraryController.php:212 +msgid "Add to Smart Block" +msgstr "添加到智能模块" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:7 -msgid "Log Sheet" -msgstr "历史记录表单" +#: airtime_mvc/application/controllers/LibraryController.php:222 +#: airtime_mvc/application/controllers/ScheduleController.php:624 +msgid "Download" +msgstr "下载" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:8 -msgid "File Summary" -msgstr "文件播放记录" +#: airtime_mvc/application/controllers/LibraryController.php:226 +msgid "Duplicate Playlist" +msgstr "复制播放列表" -#: airtime_mvc/application/views/scripts/playouthistory/index.phtml:10 -msgid "Show Summary" -msgstr "节目播放记录" +#: airtime_mvc/application/controllers/LibraryController.php:276 +msgid "Soundcloud" +msgstr "Soundcloud" -#: airtime_mvc/application/views/scripts/error/error.phtml:6 -msgid "Zend Framework Default Application" -msgstr "Zend框架默认程序" +#: airtime_mvc/application/controllers/LibraryController.php:295 +msgid "No action available" +msgstr "没有操作选择" -#: airtime_mvc/application/views/scripts/error/error.phtml:10 -msgid "Page not found!" -msgstr "页面不存在!" +#: airtime_mvc/application/controllers/LibraryController.php:315 +msgid "You don't have permission to delete selected items." +msgstr "你没有删除选定项目的权限。" -#: airtime_mvc/application/views/scripts/error/error.phtml:11 -msgid "Looks like the page you were looking for doesn't exist!" -msgstr "你所寻找的页面不存在!" +#: airtime_mvc/application/controllers/LibraryController.php:364 +msgid "Could not delete some scheduled files." +msgstr "部分已经安排的节目内容不能删除。" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:54 -msgid "Expand Static Block" -msgstr "展开静态智能模块" +#: airtime_mvc/application/controllers/LibraryController.php:404 +#, php-format +msgid "Copy of %s" +msgstr "%s的副本" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:59 -msgid "Expand Dynamic Block" -msgstr "展开动态智能模块" +#: airtime_mvc/application/controllers/WebstreamController.php:29 +#: airtime_mvc/application/controllers/WebstreamController.php:33 +msgid "Untitled Webstream" +msgstr "未命名的网络流媒体" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:135 -msgid "Empty smart block" -msgstr "无内容的智能模块" +#: airtime_mvc/application/controllers/WebstreamController.php:138 +msgid "Webstream saved." +msgstr "网络流媒体已保存。" -#: airtime_mvc/application/views/scripts/playlist/update.phtml:137 -msgid "Empty playlist" -msgstr "无内容的播放列表" +#: airtime_mvc/application/controllers/WebstreamController.php:146 +msgid "Invalid form values." +msgstr "无效的表格内容。" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -msgid "Empty playlist content" -msgstr "播放列表无内容" +#: airtime_mvc/application/controllers/DashboardController.php:36 +#: airtime_mvc/application/controllers/DashboardController.php:85 +msgid "You don't have permission to disconnect source." +msgstr "你没有断开输入源的权限。" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:21 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Clear" -msgstr "清除" +#: airtime_mvc/application/controllers/DashboardController.php:38 +#: airtime_mvc/application/controllers/DashboardController.php:87 +msgid "There is no source connected to this input." +msgstr "没有连接上的输入源。" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:24 -msgid "Shuffle playlist" -msgstr "随机打乱播放列表" +#: airtime_mvc/application/controllers/DashboardController.php:82 +msgid "You don't have permission to switch source." +msgstr "你没有切换的权限。" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:27 -msgid "Save playlist" -msgstr "保存播放列表" +#: airtime_mvc/application/controllers/UserController.php:82 +#: airtime_mvc/application/controllers/UserController.php:76 +msgid "User added successfully!" +msgstr "用户已添加成功!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:34 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:31 -msgid "Playlist crossfade" -msgstr "播放列表交错淡入淡出效果" +#: airtime_mvc/application/controllers/UserController.php:84 +#: airtime_mvc/application/controllers/UserController.php:78 +msgid "User updated successfully!" +msgstr "用于已成功更新!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:67 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "Fade in: " -msgstr "淡入:" +#: airtime_mvc/application/controllers/UserController.php:154 +#: airtime_mvc/application/controllers/UserController.php:148 +msgid "Settings updated successfully!" +msgstr "设置更新成功!" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:70 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -msgid "Fade out: " -msgstr "淡出:" +#: airtime_mvc/application/controllers/ScheduleController.php:350 +#, php-format +msgid "Rebroadcast of show %s from %s at %s" +msgstr "节目%s是节目%s的重播,时间是%s" -#: airtime_mvc/application/views/scripts/playlist/playlist.phtml:85 -msgid "No open playlist" -msgstr "没有打开的播放列表" +#: airtime_mvc/application/controllers/ListenerstatController.php:91 +#: airtime_mvc/application/controllers/ListenerstatController.php:56 +msgid "" +"Please make sure admin user/password is correct on System->Streams page." +msgstr "请检查系统->媒体流设置中,管理员用户/密码的设置是否正确。" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:21 -msgid "Empty smart block content" -msgstr "智能模块无内容" +#: airtime_mvc/application/controllers/ApiController.php:60 +#: airtime_mvc/application/controllers/ApiController.php:61 +#: airtime_mvc/application/controllers/Apiv2Controller.php:77 +msgid "You are not allowed to access this resource." +msgstr "你没有访问该资源的权限" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:72 -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:75 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:6 -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:19 -msgid "(ss.t)" -msgstr "(秒.分秒)" +#: airtime_mvc/application/controllers/ApiController.php:315 +#: airtime_mvc/application/controllers/ApiController.php:377 +#: airtime_mvc/application/controllers/ApiController.php:314 +#: airtime_mvc/application/controllers/ApiController.php:376 +#: airtime_mvc/application/controllers/ApiController.php:318 +#: airtime_mvc/application/controllers/ApiController.php:390 +#: airtime_mvc/application/controllers/ApiController.php:504 +#: airtime_mvc/application/controllers/ApiController.php:608 +#: airtime_mvc/application/controllers/ApiController.php:641 +msgid "You are not allowed to access this resource. " +msgstr "你没有访问该资源的权限" -#: airtime_mvc/application/views/scripts/playlist/smart-block.phtml:90 -msgid "No open smart block" -msgstr "没有打开的智能模块" +#: airtime_mvc/application/controllers/ApiController.php:558 +#: airtime_mvc/application/controllers/ApiController.php:555 +msgid "File does not exist in Airtime." +msgstr "Airtime中不存在该文件。" -#: airtime_mvc/application/views/scripts/playlist/set-fade.phtml:3 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:3 -msgid "Show Waveform" -msgstr "显示波形图" +#: airtime_mvc/application/controllers/ApiController.php:578 +#: airtime_mvc/application/controllers/ApiController.php:575 +msgid "File does not exist in Airtime" +msgstr "Airtime中不存在该文件。" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -msgid "Cue In: " -msgstr "切入:" +#: airtime_mvc/application/controllers/ApiController.php:590 +#: airtime_mvc/application/controllers/ApiController.php:587 +msgid "File doesn't exist in Airtime." +msgstr "Airtime中不存在该文件。" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:5 -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "(hh:mm:ss.t)" -msgstr "(时:分:秒.分秒)" +#: airtime_mvc/application/controllers/ApiController.php:641 +#: airtime_mvc/application/controllers/ApiController.php:638 +#: airtime_mvc/application/controllers/ApiController.php:854 +msgid "Bad request. no 'mode' parameter passed." +msgstr "请求错误。没有提供‘模式’参数。" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:12 -msgid "Cue Out: " -msgstr "切出:" +#: airtime_mvc/application/controllers/ApiController.php:651 +#: airtime_mvc/application/controllers/ApiController.php:648 +#: airtime_mvc/application/controllers/ApiController.php:864 +msgid "Bad request. 'mode' parameter is invalid" +msgstr "请求错误。提供的‘模式’参数无效。" -#: airtime_mvc/application/views/scripts/playlist/set-cue.phtml:19 -msgid "Original Length:" -msgstr "原始长度:" +#: airtime_mvc/application/controllers/PlaylistController.php:48 +#, php-format +msgid "You are viewing an older version of %s" +msgstr "你所查看的%s已更改" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Add this show" -msgstr "添加此节目" +#: airtime_mvc/application/controllers/PlaylistController.php:123 +msgid "You cannot add tracks to dynamic blocks." +msgstr "动态智能模块不能添加声音文件。" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:6 -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:40 -msgid "Update show" -msgstr "更新节目" +#: airtime_mvc/application/controllers/PlaylistController.php:144 +#, php-format +msgid "You don't have permission to delete selected %s(s)." +msgstr "你没有删除所选%s的权限。" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:10 -msgid "What" -msgstr "名称" +#: airtime_mvc/application/controllers/PlaylistController.php:157 +msgid "You can only add tracks to smart block." +msgstr "智能模块只能添加媒体文件。" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:14 -msgid "When" -msgstr "时间" +#: airtime_mvc/application/controllers/PlaylistController.php:175 +msgid "Untitled Playlist" +msgstr "未命名的播放列表" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:19 -msgid "Live Stream Input" -msgstr "输入流设置" +#: airtime_mvc/application/controllers/PlaylistController.php:177 +msgid "Untitled Smart Block" +msgstr "未命名的智能模块" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:23 -msgid "Record & Rebroadcast" -msgstr "录制与重播" +#: airtime_mvc/application/controllers/PlaylistController.php:495 +msgid "Unknown Playlist" +msgstr "位置播放列表" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:29 -msgid "Who" -msgstr "管理和编辑" +#: airtime_mvc/application/models/Block.php:833 +#: airtime_mvc/application/models/Playlist.php:812 +msgid "Cue in and cue out are null." +msgstr "切入点和切出点均为空" -#: airtime_mvc/application/views/scripts/schedule/add-show-form.phtml:33 -msgid "Style" -msgstr "风格" +#: airtime_mvc/application/models/Block.php:868 +#: airtime_mvc/application/models/Block.php:924 +#: airtime_mvc/application/models/Playlist.php:851 +#: airtime_mvc/application/models/Playlist.php:895 +msgid "Can't set cue out to be greater than file length." +msgstr "切出点不能超出文件原长度" -#: airtime_mvc/application/models/ShowBuilder.php:212 -#, php-format -msgid "Rebroadcast of %s from %s" -msgstr "%s是%s的重播" +#: airtime_mvc/application/models/Block.php:879 +#: airtime_mvc/application/models/Block.php:900 +#: airtime_mvc/application/models/Playlist.php:843 +#: airtime_mvc/application/models/Playlist.php:868 +msgid "Can't set cue in to be larger than cue out." +msgstr "切入点不能晚于切出点" -#: airtime_mvc/application/models/Preference.php:650 -msgid "Select Country" -msgstr "选择国家" +#: airtime_mvc/application/models/Block.php:935 +#: airtime_mvc/application/models/Playlist.php:887 +msgid "Can't set cue out to be smaller than cue in." +msgstr "切出点不能早于切入点" #: airtime_mvc/application/models/Webstream.php:157 msgid "Length needs to be greater than 0 minutes" @@ -3648,43 +4271,26 @@ msgstr "媒体流格式错误,当前“媒体流”只是一个可下载的文 msgid "Unrecognized stream type: %s" msgstr "未知的媒体流格式: %s" -#: airtime_mvc/application/models/MusicDir.php:160 -#, php-format -msgid "%s is already watched." -msgstr "%s 已经监控" - -#: airtime_mvc/application/models/MusicDir.php:164 -#, php-format -msgid "%s contains nested watched directory: %s" -msgstr "%s 所含的子文件夹 %s 已经被监控" - -#: airtime_mvc/application/models/MusicDir.php:168 -#, php-format -msgid "%s is nested within existing watched directory: %s" -msgstr "%s 无法监控,因为父文件夹 %s 已经监控" - -#: airtime_mvc/application/models/MusicDir.php:189 -#: airtime_mvc/application/models/MusicDir.php:368 -#, php-format -msgid "%s is not a valid directory." -msgstr "%s 不是文件夹。" - -#: airtime_mvc/application/models/MusicDir.php:232 +#: airtime_mvc/application/models/Auth.php:33 #, php-format msgid "" -"%s is already set as the current storage dir or in the watched folders list" -msgstr "%s 已经设置成媒体存储文件夹,或者监控文件夹。" +"Hi %s, \n" +"\n" +"Click this link to reset your password: " +msgstr "" +"%s 你好, \n" +"\n" +" 请点击链接以重置你的密码: " -#: airtime_mvc/application/models/MusicDir.php:386 -#, php-format -msgid "" -"%s is already set as the current storage dir or in the watched folders list." -msgstr "%s 已经设置成媒体存储文件夹,或者监控文件夹。" +#: airtime_mvc/application/models/Auth.php:36 +msgid "Airtime Password Reset" +msgstr "Airtime密码重置" -#: airtime_mvc/application/models/MusicDir.php:429 -#, php-format -msgid "%s doesn't exist in the watched list." -msgstr "监控文件夹名单里不存在 %s " +#: airtime_mvc/application/models/Preference.php:662 +#: airtime_mvc/application/models/Preference.php:655 +#: airtime_mvc/application/models/Preference.php:650 +msgid "Select Country" +msgstr "选择国家" #: airtime_mvc/application/models/Scheduler.php:73 msgid "Cannot move items out of linked shows" @@ -3699,6 +4305,8 @@ msgid "The schedule you're viewing is out of date! (instance mismatch)" msgstr "当前节目内容表(节目已更改)需要刷新" #: airtime_mvc/application/models/Scheduler.php:132 +#: airtime_mvc/application/models/Scheduler.php:444 +#: airtime_mvc/application/models/Scheduler.php:482 #: airtime_mvc/application/models/Scheduler.php:460 #: airtime_mvc/application/models/Scheduler.php:498 msgid "The schedule you're viewing is out of date!" @@ -3729,42 +4337,70 @@ msgid "" "broadcasted" msgstr "绑定的节目要么提前设置好,要么等待其中的任何一个节目结束后才能编辑内容" -#: airtime_mvc/application/models/Scheduler.php:195 -msgid "Cannot schedule a playlist that contains missing files." -msgstr "" - +#: airtime_mvc/application/models/Scheduler.php:200 +#: airtime_mvc/application/models/Scheduler.php:289 #: airtime_mvc/application/models/Scheduler.php:216 #: airtime_mvc/application/models/Scheduler.php:305 msgid "A selected File does not exist!" msgstr "某个选中的文件不存在。" -#: airtime_mvc/application/models/Playlist.php:812 -#: airtime_mvc/application/models/Block.php:833 -msgid "Cue in and cue out are null." -msgstr "切入点和切出点均为空" +#: airtime_mvc/application/models/MusicDir.php:160 +#, php-format +msgid "%s is already watched." +msgstr "%s 已经监控" -#: airtime_mvc/application/models/Playlist.php:843 -#: airtime_mvc/application/models/Playlist.php:868 -#: airtime_mvc/application/models/Block.php:879 -#: airtime_mvc/application/models/Block.php:900 -msgid "Can't set cue in to be larger than cue out." -msgstr "切入点不能晚于切出点" +#: airtime_mvc/application/models/MusicDir.php:164 +#, php-format +msgid "%s contains nested watched directory: %s" +msgstr "%s 所含的子文件夹 %s 已经被监控" -#: airtime_mvc/application/models/Playlist.php:851 -#: airtime_mvc/application/models/Playlist.php:895 -#: airtime_mvc/application/models/Block.php:868 -#: airtime_mvc/application/models/Block.php:924 -msgid "Can't set cue out to be greater than file length." -msgstr "切出点不能超出文件原长度" +#: airtime_mvc/application/models/MusicDir.php:168 +#, php-format +msgid "%s is nested within existing watched directory: %s" +msgstr "%s 无法监控,因为父文件夹 %s 已经监控" -#: airtime_mvc/application/models/Playlist.php:887 -#: airtime_mvc/application/models/Block.php:935 -msgid "Can't set cue out to be smaller than cue in." -msgstr "切出点不能早于切入点" +#: airtime_mvc/application/models/MusicDir.php:189 +#: airtime_mvc/application/models/MusicDir.php:370 +#: airtime_mvc/application/models/MusicDir.php:368 +#, php-format +msgid "%s is not a valid directory." +msgstr "%s 不是文件夹。" -#: airtime_mvc/application/models/StoredFile.php:1003 -msgid "Failed to create 'organize' directory." -msgstr "创建‘organize’目录失败" +#: airtime_mvc/application/models/MusicDir.php:232 +#, php-format +msgid "" +"%s is already set as the current storage dir or in the watched folders list" +msgstr "%s 已经设置成媒体存储文件夹,或者监控文件夹。" + +#: airtime_mvc/application/models/MusicDir.php:388 +#: airtime_mvc/application/models/MusicDir.php:386 +#, php-format +msgid "" +"%s is already set as the current storage dir or in the watched folders list." +msgstr "%s 已经设置成媒体存储文件夹,或者监控文件夹。" + +#: airtime_mvc/application/models/MusicDir.php:431 +#: airtime_mvc/application/models/MusicDir.php:429 +#, php-format +msgid "%s doesn't exist in the watched list." +msgstr "监控文件夹名单里不存在 %s " + +#: airtime_mvc/application/models/ShowBuilder.php:212 +#, php-format +msgid "Rebroadcast of %s from %s" +msgstr "%s是%s的重播" + +#: airtime_mvc/application/models/Show.php:180 +msgid "Shows can have a max length of 24 hours." +msgstr "节目时长只能设置在24小时以内" + +#: airtime_mvc/application/models/Show.php:289 +msgid "" +"Cannot schedule overlapping shows.\n" +"Note: Resizing a repeating show affects all of its repeats." +msgstr "" +"节目时间设置于其他的节目有冲突。\n" +"提示:修改系列节目中的一个,将影响整个节目系列" #: airtime_mvc/application/models/StoredFile.php:1017 #, php-format @@ -3773,6 +4409,18 @@ msgid "" "you are uploading has a size of %s MB." msgstr "磁盘空间不足,文件上传失败,剩余空间只有 %s 兆,尝试上传 %s 兆的文件" +#: airtime_mvc/application/models/ShowInstance.php:257 +msgid "can't resize a past show" +msgstr "已结束的节目不能调整时长" + +#: airtime_mvc/application/models/ShowInstance.php:279 +msgid "Should not overlap shows" +msgstr "节目时间不能有重合" + +#: airtime_mvc/application/models/StoredFile.php:1003 +msgid "Failed to create 'organize' directory." +msgstr "创建‘organize’目录失败" + #: airtime_mvc/application/models/StoredFile.php:1026 msgid "" "This file appears to be corrupted and will not be added to media library." @@ -3785,124 +4433,111 @@ msgid "" "write permissions." msgstr "文件上传失败,可能的原因:磁盘空间不足目录权限设置错误" -#: airtime_mvc/application/models/Show.php:180 -msgid "Shows can have a max length of 24 hours." -msgstr "节目时长只能设置在24小时以内" - -#: airtime_mvc/application/models/Show.php:289 -msgid "" -"Cannot schedule overlapping shows.\n" -"Note: Resizing a repeating show affects all of its repeats." -msgstr "节目时间设置于其他的节目有冲突。\n提示:修改系列节目中的一个,将影响整个节目系列" - -#: airtime_mvc/application/models/Auth.php:33 +#: airtime_mvc/application/layouts/scripts/login.phtml:24 #, php-format msgid "" -"Hi %s, \n" -"\n" -"Click this link to reset your password: " -msgstr "%s 你好, \n\n 请点击链接以重置你的密码: " +"%1$s copyright © %2$s All rights reserved.%3$sMaintained and " +"distributed under the %4$s by %5$s" +msgstr "" -#: airtime_mvc/application/models/Auth.php:36 +#: airtime_mvc/application/forms/SupportSettings.php:122 +#: airtime_mvc/application/forms/RegisterAirtime.php:126 #, php-format -msgid "%s Password Reset" +msgid "Promote my station on %s" msgstr "" -#: airtime_mvc/application/services/CalendarService.php:50 -msgid "Record file doesn't exist" -msgstr "录制文件不存在" - -#: airtime_mvc/application/services/CalendarService.php:54 -msgid "View Recorded File Metadata" -msgstr "查看录制文件的元数据" - -#: airtime_mvc/application/services/CalendarService.php:77 -#: airtime_mvc/application/services/CalendarService.php:120 -msgid "Show Content" -msgstr "显示内容" - -#: airtime_mvc/application/services/CalendarService.php:109 -msgid "Remove All Content" -msgstr "清空全部内容" - -#: airtime_mvc/application/services/CalendarService.php:130 -#: airtime_mvc/application/services/CalendarService.php:134 -msgid "Cancel Current Show" -msgstr "取消当前节目" - -#: airtime_mvc/application/services/CalendarService.php:151 -#: airtime_mvc/application/services/CalendarService.php:166 -msgid "Edit This Instance" -msgstr "编辑此节目" - -#: airtime_mvc/application/services/CalendarService.php:161 -#: airtime_mvc/application/services/CalendarService.php:172 -msgid "Edit Show" -msgstr "编辑节目" - -#: airtime_mvc/application/services/CalendarService.php:190 -msgid "Delete This Instance" -msgstr "删除当前节目" +#: airtime_mvc/application/forms/SupportSettings.php:150 +#: airtime_mvc/application/forms/RegisterAirtime.php:151 +#, php-format +msgid "By checking this box, I agree to %s's %sprivacy policy%s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:195 -msgid "Delete This Instance and All Following" -msgstr "删除当前以及随后的系列节目" +#: airtime_mvc/application/forms/AddShowLiveStream.php:10 +#, php-format +msgid "Use %s Authentication:" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:249 -msgid "Permission denied" -msgstr "没有编辑权限" +#: airtime_mvc/application/controllers/ApiController.php:771 +#: airtime_mvc/application/controllers/ApiController.php:791 +#: airtime_mvc/application/controllers/ApiController.php:803 +#, php-format +msgid "File does not exist in %s" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:253 -msgid "Can't drag and drop repeating shows" -msgstr "系列中的节目无法拖拽" +#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14 +#, php-format +msgid "%s Version" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:262 -msgid "Can't move a past show" -msgstr "已经结束的节目无法更改时间" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:6 +#, php-format +msgid "" +"Help %1$s improve by letting us know how you are using it. This info will be " +"collected regularly in order to enhance your user experience.%2$sClick 'Yes, " +"help %1$s' and we'll make sure the features you use are constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:297 -msgid "Can't move show into past" -msgstr "节目不能设置到已过去的时间点" +#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29 +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29 +#, php-format +msgid "Click the box below to promote your station on %s." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:317 -msgid "Can't move a recorded show less than 1 hour before its rebroadcasts." -msgstr "录音和重播节目之间的间隔必须大于等于1小时。" +#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:43 +#, php-format +msgid "" +"Rescan watched directory (This is useful if it is network mount and may be " +"out of sync with %s)" +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:327 -msgid "Show was deleted because recorded show does not exist!" -msgstr "录音节目不存在,节目已删除!" +#: airtime_mvc/application/views/scripts/form/support-setting.phtml:5 +#, php-format +msgid "" +"Help %s improve by letting %s know how you are using it. This information " +"will be collected regularly in order to enhance your user experience.%sClick " +"the 'Send support feedback' box and we'll make sure the features you use are " +"constantly improving." +msgstr "" -#: airtime_mvc/application/services/CalendarService.php:334 -msgid "Must wait 1 hour to rebroadcast." -msgstr "重播节目必须设置于1小时之后。" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3 +#, php-format +msgid "Welcome to %s!" +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1119 -msgid "Track" -msgstr "曲目" +#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4 +#, php-format +msgid "Here's how you can get started using %s to automate your broadcasts: " +msgstr "" -#: airtime_mvc/application/services/HistoryService.php:1167 -msgid "Played" -msgstr "已播放" +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:9 +#, php-format +msgid "" +"%1$s %2$s, the open radio software for scheduling and remote station " +"management." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:213 +#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22 #, php-format -msgid "The year %s must be within the range of 1753 - 9999" -msgstr "1753 - 9999 是可以接受的年代值,而不是“%s”" +msgid "%1$s %2$s is distributed under the %3$s" +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:216 +#: airtime_mvc/application/views/scripts/login/index.phtml:7 #, php-format -msgid "%s-%s-%s is not a valid date" -msgstr "%s-%s-%s采用了错误的日期格式" +msgid "" +"Welcome to the %s demo! You can log in using the username 'admin' and the " +"password 'admin'." +msgstr "" -#: airtime_mvc/application/common/DateHelper.php:240 +#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9 #, php-format -msgid "%s:%s:%s is not a valid time" -msgstr "%s:%s:%s 采用了错误的时间格式" +msgid "Purchase your copy of %s" +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:512 -msgid "Please selection an option" -msgstr "请选择一项" +#: airtime_mvc/application/models/Scheduler.php:195 +msgid "Cannot schedule a playlist that contains missing files." +msgstr "" -#: airtime_mvc/library/propel/contrib/pear/HTML_QuickForm_Propel/Propel.php:531 -msgid "No Records" -msgstr "无记录" +#: airtime_mvc/application/models/Auth.php:36 +#, php-format +msgid "%s Password Reset" +msgstr "" diff --git a/airtime_mvc/public/css/addmedia.css b/airtime_mvc/public/css/addmedia.css new file mode 100644 index 0000000000..d53d8c4530 --- /dev/null +++ b/airtime_mvc/public/css/addmedia.css @@ -0,0 +1,66 @@ +@CHARSET "UTF-8"; + +#recent_uploads_wrapper +{ + width: 100%; +} + /* + position: absolute; + left: 5px; + right: 5px; + bottom: 5px; + margin: 0px; + height: 350px; +} +.dataTables_scrollHeadInner > table:nth-child(1) +{ + margin: 0px; +} +*/ + +#recent_uploads h2 +{ + font-size: 1.7em; +} + +#recent_uploads_table +{ + width: 100%; +} + +#recent_uploads_table_wrapper +{ + width: 100%; +} + +table#recent_uploads_table td +{ + cursor: auto; +} + +#recent_uploads_filter +{ + float: right; + margin-top: 10px; + margin-right: 3px; +} +#recent_uploads_table_length +{ + margin: 5px; +} + +/** Vertically align radio buttons with the labels */ +#recent_uploads_filter input[type='radio'] { + vertical-align: middle; + margin-top: -3px; +} + +#recent_uploads_filter label { + padding: 0px; +} + +#recent_uploads_table .deleteFileAction +{ + text-decoration: underline; + cursor: pointer; +} diff --git a/airtime_mvc/public/css/styles.css b/airtime_mvc/public/css/styles.css index 3f86566c2b..101ad9d6dc 100644 --- a/airtime_mvc/public/css/styles.css +++ b/airtime_mvc/public/css/styles.css @@ -3116,3 +3116,5 @@ dd .stream-status { #popup-share-link { width: 320px; } +.quota-reached { + font-size: 14px !important; diff --git a/airtime_mvc/public/index.php b/airtime_mvc/public/index.php index e7a579ba38..1e59a62bdc 100644 --- a/airtime_mvc/public/index.php +++ b/airtime_mvc/public/index.php @@ -35,6 +35,9 @@ function exception_error_handler($errno, $errstr, $errfile, $errline) defined('VERBOSE_STACK_TRACE') || define('VERBOSE_STACK_TRACE', (getenv('VERBOSE_STACK_TRACE') ? getenv('VERBOSE_STACK_TRACE') : true)); +//Vendors +set_include_path(realpath(dirname(__FILE__) . '/../../vendor')); + // Ensure library/ is on include_path set_include_path(implode(PATH_SEPARATOR, array( get_include_path(), @@ -49,11 +52,17 @@ function exception_error_handler($errno, $errstr, $errfile, $errline) //Controller plugins. set_include_path(APPLICATION_PATH . '/controllers/plugins' . PATH_SEPARATOR . get_include_path()); +//Services. +set_include_path(APPLICATION_PATH . '/services/' . PATH_SEPARATOR . get_include_path()); + //Zend framework if (file_exists('/usr/share/php/libzend-framework-php')) { set_include_path('/usr/share/php/libzend-framework-php' . PATH_SEPARATOR . get_include_path()); } +//cloud storage directory +set_include_path(APPLICATION_PATH . '/cloud_storage' . PATH_SEPARATOR . get_include_path()); + /** Zend_Application */ require_once 'Zend/Application.php'; $application = new Zend_Application( diff --git a/airtime_mvc/public/js/airtime/library/plupload.js b/airtime_mvc/public/js/airtime/library/plupload.js index 2e7f0b56f7..f96ee31576 100644 --- a/airtime_mvc/public/js/airtime/library/plupload.js +++ b/airtime_mvc/public/js/airtime/library/plupload.js @@ -1,12 +1,24 @@ $(document).ready(function() { var uploader; + var self = this; + self.uploadFilter = "all"; + + self.IMPORT_STATUS_CODES = { + 0 : { message: $.i18n._("Successfully imported")}, + 1 : { message: $.i18n._("Pending import")}, + 2 : { message: $.i18n._("Import failed.")}, + UNKNOWN : { message: $.i18n._("Unknown")} + }; + if (Object.freeze) { + Object.freeze(self.IMPORT_STATUS_CODES); + } $("#plupload_files").pluploadQueue({ // General settings runtimes : 'gears, html5, html4', - url : baseUrl+'Plupload/upload/format/json', - chunk_size : '5mb', + url : baseUrl+'rest/media', + //chunk_size : '5mb', //Disabling chunking since we're using the File Upload REST API now unique_names : 'true', multiple_queues : 'true', filters : [ @@ -19,37 +31,17 @@ $(document).ready(function() { uploader = $("#plupload_files").pluploadQueue(); - uploader.bind('FileUploaded', function(up, file, json) { - var j = jQuery.parseJSON(json.response); - - if(j.error !== undefined) { - var row = $("") - .append('' + file.name +'') - .append('' + j.error.message + ''); - - $("#plupload_error").find("table").append(row); - $("#plupload_error table").css("display", "inline-table"); - }else{ - var tempFileName = j.tempfilepath; - $.get(baseUrl+'Plupload/copyfile/format/json/name/'+ - encodeURIComponent(file.name)+'/tempname/' + - encodeURIComponent(tempFileName), function(jr){ - if(jr.error !== undefined) { - var row = $("") - .append('' + file.name +'') - .append('' + jr.error.message + ''); - - $("#plupload_error").find("table").append(row); - $("#plupload_error table").css("display", "inline-table"); - } - }); - } + uploader.bind('FileUploaded', function(up, file, json) + { + //Refresh the upload table: + self.recentUploadsTable.fnDraw(); //Only works because we're using bServerSide + //In DataTables 1.10 and greater, we can use .fnAjaxReload() }); var uploadProgress = false; uploader.bind('QueueChanged', function(){ - uploadProgress = (uploader.files.length > 0) + uploadProgress = (uploader.files.length > 0); }); uploader.bind('UploadComplete', function(){ @@ -62,5 +54,140 @@ $(document).ready(function() { "\n", "\n"); } }); + + self.renderImportStatus = function ( data, type, full ) { + if (typeof data !== "number") { + console.log("Invalid data type for the import_status."); + return; + } + var statusStr = self.IMPORT_STATUS_CODES.UNKNOWN.message; + var importStatusCode = data; + if (self.IMPORT_STATUS_CODES[importStatusCode]) { + statusStr = self.IMPORT_STATUS_CODES[importStatusCode].message; + }; + + return statusStr; + }; + + self.renderFileActions = function ( data, type, full ) { + if (full.import_status == 0) { + return '' + $.i18n._('Delete from Library') + ''; + } else if (full.import_status == 1) { + //No actions for pending files + return $.i18n._('N/A'); + } else { //Failed downloads + return '' + $.i18n._('Clear') + ''; + } + }; + + $("#recent_uploads_table").on("click", "a.deleteFileAction", function () { + //Grab the file object for the row that was clicked. + // Some tips from the DataTables forums: + // fnGetData is used to get the object behind the row - you can also use + // fnGetPosition if you need to get the index instead + file = $("#recent_uploads_table").dataTable().fnGetData($(this).closest("tr")[0]); + + $.ajax({ + type: 'DELETE', + url: 'rest/media/' + file.id + "?csrf_token=" + $("#csrf").attr('value'), + success: function(resp) { + self.recentUploadsTable.fnDraw(); + }, + error: function() { + alert($.i18n._("Error: The file could not be deleted. Please try again later.")); + } + }); + }); + + self.setupRecentUploadsTable = function() { + recentUploadsTable = $("#recent_uploads_table").dataTable({ + "bJQueryUI": true, + "bProcessing": false, + "bServerSide": true, + "sAjaxSource": '/Plupload/recent-uploads/format/json', + "sAjaxDataProp": 'files', + "bSearchable": false, + "bInfo": true, + //"sScrollY": "200px", + "bFilter": false, + "bSort": false, + "sDom": '<"H"l>frtip', + "bPaginate" : true, + "sPaginationType": "full_numbers", + "aoColumns": [ + { "mData" : "artist_name", "sTitle" : $.i18n._("Creator") }, + { "mData" : "track_title", "sTitle" : $.i18n._("Title") }, + { "mData" : "import_status", "sTitle" : $.i18n._("Import Status"), + "mRender": self.renderImportStatus + }, + { "mData" : "utime", "sTitle" : $.i18n._("Uploaded") }, + { "mData" : "id", "sTitle" : $.i18n._("Actions"), + "mRender": self.renderFileActions + } + ], + "fnServerData": function ( sSource, aoData, fnCallback ) { + /* Add some extra data to the sender */ + aoData.push( { "name": "uploadFilter", "value": self.uploadFilter } ); + $.getJSON( sSource, aoData, function (json) { + fnCallback(json); + if (json.files) { + var areAnyFileImportsPending = false; + for (var i = 0; i < json.files.length; i++) { + //console.log(file); + var file = json.files[i]; + if (file.import_status == 1) + { + areAnyFileImportsPending = true; + } + } + if (areAnyFileImportsPending) { + //alert("pending uploads, starting refresh on timer"); + self.startRefreshingRecentUploads(); + } else { + self.stopRefreshingRecentUploads(); + } + } + } ); + } + }); + + return recentUploadsTable; + }; + + self.startRefreshingRecentUploads = function() + { + if (self.isRecentUploadsRefreshTimerActive()) { //Prevent multiple timers from running + return; + } + self.recentUploadsRefreshTimer = setInterval("self.recentUploadsTable.fnDraw()", 3000); + }; + + self.isRecentUploadsRefreshTimerActive = function() + { + return (self.recentUploadsRefreshTimer != null); + }; + + self.stopRefreshingRecentUploads = function() + { + clearInterval(self.recentUploadsRefreshTimer); + self.recentUploadsRefreshTimer = null; + }; + + $("#upload_status_all").click(function() { + self.uploadFilter = "all"; + self.recentUploadsTable.fnDraw(); + }); + $("#upload_status_pending").click(function() { + self.uploadFilter = "pending"; + self.recentUploadsTable.fnDraw(); + }); + $("#upload_status_failed").click(function() { + self.uploadFilter = "failed"; + self.recentUploadsTable.fnDraw(); + }); + + //Create the recent uploads table. + self.recentUploadsTable = self.setupRecentUploadsTable(); + //$("#recent_uploads_table.div.fg-toolbar").prepend('Custom tool bar! Text/images etc.'); }); diff --git a/widgets/css/airtime-widgets.css b/airtime_mvc/public/widgets/css/airtime-widgets.css similarity index 100% rename from widgets/css/airtime-widgets.css rename to airtime_mvc/public/widgets/css/airtime-widgets.css diff --git a/widgets/css/widget-img/schedule-tabs-list-bgr.png b/airtime_mvc/public/widgets/css/widget-img/schedule-tabs-list-bgr.png similarity index 100% rename from widgets/css/widget-img/schedule-tabs-list-bgr.png rename to airtime_mvc/public/widgets/css/widget-img/schedule-tabs-list-bgr.png diff --git a/widgets/js/jquery-1.6.1.min.js b/airtime_mvc/public/widgets/js/jquery-1.6.1.min.js similarity index 100% rename from widgets/js/jquery-1.6.1.min.js rename to airtime_mvc/public/widgets/js/jquery-1.6.1.min.js diff --git a/widgets/js/jquery-ui-1.8.10.custom.min.js b/airtime_mvc/public/widgets/js/jquery-ui-1.8.10.custom.min.js similarity index 100% rename from widgets/js/jquery-ui-1.8.10.custom.min.js rename to airtime_mvc/public/widgets/js/jquery-ui-1.8.10.custom.min.js diff --git a/widgets/js/jquery.showinfo.js b/airtime_mvc/public/widgets/js/jquery.showinfo.js similarity index 100% rename from widgets/js/jquery.showinfo.js rename to airtime_mvc/public/widgets/js/jquery.showinfo.js diff --git a/widgets/sample_page.html b/airtime_mvc/public/widgets/sample_page.html similarity index 100% rename from widgets/sample_page.html rename to airtime_mvc/public/widgets/sample_page.html diff --git a/widgets/widget_schedule.html b/airtime_mvc/public/widgets/widget_schedule.html similarity index 100% rename from widgets/widget_schedule.html rename to airtime_mvc/public/widgets/widget_schedule.html diff --git a/widgets/widgets.html b/airtime_mvc/public/widgets/widgets.html similarity index 100% rename from widgets/widgets.html rename to airtime_mvc/public/widgets/widgets.html diff --git a/composer.json b/composer.json new file mode 100644 index 0000000000..f389308e4a --- /dev/null +++ b/composer.json @@ -0,0 +1,6 @@ +{ + "require": { + "propel/propel1": "1.7.0-stable", + "aws/aws-sdk-php": "2.7.9" + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000000..17879613ad --- /dev/null +++ b/composer.lock @@ -0,0 +1,386 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "hash": "311983cf9bb84cfacbfcc6c5dfc9e841", + "packages": [ + { + "name": "aws/aws-sdk-php", + "version": "2.7.9", + "source": { + "type": "git", + "url": "https://github.com/aws/aws-sdk-php.git", + "reference": "f39354df58eec97f0ef22ccf3caf753607a47dca" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/f39354df58eec97f0ef22ccf3caf753607a47dca", + "reference": "f39354df58eec97f0ef22ccf3caf753607a47dca", + "shasum": "" + }, + "require": { + "guzzle/guzzle": "~3.7", + "php": ">=5.3.3" + }, + "require-dev": { + "doctrine/cache": "~1.0", + "ext-openssl": "*", + "monolog/monolog": "~1.4", + "phpunit/phpunit": "~4.0", + "symfony/yaml": "~2.1" + }, + "suggest": { + "doctrine/cache": "Adds support for caching of credentials and responses", + "ext-apc": "Allows service description opcode caching, request and response caching, and credentials caching", + "ext-openssl": "Allows working with CloudFront private distributions and verifying received SNS messages", + "monolog/monolog": "Adds support for logging HTTP requests and responses", + "symfony/yaml": "Eases the ability to write manifests for creating jobs in AWS Import/Export" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-0": { + "Aws": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Amazon Web Services", + "homepage": "http://aws.amazon.com" + } + ], + "description": "AWS SDK for PHP - Use Amazon Web Services in your PHP project", + "homepage": "http://aws.amazon.com/sdkforphp", + "keywords": [ + "amazon", + "aws", + "cloud", + "dynamodb", + "ec2", + "glacier", + "s3", + "sdk" + ], + "time": "2014-12-08 21:56:46" + }, + { + "name": "guzzle/guzzle", + "version": "v3.9.2", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle3.git", + "reference": "54991459675c1a2924122afbb0e5609ade581155" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle3/zipball/54991459675c1a2924122afbb0e5609ade581155", + "reference": "54991459675c1a2924122afbb0e5609ade581155", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "php": ">=5.3.3", + "symfony/event-dispatcher": "~2.1" + }, + "replace": { + "guzzle/batch": "self.version", + "guzzle/cache": "self.version", + "guzzle/common": "self.version", + "guzzle/http": "self.version", + "guzzle/inflection": "self.version", + "guzzle/iterator": "self.version", + "guzzle/log": "self.version", + "guzzle/parser": "self.version", + "guzzle/plugin": "self.version", + "guzzle/plugin-async": "self.version", + "guzzle/plugin-backoff": "self.version", + "guzzle/plugin-cache": "self.version", + "guzzle/plugin-cookie": "self.version", + "guzzle/plugin-curlauth": "self.version", + "guzzle/plugin-error-response": "self.version", + "guzzle/plugin-history": "self.version", + "guzzle/plugin-log": "self.version", + "guzzle/plugin-md5": "self.version", + "guzzle/plugin-mock": "self.version", + "guzzle/plugin-oauth": "self.version", + "guzzle/service": "self.version", + "guzzle/stream": "self.version" + }, + "require-dev": { + "doctrine/cache": "~1.3", + "monolog/monolog": "~1.0", + "phpunit/phpunit": "3.7.*", + "psr/log": "~1.0", + "symfony/class-loader": "~2.1", + "zendframework/zend-cache": "2.*,<2.3", + "zendframework/zend-log": "2.*,<2.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.9-dev" + } + }, + "autoload": { + "psr-0": { + "Guzzle": "src/", + "Guzzle\\Tests": "tests/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Guzzle Community", + "homepage": "https://github.com/guzzle/guzzle/contributors" + } + ], + "description": "Guzzle is a PHP HTTP client library and framework for building RESTful web service clients", + "homepage": "http://guzzlephp.org/", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "rest", + "web service" + ], + "time": "2014-08-11 04:32:36" + }, + { + "name": "phing/phing", + "version": "2.9.1", + "source": { + "type": "git", + "url": "https://github.com/phingofficial/phing.git", + "reference": "393edeffa8a85d43636ce0c9b4deb1ff9ac60a5c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phingofficial/phing/zipball/393edeffa8a85d43636ce0c9b4deb1ff9ac60a5c", + "reference": "393edeffa8a85d43636ce0c9b4deb1ff9ac60a5c", + "shasum": "" + }, + "require": { + "php": ">=5.2.0" + }, + "require-dev": { + "ext-pdo_sqlite": "*", + "lastcraft/simpletest": "@dev", + "pdepend/pdepend": "1.x", + "pear-pear.php.net/http_request2": "2.2.x", + "pear-pear.php.net/net_growl": "2.7.x", + "pear-pear.php.net/pear_packagefilemanager": "1.7.x", + "pear-pear.php.net/pear_packagefilemanager2": "1.0.x", + "pear-pear.php.net/xml_serializer": "0.20.x", + "pear/pear_exception": "@dev", + "pear/versioncontrol_git": "@dev", + "pear/versioncontrol_svn": "@dev", + "phpdocumentor/phpdocumentor": "2.x", + "phploc/phploc": "2.x", + "phpunit/phpunit": ">=3.7", + "sebastian/phpcpd": "2.x", + "squizlabs/php_codesniffer": "1.5.x" + }, + "suggest": { + "pdepend/pdepend": "PHP version of JDepend", + "pear/archive_tar": "Tar file management class", + "pear/versioncontrol_git": "A library that provides OO interface to handle Git repository", + "pear/versioncontrol_svn": "A simple OO-style interface for Subversion, the free/open-source version control system", + "phpdocumentor/phpdocumentor": "Documentation Generator for PHP", + "phploc/phploc": "A tool for quickly measuring the size of a PHP project", + "phpmd/phpmd": "PHP version of PMD tool", + "phpunit/php-code-coverage": "Library that provides collection, processing, and rendering functionality for PHP code coverage information", + "phpunit/phpunit": "The PHP Unit Testing Framework", + "sebastian/phpcpd": "Copy/Paste Detector (CPD) for PHP code", + "tedivm/jshrink": "Javascript Minifier built in PHP" + }, + "bin": [ + "bin/phing" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.9.x-dev" + } + }, + "autoload": { + "classmap": [ + "classes/phing/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "include-path": [ + "classes" + ], + "license": [ + "LGPL-3.0" + ], + "authors": [ + { + "name": "Phing Community", + "homepage": "http://www.phing.info/trac/wiki/Development/Contributors" + }, + { + "name": "Michiel Rook", + "email": "mrook@php.net" + } + ], + "description": "PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.", + "homepage": "http://www.phing.info/", + "keywords": [ + "build", + "phing", + "task", + "tool" + ], + "time": "2014-12-03 09:18:46" + }, + { + "name": "propel/propel1", + "version": "1.7.0", + "source": { + "type": "git", + "url": "https://github.com/propelorm/Propel.git", + "reference": "09058f1443bc287e550b9342a4379aac2e0a0b8f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/propelorm/Propel/zipball/09058f1443bc287e550b9342a4379aac2e0a0b8f", + "reference": "09058f1443bc287e550b9342a4379aac2e0a0b8f", + "shasum": "" + }, + "require": { + "phing/phing": "~2.4", + "php": ">=5.2.4" + }, + "require-dev": { + "pear-pear.php.net/pear_packagefilemanager2": "@stable" + }, + "bin": [ + "generator/bin/propel-gen", + "generator/bin/propel-gen.bat" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.7-dev" + } + }, + "autoload": { + "classmap": [ + "runtime/lib", + "generator/lib" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "include-path": [ + "runtime/lib", + "generator/lib" + ], + "license": [ + "MIT" + ], + "authors": [ + { + "name": "William Durand", + "email": "william.durand1@gmail.com", + "homepage": "http://www.willdurand.fr" + } + ], + "description": "Propel is an open-source Object-Relational Mapping (ORM) for PHP5.", + "homepage": "http://www.propelorm.org/", + "keywords": [ + "Active Record", + "database", + "mapping", + "orm", + "persistence" + ], + "time": "2013-10-21 12:52:56" + }, + { + "name": "symfony/event-dispatcher", + "version": "v2.6.1", + "target-dir": "Symfony/Component/EventDispatcher", + "source": { + "type": "git", + "url": "https://github.com/symfony/EventDispatcher.git", + "reference": "720fe9bca893df7ad1b4546649473b5afddf0216" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/EventDispatcher/zipball/720fe9bca893df7ad1b4546649473b5afddf0216", + "reference": "720fe9bca893df7ad1b4546649473b5afddf0216", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "psr/log": "~1.0", + "symfony/config": "~2.0", + "symfony/dependency-injection": "~2.6", + "symfony/expression-language": "~2.6", + "symfony/stopwatch": "~2.2" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.6-dev" + } + }, + "autoload": { + "psr-0": { + "Symfony\\Component\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony EventDispatcher Component", + "homepage": "http://symfony.com", + "time": "2014-12-02 20:19:20" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "platform": [], + "platform-dev": [] +} diff --git a/dev_tools/propel_regenerate.sh b/dev_tools/propel_regenerate.sh index 06b4f1ffd7..1ecb7b53e5 100755 --- a/dev_tools/propel_regenerate.sh +++ b/dev_tools/propel_regenerate.sh @@ -8,4 +8,4 @@ cd $SCRIPTPATH/../airtime_mvc/ path=`pwd` cd build sed -i s#"project\.home =.*$"#"project.home = $path"#g build.properties -../library/propel/generator/bin/propel-gen +../../vendor/propel/propel1/generator/bin/propel-gen diff --git a/install_minimal/airtime-install b/install_minimal/airtime-install index 833cb447e0..25423119f3 100755 --- a/install_minimal/airtime-install +++ b/install_minimal/airtime-install @@ -38,6 +38,7 @@ rabbitmq_install () { rabbitmqctl add_vhost $RABBITMQ_VHOST rabbitmqctl add_user $RABBITMQ_USER $RABBITMQ_PASSWORD rabbitmqctl set_permissions -p $RABBITMQ_VHOST $RABBITMQ_USER "$EXCHANGES" "$EXCHANGES" "$EXCHANGES" + rabbitmqctl set_permissions -p $RABBITMQ_VHOST $RABBITMQ_USER .\* .\* .\* export RABBITMQ_USER export RABBITMQ_PASSWORD @@ -49,6 +50,7 @@ preserve="f" nodb="f" reinstall="f" mediamonitor="f" +airtime_analyzer="f" pypo="f" showrecorder="f" web="f" @@ -64,6 +66,7 @@ do (-n|--no-db) nodb="t";; (-r|--reinstall) reinstall="t";; (-m|--media-monitor) mediamonitor="t";; + (-a|--airtime-analyzer) airtime_analyzer="t";; (-y|--pypo) pypo="t";; (-w|--web) web="t";; (-d|--disable-deb-check) disable_deb_check="t";; @@ -75,11 +78,12 @@ do shift done -if [ "$mediamonitor" = "f" -a "$pypo" = "f" -a "$web" = "f" ]; then +if [ "$mediamonitor" = "f" -a "$pypo" = "f" -a "$web" = "f" -a "$airtime_analyzer" = "f" ]; then #none of these install parameters were specified, so by default we install all of them - mediamonitor="t" + mediamonitor="f" # FIXME: Remove media_monitor! -- Albert pypo="t" showrecorder="t" + airtime_analyzer="t" web="t" fi @@ -181,6 +185,7 @@ fi #export these variables to make them available in sub bash scripts export DO_UPGRADE export mediamonitor +export airtime_analyzer export pypo export showrecorder export web @@ -236,6 +241,9 @@ if [ "$mediamonitor" = "t" -o "$pypo" = "t" ]; then deactivate fi +# Restart airtime_analyzer (or start it) +service airtime_analyzer restart + #An attempt to force apache to realize that files are updated on upgrade... touch /usr/share/airtime/public/index.php diff --git a/install_minimal/include/AirtimeInstall.php b/install_minimal/include/AirtimeInstall.php index e6a90915ee..6e429d6aca 100644 --- a/install_minimal/include/AirtimeInstall.php +++ b/install_minimal/include/AirtimeInstall.php @@ -341,10 +341,6 @@ public static function CreateSymlinksToUtils() $dir = AirtimeInstall::CONF_DIR_BINARIES."/utils/airtime-import/airtime-import"; exec("ln -s $dir /usr/bin/airtime-import"); - echo "* Installing airtime-update-db-settings".PHP_EOL; - $dir = AirtimeInstall::CONF_DIR_BINARIES."/utils/airtime-update-db-settings"; - exec("ln -s $dir /usr/bin/airtime-update-db-settings"); - echo "* Installing airtime-check-system".PHP_EOL; $dir = AirtimeInstall::CONF_DIR_BINARIES."/utils/airtime-check-system"; exec("ln -s $dir /usr/bin/airtime-check-system"); @@ -361,7 +357,6 @@ public static function CreateSymlinksToUtils() public static function RemoveSymlinks() { exec("rm -f /usr/bin/airtime-import"); - exec("rm -f /usr/bin/airtime-update-db-settings"); exec("rm -f /usr/bin/airtime-check-system"); exec("rm -f /usr/bin/airtime-user"); exec("rm -f /usr/bin/airtime-log"); diff --git a/install_minimal/include/airtime-constants.php b/install_minimal/include/airtime-constants.php index 2a3bf95ee0..fd6240bd28 100644 --- a/install_minimal/include/airtime-constants.php +++ b/install_minimal/include/airtime-constants.php @@ -1,3 +1,3 @@ &1 | grep -v \"will create implicit index\""); + } +} diff --git a/install_minimal/upgrades/airtime-2.5.3/StorageQuotaUpgrade.php b/install_minimal/upgrades/airtime-2.5.3/StorageQuotaUpgrade.php new file mode 100644 index 0000000000..b734cc8c45 --- /dev/null +++ b/install_minimal/upgrades/airtime-2.5.3/StorageQuotaUpgrade.php @@ -0,0 +1,24 @@ +filterByType('stor') + ->filterByExists(true) + ->findOne(); + $storPath = $musicDir->getDirectory(); + + $freeSpace = disk_free_space($storPath); + $totalSpace = disk_total_space($storPath); + + Application_Model_Preference::setDiskUsage($totalSpace - $freeSpace); + } +} diff --git a/install_minimal/upgrades/airtime-2.5.3/airtime-upgrade.php b/install_minimal/upgrades/airtime-2.5.3/airtime-upgrade.php new file mode 100644 index 0000000000..31792eb7aa --- /dev/null +++ b/install_minimal/upgrades/airtime-2.5.3/airtime-upgrade.php @@ -0,0 +1,10 @@ +' + signal.signal(signal.SIGUSR2, lambda sig, frame: AirtimeAnalyzerServer.dump_stacktrace()) + + # Configure logging + self.setup_logging(debug) + + # Read our config file + config = config_file.read_config_file(config_path) + + # Start up the StatusReporter process + StatusReporter.start_thread(http_retry_queue_path) + + # Start listening for RabbitMQ messages telling us about newly + # uploaded files. This blocks until we recieve a shutdown signal. + self._msg_listener = MessageListener(config) + + StatusReporter.stop_thread() + + + def setup_logging(self, debug): + """Set up nicely formatted logging and log rotation. + + Keyword arguments: + debug -- a boolean indicating whether to enable super verbose logging + to the screen and disk. + """ + if debug: + self._log_level = logging.DEBUG + else: + #Disable most pika/rabbitmq logging: + pika_logger = logging.getLogger('pika') + pika_logger.setLevel(logging.CRITICAL) + + # Set up logging + logFormatter = logging.Formatter("%(asctime)s [%(module)s] [%(levelname)-5.5s] %(message)s") + rootLogger = logging.getLogger() + rootLogger.setLevel(self._log_level) + + fileHandler = logging.handlers.RotatingFileHandler(filename=self._LOG_PATH, maxBytes=1024*1024*30, + backupCount=8) + fileHandler.setFormatter(logFormatter) + rootLogger.addHandler(fileHandler) + + consoleHandler = logging.StreamHandler() + consoleHandler.setFormatter(logFormatter) + rootLogger.addHandler(consoleHandler) + + @classmethod + def dump_stacktrace(stack): + ''' Dump a stacktrace for all threads ''' + code = [] + for threadId, stack in sys._current_frames().items(): + code.append("\n# ThreadID: %s" % threadId) + for filename, lineno, name, line in traceback.extract_stack(stack): + code.append('File: "%s", line %d, in %s' % (filename, lineno, name)) + if line: + code.append(" %s" % (line.strip())) + logging.info('\n'.join(code)) + + diff --git a/python_apps/airtime_analyzer/airtime_analyzer/analyzer.py b/python_apps/airtime_analyzer/airtime_analyzer/analyzer.py new file mode 100644 index 0000000000..4a58aa75d0 --- /dev/null +++ b/python_apps/airtime_analyzer/airtime_analyzer/analyzer.py @@ -0,0 +1,13 @@ + +class Analyzer: + """ Abstract base class fpr all "analyzers". + """ + @staticmethod + def analyze(filename, metadata): + raise NotImplementedError + +''' +class AnalyzerError(Error): + def __init__(self): + super.__init__(self) +''' diff --git a/python_apps/airtime_analyzer/airtime_analyzer/analyzer_pipeline.py b/python_apps/airtime_analyzer/airtime_analyzer/analyzer_pipeline.py new file mode 100644 index 0000000000..f3cf041805 --- /dev/null +++ b/python_apps/airtime_analyzer/airtime_analyzer/analyzer_pipeline.py @@ -0,0 +1,98 @@ +""" Analyzes and imports an audio file into the Airtime library. +""" +import logging +import threading +import multiprocessing +from metadata_analyzer import MetadataAnalyzer +from filemover_analyzer import FileMoverAnalyzer +from cloud_storage_uploader import CloudStorageUploader +from cuepoint_analyzer import CuePointAnalyzer +from replaygain_analyzer import ReplayGainAnalyzer +from playability_analyzer import * + +class AnalyzerPipeline: + """ Analyzes and imports an audio file into the Airtime library. + + This currently performs metadata extraction (eg. gets the ID3 tags from an MP3), + then moves the file to the Airtime music library (stor/imported), and returns + the results back to the parent process. This class is used in an isolated process + so that if it crashes, it does not kill the entire airtime_analyzer daemon and + the failure to import can be reported back to the web application. + """ + + @staticmethod + def run_analysis(queue, audio_file_path, import_directory, original_filename, cloud_storage_enabled): + """Analyze and import an audio file, and put all extracted metadata into queue. + + Keyword arguments: + queue: A multiprocessing.queues.Queue which will be used to pass the + extracted metadata back to the parent process. + audio_file_path: Path on disk to the audio file to analyze. + import_directory: Path to the final Airtime "import" directory where + we will move the file. + original_filename: The original filename of the file, which we'll try to + preserve. The file at audio_file_path typically has a + temporary randomly generated name, which is why we want + to know what the original name was. + cloud_storage_enabled: Whether to store the file in the cloud or on the local disk. + """ + # It is super critical to initialize a separate log file here so that we + # don't inherit logging/locks from the parent process. Supposedly + # this can lead to Bad Things (deadlocks): http://bugs.python.org/issue6721 + AnalyzerPipeline.python_logger_deadlock_workaround() + + try: + if not isinstance(queue, multiprocessing.queues.Queue): + raise TypeError("queue must be a multiprocessing.Queue()") + if not isinstance(audio_file_path, unicode): + raise TypeError("audio_file_path must be unicode. Was of type " + type(audio_file_path).__name__ + " instead.") + if not isinstance(import_directory, unicode): + raise TypeError("import_directory must be unicode. Was of type " + type(import_directory).__name__ + " instead.") + if not isinstance(original_filename, unicode): + raise TypeError("original_filename must be unicode. Was of type " + type(original_filename).__name__ + " instead.") + if not isinstance(cloud_storage_enabled, bool): + raise TypeError("cloud_storage_enabled must be a boolean. Was of type " + type(cloud_storage_enabled).__name__ + " instead.") + + + # Analyze the audio file we were told to analyze: + # First, we extract the ID3 tags and other metadata: + metadata = dict() + metadata = MetadataAnalyzer.analyze(audio_file_path, metadata) + metadata = CuePointAnalyzer.analyze(audio_file_path, metadata) + metadata = ReplayGainAnalyzer.analyze(audio_file_path, metadata) + metadata = PlayabilityAnalyzer.analyze(audio_file_path, metadata) + + if cloud_storage_enabled: + csu = CloudStorageUploader() + metadata = csu.upload_obj(audio_file_path, metadata) + else: + metadata = FileMoverAnalyzer.move(audio_file_path, import_directory, original_filename, metadata) + + metadata["import_status"] = 0 # Successfully imported + + # Note that the queue we're putting the results into is our interprocess communication + # back to the main process. + + # Pass all the file metadata back to the main analyzer process, which then passes + # it back to the Airtime web application. + queue.put(metadata) + except UnplayableFileError as e: + logging.exception(e) + metadata["import_status"] = 2 + metadata["reason"] = "The file could not be played." + raise e + except Exception as e: + # Ensures the traceback for this child process gets written to our log files: + logging.exception(e) + raise e + + @staticmethod + def python_logger_deadlock_workaround(): + # Workaround for: http://bugs.python.org/issue6721#msg140215 + logger_names = logging.Logger.manager.loggerDict.keys() + logger_names.append(None) # Root logger + for name in logger_names: + for handler in logging.getLogger(name).handlers: + handler.createLock() + logging._lock = threading.RLock() + diff --git a/python_apps/airtime_analyzer/airtime_analyzer/cloud_storage_uploader.py b/python_apps/airtime_analyzer/airtime_analyzer/cloud_storage_uploader.py new file mode 100644 index 0000000000..11eb68b191 --- /dev/null +++ b/python_apps/airtime_analyzer/airtime_analyzer/cloud_storage_uploader.py @@ -0,0 +1,116 @@ +import os +import logging +import uuid +import ConfigParser +from boto.s3.connection import S3Connection +from boto.s3.key import Key + +# Fix for getaddrinfo deadlock. See these issues for details: +# https://github.com/gevent/gevent/issues/349 +# https://github.com/docker/docker-registry/issues/400 +u'fix getaddrinfo deadlock'.encode('idna') + +CLOUD_CONFIG_PATH = '/etc/airtime-saas/cloud_storage.conf' +STORAGE_BACKEND_FILE = "file" + +class CloudStorageUploader: + """ A class that uses Python-Boto SDK to upload objects into Amazon S3. + + It is important to note that every file, coming from different Airtime Pro + stations, will get uploaded into the same bucket on the same Amazon S3 + account. + + Attributes: + _host: Host name for the specific region assigned to the bucket. + _bucket: Name of container on Amazon S3 where files will get uploaded into. + _api_key: Access key to objects on Amazon S3. + _api_key_secret: Secret access key to objects on Amazon S3. + """ + + def __init__(self): + + try: + config = ConfigParser.SafeConfigParser() + config.readfp(open(CLOUD_CONFIG_PATH)) + cloud_storage_config_section = config.get("current_backend", "storage_backend") + self._storage_backend = cloud_storage_config_section + except IOError as e: + print "Failed to open config file at " + CLOUD_CONFIG_PATH + ": " + e.strerror + print "Defaulting to file storage" + self._storage_backend = STORAGE_BACKEND_FILE + except Exception as e: + print e + print "Defaulting to file storage" + self._storage_backend = STORAGE_BACKEND_FILE + + if self._storage_backend == STORAGE_BACKEND_FILE: + self._host = "" + self._bucket = "" + self._api_key = "" + self._api_key_secret = "" + else: + self._host = config.get(cloud_storage_config_section, 'host') + self._bucket = config.get(cloud_storage_config_section, 'bucket') + self._api_key = config.get(cloud_storage_config_section, 'api_key') + self._api_key_secret = config.get(cloud_storage_config_section, 'api_key_secret') + + + def enabled(self): + if self._storage_backend == "file": + return False + else: + return True + + + def upload_obj(self, audio_file_path, metadata): + """Uploads a file into Amazon S3 object storage. + + Before a file is uploaded onto Amazon S3 we generate a unique object + name consisting of the filename and a unqiue string using the uuid4 + module. + + Keyword arguments: + audio_file_path: Path on disk to the audio file that is about to be + uploaded to Amazon S3 object storage. + metadata: ID3 tags and other metadata extracted from the audio file. + + Returns: + The metadata dictionary it received with three new keys: + filesize: The file's filesize in bytes. + filename: The file's filename. + resource_id: The unique object name used to identify the objects + on Amazon S3 + """ + + file_base_name = os.path.basename(audio_file_path) + file_name, extension = os.path.splitext(file_base_name) + + # With Amazon S3 you cannot create a signed url if there are spaces + # in the object name. URL encoding the object name doesn't solve the + # problem. As a solution we will replace spaces with dashes. + file_name = file_name.replace(" ", "-") + resource_id = "%s_%s%s" % (file_name, str(uuid.uuid4()), extension) + + conn = S3Connection(self._api_key, self._api_key_secret, host=self._host) + bucket = conn.get_bucket(self._bucket) + + key = Key(bucket) + key.key = resource_id + key.set_metadata('filename', file_base_name) + key.set_contents_from_filename(audio_file_path) + + metadata["filesize"] = os.path.getsize(audio_file_path) + + # Remove file from organize directory + try: + os.remove(audio_file_path) + except OSError: + logging.info("Could not remove %s from organize directory" % audio_file_path) + + # Pass original filename to Airtime so we can store it in the db + metadata["filename"] = file_base_name + + metadata["resource_id"] = resource_id + metadata["storage_backend"] = self._storage_backend + return metadata + diff --git a/python_apps/airtime_analyzer/airtime_analyzer/cloud_storage_uploader_libcloud.py b/python_apps/airtime_analyzer/airtime_analyzer/cloud_storage_uploader_libcloud.py new file mode 100644 index 0000000000..c0950dc15f --- /dev/null +++ b/python_apps/airtime_analyzer/airtime_analyzer/cloud_storage_uploader_libcloud.py @@ -0,0 +1,121 @@ +import os +import logging +import uuid +import ConfigParser +from libcloud.storage.providers import get_driver +from libcloud.storage.types import Provider, ContainerDoesNotExistError, ObjectDoesNotExistError + + +CLOUD_CONFIG_PATH = '/etc/airtime-saas/cloud_storage.conf' +STORAGE_BACKEND_FILE = "file" + +class CloudStorageUploader: + """ A class that uses Apache Libcloud's Storage API to upload objects into + a cloud storage backend. For this implementation all files will be uploaded + into a bucket on Amazon S3. + + It is important to note that every file, coming from different Airtime Pro + stations, will get uploaded into the same bucket on the same Amazon S3 + account. + + Attributes: + _provider: Storage backend. For exmaple, Amazon S3, Google Storage. + _bucket: Name of container on provider where files will get uploaded into. + _api_key: Access key to objects on the provider's storage backend. + _api_key_secret: Secret access key to objects on the provider's storage backend. + """ + + def __init__(self): + + config = ConfigParser.SafeConfigParser() + try: + config.readfp(open(CLOUD_CONFIG_PATH)) + cloud_storage_config_section = config.get("current_backend", "storage_backend") + self._storage_backend = cloud_storage_config_section + except IOError as e: + print "Failed to open config file at " + CLOUD_CONFIG_PATH + ": " + e.strerror + print "Defaulting to file storage" + self._storage_backend = STORAGE_BACKEND_FILE + except Exception as e: + print e + print "Defaulting to file storage" + self._storage_backend = STORAGE_BACKEND_FILE + + if self._storage_backend == STORAGE_BACKEND_FILE: + self._provider = "" + self._bucket = "" + self._api_key = "" + self._api_key_secret = "" + else: + self._provider = config.get(cloud_storage_config_section, 'provider') + self._bucket = config.get(cloud_storage_config_section, 'bucket') + self._api_key = config.get(cloud_storage_config_section, 'api_key') + self._api_key_secret = config.get(cloud_storage_config_section, 'api_key_secret') + + def enabled(self): + if self._storage_backend == "file": + return False + else: + return True + + + def upload_obj(self, audio_file_path, metadata): + """Uploads a file into Amazon S3 object storage. + + Before a file is uploaded onto Amazon S3 we generate a unique object + name consisting of the filename and a unqiue string using the uuid4 + module. + + Keyword arguments: + audio_file_path: Path on disk to the audio file that is about to be + uploaded to Amazon S3 object storage. + metadata: ID3 tags and other metadata extracted from the audio file. + + Returns: + The metadata dictionary it received with three new keys: + filesize: The file's filesize in bytes. + filename: The file's filename. + resource_id: The unique object name used to identify the objects + on Amazon S3 + """ + + file_base_name = os.path.basename(audio_file_path) + file_name, extension = os.path.splitext(file_base_name) + + # With Amazon S3 you cannot create a signed url if there are spaces + # in the object name. URL encoding the object name doesn't solve the + # problem. As a solution we will replace spaces with dashes. + file_name = file_name.replace(" ", "-") + object_name = "%s_%s%s" % (file_name, str(uuid.uuid4()), extension) + + provider_driver_class = get_driver(getattr(Provider, self._provider)) + driver = provider_driver_class(self._api_key, self._api_key_secret) + + try: + container = driver.get_container(self._bucket) + except ContainerDoesNotExistError: + container = driver.create_container(self._bucket) + + extra = {'meta_data': {'filename': file_base_name}} + + obj = driver.upload_object(file_path=audio_file_path, + container=container, + object_name=object_name, + verify_hash=False, + extra=extra) + + metadata["filesize"] = os.path.getsize(audio_file_path) + + # Remove file from organize directory + try: + os.remove(audio_file_path) + except OSError: + logging.info("Could not remove %s from organize directory" % audio_file_path) + + # Pass original filename to Airtime so we can store it in the db + metadata["filename"] = file_base_name + + metadata["resource_id"] = object_name + metadata["storage_backend"] = self._storage_backend + return metadata + diff --git a/python_apps/airtime_analyzer/airtime_analyzer/config_file.py b/python_apps/airtime_analyzer/airtime_analyzer/config_file.py new file mode 100644 index 0000000000..7bd5a0b594 --- /dev/null +++ b/python_apps/airtime_analyzer/airtime_analyzer/config_file.py @@ -0,0 +1,15 @@ +import ConfigParser + +def read_config_file(config_path): + """Parse the application's config file located at config_path.""" + config = ConfigParser.SafeConfigParser() + try: + config.readfp(open(config_path)) + except IOError as e: + print "Failed to open config file at " + config_path + ": " + e.strerror + exit(-1) + except Exception as e: + print e.strerror + exit(-1) + + return config \ No newline at end of file diff --git a/python_apps/airtime_analyzer/airtime_analyzer/cuepoint_analyzer.py b/python_apps/airtime_analyzer/airtime_analyzer/cuepoint_analyzer.py new file mode 100644 index 0000000000..8a99626c68 --- /dev/null +++ b/python_apps/airtime_analyzer/airtime_analyzer/cuepoint_analyzer.py @@ -0,0 +1,45 @@ +import subprocess +import logging +import traceback +import json +import datetime +from analyzer import Analyzer + + +class CuePointAnalyzer(Analyzer): + ''' This class extracts the cue-in time, cue-out time, and length of a track using silan. ''' + + SILAN_EXECUTABLE = 'silan' + + @staticmethod + def analyze(filename, metadata): + ''' Extracts the cue-in and cue-out times along and sets the file duration based on that. + The cue points are there to skip the silence at the start and end of a track, and are determined + using "silan", which analyzes the loudness in a track. + :param filename: The full path to the file to analyzer + :param metadata: A metadata dictionary where the results will be put + :return: The metadata dictionary + ''' + ''' The silan -F 0.99 parameter tweaks the highpass filter. The default is 0.98, but at that setting, + the unit test on the short m4a file fails. With the new setting, it gets the correct cue-in time and + all the unit tests pass. + ''' + command = [CuePointAnalyzer.SILAN_EXECUTABLE, '-b', '-F', '0.99', '-f', 'JSON', '-t', '1.0', filename] + try: + results_json = subprocess.check_output(command, stderr=subprocess.STDOUT, close_fds=True) + silan_results = json.loads(results_json) + metadata['length_seconds'] = float(silan_results['file duration']) + # Conver the length into a formatted time string + track_length = datetime.timedelta(seconds=metadata['length_seconds']) + metadata["length"] = str(track_length) + metadata['cuein'] = format(silan_results['sound'][0][0], 'f') + metadata['cueout'] = format(silan_results['sound'][0][1], 'f') + + except OSError as e: # silan was not found + logging.warn("Failed to run: %s - %s. %s" % (command[0], e.strerror, "Do you have silan installed?")) + except subprocess.CalledProcessError as e: # silan returned an error code + logging.warn("%s %s %s", e.cmd, e.message, e.returncode) + except Exception as e: + logging.warn(e) + + return metadata diff --git a/python_apps/airtime_analyzer/airtime_analyzer/filemover_analyzer.py b/python_apps/airtime_analyzer/airtime_analyzer/filemover_analyzer.py new file mode 100644 index 0000000000..65badaf507 --- /dev/null +++ b/python_apps/airtime_analyzer/airtime_analyzer/filemover_analyzer.py @@ -0,0 +1,98 @@ +import logging +import os +import time +import shutil +import os, errno +import time +import uuid + +from analyzer import Analyzer + +class FileMoverAnalyzer(Analyzer): + """This analyzer copies a file over from a temporary directory (stor/organize) + into the Airtime library (stor/imported). + """ + @staticmethod + def analyze(audio_file_path, metadata): + """Dummy method because we need more info than analyze gets passed to it""" + raise Exception("Use FileMoverAnalyzer.move() instead.") + + @staticmethod + def move(audio_file_path, import_directory, original_filename, metadata): + """Move the file at audio_file_path over into the import_directory/import, + renaming it to original_filename. + + Keyword arguments: + audio_file_path: Path to the file to be imported. + import_directory: Path to the "import" directory inside the Airtime stor directory. + (eg. /srv/airtime/stor/import) + original_filename: The filename of the file when it was uploaded to Airtime. + metadata: A dictionary where the "full_path" of where the file is moved to will be added. + """ + if not isinstance(audio_file_path, unicode): + raise TypeError("audio_file_path must be unicode. Was of type " + type(audio_file_path).__name__) + if not isinstance(import_directory, unicode): + raise TypeError("import_directory must be unicode. Was of type " + type(import_directory).__name__) + if not isinstance(original_filename, unicode): + raise TypeError("original_filename must be unicode. Was of type " + type(original_filename).__name__) + if not isinstance(metadata, dict): + raise TypeError("metadata must be a dict. Was of type " + type(metadata).__name__) + + #Import the file over to it's final location. + # TODO: Also, handle the case where the move fails and write some code + # to possibly move the file to problem_files. + + max_dir_len = 48 + max_file_len = 48 + final_file_path = import_directory + orig_file_basename, orig_file_extension = os.path.splitext(original_filename) + if metadata.has_key("artist_name"): + final_file_path += "/" + metadata["artist_name"][0:max_dir_len] # truncating with array slicing + if metadata.has_key("album_title"): + final_file_path += "/" + metadata["album_title"][0:max_dir_len] + # Note that orig_file_extension includes the "." already + final_file_path += "/" + orig_file_basename[0:max_file_len] + orig_file_extension + + #Ensure any redundant slashes are stripped + final_file_path = os.path.normpath(final_file_path) + + #If a file with the same name already exists in the "import" directory, then + #we add a unique string to the end of this one. We never overwrite a file on import + #because if we did that, it would mean Airtime's database would have + #the wrong information for the file we just overwrote (eg. the song length would be wrong!) + #If the final file path is the same as the file we've been told to import (which + #you often do when you're debugging), then don't move the file at all. + + if os.path.exists(final_file_path): + if os.path.samefile(audio_file_path, final_file_path): + metadata["full_path"] = final_file_path + return metadata + base_file_path, file_extension = os.path.splitext(final_file_path) + final_file_path = "%s_%s%s" % (base_file_path, time.strftime("%m-%d-%Y-%H-%M-%S", time.localtime()), file_extension) + + #If THAT path exists, append a UUID instead: + while os.path.exists(final_file_path): + base_file_path, file_extension = os.path.splitext(final_file_path) + final_file_path = "%s_%s%s" % (base_file_path, str(uuid.uuid4()), file_extension) + + #Ensure the full path to the file exists + mkdir_p(os.path.dirname(final_file_path)) + + #Move the file into its final destination directory + logging.debug("Moving %s to %s" % (audio_file_path, final_file_path)) + shutil.move(audio_file_path, final_file_path) + + metadata["full_path"] = final_file_path + return metadata + +def mkdir_p(path): + """ Make all directories in a tree (like mkdir -p)""" + if path == "": + return + try: + os.makedirs(path) + except OSError as exc: # Python >2.5 + if exc.errno == errno.EEXIST and os.path.isdir(path): + pass + else: raise + diff --git a/python_apps/airtime_analyzer/airtime_analyzer/message_listener.py b/python_apps/airtime_analyzer/airtime_analyzer/message_listener.py new file mode 100644 index 0000000000..8ed5fa7821 --- /dev/null +++ b/python_apps/airtime_analyzer/airtime_analyzer/message_listener.py @@ -0,0 +1,231 @@ +import sys +import pika +import json +import time +import select +import signal +import logging +import multiprocessing +from analyzer_pipeline import AnalyzerPipeline +from status_reporter import StatusReporter +from cloud_storage_uploader import CloudStorageUploader + +EXCHANGE = "airtime-uploads" +EXCHANGE_TYPE = "topic" +ROUTING_KEY = "" +QUEUE = "airtime-uploads" + + +""" A message listener class that waits for messages from Airtime through RabbitMQ + notifying us about new uploads. + + This is probably the most important class in this application. It connects + to RabbitMQ (or an AMQP server) and listens for messages that notify us + when a user uploads a new file to Airtime, either through the web interface + or via FTP (on Airtime Pro). When we get a notification, we spawn a child + process that extracts the uploaded audio file's metadata and moves it into + Airtime's music library directory. Lastly, the extracted metadata is + reported back to the Airtime web application. + + There's a couple of Very Important technical details and constraints that you + need to know if you're going to work on this code: + + 1) airtime_analyzer is designed so it doesn't have to run on the same + computer as the web server. It just needs access to your Airtime library + folder (stor). + 2) airtime_analyzer is multi-tenant - One process can be used for many + Airtime instances. It's designed NOT to know about whether it's running + in a single tenant or multi-tenant environment. All the information it + needs to import a file into an Airtime instance is passed in via those + RabbitMQ messages. + 3) We're using a "topic exchange" for the new upload notification RabbitMQ + messages. This means if we run several airtime_analyzer processes on + different computers, RabbitMQ will do round-robin dispatching of the + file notification. This is cheap, easy load balancing and + redundancy for us. You can even run multiple airtime_analyzer processes + on one machine if you want. + 4) We run the actual work (metadata analysis and file moving) in a separate + child process so that if it crashes, we can stop RabbitMQ from resending + the file notification message to another airtime_analyzer process (NACK), + which would otherwise cause cascading failure. We also do this so that we + can report the problem file to the Airtime web interface ("import failed"). + + So that is a quick overview of the design constraints for this application, and + why airtime_analyzer is written this way. +""" +class MessageListener: + + def __init__(self, config): + ''' Start listening for file upload notification messages + from RabbitMQ + + Keyword arguments: + config: A ConfigParser object containing the [rabbitmq] configuration. + ''' + + self._shutdown = False + + # Read the RabbitMQ connection settings from the config file + # The exceptions throw here by default give good error messages. + RMQ_CONFIG_SECTION = "rabbitmq" + self._host = config.get(RMQ_CONFIG_SECTION, 'host') + self._port = config.getint(RMQ_CONFIG_SECTION, 'port') + self._username = config.get(RMQ_CONFIG_SECTION, 'user') + self._password = config.get(RMQ_CONFIG_SECTION, 'password') + self._vhost = config.get(RMQ_CONFIG_SECTION, 'vhost') + + # Set up a signal handler so we can shutdown gracefully + # For some reason, this signal handler must be set up here. I'd rather + # put it in AirtimeAnalyzerServer, but it doesn't work there (something to do + # with pika's SIGTERM handler interfering with it, I think...) + signal.signal(signal.SIGTERM, self.graceful_shutdown) + + while not self._shutdown: + try: + self.connect_to_messaging_server() + self.wait_for_messages() + except (KeyboardInterrupt, SystemExit): + break # Break out of the while loop and exit the application + except select.error: + pass + except pika.exceptions.AMQPError as e: + if self._shutdown: + break + logging.error("Connection to message queue failed. ") + logging.error(e) + logging.info("Retrying in 5 seconds...") + time.sleep(5) + + self.disconnect_from_messaging_server() + logging.info("Exiting cleanly.") + + + def connect_to_messaging_server(self): + '''Connect to the RabbitMQ server and start listening for messages.''' + self._connection = pika.BlockingConnection(pika.ConnectionParameters(host=self._host, + port=self._port, virtual_host=self._vhost, + credentials=pika.credentials.PlainCredentials(self._username, self._password))) + self._channel = self._connection.channel() + self._channel.exchange_declare(exchange=EXCHANGE, type=EXCHANGE_TYPE, durable=True) + result = self._channel.queue_declare(queue=QUEUE, durable=True) + + self._channel.queue_bind(exchange=EXCHANGE, queue=QUEUE, routing_key=ROUTING_KEY) + + logging.info(" Listening for messages...") + self._channel.basic_consume(self.msg_received_callback, + queue=QUEUE, no_ack=False) + + def wait_for_messages(self): + '''Wait until we've received a RabbitMQ message.''' + self._channel.start_consuming() + + def disconnect_from_messaging_server(self): + '''Stop consuming RabbitMQ messages and disconnect''' + # If you try to close a connection that's already closed, you're going to have a bad time. + # We're breaking EAFP because this can be called multiple times depending on exception + # handling flow here. + if not self._channel.is_closed and not self._channel.is_closing: + self._channel.stop_consuming() + if not self._connection.is_closed and not self._connection.is_closing: + self._connection.close() + + def graceful_shutdown(self, signum, frame): + '''Disconnect and break out of the message listening loop''' + self._shutdown = True + self.disconnect_from_messaging_server() + + def msg_received_callback(self, channel, method_frame, header_frame, body): + ''' A callback method that runs when a RabbitMQ message is received. + + Here we parse the message, spin up an analyzer process, and report the + metadata back to the Airtime web application (or report an error). + ''' + logging.info(" - Received '%s' on routing_key '%s'" % (body, method_frame.routing_key)) + + #Declare all variables here so they exist in the exception handlers below, no matter what. + audio_file_path = "" + #final_file_path = "" + import_directory = "" + original_filename = "" + callback_url = "" + api_key = "" + station_domain = "" + + ''' Spin up a worker process. We use the multiprocessing module and multiprocessing.Queue + to pass objects between the processes so that if the analyzer process crashes, it does not + take down the rest of the daemon and we NACK that message so that it doesn't get + propagated to other airtime_analyzer daemons (eg. running on other servers). + We avoid cascading failure this way. + ''' + try: + msg_dict = json.loads(body) + api_key = msg_dict["api_key"] + callback_url = msg_dict["callback_url"] + + audio_file_path = msg_dict["tmp_file_path"] + import_directory = msg_dict["import_directory"] + original_filename = msg_dict["original_filename"] + + audio_metadata = MessageListener.spawn_analyzer_process(audio_file_path, import_directory, original_filename) + StatusReporter.report_success_to_callback_url(callback_url, api_key, audio_metadata) + + except KeyError as e: + # A field in msg_dict that we needed was missing (eg. audio_file_path) + logging.exception("A mandatory airtime_analyzer message field was missing from the message.") + # See the huge comment about NACK below. + channel.basic_nack(delivery_tag=method_frame.delivery_tag, multiple=False, + requeue=False) #Important that it doesn't requeue the message + + except Exception as e: + logging.exception(e) + ''' If ANY exception happens while processing a file, we're going to NACK to the + messaging server and tell it to remove the message from the queue. + (NACK is a negative acknowledgement. We could use ACK instead, but this might come + in handy in the future.) + Exceptions in this context are unexpected, unhandled errors. We try to recover + from as many errors as possble in AnalyzerPipeline, but we're safeguarding ourselves + here from any catastrophic or genuinely unexpected errors: + ''' + channel.basic_nack(delivery_tag=method_frame.delivery_tag, multiple=False, + requeue=False) #Important that it doesn't requeue the message + + # + # TODO: If the JSON was invalid or the web server is down, + # then don't report that failure to the REST API + #TODO: Catch exceptions from this HTTP request too: + if callback_url: # If we got an invalid message, there might be no callback_url in the JSON + # Report this as a failed upload to the File Upload REST API. + StatusReporter.report_failure_to_callback_url(callback_url, api_key, import_status=2, + reason=u'An error occurred while importing this file') + + + else: + # ACK at the very end, after the message has been successfully processed. + # If we don't ack, then RabbitMQ will redeliver the message in the future. + channel.basic_ack(delivery_tag=method_frame.delivery_tag) + + @staticmethod + def spawn_analyzer_process(audio_file_path, import_directory, original_filename): + ''' Spawn a child process to analyze and import a new audio file. ''' + + csu = CloudStorageUploader() + cloud_storage_enabled = csu.enabled() + + q = multiprocessing.Queue() + p = multiprocessing.Process(target=AnalyzerPipeline.run_analysis, + args=(q, audio_file_path, import_directory, original_filename, cloud_storage_enabled)) + p.start() + p.join() + if p.exitcode == 0: + results = q.get() + logging.info("Main process received results from child: ") + logging.info(results) + else: + raise Exception("Analyzer process terminated unexpectedly.") + + # Ensure our queue doesn't fill up and block due to unexpected behaviour. Defensive code. + while not q.empty(): + q.get() + + return results + diff --git a/python_apps/airtime_analyzer/airtime_analyzer/metadata_analyzer.py b/python_apps/airtime_analyzer/airtime_analyzer/metadata_analyzer.py new file mode 100644 index 0000000000..57d2785483 --- /dev/null +++ b/python_apps/airtime_analyzer/airtime_analyzer/metadata_analyzer.py @@ -0,0 +1,177 @@ +import time +import datetime +import mutagen +import magic +import wave +import logging +import os +import hashlib +from analyzer import Analyzer + +class MetadataAnalyzer(Analyzer): + + @staticmethod + def analyze(filename, metadata): + ''' Extract audio metadata from tags embedded in the file (eg. ID3 tags) + + Keyword arguments: + filename: The path to the audio file to extract metadata from. + metadata: A dictionary that the extracted metadata will be added to. + ''' + if not isinstance(filename, unicode): + raise TypeError("filename must be unicode. Was of type " + type(filename).__name__) + if not isinstance(metadata, dict): + raise TypeError("metadata must be a dict. Was of type " + type(metadata).__name__) + + #Airtime <= 2.5.x nonsense: + metadata["ftype"] = "audioclip" + #Other fields we'll want to set for Airtime: + metadata["hidden"] = False + + # Mutagen doesn't handle WAVE files so we use a different package + mime_check = magic.from_file(filename, mime=True) + metadata["mime"] = mime_check + if mime_check == 'audio/x-wav': + return MetadataAnalyzer._analyze_wave(filename, metadata) + + #Extract metadata from an audio file using mutagen + audio_file = mutagen.File(filename, easy=True) + + #Bail if the file couldn't be parsed. The title should stay as the filename + #inside Airtime. + if audio_file == None: # Don't use "if not" here. It is wrong due to mutagen's design. + return metadata + # Note that audio_file can equal {} if the file is valid but there's no metadata tags. + # We can still try to grab the info variables below. + + #Grab other file information that isn't encoded in a tag, but instead usually + #in the file header. Mutagen breaks that out into a separate "info" object: + info = audio_file.info + if hasattr(info, "sample_rate"): # Mutagen is annoying and inconsistent + metadata["sample_rate"] = info.sample_rate + if hasattr(info, "length"): + metadata["length_seconds"] = info.length + #Converting the length in seconds (float) to a formatted time string + track_length = datetime.timedelta(seconds=info.length) + metadata["length"] = str(track_length) #time.strftime("%H:%M:%S.%f", track_length) + # Other fields for Airtime + metadata["cueout"] = metadata["length"] + + if hasattr(info, "bitrate"): + metadata["bit_rate"] = info.bitrate + + # Use the mutagen to get the MIME type, if it has one. This is more reliable and + # consistent for certain types of MP3s or MPEG files than the MIMEs returned by magic. + if audio_file.mime: + metadata["mime"] = audio_file.mime[0] + + #Try to get the number of channels if mutagen can... + try: + #Special handling for getting the # of channels from MP3s. It's in the "mode" field + #which is 0=Stereo, 1=Joint Stereo, 2=Dual Channel, 3=Mono. Part of the ID3 spec... + if metadata["mime"] in ["audio/mpeg", 'audio/mp3']: + if info.mode == 3: + metadata["channels"] = 1 + else: + metadata["channels"] = 2 + else: + metadata["channels"] = info.channels + except (AttributeError, KeyError): + #If mutagen can't figure out the number of channels, we'll just leave it out... + pass + + #Try to extract the number of tracks on the album if we can (the "track total") + try: + track_number = audio_file["tracknumber"] + if isinstance(track_number, list): # Sometimes tracknumber is a list, ugh + track_number = track_number[0] + track_number_tokens = track_number + if u'/' in track_number: + track_number_tokens = track_number.split(u'/') + elif u'-' in track_number: + track_number_tokens = track_number.split(u'-') + track_number = track_number_tokens[0] + metadata["track_number"] = track_number + track_total = track_number_tokens[1] + metadata["track_total"] = track_total + except (AttributeError, KeyError, IndexError): + #If we couldn't figure out the track_number or track_total, just ignore it... + pass + + # Get file size and md5 hash of the file + metadata["filesize"] = os.path.getsize(filename) + + with open(filename, 'rb') as fh: + m = hashlib.md5() + while True: + data = fh.read(8192) + if not data: + break + m.update(data) + metadata["md5"] = m.hexdigest() + + + + #We normalize the mutagen tags slightly here, so in case mutagen changes, + #we find the + mutagen_to_airtime_mapping = { + 'title': 'track_title', + 'artist': 'artist_name', + 'album': 'album_title', + 'bpm': 'bpm', + 'composer': 'composer', + 'conductor': 'conductor', + 'copyright': 'copyright', + 'comment': 'comment', + 'encoded_by': 'encoder', + 'genre': 'genre', + 'isrc': 'isrc', + 'label': 'label', + 'organization': 'label', + #'length': 'length', + 'language': 'language', + 'last_modified':'last_modified', + 'mood': 'mood', + 'bit_rate': 'bit_rate', + 'replay_gain': 'replaygain', + #'tracknumber': 'track_number', + #'track_total': 'track_total', + 'website': 'website', + 'date': 'year', + #'mime_type': 'mime', + } + + for mutagen_tag, airtime_tag in mutagen_to_airtime_mapping.iteritems(): + try: + metadata[airtime_tag] = audio_file[mutagen_tag] + + # Some tags are returned as lists because there could be multiple values. + # This is unusual so we're going to always just take the first item in the list. + if isinstance(metadata[airtime_tag], list): + if metadata[airtime_tag]: + metadata[airtime_tag] = metadata[airtime_tag][0] + else: # Handle empty lists + metadata[airtime_tag] = "" + + except KeyError: + continue + + return metadata + + @staticmethod + def _analyze_wave(filename, metadata): + try: + reader = wave.open(filename, 'rb') + metadata["mime"] = magic.from_file(filename, mime=True) + metadata["channels"] = reader.getnchannels() + metadata["sample_rate"] = reader.getframerate() + length_seconds = float(reader.getnframes()) / float(metadata["sample_rate"]) + #Converting the length in seconds (float) to a formatted time string + track_length = datetime.timedelta(seconds=length_seconds) + metadata["length"] = str(track_length) #time.strftime("%H:%M:%S.%f", track_length) + metadata["length_seconds"] = length_seconds + metadata["cueout"] = metadata["length"] + except wave.Error: + logging.error("Invalid WAVE file.") + raise + return metadata diff --git a/python_apps/airtime_analyzer/airtime_analyzer/playability_analyzer.py b/python_apps/airtime_analyzer/airtime_analyzer/playability_analyzer.py new file mode 100644 index 0000000000..0ca8a84c19 --- /dev/null +++ b/python_apps/airtime_analyzer/airtime_analyzer/playability_analyzer.py @@ -0,0 +1,32 @@ +__author__ = 'asantoni' + +import subprocess +import logging +from analyzer import Analyzer + +class UnplayableFileError(Exception): + pass + +class PlayabilityAnalyzer(Analyzer): + ''' This class checks if a file can actually be played with Liquidsoap. ''' + + LIQUIDSOAP_EXECUTABLE = 'liquidsoap' + + @staticmethod + def analyze(filename, metadata): + ''' Checks if a file can be played by Liquidsoap. + :param filename: The full path to the file to analyzer + :param metadata: A metadata dictionary where the results will be put + :return: The metadata dictionary + ''' + command = [PlayabilityAnalyzer.LIQUIDSOAP_EXECUTABLE, '-v', '-c', "output.dummy(audio_to_stereo(single(argv(1))))", '--', filename] + try: + subprocess.check_output(command, stderr=subprocess.STDOUT, close_fds=True) + + except OSError as e: # liquidsoap was not found + logging.warn("Failed to run: %s - %s. %s" % (command[0], e.strerror, "Do you have liquidsoap installed?")) + except (subprocess.CalledProcessError, Exception) as e: # liquidsoap returned an error code + logging.warn(e) + raise UnplayableFileError + + return metadata diff --git a/python_apps/airtime_analyzer/airtime_analyzer/replaygain_analyzer.py b/python_apps/airtime_analyzer/airtime_analyzer/replaygain_analyzer.py new file mode 100644 index 0000000000..39ea2e4397 --- /dev/null +++ b/python_apps/airtime_analyzer/airtime_analyzer/replaygain_analyzer.py @@ -0,0 +1,36 @@ +import subprocess +import logging +from analyzer import Analyzer + + +class ReplayGainAnalyzer(Analyzer): + ''' This class extracts the ReplayGain using a tool from the python-rgain package. ''' + + REPLAYGAIN_EXECUTABLE = 'replaygain' # From the python-rgain package + + @staticmethod + def analyze(filename, metadata): + ''' Extracts the Replaygain loudness normalization factor of a track. + :param filename: The full path to the file to analyzer + :param metadata: A metadata dictionary where the results will be put + :return: The metadata dictionary + ''' + ''' The -d flag means do a dry-run, ie. don't modify the file directly. + ''' + command = [ReplayGainAnalyzer.REPLAYGAIN_EXECUTABLE, '-d', filename] + try: + results = subprocess.check_output(command, stderr=subprocess.STDOUT, close_fds=True) + filename_token = "%s: " % filename + rg_pos = results.find(filename_token, results.find("Calculating Replay Gain information")) + len(filename_token) + db_pos = results.find(" dB", rg_pos) + replaygain = results[rg_pos:db_pos] + metadata['replay_gain'] = float(replaygain) + + except OSError as e: # replaygain was not found + logging.warn("Failed to run: %s - %s. %s" % (command[0], e.strerror, "Do you have python-rgain installed?")) + except subprocess.CalledProcessError as e: # replaygain returned an error code + logging.warn("%s %s %s", e.cmd, e.message, e.returncode) + except Exception as e: + logging.warn(e) + + return metadata diff --git a/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py b/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py new file mode 100644 index 0000000000..b86fa3e15a --- /dev/null +++ b/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py @@ -0,0 +1,306 @@ +import requests +import json +import logging +import collections +import Queue +import subprocess +import multiprocessing +import time +import sys +import traceback +import os +import pickle +import threading +from urlparse import urlparse + +class PicklableHttpRequest: + def __init__(self, method, url, data, api_key): + self.method = method + self.url = url + self.data = data + self.api_key = api_key + + def create_request(self): + return requests.Request(method=self.method, url=self.url, data=self.data, + auth=requests.auth.HTTPBasicAuth(self.api_key, '')) + +def process_http_requests(ipc_queue, http_retry_queue_path): + ''' Runs in a separate process and performs all the HTTP requests where we're + reporting extracted audio file metadata or errors back to the Airtime web application. + + This process also checks every 5 seconds if there's failed HTTP requests that we + need to retry. We retry failed HTTP requests so that we don't lose uploads if the + web server is temporarily down. + + ''' + + # Store any failed requests (eg. due to web server errors or downtime) to be + # retried later: + retry_queue = collections.deque() + shutdown = False + + # Unpickle retry_queue from disk so that we won't have lost any uploads + # if airtime_analyzer is shut down while the web server is down or unreachable, + # and there were failed HTTP requests pending, waiting to be retried. + try: + with open(http_retry_queue_path, 'rb') as pickle_file: + retry_queue = pickle.load(pickle_file) + except IOError as e: + if e.errno == 2: + pass + else: + raise e + except Exception as e: + # If we fail to unpickle a saved queue of failed HTTP requests, then we'll just log an error + # and continue because those HTTP requests are lost anyways. The pickled file will be + # overwritten the next time the analyzer is shut down too. + logging.error("Failed to unpickle %s. Continuing..." % http_retry_queue_path) + pass + + while True: + try: + while not shutdown: + try: + request = ipc_queue.get(block=True, timeout=5) + if isinstance(request, str) and request == "shutdown": # Bit of a cheat + shutdown = True + break + if not isinstance(request, PicklableHttpRequest): + raise TypeError("request must be a PicklableHttpRequest. Was of type " + type(request).__name__) + except Queue.Empty: + request = None + + # If there's no new HTTP request we need to execute, let's check our "retry + # queue" and see if there's any failed HTTP requests we can retry: + if request: + send_http_request(request, retry_queue) + else: + # Using a for loop instead of while so we only iterate over all the requests once! + for i in range(len(retry_queue)): + request = retry_queue.popleft() + send_http_request(request, retry_queue) + + logging.info("Shutting down status_reporter") + # Pickle retry_queue to disk so that we don't lose uploads if we're shut down while + # while the web server is down or unreachable. + with open(http_retry_queue_path, 'wb') as pickle_file: + pickle.dump(retry_queue, pickle_file) + return + except Exception as e: # Terrible top-level exception handler to prevent the thread from dying, just in case. + if shutdown: + return + logging.exception("Unhandled exception in StatusReporter") + logging.exception(e) + logging.info("Restarting StatusReporter thread") + time.sleep(2) # Throttle it + + +def send_http_request(picklable_request, retry_queue): + if not isinstance(picklable_request, PicklableHttpRequest): + raise TypeError("picklable_request must be a PicklableHttpRequest. Was of type " + type(picklable_request).__name__) + try: + #t = threading.Timer(60, alert_hung_request) + #t.start() + bare_request = picklable_request.create_request() + s = requests.Session() + prepared_request = s.prepare_request(bare_request) + r = s.send(prepared_request, timeout=StatusReporter._HTTP_REQUEST_TIMEOUT) + #t.cancel() # Watchdog no longer needed. + r.raise_for_status() # Raise an exception if there was an http error code returned + logging.info("HTTP request sent successfully.") + except requests.exceptions.HTTPError as e: + if e.response.status_code == 422: + # Do no retry the request if there was a metadata validation error + logging.error("HTTP request failed due to an HTTP exception. Exception was: %s" % str(e)) + else: + # The request failed with an error 500 probably, so let's check if Airtime and/or + # the web server are broken. If not, then our request was probably causing an + # error 500 in the media API (ie. a bug), so there's no point in retrying it. + logging.error("HTTP request failed. Exception was: %s" % str(e)) + parsed_url = urlparse(e.response.request.url) + if is_web_server_broken(parsed_url.scheme + "://" + parsed_url.netloc): + # If the web server is having problems, retry the request later: + retry_queue.append(picklable_request) + # Otherwise, if the request was bad, the request is never retried. + # You will have to find these bad requests in logs or you'll be + # notified by sentry. + except requests.exceptions.ConnectionError as e: + logging.error("HTTP request failed due to a connection error. Retrying later. %s" % str(e)) + retry_queue.append(picklable_request) # Retry it later + except Exception as e: + logging.error("HTTP request failed with unhandled exception. %s" % str(e)) + # Don't put the request into the retry queue, just give up on this one. + # I'm doing this to protect against us getting some pathological request + # that breaks our code. I don't want us pickling data that potentially + # breaks airtime_analyzer. + +def is_web_server_broken(url): + ''' Do a naive test to check if the web server we're trying to access is down. + We use this to try to differentiate between error 500s that are coming + from (for example) a bug in the Airtime Media REST API and error 500s + caused by Airtime or the webserver itself being broken temporarily. + ''' + try: + test_req = requests.get(url) + test_req.raise_for_status() + except Exception as e: + return True + else: + # The request worked fine, so the web server and Airtime are still up. + return False + return False + + +def alert_hung_request(): + ''' Temporary function to alert our Airtime developers when we have a request that's + blocked indefinitely. We're working with the python requests developers to figure this + one out. (We need to strace airtime_analyzer to figure out where exactly it's blocked.) + There's some weird circumstance where this can happen, even though we specify a timeout. + ''' + pid = os.getpid() + + # Capture a list of the open file/socket handles so we can interpret the strace log + lsof_log = subprocess.check_output(["lsof -p %s" % str(pid)], shell=True) + + strace_log = "" + # Run strace on us for 10 seconds + try: + subprocess.check_output(["timeout 10 strace -p %s -s 1000 -f -v -o /var/log/airtime/airtime_analyzer_strace.log -ff " % str(pid)], + shell=True) + except subprocess.CalledProcessError as e: # When the timeout fires, it returns a crazy code + strace_log = e.output + pass + + + # Dump a traceback + code = [] + for threadId, stack in sys._current_frames().items(): + code.append("\n# ThreadID: %s" % threadId) + for filename, lineno, name, line in traceback.extract_stack(stack): + code.append('File: "%s", line %d, in %s' % (filename, lineno, name)) + if line: + code.append(" %s" % (line.strip())) + stack_trace = ('\n'.join(code)) + + logging.critical(stack_trace) + logging.critical(strace_log) + logging.critical(lsof_log) + # Exit the program so that upstart respawns us + #sys.exit(-1) #deadlocks :( + subprocess.check_output(["kill -9 %s" % str(pid)], shell=True) # Ugh, avert your eyes + +''' +request_running = False +request_running_lock = threading.Lock() +def is_request_running(): + request_running_lock.acquire() + rr = request_running + request_running_lock.release() + return rr +def set_request_running(is_running): + request_running_lock.acquire() + request_running = is_running + request_running_lock.release() +def is_request_hung(): +''' + + + + + +class StatusReporter(): + ''' Reports the extracted audio file metadata and job status back to the + Airtime web application. + ''' + _HTTP_REQUEST_TIMEOUT = 30 + + ''' We use multiprocessing.Process again here because we need a thread for this stuff + anyways, and Python gives us process isolation for free (crash safety). + ''' + _ipc_queue = multiprocessing.Queue() + #_request_process = multiprocessing.Process(target=process_http_requests, + # args=(_ipc_queue,)) + _request_process = None + + @classmethod + def start_thread(self, http_retry_queue_path): + StatusReporter._request_process = threading.Thread(target=process_http_requests, + args=(StatusReporter._ipc_queue,http_retry_queue_path)) + StatusReporter._request_process.start() + + @classmethod + def stop_thread(self): + logging.info("Terminating status_reporter process") + #StatusReporter._request_process.terminate() # Triggers SIGTERM on the child process + StatusReporter._ipc_queue.put("shutdown") # Special trigger + StatusReporter._request_process.join() + + @classmethod + def _send_http_request(self, request): + StatusReporter._ipc_queue.put(request) + + @classmethod + def report_success_to_callback_url(self, callback_url, api_key, audio_metadata): + ''' Report the extracted metadata and status of the successfully imported file + to the callback URL (which should be the Airtime File Upload API) + ''' + put_payload = json.dumps(audio_metadata) + #r = requests.Request(method='PUT', url=callback_url, data=put_payload, + # auth=requests.auth.HTTPBasicAuth(api_key, '')) + ''' + r = requests.Request(method='PUT', url=callback_url, data=put_payload, + auth=requests.auth.HTTPBasicAuth(api_key, '')) + + StatusReporter._send_http_request(r) + ''' + + StatusReporter._send_http_request(PicklableHttpRequest(method='PUT', url=callback_url, + data=put_payload, api_key=api_key)) + + ''' + try: + r.raise_for_status() # Raise an exception if there was an http error code returned + except requests.exceptions.RequestException: + StatusReporter._ipc_queue.put(r.prepare()) + ''' + + ''' + # Encode the audio metadata as json and post it back to the callback_url + put_payload = json.dumps(audio_metadata) + logging.debug("sending http put with payload: " + put_payload) + r = requests.put(callback_url, data=put_payload, + auth=requests.auth.HTTPBasicAuth(api_key, ''), + timeout=StatusReporter._HTTP_REQUEST_TIMEOUT) + logging.debug("HTTP request returned status: " + str(r.status_code)) + logging.debug(r.text) # log the response body + + #TODO: queue up failed requests and try them again later. + r.raise_for_status() # Raise an exception if there was an http error code returned + ''' + + @classmethod + def report_failure_to_callback_url(self, callback_url, api_key, import_status, reason): + if not isinstance(import_status, (int, long) ): + raise TypeError("import_status must be an integer. Was of type " + type(import_status).__name__) + + logging.debug("Reporting import failure to Airtime REST API...") + audio_metadata = dict() + audio_metadata["import_status"] = import_status + audio_metadata["comment"] = reason # hack attack + put_payload = json.dumps(audio_metadata) + #logging.debug("sending http put with payload: " + put_payload) + ''' + r = requests.put(callback_url, data=put_payload, + auth=requests.auth.HTTPBasicAuth(api_key, ''), + timeout=StatusReporter._HTTP_REQUEST_TIMEOUT) + ''' + StatusReporter._send_http_request(PicklableHttpRequest(method='PUT', url=callback_url, + data=put_payload, api_key=api_key)) + ''' + logging.debug("HTTP request returned status: " + str(r.status_code)) + logging.debug(r.text) # log the response body + + #TODO: queue up failed requests and try them again later. + r.raise_for_status() # raise an exception if there was an http error code returned + ''' + diff --git a/python_apps/airtime_analyzer/bin/airtime_analyzer b/python_apps/airtime_analyzer/bin/airtime_analyzer new file mode 100755 index 0000000000..35debbd412 --- /dev/null +++ b/python_apps/airtime_analyzer/bin/airtime_analyzer @@ -0,0 +1,67 @@ +#!/usr/bin/env python +"""Runs the airtime_analyzer application. +""" + +import daemon +import argparse +import os +import airtime_analyzer.airtime_analyzer as aa + +VERSION = "1.0" +DEFAULT_CONFIG_PATH = '/etc/airtime/airtime.conf' +DEFAULT_HTTP_RETRY_PATH = '/tmp/airtime_analyzer_http_retries' + +def run(): + '''Entry-point for this application''' + print "Airtime Analyzer " + VERSION + parser = argparse.ArgumentParser() + parser.add_argument("-d", "--daemon", help="run as a daemon", action="store_true") + parser.add_argument("--debug", help="log full debugging output", action="store_true") + parser.add_argument("--rmq-config-file", help="specify a configuration file with RabbitMQ settings (default is %s)" % DEFAULT_CONFIG_PATH) + parser.add_argument("--http-retry-queue-file", help="specify where incompleted HTTP requests will be serialized (default is %s)" % DEFAULT_HTTP_RETRY_PATH) + args = parser.parse_args() + + check_if_media_monitor_is_running() + + #Default config file path + config_path = DEFAULT_CONFIG_PATH + http_retry_queue_path = DEFAULT_HTTP_RETRY_PATH + if args.rmq_config_file: + config_path = args.rmq_config_file + if args.http_retry_queue_file: + http_retry_queue_path = args.http_retry_queue_file + + if args.daemon: + with daemon.DaemonContext(): + aa.AirtimeAnalyzerServer(config_path=config_path, + http_retry_queue_path=http_retry_queue_path, + debug=args.debug) + else: + # Run without daemonizing + aa.AirtimeAnalyzerServer(config_path=config_path, + http_retry_queue_path=http_retry_queue_path, + debug=args.debug) + + +def check_if_media_monitor_is_running(): + """Ensure media_monitor isn't running before we start. + + We do this because media_monitor will move newly uploaded + files into the library on us and screw up the operation of airtime_analyzer. + media_monitor is deprecated. + """ + pids = [pid for pid in os.listdir('/proc') if pid.isdigit()] + + for pid in pids: + try: + process_name = open(os.path.join('/proc', pid, 'cmdline'), 'rb').read() + if 'media_monitor.py' in process_name: + print "Error: This process conflicts with media_monitor, and media_monitor is running." + print " Please terminate the running media_monitor.py process and try again." + exit(1) + except IOError: # proc has already terminated + continue + +run() + + diff --git a/python_apps/airtime_analyzer/install/upstart/airtime_analyzer.conf b/python_apps/airtime_analyzer/install/upstart/airtime_analyzer.conf new file mode 100644 index 0000000000..eeeb45797d --- /dev/null +++ b/python_apps/airtime_analyzer/install/upstart/airtime_analyzer.conf @@ -0,0 +1,24 @@ +description "Airtime Analyzer" +author "help@sourcefabric.org" + +start on runlevel [2345] +stop on runlevel [!2345] + +respawn + +setuid www-data +setgid www-data + +#expect fork + +env LANG='en_US.UTF-8' +env LC_ALL='en_US.UTF-8' + +#script +# airtime_analyzer +#end script + +exec airtime_analyzer + + + diff --git a/python_apps/airtime_analyzer/setup.py b/python_apps/airtime_analyzer/setup.py new file mode 100644 index 0000000000..7dd19dcd50 --- /dev/null +++ b/python_apps/airtime_analyzer/setup.py @@ -0,0 +1,51 @@ +from setuptools import setup +from subprocess import call +import sys + +# Allows us to avoid installing the upstart init script when deploying airtime_analyzer +# on Airtime Pro: +if '--no-init-script' in sys.argv: + data_files = [] + sys.argv.remove('--no-init-script') # super hax +else: + data_files = [('/etc/init', ['install/upstart/airtime_analyzer.conf'])] + print data_files + +setup(name='airtime_analyzer', + version='0.1', + description='Airtime Analyzer Worker and File Importer', + url='http://github.com/sourcefabric/Airtime', + author='Albert Santoni', + author_email='albert.santoni@sourcefabric.org', + license='MIT', + packages=['airtime_analyzer'], + scripts=['bin/airtime_analyzer'], + install_requires=[ + 'mutagen', + 'pika', + 'python-magic', + 'nose', + 'coverage', + 'mock', + 'python-daemon==1.6', + 'requests', + 'apache-libcloud', + 'rgain', + 'boto', + # These next 3 are required for requests to support SSL with SNI. Learned this the hard way... + # What sucks is that GCC is required to pip install these. + #'ndg-httpsclient', + #'pyasn1', + #'pyopenssl' + ], + zip_safe=False, + data_files=data_files) + +# Reload the initctl config so that "service start airtime_analyzer" works +if data_files: + print "Reloading initctl configuration" + call(['initctl', 'reload-configuration']) + print "Run \"sudo service airtime_analyzer restart\" now." + + +# TODO: Should we start the analyzer here or not? diff --git a/python_apps/airtime_analyzer/tests/__init__.py b/python_apps/airtime_analyzer/tests/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/python_apps/airtime_analyzer/tests/airtime_analyzer_tests.py b/python_apps/airtime_analyzer/tests/airtime_analyzer_tests.py new file mode 100644 index 0000000000..928e02b318 --- /dev/null +++ b/python_apps/airtime_analyzer/tests/airtime_analyzer_tests.py @@ -0,0 +1,12 @@ +from nose.tools import * +import airtime_analyzer + +def setup(): + pass + +def teardown(): + pass + +def test_basic(): + pass + diff --git a/python_apps/airtime_analyzer/tests/analyzer_pipeline_tests.py b/python_apps/airtime_analyzer/tests/analyzer_pipeline_tests.py new file mode 100644 index 0000000000..23d7d046b3 --- /dev/null +++ b/python_apps/airtime_analyzer/tests/analyzer_pipeline_tests.py @@ -0,0 +1,52 @@ +from nose.tools import * +import os +import shutil +import multiprocessing +import Queue +import datetime +from airtime_analyzer.analyzer_pipeline import AnalyzerPipeline + +DEFAULT_AUDIO_FILE = u'tests/test_data/44100Hz-16bit-mono.mp3' +DEFAULT_IMPORT_DEST = u'Test Artist/Test Album/44100Hz-16bit-mono.mp3' + +def setup(): + pass + +def teardown(): + #Move the file back + shutil.move(DEFAULT_IMPORT_DEST, DEFAULT_AUDIO_FILE) + assert os.path.exists(DEFAULT_AUDIO_FILE) + +def test_basic(): + filename = os.path.basename(DEFAULT_AUDIO_FILE) + q = multiprocessing.Queue() + cloud_storage_enabled = False + #This actually imports the file into the "./Test Artist" directory. + AnalyzerPipeline.run_analysis(q, DEFAULT_AUDIO_FILE, u'.', filename, cloud_storage_enabled) + metadata = q.get() + assert metadata['track_title'] == u'Test Title' + assert metadata['artist_name'] == u'Test Artist' + assert metadata['album_title'] == u'Test Album' + assert metadata['year'] == u'1999' + assert metadata['genre'] == u'Test Genre' + assert metadata['mime'] == 'audio/mp3' # Not unicode because MIMEs aren't. + assert abs(metadata['length_seconds'] - 3.9) < 0.1 + assert metadata["length"] == str(datetime.timedelta(seconds=metadata["length_seconds"])) + assert os.path.exists(DEFAULT_IMPORT_DEST) + +@raises(TypeError) +def test_wrong_type_queue_param(): + AnalyzerPipeline.run_analysis(Queue.Queue(), u'', u'', u'') + +@raises(TypeError) +def test_wrong_type_string_param2(): + AnalyzerPipeline.run_analysis(multiprocessing.queues.Queue(), '', u'', u'') + +@raises(TypeError) +def test_wrong_type_string_param3(): + AnalyzerPipeline.run_analysis(multiprocessing.queues.Queue(), u'', '', u'') + +@raises(TypeError) +def test_wrong_type_string_param4(): + AnalyzerPipeline.run_analysis(multiprocessing.queues.Queue(), u'', u'', '') + diff --git a/python_apps/airtime_analyzer/tests/analyzer_tests.py b/python_apps/airtime_analyzer/tests/analyzer_tests.py new file mode 100644 index 0000000000..fc6fbc6848 --- /dev/null +++ b/python_apps/airtime_analyzer/tests/analyzer_tests.py @@ -0,0 +1,13 @@ +from nose.tools import * +from airtime_analyzer.analyzer import Analyzer + +def setup(): + pass + +def teardown(): + pass + +@raises(NotImplementedError) +def test_analyze(): + abstract_analyzer = Analyzer() + abstract_analyzer.analyze(u'foo', dict()) diff --git a/python_apps/airtime_analyzer/tests/cloud_storage_uploader_tests.py b/python_apps/airtime_analyzer/tests/cloud_storage_uploader_tests.py new file mode 100644 index 0000000000..d54e4573a5 --- /dev/null +++ b/python_apps/airtime_analyzer/tests/cloud_storage_uploader_tests.py @@ -0,0 +1,13 @@ +from nose.tools import * +from airtime_analyzer.cloud_storage_uploader import CloudStorageUploader +from airtime_analyzer.airtime_analyzer import AirtimeAnalyzerServer + +def setup(): + pass + +def teardown(): + pass + +def test_analyze(): + cl = CloudStorageUploader() + cl._storage_backend = "file" \ No newline at end of file diff --git a/python_apps/airtime_analyzer/tests/cuepoint_analyzer_tests.py b/python_apps/airtime_analyzer/tests/cuepoint_analyzer_tests.py new file mode 100644 index 0000000000..f084a404bd --- /dev/null +++ b/python_apps/airtime_analyzer/tests/cuepoint_analyzer_tests.py @@ -0,0 +1,63 @@ +from nose.tools import * +from airtime_analyzer.cuepoint_analyzer import CuePointAnalyzer + +def check_default_metadata(metadata): + ''' Check that the values extract by Silan/CuePointAnalyzer on our test audio files match what we expect. + :param metadata: a metadata dictionary + :return: Nothing + ''' + # We give silan some leeway here by specifying a tolerance + tolerance_seconds = 0.1 + length_seconds = 3.9 + assert abs(metadata['length_seconds'] - length_seconds) < tolerance_seconds + assert abs(float(metadata['cuein'])) < tolerance_seconds + assert abs(float(metadata['cueout']) - length_seconds) < tolerance_seconds + +def test_missing_silan(): + old_silan = CuePointAnalyzer.SILAN_EXECUTABLE + CuePointAnalyzer.SILAN_EXECUTABLE = 'foosdaf' + metadata = CuePointAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo-utf8.mp3', dict()) + CuePointAnalyzer.SILAN_EXECUTABLE = old_silan # Need to put this back + +def test_invalid_filepath(): + metadata = CuePointAnalyzer.analyze(u'non-existent-file', dict()) + + +def test_mp3_utf8(): + metadata = CuePointAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo-utf8.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_dualmono(): + metadata = CuePointAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-dualmono.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_jointstereo(): + metadata = CuePointAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-jointstereo.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_simplestereo(): + metadata = CuePointAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-simplestereo.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_stereo(): + metadata = CuePointAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_mono(): + metadata = CuePointAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-mono.mp3', dict()) + check_default_metadata(metadata) + +def test_ogg_stereo(): + metadata = CuePointAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.ogg', dict()) + check_default_metadata(metadata) + +def test_invalid_wma(): + metadata = CuePointAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo-invalid.wma', dict()) + +def test_m4a_stereo(): + metadata = CuePointAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.m4a', dict()) + check_default_metadata(metadata) + +def test_wav_stereo(): + metadata = CuePointAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.wav', dict()) + check_default_metadata(metadata) diff --git a/python_apps/airtime_analyzer/tests/filemover_analyzer_tests.py b/python_apps/airtime_analyzer/tests/filemover_analyzer_tests.py new file mode 100644 index 0000000000..dbdbb2feb3 --- /dev/null +++ b/python_apps/airtime_analyzer/tests/filemover_analyzer_tests.py @@ -0,0 +1,112 @@ +from nose.tools import * +import os +import shutil +import multiprocessing +import Queue +import time +import mock +from pprint import pprint +from airtime_analyzer.filemover_analyzer import FileMoverAnalyzer + +DEFAULT_AUDIO_FILE = u'tests/test_data/44100Hz-16bit-mono.mp3' +DEFAULT_IMPORT_DEST = u'Test Artist/Test Album/44100Hz-16bit-mono.mp3' + +def setup(): + pass + +def teardown(): + pass + +@raises(Exception) +def test_dont_use_analyze(): + FileMoverAnalyzer.analyze(u'foo', dict()) + +@raises(TypeError) +def test_move_wrong_string_param1(): + FileMoverAnalyzer.move('', u'', u'', dict()) + +@raises(TypeError) +def test_move_wrong_string_param2(): + FileMoverAnalyzer.move(u'', '', u'', dict()) + +@raises(TypeError) +def test_move_wrong_string_param3(): + FileMoverAnalyzer.move(u'', u'', '', dict()) + +@raises(TypeError) +def test_move_wrong_dict_param(): + FileMoverAnalyzer.move(u'', u'', u'', 12345) + +def test_basic(): + filename = os.path.basename(DEFAULT_AUDIO_FILE) + FileMoverAnalyzer.move(DEFAULT_AUDIO_FILE, u'.', filename, dict()) + #Move the file back + shutil.move("./" + filename, DEFAULT_AUDIO_FILE) + assert os.path.exists(DEFAULT_AUDIO_FILE) + +def test_basic_samefile(): + filename = os.path.basename(DEFAULT_AUDIO_FILE) + FileMoverAnalyzer.move(DEFAULT_AUDIO_FILE, u'tests/test_data', filename, dict()) + assert os.path.exists(DEFAULT_AUDIO_FILE) + +def test_duplicate_file(): + filename = os.path.basename(DEFAULT_AUDIO_FILE) + #Import the file once + FileMoverAnalyzer.move(DEFAULT_AUDIO_FILE, u'.', filename, dict()) + #Copy it back to the original location + shutil.copy("./" + filename, DEFAULT_AUDIO_FILE) + #Import it again. It shouldn't overwrite the old file and instead create a new + metadata = dict() + metadata = FileMoverAnalyzer.move(DEFAULT_AUDIO_FILE, u'.', filename, metadata) + #Cleanup: move the file (eg. 44100Hz-16bit-mono.mp3) back + shutil.move("./" + filename, DEFAULT_AUDIO_FILE) + #Remove the renamed duplicate, eg. 44100Hz-16bit-mono_03-26-2014-11-58.mp3 + os.remove(metadata["full_path"]) + assert os.path.exists(DEFAULT_AUDIO_FILE) + +''' If you import three copies of the same file, the behaviour is: + - The filename is of the first file preserved. + - The filename of the second file has the timestamp attached to it. + - The filename of the third file has a UUID placed after the timestamp, but ONLY IF + it's imported within 1 second of the second file (ie. if the timestamp is the same). +''' +def test_double_duplicate_files(): + # Here we use mock to patch out the time.localtime() function so that it + # always returns the same value. This allows us to consistently simulate this test cases + # where the last two of the three files are imported at the same time as the timestamp. + with mock.patch('airtime_analyzer.filemover_analyzer.time') as mock_time: + mock_time.localtime.return_value = time.localtime()#date(2010, 10, 8) + mock_time.side_effect = lambda *args, **kw: time(*args, **kw) + + filename = os.path.basename(DEFAULT_AUDIO_FILE) + #Import the file once + FileMoverAnalyzer.move(DEFAULT_AUDIO_FILE, u'.', filename, dict()) + #Copy it back to the original location + shutil.copy("./" + filename, DEFAULT_AUDIO_FILE) + #Import it again. It shouldn't overwrite the old file and instead create a new + first_dup_metadata = dict() + first_dup_metadata = FileMoverAnalyzer.move(DEFAULT_AUDIO_FILE, u'.', filename, + first_dup_metadata) + #Copy it back again! + shutil.copy("./" + filename, DEFAULT_AUDIO_FILE) + #Reimport for the third time, which should have the same timestamp as the second one + #thanks to us mocking out time.localtime() + second_dup_metadata = dict() + second_dup_metadata = FileMoverAnalyzer.move(DEFAULT_AUDIO_FILE, u'.', filename, + second_dup_metadata) + #Cleanup: move the file (eg. 44100Hz-16bit-mono.mp3) back + shutil.move("./" + filename, DEFAULT_AUDIO_FILE) + #Remove the renamed duplicate, eg. 44100Hz-16bit-mono_03-26-2014-11-58.mp3 + os.remove(first_dup_metadata["full_path"]) + os.remove(second_dup_metadata["full_path"]) + assert os.path.exists(DEFAULT_AUDIO_FILE) + +@raises(OSError) +def test_bad_permissions_destination_dir(): + filename = os.path.basename(DEFAULT_AUDIO_FILE) + dest_dir = u'/sys/foobar' # /sys is using sysfs on Linux, which is unwritable + FileMoverAnalyzer.move(DEFAULT_AUDIO_FILE, dest_dir, filename, dict()) + #Move the file back + shutil.move(os.path.join(dest_dir, filename), DEFAULT_AUDIO_FILE) + assert os.path.exists(DEFAULT_AUDIO_FILE) + diff --git a/python_apps/airtime_analyzer/tests/metadata_analyzer_tests.py b/python_apps/airtime_analyzer/tests/metadata_analyzer_tests.py new file mode 100644 index 0000000000..ee108b3623 --- /dev/null +++ b/python_apps/airtime_analyzer/tests/metadata_analyzer_tests.py @@ -0,0 +1,163 @@ +# -*- coding: utf-8 -*- +import datetime +import mutagen +import mock +from nose.tools import * +from airtime_analyzer.metadata_analyzer import MetadataAnalyzer + +def setup(): + pass + +def teardown(): + pass + +def check_default_metadata(metadata): + assert metadata['track_title'] == u'Test Title' + assert metadata['artist_name'] == u'Test Artist' + assert metadata['album_title'] == u'Test Album' + assert metadata['year'] == u'1999' + assert metadata['genre'] == u'Test Genre' + assert metadata['track_number'] == u'1' + assert metadata["length"] == str(datetime.timedelta(seconds=metadata["length_seconds"])) + +def test_mp3_mono(): + metadata = MetadataAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-mono.mp3', dict()) + check_default_metadata(metadata) + assert metadata['channels'] == 1 + assert metadata['bit_rate'] == 64000 + assert abs(metadata['length_seconds'] - 3.9) < 0.1 + assert metadata['mime'] == 'audio/mp3' # Not unicode because MIMEs aren't. + assert metadata['track_total'] == u'10' # MP3s can have a track_total + #Mutagen doesn't extract comments from mp3s it seems + +def test_mp3_jointstereo(): + metadata = MetadataAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-jointstereo.mp3', dict()) + check_default_metadata(metadata) + assert metadata['channels'] == 2 + assert metadata['bit_rate'] == 128000 + assert abs(metadata['length_seconds'] - 3.9) < 0.1 + assert metadata['mime'] == 'audio/mp3' + assert metadata['track_total'] == u'10' # MP3s can have a track_total + +def test_mp3_simplestereo(): + metadata = MetadataAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-simplestereo.mp3', dict()) + check_default_metadata(metadata) + assert metadata['channels'] == 2 + assert metadata['bit_rate'] == 128000 + assert abs(metadata['length_seconds'] - 3.9) < 0.1 + assert metadata['mime'] == 'audio/mp3' + assert metadata['track_total'] == u'10' # MP3s can have a track_total + +def test_mp3_dualmono(): + metadata = MetadataAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-dualmono.mp3', dict()) + check_default_metadata(metadata) + assert metadata['channels'] == 2 + assert metadata['bit_rate'] == 128000 + assert abs(metadata['length_seconds'] - 3.9) < 0.1 + assert metadata['mime'] == 'audio/mp3' + assert metadata['track_total'] == u'10' # MP3s can have a track_total + + +def test_ogg_mono(): + metadata = MetadataAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-mono.ogg', dict()) + check_default_metadata(metadata) + assert metadata['channels'] == 1 + assert metadata['bit_rate'] == 80000 + assert abs(metadata['length_seconds'] - 3.8) < 0.1 + assert metadata['mime'] == 'audio/vorbis' + assert metadata['comment'] == u'Test Comment' + +def test_ogg_stereo(): + metadata = MetadataAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.ogg', dict()) + check_default_metadata(metadata) + assert metadata['channels'] == 2 + assert metadata['bit_rate'] == 112000 + assert abs(metadata['length_seconds'] - 3.8) < 0.1 + assert metadata['mime'] == 'audio/vorbis' + assert metadata['comment'] == u'Test Comment' + +''' faac and avconv can't seem to create a proper mono AAC file... ugh +def test_aac_mono(): + metadata = MetadataAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-mono.m4a') + print "Mono AAC metadata:" + print metadata + check_default_metadata(metadata) + assert metadata['channels'] == 1 + assert metadata['bit_rate'] == 80000 + assert abs(metadata['length_seconds'] - 3.8) < 0.1 + assert metadata['mime'] == 'audio/mp4' + assert metadata['comment'] == u'Test Comment' +''' + +def test_aac_stereo(): + metadata = MetadataAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.m4a', dict()) + check_default_metadata(metadata) + assert metadata['channels'] == 2 + assert metadata['bit_rate'] == 102619 + assert abs(metadata['length_seconds'] - 3.8) < 0.1 + assert metadata['mime'] == 'audio/mp4' + assert metadata['comment'] == u'Test Comment' + +def test_mp3_utf8(): + metadata = MetadataAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo-utf8.mp3', dict()) + # Using a bunch of different UTF-8 codepages here. Test data is from: + # http://winrus.com/utf8-jap.htm + assert metadata['track_title'] == u'アイウエオカキクケコサシスセソタチツテ' + assert metadata['artist_name'] == u'てすと' + assert metadata['album_title'] == u'Ä ä Ü ü ß' + assert metadata['year'] == u'1999' + assert metadata['genre'] == u'Я Б Г Д Ж Й' + assert metadata['track_number'] == u'1' + assert metadata['channels'] == 2 + assert metadata['bit_rate'] == 128000 + assert abs(metadata['length_seconds'] - 3.9) < 0.1 + assert metadata['mime'] == 'audio/mp3' + assert metadata['track_total'] == u'10' # MP3s can have a track_total + +def test_invalid_wma(): + metadata = MetadataAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo-invalid.wma', dict()) + assert metadata['mime'] == 'audio/x-ms-wma' + +def test_wav_stereo(): + metadata = MetadataAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.wav', dict()) + assert metadata['mime'] == 'audio/x-wav' + assert abs(metadata['length_seconds'] - 3.9) < 0.1 + assert metadata['channels'] == 2 + assert metadata['sample_rate'] == 44100 + + +# Make sure the parameter checking works +@raises(TypeError) +def test_move_wrong_string_param1(): + not_unicode = 'asdfasdf' + MetadataAnalyzer.analyze(not_unicode, dict()) + +@raises(TypeError) +def test_move_wrong_metadata_dict(): + not_a_dict = list() + MetadataAnalyzer.analyze(u'asdfasdf', not_a_dict) + +# Test an mp3 file where the number of channels is invalid or missing: +def test_mp3_bad_channels(): + filename = u'tests/test_data/44100Hz-16bit-mono.mp3' + ''' + It'd be a pain in the ass to construct a real MP3 with an invalid number + of channels by hand because that value is stored in every MP3 frame in the file + ''' + audio_file = mutagen.File(filename, easy=True) + audio_file.info.mode = 1777 + with mock.patch('airtime_analyzer.metadata_analyzer.mutagen') as mock_mutagen: + mock_mutagen.File.return_value = audio_file + #mock_mutagen.side_effect = lambda *args, **kw: audio_file #File(*args, **kw) + + metadata = MetadataAnalyzer.analyze(filename, dict()) + check_default_metadata(metadata) + assert metadata['channels'] == 1 + assert metadata['bit_rate'] == 64000 + assert abs(metadata['length_seconds'] - 3.9) < 0.1 + assert metadata['mime'] == 'audio/mp3' # Not unicode because MIMEs aren't. + assert metadata['track_total'] == u'10' # MP3s can have a track_total + #Mutagen doesn't extract comments from mp3s it seems + +def test_unparsable_file(): + MetadataAnalyzer.analyze(u'README.rst', dict()) diff --git a/python_apps/airtime_analyzer/tests/playability_analyzer_tests.py b/python_apps/airtime_analyzer/tests/playability_analyzer_tests.py new file mode 100644 index 0000000000..3864d6b406 --- /dev/null +++ b/python_apps/airtime_analyzer/tests/playability_analyzer_tests.py @@ -0,0 +1,61 @@ +from nose.tools import * +from airtime_analyzer.playability_analyzer import * + +def check_default_metadata(metadata): + ''' Stub function for now in case we need it later.''' + pass + +def test_missing_liquidsoap(): + old_ls = PlayabilityAnalyzer.LIQUIDSOAP_EXECUTABLE + PlayabilityAnalyzer.LIQUIDSOAP_EXECUTABLE = 'foosdaf' + metadata = PlayabilityAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo-utf8.mp3', dict()) + PlayabilityAnalyzer.LIQUIDSOAP_EXECUTABLE = old_ls # Need to put this back + +@raises(UnplayableFileError) +def test_invalid_filepath(): + metadata = PlayabilityAnalyzer.analyze(u'non-existent-file', dict()) + +def test_mp3_utf8(): + metadata = PlayabilityAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo-utf8.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_dualmono(): + metadata = PlayabilityAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-dualmono.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_jointstereo(): + metadata = PlayabilityAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-jointstereo.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_simplestereo(): + metadata = PlayabilityAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-simplestereo.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_stereo(): + metadata = PlayabilityAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_mono(): + metadata = PlayabilityAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-mono.mp3', dict()) + check_default_metadata(metadata) + +def test_ogg_stereo(): + metadata = PlayabilityAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.ogg', dict()) + check_default_metadata(metadata) + +@raises(UnplayableFileError) +def test_invalid_wma(): + metadata = PlayabilityAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo-invalid.wma', dict()) + +def test_m4a_stereo(): + metadata = PlayabilityAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.m4a', dict()) + check_default_metadata(metadata) + +def test_wav_stereo(): + metadata = PlayabilityAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.wav', dict()) + check_default_metadata(metadata) + +@raises(UnplayableFileError) +def test_unknown(): + metadata = PlayabilityAnalyzer.analyze(u'http://www.google.com', dict()) + check_default_metadata(metadata) \ No newline at end of file diff --git a/python_apps/airtime_analyzer/tests/replaygain_analyzer_tests.py b/python_apps/airtime_analyzer/tests/replaygain_analyzer_tests.py new file mode 100644 index 0000000000..c9e98bfb33 --- /dev/null +++ b/python_apps/airtime_analyzer/tests/replaygain_analyzer_tests.py @@ -0,0 +1,71 @@ +from nose.tools import * +from airtime_analyzer.replaygain_analyzer import ReplayGainAnalyzer + +def check_default_metadata(metadata): + ''' Check that the values extract by Silan/CuePointAnalyzer on our test audio files match what we expect. + :param metadata: a metadata dictionary + :return: Nothing + ''' + ''' + # We give python-rgain some leeway here by specifying a tolerance. It's not perfectly consistent across codecs... + assert abs(metadata['cuein']) < tolerance_seconds + assert abs(metadata['cueout'] - length_seconds) < tolerance_seconds + ''' + tolerance = 0.30 + expected_replaygain = 5.0 + print metadata['replay_gain'] + assert abs(metadata['replay_gain'] - expected_replaygain) < tolerance + +def test_missing_replaygain(): + old_rg = ReplayGainAnalyzer.REPLAYGAIN_EXECUTABLE + ReplayGainAnalyzer.REPLAYGAIN_EXECUTABLE = 'foosdaf' + metadata = ReplayGainAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo-utf8.mp3', dict()) + ReplayGainAnalyzer.REPLAYGAIN_EXECUTABLE = old_rg # Need to put this back + +def test_invalid_filepath(): + metadata = ReplayGainAnalyzer.analyze(u'non-existent-file', dict()) + + +def test_mp3_utf8(): + metadata = ReplayGainAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo-utf8.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_dualmono(): + metadata = ReplayGainAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-dualmono.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_jointstereo(): + metadata = ReplayGainAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-jointstereo.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_simplestereo(): + metadata = ReplayGainAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-simplestereo.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_stereo(): + metadata = ReplayGainAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.mp3', dict()) + check_default_metadata(metadata) + +def test_mp3_mono(): + metadata = ReplayGainAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-mono.mp3', dict()) + check_default_metadata(metadata) + +def test_ogg_stereo(): + metadata = ReplayGainAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.ogg', dict()) + check_default_metadata(metadata) + +def test_invalid_wma(): + metadata = ReplayGainAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo-invalid.wma', dict()) + +def test_mp3_missing_id3_header(): + metadata = ReplayGainAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-mp3-missingid3header.mp3', dict()) + +def test_m4a_stereo(): + metadata = ReplayGainAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.m4a', dict()) + check_default_metadata(metadata) + +''' WAVE is not supported by python-rgain yet +def test_wav_stereo(): + metadata = ReplayGainAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.wav', dict()) + check_default_metadata(metadata) +''' \ No newline at end of file diff --git a/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-dualmono.mp3 b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-dualmono.mp3 new file mode 100644 index 0000000000..1e98b616ea Binary files /dev/null and b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-dualmono.mp3 differ diff --git a/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-jointstereo.mp3 b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-jointstereo.mp3 new file mode 100644 index 0000000000..649dc371db Binary files /dev/null and b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-jointstereo.mp3 differ diff --git a/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-mono.mp3 b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-mono.mp3 new file mode 100644 index 0000000000..0c12b1b396 Binary files /dev/null and b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-mono.mp3 differ diff --git a/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-mono.ogg b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-mono.ogg new file mode 100644 index 0000000000..097ccf1f5e Binary files /dev/null and b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-mono.ogg differ diff --git a/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-mp3-missingid3header.mp3 b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-mp3-missingid3header.mp3 new file mode 100644 index 0000000000..0e7181f64c Binary files /dev/null and b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-mp3-missingid3header.mp3 differ diff --git a/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-simplestereo.mp3 b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-simplestereo.mp3 new file mode 100644 index 0000000000..1ae7f078ca Binary files /dev/null and b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-simplestereo.mp3 differ diff --git a/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo-invalid.wma b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo-invalid.wma new file mode 100644 index 0000000000..f0bf3f19c0 Binary files /dev/null and b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo-invalid.wma differ diff --git a/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo-utf8.mp3 b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo-utf8.mp3 new file mode 100644 index 0000000000..2e29e3f2a5 Binary files /dev/null and b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo-utf8.mp3 differ diff --git a/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo.m4a b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo.m4a new file mode 100644 index 0000000000..ee6ef7b3d8 Binary files /dev/null and b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo.m4a differ diff --git a/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo.mp3 b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo.mp3 new file mode 100644 index 0000000000..649dc371db Binary files /dev/null and b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo.mp3 differ diff --git a/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo.ogg b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo.ogg new file mode 100644 index 0000000000..83bd04f771 Binary files /dev/null and b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo.ogg differ diff --git a/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo.wav b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo.wav new file mode 100644 index 0000000000..88b7330787 Binary files /dev/null and b/python_apps/airtime_analyzer/tests/test_data/44100Hz-16bit-stereo.wav differ diff --git a/python_apps/airtime_analyzer/tools/ftp-upload-hook.sh b/python_apps/airtime_analyzer/tools/ftp-upload-hook.sh new file mode 100755 index 0000000000..f5be38183b --- /dev/null +++ b/python_apps/airtime_analyzer/tools/ftp-upload-hook.sh @@ -0,0 +1,41 @@ +#! /bin/bash + +post_file() { + #kill process after 30 minutes (360*5=30 minutes) + max_retry=360 + retry_count=0 + + file_path=${1} + filename="${file_path##*/}" + + #base_instance_path and airtime_conf_path are common to all saas instances + base_instance_path=/mnt/airtimepro/instances/ + airtime_conf_path=/etc/airtime/airtime.conf + + #maps the instance_path to the url + vhost_file=/mnt/airtimepro/system/vhost.map + + #instance_path will look like 1/1384, for example + instance_path=$(echo ${file_path} | grep -Po "(?<=($base_instance_path)).*?(?=/srv)") + + #post request url - http://bananas.airtime.pro/rest/media, for example + url=http:// + url+=$(grep -E $instance_path $vhost_file | awk '{print $1;}') + url+=/rest/media + + #path to specific instance's airtime.conf + instance_conf_path=$base_instance_path$instance_path$airtime_conf_path + + api_key=$(awk -F "= " '/api_key/ {print $2}' $instance_conf_path) + + until curl --max-time 30 $url -u $api_key":" -X POST -F "file=@${file_path}" -F "full_path=${file_path}" + do + retry_count=$[$retry_count+1] + if [ $retry_count -ge $max_retry ]; then + break + fi + sleep 5 + done +} + +post_file "${1}" & diff --git a/python_apps/airtime_analyzer/tools/message_sender.php b/python_apps/airtime_analyzer/tools/message_sender.php new file mode 100644 index 0000000000..59677673d7 --- /dev/null +++ b/python_apps/airtime_analyzer/tools/message_sender.php @@ -0,0 +1,47 @@ +channel(); + +// declare/create the queue +$channel->queue_declare($queue, false, true, false, false); + +// declare/create the exchange as a topic exchange. +$channel->exchange_declare($exchange, $exchangeType, false, true, false); + +$msg = new AMQPMessage($message, array("content_type" => "text/plain")); + +$channel->basic_publish($msg, $exchange, $routingKey); +print "Sent $message ($routingKey)\n"; +$channel->close(); +$connection->close(); + diff --git a/python_apps/airtime_analyzer/tools/php-amqplib b/python_apps/airtime_analyzer/tools/php-amqplib new file mode 120000 index 0000000000..68ef0b2236 --- /dev/null +++ b/python_apps/airtime_analyzer/tools/php-amqplib @@ -0,0 +1 @@ +../../../airtime_mvc/library/php-amqplib \ No newline at end of file diff --git a/python_apps/airtime_analyzer/tools/test-hook-script.sh b/python_apps/airtime_analyzer/tools/test-hook-script.sh new file mode 100755 index 0000000000..d3d0ab504f --- /dev/null +++ b/python_apps/airtime_analyzer/tools/test-hook-script.sh @@ -0,0 +1,21 @@ +#! /bin/bash + +post_file() { + file_path=${1} + filename="${file_path##*/}" + + #kill process after 30 minutes (360*5=30 minutes) + max_retry=10 + retry_count=0 + + until curl --max-time 30 http://localhost/rest/media -u 3188BDIMPJROQP89Z0OX: -X POST -F "file=@${file_path}" -F "name=${filename}" + do + retry_count=$[$retry_count+1] + if [ $retry_count -ge $max_retry ]; then + break + fi + sleep 1 + done +} + +post_file "${1}" & diff --git a/python_apps/pypo/cloud_storage_downloader.py b/python_apps/pypo/cloud_storage_downloader.py new file mode 100644 index 0000000000..f5768df297 --- /dev/null +++ b/python_apps/pypo/cloud_storage_downloader.py @@ -0,0 +1,84 @@ +import os +import logging +import ConfigParser +import sys +import hashlib + +from libcloud.storage.types import Provider, ObjectDoesNotExistError +from libcloud.storage.providers import get_driver + +CONFIG_PATH = '/etc/airtime-saas/amazon.conf' + +class CloudStorageDownloader: + """ A class that uses Apache Libcloud's Storage API to download objects from + a cloud storage backend. For this implementation all files are stored on + Amazon S3 and will be downloaded from there. + + This class is used with Airtime's playout engine service, PYPO. + + Attributes: + _provider: Storage backend. For exmaple, Amazon S3, Google Storage. + _bucket: Name of container on provider where files will get uploaded into. + _api_key: Access key to objects on the provider's storage backend. + _api_key_secret: Secret access key to objects on the provider's storage backend. + """ + + def __init__(self): + config = self.read_config_file(CONFIG_PATH) + + CLOUD_STORAGE_CONFIG_SECTION = "cloud_storage" + self._provider = config.get(CLOUD_STORAGE_CONFIG_SECTION, 'provider') + self._bucket = config.get(CLOUD_STORAGE_CONFIG_SECTION, 'bucket') + self._api_key = config.get(CLOUD_STORAGE_CONFIG_SECTION, 'api_key') + self._api_key_secret = config.get(CLOUD_STORAGE_CONFIG_SECTION, 'api_key_secret') + + def download_obj(self, dst, obj_name): + """Downloads a file from Amazon S3 object storage to disk. + + Downloads an object to PYPO's temporary cache directory on disk. + If the file already exists in the cache directory the object + downloading is skipped. + + Keyword arguments: + dst: PYPO's temporary cache directory on disk. + obj_name: Name of the object to download to disk + """ + provider_driver_class = get_driver(getattr(Provider, self._provider)) + driver = provider_driver_class(self._api_key, self._api_key_secret) + + try: + cloud_obj = driver.get_object(container_name=self._bucket, + object_name=obj_name) + except ObjectDoesNotExistError: + logging.info("%s does not exist on Amazon S3" % obj_name) + + # If we detect the file path already exists in PYPO's cache directory + # we need to verify the contents of that file is the same (in case there + # was file corruption in a previous download for example) as the + # object's contents by comparing the hash. If the hash values are not + # equal we need to download the object to disk again. + dst_exists = False + if (os.path.isfile(dst)): + dst_hash = hashlib.md5(open(dst).read()).hexdigest() + if dst_hash == cloud_obj.hash: + dst_exists = True + + if dst_exists == False: + logging.info('Downloading: %s to %s' % (cloud_obj.name, dst)) + cloud_obj.download(destination_path=dst) + else: + logging.info("Skipping download because %s already exists" % dst) + + def read_config_file(self, config_path): + """Parse the application's config file located at config_path.""" + config = ConfigParser.SafeConfigParser() + try: + config.readfp(open(config_path)) + except IOError as e: + logging.debug("Failed to open config file at %s: %s" % (config_path, e.strerror)) + sys.exit() + except Exception: + logging.debug(e.strerror) + sys.exit() + + return config diff --git a/python_apps/pypo/liquidsoap_scripts/generate_liquidsoap_cfg.py b/python_apps/pypo/liquidsoap_scripts/generate_liquidsoap_cfg.py index e0160181b3..45bdb46f43 100644 --- a/python_apps/pypo/liquidsoap_scripts/generate_liquidsoap_cfg.py +++ b/python_apps/pypo/liquidsoap_scripts/generate_liquidsoap_cfg.py @@ -44,5 +44,8 @@ def generate_liquidsoap_config(ss): logging.error("traceback: %s", traceback.format_exc()) sys.exit(1) else: + logging.error(str(e)) + logging.error("traceback: %s", traceback.format_exc()) + logging.info("Retrying in 3 seconds...") time.sleep(3) attempts += 1 diff --git a/python_apps/pypo/media/update/replaygain.py b/python_apps/pypo/media/update/replaygain.py deleted file mode 100644 index 431933bda5..0000000000 --- a/python_apps/pypo/media/update/replaygain.py +++ /dev/null @@ -1,161 +0,0 @@ -from subprocess import Popen, PIPE -import re -import os -import sys -import shutil -import tempfile -import logging - - -logger = logging.getLogger() - -def get_process_output(command): - """ - Run subprocess and return stdout - """ - logger.debug(command) - p = Popen(command, stdout=PIPE, stderr=PIPE) - return p.communicate()[0].strip() - -def run_process(command): - """ - Run subprocess and return "return code" - """ - p = Popen(command, stdout=PIPE, stderr=PIPE) - return os.waitpid(p.pid, 0)[1] - -def get_mime_type(file_path): - """ - Attempts to get the mime type but will return prematurely if the process - takes longer than 5 seconds. Note that this function should only be called - for files which do not have a mp3/ogg/flac extension. - """ - - command = ['timeout', '5', 'file', '-b', '--mime-type', file_path] - return get_process_output(command) - -def duplicate_file(file_path): - """ - Makes a duplicate of the file and returns the path of this duplicate file. - """ - fsrc = open(file_path, 'r') - fdst = tempfile.NamedTemporaryFile(delete=False) - - logger.info("Copying %s to %s" % (file_path, fdst.name)) - - shutil.copyfileobj(fsrc, fdst) - - fsrc.close() - fdst.close() - - return fdst.name - -def get_file_type(file_path): - file_type = None - if re.search(r'mp3$', file_path, re.IGNORECASE): - file_type = 'mp3' - elif re.search(r'og(g|a)$', file_path, re.IGNORECASE): - file_type = 'vorbis' - elif re.search(r'm4a$', file_path, re.IGNORECASE): - file_type = 'mp4' - elif re.search(r'flac$', file_path, re.IGNORECASE): - file_type = 'flac' - else: - mime_type = get_mime_type(file_path) - if 'mpeg' in mime_type: - file_type = 'mp3' - elif 'ogg' in mime_type: - file_type = 'vorbis' - elif 'mp4' in mime_type: - file_type = 'mp4' - elif 'flac' in mime_type: - file_type = 'flac' - - return file_type - - -def calculate_replay_gain(file_path): - """ - This function accepts files of type mp3/ogg/flac and returns a calculated - ReplayGain value in dB. - If the value cannot be calculated for some reason, then we default to 0 - (Unity Gain). - - http://wiki.hydrogenaudio.org/index.php?title=ReplayGain_1.0_specification - """ - - try: - """ - Making a duplicate is required because the ReplayGain extraction utilities we use - make unwanted modifications to the file. - """ - - search = None - temp_file_path = duplicate_file(file_path) - - file_type = get_file_type(file_path) - nice_level = '19' - - if file_type: - if file_type == 'mp3': - if run_process(['which', 'mp3gain']) == 0: - command = ['nice', '-n', nice_level, 'mp3gain', '-q', temp_file_path] - out = get_process_output(command) - search = re.search(r'Recommended "Track" dB change: (.*)', \ - out) - else: - logger.warn("mp3gain not found") - elif file_type == 'vorbis': - if run_process(['which', 'ogginfo']) == 0 and \ - run_process(['which', 'vorbisgain']) == 0: - command = ['nice', '-n', nice_level, 'vorbisgain', '-q', '-f', temp_file_path] - run_process(command) - - out = get_process_output(['ogginfo', temp_file_path]) - search = re.search(r'REPLAYGAIN_TRACK_GAIN=(.*) dB', out) - else: - logger.warn("vorbisgain/ogginfo not found") - elif file_type == 'mp4': - if run_process(['which', 'aacgain']) == 0: - command = ['nice', '-n', nice_level, 'aacgain', '-q', temp_file_path] - out = get_process_output(command) - search = re.search(r'Recommended "Track" dB change: (.*)', \ - out) - else: - logger.warn("aacgain not found") - elif file_type == 'flac': - if run_process(['which', 'metaflac']) == 0: - - command = ['nice', '-n', nice_level, 'metaflac', \ - '--add-replay-gain', temp_file_path] - run_process(command) - - command = ['nice', '-n', nice_level, 'metaflac', \ - '--show-tag=REPLAYGAIN_TRACK_GAIN', \ - temp_file_path] - out = get_process_output(command) - search = re.search(r'REPLAYGAIN_TRACK_GAIN=(.*) dB', out) - else: logger.warn("metaflac not found") - - except Exception, e: - logger.error(str(e)) - finally: - #no longer need the temp, file simply remove it. - try: os.remove(temp_file_path) - except: pass - - replay_gain = 0 - if search: - matches = search.groups() - if len(matches) == 1: - replay_gain = matches[0] - else: - logger.warn("Received more than 1 match in: '%s'" % str(matches)) - - return replay_gain - - -# Example of running from command line: -# python replay_gain.py /path/to/filename.mp3 -if __name__ == "__main__": - print calculate_replay_gain(sys.argv[1]) diff --git a/python_apps/pypo/media/update/replaygainupdater.py b/python_apps/pypo/media/update/replaygainupdater.py deleted file mode 100644 index c1123f4a8c..0000000000 --- a/python_apps/pypo/media/update/replaygainupdater.py +++ /dev/null @@ -1,86 +0,0 @@ -from threading import Thread - -import traceback -import os -import time -import logging - -from media.update import replaygain - -class ReplayGainUpdater(Thread): - """ - The purpose of the class is to query the server for a list of files which - do not have a ReplayGain value calculated. This class will iterate over the - list, calculate the values, update the server and repeat the process until - the server reports there are no files left. - - This class will see heavy activity right after a 2.1->2.2 upgrade since 2.2 - introduces ReplayGain normalization. A fresh install of Airtime 2.2 will - see this class not used at all since a file imported in 2.2 will - automatically have its ReplayGain value calculated. - """ - - @staticmethod - def start_reply_gain(apc): - me = ReplayGainUpdater(apc) - me.daemon = True - me.start() - - def __init__(self,apc): - Thread.__init__(self) - self.api_client = apc - self.logger = logging.getLogger() - - def main(self): - raw_response = self.api_client.list_all_watched_dirs() - if 'dirs' not in raw_response: - self.logger.error("Could not get a list of watched directories \ - with a dirs attribute. Printing full request:") - self.logger.error( raw_response ) - return - - directories = raw_response['dirs'] - - for dir_id, dir_path in directories.iteritems(): - try: - # keep getting few rows at a time for current music_dir (stor - # or watched folder). - total = 0 - while True: - # return a list of pairs where the first value is the - # file's database row id and the second value is the - # filepath - files = self.api_client.get_files_without_replay_gain_value(dir_id) - processed_data = [] - for f in files: - full_path = os.path.join(dir_path, f['fp']) - processed_data.append((f['id'], replaygain.calculate_replay_gain(full_path))) - total += 1 - - try: - if len(processed_data): - self.api_client.update_replay_gain_values(processed_data) - except Exception as e: - self.logger.error(e) - self.logger.debug(traceback.format_exc()) - - if len(files) == 0: break - self.logger.info("Processed: %d songs" % total) - - except Exception, e: - self.logger.error(e) - self.logger.debug(traceback.format_exc()) - def run(self): - while True: - try: - self.logger.info("Running replaygain updater") - self.main() - # Sleep for 5 minutes in case new files have been added - except Exception, e: - self.logger.error('ReplayGainUpdater Exception: %s', traceback.format_exc()) - self.logger.error(e) - time.sleep(60 * 5) - -if __name__ == "__main__": - rgu = ReplayGainUpdater() - rgu.main() diff --git a/python_apps/pypo/media/update/silananalyzer.py b/python_apps/pypo/media/update/silananalyzer.py deleted file mode 100644 index e0b98a5b05..0000000000 --- a/python_apps/pypo/media/update/silananalyzer.py +++ /dev/null @@ -1,94 +0,0 @@ -from threading import Thread - -import traceback -import time -import subprocess -import json - - -class SilanAnalyzer(Thread): - """ - The purpose of the class is to query the server for a list of files which - do not have a Silan value calculated. This class will iterate over the - list calculate the values, update the server and repeat the process until - the server reports there are no files left. - """ - - @staticmethod - def start_silan(apc, logger): - me = SilanAnalyzer(apc, logger) - me.start() - - def __init__(self, apc, logger): - Thread.__init__(self) - self.api_client = apc - self.logger = logger - - def main(self): - while True: - # keep getting few rows at a time for current music_dir (stor - # or watched folder). - total = 0 - - # return a list of pairs where the first value is the - # file's database row id and the second value is the - # filepath - files = self.api_client.get_files_without_silan_value() - total_files = len(files) - if total_files == 0: return - processed_data = [] - for f in files: - full_path = f['fp'] - # silence detect(set default queue in and out) - try: - data = {} - command = ['nice', '-n', '19', 'silan', '-b', '-f', 'JSON', full_path] - try: - proc = subprocess.Popen(command, stdout=subprocess.PIPE) - comm = proc.communicate() - if len(comm): - out = comm[0].strip('\r\n') - info = json.loads(out) - try: data['length'] = str('{0:f}'.format(info['file duration'])) - except: pass - try: data['cuein'] = str('{0:f}'.format(info['sound'][0][0])) - except: pass - try: data['cueout'] = str('{0:f}'.format(info['sound'][-1][1])) - except: pass - except Exception, e: - self.logger.warn(str(command)) - self.logger.warn(e) - processed_data.append((f['id'], data)) - total += 1 - if total % 5 == 0: - self.logger.info("Total %s / %s files has been processed.." % (total, total_files)) - except Exception, e: - self.logger.error(e) - self.logger.error(traceback.format_exc()) - - try: - self.api_client.update_cue_values_by_silan(processed_data) - except Exception ,e: - self.logger.error(e) - self.logger.error(traceback.format_exc()) - - self.logger.info("Processed: %d songs" % total) - - def run(self): - while True: - try: - self.logger.info("Running Silan analyzer") - self.main() - except Exception, e: - self.logger.error('Silan Analyzer Exception: %s', traceback.format_exc()) - self.logger.error(e) - self.logger.info("Sleeping for 5...") - time.sleep(60 * 5) - -if __name__ == "__main__": - from api_clients import api_client - import logging - logging.basicConfig(level=logging.DEBUG) - api_client = api_client.AirtimeApiClient() - SilanAnalyzer.start_silan(api_client, logging) - diff --git a/python_apps/pypo/pypocli.py b/python_apps/pypo/pypocli.py index e0208e83a2..62d95ad6c5 100644 --- a/python_apps/pypo/pypocli.py +++ b/python_apps/pypo/pypocli.py @@ -27,9 +27,6 @@ from pypoliquidsoap import PypoLiquidsoap from timeout import ls_timeout -from media.update.replaygainupdater import ReplayGainUpdater -from media.update.silananalyzer import SilanAnalyzer - from configobj import ConfigObj # custom imports @@ -250,10 +247,6 @@ def liquidsoap_startup_test(): g.test_api() sys.exit(0) - - ReplayGainUpdater.start_reply_gain(api_client) - SilanAnalyzer.start_silan(api_client, logger) - pypoFetch_q = Queue() recorder_q = Queue() pypoPush_q = Queue() diff --git a/python_apps/pypo/pypofile.py b/python_apps/pypo/pypofile.py index c636e374c8..ff0b40414f 100644 --- a/python_apps/pypo/pypofile.py +++ b/python_apps/pypo/pypofile.py @@ -8,9 +8,13 @@ import os import sys import stat +import requests +import ConfigParser from std_err_override import LogWriter +CONFIG_PATH = '/etc/airtime/airtime.conf' + # configure logging logging.config.fileConfig("logging.cfg") logger = logging.getLogger() @@ -36,11 +40,7 @@ def copy_file(self, media_item): src = media_item['uri'] dst = media_item['dst'] - try: - src_size = os.path.getsize(src) - except Exception, e: - self.logger.error("Could not get size of source file: %s", src) - return + src_size = media_item['filesize'] dst_exists = True try: @@ -62,11 +62,24 @@ def copy_file(self, media_item): if do_copy: self.logger.debug("copying from %s to local cache %s" % (src, dst)) try: - - """ - copy will overwrite dst if it already exists - """ - shutil.copy(src, dst) + config = self.read_config_file(CONFIG_PATH) + CONFIG_SECTION = "general" + username = config.get(CONFIG_SECTION, 'api_key') + + host = config.get(CONFIG_SECTION, 'base_url') + url = "http://%s/rest/media/%s/download" % (host, media_item["id"]) + + with open(dst, "wb") as handle: + response = requests.get(url, auth=requests.auth.HTTPBasicAuth(username, ''), stream=True) + + if not response.ok: + raise Exception("%s - Error occurred downloading file" % response.status_code) + + for chunk in response.iter_content(1024): + if not chunk: + break + + handle.write(chunk) #make file world readable os.chmod(dst, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH) @@ -106,6 +119,19 @@ def get_highest_priority_media_item(self, schedule): return media_item + def read_config_file(self, config_path): + """Parse the application's config file located at config_path.""" + config = ConfigParser.SafeConfigParser() + try: + config.readfp(open(config_path)) + except IOError as e: + logging.debug("Failed to open config file at %s: %s" % (config_path, e.strerror)) + sys.exit() + except Exception: + logging.debug(e.strerror) + sys.exit() + + return config def main(self): while True: diff --git a/python_apps/pypo/pypoliquidsoap.py b/python_apps/pypo/pypoliquidsoap.py index 74211fddd1..62779200f9 100644 --- a/python_apps/pypo/pypoliquidsoap.py +++ b/python_apps/pypo/pypoliquidsoap.py @@ -48,11 +48,11 @@ def play(self, media_item): def handle_file_type(self, media_item): """ - Wait maximum 5 seconds (50 iterations) for file to become ready, + Wait 200 seconds (2000 iterations) for file to become ready, otherwise give up on it. """ iter_num = 0 - while not media_item['file_ready'] and iter_num < 50: + while not media_item['file_ready'] and iter_num < 2000: time.sleep(0.1) iter_num += 1 diff --git a/python_apps/pypo/telnetliquidsoap.py b/python_apps/pypo/telnetliquidsoap.py index 44d97a13f5..2f572ff131 100644 --- a/python_apps/pypo/telnetliquidsoap.py +++ b/python_apps/pypo/telnetliquidsoap.py @@ -3,17 +3,31 @@ def create_liquidsoap_annotation(media): # We need liq_start_next value in the annotate. That is the value that controls overlap duration of crossfade. - return ('annotate:media_id="%s",liq_start_next="0",liq_fade_in="%s",' + \ + + filename = media['dst'] + annotation = ('annotate:media_id="%s",liq_start_next="0",liq_fade_in="%s",' + \ 'liq_fade_out="%s",liq_cue_in="%s",liq_cue_out="%s",' + \ - 'schedule_table_id="%s",replay_gain="%s dB":%s') % \ - (media['id'], - float(media['fade_in']) / 1000, - float(media['fade_out']) / 1000, - float(media['cue_in']), - float(media['cue_out']), - media['row_id'], - media['replay_gain'], - media['dst']) + 'schedule_table_id="%s",replay_gain="%s dB"') % \ + (media['id'], + float(media['fade_in']) / 1000, + float(media['fade_out']) / 1000, + float(media['cue_in']), + float(media['cue_out']), + media['row_id'], + media['replay_gain']) + + # Override the the artist/title that Liquidsoap extracts from a file's metadata + # with the metadata we get from Airtime. (You can modify metadata in Airtime's library, + # which doesn't get saved back to the file.) + if 'metadata' in media: + if 'artist_name' in media['metadata']: + annotation += ',artist="%s"' % (media['metadata']['artist_name']) + if 'track_title' in media['metadata']: + annotation += ',title="%s"' % (media['metadata']['track_title']) + + annotation += ":" + filename + + return annotation class TelnetLiquidsoap: diff --git a/python_apps/python-virtualenv/airtime_virtual_env.pybundle b/python_apps/python-virtualenv/airtime_virtual_env.pybundle index 109804252c..1f87201230 100644 Binary files a/python_apps/python-virtualenv/airtime_virtual_env.pybundle and b/python_apps/python-virtualenv/airtime_virtual_env.pybundle differ diff --git a/python_apps/python-virtualenv/requirements b/python_apps/python-virtualenv/requirements index 77e5614171..ba6dd84375 100644 --- a/python_apps/python-virtualenv/requirements +++ b/python_apps/python-virtualenv/requirements @@ -1,3 +1,5 @@ +requests==2.5.0 +apache-libcloud==0.15.1 argparse==1.2.1 amqplib==1.0.2 PyDispatcher==2.0.3 diff --git a/utils/airtime-check-system.php b/utils/airtime-check-system.php index 3a4816dcf2..76e313c742 100644 --- a/utils/airtime-check-system.php +++ b/utils/airtime-check-system.php @@ -195,19 +195,20 @@ public static function PrintStatus($p_baseUrl, $p_basePort, $p_status){ $log = "/var/log/airtime/pypo-liquidsoap/ls_script.log"; self::show_log_file($log); } - if (isset($services->media_monitor) && $services->media_monitor->process_id != "FAILED") { - self::output_status("MEDIA_MONITOR_PROCESS_ID", $data->services->media_monitor->process_id); - self::output_status("MEDIA_MONITOR_RUNNING_SECONDS", $data->services->media_monitor->uptime_seconds); - self::output_status("MEDIA_MONITOR_MEM_PERC", $data->services->media_monitor->memory_perc); - self::output_status("MEDIA_MONITOR_CPU_PERC", $data->services->media_monitor->cpu_perc); - } else { - self::output_status("MEDIA_MONITOR_PROCESS_ID", "FAILED"); - self::output_status("MEDIA_MONITOR_RUNNING_SECONDS", "0"); - self::output_status("MEDIA_MONITOR_MEM_PERC", "0%"); - self::output_status("MEDIA_MONITOR_CPU_PERC", "0%"); - $log = "/var/log/airtime/media-monitor/media-monitor.log"; - self::show_log_file($log); - } + + #if (isset($services->media_monitor) && $services->media_monitor->process_id != "FAILED") { + # self::output_status("MEDIA_MONITOR_PROCESS_ID", $data->services->media_monitor->process_id); + # self::output_status("MEDIA_MONITOR_RUNNING_SECONDS", $data->services->media_monitor->uptime_seconds); + # self::output_status("MEDIA_MONITOR_MEM_PERC", $data->services->media_monitor->memory_perc); + # self::output_status("MEDIA_MONITOR_CPU_PERC", $data->services->media_monitor->cpu_perc); + #} else { + # self::output_status("MEDIA_MONITOR_PROCESS_ID", "FAILED"); + # self::output_status("MEDIA_MONITOR_RUNNING_SECONDS", "0"); + # self::output_status("MEDIA_MONITOR_MEM_PERC", "0%"); + # self::output_status("MEDIA_MONITOR_CPU_PERC", "0%"); + # $log = "/var/log/airtime/media-monitor/media-monitor.log"; + # self::show_log_file($log); + #} } if (self::$AIRTIME_STATUS_OK){ diff --git a/utils/airtime-update-db-settings b/utils/airtime-update-db-settings deleted file mode 100755 index 5ed0fcd897..0000000000 --- a/utils/airtime-update-db-settings +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -#------------------------------------------------------------------------------- -# Determine directories, files -#------------------------------------------------------------------------------- - -virtualenv_bin="/usr/lib/airtime/airtime_virtualenv/bin/" -. ${virtualenv_bin}activate - -# Absolute path to this script -SCRIPT=`readlink -f $0` -# Absolute directory this script is in -SCRIPTPATH=`dirname $SCRIPT` - -#------------------------------------------------------------------------------- -# Do import -#------------------------------------------------------------------------------- -invokePwd=$PWD -cd $SCRIPTPATH && python airtime-update-db-settings.py diff --git a/utils/airtime-update-db-settings.py b/utils/airtime-update-db-settings.py deleted file mode 100644 index d28322fb13..0000000000 --- a/utils/airtime-update-db-settings.py +++ /dev/null @@ -1,87 +0,0 @@ -""" -The purpose of this script is to consolidate into one location where -we need to update database host, dbname, username and password. - -This script reads from /etc/airtime/airtime.conf. -""" -import os -import sys -import ConfigParser -import xml.dom.minidom -from xml.dom.minidom import Node - -if os.geteuid() != 0: - print "Please run this as root." - sys.exit(1) - -airtime_conf = '/etc/airtime/airtime.conf' - -#Read the universal values -parser = ConfigParser.SafeConfigParser() -parser.read(airtime_conf) - -host = 'resources.db.params.host' -dbname = 'resources.db.params.dbname' -username = 'resources.db.params.username' -password = 'resources.db.params.password' - -airtime_dir = parser.get('general', 'airtime_dir') -if os.path.exists(airtime_dir): - print 'Airtime root folder found at %s' % airtime_dir -else: - print 'Could not find Airtime root folder specified by "airtime_dir" in %s' % airtime_conf - sys.exit(1) - -print ("Updating %s/application/configs/application.ini" % airtime_dir) -f = file('%s/application/configs/application.ini' % airtime_dir,'r') -file_lines = [] - -for line in f: - if line[0:len(host)] == host: - line= '%s = "%s"\n' % (host, parser.get('database', 'host')) - elif line[0:len(dbname)] == dbname: - line= '%s = "%s"\n' % (dbname, parser.get('database', 'dbname')) - elif line[0:len(username)] == username: - line= '%s = "%s"\n' % (username, parser.get('database', 'dbuser')) - elif line[0:len(password)] == password: - line= '%s = "%s"\n' % (password, parser.get('database', 'dbpass')) - file_lines.append(line) -f.close() - -f = file('%s/application/configs/application.ini' % airtime_dir, 'w') -f.writelines(file_lines) -f.close() - - -print ("Updating %s/build/build.properties" % airtime_dir) - -f = file('%s/build/build.properties' % airtime_dir, 'r') -file_lines = [] - -db_url = 'propel.database.url' - -for line in f: - if line[0:len(db_url)] == db_url: - line = '%s = pgsql:host=%s dbname=%s user=%s password=%s\n' % \ - (db_url, parser.get('database', 'host'), parser.get('database', 'dbname'), parser.get('database', 'dbuser'), \ - parser.get('database', 'dbpass')) - file_lines.append(line) -f.close() - -f = file('%s/build/build.properties' % airtime_dir, 'w') -f.writelines(file_lines) -f.close() - -print ("Updating %s/build/runtime-conf.xml" % airtime_dir) - -doc = xml.dom.minidom.parse('%s/build/runtime-conf.xml' % airtime_dir) - -node = doc.getElementsByTagName("dsn")[0] -node.firstChild.nodeValue = 'pgsql:host=%s;port=5432;dbname=%s;user=%s;password=%s' % (parser.get('database', 'host'), \ -parser.get('database', 'dbname'), parser.get('database', 'dbuser'), parser.get('database', 'dbpass')) - -xml_file = open('%s/build/runtime-conf.xml' % airtime_dir, "w") -xml_file.writelines(doc.toxml('utf-8')) -xml_file.close() - -print "Success!"